/* Olive — runolive.ai
   Tokens match the app (platform frontend/src/index.css @ 46a849a unless noted).
   Two text roles use a darker app value where the app token is below WCAG AA on the
   page background: secondary text (#78745F → the app's #5A5A4F) and inline links
   (#6B7C4A → the app's #2F3A1F). Fonts are self-hosted (no third-party requests), OFL-1.1. */

/* Newsreader: the app's own file, @fontsource-variable/newsreader 5.2.10, latin, wght 200–800 */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Plus Jakarta Sans: the app loads it from Google Fonts; self-hosted here from @fontsource-variable/plus-jakarta-sans 5.3.0, latin, wght 200–800 */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2-variations"), url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #2D3319;        /* --olive-ink (index.css:19); logo ink (Logo.tsx:9) */
  --olive: #56663A;      /* primary button: darker than the app's #6B7C4A for WCAG AA (founder ruling D3, 2026-09-25) */
  --accent: #6B7C4A;     /* --olive-accent = --primary (index.css:20, :34): accents, rules, numerals */
  --olive-deep: #2F3A1F; /* --olive-dark-mid (index.css:18): primary hover (button.tsx:14); inline links */
  --on-olive: #FAFAF7;   /* --primary-foreground (index.css:35) */
  --leaf: #6B7F3B;       /* logo leaf (Logo.tsx:8): review marks */
  --stone: #5A5A4F;      /* secondary body text (BriefTab.tsx:964) */
  --paper: #F5F3EE;      /* --olive-bg = --background (index.css:22) */
  --paper-deep: #F1EAD9; /* warm wash, top stop of the home gradient (HomePage.tsx:32) */
  --card: #FFFFFF;       /* --olive-card (index.css:23) */
  --sage: #E6E8D8;       /* --accent (index.css:42) */
  --line: #E8E6DD;       /* --olive-border (index.css:24) */
  --secondary: #ECEADF;  /* --secondary / --muted (index.css:37, :40): tab track */
  --muted-fg: #78745F;   /* --muted-foreground (index.css:41): inactive tabs in mocks (large/bold or decorative only) */
  --input: #DED9CC;      /* --input (index.css:48): form field borders */
  --warning: #8B3A3A;    /* --olive-warning = --destructive (index.css:25) */
  --warning-bg: #FDF7F7; /* warning card background (BriefTab.tsx:949) */
  --radius-md: 8px;      /* calc(--radius - 2px), --radius 0.625rem (index.css:14, :63) */
  --radius-lg: 10px;     /* --radius */
  --radius-xl: 14px;     /* calc(--radius + 4px) (index.css:65): cards (card.tsx:10) */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);                               /* Tailwind v4 shadow-xs */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); /* Tailwind v4 shadow-sm: cards, primary button */
  --serif: "Newsreader", Georgia, serif;             /* --font-serif (index.css:60) */
  --sans: "Plus Jakarta Sans", system-ui, sans-serif; /* --font-sans (index.css:59) */
  --measure: 68ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 520px) var(--paper); /* the app's warm wash: linear-gradient(180deg,#F1EAD9 0%,#F5F3EE 100%) */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--olive-deep); text-decoration-color: var(--olive); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 4px; } /* focus ring = --ring */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 26px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--olive); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: var(--radius-md); font: 600 14px/20px var(--sans); white-space: nowrap; text-decoration: none; transition: background-color .15s ease, color .15s ease; } /* button.tsx:8 base + size lg (:30) */
.btn-primary { background: var(--olive); color: var(--on-olive); box-shadow: var(--shadow-sm); } /* variant default (button.tsx:13-14) */
.btn-primary:hover { background: var(--olive-deep); color: var(--on-olive); }
.btn-quiet { color: var(--ink); padding: 0 16px; } /* variant ghost (button.tsx:24) */
.btn-quiet:hover { background: var(--sage); color: #142016; } /* --accent / --accent-foreground = --olive-dark (index.css:17) */

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; margin: 0 0 24px; max-width: 15ch; }
.lede { font-size: 19px; line-height: 1.6; color: var(--stone); max-width: 46ch; margin: 0 0 32px; }
section h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 16px; max-width: 26ch; }
section .intro { color: var(--stone); max-width: 58ch; margin: 0; }

/* Hero */
.hero { padding: 40px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* The review sheet: the one memorable element */
.sheet { position: relative; margin: 0; padding-right: 172px; }
.draft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 1px 0 rgba(45,51,25,.04), 0 18px 40px -24px rgba(45,51,25,.28); padding: 22px 24px 26px; font-size: 15px; }
.draft-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.draft-head .who { font-weight: 600; }
.draft-head .role { color: var(--stone); font-size: 14px; display: block; font-weight: 400; }
.status { font-size: 13px; font-weight: 600; color: var(--olive-deep); background: var(--sage); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.draft .subject { font-weight: 600; margin: 0 0 12px; }
.draft p { margin: 0 0 12px; }
.draft p:last-child { margin-bottom: 0; }
.mark { background: linear-gradient(transparent 58%, rgba(107,127,59,.22) 0); padding: 0 1px; }
.cut { color: #6F6C62; text-decoration: line-through; text-decoration-color: rgba(107,127,59,.8); }
.notes { position: absolute; top: 64px; right: 0; width: 160px; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notes li { font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--sage); border-left: 3px solid var(--leaf); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 9px 11px; }
.notes li span { display: block; color: var(--stone); font-size: 12px; margin-top: 2px; }
.sheet-foot { margin-top: 14px; font-size: 13px; color: var(--stone); }

@media (prefers-reduced-motion: no-preference) {
  .notes li { opacity: 0; transform: translateX(6px); animation: note-in .45s ease forwards; }
  .notes li:nth-child(1) { animation-delay: .5s; }
  .notes li:nth-child(2) { animation-delay: .9s; }
  .notes li:nth-child(3) { animation-delay: 1.3s; }
  @keyframes note-in { to { opacity: 1; transform: none; } }
}

/* Sections */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--leaf); margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--stone); font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.points li:first-child { padding-top: 0; }
.points h3 { font-size: 22px; margin: 0 0 6px; }
.points p { margin: 0; color: var(--stone); }

.outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.output { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 24px; }
.output h3 { font-size: 22px; margin: 0 0 6px; }
.output p { margin: 0; color: var(--stone); font-size: 16px; }

.closing { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.closing h2 { margin-bottom: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--stone); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.site-footer img { height: 22px; width: auto; display: block; margin-bottom: 12px; }
.site-footer p { margin: 0; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--olive); text-decoration: underline; }

/* Legal and utility pages */
.doc { padding: 24px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; margin: 16px 0 12px; }
.doc .doc-meta { color: var(--stone); font-size: 15px; margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.prose { font-size: 16px; line-height: 1.7; max-width: var(--measure); }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 26px; }
.prose li { margin-bottom: 8px; }
.prose li > p { margin: 0 0 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--sage); }
.prose .clause-num { font-weight: 600; margin-right: 6px; }

/* Numbered legal lists (DPA): numbers are written into the text, so hide browser markers */
.prose ol.legal-l1, .prose ol.legal-l2 { list-style: none; padding-left: 0; }
.prose ol.legal-l1 > li > h2 { margin-top: 40px; }
.prose ol[type="a"] { list-style: lower-alpha; padding-left: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .closing .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 12px; }
  .site-nav { width: 100%; gap: 18px; font-size: 14px; overflow-x: auto; white-space: nowrap; }
  .hero { padding: 16px 0 72px; }
  .sheet { padding-right: 0; }
  .notes { position: static; width: auto; margin-top: 14px; }
  .steps, .outputs { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 64px 0; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Problem section */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.needs h3 { font-size: 22px; margin: 0 0 8px; }
.needs p { margin: 0; color: var(--stone); font-size: 16px; }
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.audience h3 { font-size: 24px; margin: 0 0 10px; }
.audience p { margin: 0 0 12px; color: var(--stone); max-width: 56ch; }
.statement { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; color: var(--ink); max-width: 40ch; margin: 64px 0 0; padding-left: 24px; border-left: 3px solid var(--leaf); }

/* Multi-threading illustration */
.threads { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 24px; }
.threads-account { font-weight: 600; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.threads dl { margin: 0; display: grid; gap: 12px; }
.threads dl > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding: 12px 14px; background: var(--sage); border-radius: var(--radius-lg); }
.threads dt { font-weight: 600; font-size: 15px; }
.threads dd { margin: 0; font-size: 15px; color: var(--ink); }
.threads figcaption { margin-top: 14px; font-size: 13px; color: var(--stone); }

@media (max-width: 960px) {
  .needs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .audience { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .threads dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps-3 { grid-template-columns: minmax(0, 1fr); } }

/* Pack contents card */
.pack-points { margin-top: 28px; }
.packcard { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 24px; }
.packcard-title { font-weight: 600; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.packcard dl { margin: 0; display: grid; gap: 12px; }
.packcard dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 14px; background: var(--sage); border-radius: var(--radius-lg); }
.packcard dt { font-weight: 600; font-size: 15px; }
.packcard dd { margin: 0; font-size: 15px; }
.packcard figcaption { margin-top: 14px; font-size: 13px; color: var(--stone); }
@media (max-width: 640px) { .packcard dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Tablets in landscape: stack the hero so the review notes never cover the draft */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sheet { max-width: 760px; }
}

/* Sign-up / contact form (no JavaScript; errors are rendered by the Pages Function) */
.form { margin-top: 28px; max-width: 560px; display: grid; gap: 20px; }
.form .field { display: grid; gap: 6px; }
.form label, .form legend { font-weight: 600; font-size: 15px; }
.form .optional { font-weight: 400; color: var(--stone); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--input); border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-xs);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.form [aria-invalid="true"] { border-color: var(--warning); }
.form .intent { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form .intent legend { padding: 0; margin-bottom: 4px; }
.form .intent label { font-weight: 400; display: flex; align-items: center; gap: 10px; }
.form .intent input { width: 18px; height: 18px; accent-color: var(--olive); margin: 0; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-error { margin: 0; padding: 12px 14px; color: var(--warning); background: var(--warning-bg); border: 1px solid rgba(139,58,58,.25); border-radius: var(--radius-md); font-size: 15px; }
.form-error[hidden] { display: none; }
.form-privacy { margin: 0; font-size: 14px; color: var(--stone); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ===== Home layout, interim design lift (2026-09-25): alternating sections, one olive band,
   product-faithful mocks built from the app's components (platform frontend @ 46ddc3b). ===== */
.band { border-top: 0; padding: 96px 0; }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--card); }
section h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; max-width: 22ch; margin-bottom: 18px; }
.split-rev > :first-child { order: 2; }
.split-rev > :last-child { order: 1; }
.split-media { align-items: center; }
.hero .wrap > *, .split > * { min-width: 0; } /* let the mocks' inner scroll areas engage instead of widening the page */
.eyebrow-rule { width: 40px; height: 3px; background: var(--accent); border: 0; margin: 0 0 22px; }
.steps li::before { color: var(--accent); }
.steps li { border-top-color: var(--accent); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Mock shell: an app surface, never a screenshot */
.mock { margin: 0; }
.mock figcaption { margin-top: 12px; font-size: 13px; color: var(--stone); }
.app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 1px 0 rgba(45,51,25,.04), 0 18px 40px -24px rgba(45,51,25,.28); overflow: hidden; font-size: 14px; }
.app-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.app-bar img { height: 18px; width: auto; }
.app-bar .app-search { flex: 1; max-width: 220px; height: 24px; border: 1px solid var(--input); border-radius: var(--radius-md); background: #F7F7F2; }
.app-bar .app-avatar { margin-left: auto; width: 24px; height: 24px; border-radius: 999px; background: var(--olive); color: var(--on-olive); font: 600 10px/24px var(--sans); text-align: center; }
.mlabel { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); margin: 0; } /* SectionLabel (pack/index.tsx:37) */
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font: 600 11px/1.5 var(--sans); letter-spacing: 0; white-space: nowrap; } /* StatusChip */
.chip-sky { background: #E0F2FE; color: #075985; }       /* function palette (format.ts:125-138) */
.chip-emerald { background: #D1FAE5; color: #065F46; }
.chip-violet { background: #EDE9FE; color: #5B21B6; }
.chip-success { background: #E9EBE4; color: #46552F; }   /* olive-accent/15; text darkened for AA at 11px */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.dot-amber { background: #F59E0B; } .dot-green { background: #10B981; } .dot-red { background: #EF4444; } /* HealthDot */

/* Hero: pack viewer (OutputViewer.tsx) with the review notes */
.viewer-head { padding: 16px 18px 12px; }
.viewer-head .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin: 0; }
.viewer-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; font: 700 22px/1.2 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.viewer-title { margin: 2px 0 0; font-size: 13px; color: var(--stone); }
.viewer-tabs { display: flex; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); scrollbar-width: none; }
.viewer-tabs span { white-space: nowrap; padding: 10px 14px 8px; font-size: 13px; font-weight: 600; color: var(--muted-fg); border-bottom: 3px solid transparent; }
.viewer-tabs span.on { color: var(--ink); border-bottom-color: var(--accent); }
.viewer-panel { background: var(--paper); padding: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.subject { margin: 8px 0 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #F7F7F2; }
.subject .k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.subject .v { display: block; margin-top: 1px; font-weight: 600; color: var(--ink); }
.pbody p { margin: 0 0 10px; line-height: 1.6; color: var(--ink); }
.pbody p:last-child { margin-bottom: 0; }
.sheet { padding-right: 176px; }
.notes { top: 176px; }

/* Domain expert: business profile (AdminLayout.tsx, VcpPage.tsx, FieldCard.tsx) */
.tiles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.tiles li { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.tiles h3 { font-size: 20px; margin: 0 0 4px; }
.tiles p { margin: 0; color: var(--stone); font-size: 16px; }
.profile .app { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.profile-side { border-right: 1px solid var(--line); padding: 16px 10px; background: var(--card); }
.profile-side .grp { margin: 0 0 6px 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.profile-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.profile-side li { padding: 6px 8px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--stone); }
.profile-side li.on { background: #EDEFE9; color: #142016; }
.profile-main { padding: 18px; background: var(--paper); min-width: 0; }
.profile-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 19px; font-weight: 600; color: var(--ink); }
.badge { display: inline-flex; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: var(--secondary); color: var(--ink); }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; gap: 2px; padding: 3px; border-radius: var(--radius-lg); background: var(--secondary); margin-bottom: 14px; scrollbar-width: none; }
.seg span { white-space: nowrap; padding: 4px 10px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--stone); }
.seg span.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.fieldcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.fieldcard-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.fieldcard-body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.fld { display: grid; gap: 4px; }
.fld .k { font-size: 13px; font-weight: 500; color: var(--ink); }
.fld .v { border: 1px solid var(--input); border-radius: var(--radius-md); padding: 6px 10px; font-size: 13px; color: var(--ink); background: var(--card); box-shadow: var(--shadow-xs); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 500; background: #EDEFE9; color: #142016; } /* TagInput chip */

/* Multi-threading: two angles per contact */
.threads dl > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.threads dd { display: grid; gap: 6px; }
.angle { display: block; }
.angle b { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }

/* Account health: persona coverage (ContactsTab.tsx:1173-1536, accountHealth.ts, HealthDot.tsx) */
.cov { padding: 18px; }
.cov-h { display: flex; align-items: center; gap: 8px; }
.cov-sum { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0; font-size: 13px; color: var(--ink); }
.cov-sum span + span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.cov-status { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--stone); }
.cov-status strong { color: #B45309; font-weight: 600; } /* amber-700: "Needs attention" */
.cov-scroll { position: relative; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); overflow-x: auto; } /* relative: contains the .sr-only labels */
.cov-grid { width: 100%; min-width: 500px; border-collapse: separate; border-spacing: 4px; font-size: 12px; table-layout: fixed; }
.cov-grid th { text-align: left; vertical-align: bottom; padding: 2px 4px; font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cov-grid thead th:first-child { width: 88px; }
.cov-grid tbody th { vertical-align: top; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--olive); padding-top: 10px; }
.cov-grid td { vertical-align: top; padding: 0; height: 58px; }
.cell { height: 100%; border: 1px solid #D3D8C9; background: #F3F5F1; border-radius: var(--radius-md); padding: 7px 8px; }
.cell .who { display: block; font-weight: 600; color: var(--ink); }
.cell .who.link { color: var(--olive); }
.packchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pchip { border-radius: 4px; padding: 1px 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.pchip-out { background: #E9EBE4; color: #46552F; } .pchip-in { background: var(--secondary); color: var(--ink); }
.cell-empty { height: 100%; display: flex; align-items: center; padding: 0 8px; color: var(--stone); font-size: 11px; font-style: italic; }
.health-points { margin-top: 28px; }

/* What Olive isn't: collapsible, no JS */
.isnt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 32px; }
.isnt-grid details { border-bottom: 1px solid var(--line); }
.isnt-grid summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font: 500 21px/1.25 var(--serif); color: var(--ink); }
.isnt-grid summary::-webkit-details-marker { display: none; }
.isnt-grid summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--accent); }
.isnt-grid details[open] summary::after { content: "\2212"; }
.isnt-grid details p { margin: 0 0 16px; color: var(--stone); }

/* The olive band: the stance, then the closing call to action */
.olive-band { background: var(--ink); color: var(--paper); padding: 104px 0; }
.olive-band .statement { color: var(--paper); border-left-color: var(--leaf); margin: 0 0 72px; max-width: 34ch; }
.olive-band h2 { color: var(--paper); }
.olive-band .intro { color: #D9DBCB; max-width: 52ch; }
.olive-band .closing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-top: 56px; border-top: 1px solid rgba(245,243,238,.18); }
.btn-on-dark { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { background: var(--sage); color: var(--ink); }
.olive-band :focus-visible { outline-color: var(--paper); }

@media (max-width: 960px) {
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-rev > :first-child, .split-rev > :last-child { order: 0; }
  .olive-band .closing-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .band { padding: 64px 0; }
  .steps-4, .isnt-grid { grid-template-columns: minmax(0, 1fr); }
  .profile .app { grid-template-columns: minmax(0, 1fr); }
  .profile-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .sheet { padding-right: 0; }
  .threads dl > div { grid-template-columns: minmax(0, 1fr); }
  .olive-band { padding: 72px 0; }
}
@media (max-width: 1100px) { .sheet { padding-right: 0; } .notes { position: static; width: auto; margin-top: 14px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Domain expert: conceptual card (update 3: no schema, IDs, versions or internal field labels) */
.concept { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 18px; display: grid; gap: 12px; }
.concept-title { margin: 0; font: 600 18px/1.3 var(--sans); color: var(--ink); }
.concept-line { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.concept-row { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.concept-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.profile-main { display: flex; align-items: center; }
.profile-main > .concept { width: 100%; }
.cov-status { flex-wrap: wrap; }
.cov-status strong { white-space: nowrap; }
@media (max-width: 640px) {
  .cov-sum { gap: 2px 14px; }
  .cov-sum span + span { margin-left: 0; padding-left: 0; border-left: 0; }
}
