/*
 * VICMED Pre-Meeting Briefing & Regulatory Workbench
 * Unslop-calibrated design system:
 * - Light archival-clinical neutral ramp (no gradients, no glows, no colored shadows, no emoji)
 * - Strict 4px spacing scale
 * - Typography weights 400 / 500 (600 rare emphasis), tabular figures for codes & metrics
 * - Single cobalt-slate accent (#1B4D7E), muted semantic amber/sage only where meaningful
 */

:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --raised: #f1f2ef;
  --row-active: #edf3f9;
  --ink: #141618;
  --ink-2: #464c54;
  --muted: #6e757f;
  --hairline: rgba(20, 22, 24, 0.09);
  --hairline-strong: rgba(20, 22, 24, 0.16);
  --accent: #1b4d7e;
  --accent-hover: #143b61;
  --accent-soft: #eef4fa;
  --sage: #1f6e4a;
  --sage-soft: #edf7f1;
  --amber: #9a5b13;
  --amber-soft: #fdf6ec;
  --red: #b42318;
  --red-soft: #fef3f2;
  --shadow-sm: 0 1px 2px rgba(20, 22, 24, 0.05);
  --shadow-float: 0 8px 24px rgba(20, 22, 24, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "SF Pro Text", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 140ms var(--ease);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Container */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Quiet Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--ink);
}

.wordmark-glyph {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.wordmark-sep {
  color: var(--hairline-strong);
}

.wordmark-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 400;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-action {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: background-color 140ms var(--ease);
}

.nav-action:hover {
  background: var(--accent);
}

/* Compact Editorial Hero — Workbench rises immediately below */
.hero {
  padding: 40px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  align-items: center;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.doc-meta-code {
  font-family: var(--font-mono);
  color: var(--ink-2);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 680px;
}

.hero-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 120ms var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.btn-secondary:hover {
  background: var(--raised);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 6px;
}

.text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Signature Right-Side Regulatory Index Block */
.hero-ledger {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}

.ledger-row + .ledger-row {
  border-top: 1px solid var(--hairline);
}

.ledger-k {
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ledger-v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Signature 6px Status Dots (used consistently everywhere) */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-accent { background: var(--accent); }
.dot-sage { background: var(--sage); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-muted { background: var(--muted); }

/* ===================================================
   MOMENT 1: REAL PROPORTION WORKBENCH SHELL
   =================================================== */
.workbench-section {
  padding: 8px 0 64px;
}

.workbench {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

/* Quiet App Sidebar */
.wb-sidebar {
  background: var(--raised);
  border-right: 1px solid var(--hairline);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.wb-brand {
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--hairline);
}

.wb-brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.wb-brand-meta {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.wb-group-label {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 8px 8px;
}

.wb-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wb-nav-item {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.wb-nav-item:hover {
  background: rgba(20, 22, 24, 0.04);
  color: var(--ink);
}

.wb-nav-item.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.wb-nav-item.active .icon {
  color: var(--accent);
}

.wb-nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.wb-foot {
  padding: 12px 8px 4px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.wb-foot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ink-2);
}

/* Main Workbench Canvas */
.wb-main {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.wb-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}

.wb-panel.active {
  display: flex;
}

.wb-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wb-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.wb-header-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.wb-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hairline);
}

.wb-metric {
  padding: 16px 24px;
}

.wb-metric + .wb-metric {
  border-left: 1px solid var(--hairline);
}

.wb-metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.wb-metric-num {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.wb-metric-num.is-accent { color: var(--accent); }
.wb-metric-num.is-amber { color: var(--amber); }
.wb-metric-num.is-sage { color: var(--sage); }

.wb-metric-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Filter Toolbar */
.wb-toolbar {
  padding: 12px 24px;
  border-bottom: 1px solid var(--hairline);
  background: #fbfbfa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ctl-select, .ctl-input {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}

.ctl-input {
  flex: 1;
  min-width: 160px;
}

.ctl-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.ctl-check input {
  margin: 0;
  accent-color: var(--amber);
}

.ctl-check.checked {
  border-color: rgba(154, 91, 19, 0.35);
  background: var(--amber-soft);
  color: var(--amber);
}

/* Split Table + Dossier Inspector */
.radar-split {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.table-pane {
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.mobile-scroll-cue {
  display: none;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--raised);
  border-bottom: 1px solid var(--hairline);
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 540px;
  -webkit-overflow-scrolling: touch;
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.reg-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.reg-table th:first-child,
.reg-table td:first-child {
  padding-left: 16px;
}

.reg-table th:last-child,
.reg-table td:last-child {
  padding-right: 16px;
}

.reg-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.reg-table tbody tr {
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}

.reg-table tbody tr:hover {
  background: #f9f9f7;
}

.reg-table tbody tr.selected {
  background: var(--row-active);
}

.cell-main {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

.cell-sub {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.reg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}

.status-line.is-amber { color: var(--amber); font-weight: 500; }
.status-line.is-red { color: var(--red); font-weight: 500; }
.status-line.is-sage { color: var(--sage); font-weight: 500; }
.status-line.is-accent { color: var(--accent); font-weight: 500; }

/* Dossier Inspector */
.dossier {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  background: var(--surface);
}

.dossier-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.dossier-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.dossier-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
  padding: 12px 16px;
  background: var(--raised);
  border-radius: 8px;
}

.spec-grid dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.spec-grid dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.dossier-note {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

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

.letter-card {
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfbfa;
}

.letter-bar {
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.seg {
  display: inline-flex;
  background: var(--raised);
  padding: 2px;
  border-radius: 6px;
}

.seg button {
  height: 24px;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.seg button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.letter-body {
  margin: 0;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

/* Tab 2: WhatsApp Compliance Desk */
.wa-desk {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 264px;
  flex: 1;
  min-width: 0;
}

.wa-col-left {
  padding: 16px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-scen {
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.wa-scen:hover {
  background: var(--raised);
}

.wa-scen.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wa-scen-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.wa-scen-sub {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.wa-col-mid {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--hairline);
}

.wa-thread-head {
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wa-thread-body {
  padding: 20px;
  background: #fbfbfa;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  max-height: 440px;
  overflow-y: auto;
}

.msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.msg.buyer {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.msg.ai {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid rgba(27, 77, 126, 0.16);
  color: var(--ink);
}

.msg-cite {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

.msg-zh {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline-strong);
  font-size: 12.5px;
  color: var(--ink-2);
}

.msg-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
}

.wa-quick {
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.wa-quick-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.wa-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.wa-col-right {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.guard-block {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.guard-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guard-k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.guard-v {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Tab 3: Expo 48h Follow-up */
.expo-desk {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: start;
}

.expo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.biz-card {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.biz-card-top {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.biz-card h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.biz-card-role {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.biz-card-meta {
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.voice-note {
  background: var(--raised);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.voice-note-head {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-note p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
}

.expo-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kv-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* Tab 4: Executive View & ROI */
.exec-desk {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.exec-block h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.exec-block-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.bar-row {
  margin-bottom: 16px;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-2);
}

.bar-top strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

.bar-track {
  height: 6px;
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--ink-2);
}

.bar-fill.is-accent {
  background: var(--accent);
}

.notice-list {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
}

.notice-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice-row .dot {
  margin-top: 7px;
}

.roi-box {
  background: var(--raised);
  border-radius: 10px;
  padding: 20px;
}

.roi-field {
  margin-bottom: 16px;
}

.roi-field-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.roi-field-top strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

.roi-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.roi-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-strong);
}

.roi-total-k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.roi-total-v {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.roi-total-v.is-accent {
  color: var(--accent);
}

.roi-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===================================================
   MOMENT 2: EDITORIAL SWISS-RULED BRIEFING SECTIONS
   (Zero template cards, clean ruled tables & typography)
   =================================================== */
.editorial-section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.editorial-head {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 32px;
  align-items: baseline;
}

.editorial-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.editorial-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.editorial-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 640px;
}

/* Ruled Comparison Table */
.ruled-table-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ruled-table {
  width: 100%;
  border-collapse: collapse;
}

.ruled-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--raised);
  border-bottom: 1px solid var(--hairline);
}

.ruled-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.6;
}

.ruled-table tr:last-child td {
  border-bottom: none;
}

.ruled-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 22%;
  white-space: nowrap;
}

.ruled-table td:nth-child(3) {
  color: var(--ink);
}

.inline-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 16px;
  border-left: 2px solid var(--hairline-strong);
  max-width: 780px;
}

/* Ruled 4-Stage Pipeline Rows */
.spec-rows {
  border-top: 1px solid var(--hairline-strong);
}

.spec-row {
  display: grid;
  grid-template-columns: 72px 220px minmax(0, 1fr) 240px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.spec-row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.spec-row-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.spec-row-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

.spec-row-out {
  font-size: 13px;
  color: var(--muted);
}

/* 90-Day & Engagement Spec Sheet */
.plan-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: start;
}

.phase-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.phase-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.phase-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 2px;
}

.phase-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.phase-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.option-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px 24px;
}

.option-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.option-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.option-kicker {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.option-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.option-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* Quiet Author Sign-off on Same Paper Surface */
.signoff {
  padding: 48px 0 64px;
  border-top: 1px solid var(--hairline);
}

.signoff-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.signoff h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.signoff p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.fact-line {
  font-size: 13px;
  color: var(--muted);
}

.contact-list {
  border-top: 1px solid var(--hairline);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
}

.contact-row span:first-child {
  color: var(--muted);
  white-space: nowrap;
}

.contact-row a, .contact-row span:last-child {
  font-weight: 500;
  white-space: nowrap;
}

.site-foot {
  padding: 20px 0 36px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Quiet Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  max-width: 340px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive (Tablet & Mobile WeChat) */
@media (max-width: 1024px) {
  .hero-grid,
  .workbench,
  .radar-split,
  .wa-desk,
  .expo-desk,
  .exec-desk,
  .editorial-head,
  .spec-row,
  .plan-grid,
  .signoff-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench {
    min-height: 0;
  }

  .wb-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 16px;
    gap: 12px;
    max-width: 100%;
  }

  .wb-brand, .wb-group-label, .wb-foot {
    display: none;
  }

  .wb-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    max-width: 100%;
  }

  .wb-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

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

  .wb-metric:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .wb-metric:nth-child(4) {
    border-top: 1px solid var(--hairline);
  }

  .table-pane {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .wa-col-left, .wa-col-mid {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    min-width: 0;
  }

  .expo-desk > *,
  .exec-desk > * {
    min-width: 0;
  }

  .spec-row {
    gap: 6px;
    padding: 16px 0;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow, .topbar-inner {
    padding: 0 16px;
  }

  .wordmark-sep, .wordmark-sub {
    display: none;
  }

  .hero {
    padding: 24px 0 20px;
  }

  .wb-header, .wb-toolbar, .dossier, .expo-desk, .exec-desk {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wb-toolbar .ctl-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .wb-toolbar .ctl-input,
  .wb-toolbar .ctl-check {
    flex: 1 1 100%;
    min-width: 0;
  }

  .wb-metric {
    padding: 12px 16px;
  }

  .wb-metric-num {
    font-size: 20px;
  }

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

  .mobile-scroll-cue {
    display: block;
  }

  .reg-table {
    min-width: 560px;
  }

  .ruled-table {
    min-width: 580px;
  }

  .ruled-table td:first-child {
    white-space: normal;
  }

  .phase-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .roi-totals {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-section {
    padding: 44px 0;
  }
}
