:root {
  --bg: #f5f4f9;
  --surface: #ffffff;
  --ink: #252239;
  --muted: #69657f;
  --line: #e1deeb;
  --accent: #ad1468;
  --accent-ink: #ffffff;
  --accent-soft: #f9e4ef;
  --ok: #0c7368;
  --ok-soft: #dcf1ed;
  --warn: #8f5400;
  --warn-soft: #fbedd6;
  --danger: #b42318;
  --danger-soft: #fbe3df;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16141d;
    --surface: #201d2a;
    --ink: #ecebf4;
    --muted: #a39fba;
    --line: #353149;
    --accent: #f063ad;
    --accent-ink: #1d0a15;
    --accent-soft: #3b1931;
    --ok: #57d2bf;
    --ok-soft: #13302a;
    --warn: #f0b552;
    --warn-soft: #33260f;
    --danger: #ff8b7b;
    --danger-soft: #3b1814;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 0 0 .75rem; }
code { font-size: .95em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Hlavička */
.top { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-inner, .nav-inner, .main { max-width: 1120px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand-mark { font-weight: 800; font-size: 1.25rem; color: var(--accent); letter-spacing: .02em; }
.brand-name { font-weight: 500; color: var(--muted); }
.who { color: var(--ink); font-size: .9rem; font-weight: 500; }
.nav { border-top: 1px solid var(--line); position: relative; }
.nav-inner { display: flex; flex-wrap: wrap; gap: 0 .15rem; }
.nav-link, .nav-group > summary { display: block; padding: .7rem .75rem; white-space: nowrap; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 500; cursor: pointer; }
.nav-link:hover, .nav-group > summary:hover { color: var(--ink); }
.nav-link[aria-current="page"], .nav-group > summary.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* Rozbalovací nabídky (menu skupin a účet) */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); transition: transform .15s; }
.nav-group[open] > summary::after { transform: translateY(.05em) rotate(-135deg); }
.menu-panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 15rem; max-width: calc(100vw - 2rem); display: grid; gap: 2px; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(20, 14, 40, .16); }
.menu-end .menu-panel, .menu-right { left: auto; right: 0; }
.menu-panel a, .menu-logout { display: block; padding: .6rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .95rem/1.3 var(--font); white-space: nowrap; }
.menu-panel a:hover, .menu-logout:hover { background: var(--bg); }
.menu-panel a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 650; }
.menu-panel form { margin: 0; border-top: 1px solid var(--line); padding-top: 2px; margin-top: 2px; }
.menu-logout { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; color: var(--danger); }
.menu-head { padding: .5rem .75rem .6rem; font-weight: 650; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.menu-head span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.account > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line); }
.account > summary:hover { border-color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

.main { padding-top: 1.5rem; padding-bottom: 3rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }

.period { display: flex; align-items: center; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.period a, .period strong { padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; font-size: .92rem; }
.period a { color: var(--muted); text-decoration: none; }
.pl-short { display: none; font-size: 1.2rem; line-height: 1; }
.period a:hover { background: var(--bg); color: var(--ink); }
.period strong { background: var(--ink); color: var(--surface); font-weight: 600; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); filter: none; }
.btn-small { min-height: 34px; padding: .3rem .7rem; font-size: .85rem; border-radius: 8px; }
.actions, .toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.actions form, .toolbar form, .row-actions form { margin: 0; }

/* Formuláře */
.form { display: grid; gap: 1rem; }
.form-narrow { max-width: 30rem; }
.form label { display: grid; gap: .35rem; font-weight: 550; font-size: .92rem; }
.form label.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select {
  width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 1rem/1.3 var(--font);
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.form-grid .actions { grid-column: 1 / -1; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.2rem; margin: 0; display: grid; gap: 1rem; background: var(--surface); }
legend { font-weight: 650; padding: 0 .4rem; }
.form-row { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: 1rem 0; }
.form-row label { flex: 1 1 9rem; }
.form-row label.grow { flex: 3 1 16rem; }
.inline-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: 0; }
.inline-filter label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.inline-filter select { min-width: 12rem; }
.inline-date { display: inline-flex; gap: .35rem; align-items: center; }
.inline-date input { min-height: 34px; padding: .2rem .4rem; width: auto; }

/* Tabulky */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: .82rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 650; border-top: 2px solid var(--line); border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.sub { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
td .sub { display: inline; margin-left: .25rem; }
td:first-child .sub, .payroll td:first-child .sub { display: block; margin-left: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; white-space: nowrap; }
tr.inactive td { color: var(--muted); }
tr.detail-row td { background: var(--bg); padding-top: .4rem; }
td.detail { max-width: 28rem; overflow-wrap: anywhere; }
.meter-cell { min-width: 9rem; }

/* Stavy */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.flash, .notice { padding: .75rem 1rem; border-radius: 12px; margin: 0 0 1rem; border: 1px solid var(--line); background: var(--surface); }
.flash-success { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.flash-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.flash-info { background: var(--accent-soft); border-color: transparent; }
.notice-warn { background: var(--warn-soft); border-color: transparent; }
.warnings { margin: 0; padding-left: 1.1rem; color: var(--warn); font-size: .88rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 2rem 1.25rem; text-align: center; color: var(--muted); }
.empty .btn { margin-top: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { margin-top: 2.5rem; }

/* Limitoměr – hlavní prvek přehledu trenérky */
.meter { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.meter::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.meter::-webkit-progress-value { background: var(--ok); border-radius: 99px; }
.meter::-moz-progress-bar { background: var(--ok); border-radius: 99px; }
.meter-near::-webkit-progress-value { background: var(--warn); }
.meter-near::-moz-progress-bar { background: var(--warn); }
.meter-over::-webkit-progress-value { background: var(--danger); }
.meter-over::-moz-progress-bar { background: var(--danger); }
.meter-large { height: 22px; }

.meter-card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 16px; padding: 1.5rem 1.4rem 1.3rem; margin-bottom: 1.25rem; }
.meter-caption { margin: 0; color: var(--muted); font-weight: 500; }
.meter-value { margin: .1rem 0 1rem; font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.meter-foot { margin: .75rem 0 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 700; }

/* Přihlášení */
.auth { max-width: 26rem; margin: 3rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.5rem; }
.auth h1 { margin-bottom: .5rem; }
.auth .form { margin-top: 1.25rem; }
.secret { display: inline-block; padding: .3rem .5rem; background: var(--bg); border-radius: 6px; overflow-wrap: anywhere; letter-spacing: .05em; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .4rem; }
.qr { display: inline-block; padding: 12px; background: #ffffff; border-radius: 12px; margin: .5rem 0 1rem; }
.qr img, .qr canvas { display: block; }
.qr-box summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-top: .4rem; }

/* Výplatní lístek */
.slip { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem 1.5rem; max-width: 46rem; }
.slip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; margin-bottom: 1rem; }
.slip-period { margin: .2rem 0 0; font-size: 1.1rem; color: var(--accent); font-weight: 650; }
.slip-club { text-align: right; font-size: .9rem; color: var(--muted); }
.slip-club strong { color: var(--ink); }
.slip-who { margin: 0 0 1rem; }
.slip-table td { padding: .5rem 0; }
.slip-table td.num { padding-left: 1rem; }
.slip-table tr.total td { font-weight: 650; border-top: 1px solid var(--ink); }
.slip-table tr.grand td { font-weight: 800; font-size: 1.25rem; border-top: 2px solid var(--ink); padding-top: .75rem; }
.slip-foot { color: var(--muted); font-size: .88rem; margin-top: 1.25rem; }
.slip details { margin-top: 1.5rem; }
.slip summary { cursor: pointer; font-weight: 600; }

@media (max-width: 640px) {
  h1 { font-size: 1.35rem; }
  .who { display: none; }
  .nav-link, .nav-group > summary { padding: .65rem .55rem; font-size: .95rem; }
  .nav-group { position: static; }
  .pl-full { display: none; }
  .pl-short { display: inline; }
  .period a { padding: .3rem .9rem; }
  .nav-group .menu-panel { left: .75rem; right: .75rem; min-width: 0; top: 100%; }
  .menu-panel a { white-space: normal; }
  .brand-name { display: none; }
  .row-actions { justify-content: flex-start; }
  .slip { padding: 1.25rem 1rem; }
  .slip-club { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .top, .nav, .no-print, .flash { display: none !important; }
  body { background: #fff; color: #000; }
  .main { padding: 0; max-width: none; }
  .slip { border: 0; padding: 0; max-width: none; }
  .slip-period { color: #000; }
}

/* Import z KIS */
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .3rem; }
.block-tight { margin-top: 1.75rem; }
.person-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .6rem; }
.person-head h2 { margin: 0; }
.person-map { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); min-width: 14rem; }
.input-hours { width: 5rem; min-height: 36px; text-align: right; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.period-pick { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.chip { min-height: 36px; padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 .9rem/1.2 var(--font); cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.form-row.compact { padding: 0; border: 0; margin: 0 0 .5rem; background: none; }
.radio { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; flex-wrap: wrap; }
.radio input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

.addr-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.addr-street { grid-column: span 4; } .addr-cp, .addr-co { grid-column: span 1; }
.addr-city { grid-column: span 3; } .addr-zip { grid-column: span 1; } .addr-country { grid-column: span 2; }
@media (max-width: 520px) { .addr-street, .addr-city, .addr-country { grid-column: span 6; } .addr-cp, .addr-co, .addr-zip { grid-column: span 2; } }
.warn-text { color: var(--warn); }
.warnings.errors { color: var(--danger); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

.brand { align-items: center; }
.brand-logo { height: 36px; width: auto; display: block; }
.auth-logo { height: 72px; width: auto; display: block; margin-bottom: 1rem; }
.slip-logo { height: 48px; width: auto; display: block; margin-bottom: .5rem; }
.logo-box { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.logo-preview { height: 64px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }

.decl-id { display: grid; gap: .4rem; margin: 0 0 .5rem; background: var(--bg); border-radius: 10px; padding: .75rem 1rem; }
.decl-id div { display: flex; gap: .75rem; flex-wrap: wrap; } .decl-id dt { color: var(--muted); min-width: 7rem; } .decl-id dd { margin: 0; font-weight: 600; }
.decl-list { padding-left: 1.2rem; line-height: 1.6; }
.notice strong { font-weight: 650; }
.help details, .help section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .75rem; max-width: 52rem; }
.help summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; }
.help details[open] summary { margin-bottom: .6rem; }
.help .steps li { margin-bottom: .55rem; line-height: 1.5; }

/* Úkoly */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.task { display: flex; gap: .75rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.task-late { border-left-color: var(--danger); }
.task-soon { border-left-color: var(--warn); }
.task-done { opacity: .65; }
.task form { margin: 0; }
.task-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--muted); background: var(--surface); color: var(--ok); font-weight: 800; cursor: pointer; flex: none; line-height: 1; }
.task-check:hover { border-color: var(--ok); background: var(--ok-soft); }
.task-done .task-check { border-color: var(--ok); background: var(--ok-soft); }
.task-title { font-weight: 600; }
.task-title a { color: var(--ink); }
.task-meta { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.task-detail { font-size: .85rem; margin-top: .25rem; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tasks-box { margin-bottom: 1.25rem; }
.tasks-box h2 { display: flex; align-items: baseline; gap: .75rem; }
.foreign-box { display: grid; gap: 1rem; border-top: 1px dashed var(--line); padding-top: 1rem; }

.radios { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .3rem; }
.qtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.qtable th, .qtable td { border: 1px solid var(--ink); padding: .45rem .55rem; vertical-align: top; text-align: left; }
.qtable th { font-weight: 650; width: 14%; color: var(--ink); white-space: normal; font-size: .85rem; }
.qdoc .blank { display: inline-block; min-width: 8rem; border-bottom: 1px dotted var(--muted); height: 1em; }
.qdoc .sel { font-weight: 800; text-decoration: underline; }
.qdoc .opt { white-space: nowrap; margin-right: .6rem; }
.qdecl { font-weight: 600; font-size: .88rem; margin-top: 1rem; }
.qsign { margin-top: 1.4rem; }
.qnote { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
@media print { .qtable th, .qtable td { border-color: #000; } }
.brand-mark { font-size: 1.05rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Kalendář a docházka */
.cal-day { font-size: 1rem; margin: 1.4rem 0 .5rem; color: var(--muted); text-transform: none; }
.ev { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: .75rem 1rem; margin-bottom: .5rem; }
.ev-trenink { border-left-color: var(--ok); }
.ev-zapas, .ev-zavod { border-left-color: var(--accent); }
.ev-soustredeni, .ev-akce { border-left-color: var(--warn); }
.ev-cancel { opacity: .6; }
.ev-cancel .ev-title { text-decoration: line-through; }
.ev-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: baseline; }
.ev-title { font-weight: 650; color: var(--ink); text-decoration: none; }
.ev-meta { color: var(--muted); font-size: .9rem; }
.ev-count { margin: .3rem 0 0; color: var(--muted); }
.ev-resp { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
.ev-resp select { width: auto; min-height: 34px; padding: .2rem .4rem; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.att-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; }
.att-staff { background: var(--bg); }
.att-name { font-weight: 600; }
.att-name .sub { display: block; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .5rem .7rem; min-height: 40px; font-size: .88rem; cursor: pointer; border-left: 1px solid var(--line); line-height: 1.6; }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--surface); font-weight: 650; }
.seg input[value=present]:checked + span { background: var(--ok); color: #fff; }
.seg input[value=absent]:checked + span { background: var(--danger); color: #fff; }
.seg input[value=late]:checked + span, .seg input[value=excused]:checked + span { background: var(--warn); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.nom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .4rem 1rem; margin-bottom: .75rem; }
.sched-day { min-width: 5.5rem; }
.form-row.compact input[type=time] { width: auto; }

/* Týdenní rozvrh */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.week-day h2 { font-size: 1rem; margin: 0 0 .5rem; }
.slot { display: flex; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; margin-bottom: .45rem; }
.slot-own { border-left: 4px solid var(--accent); }
.slot-time { font-weight: 700; min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.slot-time span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.slot-team { font-weight: 650; color: var(--ink); text-decoration: none; }
.slot-meta { color: var(--muted); font-size: .85rem; }
.note { display: inline-block; margin: .3rem .3rem 0 0; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; }
.note-bad { background: var(--danger-soft); color: var(--danger); }
.note-warn { background: var(--warn-soft); color: var(--warn); }
.note-info { background: var(--ok-soft); color: var(--ok); }
.in-date { max-width: 9rem; } .in-time { max-width: 6rem; }
.score { font-size: 2rem; font-weight: 800; margin: .3rem 0; } .score.win { color: var(--ok); } .score.loss { color: var(--danger); }
b.win { color: var(--ok); } b.loss { color: var(--danger); }
.log-list li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.row-own td { font-weight: 700; background: var(--accent-soft); }
.board { margin: .5rem 0 0; padding-left: 1.5rem; } .board li { padding: .2rem 0; } .board li span { color: var(--muted); margin-left: .4rem; } .board li.me { font-weight: 700; color: var(--accent); }
.badge-soon { background: var(--warn-soft); color: var(--warn); }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .75rem; }
.tabs a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.tabs a[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.board-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; }
.board-box h3 { margin: 0 0 .25rem; font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-wide { max-width: 40rem; }
.qsign { margin-top: 1.6rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.doc-list li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; }
.doc-list audio { width: min(100%, 22rem); height: 36px; }

/* ===== UX 0.9: přehlednější rozvržení ===== */
.top { position: sticky; top: 0; z-index: 50; }
.top .nav { display: flex; flex: 1; align-items: stretch; gap: .1rem; border: 0; margin-left: 1rem; min-width: 0; }
.top .nav-link, .top .nav-group > summary { padding: 1.05rem .7rem .85rem; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar { display: none; }
.back { display: inline-block; margin: -.4rem 0 .6rem; color: var(--muted); text-decoration: none; font-size: .92rem; }
.back:hover { color: var(--accent); }
.page-head h1 { font-size: 1.6rem; }
section.block, section.block-tight { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.15rem 1.1rem; margin-top: 1rem; }
section.block > h2:first-child, section.block-tight > h2:first-child { margin-top: 0; font-size: 1.1rem; }
.add-box { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; margin-top: 1rem; }
.add-box > summary { list-style: none; cursor: pointer; padding: .9rem 1.15rem; font-weight: 650; color: var(--accent); }
.add-box > summary::-webkit-details-marker { display: none; }
.add-box[open] { border-style: solid; }
.add-box[open] > summary { border-bottom: 1px solid var(--line); }
.add-box > :not(summary) { margin-left: 1.15rem; margin-right: 1.15rem; }
.add-box > :last-child { margin-bottom: 1.1rem; }

/* Přehled: co je potřeba udělat, rychlé akce */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.todo a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 12px; text-decoration: none; color: var(--ink); }
.todo a:hover { border-color: var(--accent); }
.todo .n { min-width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.todo .t { flex: 1; }
.todo .t small { display: block; color: var(--muted); }
.todo .warn { border-left-color: var(--warn); } .todo .warn .n { background: var(--warn-soft); color: var(--warn); }
.todo .ok { border-left-color: var(--ok); } .todo .ok .n { background: var(--ok-soft); color: var(--ok); }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.all-done { padding: 1rem 1.15rem; background: var(--ok-soft); color: var(--ok); border-radius: 12px; font-weight: 600; }

@media (max-width: 760px) {
  .top .nav, .top .who { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar > a, .tabbar .more > summary { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem .2rem .4rem; color: var(--muted);
    text-decoration: none; font-size: .72rem; font-weight: 600; list-style: none; cursor: pointer; }
  .tabbar .more { flex: 1; display: flex; }
  .tabbar .more > summary { width: 100%; }
  .tabbar .more > summary::-webkit-details-marker { display: none; }
  .tabbar > a[aria-current="page"], .tabbar .more > summary.is-active, .tabbar .more[open] > summary { color: var(--accent); }
  .sheet { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); max-height: 70vh; overflow: auto; background: var(--surface);
    border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgba(20, 14, 40, .18); padding: .5rem .75rem 1rem; display: grid; gap: 2px; }
  .sheet a { padding: .75rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .sheet a[aria-current="page"] { background: var(--accent-soft); }
  .sheet-h { margin: .7rem .8rem .2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
  .main { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .sticky-actions { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  section.block, section.block-tight { padding: .85rem .9rem 1rem; border-radius: 14px; }
}
@media print { .tabbar, .back { display: none !important; } }
.slot-link { text-decoration: none; color: var(--ink); }
.slot-link:hover { border-color: var(--accent); }

/* ===== Osobní vzhled ===== */
html[data-theme="dark"] { color-scheme: dark; --bg: #16141f; --surface: #211e2d; --ink: #f1eff7; --muted: #a9a4bd; --line: #38334a; --accent-ink: #1d0a15;
  --ok: #4fd1bf; --ok-soft: #12352f; --warn: #f2b45c; --warn-soft: #3a2a10; --danger: #ff8a7d; --danger-soft: #3d1a17; }
html[data-theme="light"] { color-scheme: light; --bg: #f5f4f9; --surface: #ffffff; --ink: #252239; --muted: #69657f; --line: #e1deeb;
  --ok: #0c7368; --ok-soft: #dcf1ed; --warn: #8f5400; --warn-soft: #fbedd6; --danger: #b42318; --danger-soft: #fbe3df; --accent-ink: #ffffff; }
html[data-accent="blue"] { --accent: #1f5fbf; --accent-soft: #e2ecfb; }
html[data-accent="green"] { --accent: #12795a; --accent-soft: #dcf3ea; }
html[data-accent="orange"] { --accent: #b4510c; --accent-soft: #fbe9db; }
html[data-accent="purple"] { --accent: #6a3fc1; --accent-soft: #ece4fb; }
html[data-accent="graphite"] { --accent: #3d4451; --accent-soft: #e5e7eb; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"][data-accent="blue"], html[data-theme="dark"][data-accent="blue"] { --accent: #7aa7f2; --accent-soft: #1c2a44; }
  html[data-theme="auto"][data-accent="green"], html[data-theme="dark"][data-accent="green"] { --accent: #5ad1a8; --accent-soft: #143329; }
  html[data-theme="auto"][data-accent="orange"], html[data-theme="dark"][data-accent="orange"] { --accent: #f2a066; --accent-soft: #3a2414; }
  html[data-theme="auto"][data-accent="purple"], html[data-theme="dark"][data-accent="purple"] { --accent: #b49af2; --accent-soft: #2a2140; }
  html[data-theme="auto"][data-accent="graphite"], html[data-theme="dark"][data-accent="graphite"] { --accent: #c3c8d2; --accent-soft: #2c2f36; }
}
html[data-theme="dark"][data-accent="rose"] { --accent: #f063ad; --accent-soft: #3b1931; }
html[data-theme="dark"][data-accent="blue"] { --accent: #7aa7f2; --accent-soft: #1c2a44; }
html[data-theme="dark"][data-accent="green"] { --accent: #5ad1a8; --accent-soft: #143329; }
html[data-theme="dark"][data-accent="orange"] { --accent: #f2a066; --accent-soft: #3a2414; }
html[data-theme="dark"][data-accent="purple"] { --accent: #b49af2; --accent-soft: #2a2140; }
html[data-theme="dark"][data-accent="graphite"] { --accent: #c3c8d2; --accent-soft: #2c2f36; }
html[data-size="large"] { font-size: 112.5%; }
html[data-size="xlarge"] { font-size: 125%; }
html[data-density="compact"] section.block, html[data-density="compact"] section.block-tight { padding: .6rem .8rem .7rem; margin-top: .6rem; }
html[data-density="compact"] .main { padding-top: .9rem; }
html[data-density="compact"] td, html[data-density="compact"] th { padding-top: .35rem; padding-bottom: .35rem; }
html[data-density="compact"] .todo a, html[data-density="compact"] .att-row, html[data-density="compact"] .slot { padding-top: .4rem; padding-bottom: .4rem; }

/* Přehled tělocvičny */
.gym-wrap { overflow-x: auto; margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .5rem; }
.gym { display: grid; grid-template-columns: 3.2rem repeat(7, minmax(7.5rem, 1fr)); grid-template-rows: 2.6rem repeat(var(--rows), 14px); min-width: 58rem; position: relative; }
.gym-corner { grid-column: 1; grid-row: 1; }
.gym-day { grid-row: 1; text-align: center; font-weight: 700; font-size: .9rem; padding-top: .2rem; }
.gym-day span { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.gym-day.today { color: var(--accent); }
.gym-hour { grid-column: 1; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 2px; }
.gym-col { border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 55px, var(--line) 55px, var(--line) 56px); }
.gym-ev { z-index: 2; margin: 1px 2px; padding: .2rem .35rem; border-radius: 8px; overflow: hidden; text-decoration: none; font-size: .78rem; line-height: 1.25;
  background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 60% 22%); border-left: 4px solid hsl(var(--h) 60% 45%); box-sizing: border-box; }
.gym-ev b { display: block; font-size: .8rem; }
.gym-ev span { display: block; opacity: .85; }
.gym-ev.k-zapas, .gym-ev.k-zavod, .gym-ev.k-akce, .gym-ev.k-soustredeni { outline: 2px solid hsl(var(--h) 60% 40%); outline-offset: -2px; font-weight: 600; }
.gym-ev.cancelled { opacity: .5; text-decoration: line-through; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gym-ev { background: hsl(var(--h) 35% 22%); color: hsl(var(--h) 70% 88%); } }
html[data-theme="dark"] .gym-ev { background: hsl(var(--h) 35% 22%); color: hsl(var(--h) 70% 88%); }
@media print { .gym-wrap { overflow: visible; border: 0; } .gym { min-width: 0; } }
.msg-mini { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.msg-body { margin-top: .4rem; }

/* Docházka: tabulka po akcích a graf po měsících */
.att-grid th, .att-grid td { padding: .3rem .35rem; text-align: center; font-size: .82rem; }
.att-grid td:first-child, .att-grid th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.att-grid .c-present { color: var(--ok); font-weight: 700; } .att-grid .c-absent { color: var(--danger); font-weight: 700; background: var(--danger-soft); }
.att-grid .c-excused, .att-grid .c-late { color: var(--warn); } .att-grid .c-none { color: var(--muted); }
.att-staff-row td { background: var(--bg); }
.bars { display: flex; gap: .6rem; align-items: flex-end; height: 14rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.bar { flex: 1; min-width: 3.2rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .2rem; }
.bar-v { width: 70%; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar b { font-size: .85rem; } .bar small { color: var(--muted); font-size: .75rem; }

/* Kalendář pro výběr data */
.datepicker { position: absolute; z-index: 200; width: 17.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(20, 14, 40, .2); padding: .6rem; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.dp-head b { text-transform: capitalize; }
.dp-head button, .dp-foot button { border: 0; background: none; color: var(--accent); font: 600 1rem var(--font); padding: .35rem .6rem; border-radius: 8px; cursor: pointer; min-height: 36px; }
.dp-head button:hover, .dp-foot button:hover { background: var(--accent-soft); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-dn { font-size: .75rem; color: var(--muted); padding: .2rem 0; font-weight: 600; }
.dp-d { border: 0; background: none; color: var(--ink); font: 500 .92rem var(--font); height: 2.2rem; border-radius: 8px; cursor: pointer; }
.dp-d:hover { background: var(--bg); }
.dp-d.today { outline: 1px solid var(--accent); }
.dp-d.sel { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.dp-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .3rem; }
.in-date { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369657f' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 18px; padding-right: 2.2rem; max-width: 10rem; }
.folder { margin: .3rem 0; } .folder > summary { cursor: pointer; font-weight: 650; padding: .45rem .2rem; list-style: none; } .folder > summary::-webkit-details-marker { display: none; }
.folder .doc-list { margin: .2rem 0 .6rem 1.2rem; } .folder-in { max-width: 9rem; min-height: 34px; padding: .2rem .5rem; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; } .who { margin: .2rem 0 .8rem; }
.brand-logo { height: 34px; width: auto; display: block; } .brand { align-items: center; }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); margin-left: auto; margin-right: .3rem; }
.bell:hover { color: var(--accent); background: var(--accent-soft); }
.bell .dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.brand-prev { max-height: 90px; max-width: 100%; display: block; margin: .3rem 0; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.stamp-wrap { display: flex; align-items: flex-end; gap: 1.5rem; margin-top: 1.2rem; } .stamp { max-height: 110px; max-width: 260px; }
.slip-logo { max-height: 56px; display: block; margin-bottom: .4rem; }
.todo a.read { border-left-color: var(--line); opacity: .75; }
.notes p { margin: .2rem 0; } .notes ul { margin: .2rem 0; padding-left: 1.2rem; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; flex-basis: 100%; }
.chips legend { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; background: var(--surface); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ttype { display: inline-block; font-size: .75rem; font-weight: 650; padding: .05rem .5rem; border-radius: 999px; color: var(--tc); border: 1px solid var(--tc); margin-left: .3rem; vertical-align: middle; }
.help .notes { padding-bottom: .4rem; } .help .notes .mdh { margin-top: .8rem; font-size: 1.02rem; } .help .notes li { margin: .2rem 0; }
.parts { list-style: none; padding: 0; margin: .3rem 0; } .parts li { padding: .2rem 0; } .parts li.paid { color: var(--ok); } .parts li.paid::before { content: "✓ "; }
.qr-pair { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .5rem; } .split > summary { list-style: none; } .split > summary::-webkit-details-marker { display: none; }
.pick-team { border: 1px solid var(--line); border-radius: 12px; padding: .3rem .7rem; margin: .35rem 0; background: var(--surface); }
.pick-team > summary { list-style: none; cursor: pointer; } .pick-team > summary::-webkit-details-marker { display: none; }
.pick-team .nom-grid { margin: .5rem 0 .3rem; } .picker { border: 0; padding: 0; }
.baz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.baz { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.baz img, .baz-nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.baz-body { padding: .7rem .85rem; } .baz-price { font-weight: 700; color: var(--accent); margin: .2rem 0; } .baz p { margin: .3rem 0; }

/* ===== Jednotný vzhled ovládacích prvků ===== */
:root { --radius: 12px; --shadow-sm: 0 1px 2px rgba(20, 14, 40, .06); --shadow-md: 0 6px 18px rgba(20, 14, 40, .10); --focus: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.15rem;
  border-radius: 999px; border: 1px solid transparent; font: 650 .95rem/1.2 var(--font); letter-spacing: .01em; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 100%); color: var(--accent-ink);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .18); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn.btn-danger { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 88%, #fff), var(--danger)); color: #fff; }
.btn.btn-small { min-height: 36px; padding: .35rem .85rem; font-size: .86rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 400 1rem/1.35 var(--font); box-shadow: inset 0 1px 2px rgba(20, 14, 40, .04); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 6rem; resize: vertical; }
input:hover:not([type=checkbox]):not([type=radio]), select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
input:focus:not([type=checkbox]):not([type=radio]), select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369657f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px; }
label { font-weight: 600; font-size: .9rem; color: var(--ink); }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { margin-top: .3rem; font-weight: 400; }
input[type=checkbox], input[type=radio] { appearance: none; width: 1.3rem; height: 1.3rem; margin: 0 .5rem 0 0; border: 2px solid var(--line); background: var(--surface);
  border-radius: 6px; display: inline-grid; place-content: center; vertical-align: -0.25rem; cursor: pointer; transition: all .12s ease; flex: none; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]::after { content: ""; width: .7rem; height: .7rem; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: var(--accent-ink); transform: scale(0); transition: transform .12s ease; }
input[type=radio]::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent-ink); transform: scale(0); transition: transform .12s ease; }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after, input[type=radio]:checked::after { transform: scale(1); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: none; box-shadow: var(--focus); }
label.check { display: inline-flex; align-items: center; font-weight: 500; cursor: pointer; padding: .2rem 0; }
input[type=file] { font: 400 .92rem var(--font); color: var(--muted); padding: .35rem 0; }
input[type=file]::file-selector-button { margin-right: .8rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 .88rem var(--font); cursor: pointer; transition: border-color .15s ease; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
input[type=color] { width: 3rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--surface); }
.seg span { transition: background .12s ease; }
table { border-collapse: separate; border-spacing: 0; }
.table-wrap { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.table-wrap table th { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.badge { border-radius: 999px; padding: .18rem .6rem; font-weight: 650; font-size: .78rem; }
.input-hours { max-width: 6.5rem; }
.form-row label, .form-row .check { margin-bottom: 0; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.hub a { display: block; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .08s; }
.hub a:hover { border-color: var(--accent); transform: translateY(-1px); } .hub a span { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.nom-sum { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.nom-sum > span { padding: .35rem .8rem; border-radius: 999px; background: var(--bg); font-size: .9rem; }
.nom-sum .ok { background: var(--ok-soft); color: var(--ok); } .nom-sum .warn { background: var(--warn-soft); color: var(--warn); } .nom-sum .q { background: var(--accent-soft); color: var(--accent); }
.nom-tools { display: flex; gap: .4rem; margin-bottom: .6rem; }
.nom-team { margin-bottom: .8rem; } .nom-team-h { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .35rem; }
.nom-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .4rem; }
.nom-item { display: flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 500; transition: border-color .12s, background .12s; }
.nom-item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.nom-item .nm { flex: 1; } .nom-item small { display: block; color: var(--muted); font-weight: 400; } .nom-item .warn { color: var(--warn); }
.linklike { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.contact { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact a { color: var(--accent); text-decoration: none; font-size: .92rem; }
label.consent { align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); width: 100%; } label.consent span { display: flex; flex-direction: column; gap: .15rem; } label.consent small { font-weight: 400; }
input.in-date { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369657f' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right .7rem center !important; background-size: 18px !important; padding-right: 2.4rem !important; }

/* ======================================================================
   Moderní vzhled (v2): písmo Inter, měkké plochy, skleněná hlavička
   ====================================================================== */
@font-face { font-family: 'Inter'; src: url('fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --radius-lg: 20px;
  --bg: #f4f3f8; --surface: #ffffff; --line: #e6e3ef; --ink: #1d1a2e; --muted: #6c6884; }
html[data-theme="light"] { --bg: #f4f3f8; }
body { background: radial-gradient(1200px 600px at 100% -200px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--bg); font-feature-settings: 'cv11', 'ss01'; letter-spacing: -0.005em; }
h1 { font-size: 1.85rem; font-weight: 750; letter-spacing: -0.025em; }
h2 { font-weight: 700; letter-spacing: -0.015em; }
.top { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand-mark { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ffb703)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 850; }
.top .nav-link, .top .nav-group > summary { position: relative; font-weight: 600; color: var(--muted); border: 0 !important; }
.top .nav-link[aria-current="page"], .top .nav-group > summary.is-active { color: var(--ink); }
.top .nav-link[aria-current="page"]::after, .top .nav-group > summary.is-active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .35rem; height: 3px; border-radius: 3px; background: var(--accent); }
.menu-panel { border-radius: 16px; box-shadow: 0 18px 40px rgba(20, 14, 40, .16); border: 1px solid var(--line); padding: .4rem; }
.menu-panel a { border-radius: 10px; }
section.block, section.block-tight, .add-box, .slot, .table-wrap, .board-box, .contact, .hub a, .baz, .ev, .todo a { border-radius: var(--radius-lg); }
section.block, section.block-tight { border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); box-shadow: 0 1px 2px rgba(20, 14, 40, .04), 0 8px 24px rgba(20, 14, 40, .04); }
.stats > div { border-radius: 18px; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 5%, var(--surface))); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 14, 40, .04); }
.stats dd { font-weight: 800; letter-spacing: -0.03em; }
.todo a { box-shadow: 0 1px 2px rgba(20, 14, 40, .04); border-left-width: 0; position: relative; padding-left: 1.2rem; }
.todo a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--accent); }
.todo a.warn::before { background: var(--warn); } .todo a.ok::before { background: var(--ok); }
.slot { box-shadow: 0 1px 2px rgba(20, 14, 40, .04); }
.ev { box-shadow: 0 1px 2px rgba(20, 14, 40, .04); }
.flash { border-radius: 14px; box-shadow: 0 6px 18px rgba(20, 14, 40, .08); }
.empty { border-radius: var(--radius-lg); border: 1px dashed var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tabbar { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabbar > a[aria-current="page"] .ico, .tabbar .more[open] .ico { filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--accent) 45%, transparent)); }
.avatar { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffb703)); }

/* Jednotná odpověď na účast */
.rsp-list { display: grid; gap: .5rem; margin-top: .6rem; }
.rsp { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; padding: .55rem .7rem; border-radius: 16px; background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.rsp-name { font-weight: 700; min-width: 4.5rem; }
.rsp-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.rsp-seg button { border: 0; background: transparent; padding: .5rem 1rem; border-radius: 999px; font: 650 .92rem var(--font); color: var(--muted); cursor: pointer; min-height: 40px; transition: background .15s, color .15s; }
.rsp-seg .rsp-yes.on { background: var(--ok); color: #fff; }
.rsp-seg .rsp-no.on, .rsp-seg .rsp-no.pick { background: var(--warn); color: #fff; }
.rsp-seg button:hover:not(.on) { color: var(--ink); }
.rsp-reasons { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; flex-basis: 100%; }
html.js .rsp-reasons[data-collapsed] { display: none; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .38rem .8rem; font: 600 .85rem var(--font); color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--warn); color: var(--warn); } .chip-btn.on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.rsp-status { font-weight: 650; font-size: .9rem; } .rsp-status.s-yes { color: var(--ok); } .rsp-status.s-no { color: var(--warn); } .rsp-status.s-none { color: var(--muted); }

/* Deník */
.dhero { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; padding: 1.3rem 1.4rem; margin-top: .6rem; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #6a3fc1) 60%, color-mix(in srgb, var(--accent) 30%, #ffb703) 100%); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .25) 0); }
.ring > div { width: 106px; height: 106px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: color-mix(in srgb, var(--accent) 80%, #1d1a2e); }
.ring b { font-size: 1.6rem; font-weight: 850; letter-spacing: -0.03em; } .ring span { font-size: .78rem; opacity: .85; }
.dhero-main { flex: 1; min-width: 14rem; } .dhero .muted { color: rgba(255, 255, 255, .85); margin: .1rem 0 .6rem; }
.dlevel { font-size: 1.6rem; font-weight: 850; letter-spacing: -0.03em; }
.dchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.dchip { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); padding: .35rem .75rem; border-radius: 999px; font-size: .9rem; }
.dchip.hot { background: rgba(255, 183, 3, .3); border-color: rgba(255, 210, 90, .7); }
.dgoal-h { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .3rem; }
.dbar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.dbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffe066, #fff); }
.dhero .ok { color: #fff; font-weight: 700; margin: .4rem 0 0; }
.dtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.dtype input { position: absolute; opacity: 0; pointer-events: none; }
.dtype span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; padding: .8rem .5rem; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: all .12s; }
.dtype i { font-style: normal; font-size: 1.8rem; line-height: 1.2; } .dtype small { color: var(--muted); font-size: .75rem; }
.dtype input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-1px); }
.dtype input:focus-visible + span { outline: 3px solid var(--accent); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 1rem; }
.dweeks { display: flex; gap: .4rem; align-items: flex-end; height: 9rem; margin-bottom: .8rem; }
.dw { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .15rem; }
.dw span { width: 70%; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.dw.hit span { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #ffb703), var(--accent)); }
.dw small { font-size: .68rem; color: var(--muted); } .dw b { font-size: .75rem; }
.dbadges { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; }
.dbadge { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .6rem .3rem; border-radius: 16px; background: var(--bg); filter: grayscale(1); opacity: .45; }
.dbadge.got { filter: none; opacity: 1; background: color-mix(in srgb, #ffb703 14%, var(--surface)); border: 1px solid color-mix(in srgb, #ffb703 40%, var(--line)); }
.dbadge i { font-style: normal; font-size: 1.7rem; } .dbadge b { font-size: .78rem; } .dbadge small { font-size: .66rem; color: var(--muted); }
/* Skleněný efekt hlavičky by na mobilu „uvěznil“ spodní lištu (fixed uvnitř prvku s backdrop-filter) */
@media (max-width: 760px) { .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); } }
.ok-t { color: var(--ok); font-weight: 700; } .bad-t { color: var(--danger); font-weight: 700; }
.test-card { padding: .7rem 0; border-bottom: 1px solid var(--line); } .test-h { display: flex; justify-content: space-between; }
.spark { width: 100%; max-width: 420px; height: 110px; } .spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; } .spark circle { fill: var(--accent); }
.spark.up polyline { stroke: var(--ok); } .spark.up circle { fill: var(--ok); }
.eval { padding: .6rem .8rem; border-radius: 14px; background: var(--bg); margin-bottom: .5rem; } .eval.goal { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.eval.done { opacity: .7; } .eval-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; } .eval p { margin: .3rem 0; }
.poll-opt { position: relative; display: flex; align-items: center; gap: .5rem; padding: .65rem .8rem; margin: .35rem 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; font-weight: 500; }
.poll-bar { position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--accent) 12%, transparent); z-index: 0; transition: width .4s; }
.poll-opt > * { position: relative; z-index: 1; } .poll-t { flex: 1; } .poll-opt.mine { border-color: var(--accent); }
.tbar { position: relative; height: 34px; border-radius: 999px; background: var(--bg); overflow: hidden; margin: .4rem 0; }
.tbar span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 50%, #ffe066)); }
.tbar b { position: relative; z-index: 1; display: block; text-align: center; line-height: 34px; font-size: .9rem; }

/* ===== Výraznější oddělení sekcí (v2.1) ===== */
:root { --bg: #ecebf3; --card-line: #dcd8e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --card-line: #3a3550; } }
html[data-theme="dark"] { --card-line: #3a3550; }
html[data-theme="light"] { --bg: #ecebf3; }
.page-head { padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--card-line); }
section.block, section.block-tight { background: var(--surface); border: 1px solid var(--card-line); border-radius: 20px; padding: 0; margin-top: 1.25rem; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(20, 14, 40, .05), 0 12px 28px rgba(20, 14, 40, .06); }
section.block > *, section.block-tight > * { margin-left: 1.15rem; margin-right: 1.15rem; }
section.block > :last-child, section.block-tight > :last-child { margin-bottom: 1.1rem; }
section.block > h2:first-child, section.block-tight > h2:first-child {
  margin: 0 0 .9rem; padding: .85rem 1.15rem; font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--card-line); }
section.block > h2:first-child::before, section.block-tight > h2:first-child::before { content: ""; width: 4px; height: 1.1em; border-radius: 3px; background: var(--accent); flex: none; }
section > .table-wrap { border-radius: 14px; }
section .slot, section .rsp, section .eval, section .test-card { background: color-mix(in srgb, var(--bg) 45%, var(--surface)); }
section .slot { border-color: var(--card-line); }
.add-box { background: var(--surface); border: 1.5px dashed var(--card-line); border-radius: 18px; margin-top: 1.1rem; }
.add-box > summary { display: flex; align-items: center; gap: .5rem; }
.add-box[open] { border-style: solid; box-shadow: 0 8px 22px rgba(20, 14, 40, .06); }
section .add-box { margin-top: .6rem; background: color-mix(in srgb, var(--bg) 35%, var(--surface)); }
.dhero + section, .stats + section { margin-top: 1.25rem; }
.stats { margin-top: 1rem; }
/* Docházka pro trenéra: počty a jména */
.attsum { margin-top: .45rem; }
.attsum > summary { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; cursor: pointer; }
.attsum > summary::-webkit-details-marker { display: none; }
.as-yes, .as-no, .as-q { display: inline-flex; align-items: center; gap: .2rem; padding: .22rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 650; }
.as-yes { background: var(--ok-soft); color: var(--ok); } .as-no { background: var(--warn-soft); color: var(--warn); } .as-q { background: color-mix(in srgb, var(--muted) 15%, transparent); color: var(--muted); }
.attsum-l { margin-top: .4rem; font-size: .88rem; } .attsum-l p { margin: .2rem 0; }
.attmini { display: flex; gap: .3rem; margin-top: .35rem; }
@media (max-width: 760px) { section.block > *, section.block-tight > * { margin-left: .9rem; margin-right: .9rem; } section.block > h2:first-child, section.block-tight > h2:first-child { padding: .75rem .9rem; } }
.viewas { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding: .55rem 1rem; margin: -.4rem 0 1rem;
  border-radius: 14px; background: linear-gradient(90deg, #3d2a7a, #6a3fc1); color: #fff; box-shadow: 0 8px 22px rgba(60, 30, 120, .3); }
.viewas form { margin: 0; } .viewas .btn { background: #fff; color: #3d2a7a; }
.va-search { max-width: 22rem; margin: .5rem 0; }
.va-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem; }
.va-card button { width: 100%; text-align: left; padding: .65rem .8rem; border-radius: 14px; border: 1px solid var(--card-line); background: color-mix(in srgb, var(--bg) 45%, var(--surface)); cursor: pointer; font: inherit; color: var(--ink); }
.va-card button:hover { border-color: var(--accent); } .va-card span { display: block; font-size: .8rem; color: var(--muted); }
.sug { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; } .sug form { margin: 0; }
.rsp-long { margin-left: .3rem; color: var(--muted); }

/* ✨ Sezóna v kostce */
.story { position: relative; max-width: 26rem; aspect-ratio: 9 / 16; margin: 1rem auto; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(40, 20, 80, .35); color: #fff; user-select: none; }
.story-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 5px; z-index: 5; }
.story-bars span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; } .story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2.2rem 1.6rem; opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .6s; }
.story-slide.on { opacity: 1; transform: none; }
.story-slide::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .18), transparent 45%); animation: storyspin 14s linear infinite; }
@keyframes storyspin { to { transform: rotate(360deg); } }
.story-slide > * { position: relative; }
.g1 { background: linear-gradient(160deg, #ad1468, #6a3fc1); } .g2 { background: linear-gradient(160deg, #1f5fbf, #2ec4b6); } .g3 { background: linear-gradient(160deg, #12795a, #9bd06b); }
.g4 { background: linear-gradient(160deg, #b4510c, #ffb703); } .g5 { background: linear-gradient(160deg, #6a3fc1, #f063ad); } .g6 { background: linear-gradient(160deg, #1d1a2e, #ad1468); }
.story-ic { font-size: 4rem; margin-bottom: .6rem; animation: storypop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes storypop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.story-big { font-size: 2.6rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1.05; text-shadow: 0 4px 20px rgba(0, 0, 0, .2); }
.story-mid { font-size: 1.25rem; font-weight: 700; margin-top: .6rem; line-height: 1.5; } .story-small { font-size: 1rem; opacity: .9; margin-top: .8rem; max-width: 18rem; }
.story-slide.on .story-big, .story-slide.on .story-mid, .story-slide.on .story-small { animation: storyup .6s both; } .story-slide.on .story-mid { animation-delay: .15s; } .story-slide.on .story-small { animation-delay: .3s; }
@keyframes storyup { from { transform: translateY(18px); opacity: 0; } }
.story-nav { position: absolute; top: 0; bottom: 0; width: 40%; background: none; border: 0; cursor: pointer; z-index: 4; } .story-nav.prev { left: 0; } .story-nav.next { right: 0; width: 60%; }
.story-actions { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .story-slide::before, .story-ic, .story-slide.on * { animation: none !important; } }
.wrap-teaser { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; padding: .95rem 1.15rem; border-radius: 20px; color: #fff; text-decoration: none;
  background: linear-gradient(120deg, #ad1468, #6a3fc1 60%, #ffb703); box-shadow: 0 14px 30px rgba(106, 63, 193, .3); transition: transform .12s; }
.wrap-teaser:hover { transform: translateY(-2px); } .wrap-teaser span { font-size: 1.8rem; } .wrap-teaser div { flex: 1; } .wrap-teaser small { display: block; opacity: .9; } .wrap-teaser i { font-style: normal; font-size: 1.6rem; }
.app-box { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; margin-top: 1rem; border-radius: 20px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--card-line); }
.app-box p { margin: .3rem 0; } .app-box .qr { background: #fff; padding: 6px; border-radius: 10px; }
.duties { display: grid; gap: .45rem; }
.duty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-radius: 14px; border: 1px solid var(--card-line); background: color-mix(in srgb, var(--bg) 45%, var(--surface)); }
.duty.open { border-style: dashed; border-color: var(--warn); } .duty.swap { border-color: var(--warn); background: var(--warn-soft); } .duty.taken { border-left: 4px solid var(--ok); }
.duty-t { display: flex; flex-direction: column; } .duty-t span { font-size: .88rem; }
.duty form select { min-height: 36px; padding: .2rem 2rem .2rem .6rem; width: auto; }

/* Živý zápis */
.sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: 1rem; margin-top: .8rem; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #1d1a2e, #3d2a7a); box-shadow: 0 16px 34px rgba(30, 20, 70, .3); }
.sb-team { display: flex; flex-direction: column; align-items: center; text-align: center; } .sb-team span { font-size: .85rem; opacity: .85; }
.sb-team b { font-size: 3.4rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; } .sb-team b.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25); color: #ffe066; } }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .85rem; }
.sb-live { opacity: .4; font-weight: 800; letter-spacing: .08em; } .sb-live.on { opacity: 1; color: #ff6b6b; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.live-ctl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; } .live-per, .live-opp { display: inline-flex; gap: .3rem; align-items: center; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.lp { padding: .6rem; border-radius: 16px; border: 1px solid var(--card-line); background: var(--surface); }
.lp-h { display: flex; justify-content: space-between; margin-bottom: .45rem; } .lp-h span { color: var(--muted); font-size: .88rem; }
.lp-no { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; margin-right: .4rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .85rem; }
.lp-b { display: flex; gap: .35rem; } .lp-btn { flex: 1; min-height: 52px; border-radius: 14px; border: 0; font: 800 1.15rem var(--font); background: var(--accent-soft); color: var(--accent); cursor: pointer; }
.lp-btn:active { transform: scale(.95); } .lp-btn.f { background: var(--warn-soft); color: var(--warn); font-size: .95rem; }
.live-top { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .6rem 0; } .center { text-align: center; }
.live-banner { display: flex; gap: .8rem; align-items: center; justify-content: center; padding: .7rem 1rem; margin-top: 1rem; border-radius: 16px; background: linear-gradient(135deg, #1d1a2e, #3d2a7a); color: #fff; text-decoration: none; }
.live-banner b { font-size: 1.4rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.shop-card { background: var(--surface); border: 1px solid var(--card-line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 22px rgba(20, 14, 40, .05); }
.shop-card img, .shop-card .baz-nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; font-size: 3rem; }
.shop-form { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; } .shop-form select, .shop-form input:not([type=hidden]) { width: auto; flex: 1 1 6rem; min-height: 40px; }
pre.snippet { white-space: pre-wrap; word-break: break-all; font-size: .78rem; padding: .6rem .8rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--card-line); user-select: all; }
ol.contract li { margin: .5rem 0; } .sign-row { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; } .sign-row > div { flex: 1; text-align: center; }
.offq { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; gap: .6rem; align-items: center;
  max-width: calc(100% - 24px); padding: .6rem .9rem; border-radius: 14px; background: #1d1a2e; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-size: .9rem; }
@media (min-width: 761px) { .offq { bottom: 20px; } }
.ask { padding: .5rem 0; border-bottom: 1px solid var(--card-line); } .ask:last-child { border-bottom: 0; } .ask-h { margin-bottom: .35rem; } .ask-h span { display: block; }
.ask .rsp .rsp-name { display: none; }
.ev-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.ev-info > div { padding: .65rem .8rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); display: flex; flex-direction: column; }
.ev-info span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; } .ev-info b { font-size: 1.05rem; } .ev-info small { color: var(--muted); }
.ev-info .hl { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); } .ev-info a { color: inherit; }
.ev-note { padding: .7rem .9rem; border-radius: 14px; background: var(--warn-soft); } .ev-jump { margin-top: .6rem; }

/* Režim docházky v hale */
.am-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: .4rem 0 .8rem; } .am-head h1 { font-size: 1.4rem; }
.am-count { text-align: center; padding: .5rem .9rem; border-radius: 16px; background: var(--accent); color: var(--accent-ink); } .am-count b { font-size: 1.8rem; } .am-count small { display: block; font-size: .72rem; }
.am-tools { display: flex; gap: .5rem; flex-wrap: wrap; position: sticky; top: 58px; z-index: 5; background: var(--bg); padding: .4rem 0; } .am-tools input { flex: 1 1 12rem; }
.am-list { display: grid; gap: .45rem; } .am-sep { margin: .8rem 0 .2rem; font-size: .9rem; color: var(--muted); }
.am-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); }
.am-row.done { border-left: 5px solid var(--ok); } .am-name { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; } .am-name small { width: 100%; color: var(--muted); font-size: .8rem; }
.am-btns { display: flex; gap: .3rem; flex: none; }
.am-b { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--card-line); background: var(--bg); font: 800 1.2rem var(--font); color: var(--muted); cursor: pointer; }
.am-b.on.am-present { background: var(--ok); border-color: var(--ok); color: #fff; } .am-b.on.am-late { background: #e0a106; border-color: #e0a106; color: #fff; }
.am-b.on.am-absent { background: var(--danger); border-color: var(--danger); color: #fff; } .am-b.on.am-excused { background: var(--warn); border-color: var(--warn); color: #fff; }
@media (max-width: 420px) { .am-b { width: 44px; height: 48px; } }
.msg-imp { border-left: 4px solid var(--danger); }
.ready-list li { padding: .3rem 0; border-bottom: 1px solid var(--card-line); } .ready-list li span { color: var(--muted); font-size: .88rem; margin-left: .3rem; }
.ready-list li.miss span { color: var(--warn); } .ready-list li.ok span { color: var(--ok); } .warn-t { color: var(--warn); margin: .3rem 0; }
.fam-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.fam-pay > div { padding: .8rem 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--card-line); display: flex; flex-direction: column; }
.fam-pay span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; } .fam-pay b { font-size: 1.5rem; letter-spacing: -.02em; } .fam-pay small { color: var(--muted); }
.fam-pay .due { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); } .fam-pay .okk { border-color: var(--ok); background: var(--ok-soft); }
.tpl-save { display: inline-block; } .tpl-save > summary { list-style: none; } .tpl-save > summary::-webkit-details-marker { display: none; }
.role-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.rchip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--card-line); font-size: .88rem; font-weight: 600; }
.rchip.r-player { background: var(--ok-soft); } .rchip.r-coach, .rchip.r-assistant, .rchip.r-conditioning { background: var(--accent-soft); } .rchip.r-admin { background: #3d2a7a; color: #fff; }
.rchip form { margin: 0; } .perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .4rem; margin: .5rem 0; }
.check.perm { align-items: flex-start; } .check.perm small { display: block; color: var(--muted); font-weight: 400; }
/* Hromadná nominace */
.ng { border-collapse: separate; border-spacing: 0; } .ng th, .ng td { padding: .35rem .4rem; }
.ng-name { position: sticky; left: 0; background: var(--surface); z-index: 2; min-width: 11rem; text-align: left; white-space: nowrap; }
.ng-ev { min-width: 7.5rem; text-align: center; vertical-align: bottom; font-weight: 500; } .ng-ev a { display: flex; flex-direction: column; color: inherit; text-decoration: none; } .ng-ev a span { font-size: .78rem; color: var(--muted); }
.ng-ev small { display: block; color: var(--accent); font-weight: 700; } .ng-tools { display: block; font-size: .72rem; }
.ng-c { text-align: center; } .ng-c label { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; } .ng-c input { width: 22px; height: 22px; }
.ng-st { min-width: 1.1rem; font-weight: 800; } .st-yes .ng-st { color: var(--ok); } .st-no .ng-st { color: var(--warn); } .st-none .ng-st { color: var(--muted); } .st-ex { background: var(--warn-soft); }
.ng-pct { margin-left: .3rem; font-size: .75rem; padding: .05rem .4rem; border-radius: 999px; background: var(--bg); } .ng-pct.hi { background: var(--ok-soft); color: var(--ok); } .ng-pct.lo { background: var(--warn-soft); color: var(--warn); }
.ng-bar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: flex-end; padding: .6rem .8rem; margin-top: .6rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); box-shadow: 0 8px 22px rgba(20, 14, 40, .1); }
@media (min-width: 761px) { .ng-bar { bottom: 12px; } }
.setup-prog { display: flex; align-items: center; gap: .8rem; margin: .6rem 0 1rem; } .setup-prog .dbar { flex: 1; background: var(--card-line); } .setup-prog .dbar span { background: linear-gradient(90deg, var(--accent), var(--ok)); }
ol.setup { list-style: none; padding: 0; display: grid; gap: .5rem; } ol.setup > li { background: var(--surface); border: 1px solid var(--card-line); border-radius: 18px; padding: .2rem .9rem; }
ol.setup summary { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; cursor: pointer; list-style: none; flex-wrap: wrap; } ol.setup summary small { color: var(--muted); width: 100%; margin-left: 2.5rem; }
.st-num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--bg); font-weight: 800; } ol.setup li.ok .st-num { background: var(--ok); color: #fff; }
.setup-body { padding: 0 0 .8rem 2.5rem; }
.setup-teaser { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1.5px dashed var(--accent); text-decoration: none; color: var(--ink); }
.setup-teaser span { color: var(--muted); font-size: .88rem; flex: 1; } .setup-teaser i { font-style: normal; font-size: 1.4rem; color: var(--accent); }
.so-box { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .9rem; margin: .5rem 0; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--card-line)); }
.so-box small { color: var(--muted); }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .6rem; margin-top: .8rem; }
.drill { background: var(--surface); border: 1px solid var(--card-line); border-radius: 18px; overflow: hidden; } .drill > summary { list-style: none; cursor: pointer; }
.drill > summary img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; } .drill > summary div { padding: .6rem .8rem; display: flex; flex-direction: column; } .drill > summary span { font-size: .82rem; color: var(--muted); }
.drill-body { padding: 0 .8rem .8rem; } .drill[open] { grid-column: 1 / -1; }
.plan-list { list-style: none; padding: 0; display: grid; gap: .4rem; } .plan-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .8rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--card-line); }
.pl-time { font-weight: 800; color: var(--accent); min-width: 2.6rem; } .pl-body { flex: 1; } .pl-ctl { display: flex; gap: .2rem; } .pl-ctl form { margin: 0; }
.qr-big { display: flex; flex-direction: column; align-items: center; gap: .4rem; } .qr-big .qr { background: #fff; padding: 10px; border-radius: 14px; }
.checkin { max-width: 30rem; margin: 1rem auto; text-align: center; } .checkin-row { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; margin: .5rem 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-line); }
.checkin-row .btn { min-height: 52px; font-size: 1.1rem; }
.t-sc { display: inline-flex; gap: .2rem; align-items: center; } .t-sc input { width: 3.4rem; text-align: center; min-height: 40px; }
.t-m.po { border-left: 4px solid var(--accent); }
.gal-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .7rem; margin-top: .8rem; }
.gal-albums a { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--card-line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); }
.gal-albums img, .gal-albums .baz-nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; } .gal-albums b { padding: .5rem .7rem 0; } .gal-albums span { padding: 0 .7rem .6rem; font-size: .8rem; color: var(--muted); }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .35rem; margin-top: .8rem; } .gal figure { margin: 0; position: relative; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; } .gal form { position: absolute; top: 4px; right: 6px; } .gal form button { background: rgba(0,0,0,.5); color: #fff; border-radius: 50%; width: 24px; height: 24px; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10, 8, 20, .92); display: grid; place-items: center; } .lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; } .lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 1rem; }
.lb-x { top: 0; right: 0; } .lb-p { left: 0; top: 45%; } .lb-n { right: 0; top: 45%; }
.upd-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding: .55rem .9rem; margin: .6rem 0; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--card-line)); font-size: .92rem; }
.upd-bar form { margin: 0; }
/* náhled „Zobrazit jako“: nepřekrývat menu */
.viewas { position: static !important; z-index: auto !important; margin: .6rem 0 1rem !important; }
/* menu účtu: nepřetéct obrazovku */
.menu-panel { max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; }
/* stránka jen pro čtení (vlastní role): skrýt formuláře, které by něco měnily */
html[data-ro] .main form[method="post"], html[data-ro] .main .add-box { display: none !important; }
html[data-ro] .main .page-head::after { content: "jen pro čtení"; margin-left: .6rem; padding: .15rem .6rem; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .78rem; font-weight: 600; vertical-align: middle; }
.perm-group { border: 1px solid var(--card-line); border-radius: 16px; padding: .5rem .8rem; margin: .6rem 0; background: color-mix(in srgb, var(--bg) 35%, var(--surface)); }
.perm-gh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin-bottom: .3rem; } .perm-all { font-size: .8rem; color: var(--muted); }
.perm-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: .35rem 0; border-top: 1px solid var(--card-line); }
.perm-row > span:first-child { flex: 1 1 14rem; font-size: .92rem; }
.perm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--card-line); }
.ps input { position: absolute; opacity: 0; pointer-events: none; } .ps span { display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 650; color: var(--muted); cursor: pointer; }
.ps-0 input:checked + span { background: var(--bg); color: var(--ink); } .ps-1 input:checked + span { background: #2f6fd6; color: #fff; } .ps-2 input:checked + span { background: var(--ok); color: #fff; }
.ps input:focus-visible + span { outline: 2px solid var(--accent); }
