:root {
  --bg: #efe8dc;
  --panel: #ffffff;
  --line: #e6ddd0;
  --text: #21312a;
  --muted: #6d756f;
  --brand: #2f6b55;
  --accent: #8b5a2b;
  --danger: #b5533f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #f7f2ea 0%, var(--bg) 100%);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 107, 85, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(48, 63, 54, 0.12);
}

.brand-line {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 10px;
  font-size: 28px;
}

.muted {
  color: var(--muted);
}

.field {
  display: block;
  margin-top: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field textarea,
.field select,
.section-actions select,
.toolbar-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbf8f3;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.field textarea {
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.secondary {
  background: #e7efe9;
  color: var(--brand);
}

.btn.full {
  width: 100%;
}

.error-text {
  color: var(--danger);
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #274d40 0%, #213d33 100%);
  color: #fff;
  padding: 20px;
}

.sidebar-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.account-name {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.nav {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.nav-group-title {
  margin-top: 8px;
  padding: 6px 6px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-item {
  text-align: left;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 12px 14px;
  cursor: pointer;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.18);
}

.main {
  padding: 24px;
}

.toolbar,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-right,
.section-actions,
.editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-actions.compact {
  margin-top: 8px;
}

.toolbar-input {
  min-width: 220px;
}

.toolbar-input.narrow {
  min-width: 120px;
  width: 120px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.metric-card,
.content-panel,
.editor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.workbench-kpi-grid {
  margin-top: 12px;
}

.workbench-kpi-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(47, 107, 85, 0.12);
  cursor: pointer;
}

.workbench-kpi-card:hover {
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(47, 107, 85, 0.12);
}

.metric-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.status-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbf8f3;
}

.status-item.ready {
  border-color: rgba(47, 107, 85, 0.22);
  background: #eef6f0;
}

.status-item.missing {
  border-color: rgba(181, 83, 63, 0.24);
  background: #fff1ed;
}

.status-item strong {
  color: var(--brand);
}

.status-item.missing strong {
  color: var(--danger);
}

.readiness-card {
  align-items: flex-start;
}

.readiness-card span {
  display: grid;
  gap: 6px;
}

.readiness-card small,
.readiness-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.commercial-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.commercial-roadmap article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(93, 65, 34, .12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0, rgba(217, 168, 82, .2), transparent 120px),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.commercial-roadmap strong,
.commercial-roadmap span {
  display: block;
}

.commercial-roadmap strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.commercial-roadmap span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.action-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbf8f3;
}

.action-item strong {
  color: var(--brand);
}

.action-item span {
  color: var(--muted);
  line-height: 1.6;
}

.workbench-detail-card {
  margin-top: 16px;
}

.metric-label {
  color: var(--muted);
  font-size: 14px;
}

.metric-value {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 700;
}

.content-panel,
.editor-card {
  margin-top: 22px;
}

.table-wrap {
  overflow: auto;
  margin-top: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.table-empty {
  color: var(--muted);
  text-align: center;
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.pill.pending {
  background: #f5e7d0;
  color: var(--accent);
}

.pill.done {
  background: #ddefe8;
  color: var(--brand);
}

.pill.info {
  background: #e8f0fb;
  color: #335e9b;
}

.pill.muted {
  background: #eef1ef;
  color: #74807a;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-actions .btn {
  padding: 8px 12px;
  font-size: 12px;
}

a {
  color: var(--brand);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.detail-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #fbf8f3;
  border: 1px solid var(--line);
}

.detail-item span {
  color: var(--muted);
  font-size: 13px;
}

.detail-item strong {
  font-size: 15px;
  word-break: break-word;
}

.detail-item-wide {
  grid-column: 1 / -1;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf8f3;
}

@media (max-width: 1080px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-roadmap {
    grid-template-columns: 1fr;
  }

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

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