/* Layout: one reading column of iOS inset-grouped lists between a translucent top bar and a translucent bottom toolbar;
   country details, weights and comparison open in a bottom sheet you can swipe down; feedback is a centred dialog. */
:root {
  --bg: #F2F2F7; --card: #FFFFFF; --fg: #1C1C1E;
  --fg-2: rgba(60, 60, 67, 0.66); --fg-3: rgba(60, 60, 67, 0.36);
  --sep: rgba(60, 60, 67, 0.16); --fill: rgba(118, 118, 128, 0.12); --fill-2: rgba(118, 118, 128, 0.2);
  --accent: #0071E3; --accent-soft: rgba(0, 113, 227, 0.1); --on-accent: #FFFFFF;
  --good: #248A3D; --good-soft: rgba(36, 138, 61, 0.12);
  --warn: #B25000; --warn-soft: rgba(255, 149, 0, 0.14);
  --bad: #D70015; --bad-soft: rgba(255, 59, 48, 0.12);
  --bar: rgba(242, 242, 247, 0.72); --bar-edge: rgba(255, 255, 255, 0.6);
  --scrim: rgba(0, 0, 0, 0.32);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  --i-blue: #0A84FF; --i-indigo: #5E5CE6; --i-orange: #F58A07; --i-green: #28B84E; --i-teal: #1FA9C4; --i-pink: #FF375F;
  --i-red: #FF453A; --i-purple: #A855E8; --i-yellow: #E3A100; --i-gray: #8E8E93; --i-brown: #A2845E; --i-mint: #00B3AA;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-card: 14px; --r-ctl: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1C1C1E; --fg: #F5F5F7;
    --fg-2: rgba(235, 235, 245, 0.64); --fg-3: rgba(235, 235, 245, 0.32);
    --sep: rgba(84, 84, 88, 0.55); --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.36);
    --accent: #2997FF; --accent-soft: rgba(41, 151, 255, 0.16);
    --good: #30D158; --good-soft: rgba(48, 209, 88, 0.16); --warn: #FF9F0A; --warn-soft: rgba(255, 159, 10, 0.16);
    --bad: #FF453A; --bad-soft: rgba(255, 69, 58, 0.16);
    --bar: rgba(22, 22, 24, 0.72); --bar-edge: rgba(255, 255, 255, 0.08); --scrim: rgba(0, 0, 0, 0.55);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --fg: #F5F5F7;
  --fg-2: rgba(235, 235, 245, 0.64); --fg-3: rgba(235, 235, 245, 0.32);
  --sep: rgba(84, 84, 88, 0.55); --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.36);
  --accent: #2997FF; --accent-soft: rgba(41, 151, 255, 0.16);
  --good: #30D158; --good-soft: rgba(48, 209, 88, 0.16); --warn: #FF9F0A; --warn-soft: rgba(255, 159, 10, 0.16);
  --bad: #FF453A; --bad-soft: rgba(255, 69, 58, 0.16);
  --bar: rgba(22, 22, 24, 0.72); --bar-edge: rgba(255, 255, 255, 0.08); --scrim: rgba(0, 0, 0, 0.55);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.47 var(--font); letter-spacing: -0.012em; padding-inline: 16px; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1 { margin: 0; font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; text-wrap: balance; }
h2 { margin: 0; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h3 { margin: 0; font-size: 1.0625rem; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }

/* top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin-inline: -16px; padding: 10px 16px 0; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.topbar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.brand { font-weight: 600; font-size: 0.9375rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.brand:hover { text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--fg-2); padding: 4px 10px; border-radius: 999px; background: var(--fill); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: block; }
.pill i.bad { background: var(--bad); }
.pill-btn { border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.875rem; padding: 6px 12px; border-radius: 999px; transition: transform 100ms ease-out, background 150ms; white-space: nowrap; }
.pill-btn:active { transform: scale(0.96); background: var(--fill-2); }
.progress { max-width: 760px; margin: 10px auto 0; height: 3px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.progress b { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 450ms cubic-bezier(.22, 1, .36, 1); }
.topbar::after { content: ""; display: block; height: 10px; margin-inline: -16px; margin-bottom: -10px; background: linear-gradient(var(--bar), transparent); pointer-events: none; }

main { max-width: 760px; margin: 0 auto; padding-block: 28px calc(120px + env(safe-area-inset-bottom, 0px)); }
.view, .rbody { display: flex; flex-direction: column; gap: 28px; }
.head { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; color: var(--fg-2); letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; }
.tile { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.tile svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lede { color: var(--fg-2); font-size: 1.0625rem; line-height: 1.45; max-width: 62ch; text-wrap: pretty; }
.note { color: var(--fg-2); font-size: 0.875rem; line-height: 1.45; max-width: 66ch; padding-inline: 4px; }
.muted { color: var(--fg-2); font-size: 0.875rem; font-weight: 400; }
.group { background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.empty { padding: 40px 20px; text-align: center; color: var(--fg-2); }
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 4px; flex-wrap: wrap; }

/* landing */
.hero { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.02; }
.hero .lede { font-size: 1.1875rem; }
.facts-row, .facts-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-size: 0.8125rem; color: var(--fg-2); background: var(--fill); padding: 5px 10px; border-radius: 999px; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.toc-item { display: flex; align-items: center; gap: 10px; background: var(--card); border: 0; text-align: left; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 0.9375rem; min-width: 0; transition: transform 100ms ease-out; }
.toc-item:active { transform: scale(0.97); }
.toc-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-item .tile { width: 26px; height: 26px; border-radius: 7px; }
.toc-item .tile svg { width: 16px; height: 16px; }
.privacy { font-size: 0.8125rem; color: var(--fg-2); line-height: 1.45; padding-inline: 4px; max-width: 62ch; }

/* questions */
.q { display: flex; flex-direction: column; gap: 8px; }
.q-label { margin: 0; padding-inline: 4px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; }
.q-label .opt { font-weight: 400; color: var(--fg-3); font-size: 0.875rem; margin-left: 6px; letter-spacing: 0; }
.q-hint { margin: -2px 0 0; padding-inline: 4px; color: var(--fg-2); font-size: 0.875rem; line-height: 1.4; max-width: 62ch; }
.q-note { padding-inline: 4px; font-size: 0.8125rem; color: var(--warn); }
.row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; padding: 12px 16px; min-height: 48px; position: relative; transition: background 120ms ease-out; }
.row + .row::before, .lrow + .lrow::before, .wrow + .wrow::before, .fbar + .fbar::before, .srclist a + a::before, .log .item + .item::before, .prog + .prog::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); transform: scaleY(0.5); transform-origin: top; }
.row:active { background: var(--fill); transition: none; }
.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row .txt small { color: var(--fg-2); font-size: 0.8125rem; line-height: 1.35; }
.group.compact .row { min-height: 42px; padding-block: 9px; }
.check { width: 22px; height: 22px; flex: none; display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 160ms, transform 260ms cubic-bezier(.3, 1.4, .5, 1); }
.check svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.row[aria-checked="true"] .check { opacity: 1; transform: none; }
.row[aria-checked="true"] .txt > span { color: var(--accent); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q .chip { border: 0; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--sep); padding: 9px 14px; border-radius: 999px; font-size: 0.9375rem; line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; transition: transform 100ms ease-out, background 160ms, color 160ms; color: var(--fg); font-weight: 400; }
.q .chip:active { transform: scale(0.95); }
.q .chip[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.q .chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.q .chip[aria-checked="true"] svg { display: block; }
.shake { animation: shake 320ms ease-in-out; }
@keyframes shake { 20% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 2px; border-radius: var(--r-ctl); background: var(--fill); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 0.875rem; white-space: nowrap; transition: transform 100ms ease-out; font-variant-numeric: tabular-nums; }
.seg button:active { transform: scale(0.95); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; color: var(--accent); }
.seg5 { display: grid; grid-template-columns: repeat(5, 1fr); }
.seg5 button { padding: 8px 0; font-weight: 600; font-size: 0.9375rem; }
.seg-cap { display: flex; justify-content: space-between; gap: 12px; padding-inline: 4px; font-size: 0.8125rem; color: var(--fg-2); }
.seg-cap span:last-child { text-align: right; }
.field { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 0 16px; min-height: 48px; }
.field input, .field textarea { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 12px 0; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.field .unit { color: var(--fg-2); font-size: 0.9375rem; white-space: nowrap; }
.field:focus-within { box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.money-eq { padding-inline: 4px; font-size: 0.875rem; color: var(--fg-2); font-variant-numeric: tabular-nums; min-height: 1.2em; }
input::placeholder, textarea::placeholder { color: var(--fg-3); }
input[type=number] { font-variant-numeric: tabular-nums; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; min-height: 48px; position: relative; }
.lrow label { flex: 1; min-width: 0; }
.lrow select { border: 0; background: var(--fill); border-radius: 8px; padding: 6px 28px 6px 10px; font-size: 1rem; appearance: none; -webkit-appearance: none; color: var(--fg-2);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.lrow select.set { color: var(--accent); background-color: var(--accent-soft); font-weight: 500; }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 16px; position: relative; }
.wrow label { font-size: 0.9375rem; }
.wrow output { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); font-size: 0.875rem; text-align: right; }
.wrow input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); margin: 0; height: 26px; }

/* summary list */
.sumlist .row { cursor: pointer; }
.sumlist .meta { font-size: 0.8125rem; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chev svg, summary svg { width: 8px; height: 13px; fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 200ms; }
.ring-s { width: 22px; height: 22px; flex: none; }
.ring-s circle { fill: none; stroke-width: 3; }
.ring-s .bgc { stroke: var(--fill-2); }
.ring-s .fgc { stroke: var(--good); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.actions { display: flex; flex-direction: column; gap: 10px; }

/* buttons & bottom bar */
.btn { border: 0; border-radius: 12px; min-height: 48px; padding: 0 20px; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 100ms ease-out, opacity 150ms; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--fill); color: var(--accent); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg[viewBox="0 0 9 15"] { width: 9px; height: 15px; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top: 0.5px solid var(--bar-edge); }
.bottombar-in { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bottombar .btn-primary { flex: 1; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* report */
.profile { font-size: 0.9375rem; color: var(--fg-2); line-height: 1.5; max-width: 66ch; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ins { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px 14px 18px; position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ins::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 3px 3px 0; background: var(--accent); }
.ins[data-l="critical"]::before { background: var(--bad); }
.ins[data-l="warn"]::before { background: var(--warn); }
.ins h3 { font-size: 0.9375rem; }
.ins p { font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.list { display: flex; flex-direction: column; gap: 10px; }
.crow { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px 12px 10px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; text-align: left; position: relative; cursor: pointer; transition: transform 120ms ease-out, box-shadow 200ms; }
.crow:hover { box-shadow: var(--shadow), 0 0 0 1px var(--sep); }
.crow:active { transform: scale(0.985); }
.crow.dim { opacity: 0.62; }
.rank { font-family: var(--font-round); font-weight: 700; font-size: 0.9375rem; color: var(--fg-3); font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: center; }
.crow .flag { grid-column: 2; }
.cname { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cname b { font-size: 1.0625rem; letter-spacing: -0.02em; font-weight: 650; }
.tagline { color: var(--accent); font-weight: 600; font-size: 0.875rem; line-height: 1.3; }
.cname .tagline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .chips { grid-column: 3 / -1; gap: 6px; margin-top: 4px; padding-right: 34px; }
.chip { font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--fg-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.ring { width: 52px; height: 52px; position: relative; display: grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bgc { stroke: var(--fill-2); }
.ring .fgc { stroke-linecap: round; }
.ring .fgc.good { stroke: var(--good); } .ring .fgc.warn { stroke: var(--warn); } .ring .fgc.bad { stroke: var(--bad); }
.ring b { font-family: var(--font-round); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring.big { width: 72px; height: 72px; }
.ring.big b { font-size: 1.375rem; }
.crow .ring { grid-column: 4; grid-row: 1; }
.cmp { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--fill); display: grid; place-items: center; transition: transform 100ms, background 150ms; }
.cmp:active { transform: scale(0.9); }
.cmp svg { width: 14px; height: 14px; fill: none; stroke: var(--fg-2); stroke-width: 2.4; stroke-linecap: round; }
.cmp[aria-pressed="true"] { background: var(--accent); }
.cmp[aria-pressed="true"] svg { stroke: #fff; }
.cmpbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 25; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); border: 0.5px solid var(--bar-edge); font-size: 0.875rem; max-width: calc(100% - 32px); white-space: nowrap; }
.cmpbar .btn { min-height: 38px; border-radius: 999px; padding: 0 14px; font-size: 0.875rem; }
.disclaimer { font-size: 0.8125rem; color: var(--fg-2); line-height: 1.5; padding-inline: 4px; max-width: 70ch; }

/* details lists */
.secs { display: flex; flex-direction: column; gap: 8px; }
.secs details, details.card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.secs summary, details.card summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.secs summary .muted { margin-left: auto; margin-right: 6px; }
.secs summary::-webkit-details-marker, details.card summary::-webkit-details-marker { display: none; }
.secs details[open] > summary svg, details.card[open] > summary svg { transform: rotate(90deg); }
.secs details > p { padding: 0 16px 14px; font-size: 0.9375rem; line-height: 1.55; max-width: 68ch; }
.card-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.card-body h4 { margin: 0 0 2px; font-size: 0.9375rem; }
.card-body p { font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); }
.steps { list-style: none; margin: 0; padding: 4px 16px 6px; counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; font-size: 0.9375rem; line-height: 1.45; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 0.8125rem/26px var(--font-round); text-align: center; }
.steps li::after { content: ""; position: absolute; left: 12.5px; top: 28px; bottom: 2px; width: 1px; background: var(--sep); }
.steps li:last-child::after { display: none; }
.progs { display: flex; flex-direction: column; }
.secs .progs { padding: 0 0 4px; }
.prog { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; font-size: 0.9375rem; }
.prog-h { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.prog p { font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); }
.prog a { font-size: 0.8125rem; }
.prog.warning b { color: var(--warn); }
.muted-prog { opacity: 0.6; }
.prep { display: flex; flex-direction: column; padding: 0 0 6px; }
.prep-item { display: flex; gap: 12px; padding: 10px 16px; align-items: flex-start; cursor: pointer; }
.prep-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--good); flex: none; }
.prep-item > span { display: flex; flex-direction: column; gap: 3px; font-size: 0.9375rem; line-height: 1.45; }
.prep-item > span > span { color: var(--fg-2); font-size: 0.875rem; }
.prep-item input:checked + span b { text-decoration: line-through; color: var(--fg-2); }
.src { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8125rem; }
.fbcta { padding: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.fbcta > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.fbcta .note { padding: 0; }
.sentinel { height: 1px; }

/* sheet */
.sheet-root { position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 760px; height: 92vh; height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: var(--sheet-shadow); transform: translate3d(0, 100%, 0); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet-grab { padding: 8px 16px 10px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 10px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-title h2 { font-size: 1.25rem; min-width: 0; }
.sheet-body { overflow-y: auto; padding: 4px 16px 28px; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 22px; flex: 1; min-height: 0; }
.dhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.dhead-l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dhead .lede { font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--sep); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.fact { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact .k { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-2); font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fact .k em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--warn); background: var(--warn-soft); padding: 0 6px; border-radius: 6px; }
.fact .v { font-size: 0.9375rem; line-height: 1.35; overflow-wrap: anywhere; }
.armybox { border-radius: 14px; padding: 12px 14px; font-size: 0.9375rem; line-height: 1.5; background: var(--card); box-shadow: var(--shadow); }
.armybox.medium { background: var(--warn-soft); box-shadow: none; }
.armybox.high { background: var(--bad-soft); box-shadow: none; }
.armybox b { display: block; font-size: 0.8125rem; margin-bottom: 2px; }
.armybox br + b, .armybox b + br { display: inline; }
.pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pc ul { margin: 0; padding: 12px 14px 12px 32px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); font-size: 0.9375rem; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.pc h4 { margin: 0 0 6px 4px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-2); }
.pc .pro li::marker { color: var(--good); }
.pc .con li::marker { color: var(--bad); }
.fbars { display: flex; flex-direction: column; }
.fbar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 2.2em; gap: 10px; align-items: center; padding: 8px 14px; font-size: 0.875rem; position: relative; }
.fbar .w { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.fbar .w i { width: 4px; height: 4px; border-radius: 50%; background: var(--fill-2); }
.fbar .w i.on { background: var(--accent); }
.fbar .track { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.fbar .track b { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.fbar .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fg-2); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.why div { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 0.875rem; }
.why h4 { margin: 0 0 6px; font-size: 0.8125rem; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; }
.why ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.srclist { display: flex; flex-direction: column; }
.srclist a { padding: 10px 14px; font-size: 0.9375rem; position: relative; overflow-wrap: anywhere; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--shadow); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.875rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 0.5px solid var(--sep); }
th { font-weight: 600; color: var(--fg-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; width: 26%; }
thead th { font-size: 1rem; text-transform: none; letter-spacing: -0.01em; color: var(--fg); }
td.best { color: var(--good); font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; }
.log { display: flex; flex-direction: column; }
.log .item { padding: 12px 16px; display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; position: relative; font-size: 0.9375rem; }
.log time { font-size: 0.8125rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.log .code { font-family: var(--mono); font-size: 0.75rem; color: var(--fg-2); }
.log a { font-size: 0.8125rem; }

/* feedback dialog */
.fb-root { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.fb-card { width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-form { display: flex; flex-direction: column; gap: 14px; }
.fb-rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fb-rate legend { font-weight: 600; font-size: 0.9375rem; padding: 0 4px 6px; }
.fb-field { display: flex; flex-direction: column; gap: 6px; }
.fb-field > span { font-weight: 600; font-size: 0.9375rem; padding-inline: 4px; }
.fb-field textarea, .fb-field input { width: 100%; border: 0; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 10px 12px; font-size: 1rem; line-height: 1.45; resize: vertical; outline: none; }
.fb-field textarea:focus, .fb-field input:focus { box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.fb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--fg-2); padding-inline: 4px; cursor: pointer; }
.fb-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.fb-actions .btn { width: 100%; }
.fb-result { font-size: 0.875rem; display: flex; flex-direction: column; gap: 8px; }
.fb-result.good { color: var(--good); font-weight: 600; }
.fb-result.warn { color: var(--fg); }
.copybox { width: 100%; font: 0.8125rem/1.5 var(--mono); border: 0; border-radius: 12px; padding: 10px 12px; background: var(--card); box-shadow: var(--shadow); color: var(--fg); }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 0.875rem; max-width: calc(100% - 32px); }

@media (max-width: 480px) {
  .crow { padding: 10px 10px 10px 6px; gap: 2px 8px; }
  .crow .ring { width: 44px; height: 44px; }
  .crow .ring b { font-size: 0.875rem; }
  .crow .chips { padding-right: 30px; }
  .pill { display: none; }
  .topbar .pill-btn { padding: 6px 10px; font-size: 0.8125rem; }
  .bottombar .btn-ghost span { display: none; }
  .bottombar .btn-ghost { padding: 0 16px; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .row-actions .btn { padding: 0 12px; }
  .q .chip { padding: 8px 12px; font-size: 0.9375rem; }
  .hero h1 { font-size: 2.375rem; }
  .sheet-body { padding-inline: 12px; }
  .dhead { grid-template-columns: auto minmax(0, 1fr); }
  .dhead .ring { grid-column: 2; justify-self: end; grid-row: 1; }
  .dhead .dhead-l { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
@media (prefers-reduced-transparency: reduce) { .topbar, .bottombar, .cmpbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .group, .crow, .ins, .fact, .pc ul, .secs details, .armybox, .field { box-shadow: inset 0 0 0 1px var(--fg-3); } }

/* boarding pass on the quiz summary */
.pass { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.pass-top { padding: 18px 20px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.pass-k { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-2); font-weight: 600; }
.pass-city { font-family: var(--font-round); font-size: clamp(1.375rem, 5vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.pass-to { text-align: right; }
.pass-to .pass-city { color: var(--accent); }
.pass-plane svg { width: 28px; height: 28px; fill: none; stroke: var(--fg-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.perf { height: 20px; position: relative; }
.perf::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed var(--sep); }
.perf::after, .perf i { content: ""; position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.perf::after { right: -10px; }
.perf i { left: -10px; }
.pass-grid { padding: 6px 20px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; }
.pass-wide { grid-column: 1 / -1; }
.pass-v { font-size: 0.9375rem; font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.pass-code { font-family: var(--mono); font-size: 0.75rem; color: var(--fg-3); letter-spacing: 0.12em; padding: 0 20px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.barcode { height: 26px; flex: 0 1 160px; background: repeating-linear-gradient(90deg, var(--fg-2) 0 2px, transparent 2px 4px, var(--fg-2) 4px 5px, transparent 5px 8px, var(--fg-2) 8px 11px, transparent 11px 12px); opacity: 0.55; border-radius: 2px; }
.prio { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prio span { font-size: 0.8125rem; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
@media (max-width: 420px) { .pass-top, .pass-grid, .pass-code { padding-inline: 16px; } }

/* flags */
img.flag { width: 32px; height: 24px; border-radius: 5px; object-fit: cover; flex: none; background: var(--fill); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.08); }
img.flag.xs { width: 20px; height: 15px; border-radius: 3px; vertical-align: -2px; }
img.flag.sm { width: 26px; height: 19.5px; border-radius: 4px; }
img.flag.lg { width: 60px; height: 45px; border-radius: 8px; }
img.flag.xl { width: 72px; height: 54px; border-radius: 10px; }
img.flag.rf { width: 54px; height: 40.5px; border-radius: 7px; }

/* landing */
.ribbon { display: flex; flex-direction: column; gap: 10px; margin: 0 -16px 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rib-in { display: flex; gap: 10px; width: max-content; animation: drift 70s linear infinite; }
.r2 .rib-in { animation-direction: reverse; animation-duration: 85s; }
@keyframes drift { to { transform: translateX(-50%); } }
.beta { background: linear-gradient(135deg, #FF375F, #F58A07); color: #fff; font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.grad { background: linear-gradient(100deg, #0A84FF 10%, #A855E8 55%, #FF375F 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pickers: occupation and countries */
.picker { display: flex; flex-direction: column; gap: 8px; }
.field.search svg { width: 18px; height: 18px; fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.field.search input { font-size: 1rem; }
.field.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.plist .row { min-height: 44px; padding-block: 9px; }
.plist .code, .pick-card .code { font-family: var(--mono); font-size: 0.75rem; color: var(--fg-2); background: var(--fill); padding: 2px 6px; border-radius: 6px; flex: none; }
.plist .row[aria-checked="true"] .check { opacity: 1; transform: none; }
.plist .row[aria-checked="true"] .txt > span { color: var(--accent); font-weight: 500; }
.check.on { opacity: 1; transform: none; }
.empty-row { color: var(--fg-2); font-size: 0.875rem; }
.pick-card { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 10px 14px; font-size: 0.9375rem; }
.pick-card b { font-weight: 600; }
.chips.sel .chip.on { border: 0; background: var(--accent); color: #fff; padding: 6px 10px 6px 6px; font-size: 0.875rem; font-weight: 500; gap: 6px; cursor: pointer; }
.chips.sel .chip.on svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: 0.85; }
.q .chip[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.row.idk .txt > span { color: var(--fg-2); }

/* scale with «не знаю» */
.scale-row { display: flex; gap: 8px; align-items: stretch; }
.scale-row .seg5 { flex: 1; }
.na { border: 0; background: var(--fill); color: var(--fg-2); border-radius: var(--r-ctl); padding: 0 12px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.na[aria-checked="true"] { background: var(--fg-2); color: var(--bg); }

/* weights */
.wblock { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wblock .group { width: 100%; }
.wrow.touched output { color: var(--i-purple); }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pod { grid-column: span 1; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; cursor: pointer; transition: transform 140ms ease-out; min-width: 0; }
.pod:active { transform: scale(0.985); }
.pod.gold { grid-column: 1 / -1; padding: 20px; background: linear-gradient(160deg, var(--card) 55%, rgba(255, 196, 0, 0.12)); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(227, 161, 0, 0.45); }
.pod-top { display: flex; align-items: center; gap: 12px; }
.pod-top .ring { margin-left: auto; }
.pod-rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 0.875rem/1 var(--font-round); color: #fff; flex: none; background: #A2845E; }
.gold .pod-rank { background: linear-gradient(135deg, #F5C400, #E39400); }
.silver .pod-rank { background: linear-gradient(135deg, #B8BCC6, #8E939E); }
.pod h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 4px; }
.gold h3 { font-size: 1.625rem; }
.pod .tagline { font-size: 1rem; }
.gold .tagline { font-size: 1.125rem; }
.tagdesc { font-size: 0.875rem; color: var(--fg-2); line-height: 1.4; }
.pod .chips { margin-top: 6px; padding-right: 34px; gap: 6px; }
.pod:not(.gold) img.flag.lg { width: 44px; height: 33px; border-radius: 6px; }
@media (max-width: 560px) { .podium { grid-template-columns: 1fr; } .pod:not(.gold) .tagdesc { display: none; } }

/* report lists */
.mlist .row, .catlist .row { align-items: center; }
.mlist .txt small, .catlist .txt small { display: block; overflow-wrap: anywhere; }
.mlist .meta, .catlist .meta { font: 600 0.875rem/1 var(--font-round); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.row.dim { opacity: 0.6; }
.row.more .txt span { color: var(--accent); font-weight: 600; }
.empty.small { padding: 18px; font-size: 0.875rem; }
.sum-l { display: inline-flex; align-items: center; gap: 8px; }
#catF { align-self: flex-start; }

/* country sheet */
.tagcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.tagcard b { color: var(--accent); font-size: 1.0625rem; }
.tagcard span { font-size: 0.9375rem; color: var(--fg); }
.warnbox { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); font-size: 0.9375rem; }
.warnbox svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.warnbox div { display: flex; flex-direction: column; gap: 2px; }
.mine { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, #0A84FF, #A855E8, #FF375F) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow); font-size: 0.9375rem; line-height: 1.55; }
.mine-h { display: flex; align-items: center; gap: 8px; }
.mine-h svg { width: 20px; height: 20px; fill: none; stroke: #A855E8; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mine-body { display: flex; flex-direction: column; gap: 8px; }
.mine ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.mine-foot { font-size: 0.8125rem; color: var(--fg-2); }
.mine .btn { align-self: flex-start; }
.mine-wait { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.mine-wait i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: #A855E8; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-actions .btn svg { width: 17px; height: 17px; }
.dhead-l .chips { gap: 6px; }

@media (prefers-reduced-motion: reduce) { .rib-in { animation: none; } }
