:root {
  --ink: #17201c;
  --muted: #5d675f;
  --paper: #f6f3ea;
  --white: #fffdf7;
  --line: #d8d8ce;
  --blue: #153dff;
  --blue-dark: #0a2ac2;
  --lime: #d9ff57;
  --red: #c63729;
  --shadow: 0 18px 60px rgba(23, 32, 28, .12);
  --radius: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --control-height: 40px;
  --surface-radius: 16px;
}

/* Private administration */
.admin-page { min-height: 100vh; background: #f4f5ef; }
.admin-page .workspace-nav { background: #101713; }
.admin-environment { padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.admin-auth-card { max-width: 560px; }
.admin-auth-card h1 { margin-bottom: 10px; font-size: clamp(38px, 5vw, 58px); }
.admin-auth-card form { margin-top: 24px; display: grid; gap: 15px; }
.admin-auth-card label { display: grid; gap: 7px; font-size: 12px; font-weight: 780; }
.admin-auth-card input { width: 100%; }
.admin-shell { background: #f4f5ef; }
.admin-shell .workspace-sidebar { background: #fbfcf7; }
.admin-content { max-width: 1500px; }
.admin-refresh, .admin-row-action { border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-weight: 760; cursor: pointer; }
.admin-refresh { padding: 9px 13px; }
.admin-row-action { padding: 7px 10px; font-size: 11px; }
.admin-refresh:hover, .admin-row-action:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.admin-refresh:disabled, .admin-row-action:disabled { opacity: .45; cursor: not-allowed; }
.admin-metric-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; }
.admin-metric { padding: 18px; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.admin-metric:hover { transform: translateY(-2px); border-color: #b9c2bb; }
.admin-metric span, .admin-card-head span, .admin-security-note > span, .admin-detail-head span, .admin-challenge > span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.admin-metric strong { margin-top: 8px; display: block; color: var(--ink); font-size: 32px; letter-spacing: -.04em; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-card { padding: 22px; }
.admin-card-head { margin-bottom: 16px; display: flex; gap: 20px; align-items: start; justify-content: space-between; }
.admin-card-head h2, .admin-security-note h2 { margin: 5px 0 0; font-size: 22px; }
.admin-card-head a { color: var(--blue); font-size: 12px; font-weight: 760; text-decoration: none; }
.admin-list { display: grid; }
.admin-list-row { min-width: 0; padding: 12px 0; display: flex; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.admin-list-row:first-child { border-top: 0; }
.admin-list-row > div { min-width: 0; }
.admin-list-row strong, .admin-list-row small { display: block; }
.admin-list-row strong { color: var(--ink); font-size: 13px; }
.admin-list-row small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-value { max-width: 48%; color: var(--muted); font-size: 11px; text-align: right; }
.admin-toolbar { margin-bottom: 14px; display: flex; gap: 9px; align-items: center; }
.admin-toolbar input { min-width: 260px; flex: 1; }
.admin-toolbar select { min-width: 160px; }
.admin-table-panel { padding: 0; overflow: hidden; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table-wrap th { padding: 12px 14px; color: var(--muted); background: #eceee7; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table-wrap td { padding: 14px; border-top: 1px solid var(--line); color: #435048; vertical-align: middle; }
.admin-table-wrap tbody tr { transition: background .15s ease; }
.admin-table-wrap tbody tr:hover, .admin-table-wrap tbody tr.selected { background: #f2f4ec; }
.admin-table-wrap tbody tr[tabindex] { cursor: pointer; }
.admin-primary-cell { min-width: 150px; }
.admin-primary-cell strong, .admin-primary-cell small { display: block; }
.admin-primary-cell strong { color: var(--ink); font-size: 12px; }
.admin-primary-cell small { max-width: 340px; margin-top: 3px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-primary-cell .admin-error-copy { color: var(--red); white-space: normal; }
.admin-empty-cell { padding: 42px !important; color: var(--muted) !important; text-align: center; }
.admin-inline-select { min-width: 112px; padding: 7px 28px 7px 8px; font-size: 11px; }
.admin-status { display: inline-block; padding: 5px 8px; border-radius: 99px; color: #4d5b53; background: #e6e9e2; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status-new, .status-failed, .status-quota-blocked, .status-past-due { color: #9b2d22; background: #fbe0dc; }
.status-qualified, .status-active, .status-sent { color: #176c31; background: #dff7d2; }
.status-contacted, .status-trialing, .status-retry, .status-queued { color: #2349b8; background: #e4e9ff; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 16px; align-items: start; }
.admin-detail { position: sticky; top: 92px; max-height: calc(100vh - 118px); padding: 22px; overflow-y: auto; }
.admin-detail-head { display: flex; gap: 16px; justify-content: space-between; align-items: start; }
.admin-detail-head h2 { margin: 5px 0 3px; font-size: 25px; }
.admin-detail-head p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-facts { margin: 20px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 11px; }
.admin-facts dt { color: var(--muted); font-weight: 760; }
.admin-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.admin-challenge { padding: 15px; border-radius: 12px; background: #eef0e9; }
.admin-challenge p { margin: 7px 0 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.admin-detail-form { margin-top: 18px; display: grid; gap: 12px; }
.admin-detail-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.admin-detail-form textarea { resize: vertical; }
.admin-detail-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.danger-text { color: var(--red) !important; }
.admin-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-notes h3 { margin: 0 0 8px; font-size: 14px; }
.admin-notes .admin-list-row { align-items: start; flex-direction: column; gap: 5px; }
.admin-notes .admin-list-value { max-width: none; color: var(--ink); text-align: left; line-height: 1.5; }
.admin-timeline { display: grid; }
.admin-timeline-row { padding: 11px 0; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); }
.admin-timeline-row:first-child { border-top: 0; }
.admin-timeline-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #e4e9ff; }
.admin-timeline-row strong, .admin-timeline-row small { display: block; }
.admin-timeline-row strong { font-size: 12px; text-transform: capitalize; }
.admin-timeline-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-security-note { color: white; background: var(--ink); }
.admin-security-note > span { color: var(--lime); }
.admin-security-note h2 { color: white; }
.admin-security-note p { color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.6; }

@media (max-width: 1120px) {
  .admin-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-split { grid-template-columns: 1fr; }
  .admin-detail { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .admin-content { padding: 24px 14px 70px; }
  .admin-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-toolbar input, .admin-toolbar select { width: 100%; min-width: 0; }
  .admin-detail-actions { align-items: stretch; flex-direction: column; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 20; background: var(--ink); color: white; padding: 12px 16px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(23,32,28,.1);
  background: rgba(246,243,234,.92);
  backdrop-filter: blur(16px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand-logo { width: auto; height: 32px; display: block; }
.brand-inverse { display: none; align-items: center; gap: 10px; color: white; font-size: 19px; font-weight: 850; letter-spacing: -.04em; }
.brand-symbol { width: auto; height: 30px; display: block; }
.brand-text-lockup { color: var(--ink); font-size: 19px; font-weight: 850; letter-spacing: -.04em; }
.site-header .brand-logo, .report-nav .brand-logo, .workspace-nav .brand-logo, .site-footer .brand-logo { display: none; }
.site-header .brand-inverse, .report-nav .brand-inverse, .workspace-nav .brand-inverse, .site-footer .brand-inverse { display: inline-flex; }
.site-header .brand-inverse, .report-nav .brand-inverse { color: var(--ink); }
.workspace-nav .brand-inverse, .site-footer .brand-inverse { color: white; }
.workspace-nav .brand-text-lockup, .site-footer .brand-text-lockup { color: white; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--blue); }

.button {
  border: 1px solid var(--ink); border-radius: 999px; padding: 12px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: white; text-decoration: none; font-weight: 780;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23,32,28,.18); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(21,61,255,.28); outline-offset: 2px; }
.button.primary { background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.button.light { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.button.small { padding: 9px 14px; font-size: 13px; }
.button.full { width: 100%; }
.button[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.hero { padding: 78px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 850; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--blue); }
h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 7vw, 92px); line-height: .92; letter-spacing: -.068em; font-weight: 880; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 500; }
.lede { max-width: 620px; margin: 28px 0; font-size: clamp(18px, 2vw, 22px); color: var(--muted); letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microcopy { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.product-shot { position: relative; min-height: 510px; }
.shot-window { position: absolute; inset: 24px 0 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1.7deg); }
.shot-top { height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d3d4ca; }
.shot-body { padding: 28px; }
.shot-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #8b281e; background: #ffe1db; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.shot-body h3 { margin: 18px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.shot-body p { color: var(--muted); }
.scope-box { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.scope-row { padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.scope-row:last-child { border: 0; background: #f1f2ec; }
.scope-row span { color: var(--muted); }
.scope-row strong { text-align: right; }
.approval-strip { margin-top: 20px; border-radius: 14px; padding: 14px 16px; background: var(--lime); display: flex; align-items: center; justify-content: space-between; font-weight: 780; }
.float-note { position: absolute; z-index: 2; right: -18px; bottom: 20px; padding: 16px 18px; border-radius: 14px; color: white; background: var(--blue); box-shadow: var(--shadow); transform: rotate(-4deg); font-weight: 750; }

.monitor-hero { padding-bottom: 72px; }
.signal-board { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.signal-toolbar { min-height: 54px; padding: 0 20px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); font-size: 13px; }
.signal-toolbar span:last-child { margin-left: auto; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #44b95c; box-shadow: 0 0 0 5px rgba(68,185,92,.12); }
.signal-message { margin: 22px; padding: 18px; display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f0f1eb; }
.signal-message p { margin: 4px 0 0; color: var(--muted); }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--blue); font-size: 12px; font-weight: 850; }
.signal-analysis { margin: 0 22px; padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; border: 2px solid var(--blue); border-radius: 18px; }
.signal-analysis h3 { margin: 9px 0 3px; font-size: 20px; letter-spacing: -.03em; }
.signal-analysis p { margin: 0; color: var(--muted); font-size: 13px; }
.risk-ring { width: 76px; height: 76px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--blue); }
.risk-ring strong { font-size: 28px; line-height: 1; }
.risk-ring span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.signal-value { margin: 18px 22px 0; display: flex; justify-content: space-between; align-items: baseline; }
.signal-value span { color: var(--muted); font-size: 13px; }
.signal-value strong { font-size: 26px; color: var(--blue); }
.signal-board .approval-strip { margin: 18px 22px 22px; }

.proof-bar { padding: 26px 0; border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 40px; align-items: center; }
.proof-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.proof-point { font-weight: 820; letter-spacing: -.02em; }
.proof-point::before { content: "✓"; margin-right: 8px; color: var(--blue); }

.section { padding: 110px 0; }
.section.blue { color: white; background: var(--blue); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin: 0 0 18px; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -.055em; }
.section-head p { max-width: 620px; margin: 0; font-size: 19px; color: var(--muted); }
.blue .section-head p { color: rgba(255,255,255,.86); }
.blue .eyebrow::before { background: var(--lime); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); overflow: hidden; }
.step { min-height: 290px; padding: 30px; border-right: 1px solid rgba(255,255,255,.28); }
.step:last-child { border: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 850; }
.step h3 { margin: 72px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.step p { margin: 0; color: rgba(255,255,255,.86); }
.pricing-demo-link { display: block; margin-top: 16px; color: var(--blue); font-size: 13px; font-weight: 800; text-align: center; }

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature:nth-child(1), .feature:nth-child(4) { grid-column: span 7; }
.feature:nth-child(2), .feature:nth-child(3) { grid-column: span 5; }
.feature-icon { font-size: 25px; }
.feature h3 { margin: 74px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.feature p { margin: 0; color: var(--muted); max-width: 520px; }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fit-card.good { color: white; background: var(--ink); border-color: var(--ink); }
.fit-card > span { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e5e6de; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.fit-card.good > span { color: var(--ink); background: var(--lime); }
.fit-card h3 { margin: 24px 0 18px; font-size: 28px; letter-spacing: -.04em; }
.fit-card ul { padding-left: 20px; margin: 0; }
.fit-card li { margin: 10px 0; color: var(--muted); }
.fit-card.good li { color: rgba(255,255,255,.84); }

.math-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: white; border-radius: 28px; overflow: hidden; }
.math-copy { padding: 48px; }
.math-copy h2 { margin: 0 0 16px; font-size: clamp(38px, 4.5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.math-copy p { color: rgba(255,255,255,.84); }
.calculator { padding: 42px; background: var(--lime); color: var(--ink); }
.range-label { display: flex; justify-content: space-between; margin: 18px 0 8px; font-size: 14px; font-weight: 750; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.result { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(23,32,28,.24); }
.result span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.result strong { display: block; margin-top: 4px; color: var(--blue); font-size: 56px; letter-spacing: -.06em; }

.pricing-card { max-width: 640px; margin-inline: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.price-main, .price-side { padding: 42px; }
.price-side { background: #ebece5; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 26px; }
.price strong { font-size: 64px; line-height: 1; letter-spacing: -.06em; }
.price span { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { margin: 13px 0; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; font-weight: 850; }
.price-side h3 { margin-top: 0; }
.price-side p { color: var(--muted); }
.price-note { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.status-message { min-height: 22px; margin: 12px 0 0; color: var(--red); font-size: 13px; }
.status-message.success-text { color: #176c31; }
.workspace-page .status-message { color: var(--muted); }
.workspace-page .status-message.success-text { color: var(--muted); }
.workspace-page .status-message:empty { display: none; }
.button-spinner { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; border: 2px solid rgba(255,255,255,.45); border-top-color: currentColor; border-radius: 50%; animation: report-spin .75s linear infinite; }

.audit-section { background: #e9eae2; }
.audit-grid { display: grid; grid-template-columns: 1fr minmax(360px, .8fr); gap: 70px; align-items: start; }
.audit-grid h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.audit-form h3 { margin: 0; font-size: 26px; }
.audit-form > p { margin: 6px 0 22px; color: var(--muted); }
.audit-form .field { margin-top: 14px; }
.audit-form .button { margin-top: 20px; }
.audit-form textarea { min-height: 116px; }
.consent-row { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 12px; }
.consent-row input { margin-top: 3px; accent-color: var(--blue); }
.form-footnote { margin: 12px 0 0 !important; font-size: 11px; line-height: 1.45; }
.trap-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 70px; margin-top: 18px; display: flex; align-items: center; justify-content: center; }
.faq-section { background: var(--white); }

.faq { max-width: 760px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 750; }
details p { max-width: 650px; margin: 0 0 22px; color: var(--muted); }

.site-footer { padding: 54px 0 34px; color: white; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-copy { max-width: 480px; margin: 14px 0 0; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: 13px; }

.panel { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.panel h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.035em; }
.panel-intro { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 750; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.35; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cfd1c7; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; }
.field textarea { min-height: 88px; resize: vertical; }
.field-prefix { position: relative; }
.field-prefix span { position: absolute; top: 11px; left: 12px; color: var(--muted); }
.field-prefix input { padding-left: 26px; }
.tag { padding: 5px 9px; border-radius: 999px; color: #8b281e; background: #ffe1db; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }

.analysis-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.analysis-head h2 { margin: 8px 0 0; }
.draft-block { margin: 24px 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f0f1eb; }
.draft-block > div { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.draft-block p { margin-bottom: 0; }
.text-button { border: 0; padding: 0; color: var(--blue); background: transparent; font-weight: 800; cursor: pointer; }

/* Approval */
.review-page { min-height: 100vh; padding: 32px 0 64px; background: var(--paper); }
.review-nav { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: center; }
.review-card { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.review-head { padding: 42px; color: white; background: var(--blue); }
.review-head h1 { margin-top: 18px; font-size: clamp(38px, 6vw, 58px); }
.review-body { padding: 42px; }
.review-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meta-block span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.meta-block strong { display: block; margin-top: 5px; }
.review-copy { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.review-copy h2 { font-size: 18px; }
.review-copy p { color: var(--muted); white-space: pre-wrap; }
.approval-form { margin-top: 32px; padding: 24px; border-radius: 16px; background: #edeee8; }
.receipt { display: none; margin-top: 26px; padding: 22px; border: 2px solid var(--blue); border-radius: 16px; }
.receipt.visible { display: block; }
.receipt h3 { margin: 0; color: var(--blue); }

.legal { max-width: 760px; padding: 80px 0; }
.legal h1 { font-size: 56px; }
.legal h2 { margin-top: 38px; }
.legal p, .legal li { color: var(--muted); }

/* Inbound tools and editorial pages */
.tool-hero, .article-hero { padding: 92px 0 58px; }
.narrow-head { max-width: 980px; }
.narrow-head h1, .article-hero h1 { max-width: 920px; font-size: clamp(58px, 8vw, 104px); }
.tool-section { padding: 0 0 100px; }
.calculator-shell { display: grid; grid-template-columns: minmax(340px,.75fr) minmax(420px,1.25fr); gap: 22px; align-items: stretch; }
.change-order-shell { display: grid; grid-template-columns: minmax(380px,.85fr) minmax(460px,1.15fr); gap: 22px; align-items: start; }
.scope-template-shell { display: grid; grid-template-columns: minmax(420px,1fr) minmax(460px,1fr); gap: 22px; align-items: start; }
.calculator-form { display: grid; align-content: start; gap: 18px; }
.calculator-form h2 { margin-bottom: 6px; }
.field-suffix { position: relative; }
.field-suffix input { padding-right: 34px !important; }
.field-suffix span { position: absolute; top: 11px; right: 13px; color: var(--muted); }
.calculator-output { padding: 38px; border-radius: 22px; color: white; background: var(--blue); }
.calculator-output .eyebrow::before { background: var(--lime); }
.output-primary { margin: 28px 0; }
.output-primary span, .output-grid span { display: block; color: rgba(255,255,255,.86); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.output-primary strong { display: block; margin-top: 3px; color: var(--lime); font-size: clamp(58px,8vw,88px); line-height: 1; letter-spacing: -.065em; }
.output-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); }
.output-grid div { min-width: 0; }
.output-grid strong { display: block; margin-top: 8px; font-size: 22px; }
.output-note { margin: 28px 0; padding: 18px; border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.92); }
.output-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.content-section { background: var(--white); }
.change-order-output { overflow: hidden; border-radius: 22px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.change-order-summary { padding: 36px; }
.change-order-summary .eyebrow::before { background: var(--lime); }
.change-order-summary > span { display: block; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.change-order-summary > strong { display: block; margin-top: 8px; color: var(--lime); font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.05em; }
.change-order-summary dl { margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.change-order-summary dl div { padding: 15px 0; display: grid; grid-template-columns: 110px 1fr; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.change-order-summary dt { color: rgba(255,255,255,.74); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.change-order-summary dd { margin: 0; }
.change-order-email { padding: 30px 36px 34px; color: var(--ink); background: var(--blue); }
.change-order-email > span { color: var(--lime); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.change-order-email pre { min-height: 330px; margin: 16px 0 20px; padding: 24px; overflow: auto; border-radius: 14px; white-space: pre-wrap; color: var(--ink); background: var(--white); font: 16px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; }
.change-order-email .status-message { margin: 12px 0 0; color: white; text-align: center; }
.scope-template-output { position: sticky; top: 92px; overflow: hidden; border-radius: 22px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.scope-template-output > div:first-child { padding: 36px; }
.scope-template-output .eyebrow::before { background: var(--lime); }
.scope-template-output pre { max-height: 760px; margin: 0; overflow: auto; white-space: pre-wrap; color: rgba(255,255,255,.82); font: 15px/1.65 Inter, ui-sans-serif, system-ui, sans-serif; }
.scope-template-actions { padding: 24px 36px 30px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; background: var(--blue); }
.scope-template-actions .status-message { grid-column: 1 / -1; margin: 0; color: white; text-align: center; }
.article-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 70px; }
.article-grid article { max-width: 700px; }
.article-grid article h2 { font-size: 40px; letter-spacing: -.045em; }
.article-grid article h3 { margin-top: 34px; font-size: 22px; }
.article-grid article p { color: var(--muted); font-size: 18px; }
.content-aside { position: sticky; top: 100px; align-self: start; padding: 28px; border-radius: 20px; color: white; background: var(--ink); }
.content-aside .eyebrow::before { background: var(--lime); }
.content-aside h3 { margin: 34px 0 10px; font-size: 28px; }
.content-aside p:not(.eyebrow) { color: rgba(255,255,255,.84); }

.article-width { max-width: 850px; }
.article-meta { display: flex; gap: 22px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 750; }
.longform { padding-bottom: 110px; }
.longform p { color: var(--muted); font-size: 19px; line-height: 1.75; }
.longform .article-intro { color: var(--ink); font-size: 25px; line-height: 1.55; letter-spacing: -.02em; }
.longform h2 { margin: 64px 0 16px; font-size: 38px; line-height: 1.1; letter-spacing: -.045em; }
.callout { margin: 32px 0; padding: 22px 24px; border-left: 5px solid var(--blue); background: #e9ecff; font-size: 17px; }
.decision-list { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.decision-list li { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.decision-list strong, .decision-list span { display: block; }
.decision-list strong { margin-bottom: 7px; color: var(--blue); font-size: 18px; }
.decision-list span { color: var(--muted); }
.article-cta { margin-top: 70px; padding: 38px; border-radius: 24px; color: white; background: var(--blue); }
.article-cta .eyebrow::before { background: var(--lime); }
.article-cta .eyebrow { color: var(--lime); }
.article-cta h2 { margin: 42px 0 10px; }
.article-cta p:not(.eyebrow) { color: rgba(255,255,255,.9); }
.article-cta .button { margin: 10px 8px 0 0; }
.software-hero .hero-actions { margin-top: 28px; }
.software-longform > h2 { margin-top: 70px; }
.software-workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.software-workflow article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.software-workflow article:last-child { grid-column: 1 / -1; }
.software-workflow article > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-weight: 850; }
.software-workflow h3 { margin: 20px 0 8px; font-size: 22px; }
.software-workflow p { margin: 0; color: var(--muted); }
.software-fit { margin: 28px 0; }
.software-comparison { margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.comparison-row { display: grid; grid-template-columns: .8fr 1.25fr 1fr; }
.comparison-row > * { padding: 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comparison-row > *:last-child { border-right: 0; }
.comparison-row:last-child > * { border-bottom: 0; }
.comparison-row span { color: var(--muted); }
.comparison-head { color: white; background: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.comparison-head > * { border-color: rgba(255,255,255,.18); }
.comparison-row.highlighted { background: #edffd1; }
.software-faq { margin-top: 24px; }
.software-demo-note { margin-top: 22px; text-align: center; }
.software-demo-note a { color: var(--blue); font-weight: 800; }

/* Walkthrough request */
.demo-page { min-height: 100vh; background: #ecece5; }
.demo-shell { padding: 74px 0 100px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1fr); gap: 70px; align-items: start; }
.demo-copy { padding-top: 30px; }
.demo-copy h1 { margin: 22px 0; font-size: clamp(58px, 7vw, 90px); }
.demo-copy .lede { max-width: 680px; }
.demo-copy .check-list { margin-top: 32px; }
.demo-form-card { padding: 38px; }
.demo-form-card h2 { margin: 0; font-size: 36px; }
.demo-form-card form > p { color: var(--muted); }
.demo-form-card .field { margin-top: 16px; }
.demo-form-card textarea { min-height: 140px; }
.demo-form-card .button { margin-top: 20px; }
.demo-success { padding: 24px 0; text-align: center; }
.demo-success .eyebrow { justify-content: center; }
.demo-success h2 { margin: 24px 0 12px; }
.demo-success p:not(.eyebrow) { color: var(--muted); }
.button.secondary.dark-button { color: white; border-color: rgba(255,255,255,.78); }
.button.secondary.dark-button:hover { color: var(--ink); background: white; border-color: white; }

/* Private audit report */
.report-page { min-height: 100vh; background: #eeeee7; }
.report-nav { border-bottom: 1px solid var(--line); background: var(--white); }
.private-label { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.report-wrap { padding: 64px 0 90px; }
.report-state { max-width: 760px; margin: 60px auto; text-align: center; }
.report-state h1 { max-width: none; margin: 20px 0 14px; font-size: clamp(42px, 7vw, 70px); }
.report-state p { color: var(--muted); }
.report-state .eyebrow { justify-content: center; }
.report-loader { width: 48px; height: 48px; margin: 0 auto; display: block; border: 5px solid #d8dbd1; border-top-color: var(--blue); border-radius: 50%; animation: report-spin .9s linear infinite; }
.workspace-loading-copy { max-width: 440px; margin: 12px auto 0; color: var(--muted); line-height: 1.55; }
.workspace-loading-actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@keyframes report-spin { to { transform: rotate(360deg); } }
.report-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; align-items: end; padding: 54px; border-radius: 28px 28px 0 0; color: white; background: var(--ink); }
.report-hero .eyebrow::before { background: var(--lime); }
.report-hero h1 { max-width: 800px; font-size: clamp(50px, 7vw, 84px); }
.report-hero .lede { margin-bottom: 18px; color: rgba(255,255,255,.84); }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255,255,255,.72); font-size: 12px; }
.confidence-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.07); }
.confidence-card > span, .confidence-card small { display: block; color: rgba(255,255,255,.78); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.confidence-card strong { display: block; margin: 10px 0; color: var(--lime); font-size: 52px; letter-spacing: -.055em; }
.confidence-track { height: 7px; margin: 4px 0 14px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.confidence-track span { height: 100%; display: block; border-radius: inherit; background: var(--lime); }
.report-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-inline: 1px solid var(--line); background: var(--white); }
.report-stat { min-height: 150px; padding: 30px; border-right: 1px solid var(--line); }
.report-stat:last-child { border: 0; }
.report-stat span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.report-stat strong { display: block; margin-top: 25px; font-size: 25px; letter-spacing: -.035em; }
.report-stat.highlight { color: var(--ink); background: var(--lime); }
.report-stat.highlight span { color: rgba(23,32,28,.65); }
.report-stat.highlight strong { color: var(--blue); font-size: 34px; }
.report-section { padding: 70px 54px; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.report-section h2 { max-width: 700px; margin: 10px 0 24px; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.section-kicker { color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.report-explanation { max-width: 820px; color: var(--muted); font-size: 20px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.evidence-grid blockquote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #f0f1eb; }
.evidence-grid blockquote span { color: var(--blue); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.evidence-grid blockquote p { margin: 18px 0 0; font-family: Georgia, serif; font-size: 20px; }
.driver-list { margin: 28px 0 0; padding-left: 22px; color: var(--muted); }
.driver-list li { margin: 8px 0; }
.action-section { color: white; background: var(--blue); border-color: var(--blue); }
.action-section .section-kicker { color: var(--lime); }
.reply-card { max-width: 900px; padding: 26px; border-radius: 18px; color: var(--ink); background: var(--white); }
.reply-card p { margin: 0 0 22px; white-space: pre-wrap; font-size: 18px; }
.report-conversion { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: center; padding: 54px; border-radius: 0 0 28px 28px; color: white; background: var(--ink); }
.report-conversion .eyebrow::before { background: var(--lime); }
.report-conversion h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.report-conversion p { color: rgba(255,255,255,.82); }
.conversion-action p { min-height: 18px; margin: 12px 0 0; color: rgba(255,255,255,.78); font-size: 12px; text-align: center; }
.report-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 2px; color: var(--muted); font-size: 12px; }
.report-footer p { max-width: 720px; }

/* Passkey account access */
.auth-page { min-height: 100vh; background: var(--ink); }
.auth-page .report-nav { background: var(--paper); }
.auth-shell { min-height: calc(100vh - 73px); padding: 70px 20px; display: grid; place-items: center; }
.auth-card { width: min(560px, 100%); padding: 48px; text-align: center; box-shadow: var(--shadow); }
.auth-card .eyebrow { justify-content: center; }
.auth-card h1 { max-width: none; margin: 22px 0; font-size: clamp(44px, 7vw, 68px); line-height: .95; }
.auth-card > p:not(.eyebrow):not(.status-message) { color: var(--muted); }
.auth-card .button { margin-top: 22px; }
.auth-icon { width: 70px; height: 70px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 22px; color: var(--lime); background: var(--blue); font-size: 38px; font-weight: 400; }
.auth-note { margin: 24px auto 0; max-width: 420px; font-size: 12px; }
.invite-summary { margin: 24px 0 0; padding: 16px; border-radius: 14px; background: #eef0e8; }
.invite-summary span, .invite-summary strong { display: block; }
.invite-summary span { font-weight: 800; }
.invite-summary strong { margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Private request intake */
.intake-page { min-height: 100vh; background: var(--ink); }
.intake-shell { min-height: calc(100vh - 73px); padding: 64px 20px; display: grid; place-items: start center; }
.intake-card { width: min(680px, 100%); padding: 46px; box-shadow: var(--shadow); }
.intake-card h1 { max-width: none; margin: 18px 0; font-size: clamp(42px, 7vw, 64px); }
.intake-card h1 span { color: var(--blue); }
.intake-card .field { margin-top: 18px; }
.intake-card textarea { min-height: 170px; }
.intake-card .button { margin-top: 24px; }
.intake-intro, #intake-loading p { color: var(--muted); font-size: 17px; }
#intake-loading { padding: 40px 0; text-align: center; }
#intake-loading h1 { margin-top: 28px; }

/* Private client change approval */
.change-page { min-height: 100vh; background: var(--ink); }
.change-shell { min-height: calc(100vh - 73px); padding: 56px 20px; display: grid; place-items: start center; }
.change-card { width: min(780px, 100%); padding: 46px; box-shadow: var(--shadow); }
.change-card h1 { max-width: none; margin: 18px 0; font-size: clamp(42px, 7vw, 64px); }
.change-card h1 span { color: var(--blue); }
.change-intro { color: var(--muted); font-size: 17px; }
#change-loading { padding: 40px 0; text-align: center; }
#change-loading h1 { margin-top: 28px; }
.change-overview { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.change-overview > div { padding: 22px; background: #f1f2eb; }
.change-overview > div:last-child { color: var(--blue); background: var(--lime); }
.change-overview span, .change-detail > span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.change-overview strong { display: block; margin-top: 9px; font-size: 25px; }
.change-detail { padding: 24px 0; border-top: 1px solid var(--line); }
.change-detail h2 { margin: 9px 0; font-size: 30px; }
.change-detail p { margin-bottom: 0; white-space: pre-wrap; }
#change-response-form { margin-top: 22px; padding: 24px; border-radius: 16px; background: #eef0e8; }
#change-response-form fieldset { margin: 0; padding: 0; border: 0; }
#change-response-form legend { margin-bottom: 12px; font-weight: 850; }
.response-choice { padding: 14px; display: flex; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 12px; background: white; }
.response-choice + .response-choice { margin-top: 9px; }
.response-choice input { width: auto; margin-top: 4px; }
.response-choice span, .response-choice strong, .response-choice small { display: block; }
.response-choice small { margin-top: 3px; color: var(--muted); }
#change-response-form .field { margin-top: 16px; }
#change-response-form textarea { min-height: 90px; }
#change-response-form .button { margin-top: 20px; }
.change-recorded { margin-top: 24px; padding: 22px; border-radius: 14px; background: #dff7d2; }
.change-recorded strong { font-size: 22px; }
.change-recorded p { margin-bottom: 0; }

/* Authenticated workspace */
.workspace-page { min-height: 100vh; background: #ecece5; }
.workspace-nav { color: white; background: var(--ink); }
.workspace-account { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.workspace-account .text-button { color: var(--lime); }
.workspace-shell { padding: 54px 0 100px; }
.workspace-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.workspace-head h1 { max-width: 820px; font-size: clamp(48px, 7vw, 78px); }
.workspace-head > div > p:last-child { margin: 16px 0 0; color: var(--muted); }
.plan-chip { padding: 10px 14px; border-radius: 999px; color: #0b5e2a; background: #dff7d2; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.plan-chip.inactive { color: #842b22; background: #ffe1db; }
.workspace-plan-actions { display: grid; gap: 8px; justify-items: end; }
.workspace-plan-actions .status-message { max-width: 260px; margin: 2px 0 0; text-align: right; }
.workspace-lock { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #d7806e; background: #ffe8e1; }
.workspace-lock.grace { border-color: #e0a33c; background: #fff3d6; }
.workspace-lock strong { font-size: 18px; }
.workspace-lock p { margin-bottom: 0; color: var(--muted); }
.workspace-lock .button { flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.metric-grid article { min-height: 150px; padding: 28px; border-right: 1px solid var(--line); }
.metric-grid article:last-child { border: 0; }
.metric-grid span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { display: block; margin-top: 28px; font-size: 42px; letter-spacing: -.05em; }
.metric-grid .metric-value { background: var(--lime); }
.metric-grid .metric-value strong { color: var(--blue); }
.metric-grid .metric-confirmed { color: white; background: var(--ink); }
.metric-grid .metric-confirmed span { color: rgba(255,255,255,.62); }
.metric-grid .metric-confirmed strong { color: var(--lime); }
.overview-operations { display: grid; gap: 22px; }
.overview-primary-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 22px; }
.overview-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 22px; }
.overview-panel { min-width: 0; padding: 0; overflow: hidden; }
.overview-panel-head { min-height: 142px; padding: 26px 28px 22px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.overview-panel-head h2 { margin: 5px 0 6px; font-size: 28px; letter-spacing: -.035em; }
.overview-panel-head p:last-child { max-width: 570px; margin: 0; color: var(--muted); font-size: 14px; }
.overview-view-all { flex: 0 0 auto; margin-top: 4px; color: var(--blue); font-size: 13px; font-weight: 850; text-decoration: none; }
.overview-view-all:hover { text-decoration: underline; }
.overview-list, .overview-activity { min-height: 224px; }
.overview-row { width: 100%; padding: 17px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.overview-row:last-child { border-bottom: 0; }
.overview-row:hover { background: #f5f6ef; }
.overview-row-copy { min-width: 0; }
.overview-row-top { display: flex; gap: 8px; align-items: center; }
.overview-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.overview-row-copy > span { margin-top: 5px; display: block; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.overview-row-meta { display: flex; gap: 8px; align-items: center; }
.overview-row-value { color: var(--blue); font-size: 18px; white-space: nowrap; }
.overview-kind { padding: 5px 7px; border-radius: 999px; color: #6b4d06; background: #fff0bd; font-size: 9px; font-weight: 900; letter-spacing: .06em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.overview-kind.inbox { color: var(--blue); background: #edf0ff; }
.overview-kind.approval { color: #0c5e2d; background: #dff6d3; }
.overview-watch-row .overview-row-copy > span { white-space: normal; }
.overview-watch-value { text-align: right; }
.overview-watch-value strong, .overview-watch-value small { display: block; }
.overview-watch-value strong { color: var(--blue); font-size: 18px; }
.overview-watch-value small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.overview-empty { min-height: 224px; padding: 34px; display: grid; place-content: center; text-align: center; }
.overview-empty strong { display: block; font-size: 18px; }
.overview-empty span { max-width: 370px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.overview-activity-row { width: 100%; padding: 15px 22px; display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 13px; align-items: start; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; }
button.overview-activity-row { cursor: pointer; }
button.overview-activity-row:hover { background: #f5f6ef; }
.overview-activity-row:last-child { border-bottom: 0; }
.overview-activity-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--blue); }
.overview-activity-dot.accepted { background: #16a152; }
.overview-activity-dot.declined { background: #e47d42; }
.overview-activity-dot.scope { background: var(--lime); border: 1px solid #879e23; }
.overview-activity-copy strong, .overview-activity-copy span { display: block; }
.overview-activity-copy strong { font-size: 14px; }
.overview-activity-copy span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.overview-activity-row time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.overview-trend-totals { padding: 22px 26px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.overview-trend-totals > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.overview-trend-totals small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.overview-trend-totals strong { grid-column: 2; margin-top: 3px; font-size: 24px; }
.trend-key { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.trend-key.confirmed { background: var(--lime); border: 1px solid #819921; }
.overview-chart { height: 176px; padding: 12px 24px 24px; }
.overview-chart svg { width: 100%; height: 100%; overflow: visible; }
.overview-chart-grid { stroke: #dcdfd5; stroke-width: 1; }
.overview-chart-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.overview-chart-line.confirmed { stroke: #94ad27; }
.overview-chart-area { fill: rgba(31, 66, 255, .07); }
.overview-chart-label { fill: var(--muted); font: 10px Inter, Arial, sans-serif; }
.workspace-inbox { margin-bottom: 22px; padding: 34px; }
.inbox-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.inbox-head h2 { margin: 8px 0; font-size: 32px; }
.inbox-head > div > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.intake-link-actions { display: grid; gap: 10px; justify-items: stretch; }
.intake-link-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.intake-link-output input { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f3f4ed; }
.intake-link-actions .status-message { margin: 0; font-size: 12px; }
.inbox-list { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.inbox-request { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr); gap: 28px; align-items: center; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.inbox-request:last-child { border: 0; }
.inbox-request-copy strong, .inbox-request-copy span { display: block; }
.inbox-request-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.inbox-request-copy p { margin: 12px 0 0; white-space: pre-wrap; }
.inbox-analyse-form { display: grid; grid-template-columns: 1.4fr 70px 90px auto auto; gap: 9px; align-items: end; }
.inbox-analyse-form select, .inbox-analyse-form input { width: 100%; padding: 9px 10px; border: 1px solid #cfd2c8; border-radius: 9px; background: white; }
.inbox-analyse-form label { color: var(--muted); font-size: 11px; font-weight: 750; }
.inbox-analyse-form .field-prefix input { padding-left: 25px; }
.inbox-analyse-form .field-prefix span { top: 9px; left: 9px; }
.inbox-analyse-form .status-message { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.workspace-form { padding: 32px; }
.workspace-form h2 { margin: 8px 0; font-size: 32px; }
.workspace-form .field { margin-top: 16px; }
.workspace-form .button { margin-top: 22px; }
.workspace-textarea textarea { min-height: 180px; }
.workspace-team { margin-top: 22px; padding: 34px; }
.team-head { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.team-head h2 { margin: 8px 0; font-size: 32px; }
.team-head > div > p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.team-invite-form { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr auto; gap: 10px; align-items: end; }
.team-invite-form .field { margin: 0; }
.team-invite-form input, .team-invite-form select { width: 100%; padding: 10px 11px; border: 1px solid #cfd2c8; border-radius: 9px; background: white; }
.team-invite-form .button { white-space: nowrap; }
.team-invite-form .status-message { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.team-invite-output { margin-top: 24px; padding: 16px; border-radius: 14px; background: #eef0e8; }
.team-invite-output > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.team-invite-output > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.team-invite-output input { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.team-list { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.team-row { padding: 17px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.team-row:last-child { border-bottom: 0; }
.team-row.pending { background: #f0f1eb; }
.team-row > div:first-child strong, .team-row > div:first-child span { display: block; }
.team-row > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.team-role { padding: 6px 9px; border-radius: 999px; color: #176c31; background: #dff7d2; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.team-role.pending { color: var(--muted); background: #e1e3da; }
.team-role.paused { color: #7b4d00; background: #fff0c2; }
.team-row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.team-role-select { padding: 7px 28px 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; font-size: 12px; }
.workspace-result { margin-top: 22px; padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 28px 50px; border: 2px solid var(--blue); }
.workspace-result h2 { margin: 8px 0 10px; font-size: 42px; }
.workspace-result > div > p:last-child { color: var(--muted); }
.workspace-result-value { min-width: 220px; padding: 20px; border-radius: 16px; background: var(--lime); }
.workspace-result-value span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.workspace-result-value strong { display: block; margin-top: 12px; color: var(--blue); font-size: 40px; }
.workspace-result-value small { display: block; color: var(--ink-muted); line-height: 1.45; }
.estimate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workspace-result .reply-card { grid-column: 1 / -1; max-width: none; border: 1px solid var(--line); background: #f0f1eb; }
.workspace-scope-library { margin-top: 76px; }
.workspace-scope-library .section-head { margin-bottom: 26px; }
.workspace-scope-library .section-head h2 { font-size: 52px; }
.workspace-scope-library .section-head > p:last-child { max-width: 720px; color: var(--muted); }
.scope-library-list { display: grid; gap: 14px; }
.scope-library-item { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.scope-library-item.archived { background: #f1f2ec; }
.scope-library-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.scope-library-head strong, .scope-library-head span { display: block; }
.scope-library-head strong { font-size: 20px; }
.scope-library-head div span { margin-top: 4px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.scope-status { padding: 6px 9px; border-radius: 999px; color: #176c31; background: #dff7d2; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.scope-status.archived { color: var(--muted); background: #e1e3da; }
.scope-library-item > pre { max-height: 190px; margin: 20px 0 0; overflow: auto; white-space: pre-wrap; color: var(--muted); font: 14px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; }
.scope-library-actions { margin-top: 18px; display: flex; gap: 16px; align-items: start; }
.scope-revision { flex: 1; border: 0; }
.scope-revision:last-child { border-bottom: 0; }
.scope-revision summary { padding: 9px 0; color: var(--blue); font-size: 13px; }
.scope-revision-form { padding: 18px; border-radius: 14px; background: #eceee6; }
.scope-revision-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.scope-revision-form input, .scope-revision-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd2c8; border-radius: 10px; background: white; }
.scope-revision-form textarea { min-height: 170px; resize: vertical; }
.scope-revision-form > label { margin-top: 14px; }
.scope-revision-form > div:last-child { margin-top: 16px; display: flex; gap: 14px; align-items: center; }
.scope-revision-form .status-message { margin: 0; }
.workspace-history { margin-top: 90px; }
.workspace-history .section-head { margin-bottom: 28px; }
.workspace-history .section-head h2 { font-size: 52px; }
.workspace-history .section-head > p:last-child { max-width: 700px; color: var(--muted); }
.history-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.history-item { border-bottom: 1px solid var(--line); }
.history-item:last-child { border: 0; }
.history-row { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto 100px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.history-item .history-row { border-bottom: 0; }
.history-row div strong, .history-row div span { display: block; }
.history-row div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.history-row > strong { text-align: right; font-size: 20px; }
.history-verdict { padding: 6px 9px; border-radius: 999px; background: #eceee6; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.history-verdict.likely_extra { color: #842b22; background: #ffe1db; }
.history-verdict.likely_in_scope { color: #176c31; background: #dff7d2; }
.history-verdict.needs_decision { color: #842b22; background: #ffe1db; }
.history-verdict.awaiting_client { color: var(--blue); background: #e7ebff; }
.history-verdict.resolved { color: #176c31; background: #dff7d2; }
.decision-toolbar { margin-bottom: 12px; padding: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-radius: 16px; }
.decision-tabs { min-width: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.decision-tabs::-webkit-scrollbar { display: none; }
.decision-tabs button { min-height: 38px; padding: 8px 11px; display: inline-flex; gap: 7px; align-items: center; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 780; white-space: nowrap; cursor: pointer; }
.decision-tabs button:hover { color: var(--ink); background: #f0f1eb; }
.decision-tabs button.active { color: white; border-color: var(--ink); background: var(--ink); }
.decision-tabs button span { min-width: 20px; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: #e8eae3; font-size: 9px; text-align: center; }
.decision-tabs button.active span { color: var(--ink); background: var(--lime); }
.decision-search { flex: 0 1 300px; }
.decision-search input { width: 100%; min-height: 40px; padding: 9px 13px; border: 1px solid #c9ccc1; border-radius: 11px; color: var(--ink); background: var(--white); }
.decision-list-summary { padding: 7px 5px 11px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; }
.decision-list-summary strong { color: var(--ink); }
.decision-panel { border-top: 1px solid var(--line); background: #f5f6f0; }
.decision-panel summary { padding: 13px 24px; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 850; text-transform: capitalize; }
.decision-form { padding: 4px 24px 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.decision-form label { color: var(--muted); font-size: 12px; font-weight: 750; }
.decision-form select, .decision-form input, .decision-form textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #cfd2c8; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.decision-form .decision-note { grid-column: 1 / -1; }
.decision-form textarea { min-height: 80px; resize: vertical; }
.decision-form .field-prefix { margin-top: 7px; }
.decision-form .field-prefix input { margin-top: 0; padding-left: 34px; }
.decision-submit { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.decision-submit .status-message { margin: 0; }
.change-request-panel { border-top: 1px solid var(--line); background: #eef0e8; }
.change-request-panel summary { padding: 13px 24px; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 850; text-transform: capitalize; }
.change-request-form { padding: 4px 24px 24px; display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr); gap: 14px; }
.change-request-form label { color: var(--muted); font-size: 12px; font-weight: 750; }
.change-request-form input, .change-request-form textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #cfd2c8; border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.change-request-form textarea { min-height: 100px; resize: vertical; }
.change-request-form > label:first-child { grid-column: 1 / -1; }
.change-request-form .change-summary-field { grid-column: 1 / -1; }
.change-request-form .field-prefix { margin-top: 7px; }
.change-request-form .field-prefix input { margin-top: 0; padding-left: 34px; }
.change-request-submit { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.change-request-submit .status-message { margin: 0; }
.change-link-output { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.change-link-output[hidden] { display: none; }
.change-request-outcome { padding: 18px 24px 24px; }
.change-request-outcome strong { font-size: 18px; }
.change-request-outcome p { margin: 6px 0 0; color: var(--muted); }
.change-request-outcome.accepted { background: #e6f8dc; }
.change-request-outcome.declined { background: #ffe9e4; }
.empty-copy { margin: 0; padding: 34px; color: var(--muted); text-align: center; }

@media (max-width: 800px) {
  .hero-grid, .math-card, .pricing-card, .fit-grid, .audit-grid, .calculator-shell, .change-order-shell, .scope-template-shell, .article-grid, .report-hero, .report-conversion, .workspace-grid, .workspace-result, .demo-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .product-shot { min-height: 480px; margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .step h3 { margin-top: 36px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-column: span 12 !important; }
  .content-aside { position: static; }
  .confidence-card { max-width: 360px; }
  .workspace-result .reply-card { grid-column: auto; }
  .inbox-head, .inbox-request, .team-head { grid-template-columns: 1fr; }
  .scope-template-output { position: static; }
  .inbox-analyse-form { grid-template-columns: 1fr 80px 100px; }
  .inbox-analyse-form .button, .inbox-analyse-form .text-button { grid-row: 2; }
  .scope-library-actions { flex-direction: column; }
  .scope-revision { width: 100%; }
  .team-invite-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .nav-links a:not(.button) { display: none; }
  h1 { font-size: 52px; }
  .section { padding: 80px 0; }
  .proof-grid { grid-template-columns: 1fr; gap: 14px; }
  .shot-window { inset-inline: 0; }
  .float-note { right: 0; }
  .math-copy, .calculator, .price-main, .price-side, .review-head, .review-body { padding: 28px; }
  .footer-grid, .footer-bottom, .review-meta, .form-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .signal-analysis { grid-template-columns: 1fr; }
  .risk-ring { width: 62px; height: 62px; }
  .audit-grid { gap: 38px; }
  .output-grid, .decision-list { grid-template-columns: 1fr; }
  .calculator-output { padding: 28px; }
  .tool-hero, .article-hero { padding-top: 64px; }
  .article-meta { flex-direction: column; gap: 5px; }
  .article-cta { padding: 28px; }
  .demo-shell { width: min(100% - 28px, 1160px); padding-top: 44px; gap: 34px; }
  .demo-copy h1 { font-size: 50px; }
  .demo-form-card { padding: 28px 22px; }
  .report-wrap { width: 100%; padding-top: 0; }
  .report-hero, .report-section, .report-conversion { padding: 34px 22px; border-radius: 0; }
  .report-stat-grid, .evidence-grid { grid-template-columns: 1fr; }
  .report-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-footer { padding-inline: 18px; align-items: start; flex-direction: column; }
  .private-label { font-size: 10px; }
  .auth-card { padding: 34px 22px; }
  .workspace-shell { width: min(100% - 28px, 1160px); padding-top: 34px; }
  .workspace-head { align-items: start; flex-direction: column; }
  .workspace-plan-actions { justify-items: start; }
  .workspace-plan-actions .status-message { text-align: left; }
  .intake-card { padding: 28px; }
  .change-order-summary, .change-order-email { padding: 28px 22px; }
  .scope-template-output > div:first-child { padding: 28px 22px; }
  .scope-template-actions { padding: 22px; grid-template-columns: 1fr; }
  .scope-template-actions .status-message { grid-column: auto; }
  .scope-library-item { padding: 22px; }
  .scope-library-head { flex-direction: column; }
  .change-order-summary dl div { grid-template-columns: 1fr; gap: 5px; }
  .workspace-inbox { padding: 24px; }
  .workspace-team { padding: 24px; }
  .intake-link-output, .inbox-analyse-form, .team-invite-form, .team-invite-output > div { grid-template-columns: 1fr; }
  .inbox-analyse-form .button, .inbox-analyse-form .text-button { grid-row: auto; }
  .inbox-analyse-form .status-message { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-grid article:last-child { border-bottom: 0; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row > strong { grid-column: 2; grid-row: 1; }
  .history-verdict { grid-column: 1 / -1; justify-self: start; }
  .decision-form { grid-template-columns: 1fr; }
  .decision-form .decision-note, .decision-submit { grid-column: auto; }
  .software-workflow, .comparison-row { grid-template-columns: 1fr; }
  .software-workflow article:last-child { grid-column: auto; }
  .comparison-row > * { border-right: 0; }
  .change-overview, .change-request-form, .change-link-output { grid-template-columns: 1fr; }
  .change-request-form .change-summary-field, .change-request-submit, .change-link-output { grid-column: auto; }
  .team-invite-form .status-message { grid-column: auto; }
  .team-row { align-items: start; flex-direction: column; }
}

/* Workspace product UI refresh */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2317201c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  cursor: pointer;
}
select:disabled { cursor: not-allowed; opacity: .62; }
.workspace-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.12); }
.workspace-nav .nav { width: min(1540px, calc(100% - 40px)); }
.workspace-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  align-items: start;
  transition: grid-template-columns .22s ease;
}
.workspace-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.workspace-content { min-width: 0; padding: 30px 40px 100px; }
.workspace-view-hidden { display: none !important; }
.workspace-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}
.workspace-sidebar-head { min-height: 40px; padding: 0 7px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.workspace-sidebar-head > div { display: flex; gap: 6px; align-items: center; }
.workspace-sidebar-head button { width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: #f1f2eb; cursor: pointer; }
.workspace-sidebar-head .sidebar-command { width: auto; padding-inline: 8px; font-size: 9px; letter-spacing: 0; }
.workspace-side-nav { display: grid; gap: 6px; }
.workspace-side-nav a { min-height: 46px; padding: 10px 11px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.workspace-side-nav a > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d9ddd4; border-radius: 9px; color: #53625b; background: transparent; }
.workspace-side-nav .nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workspace-side-nav a strong { overflow: hidden; font-size: 13px; font-weight: 720; text-overflow: ellipsis; }
.workspace-side-nav a em { min-width: 20px; padding: 3px 6px; border-radius: 99px; color: var(--ink); background: var(--lime); font-size: 10px; font-style: normal; text-align: center; }
.workspace-side-nav a:hover { color: var(--ink); border-color: var(--line); background: #f4f5ef; }
.workspace-side-nav a:hover > span { color: var(--blue); border-color: #bec6ff; background: #edf0ff; }
.workspace-side-nav a.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 7px 18px rgba(23,32,28,.12); }
.workspace-side-nav a.active > span { color: var(--lime); border-color: var(--blue); background: var(--blue); }
.workspace-settings-nav { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.workspace-sidebar-note { margin-top: auto; padding: 14px; display: flex; gap: 11px; align-items: start; border-radius: 14px; color: white; background: var(--ink); white-space: nowrap; overflow: hidden; }
.workspace-sidebar-note .live-dot { margin-top: 5px; flex: 0 0 9px; }
.workspace-sidebar-note p { margin: 0; }
.workspace-sidebar-note strong, .workspace-sidebar-note small { display: block; }
.workspace-sidebar-note strong { font-size: 12px; }
.workspace-sidebar-note small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 10px; }
.sidebar-collapsed .workspace-sidebar-head > span, .sidebar-collapsed .workspace-side-nav a strong, .sidebar-collapsed .workspace-sidebar-note p { display: none; }
.sidebar-collapsed .workspace-sidebar-head { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .workspace-sidebar-head [id^="toggle-"] { transform: rotate(180deg); }
.sidebar-collapsed .sidebar-command { display: none; }
.sidebar-collapsed .workspace-side-nav a { padding-inline: 9px; grid-template-columns: 26px; justify-content: center; }
.sidebar-collapsed .workspace-side-nav a em { display: none; }
.sidebar-collapsed .workspace-sidebar-note { padding-inline: 12px; justify-content: center; }
.workspace-head { scroll-margin-top: 96px; }
.workspace-head h1 { font-size: clamp(46px, 5.3vw, 72px); }
.workspace-onboarding { margin-bottom: 22px; padding: 28px; border-radius: 22px; background: var(--ink); color: white; box-shadow: 0 12px 34px rgba(23,32,28,.13); }
.onboarding-head { display: flex; gap: 28px; align-items: start; justify-content: space-between; }
.onboarding-head .section-kicker { color: var(--lime); }
.onboarding-head h2 { margin: 7px 0 5px; max-width: 720px; color: white; font-size: clamp(28px, 3.4vw, 44px); }
.onboarding-head p { margin: 0; color: rgba(255,255,255,.62); }
.onboarding-progress { min-width: 92px; text-align: right; }
.onboarding-progress strong, .onboarding-progress span { display: block; }
.onboarding-progress strong { color: var(--lime); font-size: 31px; }
.onboarding-progress span { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.onboarding-progress-track { height: 6px; margin: 24px 0; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); }
.onboarding-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.onboarding-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; overflow: hidden; }
.onboarding-steps li { min-width: 0; padding: 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-content: start; border-right: 1px solid rgba(255,255,255,.13); }
.onboarding-steps li:last-child { border-right: 0; }
.onboarding-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 900; }
.onboarding-steps li div { min-width: 0; }
.onboarding-steps li strong { display: block; color: white; font-size: 13px; }
.onboarding-steps li p { margin: 5px 0 0; color: rgba(255,255,255,.57); font-size: 11px; line-height: 1.4; }
.onboarding-steps li a { grid-column: 2; margin-top: 12px; color: var(--lime); font-size: 11px; font-weight: 850; text-decoration: none; }
.onboarding-steps li.complete { background: rgba(210,255,67,.08); }
.onboarding-steps li.complete > span { color: var(--lime); background: var(--blue); }
.onboarding-steps li.complete a { color: rgba(255,255,255,.45); pointer-events: none; }
.workspace-clients, .workspace-inbox, .workspace-grid, .workspace-team, .workspace-scope-library, .workspace-history { scroll-margin-top: 96px; }
.workspace-inbox, .workspace-form, .workspace-team, .scope-library-item, .history-list { border-radius: 22px; }
.metric-grid { border-radius: 22px; box-shadow: 0 10px 34px rgba(23,32,28,.06); }
.workspace-clients { margin-bottom: 22px; }
.client-section-head { margin-bottom: 18px; display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.client-section-head > div { max-width: 760px; }
.client-section-head h2 { margin: 8px 0 7px; font-size: clamp(30px, 4vw, 48px); }
.client-section-head p:last-child { margin: 0; color: var(--muted); }
.client-search { width: min(300px, 100%); flex: 0 0 auto; }
.client-search span { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.client-search input { width: 100%; min-height: 46px; padding: 11px 15px; border: 1px solid #c9ccc1; border-radius: 12px; color: var(--ink); background: var(--white); font: inherit; }
.client-portfolio-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.client-list, .client-detail { border-radius: 22px; }
.client-list { max-height: 680px; padding: 8px; display: grid; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.client-card { width: 100%; min-width: 0; padding: 15px; border: 1px solid transparent; border-radius: 15px; display: flex; gap: 14px; align-items: center; justify-content: space-between; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.client-card:hover { border-color: var(--line); background: #f4f5ef; transform: translateY(-1px); }
.client-card.selected { border-color: var(--ink); background: var(--lime); }
.client-card > span:first-child { min-width: 0; }
.client-card strong, .client-card small { display: block; }
.client-card > span:first-child strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.client-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.client-card-value { flex: 0 0 auto; text-align: right; }
.client-card-value strong { color: var(--blue); font-size: 17px; }
.client-detail { min-width: 0; overflow: hidden; }
.client-detail-head { padding: 26px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.client-detail-head h3 { margin: 4px 0 5px; font-size: clamp(28px, 3vw, 40px); }
.client-detail-head p { margin: 0; color: var(--muted); }
.client-detail-head .section-kicker { color: var(--blue); }
.client-open-value { min-width: 180px; padding: 15px 17px; border-radius: 14px; color: var(--ink); background: var(--lime); }
.client-open-value span, .client-open-value strong { display: block; }
.client-open-value span { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.client-open-value strong { margin-top: 7px; color: var(--blue); font-size: 29px; letter-spacing: -.04em; }
.client-detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.client-detail-metrics > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.client-detail-metrics > div:last-child { border: 0; }
.client-detail-metrics span, .client-detail-metrics strong { display: block; }
.client-detail-metrics span { min-height: 28px; color: var(--muted); font-size: 9px; font-weight: 820; text-transform: uppercase; letter-spacing: .06em; }
.client-detail-metrics strong { margin-top: 9px; font-size: 23px; }
.client-request-history { padding: 24px 28px 28px; }
.client-request-history h4 { margin: 0 0 12px; font-size: 15px; }
.client-request-row { padding: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border-top: 1px solid var(--line); }
.client-request-row { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.client-request-row:hover { color: var(--blue); }
.client-request-row > div { min-width: 0; }
.client-request-row > div strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.client-request-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.client-request-value { color: var(--blue); font-size: 17px; }
.empty-copy.compact { padding: 22px 0 4px; text-align: left; }
.intake-link-actions { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #f0f1eb; }
.intake-link-output { padding: 8px 8px 8px 13px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; border: 1px solid #cfd2c8; border-radius: 13px; background: var(--white); }
.intake-link-output > div { min-width: 0; }
.intake-link-output > div > span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.intake-link-output input { width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; text-overflow: ellipsis; }
.copy-action { min-height: 36px; padding: 8px 12px; border: 1px solid var(--blue); border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; color: var(--blue); background: white; font: inherit; font-size: 12px; font-weight: 820; white-space: nowrap; cursor: pointer; transition: color .16s ease, background .16s ease, transform .16s ease; }
.copy-action:hover { color: white; background: var(--blue); transform: translateY(-1px); }
.copy-action.compact { min-height: 30px; padding: 5px 10px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.request-inbox { min-height: 560px; margin-top: 28px; display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.inbox-list-pane { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f4f5ef; }
.inbox-toolbar { padding: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 1px solid var(--line); }
.inbox-toolbar .inbox-search { grid-column: 1 / -1; }
.inbox-toolbar input, .inbox-toolbar select { width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid #c9ccc1; border-radius: 11px; color: var(--ink); background-color: var(--white); font: inherit; font-size: 12px; }
.inbox-list-summary { padding: 10px 15px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.inbox-list-summary strong { color: var(--ink); }
.request-inbox .inbox-list { min-height: 0; max-height: 610px; margin: 0; border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
.inbox-request-row { width: 100%; min-width: 0; padding: 15px 16px; display: grid; gap: 7px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.inbox-request-row:hover { background: var(--white); }
.inbox-request-row.selected { position: relative; background: var(--white); box-shadow: inset 4px 0 0 var(--blue); }
.inbox-request-row-head { min-width: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.inbox-request-row-head strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-request-row-head time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.inbox-request-excerpt { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.inbox-request-meta, .inbox-source-chip { width: max-content; color: var(--blue); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.inbox-filter-empty { min-height: 260px; padding: 32px 20px; display: grid; place-content: center; gap: 5px; color: var(--muted); text-align: center; }
.inbox-filter-empty strong { color: var(--ink); font-size: 14px; }
.inbox-filter-empty span { font-size: 11px; }
.inbox-load-more { min-height: 42px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); color: var(--blue); background: var(--white); font: inherit; font-size: 11px; font-weight: 820; cursor: pointer; }
.inbox-load-more:hover { background: #edf0ff; }
.inbox-load-more:disabled { color: var(--muted); cursor: wait; }
.inbox-preview { min-width: 0; min-height: 560px; display: flex; flex-direction: column; background: var(--white); }
.inbox-preview-empty { margin: auto; max-width: 340px; padding: 48px 28px; color: var(--muted); text-align: center; }
.inbox-preview-empty > span { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #edf0ff; font-size: 22px; }
.inbox-preview-empty h3 { margin: 0; color: var(--ink); font-size: 20px; }
.inbox-preview-empty p { margin: 8px 0 0; font-size: 12px; }
.inbox-preview-head { padding: 24px 26px 20px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.inbox-preview-head h3 { margin: 6px 0 5px; font-size: clamp(24px, 3vw, 34px); }
.inbox-preview-head p { margin: 0; color: var(--muted); font-size: 11px; }
.inbox-preview-message { min-height: 190px; padding: 25px 26px; border-bottom: 1px solid var(--line); }
.inbox-preview-message > span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.inbox-preview-message p { max-height: 310px; margin: 12px 0 0; overflow-y: auto; color: var(--ink); font-size: 14px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-inbox .inbox-analyse-form { margin-top: auto; padding: 22px 26px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; border-top: 0; background: #f7f8f2; }
.request-inbox .inbox-analyse-form label { display: grid; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 820; text-transform: uppercase; letter-spacing: .04em; }
.request-inbox .inbox-analyse-form select, .request-inbox .inbox-analyse-form input { min-height: 43px; padding: 10px 12px; border-radius: 11px; font-size: 13px; }
.inbox-estimate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-inbox .inbox-analyse-form .field-prefix span { top: 12px; left: 12px; }
.request-inbox .inbox-analyse-form .field-prefix input { padding-left: 29px; }
.inbox-preview-actions { display: flex; align-items: center; gap: 14px; }
.inbox-preview-actions .button { min-height: 44px; }
.inbox-preview-actions .status-message { margin: 0; font-size: 11px; }
.inbox-analysis-result { padding: 24px 26px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: start; background: #f7f8f2; }
.inbox-analysis-score { width: 82px; height: 82px; display: grid; place-content: center; border-radius: 50%; color: white; background: var(--blue); text-align: center; }
.inbox-analysis-score strong, .inbox-analysis-score span { display: block; }
.inbox-analysis-score strong { font-size: 24px; line-height: 1; }
.inbox-analysis-score span { margin-top: 4px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.inbox-analysis-result h4 { margin: 7px 0 5px; font-size: 22px; }
.inbox-analysis-result p { margin: 0; color: var(--muted); font-size: 13px; }
.confidence-reason { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.inbox-workflow-stage { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #6a5015; background: #fff0b9; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.inbox-workflow-stage.awaiting_client { color: var(--blue); background: #e7ebff; }
.inbox-workflow-stage.resolved { color: #176c31; background: #dff7d2; }
.inbox-workflow-stage.archived { color: var(--muted); background: #e8e9e3; }
.inbox-analysis-value { min-width: 150px; padding: 14px 16px; border-radius: 12px; background: var(--lime); }
.inbox-analysis-value span, .inbox-analysis-value strong { display: block; }
.inbox-analysis-value span { font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.inbox-analysis-value strong { margin-top: 5px; color: var(--blue); font-size: 23px; }
.inbox-analysis-result ul { grid-column: 2 / -1; margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.inbox-result-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 9px; }
.inbox-archived-note { margin: auto; padding: 36px; text-align: center; }
.inbox-archived-note p { color: var(--muted); }
.team-invite-output { border: 1px solid var(--line); }
.team-invite-output > div { padding: 7px 7px 7px 12px; border: 1px solid #cfd2c8; border-radius: 13px; background: var(--white); }
.team-invite-output input { padding: 0; border: 0; background: transparent; }
.change-link-output { padding: 8px 8px 8px 13px; border: 1px solid #cfd2c8; border-radius: 13px; background: var(--white); }
.change-link-output input { margin: 0; padding: 0; border: 0; background: transparent; }
.workspace-result { padding: 0; display: block; overflow: hidden; scroll-margin-top: 96px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.workspace-analysis-head { padding: 30px 32px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.workspace-confidence { width: 84px; height: 84px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--blue); }
.workspace-confidence strong { font-size: 31px; line-height: 1; }
.workspace-confidence span { margin-top: 3px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.workspace-analysis-head .section-kicker { margin: 8px 0 0; }
.workspace-analysis-head h2 { margin: 4px 0 0; font-size: clamp(30px, 4vw, 44px); }
.workspace-result-value { min-width: 0; margin: 0 32px; padding: 19px 21px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-radius: 14px; }
.workspace-result-value strong { margin: 0; font-size: 34px; }
.workspace-result-reasons, .workspace-result-action { padding: 26px 32px 0; }
.workspace-result-reasons h3, .workspace-result-action h3 { margin: 0 0 9px; font-size: 15px; }
.workspace-result-reasons > p, .workspace-result-action p { margin: 0; color: var(--muted); }
.workspace-result-reasons ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.workspace-result-reasons li { margin: 7px 0; }
.workspace-result-draft { margin: 26px 32px 32px; }
.workspace-result-draft > div { align-items: center; }
.workspace-result-draft p { font-size: 16px; line-height: 1.5; }
.workspace-result-next { padding: 0 32px 32px; display: flex; justify-content: flex-end; }
.workspace-result[data-verdict="likely_in_scope"] .workspace-confidence { background: #176c31; }
.workspace-result[data-verdict="needs_review"] .workspace-confidence { color: var(--ink); background: var(--lime); }
.workspace-result[data-verdict="likely_in_scope"] .tag { color: #176c31; background: #dff7d2; }
.workspace-result[data-verdict="needs_review"] .tag { color: #6a5015; background: #fff0b9; }
.workspace-analysis-head .confidence-reason { max-width: 660px; }
.analysis-evidence-panel, .decision-panel, .change-request-panel { border-top: 1px solid var(--line); }
.analysis-evidence-panel > summary, .decision-panel > summary, .change-request-panel > summary { padding: 15px 24px; cursor: pointer; font-size: 12px; font-weight: 800; }
.analysis-evidence-body { padding: 0 24px 22px; }
.analysis-evidence-body > strong { display: block; margin-top: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.analysis-evidence-body p { margin: 6px 0 0; color: var(--muted); white-space: pre-wrap; }
.analysis-evidence-body ul { color: var(--muted); }
.precedent-block { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-deep); }
.precedent-block p, .precedent-block ul { margin: 8px 0 0; }
.history-item.attention { animation: decision-attention 1.8s ease; }
@keyframes decision-attention { 0%, 100% { box-shadow: none; } 20%, 70% { box-shadow: inset 5px 0 0 var(--blue); } }
.view-help-button { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; align-self: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: var(--white); font: 850 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease; }
.view-help-button:hover { color: white; border-color: var(--blue); background: var(--blue); transform: translateY(-1px); }
.view-help-button:focus-visible { outline: 3px solid rgba(21, 61, 255, .25); outline-offset: 2px; }
torchlit-overlay {
  --tour-primary: var(--blue);
  --tour-primary-foreground: white;
  --tour-card: var(--white);
  --tour-background: var(--paper);
  --tour-foreground: var(--ink);
  --tour-border: var(--line);
  --tour-muted: #edf0ff;
  --tour-muted-foreground: var(--muted);
  --tour-tooltip-radius: 18px;
  --tour-card-radius: 18px;
  --tour-btn-radius: 999px;
  --tour-spotlight-radius: 12px;
}
torchlit-overlay::part(tooltip), torchlit-overlay::part(center-card) {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.workspace-view-head { min-height: 92px; margin: 0 0 18px; display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.workspace-view-head > div { max-width: 760px; }
.workspace-view-head .eyebrow { margin: 0; }
.workspace-view-head h1, .workspace-view-head h2 { margin: 7px 0 5px; max-width: 820px; font-size: clamp(38px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.workspace-view-head > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.workspace-head { align-items: end; margin-bottom: 18px; }
.workspace-head h1 { font-size: clamp(38px, 4vw, 50px); }
.workspace-head > div > p:last-child { margin: 0; }
.client-section-head { margin-bottom: 18px; align-items: end; }
.client-section-head h2 { font-size: clamp(38px, 4vw, 50px); }
.workspace-scope-library, .workspace-history, .workspace-team { margin-top: 0; padding: 0; }
.workspace-grid-head { grid-column: 1 / -1; }
.workspace-inbox { margin: 0; padding: 0; }
.inbox-surface { padding: 0; overflow: hidden; border-radius: 20px; }
.inbox-command-bar { min-height: 52px; padding: 8px 12px 8px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #f7f8f2; }
.inbox-command-bar > div:first-child strong, .inbox-command-bar > div:first-child span { display: block; }
.inbox-command-bar > div:first-child strong { font-size: 13px; }
.inbox-command-bar > div:first-child span { margin-top: 1px; color: var(--muted); font-size: 10px; }
.inbox-command-bar .intake-link-actions { padding: 0; display: flex; gap: 8px; align-items: center; border: 0; background: transparent; }
.inbox-command-bar .intake-link-actions > .button { min-width: 158px; min-height: 36px; padding-block: 7px; }
.inbox-command-bar .intake-link-output { min-width: 0; padding: 0; border: 0; background: transparent; }
.inbox-command-bar .intake-link-output > div { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
.inbox-command-bar .intake-link-output .copy-action { min-height: 36px; padding: 7px 11px; }
.inbox-command-bar .status-message:empty, .inbox-command-bar .status-message.success-text { display: none; }
.request-inbox { min-height: 560px; margin-top: 0; border: 0; border-radius: 0; }
.team-surface { padding: 30px; }
.settings-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.integration-card { grid-column: 1 / -1; }
.settings-permission { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid var(--blue); background: rgba(21,61,255,.05); color: var(--muted); font-size: 13px; }
.integration-setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.integration-setup-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.integration-direction { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.integration-setup-card h4 { margin: 7px 0 5px; font-size: 22px; }
.integration-setup-card p { min-height: 66px; margin: 0; color: var(--muted); font-size: 13px; }
.integration-card form { display: grid; gap: 12px; margin-top: 18px; }
.integration-card form label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 750; }
.integration-card form input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #c9ccc1; border-radius: 9px; background: var(--white); color: var(--ink); }
.integration-card form input:focus { border-color: var(--blue); outline: 3px solid rgba(21,61,255,.12); }
.integration-card form .button { width: 100%; justify-content: center; margin-top: 3px; }
.integration-list-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 26px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.integration-list-head h4 { margin: 0; font-size: 18px; }
.integration-list-head span { color: var(--muted); font-size: 11px; }
.integration-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 0; border-top: 1px solid var(--line); }
.integration-row > div:first-child { min-width: 0; }
.integration-row small { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); }
.integration-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.integration-meta small { margin: 0; }
.integration-state { padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.integration-state.active { color: #166534; background: #dcf4d5; }
.integration-state.paused { color: #665f4a; background: #e8e5d9; }
.integration-endpoint { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.integration-row .integration-warning { color: #9b3d24; font-weight: 750; }
.integration-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.integration-actions .text-button { min-height: 34px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9ccc1; border-radius: 8px; color: var(--ink); background: var(--white); font-size: 11px; white-space: nowrap; }
.integration-actions .text-button:hover { border-color: var(--blue); color: var(--blue); background: rgba(21,61,255,.04); }
.integration-actions .danger-text { border-color: #dec8c3; color: #a02d20; }
.integration-action-icon { width: 15px; height: 15px; display: inline-grid; place-items: center; }
.integration-action-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.integration-action-icon svg path[d$="z"] { fill: currentColor; }
.integration-secret { margin-top: 16px; padding: 16px; border: 1px solid var(--blue); background: rgba(21,61,255,.05); border-radius: 10px; }
.integration-secret p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.integration-secret textarea { width: 100%; min-height: 84px; margin: 8px 0; }
.integration-contract { margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.integration-contract summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.integration-contract div { padding-top: 8px; }
.integration-contract p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.integration-contract code { color: var(--ink); }
.integration-recipes { margin-top: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.integration-recipes summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.integration-recipe-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.integration-recipe-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.integration-recipe-grid article > span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.integration-recipe-grid h4 { margin: 6px 0 8px; font-size: 15px; }
.integration-recipe-grid ol { margin: 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.integration-recipe-grid li + li { margin-top: 4px; }
.integration-recipe-note { margin: 10px 1px 0; color: var(--muted); font-size: 11px; }
.settings-card { min-height: 220px; padding: 28px; }
.settings-card > span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.settings-card h3 { margin: 12px 0 8px; font-size: 30px; }
.settings-card > p { color: var(--muted); }
.settings-card .plan-chip { width: max-content; margin-top: 16px; }
.settings-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.ownership-card label { display: block; margin-top: 20px; color: var(--ink); font-size: 12px; font-weight: 750; }
.ownership-card select { width: 100%; min-height: 44px; margin-top: 7px; padding: 10px 12px; border: 1px solid #c9ccc1; border-radius: 9px; background: var(--white); color: var(--ink); }
.ownership-card .button { margin-top: 12px; }
.field input, .field textarea, .field select, .inbox-analyse-form input, .inbox-analyse-form select, .team-invite-form input, .team-invite-form select, .decision-form input, .decision-form textarea, .decision-form select, .change-request-form input, .change-request-form textarea, .scope-revision-form input, .scope-revision-form textarea {
  border-color: #c9ccc1;
  background-color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.field input:hover, .field textarea:hover, .field select:hover, .inbox-analyse-form input:hover, .inbox-analyse-form select:hover, .team-invite-form input:hover, .team-invite-form select:hover, .decision-form input:hover, .decision-form textarea:hover, .decision-form select:hover { border-color: #9fa69b; }

.workspace-billing { scroll-margin-top: 96px; }
.billing-view-head { gap: 24px; }
.billing-export-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.billing-summary { margin: 22px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.billing-summary article { padding: 18px 20px; }
.billing-summary span, .billing-summary strong { display: block; }
.billing-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.billing-summary strong { margin-top: 7px; font-size: 28px; }
.billing-handoff-list { display: grid; gap: 12px; }
.billing-handoff-item { padding: 22px 24px; }
.billing-handoff-item.ready_to_invoice { border-left: 4px solid var(--blue); }
.billing-handoff-item.invoiced { border-left: 4px solid #62a83d; }
.billing-handoff-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.billing-handoff-head > div:first-child > span { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.billing-handoff-head h3 { margin: 4px 0 0; font-size: 20px; }
.billing-handoff-value { text-align: right; white-space: nowrap; }
.billing-handoff-value strong, .billing-handoff-value span { display: block; }
.billing-handoff-value strong { font-size: 24px; }
.billing-handoff-value span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.billing-handoff-request { margin: 17px 0 7px; color: var(--ink); }
.billing-handoff-meta { margin: 0; color: var(--muted); font-size: 11px; }
.billing-handoff-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: end; }
.billing-handoff-form label { flex: 1; display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.billing-handoff-form input { min-height: 41px; padding: 9px 12px; border: 1px solid #cfd2c8; border-radius: 10px; font: inherit; text-transform: none; letter-spacing: normal; }
.trust-table { margin: 20px 0 28px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trust-table > div { padding: 14px 16px; display: grid; grid-template-columns: .7fr 1.5fr 1.3fr; gap: 16px; border-bottom: 1px solid var(--line); }
.trust-table > div:last-child { border-bottom: 0; }
.trust-table > div:first-child { background: #f0f1eb; }
.trust-table span, .trust-table strong { font-size: 13px; line-height: 1.5; }

@media (max-width: 1120px) {
  .workspace-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
  .workspace-content { padding-inline: 26px; }
  .inbox-head { grid-template-columns: 1fr; }
  .request-inbox { grid-template-columns: minmax(280px, 34%) minmax(0, 1fr); }
  .onboarding-steps { grid-template-columns: 1fr 1fr; }
  .integration-setup-grid { grid-template-columns: 1fr; }
  .integration-recipe-grid { grid-template-columns: 1fr; }
  .onboarding-steps li:nth-child(2) { border-right: 0; }
  .onboarding-steps li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .overview-primary-grid, .overview-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .view-help-button { display: none; }
  .workspace-shell, .workspace-shell.sidebar-collapsed { width: 100%; display: block; }
  .workspace-sidebar { top: 72px; z-index: 20; width: 100%; height: auto; padding: 9px 14px; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-sidebar-head, .workspace-sidebar-note { display: none; }
  .workspace-side-nav { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .workspace-settings-nav { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .workspace-side-nav::-webkit-scrollbar { display: none; }
  .workspace-side-nav a, .sidebar-collapsed .workspace-side-nav a { min-width: max-content; min-height: 40px; padding: 7px 11px; display: flex; }
  .workspace-side-nav a strong, .sidebar-collapsed .workspace-side-nav a strong { display: block; font-size: 12px; }
  .workspace-side-nav a > span { width: 24px; height: 24px; }
  .workspace-content { padding: 32px 20px 80px; }
  .workspace-view-head { min-height: 0; align-items: stretch; flex-direction: column; }
  .inbox-command-bar { align-items: stretch; flex-direction: column; }
  .inbox-command-bar .intake-link-actions { align-items: stretch; flex-direction: column; }
  .inbox-command-bar .intake-link-output { min-width: 0; }
  .workspace-head, .workspace-clients, .workspace-inbox, .workspace-grid, .workspace-team, .workspace-scope-library, .workspace-history, .workspace-result { scroll-margin-top: 146px; }
  .workspace-billing { scroll-margin-top: 146px; }
  .billing-view-head { align-items: stretch; }
  .billing-export-actions { justify-content: flex-start; }
  .client-section-head { align-items: stretch; flex-direction: column; }
  .client-search { width: 100%; }
  .decision-toolbar { align-items: stretch; flex-direction: column; }
  .decision-search { flex-basis: auto; }
  .client-portfolio-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .integration-row { flex-direction: column; }
  .integration-actions { justify-content: flex-start; }
  .request-inbox { min-height: 0; grid-template-columns: 1fr; }
  .inbox-list-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .request-inbox .inbox-list { max-height: 330px; }
  .inbox-preview { min-height: 500px; }
  .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-onboarding { padding: 24px; }
  .workspace-analysis-head { padding: 25px 24px 18px; }
  .workspace-result-value { margin-inline: 24px; }
  .workspace-result-reasons, .workspace-result-action { padding-inline: 24px; }
  .workspace-result-draft { margin-inline: 24px; }
}

@media (max-width: 560px) {
  .workspace-nav .nav { width: min(100% - 28px, 1540px); }
  .workspace-account #workspace-nav-name { display: none; }
  .workspace-content { padding: 28px 14px 70px; }
  .workspace-head h1 { font-size: 46px; }
  .overview-panel-head { min-height: 0; padding: 22px; flex-direction: column; gap: 8px; }
  .overview-panel-head h2 { font-size: 25px; }
  .overview-row { padding-inline: 18px; }
  .overview-row-top { align-items: flex-start; flex-direction: column; }
  .overview-row-copy > span { white-space: normal; }
  .overview-activity-row { padding-inline: 18px; }
  .overview-trend-totals { padding-inline: 20px; }
  .overview-chart { padding-inline: 18px; }
  .workspace-analysis-head { grid-template-columns: 1fr; }
  .workspace-confidence { width: 70px; height: 70px; }
  .workspace-result-value { align-items: start; flex-direction: column; }
  .workspace-result-value strong { font-size: 31px; }
  .intake-link-output, .team-invite-output > div, .change-link-output { grid-template-columns: 1fr; }
  .intake-link-output .copy-action, .team-invite-output .copy-action, .change-link-output .copy-action { width: 100%; }
  .workspace-result-draft { margin: 22px 18px 24px; }
  .workspace-result-reasons, .workspace-result-action { padding-inline: 18px; }
  .workspace-result-value { margin-inline: 18px; }
  .onboarding-head { flex-direction: column; }
  .onboarding-progress { text-align: left; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-steps li, .onboarding-steps li:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .onboarding-steps li:last-child { border-bottom: 0; }
  .client-list { max-height: 460px; grid-template-columns: 1fr; }
  .client-detail-head { padding: 22px; align-items: stretch; flex-direction: column; }
  .client-open-value { min-width: 0; }
  .client-detail-metrics { grid-template-columns: 1fr 1fr; }
  .client-detail-metrics > div { border-bottom: 1px solid var(--line); }
  .client-detail-metrics > div:nth-child(2) { border-right: 0; }
  .client-detail-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .client-request-history { padding: 22px; }
  .workspace-inbox { padding: 0; }
  .inbox-toolbar { grid-template-columns: 1fr; }
  .inbox-preview-head { padding: 20px; }
  .inbox-preview-message { padding: 22px 20px; }
  .request-inbox .inbox-analyse-form { padding: 20px; }
  .inbox-estimate-fields { grid-template-columns: 1fr; }
  .inbox-preview-actions { align-items: stretch; flex-direction: column; }
  .inbox-preview-actions .button { width: 100%; }
  .inbox-analysis-result { grid-template-columns: auto 1fr; padding: 20px; }
  .inbox-analysis-value, .inbox-analysis-result ul, .inbox-result-actions { grid-column: 1 / -1; }
  .billing-summary { grid-template-columns: 1fr 1fr; }
  .billing-handoff-head, .billing-handoff-form { align-items: stretch; flex-direction: column; }
  .billing-handoff-value { text-align: left; }
  .billing-export-actions .button { width: 100%; }
  .trust-table > div { grid-template-columns: 1fr; gap: 5px; }
  .trust-table > div:first-child { display: none; }
}

@media print {
  .report-nav, #change-response-form, .form-footnote, #print-change-record { display: none !important; }
  .change-shell { padding: 0; background: #fff; }
  .change-card { border: 0; box-shadow: none; }
  .review-nav, .approval-form, .site-header, .report-nav, .report-conversion, .report-footer button { display: none !important; }
  .review-page { padding: 0; }
  .review-card { box-shadow: none; border: 0; }
  .report-wrap { width: 100%; padding: 0; }
  .report-hero { border-radius: 0; }
}

/* Admin operations refinement */
.admin-page { background: #f2f3ed; }
.admin-page .workspace-account { gap: 18px; }
.admin-shell .workspace-sidebar { background: #fbfcf8; }
.admin-shell .workspace-side-nav { margin-bottom: 0; }
.admin-content { max-width: 1540px; padding-top: 34px; }
.admin-content .workspace-view-head { margin-bottom: 24px; }
.admin-content .workspace-view-head h1,
.admin-content .workspace-view-head h2 { max-width: 900px; }
.admin-refresh,
.admin-row-action,
.admin-page-button { min-height: 40px; padding: 9px 14px; border: 1px solid #cfd3ca; border-radius: 11px; color: var(--ink); background: var(--white); font: inherit; font-size: 12px; font-weight: 780; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.admin-refresh:hover,
.admin-row-action:hover:not(:disabled),
.admin-page-button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: #f7f8ff; }
.admin-page-button:disabled,
.admin-row-action:disabled { opacity: .45; cursor: not-allowed; }
.admin-metric-grid { grid-template-columns: repeat(6, minmax(128px, 1fr)); gap: 14px; }
.admin-metric { min-height: 118px; padding: 20px 22px; border-radius: 18px; }
.admin-metric strong { margin-top: 13px; font-size: 34px; }
.admin-revenue-card { margin: 0 0 20px; padding: 26px 28px 22px; border-radius: 20px; }
.admin-revenue-card .admin-card-head { margin-bottom: 22px; }
.admin-card-head > div > p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.admin-segmented { padding: 4px; display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: #eceee7; }
.admin-segmented button { min-width: 68px; padding: 7px 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: 11px; font-weight: 780; cursor: pointer; }
.admin-segmented button.active { color: white; background: var(--ink); box-shadow: 0 4px 12px rgba(23,32,28,.15); }
.admin-financial-summary { margin-bottom: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.admin-financial-summary > div { padding: 15px 18px; border-right: 1px solid var(--line); background: #f7f8f3; }
.admin-financial-summary > div:last-child { border-right: 0; }
.admin-financial-summary span,
.admin-access-summary > span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-financial-summary strong { margin-top: 4px; display: block; font-size: 24px; letter-spacing: -.035em; }
.admin-chart { min-height: 276px; padding: 8px 0 0; display: grid; place-items: center; }
.admin-chart svg { width: 100%; height: auto; max-height: 280px; overflow: visible; }
.admin-chart-grid { stroke: #dfe2d9; stroke-width: 1; stroke-dasharray: 3 5; }
.admin-chart-axis { fill: #78817a; font-size: 10px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.admin-chart-area { fill: rgba(21,61,255,.09); }
.admin-chart-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.admin-dashboard-grid { gap: 20px; }
.admin-card { padding: 24px 26px; border-radius: 20px; }

.admin-toolbar { margin-bottom: 16px; padding: 14px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, 230px) auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.admin-search-field,
.admin-select-field { min-width: 0; display: grid; gap: 7px; color: #4f5b54; font-size: 10px; font-weight: 820; letter-spacing: .055em; text-transform: uppercase; }
.admin-search-field input,
.admin-search-field textarea,
.admin-select-field select,
.admin-demo-note-form textarea,
.admin-demo-status-form select { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #c8cdc3; border-radius: 11px; color: var(--ink); background-color: #fbfcf8; font: inherit; font-size: 13px; font-weight: 520; letter-spacing: 0; text-transform: none; box-shadow: inset 0 1px 2px rgba(23,32,28,.035); }
.admin-search-field textarea,
.admin-demo-note-form textarea { min-height: 94px; line-height: 1.5; resize: vertical; }
.admin-select-field select,
.admin-demo-status-form select { padding-right: 40px !important; background-color: #fbfcf8 !important; background-position: right 13px center !important; }
.admin-toolbar .admin-refresh { min-height: 44px; }
.admin-table-panel { border-radius: 18px; }
.admin-table-wrap th { padding: 14px 16px; background: #eaede6; }
.admin-table-wrap td { padding: 16px; }
.admin-primary-cell strong { font-size: 13px; }
.admin-primary-cell small { margin-top: 4px; font-size: 10px; }
.admin-pager { min-height: 58px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); color: var(--muted); background: #f7f8f3; font-size: 11px; }
.admin-pager:empty { display: none; }

.admin-demo-inbox { padding: 0; overflow: hidden; border-radius: 20px; }
.admin-demo-inbox .request-inbox { min-height: 640px; margin: 0; grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); border: 0; border-radius: 0; }
.admin-demo-inbox .inbox-toolbar { grid-template-columns: 1fr; }
.admin-demo-inbox .inbox-list { max-height: 570px; }
.admin-demo-inbox .inbox-request-row.selected { background: var(--white); box-shadow: inset 4px 0 0 var(--blue); }
.admin-demo-inbox .inbox-request-row-head { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.admin-demo-inbox .inbox-request-row-head strong { font-size: 13px; }
.admin-demo-inbox .inbox-preview { min-height: 640px; }
.admin-demo-inbox .admin-facts { margin: 0; padding: 18px 26px; border-bottom: 1px solid var(--line); grid-template-columns: 90px minmax(0, 1fr); }
.admin-demo-inbox .inbox-preview-message { min-height: 160px; }
.admin-demo-controls { margin-top: auto; padding: 22px 26px; display: grid; grid-template-columns: minmax(190px, .45fr) minmax(280px, 1fr); gap: 14px; align-items: stretch; border-top: 1px solid var(--line); background: #f7f8f2; }
.admin-demo-control { min-width: 0; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.admin-demo-control-head h4 { margin: 0; font-size: 14px; }
.admin-demo-control-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-demo-control .admin-detail-actions { margin-top: auto; justify-content: flex-start; }
.admin-demo-note-form textarea { width: 100%; }
.admin-notes { margin: 0; padding: 20px 26px 26px; border-top: 1px solid var(--line); }

.admin-query { margin-bottom: 18px; padding: 18px; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) minmax(180px, .7fr) auto; gap: 12px; align-items: end; border-radius: 18px; }
.admin-query .button { min-height: 44px; }
.admin-activity-results { min-height: 360px; }
.admin-query-empty { min-height: 230px; padding: 36px; display: grid; place-content: center; color: var(--muted); text-align: center; }
.admin-query-empty strong { color: var(--ink); font-size: 16px; }
.admin-query-empty p { max-width: 430px; margin: 6px 0 0; font-size: 12px; }
.admin-timeline-row { padding: 14px 2px; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; }
.admin-timeline-row > div { min-width: 0; }
.admin-activity-context { margin-top: 4px; display: block; overflow: hidden; color: var(--blue); font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.admin-timeline-row small { margin-top: 4px; }

.admin-access-summary { color: var(--ink); background: var(--white); }
.admin-access-summary > span { color: var(--blue); }
.admin-access-summary h2 { margin: 6px 0 18px; }
.admin-access-summary dl { margin: 0; display: grid; }
.admin-access-summary dl > div { padding: 12px 0; display: flex; gap: 20px; justify-content: space-between; border-top: 1px solid var(--line); }
.admin-access-summary dt { color: var(--muted); font-size: 12px; }
.admin-access-summary dd { margin: 0; font-size: 12px; font-weight: 760; }

.admin-dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgba(23,32,28,.28); }
.admin-dialog::backdrop { background: rgba(14,22,18,.6); backdrop-filter: blur(4px); }
.admin-dialog form { padding: 26px; display: grid; gap: 16px; }
.admin-dialog-head { display: flex; gap: 20px; align-items: start; justify-content: space-between; }
.admin-dialog-head .eyebrow { margin-bottom: 12px; }
.admin-dialog-head h2 { margin: 0; font-size: 30px; }
.admin-dialog-head p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.admin-dialog-close { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 22px; cursor: pointer; }
.admin-dialog-note { margin: 0; padding: 12px 14px; border-radius: 10px; color: var(--muted); background: #eef0e9; font-size: 11px; }
.admin-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 1120px) {
  .admin-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-query { grid-template-columns: 1fr 1fr; }
  .admin-demo-inbox .request-inbox { grid-template-columns: 1fr; }
  .admin-demo-inbox .inbox-list-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-demo-inbox .inbox-list { max-height: 340px; }
}

@media (max-width: 560px) {
  .admin-content { padding: 26px 14px 70px; }
  .admin-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-revenue-card { padding: 20px 16px; }
  .admin-revenue-card .admin-card-head { align-items: stretch; flex-direction: column; }
  .admin-segmented { width: 100%; }
  .admin-segmented button { flex: 1; }
  .admin-financial-summary { grid-template-columns: 1fr; }
  .admin-financial-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-financial-summary > div:last-child { border-bottom: 0; }
  .admin-toolbar,
  .admin-query { grid-template-columns: 1fr; }
  .admin-toolbar input,
  .admin-toolbar select { min-width: 0; }
  .admin-demo-controls { grid-template-columns: 1fr; padding: 20px; }
  .admin-pager { align-items: stretch; flex-direction: column; text-align: center; }
  .admin-dialog form { padding: 20px; }
  .admin-dialog-actions { flex-direction: column-reverse; }
  .admin-timeline-row { grid-template-columns: 10px minmax(0, 1fr); }
  .admin-timeline-row > .admin-row-action { grid-column: 2; justify-self: start; }
}

/* Workspace and administration interaction system */
.workspace-page .workspace-content { padding-block: var(--space-8) 72px; }
.workspace-page .workspace-view-head { min-height: 0; margin-bottom: var(--space-5); align-items: center; }
.workspace-page .workspace-view-head h1,
.workspace-page .workspace-view-head h2 { margin: var(--space-2) 0 var(--space-1); font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.workspace-page .workspace-view-head > div > p:last-child { max-width: 680px; font-size: 14px; line-height: 1.45; }
.workspace-page .eyebrow { margin-bottom: var(--space-2); font-size: 10px; }
.workspace-page .panel { border-radius: var(--surface-radius); }
.workspace-page input,
.workspace-page textarea,
.workspace-page select { min-height: var(--control-height); border-radius: 10px; }
.workspace-page .button { min-height: var(--control-height); padding: 9px 15px; border-radius: 10px; box-shadow: none; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.workspace-page .button:hover { transform: none; box-shadow: none; }
.workspace-page .button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.workspace-page .button.secondary { color: var(--ink); background: var(--white); border-color: #c9cec5; }
.workspace-page .button.utility { color: var(--ink); background: transparent; border-color: transparent; }
.workspace-page .button.destructive { color: white; background: #a93024; border-color: #a93024; }
.workspace-page .button:focus-visible,
.workspace-page .icon-action:focus-visible,
.workspace-page .admin-row-action:focus-visible,
.workspace-page .admin-refresh:focus-visible,
.workspace-page .admin-page-button:focus-visible { outline: 3px solid rgba(21,61,255,.3); outline-offset: 2px; }
.workspace-page .status-message { display: none !important; }
.workspace-page .field-error,
.workspace-page .action-inline-error { display: block; margin-top: var(--space-2); color: #8c2e25; font-size: 11px; font-weight: 680; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.workspace-page .action-inline-error { flex-basis: 100%; }
.workspace-page button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.workspace-page button.is-busy::before { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; color: var(--blue); animation: report-spin .7s linear infinite; }
.workspace-page .button.primary.is-busy::before,
.workspace-page .button.destructive.is-busy::before { color: white; }
.workspace-page button.is-success { animation: action-success .48s ease; border-color: #22834a !important; color: #176c31 !important; background: #e7f6e9 !important; }
.workspace-page button.is-error { animation: action-error .36s ease; border-color: #b4372b !important; color: #9b2d22 !important; background: #fff1ee !important; }
@keyframes action-success { 0% { transform: scale(.96); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes action-error { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.icon-action { width: 40px; height: 40px; min-width: 40px; padding: 0; position: relative; display: inline-grid; place-items: center; border: 1px solid #cbd0c7; border-radius: 10px; color: var(--ink); background: var(--white); cursor: pointer; }
.icon-action:hover { border-color: var(--blue); color: var(--blue); background: #f5f7ff; }
.icon-action.action-destructive { color: #a32e24; border-color: #e0c5c0; }
.icon-action:disabled { opacity: .42; cursor: not-allowed; }
.action-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.action-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-tooltip]::after,
[data-disabled-reason]::after { content: attr(data-tooltip); position: absolute; z-index: 40; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 210px; padding: 6px 8px; border-radius: 7px; color: white; background: var(--ink); box-shadow: 0 6px 22px rgba(16,25,21,.18); font-size: 11px; font-weight: 720; line-height: 1.3; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease; }
[data-disabled-reason]::after { content: attr(data-disabled-reason); }
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after,
[data-disabled-reason]:hover::after,
[data-disabled-reason]:focus-visible::after { opacity: 1; transform: translateY(0); }
[data-disabled-reason] { position: relative; }
.inline-confirm { margin: var(--space-3); padding: var(--space-3) var(--space-4); flex-basis: 100%; display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; border: 1px solid #e2c9c4; border-radius: 12px; color: #6f2d25; background: #fff4f1; font-size: 12px; }
.inline-confirm > div { display: flex; gap: var(--space-2); }
.secondary-form-toggle { min-height: 40px; }
.secondary-form[hidden] { display: none !important; }
.secondary-setup { margin-top: var(--space-4); border: 1px solid var(--line); border-radius: 12px; background: #f7f8f3; }
.secondary-setup > summary { padding: var(--space-3) var(--space-4); cursor: pointer; font-size: 12px; font-weight: 780; }
.secondary-setup[open] > summary { border-bottom: 1px solid var(--line); }
.secondary-setup .integration-setup-grid { margin: 0; padding: var(--space-4); }
.form-action-zone,
.row-action-zone { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }
select.is-success { border-color: #22834a !important; animation: action-success .48s ease; }
select.is-error { border-color: #b4372b !important; animation: action-error .36s ease; }
.row-overflow { position: relative; }
.row-overflow > summary { list-style: none; }
.row-overflow > summary::-webkit-details-marker { display: none; }
.overflow-menu { min-width: 190px; padding: var(--space-2); position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 12px 36px rgba(23,32,28,.16); }
.overflow-action { min-height: 40px; padding: 8px 10px; display: flex; gap: var(--space-2); align-items: center; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; font-size: 12px; font-weight: 680; text-align: left; cursor: pointer; }
.overflow-action:hover { color: var(--blue); background: #f1f3ff; }
.overflow-action.destructive-text { color: #a32e24; }
.skeleton { position: relative; overflow: hidden; background: #f2f3ed; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: skeleton-sweep 1.25s infinite; }
.skeleton-row { min-height: 64px; padding: var(--space-4); display: grid; gap: var(--space-2); border-bottom: 1px solid var(--line); }
.skeleton-card { min-height: 128px; padding: var(--space-5); border-radius: var(--surface-radius); }
.skeleton span { display: block; width: 62%; height: 11px; border-radius: 6px; background: #dfe2da; }
.skeleton span + span { width: 38%; height: 8px; }
@keyframes skeleton-sweep { to { transform: translateX(100%); } }
.empty-state,
.error-state,
.read-only-state { min-height: 150px; padding: var(--space-8); display: grid; place-content: center; justify-items: center; gap: var(--space-2); color: var(--muted); text-align: center; }
.empty-state strong,
.error-state strong,
.read-only-state strong { color: var(--ink); font-size: 16px; }
.empty-state p,
.error-state p,
.read-only-state p { max-width: 480px; margin: 0; font-size: 12px; }
.team-row,
.integration-row,
.overview-row,
.scope-library-card { padding: var(--space-4) var(--space-5); }
.team-row-actions { gap: var(--space-2); }
.team-row-actions.integration-actions .team-user-action,
.team-row-actions.integration-actions .revoke-team-invite { width: 40px; min-width: 40px; min-height: 40px; }
.metric-grid article { min-height: 112px; padding: var(--space-5); }
.metric-grid strong { margin-top: var(--space-4); font-size: 32px; }

/* Recurring workflow, progressive acquisition, and commercial action release. */
@media (min-width: 900px) and (max-height: 800px) {
  .monitor-hero { padding: 38px 0 42px; }
  .monitor-hero h1 { font-size: clamp(58px, 5.7vw, 76px); }
  .monitor-hero .lede { margin: 18px 0; font-size: 18px; line-height: 1.45; }
  .monitor-hero .signal-message { margin-block: 14px; }
  .monitor-hero .signal-analysis { padding: 15px; }
}
.hero-trust { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.hero-trust span::before { content: "✓"; margin-right: 6px; color: #176c31; font-weight: 900; }
.hero-trust a { color: var(--blue); font-weight: 750; }
.progressive-steps { margin: 18px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.progressive-steps span { padding: 8px 10px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
.progressive-steps span.active { border-color: var(--blue); color: var(--blue); }
.progressive-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.audit-back { margin-top: 12px; color: var(--blue); }
.setup-journey { margin: 18px 0 22px; padding: 0; display: grid; gap: 8px; list-style: none; text-align: left; }
.setup-journey li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.setup-journey strong { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--blue); font-size: 11px; }
.workspace-view-actions { display: flex; gap: 10px; align-items: center; }
.secondary-scope-form { grid-column: 1 / -1; order: 3; }
#check-form { grid-column: 1 / -1; order: 2; max-width: 860px; }
.primary-metrics { grid-template-columns: repeat(3, 1fr); }
.metric-drilldown { margin: -8px 0 22px; padding: 0; overflow: hidden; }
.metric-drilldown summary { padding: 14px 20px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-drilldown > div { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric-drilldown article { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-drilldown span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-drilldown strong { display: block; margin-top: 10px; font-size: 24px; }
.result-commercial-actions { margin: 0 32px 22px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #f6f7f1; }
.result-commercial-actions h3 { margin: 0 0 4px; font-size: 18px; }
.result-commercial-actions > div > p { margin: 0; color: var(--muted); }
.result-action-buttons { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.result-action-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.result-action-form > label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.result-action-form textarea { min-height: 92px; }
.result-action-explainer { color: var(--muted); font-size: 13px; }
.approval-send-preview { margin: 14px 0; padding: 13px 15px; display: grid; gap: 4px; border-radius: 12px; background: #eef1ff; font-size: 13px; }
.approval-send-preview span { color: var(--muted); }
#result-approval-output { margin-top: 14px; display: grid; grid-template-columns: minmax(160px, .7fr) 1fr auto; gap: 10px; align-items: center; }
#result-approval-output[hidden] { display: none; }
#result-approval-output > div { display: grid; font-size: 12px; }
.inbox-reassign-toggle { margin-top: -4px; justify-self: start; color: var(--blue); }
.inbox-reassignment-confirmation { padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 9px; border: 1px solid #d78e24; border-radius: 12px; color: #684612; background: #fff5df; font-size: 12px; line-height: 1.45; }
.inbox-reassignment-confirmation[hidden] { display: none; }
.request-identity-audit { display: block; margin-top: 9px; color: var(--muted); }
.scope-file-import { margin-top: 16px; padding: 14px; display: grid; gap: 7px; border: 1px dashed var(--line); border-radius: 12px; }
.scope-file-import label { font-weight: 800; }
.scope-file-import label span, .scope-file-import small { color: var(--muted); font-size: 12px; }
.scope-file-status { min-height: 18px; margin: 0; font-size: 12px; }
.scope-file-status.success-text { color: #176c31; }
.scope-file-status.error-text { color: var(--red); }
.intake-setup-wizard { margin: 0 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: #f6f7f1; }
.intake-setup-wizard summary { padding: 13px 16px; cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 850; }
.intake-wizard-body { padding: 4px 16px 16px; }
.intake-wizard-body > label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.intake-wizard-body ol { margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; counter-reset: wizard; }
.intake-wizard-body li { padding: 12px; display: grid; gap: 5px; border-radius: 10px; background: white; counter-increment: wizard; }
.intake-wizard-body li strong::before { content: counter(wizard) ". "; color: var(--blue); }
.intake-wizard-body li span, .intake-wizard-body > p { color: var(--muted); font-size: 12px; }
.pending-approval-controls { margin: 12px 0; padding: 10px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; border-radius: 10px; background: #fff5df; color: #684612; font-size: 12px; font-weight: 800; }
@media (max-width: 820px) {
  .primary-metrics, .metric-drilldown > div { grid-template-columns: 1fr; }
  .workspace-check-cta { position: fixed; z-index: 20; right: 16px; bottom: 16px; box-shadow: var(--shadow); }
  .workspace-grid { display: flex; flex-direction: column; }
  .workspace-grid-head { order: 1; }
  #check-form { order: 2; }
  .secondary-scope-form { order: 3; }
  .result-commercial-actions { margin-inline: 18px; padding: 18px; }
  .result-action-buttons .button { width: 100%; }
  #result-approval-output { grid-template-columns: 1fr; }
  .intake-wizard-body ol { grid-template-columns: 1fr; }
}
.overview-panel-head { min-height: 0; padding: var(--space-5); }
.overview-panel-head h2 { font-size: 23px; }
.workspace-team,
.workspace-scope-library { margin-top: 0; padding: 0; }
.team-surface { padding: var(--space-5); }
.workspace-grid { gap: var(--space-5); }
.workspace-form { padding: var(--space-5); }
.settings-grid { gap: var(--space-4); }
.settings-card { padding: var(--space-5); }
.command-palette { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - min(12vh, 96px) - 10px); margin: min(12vh, 96px) auto 10px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgba(23,32,28,.28); }
.command-palette[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.command-palette::backdrop { background: rgba(14,22,18,.48); backdrop-filter: blur(3px); }
.command-palette-head { min-height: 64px; padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; border-bottom: 1px solid var(--line); }
.command-palette-search { color: var(--muted); }
.command-palette-head input { width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; color: var(--ink); background: transparent; outline: 0; }
.command-palette-head input::placeholder { color: #8a928b; opacity: 1; }
.command-palette kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #f0f1eb; font-size: 10px; line-height: 1.35; white-space: nowrap; }
.command-palette-list { min-height: 0; padding: var(--space-2); overflow-y: auto; overscroll-behavior: contain; }
.command-palette-list button { width: 100%; min-height: 40px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.command-palette-list button:hover,
.command-palette-list button:focus-visible { background: #eef0ff; outline: none; }

@media (max-height: 560px) {
  .command-palette { max-height: calc(100dvh - 20px); margin: 10px auto; }
  .command-palette-head { min-height: 58px; padding-block: var(--space-2); }
  .command-palette-list button { min-height: 38px; padding-block: 6px; }
}

@media (max-width: 1120px) {
  .workspace-page .workspace-content { padding-inline: var(--space-6); }
  .admin-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .workspace-page .workspace-content { padding: var(--space-6) var(--space-4) 64px; }
  .workspace-page .workspace-view-head { align-items: stretch; flex-direction: column; gap: var(--space-3); }
  .workspace-page .workspace-view-head h1,
  .workspace-page .workspace-view-head h2 { font-size: 32px; }
  .workspace-page .workspace-view-head .button { align-self: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-table-wrap { overflow-x: auto; }
  .admin-table-wrap table { min-width: 760px; }
  .team-row { align-items: flex-start; flex-direction: column; }
  .team-row-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .workspace-page .workspace-content { padding-inline: var(--space-3); }
  .workspace-page .workspace-view-head h1,
  .workspace-page .workspace-view-head h2 { font-size: 29px; }
  .metric-grid,
  .admin-metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 96px; padding: var(--space-4); }
  .metric-grid strong { font-size: 27px; }
  .inline-confirm { align-items: stretch; flex-direction: column; }
  .inline-confirm > div { justify-content: flex-end; }
  .settings-grid { grid-template-columns: 1fr; }
}
