:root {
  --ink: #1b2a35; --bg: #f2f1ee; --surface: #fff; --panel: #e8e8e5; --n100: #f7f6f4; --n300: #d4d5d2; --n500: #979a99;
  --rule: var(--n300); --rule-strong: var(--ink);
  --accent: #14618f; --accent-600: #0f5580; --accent-700: #0b4364; --accent-100: #eaf3f9; --accent-200: #cfe3ef; --accent-400: #6ba6c9;
  --muted: #5c6163; --n800: #414749; --sun: #f0a830; --sun-ink: #9a6100; --sun-100: #fdf1dc; --leaf: #5e8f47; --leaf-100: #e7f0e1; --red: #b3261e; --red-100: #fbe9e7;
  --font: "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.big { zoom: 1.15; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-700); text-decoration: underline; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; } h2 { font-size: 20px; } h3 { font-size: 16px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawer { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7 } 100% { transform: scale(2.6); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.rise { animation: rise .5s ease both; }

/* ── hlavička (počítač) ── */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 8px; padding: 0 24px; min-height: 68px; }
.top .brand { display: flex; align-items: center; gap: 12px; margin-right: 20px; color: var(--ink); text-decoration: none; }
.top .brand img { height: 44px; width: auto; mix-blend-mode: multiply; }
.top .brand span { font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.top .brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.top nav { display: flex; gap: 2px; flex: 1; align-self: stretch; }
.top nav a { border-bottom: 4px solid transparent; color: var(--ink); padding: 0 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; text-decoration: none; transition: color .2s ease, border-color .25s ease, background .2s ease; }
.top nav a:hover { background: var(--accent-100); color: var(--ink); }
.top nav a.on { border-bottom-color: var(--sun); color: var(--accent); }
.badge { background: var(--sun); color: var(--ink); font-size: 12px; padding: 1px 7px; animation: fade .4s ease both; font-weight: 800; }
.toplink { font-size: 14px; font-weight: 700; color: var(--ink); padding: 8px 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.toplink:hover { color: var(--accent); text-decoration: none; }
.toplink.on { color: var(--accent); }
.topbtn { appearance: none; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); background: transparent; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.topbtn:hover { background: var(--panel); }

/* ── hlavička a lišta (mobil) ── */
.mtop, .mnav { display: none; }
@media (max-width: 719px) {
  .top { display: none; }
  .mtop { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
  .mtop img { height: 38px; width: auto; mix-blend-mode: multiply; }
  .mtop .t { font-weight: 800; font-size: 17px; flex: 1; }
  .mtop .gear { color: var(--ink); padding: 8px; display: flex; }
  .mtop .new { background: var(--sun); color: var(--ink); padding: 10px 14px; min-height: 44px; font-weight: 800; font-size: 14px; display: flex; align-items: center; text-decoration: none; }
  .mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
  .mnav a { border-top: 4px solid transparent; color: var(--ink); padding: 8px 4px 10px; min-height: 60px; display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 11px; position: relative; text-decoration: none; transition: color .2s ease, border-color .25s ease; }
  .mnav a.on { border-top-color: var(--accent); color: var(--accent); }
  .mnav .badge { position: absolute; top: 6px; left: calc(50% + 8px); font-size: 11px; padding: 0 5px; line-height: 16px; }
  .mnav svg.ic { width: 22px; height: 22px; }
}

main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; }
@media (max-width: 719px) { main { padding: 16px 14px 100px; } }

/* ── obecné komponenty ── */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead p { margin: 4px 0 0; color: var(--muted); }
.kicker { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); font-weight: 700; }
.lbl { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px; padding: 0 16px; min-height: 44px; text-decoration: none; white-space: nowrap; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { background: var(--panel); text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 0 var(--sun); }
.btn.big { min-height: 56px; font-size: 18px; padding: 0 22px; }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 8px; min-height: 36px; }
.btn.ghost:hover { background: var(--accent-100); }
.btn.danger { color: var(--red); border-color: var(--red); background: transparent; }
.btn.danger:hover { background: var(--red-100); }
.btn.sm { font-size: 13px; padding: 0 10px; min-height: 34px; border-width: 1px; }
.btn.thin { border-width: 1px; border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.card { background: var(--surface); border: 2px solid var(--ink); padding: 18px 22px; min-width: 0; }
.card > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card > h2 small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card.flush { padding: 0; }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 2px solid var(--ink); }
.stat { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.statlbl { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 700; }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.hint { color: var(--muted); font-size: 14px; }
.banner { padding: 14px 18px; border: 2px solid var(--sun); background: var(--sun-100); margin-bottom: 16px; font-size: 15px; }
.banner.red { border-color: var(--red); background: var(--red-100); }
.banner.blue { border-color: var(--accent); background: var(--accent-100); }
.banner.green { border-color: var(--leaf); background: var(--leaf-100); }

.list { display: grid; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); color: inherit; align-items: center; }
.item:last-child { border-bottom: 0; }
.item b { font-weight: 800; }
.item .sub { color: var(--muted); font-size: 14px; }
.item .rt { text-align: right; font-variant-numeric: tabular-nums; }

.pill, .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; white-space: nowrap; vertical-align: middle; }
.st-poptavka { background: var(--sun); color: var(--ink); }
.st-potvrzeno { background: var(--accent-200); color: var(--accent-700); }
.st-zaplaceno { background: var(--accent); color: #fff; }
.st-predano { background: var(--leaf); color: #fff; }
.st-ukonceno { background: var(--n300); color: var(--n800); }
.st-zruseno { background: var(--red-100); color: var(--red); }
.st-blokace { background: var(--ink); color: #fff; }

table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tabs, .seg { display: flex; flex-wrap: wrap; border: 2px solid var(--ink); background: var(--surface); width: fit-content; max-width: 100%; }
.tabs button, .seg button { appearance: none; border: 0; background: transparent; padding: 0 16px; min-height: 44px; cursor: pointer; font-weight: 800; font-size: 14px; transition: background .2s ease; }
.tabs button.on, .seg button.on { background: var(--accent); color: #fff; }
.seg.dark button.on { background: var(--ink); }
.tabs button:not(.on):hover, .seg button:not(.on):hover { background: var(--accent-100); }

label.f { display: grid; gap: 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; min-width: 0; }
.in { width: 100%; min-width: 0; border: 2px solid var(--ink); background: #fff; padding: 0 12px; min-height: 48px; font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; border-radius: 0; }
.in.lg { min-height: 52px; font-size: 18px; }
textarea.in { min-height: 90px; padding: 10px 12px; resize: vertical; }
select.in { padding-right: 8px; }
.in:focus-visible { border-color: var(--accent); outline: 3px solid var(--accent-200); outline-offset: 0; }
.fg { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fg .full { grid-column: 1 / -1; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.sep { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }

.sumtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.sumtable td { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.sumtable td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sumtable tr.tot td { font-weight: 800; font-size: 17px; border-top: 2px solid var(--ink); border-bottom: 0; }
.money-ok { color: var(--leaf); font-weight: 800; }
.money-due { color: var(--red); font-weight: 800; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.flow span { border-top: 5px solid var(--n300); padding-top: 6px; font-size: 11px; line-height: 1.2; font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; min-width: 0; color: var(--n500); transition: border-color .4s ease; }
.flow span.done { border-top-color: var(--accent); color: var(--ink); }
.flow span.now { border-top-color: var(--sun); color: var(--ink); }
.steps { display: flex; margin: 4px 0 16px; }

.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.doc { appearance: none; border: 2px solid var(--ink); background: var(--surface); text-align: left; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; color: var(--ink); position: relative; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.doc:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 0 var(--sun); text-decoration: none; color: var(--ink); }
.doc b { font-weight: 800; font-size: 14px; line-height: 1.25; }
.doc span { font-size: 12px; color: var(--muted); }
.doc.now { background: var(--sun-100); border-color: var(--sun); }
.doc .nowtag { position: absolute; top: -9px; right: 8px; background: var(--sun); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; }

/* ── Přehled ── */
.dash { display: grid; gap: 20px; }
.statusrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border: 2px solid var(--ink); background: var(--surface); }
.statusrow .now { padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; }
.dot { position: relative; width: 14px; height: 14px; flex: none; margin-top: 8px; }
.dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--c, var(--accent)); }
.dot i:first-child { animation: ping 1.8s ease-out infinite; }
.statusrow .big { padding: 22px 24px; border-left: 2px solid var(--ink); background: var(--accent); color: #fff; display: flex; align-items: center; gap: 18px; }
@media (max-width: 719px) { .statusrow .big { border-left: 0; border-top: 2px solid var(--ink); } }
.statusrow .big .n { font-weight: 800; font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.statusrow .big .u { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 700; display: block; }
.statusrow .big .x { font-weight: 800; font-size: 18px; line-height: 1.25; display: block; }
.statusrow .ttl { font-weight: 800; font-size: 24px; line-height: 1.2; margin: 4px 0 6px; }
.call { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; font-size: 16px; }

.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--n300); transition: opacity .4s ease, transform .45s cubic-bezier(.4,0,.2,1); animation: rise .45s ease both; }
.task:last-child { border-bottom: 0; }
.task.leaving { opacity: 0; transform: translateX(60px); }
.task .ttl { font-weight: 800; font-size: 18px; line-height: 1.3; margin: 6px 0 0; }
.task .sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.task .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .task { grid-template-columns: 1fr; } .task .acts { justify-content: flex-start; } }
.alldone { padding: 32px 24px; display: flex; align-items: center; gap: 16px; }
.alldone .ok { width: 48px; height: 48px; background: var(--leaf); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

.statstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.statstrip > div { background: var(--surface); padding: 18px 20px; }

.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 200px; border-bottom: 2px solid var(--ink); }
.bars .col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; }
.bars .v { font-weight: 800; font-size: 11px; text-align: center; color: var(--n800); white-space: nowrap; animation: fade .4s ease both; }
.bars .b { background: var(--accent-400); transform-origin: bottom; animation: growY .8s cubic-bezier(.2,.7,.2,1) both; transition: background .2s ease; min-height: 2px; }
.bars .b.max { background: var(--accent); }
.bars .b:hover { background: var(--sun); }
.barlbl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.barlbl span { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); text-align: center; }
.barlbl span.cur, .occ .m.cur { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
@media (max-width: 500px) { .bars .v { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; } .bars, .barlbl { gap: 3px; } }
.occ { display: grid; gap: 8px; }
.occ .row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.occ .m { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.occ .track { height: 16px; background: var(--panel); position: relative; overflow: hidden; }
.occ .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); transform-origin: left; animation: growX .9s cubic-bezier(.2,.7,.2,1) both; }
.occ .fill.hi { background: var(--sun); }
.occ .p { font-weight: 800; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }

.uprow { appearance: none; border: 0; border-bottom: 1px solid var(--n300); background: transparent; width: 100%; text-align: left; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 24px; cursor: pointer; color: var(--ink); transition: background .2s ease; }
.uprow:last-child { border-bottom: 0; }
.uprow:hover { background: var(--accent-100); }
.datebox { display: grid; text-align: center; border: 2px solid var(--ink); line-height: 1.1; padding: 4px 0; }
.datebox b { font-weight: 800; font-size: 22px; }
.datebox span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.datebox.dark { background: var(--ink); color: #fff; border-color: var(--ink); padding: 6px 0; }
.datebox.dark span { color: #fff; }
.uprow .t { display: block; font-weight: 800; font-size: 16px; }
.uprow .s { display: block; font-size: 14px; color: var(--muted); }
.nyc { background: var(--sun-100); border: 2px solid var(--ink); padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.nyc .k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-ink); font-weight: 800; }
.nyc .t { font-weight: 800; font-size: 24px; line-height: 1.25; margin: 0; }

/* ── Kalendář ── */
.calbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sq { appearance: none; border: 2px solid var(--ink); background: var(--surface); width: 48px; height: 48px; cursor: pointer; font-size: 20px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sq:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
.calbar h1 { min-width: 200px; text-align: center; }
.calbar .sum { margin-left: auto; font-size: 15px; color: var(--n800); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.legend i { width: 14px; height: 14px; display: block; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-top: 2px solid var(--ink); background: var(--surface); }
.mcal .dh { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px; border-right: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-bottom: 2px solid var(--ink); background: var(--n100); }
.mcal .c { min-height: 104px; border-right: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); padding: 6px 0 8px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .2s ease; animation: fade .35s ease both; min-width: 0; }
.mcal .c:hover { background: var(--accent-100); }
.mcal .c.out { background: var(--n100); color: var(--n500); cursor: default; }
.mcal .n { align-self: flex-start; margin-left: 6px; font-weight: 800; font-size: 14px; padding: 0 6px; }
.mcal .c.today .n { background: var(--ink); color: #fff; }
.mcal .bar { appearance: none; border: 0; text-align: left; padding: 3px 6px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: filter .2s ease; min-width: 0; }
.mcal .bar:hover { filter: brightness(1.12); }
.mcal .bar.s { margin-left: 6px; } .mcal .bar.e { margin-right: 6px; }
@media (max-width: 719px) { .mcal .c { min-height: 64px; } .mcal .bar { font-size: 10px; padding: 2px 3px; } .calbar h1 { min-width: 0; flex: 1; font-size: 22px; } .calbar .sum { margin-left: 0; flex-basis: 100%; } }

/* ── Rezervace ── */
.search { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); background: var(--surface); padding: 0 12px; min-height: 48px; width: min(100%, 340px); }
.search input { border: 0; outline: 0; background: transparent; font-size: 16px; flex: 1; min-width: 0; }
.rcards { display: grid; gap: 10px; }
.rcard { appearance: none; border: 2px solid var(--ink); background: var(--surface); text-align: left; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; cursor: pointer; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; animation: rise .4s ease both; width: 100%; }
.rcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 0 var(--sun); }
.rcard .nm { font-weight: 800; font-size: 18px; }
.rcard .sub { font-size: 14px; color: var(--muted); display: block; }
.rcard .pr { text-align: right; display: grid; gap: 2px; }
.rcard .pr b { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.rcard .pr span { font-size: 13px; font-weight: 700; }
@media (max-width: 560px) { .rcard { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; } .rcard .pr { grid-column: 2; text-align: left; } }
.emptybox { margin: 0; padding: 24px; border: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); color: var(--muted); text-align: center; }

/* ── Nová rezervace ── */
.wiz { max-width: 760px; display: grid; gap: 20px; }
.wsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.wsteps button { appearance: none; border: 0; border-top: 5px solid var(--n300); background: transparent; text-align: left; padding: 8px 0 0; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--n500); transition: border-color .3s ease, color .3s ease; }
.wsteps button.done { border-top-color: var(--accent); color: var(--ink); }
.wsteps button.now { border-top-color: var(--sun); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { appearance: none; border: 2px solid var(--ink); background: var(--surface); min-width: 52px; height: 52px; cursor: pointer; font-weight: 800; font-size: 17px; padding: 0 12px; transition: background .2s ease, transform .15s ease; }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--ink); }
.chip.dark.on { background: var(--ink); }
.chip.txt { font-size: 15px; height: 48px; }
.rangebox { border: 2px solid var(--ink); background: var(--surface); padding: 20px 24px; display: grid; gap: 6px; }
.rangebox .r { font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 0; }
.msgbox { padding: 14px 18px; border: 2px solid; animation: rise .35s ease both; }
.msgbox.red { background: var(--red-100); border-color: var(--red); }
.msgbox.red b { color: var(--red); }
.msgbox.green { background: var(--leaf-100); border-color: var(--leaf); display: flex; align-items: center; gap: 12px; font-weight: 800; }
.msgbox.sun { background: var(--sun-100); border-color: var(--sun); font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.tiles > div { background: var(--surface); padding: 14px 18px; }
.tiles > div.a { background: var(--accent); color: #fff; }
.tiles .k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.tiles .v { margin: 2px 0 0; font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.sumlist { border: 2px solid var(--ink); background: var(--surface); }
.sumlist > div { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--n300); }
.sumlist > div span:last-child { font-weight: 700; font-size: 17px; }
.sumlist p { margin: 0; padding: 14px 20px; font-size: 15px; color: var(--muted); }
.wnav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding-top: 4px; }

/* ── Vysouvací detail ── */
.dback { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--ink) 55%, transparent); animation: fade .25s ease both; display: flex; justify-content: flex-end; align-items: stretch; }
.drawer { background: var(--bg); width: min(480px, 100%); height: 100%; overflow: auto; border-left: 2px solid var(--ink); animation: drawer .35s cubic-bezier(.2,.7,.2,1) both; display: flex; flex-direction: column; }
@media (max-width: 719px) {
  .dback { justify-content: center; align-items: flex-end; }
  .drawer { width: min(480px, 100%); height: auto; max-height: 88vh; border-left: 0; border-top: 2px solid var(--ink); animation: sheet .35s cubic-bezier(.2,.7,.2,1) both; }
}
.drawer .dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 2px solid var(--ink); background: var(--surface); position: sticky; top: 0; z-index: 1; }
.drawer .dh h2 { font-size: 26px; margin: 8px 0 4px; }
.drawer .dh p { margin: 0; color: var(--n800); }
.xbtn { appearance: none; border: 2px solid var(--ink); background: transparent; width: 44px; height: 44px; flex: none; cursor: pointer; font-size: 22px; line-height: 1; }
.xbtn:hover { background: var(--ink); color: #fff; }
.drawer .db { padding: 20px 24px 28px; display: grid; gap: 18px; }
.rows { border: 2px solid var(--ink); background: var(--surface); }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--n300); }
.rows > div:last-child { border-bottom: 0; }
.rows span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.custmsg { background: var(--accent-100); border: 2px solid var(--accent); padding: 14px 16px; }
.custmsg .lbl { color: var(--accent-700); font-size: 12px; display: block; margin-bottom: 4px; }

/* ── dialog, toast, přihlášení ── */
.dlg-back { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--ink) 55%, transparent); display: grid; place-items: center; padding: 16px; animation: fade .2s ease both; }
.dlg { background: var(--bg); width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 22px 24px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 0 var(--sun); animation: rise .3s ease both; }
.dlg h2 { margin-bottom: 14px; font-size: 22px; }
.dlg .btnrow { justify-content: flex-end; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; box-shadow: 5px 5px 0 0 var(--sun); max-width: calc(100% - 32px); animation: toastIn .35s cubic-bezier(.2,.7,.2,1) both; }
.toast svg { stroke: var(--sun); }
.toast.err { background: var(--red); box-shadow: 5px 5px 0 0 var(--ink); }
.toast.err svg { stroke: #fff; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login form { background: var(--surface); width: min(400px, 100%); padding: 28px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 0 var(--sun); display: grid; gap: 16px; }
.login img { width: 120px; justify-self: center; mix-blend-mode: multiply; }

.edit-rows { display: grid; gap: 8px; }
.edit-row { display: grid; gap: 8px; align-items: end; }
@media (max-width: 640px) { .edit-row { grid-template-columns: 1fr 1fr !important; } .edit-row > label:first-child { grid-column: 1 / -1; } }
.log { font-size: 14px; color: var(--muted); display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.log div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.log div span:last-child { color: var(--ink); }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 2px solid var(--ink); display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; z-index: 5; }
@media (max-width: 719px) { .sticky-save { bottom: 62px; } }
@media (max-width: 719px) { .dash .pagehead .btn.big { display: none !important; } }
.statstrip .stat { font-size: clamp(22px, 5.6vw, 32px); }
.statstrip > div { min-width: 0; }

/* Rezervace z jiných portálů (Campiri…) */
.srctag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; margin-left: 6px; border: 1.5px solid currentColor; color: #7a4fb0; vertical-align: middle; white-space: nowrap; }
