:root {
  /* Brand identity: orange #EA6924, light orange #FFA051, night brown #281206, charcoal #161616 */
  color-scheme: light dark;
  --ink: #281206;
  --bar: #281206;
  --hero: #FFF8F2;
  --brand: #B8480C;
  --brand-fill: #C94F10;
  --brand-fill-hover: #A9410B;
  --on-brand: #FFFFFF;
  --on-hero: #6B5548;
  --logo: #EA6924;
  --palms: rgba(234, 105, 36, .20);
  --brand-soft: #FDEEE3;
  --bg: #FFF8F2;
  --surface: #FFFFFF;
  --line: #EBD9CB;
  --muted: #5A4539;
  --accent: #FFA051;
  --on-accent: #281206;
  --ok-ink: #00664B;
  --ok-soft: #D9FAF0;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;
  --danger-line: var(--danger-line);
  --amber-ink: #7A4A00;
  --amber-soft: #FFF1D6;
  --radius: 14px;
  --tap: 48px;
}

/* Night mode follows the device setting */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #FBEFE6;
    --bar: #281206;
    --hero: #161616;
    --brand: #FFA051;
    --brand-fill: #EA6924;
    --brand-fill-hover: #FFA051;
    --on-brand: #281206;
    --on-hero: #C9B3A4;
    --logo: #EA6924;
    --palms: rgba(234, 105, 36, .18);
    --brand-soft: #3A1D0C;
    --bg: #161616;
    --surface: #221C18;
    --line: #3D3029;
    --muted: #C9B3A4;
    --ok-ink: #6FE3C1;
    --ok-soft: #0F3329;
    --danger: #FF9A91;
    --danger-soft: #3B1614;
    --danger-line: #6B2A25;
    --amber-ink: #FFD08A;
    --amber-soft: #3A2A0C;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Almarai', 'Segoe UI', Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
h2 { font-size: 1.125rem; font-weight: 700; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.shell { max-width: 620px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.page { padding: 20px 16px 32px; flex: 1; }
.has-tabs .page { padding-bottom: 96px; }

/* ---------- Top bars ---------- */
.topbar {
  background: var(--bar);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar h1 { font-size: 1.125rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { color: #E8CDB9; font-size: .8125rem; font-weight: 400; display: block; }
.wordmark { font-weight: 800; font-size: 1.375rem; letter-spacing: 0; }
.wordmark i { font-style: normal; color: var(--accent); }
.ghost {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: 999px; min-height: 40px; padding: 0 14px; font-size: .875rem;
}
.ghost:hover { background: rgba(255,255,255,.12); }
.back { width: 40px; padding: 0; font-size: 1.25rem; line-height: 1; }

/* ---------- Auth ---------- */
.auth { background: var(--hero); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.auth-head { padding: 56px 24px 12px; max-width: 460px; width: 100%; margin: 0 auto; }
.auth-head { position: relative; isolation: isolate; }
.auth::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: clamp(120px, 22vw, 230px); z-index: 0; pointer-events: none;
  background-color: var(--palms); -webkit-mask: url(/skyline.png) center bottom / auto 100% repeat-x; mask: url(/skyline.png) center bottom / auto 100% repeat-x;
}
.auth { position: relative; }
.auth-head, .auth-body { position: relative; z-index: 1; }
.logo {
  display: block; width: min(240px, 62vw); aspect-ratio: 641 / 525; margin: 0 auto;
  background-color: var(--logo); -webkit-mask: url(/logo.png) center / contain no-repeat; mask: url(/logo.png) center / contain no-repeat;
}
.auth-head p { text-align: center; margin-inline: auto; }
.auth-head .wordmark { font-size: 2.75rem; line-height: 1.1; display: block; }
.auth-head .wordmark i { color: var(--on-hero); }
.auth-head p { color: var(--on-hero); font-weight: 700; margin-top: 10px; max-width: 30ch; }
.auth-body {
  background: var(--bg); color: var(--ink); flex: 1;
  border-radius: 28px 28px 0 0; padding: 28px 24px 40px;
}
.auth-body > div { max-width: 412px; margin: 0 auto; }
.auth-body h2 { font-size: 1.25rem; margin-bottom: 16px; }
.switch { margin-top: 20px; text-align: center; color: var(--muted); }
.link { background: none; border: 0; padding: 4px; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
input[type=text], input[type=tel], input[type=password], input[type=email], input[type=number], select {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
}
input:focus, select:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); outline-offset: 0; }
input[dir=ltr] { text-align: left; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row > .fit { flex: 0 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; background: var(--brand-fill); color: var(--on-brand);
}
.btn:hover { background: var(--brand-fill-hover); }
.btn.block { width: 100%; }
.btn.quiet { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn.quiet:hover { background: var(--brand-soft); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.btn.danger:hover { background: var(--danger-soft); }
.btn[disabled] { opacity: .55; cursor: progress; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .9375rem;
}
.seg input:checked + span { background: var(--bar); color: #fff; border-color: var(--bar); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.error { color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 10px 12px; font-size: .9375rem; margin-bottom: 14px; }
.note { background: var(--amber-soft); color: var(--amber-ink); border-radius: 12px; padding: 12px 14px; font-size: .9375rem; margin-bottom: 16px; }
.note b { font-size: 1.25rem; letter-spacing: .12em; }

/* ---------- Panels & lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel + .panel, .panel + .section-head { margin-top: 16px; }
.panel.pad { padding: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 2px 10px; }
.section-head:first-child { margin-top: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 700; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .8125rem; }
.amount { font-weight: 800; white-space: nowrap; }

.space-row { width: 100%; background: none; border: 0; text-align: start; display: flex; align-items: center; gap: 12px; padding: 0; min-height: 52px; }
.kind {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: .8125rem;
}
.chev { color: var(--muted); font-size: 1.25rem; }

.tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; vertical-align: middle; }
.tag.urgent { background: var(--danger-soft); color: var(--danger); }
.tag.done { background: var(--ok-soft); color: var(--ok-ink); }
.tag.part { background: var(--amber-soft); color: var(--amber-ink); }
.tag.plain { background: var(--brand-soft); color: var(--brand); }

.empty { text-align: center; padding: 32px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 4px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* The signature mark: a need is a gap (hollow ring) until someone fills it */
.gap {
  flex: none; width: 36px; height: 36px; border-radius: 50%; padding: 0;
  border: 2.5px dashed var(--brand); background: var(--surface); color: transparent;
  display: grid; place-items: center; font-size: 1.125rem; font-weight: 800;
  transition: background-color .18s, border-color .18s;
}
.gap:hover { background: var(--brand-soft); }
.gap.filled { border: 2.5px solid var(--accent); background: var(--accent); color: var(--on-accent); }
li.is-purchased .title { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
li.is-cancelled .title { color: var(--muted); }
li.is-cancelled .gap { border-color: var(--line); }

.chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 40px; padding: 0 14px; font-size: .875rem; }
.chip[aria-pressed=true] { background: var(--bar); color: #fff; border-color: var(--bar); font-weight: 700; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.figures div { padding: 14px 6px; border-inline-start: 1px solid var(--line); }
.figures div:first-child { border-inline-start: 0; }
.figures b { display: block; font-size: 1.25rem; font-weight: 800; }
.figures div > span { color: var(--muted); font-size: .8125rem; display: block; }

details.part { margin-top: 6px; }
details.part summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: .8125rem; min-height: 32px; display: flex; align-items: center; }
details.part form { display: flex; align-items: flex-end; gap: 8px; margin-top: 4px; }
details.part label { display: grid; gap: 2px; }
details.part input { width: 96px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: var(--surface); color: var(--ink); }

details.more { margin-top: 12px; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 700; min-height: 40px; display: flex; align-items: center; }
details.more[open] summary { margin-bottom: 8px; }
.pick { max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }

/* Claims: who pays whom */
.claim { padding: 14px; border-top: 1px solid var(--line); }
.claim:first-child { border-top: 0; }
.claim-top { display: flex; align-items: baseline; gap: 10px; }
.flow { flex: 1; min-width: 0; font-weight: 700; }
.flow .arrow { color: var(--muted); font-weight: 400; margin: 0 4px; }
.bar { height: 8px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.claim form { margin-top: 12px; }
.pays { list-style: none; margin: 10px 0 0; padding: 0; font-size: .875rem; }
.pays li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.x { background: none; border: 0; color: var(--danger); min-width: 40px; min-height: 40px; font-size: .8125rem; text-decoration: underline; }

/* ---------- Tabs ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 6;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs nav { max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabs a {
  display: flex; align-items: center; justify-content: center; min-height: 58px;
  color: var(--muted); text-decoration: none; font-size: .875rem; border-top: 3px solid transparent; text-align: center;
}
.tabs a[aria-current=page] { color: var(--brand); font-weight: 800; border-top-color: var(--brand); }

/* ---------- Dialog & toast ---------- */
dialog { border: 0; border-radius: 20px; padding: 22px; width: min(92vw, 440px); color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(22, 22, 22, .6); }
dialog h2 { margin-bottom: 16px; }
.actions { display: flex; gap: 10px; margin-top: 6px; }
.actions .btn { flex: 1; }

#toast {
  position: fixed; inset-inline: 16px; bottom: 76px; z-index: 20; margin: 0 auto; max-width: 420px;
  background: var(--bar); color: #fff; border-radius: 12px; padding: 12px 16px; text-align: center;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: none; }
#toast.bad { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Invites ---------- */
.invite-banner { background: var(--ok-soft); color: var(--ok-ink); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-weight: 700; }
.qr { position: relative; width: 216px; margin: 4px auto 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.invite-link { font-size: .875rem; }
.btn.whatsapp { text-decoration: none; }
.stack { display: grid; gap: 10px; margin-top: 12px; }
.qr-name {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--bar); color: #fff; font-weight: 800; font-size: .9375rem; line-height: 1;
  padding: 7px 10px; border-radius: 8px; border: 3px solid #fff; white-space: nowrap;
}
.qr-name i { font-style: normal; color: var(--accent); }

/* ---------- Barcode scanner ---------- */
.scan-view { position: relative; background: #161616; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 10px; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-view::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px;
  background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
.scan-row { display: flex; gap: 10px; align-items: flex-end; }
.scan-row .field { flex: 1; margin: 0; }

/* ---------- Phone number with country code ---------- */
/* Always left-to-right: code first, then the number, as phone numbers are read */
.phone { display: flex; gap: 8px; direction: ltr; }
.phone input[type=tel] { flex: 1; min-width: 0; }
.cc {
  flex: none; display: flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit;
}
.cc:hover { background: var(--brand-soft); }
.flag { font-size: 1.25rem; line-height: 1; }
#countries input { margin-bottom: 10px; }
.countries { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.countries .space-row { gap: 10px; }
.countries li.meta { padding: 16px; }

/* ---------- Scanned product card ---------- */
.product-name { font-size: 1.125rem; margin: 0 0 2px; }
.facts { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.facts + form { margin-bottom: 12px; }
.warn { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.facts-box { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.warn ul, .facts-box ul { margin: 6px 0 0; padding-inline-start: 20px; }
.avoid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }

/* ---------- English (left-to-right) ---------- */
/* The arrows are drawn for right-to-left reading, so they turn around with the page */
[dir=ltr] .back, [dir=ltr] .chev { transform: scaleX(-1); }
.lang { font-size: .8125rem; }
.auth-head .lang { position: absolute; inset-inline-end: 16px; top: 16px; }
.auth-head { position: relative; }

.auth .ghost { color: var(--ink); border-color: var(--line); }
.auth .ghost:hover { background: var(--brand-soft); }
.auth-body { background: transparent; padding-bottom: clamp(140px, 26vw, 250px); }
.btn { font-weight: 800; }

/* ---------- Tablets and computers ---------- */
@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
  .shell { max-width: 760px; border-inline: 1px solid var(--line); }
  .page { padding: 28px 28px 40px; }
  .tabs { max-width: 760px; margin-inline: auto; border-inline: 1px solid var(--line); border-radius: 16px 16px 0 0; }
  .logo { width: 300px; }
}
@media (min-width: 1024px) {
  /* Sign-in: the logo beside the form instead of above it */
  .auth { flex-direction: row; align-items: center; justify-content: center; gap: 56px; padding: 40px; }
  .auth-head { flex: 0 1 420px; margin: 0; padding: 0 0 120px; }
  .auth-head .lang { position: fixed; top: 20px; }
  .logo { width: 360px; }
  .auth-body { flex: 0 1 460px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; margin-bottom: 120px; }
}

/* Brand mark and reload button on every screen */
.mark { flex: none; height: 34px; aspect-ratio: 641 / 223; background-color: #EA6924; -webkit-mask: url(/logo-mark.png) center / contain no-repeat; mask: url(/logo-mark.png) center / contain no-repeat; }
.auth-refresh { position: absolute; inset-inline-start: 16px; top: 16px; }
@media (min-width: 1024px) { .auth-refresh { position: fixed; top: 20px; } }
@media (max-width: 359px) { .topbar .mark { height: 24px; } .topbar { gap: 8px; } }

/* Choosing what to send to a shop */
.avoid.one { grid-template-columns: 1fr; max-height: 46vh; overflow: auto; }
details.fold { margin-top: 20px; }
details.fold > summary { font-size: 1rem; }
.btn.whatsapp[aria-disabled] { cursor: not-allowed; }

/* ---------- Printed shopping list ---------- */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body > *:not(#print-sheet) { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  #print-sheet { display: block; }
  #print-sheet header { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 14px; }
  #print-sheet header img { height: 26mm; width: auto; }
  #print-sheet .who { flex: 1; display: flex; flex-direction: column; font-size: 13pt; }
  #print-sheet .who span { font-size: 10pt; }
  #print-sheet .get { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8pt; }
  #print-sheet .get svg { width: 24mm; height: 24mm; }
  #print-sheet table { width: 100%; border-collapse: collapse; }
  #print-sheet th, #print-sheet td { border: 1px solid #000; padding: 7px 8px; text-align: start; vertical-align: middle; }
  #print-sheet th { background: #eee; font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-sheet td:last-child, #print-sheet th:last-child { width: 28mm; }
  #print-sheet td small { display: block; font-size: 8pt; }
  #print-sheet tfoot td { font-weight: 700; }
  #print-sheet tr { break-inside: avoid; }
  #print-sheet footer { margin-top: 12px; font-size: 9pt; text-align: center; }
}

/* ---------- Clear need cards (readable with weak sight) ---------- */
.meta { font-size: .875rem; }
.list > li.need { display: block; padding: 16px; border-top: 2px solid var(--line); }
.need .title { display: block; font-size: 1.375rem; font-weight: 800; line-height: 1.35; margin: 8px 0 10px; }
.need-top { display: flex; flex-wrap: wrap; gap: 8px; }
.state { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 8px; font-size: .9375rem; font-weight: 800; border: 2px solid currentColor; }
.state.pending { color: var(--brand); background: var(--brand-soft); }
.state.bought { color: var(--ok-ink); background: var(--ok-soft); }
.state.urgent { color: var(--danger); background: var(--danger-soft); }
.state.off { color: var(--muted); background: transparent; }
.qtys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.qty { min-width: 84px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; }
.qty span { font-size: .875rem; color: var(--muted); font-weight: 700; }
.qty b { font-size: 1.5rem; line-height: 1.2; }
.qty.now { border-color: var(--brand); }
.qty.now b { color: var(--brand); }
.need-actions { display: flex; gap: 10px; margin-top: 12px; }
.need-actions .btn { flex: 1; min-height: 52px; font-size: 1.0625rem; }
.need-actions .btn.quiet { flex: 0 1 auto; border-width: 2px; }
.btn.danger-text { color: var(--danger); border-color: var(--danger-line); }
.need details.part summary { font-size: 1rem; min-height: 44px; text-decoration: underline; }
.need details.part input { min-height: 48px; font-size: 1.125rem; border-width: 2px; }
li.need.is-purchased .title { text-decoration: none; color: var(--ink); }
li.need.is-cancelled .title { text-decoration: line-through; }
.chip { min-height: 44px; font-size: 1rem; border-width: 2px; }
.tabs a { font-size: .9375rem; }
:focus-visible { outline-width: 4px; }

/* ---------- Readability and accessibility baseline (WCAG 2.2 AA) ---------- */
/* No text smaller than 14px at the default size; it all scales with the text-size button */
.tag, .topbar .sub, .x, .ghost, .invite-link, .btn.small, details.part summary, .tabs a, small.meta, .meta { font-size: .875rem; }
.tag { padding: 3px 10px; border: 1.5px solid currentColor; }
/* Touch targets at least 44px */
.x, .ghost, .btn.small, .chip, .check, details > summary { min-height: 44px; }
.x { min-width: 44px; padding: 0 8px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 26px; height: 26px; }
/* Lists outside the needs tab: bigger names and amounts */
.list .title, .claim .flow { font-size: 1.125rem; }
.amount { font-size: 1.25rem; font-weight: 800; }
.figures b { font-size: 1.5rem; }
/* Form fields: clear borders, readable placeholders, 16px+ text so phones do not zoom in */
input, select, textarea { font-size: 1rem; border-width: 2px; }
::placeholder { color: var(--muted); opacity: .85; }
label > span, .field > span { font-weight: 700; }
.error { font-weight: 700; border: 2px solid var(--danger); }
a { text-underline-offset: 3px; }
/* People who ask the system for more contrast */
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --line: var(--ink); }
  .btn { border-color: currentColor; }
}
/* Windows high-contrast mode: keep the logo visible */
@media (forced-colors: active) {
  .logo, .mark { forced-color-adjust: none; background-color: CanvasText; }
  .btn, .chip, .state, .qty { border: 2px solid ButtonText; }
}
/* People who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.ghost.back { font-size: 1.125rem; font-weight: 700; }
