/* ==========================================================================
   TOMA MATÉ · bestellingen · het scherm van het team
   Kleuren en letters uit design-system/TOMA-MATE-DESIGN-SYSTEM.md: crème, beige,
   merkrood en ember, geen zwarte vlakken. Gemaakt om met de duim te bedienen:
   knoppen van minstens 48 px, één hoofdactie per bestelling.
   ========================================================================== */
@font-face { font-family: "DM Serif Display"; src: url("assets/fonts/dm-serif-display-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("assets/fonts/dm-serif-display-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --cream: #f1f2e8; --paper: #f8f8f2; --white: #fff; --greige: #eae3d2;
  --ink: #191a1a; --brand: #7f170e; --brand-deep: #560d07; --ember: #e3883b; --ember-soft: #f0b27a;
  --muted: #6b6b66; --line: rgba(25, 26, 26, .14); --line-strong: rgba(25, 26, 26, .28);
  --ok: #2f5d3a;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 2rem);
  --top-h: 64px; --tabs-h: 0px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.has-sheet { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, ul, fieldset, figure { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 300; }
.small { font-size: .875rem; }
.chakana { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("assets/brand/chakana.svg") center/contain no-repeat; mask: url("assets/brand/chakana.svg") center/contain no-repeat; }

/* ---------- bovenbalk ---------- */
.top { position: sticky; top: 0; z-index: 30; min-height: var(--top-h); display: flex; align-items: center; gap: 1rem 1.5rem; padding: .5rem var(--gutter); background: var(--brand); color: var(--cream); }
.top__brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.top__brand .chakana { font-size: 1.35rem; color: var(--ember-soft); }
.top__name { font-family: var(--serif); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.top__app { display: none; font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ember-soft); white-space: nowrap; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; align-items: center; gap: .35em; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; }
.lang button { padding: .7em .25em; opacity: .6; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .35em; }
.lang span { opacity: .4; }
.tabs { display: flex; gap: .25rem; }
.tab { position: relative; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 .9rem; border-radius: 2px; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 242, 232, .75); transition: background .25s, color .25s; }
.tab:hover { color: var(--cream); }
.tab.is-on { background: var(--brand-deep); color: var(--cream); }
.tab__n { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--ember); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0; }

.demo { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: .6rem var(--gutter); background: var(--greige); border-bottom: 1px solid var(--line); font-size: .875rem; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.25rem; border: 1px solid var(--brand); border-radius: 2px; background: var(--brand); color: var(--cream); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .25s, border-color .25s, color .25s; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--ember-soft); border-color: var(--ember-soft); }
.btn--ember { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.btn--ember:hover { background: var(--ember-soft); border-color: var(--ember-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--greige); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 .9rem; letter-spacing: .1em; }
.btn--block { width: 100%; min-height: 56px; font-size: .75rem; }
.link { min-height: 40px; display: inline-flex; align-items: center; color: var(--brand); font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.link--danger { color: var(--brand); }
.x { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- labels ---------- */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 .65em; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.badge--demo { background: var(--ember); color: var(--ink); }
.badge--new { background: var(--brand); color: var(--cream); }
.badge--ready { background: var(--ember); color: var(--ink); }
.badge--picked_up { border: 1px solid var(--line-strong); color: var(--muted); }
.badge--pending_payment { border: 1px dashed var(--line-strong); color: var(--muted); }
.badge--test { height: 20px; background: var(--ember); color: var(--ink); font-size: 9px; letter-spacing: .14em; }
.badge--cancelled { border: 1px dashed var(--line-strong); color: var(--muted); text-decoration: line-through; }
.tag { display: inline-flex; align-items: center; gap: .4em; height: 24px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.tag--ok { color: var(--ok); font-weight: 500; }
.tag--gift { color: var(--brand); font-weight: 500; }
.tag--gift .chakana { font-size: .7em; }
.tag--gift.is-given { color: var(--muted); text-decoration: line-through; }

/* ---------- schermen ---------- */
.view { max-width: 1280px; margin: 0 auto; padding: 1.25rem var(--gutter) 6rem; }
.h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.h--sm { font-size: 1.35rem; margin-bottom: 1rem; }
.view--settings > .h, .view--slots > .h { margin-bottom: 1rem; }
.view--slots > .h { margin-bottom: 0; }
.lead { max-width: 60ch; margin: .6rem 0 1.5rem; color: var(--muted); font-weight: 300; }
.headrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 1rem; }
.empty { margin-top: 2rem; padding: 2.5rem 1rem; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }
.bar { margin-bottom: 1rem; }
.search input { width: 100%; min-height: 48px; padding: 0 1rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; }
.search input:focus { outline: 0; border-color: var(--brand); }

.days { display: flex; gap: .5rem; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) .75rem; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; min-width: 116px; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); transition: background .25s, color .25s, border-color .25s; }
.day__l { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.day__d { grid-row: 2; font-size: .75rem; color: var(--muted); min-height: 1.1em; }
.day__n { grid-row: 1 / 3; grid-column: 2; justify-self: end; min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--cream); font-size: .8125rem; font-weight: 600; }
.day__n.is-zero { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.day.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.day.is-on .day__d { color: rgba(241, 242, 232, .7); }
.day.is-on .day__n { background: var(--ember); color: var(--ink); border: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1.25rem; }
.chip { min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8125rem; white-space: nowrap; transition: background .25s, color .25s; }
.chip b { font-weight: 600; margin-left: .25em; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.group { margin-top: 1.5rem; }
.group__h { display: flex; align-items: baseline; gap: .75rem; padding-bottom: .5rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line-strong); font-weight: 400; font-size: .875rem; }
.group__t { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 2px; }
.card--ready { border-left-color: var(--ember); }
.card--picked_up, .card--cancelled, .card--pending_payment { border-left-color: var(--line-strong); background: transparent; }
.card--picked_up .card__name, .card--cancelled .card__name, .card--pending_payment .card__name, .card--pending_payment .card__items, .card--picked_up .card__items, .card--cancelled .card__items { color: var(--muted); }
.card--cancelled .card__items { text-decoration: line-through; }
.card__main { flex: 1; display: flex; flex-direction: column; gap: .35rem; width: 100%; padding: .9rem 1rem .8rem; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.card__name { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.card__no { font-size: .75rem; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.card__when { font-size: .8125rem; font-weight: 500; color: var(--brand); }
.card__items { font-size: 1rem; line-height: 1.4; }
.card__note { font-size: .875rem; font-style: italic; color: var(--muted); }
.card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin-top: .35rem; }
.card__act { margin: 0 .75rem .75rem; }

/* ---------- voorbereiden ---------- */
.prep { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.prep th { padding: .5rem 0; border-bottom: 1px solid var(--line-strong); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: left; }
.prep td { padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prep .num { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.prep__name { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.prep__sub { display: block; font-size: .875rem; }
.prep__qty { font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--brand); }
.prep__gift .prep__name { color: var(--brand); }
.perslot li { display: grid; grid-template-columns: 4.25rem 1fr auto; gap: .75rem; align-items: start; padding: .8rem 0; border-top: 1px solid var(--line); }
.perslot__t { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--brand); }
.perslot + .small { margin-top: 1rem; }

/* ---------- afhaalmomenten ---------- */
.slotdays { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.slotday header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line-strong); margin-bottom: .6rem; }
.slotday h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; }
.slotday h3 .muted { font-family: var(--sans); font-size: .875rem; text-transform: none; }
.slotchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.slotchip { min-width: 76px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); line-height: 1.2; }
.slotchip b { font-weight: 500; }
.slotchip span { font-size: .75rem; color: var(--muted); }
.slotchip.is-full { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.slotchip.is-full span { color: var(--ember-soft); }
.slotchip.is-closed { background: transparent; border-style: dashed; color: var(--muted); }
.slotchip.is-closed b { text-decoration: line-through; }

/* ---------- formulieren ---------- */
.panel { max-width: 720px; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.panel + .panel, form.panel + p.panel { margin-top: 1rem; }
.panel--quiet { background: transparent; border-style: dashed; }
.panel .btn { margin-top: .5rem; }
.field { display: block; margin-bottom: 1rem; min-width: 0; }
.field > span, .field > legend { display: block; margin-bottom: .4rem; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field > span em { font-style: normal; letter-spacing: .02em; text-transform: none; font-weight: 300; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: 2px; }
textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, textarea:focus { outline: 0; border-color: var(--brand); }
.field--inline { max-width: 12rem; margin: .5rem 0 0 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; }
.check span { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; }
.check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.check input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.check--row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.check--row input { position: static; opacity: 1; width: 22px; height: 22px; accent-color: var(--brand); }
.check--row span { display: inline; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.check--row input:checked + span { background: none; color: inherit; }
.radio { display: flex; align-items: flex-start; gap: .75rem; padding: .4rem 0; }
.radio input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); }
.field input[type="checkbox"] { width: 18px; height: 18px; vertical-align: -3px; margin-right: .3em; accent-color: var(--brand); }
.hint { display: block; min-height: 1.2em; margin-top: .3rem; font-size: .8125rem; }
.hint.is-ok { color: var(--ok); }
.hint.is-bad { color: var(--brand); }
.err { min-height: 1.4em; color: var(--brand); font-weight: 500; }
.pick li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.pick li:last-child { border-bottom: 1px solid var(--line); }
.pick b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; }
.qty { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.qty button { width: 46px; height: 46px; font-size: 1.25rem; line-height: 1; text-align: center; }
.qty input { width: 2.4rem !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: center; font-weight: 600; }

/* ---------- inloggen (live) ---------- */
.top__out { min-height: 44px; padding: 0 .25rem; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); opacity: .8; text-decoration: underline; text-underline-offset: .35em; }
.top__out:hover { opacity: 1; }
.is-locked .tabs, .is-locked #new-btn, .is-locked .demo { display: none !important; }
.login { max-width: 440px; margin: 2rem auto 0; }
.login__mark { font-size: 2rem; color: var(--brand); margin-bottom: 1rem; }
.login .lead { margin-bottom: 1.25rem; }
.login .panel .btn { margin-top: .25rem; }
.login .acts .btn { margin-top: 0; }
.login__sub { margin-top: .75rem; text-align: center; }
.ok { min-height: 1.4em; color: var(--ok); font-weight: 500; }
.notice { margin: -.25rem 0 1.1rem; padding: .7rem .9rem; background: var(--greige); border-left: 4px solid var(--ember); font-size: .9375rem; }

/* ---------- paneel met details ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(86, 13, 7, .35); opacity: 0; transition: opacity .25s; }
.scrim.is-on { opacity: 1; }
.sheet { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--cream); border-left: 1px solid var(--line-strong); transform: translateX(100%); transition: transform .28s var(--ease); }
.sheet.is-on { transform: none; }
.sheet__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--greige); border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; text-transform: uppercase; }
.sheet__head p { margin-top: .4rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .875rem; }
.sheet__body { flex: 1; overflow-y: auto; padding: 1.25rem; -webkit-overflow-scrolling: touch; }
.sheet__foot { flex: none; padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.sheet__sub { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.blk { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.blk h3 { margin-bottom: .5rem; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.blk .field { margin: .75rem 0 0; }
.blk textarea { margin-bottom: .5rem; }
.big { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.lines li { display: grid; grid-template-columns: 3rem 1fr auto; gap: .5rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines__q { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--brand); white-space: nowrap; }
.lines b { font-weight: 500; }
.lines__p { white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; gap: 1rem; padding-top: .6rem; margin-top: .3rem; border-top: 1px solid var(--line-strong); }
.total b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.giftbox { display: flex; gap: .75rem; align-items: flex-start; margin-top: .9rem; padding: .8rem .9rem; background: var(--greige); border-left: 4px solid var(--brand); }
.giftbox .chakana { color: var(--brand); margin-top: .25em; }
.giftbox.is-given { border-left-color: var(--line-strong); color: var(--muted); }
.giftbox.is-given .chakana { color: var(--muted); }
.meta { margin-top: .25rem; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(1.25rem + var(--tabs-h)); max-width: calc(100vw - 2rem); padding: .8rem 1.2rem; background: var(--ink); color: var(--cream); border-radius: 2px; font-size: .9375rem; text-align: center; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.has-sheet .toast { bottom: auto; top: 1rem; }   /* niet over de knop van het paneel */

/* ---------- telefoon: schermen onderaan, paneel schermvullend ---------- */
@media (max-width: 900px) {
  :root { --tabs-h: 60px; }
  .tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); gap: 0; background: var(--brand); border-top: 1px solid var(--brand-deep); }
  .tab { flex: 1; justify-content: center; min-height: var(--tabs-h); padding: 0 .25rem; border-radius: 0; font-size: 10px; letter-spacing: .08em; text-align: center; }
  .top__app { display: inline; }
  .view { padding-bottom: calc(var(--tabs-h) + 5rem); }
}
@media (max-width: 560px) {
  .top { gap: .5rem; }
  .top__app, .top .badge--demo { display: none; }
  .top__out { font-size: 10px; letter-spacing: .06em; }
  .top__name { font-size: 1.05rem; }
  .top__right { gap: .5rem; }
  .top__right .btn { min-height: 44px; padding: 0 .8rem; letter-spacing: .08em; }
  .top__right .btn span[data-t] { display: none; }
  .top__right .btn span[aria-hidden] { font-size: 1.4rem; font-weight: 400; line-height: 1; }
  .tab { flex: 1 1 0; min-width: 0; font-size: 9px; letter-spacing: .02em; line-height: 1.25; }
  .tab span { font-size: 9px; }
  .tab__n { min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
  .cards { grid-template-columns: 1fr; }
  .sheet { border-left: 0; }
  .perslot li { grid-template-columns: 3.5rem 1fr; }
  .perslot li .badge { grid-column: 2; justify-self: start; }
  .field--inline { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

@media print {
  .top, .demo, .days, .no-print, .toast, .tabs { display: none !important; }
  body { background: #fff; }
  .view { padding: 0; max-width: none; }
  .badge { border: 1px solid #999; background: none !important; color: #000 !important; }
}
