/* ============================================================
   Kasa — obrazovky a speciální prvky
   ============================================================ */

/* ---------- Dlaždice produktů ---------- */
.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 116px;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer; user-select: none;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.tile:active { transform: scale(.97); }
.tile:hover { border-color: var(--line-2); box-shadow: var(--e1); }
.tile-emoji { font-size: 30px; line-height: 1.2; }
.tile-name {
  font-size: var(--fs-sm); font-weight: 590; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-price { margin-top: auto; font-size: var(--fs-base); font-weight: 660; }
.tile-mods {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--surface-2); color: var(--ink-3);
  display: grid; place-items: center;
}
.tile-mods .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.tile-low {
  position: absolute; top: 10px; right: 10px;
}
.tile-out { opacity: .45; }
.tile-out::after {
  content: "Vyprodáno";
  position: absolute; inset: auto 0 10px 0;
  text-align: center; font-size: 11px; font-weight: 640;
  color: var(--danger);
}

/* ---------- Košík ---------- */
.cart { display: flex; flex-direction: column; min-height: 0; }
.cart-head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.cart-title { font-size: var(--fs-title); font-weight: 660; flex: 1; }
.cart-list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-2) var(--sp-2); }

.cart-item {
  position: relative;
  display: flex; gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-md);
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.cart-item.is-removed { opacity: 0; transform: translateX(24px); }
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-name { font-size: var(--fs-sm); font-weight: 600; }
.cart-item-name small { color: var(--ink-3); font-weight: 500; }
.cart-item-note {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-caption); color: var(--info);
  background: var(--info-soft); border-radius: 6px; padding: 1px 7px;
  margin-top: 2px; cursor: pointer;
}
.cart-item-note .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.cart-item-price { font-size: var(--fs-sm); font-weight: 640; text-align: right; }

.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-2); border-radius: var(--r-full);
  padding: 3px;
}
.stepper button {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
}
.stepper button:active { transform: scale(.92); }
.stepper .qty { min-width: 26px; text-align: center; font-weight: 660; font-size: var(--fs-base); }

.cart-foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.cart-line { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); }
.cart-line b { color: var(--ink); font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total .lbl { font-size: var(--fs-base); font-weight: 600; }
.cart-total .val { font-size: var(--fs-headline); font-weight: 700; letter-spacing: -0.02em; }

.discount-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.discount-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--r-full); padding: 4px 12px;
  font-size: var(--fs-caption); font-weight: 640;
}
html[data-theme="dark"] .discount-tag { color: var(--accent-strong); }
.discount-tag button { border: none; background: none; cursor: pointer; display: grid; place-items: center; color: inherit; padding: 0; }

/* ---------- Platba ---------- */
.pay-total { text-align: center; padding: var(--sp-2) 0 var(--sp-4); }
.pay-total .lbl { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 560; }
.pay-total .val {
  font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.pay-methods { display: grid; grid-template-columns: 3fr; gap: var(--sp-2); }
.pay-methods.seg { display: grid; }
.pay-methods button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }

.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.numpad button {
  min-height: 64px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); font-size: var(--fs-title); font-weight: 620;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.numpad button:active { transform: scale(.96); background: var(--surface-2); }
.cash-given { display: flex; align-items: baseline; justify-content: space-between; padding: var(--sp-3) var(--sp-2); }
.cash-given .lbl { color: var(--ink-2); font-size: var(--fs-sm); }
.cash-given .val { font-size: var(--fs-title); font-weight: 660; }
.change-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--success-soft); color: var(--success);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
}
.change-row .val { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.02em; }

/* Úspěch platby */
.pay-success {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  padding: var(--sp-10) var(--sp-5);
  text-align: center;
}
.success-ring {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--success-soft); color: var(--success);
  display: grid; place-items: center;
  animation: pop-in var(--t-slow) var(--spring);
}
.success-ring .ic { width: 48px; height: 48px; stroke-width: 2.4; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }
.pay-success .amount { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.02em; }
.pay-success .meta { color: var(--ink-2); font-size: var(--fs-sm); }

/* Card/QR zpracování */
.pay-wait { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-8) 0; }
.pay-wait .ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 4px solid var(--accent-soft-2); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.qr-box {
  width: 208px; height: 208px; padding: var(--sp-3);
  background: #fff; border-radius: var(--r-md); border: 1px solid var(--line);
}
.qr-box svg { width: 100%; height: 100%; }

/* ---------- Plánek stolů ---------- */
.zone { margin-bottom: var(--sp-6); }
.zone-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.tables-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.table-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4);
  border: 1.5px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer; user-select: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  min-height: 112px;
}
.table-card:active { transform: scale(.97); }
.table-card:hover { box-shadow: var(--e1); }
.table-name { font-size: var(--fs-title); font-weight: 680; letter-spacing: -0.01em; }
.table-meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption); color: var(--ink-3); white-space: nowrap; }
.table-meta .ic { width: 14px; height: 14px; }
.table-total { margin-top: auto; font-size: var(--fs-base); font-weight: 660; }
.table-age { font-size: var(--fs-caption); color: var(--ink-2); }

.table-card .state-ic { position: absolute; top: var(--sp-3); right: var(--sp-3); color: var(--ink-3); }
.table-card--free { border-left-color: var(--line-2); }
.table-card--free .state-ic { color: var(--ink-3); }
.table-card--busy { border-left-color: var(--info); }
.table-card--busy .state-ic { color: var(--info); }
.table-card--food { border-left-color: var(--warning); }
.table-card--food .state-ic { color: var(--warning); }
.table-card--pay { border-left-color: var(--danger); }
.table-card--pay .state-ic { color: var(--danger); }
.table-card--pay { background: linear-gradient(0deg, var(--danger-soft), var(--surface) 60%); }

/* Stavový řádek v detailu stolu */
.order-status-line { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- Položka objednávky v detailu / split ---------- */
.order-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-md);
}
.order-item + .order-item { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.order-item .qty-badge {
  width: 30px; height: 30px; flex: none;
  border-radius: 10px; background: var(--surface-2);
  display: grid; place-items: center;
  font-size: var(--fs-sm); font-weight: 660;
}
.order-item .qty-badge--sent { background: var(--accent-soft); color: var(--accent); }
html[data-theme="dark"] .order-item .qty-badge--sent { color: var(--accent-strong); }
.order-item-main { flex: 1; min-width: 0; }
.order-item-name { font-size: var(--fs-base); font-weight: 590; }
.order-item-mods { font-size: var(--fs-caption); color: var(--ink-3); }
.order-item-sum { font-weight: 640; font-size: var(--fs-base); }

.sent-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 640; color: var(--success);
}
.sent-tag .ic { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- Numpad & rychlé bankovky ---------- */
.banknote-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.banknote-row .chip { min-height: 48px; }

/* ---------- Účtenka (papír) ---------- */
.receipt-paper {
  background: #fff;
  color: #1c1b18;
  border-radius: var(--r-sm);
  padding: var(--sp-5);
  font-family: ui-monospace, "SF Mono", "Roboto Mono", monospace;
  font-size: 13px; line-height: 1.5;
  max-width: 340px; margin: 0 auto;
  box-shadow: var(--e2);
}
html[data-theme="dark"] .receipt-paper { background: #F6F4EE; }
.receipt-paper .c { text-align: center; }
.receipt-paper .b { font-weight: 700; }
.receipt-paper hr { border: none; border-top: 1px dashed #b9b4a7; margin: 10px 0; }
.receipt-paper .lines > div { display: flex; justify-content: space-between; gap: 10px; }
.receipt-paper .lines .n { flex: 1; }
.receipt-paper .total { font-size: 15px; }
.receipt-paper .storno { color: #B3261E; font-weight: 700; text-transform: uppercase; }

/* ---------- Grafy (čisté, bez os) ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: max(4px, 2%); height: 180px; padding-top: var(--sp-2); }
.chart-bars .bar {
  flex: 1; min-width: 8px;
  border-radius: 8px 8px 4px 4px;
  background: var(--accent-soft-2);
  position: relative;
  transition: height var(--t-slow) var(--spring);
}
.chart-bars .bar.is-max { background: var(--accent); }
.chart-bars .bar:hover { filter: brightness(.96); }
.chart-bars .bar .tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50%;
  background: var(--ink); color: var(--bg);
  font-size: 11px; font-weight: 620; padding: 3px 8px; border-radius: 7px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}
.chart-bars .bar:hover .tip { opacity: 1; }
.chart-x { display: flex; gap: max(4px, 2%); margin-top: var(--sp-2); }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); font-weight: 560; }

.toplist { display: flex; flex-direction: column; gap: var(--sp-3); }
.toplist-row { display: flex; align-items: center; gap: var(--sp-3); }
.toplist-row .rank { width: 22px; font-weight: 680; color: var(--ink-3); }
.toplist-row .name { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplist-row .bar-mini { flex: 1.2; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.toplist-row .bar-mini i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

/* ---------- Sklad ---------- */
.stock-row-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; width: 120px; }
.stock-row-progress i { display: block; height: 100%; border-radius: 3px; background: var(--success); }
.stock-row-progress i.low { background: var(--warning); }
.stock-row-progress i.out { background: var(--danger); }
.restock-btns { display: flex; gap: var(--sp-1); }
.restock-btns button {
  min-width: 46px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-weight: 620; font-size: var(--fs-sm);
  cursor: pointer; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.restock-btns button:active { transform: scale(.95); background: var(--surface-2); }

/* ---------- Kalendář ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-1); }
.cal-dow { text-align: center; font-size: var(--fs-caption); color: var(--ink-3); font-weight: 620; padding: var(--sp-2) 0; }
.cal-day {
  min-height: 64px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  padding: 6px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.cal-day:hover { border-color: var(--line-2); }
.cal-day:active { transform: scale(.97); }
.cal-day.is-today { border-color: var(--accent); color: var(--accent); font-weight: 700; box-shadow: 0 0 0 1px var(--accent); }
.cal-day .dots { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-day .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--sale { background: var(--accent); }
.dot--event { background: var(--info); }
.dot--delivery { background: var(--warning); }
.dot--closed { background: var(--danger); }
.cal-day.is-other { opacity: .35; }

/* ---------- Nastavení / řádky ---------- */
.set-row {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 64px;
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: none; }
.set-row-main { flex: 1; min-width: 0; }
.set-row-title { font-size: var(--fs-base); font-weight: 590; }
.set-row-desc { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Notifikační centrum / rychlý panel ---------- */
.panel {
  position: fixed; z-index: 70;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); right: max(var(--sp-3), env(safe-area-inset-right, 0px));
  width: min(420px, calc(100vw - var(--sp-6)));
  max-height: min(72dvh, 640px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--e3);
  transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none;
  transition: transform var(--t-med) var(--spring), opacity var(--t-fast) var(--ease);
}
.panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.panel-head { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5) var(--sp-2); }
.panel-body { overflow-y: auto; padding: var(--sp-2) var(--sp-3) var(--sp-4); }

.notif-row {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3);
  border-radius: var(--r-md);
}
.notif-row.is-unread { background: var(--accent-soft); }
.notif-row .nic {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--ink-2);
}
.notif-row.is-unread .nic { background: var(--surface); color: var(--accent); }
.notif-title { font-size: var(--fs-sm); font-weight: 620; }
.notif-body { font-size: var(--fs-sm); color: var(--ink-2); }
.notif-time { font-size: 11px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }

/* Rychlý panel */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding: var(--sp-2); }
.quick-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
  font-size: var(--fs-sm); font-weight: 600; text-align: left;
}
.quick-tile:active { transform: scale(.97); }
.quick-tile .ic { color: var(--ink-2); }
.quick-tile[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; }
.quick-tile[aria-pressed="true"] .ic { color: var(--accent); }
html[data-theme="dark"] .quick-tile[aria-pressed="true"] .ic { color: var(--accent-strong); }
.bright-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) var(--sp-2); color: var(--ink-2); }
.bright-row input[type="range"] { flex: 1; accent-color: var(--accent); height: 32px; }

/* ---------- Zámek (PIN) ---------- */
.lock {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-6);
  background: var(--bg);
  animation: lock-in var(--t-slow) var(--ease);
}
@keyframes lock-in { from { opacity: 0; } }
.lock-clock { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lock-sub { color: var(--ink-2); font-size: var(--fs-base); }
.lock-pin { display: flex; gap: var(--sp-3); }
.lock-pin i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-2);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.lock-pin i.filled { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.lock-pin.is-error i { border-color: var(--danger); }
.lock-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: var(--sp-3); }
.lock-pad button {
  height: 76px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-title); font-weight: 620; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.lock-pad button:active { transform: scale(.94); background: var(--surface-2); }
.lock-waiters { display: flex; gap: var(--sp-3); }
.lock-waiters button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer;
  font-size: var(--fs-caption); color: var(--ink-2); font-weight: 580;
}
.lock-waiters .avatar { transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease); }
.lock-waiters button[aria-pressed="true"] .avatar { box-shadow: 0 0 0 3px var(--accent-soft-2); transform: scale(1.06); }

/* ---------- Pull-to-refresh ---------- */
#ptr {
  position: fixed; z-index: 30;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 6px); left: 50%; translate: -50% -130px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--e2);
  display: grid; place-items: center; color: var(--accent);
  transition: translate var(--t-med) var(--spring);
  pointer-events: none;
}
#ptr.spin .ic { animation: spin .9s linear infinite; }
@media (min-width: 601px) { #ptr { display: none; } }

/* ---------- Rozdělení účtu ---------- */
.split-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.split-toggle button {
  min-height: 56px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  transition: transform var(--t-fast) var(--ease);
}
.split-toggle button:active { transform: scale(.97); }
.split-toggle button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.check-line {
  width: 26px; height: 26px; border-radius: 9px;
  border: 2px solid var(--line-2); flex: none;
  display: grid; place-items: center; color: transparent;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.check-line[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check-line .ic { width: 16px; height: 16px; stroke-width: 3; }

/* ---------- Let produktu do košíku ---------- */
.fly-clone {
  position: fixed; z-index: 95;
  display: grid; place-items: center;
  font-size: 30px;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ---------- Plovoucí lišta košíku (mobilní objednávka) ---------- */
.cartbar {
  position: fixed; z-index: 35;
  left: max(var(--sp-4), env(safe-area-inset-left, 0px));
  right: max(var(--sp-4), env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h) + var(--sp-3));
  height: 62px;
  border-radius: var(--r-full);
  background: var(--ink); color: var(--bg);
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-5);
  box-shadow: var(--e3);
  transition: transform var(--t-fast) var(--ease);
}
.cartbar:active { transform: scale(.98); }
.cartbar .ic { color: inherit; }
@media (min-width: 601px) { .cartbar { display: none !important; } }

/* ---------- Live activity lišta (nahoře) ---------- */
.live-activity {
  position: fixed; z-index: 80;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + var(--sp-2));
  left: 50%; translate: -50% -80px;
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 52px; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  color: var(--bg);
  box-shadow: var(--e3);
  font-size: var(--fs-sm); font-weight: 590;
  transition: translate var(--t-slow) var(--spring);
  max-width: min(92vw, 560px);
}
.live-activity.is-in { translate: -50% 0; }
.live-activity .ic { color: var(--accent-strong); }
html[data-theme="dark"] .live-activity .ic { color: var(--accent); }

/* ---------- Více (mobil) ---------- */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.more-tile {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  text-align: left;
}
.more-tile:active { transform: scale(.97); }
.more-tile .ic { color: var(--accent); }
html[data-theme="dark"] .more-tile .ic { color: var(--accent-strong); }
.more-tile .t { font-weight: 620; font-size: var(--fs-base); }
.more-tile .d { font-size: var(--fs-caption); color: var(--ink-3); }

/* ---------- Tisk ---------- */
@media print {
  body * { visibility: hidden; }
  #print-root, #print-root * { visibility: visible; }
  #print-root { position: fixed; inset: 0; display: grid; place-items: center; }
}
#print-root { display: none; }
