/* Aplikace Nakřečkuj: mobilní sloupec, záložky dole. Barvy a písmo jen z tokenů design systému (nakreckuj.css). */
:root { color-scheme: light; --tabs-h: 64px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { background: var(--surface); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; }
@media (min-width: 560px) { body { background: var(--brand-orange-tint); } .shell { background: var(--surface); box-shadow: 0 0 0 1px var(--line); } }
.view { padding: var(--space-4) max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabs-h) + 32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: var(--space-6); align-content: start; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 36px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 28px; }
p { margin: 0; }
a { color: var(--green); }
a.nk-btn { text-decoration: none; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.head { display: grid; gap: var(--space-1); }
.head .eyebrow { font-size: 13px; line-height: 18px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-orange-deep); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.stack { display: grid; gap: var(--space-3); }
.card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); display: grid; gap: var(--space-3); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.loading { display: grid; justify-items: center; gap: var(--space-4); padding-block: 80px; color: var(--ink-muted); }

/* záložky */
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 560px; margin: 0 auto;
  background: var(--surface-card); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.tabs a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11.5px; letter-spacing: -.01em; min-width: 0; white-space: nowrap; line-height: 16px; font-weight: 650; color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-sm); }
.tabs a.on { color: var(--green); }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--deal-red); color: var(--surface-card); font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; font-variant-numeric: tabular-nums; }

/* formulář profilu */
.form { display: grid; gap: var(--space-6); }
.fld { display: grid; gap: var(--space-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.fld > legend, .fld > .lbl { font-size: 13px; line-height: 18px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; padding: 0; margin-bottom: var(--space-2); }
.fld .hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: calc(-1 * var(--space-1)); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stepper { display: inline-flex; align-items: center; gap: var(--space-3); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink-muted); background: var(--surface-card); color: var(--ink); font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 96px; text-align: center; font-weight: 700; }
.range output { font-weight: 800; font-size: 22px; line-height: 28px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--green); height: 32px; margin: 0; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.sticky-cta { position: sticky; bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
.welcome { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.welcome img { width: 112px; height: auto; }

/* týden */
.summary { display: grid; gap: var(--space-2); }
.summary-line { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.summary-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.warn { background: var(--brand-orange-tint); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 20px; }
.ok { background: var(--green-tint); color: var(--green-deep); border-radius: var(--radius-pill); padding: 2px var(--space-3); font-size: 13px; font-weight: 700; display: inline-block; }
.week-sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--surface); padding-block: var(--space-2); margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2); }
.day { display: grid; gap: var(--space-2); scroll-margin-top: 104px; }
.day-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.day-label h2 { font-size: 19px; line-height: 24px; }
.day-label span { font-size: 13px; color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface-card); color: var(--ink); font-weight: 650; font-size: 14px; cursor: pointer; }
.act:hover { border-color: var(--ink-muted); }
.act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act.on { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.act.fav.on { background: var(--brand-orange-tint); border-color: var(--brand-orange); color: var(--brand-orange-deep); }
.act.fav.on svg { fill: currentColor; }
.act:disabled { opacity: .5; cursor: progress; }
.nk-meal { cursor: pointer; }
.nk-tag-lock { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* recept */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); text-decoration: none; justify-self: start; }
.hero-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); display: block; background: var(--brand-orange-tint); }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: 14px; color: var(--ink-muted); }
.ing { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ing li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); }
.ing .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ing small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: var(--space-3); }
.steps li::marker { font-weight: 800; color: var(--brand-orange-deep); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { font-size: 13px; line-height: 18px; font-weight: 650; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--line); }

/* nákup */
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.store-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 0 var(--space-1); }
.store-head b { font-variant-numeric: tabular-nums; }
.list { display: grid; gap: var(--space-2); }
.nk-item { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--space-1); }
.nk-item .nk-price { grid-column: 2; }
.plain-list { margin: 0; padding-left: 1.2em; color: var(--ink-muted); font-size: 15px; }

/* recepty */
.search { width: 100%; min-height: 48px; border: 1.5px solid var(--ink-muted); border-radius: var(--radius-md); padding: 0 var(--space-4); background: var(--surface-card); font: inherit; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid .nk-meal-title { font-size: 16px; line-height: 21px; }
.grid .nk-meal-body { padding: var(--space-3); }
@media (max-width: 360px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.banner { background: var(--brand-orange-tint); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 20px; }
.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom, 0px)); max-width: min(480px, calc(100% - 32px));
  background: var(--ink); color: var(--surface); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(58, 37, 22, .3); }
.empty { display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding-block: var(--space-8); }
.empty img { width: 140px; }
@media (prefers-reduced-motion: reduce) { .progress i { transition: none; } html { scroll-behavior: auto; } }

/* Hamík: úvod přes celou obrazovku, mluví v bublině */
.view.view-full { padding: 0; }
.onb { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(120% 60% at 50% 78%, var(--brand-orange-tint) 0 55%, var(--surface) 56%); }
.onb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3);
  padding: calc(var(--space-3) + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) var(--space-2) max(16px, env(safe-area-inset-left, 0px)); min-height: 52px; }
.onb-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink); font-weight: 650; font-size: 15px; padding: 8px 4px; cursor: pointer; justify-self: start; }
.onb-link svg { width: 18px; height: 18px; }
.onb-skip { justify-self: end; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.onb-dots i.done { background: var(--green); }
.onb-dots i.on { width: 22px; border-radius: 4px; background: var(--brand-orange); }
.onb-stage { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; justify-content: safe flex-end; gap: var(--space-4); min-height: 0;
  padding: var(--space-2) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
/* komiksová bublina: tvar kreslí bubliny.js do SVG za textem */
.onb-bubble { flex: none; position: relative; width: calc(100% - 32px); max-width: 420px; margin: 22px 16px 58px; transform-origin: 50% 120%; }
.bubble-text { position: relative; z-index: 1; display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6); }
.onb-bubble[data-tvar="oval"] .bubble-text, .onb-bubble[data-tvar="blob"] .bubble-text { padding: var(--space-6) 44px; }
.onb-bubble[data-tvar="mrak"] .bubble-text, .onb-bubble[data-tvar="myslenka"] .bubble-text { padding: 28px 44px 20px; }
.bubble-svg { position: absolute; z-index: 0; overflow: visible; pointer-events: none; }
.b-stin path { fill: var(--line); }
.b-obrys path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.b-vypln path { fill: var(--surface-card); }
.onb-bubble p { margin: 0; }
.onb-reakce { font-size: 16px; line-height: 23px; color: var(--ink-muted); }
.onb-otazka { font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 31px; text-wrap: balance; }
.onb-dovetek { font-size: 16px; line-height: 23px; }
/* místo pro Hamíka: zabere, co zbude; samotný Hamík (.herec) se na ně přesouvá */
.onb-misto { flex: 1 1 0; min-height: 72px; max-height: 360px; width: 100%; }
.onb-top, .onb-bubble, .onb-answers { position: relative; z-index: 3; }
.herec { position: fixed; z-index: 2; pointer-events: none; transform-origin: 50% 100%; will-change: transform; }
.herec-telo { width: 100%; height: 100%; transform-origin: 50% 100%; animation: houpani 3.6s ease-in-out infinite; }
.herec img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; }
.herec-loutka { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
/* kreslený Hamík: dvě plátna přes sebe (snímek a prolínání při přechodu mezi animacemi) */
.herec-loutka canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.herec-loutka canvas.prolnuti { opacity: 0; pointer-events: none; }

.herec-loutka[hidden], .herec img[hidden] { display: none; }
/* jen klidné dýchání; Hamík nikam neskáče */
@keyframes houpani { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.01, .992); } }
/* otazník nad hlavou, když přemýšlí */
.herec-otaznik { position: absolute; right: 4%; top: calc(var(--h, 500px) * 0.01); font-family: var(--font-display); font-weight: 700;
  font-size: calc(var(--h, 500px) * 0.15); line-height: 1; color: var(--brand-orange-deep); transform-origin: 50% 90%;
  text-shadow: 0 0 0 var(--ink), 3px 3px 0 var(--surface-card), -3px 3px 0 var(--surface-card), 3px -3px 0 var(--surface-card), -3px -3px 0 var(--surface-card), 0 6px 0 var(--line); }
.herec-otaznik[hidden] { display: none; }
.herec-otaznik[data-strana="vlevo"] { right: auto; left: 4%; }
@keyframes dech { 0%, 100% { transform: none; } 50% { transform: scale(1.015, .985); } }
/* přechody mezi otázkami */
@keyframes hledani { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.onb-bubble.pop { animation: bublina-in .55s cubic-bezier(.2, 1.5, .45, 1) both; }
@keyframes bublina-in { from { transform: scale(.2) translateY(40px) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.onb-bubble.pop .b-obrys path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: obrys .6s .05s ease-out forwards; }
@keyframes obrys { to { stroke-dashoffset: 0; } }
.onb-bubble.pop .b-obrys path + path { animation-delay: .45s; animation-duration: .25s; }
.onb-bubble.pop .b-vypln, .onb-bubble.pop .b-stin { animation: vypln .3s .12s ease-out both; }
@keyframes vypln { from { opacity: 0; } to { opacity: 1; } }
.onb-bubble.pop .bubble-text > * { animation: radek .35s ease-out both; animation-delay: calc(var(--i, 0) * 110ms + 220ms); }
/* text se píše písmenko po písmenku, zatímco Hamík mluví (místo je předem zabrané, bublina se nepřekresluje) */
.onb-bubble.pise .bubble-text > * { animation: none; }
.onb-bubble .pz { opacity: 0; animation: pismeno .06s linear forwards; animation-delay: var(--d, 0ms); }
@keyframes pismeno { to { opacity: 1; } }
.onb-answers.ceka { visibility: hidden; }
@keyframes radek { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.onb-bubble.leave { animation: bublina-out .26s ease-in forwards; }
@keyframes bublina-out { to { transform: scale(.3) translateY(60px); opacity: 0; } }
.onb-answers.pop { animation: odpovedi-in .4s .15s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes odpovedi-in { from { transform: translateY(100%); } to { transform: none; } }
.onb-answers.pop .nk-chip { animation: chip-in .3s ease-out both; animation-delay: calc(var(--i, 0) * 35ms + 350ms); }
@keyframes chip-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.onb-answers.leave { animation: odpovedi-out .26s ease-in forwards; }
@keyframes odpovedi-out { to { transform: translateY(100%); } }
.onb-answers { background: var(--surface-card); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px rgba(58, 37, 22, .08);
  padding: var(--space-6) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: var(--space-4); max-height: 52vh; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain; }
.onb-answers .chips { gap: 10px; }
.onb-answers .nk-chip { min-height: 46px; font-size: 16px; padding: 0 var(--space-4); }
.onb-row { display: flex; gap: var(--space-2); position: sticky; bottom: calc(-1 * var(--space-6) - env(safe-area-inset-bottom, 0px));
  background: var(--surface-card); padding-block: var(--space-2) var(--space-4); margin-bottom: calc(-1 * var(--space-4)); }
.onb-row .nk-btn { flex: 1; }
.onb-wait { display: flex; gap: var(--space-3); align-items: center; justify-content: center; color: var(--ink-muted); margin: 0; min-height: 48px; }
.typing { display: inline-flex; gap: 5px; align-items: center; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange-deep); opacity: .4; animation: tecka 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tecka { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-num { display: flex; gap: var(--space-2); }
.chat-num input { flex: 1; min-width: 0; min-height: 46px; border: 1.5px solid var(--ink-muted); border-radius: var(--radius-md); padding: 0 var(--space-3); font: inherit; background: var(--surface-card); color: var(--ink); }
/* menší telefony: bublina má přednost, lišta s odpověďmi je nižší a roluje, Hamík se zmenší */
@media (max-height: 780px) {
  .onb-answers { max-height: 44vh; max-height: 44dvh; }
  .onb-bubble { margin: 12px 16px 48px; }
  .onb-misto { min-height: 32px; }
}
@media (max-height: 700px) {
  .onb-answers { max-height: 40vh; max-height: 40dvh; padding-top: var(--space-4); }
  .onb-otazka { font-size: 21px; line-height: 26px; }
  .onb-reakce, .onb-dovetek { font-size: 15px; line-height: 21px; }
  .bubble-text { padding: var(--space-3) var(--space-5, 20px); }
  .onb-bubble[data-tvar="oval"] .bubble-text, .onb-bubble[data-tvar="blob"] .bubble-text { padding: var(--space-4) 36px; }
  .onb-bubble[data-tvar="mrak"] .bubble-text, .onb-bubble[data-tvar="myslenka"] .bubble-text { padding: 20px 36px 14px; }
  .onb-answers .nk-chip { min-height: 42px; }
}

/* Hamík průvodce na obrazovkách */
.guide { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--space-2); align-items: end; }
.guide img { width: 76px; height: auto; }
.guide-bubble { position: relative; background: var(--brand-orange-tint); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); display: grid; gap: var(--space-2); font-size: 15px; line-height: 22px; }
.guide-bubble::before { content: ""; position: absolute; left: -7px; bottom: 16px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.guide-bubble p { margin: 0; }
.guide-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; }
.guide-stats { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: 14px; color: var(--ink-muted); }
.guide-stats b { color: var(--green-deep); font-size: 17px; font-variant-numeric: tabular-nums; }
.guide .nk-btn-text { padding-left: 0; justify-self: start; }

/* nákup po cestách */
.trip { display: grid; gap: var(--space-4); }
.trip + .trip { border-top: 2px dashed var(--line); padding-top: var(--space-6); }
.trip-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.trip-head span { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .herec-telo, .onb-bubble.pop, .onb-bubble.leave, .onb-answers.pop, .onb-answers.leave,
  .onb-bubble.pop .b-obrys path, .onb-bubble.pop .b-vypln, .onb-bubble.pop .b-stin, .onb-bubble.pop .bubble-text > *, .onb-answers.pop .nk-chip, .typing i { animation: none; }
  .onb-bubble.pop .b-obrys path { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* slevy */
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--space-4)); padding: 2px var(--space-4); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .nk-chip { flex: none; }
.sort-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.deal-group { display: grid; gap: var(--space-3); }
.deal-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.deal-group-head h2 { margin: 0; }
.deals { display: grid; gap: var(--space-2); }
.deal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; background: var(--surface-card);
  border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); }
.deal-on { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--surface-card)); }
.deal-main { min-width: 0; display: grid; gap: 2px; }
.deal-store { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-orange-deep); }
.deal-name { margin: 0; font-size: 16px; line-height: 21px; font-weight: 650; overflow-wrap: anywhere; }
.deal-meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.deal-side { display: flex; align-items: center; gap: var(--space-2); }
.deal-side .nk-price { display: grid; justify-items: end; text-align: right; }
.deal-add { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface-card); color: var(--ink);
  font: 700 22px/1 var(--font-body, inherit); cursor: pointer; display: grid; place-items: center; flex: none; }
.deal-add[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-size: 18px; }
.deal-add:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.warn-text { color: var(--brand-orange-deep); }
.card.bonus { background: var(--brand-orange-tint); border-color: transparent; }
details.bonus-nast { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-4); }
details.bonus-nast > summary { cursor: pointer; font-weight: 700; }
details.bonus-nast[open] > summary { margin-bottom: var(--space-4); }

/* jídelníček */
.jid-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.jid-slot { display: grid; gap: var(--space-2); background: var(--surface-card); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.jid-slot-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.jid-slot-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 24px; }
.jid-prazdne { border: 1.5px dashed var(--line); border-radius: var(--radius-md); background: none; padding: var(--space-3); color: var(--ink-muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.jid-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; }
.jid-item img, .jid-ikona { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--brand-orange-tint); font-size: 22px; }
.jid-item-main { min-width: 0; display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
button.jid-item-main { cursor: pointer; }
.jid-item-name { font-weight: 650; font-size: 16px; line-height: 21px; overflow-wrap: anywhere; }
.jid-item-meta { font-size: 13px; color: var(--ink-muted); }
.jid-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink-muted); font-size: 22px; cursor: pointer; }
.jid-x:hover { background: var(--brand-orange-tint); color: var(--ink); }
.jid-akce { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.jid-tab-wrap { overflow-x: auto; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); }
.jid-tab { border-collapse: separate; border-spacing: 0; min-width: 560px; width: 100%; font-size: 14px; line-height: 19px; background: var(--surface-card); border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.jid-tab th, .jid-tab td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.jid-tab thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); background: var(--brand-orange-tint); }
.jid-tab tbody th { width: 64px; }
.jid-tab tbody th button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0; text-align: left; }
.jid-tab tbody th small { display: block; font-weight: 500; color: var(--ink-muted); }
.jid-tab tr.dnes th, .jid-tab tr.dnes td { background: color-mix(in srgb, var(--brand-orange) 8%, var(--surface-card)); }
.jid-tab tr:last-child th, .jid-tab tr:last-child td { border-bottom: 0; }
.jid-plus { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--ink-muted); background: none; color: var(--ink-muted); cursor: pointer; font-size: 18px; }
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(58, 37, 22, .35); }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 82vh; max-height: 82dvh; overflow-y: auto; background: var(--surface);
  border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(58, 37, 22, .2); display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-4) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 640px) { .sheet { max-width: 560px; margin: 0 auto; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.pick-list { display: grid; gap: var(--space-2); }
.pick { display: grid; gap: 4px; text-align: left; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface-card); padding: var(--space-3) var(--space-4); font: inherit; color: var(--ink); cursor: pointer; }
.pick:hover { border-color: var(--brand-orange); }
.pick-name { font-weight: 650; }
.pick-meta { font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jid-sipky { display: flex; gap: var(--space-2); }
.jid-sipka { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface-card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.jid-sipka:disabled { opacity: .3; cursor: default; }

/* Hamík Premium a dotazník */
.premium { display: grid; gap: var(--space-4); justify-items: center; text-align: center; max-width: 440px; margin: 0 auto; padding-block: var(--space-6); }
.premium-hamik { width: 150px; height: auto; }
.premium h1 { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 36px; text-wrap: balance; }
.lead-s { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.premium-body { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); text-align: left; width: 100%; }
.premium-body li { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.premium-body li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.premium-body b { font-size: 16px; }
.premium-body span { font-size: 14px; color: var(--ink-muted); line-height: 20px; }
.premium-cena { display: flex; align-items: baseline; gap: var(--space-2); }
.premium-castka { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 700; color: var(--brand-orange-deep); }
.premium-pozn { margin: 0; }
.premium-mail { display: grid; gap: var(--space-2); width: 100%; text-align: left; }
.premium-mail label { font-weight: 650; }
.premium-mail input, .dotaznik input, .dotaznik textarea { flex: 1; min-width: 0; min-height: 46px; border: 1.5px solid var(--ink-muted); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); font: inherit; background: var(--surface-card); color: var(--ink); width: 100%; }
.dotaznik textarea { resize: vertical; }
.dot-q legend { display: flex; gap: var(--space-2); align-items: baseline; font-weight: 700; font-size: 17px; line-height: 23px; }
.dot-cislo { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-orange-tint); color: var(--brand-orange-deep); font-size: 13px; display: inline-grid; place-items: center; }
.pozvanka { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.pozvanka span { flex: 1 1 180px; }
