:root {
  --fg: #15212b; --muted: #5d6b76; --bg: #f3f6f5; --panel: #ffffff; --line: #dfe6e4; --grid: #e8eeec;
  --ok: #2f7d4f; --warn: #a86400; --bad: #b3261e; --link: #2a6496;
  --brand: #2f6f9f; --brand2: #3b8a5a; --gold: #f2c14e; --gold-ink: #a77a10;
  --c0: #2f6f9f; --c1: #3b8a5a; --c2: #d4a021; --c3: #2b8a94; --c4: #6b5ca5; --c5: #6b7785;
  --shadow: 0 1px 2px rgba(21, 33, 43, .06), 0 4px 16px rgba(21, 33, 43, .06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --r: 14px; --cap: 12.5px; --body: 14.5px; --head: 16px; --title: 30px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e9eef0; --muted: #9eabb3; --bg: #0f1619; --panel: #172126; --line: #2a373d; --grid: #223036; --ok: #6fcf97; --warn: #f2b45b; --bad: #ff8a80; --link: #8ec5f0;
    --gold-ink: #f2c14e; --c0: #6aa8d8; --c1: #6fbf8a; --c2: #f2c14e; --c3: #5cc2cc; --c4: #a99ae6; --c5: #9aa5b3; --shadow: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: var(--body)/1.45 var(--sans); }
a { color: var(--link); }
.wrap { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; position: relative; }
.hidden { display: none !important; }
.muted, .note { color: var(--muted); font-size: var(--cap); }
.note { margin: 0 0 12px; }
.warn { color: var(--warn); }
h1.title { font: 400 var(--title)/1.15 var(--serif); margin: 0; }
.sub { color: var(--muted); margin: 6px 0 0; max-width: 62rem; }
.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--cap); border-radius: 999px; padding: 0 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: var(--bg); }
.badge i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.role-badge { font-weight: 600; color: var(--fg); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; color: var(--muted); cursor: pointer; font: inherit; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--tabc, currentColor); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card.accent { border-top: 4px solid var(--acc, var(--line)); }
.card h2, .card h3, .h2 { font-size: var(--head); font-weight: 600; margin: 0 0 6px; }
.h2 { margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: #fff; background: var(--acc, var(--fg)); font-size: var(--cap); flex: none; }
.layout { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: start; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.fs { grid-column: 1/-1; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); border-left: 4px solid var(--acc); padding: 8px 0 8px 12px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 7%, transparent), transparent 60%); }
.fs-title { grid-column: 1/-1; font-size: var(--cap); text-transform: uppercase; letter-spacing: .06em; color: var(--acc); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1/-1; }
.field > span { font-size: var(--cap); color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], input[type=url], select, textarea { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font: inherit; min-width: 0; }
textarea { min-height: 6rem; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: var(--cap); cursor: pointer; background: var(--bg); }
.chip:has(input:checked) { border-color: var(--acc, var(--fg)); background: color-mix(in srgb, var(--acc, var(--fg)) 12%, var(--bg)); }
.chip input { margin: 0; }
.btn { font: inherit; font-size: var(--cap); background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--fg); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.projbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.projbar select { flex: 1 1 12rem; width: auto; }
.summary { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 12px; }
.stat b { display: block; font: 400 var(--title) var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--cap); color: var(--muted); }
.top { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.top > .row { grid-column: 1 / -1; }
#results-wide { margin-top: 14px; }
.opp { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: start; border-left: 5px solid var(--lvl); }
.rank { font: 400 var(--head) var(--serif); color: var(--lvl); }
.opp-name { font-weight: 600; }
.opp-meta { font-size: var(--cap); color: var(--muted); margin-top: 2px; }
.score { text-align: right; }
.score b { font: 400 var(--title)/1 var(--serif); font-variant-numeric: tabular-nums; }
.score span { display: block; font-size: var(--cap); color: var(--muted); }
.facts, .why, .checks, .mini, .calls { grid-column: 2/-1; }
.facts { display: flex; flex-wrap: wrap; gap: 5px; }
.why { font-size: var(--cap); margin: 0; }
.mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 4px 14px; }
.bar { display: grid; grid-template-columns: 1fr 2.2rem; gap: 4px; align-items: center; font-size: var(--cap); }
.bar i { display: block; height: 6px; border-radius: 3px; background: var(--grid); position: relative; overflow: hidden; }
.bar i em { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.bar label { grid-column: 1/-1; color: var(--muted); }
.bar b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.calls { border-top: 1px dashed var(--line); padding-top: 8px; }
.calls h4 { margin: 0 0 4px; font-size: var(--cap); font-weight: 600; }
.call { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: baseline; font-size: var(--cap); padding: 3px 0; }
.opp .call { grid-template-columns: auto 1fr; }
.opp .call > :last-child { grid-column: 2; }
.st { border-radius: 999px; padding: 0 8px; font-size: 11px; white-space: nowrap; border: 1px solid currentColor; }
.st-open { color: var(--ok); } .st-forthcoming { color: var(--warn); } .st-rolling { color: var(--c0); } .st-expected { color: var(--muted); } .st-closed { color: var(--bad); }
.ai-flag { font-size: 11px; color: var(--c3); }
.lock { border: 1px dashed var(--line); border-radius: var(--r); padding: 14px; text-align: center; color: var(--muted); font-size: var(--cap); }
.table-wrap { overflow: auto; max-height: 38rem; }
table { border-collapse: collapse; width: 100%; font-size: var(--cap); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--panel); font-weight: 600; z-index: 1; }
th button { all: unset; cursor: pointer; }
td.num, th.num { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.funnel { display: grid; gap: 4px; }
.fstep { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr 3.2rem; gap: 8px; align-items: center; font-size: var(--cap); }
.ftrack { height: 14px; border-radius: 7px; background: var(--grid); position: relative; overflow: hidden; }
.ftrack em { position: absolute; inset: 0 auto 0 0; border-radius: 7px; transition: width .4s ease-out; }
.fstep b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.fstep small { color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--cap); color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { width: 100%; min-height: 6rem; position: relative; }
.fit-flag { color: var(--ok); font-size: var(--cap); }
.radar-col { display: flex; flex-direction: column; }
.radar-col h3 { margin-bottom: auto; }
.radar-col .chart { display: flex; justify-content: center; min-height: 0; }
.radar-col .chart svg { display: block; max-width: 30rem; }
.radar-col .legend { justify-content: center; margin-bottom: auto; }
.ax { font-size: 12px; fill: var(--muted); font-family: var(--sans); }
.ax-strong { fill: var(--fg); font-weight: 600; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 5px 9px; font-size: var(--cap); max-width: 20rem; z-index: 5; }
.tip .k { color: var(--muted); }
.list { margin: 0; padding-left: 1.2rem; font-size: var(--cap); }
.list li { margin-bottom: 2px; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--acc, var(--line)); border-radius: var(--r); padding: 12px; }
.tile b { display: block; font: 400 var(--title) var(--serif); font-variant-numeric: tabular-nums; }
.tile span { font-size: var(--cap); color: var(--muted); }
.doc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; max-width: 54rem; margin-inline: auto; line-height: 1.5; }
.doc h1 { font: 400 var(--title) var(--serif); margin: 0 0 6px; }
.doc h2 { font-size: var(--head); font-weight: 600; margin: 28px 0 10px; border-bottom: 2px solid var(--c0); padding-bottom: 4px; }
.doc h3 { font-size: var(--body); font-weight: 600; margin: 18px 0 6px; color: var(--c0); }
.doc th { position: static; }
.files { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.suggest { border: 1px solid var(--c4); border-radius: var(--r); padding: 12px; background: color-mix(in srgb, var(--c4) 8%, var(--bg)); font-size: var(--cap); }
.suggest label { display: flex; gap: 6px; align-items: baseline; margin: 2px 0; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--bg); margin-bottom: 14px; }
.editgrid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--fg); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth { max-width: 26rem; margin: 10vh auto; }
.auth:has(#auth-signup-box:not(.hidden)) { max-width: 52rem; margin-top: 4vh; }
.md { width: 100%; min-height: 10rem; font-family: ui-monospace, monospace; font-size: var(--cap); }
@media (prefers-reduced-motion: reduce) { .ftrack em { transition: none; } .spinner { animation: none; } }
.ai-pick { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.ai-pick th { position: sticky; top: 0; background: var(--panel); }

/* installed app (PWA) */
.offline { position: sticky; top: 0; z-index: 20; background: var(--warn); color: #1a1a1a; text-align: center; padding: 6px 12px; font-size: var(--cap); }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-top: max(20px, env(safe-area-inset-top)); }
.install-steps { margin: 8px 0 0; padding-left: 1.2rem; font-size: var(--cap); }
@media (max-width: 640px) {
  .wrap { padding-bottom: max(60px, env(safe-area-inset-bottom)); }
  .btn, .tab { min-height: 40px; }
  input, select, textarea { font-size: 16px; } /* stops iPhone zooming in on focus */
  .head .tools { width: 100%; }
  .tabs { scrollbar-width: none; }
  .doc { padding: 16px; }
  table { display: block; overflow-x: auto; }
}

/* technology fields: keyword groups and eligibility line */
.kw-field{font-size:12px;color:var(--muted);margin:6px 0 2px}
.checks{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12px;color:var(--muted);margin:6px 0}
.checks .warn{color:var(--bad)}
/* two-column Match page: the screening stays in view while the longer inputs column scrolls */
@media (min-width: 900px) { #results { position: sticky; top: 8px; } }

/* sign-up: account choice */
.plan-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.plan { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: var(--cap); }
.plan:has(input:checked) { border-color: var(--c0); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c0) 25%, transparent); }
.plan input { position: absolute; opacity: 0; }
.plan b { font-size: 1rem; }
.plan-price { color: var(--c0); font-weight: 600; }
.ev-row { display: grid; grid-template-columns: 2fr 2fr 5rem 1.5fr 2fr auto; gap: 6px; margin-bottom: 6px; }
@media (max-width: 640px) { .ev-row { grid-template-columns: 1fr 1fr; } }

/* expert requests */
.req { border-left: 5px solid var(--acc, var(--c0)); margin-bottom: 12px; }
.req-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; }
.req-title { font-weight: 600; }
.req-facts { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.req-sub { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.ex-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--cap); }
.ex-line:last-child { border-bottom: 0; }
.ex-name { font-weight: 600; font-size: var(--body, 14px); }
.st-pending { color: var(--warn); } .st-approved, .st-delivered { color: var(--ok); } .st-rejected, .st-suspended, .st-cancelled { color: var(--bad); } .st-selected { color: var(--c0); }
.tpl textarea { min-height: 4.5rem; }
.tpl-call { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--cap); }
.tpl-call input[type=text] { grid-column: 1 / -1; }
.xc-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.xc-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.xc-head .btn { margin-left: auto; }
.xc-grid { display: grid; gap: 6px 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.msgs { font-size: var(--cap); }
.msgs p { margin: 4px 0; }
.banner { border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.stars button { border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); padding: 0 2px; }
.stars button.on { color: #e0a100; }
.req-head .btn { white-space: normal; max-width: 100%; text-align: left; }
.tpl > .field > .tpl-h { display: block; font-size: 1rem; font-weight: 600; color: var(--fg); border-top: 1px solid var(--line); padding-top: 12px; margin: 10px 0 4px; }
.tpl-prog { margin: 10px 0 2px; font-size: var(--cap); font-weight: 600; color: var(--muted); }
.tpl-view-h { font-size: 0.95rem; font-weight: 600; margin: 12px 0 4px; }

/* ---------- HiGrant brand ---------- */
h1.title.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 26px/1 var(--sans); letter-spacing: -.01em; }
.brand .logo { width: 42px; height: 42px; flex: none; border-radius: 11px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.brand .word b { font-weight: 700; color: var(--brand2); }
.auth .brand { color: var(--brand); }
/* header: a band in the logo's blue-to-green gradient */
.head { background: linear-gradient(120deg, var(--brand), var(--brand2)); color: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.head .brand, .head .brand .word b { color: #fff; }
.head .brand .word b { color: var(--gold); }
.head .sub { color: rgba(255, 255, 255, .88); }
.head .badge { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.head .muted { color: rgba(255, 255, 255, .8); }
.head .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.head .btn:hover { background: rgba(255, 255, 255, .26); border-color: #fff; }
.head .btn.hidden { display: none; }
#upgrade { background: var(--gold); color: #3a2a00; border-color: var(--gold); font-weight: 600; }
/* tabs: rounded pills, the active one in brand blue */
.tabs { border-bottom: 0; gap: 6px; padding: 4px; background: var(--panel); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 18px; }
.tab { border: 0; border-radius: 999px; padding: 7px 14px; }
.tab:hover { color: var(--fg); background: var(--bg); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; }
/* cards: softer, lifted */
.card { border-color: transparent; box-shadow: var(--shadow); }
.card.accent { border-top: 0; position: relative; overflow: hidden; }
.card.accent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--acc, var(--brand)); }
.tile { border-color: transparent; box-shadow: var(--shadow); border-top: 4px solid var(--acc, var(--brand)); }
.stat b, .tile b, .score b { color: var(--brand); font-family: var(--sans); font-weight: 700; }
.score b { font-size: 34px; }
.stat b, .tile b { font-size: 28px; }
.rank { font-family: var(--sans); font-weight: 700; }
.dot { background: var(--acc, var(--brand)); }
/* buttons and inputs */
.btn { border-radius: 10px; padding: 6px 13px; transition: background .15s, border-color .15s; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 82%, #000); border-color: color-mix(in srgb, var(--brand) 82%, #000); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], input[type=url], select, textarea { border-radius: 10px; padding: 8px 10px; background: var(--panel); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; border-color: var(--brand); }
.chip:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--panel)); }
.chip input { accent-color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.plan:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.plan-price { color: var(--gold-ink); }
.auth { box-shadow: 0 10px 40px rgba(21, 33, 43, .12); border-top: 6px solid var(--brand); }
.fit-flag { color: var(--ok); }
/* opportunity cards: the rank and level colour stay; the score sits in a soft brand pill */
.opp .score { background: color-mix(in srgb, var(--brand) 8%, var(--panel)); border-radius: 12px; padding: 6px 10px; }
.funnel .ftrack { background: var(--grid); }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  :root { --title: 24px; --body: 15px; }
  .wrap { padding-top: max(10px, env(safe-area-inset-top)); }
  .head { border-radius: 0 0 18px 18px; margin: -10px -16px 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 14px; }
  h1.title.brand { font-size: 22px; }
  .brand .logo { width: 34px; height: 34px; border-radius: 9px; }
  .head .tools { gap: 6px; flex-wrap: wrap; }  /* every header button stays visible, Sign out included */
  #user-email { display: none; }
  .head .sub { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .head .btn, .head .badge { min-height: 34px; font-size: 12.5px; padding: 0 11px; }
  /* tabs stay on screen while scrolling, as an app bar */
  .tabs { position: sticky; top: max(0px, env(safe-area-inset-top)); z-index: 15; border-radius: 14px; margin: 0 -6px 12px;
    background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tab { padding: 8px 12px; }
  .card { padding: 14px; border-radius: 16px; }
  .layout, .grid, .top { gap: 10px; }
  .summary { gap: 16px; }
  .stat b, .tile b { font-size: 24px; }
  .score b { font-size: 28px; }
  .opp { grid-template-columns: auto 1fr; }
  .opp .score { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .opp .score span { display: inline; }
  .fstep { grid-template-columns: minmax(6rem, 8.5rem) 1fr 2.6rem; }
  .btn.primary { min-height: 44px; }
  .auth { margin: 0 auto; border-radius: 0 0 18px 18px; }
}
.head .brand .logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 2px 8px rgba(0, 0, 0, .2); }

/* Pro-only content is marked with a gold star */
.pro-star { display: inline-block; font: 600 var(--cap)/1.4 var(--sans); color: #3a2a00; background: var(--gold); border-radius: 999px; padding: 1px 8px; vertical-align: middle; letter-spacing: 0; }

/* legal checks: topic badges in the violet of the legal cards */
.badge.legal { background: color-mix(in srgb, var(--c4) 14%, var(--panel)); border-color: color-mix(in srgb, var(--c4) 40%, transparent); }
input[type=datetime-local] { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--panel); color: var(--fg); font: inherit; }

/* feedback form */
.fb-dialog { border: 0; border-radius: 16px; padding: 22px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--panel); color: var(--fg); box-shadow: 0 10px 40px rgba(21, 33, 43, .25); }
.fb-dialog::backdrop { background: rgba(21, 33, 43, .45); }

/* expert requests: delivered and closed ones fold away */
.req-archive { margin-top: 18px; }
.req-archive > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 10px 14px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); list-style-position: inside; }
.req-archive[open] > summary { margin-bottom: 12px; color: var(--fg); }

/* after "Create account" */
.signup-done { margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--brand2) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--brand2) 35%, transparent); }
.signup-done h2 { font-size: 22px; color: var(--brand2); }
.signup-done ol { margin: 8px 0 0 18px; padding: 0; }

.src-line { margin: 0 0 4px; font-size: var(--cap); color: var(--muted); }
.src-line b { color: var(--fg); font-weight: 600; }
.src-line a { word-break: break-all; }
.timeline-scroll { max-height: 28rem; overflow-y: auto; }

/* admin review of expert requests: one sub-tab per step */
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }

/* the account buttons always sit on their own row, below the logo (and the best-match line) */
.head .tools { flex-basis: 100%; }
