/* One stylesheet for every page. Tokens follow DESIGN.md (Apple). */
/* Tokens sit on :root and repeat on body. Repro without the repeat: Playwright
   WebKit with is_mobile + has_touch, 375x667, open /add/fuel/ or /entries/:
   body var() values (color, background, font-family, padding) stay unresolved
   although :root has the tokens. Not caused by :has(), the dark block, or
   html vs :root (each tried). Cause unknown; the repeat is the workaround. */
:root, body {
  /* Design tokens from the approved mockup (docs/product/release-1/design) */
  --blue: #0066cc;
  --blue-tint: rgba(0, 102, 204, 0.1);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #8e8e93;
  --canvas: #f5f5f7;
  --card: #ffffff;
  --hair: #e0e0e0;
  --chip: #e8e8ed;
  --g-bg: #dfeaf7;
  --g-fg: #0066cc;
  --a-bg: #f6e4d8;
  --a-fg: #9a4510;
  --red: #d70015;
  --on-fill: #ffffff;
  --tab-bg: rgba(250, 250, 252, 0.95);
  --dark-card: #1d1d1f;
  --green: #248a3d;
  --ok: #34c759;
  --warn: #ff9500;
  --oth-bg: #ececf0;
  --oth-fg: #55555a;

  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 17px;
  --space-lg: 24px;
  --space-xl: 32px;

  --touch: 44px;
  --font: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root, body {
    --blue: #2997ff;
    --blue-tint: rgba(41, 151, 255, 0.16);
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #8e8e93;
    --canvas: #000000;
    --card: #1c1c1e;
    --hair: #38383a;
    --chip: #2c2c2e;
    --g-bg: #11304f;
    --g-fg: #6cb4ff;
    --a-bg: #40250f;
    --a-fg: #f2a66d;
    --red: #ff453a;
    --on-fill: #000000;
    --tab-bg: rgba(22, 22, 24, 0.95);
    --dark-card: #2c2c2e;
    --green: #30d158;
    --oth-bg: #2c2c2e;
    --oth-fg: #c7c7cc;
  }
  .memo-card.memo-card { background: #2e2a12; color: #f1e7b0; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: var(--space-md);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 640px; margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}
h1 { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: .2px; margin: 2px 4px 4px; }
h2 { font-size: 21px; line-height: 1.19; letter-spacing: 0.231px; margin-top: var(--space-lg); }
h3 { font-size: 17px; line-height: 1.24; margin-top: var(--space-md); }
.balance { font-size: 28px; line-height: 1.14; letter-spacing: -0.28px; margin: 0 0 var(--space-sm); }

p { margin: 0 0 var(--space-sm); }
ul, ol { margin: 0 0 var(--space-md); padding-left: var(--space-lg); }
li { margin: var(--space-xxs) 0; }

a {
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 0 var(--space-xs);
  margin-left: calc(-1 * var(--space-xs));
}
a:hover { text-decoration: underline; }

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

label { display: inline-block; margin-bottom: var(--space-xxs); }
label:has(input[type=checkbox]) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--touch);
  min-width: var(--touch);
}
input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }

input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  background: none;
  border: 0;
  outline: none;
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: var(--space-lg);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 9px) 50%, calc(100% - 3px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

[role="alert"] { color: var(--red); font-weight: 600; }
span[role="alert"] { display: block; margin-top: var(--space-xxs); }
.errorlist { list-style: none; margin: 0 0 var(--space-sm); padding: 0; color: var(--red); font-weight: 600; font-size: 14px; }

button {
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 17px;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; }
.danger { background: var(--red); color: #fff; }

/* Overview */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-sm) 0; }
.actions a {
  margin-left: 0;
  justify-content: center;
  padding: 0 var(--space-md);
  border: 1px solid var(--blue);
  border-radius: var(--radius-pill);
}
#undo {
  padding: var(--space-sm) var(--space-md);
  margin: 0 0 var(--space-sm);
  background: var(--card);
  border-radius: var(--radius-lg);
}
#undo form { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); }
#undo button { background: none; color: var(--blue); font-weight: 600; padding: 0 var(--space-xs); }

form > p { margin-bottom: var(--space-md); }
#entries-filter { display: grid; gap: var(--space-xs); margin-bottom: var(--space-md); }

/* Sheets and forms (mockup .sheet, .group, .field, .flabel, .chips) */
.sheet { margin: 0 0 var(--space-md); }
.group { display: block; background: var(--card); border-radius: 12px; overflow: hidden; margin: 0 0 var(--space-sm); }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 16px; min-height: 48px; font-size: 17px; position: relative; }
.field+.field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
.field label { flex: none; width: 96px; margin: 0; }
.field input, .field select { flex: 1; text-align: right; font-size: 17px; min-width: 0; border: 0; background: none; padding: 0; }
.field input::placeholder { color: var(--faint); }
.field input[aria-invalid="true"] { color: var(--red); }
.field [role="alert"] { flex-basis: 100%; margin: 0; padding-bottom: 8px; font-size: 14px; }
.field .unit { color: var(--muted); }
.tfield { display: block; padding: 0 16px; position: relative; }
.tfield label { display: block; padding-top: 12px; margin: 0; }
.tfield textarea { display: block; width: 100%; font-size: 16px; min-height: 110px; padding: 6px 0 12px; resize: none; line-height: 1.4; }
.tfield::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
.group fieldset { margin: 0; }
.group fieldset .flabel, .group > .flabel { margin: 12px 16px 4px; }
.group fieldset .field::before { left: 16px; }
.group fieldset .field:first-of-type::before { content: none; }
.amtfield { justify-content: center; padding: 8px 16px; }
.amtfield label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.amtwrap { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 4px 0; }
.amtwrap span { font-size: 34px; font-weight: 600; color: var(--muted); }
.amtwrap input { font-size: 52px; font-weight: 700; width: 230px; text-align: left; letter-spacing: -1px; flex: none; padding-right: 6px; }
.amtwrap input::placeholder { color: var(--hair); }
.flabel { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin: 18px 4px 8px; padding: 0; display: flex; justify-content: space-between; float: none; }
fieldset { border: 0; margin: 0 0 var(--space-sm); padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  min-height: 44px;
  min-width: var(--touch);
  margin: 0;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--blue); color: #fff; box-shadow: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg { display: flex; gap: var(--space-xxs); padding: 2px; border-radius: 10px; background: var(--chip); margin: 18px 0 12px; }
.seg a { flex: 1; justify-content: center; margin: 0; padding: 0 var(--space-xs); height: 34px; min-height: 34px; color: var(--ink); font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); }
.seg a[aria-current="page"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 4px 0; line-height: 1.4; }
.hint.err { color: var(--red); }
.infobox { background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; }
.sfoot { padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); margin: var(--space-md) -17px 0; background: var(--canvas); border-top: 1px solid var(--hair); }
.effect { font-size: 14px; line-height: 1.35; margin: 0 0 10px; min-height: 38px; display: flex; flex-direction: column; justify-content: center; }
.effect b { font-size: 15px; }
.effect .err { color: var(--red); }
.effect small { color: var(--muted); font-size: 13px; }
.save { display: block; width: 100%; height: 52px; padding: 0; border-radius: 14px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; }
.formsave { margin-top: 18px; }
.infobox .ic { flex: none; width: 20px; height: 20px; }
.infobox .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.save:disabled { opacity: 1; background: var(--chip); color: var(--muted); cursor: default; }
.field.odo input { text-align: left; font-size: 22px; font-weight: 600; }

.bigbtn.danger { background: var(--red); color: #fff; border: 0; }
.bigbtn.alt.danger { background: var(--card); color: var(--red); }
.dhead { text-align: center; padding: 6px 0 16px; }
.dhead .amt { font-size: 40px; font-weight: 700; letter-spacing: -0.6px; margin: 0; }
.dhead .sent { font-size: 16px; color: var(--muted); margin: 4px 0 0; line-height: 1.35; }
.list { background: var(--card); border-radius: 18px; overflow: hidden; margin: 0 0 var(--space-md); padding: 0; list-style: none; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 0 16px; min-height: 46px; align-items: center; font-size: 16px; position: relative; margin: 0; }
.kv+.kv::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
.kv span:first-child { color: var(--muted); flex: 0 1 auto; min-width: 0; }
.kv span:last-child { text-align: right; }
#history { background: var(--card); border-radius: 18px; overflow: hidden; list-style: none; margin: 0 0 var(--space-md); padding: 0; }
#history li { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.45; }
#history li+li { border-top: 1px solid var(--hair); }
.btnrow .bigbtn { margin: 0; }

.search { display: flex; align-items: center; gap: 8px; background: var(--chip); border-radius: 11px; height: 40px; padding: 0 10px; color: var(--muted); margin-bottom: 10px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; font-size: 17px; color: var(--ink); }
.search button { position: absolute; width: 1px; height: 1px; padding: 0; min-height: 0; min-width: 0; overflow: hidden; clip: rect(0 0 0 0); }
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 4px; }
.fchip { height: 34px; min-height: 34px; padding: 0 14px; margin: 0; border-radius: 17px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; flex: none; white-space: nowrap; }
.fchip.on { background: var(--blue); color: #fff; }
#results h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin: 18px 4px 6px; }
#results .list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; min-height: 62px; }
#results .list li+li { border-top: 1px solid var(--hair); }
#results .ttl, .row .ttl { font-size: 16px; font-weight: 500; }
#results .ttl { color: var(--ink); display: inline; min-height: 0; padding: 0; margin: 0; }
#results .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
#results .a { font-size: 16px; font-weight: 600; }
.note { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 10px 4px 0; }

.navrow { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin: 0; min-height: 54px; width: 100%; text-align: left; font-size: 17px; position: relative; color: var(--ink); background: none; border: 0; border-radius: 0; }
.navrow+.navrow::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; border-top: 1px solid var(--hair); }
.navrow .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; }
.navrow .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.navrow .t { flex: 1; }
.navrow .v { color: var(--muted); font-size: 16px; }
.navrow .chev { color: var(--faint); display: flex; }
.navrow.danger { color: var(--red); background: none; justify-content: center; }
.login { display: flex; flex-direction: column; justify-content: center; min-height: 70vh; }
.login .logo { width: 64px; height: 64px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.login .logo svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login h1, .login .sub { text-align: center; }
.login .errbox svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.toast { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(29, 29, 31, .94); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 15px; margin: 0; font-weight: 400; position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 30; }
.toast button { color: #64b0ff; font-weight: 600; font-size: 15px; min-height: 32px; background: none; padding: 0; }

/* Tab bar: five equal tabs fixed at the bottom of every main page */
body.has-tabs { padding-bottom: calc(72px + var(--space-md) + env(safe-area-inset-bottom)); }
#tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--tab-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
#tabbar a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 0 2px;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--faint);
  white-space: nowrap;
  text-align: center;
}
#tabbar a svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#tabbar a[aria-current="page"] { color: var(--blue); }

/* Overview top bar */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-xs); }
.topbar a { margin: 0; justify-content: center; }
.iconbtn, .me { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; border-radius: 50%; justify-content: center; font-weight: 600; font-size: 15px; }
.iconbtn { background: var(--card); color: var(--blue); }
.me { background: var(--g-bg); color: var(--g-fg); display: inline-grid; place-items: center; flex: none; }
.me.G { background: var(--g-bg); color: var(--g-fg); }
.me.A { background: var(--a-bg); color: var(--a-fg); }
.how { background: var(--blue-tint); border-radius: 18px; font-size: 14px; line-height: 1.45; }
.how b { font-size: 14px; }
.how p { margin: 0 0 6px; }
.how button { background: none; border: 0; padding: 0; min-height: 32px; color: var(--blue); font-weight: 600; font-size: 15px; }
.backup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; color: var(--muted); margin: 20px 0 0; }
.mid { flex: 1; min-width: 0; }
.rt { text-align: right; flex: none; }
.rt .a { display: block; font-size: 16px; font-weight: 600; }
.rt .e { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
:is(#expenses-list, #all-list ol) .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
:is(#expenses-list, #all-list ol) .ttl { display: flex; align-items: center; gap: 6px; }

.card {
  background: var(--card);
  padding: var(--space-sm) var(--space-md);
  margin: 0 0 var(--space-sm);
  border-radius: 18px;
}
#how-card { padding: 14px 16px; margin: 0 0 14px; }
.card h2, #how-card h2 { margin-top: 0; font-size: 17px; }
.total { font-size: 24px; font-weight: 700; margin: 0 0 var(--space-xxs); }
#money-segments, #month-chips { margin: 0 0 var(--space-md); overflow-x: auto; }
#money-segments a, #month-chips a { white-space: nowrap; }
:is(#expenses-list, #all-list ol), :is(#transfers-list, #all-list ol), #amex-list { list-style: none; padding-left: 0; }
:is(#expenses-list, #all-list ol), :is(#transfers-list, #all-list ol), #amex-list { background: var(--card); border-radius: 18px; overflow: hidden; }
:is(#expenses-list, #all-list ol) li, :is(#transfers-list, #all-list ol) li, #amex-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xxs) var(--space-xs);
  margin: 0;
  padding: 10px 16px;
  min-height: 62px;
  border-top: 1px solid var(--hair);
}
:is(#expenses-list, #all-list ol) li:first-child, :is(#transfers-list, #all-list ol) li:first-child, #amex-list li:first-child { border-top: 0; }
.ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--chip); color: var(--ink); flex: none; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Money action buttons (mockup .bigbtn) */
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.btnrow > :only-child { grid-column: 1 / -1; }
.bigbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; width: 100%; margin: 0; padding: 0; }
.bigbtn:hover { text-decoration: none; }
.bigbtn.alt { background: var(--card); color: var(--blue); }
.bigbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.danger { background: var(--red); }

.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--chip); margin: 12px 0 10px; gap: 2px; }
.bar span { display: block; height: 100%; min-width: 2px; }
[data-who="G"] { background: var(--g-fg); }
[data-who="A"] { background: var(--a-fg); }
[data-who="B"] { background: var(--ink); }
[data-who="S"] { background: var(--faint); }
[data-who="O"] { background: repeating-linear-gradient(45deg, var(--faint) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--faint); }
.bar [data-who="O"] { box-shadow: none; }
.othline { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--oth-bg); color: var(--oth-fg); border-radius: 12px; padding: 10px 14px; margin-top: 8px; font-size: 14px; line-height: 1.35; }
.othline b { color: var(--ink); font-size: 15px; }
.legend .pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--chip); color: var(--muted); }
.sw { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend .li { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.legend .li .n { display: flex; align-items: center; gap: 8px; }
.num { font-variant-numeric: tabular-nums; }
.fG { color: var(--g-fg); }
.fA { color: var(--a-fg); }
.sub { font-size: 15px; color: var(--muted); margin: 0 4px 14px; line-height: 1.35; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 4px 8px; }
.sec h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.1px; margin: 0; }
.card h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin: 0; }
.hero .amt { font-size: 28px; font-weight: 700; letter-spacing: -0.4px; margin: 2px 0 6px; }
.topbar .back { display: flex; align-items: center; gap: 2px; color: var(--blue); font-size: 17px; min-height: 44px; margin-left: -8px; }
.topbar .back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

#car-list, #amex-list, #payments { list-style: none; padding-left: 0; margin: 0 0 var(--space-md); background: var(--card); border-radius: 18px; overflow: hidden; }
#car-list li, #amex-list li, #payments li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; min-height: 62px; border-top: 1px solid var(--hair); }
#car-list li:first-child, #amex-list li:first-child, #payments li:first-child { border-top: 0; }
#car-list .t, #amex-list .t, #payments .t { display: inline; min-height: 0; margin: 0; padding: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
#car-list .s, #amex-list .s, #payments .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ic.amex { background: var(--dark-card); color: #fff; }

.situ { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.situ a { background: var(--blue); color: #fff; border-radius: 18px; padding: 16px 14px; margin: 0; min-height: 118px; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; }
.situ a:hover { text-decoration: none; }
.situ a.alt { background: var(--card); color: var(--ink); }
.situ a.alt svg { color: var(--blue); }
.situ svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.situ b { font-size: 18px; display: block; margin-top: 10px; }
.situ small { font-size: 13px; opacity: 0.8; display: block; margin-top: 2px; }

.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 14px; scrollbar-width: none; }
.mchip { height: 36px; min-height: 36px; padding: 0 16px; margin: 0; border-radius: 18px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 500; flex: none; white-space: nowrap; }
.mchip[aria-current="page"] { background: var(--ink); color: var(--canvas); }
.amexcard { background: var(--dark-card); color: #fff; border-radius: 20px; padding: 20px; min-height: 164px; display: flex; flex-direction: column; justify-content: space-between; margin: 0 0 12px; }
.amexcard .top { display: flex; justify-content: space-between; font-size: 14px; opacity: 0.75; }
.amexcard .big { font-size: 40px; font-weight: 700; letter-spacing: -0.6px; }
.amexcard .bt { font-size: 14px; opacity: 0.8; }

#bigcosts-list { list-style: none; padding-left: 0; }
.bigcard { display: block; background: var(--card); border-radius: 18px; padding: 16px; margin: 0 0 10px; }
.bigcard .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; }
.bigcard .h .v { font-size: 18px; font-weight: 700; }
.bigcard .m { font-size: 13px; color: var(--muted); margin-top: 3px; }
.bigcard .bar { margin: 12px 0 6px; }
.bigcard .lg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.bigcard .lg span { display: inline-flex; align-items: center; gap: 5px; }
.bigcard .memo { font-size: 14px; line-height: 1.4; margin-top: 10px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.memo-card { background: #fff8d6; color: #3a2f00; border-radius: 18px; padding: 16px; font-size: 15px; line-height: 1.5; margin: 12px 0 0; }
.memo-card .h3 { color: inherit; opacity: 0.7; margin-bottom: 6px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.memo-card .h3 a { color: inherit; font-weight: 700; text-transform: none; letter-spacing: 0; margin: 0; }
.memo-card p { margin: 0; }

/* Overview: the top card and the ledger (two columns of amounts) */
.hero .balance { margin-bottom: var(--space-xxs); }
.since { font-size: 14px; opacity: 0.7; margin: 0 0 var(--space-xs); }
.changes { margin: 0; }
.changes a {
  display: flex;
  width: 100%;
  gap: var(--space-xs);
  margin-left: 0;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  color: var(--ink);
  font-size: 14px;
}
.pip { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.ledger { margin: 0 0 var(--space-sm); border-radius: 18px; background: var(--card); overflow: hidden; }
/* Two amount columns wide enough for €1,000,000.00 at 375 px (AC-199) */
.lgrid { display: grid; grid-template-columns: minmax(120px, 1fr) 86px 86px 10px; column-gap: 4px; align-items: center; padding: 0 12px; }
.lgrid > .v, .lhead > :nth-child(n+2) { text-align: right; }
.lgrid > .v { font-size: 13px; letter-spacing: -0.3px; white-space: nowrap; }
.amt { white-space: nowrap; }
.save-notice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin: 0 0 var(--space-sm); }
.lhead { padding-top: var(--space-sm); font-size: 13px; font-weight: 700; color: var(--muted); }
#ledger-head > :nth-child(2) { color: var(--g-fg); }
#ledger-head > :nth-child(3) { color: var(--a-fg); }
.lcap { padding: var(--space-sm) var(--space-md) var(--space-xxs); font-size: 13px; font-weight: 600; color: var(--muted); }
.lrow { margin: 0; min-height: 60px; border-top: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.lrow .t { display: block; font-weight: 600; white-space: nowrap; }
.lrow .s { display: block; font-size: 13px; opacity: 0.7; }
.lfoot { min-height: 44px; border-top: 1px solid var(--hair); font-weight: 600; color: var(--muted); }
.lfoot .v { color: var(--ink); font-weight: 700; }
.vg { color: var(--g-fg); font-weight: 600; }
.va { color: var(--a-fg); font-weight: 600; }
.lrow .v[role="img"] { color: var(--muted); }
.lrow .chev { display: flex; justify-content: flex-end; color: var(--faint); }
.lres { padding: 14px 16px 16px; border-top: 1px solid var(--hair); font-weight: 700; background: var(--blue-tint); }

/* Breakdowns, the changes sheet and the NEW / CHANGED tags */
.topbar.back { justify-content: flex-start; }
.hero .who { font-size: 17px; font-weight: 600; color: var(--muted); margin: 0; }
.hero .amount { font-size: 46px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; }
.items { list-style: none; padding-left: 0; }
.items li { padding: var(--space-xs) 0; border-bottom: 1px solid var(--hair); }
.items .s { display: block; font-size: 14px; }
.subtotal { display: flex; justify-content: space-between; margin: 0 0 var(--space-md); }
.tag { flex: none; padding: 2px 6px; border-radius: 5px; background: var(--blue); color: #ffffff; font-size: 11px; font-weight: 700; }
.tag.chg { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
#tabbar a { position: relative; }
.dot { position: absolute; top: 6px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--tab-bg); }

/* Eight filter chips do not fit one row at 375 px: wrap them. */
#filter-chips { flex-wrap: wrap; }

/* The changes sheet: each row is one wrapped block of text across the width. */
#changes-list li a { display: block; width: 100%; min-height: var(--touch); margin-left: 0; padding: var(--space-xs) 0; }

/* List rows: title, meta and amount never touch; they wrap with a gap. */
#car-list li a, #results li a { flex-wrap: wrap; gap: 0 var(--space-xs); }
#car-list, #results ul { list-style: none; padding-left: 0; }
.actions a { flex-direction: column; text-align: center; }
.actions a small { opacity: 0.7; }

/* Deposits: the three actions sit in their own row, Delete last and apart. */
:is(#deposits-active, #deposits-paused) { list-style: none; padding-left: 0; background: var(--card); border-radius: 18px; overflow: hidden; }
:is(#deposits-active, #deposits-paused) li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--hair); }
:is(#deposits-active, #deposits-paused) .mid { flex: 1; min-width: 0; }
:is(#deposits-active, #deposits-paused) .mo { display: block; font-size: 13px; color: var(--muted); line-height: 1.25; }
:is(#deposits-active, #deposits-paused) .actions { flex: 0 0 100%; margin-top: 8px; }
:is(#deposits-active, #deposits-paused) li:first-child { border-top: 0; }
:is(#deposits-active, #deposits-paused) .t { display: block; font-weight: 600; }
:is(#deposits-active, #deposits-paused) .s { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; line-height: 1.25; }
:is(#deposits-active, #deposits-paused) .actions { margin-bottom: 0; }
:is(#deposits-active, #deposits-paused) .actions a { flex-direction: row; gap: 8px; margin: 0; border: 0; border-radius: 14px; font-weight: 600; background: var(--chip); color: var(--blue); }
:is(#deposits-active, #deposits-paused) .actions a:hover { text-decoration: none; }
:is(#deposits-active, #deposits-paused) .actions a.delete { margin-left: auto; color: var(--red); }

/* Deposits tab: card lists with icons; the action row reuses .btnrow and .bigbtn */
#open-list ul, #matched-list { list-style: none; padding-left: 0; margin: 0 0 var(--space-md); background: var(--card); border-radius: 18px; overflow: hidden; }
#open-list li, #matched-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xxs) var(--space-xs); margin: 0; padding: 10px 16px; min-height: 62px; border-top: 1px solid var(--hair); }
#open-list li:first-child, #matched-list li:first-child { border-top: 0; }
#open-list .t, #matched-list .t { font-weight: 500; }
#open-list .s, #matched-list .s { display: block; font-size: 13px; color: var(--muted); }
#open-list .a { font-weight: 600; margin-left: auto; }
#open-list form, #matched-list form { margin: 0; }
#match-list li { margin: 0; }
#match-list li+li { border-top: 1px solid var(--hair); }
#match-list label { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; margin: 0; padding: 10px 16px; }
#match-list .mid { flex: 1; min-width: 0; }
#match-list .t { display: block; font-weight: 500; }
#match-list .s { display: block; font-size: 13px; color: var(--muted); }
#match-list .a { font-weight: 600; }
a.mid { display: block; flex: 1; min-width: 0; margin: 0; padding: 0; min-height: 0; color: var(--ink); }
#settings-user .me::after { content: attr(data-initial); }
#settings-user strong { display: block; }
#settings-user .t span { font-size: 13px; color: var(--muted); }
#open-list button, #matched-list button { min-height: 34px; border-radius: 10px; background: var(--chip); color: var(--blue); font-size: 15px; font-weight: 600; padding: 0 12px; }

@keyframes toast-away { to { opacity: 0; visibility: hidden; } }
.toast:not(:has(button)) { animation: toast-away .3s 8s forwards; }
#undo { margin: 0; padding: 0; background: none; border-radius: 0; }
#undo form { display: block; margin: 0; }
.hero p.line span.amt { font-size: 15px; font-weight: 600; letter-spacing: 0; margin: 0; }
#half-counts .amt, .hero .amount .amt { font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0; }
#car-part .amt { font-size: 40px; font-weight: 700; letter-spacing: -0.6px; margin: 0; }
#car-part .total { font-size: 17px; font-weight: 600; margin: 0 0 var(--space-xxs); }
.hero p.line { margin: 0 0 var(--space-xxs); }
.hero ul.plain { list-style: none; margin: 0; padding: 0; }
.hero ul.plain li { margin: 0 0 var(--space-xs); }
.hero ul.plain p { margin: 0; }
.hero .who { margin: 0; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.av.G { background: var(--g-bg); color: var(--g-fg); }
.av.A { background: var(--a-bg); color: var(--a-fg); }
.av.sm { width: 24px; height: 24px; font-size: 11.5px; }
.stat { background: var(--card); border-radius: 18px; padding: 14px 16px; }
.stat p { margin: 0; line-height: 1.3; }
.stat .k { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.stat .v { display: block; font-size: 22px; font-weight: 700; margin-top: 3px; letter-spacing: -0.3px; }
.stat small { font-size: 14px; font-weight: 600; color: var(--muted); }
.sumgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 var(--space-sm); }
.flabel em { margin-left: 8px; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ck { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hair); flex: none; display: inline-grid; place-items: center; }
#match-list input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
input:checked + .ck { background: var(--blue); box-shadow: none; }
input:checked + .ck::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
#match-list label { position: relative; }
#entry-effect { background: var(--blue-tint); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.4; color: var(--ink); white-space: normal; text-align: left; margin: 0 0 14px; }
#settings-backup .t { flex: none; }
#settings-backup .v { flex: 1; min-width: 0; text-align: right; }
#changes-list { list-style: none; margin: 0 0 var(--space-md); padding: 0; }
#changes-list li { margin: 0; padding: 0 16px; border: 0; }
#changes-list li+li { border-top: 1px solid var(--hair); }
#changes-list li a { color: var(--ink); }

@media (prefers-color-scheme: dark) {
  button, .save, .bigbtn, .situ a, .chip:has(input:checked), .fchip.on, .tag, .danger, .bigbtn.danger, .navrow .ico { color: var(--on-fill); }
  :is(#deposits-active, #deposits-paused) .actions a.delete { background: var(--card); }
}

.dhead h1 { text-align: left; }
.dhead .av { width: 56px; height: 56px; font-size: 22px; margin: 0 auto 10px; }
#entry-effect .amt { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.field.stack { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px; }
.field.stack label { width: auto; }
.field.stack input:not([type=hidden]):not([type=radio]):not([type=checkbox]) { flex: none; text-align: left; min-height: 44px; width: 100%; padding: 0 12px; background: var(--chip); border: 1px solid var(--hair); border-radius: 10px; }
#net-cost, #net-cost .amt { font-size: 46px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; }
#settings-backup { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
#settings-backup .v { font-size: 14px; }
#settings-backup .v ~ .v { flex: 0 0 100%; text-align: left; padding-left: 42px; }
.undo::before { content: "Undo"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:is(#transfers-list, #all-list ol) .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.legend .amt { font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0; }

/* Car swapped or borrowed (ADR-0017): the switch on "I just parked" */
.ic.oth { background: var(--oth-bg); color: var(--oth-fg); }
.swrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; min-height: var(--touch); cursor: pointer; }
.swrow .t { flex: 1; font-size: 16px; line-height: 1.3; }
.swrow .t small { display: block; font-size: 13px; color: var(--muted); }
.swrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swrow .switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--chip); flex: none; transition: background 0.2s; box-shadow: inset 0 0 0 1px var(--hair); }
.swrow .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.swrow input:checked + .switch { background: var(--green); box-shadow: none; }
.swrow input:checked + .switch::after { transform: translateX(20px); }
.swrow input:focus-visible + .switch { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .swrow .switch, .swrow .switch::after { transition: none; } }
.sheet:has(input[name="car_swapped"]:checked) .persons { display: none; }

/* Password fields with a show/hide eye (release 2, AC-200) */
.eye { width: 44px; height: 44px; display: grid; place-items: center; color: var(--faint); flex: none; border-radius: 10px; background: none; }
.eye[aria-pressed="true"] { color: var(--blue); }
.field.pw { padding-right: 4px; }
.field.pw input { text-align: left; }
.stackpw .field.pw { flex-wrap: wrap; padding-top: 8px; gap: 0 6px; }
.stackpw .field.pw label { width: 100%; font-size: 13px; color: var(--muted); font-weight: 600; }
.stackpw .field.pw input { padding: 4px 0 10px; }
.errbox { display: flex; gap: 8px; align-items: flex-start; color: var(--red); font-size: 14px; line-height: 1.4; margin: 10px 4px 0; }
.errbox[hidden] { display: none; }

/* Activity log (release 2): day headings and rows */
.daygrp { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin: 18px 4px 6px; }
.actrow { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; position: relative; width: 100%; text-align: left; color: var(--ink); }
li + li > .actrow::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--hair); }
.actrow .av::after { content: attr(data-initial); }
.actrow .mid { flex: 1; min-width: 0; }
.actrow .t { display: block; font-size: 15.5px; line-height: 1.3; }
.actrow .t b { font-weight: 600; }
.actrow .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.actrow .s.fG { color: var(--g-fg); font-weight: 600; }
.actrow .s.fA { color: var(--a-fg); font-weight: 600; }
.actrow .s.f0 { font-weight: 600; }
.actrow .rt { flex: none; text-align: right; font-size: 13px; color: var(--muted); }
.actrow .sep[hidden] { display: none; }
#activity-list > ul { margin: 0 0 var(--space-md); }
#activity-list li { margin: 0; }
.note.center { text-align: center; margin-top: 16px; }
.note.pad { padding: 14px 16px; margin: 0; }

.showall { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; color: var(--blue); font-size: 16px; font-weight: 600; background: var(--card); border-radius: 14px; margin: 0 0 var(--space-md); }
#all-list h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin: 18px 4px 6px; }
#all-list ol { margin: 0 0 var(--space-xs); }
#deposits-paused li.paused .t { color: var(--muted); }

/* Success moment after a new entry is saved (ADR-0019). The check draws itself,
   the new row glows once, the message goes after about 3 s. At most 1.5 s of motion. */
.toast.moment { animation: toast-away .3s 3s forwards; }
.toast .okc { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.toast .okc svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.toast.moment .okc { animation: check-pop .42s cubic-bezier(.2, 1.4, .4, 1) both; }
.toast.moment .okc svg path { animation: check-draw .36s .14s ease-out forwards; }
.toast .tx2 { flex: 1; line-height: 1.3; }
.toast .tx2 small { display: block; font-size: 13px; opacity: .75; }
@keyframes check-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.just-saved { animation: row-glow 1.5s ease-out; }
@keyframes row-glow { 0%, 30% { background: var(--blue-tint); } 100% { background: transparent; } }
/* the sheet slides away when the page changes (Safari 18.2 and later) */
@view-transition { navigation: auto; }
form.sheet { view-transition-name: sheet; }
@keyframes sheet-away { to { transform: translateY(40px); opacity: 0; } }
::view-transition-old(sheet) { animation: sheet-away .25s ease-in both; }
::view-transition-new(sheet) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .toast.moment { animation: toast-away .01s 3s forwards; }
  .toast.moment .okc, .toast.moment .okc svg path, .just-saved { animation: none; }
  .toast .okc svg path { stroke-dashoffset: 0; }
  .just-saved { background: var(--blue-tint); }
}

/* Round 7: sheet header, last-reading card, stat cards, labels (mockup .shead, .prevread) */
.shead { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; min-height: 48px; margin: 0 -8px; }
.shead a { color: var(--blue); font-size: 17px; min-width: 70px; min-height: 44px; display: flex; align-items: center; padding: 0 8px; margin: 0; }
.shead b { font-size: 17px; }
.shead .sp { min-width: 70px; }
.prevread { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 6px 0 var(--space-sm); font-size: 14px; line-height: 1.35; }
.prevread b { font-size: 15px; }
.prevread .mut { color: var(--muted); }
.av.U { background: var(--chip); color: var(--muted); }
.av.car { background: var(--chip); color: var(--ink); }
.chip:has(.av) { padding: 0 14px 0 8px; }
.chip:has(input:checked) .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.field label { width: auto; min-width: 96px; white-space: nowrap; }
.navrow.wrap { flex-wrap: wrap; }
.navrow.wrap .hint { flex-basis: 100%; margin: 0; padding: 0 0 12px 42px; }
#settings-user { align-items: center; }
#settings-user .t { display: block; }
.group .chips { padding: 0 16px 12px; }

/* Round 10 (T20, AC-282): sheet footer stuck to the bottom, Money rows, Settings, Car */
.sfoot.stuck { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 20; }
#settings-user { min-height: 70px; }
#settings-user .me { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
#settings-backup .t { flex: 1; display: flex; justify-content: space-between; gap: 12px; }
.navrow .ico.ok { background: var(--ok); }
.navrow .ico.warn { background: var(--warn); }
:is(#expenses-list, #all-list ol) li { flex-wrap: nowrap; gap: 10px; padding: 8px 16px; }
:is(#expenses-list, #all-list ol) :is(.s, .e) { line-height: 1.3; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; text-align: right; padding: 6px 0; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 10px 0; border-top: 1px solid var(--hair); }
.tbl .fG { color: var(--g-fg); font-weight: 600; }
.tbl .fA { color: var(--a-fg); font-weight: 600; }
:is(#expenses-list, #all-list ol) .ttl a.t { min-height: 0; padding: 0; margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; }
:is(#expenses-list, #all-list ol) .rt { flex: 0 1 auto; max-width: 36%; }
#car-list .t > span { white-space: nowrap; }
form.sheet:has(.sfoot.stuck) + p { padding-bottom: 170px; }
#logout-form { margin-top: 28px; }
