/* Yapscape: the marketing site's language (getyapscape.com). Pale blue page, white cards, deep navy text, brand blue
   actions, Newsreader for titles (a key word in italic brand blue), Nunito for everything else. */
:root {
  color-scheme: light;
  /* surfaces and ink */
  --bg: #f5f9ff;
  --surface: #ffffff;
  --field: #f6f9fe;
  --wash: #f0f5fc;          /* hover and quiet fills; ink-2 text is not used on it */
  --accent-soft: #d7e4f6;
  --ink: #0f2740;           /* 14.4:1 on --bg */
  --ink-2: #56728f;         /* 5.0:1 on white, 4.7:1 on --bg: the lightest colour used for text */
  --ink-3: #9aaec4;         /* strokes and decoration only, never text */
  --line: #d3dce7;
  --line-2: #e6ecf3;
  --ring: rgba(21, 53, 92, 0.12);
  --brand: #1c66c1;         /* 5.6:1 on white */
  --brand-hover: #1858a8;
  --brand-ink: #17539c;     /* brand text on soft fills (4.5:1+ on --accent-soft) */
  --brand-light: #498ef0;
  --focus: 0 0 0 4px rgba(28, 102, 193, 0.18);
  --shadow: 0 1px 2px rgba(15, 39, 64, 0.04), 0 24px 48px -32px rgba(15, 39, 64, 0.25);
  --shadow-pop: 0 2px 6px rgba(15, 39, 64, 0.06), 0 24px 56px -20px rgba(15, 39, 64, 0.32);
  /* status (text colours clear 4.5:1 on their soft fills) */
  --good-ink: #0b6b55; --good-soft: #e2f4ee;
  --warn-ink: #7a4e00; --warn-soft: #fff4dc;
  --bad: #c8333a; --bad-ink: #a32a2a; --bad-soft: #fdecec;

  /* Chart colours, checked with the dataviz validator (scratchpad restyle/palette-report.txt) on white and on --bg.
     Sentiment: the three hues (negative red, mixed amber, positive teal) pass every check all-pairs (CVD ΔE 9.2,
     normal 23.0). Positive is teal, not blue, so it never reads as the brand-blue chrome around it. Neutral and unclear
     are deliberately gray (the "no signal" role): with them the set still separates all-pairs (CVD 9.2, normal 17.4);
     the validator's hue checks flag the grays by design. Marks under 3:1 always carry direct labels and a table twin.
     Categorical: five hues that pass all-pairs (CVD 9.1, normal 17.1), so any subset a filter leaves stays apart; the
     "Other" gray separates from all five (normal 17.1). Ordinal: one brand-blue ramp, monotone, light end 2.3:1. */
  --neg: #d03b3b; --mix: #e0a028; --neu: #98a2b0; --pos: #11896f; --unc: #d3dae3;
  --c1: #1c66c1; --c2: #d0508a; --c3: #e0a028; --c4: #1ba3c6; --c5: #a0642a; --c-other: #c3c9d2;
  --o1: #7aa9ea; --o2: #2a78d6; --o3: #104281; --m-unknown: #d3dae3;
  /* platform keys (small swatches beside a label) */
  --p-reddit: #e0582b; --p-x: #0f2740; --p-tiktok: #1ba3c6; --p-instagram: #d0508a; --p-threads: #56728f; --p-linkedin: #1c66c1; --p-youtube: #c4302b; --p-amazon: #e8a33d; --p-facebook: #7b5cd6;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --top: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern';
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
h1 em, h2 em, .k-word { font-style: italic; color: var(--brand); font-weight: 400; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { max-width: 1200px; margin: 0 auto; padding: 40px 32px 112px; overflow-wrap: anywhere; min-width: 0; }
.page.narrow { max-width: 820px; }

/* the section eyebrow: "— WHY YAPSCAPE" */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; flex: none; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: var(--top); padding: 0 32px;
  background: rgba(245, 249, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ring);
}
.wordmark { display: inline-flex; align-items: center; flex: none; }
.wordmark img { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--accent-soft); }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.userbox .email { margin-right: 4px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  border: 0; background: #fdfeff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring);
  font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn:hover { color: var(--ink); background: var(--wash); box-shadow: inset 0 0 0 1px rgba(21, 53, 92, 0.22); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: rgba(28, 102, 193, 0.9) 0 12px 26px -12px, inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn.primary:hover { background: var(--brand-hover); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--wash); color: var(--ink); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.small.primary { box-shadow: rgba(28, 102, 193, 0.8) 0 8px 18px -10px, inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--ring); }
.btn.primary:disabled { box-shadow: none; }
.btn.danger { color: var(--bad-ink); }
.btn.danger:hover { background: var(--bad-soft); color: var(--bad-ink); }
.btn.danger-fill, .btn.danger-fill:hover { background: var(--bad); color: #fff; box-shadow: rgba(200, 51, 58, 0.8) 0 10px 22px -12px; }
.btn.danger-fill:hover { background: #b02a31; }
.linklike { border: 0; background: none; padding: 0; color: var(--brand); cursor: pointer; text-align: left; font: inherit; font-weight: 600; }
.linklike:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.linklike.small { font-size: 13px; }
.linklike:disabled { color: var(--ink-2); cursor: default; text-decoration: none; font-weight: 400; }
.back { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--brand); }

label.field, .field { display: grid; align-content: start; gap: 7px; font-weight: 700; font-size: 14px; }
.field .label { font-weight: 700; font-size: 14px; }
.hint { font-weight: 400; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
input[type='text'], input[type='search'], input[type='email'], input[type='password'], input[type='date'], input[type='number'], select, textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); color: var(--ink);
  font-weight: 500; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
select { padding-right: 36px; appearance: none; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356728f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
::placeholder { color: #7a90a8; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #bccadb; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--focus); }
input[type='checkbox'] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.question-input { font: 400 22px/1.35 var(--serif); letter-spacing: -0.005em; min-height: 92px; padding: 14px 16px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; cursor: pointer; }

.chips-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); align-items: center; transition: border-color 0.15s, box-shadow 0.15s; }
.chips-input:focus-within { border-color: var(--brand); background: #fff; box-shadow: var(--focus); }
.chips-input input, .chips-input input:focus { border: 0; height: 32px; flex: 1; min-width: 160px; padding: 0 8px; box-shadow: none; background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip button { border: 0; background: transparent; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: var(--brand-ink); line-height: 1; font-size: 15px; }
.chip button:hover { background: rgba(28, 102, 193, 0.14); }
.chip.suggest { background: #fff; border: 1px dashed #9fb3ca; padding: 0 12px; cursor: pointer; color: var(--ink); font-weight: 600; }
.chip.suggest:hover { border-style: solid; border-color: var(--brand); color: var(--brand-ink); background: #f7faff; }

.seg { width: fit-content; max-width: 100%; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--ring); }
.seg button { border: 0; background: transparent; padding: 7px 15px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--ink); background: var(--wash); }
.seg button[aria-pressed='true'] { background: var(--ink); color: #fff; }

.error-box { padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-soft); color: var(--bad-ink); font-size: 14px; }
.warn-box { padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn-ink); font-size: 14px; }
.demo-banner { padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 3px 0 0 var(--brand-light), inset 0 0 0 1px var(--ring); color: var(--ink); font-size: 14px; margin-bottom: 24px; }

.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #edf2f8; font-size: 12px; font-weight: 600; color: #3e5873; line-height: 1.6; }
.tag.neg { background: var(--bad-soft); color: var(--bad-ink); }
.tag.pos { background: var(--good-soft); color: var(--good-ink); }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #edf2f8; color: #3e5873; white-space: nowrap; }
.badge.ready { background: var(--good-soft); color: var(--good-ink); }
.badge.ready::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #12a37a; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.done::before { background: #12a37a; }
.status.partial::before { background: #e0a028; }
.status.failed::before { background: var(--bad); }
.status.running::before { background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.pdot { display: inline-flex; align-items: center; gap: 6px; }
.pdot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--ink-3)); flex: none; }

/* a white card: the one container style */
.panel, .card, details.section, .feedback, .live-progress, .step, .run-list, .launchbar, .target-card {
  background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.panel { padding: 24px 26px; min-width: 0; }
.panel > h2 { font-size: 22px; margin-bottom: 4px; }
.sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
section.panel, details.panel { margin-bottom: 20px; }
.panel > h2 + .scope { margin-top: 12px; }

/* page heads */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head > div { display: grid; gap: 10px; }
.page-head h1, .new-head h1 { font-size: clamp(34px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.page-head p.muted, .new-head p.muted { font-size: 16px; max-width: 62ch; }

/* ---------- sign in ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 48px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #e3edfb 0%, rgba(227, 237, 251, 0) 70%), var(--bg); }
.signin-card { width: 100%; max-width: 440px; display: grid; gap: 28px; padding: 36px 36px 32px; background: var(--surface); border: 1px solid var(--ring); border-radius: 22px; box-shadow: var(--shadow-pop); }
.signin-card .wordmark img { height: 32px; }
.signin-card h1 { font-size: 30px; line-height: 1.18; letter-spacing: -0.015em; }
.signin-card form, .signin-card .signin-body { display: grid; gap: 18px; }
.signin-card h2 { font: 800 15px/1.3 var(--sans); letter-spacing: 0; }
.signin-card .btn.primary { width: 100%; height: 46px; }
.signin-foot { font-size: 14px; color: var(--ink-2); text-align: center; }
.signin-foot a { font-weight: 700; }

/* ---------- home ---------- */
.run-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.run-row a { display: grid; grid-template-columns: 1fr auto; gap: 6px 28px; padding: 20px 22px; border-radius: var(--r-md); text-decoration: none; color: inherit; transition: background 0.15s; }
.run-row { position: relative; }
.run-row + .run-row::before { content: ''; position: absolute; top: -1.5px; left: 22px; right: 22px; height: 1px; background: var(--line-2); }
.run-row a:hover { background: #f7faff; }
.run-row a:hover .run-q { color: var(--brand); }
.run-q { font: 500 22px/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink); transition: color 0.15s; }
.run-headline { color: var(--ink-2); grid-column: 1; max-width: 78ch; }
.run-meta { grid-column: 1; font-size: 13px; color: var(--ink-2); display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.run-side { grid-column: 2; grid-row: 1 / span 4; align-self: center; display: grid; gap: 4px; justify-items: end; }
.run-sent { grid-column: 1; display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 4px; }
.mini-sent { display: inline-flex; gap: 10px; align-items: center; }
.mini-bar { display: inline-flex; gap: 2px; width: 104px; height: 8px; border-radius: 999px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; }
.empty { padding: 40px; display: grid; gap: 18px; max-width: 680px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.empty h2 { font-size: 30px; line-height: 1.15; }
.how { margin: 0; padding: 24px; list-style: none; display: grid; gap: 18px; counter-reset: how; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.how li { display: grid; grid-template-columns: 34px minmax(0, 1fr); color: var(--ink-2); counter-increment: how; }
.how li::before { content: '0' counter(how); font: 800 12px/1.9 var(--sans); letter-spacing: 0.1em; color: var(--brand); }
.how b { display: block; color: var(--ink); }
.skeleton-list { display: grid; gap: 12px; }
.skeleton-list i { display: block; height: 96px; border-radius: var(--r-lg); background: linear-gradient(90deg, #eaf0f8, #f6f9fd, #eaf0f8); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- new research ---------- */
.new-head { display: grid; gap: 12px; margin-bottom: 32px; }
.step { padding: 28px 30px 30px; margin-bottom: 20px; }
.step-body { display: grid; gap: 22px; min-width: 0; }
.step-head { display: grid; gap: 10px; }
.step-head h2 { font-size: 27px; }
.step-head .eyebrow::before { display: none; }
.step-n { padding-right: 10px; margin-right: 0; border-right: 1px solid var(--accent-soft); letter-spacing: 0.08em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.target-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.target-card { box-shadow: none; background: #fbfdff; border-color: var(--line-2); border-radius: var(--r-md); padding: 20px; margin: 0; display: grid; gap: 18px; min-width: 0; align-content: start; }
.target-pair .target-card { margin: 0; }
.target-card legend { float: left; width: 100%; padding: 0; margin: 0 0 -2px; font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.target-card legend + * { clear: both; }
.langs { border: 0; padding: 0; margin: 0; min-width: 0; }
.langs legend { padding: 0; margin-bottom: 7px; }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 4px 0; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.platform-opt { position: relative; display: grid; gap: 4px; padding: 15px 16px 15px 46px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.platform-opt:hover { border-color: #a9bcd2; }
.platform-opt input { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; }
.platform-opt[data-checked='true'] { border-color: var(--brand); background: #f6f9ff; box-shadow: inset 0 0 0 1px var(--brand); }
.platform-opt .name { font-weight: 800; }
.platform-opt .note { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.platform-opt .desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.platform-opt:focus-within { box-shadow: inset 0 0 0 1px var(--brand), var(--focus); }
/* disclosure summaries: one chevron instead of the browser's triangle */
details.more > summary, details.action > summary, .sg-topics > summary, .vctx > summary, .bubble details > summary { list-style: none; display: flex; align-items: center; gap: 10px; }
details.more > summary::-webkit-details-marker, details.action > summary::-webkit-details-marker, .sg-topics > summary::-webkit-details-marker, .vctx > summary::-webkit-details-marker, .bubble details > summary::-webkit-details-marker { display: none; }
details.more > summary::before, details.action > summary::before, .sg-topics > summary::before, .vctx > summary::before, .bubble details > summary::before {
  content: ''; flex: none; width: 6px; height: 6px; margin: 0 2px; border-right: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand); transform: rotate(-45deg); transition: transform 0.15s; }
details[open] > summary::before { transform: rotate(45deg) translate(-2px, -1px); }
details.more summary { cursor: pointer; color: var(--ink); font-weight: 700; font-size: 14px; width: fit-content; }
details.more summary:hover { color: var(--brand); }
details.more[open] summary { margin-bottom: 16px; }
details.more > .field + .field { margin-top: 16px; }
.launchbar {
  position: sticky; bottom: 16px; z-index: 10; margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 14px 14px 24px; box-shadow: var(--shadow-pop);
}
.launchbar .est { display: grid; gap: 2px; min-width: 0; }
.launchbar .est strong { font: 600 18px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.launchbar .btn.primary { height: 46px; padding: 0 26px; }
.scope { display: grid; gap: 14px; margin-top: 10px; }
.scope-copy { font-weight: 700; }
.search-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.scope-platform { background: #f7faff; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 8px; }
.scope-platform h3 { font-size: 17px; }
.scope-platform li { margin-bottom: 4px; }
.plain-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; max-width: 72ch; }

/* ---------- run page ---------- */
.run-head { display: grid; gap: 12px; margin-bottom: 28px; }
.run-head h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; max-width: 26ch; }
.run-question { color: var(--ink-2); font-size: 17px; max-width: 70ch; }
.run-head .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.run-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.cap-first { text-transform: capitalize; }
.version-pick { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-weight: 700; }
.version-pick select { width: auto; height: 34px; font-size: 13px; max-width: 320px; border-radius: 999px; padding-left: 14px; }

/* export menu */
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.menu-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 290px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; display: grid; }
.menu-list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.menu-list a span { font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.menu-list a:hover { background: var(--wash); }

/* running state */
.live-progress { padding: 28px 30px; display: grid; gap: 22px; margin-bottom: 24px; }
.lp-head { display: flex; gap: 16px; align-items: flex-start; }
.lp-head h2 { font-size: 26px; margin-bottom: 4px; }
.lp-counts { display: flex; gap: 12px 40px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.lp-counts b { display: block; font: 500 34px/1.1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.credits { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--ring); border-radius: var(--r-md); background: var(--wash); }
.credits p { margin: 0; }
.credits .btn { margin-left: 6px; vertical-align: middle; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--brand); animation: spin 0.8s linear infinite; flex: none; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: stage; }
.stages li { padding-top: 12px; border-top: 3px solid var(--line-2); font-weight: 700; font-size: 13.5px; color: var(--ink-2); counter-increment: stage; }
.stages li::before { content: '0' counter(stage); display: block; font: 800 11px/1.4 var(--sans); letter-spacing: 0.12em; color: var(--ink-2); margin-bottom: 2px; }
.stages li[data-state='done'] { border-color: var(--ink); color: var(--ink); }
.stages li[data-state='active'] { border-color: var(--brand); color: var(--brand); }
.stages li[data-state='active']::before, .stages li[data-state='done']::before { color: inherit; }
.live-progress .stages { margin: 0; }
.log { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); max-height: 240px; overflow: auto; margin: 8px 0 0; padding: 14px; background: #f7faff; border: 1px solid var(--line-2); border-radius: var(--r-md); white-space: pre-wrap; }

/* "Behind this report": collapsible cards */
h2.behind { margin: 56px 0 14px; }
details.section { margin-bottom: 12px; scroll-margin-top: 140px; }
details.section > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 20px 24px; flex-wrap: wrap; border-radius: var(--r-lg); }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary:hover .sec-title { color: var(--brand); }
.sec-title { font: 500 21px/1.3 var(--serif); letter-spacing: -0.01em; transition: color 0.15s; }
.sec-hint { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.chev { width: 9px; height: 9px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: rotate(45deg); margin-left: auto; transition: transform 0.15s; align-self: center; }
details.section[open] > summary .chev { transform: rotate(-135deg); }
.sec-body { padding: 0 24px 24px; display: grid; gap: 14px; min-width: 0; }
.sec-body > section > .sub { margin-bottom: 12px; }

/* posts and comments (evidence lists, the drawer) */
.qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; color: var(--ink-2); font-size: 13px; }
.filters { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input[type='text'], .filters input[type='number'] { width: auto; height: 38px; font-size: 14px; }
.filters input[type='text'] { min-width: 200px; flex: 1 1 200px; }
.filters label.check { color: var(--ink); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.post-card { border-top: 1px solid var(--line-2); padding: 18px 0; display: grid; gap: 14px; }
.post-head { display: grid; grid-template-columns: 72px 1fr; gap: 16px; }
.post-main { display: grid; gap: 7px; min-width: 0; align-content: start; }
.thumb { width: 72px; height: 96px; object-fit: cover; border-radius: var(--r-md); background: #edf2f8; }
.thumb.fallback { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-2); text-align: center; }
.caption { overflow-wrap: anywhere; }
.bubbles { list-style: none; margin: 0; padding: 0 0 0 88px; display: grid; gap: 8px; }
.bubble { background: #f3f7fd; border-radius: 4px 14px 14px 14px; padding: 10px 14px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.bubble .bubbles { padding-left: 14px; margin-top: 6px; }
.bubble.reply { background: #fff; border: 1px solid var(--line-2); }
.bubble.context { opacity: 0.62; }
.bubble details summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.labels { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.flag-form { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.flag-form select, .flag-form input { height: 30px; font-size: 12.5px; width: auto; padding: 0 10px; border-radius: 999px; }
.flag-form select { padding-right: 30px; background-position: right 10px center; }

/* ---------- report ---------- */
.report { display: grid; gap: 0; }

/* at a glance: a light summary card with the sentiment bar and its legend */
.glance { display: grid; gap: 22px; padding: 26px 30px 22px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.g-target { display: grid; gap: 12px; }
.g-name { font: 500 21px/1.2 var(--serif); }
.g-bar { display: flex; gap: 2px; height: 18px; border-radius: 0 9px 9px 0; overflow: hidden; }
.g-bar span { flex-basis: 0; min-width: 3px; cursor: pointer; transition: filter 0.12s; }
.g-bar span:hover { filter: brightness(1.08) saturate(1.1); }
.g-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.g-legend button { display: inline-flex; align-items: center; gap: 8px; padding: 3px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.g-legend button b { font-weight: 800; font-variant-numeric: tabular-nums; }
.g-legend button span { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.g-legend button:hover, .g-legend button:hover b { color: var(--brand); }
.g-legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.g-sub { color: var(--ink-2); font-size: 14px; }
.g-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(28, 102, 193, 0.35); text-underline-offset: 3px; }
.g-link:hover { color: var(--brand-hover); text-decoration-color: currentColor; }
.g-foot { color: var(--ink-2); font-size: 12.5px; border-top: 1px solid var(--line-2); padding-top: 14px; }

/* filter row: sticky under the top bar, scopes every tab below */
.filterbar { position: sticky; top: var(--top); z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 0; margin-top: 8px; background: rgba(245, 249, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ring); }
.fb-group { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.fb-label { font: 800 11px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.filterbar .seg button { padding: 5px 13px; font-size: 13.5px; }
.fb-active { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.fb-active .chip { height: 28px; font-size: 13px; color: var(--brand-ink); }
.fb-note { font-size: 12.5px; color: var(--ink-2); }

/* section tabs: an underlined tab bar */
.dash-tabs { display: flex; gap: 6px; margin: 18px 0 22px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs button { flex: none; position: relative; border: 0; background: transparent; padding: 10px 4px 12px; margin: 0 10px 0 0; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.dash-tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px 2px 0 0; background: transparent; transition: background 0.15s; }
.dash-tabs button:hover { color: var(--ink); }
.dash-tabs button:hover::after { background: var(--line); }
.dash-tabs button[aria-selected='true'] { color: var(--ink); }
.dash-tabs button[aria-selected='true']::after { background: var(--brand); }
.dash-tabs button:focus-visible { outline-offset: -2px; }
.tabpanel { transition: opacity 0.15s; }
.tabpanel:focus { outline: none; }
.tabpanel:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: var(--r-lg); }
.tabpanel.stale { opacity: 0.5; }

/* 12-column card grid */
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.ov-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-h h3 { font-size: 21px; line-height: 1.25; }
.card-h .btn { flex: none; margin: -4px -10px 0 0; }
.card-d { font-size: 13.5px; color: var(--ink-2); margin-top: -6px; max-width: 80ch; line-height: 1.5; }
.card-note { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); padding: 14px 16px; background: #f7faff; border: 1px dashed #c5d3e3; border-radius: var(--r-md); }
.card-note::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #a9bcd2; background: radial-gradient(circle, #a9bcd2 0 1.5px, transparent 2px) center 5px / 100% 100% no-repeat, linear-gradient(#a9bcd2, #a9bcd2) center 8px / 1.5px 5px no-repeat; }
.card-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 8px; }
.card h4 { margin: 0; }
.card .table-wrap { margin: 0 -4px; }

/* KPI tiles: one card, hairline dividers drawn by 1px gaps at any column count */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line-2); border: 1px solid var(--ring); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.kpi-tile { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 18px 20px 20px; border: 0; background: var(--surface); text-align: left; font: inherit; color: inherit; transition: background 0.15s; }
button.kpi-tile { cursor: pointer; }
button.kpi-tile:hover { background: #f7faff; }
button.kpi-tile:hover .k-v { color: var(--brand); }
button.kpi-tile:focus-visible { outline-offset: -3px; }
.k-l { font: 700 13px/1.3 var(--sans); color: var(--ink-2); }
.k-v { font: 500 36px/1.05 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); transition: color 0.15s; }
.k-v.text { font-size: 20px; line-height: 1.25; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

/* legends */
ul.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
ul.legend li { display: inline-flex; align-items: center; gap: 6px; }
ul.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.inline-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.inline-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.inline-legend button:hover b { color: var(--brand); }
.inline-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* tooltip */
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 140px;
  background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.5; padding: 9px 12px; border-radius: 10px;
  box-shadow: 0 10px 24px -8px rgba(15, 39, 64, 0.45); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
}
.tip b { font-weight: 800; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip i.key { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* donut */
.donut { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.donut svg { width: 168px; height: 168px; flex: none; overflow: visible; }
.donut path, .donut circle { fill: none; stroke-width: 18; cursor: pointer; transition: opacity 0.12s; }
.donut .dim { opacity: 0.28; }
.d-val { font: 500 30px var(--serif); fill: var(--ink); text-anchor: middle; font-variant-numeric: lining-nums; }
.d-cap { font: 600 11.5px var(--sans); fill: var(--ink-2); text-anchor: middle; }
.d-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; flex: 1 1 170px; min-width: 0; }
.d-legend button { display: flex; align-items: baseline; gap: 7px; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer; }
.d-legend button:hover, .d-legend button.on { background: var(--wash); }
.d-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; align-self: flex-start; margin-top: 0.42em; }
.d-legend b { flex: none; min-width: 36px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-legend .n { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-legend .l { overflow-wrap: anywhere; font-weight: 600; }

/* stacked bar: square at the baseline, round data end, 2px surface gaps */
.sbar { position: relative; height: 14px; }
.sbar-fill { display: flex; gap: 2px; height: 100%; }
.sbar button { flex-basis: 0; min-width: 3px; height: 100%; padding: 0; border: 0; cursor: pointer; }
.sbar button:last-child { border-radius: 0 5px 5px 0; }
.sbar button:hover, .sbar button:focus-visible { filter: brightness(1.08) saturate(1.1); }

/* ranked bars */
.rbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.rbar { display: grid; grid-template-columns: minmax(72px, 30%) minmax(0, 1fr) 44px; align-items: center; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.rbars.ranked .rbar { grid-template-columns: 20px minmax(72px, 30%) minmax(0, 1fr) 44px; }
.rbar:hover:not(:disabled) { background: var(--wash); }
.rbar:hover:not(:disabled) .rl { color: var(--brand); }
.rbar:disabled { cursor: default; }
.rk { text-align: right; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rl { overflow-wrap: anywhere; }
.rt { display: block; height: 12px; background: #f1f5fa; border-radius: 0 6px 6px 0; }
.rt span { display: block; height: 100%; min-width: 2px; border-radius: 0 6px 6px 0; }
.rv { text-align: right; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 641px) {
  .dgrid > .span-12 .rbars { max-width: 920px; }
  .dgrid > .span-12 .rbars.ranked .rbar { grid-template-columns: 24px 220px minmax(0, 1fr) 48px; }
}

/* themes: ranked rows with a sentiment mix */
.mixbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.mb-name { font-weight: 700; color: var(--ink); }
.mb-name:hover { color: var(--brand); }
.mb-val { flex: none; font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-sub { font-size: 12.5px; color: var(--ink-2); margin: -2px 0 7px; max-width: 80ch; }

/* Amazon review stars in a comment's meta line */
.qmeta .stars { font-weight: 700; white-space: nowrap; }

/* platform rows */
.prows { display: grid; gap: 16px; }
.prow { display: grid; gap: 7px; }
.prow-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }

/* time columns and theme map: drawn at the container's width, so text stays at its real size */
.tcols, .quad { position: relative; }
.tcols svg, .quad svg { display: block; width: 100%; height: auto; overflow: visible; }
.tcols line, .quad line { vector-effect: non-scaling-stroke; }
.tcols .grid, .quad .grid { stroke: var(--line-2); }
.tcols .base, .quad .base { stroke: var(--line); }
.tcols .cross { stroke: var(--ink-3); }
.ytick { font: 600 11px var(--sans); fill: var(--ink-2); text-anchor: end; font-variant-numeric: tabular-nums; }
.xtick { font: 600 11px var(--sans); fill: var(--ink-2); text-anchor: middle; }
.tcol.go { cursor: pointer; }
.tcol:focus, .bub:focus { outline: none; }
.tcol:focus-visible rect, .tcol:focus-visible path { stroke: var(--ink); stroke-width: 1.5; }
.tl-pair { display: grid; gap: 4px; }
.tl-pair h4 { font: 800 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 0; }
.quad .mid { stroke: var(--ink-3); stroke-dasharray: 3 4; }
.q-corner { font: 600 11.5px var(--sans); fill: var(--ink-2); }
.bub { fill: var(--c1); fill-opacity: 0.88; stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: opacity 0.12s; }
.bub.dim { opacity: 0.28; }
.bub:focus-visible { stroke: var(--ink); stroke-width: 2.5; }
.b-n { font: 800 11.5px var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; }
.q-key ol { margin: 0; padding-left: 24px; columns: 2 280px; column-gap: 32px; font-size: 13px; color: var(--ink-2); }
.q-key li { break-inside: avoid; }

/* findings */
.findings { list-style: none; padding: 0; margin: -4px 0 0; }
.finding { position: relative; display: grid; gap: 7px; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line-2); }
.finding:first-child { padding-top: 8px; }
.finding:last-child { border-bottom: 0; }
.finding h3 { font-size: 19px; line-height: 1.3; }
.finding p { max-width: 70ch; line-height: 1.6; }
.f-num { position: absolute; left: 0; top: 18px; font: 800 12px/1.9 var(--sans); letter-spacing: 0.1em; color: var(--brand); }
.finding:first-child .f-num { top: 8px; }
.measures { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.measures li { display: flex; gap: 8px; align-items: baseline; }
.measures li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-light); transform: translateY(-2px); }
.measures .linklike { overflow-wrap: anywhere; font-weight: 600; }
.ev-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.compare-note { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); max-width: 70ch; }
.compare-note h3 { font-size: 17px; }
.disagree { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.disagree h3 { font-size: 17px; }
details.action { border-top: 1px solid var(--line-2); padding: 14px 0; }
details.action:first-child { border-top: 0; padding-top: 2px; }
details.action summary { cursor: pointer; font: 500 18px/1.35 var(--serif); }
details.action summary strong { font-weight: 500; }
details.action summary:hover { color: var(--brand); }
.contract { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 14px 0 0; }
.contract dt { font: 800 11px/1.9 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.contract dd { margin: 0; max-width: 70ch; }
.cov { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.cov dt { font-weight: 700; color: var(--ink-2); }
.cov dd { margin: 0; }
.cov .tag { margin: 0 4px 4px 0; }
.limits-h { font: 500 18px/1.3 var(--serif); margin-top: 8px; }
.ctx-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.ctx-wide .donut { flex: 0 1 auto; justify-content: flex-start; }
.ctx-def { flex: 1 1 280px; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.ctx-def dt { font-weight: 700; }
.ctx-def dd { margin: -6px 0 0; color: var(--ink-2); }
.conc { display: grid; gap: 12px; }

/* posts and creators */
.tposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tpost { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fbfdff; }
.tp-main { display: grid; gap: 7px; align-content: start; min-width: 0; }
.tp-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-tags:empty { display: none; }
.tp-n { justify-self: start; }
.tp-n b { font-variant-numeric: tabular-nums; }
.creators .mixcol { width: 26%; min-width: 120px; }
.creators .sbar { height: 10px; margin-top: 4px; }
.creators .tag { margin-left: 6px; }
.mbadge { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.mbadge.other_market { background: #fbe9f1; color: #8a2453; }
.post-main .mbadge { justify-self: start; }

/* coverage */
.fbar { display: inline-block; width: 64px; height: 8px; margin-right: 8px; vertical-align: middle; background: #edf2f8; border-radius: 0 4px 4px 0; overflow: hidden; }
.fbar span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.fbar.wide { display: block; width: auto; height: 10px; margin: 6px 0 0; }
.cfunnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 10px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.cf-row:hover:not(:disabled) { background: var(--wash); }
.cf-row .fbar { grid-column: 1 / -1; }
.cf-l { font-size: 13.5px; }
.cf-v { font: 500 22px/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font: 800 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #fafcff; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
table.data .linklike { font-variant-numeric: tabular-nums; }
table.data .tag + .tag, table.data td > .tag { margin-left: 4px; }
/* Every post behind the comments: the post keeps a readable width and the table scrolls inside its card on phones. */
table.data.posts-table td:first-child { min-width: 220px; }
.table-wrap { overflow-x: auto; }

/* evidence drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 39, 64, 0.28); backdrop-filter: blur(2px); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(740px, 100vw);
  background: var(--surface); box-shadow: -24px 0 60px -20px rgba(15, 39, 64, 0.35);
  display: flex; flex-direction: column; border-radius: 22px 0 0 22px;
  animation: slidein 0.2s ease-out;
}
.drawer:focus { outline: none; }
@keyframes slidein { from { transform: translateX(28px); opacity: 0; } }
.drawer header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 18px; border-bottom: 1px solid var(--line-2); }
.drawer header h2 { font-size: 23px; line-height: 1.25; }
.drawer .body { overflow: auto; padding: 6px 24px 28px; }
.drawer-sum { font-size: 14px; margin: 12px 0 4px; }
.vctx { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #f7faff; }
.vctx summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.vctx[open] summary { margin-bottom: 4px; }
.vc-block { display: grid; gap: 4px; margin-top: 8px; }
.vc-block h4 { margin: 0; font: 800 11px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.vc-text { max-height: 9.5em; overflow: auto; white-space: pre-line; overflow-wrap: anywhere; }
.vc-frames { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vc-frames li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.vc-t { min-width: 34px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vc-model { padding-left: 10px; border-left: 3px solid var(--brand-light); }

/* feedback */
.feedback { margin-top: 40px; padding: 26px 28px; display: grid; gap: 14px; }
.feedback h2 { font-size: 22px; }
.feedback textarea { min-height: 60px; }

/* modal */
dialog.modal { border: 0; border-radius: 20px; padding: 0; width: min(500px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); color: var(--ink); background: var(--surface); }
dialog.modal::backdrop { background: rgba(15, 39, 64, 0.36); backdrop-filter: blur(2px); }
dialog.modal form { padding: 28px; display: grid; gap: 16px; }
dialog.modal h2 { font-size: 25px; }
.modal-body { display: grid; gap: 12px; color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* admin */
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.client-form { display: grid; gap: 22px; }
.client-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.client-form legend { padding: 0; margin-bottom: 4px; font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.client-form .panel > h2, .client-form h2 { font-size: 22px; margin-bottom: 4px; }
label.check { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; font-weight: 700; }
.client-link { font-weight: 700; color: var(--ink); text-decoration: none; margin-right: 8px; }
.client-link:hover { color: var(--brand); }
.data.clients .meter { height: 6px; margin: 6px 0 0; max-width: 160px; }
.kv { display: grid; gap: 10px; margin: 0 0 18px; }
.kv > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.kv dt { color: var(--ink-2); font-weight: 600; }
.kv dd { margin: 0; }
.ready-panel { display: grid; gap: 16px; padding: 36px; }
.ready-panel h1 { font-size: clamp(32px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
.show-sm { display: none !important; }
.credit-fields { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.credit-fields .field { font-size: 13px; width: 120px; }
.credit-fields .field.grow { flex: 1 1 180px; }
.credits-pill { font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.linklike.email { color: var(--ink-2); font-size: 13.5px; }
.meter { height: 12px; border-radius: 999px; background: #edf2f8; overflow: hidden; display: flex; gap: 2px; margin: 4px 0 10px; }
.meter i { display: block; height: 100%; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 60; box-shadow: var(--shadow-pop); }

/* ---------- research form suggestions ---------- */
/* name autocomplete: floats over the form, under the sticky top bar (z 20), over the launch bar (z 10) */
.combo { position: relative; }
.combo-pop { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.combo-pop[hidden] { display: none; }
.combo-pop ul { list-style: none; margin: 0; padding: 0; max-height: min(340px, 50vh); overflow-y: auto; }
.combo-pop li { display: grid; gap: 1px; padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; }
.combo-pop li[aria-selected='true'] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--brand); }
.combo-label { font-weight: 700; font-size: 14.5px; }
.combo-detail { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); font-weight: 500; }
.combo-pop li[aria-selected='true'] .combo-detail { color: #3e5873; }
.combo-note { margin: 4px 0 0; padding: 8px 12px 4px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); font-weight: 500; }

/* suggestion boxes under the chip fields */
.name-check { display: grid; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn-ink); font-size: 14px; }
.name-check.done { background: var(--wash); color: var(--ink-2); }
.name-check-head { margin: 0; font-weight: 600; }
.name-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.name-option { display: grid; gap: 2px; max-width: 100%; padding: 7px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.name-option:hover { border-color: var(--brand); }
.name-option:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.name-option span { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.name-ok { margin-top: 6px; color: var(--good-ink); }
.sg { display: grid; gap: 14px; padding: 14px 16px; background: #f4f8fe; border: 1px solid #e1e9f4; border-radius: var(--r-md); font-weight: 400; }
.sg-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.sg-for { font: 800 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); }
.sg-status { font-size: 12.5px; color: var(--ink-2); }
.sg-status:not(:empty)::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--brand); vertical-align: 1px; animation: pulse 1.2s ease-in-out infinite; }
.sg-group { display: grid; gap: 7px; }
.sg-title { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 13px; font-weight: 800; }
.sg-hint { font-size: 12.5px; font-weight: 500; color: #4d6884; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sg .chip.suggest, .q-ideas .chip.suggest { height: auto; min-height: 32px; padding: 5px 12px; font-size: 13.5px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.chip.suggest .sg-n { font-size: 12px; font-weight: 600; color: #4d6884; font-variant-numeric: tabular-nums; }
.chip.suggest:disabled { opacity: 0.45; cursor: not-allowed; }
.chip.suggest:disabled:hover { border-style: dashed; border-color: #9fb3ca; color: var(--ink); background: #fff; }
.sg-wait { font-size: 12.5px; color: #4d6884; }
.sg-msg { font-size: 13px; color: var(--warn-ink); }
.sg-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-rows li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.sg-why { font-size: 13px; color: #4d6884; flex: 1 1 200px; }
.sg-topics > summary { cursor: pointer; font-size: 13px; font-weight: 800; width: fit-content; }
.sg-topics[open] > summary { margin-bottom: 8px; }
.sg-warn { margin-bottom: 8px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; }
.sg-check { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding-top: 12px; border-top: 1px solid #dfe7f2; }
.sg-check .sg-hint { flex: 1 1 240px; }
.sg-count { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.q-ideas { margin-top: 4px; }

/* ---------- print page: the same charts, drawn statically; colours must survive "Save as PDF" ---------- */
.print-page { max-width: 860px; }
.print-page, .print-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-head { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.print-page h1 { font-size: 38px; line-height: 1.1; margin: 2px 0 4px; letter-spacing: -0.02em; }
.print-page h2 { font-size: 24px; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.print-page h3 { font-size: 18px; margin: 14px 0 6px; }
.print-page ol, .print-page ul { padding-left: 22px; }
.print-page .p-item { break-inside: avoid; margin-bottom: 12px; }
.print-page .refs { color: var(--ink-2); font-size: 12.5px; }
.print-page .refs-list li { margin-bottom: 6px; font-size: 13px; overflow-wrap: anywhere; }
.print-actions { margin-bottom: 20px; }
.print-page .p-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 16px 0; }
.print-page figure { margin: 0; break-inside: avoid; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.print-page figcaption { margin-bottom: 10px; font: 500 17px/1.3 var(--serif); }
.print-page .donut { justify-content: flex-start; }
.print-page .d-legend button, .print-page .sbar button { cursor: default; }
.print-page .p-mix td { vertical-align: middle; }
.print-page .p-mix .sbar { height: 10px; min-width: 110px; }
.print-page .rbars { max-width: 640px; }
.print-page .contract { grid-template-columns: 140px 1fr; }

/* ---------- motion and narrow screens ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .client-grid { grid-template-columns: 1fr; }
  .span-4, .span-8 { grid-column: span 12; }
  .ov-col { display: contents; }
}
@media (max-width: 720px) {
  .span-6 { grid-column: span 12; }
}
@media (max-width: 640px) {
  :root { --top: 58px; }
  .topbar { padding: 0 16px; gap: 10px; justify-content: space-between; }
  .wordmark img { height: 26px; }
  .nav, .userbox .email, .hide-sm { display: none !important; }
  .show-sm { display: block !important; }
  /* The client list as cards: company and status, then the contact, then credits. Counts and dates are on the client's page. */
  table.data.clients thead { display: none; }
  table.data.clients tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
  table.data.clients tbody tr:last-child { border-bottom: 0; }
  table.data.clients td { display: block; padding: 0; border: 0; overflow-wrap: normal; }
  table.data.clients td:nth-child(2) { justify-self: end; }
  table.data.clients td:nth-child(3) { grid-column: 1 / -1; }
  table.data.clients td:nth-child(n+4) { display: none; }
  table.data.clients .meter { max-width: none; }
  .userbox { gap: 6px; flex-shrink: 0; }
  .page { padding: 28px 16px 104px; }
  .page-head h1, .new-head h1, .run-head h1 { font-size: 32px; }
  .row2, .row3, .target-pair { grid-template-columns: 1fr; }
  .step { padding: 22px 18px 24px; border-radius: 16px; }
  .step-head h2 { font-size: 24px; }
  .target-card { padding: 16px; }
  .launchbar { bottom: 10px; padding: 14px 16px; }
  .launchbar .btn.primary { width: 100%; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .live-progress { padding: 22px 18px; }
  .run-row a { grid-template-columns: 1fr; padding: 18px 16px; }
  .run-side { grid-column: 1; grid-row: auto; justify-items: start; }
  .empty { padding: 26px 20px; }
  .glance { padding: 20px 18px 16px; }
  .g-legend { gap: 2px 18px; }
  .filterbar { position: static; gap: 10px 14px; background: none; backdrop-filter: none; }
  .fb-group { flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-tile { padding: 16px; }
  .k-v { font-size: 30px; }
  .card { padding: 18px 16px 20px; }
  .card-h h3 { font-size: 19px; }
  .rbar, .rbars.ranked .rbar { grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 10px; }
  .rbars.ranked .rbar { grid-template-columns: 18px minmax(0, 1fr) 40px; }
  .rbar .rt { grid-column: 1 / -1; }
  .rbars.ranked .rbar .rt { grid-column: 2 / -1; }
  .rbar .rv { grid-row: 1; grid-column: -2; }
  .tposts { grid-template-columns: minmax(0, 1fr); }
  .tpost { grid-template-columns: 56px minmax(0, 1fr); }
  .finding { padding-left: 0; }
  .f-num { position: static; }
  .contract, .cov, .print-page .contract { grid-template-columns: 1fr; gap: 2px; }
  .contract dd, .cov dd { margin-bottom: 10px; }
  .post-head { grid-template-columns: 56px 1fr; }
  .thumb { width: 56px; height: 76px; }
  .bubbles { padding-left: 0; }
  .sec-hint { flex-basis: 100%; order: 3; }
  details.section > summary { padding: 18px 18px; }
  .sec-body { padding: 0 18px 20px; }
  .drawer { border-radius: 0; }
  .drawer header, .drawer .body { padding-left: 18px; padding-right: 18px; }
  .print-page .p-charts { grid-template-columns: minmax(0, 1fr); }
  .signin-card { padding: 28px 22px 24px; }
}

@media print {
  .no-print, .topbar, .filterbar, .dash-tabs, .sidebar, .mobilebar { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .page { padding: 0; }
  a { color: inherit; }
  .print-page figure { border-color: #e3e8ef; }
  .print-page .p-target { break-before: page; }
  .print-page .p-item, .print-page figure, .print-page tr, .print-page .contract { break-inside: avoid; }
  .print-page h2, .print-page h3 { break-after: avoid; }
  .print-page { -webkit-print-color-adjust: exact; print-color-adjust: exact; overflow-wrap: anywhere; }
}
/* Stop: a square inside a circle, as chat apps show it; resume: a triangle inside one. */
.stop-icon, .play-icon { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 7px; vertical-align: -3px; box-sizing: border-box; }
.stop-icon::after { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 1px; }
.play-icon::after { content: ''; width: 0; height: 0; margin-left: 2px; border-style: solid; border-width: 3.5px 0 3.5px 5.5px; border-color: transparent transparent transparent currentColor; }
.origin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.origin-grid h3 { margin: 0 0 6px; }
/* "Can't tell": texture as well as colour, so it never reads as neutral. */
.hatch { background-image: repeating-linear-gradient(135deg, rgba(40, 52, 70, 0.3) 0 1.5px, transparent 1.5px 5px); }
.admin-supplier { margin: 16px 0; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 10px; }

/* ---------- app shell (client and admin): dark navigation on the left, the page on the right ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; --top: 0px; }
.app-main { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 20px 16px 16px; background: var(--ink); overflow-y: auto; }
.sidebar .wordmark img { filter: brightness(0) invert(1); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px 10px; }
.btn.side-new { width: 100%; box-shadow: none; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: rgba(255, 255, 255, 0.72); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-credits { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.side-credits:hover { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1); }
.side-credits .label, .stat-card .label, .credit-figures .label { font: 800 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.side-credits .big { font: 500 30px/1.1 var(--serif); letter-spacing: -0.02em; }
.side-credits .big small { font: 700 13px var(--sans); letter-spacing: 0; }
.side-credits .label, .side-credits .big small, .side-credits .small { color: rgba(255, 255, 255, 0.66); }
.side-credits .meter { height: 6px; margin: 6px 0 2px; background: rgba(255, 255, 255, 0.12); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 4px 0 6px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: 0.04em; }
.who { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.who b, .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { font-size: 13.5px; color: #fff; }
.who span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.icon-btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--wash); color: var(--ink); }
.sidebar .icon-btn { color: rgba(255, 255, 255, 0.72); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn svg { flex: none; }
.mobilebar, .side-backdrop, .hide-wide { display: none; }
/* The navigation has its own New research button; pages repeat it only when the navigation is folded away. */
.app .page-cta { display: none; }

/* ---------- client home, reports and account ---------- */
.stat-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { display: grid; align-content: start; gap: 8px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.stat-card .value { font: 500 42px/1.05 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card .value small { margin-left: 8px; font: 700 14px var(--sans); color: var(--ink-2); letter-spacing: 0; }
.stat-card .meter { height: 8px; margin: 4px 0 0; }
.stat-card .foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.stat-card .foot a { font-weight: 700; }
.dash-section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: 26px; }
.section-head a { font-weight: 700; text-decoration: none; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.report-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; min-width: 0; }
.report-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.report-card:hover h3 { color: var(--brand); }
.report-card h3 { font-size: 21px; line-height: 1.2; }
.rc-platforms { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.rc-headline { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-sent { display: grid; gap: 4px; }
.dash-note { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 40px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--brand-ink); }
.dash-note p { font-weight: 600; }
.rc-status { justify-self: start; }
.rc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.progress-list { display: grid; gap: 10px; }
.progress-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.progress-card:hover { color: var(--brand); }
.progress-card .spinner { margin-top: 0; }
.pc-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.progress { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: #edf2f8; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width 0.6s ease; }
.get-started { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 36px 40px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.gs-text { display: grid; gap: 16px; }
.get-started h2 { font-size: 32px; line-height: 1.12; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.list-tools input[type='search'] { flex: 1 1 240px; max-width: 420px; height: 42px; border-radius: 999px; padding: 0 18px; }
.empty-note { padding: 28px 4px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-main, .account-side { display: grid; gap: 20px; min-width: 0; }
.credit-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 14px; }
.credit-figures > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-2); }
.credit-figures .value { font: 500 32px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.credit-figures .left { background: var(--accent-soft); border-color: transparent; }
.credit-figures .left .value { color: var(--brand-ink); }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; }
.ledger li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.ledger li:last-child { border-bottom: 0; }
.ledger li > span:first-child { display: grid; }
.ledger .amount { font-weight: 800; color: var(--good-ink); font-variant-numeric: tabular-nums; }
.ledger .amount.neg { color: var(--bad-ink); }

/* ---------- first sign-in welcome ---------- */
.ob { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 76px 24px 72px; overflow-x: hidden;
  background: radial-gradient(1100px 620px at 50% -12%, #e3edfb 0%, rgba(227, 237, 251, 0) 70%), radial-gradient(800px 520px at 100% 110%, #e9f0fb 0%, rgba(233, 240, 251, 0) 70%), var(--bg); }
.ob-stage { width: 100%; max-width: 1080px; display: grid; justify-items: center; gap: 18px; text-align: center; outline: none; }
.ob-skip { position: absolute; top: 18px; right: 20px; }
.ob-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.ob-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink-3); opacity: 0.5; transition: width 0.4s, background 0.4s, opacity 0.4s; }
.ob-dots i.on { width: 22px; background: var(--brand); opacity: 1; }
.ob-in { animation: ob-rise 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d, 0s) backwards; }
.ob-pop { display: inline-block; animation: ob-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) backwards; }
.ob-wipe { animation: ob-wipe 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) backwards; }
.ob-leaving .ob-stage { animation: ob-out 0.65s ease-in forwards; }
@keyframes ob-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ob-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes ob-wipe { from { clip-path: inset(0 100% 0 0); } }
@keyframes ob-focus { from { opacity: 0; filter: blur(12px); letter-spacing: 0.05em; } }
@keyframes ob-out { to { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
@keyframes ob-grow { from { transform: scaleX(0); } }
@keyframes ob-travel { from { left: 0; opacity: 0; } 20%, 80% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes ob-travel-down { from { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } to { top: 100%; opacity: 0; } }
.ob-mark { width: 64px; height: 64px; }
.ob-hello { gap: 22px; }
.ob-hello h1 { max-width: 16ch; font-size: clamp(44px, 7.4vw, 84px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.ob-name { display: inline-block; animation: ob-focus 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s backwards; }
.ob-hello p { font-size: 19px; }
.ob-timer { width: 120px; height: 2px; margin-top: 10px; border-radius: 1px; background: var(--accent-soft); overflow: hidden; }
.ob-timer::after { content: ''; display: block; height: 100%; background: var(--brand); transform-origin: left; animation: ob-grow 3.4s linear backwards; }
.ob-what h1, .ob-choose h1 { max-width: 22ch; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.ob-lede { max-width: 620px; font-size: 17px; }
.ob-flow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); margin: 22px 0 10px; text-align: left; }
.ob-card { display: grid; align-content: start; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--ring); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.ob-step { font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.ob-step b { margin-right: 10px; color: var(--brand); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chips .pdot { padding: 5px 11px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; }
.ob-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-comments li { display: grid; justify-items: start; gap: 6px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--field); font-size: 13.5px; }
.ob-tag { padding: 4px 8px; border-radius: 999px; font: 800 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tc); background: var(--tb); }
.ob-headline { font: 500 19px/1.25 var(--serif); }
.ob-sent { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.ob-themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.ob-themes li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 34px; align-items: center; gap: 10px; }
.ob-themes .track { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; }
.ob-themes i { display: block; height: 100%; border-radius: 3px; background: var(--brand-light); }
.ob-link { position: relative; align-self: center; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px); }
.ob-link::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(28, 102, 193, 0.15); animation: ob-travel 1.8s ease-in-out calc(var(--d, 0s) + 0.4s) infinite; }
.ob-cta { height: 50px; padding: 0 26px; font-size: 15.5px; }
.ob-options { width: 100%; max-width: 840px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; text-align: left; }
.ob-option { display: grid; align-content: start; gap: 10px; padding: 28px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring), var(--shadow); cursor: pointer; text-align: left; font: inherit; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
.ob-option:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(21, 53, 92, 0.2), var(--shadow-pop); }
.ob-option.primary { background: linear-gradient(160deg, #2a78d6, var(--brand) 55%, #17539c); color: #fff; box-shadow: rgba(28, 102, 193, 0.9) 0 24px 48px -24px; }
.ob-option.primary:hover { box-shadow: rgba(28, 102, 193, 0.95) 0 30px 56px -20px; }
.ob-icon { width: 46px; height: 46px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--brand); }
.ob-option.primary .ob-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ob-option-title { font: 500 25px/1.2 var(--serif); }
.ob-option-text { font-size: 14.5px; color: var(--ink-2); }
.ob-option.primary .ob-option-text { color: rgba(255, 255, 255, 0.88); }
.ob-option-note { width: fit-content; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 700; }
.ob-option-go { margin-top: 8px; font-weight: 800; font-size: 14.5px; color: var(--brand); }
.ob-option.primary .ob-option-go { color: #fff; }
.ob-option-go::after { content: '→'; display: inline-block; margin-left: 6px; transition: transform 0.2s; }
.ob-option:hover .ob-option-go::after { transform: translateX(4px); }

@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > :first-child { grid-column: 1 / -1; }
  .account-grid, .get-started { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr); --top: 60px; }
  .mobilebar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 12px; background: rgba(245, 249, 255, 0.9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--ring); }
  .mobilebar .wordmark img { height: 26px; }
  .mobilebar .credits-pill { margin-left: auto; text-decoration: none; }
  .sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: auto; box-shadow: var(--shadow-pop);
    transform: translateX(-100%); visibility: hidden; transition: transform 0.25s ease, visibility 0s 0.25s; }
  .sidebar.open { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(15, 39, 64, 0.28); backdrop-filter: blur(2px); }
  .hide-wide { display: grid; }
  .app .page-cta { display: inline-flex; }
}
@media (max-width: 760px) {
  .ob { padding: 64px 16px 60px; }
  .ob-flow { grid-template-columns: minmax(0, 1fr); }
  .ob-link { justify-self: center; width: 2px; height: 30px; margin: 6px 0; background: repeating-linear-gradient(180deg, var(--ink-3) 0 4px, transparent 4px 8px); }
  .ob-link::after { top: 0; left: -3px; animation-name: ob-travel-down; }
  .ob-options { grid-template-columns: minmax(0, 1fr); }
  .ob-option { padding: 22px; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 32px; }
  .stat-card .value { font-size: 36px; }
  .get-started { padding: 26px 20px; gap: 24px; }
  .get-started h2 { font-size: 27px; }
  .credit-figures { grid-template-columns: minmax(0, 1fr); }
  .list-tools input[type='search'] { max-width: none; }
}

/* ---------- admin portal: the Admin tag and counts in the navigation ---------- */
.side-tag { margin: 0 auto 0 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font: 800 10.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.side-nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }
.side-nav .count.alert { background: var(--bad); color: #fff; }

/* overview: four numbers, then what needs attention beside the latest research */
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel .section-head h2 { font-size: 22px; }
.count-pill { padding: 1px 9px; border-radius: 999px; background: var(--bad-soft); color: var(--bad-ink); font-weight: 800; font-size: 12.5px; }
.attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-2); }
.attn-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--accent-soft); }
.attn.warn .attn-dot { background: var(--mix); box-shadow: 0 0 0 4px var(--warn-soft); }
.attn.bad .attn-dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.attn-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.attn-main b { font-size: 14.5px; }
.all-clear { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-md); background: var(--good-soft); color: var(--good-ink); }
.all-clear .muted { color: var(--good-ink); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li + li { border-top: 1px solid var(--line-2); }
.feed a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: var(--ink); text-decoration: none; }
.feed a:hover b { color: var(--brand); }
.feed-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.feed-main b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lists and one client's page */
.panel.flush { padding: 6px 10px; }
.panel.flush .empty-note { padding: 24px 16px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover > td { background: #f7faff; }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tool-select { width: auto; height: 42px; border-radius: 999px; }
.stack { display: grid; gap: 20px; }
.client-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.client-title { display: grid; gap: 10px; min-width: 0; }
.client-title h1 { font-size: clamp(34px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.client-title .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.head-actions details.menu > summary { padding: 0 14px; }
.head-actions details.menu > summary::after { display: none; }
.head-actions details.menu > summary svg { stroke-width: 3.2; }
details.menu.right .menu-list { left: auto; right: 0; }
.menu-list button { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); text-align: left; font-weight: 700; font-size: 14px; cursor: pointer; }
.menu-list button span { font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.menu-list button:hover:not(:disabled) { background: var(--wash); }
.menu-list button:disabled { opacity: 0.5; cursor: not-allowed; }
.menu-list button.danger { color: var(--bad-ink); }
.kv.settings > div { grid-template-columns: 180px minmax(0, 1fr); }
.panel > h2 + .kv { margin-top: 14px; }
.kv .hint { margin-left: 6px; }

@media (max-width: 1100px) {
  .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row.four > :first-child { grid-column: auto; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .stat-row.four { grid-template-columns: minmax(0, 1fr); }
  .attn { flex-wrap: wrap; }
  .kv.settings > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tool-select { flex: 1 1 100%; }
}

/* ---------- signed-out pages: the brand on the left, the form on the right ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.auth-brand { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 40px clamp(28px, 4.5vw, 72px) 40px; overflow: hidden; color: #fff;
  background: radial-gradient(900px 560px at -10% -10%, rgba(73, 142, 240, 0.32), transparent 60%), radial-gradient(760px 560px at 110% 110%, rgba(28, 102, 193, 0.42), transparent 60%), var(--ink); }
.auth-brand .wordmark img { height: 32px; filter: brightness(0) invert(1); }
.auth-pitch { display: grid; gap: 16px; max-width: 560px; }
.auth-pitch .eyebrow { color: #8fb8f5; }
.auth-pitch h1 { color: #fff; font-size: clamp(36px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.auth-pitch h1 em { color: #8fb8f5; }
.auth-lede { max-width: 52ch; font-size: 16.5px; color: rgba(255, 255, 255, 0.74); }
.auth-feed { flex: 1; min-height: 0; max-width: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent); }
/* Two copies of the list scroll up by one copy's height, so the loop has no seam. Each card's margin keeps the copies equal. */
.auth-feed-track { animation: auth-scroll 40s linear infinite; }
@keyframes auth-scroll { to { transform: translateY(-50%); } }
.feed-card { display: grid; gap: 8px; margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.feed-card p { font-size: 15px; line-height: 1.45; color: #fff; }
.fc-tag { padding: 5px 8px; border-radius: 999px; font: 800 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.fc-tag.good { background: rgba(17, 137, 111, 0.25); color: #8ae6cb; }
.fc-tag.bad { background: rgba(208, 59, 59, 0.25); color: #ffb3ae; }
.fc-tag.info { background: rgba(73, 142, 240, 0.25); color: #b4d2ff; }
.auth-summary { display: grid; gap: 10px; max-width: 560px; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.6); }
.as-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.as-head b { font: 500 18px/1.2 var(--serif); color: var(--ink); }
.as-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.as-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.as-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.auth-main { display: grid; place-items: center; align-content: center; gap: 28px; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 22px; }
.auth-form form, .auth-form .signin-body { display: grid; gap: 18px; }
.auth-head { display: grid; gap: 8px; margin-bottom: 6px; }
.auth-head h2 { font: 500 clamp(32px, 3vw, 40px)/1.08 var(--serif); letter-spacing: -0.015em; }
.auth-head p { font-size: 15px; }
.auth-form .btn.primary { width: 100%; height: 48px; font-size: 15px; }
.auth-foot { font-size: 14px; color: var(--ink-2); text-align: center; }
.auth-foot a { font-weight: 700; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { position: static; height: auto; gap: 18px; padding: 26px 20px 30px; border-radius: 0 0 24px 24px; }
  .auth-brand .wordmark img { height: 28px; }
  .auth-feed, .auth-summary, .auth-lede { display: none; }
  .auth-pitch h1 { font-size: 30px; }
  .auth-main { align-content: start; padding: 32px 20px 48px; }
}
