/* Ghișeu Zero — mobile-first. Telefon: bară sus + navigare jos. Desktop (≥ 960px): meniu lateral. */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --sunk: #eef1f8;
  --ink: #121a2e;
  --ink-2: #3a4560;
  --muted: #677189;
  --line: #e0e5ef;
  --primary: #2346d6;
  --primary-ink: #ffffff;
  --primary-soft: #e6ebfd;
  --mint: #0c8a6a;
  --mint-soft: #dcf3eb;
  --sun: #f5b82e;
  --sun-soft: #fff4d9;
  --warn: #a5560a;
  --warn-soft: #fdeedb;
  --danger: #c0303b;
  --danger-soft: #fde4e6;
  --stamp: #b4232f;
  --shadow: 0 1px 2px rgba(18, 26, 46, .05), 0 8px 24px -12px rgba(18, 26, 46, .18);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 16px;
  --r-sm: 11px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1019; --surface: #151b29; --sunk: #1b2233; --ink: #e9edf6; --ink-2: #c3cadb; --muted: #95a0b8; --line: #263049;
    --primary: #87a0ff; --primary-ink: #0c1019; --primary-soft: #1f2a52; --mint: #4fd1a5; --mint-soft: #12322a;
    --sun: #f5c451; --sun-soft: #352b12; --warn: #f0a85a; --warn-soft: #3a2812; --danger: #ff7a85; --danger-soft: #3d1a1f; --stamp: #f07a84;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1019; --surface: #151b29; --sunk: #1b2233; --ink: #e9edf6; --ink-2: #c3cadb; --muted: #95a0b8; --line: #263049;
  --primary: #87a0ff; --primary-ink: #0c1019; --primary-soft: #1f2a52; --mint: #4fd1a5; --mint-soft: #12322a;
  --sun: #f5c451; --sun-soft: #352b12; --warn: #f0a85a; --warn-soft: #3a2812; --danger: #ff7a85; --danger-soft: #3d1a1f; --stamp: #f07a84;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.015em; text-wrap: balance; line-height: 1.15; }
p { margin: 0; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 28px; align-content: start; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.sec:hover { background: var(--sunk); filter: none; }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); position: relative; }
.iconbtn:hover { background: var(--sunk); }
.badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--mint); background: var(--mint-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.info { color: var(--primary); background: var(--primary-soft); }
.pill.mute { color: var(--muted); background: var(--sunk); }
.pill.nodot::before { display: none; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.pad-lg { padding: 24px; }
.card h3 { font-size: 19px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 18px; }
.list { display: grid; }
.list > * + * { border-top: 1px solid var(--line); }
.li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; text-decoration: none; color: inherit; min-width: 0; }
.li:first-child { padding-top: 0; }
.li:last-child { padding-bottom: 0; }
a.li:hover .li-title, button.li:hover .li-title { color: var(--primary); }
button.li { background: none; border: 0; text-align: left; width: 100%; }
.li-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); flex: none; }
.li-ic.primary { background: var(--primary-soft); color: var(--primary); }
.li-ic.mint { background: var(--mint-soft); color: var(--mint); }
.li-ic.sun { background: var(--sun-soft); color: var(--warn); }
.li-body { min-width: 0; }
.li-title { font-weight: 700; display: block; overflow-wrap: anywhere; }
.li-sub { color: var(--muted); font-size: 14px; display: block; overflow-wrap: anywhere; }
.chev { color: var(--muted); }
.li.sw { grid-template-columns: 1fr auto; }
.content { min-width: 0; }

.empty { text-align: center; padding: 32px 12px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.input, .select, textarea.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; }
.input:focus, .select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }
.help { font-size: 13.5px; color: var(--muted); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 44px; }

.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.opt:hover { border-color: var(--primary); }
.opt input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--primary); }
.opt b { display: block; }
.opt .sub b { display: inline; }
.opt .sub { color: var(--muted); font-size: 14px; display: block; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.opts.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--primary); outline-offset: 2px; }

.otp { display: flex; gap: 8px; }
.otp input { width: 100%; max-width: 54px; height: 60px; text-align: center; font-family: var(--f-mono); font-size: 24px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.otp input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- Landing ---------- */
.site-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-top .in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--primary); color: var(--primary); display: grid; place-items: center; font-size: 14px; font-weight: 800; transform: rotate(-10deg); flex: none; }
.site-links { display: none; gap: 4px; }
.site-links a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.site-links a:hover { background: var(--sunk); }
@media (min-width: 860px) { .site-links { display: flex; } }

.wrap { max-width: 1160px; margin: 0 auto; }
.hero { display: grid; gap: 40px; align-items: center; padding-block: 40px 56px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: 72px 88px; } }
.hero h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .06em; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust svg { color: var(--mint); }

.phone { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18.5; max-width: 100%; border-radius: 44px; background: var(--ink); padding: 10px; box-shadow: 0 40px 80px -40px rgba(18,26,46,.55); position: relative; }
.phone-screen { height: 100%; border-radius: 35px; background: var(--bg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 12px; background: var(--ink); z-index: 2; }
.ph-top { padding: 48px 18px 14px; background: var(--primary); color: var(--primary-ink); display: grid; gap: 4px; }
.ph-top small { opacity: .8; font-size: 12px; }
.ph-top b { font-family: var(--f-display); font-size: 20px; }
.ph-body { padding: 14px; display: grid; gap: 10px; align-content: start; }
.ph-card { background: var(--surface); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 13px; box-shadow: var(--shadow); }
.ph-card .li-ic { width: 34px; height: 34px; border-radius: 10px; }
.ph-card b { display: block; font-size: 14px; }
.ph-card span { color: var(--muted); }
.ph-done { background: var(--mint-soft); color: var(--mint); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }

.section { padding-block: 56px; }
.section-head { display: grid; gap: 10px; max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.band .feature { background: var(--bg); }
.feature .li-ic { width: 48px; height: 48px; border-radius: 14px; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--ink-2); }
.feature .eta { font-family: var(--f-mono); font-size: 13px; color: var(--mint); font-weight: 500; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: st; padding: 0; margin: 0; }
.steps li { list-style: none; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; background: var(--bg); }
.steps li::before { counter-increment: st; content: counter(st); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-family: var(--f-display); font-weight: 800; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--ink-2); font-size: 15px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare td:last-child { font-weight: 700; color: var(--ink); }
.compare td:nth-child(2) { color: var(--muted); }
.compare th:last-child { color: var(--primary); }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 500; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); }

.cta-band { background: var(--primary); color: var(--primary-ink); border-radius: 28px; padding: 40px 28px; display: grid; gap: 18px; justify-items: start; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-band .btn { background: var(--primary-ink); color: var(--primary); }

.site-foot { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .wrap { display: grid; gap: 10px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-main { display: grid; place-items: start center; padding-block: 24px 48px; }
.auth-card { width: min(480px, 100%); display: grid; gap: 22px; }
.auth-card h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--primary); }
.found { display: grid; gap: 10px; }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .in { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.firm-switch { display: flex; align-items: center; gap: 10px; background: var(--sunk); border: 0; border-radius: 999px; padding: 6px 14px 6px 6px; min-height: 44px; max-width: 100%; min-width: 0; text-align: left; }
.firm-switch .av { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.firm-switch .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.main { padding-block: 20px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom, 0px)); max-width: 1080px; margin: 0 auto; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.bottomnav a { display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; min-height: var(--nav-h); position: relative; }
.bottomnav a[aria-current="page"] { color: var(--primary); }
.bottomnav a.plus span.p { width: 46px; height: 46px; margin-top: -2px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; box-shadow: 0 8px 18px -8px var(--primary); }
.bottomnav a.plus { color: var(--ink-2); }
.bottomnav .badge { top: 4px; right: calc(50% - 22px); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
  .side .logo { padding: 4px 10px 18px; }
  .side nav { display: grid; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
  .side nav a:hover { background: var(--sunk); }
  .side nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
  .side nav a .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
  .side .sep { height: 1px; background: var(--line); margin: 10px 8px; }
  .side .new { margin: 4px 0 14px; }
  .side .foot { margin-top: auto; padding: 12px; font-size: 12.5px; color: var(--muted); }
  .bottomnav { display: none; }
  .topbar .logo { display: none; }
  .main { padding-block: 28px 48px; }
}

.page-head { display: grid; gap: 6px; }
.page-head h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; }
.page-head p { color: var(--ink-2); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back:hover { color: var(--primary); }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

.alert { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--sun-soft); align-items: start; }
.alert .li-ic { background: var(--sun); color: #3a2a00; }
.alert b { display: block; font-size: 16.5px; }
.alert p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.alert .row { margin-top: 12px; }

.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.qa { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 132px; }
.qa:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.qa b { font-family: var(--f-display); font-size: 17px; line-height: 1.2; }
.qa span.s { color: var(--muted); font-size: 13.5px; }
.qa.soon { opacity: .75; }

.kv { display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--sunk); border-radius: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.caen-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.caen-row:first-child { border-top: 0; }
.code { font-family: var(--f-mono); font-weight: 500; font-size: 14px; background: var(--sunk); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.map { display: grid; gap: 10px; }
.map-item { display: grid; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.map-item.need { border-color: var(--sun); background: var(--sun-soft); }
.map-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-line .arr { color: var(--muted); }

/* Wizard */
.wiz-top { display: grid; gap: 14px; }
.wiz-steps { display: flex; gap: 6px; }
.wiz-steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.wiz-steps span.done { background: var(--mint); }
.wiz-steps span.cur { background: var(--primary); }
.wiz-foot { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0; display: flex; gap: 10px; border-top: 1px solid var(--line); margin-top: 8px; z-index: 5; }
.wiz-foot .btn:first-child { flex: 1; }
@media (min-width: 960px) { .wiz-foot { position: static; background: none; backdrop-filter: none; border: 0; padding: 8px 0 0; } .wiz-foot .btn:first-child { flex: 0 0 auto; } }

.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.doc-ic { width: 36px; height: 44px; border-radius: 4px 12px 4px 4px; border: 2px solid var(--muted); display: grid; place-items: end center; padding-bottom: 5px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; color: var(--muted); flex: none; }
.doc-ic.gen { border-color: var(--primary); color: var(--primary); }
.doc-ic.ok { border-color: var(--mint); color: var(--mint); }
.drop { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px 16px; border-radius: 16px; border: 2px dashed var(--line); color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.drop b { color: var(--ink); }

.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: pop .25s ease both; }
.check .s { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.check.ok .s { background: var(--mint-soft); color: var(--mint); }
.check.fix .s { background: var(--sun-soft); color: var(--warn); }
.check.run .s { border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.check b { display: block; }
.check small { display: block; color: var(--muted); font-size: 14px; }
.check.fix small { color: var(--warn); }
.verdict { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; background: var(--mint-soft); color: var(--mint); font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.done-hero { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 12px 0 4px; }
.done-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; animation: pop .35s ease both; }
.clock { font-family: var(--f-display); font-weight: 800; font-size: 44px; color: var(--mint); line-height: 1; }

.timeline { padding: 0; margin: 0; display: grid; }
.timeline li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); margin-top: 4px; margin-left: 4px; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.wait::before { background: var(--surface); border: 3px solid var(--sun); width: 14px; height: 14px; }
.timeline li.op::before { background: var(--warn); }
.timeline small { display: block; color: var(--muted); font-size: 13.5px; }

/* Paper document */
.paper { position: relative; background: #fffefa; color: #1d2333; border-radius: 6px; padding: 28px 24px 30px; box-shadow: 0 1px 0 #e7e3d6, 0 18px 40px -26px rgba(0,0,0,.45); display: grid; gap: 10px; overflow: hidden; font-size: 14.5px; }
.paper .hd { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6b6f7c; }
.paper h4 { font-family: var(--f-display); font-size: 21px; color: #1d2333; }
.paper dl { margin: 0; display: grid; gap: 6px; }
.paper dl div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.paper dt { color: #6b6f7c; }
.paper dd { margin: 0; font-weight: 600; }
.paper .sig { margin-top: 14px; font-size: 12.5px; color: #6b6f7c; font-family: var(--f-mono); }
.stamp { position: absolute; right: 18px; bottom: 18px; width: 100px; height: 100px; border-radius: 50%; border: 3px double #b4232f; color: #b4232f; display: grid; place-items: center; text-align: center; font-family: var(--f-mono); font-size: 10px; font-weight: 500; line-height: 1.3; transform: rotate(-14deg); opacity: .85; background: transparent; }
.watermark { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: #f5b82e; color: #3a2a00; font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 3px 40px; }
@media (max-width: 480px) { .paper dl div { grid-template-columns: 1fr; gap: 0; } .stamp { width: 78px; height: 78px; font-size: 8.5px; } }

/* Sheet / modal */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(9, 13, 24, .5); display: grid; align-items: end; justify-items: center; animation: fade .15s ease both; }
.sheet { width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 18px; animation: up .22s ease both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 22px; }
@media (min-width: 720px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { width: min(560px, 100%); border-radius: 24px; padding: 24px; }
  .sheet.wide { width: min(760px, 100%); }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); animation: up .2s ease both; }
.toast svg { color: var(--mint); flex: none; }

/* Chat */
.chat { display: grid; gap: 12px; }
.chat-log { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 18px; font-size: 15px; }
.msg.bot { background: var(--sunk); border-bottom-left-radius: 6px; justify-self: start; }
.msg.me { background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 6px; justify-self: end; }
.msg .row { margin-top: 10px; }
.chat-form { display: flex; gap: 8px; }
.chat-form .input { border-radius: 999px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; }

.demo-ribbon { background: var(--sun-soft); color: var(--warn); font-size: 13px; font-weight: 700; text-align: center; padding: 6px 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block !important; padding: 0; }
  body.printing .paper { box-shadow: none; }
}
#print-area { display: none; }

h1[tabindex="-1"]:focus { outline: none; }
.pill { justify-self: start; }
