:root {
  --zbtool-shell-padding: 10px;
  --zbtool-workspace-gap: 14px;
  --zbtool-intro-font-size: 14px;
  --zbtool-lang-min-width: 210px;
  --zbtool-lang-label-size: 14px;
  --zbtool-lang-select-height: 40px;
}

.panel-work,
.panel-guide {
  overflow: hidden;
}

.sm4-tool {
  display: grid;
  gap: 12px;
}

.sm4-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d8dfeb;
  border-radius: 14px;
  overflow: hidden;
  background: #fbfdff;
}

.sm4-tab {
  min-height: 54px;
  border: 0;
  border-right: 1px solid #d8dfeb;
  background: transparent;
  color: #31425d;
  font-size: 16px;
  cursor: pointer;
}

.sm4-tab:last-child {
  border-right: 0;
}

.sm4-tab.active {
  background: #fff;
  color: #165dff;
  font-weight: 700;
}

.sm4-pane {
  display: none;
  gap: 12px;
}

.sm4-pane.active {
  display: grid;
}

.sm4-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  align-items: start;
}

.sm4-main {
  display: grid;
  gap: 12px;
}

.sm4-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sm4-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm4-field label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: #526078;
}

.sm4-field input,
.sm4-field select,
.sm4-editor textarea,
.sm4-tip {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d6ddea;
  border-radius: 12px;
  background: #fff;
  color: #2f3a4c;
}

.sm4-field input,
.sm4-field select {
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.sm4-editor textarea {
  min-height: 200px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  resize: vertical;
}

.sm4-editor-result textarea {
  min-height: 160px;
}

.sm4-editor-result-wide textarea {
  min-height: 180px;
}

.sm4-actions,
.sm4-sub-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sm4-actions {
  margin-top: 2px;
}

.sm4-actions button,
.sm4-sub-actions button {
  border: 1px solid #cfd7e4;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  background: #f4f8ff;
  color: #3b4f6a;
}

.sm4-actions .primary {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.sm4-actions .danger {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #fff;
}

.sm4-tip {
  min-height: 24px;
  border: 0;
  padding: 0;
  color: #526078;
}

.sm4-tip.error {
  color: #d43838;
}

.section-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #24415f;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  border: 1px solid #d7e7ff;
}

.sm4-guide-list {
  margin: 0;
  padding-left: 20px;
  color: #4c596d;
  line-height: 1.9;
}

@media (max-width: 960px) {
  .sm4-grid,
  .sm4-tabs,
  .sm4-inline-fields {
    grid-template-columns: 1fr;
  }
}
