/* MyResult Rent. Barvy a písmo jako www.myresult.cz: černý pruh se značkou, bílé plochy na světle
   šedé, žlutá jen pro hlavní akce, aktivní kroky a cenovku. Nadpisy a čísla Oxanium, text Cabin. */
:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --field: #ffffff;
  --ink: #111827;
  --muted: #5f6672;
  --line: #e5e7eb;
  --brand: #fbd106;
  --brand-strong: #ffc800;
  --brand-soft: #fff6c2;
  --on-brand: #111111;
  --band: #000000;
  --on-band: #ffffff;
  --on-band-muted: rgba(255, 255, 255, .72);
  --focus: #111827;
  --ok: #1f7a45;
  --ok-soft: #e4f4e8;
  --warn: #8a5a00;
  --warn-soft: #fff1c7;
  --bad: #b42318;
  --bad-soft: #fee4e2;
  --st-ok: #1f9d55;
  --st-warn: #ea7a00;
  --st-bad: #d92d20;
  --info: #1d4e89;
  --info-soft: #e3edf9;
  --display: "Oxanium", "Cabin", system-ui, sans-serif;
  --body: "Cabin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Oxanium", ui-monospace, Menlo, monospace; /* kódy, čísla závodů a sériová čísla */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012; --panel: #18191c; --field: #141518; --ink: #f3f4f6; --muted: #a3a8b2; --line: #2c2e33;
    --brand-soft: #3a3210; --band: #000000; --focus: #fbd106;
    --ok: #62c98e; --ok-soft: #16301f; --warn: #f0c15a; --warn-soft: #3a2f12; --bad: #ff8f84; --bad-soft: #3b1815; --info: #8fb8ee; --info-soft: #172739;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; margin-top: 6px; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { padding-block: 26px 64px; display: grid; gap: 18px; align-content: start; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; font-style: normal; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.big { font-size: 22px; font-weight: 600; }
.nowrap { white-space: nowrap; }
.eyebrow { font: 600 13.5px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 6px; }

/* hlavička */
.band { background: var(--band); color: var(--on-band); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo { height: 30px; width: auto; }
.brand span { font: 700 21px/1 var(--display); display: grid; gap: 3px; }
.brand small { font: 500 12px/1 var(--body); color: var(--on-band-muted); }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; flex: 1; min-width: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.nav a { text-decoration: none; padding: 7px 11px; border-radius: 7px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .1); }
.nav a.active { background: var(--brand); color: var(--on-brand); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.who span { opacity: .8; }
.who .link { color: var(--on-band); }
.menu-toggle { display: none; }
/* Další ▾ v menu MyResultu: Znalostní báze, Pošta, Historie, Fakturace. */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; padding: 7px 11px; border-radius: 7px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: 11px; }
.nav-more summary:hover { background: rgba(255, 255, 255, .1); }
.nav-more.active summary { background: var(--brand); color: var(--on-brand); }
.nav-more-panel { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; min-width: 190px; display: grid; gap: 2px; padding: 6px; background: var(--band); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
/* Úzká obrazovka: značka a tlačítko Menu v jednom řádku, odkazy pod sebou až po rozbalení. */
@media (max-width: 960px) {
  .band-row { flex-wrap: wrap; gap: 10px; }
  .menu-toggle { display: inline-flex; margin-left: auto; min-height: 40px; padding: 0 12px; gap: 8px; background: transparent; color: var(--on-band); border: 1px solid rgba(255, 255, 255, .35); font-size: 14px; }
  .js .menu-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
  .menu { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 4px; }
  .js .menu { display: none; }
  .js .band.open .menu { display: flex; }
  .nav { flex-direction: column; gap: 2px; }
  .nav a { padding: 11px 12px; font-size: 15.5px; }
  .who { justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 12px; font-size: 14px; }
  .nav-more summary { padding: 11px 12px; font-size: 15.5px; }
  .nav-more-panel { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}

/* rozvržení */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.head > div { display: grid; gap: 4px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 14px; min-width: 0; align-content: start; grid-template-columns: minmax(0, 1fr); }
/* Karta v kartě nemá vlastní rámeček, jen šedý podklad. */
.card .card { background: var(--bg); border-color: transparent; }
.card.note { border-color: var(--warn); background: var(--warn-soft); }
.card.note.bad { border-color: var(--bad); background: var(--bad-soft); }
.card.ok-card { border-color: var(--ok); }
/* Co teď: hlavní akce v černém panelu jako kontakt na úvodu; tokeny uvnitř jsou přepnuté na tmavé. */
.card.action { --panel: #000; --field: #17181b; --ink: #fff; --muted: rgba(255, 255, 255, .72); --line: rgba(255, 255, 255, .18); --ok: #62c98e; --ok-soft: #16301f; --warn: #f0c15a; --warn-soft: #3a2f12; --bad: #ff8f84; --bad-soft: #3b1815; --info: #8fb8ee; --info-soft: #172739; --focus: var(--brand); color: var(--ink); border-color: var(--panel); color-scheme: dark; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 860px) { .cols, .split { grid-template-columns: minmax(0, 1fr); } }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid2 .full { grid-column: 1 / -1; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 12px; }
.row-end { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 14px; }
.row-end .muted { flex: 1 1 260px; font-size: 13.5px; }
.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.inline.tight { flex-wrap: nowrap; }
.inline.tight input { width: 90px; }
.scroll { overflow-x: auto; }

/* formuláře */
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field > span { font: 600 13.5px/1.25 var(--body); color: var(--ink); }
.field.grow { flex: 1 1 200px; }
.field.small { flex: 0 1 130px; }
.field.tiny { flex: 0 1 82px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 8px 11px; font: 15px/1.4 var(--body); color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 72px; resize: vertical; }
/* Pole a rozbalovací seznamy mají v jednom řádku stejnou výšku; šipku seznamu kreslí stránka, ne prohlížeč. */
input, select { height: 42px; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8473' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; cursor: pointer; }
.inline > button, .inline > .button { height: 42px; }
/* Fokus: tmavý rámeček na světlé ploše, žlutý na černé (hlavička, úvod, patička). */
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.band, .hero-band, .contact-panel { --focus: var(--brand); }
[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-soft); }
.err { color: var(--bad); font-size: 13px; font-style: normal; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--brand); }
.radios { display: grid; gap: 8px; }

/* tlačítka */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 14.5px/1 var(--body); border-radius: 8px; min-height: 42px; padding: 0 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.primary:disabled, .secondary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.secondary.danger { color: var(--bad); border-color: var(--bad); }
.link { background: none; border: 0; padding: 0; min-height: 0; font: 600 14px/1.4 var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; justify-content: flex-start; }
.link.danger { color: var(--bad); }

/* zprávy a stavy */
.flash { border-radius: 8px; padding: 12px 16px; border: 1px solid; font-weight: 500; }
.flash.ok { background: var(--ok-soft); border-color: var(--ok); }
.flash.warn { background: var(--warn-soft); border-color: var(--warn); }
.flash.bad { background: var(--bad-soft); border-color: var(--bad); }
.badge { display: inline-block; font: 600 12.5px/1 var(--body); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: var(--bg); color: var(--muted); }
.ok-line { color: var(--ok); font-weight: 500; }
.bad-line { color: var(--bad); font-weight: 500; }
.note-inline { background: var(--info-soft); padding: 10px 12px; border-radius: 8px; }
.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 8px; justify-items: start; background: var(--panel); }

/* tabulky */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
@media (max-width: 600px) { table.grid { display: block; overflow-x: auto; } .card { padding: 16px; } }
.grid th { text-align: left; font: 600 13px/1.25 var(--body); color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid tfoot td { border-bottom: 0; border-top: 1px solid var(--line); }
.grid tfoot tr.grand td { font-weight: 700; font-size: 16px; }
/* Žádosti na mobilu (Žádosti o zápůjčku): každá žádost jako blok – číslo a stav, akce, pořadatel a termín, záloha a RaceID. */
@media (max-width: 700px) {
  table.grid.requests, table.grid.requests tbody { display: block; overflow: visible; }
  table.grid.requests thead { display: none; }
  table.grid.requests tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no status" "event event" "org date" "paid race"; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.grid.requests tbody tr:last-child { border-bottom: 0; }
  table.grid.requests td { padding: 0; border: 0; }
  .requests .c-no { grid-area: no; }
  .requests .c-status { grid-area: status; text-align: right; }
  .requests .c-event { grid-area: event; font-weight: 600; }
  .requests .c-org { grid-area: org; color: var(--muted); }
  .requests .c-date { grid-area: date; text-align: right; color: var(--muted); }
  .requests .c-paid { grid-area: paid; }
  .requests .c-race { grid-area: race; text-align: right; }
  .requests td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 13px; }
}
/* Ceny na mobilu (price_table): položka přes celou šířku, pod ní množství × cena a vpravo celkem, nic se neusekne. */
@media (max-width: 600px) {
  table.grid.lines { display: block; overflow: visible; }
  table.grid.lines thead { display: none; }
  table.grid.lines tbody, table.grid.lines tfoot { display: block; }
  table.grid.lines tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.grid.lines td { padding: 0; border: 0; }
  table.grid.lines tbody td:first-child { flex: 1 1 100%; }
  table.grid.lines tbody td:nth-child(2), table.grid.lines tbody td:nth-child(3) { color: var(--muted); font-size: 13.5px; }
  table.grid.lines tbody td:nth-child(3)::before { content: "× "; }
  table.grid.lines td:last-child { margin-left: auto; }
  table.grid.lines tfoot tr { padding: 6px 0; }
  table.grid.lines tfoot tr.grand { border-bottom: 0; padding-top: 10px; }
}
.grid small { display: block; }
.avail th.day { text-align: center; font-family: var(--mono); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.avail th.day small { font: 500 10.5px/1 var(--body); color: var(--muted); margin-top: 3px; }
.avail th.day.event { color: var(--ink); background: var(--brand-soft); }
.avail td.cell { text-align: center; font: 600 14px/1 var(--mono); padding: 9px 6px; border-left: 2px solid var(--panel); }
.avail td.cell.ok { background: var(--ok-soft); color: var(--ok); }
.avail td.cell.warn { background: var(--warn-soft); color: var(--warn); }
.avail td.cell.bad { background: var(--bad-soft); color: var(--bad); }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13.5px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

/* kroky: šest kontrolních bodů na jedné čáře jako trať na úvodu (šikmé štítky se sklonem loga). Černý štítek
   s fajfkou = hotovo, žlutý + „Jste tady“ = aktuální krok, rámeček kolem štítku = prohlížený krok, zámek = ještě
   nejde. Na mobilu jen štítky, název kroku je v panelu pod nimi. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps li { position: relative; min-width: 0; }
.steps li + li::before { content: ""; position: absolute; top: 25px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 2px; background: var(--line); }
.steps li.done + li::before { background: var(--ink); }
.steps li > a, .steps li > .step-box { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 6px; border-radius: 8px; text-align: center; text-decoration: none; height: 100%; }
.steps.linked li > a:hover { background: var(--panel); }
.steps .no { position: relative; isolation: isolate; width: 46px; height: 32px; display: grid; place-items: center; font: 700 15px/1 var(--display); color: var(--muted); }
.steps .no::before { content: ""; position: absolute; inset: 0 6px; z-index: -1; background: var(--bg); border: 2px solid var(--line); transform: skewX(-22.5deg); }
.steps .no svg { width: 13px; height: 13px; }
.steps .txt { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.steps strong { font-size: 13.5px; line-height: 1.25; }
.steps small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.steps .done .no { color: var(--bg); }
.steps .done .no::before { background: var(--ink); border-color: var(--ink); }
.steps .current .no { color: var(--on-brand); }
.steps .current .no::before { background: var(--brand); border-color: var(--brand); }
.steps .selected .no::before { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.steps .selected strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.steps .locked > .step-box { cursor: not-allowed; }
.steps .locked strong { color: var(--muted); font-weight: 500; }
.steps .bad .no { color: #fff; }
.steps .bad .no::before { background: var(--bad); border-color: var(--bad); }
.here { justify-self: center; font: 700 12px/1 var(--body); background: var(--band); color: var(--brand); padding: 5px 9px; border-radius: 999px; margin-top: 2px; font-style: normal; }
@media (max-width: 640px) {
  .steps li > a, .steps li > .step-box { padding: 6px 0; }
  .steps li + li::before { top: 21px; }
  .steps .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.where { background: var(--info-soft); border: 1px solid var(--info); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.step-panel { gap: 16px; }
.step-panel-head { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.next-locked { display: grid; gap: 4px; justify-items: end; text-align: right; max-width: 340px; }
.next-locked small { color: var(--muted); font-size: 12.5px; }
.locked-panel { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 16px; }
.lock-big { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); flex: none; }
.lock-big svg { width: 18px; height: 18px; }
.note-inline.warn { background: var(--warn-soft); }
.note-inline.bad { background: var(--bad-soft); }

/* seznam zápůjček */
.rentals { display: grid; gap: 14px; }
.rental { gap: 12px; }
.rental-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: flex-start; }
.rental-head h2 a { text-decoration: none; }
.rental-head h2 a:hover { text-decoration: underline; }
.rental-step { display: grid; gap: 8px; }
/* Kroky vždy na jednom řádku, při úzké kartě se proužky zkrátí. */
.progress { display: flex; gap: 4px; max-width: 360px; }
.progress i { flex: 1 1 0; min-width: 0; height: 6px; border-radius: 3px; background: var(--line); }
.progress i.done { background: var(--ink); }
.progress i.current { background: var(--brand); }
.rental-race { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.rental-race .label { font: 600 13px/1 var(--body); color: var(--muted); }
.rental-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
/* Stav zápůjčky: ikona v bílém kolečku, aby byla čitelná i na žlutém tlačítku. */
.status-ico { flex: none; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: #fff; }
.status-ico.ok { color: var(--st-ok); }
.status-ico.warn { color: var(--st-warn); }
.status-ico.bad { color: var(--st-bad); }
.button.with-status { display: inline-flex; align-items: center; gap: 8px; }
.rental-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid; border-radius: 8px; }
.rental-alert.bad { background: var(--bad-soft); border-color: var(--bad); }
.rental-alert.warn { background: var(--warn-soft); border-color: var(--warn); }
.rental-alert ul { margin: 4px 0 0; padding-left: 18px; }
.manage-panel { display: grid; gap: 10px; }
.manage-panel .hint { margin: 0; }
.manage-panel details.order summary { width: 100%; }
.manage-panel details.order .order-panel { position: static; width: 100%; margin-top: 8px; box-shadow: none; border-width: 1px; }
.manage-panel .order-off { max-width: none; }
.pin-chip { margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); font: 600 12.5px/1.4 var(--mono, ui-monospace, monospace); }
details.order { position: relative; }
details.order summary { list-style: none; }
details.order summary::-webkit-details-marker { display: none; }
details.order[open] summary { border-color: var(--ink); }
.order-panel { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 40px)); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
@media (max-width: 560px) { details.order { width: 100%; } details.order summary { width: 100%; } .order-panel { position: static; width: 100%; margin-top: 6px; } }
.order-off { display: grid; gap: 4px; max-width: 260px; }
.order-off small { color: var(--muted); font-size: 12px; }
.steps-static { pointer-events: none; }

/* kalkulace */
.bib { padding: 0; overflow: hidden; position: sticky; top: 16px; }
@media (max-width: 860px) { .bib { position: static; } }
.bib-top { background: var(--brand); color: var(--on-brand); padding: 11px 16px; font: 700 15px/1 var(--display); }
.bib-body { padding: 16px; display: grid; gap: 10px; }
.bib .li, .bib .sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bib b { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bib .li small { display: block; color: var(--muted); font-size: 12px; }
.bib .sum { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; }
.bib .grand b { font-size: 22px; }

/* dlaždice */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 2px; }
.tile b { font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 13px; }
.tile.hot { background: var(--brand); border-color: var(--brand); }
.tile.hot b, .tile.hot span { color: var(--on-brand); }

/* smlouva, faktura, závod */
.contract { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--field); padding: 16px 20px; font-size: 14px; }
.contract h3 { text-align: center; margin-bottom: 10px; }
.contract h4 { font: 700 14.5px/1.3 var(--display); margin: 14px 0 4px; }
.accept { display: grid; gap: 12px; }
.invoice { display: grid; gap: 14px; }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.invoice-head small { display: block; color: var(--muted); }
.pay { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: start; }
@media (max-width: 560px) { .pay { grid-template-columns: minmax(0, 1fr); } }
.qrwrap { display: grid; gap: 6px; justify-items: center; text-align: center; }
.qrwrap small { color: var(--muted); font-size: 12px; }
.qr { width: 160px; height: 160px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.qr img, .qr canvas { width: 100% !important; height: auto !important; }
.qr-box { position: relative; }
.pay.paid .kv { opacity: .45; }
.pay.paid .qr { filter: grayscale(1) blur(3px); opacity: .35; }
/* Razítko přes rozmazaný QR uhrazené faktury; podklad razítka leží pod textem. */
.qr-stamp { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; font: 800 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.qr-stamp::before { content: ""; position: absolute; z-index: -1; inset: 52px 6px; border: 2px solid var(--ok); border-radius: 8px; background: var(--panel); transform: rotate(-12deg); }
.pay.paid .qrwrap small { color: var(--ok); font-weight: 600; }
.links { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.courses { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.courses small { color: var(--muted); }
fieldset.course { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 10px; display: grid; gap: 10px; background: var(--field); }
.course-row, .cat-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.cats { display: grid; gap: 8px; padding-left: 14px; border-left: 3px solid var(--brand-soft); }
.cat-row .link { padding-bottom: 10px; font-size: 18px; text-decoration: none; }
.pay-fields [data-mode] { display: none; }
.pay-fields.mode-account [data-mode="account"], .pay-fields.mode-comgate [data-mode="comgate"] { display: grid; }

/* přihlášení, pošta */
.auth { display: grid; place-items: start center; padding-top: 20px; }
.auth .card { width: min(440px, 100%); }
.auth.wide .card { width: min(720px, 100%); }
.auth .card, .auth-split > .card { padding: 28px; gap: 18px; border-radius: 8px; }
@media (max-width: 600px) { .auth .card, .auth-split > .card { padding: 20px; } }
.auth-head { display: grid; gap: 6px; }
.auth-alt { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }
/* Žádost o profil: formulář a vedle něj, co bude po odeslání (na úzké obrazovce pod ním). */
.auth-split { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 300px); gap: 24px 40px; justify-content: center; align-items: start; padding-top: 20px; }
@media (max-width: 960px) { .auth-split { grid-template-columns: minmax(0, 1fr); } }
.auth-aside { display: grid; gap: 16px; padding-top: 6px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.next-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; }
.next-steps .cp { grid-row: span 2; }
.next-steps span:not(.cp) { color: var(--muted); font-size: 14.5px; }
.cp.small { width: 44px; height: 32px; margin: 0; }
.cp.small::before { inset: 0 6px; }
.cp.small b { font-size: 16px; }
.card.web { border-top: 6px solid var(--info); }
.mails { gap: 0; padding: 6px 0; }
.mail { border-bottom: 1px solid var(--line); }
.mail:last-child { border-bottom: 0; }
.mail summary { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 12px; padding: 11px 20px; cursor: pointer; align-items: baseline; }
@media (max-width: 700px) { .mail summary { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.mail-to { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mail time { color: var(--muted); font: 500 12.5px/1 var(--mono); white-space: nowrap; }
.mail pre { margin: 0; padding: 4px 20px 16px; white-space: pre-wrap; font: 14px/1.55 var(--body); }
.mail summary .badge { margin-left: 6px; vertical-align: 1px; }
.mail-note { padding: 0 20px 14px; }
/* Záložky (Profily: Pořadatelé, Správci) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 8px 8px 0 0; text-decoration: none; font-weight: 600; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); background: var(--panel); border-color: var(--line); border-bottom-color: var(--panel); }
/* Detail žádosti u MyResultu: vpravo panel Co teď, pořadatel a žádost; na úzké obrazovce nahoře. */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side"; gap: 18px; align-items: start; }
.detail-main { grid-area: main; display: grid; gap: 18px; min-width: 0; }
.detail-side { grid-area: side; display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1001px) and (min-height: 760px) { .detail-side { position: sticky; top: 16px; } }
@media (max-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; } }
.side-card { gap: 10px; }
.side-card h2 { font-size: 17px; }
.side-card dl.kv { gap: 5px 12px; font-size: 14px; }
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.side-actions .primary { flex: 1 1 auto; }
.side-todo { border-top: 1px solid var(--line); padding-top: 10px; }
.side-todo ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.stack-sections { display: grid; gap: 18px; }
.more-log summary { cursor: pointer; font-weight: 600; padding: 10px 0 4px; }
.avail tr.unneeded td { color: var(--muted); }
.tabs .count { font: 600 12px/1 var(--mono); padding: 2px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { button, .button { transition: filter .15s; } }

/* úprava položek a cen (obsluha) */
.editor td { vertical-align: middle; }
.editor input { height: 36px; min-height: 36px; padding: 6px 8px; width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.editor input[name="name"] { width: 100%; min-width: 180px; text-align: left; }
.editor input[type="number"] { width: 72px; }
.editor .qty-unit { display: inline-flex; gap: 4px; }
.editor .qty-unit input { width: 70px; }
.editor .qty-unit input.unit { width: 56px; text-align: left; }
.editor tr.fixed td { color: var(--muted); }
.editor td small { display: block; color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.role-cell { display: flex; align-items: center; gap: 10px; }
.row-actions .secondary { min-height: 34px; padding: 0 12px; }
.add-forms { display: grid; gap: 12px; border-top: 1px dashed var(--line); padding-top: 14px; }

/* Krok 6: měření */
.lead { margin: 0; font-size: 15.5px; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.presets .button { min-height: 34px; padding: 0 12px; }
.row-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.row-start .hint { flex: 1 1 280px; }
.editor.measure td:first-child input { width: 100%; min-width: 170px; text-align: left; }
.editor select { height: 36px; min-height: 36px; padding: 4px 8px; }
.editor input[type="time"] { width: 110px; text-align: left; }
.course-picks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.check.tight { grid-template-columns: 18px auto; gap: 6px; font-size: 13.5px; }
.check.tight input { width: 16px; height: 16px; }
.wrap-fields { flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li small { display: block; color: var(--muted); font-size: 13px; }
.checks .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.checks .ok .mark { background: var(--ok-soft); color: var(--ok); }
.checks .bad .mark { background: var(--bad-soft); color: var(--bad); }
.checks .wait .mark { background: var(--warn-soft); color: var(--warn); }
.editor.measure select { width: 100%; min-width: 120px; padding-right: 30px; text-overflow: ellipsis; }
.editor.measure td:nth-child(3) select { min-width: 150px; }
.check.tight { align-items: center; }
.check.tight input { margin: 0; }
.editor.measure input:disabled, .editor.measure select:disabled { opacity: 0.45; }
@media (max-width: 720px) {
  .editor.measure thead { display: none; }
  .editor.measure, .editor.measure tbody { display: block; }
  .editor.measure tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .editor.measure td { display: block; padding: 0; border: 0; text-align: left; }
  .editor.measure td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .editor.measure td:first-child, .editor.measure td[data-label="Tratě"], .editor.measure td[data-label="MR BOX"] { grid-column: 1 / -1; }
  .editor.measure td.row-tools { grid-column: 1 / -1; text-align: right; }
  .editor.measure input, .editor.measure select, .editor.measure input[type="time"] { width: 100%; min-width: 0; text-align: left; }
  .editor.measure td:nth-child(3) select { min-width: 0; }
}
.instances td small { display: block; color: var(--muted); font-size: 12.5px; }
.small-url { font-size: 12.5px; overflow-wrap: anywhere; }
.order-panel.wide { min-width: min(420px, 90vw); }
.instance-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; }

/* Znalostní báze */
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.kb-list .card { gap: 6px; position: relative; }
.kb-list h2 a { text-decoration: none; }
.kb-list h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.kb-list .card:has(a):hover { border-color: var(--ink); }
.kb-list .card:hover h2 a { text-decoration: underline; }
.kb-article { max-width: 780px; display: grid; gap: 12px; min-width: 0; }
.kb-article h2 { margin-top: 18px; }
.kb-article p, .kb-article ul, .kb-article ol { margin: 0; }
.kb-article ul, .kb-article ol { padding-left: 22px; display: grid; gap: 4px; }
.kb-article figure { margin: 4px 0; }
.kb-article img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.kb-article .kb-steps { gap: 8px; }

/* Žádost o profil: uvítání, souhlasy, odkazy v patičce */
.welcome { display: grid; gap: 8px; margin: 4px 0 6px; }
.welcome p { margin: 0; }
.consents { display: grid; gap: 8px; padding-top: 4px; }
.form-groups { display: grid; gap: 20px; }
fieldset.group { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 0; min-width: 0; }
fieldset.group legend { padding: 0 10px 0 0; font: 700 17px/1.2 var(--display); }
fieldset.group .hint { margin: -4px 0 0; }

/* Patička: tmavý pruh jako hlavička, na krátkých stránkách zůstává dole. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.site-footer { margin-top: 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; padding-block: 32px 22px; }
.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-brand .logo { height: 26px; width: auto; }
.footer-brand p, .footer-col p { margin: 0; }
.footer-muted { color: var(--on-band-muted); max-width: 34ch; }
.footer-col h2 { font: 600 15px/1.2 var(--display); color: var(--on-band-muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-band); text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 14px 18px; font-size: 12.5px; color: var(--on-band-muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 26px 18px; } }

/* Úvodní stránka pro nepřihlášené (Změřte si závod sami) */
.landing { display: grid; gap: 48px; padding-top: 22px; }
.landing h2 { font-size: clamp(24px, 3vw, 30px); }
.landing-block { display: grid; gap: 20px; }

/* Černý úvod navazuje na hlavičku: vlevo nadpis, text, tlačítka a cena jedním řádkem, vpravo fotka cíle. */
.hero-band { background: var(--band); color: var(--on-band); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; padding-block: 64px 72px; }
.hero-text { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -.025em; }
.hero .lead { font-size: 18px; line-height: 1.55; color: var(--on-band-muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-band .secondary, .contact-panel .secondary { background: transparent; color: var(--on-band); border-color: rgba(255, 255, 255, .45); }
.hero-band .secondary:hover, .contact-panel .secondary:hover { border-color: var(--on-band); }
.hero-price { color: var(--on-band-muted); }
.hero-price strong { font: 700 19px/1 var(--display); color: var(--on-band); white-space: nowrap; }
.hero-price a { color: var(--on-band); font-weight: 600; text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
/* Výhody jako text s fajfkou, ne jako tlačítka. */
.features { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; color: var(--on-band-muted); }
.features li { display: inline-flex; gap: 7px; }
.features li::before { content: "✓"; color: var(--brand); font-weight: 700; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; } }
@media (max-width: 480px) { .hero .lead { font-size: 16.5px; } }

/* Fotky (photo_slot v app/landing.php): dokud chybí soubor, je na místě box s ikonou a popisem fotky. */
.photo { margin: 0; border-radius: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; }
.photo.banner { aspect-ratio: 16 / 9; }
.photo.square { aspect-ratio: 1; width: 112px; border-radius: 50%; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.slot { display: grid; place-items: center; padding: 14px; background: linear-gradient(160deg, var(--brand-soft), var(--bg) 75%); text-align: center; color: var(--muted); }
.photo.slot figcaption { display: grid; gap: 6px; justify-items: center; font-size: 13.5px; line-height: 1.35; max-width: 32ch; }
.photo.slot svg { opacity: .7; }
.photo.slot small { font: 500 11px/1.3 var(--mono); overflow-wrap: anywhere; }
.photo.square.slot { border-radius: 8px; padding: 8px; width: 120px; }
.photo.square.slot span { font-size: 11.5px; }
/* Na černé (úvod, kontakt) je box tmavý se žlutým nádechem. */
.hero-band .photo, .contact-panel .photo { border-color: rgba(255, 255, 255, .14); }
.hero-band .photo.slot, .contact-panel .photo.slot { background: linear-gradient(160deg, rgba(251, 209, 6, .2), rgba(255, 255, 255, .04) 70%); color: var(--on-band-muted); }

/* Kroky zápůjčky jako trať: fotka, kontrolní bod na čáře (žlutý šikmý štítek s číslem), název a text.
   Čáru kreslí každý krok sám pod svým štítkem až k dalšímu kroku, takže sedí i s fotkami nad ní. */
.course { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.course li { display: grid; gap: 8px; align-content: start; min-width: 0; }
.course .photo { margin-bottom: 6px; }
.course .photo.slot figcaption { font-size: 12.5px; }
.cp-row { position: relative; margin-bottom: 6px; }
.cp-row::before { content: ""; position: absolute; left: 0; right: -28px; top: 21px; height: 2px; background: var(--ink); }
.course li:last-child .cp-row::before { right: 0; }
.cp { position: relative; width: 56px; height: 44px; display: grid; place-items: center; background: var(--bg); }
.cp::before { content: ""; position: absolute; inset: 0 8px; background: var(--brand); transform: skewX(-22.5deg); }
.cp b { position: relative; font: 700 22px/1 var(--display); color: var(--on-brand); }
.course h3 { margin: 0; font-size: 18px; }
.course p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .course { grid-template-columns: minmax(0, 1fr); gap: 28px; position: relative; }
  .course::before { content: ""; position: absolute; left: 27px; top: 22px; bottom: 22px; width: 2px; background: var(--ink); }
  .course li { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "cp title" "cp text" "cp photo"; gap: 4px 16px; }
  .cp-row { grid-area: cp; margin: 0; }
  .cp-row::before { display: none; }
  .course h3 { grid-area: title; align-self: center; min-height: 44px; display: flex; align-items: center; }
  .course p { grid-area: text; }
  .course .photo { grid-area: photo; margin: 8px 0 0; }
}

.landing-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.landing .card { padding: 28px; gap: 16px; border-radius: 8px; }
@media (max-width: 600px) { .landing .card { padding: 20px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 4px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2l3.3 3.3L11 1.5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") center / 11px no-repeat; }
.choice { margin: 0; display: grid; gap: 4px; }
.choice dt { font: 600 17px/1.3 var(--display); margin-top: 10px; }
.choice dt:first-child { margin-top: 0; }
.choice dd { margin: 0; color: var(--muted); }

/* Cena: vlevo ceník, vpravo kalkulace na šedém podkladu (assets/app.js přepočítá data-out). */
.price-section { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
@media (max-width: 900px) { .price-section { grid-template-columns: minmax(0, 1fr); } }
.price-list { display: grid; gap: 18px; }
.tariff { margin: 0; display: grid; }
.tariff > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tariff > div:last-child { border-bottom: 1px solid var(--line); }
.tariff dt { font-weight: 600; }
.tariff small { display: block; font: 400 13.5px/1.4 var(--body); color: var(--muted); }
.tariff dd { margin: 0; text-align: right; font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tariff dd.muted { font: 500 15px/1.4 var(--body); }
.calc { background: var(--bg); border-radius: 8px; padding: 22px; display: grid; gap: 16px; }
.calc input[type=number] { height: 56px; font: 700 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.calc-rows { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.calc-rows dt small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.calc-rows dd { margin: 0; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows .sub { color: var(--muted); }
.calc-rows div:not(.sub) + .sub { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.calc-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; border-top: 2px solid var(--ink); padding-top: 12px; }
.calc-total span { font-weight: 600; }
.calc-total strong { font: 700 clamp(30px, 3.4vw, 38px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .button { justify-self: start; }

/* Dotazy vlevo, kontakt vpravo v černém panelu (na úzké obrazovce pod sebou). */
.faq-contact { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 32px 48px; align-items: start; }
@media (max-width: 900px) { .faq-contact { grid-template-columns: minmax(0, 1fr); } }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .faq summary::after { transition: transform .2s; } }
.faq p { margin: -4px 0 18px; color: var(--muted); max-width: 66ch; }
.contact-panel { background: var(--band); color: var(--on-band); border-radius: 8px; padding: 28px; display: grid; gap: 14px; justify-items: start; position: sticky; top: 16px; }
@media (max-width: 900px) { .contact-panel { position: static; } }
.contact-panel p { color: var(--on-band-muted); }
.contact-panel strong { color: var(--on-band); }
.contact-lines { display: grid; gap: 4px; font: 600 20px/1.3 var(--display); }
.contact-lines a { color: var(--on-band); text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.contact-panel .hero-cta { margin-top: 6px; }
.button.small { padding: 7px 12px; font-size: 13.5px; }
.who a.link { color: var(--on-band); }

/* Výběr čipů v Nové zápůjčce (chip_choice_fields): karty s výhodami a nevýhodami, vybraná volba orámovaná. */
.chips, .own-chips { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.chips legend, .own-chips legend { font: 600 13.5px/1.25 var(--body); color: var(--ink); padding: 0; margin-bottom: 2px; }
.chips > .hint, .own-chips > .hint { margin: 0; }
.chip-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; background: var(--panel); }
.chip-sub { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.chip-card:has(> .chip-pick input:checked), .chip-sub:has(> .chip-pick input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip-card p, .chip-sub p { margin: 0; color: var(--muted); font-size: 14px; }
.chip-pick { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.chip-pick input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.chip-name { margin: 0; font: 700 15px/1.25 var(--body); color: var(--ink); }
.chip-price { margin-left: auto; font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-intro { display: flex; gap: 12px; align-items: center; }
.chip-photo { width: 128px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; }
.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.pros li { position: relative; padding-left: 18px; }
.pros li::before { position: absolute; left: 2px; font-weight: 700; }
.pros .plus::before { content: "+"; color: var(--ok); }
.pros .minus::before { content: "−"; color: var(--bad); }
.chip-own { margin-top: 2px; }
.chip-own[hidden] { display: none; }
@media (max-width: 560px) {
  .chip-intro { flex-direction: column; align-items: stretch; }
  .chip-photo { width: 100%; height: 170px; }
}

/* E-mailové šablony (app/mail.php, page_admin_mails): karta šablony s ukázkou a úpravou. */
.mail-group { display: grid; gap: 12px; margin-bottom: 26px; }
.mail-group > h2 { margin: 0; }
.mail-tpl { display: grid; gap: 12px; }
.mail-tpl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.mail-tpl-head h3 { margin: 0; }
.mail-tpl .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mail-preview { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 12px 14px; display: grid; gap: 6px; }
.mail-preview pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 var(--body); }
.mail-preview .hint { margin: 0; }
.mail-subject { margin: 0; font-weight: 700; }
.mail-edit > summary { width: max-content; list-style: none; }
.mail-edit > summary::-webkit-details-marker { display: none; }
.mail-edit[open] > summary { margin-bottom: 12px; }
.mail-edit textarea { font: 14px/1.5 var(--body); min-height: 140px; }
.mail-vars ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: 13.5px; }
.mail-vars code { font: 600 13px/1.4 var(--mono); }

/* Interní pošta pro MyResult: počet nevyřízených v menu, nevyřízená zpráva zvýrazněná. */
.nav-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 700 11.5px/1 var(--display); text-align: center; vertical-align: 1px; }
.nav a.active .nav-count { background: var(--band); color: var(--brand); }
.mail.unread { background: var(--brand-soft); box-shadow: inset 4px 0 0 var(--brand-strong); }
.mail.unread summary strong { font-weight: 800; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 0 20px 16px; }
.mail-filter { margin: 10px 0; font-size: 14px; color: var(--muted); }

