/* TLER – Styles nach dem Design System TLER.ONE (Frost-Glas, Ink, Indigo-Akzent). */

@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --frost-000: #fbfdff; --frost-050: #f5f8fc; --frost-100: #edf3f8; --frost-200: #d9e4ee;
  --indigo-500: #5157d8; --indigo-650: #32389f; --teal-500: #0f9f9a; --amber-500: #d88a1d;
  --bg-page: var(--frost-100);
  --surface-1: #ffffff9e; --surface-2: #ffffff85; --surface-3: #ffffff6b;
  --surface-strong: #ffffffd1; --surface-hover: #ffffffe6;
  --surface-success: #16815f1a; --surface-danger: #b91c3b1a; --surface-warning: #d88a1d1f;
  --accent-solid: #32389f; --accent-solid-hover: #2a2f8a; --accent-glow: #5157d847;
  --fg-primary: #0d1420f0; --fg-secondary: #1d2a3bad; --fg-tertiary: #4350668f;
  --fg-accent: var(--indigo-650); --fg-on-accent: #ffffff;
  --fg-success: #0c6a4d; --fg-danger: #8a1530; --fg-warning: #8a5208;
  --border-glass: #ffffffe0; --border-subtle: #3d4d6321; --border-strong: #54658029;
  --border-success: #16815f47; --border-danger: #b91c3b47; --border-warning: #d88a1d4d;
  --focus-ring: #5157d8b3; --focus-ring-soft: #5157d829;
  --pill-bg: #5157d817; --pill-border: #5157d838; --pill-fg: #30368f; --teal-soft: #0f9f9a1f;
  --bar-track: #3d4d6314; --hud: #0f1622e6; --fg-on-hud: #f1f5faeb;

  --shadow-card: 0 26px 70px -46px #34455c75, inset 0 1px 0 #ffffffdb;
  --shadow-hud: 0 34px 96px -48px #3a4a648c, inset 0 1px 0 #ffffffd1;
  --shadow-accent: 0 18px 34px -24px #32389fe6, inset 0 1px 0 #ffffff33;

  --radius-control: 8px; --radius-row: 10px; --radius-key: 12px; --radius-panel: 14px; --radius-pill: 9999px;
  --blur-sm: 8px; --blur-md: 24px; --blur-lg: 30px; --blur-xl: 40px;
  --ease: cubic-bezier(.2, .72, .2, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --frost-000: #0e1521; --frost-050: #111a27; --frost-100: #0a1019; --frost-200: #1c2736;
    --indigo-500: #7a7ff0; --indigo-650: #a5a9ff; --teal-500: #3cc7c0; --amber-500: #e9a54a;
    --surface-1: #ffffff0f; --surface-2: #ffffff0a; --surface-3: #ffffff07;
    --surface-strong: #ffffff1a; --surface-hover: #ffffff21;
    --surface-success: #34b98a24; --surface-danger: #f0607a24; --surface-warning: #e9a54a24;
    --accent-solid: #4f55d6; --accent-solid-hover: #5d63e6; --accent-glow: #7a7ff04d;
    --fg-primary: #f1f5faf0; --fg-secondary: #dbe3eeb3; --fg-tertiary: #a9b4c48f;
    --fg-success: #5fd3a5; --fg-danger: #ff9aac; --fg-warning: #f2b766;
    --border-glass: #ffffff1f; --border-subtle: #ffffff17; --border-strong: #ffffff29;
    --border-success: #34b98a59; --border-danger: #f0607a59; --border-warning: #e9a54a59;
    --focus-ring: #7a7ff0cc; --focus-ring-soft: #7a7ff033;
    --pill-bg: #7a7ff024; --pill-border: #7a7ff047; --pill-fg: #c3c6ff; --teal-soft: #3cc7c024;
    --bar-track: #ffffff12; --hud: #05080de6;
    --shadow-card: 0 26px 70px -40px #000000b3, inset 0 1px 0 #ffffff14;
    --shadow-hud: 0 34px 96px -40px #000000cc, inset 0 1px 0 #ffffff1a;
    --shadow-accent: 0 18px 34px -20px #4f55d6cc, inset 0 1px 0 #ffffff33;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-page); }
body {
  margin: 0; min-height: 100vh; color: var(--fg-primary);
  font: 16px/1.5 var(--font-sans);
  -webkit-tap-highlight-color: transparent;
  /* Frost mit sehr weichen Lichtflecken (8–10 %) */
  background:
    radial-gradient(70vmax 50vmax at 0% 0%, color-mix(in srgb, var(--indigo-500) 10%, transparent), transparent 70%),
    radial-gradient(60vmax 45vmax at 100% 70%, color-mix(in srgb, var(--teal-500) 8%, transparent), transparent 70%),
    var(--bg-page);
  background-attachment: fixed;
}
a { color: var(--fg-accent); }
button, input, select { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
code, .mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* Glas */
.glass, .list, .card, .summary, .stats {
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(var(--blur-lg)); backdrop-filter: blur(var(--blur-lg));
}

/* Kopfleiste */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg-page) 72%, transparent);
  -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(1.2); backdrop-filter: blur(var(--blur-sm)) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar h1 { flex: 1; min-width: 0; margin: 0; font: 600 18px/26px var(--font-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { display: flex; gap: 8px; }
.wordmark { flex: 1; font: 700 22px/1 var(--font-display); letter-spacing: -.03em; color: var(--fg-primary); text-decoration: none; }
.wordmark span { color: var(--fg-accent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: var(--radius-row); color: var(--fg-secondary); cursor: pointer; text-decoration: none;
  background: var(--surface-strong); border: 1px solid var(--border-glass); box-shadow: var(--shadow-card);
  transition: transform .12s var(--ease), background .18s var(--ease);
}
.icon-btn:active { transform: scale(.98); background: var(--surface-hover); }

.page {
  max-width: 560px; margin: 0 auto;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.page.has-fab { padding-bottom: calc(env(safe-area-inset-bottom) + 112px); }

/* Typo */
.hero { padding: 12px 2px 4px; }
.hero h2 { margin: 6px 0 10px; font: 700 40px/.96 var(--font-display); letter-spacing: -.035em; }
.hero h2 u { text-decoration: none; box-shadow: inset 0 -2px 0 var(--indigo-500); }
.hero p { margin: 0; }
.hero .lead { font-size: 16px; line-height: 24px; color: var(--fg-secondary); }
.eyebrow, .section-title {
  margin: 0; font: 500 10px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg-secondary);
}
.section-title { margin: 8px 2px -6px; }
.muted { color: var(--fg-secondary); }
.small { font-size: 13px; line-height: 18px; }
.center { text-align: center; }
.pos { color: var(--fg-success); }
.neg { color: var(--fg-danger); }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px;
  border-radius: var(--radius-panel); font-size: 14px;
  background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--pill-fg);
}
.notice select { flex: 1; min-width: 140px; }
.empty { padding: 32px 16px; text-align: center; color: var(--fg-secondary); }
.empty .ic { width: 28px; height: 28px; color: var(--fg-accent); margin-bottom: 8px; }
.empty .btn { margin-top: 12px; }
.empty-title { display: block; color: var(--fg-primary); font-weight: 600; margin-bottom: 2px; }
.loading { padding: 40px; text-align: center; color: var(--fg-secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: var(--radius-control);
  border: 1px solid var(--border-glass); background: var(--surface-strong); color: var(--fg-primary);
  box-shadow: var(--shadow-card); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease), background .18s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; stroke-width: 1.75; }
.btn.primary { background: var(--accent-solid); border-color: transparent; color: var(--fg-on-accent); box-shadow: var(--shadow-accent); }
.btn.primary:hover { background: var(--accent-solid-hover); }
.btn.danger { color: var(--fg-danger); background: transparent; box-shadow: none; border-color: var(--border-danger); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--fg-secondary); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: .5; }
.danger-text { color: var(--fg-danger) !important; }
.link { border: 0; background: none; color: var(--fg-accent); padding: 0; cursor: pointer; text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.install-hint { text-align: center; font-size: 13px; color: var(--fg-secondary); margin: 0; }

/* Listen */
.list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.list > li + li:not(.date-head) { border-top: 1px solid var(--border-subtle); }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 62px;
  color: inherit; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
a.row:active, button.row:active { background: var(--surface-hover); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.row-main strong .ic { width: 14px; height: 14px; color: var(--fg-secondary); }
.row-main > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-end strong { font-weight: 600; }
.chev { color: var(--fg-tertiary); display: grid; }
.chev .ic { width: 18px; height: 18px; }
.date-head { padding: 14px 14px 4px; font: 500 10px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg-secondary); }

.avatar {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font: 600 12px/1 var(--font-mono); background: var(--surface-strong); border: 1px solid var(--border-subtle); color: var(--fg-secondary);
}
.avatar.me { background: var(--pill-bg); border-color: var(--pill-border); color: var(--pill-fg); }
.group-badge {
  flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  font: 700 18px/1 var(--font-display); background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--fg-accent);
}
.group-badge.alt { background: var(--teal-soft); border-color: transparent; color: var(--teal-500); }
.cat {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-row);
  background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--fg-secondary);
}
.expense.transfer .cat { background: var(--pill-bg); border-color: var(--pill-border); color: var(--fg-accent); }

/* Übersicht + Tabs */
.summary { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px; }
.summary div { display: flex; flex-direction: column; gap: 4px; }
.summary .right { align-items: flex-end; text-align: right; }
.summary strong { font: 700 clamp(20px, 7vw, 26px)/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tabs, .segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px;
  border-radius: var(--radius-row); background: var(--surface-2); border: 1px solid var(--border-subtle);
}
.tabs button, .segmented button {
  border: 1px solid transparent; background: none; min-height: 36px; border-radius: var(--radius-control);
  font-weight: 600; font-size: 14px; color: var(--fg-secondary); cursor: pointer; transition: background .18s var(--ease);
}
.segmented.small button { min-height: 32px; font-size: 13px; }
.tabs button[aria-selected="true"], .segmented button[aria-pressed="true"] {
  background: var(--surface-strong); color: var(--fg-primary); border-color: var(--border-glass); box-shadow: var(--shadow-card);
}

/* Salden */
.bar { position: relative; height: 4px; margin-top: 7px; background: var(--bar-track); border-radius: 2px; }
.bar span { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.bar .pos { background: var(--fg-success); }
.bar .neg { background: var(--fg-danger); }
.settle { flex-wrap: wrap; row-gap: 10px; }
.settle-actions { flex: 1 0 100%; display: flex; justify-content: flex-end; gap: 8px; }
.settle-feature { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-color: var(--pill-border); }
.settle-feature .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.settle-feature .head strong { font-size: 16px; display: block; }
.settle-feature .amount { font: 700 20px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.settle-feature .acts { display: flex; gap: 8px; }
.settle-feature .acts .btn.primary { flex: 1; }
.stats { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px; font-variant-numeric: tabular-nums; }
.stats th, .stats td { padding: 10px 14px; text-align: right; }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats th { font: 500 10px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg-secondary); }
.stats td { border-top: 1px solid var(--border-subtle); }

/* Plus-Button */
.fab {
  position: fixed; right: max(18px, calc(50vw - 262px)); bottom: calc(env(safe-area-inset-bottom) + 22px);
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--accent-solid); color: var(--fg-on-accent);
  box-shadow: var(--shadow-accent), 0 0 0 6px var(--accent-glow);
  transition: transform .12s var(--ease);
}
.fab:active { transform: scale(.96); }
.fab .ic { width: 28px; height: 28px; stroke-width: 2; }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.inline { flex-direction: row; gap: 8px; }
.form.inline input { flex: 1; min-width: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-secondary); }
input, select {
  width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-control);
  background: var(--frost-000); font-size: 16px; color: var(--fg-primary);
}
input::placeholder { color: var(--fg-tertiary); }
input:focus, select:focus { outline: 2px solid var(--focus-ring); outline-offset: -1px; border-color: transparent; box-shadow: 0 0 0 5px var(--focus-ring-soft); }
input[type=checkbox] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--accent-solid); flex: none; box-shadow: none; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font: 500 10px/14px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg-secondary); margin-bottom: 8px; padding: 0; }
#member-inputs { display: flex; flex-direction: column; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font: 600 18px/26px var(--font-display); }
.card .list { box-shadow: none; background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.link-box input { font: 13px var(--font-mono); color: var(--fg-secondary); }

.amount-field { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 4px; border-bottom: 2px solid var(--indigo-500); }
.amount-field input { border: 0; background: none; padding: 0; font: 700 42px/1 var(--font-display); letter-spacing: -.03em; min-height: 58px; box-shadow: none; font-variant-numeric: tabular-nums; }
.amount-field input:focus { outline: none; box-shadow: none; }
.amount-field span { font: 500 14px var(--font-mono); color: var(--fg-secondary); }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.cat-btn {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 68px; height: 62px; border-radius: var(--radius-key);
  border: 1px solid var(--border-subtle); background: var(--surface-2); color: var(--fg-secondary); cursor: pointer;
  font-size: 11px; font-weight: 600;
}
.cat-btn .ic { width: 20px; height: 20px; }
.cat-btn[aria-pressed="true"] { background: var(--pill-bg); border-color: var(--pill-border); color: var(--pill-fg); }

.split .row { min-height: 58px; cursor: default; }
.split-row .num { width: 64px; min-height: 40px; text-align: center; padding: 0 6px; }
.split-row .num.wide { width: 108px; text-align: right; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: var(--radius-control); border: 1px solid var(--border-subtle); background: var(--surface-strong); color: var(--fg-primary); cursor: pointer; display: grid; place-items: center; }
.stepper .ic { width: 16px; height: 16px; }
.split-status { margin: 0; }

form[data-kind="transfer"] .only-expense, form[data-kind="transfer"] .lbl-expense { display: none; }
form[data-kind="expense"] .only-transfer, form[data-kind="expense"] .lbl-transfer { display: none; }

/* Hinweis-Toast (HUD) */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 100px); z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--radius-key);
  background: var(--hud); color: var(--fg-on-hud); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-hud);
  -webkit-backdrop-filter: blur(var(--blur-xl)); backdrop-filter: blur(var(--blur-xl));
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8a1530; color: #fff; }

/* Beleg */
.receipt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.receipt-bar:empty { display: none; }
.receipt-bar label.btn { flex-direction: row; color: var(--fg-primary); font-size: 14px; cursor: pointer; }
.receipt-thumb { width: 46px; height: 46px; padding: 0; border: 1px solid var(--border-glass); border-radius: var(--radius-row); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

body.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 40; overflow-y: auto; -webkit-overflow-scrolling: touch; background-color: var(--bg-page); }
.receipt-photo { display: block; width: 100%; padding: 0; border: 1px solid var(--border-glass); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface-2); cursor: zoom-in; box-shadow: var(--shadow-card); }
.receipt-photo img { width: 100%; height: 170px; object-fit: cover; object-position: top; display: block; }
.scan-status { text-align: center; padding: 24px 8px; }
.scan-status p { margin: 6px 0; }
.progress { height: 4px; border-radius: 2px; background: var(--bar-track); overflow: hidden; margin: 14px 0; }
.progress span { display: block; height: 100%; width: 0; background: var(--indigo-500); transition: width .24s var(--ease); }

.receipt-items .receipt-item { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.receipt-item.unassigned { background: var(--surface-danger); }
.item-top { display: flex; gap: 6px; align-items: center; }
.item-top input { min-height: 40px; padding: 0 10px; font-size: 15px; }
.item-name { flex: 1; min-width: 0; font-weight: 600; }
.item-top .item-amt { width: 92px; flex: none; text-align: right; font-family: var(--font-mono); font-size: 14px; }
.small-x { width: 34px; height: 34px; box-shadow: none; background: transparent; border-color: transparent; }
.small-x .ic { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle); background: var(--surface-2); color: var(--fg-secondary);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--pill-bg); border-color: var(--pill-border); color: var(--pill-fg); }
.chip.all { border-style: dashed; }
.receipt-sum { gap: 8px; }
.sum-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.per-person { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 12px/16px var(--font-mono); color: var(--fg-secondary); }
.per-person b { color: var(--fg-primary); font-weight: 500; }
.receipt-item.unsure .item-amt { border-color: var(--border-warning); background: var(--surface-warning); }
.receipt-item.unsure .item-name { order: 0; }
.receipt-item.unsure .item-top::after {
  content: "prüfen"; order: 1; flex: none; padding: 3px 8px; border-radius: var(--radius-pill);
  font: 500 10px/14px var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
  color: var(--fg-warning); background: var(--surface-warning); border: 1px solid var(--border-warning);
}
.receipt-item.unsure .item-amt, .receipt-item.unsure .small-x { order: 2; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: var(--hud); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-panel); }

/* Dialog */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); background: #0d142066; }
.modal-box {
  width: 100%; max-width: 420px; padding: 20px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-strong); border: 1px solid var(--border-glass); border-radius: 18px; box-shadow: var(--shadow-hud);
  -webkit-backdrop-filter: blur(var(--blur-xl)); backdrop-filter: blur(var(--blur-xl));
}
.modal-box h3 { margin: 0; font: 600 18px/26px var(--font-display); }
.modal-box p { margin: 0 0 6px; color: var(--fg-secondary); }
@media (min-width: 600px) { .modal { place-items: center; } }

/* Hinweis Startseite */
.disclaimer { display: flex; gap: 10px; padding: 14px 16px; font-size: 13px; line-height: 19px; color: var(--fg-secondary); }
.disclaimer > .ic { width: 18px; height: 18px; margin-top: 1px; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 6px; }
.disclaimer strong { color: var(--fg-primary); }

/* Mitglieder in den Einstellungen: Aktionen unter dem Namen */
.member-row { flex-wrap: wrap; row-gap: 2px; }
.member-row .row-main { flex: 1 1 0; }
.member-actions { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 2px; margin-left: 40px; }
.member-actions .btn.small { min-height: 32px; padding: 0 8px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-property: opacity !important; }
  .btn:active, .icon-btn:active, .fab:active { transform: none; }
}
