: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;
}

.sm2-tool {
  display: grid;
  gap: 18px;
}

.sm2-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #d8dfeb;
  border-radius: 14px;
  overflow: hidden;
  background: #fbfdff;
}

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

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

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

.sm2-pane {
  display: none;
  gap: 16px;
}

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

.sm2-grid,
.sm2-inline-grid {
  display: grid;
  gap: 16px;
}

.sm2-grid {
  grid-template-columns: 1fr 1fr;
}

.sm2-inline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

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

.sm2-editor.short textarea {
  min-height: 128px;
}

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

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

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

.sm2-actions .secondary {
  background: #2d8cf0;
  border-color: #2d8cf0;
  color: #fff;
}

.sm2-status,
.sm2-tip {
  min-height: 52px;
  padding: 14px 16px;
  line-height: 1.8;
}

.sm2-status {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  white-space: pre-wrap;
}

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

.sm2-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;
}

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

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