/* Kassensturz – Stylesheet
   Idee: Der Kassenbon ist das eine Objekt mit Tiefe. Alles andere ist flach, ruhig, auf Haarlinien gebaut. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --ink: #1a2230;
  --ink-2: #4a5568;
  --muted: #6b7486;
  --line: #dde2ea;
  --line-strong: #c5ccd8;
  --accent: #ffd43b;
  --accent-ink: #1a2230;
  --link: #1f5fbf;
  --focus: #1f5fbf;
  --paper: #ffffff;
  --paper-ink: #1a2230;
  --paper-muted: #5f6878;
  --good: #0ca30c;
  --good-text: #006300;
  --bad: #d03b3b;
  --bad-text: #b02a2a;
  --warn: #fab219;
  --warn-text: #7a5200;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --s-other: #a3abb8;
  --seq-100: #cde2fb; --seq-300: #6da7ec; --seq-500: #256abf; --seq-700: #0d366b;
  --grid: #e6eaf0;
  --axis: #c5ccd8;
  --shadow-paper: 0 1px 0 rgba(26, 34, 48, .04), 0 12px 32px -12px rgba(26, 34, 48, .28);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Typografische Skala (1,25) */
  --t-xs: .8125rem;  /* 13 */
  --t-sm: .875rem;   /* 14 */
  --t-md: 1rem;      /* 16 */
  --t-lg: 1.25rem;   /* 20 */
  --t-xl: 1.5625rem; /* 25 */
  --t-2xl: 1.953rem; /* 31 */
  --t-3xl: 2.441rem; /* 39 */
  --t-4xl: 3.052rem; /* 49 */

  --r-sm: 6px;
  --r-md: 10px;
  --gutter: clamp(16px, 3vw, 40px);
  --rail: 232px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #10141b;
    --surface: #1b1f29;
    --surface-2: #222734;
    --ink: #eef1f5;
    --ink-2: #b7bfcc;
    --muted: #8f98a8;
    --line: #2d3340;
    --line-strong: #3b4252;
    --link: #8ab8ff;
    --focus: #8ab8ff;
    --paper: #e9ecf1;
    --paper-ink: #1a2230;
    --paper-muted: #4f5868;
    --good-text: #3ccf3c;
    --bad-text: #ff8b8b;
    --warn-text: #fab219;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --s-other: #5c6474;
    --seq-100: #1d2f4a; --seq-300: #2a5ea8; --seq-500: #5598e7; --seq-700: #b7d3f6;
    --grid: #262b37;
    --axis: #3b4252;
    --shadow-paper: 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #10141b;
  --surface: #1b1f29;
  --surface-2: #222734;
  --ink: #eef1f5;
  --ink-2: #b7bfcc;
  --muted: #8f98a8;
  --line: #2d3340;
  --line-strong: #3b4252;
  --link: #8ab8ff;
  --focus: #8ab8ff;
  --paper: #e9ecf1;
  --paper-ink: #1a2230;
  --paper-muted: #4f5868;
  --good-text: #3ccf3c;
  --bad-text: #ff8b8b;
  --warn-text: #fab219;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --s-other: #5c6474;
  --seq-100: #1d2f4a; --seq-300: #2a5ea8; --seq-500: #5598e7; --seq-700: #b7d3f6;
  --grid: #262b37;
  --axis: #3b4252;
  --shadow-paper: 0 18px 40px -18px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--t-md)/1.5 var(--font);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ Gerüst */

.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
}
.wordmark {
  display: block;
  font-weight: 850; font-size: var(--t-xl); letter-spacing: -.035em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.wordmark span { display: block; margin-top: 6px; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-more {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font: 500 var(--t-md)/1.5 var(--font);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); background: var(--surface); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .badge-count { margin-left: auto; }
.nav .nav-label { display: none; }
.nav-more { display: none; position: relative; background: none; border: 0; cursor: pointer; }
.badge-dot { position: absolute; top: 4px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.inbox { display: flex; flex-direction: column; gap: 8px; }
.inbox-title { margin: 0; font-size: var(--t-xs); font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.inbox-hint { margin: 0; font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }
.btn-block { width: 100%; justify-content: flex-start; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
.rail-foot form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.main { min-width: 0; padding: 28px var(--gutter) 80px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.topbar h1 { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.025em; margin-right: auto; }
.topbar .sub { flex: 0 0 100%; order: 3; margin: -6px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed; inset: auto 0 0 0; height: auto; z-index: 40; overflow: visible;
    flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
  }
  .rail .wordmark, .rail-foot, .inbox, .nav .desktop-only { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; gap: 0; }
  .nav a, .nav-more { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; font-weight: 550; padding: 6px 2px; min-height: 52px; text-align: center; }
  .nav svg { width: 22px; height: 22px; }
  .nav .nav-label { display: block; }
  .nav .nav-label-long { display: none; }
  .nav-more { display: flex; color: var(--ink-2); }
  .nav a[aria-current="page"], .nav-more[aria-current="page"] { box-shadow: inset 0 3px 0 var(--accent); background: none; color: var(--ink); }
  .nav .badge-count { position: absolute; margin: 0; transform: translate(14px, -14px); }
  .nav a { position: relative; }
  .main { padding-top: 20px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 20px; }
  .topbar h1 { font-size: var(--t-xl); }
}

/* Mehr-Menü (Handy) */
.sheet {
  width: min(520px, 100vw); max-width: 100vw; margin: auto auto 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  border: 0; border-radius: 16px 16px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, .35);
}
.sheet::backdrop { background: rgba(16, 20, 27, .45); }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; }
.sheet-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.sheet-nav svg { width: 20px; height: 20px; }
.sheet-nav .badge-count { margin-left: auto; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sheet-actions .btn:only-child { grid-column: 1 / -1; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: var(--t-sm); color: var(--muted); }
.sheet-close { width: 100%; margin-top: 12px; }

/* --------------------------------------------------------------- Elemente */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font: 600 var(--t-sm)/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-danger { color: var(--bad-text); }
.btn-small { min-height: 32px; padding: 4px 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary svg { stroke: currentColor; }

.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.segmented button {
  min-height: 32px; padding: 4px 12px; border: 0; border-radius: 6px; background: none;
  font: 600 var(--t-sm)/1 var(--font); color: var(--ink-2); cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.segmented button[disabled] { opacity: .35; cursor: not-allowed; }
.segmented button:focus-visible { outline-offset: -2px; }
.segmented-fill { display: flex; }
.segmented-fill button { flex: 1 1 auto; }
@media (max-width: 600px) {
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: none; padding-inline: 10px; }
  .segmented-range { display: flex; width: 100%; }
  .segmented-range button { flex: 1 1 0; }
}

select, input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="month"], input[type="number"] {
  min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font: 400 var(--t-sm)/1.2 var(--font);
}
select:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
label.field, .field { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); font-weight: 600; min-width: 0; }
.field-label { font-size: var(--t-sm); font-weight: 600; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: end; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.flash { margin: 0 0 24px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.flash-ok { box-shadow: inset 4px 0 0 var(--good); }
.flash-error { box-shadow: inset 4px 0 0 var(--bad); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--good-text); }
.badge-warn { color: var(--warn-text); }
.badge-bad { color: var(--bad-text); }
.badge-info { color: var(--ink-2); }
.badge-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.badge-quiet { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip-demo { text-decoration: none; border-style: dashed; }

.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; font-size: var(--t-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta svg { width: 12px; height: 12px; flex: none; max-width: none; }
.delta-up-bad, .delta-down-bad { color: var(--bad-text); }
.delta-up-good, .delta-down-good { color: var(--good-text); }
.delta-flat { color: var(--muted); }

/* ------------------------------------------------------------- Abschnitte */

.section { margin-top: 56px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: var(--t-xl); font-weight: 750; }
.section-head p { margin: 6px 0 0; max-width: 72ch; color: var(--muted); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.scope { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; }
.more-link { font-size: var(--t-sm); font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.panel-title { font-size: var(--t-lg); font-weight: 750; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.panel-foot details.table-view { margin-top: 0; }
.block-top { margin-top: 20px; }
.grid-2-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .grid-2-wide, .grid-3 { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; min-width: 0; }
.panel h3 { font-size: var(--t-md); font-weight: 700; margin-bottom: 4px; }
.panel .panel-sub { margin: 0 0 16px; font-size: var(--t-sm); color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.filters .label { font-size: var(--t-sm); color: var(--muted); }

/* ----------------------------------------------------- Bon (Hero-Objekt) */

.overview { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .overview { grid-template-columns: 1fr; } }

.receipt {
  --zig: 9px;
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: var(--t-sm);
  line-height: 1.55;
  padding: 26px 24px calc(24px + var(--zig));
  border-radius: 3px 3px 0 0;
  /* Abrisskante unten (der Schatten liegt auf .receipt-wrap, weil die Maske ihn sonst abschneiden würde) */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
}
.receipt-wrap { filter: drop-shadow(0 14px 20px rgba(26, 34, 48, .18)); min-width: 0; }
:root[data-theme="dark"] .receipt-wrap { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .55)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .receipt-wrap { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .55)); } }
.receipt-head { text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.receipt-head strong { display: block; font-weight: 500; font-size: var(--t-md); letter-spacing: .14em; }
.receipt-head span { color: var(--paper-muted); }
.receipt-rule { border: 0; border-top: 1px dashed var(--paper-muted); margin: 14px 0; opacity: .7; }
.receipt-rule.double { border-top: 3px double var(--paper-ink); opacity: 1; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.receipt-row > span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.receipt-row .sub { color: var(--paper-muted); text-transform: none; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; text-transform: uppercase; }
.receipt-total .amount {
  font-size: var(--t-3xl); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%);
  padding: 0 2px;
}
.receipt-foot { margin-top: 14px; text-align: center; color: var(--paper-muted); font-size: var(--t-xs); }
.receipt a { color: inherit; }

/* Zahlenleiste */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
.figure { padding: 18px 20px 18px 0; min-width: 0; }
.figure + .figure { padding-left: 20px; border-left: 1px solid var(--line); }
.figure dt { font-size: var(--t-sm); color: var(--muted); }
.figure dd { margin: 4px 0 0; }
.figure .value { display: block; font-size: var(--t-2xl); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.figure .note { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.figure .spark { height: 28px; margin-top: 8px; }
.figure-delta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.figures-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
section > .figures { margin: 0 0 20px; }
@media (max-width: 900px) {
  .figures, .figures-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 14px 12px 14px 0; }
  .figure + .figure { padding-left: 12px; }
  .figure:nth-child(odd) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figure .value { font-size: var(--t-xl); }
}

/* --------------------------------------------------------------- Charts */

.chart { width: 100%; height: 320px; }
.chart-sm { height: 220px; }
.chart-lg { height: 380px; }
.chart-xl { height: 460px; }
@media (max-width: 600px) {
  .chart { height: 260px; }
  .chart-lg { height: 300px; }
  .chart-xl { height: 340px; }
  .chart-sm { height: 200px; }
}
.chart-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chart-note { margin: 10px 0 0; font-size: var(--t-xs); color: var(--muted); max-width: 90ch; }
.legend-values li { gap: 6px; }
.legend-values strong { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.table-note { margin: 10px 0 0; font-size: var(--t-xs); color: var(--muted); }
.chart.is-loading { opacity: .5; transition: opacity .2s; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.chart-head .trend { font-size: var(--t-sm); color: var(--ink-2); }
.chart-head .trend strong { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: var(--t-xs); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
.legend .line-key { width: 16px; height: 2px; border-radius: 1px; }

details.table-view { margin-top: 12px; font-size: var(--t-sm); }
details.table-view summary { cursor: pointer; color: var(--link); width: max-content; }
details.table-view .table-wrap { margin-top: 10px; max-height: 320px; overflow: auto; }

/* --------------------------------------------------------- Tabellen/Listen */

.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.r { text-align: right; }
.table-cats td { padding-top: 9px; padding-bottom: 9px; }
.table-cats .delta { justify-content: flex-end; }
.spark-cell .spark { width: 96px; height: 26px; }
.table-foot { padding: 12px; border-top: 1px solid var(--line); }
.table-select tbody tr { cursor: pointer; }
.table-select tbody tr.is-selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.table-scroll { max-height: 520px; overflow-y: auto; }
.table-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
@media (max-width: 700px) {
  .col-optional { display: none; }
  .table-cats .cat-name { min-width: 0; }
  .table-cats .cat-top { display: none; }
  .table-cats td, .table-cats th, .table-cats .delta { font-size: var(--t-xs); }
  .table-cats td, .table-cats th { padding-left: 6px; padding-right: 6px; }
  .table th, .table td { padding-left: 8px; padding-right: 8px; }
}
.table tbody tr:hover { background: var(--surface-2); }
.table a { color: var(--ink); text-decoration: none; font-weight: 550; }
.table a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }

.share-bar { position: relative; height: 8px; min-width: 60px; border-radius: 999px; background: var(--surface-2); }
.share-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.share-inline { display: block; width: 100%; max-width: 220px; margin-top: 6px; }
.share-inline > span { background: var(--s1); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.rows .name a { color: var(--ink); text-decoration: none; }
.rows .name a:hover { text-decoration: underline; }
.rows .detail { grid-column: 1; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.rows .end { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.rows .spark { width: 84px; height: 28px; }
@media (max-width: 600px) { .rows .spark { display: none; } }
.rank { margin: 0; padding: 0 0 0 1.6em; font-size: var(--t-sm); }
.rank li { display: list-item; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.rank a { color: var(--ink); text-decoration: none; font-weight: 550; }
.rank a:hover { text-decoration: underline; }
.rank .num { float: right; margin-left: 8px; }
.rank li.empty-note { list-style: none; margin-left: -1.6em; color: var(--muted); }
.empty-note { padding: 18px 0; color: var(--muted); font-size: var(--t-sm); }

/* Gut zu wissen */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin: 0; }
.fact { padding: 16px 0; border-top: 1px solid var(--line); }
.fact dt { font-size: var(--t-lg); font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.fact dd { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-sm); max-width: 46ch; }
.fact a { color: inherit; text-decoration: none; }
.fact a:hover dt { text-decoration: underline; }

.due-meter { width: 72px; height: 6px; border-radius: 999px; background: var(--seq-100); overflow: hidden; }
.due-meter > span { display: block; height: 100%; background: var(--s1); border-radius: 999px; }

/* ------------------------------------------------------------ Leerzustand */

.empty-state { max-width: 640px; margin: 40px 0; }
.empty-state h2 { font-size: var(--t-2xl); font-weight: 800; margin-bottom: 12px; }
.empty-state p { color: var(--ink-2); max-width: 60ch; }
.empty-state .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dropzone {
  margin-top: 28px; padding: 40px 24px;
  border: 2px dashed var(--line-strong); border-radius: var(--r-md);
  text-align: center; color: var(--ink-2); background: var(--surface);
}

/* ------------------------------------------------------------ Upload */

.drop-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.drop-overlay.is-active { opacity: 1; }
.drop-overlay .drop-target {
  padding: 48px 56px; border: 2px dashed var(--ink); border-radius: 16px; background: var(--surface);
  font-size: var(--t-xl); font-weight: 750; text-align: center;
}
.drop-overlay .drop-target span { display: block; margin-top: 6px; font-size: var(--t-sm); font-weight: 400; color: var(--muted); }

.tray {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: min(380px, calc(100vw - 32px)); max-height: 60vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .35);
}
.tray[hidden] { display: none; }
.tray-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tray-head strong { margin-right: auto; font-size: var(--t-sm); }
.tray-list { list-style: none; margin: 0; padding: 4px 0; overflow: auto; }
.tray-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 16px; font-size: var(--t-sm); }
.tray-item .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-item .state { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--muted); }
.tray-item .progress { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.tray-item .progress > span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.tray-item[data-state="done"] .progress > span { background: var(--good); }
.tray-item[data-state="error"] .progress > span { background: var(--bad); }
.tray-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.tray-summary { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tray-summary:empty { display: none; }
.tray-summary .is-bad { color: var(--bad-text); font-weight: 650; }
.tray-summary .is-warn { color: var(--warn-text); font-weight: 650; }
.tray.is-collapsed .tray-list, .tray.is-collapsed .tray-foot { display: none; }
@media (max-width: 900px) { .tray { bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; left: 16px; width: auto; max-height: 50vh; } }

.toasts { position: fixed; z-index: 95; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px));
  padding: 10px 12px 10px 16px; border-radius: 10px; background: var(--ink); color: var(--page);
  font-size: var(--t-sm); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45);
}
.toast .linklike { color: var(--accent); font-weight: 650; }
.toast-error { background: var(--bad-text); color: #fff; }
.toast-close { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .8; padding: 0 4px; }
@media (max-width: 900px) { .toasts { left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); align-items: stretch; } }

/* --------------------------------------------------------- Beleg-Detail */

.receipt-detail { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .receipt-detail { grid-template-columns: 1fr; } }
.receipt-detail .receipt { padding-inline: 20px; }
.receipt-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 3px 0; }
.receipt-line .raw { text-transform: uppercase; overflow-wrap: anywhere; }
.receipt-line .raw a { text-decoration: none; }
.receipt-line .raw a:hover { text-decoration: underline; }
.receipt-line .meta { grid-column: 1 / -1; padding-left: 2ch; color: var(--paper-muted); font-size: var(--t-xs); }
.receipt-line.is-aux .raw { color: var(--paper-muted); }
.doc-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.doc-image { max-height: 80vh; margin: 0 auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.notes { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--warn); font-size: var(--t-sm); }
.notes ul { margin: 6px 0 0; padding-left: 18px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.actions-row form { margin: 0; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 20px; font-size: var(--t-sm); }

/* Produktdetail */
.facts-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts-inline div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts-inline dt { font-size: var(--t-xs); color: var(--muted); }
.facts-inline dd { margin: 2px 0 0; font-size: var(--t-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px -12px rgba(0,0,0,.3); max-height: 260px; overflow: auto; }
.combo-list[hidden] { display: none; }
.combo-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: var(--t-sm); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--surface-2); }

/* Login */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(400px, 100%); }
.login .wordmark { font-size: var(--t-3xl); margin-bottom: 32px; }
.login form { display: flex; flex-direction: column; gap: 16px; }
.login .error { color: var(--bad-text); font-weight: 600; margin: 0; }

/* Systemseite */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.checks li:last-child { border-bottom: 0; }
code, .code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre.code { display: block; padding: 12px 14px; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .receipt { -webkit-mask: none; mask: none; border: 1px solid CanvasText; }
  .badge::before, .swatch, .share-bar > span { forced-color-adjust: none; }
}
@media print {
  .rail, .tray, .drop-overlay, .topbar .btn, .filters { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}

#page[aria-busy="true"] .chart { opacity: .5; }
.filters .segmented-range { flex: none; }
.topbar .filters { flex-wrap: wrap; }
@media (max-width: 600px) { .topbar .filters { width: 100%; } .topbar .filters select { flex: 1 1 auto; } }

.chips-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.chips-block p { margin: 0 0 8px; font-size: var(--t-sm); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { text-decoration: none; }
.chips .chip:hover { border-color: var(--ink-2); color: var(--ink); }

.panel-flush { padding: 0; }
.block-gap { margin-bottom: 28px; }
.form-row { margin-bottom: 20px; }
.inline-form { display: inline; margin: 0; }
.section-gap { margin-top: 28px; }

.table-more { margin-top: 12px; }
.due-when { font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-when.is-due { box-shadow: inset 0 -6px 0 var(--accent); }

.cat-name { min-width: 0; }
.cat-top { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.cat-top a { font-weight: 500; }
.cat-share { white-space: nowrap; }
.cat-share .share-bar { display: inline-block; vertical-align: middle; width: 64px; min-width: 0; margin-right: 8px; }
#cat-table .table th, #cat-table .table td { padding-left: 8px; padding-right: 8px; }
@media (min-width: 701px) { #cat-table .cat-name { min-width: 0; } #cat-table .cat-top { max-width: 220px; } }


/* ------------------------------------------------------------- Analyse */

.templates { margin: 0 calc(-1 * var(--gutter)) 16px; }
.templates-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 8px; scrollbar-width: thin; }
.template { display: inline-flex; flex: none; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.template.is-active { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.template-btn { background: none; border: 0; padding: 7px 14px; font: 600 var(--t-sm)/1.2 var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; }
.template-x { background: none; border: 0; border-left: 1px solid var(--line); padding: 4px 10px; font-size: 16px; line-height: 1; color: var(--muted); cursor: pointer; }
.template-x:hover { color: var(--bad-text); }

.builder-wrap { margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.builder-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 20px; cursor: pointer; list-style: none; }
.builder-summary::-webkit-details-marker { display: none; }
.builder-summary-label { font-weight: 700; }
.builder-summary-label::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .15s; color: var(--muted); }
.builder-wrap[open] .builder-summary-label::before { transform: rotate(90deg); }
.builder-summary-text { font-size: var(--t-sm); color: var(--muted); }
.builder-wrap[open] .builder-summary-text { display: none; }
.builder { padding: 4px 20px 18px; }
.builder-grid { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.builder-grid > .field, .builder-grid > label.field { flex: 0 1 auto; }
.builder-grid select { min-width: 200px; }
.builder .field-wide { flex: 1 0 100%; }
.builder .field[hidden], .builder label.field[hidden] { display: none; }
.field-check { min-height: 40px; }
.selection { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; font-weight: 400; }
.sel-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: var(--t-sm); font-weight: 550; }
.sel-chip button { background: none; border: 0; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; color: var(--muted); }
.sel-chip button:hover { background: var(--line); color: var(--ink); }
.sel-auto { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 600px) {
  .builder { padding: 4px 14px 14px; }
  .builder-summary { padding: 12px 14px; }
  .builder-grid { gap: 12px; }
  .builder-grid > .field, .builder-grid > label.field { flex: 1 1 100%; }
  .builder-grid select { min-width: 0; width: 100%; }
}

#page { position: relative; }
.picker {
  position: absolute; z-index: 30; width: min(380px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .35); padding: 8px;
}
.picker input { width: 100%; }
.picker ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.picker li[role="option"] { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; cursor: pointer; font-size: var(--t-sm); }
.picker li[role="option"]:hover, .picker li[role="option"]:focus-visible { background: var(--surface-2); }
.picker li[aria-selected="true"] { font-weight: 650; }
.opt-check { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; font-size: 12px; line-height: 1; }
li[aria-selected="true"] > .opt-check { background: var(--ink); border-color: var(--ink); color: var(--page); }
.opt-label { display: flex; flex-direction: column; min-width: 0; }
.opt-label small { color: var(--muted); font-weight: 400; font-size: var(--t-xs); }
.picker-foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }

.save-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.save-form[hidden] { display: none; }
.save-form input { flex: 1 1 220px; }

/* ---------------------------------------------------------- Einblicke */

.section-nav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -8px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { flex: none; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: var(--t-sm); font-weight: 550; text-decoration: none; }
.section-nav a:hover { color: var(--ink); border-color: var(--ink-2); }
.section { scroll-margin-top: 64px; }

/* -------------------------------------------------------- Einkaufsliste */

.list-total { margin: 0; font-size: var(--t-lg); color: var(--ink-2); }
.list-total strong { color: var(--ink); font-weight: 750; box-shadow: inset 0 -8px 0 var(--accent); }
.list-page { max-width: 760px; }
.list-add { display: flex; gap: 8px; margin-bottom: 20px; position: sticky; top: 0; z-index: 15; padding: 8px 0; background: var(--page); }
.list-combo { flex: 1 1 auto; }
.list-combo input { width: 100%; min-height: 48px; font-size: var(--t-md); }
.list-add .btn { min-height: 48px; }
.list-combo .combo-list li { display: flex; justify-content: space-between; gap: 8px; }
.list-section { margin-top: 28px; }
.list-section:first-of-type { margin-top: 0; }
.list-section-head h2 { font-size: var(--t-lg); font-weight: 750; }
.list-section-head p { margin: 4px 0 12px; color: var(--muted); font-size: var(--t-sm); }
.list-section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shop-list, .suggest-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.shop-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line); }
.shop-item:last-child, .suggest:last-child { border-bottom: 0; }
.shop-check input { width: 24px; height: 24px; accent-color: var(--ink); cursor: pointer; }
.shop-main { min-width: 0; }
.shop-name { display: block; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.shop-name:hover { text-decoration: underline; }
.shop-meta { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.shop-meta a { color: inherit; }
.shop-item.is-done .shop-name { text-decoration: line-through; color: var(--muted); }
.shop-del { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.shop-del:hover { background: var(--surface-2); color: var(--bad-text); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 18px; color: var(--ink); cursor: pointer; border-radius: 999px; }
.stepper button[disabled] { opacity: .3; cursor: default; }
.stepper .num { min-width: 22px; text-align: center; font-weight: 650; }
.suggest { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.suggest-price { font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.suggest-actions { display: flex; gap: 6px; align-items: center; }
.list-page .empty-note { padding: 16px; }
@media (max-width: 600px) {
  .shop-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .shop-item .stepper { grid-column: 2; justify-self: start; }
  .shop-item .shop-del { grid-row: 1; grid-column: 3; }
  .suggest { grid-template-columns: minmax(0, 1fr) auto; }
  .suggest-actions { grid-column: 1 / -1; }
}

details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; min-width: 220px; display: flex; flex-direction: column; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); }
.menu-list button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 6px; font: 500 var(--t-sm)/1.2 var(--font); color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: var(--surface-2); }
@media (max-width: 600px) { .menu-list { left: 0; right: auto; } }
