/* Budino – web, rezervace a objednávka ze stolu. Černá z loga, terakota z interiéru. */
:root {
  --ink: #231f20; --ink2: #3a3436; --coral: #b8492c; --coral2: #9c3b22; --cream: #faf6ef; --card: #fff; --text: var(--ink);
  --line: #e8e0d3; --muted: #6f6660; --soft: #f1ebe1; --ok: #16a34a; --okbg: #e7f6ec; --warn: #d97706; --warnbg: #fdf3e2;
  --bad: #dc2626; --badbg: #fde8e8; --blue: #2563eb; --bluebg: #e8effd;
  --r: 16px; --sh: 0 1px 2px rgba(35, 31, 32, .06), 0 6px 20px rgba(35, 31, 32, .06);
  --serif: 'Libre Baskerville', Georgia, serif; --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--sans); color: var(--text); background: var(--cream); }
body.noscroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: .01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.hidden { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--coral); color: #fff; border: 0; font-weight: 700; text-decoration: none; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--coral2); }
.btn-ink { background: var(--ink); } .btn-ink:hover { background: var(--ink2); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #128a40; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.armed { background: var(--bad); color: #fff; box-shadow: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
input[type=text], input[type=search], input[type=number], input[type=time], input[type=date], input[type=password], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 70px; resize: vertical; }
label.f { display: block; margin: 0 0 12px; } label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

/* toast + sheet */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 120px); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 200; transition: transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); } .toast.err { background: var(--bad); } .toast.ok { background: var(--ok); }
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 16, 40, .45); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--cream); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-wrap.open .sheet-bg { opacity: 1; } .sheet-wrap.open .sheet { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #d8cfc2; margin: 0 auto 8px; box-shadow: 0 0 0 14px transparent; }
.s-head .sw { background: rgba(255, 255, 255, .12); box-shadow: none; }
.s-head .sw button { background: none; color: #cfc6bd; min-height: 32px; padding: 0 12px; }
.s-head .sw button.on { background: #fff; color: var(--ink); }
.mode-kuchyne .s-head .sw button.on { background: #ff4930; color: #fff; }
.sheet-x { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; line-height: 1; z-index: 2; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; width: 560px; bottom: auto; top: 50%; border-radius: 22px; transform: translate(-50%, -45%); opacity: 0; transition: transform .25s, opacity .2s; max-height: 88vh; }
  .sheet-wrap.wide .sheet { width: 820px; }
  .sheet-wrap.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
}

/* ── rozcestník ── */
.landing .wrap { max-width: 1080px; margin: 0 auto; padding: 32px 16px 48px; }
.land-head { text-align: center; margin-bottom: 28px; }
.land-logo { width: 220px; max-width: 70%; height: auto; }
.land-head h1 { font-size: clamp(30px, 6vw, 46px); margin: 18px 0 8px; }
.lead { font-size: 17px; max-width: 640px; margin: 0 auto; color: var(--muted); }
.land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.land-card { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 6px; }
.land-card h2 { font-size: 24px; } .land-card p { margin: 4px 0; color: var(--muted); }
.land-card .btn { margin-top: auto; align-self: flex-start; }
.land-card .pin b { color: var(--text); font-size: 17px; letter-spacing: .08em; }
/*x*/.land-guest { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; background: var(--ink); color: #fff; }
.land-guest p { color: #cfcae0; } .land-guest .btn { margin-top: 10px; }
.land-guest .qr { width: 190px; flex: none; background: #fff; border-radius: 16px; padding: 8px; }
.land-guest .qr svg { display: block; width: 100%; height: auto; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.land-try { margin: 22px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--card); padding: 16px 20px; border-radius: 16px; }
.land-try p { margin: 0; flex: 1 1 260px; }
@media (max-width: 560px) { .land-guest { flex-direction: column; align-items: stretch; } .land-guest .qr { width: 170px; align-self: center; } }

/* ── host ── */
.boot { display: grid; place-items: center; height: 80vh; }
.g-head { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 240, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.g-head.scrolled { border-bottom-color: var(--line); }
.g-top { display: flex; align-items: center; gap: 10px; }
.g-top img { height: 30px; width: auto; }
.g-table { margin-left: auto; font-weight: 700; font-size: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.langs { display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: none; padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.langs button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.g-search { position: relative; margin-top: 10px; }
.g-search input { padding-left: 42px; border-radius: 14px; background: var(--card); border-color: transparent; box-shadow: 0 1px 3px rgba(35, 31, 32, .08); }
.g-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: .55; }
.g-search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; }
.g-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs button { flex: none; border: 0; background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.g-tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }
.g-main { padding: 12px 16px 120px; max-width: 760px; margin: 0 auto; }
.g-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
.g-act { border: 0; border-radius: 18px; padding: 14px 12px; text-align: left; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.2;
  background: var(--card); box-shadow: var(--sh); min-height: 72px; transition: transform .1s; }
.g-act:active { transform: scale(.97); }
.g-act .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--soft); font-size: 20px; }
.g-act.call .ico { background: var(--coral); color: #fff; }
.g-act small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.g-act.waiting { box-shadow: inset 0 0 0 2px var(--warn); } .g-act.waiting small { color: var(--warn); font-weight: 600; }
.g-act.acked { box-shadow: inset 0 0 0 2px var(--ok); } .g-act.acked small { color: var(--ok); font-weight: 600; }
.g-act.waiting .ico { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; scroll-margin-top: 170px; }
.sec-h h2 { font-size: 26px; }
.sub-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 2px 8px; }
.today { background: var(--ink); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 8px; }
.today h2 { font-size: 22px; } .today .muted { color: #cfc6bd; }
.today .row { background: rgba(255, 255, 255, .07); border-color: transparent; color: #fff; }
.today .row .d, .today .row .meta { color: #cfc6bd; }
.today .row.off { opacity: .5; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; gap: 12px; background: var(--card); border-radius: var(--r); padding: 10px; box-shadow: var(--sh); text-align: left; border: 0; width: 100%; align-items: stretch; }
.card .ph { width: 104px; height: 104px; border-radius: 12px; flex: none; background: var(--soft) center/cover no-repeat; position: relative; overflow: hidden; }
.ph.ph-empty { display: grid; place-items: center; font-size: 34px; background: linear-gradient(135deg, #efe8de, #e3d9cb); }
.ph.ph-empty::after { content: 'foto brzy'; position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #9a8f80; }
.card .body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 2px 0; }
.card .n { font-weight: 700; line-height: 1.25; }
.card .d { font-size: 13px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.price { font-weight: 700; } .size { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
.add { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; flex: none; }
.add:active { transform: scale(.9); }
.stepper { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; height: 38px; }
.stepper button { width: 36px; height: 38px; border: 0; background: none; color: #fff; font-size: 20px; }
.stepper b { min-width: 18px; text-align: center; }
.rows { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.row:first-child { border-top: 0; }
.row .body { flex: 1; min-width: 0; }
.row .n { font-weight: 600; } .row .d { font-size: 12.5px; color: var(--muted); }
.row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.today .rows { background: transparent; box-shadow: none; display: grid; gap: 6px; }
.today .row { border-radius: 12px; border-top: 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); vertical-align: 1px; }
.badge.coral { background: var(--coral); color: #fff; } .badge.ok { background: var(--okbg); color: var(--ok); } .badge.warn { background: var(--warnbg); color: var(--warn); }
.badge.bad { background: var(--badbg); color: var(--bad); } .badge.blue { background: var(--bluebg); color: var(--blue); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 8px; max-width: 736px; margin: 0 auto; }
.cartbar button { flex: 1; min-height: 58px; border-radius: 18px; border: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px rgba(35, 31, 32, .25); }
.cartbar .go { background: var(--coral); color: #fff; }
.cartbar .st { background: var(--ink); color: #fff; flex: 0 0 auto; gap: 8px; }
.cartbar .cnt { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 2px 9px; font-size: 14px; margin-right: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); display: inline-block; }
.dot.ok { background: var(--ok); } .dot.live { animation: pulse 1.2s infinite; }
.detail .hero { margin: 0 -16px 14px; height: 260px; background: var(--soft) center/cover; border-radius: 0; }
@media (min-width: 720px) { .detail .hero { margin: -8px -16px 14px; border-radius: 22px 22px 0 0; } }
.detail h2 { font-size: 28px; padding-right: 36px; }
.detail .d { color: var(--muted); margin: 6px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.addbar { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.addbar .stepper { height: 50px; } .addbar .stepper button { height: 50px; width: 44px; }
.addbar .btn { flex: 1; min-height: 52px; justify-content: space-between; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .body { flex: 1; min-width: 0; } .cart-line .d { font-size: 12.5px; color: var(--muted); }
.sum { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin: 14px 0; }
.track { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); margin-bottom: 10px; }
.track .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.steps { display: grid; gap: 0; }
.step { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 14px; color: var(--muted); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step i { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px; z-index: 1; }
.step.done { color: var(--text); } .step.done i { background: var(--ok); color: #fff; } .step.done::before { background: var(--ok); }
.step.now { color: var(--text); font-weight: 700; } .step.now i { background: var(--coral); color: #fff; animation: pulse 1.4s infinite; }
.step small { display: block; font-weight: 400; color: var(--muted); }
.track ul { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); list-style: none; font-size: 14px; }
.track li { display: flex; justify-content: space-between; padding: 2px 0; }

/* ── personál ── */
.staff { background: #f1eee9; }
.s-head { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 12px; }
.s-head h1 { font-size: 21px; } .s-head .who { font-size: 13px; color: #cfc6bd; }
.s-head .sp { flex: 1; }
.s-head button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; min-height: 36px; padding: 0 12px; font-weight: 600; font-size: 13px; }
.s-head .clock { font-family: var(--serif); font-size: 22px; }
.s-tabs { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; }
.s-tabs button { flex: none; border: 0; background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.s-tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }
.s-tabs .n { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 6px; font-size: 12px; }
.s-main { padding: 12px 16px 40px; max-width: 760px; margin: 0 auto; }
.lane-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 2px 8px; display: flex; gap: 8px; align-items: center; }
.task { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin-bottom: 10px; border-left: 5px solid var(--line); }
.task.call { border-left-color: var(--coral); background: #fff6f4; }
.task.pay { border-left-color: var(--blue); background: #f4f7ff; }
.task.ready { border-left-color: var(--ok); background: #f1fbf4; }
.task.new { border-left-color: var(--warn); }
.task.flash { animation: flash 1s 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px rgba(255, 73, 48, .35); } }
.task .top { display: flex; align-items: center; gap: 10px; }
.task .tb { font-family: var(--serif); font-size: 24px; line-height: 1; }
.task .zone { font-size: 12px; color: var(--muted); }
.task .age { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.age.warn { color: var(--warn); } .age.bad { color: var(--bad); }
.task .what { font-weight: 700; margin-top: 6px; }
.task ul { list-style: none; margin: 8px 0 0; padding: 0; }
.task li { padding: 3px 0; display: flex; gap: 8px; } .task li b { min-width: 26px; }
.task li .nt { display: block; color: var(--coral2); font-size: 13px; font-weight: 600; }
.task .note { background: var(--warnbg); border-radius: 10px; padding: 6px 10px; margin-top: 8px; font-size: 14px; }
.task .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.task .acts .btn { flex: 1; min-height: 50px; font-size: 16px; }
.task .acts .btn-ghost { flex: 0 0 auto; }
.task.done { opacity: .6; box-shadow: none; }
.start { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; }
.start img { width: 200px; filter: brightness(0) invert(1); margin-bottom: 24px; }
.start p { color: #cfc6bd; max-width: 380px; margin: 12px auto 24px; }
.pinpad { max-width: 320px; margin: 0 auto; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 22px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9c928a; }
.pin-dots i.on { background: #fff; border-color: #fff; }
.pin-dots.err { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.keys button { height: 72px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; width: 72px; justify-self: center; }
.keys button:active { background: rgba(255, 255, 255, .25); }
.keys .k-none { visibility: hidden; }
.keys .k-del { font-size: 20px; background: transparent; }

/* kuchyně: tmavá, velké písmo, tablet na šířku */
.mode-kuchyne { background: #161414; color: #f2effa; }
.mode-kuchyne .s-head { background: #0c0b0b; }
.mode-kuchyne .s-main { max-width: none; padding: 14px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.k-t { background: #252121; border-radius: 18px; padding: 14px; border-top: 8px solid var(--ok); }
.k-t.warn { border-top-color: #f59e0b; } .k-t.bad { border-top-color: #ef4444; }
.k-t .top { display: flex; align-items: baseline; gap: 10px; }
.k-t .tb { font-family: var(--serif); font-size: 30px; }
.k-t .age { margin-left: auto; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.k-t.warn .age { color: #fbbf24; } .k-t.bad .age { color: #f87171; }
.k-t .meta { font-size: 13px; color: #b2a89f; }
.k-t ul { list-style: none; margin: 12px 0; padding: 0; font-size: 20px; }
.k-t li { padding: 6px 0; border-top: 1px solid #3a3434; display: flex; gap: 10px; }
.k-t li:first-child { border-top: 0; }
.k-t li b { color: #fff; min-width: 34px; }
.k-t li .nt { display: block; color: #ff8a75; font-size: 16px; font-weight: 600; }
.k-t .note { background: #3b2d12; color: #fcd34d; border-radius: 10px; padding: 8px 10px; font-size: 16px; margin-bottom: 10px; }
.k-t .btn { width: 100%; min-height: 64px; font-size: 20px; }
.k-t.flash { animation: flash 1s 3; }
.k-wait { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: #b2a89f; align-items: center; }
.k-wait span { background: #252121; border-radius: 999px; padding: 6px 12px; }
.k-done { margin-top: 22px; color: #b2a89f; font-size: 14px; }
.k-done span { display: inline-block; background: #201d1d; border-radius: 10px; padding: 6px 10px; margin: 4px 6px 0 0; }
.mode-kuchyne .empty { color: #b2a89f; font-size: 20px; padding: 80px 10px; }
.mode-kuchyne .sheet { background: #fff; color: var(--ink); }

/* správa */
.mode-admin .s-main { max-width: 1180px; }
.a-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.a-bar .sp { flex: 1; }
.seg { display: inline-flex; background: var(--card); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--ink); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .v { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-top: 4px; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.hl { background: var(--ink); color: #fff; } .kpi.hl .l, .kpi.hl .s { color: #cfc6bd; }
.panel { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); margin-top: 14px; }
.panel h3 { font-size: 20px; margin-bottom: 4px; }
.panel .hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .panel { margin-top: 0; } }
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 8px; border-radius: 12px; overflow: hidden; min-height: 54px; }
.flow > div { padding: 8px 10px; color: #fff; font-size: 13px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.flow b { font-size: 16px; white-space: nowrap; }
.flow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.f1 { background: #a39588; } .f2 { background: var(--ink); } .f3 { background: var(--coral); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 22px; }
.bars .b i { max-height: calc(100% - 34px); }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; position: relative; }
.bars .b i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--ink); min-height: 2px; }
.bars .b i.warn { background: var(--warn); } .bars .b i.bad { background: var(--coral); }
.bars .b em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bars .b s { text-decoration: none; font-size: 11px; font-weight: 700; position: absolute; top: -2px; white-space: nowrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.week { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .week { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
.day { background: var(--card); border-radius: var(--r); padding: 10px; box-shadow: var(--sh); min-width: 0; }
.day.today-d { box-shadow: inset 0 0 0 2px var(--coral), var(--sh); }
.day h4 { margin: 0 0 6px; font-size: 14px; display: flex; justify-content: space-between; }
.day .di { border-top: 1px solid var(--line); padding: 7px 0; font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.day .di .body { flex: 1; min-width: 0; } .day .di .n { font-weight: 600; line-height: 1.25; }
.day .di .m { color: var(--muted); font-size: 12px; }
.day .di button { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 0 4px; line-height: 1; }
.day .plus { width: 100%; margin-top: 6px; border: 1.5px dashed var(--line); background: none; border-radius: 10px; min-height: 34px; color: var(--muted); font-weight: 600; }
.it-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.it-row:first-child { border-top: 0; }
.it-row .th { width: 46px; height: 46px; border-radius: 10px; background: var(--soft) center/cover; flex: none; display: grid; place-items: center; font-size: 18px; }
.it-row .body { flex: 1; min-width: 0; } .it-row .n { font-weight: 600; } .it-row .m { font-size: 12.5px; color: var(--muted); }
.it-row.off .n { text-decoration: line-through; color: var(--muted); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d8d2c8; transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--ok); } .switch input:checked + i::after { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }
.daypick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.qr-item { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 12px; display: flex; gap: 10px; align-items: center; }
.qr-item .q { width: 64px; flex: none; } .qr-item .q svg { width: 100%; height: auto; display: block; }
.qr-item .body { flex: 1; min-width: 0; }
.qr-item.off { opacity: .45; }
.ph-up { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ph-up .th { width: 96px; height: 96px; border-radius: 14px; background: var(--soft) center/cover; flex: none; }
.print { display: none; }
@media print {
  @page { size: A4; margin: 8mm; }
  body * { visibility: hidden; }
  .print, .print * { visibility: visible; }
  .print { display: grid !important; position: absolute; left: 0; top: 0; width: 100%; grid-template-columns: 1fr 1fr; gap: 6mm; }
  .stand { height: 138mm; border: 1px dashed #bbb; border-radius: 6mm; padding: 10mm 8mm; display: flex; flex-direction: column; align-items: center; text-align: center; break-inside: avoid; font-family: var(--sans); color: #2b254c; }
  .stand img { width: 48mm; } .stand .q { width: 62mm; margin: 6mm 0 4mm; } .stand .q svg { width: 100%; height: auto; }
  .stand h2 { font-size: 26pt; margin-top: 4mm; } .stand p { margin: 1mm 0; font-size: 11pt; }
}
@media (max-width: 480px) { .s-head { gap: 8px; } .s-head .clock { display: none; } .s-head button { padding: 0 10px; } }

/* demo lišta: přepínání rolí bez PINu */
.demobar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 4px; padding: calc(6px + env(safe-area-inset-top)) 6px 6px; background: #b8492c; justify-content: center; }
.demobar a { flex: 1; max-width: 150px; text-align: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 2px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.demobar a.on { background: #fff; color: #231f20; }
body.has-demobar { padding-top: calc(46px + env(safe-area-inset-top)); }
body.has-demobar .g-head, body.has-demobar .s-head { top: calc(46px + env(safe-area-inset-top)); padding-top: 8px; }

.chips.flt{margin:2px 0 6px;position:sticky;top:0;z-index:2;background:var(--cream);padding:6px 0;flex-wrap:nowrap;gap:6px;overflow-x:auto}
.chips.flt .chip{padding:7px 9px;font-size:13.5px;white-space:nowrap;flex:none}
.chip .cnt{display:inline-block;min-width:20px;padding:0 6px;border-radius:999px;background:rgba(0,0,0,.08);font-size:12px;margin-left:4px}
.chip.on .cnt{background:rgba(255,255,255,.25)}

/* rezervace ve správě */
.w-daystrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; max-width: 100%; }
.w-daystrip::-webkit-scrollbar { display: none; }
.w-daystrip button { flex: 0 0 62px; border: 0; background: var(--card); border-radius: 14px; padding: 7px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.15; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.w-daystrip small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.w-daystrip b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.w-daystrip em { font-style: normal; font-size: 11px; color: var(--muted); }
.w-daystrip i { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.w-daystrip .on { background: var(--ink); color: #fff; box-shadow: none; } .w-daystrip .on small, .w-daystrip .on em { color: #d9cfc6; }
.occ { overflow-x: auto; }
.occ-row { display: flex; align-items: center; min-width: 560px; border-top: 1px solid var(--line); height: 34px; }
.occ-row > span { width: 44px; flex: none; font-weight: 700; font-size: 13px; }
.occ-row > span small { font-weight: 400; color: var(--muted); margin-left: 3px; font-size: 11px; }
.occ-row > div { flex: 1; position: relative; height: 100%; }
.occ-row i { position: absolute; top: 5px; bottom: 5px; border-radius: 7px; background: var(--ink); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; cursor: pointer; border: 1px solid #fff; }
.occ-row i.nova { background: var(--warn); } .occ-row i.prisli { background: var(--blue); }
.occ-hd { border-top: 0; height: 20px; } .occ-hd em { position: absolute; font-style: normal; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.task .tb + div { min-width: 0; }
.task a.btn { text-decoration: none; }
.pend .it-row { flex-wrap: wrap; }
.pend .it-row .body { flex: 1 1 calc(100% - 60px); }
@media (max-width: 600px) { .pend .it-row .btn { flex: 1; margin-left: 0; } .pend .it-row .btn:first-of-type { margin-left: 56px; } }

/* rozcestník systému */
.sys-stat { flex: none; width: 170px; background: rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px; text-align: center; }
.sys-stat b { display: block; font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1; color: #fff; }
.sys-stat span { display: block; color: #cfc6bd; margin-top: 6px; }
.sys-stat em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 13px; background: var(--warn); color: #fff; border-radius: 999px; padding: 3px 10px; }
.sys-qr { width: 140px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: inset 0 0 0 1px var(--line); margin: 6px 0 10px; }
.sys-qr svg { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .sys-stat { width: auto; } }

/* chytrý průvodce v hledání */
.tips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 16px; }
.tips > span { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; width: 100%; }
.tips .chip { font-size: 13px; padding: 6px 11px; background: var(--card); }
.smart { background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--sh); margin: 4px 0 16px; border: 1.5px solid var(--line); }
.smart-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.smart-chips span { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.smart-chips span:empty { display: none; }
.smart-note { margin: 6px 2px 10px; font-size: 14px; color: var(--ink2); background: var(--cream); border-radius: 12px; padding: 8px 12px; }
.smart .rows { box-shadow: none; border: 1px solid var(--line); }
.combo { border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px 10px; margin-top: 10px; }
.combo-it { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.combo-it span { font-weight: 600; } .combo-it b { white-space: nowrap; font-weight: 600; }
.combo-ft { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; gap: 10px; }
.combo-ft b { font-size: 17px; }

/* ── plán restaurace ── */
.fl-room { position: relative; width: 100%; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(0,0,0,.03) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(0,0,0,.03) 19px 20px), #fff; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.fl-in { position: absolute; inset: 0; }
.fl-t { position: absolute; background: #efe8de; border: 2px solid #d6cbbb; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; user-select: none; }
.fl-t.round { border-radius: 50%; }
.fl-lbl { line-height: 1.1; font-size: 12px; pointer-events: none; padding: 2px; }
.fl-lbl b { display: block; font-size: 13px; } .fl-lbl small { display: block; color: var(--muted); font-size: 11px; }
.fl-chair { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #d6cbbb; pointer-events: none; }
.fl-t.free { background: #e7f6ec; border-color: #86d19f; } .fl-t.free .fl-chair { background: #86d19f; }
.fl-t.busy { background: #fde8e8; border-color: #f2a3a3; cursor: not-allowed; } .fl-t.busy .fl-chair { background: #f2a3a3; }
.fl-t.small, .fl-t.big, .fl-t.off { opacity: .45; cursor: not-allowed; }
.fl-t.sel { background: var(--ink); border-color: var(--ink); color: #fff; } .fl-t.sel .fl-lbl small { color: #ddd; } .fl-t.sel .fl-chair { background: var(--ink); }
.fl-t.st-open { background: #fff4e5; border-color: #f0b35b; } .fl-t.st-open .fl-chair { background: #f0b35b; }
.fl-t.st-res { background: var(--bluebg); border-color: #8fb0f2; } .fl-t.st-res .fl-chair { background: #8fb0f2; }
.fl-t.st-call { background: #ffe1db; border-color: var(--coral); animation: flash 1s infinite; }
.fl-t.st-pay { background: #e3ecff; border-color: var(--blue); animation: flash 1s infinite; }
.fl-rs { position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 4px; background: var(--ink); cursor: nwse-resize; }
.fl-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 8px 2px; }
.fl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border: 1.5px solid; }
.fl-rooms { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.g-name { font-family: var(--serif); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }

.fl-num { display: none; font-style: normal; font-weight: 700; font-size: 13px; }
.fl-t.tiny .fl-lbl b, .fl-t.tiny .fl-lbl small { display: none; }
.fl-t.tiny .fl-num { display: inline; }
.fl-t.tiny .fl-chair { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.chili { font-size: .85em; letter-spacing: -2px; white-space: nowrap; }
.hitb { display: inline-block; font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 1px 7px; vertical-align: 2px; margin-left: 4px; white-space: nowrap; }
.ai-for { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.combo-it { align-items: center; } .combo-it > span { flex: 1; min-width: 0; } .combo-it > b { margin-right: 4px; } .combo-it .add, .combo-it .stepper { flex: none; transform: scale(.9); }

.infoi { display: inline-block; font-size: .8em; color: var(--muted); font-weight: 400; vertical-align: 1px; }
.detail .comp { margin: 0 2px 6px; line-height: 1.45; }
.detail .comp.muted { color: var(--muted); font-size: 13px; }
.chip.alg { cursor: default; }
.detail .hero { position: relative; }
.detail .hero .ilu { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 10px; }
.row .th { flex: none; width: 58px; height: 58px; border-radius: 12px; background: var(--soft) center/cover; margin-right: 12px; }

/* galerie jídel */
.gal-cu { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding-bottom: 76px; }
.gal-it { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0 0 8px; cursor: pointer; font: inherit; color: inherit; }
.gal-it .gph { display: block; height: 96px; background: var(--soft) center/cover; margin-bottom: 6px; }
.gal-it .n { font-size: 13px; font-weight: 600; line-height: 1.3; padding: 0 8px; }
.gal-it .m { font-size: 12px; color: var(--muted); padding: 2px 8px 0; }
.gal-it .ck { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); color: transparent; display: grid; place-items: center; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gal-it.on { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }
.gal-it.on .ck { background: var(--coral); color: #fff; }
.gal-it.have { opacity: .5; cursor: default; }
.gal-ft { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 0; background: var(--cream); border-top: 1px solid var(--line); margin-top: -64px; }
.gal-ft .sp { flex: 1; }

.g-act { cursor: pointer; }
.g-act.ask { box-shadow: inset 0 0 0 2px var(--coral); }
.g-yn { display: flex; gap: 6px; margin-top: 6px; }
.g-yn button { flex: 1; border: 0; border-radius: 10px; padding: 7px 0; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.g-yn .yes { background: var(--coral); color: #fff; }
.g-yn .no { background: var(--soft); color: var(--text); }
.g-undo { margin-top: 6px; border: 0; background: var(--soft); color: var(--text); border-radius: 10px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.g-actions.one { grid-template-columns: 1fr; }
.g-yn { flex-wrap: wrap; }
.g-yn .yes.ink { background: var(--ink); }
.g-yn .no { flex: 0 0 auto; padding: 7px 12px; }

.demobar { flex-wrap: wrap; }
.demobar .demo-k { flex: 1 0 100%; max-width: 760px; margin-top: 2px; border: 0; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 700; color: #231f20; background: #fff; }
body.has-demobar.has-k { padding-top: calc(84px + env(safe-area-inset-top)); }
body.has-demobar.has-k .g-head, body.has-demobar.has-k .s-head, body.has-demobar.has-k .w-head { top: calc(84px + env(safe-area-inset-top)); }
.g-yn { align-items: center; flex-wrap: nowrap; }
.g-cd { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }

.demobar .demo-k { text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.k-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.k-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px 8px; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; font-size: 14px; color: var(--text); text-align: center; cursor: pointer; }
.k-tile .i { font-size: 32px; line-height: 1; }
.k-tile.on { box-shadow: inset 0 0 0 2.5px var(--coral); background: var(--soft); }
.k-tile:active { transform: scale(.97); }

/* volání obsluhy: jeden nízký řádek */
.g-call { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 8px 6px 10px; border-radius: 16px; background: var(--card); box-shadow: var(--sh); cursor: pointer; margin: 4px 0 14px; }
.g-call .g-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 17px; flex: none; }
.g-call .g-tx { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-call .g-chev { color: var(--muted); font-size: 22px; padding-right: 4px; }
.g-call .g-b { flex: 1; min-height: 38px; border: 0; border-radius: 11px; font: inherit; font-weight: 700; font-size: 15px; color: #fff; background: var(--coral); white-space: nowrap; cursor: pointer; }
.g-call .g-b.ink { background: var(--ink); }
.g-call .g-undo { margin: 0; flex: none; }
.g-call.ask { box-shadow: inset 0 0 0 2px var(--coral), var(--sh); }
.g-call.waiting { box-shadow: inset 0 0 0 2px var(--warn), var(--sh); } .g-call.waiting .g-tx { color: var(--warn); font-weight: 600; }
.g-call.waiting .g-ic { animation: pulse 1.4s infinite; }
.g-call.acked { box-shadow: inset 0 0 0 2px var(--ok), var(--sh); } .g-call.acked .g-tx { color: var(--ok); font-weight: 600; } .g-call.acked .g-ic { background: var(--ok); }
.g-actions.one { display: block; margin: 0; }
/* hlavička hosta: na úzkém displeji jazyky na vlastní řádek, ať se vejde název hospody */
@media (max-width: 520px) {
  .g-top { flex-wrap: wrap; row-gap: 6px; }
  .g-top .langs { order: 3; flex: 1 0 100%; justify-content: space-between; }
  .g-top .langs button { flex: 1; padding: 4px 0; }
  .g-name { max-width: 60vw; }
}

/* skenování rezervace */
.scan-btn { margin: 0 0 10px; }
.scan-cam { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 18px; overflow: hidden; background: #111; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.scan-ok { text-align: center; padding: 10px 0; }
.scan-ok .i { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 10px; }
.scan-ok h3 { font-size: 22px; margin: 0 0 6px; }
.obx-frame { width: 100%; height: 70vh; border: 0; border-radius: 12px; background: #f4f1ec; }
.row.off .n, .row.off .d { opacity: .7; }
#scc::placeholder { text-transform: none; }
.kpi.bad .v { color: var(--bad); }

/* termín objednávky */
.dl-row { font-size: 14px; color: var(--text); background: var(--okbg); border-radius: 10px; padding: 6px 10px; margin: 6px 0 8px; }
.dl-row.late { background: var(--warnbg); color: #8a4b00; }
.dl-main { display: block; width: 100%; border: 0; background: none; padding: 0; margin: 2px 0 0; text-align: left; font: inherit; cursor: pointer; }
.dl-main .dl-row { margin: 0 0 8px; }
.k-dl, .t-dl { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 2px 7px; background: var(--okbg); color: var(--ok); margin-left: 6px; }
.k-dl.late, .t-dl.late { background: var(--badbg); color: var(--bad); }

.hist { margin-bottom: 8px; }
.hist-h { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; color: var(--muted); font-size: 14px; }
.hist-v { margin-bottom: 12px; }
.hist-more > summary { cursor: pointer; color: var(--muted); font-size: 14px; margin: 0 2px 10px; }

/* noční režim podle telefonu (aplikace hosta, obsluha, kuchyně, administrace; web hospody a portál zůstávají světlé) */
@media (prefers-color-scheme: dark) {
  body:not(.web):not(.portal) {
    color-scheme: dark;
    --cream: #14120f; --card: #1f1c18; --soft: #2b2721; --line: #3a342c; --muted: #a79e94; --text: #f2ede6;
    --okbg: #16321f; --warnbg: #3a2a10; --badbg: #3f1b17; --bluebg: #182340;
    --sh: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .35);
    background: var(--cream); color: var(--text);
  }
  body:not(.web):not(.portal) .task.call { background: #2e1c18; }
  body:not(.web):not(.portal) .fl-t.st-open { background: #3a2c14; }
  body:not(.web):not(.portal) .g-tabs button.on, body:not(.web):not(.portal) .s-tabs button.on, body:not(.web):not(.portal) .seg button.on, body:not(.web):not(.portal) .chip.on { background: var(--text); color: var(--cream); }
  body:not(.web):not(.portal) .g-table, body:not(.web):not(.portal) .stepper, body:not(.web):not(.portal) .cartbar .st, body:not(.web):not(.portal) .smart-chips span { background: #3a342c; }
  body:not(.web):not(.portal) .g-head { background: rgba(20, 18, 15, .94); }
  body:not(.web):not(.portal) img.lb { filter: invert(1) hue-rotate(180deg); }
}
.demobar .demo-k { max-width: none; }

/* bonusy personálu */
.bon-chip { display: block; width: calc(100% - 32px); margin: 10px 16px 0; border: 0; border-radius: 12px; background: var(--card); box-shadow: var(--sh); padding: 9px 12px; text-align: left; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.bon-chip span { float: right; color: var(--muted); }
.bon-r { background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.bon-r.met { box-shadow: inset 0 0 0 2px var(--ok); }
.bon-h { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bon-r.met .bon-h span { color: var(--ok); font-weight: 700; }
.bon-bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin-bottom: 4px; }
.bon-bar i { display: block; height: 100%; background: var(--coral); border-radius: 4px; }
.bon-r.met .bon-bar i { background: var(--ok); }
.bon-tbl input { min-height: 34px; padding: 4px 8px; }
.og-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; padding-bottom: 70px; }
.og-it { font-size: 14px; display: flex; gap: 6px; align-items: center; }
#ogt input, #ogt select { min-height: 36px; padding: 4px 8px; }
.pre-banner { background: var(--card); border-radius: 16px; box-shadow: var(--sh); padding: 12px 14px; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 4px; }
.pre-banner span { font-size: 14px; color: var(--muted); }
.k-plan { flex-direction: column; align-items: flex-start; }
.k-plan small { opacity: .75; }
