:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #efeae0;
  --text: #1f2a24;
  --muted: #6b746e;
  --line: #e2dccf;
  --brand: #2f6b4f;
  --brand-ink: #ffffff;
  --brand-soft: #dcebe2;
  --accent: #d9763a;
  --accent-soft: #fbe6d8;
  --danger: #b4412f;
  --shadow: 0 1px 2px rgba(30, 40, 30, .06), 0 4px 16px rgba(30, 40, 30, .06);
  --radius: 14px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a17; --surface: #1d2420; --surface-2: #252e29; --text: #eef1ec; --muted: #9aa59e;
    --line: #2f3a34; --brand: #6fbf94; --brand-ink: #0f1a14; --brand-soft: #23382d; --accent: #f0975e;
    --accent-soft: #3a2a1f; --danger: #ef7d6b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a17; --surface: #1d2420; --surface-2: #252e29; --text: #eef1ec; --muted: #9aa59e;
  --line: #2f3a34; --brand: #6fbf94; --brand-ink: #0f1a14; --brand-soft: #23382d; --accent: #f0975e;
  --accent-soft: #3a2a1f; --danger: #ef7d6b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* Layout */
.shell { max-width: 880px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 600px; }
.nav button { background: none; border: 0; height: var(--nav-h); min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; position: relative; }
.nav button svg { width: 24px; height: 24px; }
.nav button.active { color: var(--brand); }
.nav .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
@media (min-width: 900px) {
  .nav { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); }
  .nav-inner { max-width: 880px; display: flex; gap: 4px; padding: 0 16px; }
  .nav button { flex-direction: row; height: 56px; padding: 0 14px; font-size: 14px; gap: 8px; }
  .nav button svg { width: 20px; height: 20px; }
  .nav .badge { top: 10px; left: auto; right: 0; }
  .nav .brandmark { margin-right: auto; display: flex !important; }
  .shell { padding-top: 76px; padding-bottom: 40px; }
  .appbar { position: fixed; top: 0; right: max(16px, calc((100vw - 880px) / 2 + 16px)); left: auto; height: 56px; background: none; border: 0; padding: 0; z-index: 25; pointer-events: none; }
  .appbar .brandmark-m { display: none; }
  .appbar .sync { pointer-events: auto; }
  .nav-inner { padding-right: 150px; }
  .offline { top: 56px; }
}
.brandmark { display: none !important; align-items: center; gap: 8px; font-family: Fraunces, serif; font-weight: 700; font-size: 18px; color: var(--text); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .06s ease, background .15s; min-height: 40px; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.btn.icon { padding: 0; width: 40px; }
.btn.icon.sm { width: 32px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.input, select.input, textarea.input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { resize: vertical; min-height: 90px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--brand); }
.stepper span { min-width: 64px; text-align: center; font-weight: 600; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; color: var(--text); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 400px; padding: 28px 24px; }
.auth .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.auth .logo img { width: 40px; height: 40px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; margin: 18px 0; }
.tabs button { border: 0; background: none; padding: 8px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.err { color: var(--danger); font-size: 14px; margin: 4px 0 10px; }
.ok { color: var(--brand); font-size: 14px; margin: 4px 0 10px; }

/* Woche */
.weeknav { display: flex; align-items: center; gap: 8px; }
.weeknav .label { font-weight: 600; min-width: 150px; text-align: center; }
.days { display: grid; gap: 10px; }
.day { padding: 12px 14px; }
.day.today { border-color: var(--brand); }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.day-name { font-family: Fraunces, serif; font-weight: 700; font-size: 17px; }
.day-date { color: var(--muted); font-size: 13px; margin-left: 6px; font-family: Inter, sans-serif; font-weight: 500; }
.meal { display: flex; align-items: center; gap: 12px; padding: 10px 0 2px; }
.meal + .meal { border-top: 1px dashed var(--line); margin-top: 8px; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2) center/cover no-repeat; flex: none; display: grid; place-items: center; font-size: 24px; }
.meal .title { font-weight: 600; cursor: pointer; line-height: 1.25; }
.meal .meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tag-ok { color: var(--brand); font-weight: 600; }

/* Rezepte */
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 38px; border-radius: 999px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.rcard { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .12s; }
.rcard:active { transform: scale(.98); }
.rcard .img { aspect-ratio: 4/3; background: var(--surface-2) center/cover no-repeat; position: relative; display: grid; place-items: center; font-size: 38px; }
.rcard .fav { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; font-size: 14px; }
.rcard .src { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; border-radius: 6px; padding: 2px 6px; }
.rcard .body { padding: 10px 12px 12px; }
.rcard .title { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Liste */
.quickadd { display: flex; gap: 8px; margin-bottom: 16px; }
.quickadd .input { border-radius: 999px; }
.group { margin-bottom: 14px; }
.group h3 { font-family: Inter, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 4px 6px; }
.items { overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; cursor: pointer; background: none; padding: 0; }
.check svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.item.done .check { background: var(--brand); border-color: var(--brand); }
.item.done .check svg { opacity: 1; }
.item .name { flex: 1; min-width: 0; cursor: pointer; }
.item .amt { font-weight: 600; color: var(--brand); margin-right: 4px; }
.item.done .name { text-decoration: line-through; color: var(--muted); }
.item.done .amt { color: var(--muted); }
.item .from { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal */
.backdrop { position: fixed; inset: 0; background: rgba(15, 20, 17, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease; -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) { .backdrop { align-items: center; } .sheet { border-radius: 20px; max-height: 88vh; } }
.sheet-head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { padding: 16px; }
.hero { aspect-ratio: 16/9; background: var(--surface-2) center/cover no-repeat; border-radius: var(--radius); margin-bottom: 14px; display: grid; place-items: center; font-size: 56px; }
.ing { list-style: none; padding: 0; margin: 0; }
.ing li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ing li .q { min-width: 76px; font-weight: 600; color: var(--brand); }
.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 12px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.section-title { margin: 20px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.pick:hover, .pick.on { background: var(--surface-2); }
.pick.on { outline: 2px solid var(--brand); }
.notice { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.sugg { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sugg input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.user-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }

#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 60; pointer-events: none;
  transition: .2s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- Ausbau ---------- */
.appbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brandmark-m { display: flex; align-items: center; gap: 8px; font-family: Fraunces, serif; font-weight: 700; font-size: 16px; min-width: 0; }
.brandmark-m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 60vw; }
.sync .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.sync.busy .dot { background: var(--accent); animation: pulse 1s infinite; }
.sync.off { color: var(--danger); border-color: var(--danger); }
.sync.off .dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.offline { position: sticky; top: 49px; z-index: 14; background: var(--danger); color: #fff; padding: 8px 16px; font-size: 13px; font-weight: 600; text-align: center; }
.shell { padding-top: 12px; }
.count { color: var(--muted); font-size: 16px; font-family: Inter, sans-serif; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.tag-warn { color: var(--accent); font-weight: 600; }
.stepper.sm button { width: 26px; height: 26px; font-size: 16px; }
.stepper.sm span { min-width: 52px; font-size: 12px; }
.meal { cursor: pointer; border-radius: 10px; }
.meal:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.meal-head { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.meal-head .btn { min-height: 28px; padding: 2px 8px; }
.meal-head .btn svg { width: 16px; height: 16px; }
.meal-empty { padding: 2px 0 4px; }
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 999px; padding: 4px; }
.tabs3 button { border: 0; background: none; padding: 8px 4px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: 13px; }
.tabs3 button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.picklist { max-height: 46vh; overflow: auto; }
.menu-list { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--line); }
.menu-item { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--text); }
.menu-item svg { width: 18px; height: 18px; }
.menu-item.danger { color: var(--danger); }
.daygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.daybtn { flex-direction: column; border-radius: 12px; padding: 8px; height: auto; gap: 2px; }
.daybtn.cur { border-color: var(--brand); }
h3.sec { font-family: Inter, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; }
.cat { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 0; }
.sugg { cursor: default; }
label.sugg { cursor: pointer; }
.sugg .sday { width: 64px; flex: none; font-size: 13px; }
.q { color: var(--brand); font-weight: 600; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip .cnt { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 2px; }
details.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
details.filters summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.filters[open] summary { margin-bottom: 10px; }
.field .lbl, .lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
div.field { margin-bottom: 12px; }
.switch { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 1px; }
.pushbox { margin-top: 6px; }
.sec-card { margin-bottom: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; font-size: inherit; }
.nextstep { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: var(--brand-soft); color: var(--text); border: 0; border-radius: 12px; padding: 12px 14px; margin-top: 8px; font-weight: 600; cursor: pointer; }
.nextstep span { color: var(--brand); font-size: 20px; }
.feed { list-style: none; padding: 0; margin: 6px 0 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.rcard .stat { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; }
.field.missing > span::after { content: " – fehlt"; color: var(--accent); }
.field.missing .input { border-color: var(--accent); }
.impsteps { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.impsteps li { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.impsteps li.ok { background: var(--brand-soft); color: var(--brand); }
.impsteps li.ok::before { content: "✓ "; }
.impsteps li.cur { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.impsteps li.bad { background: var(--danger); color: #fff; font-weight: 600; }
iframe.tiktok { width: 100%; max-width: 340px; height: 600px; border: 0; border-radius: 12px; display: block; margin: 0 auto 10px; }
.backdrop.full .sheet { max-width: 760px; height: 100%; max-height: 100vh; border-radius: 0; }
@media (min-width: 700px) { .backdrop.full .sheet { height: 92vh; border-radius: 20px; } }
.ck-step { font-size: clamp(22px, 5vw, 30px); line-height: 1.35; font-weight: 500; margin: 6px 0 18px; }
.ck-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ck-progress span { display: block; height: 100%; background: var(--brand); }
.timers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.timer { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.timer.ring { background: var(--accent); color: #fff; border-color: var(--accent); animation: pulse 1s infinite; }
.donehead { display: flex; justify-content: space-between; align-items: center; }
.donehead .linkbtn { font-size: 12px; text-transform: none; letter-spacing: 0; }
.btn.armed { background: var(--danger); color: #fff; border-color: var(--danger); }
.toast-btn { margin-left: 12px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 14px; }
#toast { display: flex; align-items: center; }
.check { width: 28px; height: 28px; }
.item { min-height: 54px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#printview { display: none; }
@media print {
  body > *:not(#printview) { display: none !important; }
  #printview { display: block; font: 14px/1.6 Inter, sans-serif; white-space: pre-wrap; color: #000; }
}
@media (min-width: 900px) {
  .appbar { position: fixed; top: 0; right: max(16px, calc((100vw - 880px) / 2 + 16px)); left: auto; height: 56px; background: none; backdrop-filter: none; border: 0; padding: 0; z-index: 25; pointer-events: none; display: flex; align-items: center; }
  .appbar .brandmark-m { display: none; }
  .appbar .sync { pointer-events: auto; }
  .offline { position: fixed; top: 56px; left: 0; right: 0; }
  .shell { padding-top: 76px; }
}
/* ---------- Ausbau 2 ---------- */
.stars { color: #e0a100; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.starpick { display: flex; gap: 6px; margin: 4px 0 14px; }
.starpick button { font-size: 34px; line-height: 1; background: none; border: 0; cursor: pointer; color: #c9b98f; padding: 2px; }
.starpick button.on { color: #e0a100; }
.item .from.warn { color: var(--accent); font-weight: 600; }
.tabs .badge { margin-left: 4px; }
/* ---------- Ausbau 3 ---------- */
.addopts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.addopt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 22px; color: var(--text); font-family: inherit; }
.addopt b { font-size: 13px; }
.addopt span { font-size: 11px; color: var(--muted); }
.addopt:hover, .addopt:focus-within { border-color: var(--brand); }
.costbar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.costbar .err { margin: 0; font-size: 12px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--brand); }
.price { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.price.est { color: var(--muted); font-weight: 500; }
.scanbox { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4/3; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanframe { position: absolute; left: 12%; right: 12%; top: 35%; bottom: 35%; border: 3px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
