:root {
  color-scheme: light;
  --paper: #fafaf8;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --grey-1: #f0f0ee;
  --grey-2: #d4d4d2;
  --grey-3: #666664;
  --accent: #ff6b35;
  --accent-on: #ffffff;
  --danger: #b72d25;
  --success: #19704d;
  --grid: minmax(0, 1200px);
  font-family: Inter, "Helvetica Neue", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 5rem; line-height: 0.98; font-weight: 250; letter-spacing: 0; }
h2 { font-size: 2rem; line-height: 1.15; font-weight: 400; letter-spacing: 0; }
h3 { font-size: 1rem; font-weight: 600; }
small { display: block; }
svg { width: 18px; height: 18px; stroke-width: 1.6; flex: 0 0 auto; }

.portal { width: min(calc(100% - 48px), 1280px); margin: 0 auto; padding-bottom: 64px; }
.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.wordmark { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0; }
.wordmark span { color: var(--accent); }
.topbar-meta { color: var(--grey-3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar .header-actions { justify-content: flex-end; }
.topbar > .button { width: fit-content; justify-self: end; }
.header-actions, .sku-tabs, .resource-actions, .inline-form, .admin-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.button, .icon-button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover, .icon-button:hover { color: var(--accent-on); background: var(--ink); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}
.button.primary { color: var(--accent-on); background: var(--ink); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }
.button.is-loading { cursor: wait; opacity: 0.7; }
.danger-button { color: var(--danger); border-color: var(--danger); }
.danger-button:hover { color: white; background: var(--danger); }

.project-hero {
  min-height: 360px;
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.7fr);
  align-items: end;
  gap: 48px;
  border-bottom: 1px solid var(--ink);
}
.project-hero h1 { max-width: 980px; }
.project-hero p { max-width: 680px; margin-top: 20px; color: var(--grey-3); font-size: 1.05rem; }
.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-status { display: grid; justify-items: end; gap: 16px; }
.status-badge {
  padding: 10px 12px;
  color: var(--ink);
  background: var(--grey-1);
  font-size: 0.82rem;
  font-weight: 600;
}
.status-line { display: inline-flex; align-items: center; gap: 8px; color: var(--grey-3); font-size: 0.8rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; background: var(--accent); }

.project-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.fact { min-height: 104px; padding: 18px 16px; border-right: 1px solid var(--grey-2); }
.fact:last-child { border-right: 0; }
.fact span { display: block; color: var(--grey-3); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.06em; }
.fact strong { display: block; margin-top: 10px; font-size: 1rem; font-weight: 500; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.metric { min-height: 180px; padding: 26px 24px; border-right: 1px solid var(--grey-2); }
.metric:last-child { border-right: 0; }
.metric > span { display: block; color: var(--grey-3); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.12em; }
.metric strong {
  display: block;
  margin-top: 24px;
  font-size: 4rem;
  line-height: 1;
  font-weight: 260;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
#time-saved { font-size: 3rem; white-space: nowrap; }
.metric small { margin-top: 12px; color: var(--grey-3); font-size: 0.82rem; }
.metric.accent { color: var(--accent-on); background: var(--accent); }
.metric.accent > span, .metric.accent small { color: var(--accent-on); }

.value-board { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.value-block { padding: 22px 24px; background: var(--surface); }
.value-block + .value-block { border-left: 1px solid var(--ink); }
.value-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.value-block-head span { color: var(--accent); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; }
.value-block-head strong { font-size: 1rem; font-weight: 500; }
.value-lines { display: grid; grid-template-columns: 1fr 1fr; }
.value-line { min-height: 104px; padding: 17px 0; border-bottom: 1px solid var(--grey-2); }
.value-line:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--grey-2); }
.value-line:nth-child(even) { padding-left: 20px; }
.value-line span { display: block; color: var(--grey-3); font-size: 0.76rem; }
.value-line strong { display: block; margin-top: 10px; font-size: 1.55rem; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; }
.value-line small { display: block; margin-top: 8px; color: var(--grey-3); font-size: 0.72rem; line-height: 1.45; }
.value-line:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.value-note { margin-top: 12px; color: var(--grey-3); font-size: 0.76rem; }

.section { margin-top: 64px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.section-head > div { display: flex; align-items: baseline; gap: 14px; }
.section-head > span { color: var(--grey-3); font-size: 0.82rem; }
.section-index { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.75rem; font-weight: 650; }

.table-wrap { width: 100%; overflow-x: auto; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; color: var(--ink); }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--grey-2); text-align: left; vertical-align: top; }
.data-table th {
  color: var(--grey-3);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.data-table td { font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color 140ms ease; }
.data-table tbody tr:hover { background: var(--grey-1); }
.data-table small { margin-top: 4px; color: var(--grey-3); font-size: 0.76rem; }
.data-table .value-cell { font-variant-numeric: tabular-nums; }
.data-table .active-row { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.sku-tabs { margin-bottom: 18px; }
.sku-tab { min-width: 68px; border-color: var(--grey-2); }
.sku-tab.active { color: var(--accent-on); background: var(--ink); border-color: var(--ink); }
.sku-summary {
  min-height: 72px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.7fr) 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
  font-size: 0.86rem;
}
.sku-summary span { color: var(--grey-3); }
.progress { width: 100%; height: 6px; overflow: hidden; background: var(--grey-2); }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 260ms ease; }

.project-workspace { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr); align-items: start; border: 1px solid var(--ink); }
.item-table-wrap { border-right: 1px solid var(--ink); }
.item-table th:nth-child(4), .item-table td:nth-child(4) { white-space: nowrap; }
.detail {
  min-width: 0;
  padding: 24px;
  position: sticky;
  top: 12px;
  background: var(--paper);
}
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-head h2 { max-width: 320px; }
.detail-head p { margin-top: 8px; color: var(--grey-3); font-size: 0.8rem; }
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0; background: var(--grey-2); border: 1px solid var(--grey-2); }
.stage {
  min-height: 92px;
  padding: 10px;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-size: 0.78rem;
}
.stage span { display: block; margin-bottom: 6px; color: var(--grey-3); font-size: 0.68rem; }
.stage small { margin-top: 8px; color: var(--grey-3); font-size: 0.66rem; line-height: 1.35; }
.stage.done { background: var(--grey-1); }
.stage.current { color: var(--accent-on); background: var(--accent); }
.stage.current span, .stage.current small { color: var(--accent-on); }
.stage.skipped { color: var(--grey-3); background: var(--paper); }
.stage.selected { outline: 2px solid var(--ink); outline-offset: -2px; }
.detail .header-actions { margin: 18px 0; }
.detail > p { margin-top: 12px; font-size: 0.86rem; }
.detail > p:last-child { color: var(--grey-3); }
.delivery-panel { margin-top: 16px; border-top: 1px solid var(--ink); }
.resource-group { border-bottom: 1px solid var(--grey-2); }
.resource-group summary { min-height: 46px; padding: 12px 0; cursor: pointer; font-size: 0.84rem; font-weight: 650; }
.resource-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--grey-2); }
.resource-row strong { font-size: 0.82rem; }
.resource-row small { margin-top: 3px; color: var(--grey-3); font-size: 0.72rem; }
.resource-actions { justify-content: flex-end; }
.resource-actions .button { min-height: 36px; padding: 0 10px; font-size: 0.75rem; }
.resource-preview { grid-column: 1 / -1; margin-top: 8px; padding: 12px; color: var(--grey-3); background: var(--grey-1); font-size: 0.78rem; }

footer {
  margin-top: 72px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  border-top: 1px solid var(--ink);
  color: var(--grey-3);
  font-size: 0.72rem;
}
footer span:first-child { color: var(--ink); font-weight: 650; letter-spacing: 0.08em; }

.access-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  background: var(--accent);
}
.access-screen::before {
  content: "GOODX";
  display: flex;
  align-items: flex-end;
  padding: 5vw;
  color: rgba(255, 255, 255, 0.12);
  font-size: 12rem;
  line-height: 0.8;
  font-weight: 200;
  letter-spacing: 0;
  overflow: hidden;
}
.access-form {
  min-height: 100dvh;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--paper);
}
.login-chrome {
  position: absolute;
  inset: 24px 32px auto;
  display: flex;
  justify-content: space-between;
  color: var(--grey-3);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}
.login-index { margin-bottom: 26px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 0.78rem; font-weight: 650; }
.access-form h1 { max-width: 430px; font-size: 4rem; }
.access-form > p { max-width: 430px; margin: 22px 0 38px; color: var(--grey-3); }
label { display: grid; gap: 7px; margin-bottom: 16px; }
label span { color: var(--grey-3); font-size: 0.76rem; font-weight: 600; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--surface);
}
.access-form .button { width: 100%; min-height: 50px; }
.error { min-height: 24px; margin-top: 12px; color: var(--danger); font-size: 0.82rem; }
.message { min-height: 24px; margin-top: 12px; color: var(--success); font-size: 0.82rem; }

.admin-hero { min-height: 300px; }
.admin-portal .topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.service-control-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.36fr) minmax(260px, 0.64fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
}
.service-control-board label { margin: 0; }
.service-control-board label span, .control-label {
  display: block;
  color: var(--grey-2);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.service-control-board strong { display: block; margin-top: 8px; font-size: 1.45rem; font-weight: 350; }
.service-control-board p { margin-top: 8px; color: var(--grey-2); font-size: 0.8rem; }
.service-control-board select { border-color: var(--surface); }
.service-control-board .button { color: var(--ink); background: var(--surface); border-color: var(--surface); }
.service-control-board .button:hover { color: var(--surface); background: var(--accent); border-color: var(--accent); }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--grey-2); }
.summary-strip > div { min-height: 94px; padding: 16px; border-right: 1px solid var(--grey-2); border-bottom: 1px solid var(--grey-2); }
.summary-strip > div:nth-child(3n) { border-right: 0; }
.summary-strip > div:nth-last-child(-n + 3) { border-bottom: 0; }
.summary-strip span { display: block; color: var(--grey-3); font-size: 0.7rem; }
.summary-strip strong { display: block; margin-top: 12px; font-size: 1.35rem; font-weight: 350; }
.back-button {
  min-height: 36px;
  margin-bottom: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--grey-3);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
}
.back-button:hover { color: var(--accent); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.form-grid label { min-width: 0; margin: 0; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}
.new-project-panel {
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--surface);
}
.overview-editor { border: 1px solid var(--ink); background: var(--surface); }
.form-subsection {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1fr);
  gap: 32px;
  padding: 26px;
  border-bottom: 1px solid var(--grey-2);
}
.form-subsection h3 {
  padding-top: 27px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overview-editor > .form-actions { padding: 20px 26px; }
.access-control { padding: 22px; background: var(--surface); border: 1px solid var(--ink); }
.access-control .section-head { margin-bottom: 20px; }
.access-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  margin-bottom: 22px;
  border-top: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
}
.access-summary > div { min-width: 0; padding: 18px 16px; }
.access-summary > div + div { border-left: 1px solid var(--grey-2); }
.access-summary span { display: block; color: var(--grey-3); font-size: 0.72rem; font-weight: 650; }
.access-summary strong, .access-summary a {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 500;
}
.access-code {
  padding: 5px 7px;
  color: var(--accent-on);
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 650;
}
.stage-label {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
}
.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
}
.portfolio-metrics > div {
  min-height: 148px;
  padding: 22px;
  border-right: 1px solid var(--grey-2);
  background: var(--surface);
}
.portfolio-metrics > div:last-child { border-right: 0; }
.portfolio-metrics span, .portfolio-evidence span, .portfolio-progress span {
  display: block;
  color: var(--grey-3);
  font-size: 0.72rem;
  font-weight: 650;
}
.portfolio-metrics strong {
  display: block;
  margin-top: 20px;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 280;
  font-variant-numeric: tabular-nums;
}
.portfolio-metrics small { margin-top: 12px; color: var(--grey-3); font-size: 0.72rem; }
.portfolio-metrics .accent { color: var(--accent-on); background: var(--accent); }
.portfolio-metrics .accent span, .portfolio-metrics .accent small { color: var(--accent-on); }
.portfolio-progress {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.portfolio-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.portfolio-progress strong { font-size: 0.9rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.portfolio-evidence {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.portfolio-evidence > div { min-height: 84px; padding: 15px 16px; border-right: 1px solid var(--grey-2); }
.portfolio-evidence > div:last-child { border-right: 0; }
.portfolio-evidence strong { display: block; margin-top: 9px; font-size: 1rem; font-weight: 450; font-variant-numeric: tabular-nums; }
.order-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
}
.order-summary-strip > div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--grey-2);
  background: var(--surface);
}
.order-summary-strip > div:last-child { border-right: 0; }
.order-summary-strip span {
  display: block;
  color: var(--grey-3);
  font-size: 0.72rem;
  font-weight: 650;
}
.order-summary-strip strong {
  display: block;
  margin-top: 18px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.order-summary-strip small { margin-top: 10px; color: var(--grey-3); font-size: 0.7rem; }
.order-summary-strip .accent { color: var(--accent-on); background: var(--accent); }
.order-summary-strip .accent span, .order-summary-strip .accent small { color: var(--accent-on); }
.order-list-table { min-width: 1480px; }
.order-list-table th:nth-child(1) { width: 11%; }
.order-list-table th:nth-child(2) { width: 16%; }
.order-list-table th:nth-child(3) { width: 18%; }
.order-list-table th:nth-child(5) { width: 21%; }
.order-status-pill {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 7px;
  display: block;
  color: var(--grey-3);
  background: var(--grey-1);
  font-size: 0.68rem;
  font-weight: 650;
}
.order-status-pill.payment_confirmed, .order-status-pill.converted { color: white; background: var(--success); }
.order-status-pill.cancelled { color: white; background: var(--danger); }
.project-list-table { min-width: 1480px; }
.project-list-table th:nth-child(1) { width: 16%; }
.project-list-table th:nth-child(4) { width: 18%; }
.project-list-table th:nth-child(7) { width: 22%; }
.project-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.project-value-cell > strong { font-size: 1.1rem; font-weight: 500; }
.mini-progress { width: 100%; height: 4px; margin: 10px 0 7px; background: var(--grey-2); }
.mini-progress span { display: block; height: 100%; background: var(--accent); }
.project-evidence-cell > span { display: block; margin-bottom: 5px; color: var(--grey-3); font-size: 0.76rem; }
.next-action-line { padding: 0 0 9px; }
.next-action-line:last-child { padding-bottom: 0; }
.next-action-line strong, .next-action-line span { display: block; }
.next-action-line strong { font-size: 0.78rem; }
.next-action-line span { margin-top: 2px; color: var(--grey-3); font-size: 0.72rem; }
.empty-state { padding: 36px !important; color: var(--grey-3); text-align: center !important; }
.admin-actions { align-items: flex-end; justify-content: space-between; }
.inline-form { align-items: flex-end; }
.inline-form label { min-width: 190px; margin: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr); gap: 0; align-items: start; border: 1px solid var(--ink); }
.admin-grid .table-wrap { border-right: 1px solid var(--ink); }
.edit-panel { padding: 24px; background: var(--paper); }
.edit-panel h3 { margin-bottom: 20px; font-size: 1.3rem; font-weight: 400; }
.edit-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.edit-panel-head h3 { margin-bottom: 4px; }
.edit-panel-head p { color: var(--grey-3); font-size: 0.75rem; }
.template-state-bar {
  margin-bottom: 18px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
}
.template-state-bar span, .template-state-bar small { display: block; color: var(--grey-3); font-size: 0.7rem; }
.template-state-bar strong { display: block; margin: 4px 0; font-size: 0.9rem; font-weight: 550; }
.value-status-control {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}
.value-status-field { min-width: 0; }
.value-status-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--grey-3);
  font-size: 0.72rem;
}
.value-status-segments {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
}
.value-status-segments button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}
.value-status-segments button:last-child { border-right: 0; }
.value-status-segments button.active {
  color: var(--paper);
  background: var(--ink);
}
.value-status-segments button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
#value-status-note {
  min-width: 0;
  min-height: 70px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--grey-2);
  color: var(--grey-3);
  font-size: 0.75rem;
  line-height: 1.55;
}
.calculation-note {
  margin: 12px 0;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--grey-2);
}
.calculation-note strong { font-size: 0.78rem; font-weight: 600; }
.calculation-note span { color: var(--grey-3); font-size: 0.72rem; line-height: 1.55; }
.item-value-reference {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--grey-2);
}
.item-value-reference > div {
  min-height: 76px;
  padding: 12px 14px;
  border-right: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
}
.item-value-reference > div:nth-child(3n) { border-right: 0; }
.item-value-reference > div:nth-last-child(-n + 3) { border-bottom: 0; }
.item-value-reference > div.accent { background: var(--ink); color: var(--paper); }
.item-value-reference span { display: block; color: var(--grey-3); font-size: 0.68rem; }
.item-value-reference .accent span { color: #b7b7b7; }
.item-value-reference strong { display: block; margin-top: 8px; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.template-sync-check {
  margin: 16px 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px 10px;
  border: 1px solid var(--grey-2);
  background: var(--surface);
}
.template-sync-check input { width: 18px; min-height: 18px; margin: 0; grid-row: 1 / span 2; }
.template-sync-check span { color: var(--ink); font-size: 0.8rem; font-weight: 550; }
.template-sync-check small { color: var(--grey-3); font-size: 0.7rem; line-height: 1.5; }
.value-reference-note { margin-top: 12px; border-top: 1px solid var(--grey-2); }
.value-reference-note summary { padding: 12px 0; cursor: pointer; font-size: 0.76rem; font-weight: 600; }
.value-reference-note p { margin: 0 0 12px; color: var(--grey-3); font-size: 0.76rem; line-height: 1.65; }
.item-created-value {
  margin: 20px 0;
  border: 1px solid var(--ink);
  background: var(--surface);
}
.item-created-value-head {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper);
  background: var(--ink);
}
.item-created-value-head span { font-size: 0.8rem; font-weight: 600; }
.item-created-value-head strong { color: var(--accent); font-size: 0.72rem; font-weight: 650; }
.item-created-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.item-created-value-grid > div {
  min-height: 76px;
  padding: 12px 14px;
  border-right: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
}
.item-created-value-grid > div:nth-child(3n) { border-right: 0; }
.item-created-value-grid > div:nth-last-child(-n + 3) { border-bottom: 0; }
.item-created-value-grid span { display: block; color: var(--grey-3); font-size: 0.68rem; line-height: 1.4; }
.item-created-value-grid strong { display: block; margin-top: 8px; font-size: 0.95rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.item-created-value .value-reference-note { margin: 0 14px; }
.edit-section-title {
  margin: 22px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-create-bar {
  margin-bottom: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--surface);
}
.item-create-bar label { margin: 0; }
.check-label { min-height: 48px; display: flex; align-items: center; gap: 8px; }
.check-label input { width: 18px; min-height: 18px; margin: 0; }
.check-label span { color: var(--ink); }
.service-pill {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--grey-2);
  font-size: 0.72rem;
  font-weight: 650;
}
.service-pill.active { color: var(--success); border-color: var(--success); }
.service-pill.paused { color: var(--danger); border-color: var(--danger); }
.service-pill.completed { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.practice-panel, .client-stage-guide {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.product-scope-panel { margin: 20px 0; border: 1px solid var(--ink); background: var(--surface); }
.product-scope-head { min-height: 52px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--surface); background: var(--ink); }
.product-scope-head span { font-size: 0.72rem; letter-spacing: 0.08em; }
.product-scope-head strong { color: var(--accent); font-size: 0.88rem; }
.product-scope-tags { padding: 16px; display: flex; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid var(--grey-2); }
.product-scope-tags span { padding: 7px 9px; border: 1px solid var(--grey-2); font-size: 0.74rem; background: var(--paper); }
.product-channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.product-channel-grid > div { min-height: 104px; padding: 14px 16px; }
.product-channel-grid > div + div { border-left: 1px solid var(--grey-2); }
.product-channel-grid span, .product-saving-proof { color: var(--grey-3); font-size: 0.72rem; }
.product-channel-grid strong { display: block; margin-top: 8px; font-size: 0.8rem; line-height: 1.65; }
.product-saving-proof { margin: 0; padding: 14px 16px; border-top: 1px solid var(--grey-2); color: var(--ink); background: var(--accent-soft); }
.public-demo-banner { padding: 14px 4vw; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; color: var(--surface); background: var(--accent); }
.public-demo-banner span { font: 700 0.66rem ui-monospace, monospace; letter-spacing: 0.08em; }
.public-demo-banner strong { font-size: 0.76rem; }
.public-demo-banner a { color: var(--surface); font-size: 0.74rem; font-weight: 700; text-decoration: none; }
.practice-kicker, .guide-index {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.practice-panel h3, .client-stage-guide h3 { margin: 6px 0 14px; font-size: 1.35rem; font-weight: 400; }
.stage-problem {
  padding: 15px 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
}
.stage-problem span, .practice-columns span, .client-guide-columns span, .guide-value span, .completion-line span {
  color: var(--grey-3);
  font-size: 0.7rem;
  font-weight: 650;
}
.stage-problem strong { font-size: 1rem; font-weight: 500; }
.practice-lead, .guide-intro { margin-top: 16px; color: var(--grey-3); font-size: 0.84rem; }
.practice-columns, .client-guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border: 1px solid var(--grey-2);
}
.practice-columns > div, .client-guide-columns > div { padding: 16px; }
.practice-columns > div + div, .client-guide-columns > div + div { border-left: 1px solid var(--grey-2); }
.practice-columns ul, .client-guide-columns ul { margin: 10px 0 0; padding-left: 18px; }
.practice-columns li, .client-guide-columns li { margin-top: 7px; font-size: 0.78rem; }
.practice-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--grey-2); border: 1px solid var(--grey-2); }
.practice-path { padding: 16px; background: var(--surface); }
.practice-path strong { font-size: 0.82rem; }
.practice-path ol { margin: 10px 0 0; padding-left: 18px; }
.practice-path li { margin-top: 6px; color: var(--grey-3); font-size: 0.74rem; }
.checklist-panel { margin-top: 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.checklist-panel summary { padding: 12px 0; cursor: pointer; font-size: 0.8rem; font-weight: 650; }
.checklist-panel > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--grey-2); }
.checklist-panel > div span { padding: 9px 10px; border-right: 1px solid var(--grey-2); border-bottom: 1px solid var(--grey-2); font-size: 0.74rem; }
.checklist-panel > div span:nth-child(2n) { border-right: 0; }
.guide-value, .completion-line {
  margin-top: 18px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--grey-2);
}
.guide-value strong, .completion-line strong { font-size: 0.82rem; font-weight: 500; }
.upload-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-2);
}
.upload-row small { color: var(--grey-3); font-size: 0.76rem; }
.upload-row input[type="file"] { margin-top: 8px; padding: 8px; }

@media (max-width: 980px) {
  h1 { font-size: 4rem; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-meta { display: none; }
  .project-hero { grid-template-columns: 1fr; min-height: 320px; }
  .hero-status { justify-items: start; }
  .project-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(-n + 3) { border-bottom: 1px solid var(--grey-2); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--grey-2); }
  .project-workspace, .admin-grid { grid-template-columns: 1fr; }
  .item-table-wrap, .admin-grid .table-wrap { border-right: 0; border-bottom: 1px solid var(--ink); }
  .detail { position: static; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-subsection { grid-template-columns: 1fr; gap: 16px; }
  .form-subsection h3 { padding-top: 0; }
  .service-control-board { grid-template-columns: 1fr 1fr; }
  .service-control-board > div { grid-column: 1 / -1; }
  .item-create-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-metrics > div:nth-child(2) { border-right: 0; }
  .portfolio-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--grey-2); }
  .portfolio-progress { grid-template-columns: 1fr; gap: 10px; }
  .portfolio-evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-evidence > div:nth-child(3n) { border-right: 0; }
  .portfolio-evidence > div:nth-child(-n + 3) { border-bottom: 1px solid var(--grey-2); }
  .order-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-summary-strip > div:nth-child(2) { border-right: 0; }
  .order-summary-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--grey-2); }
}

@media (max-width: 680px) {
  :root { font-size: 15px; }
  .portal { width: min(calc(100% - 24px), 1280px); }
  .topbar { min-height: 64px; }
  .topbar .header-actions .icon-button { width: 44px; padding: 0; font-size: 0; }
  .project-hero { padding: 44px 0 30px; }
  h1, .project-hero h1, .access-form h1 { font-size: 2.8rem; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 1px solid var(--grey-2); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n + 4) { border-bottom: 1px solid var(--grey-2); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 144px; padding: 20px 16px; }
  .metric strong { font-size: 2.7rem; }
  #time-saved { font-size: 2.2rem; }
  .section { margin-top: 48px; }
  .section-head { align-items: flex-start; }
  .section-head > span { max-width: 180px; text-align: right; }
  .sku-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-2); }
  .sku-tab { width: 100%; min-width: 0; border-color: transparent; background: var(--surface); }
  .sku-summary { grid-template-columns: 1fr; gap: 10px; }
  .value-board { grid-template-columns: 1fr; }
  .value-block + .value-block { border-top: 1px solid var(--ink); border-left: 0; }
  .value-line strong { font-size: 1.35rem; }
  .action-table thead, .item-table thead { display: none; }
  .action-table, .action-table tbody, .item-table, .item-table tbody { display: block; }
  .action-table tr, .item-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 16px;
    border-bottom: 1px solid var(--grey-2);
  }
  .action-table td, .item-table td { min-width: 0 !important; padding: 0; border: 0; }
  .action-table td:nth-child(2), .item-table td:nth-child(3) { grid-column: 1 / -1; color: var(--grey-3); }
  .action-table td:nth-child(3), .item-table td:nth-child(4) { font-variant-numeric: tabular-nums; }
  .item-table td:last-child { grid-column: 2; grid-row: 1 / span 2; }
  .item-table td:last-child .button { width: 44px; padding: 0; font-size: 0; }
  .item-table td:last-child .button svg { width: 18px; height: 18px; }
  .stage-grid { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 1fr; }
  .resource-actions { justify-content: flex-start; }
  footer { grid-template-columns: 1fr; gap: 8px; }
  .access-screen { grid-template-columns: 1fr; background: var(--paper); }
  .access-screen::before { display: none; }
  .access-form { padding: 80px 24px 32px; }
  .login-chrome { inset: 20px 24px auto; }
  .admin-actions, .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label, .inline-form .button, .admin-actions > .button { width: 100%; }
  .upload-row { grid-template-columns: 1fr; }
  .admin-portal .topbar { grid-template-columns: 1fr auto; }
  .admin-portal .header-actions .button { width: 44px; padding: 0; font-size: 0; }
  .admin-portal .header-actions .button svg { width: 18px; height: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .new-project-panel { padding: 18px; }
  .form-subsection { padding: 20px 18px; }
  .overview-editor > .form-actions { padding: 18px; }
  .overview-editor > .form-actions .button { width: 100%; }
  .access-summary { grid-template-columns: 1fr; }
  .access-summary > div + div { border-top: 1px solid var(--grey-2); border-left: 0; }
  .service-control-board { grid-template-columns: 1fr; padding: 18px; }
  .service-control-board > div { grid-column: auto; }
  .service-control-board .button { width: 100%; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip > div:nth-child(3n) { border-right: 1px solid var(--grey-2); }
  .summary-strip > div:nth-child(2n) { border-right: 0; }
  .summary-strip > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--grey-2); }
  .summary-strip > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .item-create-bar, .compact-grid { grid-template-columns: 1fr; }
  .value-status-control, .calculation-note { grid-template-columns: 1fr; }
  .item-value-reference { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-value-reference > div:nth-child(3n) { border-right: 1px solid var(--grey-2); }
  .item-value-reference > div:nth-child(2n) { border-right: 0; }
  .item-value-reference > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--grey-2); }
  .item-value-reference > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .item-created-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-created-value-grid > div:nth-child(3n) { border-right: 1px solid var(--grey-2); }
  .item-created-value-grid > div:nth-child(2n) { border-right: 0; }
  .item-created-value-grid > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--grey-2); }
  .item-created-value-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .template-state-bar { align-items: flex-start; }
  .item-create-bar .button { width: 100%; }
  .edit-panel-head { flex-direction: column; }
  .edit-panel-head .button { width: 100%; }
  .practice-columns, .client-guide-columns, .practice-paths { grid-template-columns: 1fr; }
  .product-channel-grid { grid-template-columns: 1fr; }
  .product-channel-grid > div + div { border-top: 1px solid var(--grey-2); border-left: 0; }
  .public-demo-banner { grid-template-columns: 1fr; gap: 6px; }
  .practice-columns > div + div, .client-guide-columns > div + div { border-top: 1px solid var(--grey-2); border-left: 0; }
  .stage-problem, .guide-value, .completion-line { grid-template-columns: 1fr; gap: 6px; }
  .portfolio-metrics { grid-template-columns: 1fr; }
  .portfolio-metrics > div { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--grey-2); }
  .portfolio-metrics > div:last-child { border-bottom: 0; }
  .portfolio-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--grey-2); }
  .portfolio-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-evidence > div:nth-child(3n) { border-right: 1px solid var(--grey-2); }
  .portfolio-evidence > div:nth-child(2n) { border-right: 0; }
  .portfolio-evidence > div:nth-child(-n + 4) { border-bottom: 1px solid var(--grey-2); }
  .order-summary-strip { grid-template-columns: 1fr; }
  .order-summary-strip > div { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--grey-2); }
  .order-summary-strip > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.manual-order-form,
.growth-form {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--grey-2);
}
.sales-create-panel {
  margin-top: 0;
  border: 0;
}
.sales-create-panel > summary {
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--grey-2);
}
.sales-create-panel > summary b {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.sales-create-panel[open] > summary { border-bottom: 0; }
.sales-create-panel > form {
  border-top: 0;
}
.next-action-label {
  color: var(--grey-3);
  font-size: 0.72rem;
  font-weight: 600;
}
.subtle-action {
  min-height: 32px;
  padding: 6px 9px;
  border-color: transparent;
  color: var(--grey-3);
  font-size: 0.68rem;
}
.subtle-action:hover { color: var(--danger); border-color: var(--danger); }
.order-list-table th:last-child,
.order-list-table td:last-child { min-width: 170px; }
.order-list-table td { vertical-align: top; }
.order-list-table .project-row-actions {
  align-items: flex-start;
  gap: 7px;
}
.customer-workbench-table td { vertical-align: top; }
.customer-workbench-table th:last-child,
.customer-workbench-table td:last-child { min-width: 170px; }
.customer-filter-bar {
  margin-bottom: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--grey-2);
}
.customer-filter-bar button {
  min-height: 40px;
  padding: 8px 15px;
  border: 0;
  border-right: 1px solid var(--grey-2);
  color: var(--grey-3);
  background: var(--surface);
  cursor: pointer;
}
.customer-filter-bar button:last-child { border-right: 0; }
.customer-filter-bar button.active { color: var(--accent-on); background: var(--accent); }
.customer-group-row td {
  padding: 13px 15px;
  color: var(--ink);
  background: var(--grey-1);
  border-top: 1px solid var(--ink);
}
.customer-group-row strong { font-size: 0.9rem; }
.customer-group-row span { margin-left: 8px; color: var(--grey-3); font-size: 0.7rem; }
.customer-group-row button { float: right; }
.customer-project-links { display: grid; gap: 5px; }
.customer-project-links a { color: var(--ink); font-weight: 650; }
.customer-project-links small { color: var(--grey-3); }
.channel-detail-panel {
  margin-top: 22px;
  padding: 22px;
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
}
.channel-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.channel-detail-head h3 { margin: 5px 0 0; font-size: 1.35rem; }
.channel-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--grey-2);
  background: var(--surface);
}
.channel-detail-metrics > div { min-height: 90px; padding: 15px; border-right: 1px solid var(--grey-2); }
.channel-detail-metrics > div:last-child { border-right: 0; }
.channel-detail-metrics span { display: block; color: var(--grey-3); font-size: 0.68rem; }
.channel-detail-metrics strong { display: block; margin-top: 16px; font-size: 1.2rem; }
.revenue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--grey-2);
}
.revenue-summary > div {
  min-height: 104px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--grey-2);
}
.revenue-summary > div:last-child { border-right: 0; }
.revenue-summary span { color: var(--grey-3); font-size: 0.72rem; font-weight: 650; }
.revenue-summary strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.revenue-summary .accent { color: var(--accent-on); background: var(--accent); }
.revenue-summary .accent span { color: var(--accent-on); }
.revenue-entry-form {
  margin: 20px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.25fr 0.75fr 1.1fr auto;
  gap: 12px;
  align-items: end;
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
}
.revenue-entry-form label { display: grid; gap: 7px; }
.revenue-entry-form label > span { color: var(--grey-3); font-size: 0.7rem; font-weight: 650; }
.revenue-entry-form input,
.revenue-entry-form select {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-2);
  border-radius: 0;
  background: var(--surface);
}
.revenue-table td { vertical-align: top; }
.admin-disclosure {
  margin-top: 18px;
  border-top: 1px solid var(--grey-2);
  border-bottom: 1px solid var(--grey-2);
}
.admin-disclosure summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-disclosure summary::-webkit-details-marker { display: none; }
.admin-disclosure summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 400;
}
.admin-disclosure[open] summary::after { content: "−"; }
.admin-disclosure summary span {
  display: grid;
  gap: 4px;
}
.admin-disclosure summary small {
  color: var(--grey-3);
  font-size: 0.68rem;
  font-weight: 500;
}
.admin-disclosure > .form-grid,
.admin-disclosure > .disclosure-stack {
  padding: 0 0 20px;
}
.admin-disclosure-block {
  margin-top: 0;
  border: 0;
}
.admin-disclosure-block summary {
  padding: 0 18px;
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
}
.admin-disclosure-block[open] summary { border-bottom: 0; }
.admin-disclosure-block .disclosure-stack {
  padding: 22px 18px 0;
  border: 1px solid var(--grey-2);
  border-top: 0;
}
.compact-head { margin-top: 0; }
.sales-secondary > .section-head { margin-bottom: 14px; }
.sales-secondary .project-hero { display: none; }
.sales-secondary + .sales-secondary { padding-top: 0; }
.admin-portal .sales-secondary .section { padding-top: 0; }
.manual-order-form .form-actions { margin-top: 18px; }
.manual-order-form textarea,
.growth-form textarea {
  min-height: 94px;
  resize: vertical;
}
.growth-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}
.growth-config-grid > div { min-width: 0; }
.growth-form { display: grid; gap: 16px; }
.growth-form.horizontal {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}
.growth-form label { display: grid; gap: 7px; }
.growth-form label > span { color: var(--grey-3); font-size: 0.72rem; font-weight: 600; }
.growth-form label > small { color: var(--grey-3); font-size: 0.66rem; }
.growth-form input,
.growth-form select,
.growth-form textarea,
.manual-order-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--grey-2);
  border-radius: 0;
  color: var(--ink);
  background: var(--surface);
}
.advisor-qr-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 10px;
  background: var(--grey-1);
  border: 1px dashed var(--grey-2);
  color: var(--grey-3);
}
.advisor-qr-preview img { width: min(100%, 240px); aspect-ratio: 1; object-fit: contain; }
.advisor-qr-preview span { font-size: 0.72rem; }
.data-table code {
  display: inline-block;
  padding: 3px 6px;
  color: var(--accent);
  background: var(--ink);
  font-family: ui-monospace, monospace;
}
.order-status-pill.pending,
.order-status-pill.available,
.order-status-pill.paid,
.order-status-pill.cancelled {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  font-size: 0.68rem;
}
.order-status-pill.available { color: var(--success); }
.order-status-pill.paid { color: var(--ink); background: var(--grey-1); }
.order-status-pill.cancelled { color: var(--danger); }

@media (max-width: 820px) {
  .growth-config-grid,
  .growth-form.horizontal { grid-template-columns: 1fr; }
  .revenue-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenue-summary > div:nth-child(2) { border-right: 0; }
  .revenue-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--grey-2); }
  .revenue-entry-form { grid-template-columns: 1fr; }
  .channel-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-detail-metrics > div:nth-child(2) { border-right: 0; }
  .channel-detail-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--grey-2); }
}
