:root {
  --bg: #F1F3F1;
  --paper: #FFFFFF;
  --ink: #1A2129;
  --muted: #5F6B78;
  --faint: #98A3AE;
  --line: #DCE1E6;
  --accent: #F26A0F;
  --accent-deep: #D25500;
  --on-accent: #FFFFFF;
  --dark: #1B2430;
  --on-dark: #F4F6F8;
  --ok: #2E9E5B;
  --warn: #D33A2C;
  --night: #3B4E9A;
  --fahrt: #7A6A5A;
  --tint: #FFF1E7;
  --radius: 12px;
  --tabs-h: 64px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181F;
    --paper: #1B2430;
    --ink: #EEF1F4;
    --muted: #9AA6B2;
    --faint: #66727E;
    --line: #2C3742;
    --accent: #FF7A1A;
    --accent-deep: #E8620A;
    --dark: #0E131A;
    --tint: #2A2118;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

#app { min-height: 100%; display: flex; flex-direction: column; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--dark); color: var(--on-dark);
  padding-top: var(--sat);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 52px; }
.top h1 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: 0.01em; }
.top .back { display: inline-flex; align-items: center; gap: 4px; color: var(--on-dark); background: none; border: 0; padding: 4px 0; font-weight: 600; }
.top .back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.status { font-size: 12.5px; color: #C7D0DA; display: flex; align-items: center; gap: 6px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status.offline .dot { background: var(--faint); }
.status.pending .dot { background: var(--accent); }

/* Inhalt */
.view { flex: 1; padding: 16px 16px calc(var(--tabs-h) + var(--sab) + 24px); max-width: 640px; width: 100%; margin: 0 auto; }
.view.wide { max-width: 900px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
h2 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
small { font-size: 13px; }
p { margin: 0 0 12px; }

/* Untere Reiter */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; height: calc(var(--tabs-h) + var(--sab)); padding-bottom: var(--sab);
  background: var(--paper); border-top: 1px solid var(--line);
}
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tabs a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.active { color: var(--accent); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-weight: 600; font-size: 15px;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:active { background: var(--accent-deep); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.btn.danger { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.actions { display: flex; gap: 10px; margin: 14px 0; }
.actions .btn { flex: 1; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--accent-deep); font-weight: 600; }
@media (prefers-color-scheme: dark) { .linkbtn { color: var(--accent); } }

/* Stempeluhr */
.stamp { background: var(--paper); border-radius: 16px; padding: 16px; box-shadow: 0 1px 0 var(--line); }
.stamp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.stamp-top strong { color: var(--ink); font-weight: 700; }
.stamp label.field { margin-bottom: 10px; }
.seg { display: flex; background: var(--bg); border-radius: 10px; padding: 3px; margin: 0 0 10px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 8px; min-height: 40px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.chk { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; }
.chk input { width: 22px; height: 22px; accent-color: var(--accent); }
.btn.start { min-height: 64px; font-size: 20px; border-radius: 14px; margin-top: 6px; }
.stamp.running { background: var(--dark); color: var(--on-dark); }
.stamp.running .stamp-top, .stamp.running .stamp-top strong { color: #C7D0DA; }
.stamp.running .stamp-top strong { color: var(--on-dark); }
.clock { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 8px 0 6px; color: var(--accent); font-variant-numeric: tabular-nums; }
.stamp-meta { font-size: 14px; color: #C7D0DA; margin-bottom: 16px; }
.stamp-meta b { color: var(--on-dark); font-weight: 600; }
.btn.stop { min-height: 60px; font-size: 19px; border-radius: 14px; }

/* Wochen-Kopf */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 10px; }
.weeknav .wk { text-align: center; }
.weeknav .wk strong { display: block; font-size: 15px; }
.weeknav .wk small { color: var(--muted); }
.weeknav button { width: 44px; height: 40px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; font-size: 20px; line-height: 1; }
.weeknav .sum { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }

/* Liste (Zeiten) */
.ledger { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.ledger .day-h { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px 6px; font-size: 13px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.ledger .day-h .num { white-space: nowrap; }
.ledger .day-h:first-child { border-top: 0; }
.ledger .day-h.today { color: var(--accent-deep); }
.ledger .row {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; align-items: center;
  width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; border-top: 1px solid var(--line);
}
.ledger .row-time { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .row-time small { display: block; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger .row-proj { min-width: 0; }
.ledger .row-proj strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .row-proj small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .row-h { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger .empty { padding: 18px 14px; color: var(--faint); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.tag.n { background: var(--night); color: #fff; }
.tag.f { background: var(--fahrt); color: #fff; }
.tag.pend { background: var(--accent); color: #fff; }
.tag.err { background: var(--warn); color: #fff; }
.tag.live { background: var(--ok); color: #fff; }

/* Einsatzplan */
.plan { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.plan-day { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: start; }
.plan-day:first-child { border-top: 0; }
.plan-day.today { box-shadow: inset 4px 0 0 var(--accent); }
.plan-day.we { background: color-mix(in srgb, var(--bg) 60%, var(--paper)); }
.pd-date { font-weight: 700; line-height: 1.2; }
.pd-date small { display: block; color: var(--muted); font-weight: 500; }
.pd-body strong { display: block; font-weight: 600; }
.pd-body small { color: var(--muted); display: block; }
.pd-body .free { color: var(--faint); }
.planner .plan-day { grid-template-columns: 1fr; }
.planner .who { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-items: center; margin-top: 8px; }
.planner .who span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planner select { width: 100%; }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--sab)); padding: 10px 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 15; }
.sticky-bar .btn { max-width: 640px; margin: 0 auto; }

/* Baustellen */
.proj { display: block; background: var(--paper); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.proj strong { display: block; font-size: 16px; }
.proj small { color: var(--muted); display: block; margin-bottom: 8px; }
.bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.proj .meta { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.proj .meta .open { color: var(--warn); font-weight: 600; }
.subtabs { display: flex; background: var(--paper); border-radius: 10px; padding: 3px; margin: 12px 0 14px; }
.subtabs a { flex: 1; text-align: center; padding: 9px 4px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.subtabs a.active { background: var(--dark); color: var(--on-dark); }
.card { background: var(--paper); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card .head strong { font-size: 15px; }
.section { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section .lbl { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; }
.section .lbl span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 10px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log .when { font-size: 12.5px; color: var(--muted); }
.log .del { float: right; }

/* Probleme & Pläne */
.item { background: var(--paper); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.item.done { opacity: 0.7; }
.item .txt { margin-bottom: 6px; }
.item .txt.done { text-decoration: line-through; color: var(--muted); }
.item .meta { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.item .row-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin: 8px 0; background: var(--bg); }
.plan-item .name { font-weight: 600; }
.plan-item .name span { font-weight: 500; color: var(--muted); font-size: 13px; display: block; }
.badge-off { font-size: 11.5px; color: var(--ok); font-weight: 700; }

/* Formulare */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.err { color: var(--warn); font-size: 14px; margin: 8px 0; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; margin-bottom: 12px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.pct { font-size: 40px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.preview { max-width: 100%; max-height: 180px; border-radius: 8px; display: block; margin: 8px auto; background: #fff; }

/* Bottom sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(10, 14, 20, 0.55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 14px 18px calc(18px + var(--sab)); }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-size: 17px; margin: 0 0 14px; }
.sheet .sheet-actions { display: flex; gap: 10px; margin-top: 8px; }
.sheet .sheet-actions .btn { flex: 1; }
.sheet ul.notes { padding-left: 18px; margin: 0 0 12px; }
.sheet ul.notes li { margin-bottom: 6px; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: up 0.18s ease-out; }
  @keyframes up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
}

/* Toast */
.toast { white-space: nowrap; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + var(--sab) + 14px); background: var(--dark); color: var(--on-dark); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 50; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.toast.warn { background: var(--warn); color: #fff; }

/* Anmeldung */
.login { max-width: 380px; margin: 28px auto 0; }
.brand-logo { margin: 8px auto 30px; width: min(300px, 82%); color: var(--ink); }
.brand-logo svg { display: block; width: 100%; height: auto; }
.brand-logo.img { width: auto; max-width: 82%; }
.brand-logo.img img { display: block; max-height: 120px; max-width: 100%; margin: 0 auto; }
.brand-text { text-align: center; margin: 14px 0 28px; }
.brand-text h1 { font-size: 28px; line-height: 1.15; margin: 0; }
.brand-text small { color: var(--muted); font-weight: 600; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand img { width: 64px; height: 64px; border-radius: 16px; }
.brand h1 { font-size: 24px; margin: 0; line-height: 1.1; }
.brand small { color: var(--muted); font-weight: 600; }
.powered { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 28px; }
.powered.by { margin-top: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }

/* Wochentabelle (Verwalter) */
.wt { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.wt th, .wt td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.wt th { color: var(--muted); font-weight: 600; font-size: 12px; }
.wt th.we, .wt td.we { background: color-mix(in srgb, var(--bg) 60%, var(--paper)); }
.wt td:first-child, .wt th:first-child { text-align: left; padding-left: 12px; font-weight: 600; white-space: nowrap; }
.wt td.sum { font-weight: 700; }
.wt td button { border: 0; background: none; padding: 4px 2px; min-width: 32px; font: inherit; border-radius: 6px; }
.wt td button:active { background: var(--bg); }
.wt .n { color: var(--night); font-weight: 700; }
.wt .cap { color: var(--warn); }
.wt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.daynotes { font-size: 13.5px; }
.daynotes dt { font-weight: 700; margin-top: 8px; }
.daynotes dd { margin: 2px 0 0; color: var(--muted); }
.daynotes .vk { color: var(--accent-deep); }

/* Mehr */
.list { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.list > * { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 0; background: none; text-align: left; border-top: 1px solid var(--line); font-size: 15px; }
.list > *:first-child { border-top: 0; }
.list .sub { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.list .chev { color: var(--faint); }
.list b { font-weight: 600; }
.swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: -1px; }
.role { font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.inactive { opacity: 0.55; }

/* Beteiligte (Team-Stempeln) */
.crew { margin: 4px 0 12px; }
.crew-l { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14.5px; color: var(--muted); }
.chip input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }
.members { margin: 4px 0 6px; border-top: 1px solid rgba(255,255,255,0.12); }
.member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.member b { font-weight: 600; }
.member small { display: block; color: #C7D0DA; font-size: 12.5px; }
.member.out { opacity: 0.6; }
.stamp.running .btn.small { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: var(--on-dark); }
.btn.light { color: var(--on-dark); border-color: rgba(255,255,255,0.3); }
.stamp.running .actions { margin: 8px 0 12px; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-row .chk { flex: 1; }
.tag.off { background: var(--line); color: var(--muted); }

/* Stundenübersicht */
.wt.hours th, .wt.hours td { padding: 10px 8px; }
.wt.hours th { max-width: 120px; white-space: normal; }
.wt.hours td button { font-weight: 600; }
.hcell { padding: 10px 0; border-top: 1px solid var(--line); }
.hcell .lbl { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hentry { display: block; text-align: left; font-weight: 500; padding: 4px 0; }

/* Planer: Gruppen je Baustelle */
.chip-btn { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 40px; padding: 5px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; line-height: 1.15; color: var(--ink); text-align: left; }
.chip-btn small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.chip-btn.lead { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip-btn.lead::before { content: 'Bauleiter'; font-size: 10px; font-weight: 700; color: var(--accent-deep); letter-spacing: 0.02em; }
.chip-btn.add { color: var(--accent-deep); border-style: dashed; justify-content: center; }
@media (prefers-color-scheme: dark) { .chip-btn.lead::before, .chip-btn.add { color: var(--accent); } }
.plan-proj .chips { margin: 4px 0 6px; }
.field.sub { margin-top: 10px; }
.field.sub > span { color: var(--accent-deep); }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 0; list-style: none; }
details.more summary::before { content: '+ '; }
details[open].more summary::before { content: '– '; }
details.more .chips { margin-top: 6px; }
.daychecks .chk { min-height: 40px; }

/* Rechnungen */
.inv-entwurf { color: var(--muted); } .inv-offen { color: var(--accent-deep); } .inv-gesendet { color: var(--night); } .inv-bezahlt { color: var(--ok); } .inv-storniert { color: var(--warn); }
.pos { padding: 10px 0; border-top: 1px solid var(--line); }
.pos:first-child { border-top: 0; }
.pos .pos-text { margin-bottom: 6px; }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.3fr auto; gap: 6px; align-items: center; }
.pos-grid input { min-height: 38px; padding: 4px 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.pos-grid .pos-sum { text-align: right; font-weight: 700; white-space: nowrap; }
.pos-grid.ro { grid-template-columns: 1fr auto; color: var(--muted); }
.pos.ro { font-size: 14.5px; }
.inv-totals { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.inv-totals > div.big { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.list .sub.num { text-align: right; }
