/* ClaimSarathi — Claim Coach. Visual language ported from the "Claim Result v3" design:
   Hanken Grotesk (UI) + Newsreader (serif for quotes/draft), 460px mobile-first stack. */

:root {
  --ink: #11161d; --muted: #5b6470; --hint: #677079;
  --line: rgba(17, 22, 29, 0.12); --line-soft: rgba(17, 22, 29, 0.08);
  --bg: #f7f9fc; --card: #ffffff;
  --accent: #0b6e4f; --accent-ink: #0f6e56; --accent-deep: #3d6b58;
  --caution: #9a6200; --caution-ink: #7a4d00;
  --danger: #b3261e; --danger-ink: #8f1d17;
  --accent-10: rgba(11, 110, 79, 0.10); --accent-06: rgba(11, 110, 79, 0.055);
  --caution-12: rgba(185, 116, 0, 0.13);
  --radius: 12px; --radius-sm: 9px;
}

/* ===== ClaimSarathi v2 design system — tokenized + themeable (ported 2026-06-21) ===== */
:root {
  --green-rgb: 11,110,79; --green: #0b6e4f; --green-strong: #0a5f45; --green-soft: #0f6e56;
  --amber-rgb: 154,98,0; --amber: #9a6200;
  --red-rgb: 179,38,30; --red: #b3261e;
  --ink-rgb: 15,27,22; --ink: #0f1b16; --ink-2: #46554e; --ink-3: #76837b;
  --canvas: #f6f8fb; --surface-rgb: 255,255,255; --surface: #ffffff; --surface-2: #f1f5f2;
  --hairline: rgba(15,27,22,.12); --hairline-soft: rgba(15,27,22,.07);
  --cta-bg: #0b6e4f; --cta-ink: #ffffff; --cta-border: transparent;
  --cta-shadow: 0 1px 2px rgba(11,110,79,.28), 0 8px 22px rgba(11,110,79,.20);
  --ring: rgba(11,110,79,.55);
  --t-display: 32px; --t-h1: 24px; --t-h2: 20px; --t-h3: 17px; --t-body: 16.5px; --t-small: 15px; --t-micro: 13.5px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-card: 14px; --r-tile: 10px; --r-pill: 999px;
  --ui: 'Hanken Grotesk','Noto Sans Devanagari',-apple-system,system-ui,'Segoe UI',Roboto,sans-serif;
  --serif: 'Newsreader','Noto Serif Devanagari',Georgia,serif;
}
[data-theme="dark"] {
  --green-rgb: 60,176,130; --green: #3cb082; --green-strong: #46c08f; --green-soft: #5bc79b;
  --amber-rgb: 224,166,74; --amber: #e2a64a;
  --red-rgb: 233,123,113; --red: #e97b71;
  --ink-rgb: 230,238,233; --ink: #e7efe9; --ink-2: #a4b4ab; --ink-3: #71807a;
  --canvas: #0b110f; --surface-rgb: 18,27,23; --surface: #121b17; --surface-2: #19241f;
  --hairline: rgba(230,238,233,.16); --hairline-soft: rgba(230,238,233,.09);
  --cta-bg: #123d2e; --cta-ink: #eafff4; --cta-border: rgba(60,176,130,.55);
  --cta-shadow: 0 0 0 1px rgba(60,176,130,.45), 0 0 24px rgba(60,176,130,.16);
  --ring: rgba(60,176,130,.7);
  /* legacy tokens (still used by the results/loading screens until they're fully re-skinned)
     remapped to dark so those screens theme correctly too */
  --muted: #a4b4ab; --hint: #71807a;
  --line: rgba(230,238,233,.16); --line-soft: rgba(230,238,233,.09);
  --bg: #0b110f; --card: #121b17;
  --accent: #3cb082; --accent-ink: #5bc79b; --accent-deep: #5bc79b;
  --caution: #e2a64a; --caution-ink: #e6b366;
  --danger: #e97b71; --danger-ink: #ef9089;
  --accent-10: rgba(60,176,130,.14); --accent-06: rgba(60,176,130,.09);
  --caution-12: rgba(224,166,74,.16);
}
@keyframes csFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes csShimmer { 0% { background-position: -340px 0; } 100% { background-position: 340px 0; } }
@keyframes csPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes csSpin { to { transform: rotate(360deg); } }

/* ===== v2 shared header ===== */
.cs-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding: var(--s3) var(--s4); background: rgba(var(--surface-rgb),.82);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline-soft); }
.cs-header svg, .cs-intake svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-brand { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.cs-brandmark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(var(--green-rgb),.12); border: 1px solid rgba(var(--green-rgb),.30); color: var(--green); }
.cs-brandmark svg { width: 15px; height: 15px; }
.cs-brandname { font-weight: 700; font-size: var(--t-h3); letter-spacing: -.01em; color: var(--ink); }
.cs-headctrls { display: flex; align-items: center; gap: var(--s2); }
.cs-langtoggle { display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  overflow: hidden; background: var(--surface); }
.cs-lang { padding: 8px 12px; font-size: var(--t-small); font-weight: 600; border: none; background: transparent;
  color: var(--ink-2); cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.cs-lang.on { background: var(--green); color: #fff; }
.cs-themebtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.cs-themebtn svg { width: 16px; height: 16px; }
.cs-icon-sun { display: none; }
.cs-icon-moon { display: inline-flex; }
[data-theme="dark"] .cs-icon-sun { display: inline-flex; }
[data-theme="dark"] .cs-icon-moon { display: none; }

/* ===== v2 intake ===== */
.cs-intake { padding: var(--s5) var(--s4) var(--s7); }
.cs-trustchip { display: inline-flex; align-items: center; gap: var(--s2); padding: 5px 11px 5px 8px;
  border: 1px solid rgba(var(--green-rgb),.28); background: rgba(var(--green-rgb),.08); border-radius: var(--r-pill);
  color: var(--green); font-size: var(--t-micro); font-weight: 600; }
.cs-trustchip svg { width: 13px; height: 13px; flex: none; stroke-width: 2.2; }
.cs-h1 { margin: var(--s4) 0 var(--s3); font-size: var(--t-display); line-height: 1.18; letter-spacing: -.02em;
  font-weight: 700; color: var(--ink); }
.cs-sub { margin: 0 0 var(--s5); color: var(--ink-2); font-size: var(--t-h3); line-height: 1.55; }
.cs-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s4); }
.cs-steplabel { display: block; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s2); }
.cs-privacy + .cs-steplabel { margin-top: var(--s5); }
.cs-upload { width: 100%; display: flex; align-items: center; gap: var(--s3); padding: var(--s4); border: 1.5px dashed var(--hairline);
  border-radius: var(--r-tile); background: var(--surface-2); color: var(--ink); cursor: pointer; font-family: inherit;
  text-align: left; transition: border-color .2s, background .2s; }
.cs-upload:hover { border-color: var(--green); }
.cs-upload.has-file { border-style: solid; border-color: rgba(var(--green-rgb),.5); background: rgba(var(--green-rgb),.06); }
.cs-upload.invalid { border-color: var(--amber); background: rgba(var(--amber-rgb),.10); }
.cs-upload.dragover { border-color: var(--green); background: rgba(var(--green-rgb),.10); }
/* v2 focus ring for the new tokenized controls */
.cs-header :focus-visible, .cs-intake :focus-visible { outline: 2.5px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.cs-upload-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-tile);
  background: rgba(var(--green-rgb),.12); color: var(--green); flex: none; }
.cs-upload-ic svg { width: 20px; height: 20px; }
.cs-upload-text { min-width: 0; }
.cs-upload-cta { display: block; font-weight: 600; font-size: var(--t-h3); color: var(--ink); word-break: break-word; }
.cs-upload-hint { display: block; font-size: var(--t-small); color: var(--ink-3); margin-top: 1px; }
.cs-privacy { display: flex; align-items: flex-start; gap: var(--s2); margin: var(--s3) 0 0; color: var(--ink-3);
  font-size: var(--t-micro); line-height: 1.45; }
.cs-privacy svg { width: 14px; height: 14px; flex: none; margin-top: 1px; stroke-width: 1.9; }
.cs-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
.cs-chip { padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface-2);
  color: var(--ink-2); font-size: var(--t-small); font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; }
.cs-chip:hover { border-color: var(--green); }
.cs-chip.on { border-color: var(--green); background: rgba(var(--green-rgb),.10); color: var(--green); }
.cs-textarea { width: 100%; min-height: 92px; resize: vertical; border: 1px solid var(--hairline); border-radius: var(--r-tile);
  background: var(--surface); color: var(--ink); padding: var(--s3); font-family: inherit; font-size: var(--t-h3); line-height: 1.5; }
.cs-textarea::placeholder { color: var(--ink-3); }
.cs-textarea.invalid { outline: 2px solid var(--amber); outline-offset: 1px; }
.cs-cta { margin-top: var(--s4); width: 100%; display: flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 14px; border-radius: var(--r-tile); background: var(--cta-bg); color: var(--cta-ink); border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow); font-weight: 600; font-size: var(--t-h3); cursor: pointer; font-family: inherit;
  transition: transform .05s, filter .15s; }
.cs-cta:hover { filter: brightness(1.05); }
.cs-cta:active { transform: scale(.99); }
.cs-cta svg { width: 17px; height: 17px; stroke-width: 2.2; }
.cs-formhint { margin: var(--s3) 0 0; font-size: var(--t-small); font-weight: 600; line-height: 1.45; color: var(--amber);
  background: rgba(var(--amber-rgb),.12); border: 1px solid rgba(var(--amber-rgb),.4); border-radius: var(--r-tile); padding: 9px 12px; }
.cs-autodetect { margin: var(--s3) 0 0; font-size: var(--t-micro); color: var(--ink-3); line-height: 1.45; text-align: center; }
.cs-footnotes { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s5);
  color: var(--ink-3); font-size: var(--t-micro); }
.cs-footnotes > span { display: inline-flex; align-items: center; gap: 6px; }
.cs-footnotes svg { width: 13px; height: 13px; flex: none; }
.cs-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.cs-facts { margin-top: var(--s5); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s4); }
.cs-facts-lead { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.cs-facts-lead strong { font-weight: 700; color: var(--amber); white-space: nowrap; }
.cs-facts-cta { display: block; margin-top: var(--s2); font-weight: 600; color: var(--green); }
.cs-facts-src { margin: var(--s3) 0 0; display: flex; align-items: flex-start; gap: 7px; font-size: 15.5px;
  font-weight: 600; color: var(--ink-3); }
.cs-facts-src svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.cs-disclaimer { margin: var(--s4) 0 0; font-size: var(--t-micro); color: var(--ink-3); line-height: 1.5; text-align: center; }
.cs-madeby { margin: var(--s2) 0 0; font-size: var(--t-small); color: var(--ink-3); text-align: center; }
.cs-contact { margin: 4px 0 0; font-size: var(--t-small); color: var(--ink-3); text-align: center; }
.cs-madeby a, .cs-contact a { color: var(--ink-2); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hairline); transition: color .15s, border-color .15s; }
.cs-madeby a:hover, .cs-contact a:hover { color: var(--green); border-bottom-color: var(--green); }
/* secondary CTA — key terms */
.cs-cta-2 { margin-top: var(--s2); width: 100%; display: flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px; border-radius: var(--r-tile); background: var(--surface); color: var(--ink-2); border: 1px solid var(--hairline);
  font-weight: 600; font-size: var(--t-small); cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; }
.cs-cta-2:hover { border-color: var(--green); color: var(--green); }
.cs-cta-2 svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== v2 key-terms screen ===== */
.cs-keyterms { padding: var(--s5) var(--s4) var(--s7); }
.cs-keyterms svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kt-header { justify-content: space-between; }
.kt-head-actions { display: flex; align-items: center; gap: var(--s2); }
/* shortfall calculator (result screen) */
.sf-sub { margin: 0 0 var(--s3); font-size: var(--t-micro); color: var(--ink-2); line-height: 1.45; }
.sf-inputs { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s2); }
.sf-field { flex: 1 1 120px; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-micro); color: var(--ink-2); }
.sf-field input { width: 100%; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: var(--r-tile);
  background: var(--surface-2); color: var(--ink); font-family: inherit; font-size: var(--t-small); }
.sf-totals { display: flex; gap: var(--s3); margin: var(--s3) 0 var(--s2); }
.sf-total { flex: 1; background: var(--surface-2); border-radius: var(--r-tile); padding: 10px 12px; }
.sf-total-lbl { display: block; font-size: var(--t-micro); color: var(--ink-3); }
.sf-total-val { font-size: var(--t-h3); font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-total-val.good { color: var(--green); }
.sf-total-val.bad { color: var(--amber); }
.sf-steps { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s2); }
.sf-step { border-top: 1px solid var(--hairline-soft); padding-top: 8px; }
.sf-step-line { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--t-small); color: var(--ink); }
.sf-step-amt { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-step .kt-quote { margin-top: 6px; }
.sf-note { margin-top: var(--s2); font-size: var(--t-micro); color: var(--ink-3); line-height: 1.4; }
.sf-disc { margin: var(--s3) 0 0; font-size: var(--t-micro); color: var(--ink-3); line-height: 1.4; }
/* deadline countdown + intake incident date */
.dl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.dl-cd { font-size: var(--t-micro); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-cd.cd-later { color: var(--ink-2); }
.dl-cd.cd-soon, .dl-cd.cd-today { color: var(--amber); }
.dl-cd.cd-overdue { color: #e0564f; }
.dl-cd.cd-none { display: none; }
.cs-when-label { margin-top: var(--s4); }
.cs-when-input { width: 100%; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: var(--r-tile);
  background: var(--surface-2); color: var(--ink); font-family: inherit; font-size: var(--t-small); }
.cs-when-hint { margin: 4px 0 0; font-size: var(--t-micro); color: var(--ink-3); line-height: 1.4; }
/* "what you'll get" homepage section */
.cs-get { margin-top: var(--s5); }
.cs-get-head { display: flex; align-items: center; gap: 9px; margin-bottom: var(--s3); }
.cs-get-head > span { color: var(--green); font-weight: 600; font-size: var(--t-small); white-space: nowrap; }
.cs-get-head::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.cs-get-list { list-style: none; margin: 0; padding: 0; }
.cs-get-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hairline-soft); }
.cs-get-row:last-child { border-bottom: 0; }
.cs-get-ic { flex: none; width: 34px; height: 34px; border-radius: var(--r-tile); background: rgba(var(--green-rgb), 0.14);
  color: var(--green); display: flex; align-items: center; justify-content: center; }
.cs-get-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-get-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-get-t { color: var(--ink); font-weight: 600; font-size: var(--t-small); }
.cs-get-d { color: var(--ink-2); font-size: var(--t-micro); line-height: 1.45; }
.cs-get-new { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--green); background: rgba(var(--green-rgb), 0.16);
  border: 1px solid rgba(var(--green-rgb), 0.32); border-radius: 5px; padding: 0 6px; vertical-align: 1px; }
.kt-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2);
  background: none; border: none; cursor: pointer; font-family: inherit; }
.kt-back svg { width: 18px; height: 18px; }
.kt-lobchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(var(--green-rgb),.10); border: 1px solid rgba(var(--green-rgb),.28); color: var(--green);
  font-size: var(--t-micro); font-weight: 600; }
.kt-lobchip svg { width: 13px; height: 13px; }
.kt-h1 { margin: var(--s3) 0 var(--s2); font-size: var(--t-h1); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.kt-sub { margin: 0 0 var(--s5); color: var(--ink-2); font-size: var(--t-small); line-height: 1.55; }
.kt-group { margin-bottom: var(--s5); }
.kt-group-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); color: var(--ink-2);
  font-size: var(--t-small); font-weight: 700; }
.kt-group-head svg { width: 16px; height: 16px; color: var(--green); }
.kt-count { margin-left: auto; font-size: var(--t-micro); font-weight: 700; color: var(--ink-3);
  background: var(--surface-2); border-radius: var(--r-pill); padding: 2px 8px; font-variant-numeric: tabular-nums; }
.kt-term { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s3) var(--s4); margin-bottom: var(--s2); }
.kt-term-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.kt-term-value { font-size: var(--t-h3); font-weight: 600; color: var(--ink); line-height: 1.4; }
.kt-verified { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-micro); font-weight: 600; color: var(--green); white-space: nowrap; }
.kt-verified svg { width: 12px; height: 12px; stroke-width: 2.6; }
.kt-term-label { font-size: var(--t-micro); color: var(--ink-3); margin-top: 2px; }
.kt-quote { margin-top: var(--s3); }
.kt-quote > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-micro); font-weight: 600; color: var(--green); padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(var(--green-rgb), 0.08); border: 1px solid rgba(var(--green-rgb), 0.32); transition: background .15s, border-color .15s; }
.kt-quote > summary:hover { background: rgba(var(--green-rgb), 0.15); border-color: rgba(var(--green-rgb), 0.5); }
.kt-quote[open] > summary { margin-bottom: var(--s2); }
.kt-quote > summary::-webkit-details-marker { display: none; }
.kt-quote > summary svg { width: 12px; height: 12px; }
.kt-quote blockquote { margin: var(--s2) 0 0; padding-left: var(--s3); border-left: 2px solid rgba(var(--green-rgb),.4); font-family: var(--serif); font-size: var(--t-small); line-height: 1.55; color: var(--ink); }
.kt-loc { margin-top: 6px; padding-left: var(--s3); font-size: var(--t-micro); color: var(--ink-3); }
.kt-empty { display: flex; align-items: flex-start; gap: var(--s2); color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s4); }
.kt-empty svg { width: 18px; height: 18px; flex: none; color: var(--amber); }
/* "show key terms" teaser inside the verdict results */
.kt-teaser { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.kt-teaser-text { min-width: 0; }
.kt-teaser-title { font-size: var(--t-h3); font-weight: 700; color: var(--ink); }
.kt-teaser-sub { font-size: var(--t-micro); color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.kt-teaser-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: var(--r-tile);
  border: 1px solid rgba(var(--green-rgb), 0.4); background: rgba(var(--green-rgb), 0.08); color: var(--green);
  font-weight: 600; font-size: var(--t-small); cursor: pointer; font-family: inherit; white-space: nowrap; }
.kt-teaser-btn:hover { background: rgba(var(--green-rgb), 0.14); }
.kt-teaser-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas); color: var(--ink);
  font-family: var(--ui);
  font-size: var(--t-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap { min-height: 100vh; display: flex; justify-content: center; padding: 0 0 140px; }
.col { width: 100%; max-width: 460px; display: flex; flex-direction: column; }
/* transitional gutter for the results screen (still on the pre-port layout) */
#results { padding: 0 14px; }

/* Desktop: roughly double the column (460 -> 920px) so the wide browser viewport isn't
   mostly empty margin. Phones and narrow windows (< 980px) keep the 460px mobile stack
   untouched. The actionbar's inner column is widened in lockstep so it stays aligned. */
@media (min-width: 980px) {
  .col,
  .actionbar .ab-col { max-width: 920px; }
}

/* ---- generic card ---- */
.card { background: var(--card); border: 0.5px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

/* ---- top meta bar ---- */
.metabar { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hint); }
.metabar svg { width: 13px; height: 13px; flex: 0 0 auto; stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- intake / home ---- */
.intake { padding-top: 2px; }

/* app bar: brand + language toggle */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.brandrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brandmark { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; }
.brandmark svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.brandrow .b { flex: 0 0 auto; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--accent); }
.brandrow .s { font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.langtoggle { flex: 0 0 auto; display: inline-flex; gap: 2px; padding: 2px; background: var(--bg);
  border: 0.5px solid var(--line); border-radius: 999px; }
.lang { border: 0; background: transparent; border-radius: 999px; padding: 8px 13px; line-height: 1;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17, 22, 29, 0.12); }

/* hero */
.hero-h1 { font-size: 31px; line-height: 1.13; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 9px; }
.hero-sub { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0 0 17px; }

/* trust pull-quote */
.trust-quote { margin: 0 0 18px; padding: 2px 0 2px 14px; border-left: 2px solid rgba(11, 110, 79, 0.4);
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink); }

/* ---- problem / sourced-stat band (home) ---- */
.statband { margin: 0 0 18px; padding: 14px 15px; background: var(--card);
  border: 0.5px solid var(--line); border-radius: var(--radius-sm); }
.stat-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.stat-lead strong { font-weight: 700; color: var(--caution-ink); white-space: nowrap; }
.stat-cta { display: block; margin-top: 9px; font-size: 16px; line-height: 1.5;
  font-weight: 600; color: var(--accent-ink); }
.stat-src { margin: 11px 0 0; display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--hint); }
.stat-src svg { width: 13px; height: 13px; flex: 0 0 auto; stroke: var(--accent);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* how it works */
.how { margin: 0 0 18px; }
.how-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hint); margin-bottom: 12px; }
.how-step { display: flex; align-items: center; gap: 11px; margin: 11px 0; }
.how-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(11, 110, 79, 0.5);
  color: var(--accent); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.how-ic { flex: 0 0 auto; display: flex; }
.how-ic svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.how-t { font-size: 16px; line-height: 1.35; color: var(--ink); font-weight: 500; }

/* intake card */
.intake-card { margin: 0 0 16px; }
.field-label { display: block; font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 8px; }

/* upload dropzone (backed by the hidden #policyFile input) */
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fbfcfe;
  padding: 22px 16px; text-align: center; cursor: pointer; margin-bottom: 18px;
  transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--accent); background: var(--accent-06); }
.dropzone:focus-visible { border-color: var(--accent); background: var(--accent-06);
  outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-10); }
.dropzone.has-file { border-style: solid; border-color: rgba(11, 110, 79, 0.5); background: var(--accent-06); }
.dropzone.invalid { border-color: var(--caution); background: var(--caution-12); }
.dz-ic { display: flex; justify-content: center; margin-bottom: 8px; }
.dz-ic svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.dz-main { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; word-break: break-word; }
.dropzone.has-file .dz-main { color: var(--accent-ink); }
.dz-sub { font-size: 14.5px; color: var(--hint); margin-top: 3px; }

/* situation field + quick-start chips */
textarea { width: 100%; padding: 12px 13px; border: 0.5px solid var(--line-soft); border-radius: 10px;
  font: inherit; font-size: 16px; line-height: 1.5; background: #fff; color: var(--ink); resize: none; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.invalid { outline: 2px solid var(--caution); outline-offset: 1px; }
textarea::placeholder { color: var(--hint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.chip { border: 0.5px solid #cfe6dd; background: #eef7f3; color: var(--accent); border-radius: 999px;
  padding: 7px 13px; font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; transition: background .12s, border-color .12s, transform .05s; }
.chip:hover { background: #e3f1ea; }
.chip:active { transform: scale(0.98); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* auto-detect note (intake) */
.autodetect-note { font-size: 14px; color: var(--hint); margin: 0 0 13px; line-height: 1.45; }

/* primary button + arrow */
button.primary { width: 100%; background: var(--accent); color: #fff; border: 0; padding: 15px; border-radius: 11px;
  font-family: inherit; font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.22); transition: filter .15s, transform .05s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
button.primary:hover { filter: brightness(0.95); }
button.primary:active { transform: scale(0.99); }
.btn-arrow { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
.lang:focus-visible, .chip:focus-visible, button.primary:focus-visible,
.copy-btn:focus-visible, .share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* focus-visible rings for result-view controls that previously relied on the UA default */
.check-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.cc-val:focus-visible, .of-link:focus-visible, .esc-step a:focus-visible,
.ih-dir:focus-visible, .ih-srclink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tok:focus-visible { outline: 2px solid var(--caution); outline-offset: 2px; }
.disclaimer-mini { color: var(--hint); font-size: 13.5px; margin: 11px 0 0; text-align: center; }
/* calm inline validation callout (replaces native alert) */
.form-hint { margin: 11px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--caution-ink);
  background: var(--caution-12); border: 0.5px solid rgba(154, 98, 0, 0.45); border-radius: var(--radius-sm); padding: 9px 12px; }

/* reassurance footer */
.trustrow { display: flex; justify-content: space-around; gap: 8px; margin: 22px 0 0; padding-top: 18px;
  border-top: 0.5px solid var(--line-soft); }
.tr-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tr-item svg { width: 18px; height: 18px; stroke: var(--hint); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.tr-item span { font-size: 13px; line-height: 1.3; color: var(--muted); max-width: 88px; }

.hidden { display: none !important; }
.loading { padding: var(--s5) var(--s4) 64px; }
.loading p { color: var(--muted); font-size: 16px; text-align: center; margin-top: 6px; }
/* v2 analyzing head (icon + title + rotating sub) */
.cs-loadhead { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.cs-loadspin { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-tile);
  border: 1px solid var(--hairline); color: var(--green); flex: none; }
.cs-loadspin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; animation: csSpin 1.1s linear infinite; }
.cs-loadtitle { font-size: var(--t-h2); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cs-loadsub { font-size: var(--t-small); color: var(--ink-2); margin-top: 2px; transition: opacity .3s ease; }
.cs-loadhint { font-size: var(--t-micro); color: var(--muted); margin-top: 6px; }
/* rotating sourced-fact card — keeps the ~1-min wait useful; every fact is quoted to a named source */
.cs-fact { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; transition: opacity .35s ease; }
.cs-fact-label { display: flex; align-items: center; gap: 6px; color: var(--accent);
  font-size: var(--t-micro); font-weight: 600; margin-bottom: 7px; }
.cs-fact-label svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs-fact-text { color: var(--ink); font-size: var(--t-small); line-height: 1.5; margin: 0 0 9px; }
.cs-fact-src { display: flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: var(--t-micro); line-height: 1.35; }
.cs-fact-src svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* loading skeleton — previews the result structure so the wait feels like progress, not a hang */
.skel-stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.skel { border-radius: var(--radius); background: var(--surface-2); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); animation: skelShim 1.6s ease-in-out infinite; }
.skel-verdict { height: 92px; border-left: 4px solid var(--line); }
.skel-card { height: 70px; }
.skel-card.sm { height: 50px; }
@keyframes skelShim { to { transform: translateX(100%); } }
/* result-stack entrance — gentle fade-up, capped stagger; first paint only (.enter) */
@keyframes rFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.results-stack.enter > * { animation: rFadeUp .42s cubic-bezier(.2, .7, .3, 1) both; }
.results-stack.enter > *:nth-child(2) { animation-delay: 55ms; }
.results-stack.enter > *:nth-child(3) { animation-delay: 110ms; }
.results-stack.enter > *:nth-child(4) { animation-delay: 165ms; }
.results-stack.enter > *:nth-child(5) { animation-delay: 220ms; }
.results-stack.enter > *:nth-child(6) { animation-delay: 275ms; }
.results-stack.enter > *:nth-child(7) { animation-delay: 330ms; }
.results-stack.enter > *:nth-child(n+8) { animation-delay: 360ms; }
/* copy-success pulse (the label + icon swap is handled in JS) */
.copy-btn.copied { animation: copyPulse .3s ease; }
@keyframes copyPulse { 50% { transform: scale(1.015); filter: brightness(1.08); } }

/* ---- policy identity (slim provenance under the verdict) ---- */
.policy-header { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.policy-header .ph-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--accent-10); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.policy-header .ph-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-insurer { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.2; }
.ph-product { font-size: 14.5px; color: var(--muted); margin-top: 1px; }
.ph-tag { font-size: 13px; color: var(--accent-ink); margin-top: 2px; }

/* ---- verdict banner ---- */
.verdict { padding: 16px 18px; border-left: 4px solid var(--line); }
.verdict .v-tagrow { display: flex; align-items: center; gap: 8px; }
.verdict .v-tagrow svg { width: 18px; height: 18px; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.verdict .v-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.verdict .v-title { margin-top: 9px; font-size: 28px; line-height: 1.14; font-weight: 800; letter-spacing: -0.025em; }
.verdict .v-sub { margin-top: 7px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.v-COVERED .v-tagrow svg, .v-COVERED .v-tag { color: var(--accent); }
.v-PARTIAL .v-tagrow svg, .v-PARTIAL .v-tag { color: var(--caution); }
.v-NOT_COVERED .v-tagrow svg, .v-NOT_COVERED .v-tag { color: var(--danger); }
.v-UNCLEAR .v-tagrow svg, .v-UNCLEAR .v-tag { color: var(--muted); }
/* accent rail + faint state tint so the verdict is the single loudest moment */
.v-COVERED { border-left-color: var(--accent); background: var(--accent-06); }
.v-PARTIAL { border-left-color: var(--caution); background: rgba(185, 116, 0, 0.05); }
.v-NOT_COVERED { border-left-color: var(--danger); background: rgba(179, 38, 30, 0.05); }
.v-UNCLEAR { border-left-color: var(--muted); background: var(--bg); }
.v-auto { display: flex; align-items: center; gap: 6px; margin-top: 13px; padding-top: 12px;
  border-top: 0.5px solid var(--line-soft); font-size: 14.5px; font-weight: 600; color: var(--accent); }
.v-auto svg { width: 15px; height: 15px; flex: 0 0 auto; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.at-risk { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; background: var(--caution-12);
  border: 0.5px solid rgba(185, 116, 0, 0.5); border-radius: var(--radius-sm); padding: 7px 11px;
  color: var(--caution-ink); font-size: 14.5px; font-weight: 600; }
.at-risk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.unclear-note { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted);
  background: var(--bg); border: 0.5px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; }

/* ---- denial-proofing confidence banner (calmed: outline + risk chips) ---- */
.hero-lite { padding: 14px 16px; border: 0.5px solid rgba(11, 110, 79, 0.32); }
.hl-head { display: flex; align-items: center; gap: 9px; }
.hl-icon { flex: 0 0 auto; display: flex; color: var(--accent); }
.hl-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.hl-title { flex: 1; font-size: 16.5px; font-weight: 700; color: var(--accent-ink); letter-spacing: -0.01em; }
.hl-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700;
  color: var(--accent); background: rgba(11, 110, 79, 0.1); border-radius: 999px; padding: 3px 9px; }
.hl-badge svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.hl-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.hl-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: rgba(91, 100, 112, 0.08); border: 0.5px solid var(--line-soft); border-radius: 7px; padding: 5px 9px; }
.hl-chip svg { width: 11px; height: 11px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; }
.hl-chip.policy { color: var(--accent-ink); background: rgba(11, 110, 79, 0.08); border-color: rgba(11, 110, 79, 0.2); }

/* ---- section dividers (group the stack into calm phases) ---- */
.sec-label { display: flex; align-items: center; gap: 10px; margin: 6px 2px 0; }
.sec-label > span:first-child { flex: 0 0 auto; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.sec-rule { flex: 1; height: 0.5px; background: var(--line); }

/* ---- controlling clause ---- */
.clause-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700;
  color: var(--accent); background: rgba(11, 110, 79, 0.11); border-radius: 20px; padding: 4px 10px; }
.verified-badge svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.clause-quote { margin: 13px 0 0; padding-left: 14px; border-left: 2px solid rgba(11, 110, 79, 0.3);
  font-family: "Newsreader", Georgia, serif; font-size: 17.5px; line-height: 1.55; color: var(--ink); }
.clause-loc { margin-top: 10px; padding-left: 14px; font-size: 14px; color: var(--muted); }

/* ---- evidence checklist ---- */
.check-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 0 4px; }
.counter { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 20px;
  padding: 2px 9px; color: var(--muted); background: rgba(91, 100, 112, 0.1); }
.counter.done { color: var(--accent); background: rgba(11, 110, 79, 0.11); }
.check-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 0.5px solid var(--line-soft);
  cursor: pointer; min-height: 46px; }
.check-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line);
  background: var(--surface); display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.check-box svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.5);
  transition: opacity .15s, transform .18s cubic-bezier(.2, .7, .3, 1); }
.check-item.on .check-box { background: var(--accent); border-color: var(--accent); }
.check-item.on .check-box svg { opacity: 1; transform: scale(1); }
.check-item .ci-label { flex: 1; font-size: 16px; color: var(--ink); font-weight: 500; }
.check-item.on .ci-label { color: var(--hint); text-decoration: line-through; text-decoration-color: rgba(138, 147, 160, 0.6); font-weight: 400; }
.all-done { margin-top: 10px; display: flex; align-items: center; gap: 8px; background: rgba(var(--green-rgb), 0.08);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.all-done svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---- deadline ---- */
.deadline { display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: rgba(var(--amber-rgb), 0.08);
  border: 0.5px solid rgba(185, 116, 0, 0.55); border-radius: var(--radius); flex-wrap: wrap; }
.deadline .dl-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--caution-12);
  display: flex; align-items: center; justify-content: center; color: var(--caution); }
.deadline .dl-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.deadline .dl-mid { flex: 1; min-width: 140px; }
.deadline .dl-title { font-size: 17px; font-weight: 700; margin-top: 2px; letter-spacing: -0.01em; }
.deadline .dl-badge { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 700;
  color: var(--caution-ink); background: rgba(185, 116, 0, 0.16); border: 0.5px solid rgba(185, 116, 0, 0.55);
  border-radius: 20px; padding: 5px 12px; white-space: nowrap; }

/* ---- drafted claim ---- */
.draft-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.draft-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.draft-ready { font-size: 14px; color: var(--accent); font-weight: 600; }
.draft { margin-top: 12px; background: var(--surface-2); border: 0.5px solid var(--line-soft); border-radius: 10px;
  padding: 15px; font-family: "Newsreader", Georgia, serif; font-size: 17px; line-height: 1.7; color: var(--ink);
  outline: none; white-space: pre-wrap; }
.tok { font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 15px; border-radius: 5px;
  padding: 3px 7px; background: rgba(185, 116, 0, 0.16); color: var(--caution-ink);
  border: 0.5px solid rgba(185, 116, 0, 0.5); outline: none; }
.tok:focus { box-shadow: 0 0 0 3px rgba(185, 116, 0, 0.22); border-color: rgba(185, 116, 0, 0.8); }
.draft-note { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.draft-note svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---- escalation (if denied) ---- */
.esc { padding: 4px 16px; }
.esc > summary { width: 100%; display: flex; align-items: center; gap: 11px; padding: 14px 0; cursor: pointer; list-style: none; }
.esc > summary::-webkit-details-marker { display: none; }
.esc .esc-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(91, 100, 112, 0.1); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.esc .esc-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.esc .esc-title { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.esc .esc-intro { display: block; font-size: 14px; color: var(--muted); margin-top: 1px; }
.esc .esc-chev { margin-left: auto; width: 16px; height: 16px; stroke: var(--hint); fill: none; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.esc[open] .esc-chev { transform: rotate(180deg); }
.esc-steps { padding: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.esc-step { display: flex; gap: 11px; }
.esc-step .n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(11, 110, 79, 0.1);
  color: var(--accent); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.esc-step .st { font-size: 15.5px; font-weight: 700; }
.esc-step .sd { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 1px; }
.esc-step a { display: inline-block; margin-top: 3px; color: var(--accent-ink); word-break: break-all; font-weight: 600; }
.esc-note { font-size: 13px; color: var(--hint); padding: 0 0 12px; }

/* ---- expandable "why" details (native <details>) ---- */
details.x > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; border-radius: 6px; padding: 4px 9px; }
details.x > summary::-webkit-details-marker { display: none; }
details.x.green > summary { color: var(--accent-ink); background: rgba(11, 110, 79, 0.11); }
details.x.grey > summary { color: var(--muted); background: rgba(91, 100, 112, 0.12); }
details.x > summary svg { width: 11px; height: 11px; flex: 0 0 auto; stroke: currentColor;
  fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
details.x .x-body { margin-top: 9px; font-size: 14px; line-height: 1.5; color: var(--muted);
  background: var(--bg); border: 0.5px solid var(--line-soft); border-radius: 8px; padding: 9px 11px; }

/* ---- results top bar (meta + on-demand language toggle) ---- */
.results-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rlang { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.rlang-note { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---- reach your insurer (contact card) ---- */
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700;
  color: var(--accent); background: rgba(11, 110, 79, 0.11); border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.cc-tag svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.cc-list { margin-top: 13px; display: flex; flex-direction: column; gap: 11px; }
.cc-row { display: flex; align-items: center; gap: 12px; }
.cc-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-10);
  display: flex; align-items: center; justify-content: center; color: var(--accent); }
.cc-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cc-val { font-size: 16.5px; font-weight: 700; color: var(--accent-ink); margin-top: 1px;
  word-break: break-word; text-decoration: none; }
a.cc-val:hover { text-decoration: underline; }

/* ---- official grievance portal (IRDAI) ---- */
.official-card .of-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); background: rgba(91, 100, 112, 0.12); border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.official-card .of-tag svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.of-row { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.of-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-10);
  display: flex; align-items: center; justify-content: center; color: var(--accent); }
.of-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.of-name { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.of-link { font-size: 15.5px; font-weight: 700; color: var(--accent-ink); word-break: break-all;
  text-decoration: none; margin-top: 1px; }
.of-link:hover { text-decoration: underline; }
.of-sub { margin-top: 11px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---- how to reach your insurer (fallback contact helper) ---- */
.ih-lookup { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px;
  font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ih-lookup svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; stroke: currentColor;
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.ih-match { margin-top: 13px; padding: 12px; border: 0.5px solid var(--line-soft); border-radius: 10px;
  background: var(--bg); }
.ih-match-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.ih-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.ih-src { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 13px; font-weight: 700;
  color: var(--muted); background: rgba(91, 100, 112, 0.12); border-radius: 20px; padding: 4px 9px; white-space: nowrap; }
.ih-src svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.ih-srclink { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--muted);
  word-break: break-all; text-decoration: none; }
.ih-srclink:hover { text-decoration: underline; }
.ih-dir { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 15px; font-weight: 700;
  color: var(--accent-ink); text-decoration: none; }
.ih-dir svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.ih-dir:hover { text-decoration: underline; }

/* ---- sticky action bar ---- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(var(--surface-rgb), 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 0.5px solid var(--line-soft); }
.actionbar .ab-col { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.ab-warn { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--caution-ink);
  background: var(--caution-12); border: 0.5px solid rgba(185, 116, 0, 0.5); border-radius: var(--radius-sm); padding: 9px 11px; }
.ab-warn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.ab-row { display: flex; gap: 9px; }
.copy-btn { flex: 1; border: none; border-radius: 11px; padding: 14px; background: var(--accent); color: #fff;
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 110, 79, 0.22); transition: filter .15s, transform .05s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.copy-btn:hover { filter: brightness(0.94); }
.copy-btn:active { transform: scale(0.99); }
.copy-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.cb-ic { display: inline-flex; align-items: center; }
.share-btn { flex: 0 0 auto; width: 54px; border: 0.5px solid rgba(11, 110, 79, 0.4); border-radius: 11px;
  background: var(--surface); color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.share-btn:hover { background: rgba(11, 110, 79, 0.06); }
.share-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.ab-disc { font-size: 12.5px; line-height: 1.45; color: var(--hint); text-align: center; }

/* ---- take-away actions: export bar (in-flow, above the fixed action bar) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.export-bar { margin-top: var(--s3); }
.export-bar .ab-col { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.exp-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.exp-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--hairline);
  border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .2s, color .2s; }
.exp-btn:hover { border-color: var(--green); color: var(--green); }
.exp-btn svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.exp-hint { margin-top: var(--s2); font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.exp-hint.copied { color: var(--green); font-weight: 600; }
.shared-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 4px;
  border: 1px solid rgba(var(--green-rgb),.30); background: rgba(var(--green-rgb),.08); border-radius: var(--r-card); color: var(--green); font-weight: 600; font-size: 14.5px; }
.shared-banner svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pack-footer { display: none; }
.share-invalid { text-align: center; padding: var(--s6) var(--s4); color: var(--ink-2); }
.share-invalid h2 { font-size: var(--t-h2); margin: 0 0 var(--s3); color: var(--ink); }
.share-invalid button { margin-top: var(--s4); padding: 12px 18px; border: none; border-radius: var(--r-pill);
  background: var(--cta-bg); color: var(--cta-ink); font-family: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }

@media print {
  .cs-header, .export-bar, .actionbar, .kt-teaser, .results-top, .shared-banner, [data-theme-toggle], .cs-langtoggle { display: none !important; }
  :root { --canvas: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --hairline: #bbb; --caution-ink: #7a4d00; }
  html, body { background: #fff !important; color: #000 !important; }
  .wrap, .col { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  details { display: block !important; }
  details > *:not(summary) { display: block !important; }
  .esc-steps { display: flex !important; }
  .card, .results-stack > * { break-inside: avoid; page-break-inside: avoid; box-shadow: none !important; border-color: #ccc !important; }
  .tok { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: transparent !important; color: #7a4d00 !important; border: 1px solid #7a4d00 !important; }
  .pack-footer { display: block !important; margin-top: 16px; padding-top: 10px; border-top: 1px solid #bbb; font-size: 12px; color: #333; text-align: center; }
  a[href]:after { content: ""; }
}

/* Deadline-reminder opt-in (results screen) */
.rem-card { padding: 12px 16px; }
.rem-cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(var(--green-rgb), 0.08); color: var(--green); border: 1px solid var(--hairline);
  border-radius: var(--r-tile); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.rem-cta:hover { background: rgba(var(--green-rgb), 0.14); }
.rem-form { margin-top: 10px; }
.rem-form.hidden { display: none; }
.rem-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rem-email {
  flex: 1 1 180px; min-width: 0; background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 10px 14px; font: inherit;
}
.rem-email:disabled { opacity: 0.6; }
.rem-submit {
  background: var(--green); color: #fff; border: none; border-radius: var(--r-pill);
  padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.rem-submit:disabled { opacity: 0.6; cursor: default; }
.rem-consent { margin: 10px 0 0; font-size: var(--t-micro); color: var(--ink-3); line-height: 1.5; }
.rem-status { margin: 6px 0 0; font-size: var(--t-small); color: var(--ink-2); min-height: 1.2em; }

/* Save-this-pack card (Accounts Phase 2) — mirrors the reminder opt-in card */
.save-card { display: flex; flex-direction: column; gap: 10px; }
.save-cta {
  appearance: none; border: 1px solid var(--hairline); background: var(--surface-2);
  color: var(--ink); font: inherit; font-weight: 600; padding: 12px 14px;
  border-radius: var(--r-pill); cursor: pointer; text-align: center; width: 100%;
}
.save-cta:hover { border-color: var(--green); }
.save-form { margin-top: 2px; }
.save-form.hidden { display: none; }
.save-row { display: flex; gap: 8px; flex-wrap: wrap; }
.save-email {
  flex: 1 1 180px; min-width: 0; background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 10px 14px; font: inherit;
}
.save-email:disabled { opacity: 0.6; }
.save-submit {
  background: var(--green); color: #fff; border: none; border-radius: var(--r-pill);
  padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.save-submit:disabled { opacity: 0.6; cursor: default; }
.save-consent { margin: 10px 0 0; font-size: var(--t-micro); color: var(--ink-3); line-height: 1.5; }
.save-status { margin: 6px 0 0; font-size: var(--t-small); color: var(--green); min-height: 1.2em; }

/* My ClaimSarathi dashboard (Accounts Phase 2) */
.cs-acctlink { appearance: none; border: 1px solid var(--hairline); background: transparent; color: var(--ink); font: inherit; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; }
.cs-acctlink:hover { border-color: var(--green); }
.account-view { padding: 8px 0 40px; }
.acct-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.acct-back { align-self: flex-start; appearance: none; border: 0; background: transparent; color: var(--ink-3); font: inherit; cursor: pointer; padding: 4px 0; }
.acct-title { font-size: 22px; margin: 0; color: var(--ink); }
.acct-sec { font-size: 15px; margin: 8px 0 0; color: var(--ink-3); }
.acct-lead { color: var(--ink-3); margin: 0; line-height: 1.5; }
.acct-note { color: var(--green); margin: 0; line-height: 1.5; }
.acct-signin { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-email { flex: 1 1 200px; min-width: 0; padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink); font: inherit; }
.acct-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.acct-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); }
.acct-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-item-title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.acct-item-meta { font-size: var(--t-micro); color: var(--ink-3); }
.acct-verdict { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.acct-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.acct-empty { color: var(--ink-3); padding: 8px 0; }
.acct-btn { appearance: none; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.acct-btn.primary { background: var(--green); color: #fff; border: 0; }
.acct-btn.danger { color: #c0392b; border-color: rgba(192,57,43,.4); }
.acct-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.acct-status { font-size: var(--t-small); color: var(--green); margin: 0; min-height: 1.2em; }
