/* RenKeep design tokens — brand identity (logo PHI-2026-JYYH-DNWH, 27 Oct 2026)
   Night navy ground, brushed silver, gold light, Bodoni Moda wordmark.
   Golden ratio (phi = 1.618): type scale 16/26/42, layout 61.8/38.2,
   Fibonacci spacing 8/13/21/34/55/89; the logo's geometric line art echoes it.
   Visual language only. No energy or health claims. */
@font-face {
  font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda.woff") format("woff");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
:root {
  color-scheme: dark;
  --phi: 1.618;
  --s1: 8px; --s2: 13px; --s3: 21px; --s4: 34px; --s5: 55px; --s6: 89px;
  --t-sm: 13px; --t-base: 16px; --t-md: 26px; --t-lg: 42px;
  --lh: 1.618;
  --radius: 13px;
  --max: 1000px;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

  --bg: #0E1118;        /* night navy (logo ground) */
  --surface: #151A24;   /* raised panel */
  --soft: #1A2130;      /* quiet panel */
  --ink: #ECE9E2;       /* ivory (wordmark) */
  --heading: #F4F1EA;
  --muted: #A9B0BC;     /* brushed silver, 7:1 on --bg */
  --silver: #C9CDD3;
  --brand: #E4C27A;     /* gold light: links, primary actions (11:1 on --bg) */
  --on-brand: #0E1118;
  --accent: #C9A227;    /* gold line (rules, borders, progress) */
  --accent-text: #E4C27A;
  --accent-fill: #C9A227;
  --line: #2A3242;
  --warn-bg: #3A1F1B;
  --warn: #F4AE98;
  --warn-line: #E0644A;
  --ok-bg: #12291F; --ok: #9FE0BD; --ok-line: #3FA372;
  --maybe-bg: #33270F; --maybe: #FFD08A; --maybe-line: #D99A2B;
  --focus: #E4C27A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(120% 60% at 50% -10%, #1B2232 0%, var(--bg) 60%) fixed, var(--bg);
  font: var(--t-base)/var(--lh) system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", sans-serif;
}
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }

.top, main, .foot { max-width: var(--max); margin: 0 auto; padding-inline: var(--s3); }
.top { display: flex; align-items: center; justify-content: space-between; padding-block: var(--s3); }
.brand img { display: block; }
.lang select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1) var(--s2);
}

h1, .t1 { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.236; margin: 0 0 var(--s3); color: var(--heading); font-weight: 600; letter-spacing: .005em; }
h2 { font-family: var(--serif); font-size: var(--t-md); line-height: 1.382; margin: 0 0 var(--s2); color: var(--heading); font-weight: 600; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, serif; font-weight: 700; }
h3 { color: var(--heading); }
h3 { font-size: var(--t-base); margin: var(--s4) 0 var(--s1); }
.card h3:first-child { margin-top: 0; }
p { margin: 0 0 var(--s2); }
.lead { font-size: 1.236em; color: var(--muted); margin-bottom: var(--s4); }
.eyebrow { color: var(--accent-text); font-weight: 600; letter-spacing: .04em; margin-bottom: var(--s2); }
.muted { color: var(--muted); font-size: var(--t-sm); }

.screen { padding-block: var(--s5); }
.golden { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 860px) {
  .golden { grid-template-columns: 61.8fr 38.2fr; gap: var(--s5); align-items: start; }
}
.narrow { max-width: 618px; margin-inline: auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin-top: var(--s3); }
.card.soft { background: var(--soft); border-color: transparent; }
.card.first { border-inline-start: 5px solid var(--accent); }

.trust { list-style: none; padding: 0; margin: 0; }
.trust li { background: var(--soft); border-radius: var(--radius); padding: var(--s2) var(--s3); margin-bottom: var(--s2); }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-inline-end: var(--s1); }

button, .primary, .secondary, .ghost {
  font: inherit; cursor: pointer; border-radius: var(--radius); text-decoration: none;
  display: inline-block; padding: var(--s2) var(--s4); border: 1px solid transparent; min-height: 44px;
}
.primary { background: linear-gradient(180deg, #EBCB86, #C9A227); color: var(--on-brand); font-weight: 700; margin-block: var(--s2); box-shadow: 0 0 0 1px #F3DDA6 inset, 0 6px 21px -8px rgba(201,162,39,.55); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: transparent; color: var(--silver); border-color: #5B6475; }
.secondary:hover { color: var(--brand); border-color: var(--brand); }
.ghost { background: none; color: var(--muted); padding-inline: 0; margin-top: var(--s3); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.check { display: flex; gap: var(--s1); align-items: center; margin-bottom: var(--s2); cursor: pointer; }
.check input { width: 21px; height: 21px; accent-color: var(--brand); }

.bar { height: 5px; background: var(--line); border-radius: 5px; margin: var(--s1) 0 var(--s4); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.opts { display: grid; gap: var(--s2); }
.opts button {
  text-align: start; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); padding: var(--s3);
}
.opts button:hover { border-color: var(--brand); }

.urgent { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: var(--s2) var(--s3); font-weight: 600; }
.link { color: var(--brand); font-weight: 600; }

.inline { margin-top: var(--s3); }
.inline label { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s1); }
.row { display: flex; gap: var(--s1); flex-wrap: wrap; }
.row input { flex: 1 1 200px; min-width: 0; }
input[type="text"], input[type="url"], input[type="email"], input:not([type]), input[type="file"] {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2);
  max-width: 100%;
}

.steps { padding-inline-start: var(--s3); }
.steps li { margin-bottom: var(--s3); }
.steps strong { display: block; }
.ticks, .plain { padding-inline-start: var(--s3); }
.ticks li, .plain li { margin-bottom: var(--s1); }
.appeal {
  white-space: pre-wrap; word-wrap: break-word; font: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin: 0 0 var(--s2);
}

.status { min-height: var(--s3); color: var(--muted); text-align: center; }
.foot { padding-block: var(--s5); color: var(--muted); font-size: var(--t-sm); border-top: 1px solid var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

@media (max-width: 520px) {
  h1, .t1 { font-size: var(--t-md); }
  .screen { padding-block: var(--s4); }
  .primary { width: 100%; text-align: center; }
}

.env-tag { background: var(--accent-fill); color: var(--on-brand); text-align: center; font-size: var(--t-sm); font-weight: 600; padding: 5px 8px; letter-spacing: .04em; }
/* Grid children must be allowed to shrink below their content width on phones. */
.golden > * { min-width: 0; }
.appeal, .steps, .ticks, .plain { overflow-wrap: anywhere; }
input[type="file"] { width: 100%; }

/* Risk badge: color plus words, never color alone */
.risk { border-radius: var(--radius); padding: var(--s2) var(--s3); margin: 0 0 var(--s3); border-inline-start: 5px solid var(--line); background: var(--surface); }
.risk p { margin: 0 0 var(--s1); }
.risk-label { font-weight: 600; }
.risk-label strong { font-size: 1.236em; }
.risk-why { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s1); }
.risk-high { background: var(--warn-bg); border-color: var(--warn-line); }
.risk-high .risk-label, .risk-high strong { color: var(--warn); }
.risk-medium { background: var(--maybe-bg); border-color: var(--maybe-line); }
.risk-medium .risk-label, .risk-medium strong { color: var(--maybe); }
.risk-low { background: var(--ok-bg); border-color: var(--ok-line); }
.risk-low .risk-label, .risk-low strong { color: var(--ok); }
.small { font-size: var(--t-sm); }

/* Report */
.report-head { margin-bottom: var(--s4); }
.timeline { display: grid; gap: var(--s2); }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.phase h4 { margin: 0 0 var(--s1); color: var(--accent-text); font-size: var(--t-base); }
.phase ul { margin: 0; }
.warn li::marker { color: var(--warn-line); }
.appeal-label { font-weight: 600; margin: var(--s3) 0 var(--s1); }

/* Save as PDF / print: just the report, clean and readable */
@media print {
  .top, .foot, .env-tag, .no-print, #status, #s-welcome, #s-quiz, #s-result { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .screen { padding: 0; }
  .golden { display: block; }
  .phase, .appeal, .risk { break-inside: avoid; border-color: #999; }
  a.link::after { content: " (" attr(href) ")"; font-weight: normal; }
  h3 { break-after: avoid; }
}
.warn-card { border-inline-start: 5px solid var(--warn-line); }
.warn-card .row { margin-top: var(--s2); gap: var(--s2); }
.warn-card .row .primary, .warn-card .row .secondary, #s-plan .row .primary, #s-plan .row .secondary { margin: 0; }

/* Safety kit (kit.html) */
.tabs { display: flex; gap: var(--s1); flex-wrap: wrap; padding-top: var(--s3); border-bottom: 1px solid var(--line); }
.tabs a { padding: var(--s1) var(--s2); color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }
.select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1) var(--s2); min-height: 44px; max-width: 100%; }
.timer-row { align-items: center; gap: var(--s3); margin-top: var(--s2); }
.timer { margin: 0; font-weight: 600; }
.timer strong { font-size: 1.236em; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; counter-reset: gh; }
.checklist > li { counter-increment: gh; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2) var(--s3); margin-top: var(--s2); }
.checklist > li.done { opacity: .62; }
.checklist .check { align-items: flex-start; margin: 0; }
.checklist .check input { margin-top: 3px; flex: none; }
.checklist strong::before { content: counter(gh) ". "; color: var(--accent-text); }
.checklist strong, .checklist .detail { display: block; }
.checklist > li > p { margin: var(--s1) 0 0; padding-inline-start: 29px; }
.pills { display: flex; gap: var(--s1); flex-wrap: wrap; margin-bottom: var(--s3); }
.pill { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: var(--s1) var(--s3); }
.pill[aria-selected="true"] { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.key-row, .acc-row { border-bottom: 1px solid var(--line); padding-block: var(--s2); }
.key-row .ghost { margin: 0; min-height: 0; padding: 0; }
.acc-row .check { margin: 0; }
.acc-row .row { margin-top: var(--s1); }
.acc-row .select { flex: 1 1 160px; }
.tree { padding-inline-start: var(--s3); }
.tree li { margin-bottom: var(--s2); overflow-wrap: anywhere; }
.warn-text { color: var(--warn); }
.home-kit { border-inline-start: 5px solid var(--brand); }
@media print {
  .tabs, #t-golden-hour, #t-secure, #map-keys, #map-key-form, .acc-row { display: none !important; }
}
.foot a { color: var(--brand); }
.narrow-left { max-width: 680px; }
.block-label { display: block; font-weight: 600; margin: var(--s2) 0 var(--s1); }
textarea {
  width: 100%; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2);
}
details.how { margin: var(--s2) 0; }
details.how summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.verdict { border-radius: var(--radius); padding: var(--s2) var(--s3); margin-top: var(--s3); border-inline-start: 5px solid var(--line); }
.verdict.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.verdict.maybe { background: var(--maybe-bg); border-color: var(--maybe-line); }
.verdict.bad { background: var(--warn-bg); border-color: var(--warn-line); }
.verdict-title { font-weight: 700; }
.ok-text { color: var(--ok); font-weight: 600; }
.game-score { font-size: var(--t-md); font-weight: 700; color: var(--brand); }
#game-buttons .secondary { flex: 1 1 120px; }
.fill { border-bottom: 1px solid var(--muted); padding-bottom: var(--s3); }
.emergency { border-inline-start: 5px solid var(--warn-line); }
@media print {
  #t-prepare .minor, #t-after .pills, #t-check { display: none !important; }
  .emergency { border: 2px solid #000; }
}

/* Tap-path illustrations (original drawings, no platform screenshots or logos) */
.tap-path { margin: var(--s2) 0 0; }
.tap-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s2); }
.tap-arrow { color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; }
[dir="rtl"] .tap-arrow { transform: scaleX(-1); }
.phone {
  width: 120px; min-height: 150px; background: var(--surface); border: 2px solid var(--ink);
  border-radius: 16px; padding: 8px 7px 10px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 0 var(--line);
}
.phone-bar { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 5px; min-width: 0; }
.phone-app { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-step { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.phone-row { border-radius: 7px; min-height: 14px; }
.ghost-row { background: var(--soft); height: 14px; }
.ghost-row.short { width: 70%; }
.phone-row.hit { position: relative; background: var(--brand); color: var(--bg); padding: 6px 7px; font-size: 11px; font-weight: 600; line-height: 1.25; outline: 2px solid var(--accent); outline-offset: 2px; }
.phone.last .phone-row.hit { background: var(--accent-fill); color: #fff; }
.hit-label { overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.hit-tap { position: absolute; bottom: -12px; inset-inline-end: -4px; font-size: 18px; filter: drop-shadow(0 1px 0 #fff); }
.tap-path figcaption { margin-top: var(--s1); }
.steps .tap-path strong { display: inline; }
@media (max-width: 520px) { .phone { width: calc(50% - 10px); min-height: 136px; } }
@media print { .phone { box-shadow: none; border-color: #000; } }

/* Wave 3: target quiz, badge, voice */
.tq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--s2) var(--s3); margin: 0 0 var(--s2); }
.tq legend { font-weight: 700; padding: 0; float: inline-start; width: 100%; margin-bottom: 6px; }
.tq legend + * { clear: both; }
.tq .check { margin: 6px 0; }
.badge-preview img { display: block; max-width: 100%; height: auto; }
button.speak { margin: var(--s1) 0; min-height: 36px; color: var(--brand); font-weight: 600; }
.prep-panel { margin-top: var(--s2); }
details.gaming { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--s2) var(--s3); margin-top: var(--s2); }
details.gaming summary { cursor: pointer; font-weight: 700; color: var(--brand); }

/* Launch readiness: header link, prevention section, comparison and price lines */
.nav-link { margin-inline-start: auto; margin-inline-end: var(--s2); color: var(--brand); font-weight: 600; font-size: var(--t-sm); }
.protect { padding-top: 0; }
.cmp-grid { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
@media (min-width: 560px) { .cmp-grid { grid-template-columns: 1fr 1fr; } }
.cmp-grid h4 { margin: 0 0 var(--s1); color: var(--accent-text); }
.price-line { font-weight: 700; font-size: 1.1rem; color: var(--brand); margin-bottom: 4px; }

/* v2 case file, evidence pack, leftovers, escalation */
.case-next { background: var(--surface); border-inline-start: 5px solid var(--accent); border-radius: var(--radius); padding: var(--s2) var(--s3); font-weight: 600; }
.checks { list-style: none; padding-inline-start: 0; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: var(--s1); }
.checks input { margin-top: .3rem; flex: none; width: 1.15rem; height: 1.15rem; }
.checks strong { display: block; }
.did { display: inline-flex; gap: .4rem; align-items: center; margin-top: .4rem; font-size: .92rem; color: var(--muted); }
.did input { width: 1.1rem; height: 1.1rem; }
.score { font-weight: 700; color: var(--brand); }
.ghost.danger { color: var(--warn); }
.esc { margin-top: var(--s4, 2rem); }
.esc select, #case select { max-width: 100%; }
.tag { display: inline-block; font-size: .78rem; padding: 0 .45rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn); margin-inline-start: .4rem; }
.req-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.req-row code { word-break: break-all; }
#vault-list code { word-break: break-all; font-size: .78rem; }
.reopen { margin-top: var(--s3); }
.reopen summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.cmp-grid .cmp-ai h4 { color: var(--muted); }
.cmp-ai li { color: var(--muted); }
#biz input, #biz select { max-width: 100%; }
#meta-cases h5 { margin: var(--s2) 0 .3rem; font-size: 1rem; }
.cmp-grid .cmp-ai { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s2); }

/* Brand details */
.top { border-bottom: 1px solid var(--line); }
.brand img { height: 48px; width: auto; }
@media (max-width: 520px) { .brand img { height: 40px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: var(--t-sm); }
[dir="rtl"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--t-base); }
.card { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
.card.first, .case-next { border-inline-start-color: var(--accent); }
select, textarea { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; padding: var(--s1) var(--s2); }
::selection { background: #C9A22755; }

/* Print and Save as PDF stay light and readable */
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --soft: #fff; --ink: #000; --heading: #0E1118; --muted: #444;
    --brand: #6B5212; --accent: #9A7A1C; --accent-text: #6B5212; --line: #bbb;
    --warn-bg: #fff; --warn: #8A2E15; --ok-bg: #fff; --ok: #1F5E40; --maybe-bg: #fff; --maybe: #7A4A00; }
  body { background: #fff !important; }
}

/* Emergency Room */
.er-door { display: block; text-align: center; font-size: 1.15em; padding-block: var(--s3); margin: 0 0 var(--s1); }
.er-door-card { border-inline-start: 5px solid var(--warn-line); margin: 0 0 var(--s4); }
.er-ch li { margin-bottom: var(--s2); }
.er-ch p { margin: 2px 0 0; }
.er-doc { border-top: 1px solid var(--line); padding-top: var(--s2); margin-top: var(--s3); }
.er .opts button { font-size: 1.05em; padding: var(--s3); }
@media print {
  body.er .top, body.er .foot, body.er #er-triage, body.er .golden, body.er #er-case, body.er #er-labels, body.er .env-tag, body.er #status { display: none !important; }
  body.er .er-doc { break-inside: avoid; }
}
.er-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .12em; color: var(--brand); margin: var(--s1) 0 0; }
.home-headline { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); line-height: 1.35; margin: 0 0 var(--s2); }
.hero-title { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem); margin: var(--s1) 0; }
/* RenKeep Ready */
.tbl-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.cmp-table th, .cmp-table td { border-bottom: 1px solid var(--line); padding: var(--s1); text-align: start; vertical-align: top; }
.cmp-table td:not(:first-child), .cmp-table th:not(:first-child) { text-align: center; width: 22%; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
.plan-card { margin-top: 0; display: flex; flex-direction: column; }
.plan-card.plan-pick { border: 2px solid var(--accent, #1f6f5c); }
.plan-card .primary { text-align: center; text-decoration: none; margin-top: auto; }
.plan-price strong { font-size: 1.6rem; color: var(--brand); }
.biz-card select, .biz-form select { min-width: 8.5rem; }
.biz-form input, .biz-form select { margin-bottom: var(--s1); }
.rd-sec { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s2); }
.rd-sec h4 { margin: 0 0 var(--s1); color: var(--accent-text); }
.handle-box { margin-bottom: var(--s2); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.proof-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; color: var(--brand); margin-inline-end: var(--s1); }
.copy-block { white-space: pre-wrap; word-break: break-word; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1) var(--s2); font-size: var(--t-sm); }
.finding { border-inline-start: 3px solid var(--warn-line); padding-inline-start: var(--s2); margin-bottom: var(--s2); }
.danger-btn { background: linear-gradient(180deg, #F08A73, #E0644A); box-shadow: none; }
.score form label { display: block; margin-top: var(--s1); }
.digest-form input:not([type=checkbox]), .digest-form select { width: 100%; margin-bottom: var(--s1); }
.digest-foot { margin-bottom: var(--s2); }
.digest-foot summary { cursor: pointer; color: var(--brand); }
.dl-menu { margin-block: var(--s1); }
.dl-menu > summary { display: inline-block; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1) var(--s3); }
.dl-menu > summary::-webkit-details-marker { display: none; }
/* Urdu, Hindi and Bengali (27 Oct): system fonts for their scripts; Nastaliq needs more line height. */
html:lang(ur) body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; line-height: 2; }
html:lang(ur) h1, html:lang(ur) h2 { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; line-height: 1.9; }
html:lang(hi) body, html:lang(hi) h1, html:lang(hi) h2 { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif; }
html:lang(bn) body, html:lang(bn) h1, html:lang(bn) h2 { font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif; }

/* Free tools (/vaccine/, /check-before-you-pay/, /report-scam/) */
.scam-msg { border-inline-start: 4px solid var(--brand); }
.scam-msg #vx-msg { font-size: 1.05em; white-space: pre-wrap; }
.big-score { font-size: 2.6em; font-weight: 700; margin: var(--s2) 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s3); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.link-btn { background: none; border: 0; color: var(--brand); text-decoration: underline; padding: 0; cursor: pointer; }
.opts.row { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.opts button.picked { border-color: var(--brand); outline: 2px solid var(--brand); }
.opts button.is-safe { border-color: var(--ok-line); }
.opts button.is-wrong { border-color: var(--warn-line); }
.tool .actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.qr-img { background: #fff; padding: 6px; border-radius: 6px; }
.partner-bar { background: var(--soft); color: var(--muted); text-align: center; font-size: var(--t-sm); padding: 6px; }
.guide-rows input { display: block; width: 100%; margin: 4px 0; }
.sign-row { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s3); }
.safe-card input { font-size: 1.4em; }
@media print { .no-print, .top, .foot, .env-tag { display: none !important; } body { background: #fff; color: #111; } }
.visually-hidden { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
#rs-shot-box { position: relative; }
.file-btn { display: block; text-align: center; cursor: pointer; }
.visually-hidden:focus + .file-btn { outline: 2px solid var(--focus); }

/* Module 6: Circle warning page, Lockdown, Hide me */
.circle-view .lead.warn-text { font-weight: 600; }
.circle-card .qr svg, .qr svg { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 6px; }
#ec-qr { background: #fff; padding: 6px; border-radius: 6px; }
#ec-url, #lk-warn-url { flex: 1; min-width: 0; }
.lockdown .plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border: 1px solid currentColor; border-radius: 999px; font-size: .95rem; }
.skip-step { border-inline-start: 3px solid #C9A227; padding-inline-start: .6rem; }
.record { margin-top: 1.5rem; }
@media print { .circle-card .card { border: 2px solid #000; } }

/* Module 7: Update now */
.update-bar { margin: .5rem auto 1rem; max-width: 46rem; padding: .7rem 1rem; border-radius: 10px; border: 1px solid currentColor; font-size: .95rem; }
.update-bar.strong { border-color: #C9A227; background: rgba(201, 162, 39, .12); font-weight: 600; }
.update-bar .ghost { padding: .2rem .6rem; }
.updatenow .card h3 { margin-top: 0; }

/* Long code or message blocks wrap on phones (390 px, no horizontal scroll). */
pre.card { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.notify form.inline input[type="email"], .notify form.inline input[inputmode="numeric"] { width: 100%; box-sizing: border-box; }
