/* NonCoté – site stylesheet (private-bank design system: navy, gold, ivory; EB Garamond + Instrument Sans).
   Pitchbook slides keep their own look (deck.css): site element rules are written as
   :where(...):where(:not(.slide *)) so they never reach inside a slide, and "slide defaults" below keeps the element
   defaults the slides were designed with. */

/* ---------- fonts (self-hosted, SIL Open Font License – see /static/fonts) ---------- */
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --navy: #123D2F; --navy-2: #1B5141; --navy-3: #246651;
  --gold: #B8975A; --gold-2: #CCAF78; --gold-soft: #EDE5D3; --gold-ink: #6E5524;
  --ivory: #F6F8F6; --paper: #FFFFFF; --wash: #EEF3EF;
  --ink: #14231D; --slate: #4F5D57; --slate-2: #5E6B65; --on-navy: #FFFFFF; --on-navy-muted: #A9C2B6;
  --line: #DCE5DF; --line-strong: #C3D1C8;
  --ok: #1E6B48; --ok-bg: #EAF4EE; --warn: #8A5B00; --warn-bg: #FBF3E2;
  --err: #A3281E; --err-bg: #FBECEA; --info: #1B5141; --info-bg: #EAF2EE;
  --serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --shadow-1: 0 1px 2px rgba(14, 40, 31, .05), 0 3px 10px -4px rgba(14, 40, 31, .08);
  --shadow-2: 0 2px 6px rgba(14, 40, 31, .05), 0 16px 36px -16px rgba(14, 40, 31, .26);
  --shadow-3: 0 34px 70px -30px rgba(14, 40, 31, .45), 0 10px 22px -12px rgba(14, 40, 31, .22);
  --ring: 0 0 0 3px rgba(184, 151, 90, .42);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;
  /* older names, still used by some markup */
  --brand: var(--navy); --accent: var(--gold); --muted: var(--slate); --radius: var(--r-md);
  --bg: var(--ivory); --card: var(--paper);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--ivory);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; }
:where(img, svg):where(:not(.slide *)) { max-width: 100%; }
::selection { background: rgba(184, 151, 90, .32); }

:where(h1, h2, h3, h4):where(:not(.slide *)) { font-family: var(--serif); color: var(--navy); font-weight: 500;
  line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
:where(h1):where(:not(.slide *)) { font-size: 2.25rem; }
:where(h2):where(:not(.slide *)) { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
:where(h3, h4):where(:not(.slide *)) { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600;
  line-height: 1.4; letter-spacing: 0; color: var(--ink); }
:where(p, li):where(:not(.slide *)) { text-wrap: pretty; }
:where(a):where(:not(.slide *)) { color: var(--navy); text-decoration-line: underline; text-decoration-thickness: 1px;
  text-underline-offset: .2em; text-decoration-color: rgba(14, 40, 31, .32);
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
:where(a):where(:not(.slide *)):hover { text-decoration-color: var(--gold); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--navy);
  outline-offset: 2px; }
code { font: .92em ui-monospace, Consolas, "Courier New", monospace; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* slide defaults: the element rules the slides were designed with (viewer only – the print page does not load this
   file). Do not change these without checking every slide. */
:where(.slide) h1 { font-size: 26px; margin: 0 0 12px; }
:where(.slide) h2 { font-size: 19px; margin: 0 0 10px; }
:where(.slide) h3 { font-size: 15px; }
:where(.slide) a { color: #1f5fa8; }
.slide { font-size: 15px; line-height: 1.5; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 40px auto 72px; padding: 0 24px; }
.viewer { width: 100%; max-width: 1568px; margin: 28px auto 64px; padding: 0 24px; }
.narrow { max-width: 560px; margin: 56px auto; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.row5 { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 1fr; gap: 10px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  margin: 0 0 28px; }
.page-head h1 { margin: 0; }
.page-sub { margin: 8px 0 0; color: var(--slate); max-width: 68ch; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 14px; color: var(--slate);
  text-decoration: none !important; }
.back:hover { color: var(--navy); }
.section-rule { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--gold); position: relative; z-index: 30;
  view-transition-name: site-header; }
.site-header__inner { max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; height: 72px;
  display: flex; align-items: center; gap: 28px; }
body.is-wide .site-header__inner, body.is-wide .site-footer__inner { max-width: 1568px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none !important; }
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav-end > a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 12px;
  border-radius: var(--r-sm); transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover, .nav-end > a:not(.btn):hover { background: var(--wash); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0; background: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.plan-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy);
  text-decoration: none !important; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); transition: border-color .15s var(--ease); }
.plan-chip:hover { border-color: var(--gold); }
.plan-chip .credits { color: var(--slate); font-weight: 500; }

/* drop-down menus (user menu, mobile menu, "more" actions) – details/summary, closed by app.js on outside click */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--r-sm); color: var(--ink); font-size: 15px; user-select: none;
  transition: background-color .15s var(--ease); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--wash); }
.menu > summary .icon-chevron { transition: transform .2s var(--ease); color: var(--slate); }
.menu[open] > summary .icon-chevron { transform: rotate(180deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; z-index: 40;
  display: grid; gap: 1px; transform-origin: top right; animation: menu-in .16s var(--ease); }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; white-space: nowrap;
  padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font: 15px var(--sans);
  background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--wash); color: var(--navy); }
.menu-panel .icon { color: var(--slate); flex: none; }
.menu-panel hr { border: 0; height: 1px; background: var(--line); margin: 5px 6px; }
.menu-panel form { margin: 0; }
.menu-head { padding: 10px 12px 8px; }
.menu-head strong { display: block; font-size: 15px; color: var(--navy); }
.menu-head span { display: block; font-size: 13px; color: var(--slate); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--on-navy);
  display: inline-grid; place-items: center; font: 600 12.5px var(--sans); letter-spacing: .02em; flex: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
.user-menu .who { font-size: 15px; }
.nav-mobile { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); margin-top: auto; font-size: 14px;
  border-top: 1px solid var(--gold); }
.site-footer__inner { max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 48px 24px 32px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.footer-brand img { height: 32px; width: auto; display: block; }
.footer-brand p { margin: 16px 0 0; line-height: 1.6; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h2 { font: 600 13px/1.4 var(--sans); color: var(--gold); margin: 0 0 12px; letter-spacing: .01em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer__base { width: calc(100% - 48px); max-width: var(--container); margin: 0 auto; padding: 18px 0 28px;
  display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 13px;
  border-top: 1px solid rgba(184, 151, 90, .22); }
body.is-wide .site-footer__base { max-width: 1520px; }
.site-footer__base p { margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy);
  color: var(--on-navy) !important; border: 1px solid var(--navy); border-radius: var(--r-sm); padding: 10px 18px;
  font: 600 15px/1.2 var(--sans); letter-spacing: .005em; cursor: pointer; text-decoration: none !important;
  white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease),
  color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease); }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .icon { flex: none; }
.btn-ghost { background: transparent; color: var(--navy) !important; border-color: rgba(14, 40, 31, .28); }
.btn-ghost:hover { background: rgba(14, 40, 31, .045); border-color: var(--navy); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #8a2018; border-color: #8a2018; }
.btn-small { padding: 6px 12px; font-size: 13.5px; }
.btn-large { padding: 13px 24px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost.disabled { opacity: .7; }
.btn-lock { background: var(--paper); color: var(--slate) !important; border-color: var(--line-strong); }
.btn-lock:hover { background: var(--wash); border-color: var(--line-strong); }
.on-navy .btn-ghost { color: var(--on-navy) !important; border-color: rgba(247, 245, 239, .35); }
.on-navy .btn-ghost:hover { background: rgba(247, 245, 239, .08); border-color: var(--on-navy); }
button.link { background: none; border: none; color: inherit; cursor: pointer; font: inherit; padding: 0; }
button.link-dark { background: none; border: none; color: var(--err); cursor: pointer; font: inherit; padding: 0; }
.link-blue { background: none; border: none; color: var(--navy); cursor: pointer; font: inherit; padding: 0;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
form.inline { display: inline-flex; }

/* ---------- forms ---------- */
.form label { display: block; margin: 0 0 16px; font-weight: 500; font-size: 14px; color: var(--ink); }
.form label > input, .form label > select, .form label > textarea, .form label > .input-suffix { margin-top: 6px; }
input, select, textarea { width: 100%; font: 15px/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; margin: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
input:hover, select:hover, textarea:hover { border-color: #B9AE99; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #9AA1AD; }
input[disabled] { background: var(--wash); color: var(--slate); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6474' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; accent-color: var(--navy); }
input[type=checkbox] { width: 16px; height: 16px; }
.form .check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.form .check input { margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font: 600 1.25rem/1.3 var(--serif); color: var(--navy); padding: 0; margin: 0 0 14px; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix input { flex: 1; }
.input-suffix span { color: var(--slate); }
.field-hint { display: block; font-weight: 400; font-size: 13px; color: var(--slate); margin-top: 6px; }

/* radio cards */
.choices { display: grid; gap: 10px; margin: 0; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex !important; gap: 12px; align-items: flex-start; margin: 0 !important;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  cursor: pointer; font-weight: 500 !important; font-size: 15px !important; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
.choice:hover { border-color: var(--line-strong); }
.choice input { margin-top: 3px !important; flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #FFFFFF;
  box-shadow: inset 3px 0 0 var(--gold), var(--shadow-1); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice-title { display: block; font-weight: 600; color: var(--navy); }
.choice-desc { display: block; font-weight: 400; font-size: 13.5px; color: var(--slate); margin-top: 2px; line-height: 1.45; }
.choice-rich .cost { display: block; font-size: 13px; font-weight: 500; margin-top: 6px; }
.choice-disabled { cursor: not-allowed; background: var(--wash); border-style: dashed; }
.choice-disabled .choice-title { color: var(--slate); }

/* ---------- panels, tables, tags, messages ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px;
  margin-bottom: 24px; }
.card > :last-child { margin-bottom: 0; }
.card-raised { box-shadow: var(--shadow-2); border-color: transparent; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
.panel-label { font-size: 13px; color: var(--slate); margin: 0 0 6px; }

/* ledger: one strip of figures split by hairlines (plan, usage, revenue…) */
.status-row { gap: 0 !important; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--r-md); margin-bottom: 28px; overflow: hidden; }
.status-row > .card { border: 0; border-radius: 0; margin: 0; background: transparent; padding: 20px 24px; }
.status-row > .card + .card { border-left: 1px solid var(--line); }
.status-row:has(+ .revenue-rule) { margin-bottom: 10px; }
.revenue-rule { margin: 0 0 28px; max-width: 120ch; }
.revenue-rule strong { color: var(--ink); font-weight: 600; }
a.stat-link { color: inherit; text-decoration: none; transition: background-color .15s var(--ease); }
a.stat-link:hover { background: #FCFAF5; }
.stat .label { display: block; color: var(--slate); font-size: 13px; margin-bottom: 6px; }
.stat strong { display: block; font: 600 1.625rem/1.2 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.stat .small { display: block; margin-top: 4px; }
.ok { color: var(--ok) !important; } .warn { color: var(--warn) !important; }

table.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 13px; color: var(--slate); font-weight: 500; border-bottom-color: var(--line-strong);
  padding-top: 4px; white-space: nowrap; }
table.list tbody tr { transition: background-color .12s var(--ease); }
table.list tbody tr:hover { background: #FCFAF5; }
table.list tr:last-child td { border-bottom: 0; }
table.list.small th, table.list.small td { padding: 9px 8px; }
table.list a { font-weight: 600; text-decoration: none; }
table.list a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.table-scroll { overflow-x: auto; }
.a-r { text-align: right !important; } .a-l { text-align: left; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 1px 8px;
  border-radius: 3px; background: var(--wash); color: var(--slate); white-space: nowrap; }
.pill-done { background: var(--ok-bg); color: var(--ok); } .pill-error { background: var(--err-bg); color: var(--err); }
.pill-running, .pill-queued { background: var(--warn-bg); color: var(--warn); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate); padding: 2px 9px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }

.flash { position: relative; padding: 12px 16px 12px 18px; border-radius: var(--r-sm); margin: 0 0 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--slate); background: var(--paper); color: var(--ink);
  font-size: 15px; animation: flash-in .28s var(--ease); }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: var(--ok-bg); border-color: #CFE5D8; border-left-color: var(--ok); }
.flash-error { background: var(--err-bg); border-color: #F1D3CF; border-left-color: var(--err); }
.flash-warn { background: var(--warn-bg); border-color: #EFDDB5; border-left-color: #B98A1D; }
.flash-info { background: var(--info-bg); border-color: #CFE0D7; border-left-color: var(--info); }
.flash a { font-weight: 600; }
.admin-errors { margin: 0 0 14px; padding: 8px 14px; border: 1px dashed var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--slate); font-size: 13.5px; }
.admin-errors summary { cursor: pointer; font-weight: 600; }
.fact-check { margin: 0 0 14px; padding-left: 22px; position: relative; }
.fact-check::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--ok, #2f7d4f); font-weight: 700; }
.admin-errors ul { margin: 8px 0 2px; padding-left: 18px; }
.admin-errors code { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.muted { color: var(--muted); } .small { font-size: 13.5px; }
.center { text-align: center; }
.prose { max-width: 70ch; }
.prose h1 { margin-bottom: 18px; }
.prose p { line-height: 1.7; }
.meter { height: 4px; background: var(--wash); border-radius: 2px; overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; background: var(--gold); border-radius: 2px; }

/* ---------- landing ---------- */
.landing { padding-top: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  padding: 64px 0 72px; }
.hero-copy h1 { font-size: clamp(2.6rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 22px; }
.hero-copy .lead { font-size: 1.1875rem; line-height: 1.6; color: var(--slate); margin: 0 0 30px; max-width: 34em; }
.hero-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-1); max-width: 540px;
  margin: 0 0 14px; color: var(--slate-2); transition: border-color .15s var(--ease), box-shadow .2s var(--ease); }
.hero-search:hover { border-color: #B9AE99; }
.hero-search:focus-within { border-color: var(--navy); box-shadow: var(--ring), var(--shadow-2); }
.hero-search .icon { flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important; padding: 10px 0;
  font-size: 16px; }
.hero-search .btn { padding: 11px 20px; }
.hero-note { font-size: 14px; color: var(--slate); margin: 0; }
.hero-note a { color: var(--slate); }

.stack { position: relative; aspect-ratio: 16 / 11.2; margin-bottom: 44px; }
.stack figure { margin: 0; position: absolute; width: 82%; border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow-3); background: #fff; }
.stack img { display: block; width: 100%; height: auto; }
.stack .s1 { left: 0; top: 30%; z-index: 3; }
.stack .s2 { left: 10%; top: 15%; z-index: 2; }
.stack .s3 { left: 18%; top: 0; z-index: 1; }
.stack-caption { position: absolute; left: 0; top: 100%; margin: 14px 0 0; font-size: 13px; color: var(--slate); }
@media (prefers-reduced-motion: no-preference) {
  .stack figure { animation: deal-in .9s var(--ease) both; }
  .stack .s3 { animation-delay: .05s; } .stack .s2 { animation-delay: .17s; } .stack .s1 { animation-delay: .29s; }
  @keyframes deal-in { from { opacity: 0; transform: translate(-28px, 22px) rotate(-1.6deg); } to { opacity: 1; transform: none; } }
}

.registries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin: 0 0 96px; padding: 0; list-style: none; }
.registries > li { padding: 24px 24px 24px 0; }
.registries > li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.registries strong { display: block; font: 600 1.3rem/1.25 var(--serif); color: var(--navy); }
.registries p { margin: 6px 0 0; font-size: 14px; color: var(--slate); line-height: 1.5; }
.registries .where { display: block; font-size: 13px; color: var(--gold-ink); margin: 0 0 4px; font-weight: 600; }

.section { margin: 0 0 96px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end;
  margin: 0 0 36px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.12; margin: 0; }
.section-head p { margin: 0; color: var(--slate); font-size: 1.0625rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--gold); }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 39px; height: 39px;
  border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); color: var(--navy);
  display: grid; place-items: center; font: 600 1.125rem var(--serif); font-variant-numeric: lining-nums; }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--slate); }

.contents { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 32px; }
.toc h3 { font: 500 1.5rem var(--serif); color: var(--navy); margin: 0 0 4px; }
.toc .toc-sub { font-size: 13.5px; color: var(--slate); margin: 0 0 18px; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.toc li { display: flex; align-items: baseline; gap: 8px; break-inside: avoid; padding: 5px 0; font-size: 14.5px; }
.toc li .t { flex: none; max-width: calc(100% - 34px); }
.toc li::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.toc li .p { order: 3; flex: none; font-variant-numeric: tabular-nums lining-nums; color: var(--slate); font-size: 13.5px; }
.facts { display: grid; gap: 28px; }
.fact h3 { font: 600 1.3rem/1.25 var(--serif); color: var(--navy); margin: 0 0 6px; }
.fact p { margin: 0; color: var(--slate); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.sbadge { display: inline-block; font: 700 11px/1 Arial, sans-serif; padding: 4px 6px; border-radius: 3px; }
.sbadge-ok { background: #e1f3e8; color: #17643c; } .sbadge-info { background: #e4eefa; color: #1f5fa8; }
.sbadge-warn { background: #fff0d1; color: #8a5600; } .sbadge-calc { background: #efe7fb; color: #5b3a9a; }
.sbadge-muted { background: #eceff3; color: #5f6b7c; }
.grades { display: flex; gap: 6px; margin: 12px 0 0; }
.grades span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm);
  font: 600 1.05rem var(--serif); border: 1px solid var(--line); color: var(--slate); background: var(--paper); }
.grades span.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }

.formats { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.formats th, .formats td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.formats tr:last-child th, .formats tr:last-child td { border-bottom: 0; }
.formats th { width: 30%; font: 600 1.2rem/1.3 var(--serif); color: var(--navy); }
.formats td { color: var(--slate); }
.formats td:last-child { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.formats-wrap { border-radius: var(--r-md); overflow: hidden; }

.closing { background: var(--navy); color: var(--on-navy); border-radius: var(--r-md); padding: 56px 56px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; margin: 0 0 8px;
  position: relative; overflow: hidden; }
.closing h2 { color: var(--on-navy); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; margin: 0 0 10px; }
.closing p { margin: 0; color: var(--on-navy-muted); max-width: 52ch; }
.closing .actions { position: relative; z-index: 1; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  max-width: 1040px; margin: 8px auto 0; }
.auth-aside { background: var(--navy); color: var(--on-navy-muted); padding: 48px 44px; position: relative; }
.auth-aside img { width: 48px; height: 48px; display: block; margin: 0 0 32px; }
.auth-aside h2 { color: var(--on-navy); font-size: 2rem; font-weight: 500; line-height: 1.15; margin: 0 0 18px; }
.auth-aside ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.auth-aside li .icon { color: var(--gold); margin-top: 3px; flex: none; }
.auth-aside li strong { color: var(--on-navy); font-weight: 600; }
.auth-main { padding: 48px 52px; }
.auth-main h1 { font-size: 2.125rem; margin: 0 0 8px; }
.auth-main .page-sub { margin: 0 0 28px; }
.auth-main .form .btn-large { width: 100%; margin-top: 4px; }
.auth-alt { margin: 22px 0 0; font-size: 14.5px; color: var(--slate); }
.auth-single { max-width: 480px; margin: 24px auto 0; }
.auth-single .card { padding: 40px; }
.auth-single h1 { font-size: 1.95rem; }

/* ---------- dashboard ---------- */
.search-panel { margin: 0 0 36px; }
.search-panel h1 { font-size: clamp(2.2rem, 3.6vw, 2.75rem); margin: 0 0 8px; }
.search-panel .page-sub { margin: 0 0 22px; }
.searchbox { display: flex; align-items: stretch; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); transition: border-color .15s var(--ease), box-shadow .2s var(--ease); }
.searchbox:focus-within { border-color: var(--navy); box-shadow: var(--ring), var(--shadow-2); }
.searchbox select { width: 180px; flex: none; border: 0; border-right: 1px solid var(--line); border-radius: var(--r-md) 0 0 var(--r-md);
  background-color: transparent; font-weight: 500; box-shadow: none !important; padding-left: 16px; }
.searchbox .search-field { position: relative; flex: 1; display: flex; align-items: center; }
.searchbox .search-field .icon { position: absolute; left: 16px; color: var(--slate-2); pointer-events: none; }
.searchbox input { border: 0; box-shadow: none !important; background: transparent; font-size: 17px; padding: 16px 16px 16px 46px; }
.search-notices { min-height: 22px; margin: 10px 2px 0; font-size: 14px; color: var(--slate); }
.results { list-style: none; margin: 10px 0 0; padding: 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.results:empty { display: none; }
.results li { animation: result-in .22s var(--ease) both; }
.results li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 18px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); transition: background-color .12s var(--ease); }
.results li:last-child a { border-bottom: none; }
.results li a:hover, .results li a:focus-visible { background: #FCFAF5; outline: none; box-shadow: inset 3px 0 0 var(--gold); }
.results .r-name { font-weight: 600; color: var(--navy); }
.results .r-meta { color: var(--slate); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.cflag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: var(--wash);
  color: var(--slate); margin-right: 10px; letter-spacing: .02em; vertical-align: 1px; }
.cflag.demo { background: var(--gold-soft); color: var(--gold-ink); }
@keyframes result-in { from { opacity: 0; } to { opacity: 1; } }

.upsell { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  background: var(--navy); color: var(--on-navy); border-radius: var(--r-md); padding: 20px 26px; margin: 0 0 28px;
  border-left: 3px solid var(--gold); }
.upsell strong { font: 500 1.25rem var(--serif); }
.upsell .muted { color: var(--on-navy-muted); margin-left: 8px; }
.verify-banner form { margin-left: 6px; }
.setup-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }

.empty { text-align: left; padding: 8px 0; color: var(--slate); }
.empty strong { display: block; font: 500 1.35rem var(--serif); color: var(--navy); margin-bottom: 4px; }

/* ---------- company page ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.record h1 { font-size: 2rem; line-height: 1.12; margin: 0 0 10px; overflow-wrap: anywhere; }
.record .tags { margin: 0 0 22px; }
.record-list { margin: 0; border-top: 1px solid var(--line); }
.record-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--line); }
.record-list dt { color: var(--slate); font-size: 14px; }
.record-list dd { margin: 0; font-size: 15px; }
.record-list dd span { display: block; }
.record .existing { margin: 26px 0 0; }
.record .existing h2 { font-size: 1.2rem; margin: 0 0 8px; }
.record .existing ul { list-style: none; margin: 0; padding: 0; }
.record .existing li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.generate h2 { font-size: 1.6rem; margin: 0 0 22px; }
.generate .btn-large { width: 100%; margin-top: 8px; }
.upsell-box { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: #FFFCF4; border-radius: var(--r-sm); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upsell-box h3 { width: 100%; margin: 0; font: 600 1.2rem var(--serif); color: var(--navy); }
.upsell-box p { width: 100%; margin: 0; color: var(--slate); }

/* deal signals (company database) */
.signals { margin-top: 28px; }
.company-main { min-width: 0; }
.company-main .signals { margin-top: 0; }
.signals-compact .scores { grid-template-columns: minmax(0, 1fr); }
.signals-compact .score + .score { border-left: 0; border-top: 1px solid var(--line); }
.signals-compact .signals-head h2 { font-size: 1.45rem; }
.signals-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.signals-head h2 { margin: 0; font-size: 1.6rem; }
.signals-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 150px; height: 64px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.signals-logo.is-light { background: var(--navy); border-color: var(--navy); }
.signals-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.signals-slogan { margin: 4px 0 0; font: italic 1.05rem/1.4 var(--serif); color: var(--slate); }
.scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 20px; }
.score { padding: 18px 20px; min-width: 0; }
.score + .score { border-left: 1px solid var(--line); }
.score-label { margin: 0; font-size: 13px; color: var(--slate); }
.score-value { margin: 2px 0 0; font: 600 2rem/1.1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.score-value small { font: 500 .95rem var(--sans); color: var(--slate-2); margin-left: 2px; }
.chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; line-height: 1.35; padding: 3px 9px; border-radius: 4px; background: var(--wash);
  color: var(--ink); border: 1px solid transparent; }
.chip-succession, .chip-exit { background: var(--gold-soft); color: #5E4612; }
.chip-distress { background: var(--warn-bg); color: var(--warn); border-color: #EFDDB5; }
.chip-quality, .chip-balance, .chip-price { background: var(--ok-bg); color: var(--ok); }
.chip.is-neg { background: var(--paper); color: var(--slate); border-color: var(--line-strong); }
.signals-list dd strong { font-weight: 600; color: var(--navy); }
.signals-list dd .small { display: block; margin-top: 2px; }
.signals-note { margin: 14px 0 0; }
@media (max-width: 720px) {
  .scores { grid-template-columns: minmax(0, 1fr); }
  .score + .score { border-left: 0; border-top: 1px solid var(--line); }
  .signals-head { align-items: flex-start; flex-direction: column; }
}

/* ---------- progress ---------- */
.progress-card { text-align: left; }
.progress-card h1 { font-size: 1.9rem; margin: 0 0 6px; }
.progress { height: 6px; background: var(--wash); border-radius: 3px; overflow: hidden; margin: 28px 0 12px; position: relative; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px;
  transition: width .8s var(--ease); position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .progress .bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent,
    rgba(255, 255, 255, .55), transparent); animation: sheen 1.8s linear infinite; }
  @keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
}
.progress-step { font-weight: 500; color: var(--navy); margin: 0 0 18px; }

/* ---------- pricing ---------- */
.pricing-hero { padding: 24px 0 8px; max-width: 760px; }
.pricing-hero h1 { font-size: clamp(2.3rem, 4vw, 3.1rem); line-height: 1.08; margin: 0 0 14px; }
.pricing-hero .lead { font-size: 1.125rem; color: var(--slate); margin: 0 0 18px; }
.cycle-input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-toggle { display: flex; gap: 0; margin: 26px 0 26px; width: max-content; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--paper); padding: 3px; }
.cycle-toggle label { padding: 7px 18px; border-radius: 3px; cursor: pointer; font-weight: 600; font-size: 14px;
  color: var(--slate); transition: background-color .18s var(--ease), color .18s var(--ease); }
.cycle-toggle .save { color: var(--ok); font-weight: 600; font-size: 12px; margin-left: 6px; }
#cycle-year:checked ~ .cycle-toggle label[for="cycle-year"],
#cycle-month:checked ~ .cycle-toggle label[for="cycle-month"] { background: var(--navy); color: var(--on-navy); }
#cycle-year:checked ~ .cycle-toggle label[for="cycle-year"] .save { color: var(--gold-2); }
#cycle-year:checked ~ .plans .monthly { display: none; }
#cycle-month:checked ~ .plans .yearly { display: none; }
#cycle-year:focus-visible ~ .cycle-toggle, #cycle-month:focus-visible ~ .cycle-toggle { box-shadow: var(--ring); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.plan h2 { margin: 0; font-size: 1.6rem; font-weight: 500; }
.plan .tagline { color: var(--slate); margin: 0 0 14px; font-size: 14.5px; }
.plan-highlight { background: var(--navy); border-color: var(--navy); color: var(--on-navy-muted); box-shadow: var(--shadow-2); }
.plan-highlight h2, .plan-highlight .price strong { color: var(--on-navy); }
.plan-highlight .tagline, .plan-highlight .price span, .plan-highlight .price .small { color: var(--on-navy-muted) !important; }
.plan-highlight .per-unit { color: var(--gold-2); }
.plan-highlight .plan-features li { color: var(--on-navy); }
.plan-highlight .plan-features li::before { background: var(--gold); }
.plan-highlight .btn { position: relative; z-index: 1; background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
.plan-highlight .btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.plan-highlight .btn-ghost.disabled { background: transparent; color: var(--on-navy) !important; border-color: rgba(247, 245, 239, .35); }
.ribbon { position: absolute; top: -11px; left: 28px; z-index: 2; background: var(--gold); color: var(--navy); font-weight: 600;
  font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.price { margin: 4px 0 0; }
.price strong { font: 500 2.6rem/1.1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; }
.price span { color: var(--slate); margin-left: 6px; }
.price p { margin: 4px 0 0; }
.per-unit { color: var(--ok); font-weight: 600; font-size: 14px; margin: 8px 0 0; min-height: 1.4em; }
.plan-features { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; display: grid; gap: 9px; align-content: start; }
.plan-features li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
.plan-features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: var(--gold-ink); }
.price-note { font-size: 13.5px; color: var(--slate); margin: 16px 0 0; }
.packs-card { margin-top: 40px; }
.coverage { list-style: none; margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--slate); }
.coverage strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.packs-card h2 { font-size: 1.75rem; font-weight: 500; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pack { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--ivory); display: flex;
  flex-direction: column; gap: 4px; }
.pack h3 { margin: 0; font-size: 15px; }
.pack-price { font: 500 2rem/1.15 var(--serif); color: var(--navy); margin: 4px 0 0; font-variant-numeric: lining-nums; }
.pack .small { margin: 0 0 14px; }
.pack .btn, .pack form { margin-top: auto; }
.enterprise { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.enterprise h2 { font-size: 1.6rem; font-weight: 500; margin: 0 0 6px; }
.enterprise p { margin: 0; }
.faq { max-width: 820px; margin: 56px 0 0; }
.faq h2 { font-size: 1.9rem; font-weight: 500; margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 0; font: 500 1.2rem/1.35 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  background: linear-gradient(var(--gold-ink), var(--gold-ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 12px no-repeat; transition: transform .22s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--slate); max-width: 68ch; }

/* ---------- billing, account, admin ---------- */
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.facts-list { margin: 0; }
.facts-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--slate); }
.facts-list dd { margin: 0; text-align: right; }
.grant-form { display: flex; gap: 6px; align-items: center; }
.grant-form input { width: 72px; padding: 6px 8px; }
.grant-form select { width: 130px; padding: 6px 30px 6px 8px; background-position: right 8px center; }

/* ---------- admin settings (API keys) ---------- */
.settings-intro { max-width: 760px; }
.setup-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 24px 0 28px;
  background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--r-md); overflow: hidden; }
.setup-item { display: block; padding: 14px 16px; text-decoration: none !important; color: var(--ink); transition: background-color .15s var(--ease); }
.setup-item + .setup-item { border-left: 1px solid var(--line); }
.setup-item:hover { background: #FCFAF5; }
.setup-item strong { display: block; font: 600 1.05rem var(--serif); color: var(--navy); }
.state { font-size: 13px; font-weight: 600; white-space: nowrap; }
.state-ok, .state-saved { color: var(--ok); } .state-error { color: var(--err); }
.state-missing { color: var(--warn); } .state-off { color: var(--slate); font-weight: 400; }
.setting-group { scroll-margin-top: 16px; }
.setting-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.setting-head h2 { margin: 0; font-size: 1.5rem; }
.setting-head h1 { margin: 0; }
.setting-service { font: 400 15px var(--sans); color: var(--slate); margin-left: 6px; }
.setting-need { margin: 4px 0 10px; }
.setting-why { margin: 0 0 12px; max-width: 760px; }
.setting-help { margin: 0 0 14px; font-size: 14.5px; }
.setting-help summary { cursor: pointer; color: var(--navy); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: .2em; width: max-content; }
.setting-help ol { margin: 10px 0 6px; padding-left: 22px; color: var(--ink); }
.setting-help li { margin: 4px 0; }
.setting-result { font-size: 14.5px; }
.setting-field { margin: 14px 0; max-width: 620px; }
.setting-form .setting-field > label { margin: 0 0 6px; }
.setting-form .current { margin: 0 0 6px; font-size: 13.5px; color: var(--ink); }
.setting-form code { background: var(--wash); padding: 2px 7px; border-radius: 3px; }
.setting-form .remove { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 12px; font-weight: 500;
  font-size: 13px; color: var(--err); }
.secret-input { -webkit-text-security: disc; font-family: ui-monospace, Consolas, "Courier New", monospace; }
.secret-input::placeholder { -webkit-text-security: none; font-family: var(--sans); }
.setting-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; }
  .stack { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .steps::before { display: none; }
  .steps li { padding-top: 52px; }
  .contents { grid-template-columns: 1fr; }
  .registries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registries > li:nth-child(3) { border-left: 0; padding-left: 0; }
  .registries > li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .closing { grid-template-columns: 1fr; padding: 44px 36px; }
}
@media (max-width: 860px) {
  .grid2, .grid3, .grid4, .row2, .row3, .row5, .company-grid, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
  .status-row > .card + .card { border-left: 0; border-top: 1px solid var(--line); }
  .setup-list { grid-template-columns: 1fr 1fr; }
  .setup-item + .setup-item { border-left: 0; }
  .setup-item { border-top: 1px solid var(--line); }
  .setup-item:nth-child(-n+2) { border-top: 0; }
  .setup-item:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 32px 28px; }
  .auth-aside ul { display: none; }
  .auth-aside img { margin-bottom: 18px; }
  .auth-aside h2 { font-size: 1.6rem; margin: 0; }
  .auth-main { padding: 32px 24px; }
  .choices-2 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 760px) {
  .site-header__inner { height: 64px; gap: 12px; }
  .brand img { height: 30px; }
  .nav, .nav-end .plan-chip, .nav-end > a:not(.btn), .user-menu .who, .nav-end .btn-signup { display: none; }
  .nav-mobile { display: block; }
  .container { margin: 28px auto 56px; padding: 0 16px; }
  .viewer { padding: 0 16px; }
  .site-header__inner, .site-footer__inner { padding-left: 16px; padding-right: 16px; }
  .site-footer__base { width: calc(100% - 32px); }
  .viewer-actions .btn { padding: 8px 12px; font-size: 14px; }
  .viewer-title h1 { font-size: 1.7rem; }
  .card { padding: 22px 20px; }
  :where(h1):where(:not(.slide *)) { font-size: 1.9rem; }
  .searchbox { flex-direction: column; }
  .searchbox select { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
  .results li a { flex-direction: column; gap: 2px; }
  .results .r-meta { text-align: left; }
  .registries { grid-template-columns: 1fr; }
  .registries > li, .registries > li + li { padding: 18px 0; border-left: 0; }
  .registries > li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .toc { padding: 22px 20px; }
  .formats th, .formats td { padding: 14px 16px; }
  .formats th { width: auto; }
  .formats tr { display: grid; }
  .formats td:last-child { white-space: normal; }
  .closing { padding: 36px 24px; }
  .record-list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-links { gap: 32px; }
  .hero-search input { font-size: 15px; }
  .hero-search .icon { display: none; }
  .page-head { margin-bottom: 20px; }
}

/* ---------- accessibility helpers ---------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy); color: var(--on-navy) !important;
  padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none !important; transition: top .15s var(--ease); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- auth details ---------- */
.auth-short { max-width: 920px; }
.auth-aside p { margin: 0; line-height: 1.6; }
.auth-main .row2 label { min-width: 0; }
.legal { max-width: 760px; }
.legal .card { padding: 40px 44px; }
.legal .notice { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--warn); background: var(--warn-bg);
  padding: 4px 10px; border-radius: 3px; margin: 0 0 18px; }
a.tag { color: var(--navy); text-decoration: none; transition: border-color .15s var(--ease); }
a.tag:hover { border-color: var(--gold); }
.progress-wrap { max-width: 620px; }

/* ---------- valuation page ---------- */
.valuation-form .card h2 { font-size: 1.4rem; }
.sub-head { margin: 22px 0 10px; }
.valuation-form .row3, .valuation-form .row5 { margin-bottom: 8px; }
.valuation-actions { margin: 4px 0 28px; }
.dcf-facts { margin: 0 0 18px; max-width: 640px; }
.dcf-table td:not(:first-child), .dcf-table th:not(:first-child) { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- screener ---------- */
.eyebrow { margin: 0 0 8px; font: 600 12.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); }
.screener-head { align-items: flex-end; }
.screener-head h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.08; }
.quota-card { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--r-md); background: var(--paper); min-width: 250px; }
.quota-card strong { font: 600 1.2rem/1.3 var(--serif); color: var(--navy); }
.screen-form h2 { margin: 0 0 22px; font-size: 1.6rem; }
.screen-form fieldset { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.screen-form fieldset:last-of-type { border-bottom: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; margin: 0 0 16px; }
.check-grid .check, .check-row .check { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 400; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 16px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.filter-label { margin: 0 0 8px; font-weight: 500; font-size: 14px; }
.narrow-field { max-width: 460px; }
.screen-actions { margin-top: 8px; }
.picker { position: relative; max-width: 760px; }
.picker-box { display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--paper); color: var(--slate-2);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.picker-box:focus-within { border-color: var(--navy); box-shadow: var(--ring); }
.picker-box input { border: 0; box-shadow: none !important; padding-left: 0; background: transparent; }
.picker-options { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0;
  padding: 6px; max-height: 360px; overflow: auto; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.picker-options li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; }
.picker-options li:hover, .picker-options li.is-active { background: var(--wash); }
.po-code { font-variant-numeric: tabular-nums; color: var(--gold-ink); font-weight: 600; }
.po-kind { font-size: 12px; color: var(--slate-2); }
.picker-chosen { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picker-chosen:empty { display: none; }
.picker-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px;
  border: 1px solid var(--navy); border-radius: 4px; background: #FFFFFF; font-size: 13.5px; }
.picker-chip .pc-code { font-weight: 600; color: var(--navy); }
.picker-chip .pc-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; color: var(--ink); }
.picker-chip button { border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; color: var(--slate);
  padding: 2px 6px; border-radius: 50%; }
.picker-chip button:hover { background: var(--wash); color: var(--err); }
.screen-list { margin-top: 36px; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap;
  margin-bottom: 14px; }
.section-head-row h2 { margin: 0; font-size: 1.6rem; }
.section-head-row p { margin: 0; max-width: 60ch; }
.table-card { padding: 8px 20px; }
.screen-progress { max-width: 760px; }
.screen-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 14px; }
.screen-tools label { display: grid; gap: 4px; margin: 0; font-size: 13px; color: var(--slate); }
.screen-tools select { padding-top: 7px; padding-bottom: 7px; font-size: 14px; min-width: 104px; }
.screen-tools .check { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; color: var(--ink); }
.st-search { position: relative; }
.st-search .icon { position: absolute; left: 10px; bottom: 11px; color: var(--slate-2); }
.st-search input { padding: 7px 10px 7px 32px; font-size: 14px; min-width: 260px; }
.st-count { margin-left: auto; padding-bottom: 8px; }
.screen-table { font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.screen-table th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
.screen-table th[data-sort] { cursor: pointer; user-select: none; }
.screen-table th[data-sort]::after { content: "↕"; margin-left: 5px; color: var(--line-strong); font-size: 11px; }
.screen-table th.is-sorted::after { color: var(--gold-ink); }
.screen-table th.is-sorted[aria-sort="ascending"]::after { content: "↑"; }
.screen-table th.is-sorted[aria-sort="descending"]::after { content: "↓"; }
.screen-table td { padding: 11px 10px; }
.screen-table .co { min-width: 220px; max-width: 320px; }
.screen-table .co a { font-size: 14.5px; }
.co-sub { display: block; font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.co-sub.warn { color: var(--warn); }
tr.is-superseded td { color: var(--slate-2); }
.problems-card tr.is-error td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.problems-card code { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; }
tr.is-superseded .pill { opacity: .6; }
.score-col { min-width: 170px; max-width: 240px; }
.sc { display: flex; align-items: center; gap: 8px; }
.sc-num { font: 600 1.15rem/1 var(--serif); color: var(--navy); min-width: 1.6em; font-variant-numeric: lining-nums tabular-nums; }
.sc-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--wash); overflow: hidden; max-width: 90px; }
.sc-bar span { display: block; height: 100%; background: var(--gold); }
.why { margin-top: 4px; font-size: 12.5px; }
.why summary { cursor: pointer; color: var(--slate); list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary:hover { color: var(--navy); }
.why summary .more { color: var(--gold-ink); white-space: nowrap; }
.screen-table .co-sector { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.why .chips { margin-top: 6px; }
.screen-note { margin-top: 12px; }
.db-sub { margin: 0 0 20px; }
.tag-wrap { white-space: normal; line-height: 1.4; padding-top: 3px; padding-bottom: 3px; }
@media (max-width: 720px) {
  .screen-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .screen-stats > .card { padding: 14px 16px; }
  .screen-stats > .card + .card { border-top: 0; }
  .screen-stats > .card:nth-child(even) { border-left: 1px solid var(--line); }
  .screen-stats > .card:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .quota-card { min-width: 0; width: 100%; }
  .st-search input { min-width: 0; }
  .st-count { margin-left: 0; }
}

.screener-promo { display: grid; gap: 4px; margin: 0 0 24px; padding: 18px 22px; background: var(--paper);
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-md); color: var(--ink);
  text-decoration: none !important; transition: border-color .15s var(--ease), box-shadow .2s var(--ease); }
.screener-promo:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.screener-promo .eyebrow { margin: 0; }
.screener-promo strong { font: 600 1.3rem/1.3 var(--serif); color: var(--navy); }
.screener-promo .promo-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 600;
  font-size: 14px; color: var(--navy); }
.screener-promo .promo-go .icon { transform: rotate(-90deg); }

/* landing: screener preview */
.screen-demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 40px; align-items: start; }
.screen-demo-card { margin: 0; padding: 18px 18px 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.screen-demo-card figcaption { font-size: 13px; color: var(--slate); margin: 0 0 12px; }
.screen-demo-card figcaption span { color: var(--slate-2); }
.screen-table.mini { border: 0; font-size: 13.5px; }
.screen-table.mini td { padding: 12px 10px; }
.screen-table.mini .chip { display: inline-block; margin-top: 6px; font-size: 12px; }
.screen-table.mini .co strong { color: var(--navy); font-weight: 600; }
@media (max-width: 900px) { .screen-demo { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* landing: calls to action, the three tools, audiences, trust, plans, questions */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.stack-caption a { color: var(--navy); }
.tour { display: grid; gap: 72px; }
.tour-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 32px 64px; align-items: center; }
.tour-row.is-flipped { grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr); gap: 32px 48px; }
.tour-row.is-flipped .tour-copy { order: 2; }
.tour-copy h3 { font: 500 2rem/1.15 var(--serif); color: var(--navy); margin: 0 0 12px; }
.tour-lead { margin: 0 0 16px; color: var(--ink); font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--slate); font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(-45deg); }
.tour-link { display: inline-block; font-weight: 600; color: var(--navy); text-decoration-color: var(--gold) !important;
  text-decoration-thickness: 2px !important; text-underline-offset: .28em !important; }
.tour .proof-line { margin: 0 0 18px; }
.toc h4 { font: 500 1.5rem var(--serif); color: var(--navy); margin: 0 0 4px; }
.mini-feed { margin: 0; padding: 10px 22px; box-shadow: var(--shadow-2); border-color: transparent; }
.mini-feed .alert-item { margin: 0 -12px; padding: 14px 12px; }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gold); }
.audiences > div { padding: 26px 28px 4px 0; }
.audiences > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.audiences h3 { font: 600 1.35rem/1.25 var(--serif); color: var(--navy); margin: 0 0 8px; }
.audiences p { margin: 0; color: var(--slate); }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.plan-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 22px; }
.plan-card.is-highlight { border-color: var(--navy); box-shadow: inset 0 3px 0 var(--gold), var(--shadow-2); }
.plan-card h3 { font: 500 1.6rem/1.2 var(--serif); color: var(--navy); margin: 0; }
.plan-card__tagline { margin: 2px 0 16px; font-size: 14px; line-height: 1.45; color: var(--slate); min-height: 2.9em; }
.plan-card__price { margin: 0 0 16px; color: var(--slate); font-size: 14px; }
.plan-card__price strong { font: 500 2.1rem/1.1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; }
.plan-card__price span { display: block; font-size: 13px; margin-top: 2px; }
.plan-card ul { list-style: none; margin: 0 0 20px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid;
  gap: 8px; font-size: 14px; color: var(--ink); }
.plan-card li { line-height: 1.45; }
.plan-card .btn { margin-top: auto; }
.home-faq { margin-top: 0; }

/* the demo: a band under the header, and its own cards */
.site-header.is-demo { border-bottom-color: var(--line); }
.demo-bar { background: var(--gold-soft); border-bottom: 1px solid #E2D2A6; color: var(--ink); }
.demo-bar__inner { max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 10px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
body.is-wide .demo-bar__inner { max-width: 1568px; }
.demo-bar p { margin: 0; font-size: 14.5px; }
.demo-bar strong { color: var(--navy); }
.demo-bar__go { display: flex; align-items: center; gap: 16px; }
.demo-bar__leave { font-size: 14px; color: var(--gold-ink); }
.plan-chip.is-current { border-color: var(--gold); }
.demo-next { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 20px 40px; align-items: center;
  background: var(--navy); color: var(--on-navy); border-radius: var(--r-md); padding: 34px 36px; margin: 8px 0 0; }
.demo-next h2 { color: var(--on-navy); font-size: 1.75rem; font-weight: 500; margin: 0 0 6px; }
.demo-next p { margin: 0; color: var(--on-navy-muted); max-width: 60ch; }
.demo-decks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.demo-deck { display: grid; gap: 4px; align-content: start; margin: 0; text-decoration: none !important; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.demo-deck:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.demo-deck strong { font: 600 1.3rem/1.3 var(--serif); color: var(--navy); }
.demo-deck__kind { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.demo-deck .promo-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 600;
  font-size: 14px; color: var(--navy); }
.demo-deck .promo-go .icon { transform: rotate(-90deg); }
.demo-how p { color: var(--slate); max-width: 72ch; }
.demo-screen-form legend { margin-bottom: 10px; }
.demo-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-filters { margin: 4px 0 16px; }
.demo-deck-note { margin-bottom: 18px; }
table.list.group-lenders th { white-space: normal; }
@media (max-width: 520px) {
  table.list.small.group-lenders th, table.list.small.group-lenders td { padding-left: 6px; padding-right: 6px; }
}
.site-footer__base .credit { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(184, 151, 90, .35); }
.site-footer__base .credit a { color: var(--gold-2); }
@media (max-width: 1060px) {
  .tour-row, .tour-row.is-flipped { grid-template-columns: minmax(0, 1fr); }
  .tour-row.is-flipped .tour-copy { order: 0; }
  .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .audiences, .trust, .demo-decks, .demo-screens { grid-template-columns: minmax(0, 1fr); }
  .audiences > div, .audiences > div + div { padding: 20px 0 4px; border-left: 0; }
  .audiences > div + div { border-top: 1px solid var(--line); }
  .demo-next { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
}
@media (max-width: 600px) {
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .tour { gap: 56px; }
  .tour-copy h3 { font-size: 1.7rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .demo-bar__inner { padding: 10px 16px; }
  .site-footer__base .credit { display: block; margin: 4px 0 0; padding: 0; border: 0; }
}

.db-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-bottom: 18px; }
.db-facts > div:last-child { border-bottom: 1px solid var(--line); }

/* ---------- page chrome shared by the slide viewer and the screener (deck.css keeps its own copy) ---------- */
.viewer-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: 22px; }
.viewer-title { min-width: 0; }
.viewer-title h1 { margin: 0; font-size: 2rem; line-height: 1.1; overflow-wrap: anywhere; }
.viewer-title .tags { margin-top: 12px; }
.viewer-actions { gap: 8px; }
.viewer-actions form { margin: 0; }
.more-menu > summary { padding: 9px 11px; border: 1px solid rgba(14, 40, 31, .28); border-radius: var(--r-sm);
  color: var(--navy); }
.menu-panel button.danger, .menu-panel button.danger .icon { color: var(--err) !important; }
.btn-ghost.danger { color: var(--err) !important; border-color: rgba(163, 40, 30, .3); }
.btn-ghost.danger:hover { background: var(--err-bg); border-color: var(--err); }

/* ---------- navigation badge (new alerts) ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px;
  border-radius: 9px; background: var(--gold); color: var(--navy); font: 700 11px/1 var(--sans);
  font-variant-numeric: tabular-nums; vertical-align: 1px; }

/* ---------- estimates (companies that do not publish a figure) ---------- */
.est { color: var(--slate); font-style: italic; cursor: help; white-space: nowrap; }
.est-mark { margin-right: 2px; font-style: normal; color: var(--gold-ink); }
.est-range { white-space: nowrap; }
.est-range abbr { text-decoration: none; cursor: help; color: var(--gold-ink); font-weight: 600; font-style: normal; }
.est-list strong { color: var(--navy); }
.est-list small { margin-left: 4px; font-size: 13px; }
.est-list .est-how { margin: 2px 0 8px; line-height: 1.45; }

/* ---------- screener: free-plan limit, deep options, follow ---------- */
.locked { display: inline-flex; color: #B9AE99; }
.screen-table tr.is-locked td { color: var(--slate); }
.screen-table tr.is-locked .co a { color: var(--ink); font-weight: 500; }
table.list tbody tr.locked-row-head, table.list tbody tr.locked-row-head:hover { background: #FFFCF4; }
.locked-row-head > td { padding: 0 !important; border-bottom: 1px solid var(--line); }
.locked-cta { position: sticky; left: 0; display: flex; justify-content: space-between; align-items: center;
  gap: 10px 24px; flex-wrap: wrap; max-width: min(100%, calc(100vw - 32px)); padding: 14px 18px;
  box-shadow: inset 3px 0 0 var(--gold); }
.locked-cta p { margin: 0; max-width: 72ch; font-size: 14.5px; color: var(--ink); }
.locked-cta strong { color: var(--navy); }
.deep-options { margin: 4px 0 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #FFFFFF; }
.deep-options > summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer;
  list-style: none; font-weight: 600; color: var(--navy); }
.deep-options > summary::-webkit-details-marker { display: none; }
.deep-options > summary::before { content: ""; width: 7px; height: 7px; margin: 0 2px 2px 0; flex: none;
  border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(-45deg);
  transition: transform .2s var(--ease); }
.deep-options[open] > summary::before { transform: rotate(45deg); }
.deep-options[open] { padding-bottom: 4px; }
.deep-options > :not(summary) { margin-left: 16px; margin-right: 16px; }
.revenue-published { margin: 2px 0 6px !important; }
.team-screens-title { margin: 36px 0 14px; font-size: 1.6rem; }
.follow-form { margin: -8px 0 22px; }
.btn.is-following { color: var(--ok) !important; border-color: rgba(30, 107, 72, .35); background: var(--ok-bg); }
.btn.is-following:hover { border-color: var(--ok); background: #DDEFE4; }

/* ---------- alerts ---------- */
.alert-email { margin: 0; padding: 14px 18px; min-width: 280px; max-width: 380px; border-top: 2px solid var(--gold); }
.alert-email .check { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14.5px; font-weight: 500; }
.alert-email p { margin: 6px 0 0; }
.alert-feed h2 { margin: 0 0 6px; }
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline;
  padding: 14px 10px 14px 8px; margin: 0 -10px 0 -8px; border-bottom: 1px solid var(--line); border-radius: var(--r-sm); }
.alert-item:last-child { border-bottom: 0; }
.alert-item.is-new { background: linear-gradient(90deg, #F3F8F4, rgba(243, 248, 244, 0) 70%); }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transform: translateY(-1px); }
.alert-item.is-new .alert-dot { box-shadow: 0 0 0 3px var(--gold-soft); }
.kind-accounts .alert-dot { background: var(--navy-3); }
.kind-owners .alert-dot, .kind-leader .alert-dot, .kind-succession .alert-dot, .kind-exit .alert-dot { background: var(--gold); }
.kind-status .alert-dot, .kind-charges .alert-dot { background: var(--err); }
.kind-score .alert-dot, .kind-screen .alert-dot { background: var(--ok); }
.alert-item > div { min-width: 0; }
.alert-title { margin: 0; font-size: 15px; line-height: 1.45; }
.alert-title a { font-weight: 600; text-decoration: none; }
.alert-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.alert-title .pill { margin-left: 4px; vertical-align: 1px; }
.alert-item p.small { margin: 3px 0 0; }
.alert-item time { white-space: nowrap; }
.follow-grid { align-items: start; }
.follow-grid .section-head-row h2 { font-size: 1.4rem; }

/* ---------- team ---------- */
.team-grid { align-items: start; }
.team-grid .section-head-row h2 { font-size: 1.4rem; }
.team-grid h2 { font-size: 1.4rem; }
.team-leave { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line); }
.team-name-title { margin: 26px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form input { flex: 1 1 220px; width: auto; min-width: 0; }
.inline-form select { flex: 0 0 auto; width: auto; min-width: 104px; }
.inline-form .btn { flex: none; }
.join-card { max-width: 640px; margin: 24px auto 0; padding: 44px 48px; border-top: 2px solid var(--gold); }
.join-card h1 { margin: 0 0 12px; }
.join-card .lead { font-size: 1.125rem; line-height: 1.6; color: var(--slate); margin: 0 0 24px; }
.join-card form { margin: 0 0 14px; }
.team-plan { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 28px 44px; align-items: center;
  margin-top: 40px; scroll-margin-top: 16px; }
.team-plan-copy h2 { font-size: 1.75rem; font-weight: 500; margin: 0 0 8px; }
.team-plan-copy > p { margin: 0; }
.team-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; margin: 20px 0 0; }
.team-plan-buy { position: relative; display: grid; gap: 12px; align-content: start; padding: 28px 28px 24px;
  background: var(--navy); color: var(--on-navy-muted); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.team-plan-buy > * { position: relative; z-index: 1; }
.team-plan-buy .price { margin: 0; }
.team-plan-buy .price strong { color: var(--on-navy); }
.team-plan-buy .price span, .team-plan-buy .muted { color: var(--on-navy-muted) !important; }
.team-plan-buy .per-unit { margin: 0; min-height: 0; color: var(--gold-2); }
.team-plan-buy p { margin: 0; }
.team-plan-buy .btn { width: 100%; background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
.team-plan-buy .btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.team-plan-buy .btn-ghost.disabled { background: transparent; color: var(--on-navy) !important;
  border-color: rgba(247, 245, 239, .35); }
.team-plan-buy a:not(.btn) { color: var(--gold-2); text-decoration-color: rgba(214, 181, 102, .5); }
.team-more { margin-top: 2px !important; }
#cycle-year:checked ~ .team-plan .monthly { display: none; }
#cycle-month:checked ~ .team-plan .yearly { display: none; }

/* ---------- admin: funnel, registry data ---------- */
.funnel-card .section-head-row p { max-width: 70ch; }
.funnel-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 4px 0 24px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.funnel-step { display: grid; gap: 2px; align-content: start; padding: 14px 16px; background: var(--paper); }
.funnel-step .label { font-size: 13px; color: var(--slate); }
.funnel-step strong { font: 600 1.5rem/1.2 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.funnel-table td .co-sub { font-size: 12px; color: var(--slate-2); }
.funnel-sources-title { margin: 28px 0 8px; }
.funnel-sources { max-width: 560px; }
.data-active { border-top: 2px solid var(--gold); }
.data-active .progress { margin: 6px 0 12px; }
.data-active form { margin-top: 8px; }
.data-sources .section-head-row { margin-bottom: 8px; }
.data-sources .section-head-row h2 { font-size: 1.5rem; }
.data-table td:first-child { min-width: 260px; }
.data-table td:first-child strong { color: var(--navy); }
.data-one { display: inline-flex !important; align-items: center; justify-content: flex-end; gap: 8px; }
.data-one label { display: inline-flex; margin: 0; }
.data-one select { width: auto; padding: 6px 30px 6px 10px; font-size: 13.5px; background-position: right 10px center; }
.data-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap;
  margin: -6px 0 24px; }
.data-foot p { margin: 0; max-width: 92ch; }

/* ---------- public company pages and directory ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 18px; font-size: 13.5px;
  color: var(--slate-2); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.pub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  margin: 0 0 28px; }
.pub-head h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.08; overflow-wrap: anywhere; }
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.pub-main { min-width: 0; }
.pub-main .card h2, .pub-side .card h2 { font-size: 1.45rem; }
.pub-side { position: sticky; top: 24px; }
.pub-fin tbody th { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; padding-top: 12px;
  border-bottom-color: var(--line); }
.pub-fin thead th:not(:first-child) { color: var(--navy); font-weight: 600; }
.pub-locked { background: linear-gradient(180deg, var(--paper), #F8FBF9); border-left: 3px solid var(--gold); }
.pub-locked > p { margin: 0 0 4px; }
.locked-list { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; gap: 10px; }
.locked-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.locked-list .icon { flex: none; color: var(--gold-ink); }
.pub-cta { position: relative; background: var(--navy); border-color: var(--navy); color: var(--on-navy-muted);
  box-shadow: var(--shadow-2); }
.pub-cta > * { position: relative; z-index: 1; }
.pub-cta .panel-label { color: var(--gold-2); font-weight: 600; letter-spacing: .02em; }
.pub-cta h2 { color: var(--on-navy); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.pub-cta .muted { color: var(--on-navy-muted); }
.pub-cta .btn { margin-top: 16px; background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }
.pub-cta .btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.pub-similar { list-style: none; margin: 0 0 14px; padding: 0; }
.pub-similar li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pub-similar li:first-child { padding-top: 2px; }
.pub-similar a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.pub-similar a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.pub-source { margin: 4px 0 0; max-width: 92ch; }
:where(h2, h3).h3 { font: 600 1.3rem/1.3 var(--serif); color: var(--navy); margin: 0 0 12px; letter-spacing: 0; }
.region-tags { margin: -8px 0 24px; }
a.tag.is-on { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
a.tag.is-on .muted { color: var(--on-navy-muted); }
.tag .muted { font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 4px 0 0; }
.dir-grid { columns: 2 440px; column-gap: 24px; }
.dir-section { break-inside: avoid; display: inline-block; width: 100%; }
.dir-section h2 { display: flex; align-items: center; gap: 12px; }
.dir-letter { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-ink); font: 600 1rem/1 var(--serif); }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); }
.dir-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dir-name { flex: 1 1 220px; min-width: 0; font-size: 14.5px; color: var(--ink); }
.dir-links { display: flex; gap: 14px; flex: none; font-size: 14px; white-space: nowrap; }
.dir-links a { font-weight: 600; text-decoration: none; }
.dir-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.dir-links .muted { font-weight: 400; }

/* ---------- new components on small screens ---------- */
@media (max-width: 1000px) {
  .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-side { position: static; }
  .team-plan { grid-template-columns: minmax(0, 1fr); }
  .funnel-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .viewer-title h1 { font-size: 1.7rem; }
  .viewer-actions .btn { padding: 8px 12px; font-size: 14px; }
  .alert-email { min-width: 0; max-width: none; width: 100%; }
  .alert-item { grid-template-columns: 14px minmax(0, 1fr); }
  .alert-item time { grid-column: 2; }
  .team-features { grid-template-columns: minmax(0, 1fr); }
  .team-plan-buy { padding: 24px 22px 20px; }
  .join-card { padding: 30px 22px; }
  .funnel-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-one { flex-wrap: wrap; }
  .dir-links { white-space: normal; flex-wrap: wrap; }
  .locked-cta { padding: 14px; }
}
.pub-fin tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 720px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { padding: 2px 0 !important; border: 0 !important; text-align: left !important; }
  .data-table td:first-child { min-width: 0; }
  .data-table .data-one { justify-content: flex-start; margin-top: 8px; }
  .data-sources .section-head-row form, .data-sources .section-head-row .btn { width: 100%; }
}
.team-grid, .follow-grid { margin-bottom: 24px; }
.team-grid > .card, .follow-grid > .card { margin-bottom: 0; }
.screen-form fieldset:last-of-type { padding-bottom: 0; }

.score-check-headline { margin: 0 0 14px; max-width: 95ch; }
.score-check-headline .muted { display: block; font-size: 13.5px; margin-top: 4px; }
.score-check-grid { gap: 18px; }
.proof-line { display: flex; gap: 10px; align-items: flex-start; max-width: 78ch; margin: -6px 0 22px; padding: 12px 16px;
  background: var(--ok-bg); color: var(--ink); border-radius: var(--r-sm); font-size: 15px; line-height: 1.5; }
.proof-line svg { flex: none; margin-top: 3px; color: var(--ok); }
.proof-line .muted { display: block; font-size: 13px; margin-top: 2px; }

/* ---------- five-year track record (company page) ---------- */
.track-record .section-head-row { align-items: flex-end; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 10px; }
.track-record h2 { margin: 0; font-size: 1.45rem; }
.tr-cagr { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tr-cagr li { min-width: 0; }
.tr-cagr .label { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.tr-cagr strong { font: 600 1.25rem/1.2 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.tr-cagr strong.is-pos { color: var(--ok); } .tr-cagr strong.is-neg { color: var(--err); }
.tr-cagr .co-sub { margin-top: 0; }
.tr-chart { margin: 6px 0 12px; max-width: 640px; }
.tr-few { margin: 0 0 6px; }
.tr-plot { position: relative; display: flex; gap: 6%; height: 150px; margin: 22px 0 0; padding: 0 2%; }
.tr-col { position: relative; flex: 1 1 0; min-width: 0; }
.tr-bar { position: absolute; left: 50%; width: min(72%, 58px); transform: translateX(-50%); border-radius: 2px;
  background: #C9BFA9; }
.tr-col.is-last .tr-bar { background: var(--navy); }
.tr-bar.is-neg { background: #C98A80; }
.tr-zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.tr-value { position: absolute; left: -20%; right: -20%; text-align: center; font: 600 12px/1.2 var(--sans);
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 3px 0; }
.tr-axis { display: flex; gap: 6%; padding: 6px 2% 0; border-top: 0; }
.tr-axis span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11.5px; color: var(--slate); white-space: nowrap; }
.tr-chart figcaption { margin-top: 4px; }
@media (max-width: 520px) {
  .tr-plot { height: 120px; gap: 4%; } .tr-axis { gap: 4%; }
  .tr-value { font-size: 10.5px; } .tr-axis span { font-size: 10px; }
}
.tr-table th[scope="row"] { font-weight: 600; color: var(--ink); white-space: nowrap; position: sticky; left: 0;
  background: var(--paper); }
.tr-table tbody tr:last-child th { border-bottom: 0; }
.tr-table td .is-neg { color: var(--err); }
.tr-table thead th small { font-weight: 400; color: var(--slate-2); }

/* ---------- peer benchmarking (company page, screener) ---------- */
.peers-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 24px; flex-wrap: wrap;
  margin-bottom: 12px; }
.peers-head h2 { margin: 0; font-size: 1.45rem; }
.peers-sub { margin: 0; max-width: 46ch; }
.peer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px; }
.peer { padding: 14px 0 12px; border-top: 1px solid var(--line); min-width: 0; }
.peer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.peer-label { font-size: 13.5px; color: var(--slate); }
.peer-value { font: 600 1.25rem/1.2 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap; }
.peer-bar { position: relative; height: 8px; margin: 12px 0 4px; border-radius: 4px; background: var(--wash); }
.peer-half { position: absolute; left: 25%; width: 50%; top: 0; bottom: 0; background: #E2D9C6; }
.peer-half::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px;
  background: var(--slate-2); }
.peer-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--navy); }
.tone-top .peer-dot, .tone-good .peer-dot { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.tone-low .peer-dot { background: #B98A1D; box-shadow: 0 0 0 1px #B98A1D; }
.tone-neutral .peer-dot { background: var(--slate); box-shadow: 0 0 0 1px var(--slate); }
.peer-ends { display: flex; justify-content: space-between; font-size: 11.5px !important; letter-spacing: .02em; }
.peer-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 6px 0 0; font-size: 13px; color: var(--slate); }
.peer-verdict { font-weight: 600; color: var(--navy); }
.tone-top .peer-verdict, .tone-good .peer-verdict { color: var(--ok); }
.tone-low .peer-verdict { color: var(--warn); }
.peer-who { margin: 2px 0 0; line-height: 1.4; }
.peer.is-locked .peer-label { color: var(--slate-2); }
.peer-lock { display: inline-flex; color: #B9AE99; }
.peers-cta { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 14px 18px; background: #FFFCF4; box-shadow: inset 3px 0 0 var(--gold); }
.peers-cta p { margin: 0; font-size: 14.5px; max-width: 60ch; }
.peers-note { margin: 14px 0 0; max-width: 90ch; }
.co-sub.peer-flag { display: flex; align-items: center; gap: 4px; color: var(--ok); }

/* ---------- Partner plan: badge, team page, invitation, admin ---------- */
.partner-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); }
.plan-chip.is-partner, .nav-end > a.plan-chip.is-partner { background: var(--navy); border-color: var(--navy);
  color: var(--on-navy); }
.plan-chip.is-partner::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.plan-chip.is-partner:hover, .nav-end > a.plan-chip.is-partner:hover { background: var(--navy-2); border-color: var(--gold);
  color: var(--on-navy); }
.partner-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px 40px;
  border-top: 2px solid var(--gold); }
.partner-card h2 { margin: 0 0 6px; font-size: 1.6rem; }
.partner-card-copy > .muted { margin: 0; }
.partner-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; margin: 18px 0 0; }
.partner-card-terms { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--r-md); }
.partner-card-terms p { margin: 0; }
.partner-terms { font: 600 1.4rem/1.2 var(--serif); color: var(--navy); }
.partner-private { padding-top: 10px; border-top: 1px solid var(--line); }

.invite { max-width: 980px; margin: 8px auto 0; }
.invite h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; margin: 0 0 14px; }
.invite-lead { font-size: 1.125rem; line-height: 1.6; color: var(--slate); max-width: 62ch; margin: 0 0 26px; }
.invite-note { margin: 0 0 28px; padding: 18px 22px; background: var(--paper); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--shadow-1); }
.invite-note blockquote { margin: 0; font: italic 1.2rem/1.5 var(--serif); color: var(--ink); white-space: pre-line; }
.invite-note figcaption { margin-top: 8px; font-size: 13.5px; color: var(--slate); }
.invite-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.invite-perks { margin: 0; }
.invite-perks h2 { margin: 0 0 4px; font-size: 1.45rem; }
.invite-private { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.invite-terms { position: relative; display: grid; gap: 12px; padding: 28px 26px 24px; background: var(--navy);
  color: var(--on-navy-muted); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.invite-terms > * { position: relative; z-index: 1; margin: 0; }
.invite-terms .panel-label { color: var(--gold-2); letter-spacing: .12em; text-transform: uppercase; font-size: 12px;
  font-weight: 600; }
.invite-price { font: 600 1.9rem/1.15 var(--serif); color: var(--on-navy); }
.invite-terms .small { color: var(--on-navy-muted); }
.invite-state { color: var(--on-navy); font-size: 14.5px; padding: 10px 12px; border: 1px solid rgba(247, 245, 239, .25);
  border-radius: var(--r-sm); }
.invite-terms form { display: block; }
.btn-outline-light { background: transparent; color: var(--on-navy) !important; border-color: rgba(247, 245, 239, .4); }
.btn-outline-light:hover { background: rgba(247, 245, 239, .08); border-color: var(--on-navy); }
.invite-foot { margin: 22px 0 0; text-align: center; }
.private-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; }

.partner-admin-grid { margin-bottom: 24px; align-items: start; }
.partner-admin-grid > .card { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.partner-pricing { margin: 0 0 16px; padding: 14px 16px 4px; border: 1px solid var(--line); border-radius: var(--r-md); }
.partner-pricing legend { font: 600 14px/1.3 var(--sans); color: var(--ink); margin: 0 0 8px; padding: 0 4px; }
.form .partner-pricing .check { align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.partner-pricing .check.is-off { color: var(--slate-2); }
.partner-pricing input.inline-number, .inline-days input.inline-number { width: 76px; padding: 6px 8px; }
.partner-pricing input.inline-price { width: 120px; padding: 6px 8px; }
.partner-pricing select { width: auto; padding: 6px 32px 6px 10px; }
.inline-days { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 400; }
.form .partner-send { align-self: end; align-items: center; margin-bottom: 22px; }
.partner-how .plan-features { margin: 10px 0 16px; }
.partner-note { display: flex; gap: 6px; margin-top: 8px; max-width: 360px; }
.partner-note input { padding: 5px 8px; font-size: 13px; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; min-width: 220px; }
.copy-link { font-size: 12px; padding: 5px 8px; width: 100%; max-width: 300px; color: var(--slate); background: var(--ivory); }
.feature-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.feature-form input[type=date] { width: auto; padding: 5px 8px; font-size: 13px; }
.feature-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 14px 0;
  border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-copy { flex: 1 1 360px; min-width: 0; }
.feature-copy p { margin: 2px 0 0; }
.feature-state { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: 0 0 auto; }
.feature-form input[type=date] { flex: 0 0 auto; width: 160px; }
.form .partner-send span { display: block; }
@media (max-width: 1000px) {
  .partner-card, .invite-grid { grid-template-columns: minmax(0, 1fr); }
  .invite-terms { order: -1; }  /* the terms and the button before the list on small screens */
}
@media (max-width: 720px) {
  .peer-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .partner-features { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .invite-terms { padding: 24px 22px 20px; }
  .feature-form { justify-content: flex-start; }
}

/* data rights: sources page, objection form, the admin's record (printable) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sources-list { display: grid; gap: 0; }
.source-item { padding: 22px 0; border-top: 1px solid var(--line); }
.source-item:first-child { padding-top: 4px; }
.source-item, .source-item + .source-item { border-top: 0; }
.source-item header { margin-bottom: 8px; }
.source-item h2 { margin: 0 0 4px; }
.source-item > p { color: var(--slate); max-width: 80ch; margin: 0 0 12px; }
.source-item .record-list > div, .dr-grid > div { grid-template-columns: 170px minmax(0, 1fr); }
.sources-people { margin-top: 24px; max-width: none; }
.source-item dd, .dr-grid dd { overflow-wrap: anywhere; }
.privacy-form fieldset { margin-bottom: 18px; }
.privacy-form textarea { width: 100%; }
tr.is-new td { background: #FCFAF2; }
.dr-apply, .dr-decline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.dr-apply input, .dr-decline input { width: auto; min-width: 0; flex: 1 1 120px; padding: 6px 8px; font-size: 13px; }
.dr-add { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 720px; }
.dr-source { padding: 16px 0; border-top: 1px solid var(--line); }
.dr-source:first-of-type { border-top: 0; }
.dr-source h3 { margin: 0 0 8px; }
.dr-grid ul { margin: 0; padding-left: 18px; }
.dr-lia { max-width: none; }
.dr-lia ul, .dr-lia ol { max-width: 95ch; }
@media (max-width: 600px) {
  .source-item .record-list > div, .dr-grid > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media print {
  .site-header, .site-footer, .demo-bar, .dr-apply, .dr-decline, .dr-add, #suppressions form { display: none !important; }
  .card { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 18px !important; }
  body { background: #fff !important; }
}

/* launch pricing: the founding firms' promise */
.founding-note { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 10px; padding: 12px 16px;
  border: 1px solid rgba(184, 151, 90, .45); background: #F7F3E8; border-radius: var(--r-sm); color: var(--ink);
  font-size: 14.5px; max-width: 760px; text-align: left; }
.founding-note ~ .flash { max-width: 760px; }  /* the pricing notices line up as one column */
.founding-note .icon { color: var(--gold-ink); margin-top: 3px; flex: none; }
.revenue-rule + .revenue-rule { margin-top: -20px; }

/* profit and loss (Admin) */
.pnl-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 0 0 20px; }
.pnl-year { display: flex; align-items: center; gap: 10px; }
.pnl-year label { font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.pnl-year select { width: auto; min-width: 120px; padding-top: 7px; padding-bottom: 7px; }
.seg { display: flex; width: max-content; max-width: 100%; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--paper); padding: 3px; }
.seg a { padding: 6px 16px; border-radius: 3px; font-weight: 600; font-size: 14px; color: var(--slate);
  text-decoration: none; transition: background-color .18s var(--ease), color .18s var(--ease); }
.seg a:hover { color: var(--navy); }
.seg a[aria-current] { background: var(--navy); color: var(--on-navy); }
.pnl-stats .stat strong.pos { color: var(--ok); }
.pnl-stats .stat strong.neg { color: var(--err); }
table.pnl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
table.pnl th, table.pnl td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.pnl td { text-align: right; }
table.pnl thead th { font-size: 13px; font-weight: 600; color: var(--slate); vertical-align: bottom;
  border-bottom-color: var(--line-strong); padding-top: 2px; }
table.pnl thead th.num { text-align: right; }
.pnl-note { display: block; font-size: 11.5px; font-weight: 400; color: var(--slate-2); }
table.pnl tbody th, table.pnl thead th:first-child { text-align: left; font-weight: 400; color: var(--ink);
  position: sticky; left: 0; background: var(--paper); min-width: 190px; }
.pnl-costs thead th { position: relative; } /* keeps the hidden "Delete" label inside the scrolling table */
table.pnl .pnl-head th { font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); padding-top: 20px; border-bottom-color: var(--line-strong); }
table.pnl tbody:first-of-type .pnl-head th { padding-top: 10px; }
table.pnl .pnl-total th, table.pnl .pnl-total td { font-weight: 600; border-top: 1px solid var(--line-strong); }
table.pnl .pnl-profit th, table.pnl .pnl-profit td { font-weight: 700; font-size: 15px; color: var(--navy);
  background: var(--wash); border-top: 1px solid var(--line-strong); border-bottom: 0; padding-top: 10px; }
table.pnl .pnl-profit td.pos { color: var(--ok); }
table.pnl .pnl-profit td.neg { color: var(--err); }
table.pnl .pnl-profit td.nil { color: var(--slate-2); }
table.pnl .pnl-margin th, table.pnl .pnl-margin td { font-size: 12.5px; color: var(--slate); background: var(--wash);
  padding-top: 0; }
table.pnl .pnl-total-col { background: #FBF8F1; font-weight: 600; }
table.pnl .pnl-profit .pnl-total-col, table.pnl .pnl-margin .pnl-total-col { background: #EDE7D8; }
table.pnl .pnl-memo th, table.pnl .pnl-memo td { color: var(--slate); }
table.pnl .pnl-memo .pnl-head th { color: var(--slate); }
table.pnl tbody tr:last-child td, table.pnl tbody tr:last-child th { border-bottom: 0; }
.pnl-how { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.pnl-how summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.pnl-how dl { margin: 12px 0 0; display: grid; gap: 8px; }
.pnl-how dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.pnl-how dt { font-weight: 600; font-size: 14px; }
.pnl-how dd { margin: 0; font-size: 14px; color: var(--slate); max-width: 90ch; }
.pnl-add { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 14px; }
.pnl-add-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.pnl-add-grid .pnl-wide { grid-column: span 2; }
.pnl-amount { display: flex; gap: 6px; margin-top: 6px; }
.pnl-amount input { flex: 1; min-width: 0; }
.pnl-amount select { width: auto; flex: none; }
.pnl-rates { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.pnl-rates label { width: 200px; }
.pnl-rates .btn { margin-bottom: 16px; }
.pnl-costs button.link-dark { line-height: 1; }
@media (max-width: 900px) {
  .pnl-add-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pnl-add-grid { grid-template-columns: minmax(0, 1fr); }
  .pnl-add-grid .pnl-wide { grid-column: auto; }
  .pnl-how dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  table.pnl tbody th, table.pnl thead th:first-child { min-width: 140px; white-space: normal; }
  .pnl-rates label { width: 100%; }
}
@media print {
  .pnl-controls, .pnl-add, #rates, .pnl-costs form, .page-head .actions { display: none !important; }
  .pnl-how[open] summary { display: none; }
}

/* AI spending limits (Admin) */
.ai-meter { margin: 4px 0 16px; }
.ai-meter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 8px; }
.ai-meter-head strong { font: 600 1.5rem/1.2 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.ai-bar { height: 8px; border-radius: 4px; background: var(--wash); overflow: hidden; max-width: 560px; }
.ai-bar span { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.ai-meter.is-reached .ai-bar span { background: var(--err); }
.ai-week { margin: 8px 0 0; }
.ai-week .is-today { color: var(--ink); font-weight: 600; }
.ai-top { margin-bottom: 14px; max-width: 760px; }
.ai-limits { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.ai-limits label { width: 200px; }
.ai-limits .btn { margin-bottom: 16px; }
@media (max-width: 600px) {
  .ai-limits label { width: 100%; }
  .ai-top th:nth-child(3), .ai-top td:nth-child(3) { display: none; } /* the number of calls: on a computer only */
}

/* founder section (home page) */
.founder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 980px; }
.founder-photo { width: 280px; height: 350px; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-2);
  border: 1px solid var(--line); background: var(--wash); }
.founder-text h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.12; margin: 0 0 18px; }
.founder-text p { color: var(--ink); max-width: 62ch; margin: 0 0 14px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px !important; font-weight: 600; }
.founder-links a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .founder { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .founder-photo { width: 200px; height: 250px; }
}

/* customer proof (admin > Customer proof): hidden until filled */
.proof-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.proof-quote { margin: 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.proof-quote blockquote { margin: 0 0 14px; font: 400 1.2rem/1.45 var(--serif); color: var(--navy); }
.proof-quote blockquote p { margin: 0; }
.proof-quote figcaption { font-size: 14px; color: var(--slate); }
.proof-quote figcaption strong { color: var(--ink); }
.proof-quote figcaption span { display: block; }
.proof-logos { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.proof-logos img { height: 34px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.proof-quote .proof-incentive { margin-top: 6px; font-size: 12.5px; font-style: italic; }
.firm-logo-preview { height: 40px; width: auto; border: 1px solid var(--line); padding: 4px; background: #fff; }
.list-add-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.list-add-form select, .list-add-form input { max-width: 240px; }
.deal-list .note-form { display: grid; gap: 6px; min-width: 240px; }
.deal-list textarea { width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
/* ---------- motion: product videos, scroll reveal, hover touches (all off with prefers-reduced-motion) ---------- */
.hero-video { margin: 0; align-self: center; }
.product-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-3); }
.hero-video .stack-caption { position: static; margin: 14px 0 0; }
.in-action { display: grid; gap: 64px; }
.clip { margin: 0; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.clip:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.clip:nth-child(even) .product-video { order: 2; }
.clip figcaption { max-width: 30em; }
.clip .product-video { box-shadow: var(--shadow-2); }
.clip figcaption h3 { margin: 0 0 10px; font: 500 1.75rem/1.2 var(--serif); color: var(--navy); }
.clip figcaption p { margin: 0; color: var(--slate); font-size: 1.0625rem; line-height: 1.6; }
@media (max-width: 900px) { .clip, .clip:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 18px; } .clip:nth-child(even) .product-video { order: 0; } .in-action { gap: 44px; } }

@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(22px); }
  .js-reveal [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }

  .tour-link::after, .stack-caption a::after { content: "→"; display: inline-block; margin-left: 6px;
    transition: transform .2s var(--ease); }
  .tour-link:hover::after, .tour-link:focus-visible::after,
  .stack-caption a:hover::after, .stack-caption a:focus-visible::after { transform: translateX(4px); }

  .btn { transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease),
    transform .2s var(--ease); }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(14, 40, 31, .45); }
  .btn:active { transform: translateY(0); box-shadow: none; }

  .plan-card, .fact, .clip .product-video, .proof-quote, .registries > li {
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
  .plan-card:hover, .proof-quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .fact:hover { transform: translateY(-2px); }
  .clip:hover .product-video { transform: translateY(-3px); box-shadow: var(--shadow-3); }
  .registries > li:hover strong { color: var(--navy-3); }
}
/* dashboard: the first-visit steps (until the first pitchbook) */
.get-started { margin-bottom: 24px; }
.get-started-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.get-started-head h2 { margin: 0; }
.steps-check { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps-check li { display: flex; gap: 12px; align-items: flex-start; }
.steps-check .dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--slate); font-weight: 600; font-size: 14px; }
.steps-check .is-next .dot { border-color: var(--navy); color: var(--navy); }
.steps-check .is-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-check p { margin: 4px 0 0; }
@media (max-width: 800px) { .steps-check { grid-template-columns: minmax(0, 1fr); } }
/* company comparison */
.compare-grid { min-width: 720px; }
.compare-grid thead th { vertical-align: bottom; font-family: var(--serif); font-size: 1.05rem; }
.compare-grid thead th a { color: var(--navy); }
.compare-grid tbody th { font-weight: 500; color: var(--slate); width: 22%; }
.compare-grid .group-row th { padding-top: 18px; color: var(--navy); font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
/* distress risk card (company page, signed-in users only) */
.distress-card { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.distress-card .panel-label { margin: 0 0 4px; }
.distress-score { margin: 0 0 6px; font-size: 15px; }
.distress-score strong { font: 600 1.6rem/1 var(--serif); color: var(--navy); }
.distress-card.is-high { border-color: #E3B9B3; background: var(--err-bg); }
.distress-card.is-medium { border-color: #EFDDB5; background: var(--warn-bg); }
.distress-reasons { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); }
/* Admin > Launch check */
.launch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.launch-list li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.launch-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.launch-list .dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-weight: 700; font-size: 14px; }
.launch-list .is-ok .dot { background: var(--ok); color: #fff; }
.launch-list .is-todo .dot { background: var(--warn-bg); color: var(--warn); border: 1px solid #EFDDB5; }
.launch-list p { margin: 4px 0 0; }