/* Layout: app shell. Sticky step rail + working panel on the left, live "your return" ledger on the right; stacks on phones. */
:root {
  /* White, light-only palette: a deliberate single look for a financial service. */
  --paper: #ffffff;
  --surface: #ffffff;
  --sunk: #f5f7fa;
  --ink: #0f172a;
  --muted: #526077;
  --line: #e2e8f0;
  --accent: #1d4ed8;      /* deep blue */
  --accent-soft: #eef3fd;
  --on-accent: #ffffff;
  --warn: #92400e;
  --warn-soft: #fdf6e7;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --font-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font-body);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: 1.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.account { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--muted); min-width: 0; }
.account .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; align-self: flex-start; }
.ledger .link-btn { font-size: 0.85rem; color: var(--muted); }
a.btn { text-decoration: none; display: inline-block; }
.start-card a { color: var(--accent); }

/* Shell */
.shell { max-width: 1180px; margin: 0 auto; padding-inline: 16px; padding-block: 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } .ledger { order: -1; } }

/* Steps rail */
.steps { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 4px; flex-wrap: wrap; counter-reset: step; }
.steps button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px 6px 6px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; color: var(--muted);
}
.steps button .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font-family: var(--font-mono); font-size: 0.75rem; }
.steps button[aria-current="step"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.steps button[aria-current="step"] .n { background: var(--accent); color: var(--on-accent); }
.steps button:disabled { opacity: 0.45; cursor: not-allowed; }
.steps button.done .n { background: var(--accent-soft); color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 500px) { .panel { padding: 16px; } }
.panel-head { display: flex; flex-direction: column; gap: 6px; }
.panel-head p { max-width: 62ch; color: var(--muted); }
.nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

.btn { border: 1px solid var(--line); background: var(--surface); padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--sunk); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.small { padding: 4px 10px; font-size: 0.85rem; }

/* Persona picker */
.personas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .personas { grid-template-columns: minmax(0, 1fr); } }
.persona { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.persona:hover { border-color: var(--muted); }
.persona[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.persona strong { font-family: var(--font-display); font-size: 1.05rem; }
.persona span { font-size: 0.88rem; color: var(--muted); }

fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); }

.callout { border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--accent-soft); }
.callout.warn { background: var(--warn-soft); }
.callout.warn strong { color: var(--warn); }
.callout strong { color: var(--accent); }
.callout ul { margin: 4px 0 0; padding-left: 18px; }

/* Upload */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--paper); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop p { max-width: 52ch; color: var(--muted); font-size: 0.92rem; }
.docs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.docs li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.docs li:first-child { border-top: 0; }
.ftype { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; text-align: center; padding: 8px 0; border-radius: 6px; background: var(--sunk); color: var(--muted); }
.doc-name { font-weight: 600; overflow-wrap: anywhere; }
.doc-sub { font-size: 0.85rem; color: var(--muted); }
.status { font-size: 0.8rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--sunk); color: var(--muted); }
.status.done { background: var(--accent-soft); color: var(--accent); }
.status.busy { background: var(--warn-soft); color: var(--warn); }

/* Facts table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
thead th { border-top: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--paper); }
td.src { color: var(--muted); font-size: 0.85rem; min-width: 150px; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; white-space: nowrap; }
.conf i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.conf.low i { background: var(--warn); }
.conf.low { color: var(--warn); font-weight: 600; }
.field { width: 100%; min-width: 120px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.field.money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.money-wrap { position: relative; display: flex; align-items: center; }
.money-wrap::before { content: "€"; position: absolute; left: 9px; color: var(--muted); font-family: var(--font-mono); pointer-events: none; }
.money-wrap .field { padding-left: 22px; }
.fieldbox { position: relative; display: block; }
.fieldbox.flagged .field { border-color: var(--warn); background: var(--warn-soft); }
.fieldbox .flag { position: absolute; top: -0.6em; right: 8px; font-size: 0.68rem; line-height: 1.1; font-weight: 600; color: var(--warn); background: var(--surface); padding: 0 4px; border-radius: 3px; pointer-events: none; white-space: nowrap; }

/* Questions */
.questions { display: flex; flex-direction: column; gap: 12px; }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 6px 16px; align-items: center; }
.q.open { border-color: var(--warn); }
.q .why { font-size: 0.86rem; color: var(--muted); grid-column: 1; }
.q .ctrl { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 560px) { .q { grid-template-columns: minmax(0, 1fr); } .q .ctrl { grid-column: 1; grid-row: auto; } }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--surface); padding: 7px 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
details.more { border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; }
.claims-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.claims-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: var(--muted); }

/* Result */
.hero-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.hero-num .big { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.hero-num .big.owe { color: var(--bad); }
/* Result statement: money back, then to pay, then the overall figure */
.statement td small { display: block; color: var(--muted); font-size: 0.8rem; }
.statement td.num { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; vertical-align: top; }
.statement tr.plus td.num { color: var(--accent); }
.statement tr.minus td.num { color: var(--bad); }
.statement .st-head th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--paper); text-align: left; }
.statement .st-sub td { font-weight: 600; }
.statement .st-sub td:first-child { color: var(--muted); text-align: right; }
.statement .st-total td { font-weight: 700; font-size: 1.02rem; border-top: 2px solid var(--line); }
.trace { width: 100%; }
.trace td:last-child, .trace th:last-child { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trace td small { display: block; color: var(--muted); font-size: 0.8rem; }
.trace tr.sec td { background: var(--paper); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.trace tr.total td { font-weight: 700; }
.note-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 4px; }

/* Filing */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 14px; cursor: pointer; text-align: left; flex: 1 1 220px; }
.tabs button strong { display: block; }
.tabs button span { font-size: 0.85rem; color: var(--muted); }
.tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.script { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.script li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.script li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.script .where { font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); overflow-wrap: anywhere; }
.copyrow { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.copy { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px 3px 10px; background: var(--paper); font-size: 0.88rem; }
.copy b { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); margin-top: 4px; }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.now::before { border-color: var(--warn); }
.mandate { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }

/* Ledger (sidebar) */
.ledger { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 900px) { .ledger { position: static; } }
.ledger .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: var(--accent); }
.ledger .amount.owe { color: var(--bad); }
.ledger .amount.wait { color: var(--muted); font-size: 1.4rem; }
.ledger dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 0.92rem; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.form-chip { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; padding: 2px 8px; border-radius: 6px; background: var(--sunk); }
.fine { font-size: 0.8rem; color: var(--muted); }


/* Own documents */
.persona.own { grid-column: 1 / -1; border-style: dashed; }
.persona.own[aria-pressed="true"] { border-style: solid; }
.persona.own small { color: var(--warn); font-weight: 600; }
.status.error { background: var(--bad-soft); color: var(--bad); }
.doc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.doc-err { font-size: 0.85rem; color: var(--bad); }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.field.select { width: auto; min-width: 0; padding: 5px 8px; }
/* Check step: one section per kind of claim */
.found { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.found:first-of-type { border-top: 0; padding-top: 0; }
.found h4 { font-size: 0.95rem; margin: 6px 0 0; }
.found-summary { display: flex; flex-direction: column; gap: 4px; }
.found-table td { padding: 8px 10px; }
.found-table .field { min-width: 0; }
.found-table td.num, .found-table tr.total td { font-weight: 600; }
.found-table td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.found-table th small.src, .found-table td small.src { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.found-table.people td:first-child { color: var(--muted); white-space: nowrap; }
.found-table.people th:not(:first-child), .found-table.people td:not(:first-child) { min-width: 150px; }
@media (max-width: 600px) {
  .found-table td, .found-table th { padding: 7px 6px; }
  .found-table.people td:first-child { white-space: normal; font-size: 0.85rem; }
  .found-table.people th:not(:first-child), .found-table.people td:not(:first-child) { min-width: 124px; }
  .found-table .field:not(.money) { padding: 6px; }
  .found-table .field.money { padding-top: 6px; padding-bottom: 6px; padding-right: 6px; }
}
/* Share transactions on the Check step */
.shares td { padding: 8px; }
.shares .field { min-width: 0; padding: 6px 7px; }
.shares th:nth-last-child(-n+3) { text-align: right; }
.shares td.num { white-space: nowrap; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.shares td .src { display: block; color: var(--muted); font-size: 0.8rem; }
/* Share tables: fixed columns shared by every table, and cells aligned to the top so a note under
   one field doesn't move the fields beside it. */
.shares.fixed { table-layout: fixed; min-width: 700px; }
.shares.fixed td { vertical-align: top; }
.shares.fixed td.num { padding-top: 14px; }
.shares.fixed td > small.src, .shares.fixed td > .src { overflow-wrap: anywhere; }
.shares.fixed .c-date { width: 118px; }
.shares.fixed .c-paid { width: 96px; }
.shares.fixed .c-country { width: 70px; }
.shares.fixed .c-ftax { width: 92px; }
.shares.fixed .c-what { width: auto; }
.shares.fixed .c-whose { width: 78px; }
.shares.fixed .c-qty { width: 84px; }
.shares.fixed .c-price { width: 108px; }
.shares.fixed .c-fees { width: 62px; }
.shares.fixed .c-eur { width: 128px; }
.shares.fixed td.num small.src { white-space: normal; font-family: var(--font-body); }
.shares.fixed .field { width: 100% !important; }
.me-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.me-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.docs li.busy .ftype { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 560px) { .docs li { grid-template-columns: 44px minmax(0, 1fr); } .docs li > .doc-actions, .docs li > .status { grid-column: 2; justify-self: start; } }


/* Site chrome: footer, sign-in, payment */
.site-foot { max-width: 1180px; margin: 0 auto; padding-inline: 16px; padding-block: 0 48px; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.site-foot p { max-width: 90ch; }
.site-foot a, .fine a, .paybox a { color: var(--accent); }
.start-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--sunk); }
.start-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.start-card p { color: var(--muted); font-size: 0.92rem; max-width: 62ch; }
.start-card .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.google { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.btn.google svg { width: 18px; height: 18px; }
.paybox { border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--accent-soft); }
.paybox h3 { font-family: var(--font-display); }
.paybox ul { margin: 0; padding-left: 18px; }
.paybox .price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.locked { filter: blur(6px); user-select: none; }
.reads { font-size: 0.85rem; color: var(--muted); }

/* Text pages: how it works, terms, privacy */
.prose { max-width: 760px; margin: 0 auto; padding-inline: 16px; padding-block: 32px 64px; display: flex; flex-direction: column; gap: 14px; line-height: 1.6; }
.prose h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.prose h2 { font-family: var(--font-display); font-size: 1.3rem; margin-top: 18px; text-wrap: balance; }
.prose h3 { font-size: 1.05rem; margin-top: 6px; }
.prose p, .prose li { max-width: 68ch; }
.prose ol, .prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--accent); }
.prose .lede { font-size: 1.12rem; color: var(--muted); }
.prose .updated { font-size: 0.85rem; color: var(--muted); }
.prose .box { border-radius: var(--radius); padding: 14px 16px; background: var(--accent-soft); }
.prose .box.warn { background: var(--warn-soft); }
.prose .flow { list-style: none; padding: 0; counter-reset: flow; gap: 12px; }
.prose .flow li { counter-increment: flow; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.prose .flow li::before { content: counter(flow); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .table-wrap { overflow-x: auto; }

/* Document checklist on the Documents step */
.doc-checklist { display: flex; flex-direction: column; gap: 8px; }
.doc-checklist h3 { margin: 6px 0 0; font-size: 0.95rem; }
.doc-checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.doc-checklist li small { display: block; color: var(--muted); font-size: 0.88rem; }
.doc-checklist li strong { font-weight: 600; }
.doc-checklist .tick { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 0.75rem; color: #fff; }
.doc-checklist li.found .tick { background: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) { .doc-checklist li { grid-template-columns: 22px minmax(0, 1fr); } .doc-checklist li > .status { grid-column: 2; justify-self: start; } }

/* Tax year picker on the first step */
.year-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.year-pick .fine { flex-basis: 100%; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-variant-numeric: tabular-nums; padding: 6px 14px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }

/* ---------- Camera: full screen, photographing documents one after another ---------- */
body.camera-open { overflow: hidden; }
.camera { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.camera-hint { margin: 0; padding: 12px 16px; font-size: 0.9rem; text-align: center; color: #d6dcf0; }
.camera-view { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.camera-view video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.camera-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.camera-msg { position: absolute; margin: 0; padding: 0 24px; text-align: center; color: #d6dcf0; }
.camera-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 20px 8px; }
.camera-done { justify-self: start; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; font-size: 1.05rem; padding: 10px 4px; cursor: pointer; }
.camera-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: inset 0 0 0 4px #000; cursor: pointer; }
.camera-shutter:active { transform: scale(0.94); }
.camera-shutter:disabled { opacity: 0.4; }
.camera-count { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #d6dcf0; }
.camera-count img { width: 40px; height: 52px; object-fit: cover; border-radius: 4px; border: 2px solid #fff; }
.camera-fallback { align-self: center; margin: 4px 0 14px; color: #c7d6fa; text-decoration: underline; font-size: 0.9rem; cursor: pointer; }
.camera button:focus-visible, .camera-fallback:focus-within { outline: 2px solid #c7d6fa; outline-offset: 3px; }

.drop-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Install as an app ---------- */
.install-card { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.install-card > div:first-of-type { flex: 1; min-width: 180px; }
.install-card img { border-radius: 9px; flex: none; }
.install-card p { margin: 2px 0 0; }
.install-actions { display: flex; align-items: center; gap: 12px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); color: var(--ink); width: min(520px, 100%); border-radius: 16px 16px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.sheet h2 { margin: 0; font-size: 1.2rem; }
.sheet ol { margin: 0; padding-left: 1.2rem; line-height: 1.7; }
.shares.fixed td:not(:has(input)) { padding-top: 14px; }
