/* Mittagskasse — delivery-app look. Tokens first; both themes checked for WCAG AA contrast. */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #15171A;
  --muted: #5B616B;
  --line: #E4E6EA;
  --field: #8A919C;
  --accent: #D13A22;
  --accent-ink: #FFFFFF;
  --accent-soft: #FCE9E5;
  --accent-text: #B32E18;
  --ok: #1D6B40;   --ok-soft: #E2F2E8;
  --warn: #7A4F00; --warn-soft: #FBEFD6;
  --bad: #A8261A;  --bad-soft: #FCE6E3;
  --shadow: 0 1px 2px rgba(20, 23, 26, .06), 0 4px 16px rgba(20, 23, 26, .06);
  --radius: 18px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1013; --surface: #181B1F; --ink: #EDEFF2; --muted: #A3A9B3; --line: #2A2F36; --field: #6E7682;
    --accent: #FF6B52; --accent-ink: #1B0804; --accent-soft: #3B1A14; --accent-text: #FF8F7A;
    --ok: #63CF90; --ok-soft: #15301F; --warn: #F2BD55; --warn-soft: #382A0E; --bad: #FF8C7C; --bad-soft: #3D1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); padding-inline: 16px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
body.has-basket { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--accent-text); }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.muted { color: var(--muted); }
.hint { font-size: .88rem; color: var(--muted); }
.pad { padding: 0 20px 16px; }
.err-text { color: var(--bad); }
.ok-text { color: var(--ok); font-weight: 600; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.money.big { font-size: 1.35rem; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; margin-inline: -16px; padding: env(safe-area-inset-top, 0px) 16px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); }
.topbar-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark, .login-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after, .login-mark::after { content: ''; position: absolute; inset: 7px 8px; border: 2.5px solid var(--accent-ink); border-top: 0; border-radius: 0 0 10px 10px; }
.switch { margin-left: auto; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); }
.account { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: 99px; padding: 4px 12px 4px 4px; box-shadow: var(--shadow); min-height: 44px; }
.account-due { font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: .78rem; letter-spacing: .02em; flex: none; }
.tabs { max-width: 760px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.tabs a { flex: none; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 99px; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }

main { max-width: 760px; margin: 8px auto 0; display: grid; gap: 14px; }
.page-title { font-size: 1.6rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 4px; }
.page-title .muted { font-size: 1rem; font-weight: 500; }
.lead { color: var(--muted); max-width: 62ch; }

/* ---------- toast & alerts */
.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: 520px;
  padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); animation: toast 4.5s forwards; }
.toast.ok { background: var(--ink); color: var(--bg); }
.toast.err { background: var(--bad); color: #fff; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 6%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }
.alert { background: var(--warn-soft); color: var(--warn); padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.alert a { color: inherit; }

/* ---------- buttons */
.btn { font: 700 .95rem var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.linkbtn { font: 600 .9rem var(--font); background: none; border: 0; padding: 8px 4px; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.linkbtn.danger { color: var(--bad); }
.chipbtn { font: 600 .85rem var(--font); display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; white-space: nowrap; }
.chipbtn:hover { border-color: var(--ink); }
.chipbtn::-webkit-details-marker { display: none; }
[data-copy].copied { border-color: var(--ok); color: var(--ok); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.center-row { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- forms */
input, select { font: 1rem var(--font); color: var(--ink); background: var(--surface); border: 1.5px solid var(--field); border-radius: 12px; padding: 10px 14px; min-height: 46px; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.stack { display: grid; gap: 12px; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.narrow-field { max-width: 140px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 10px; }
legend .muted { font-weight: 500; font-size: .85rem; display: block; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 8px 0; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); flex: none; }
.check .money { margin-left: auto; }

/* ---------- cards */
.hero, .today { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.today { gap: 14px; }
.status { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.status.done { color: var(--ok); }
.countdown { text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.countdown.soon { color: var(--bad); }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel > summary, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 700; font-size: 1.05rem; }
.panel > summary { cursor: pointer; list-style: none; min-height: 56px; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: ''; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); margin-left: auto; transition: transform .2s; }
.panel[open] > summary::after { transform: rotate(225deg); }
.panel > summary .count { margin-left: 0; }
.panel.open > h2 { padding: 16px 20px 4px; }
.panel-foot { padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.count { font-size: .8rem; font-weight: 700; background: var(--bg); color: var(--muted); border-radius: 99px; padding: 2px 10px; }
.attention { box-shadow: 0 0 0 2px var(--warn), var(--shadow); }

.rows { list-style: none; margin: 0; padding: 0 20px 6px; }
.rows > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows > li > div:first-child, .people-rows > li > div:nth-child(2) { flex: 1; min-width: 0; }
.sub { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; overflow-wrap: anywhere; }
.end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.total-line { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; font-size: .88rem; }

.pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- footer & legal */
.site-foot { max-width: 760px; margin: 28px auto 0; display: flex; gap: 18px; justify-content: center; font-size: .85rem; }
.site-foot a { color: var(--muted); }
body.has-basket .site-foot { margin-bottom: 70px; }
.legal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; max-width: 70ch; }
.legal h1 { font-size: 1.7rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--ink); font-size: .95rem; }
.legal ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.form-section { margin-top: 12px; }
.legal-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-top: 14px; }
.legal-box h3 { font-size: .98rem; margin-bottom: 6px; }
textarea { font: 1rem var(--font); color: var(--ink); background: var(--surface); border: 1.5px solid var(--field); border-radius: 12px; padding: 10px 14px; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- login */
body.center main { min-height: 70vh; align-content: center; }
.login { background: var(--surface); border-radius: 24px; padding: 32px 24px; box-shadow: var(--shadow); max-width: 420px; width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.login-mark { width: 48px; height: 48px; border-radius: 14px; }
.login-mark::after { inset: 11px 13px; border-width: 3.5px; }
#kuerzel { font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#kuerzel::placeholder { letter-spacing: .12em; color: var(--muted); font-weight: 500; }

/* ---------- voting */
.vote-grid { display: grid; gap: 10px; }
.vote-card { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid transparent; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 10px; cursor: pointer; }
.vote-card:hover:not(:disabled) { border-color: var(--line); }
.vote-card[aria-pressed="true"] { border-color: var(--accent); }
.vote-card:disabled { cursor: default; }
.vote-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vote-name { font-size: 1.15rem; font-weight: 800; }
.vote-n { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vote-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.vote-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.vote-foot { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.mine { color: var(--accent-text); font-weight: 700; }

/* ---------- menu */
.menu-bar { position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 10; margin-inline: -16px; padding: 8px 16px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); display: grid; gap: 10px; }
#menu-search { border-radius: 99px; background: var(--surface); border-color: var(--line); padding-left: 18px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chips a { flex: none; scroll-snap-align: start; text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow); min-height: 36px; display: inline-flex; align-items: center; }
.chips a.active { background: var(--ink); color: var(--bg); }
#menu { display: grid; gap: 22px; }
.menu-sec h2 { font-size: 1.3rem; font-weight: 800; margin: 4px 4px 10px; }
.dishes { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.dish:first-child { border-top: 0; }
.dish-info { display: grid; gap: 4px; min-width: 0; }
.dish-desc { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.add { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent-text); font: 700 1.5rem/1 var(--font); cursor: pointer; }
.add:hover { background: var(--accent); color: var(--accent-ink); }
.sizes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.size { font: 500 .85rem var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 8px 12px; min-height: 52px;
  display: grid; gap: 2px; text-align: left; cursor: pointer; }
.size strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.size small { display: block; color: var(--muted); font-size: .75rem; }
.size:hover { border-color: var(--accent); background: var(--accent-soft); }

.repeat { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.repeat .status { color: color-mix(in srgb, var(--bg) 75%, var(--accent)); }
.due-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 16px 20px; font-weight: 600; }
.due-card .go { font-weight: 800; white-space: nowrap; }
.due-card .go::after { content: ' →'; }

/* ---------- basket */
.basket-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.basket-btn { max-width: 728px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px; border: 0; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--font); cursor: pointer; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.basket-btn span:nth-child(2) { flex: 1; text-align: left; }
.basket-btn strong { font-variant-numeric: tabular-nums; }
.basket-btn:disabled { background: var(--surface); color: var(--muted); box-shadow: var(--shadow); cursor: default; }
.basket-n { min-width: 30px; height: 30px; border-radius: 99px; background: color-mix(in srgb, var(--accent-ink) 22%, transparent); display: inline-grid; place-items: center; font-size: .9rem; }
.basket-btn:disabled .basket-n { background: var(--bg); }
.sheet { border: 0; padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 640px; max-height: 88vh; margin: auto auto 0; border-radius: 24px 24px 0 0;
  background: var(--surface); color: var(--ink); overflow: auto; }
.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; position: sticky; top: 0; background: var(--surface); }
.rows > li.basket-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; }
.note-form { display: flex; gap: 8px; grid-column: 1; }
.note-form input { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.remove-form { grid-column: 2; align-self: center; }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 24px; } }

/* ---------- pay */
.pay { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; display: grid; gap: 14px; }
.pay-label { color: var(--muted); font-weight: 600; }
.pay-amount { font-size: clamp(2.4rem, 11vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pay .btn.primary { min-height: 56px; font-size: 1.05rem; }
.bank summary { cursor: pointer; font-weight: 700; padding: 6px 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.bank summary::-webkit-details-marker { display: none; }
.bank summary::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.bank[open] summary::after { transform: rotate(225deg); }
.bank dl { margin: 6px 0 0; display: grid; gap: 2px; }
.bank dl > div { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bank dt { grid-column: 1; color: var(--muted); font-size: .8rem; font-weight: 600; }
.bank dd { grid-column: 1; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bank .chipbtn { grid-column: 2; grid-row: 1 / span 2; }
.all-paid { text-align: center; padding: 30px 20px; display: grid; gap: 6px; justify-items: center; }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); position: relative; }
.big-check::after { content: ''; position: absolute; left: 23px; top: 15px; width: 14px; height: 26px; border: solid var(--ok); border-width: 0 4px 4px 0; transform: rotate(45deg); }

/* ---------- admin */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.stats div { background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.stats dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stats dd { margin: 0; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stats div.wide { grid-column: span 2; }
.secret { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: .06em; user-select: all; }
.mini-votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-votes li { display: flex; justify-content: space-between; }
.more { border-top: 1px solid var(--line); padding-top: 10px; }
.more > summary { cursor: pointer; font-weight: 600; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.more[open] > summary { margin-bottom: 10px; }
.more form + form { margin-top: 12px; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chips label { display: block; }
.toggle-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.toggle-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.toggle-chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle-chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.people-rows .end { flex: none; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu-list, .menu-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; background: var(--surface); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; min-width: 190px; display: grid; }
.menu-form { padding: 14px; gap: 10px; min-width: 240px; }
.menu-list button { font: 600 .92rem var(--font); background: none; border: 0; color: var(--ink); text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.menu-list button:hover { background: var(--bg); }
.payment { display: grid; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.payment:first-of-type { border-top: 0; }
.debt-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; }
.paytext { white-space: pre-wrap; font-size: .82rem; background: var(--bg); padding: 10px; border-radius: 10px; max-height: 180px; overflow: auto; margin: 6px 0 0; }
.steps ol, .howto { margin: 8px 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.howto { font-size: .92rem; }

@media (max-width: 520px) {
  .people-rows > li { flex-wrap: wrap; }
  .people-rows .end { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .menu-list, .menu-form { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .toast { opacity: 1; }
}

/* coupons, positions, receipt */
.item-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-line .linkbtn { min-height: 0; padding: 0; font-size: .82rem; }
.receipt { display: grid; gap: 8px; }
.receipt label.btn { width: fit-content; }
.receipt-result { background: var(--bg); border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; font-size: .92rem; }
.receipt-result .linkbtn { min-height: 0; padding: 0 0 0 6px; }

.plain { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
