/* 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: 30px; --t-h1: 22px; --t-h2: 18px; --t-h3: 15px; --t-body: 14.5px; --t-small: 13px; --t-micro: 11.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: var(--t-micro);
  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-madeby 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 { 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-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: 5px; font-size: var(--t-micro); font-weight: 600; color: var(--ink-2); }
.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: 11px; 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: 11px; 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: 19px; letter-spacing: -0.02em; color: var(--accent); }
.brandrow .s { font-size: 13px; 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: 12px; 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: 29px; line-height: 1.13; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 9px; }
.hero-sub { color: var(--muted); font-size: 15px; 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: 16px; 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: 14px; 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: 14px; 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: 11.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: 11px; 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: 12px; 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: 14px; 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: 13.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: 14.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: 12.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: 14px; 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: 12.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: 12px; 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: 15.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: 11.5px; margin: 11px 0 0; text-align: center; }
/* calm inline validation callout (replaces native alert) */
.form-hint { margin: 11px 0 0; font-size: 12.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: 11px; 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: 14px; 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; }
/* 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: 14.5px; letter-spacing: -0.01em; line-height: 1.2; }
.ph-product { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ph-tag { font-size: 11px; 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: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.verdict .v-title { margin-top: 9px; font-size: 26px; line-height: 1.14; font-weight: 800; letter-spacing: -0.025em; }
.verdict .v-sub { margin-top: 7px; font-size: 14px; 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: 12.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: 12.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: 13px; 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: 14.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: 12px; 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: 12px; 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: 11px; 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: 11.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: 15.5px; line-height: 1.55; color: var(--ink); }
.clause-loc { margin-top: 10px; padding-left: 14px; font-size: 12px; color: var(--muted); }

/* ---- evidence checklist ---- */
.check-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 0 4px; }
.counter { font-size: 12px; 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: 14px; 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: 12.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: 15px; font-weight: 700; margin-top: 2px; letter-spacing: -0.01em; }
.deadline .dl-badge { display: inline-flex; align-items: center; font-size: 12.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: 15px; font-weight: 700; letter-spacing: -0.01em; }
.draft-ready { font-size: 12px; 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: 15px; 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: 13px; 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: 11.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: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.esc .esc-intro { display: block; font-size: 12px; 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: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.esc-step .st { font-size: 13.5px; font-weight: 700; }
.esc-step .sd { font-size: 12px; 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: 11px; 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: 11px; 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: 12px; 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: 11px; 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: 11.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: 11.5px; color: var(--muted); font-weight: 600; }
.cc-val { font-size: 14.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: 11.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: 14.5px; font-weight: 700; color: var(--ink); }
.of-link { font-size: 13.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: 12px; 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: 12.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: 14px; font-weight: 700; color: var(--ink); }
.ih-src { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 11px; 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: 11.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: 13px; 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: 12.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: 15px; 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: 10.5px; line-height: 1.45; color: var(--hint); text-align: center; }
