/* 1Z243 – EUCA Club Management: vlastní vzhled aplikace (barvy loga #0A1447, #7437FE, #A297FC, #01CDA0). */
:root {
  --cm-navy: #0A1447; --cm-violet: #7437FE; --cm-lav: #A297FC; --cm-green: #01CDA0;
  --bg: #f4f5fb; --panel: #ffffff; --text: #141a3d; --muted: #5d6385; --line: #e3e5f1; --soft: #f0edff;
  --accent: #6a2ef0; --accent-ink: #ffffff; --ok-bg: #e2f8f1; --ok: #0a7a5c; --err-bg: #fdecef; --err: #b3123a;
  --warn-bg: #fff4e0; --warn: #8a5300; --info-bg: #eef0ff; --info: #3a2c9e;
  --radius: 14px; --shadow: 0 1px 2px rgba(10,20,71,.06), 0 6px 24px rgba(10,20,71,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1030; --panel: #141a3f; --text: #e9eaf6; --muted: #a3a8c9; --line: #262d5a; --soft: #221d4f;
    --accent: #9b78ff; --accent-ink: #0b1030; --ok-bg: #0d3a32; --ok: #6ee6c6; --err-bg: #43142a; --err: #ff9fb6;
    --warn-bg: #3d2c0b; --warn: #ffd18a; --info-bg: #1f2160; --info: #c6bfff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1030; --panel: #141a3f; --text: #e9eaf6; --muted: #a3a8c9; --line: #262d5a; --soft: #221d4f;
  --accent: #9b78ff; --accent-ink: #0b1030; --ok-bg: #0d3a32; --ok: #6ee6c6; --err-bg: #43142a; --err: #ff9fb6;
  --warn-bg: #3d2c0b; --warn: #ffd18a; --info-bg: #1f2160; --info: #c6bfff; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 8px; }
.cm-muted { color: var(--muted); font-size: 13.5px; }
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cm-skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.cm-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cm-lav); outline-offset: 2px; }

/* logo */
.cm-logo img, .cm-auth-logo img { display: block; height: 40px; width: auto; }
.cm-auth-logo img { height: 52px; margin: 0 auto 18px; }
.cm-logo-dark { display: none !important; }
:root[data-theme="dark"] .cm-logo-light { display: none !important; }
:root[data-theme="dark"] .cm-logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cm-logo-light { display: none !important; }
  :root:not([data-theme="light"]) .cm-logo-dark { display: block !important; }
}
.cm-logo-text { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.cm-logo-text b { color: var(--cm-violet); }

/* horni lista */
.cm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.cm-brand { display: flex; align-items: center; text-decoration: none; }
.cm-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cm-club-switch select { max-width: 220px; }
.cm-theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 16px; }
.cm-user { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cm-navy); color: #fff; font-weight: 700; text-transform: uppercase; }
:root[data-theme="dark"] .cm-user { background: var(--cm-violet); }
.cm-logout { font-size: 14px; font-weight: 600; text-decoration: none; }
.cm-menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px 8px; }
.cm-menu-btn span { display: block; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; }

/* rozlozeni */
.cm-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 64px - 52px); }
.cm-nav { background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px; }
.cm-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 78px; }
.cm-nav a, .cm-nav-soon { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.cm-nav a:hover { background: var(--soft); }
.cm-nav a.is-active { background: var(--soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.cm-nav small { color: var(--muted); font-weight: 500; margin-left: auto; }
.cm-nav-soon { color: var(--muted); font-weight: 500; cursor: default; }
.cm-nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.cm-main { padding: 24px clamp(16px, 3vw, 36px) 40px; max-width: 1240px; width: 100%; }
.cm-head { margin: 0 0 16px; }
.cm-foot { padding: 16px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* karty a panely */
.cm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0 0 20px; }
.cm-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .12s, border-color .12s; }
a.cm-card:hover { transform: translateY(-2px); border-color: var(--cm-lav); }
.cm-card-ico { font-size: 22px; }
.cm-card-num { position: absolute; top: 14px; right: 16px; font-size: 22px; font-weight: 800; color: var(--accent); }
.cm-card-txt { color: var(--muted); font-size: 13.5px; }
.cm-card.is-soon { opacity: .65; box-shadow: none; }
.cm-panel, .cm-main section { background: var(--panel); border: 1px solid var(--line) !important; border-radius: var(--radius) !important; padding: 16px 18px !important; margin: 0 0 18px !important; box-shadow: var(--shadow); }

/* upozorneni */
.cm-alert { padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 14px; background: var(--info-bg); color: var(--info); }
.cm-alert-success { background: var(--ok-bg); color: var(--ok); }
.cm-alert-error { background: var(--err-bg); color: var(--err); }
.cm-alert-warning { background: var(--warn-bg); color: var(--warn); }
.cm-alert a { color: inherit; font-weight: 700; }
.cm-main p[style*="background:#fff4e5"] { background: var(--warn-bg) !important; color: var(--warn); }

/* formulare a tlacitka (i prevzaty markup modulu) */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=number], input[type=datetime-local], input[type=time], input:not([type]), select, textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(116,55,254,.18); }
label { font-size: 14px; }
button, .cm-btn, .button, input[type=submit] {
  font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 9px 18px; background: var(--cm-violet); color: #fff; text-decoration: none; line-height: 1.3;
}
button:hover, .cm-btn:hover, .button:hover { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: not-allowed; }
.cm-btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cm-btn-block { width: 100%; }
.cm-link, .link-button { background: none !important; color: var(--accent) !important; padding: 0 !important; border-radius: 0; text-decoration: underline; font-weight: 600; }
.cm-main form { background: none; border: 0; box-shadow: none; }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cm-inline { display: inline; margin: 0; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* tabulky */
.cm-table-wrap, .cm-main div[style*="overflow-x:auto"] { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 14px; }
.cm-table, .cm-main table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-table th, .cm-table td, .cm-main table.table th, .cm-main table.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cm-table th, .cm-main table.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--soft); }
.cm-table tr:last-child td, .cm-main table.table tr:last-child td { border-bottom: 0; }

/* zalozky filtru */
.club-type-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.club-type-tabs a { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.club-type-tabs a.active { background: var(--cm-navy); border-color: var(--cm-navy); color: #fff; }
:root[data-theme="dark"] .club-type-tabs a.active { background: var(--cm-violet); border-color: var(--cm-violet); }
.club-type-count { opacity: .7; font-weight: 500; margin-left: 4px; }

/* prihlaseni a chybova stranka */
.cm-bare { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1100px 600px at 10% -10%, rgba(116,55,254,.20), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(1,205,160,.16), transparent 60%), var(--bg); }
.cm-auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.cm-auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(10,20,71,.14); text-align: left; }
.cm-auth-card h1 { text-align: center; }
.cm-auth-card > .cm-muted { text-align: center; margin: 0 0 18px; }
.cm-form { display: grid; gap: 6px; margin: 0 0 6px; }
.cm-form label { font-weight: 600; margin-top: 8px; }
.cm-form input, .cm-form select { width: 100%; padding: 11px 12px; }
.cm-form .cm-check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0 10px; }
.cm-form .cm-check input { width: auto; }
.cm-code { font-size: 26px !important; letter-spacing: 8px; text-align: center; }
.cm-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.cm-or::before, .cm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pk-login-msg { margin: 6px 0 0; font-size: 13px; color: var(--err); }
.cm-auth-links { text-align: center; margin: 16px 0 0; font-size: 14px; }

/* mobil */
@media (max-width: 860px) {
  .cm-menu-btn { display: block; }
  .cm-shell { grid-template-columns: minmax(0, 1fr); }
  .cm-nav { position: fixed; top: 64px; left: 0; bottom: 0; width: 270px; z-index: 30; transform: translateX(-102%); transition: transform .18s ease; box-shadow: 0 10px 40px rgba(10,20,71,.25); overflow-y: auto; }
  .cm-nav.is-open { transform: none; }
  .cm-logo img { height: 32px; }
  .cm-logout { display: none; }
  .cm-club-switch select { max-width: 140px; }
  .cm-main { padding: 18px 16px 32px; }
}
@media (max-width: 420px) { .cm-auth-card { padding: 24px 18px; } .cm-user { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.cm-nav-soon { flex-direction: column; align-items: flex-start; gap: 0; }
.cm-nav-soon small { margin-left: 0; font-size: 11.5px; }
.cm-theme svg { width: 18px; height: 18px; display: block; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-theme { padding: 0; flex: 0 0 36px; }
.cm-theme:hover { background: var(--soft); filter: none; }
.cm-menu-btn { background: transparent !important; }

/* 1Z245: kalendar klubu v CM (tmavy rezim podle EUCA theme.css, jen pro .cal-*) */
.cm-cal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); overflow-x: auto; }
.cm-cal-ro .cal-open-btn { pointer-events: none; }
.cm-cal-ro .cal-edit { display: none; }
.cm-cal .cal-btn { border-radius: 999px; }
html[data-theme="dark"] .cal-toolbar, html[data-theme="dark"] .cal-week, html[data-theme="dark"] .cal-btn { background: var(--panel); }
html[data-theme="dark"] .cal-period label, html[data-theme="dark"] .cal-legend { color: var(--muted); }
html[data-theme="dark"] .cal-week-title { background: var(--soft); }
html[data-theme="dark"] .cal-day { border-left: 1px solid var(--line); background: var(--panel); }
html[data-theme="dark"] .cal-day.cal-weekend { background: #171d47; }
html[data-theme="dark"] .cal-day.cal-outside { background: #0f1438; }
html[data-theme="dark"] .cal-open-btn.is-open, html[data-theme="dark"] .cal-open-label.is-open { background: #0d3a32; color: #6ee6c6; border-color: #1d5a4b; }
html[data-theme="dark"] .cal-open-btn.is-closed, html[data-theme="dark"] .cal-open-label.is-closed { background: #1c2148; color: #a3a8c9; border-color: #2b3266; }
html[data-theme="dark"] .cal-name { color: #e9eaf6 !important; }
html[data-theme="dark"] .cal-icon { color: #c3c6e0 !important; }
html[data-theme="dark"] .cal-menu { background: var(--panel); border: 1px solid var(--line); }
html[data-theme="dark"] .cal-menu-item { color: var(--text); }
html[data-theme="dark"] .cal-menu-item:hover, html[data-theme="dark"] .cal-menu-item:focus { background: var(--soft); }
html[data-theme="dark"] .cal { --cal-border: #2b3266; color: var(--text); }
html[data-theme="dark"] .cal-chip { background: color-mix(in srgb, var(--c) 22%, #141a3f); }
html[data-theme="dark"] .cal-chip.cal-ext { --bg: #1f254d; }
html[data-theme="dark"] .cal-cap { color: var(--muted); }
.cm-main details.cm-panel summary { list-style-position: inside; }
.cm-cal .cal { --cal-pink: #6a2ef0; --cal-border: var(--line); }
html[data-theme="dark"] .cm-cal .cal { --cal-pink: #9b78ff; --cal-border: #2b3266; }
.cm-cal .cal-week-title { background: var(--soft); }
.cm-cal .cal-day.cal-weekend { background: #f8f7ff; }
html[data-theme="dark"] .cm-cal .cal-day.cal-weekend { background: #171d47; }

/* 1Z247: ucty v CM */
a.cm-user { text-decoration: none; }
.cm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .02em; }
.cm-once { border: 2px solid var(--cm-green) !important; }
.cm-security .pk-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; box-shadow: var(--shadow); }
.cm-security .pk-btn { border-radius: 999px; }
.cm-security h2 { font-size: 17px; }

/* 1Z250: provozni kalendar */
.cms-open { color: var(--ok); font-weight: 700; }
.cms-closed { color: var(--err); font-weight: 700; }
.cm-table tr.cms-hol td { background: var(--soft); }
.cal-holiday { margin: 2px 0 4px; font-size: 11.5px; font-weight: 700; color: #8a5300; }
html[data-theme="dark"] .cal-holiday { color: #ffd18a; }
.cm-row input[type=time] { padding: 8px; }
/* 1Z252 – sprava smen */
.cm-btn-sm { padding: 4px 10px; font-size: 13px; min-height: 0; border-radius: 8px; }
.cms-legend { margin: 4px 0 8px; }
.cms-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cms-badge-auto { background: var(--info-bg); color: var(--info); }
.cms-badge-manual { background: var(--warn-bg); color: var(--warn); }
.cm-table tr.cms-manual td { background: var(--warn-bg); }
.cm-table tr.cms-manual td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.cm-table tr.cms-cancelled td:nth-child(n+3):not(.cms-actions) { text-decoration: line-through; opacity: .75; }
.cm-table tr.cms-cancelled td:nth-child(3) { text-decoration: none; opacity: 1; }
.cm-table tr.cms-sub td { border-top-style: dashed; }
.cm-table tr.cms-dayfoot td { padding-top: 2px; padding-bottom: 8px; }
.cms-actions { white-space: normal; width: 150px; }
.cms-day { white-space: nowrap; }
.cms-holname { white-space: normal; color: var(--muted); }
.cms-actions .cm-btn { white-space: nowrap; }
.cms-actions form, .cms-actions .cm-btn { margin: 2px 0; }
.cms-dialog { border: 0; border-radius: var(--radius); padding: 0; background: var(--panel); color: var(--text); box-shadow: 0 10px 40px rgba(10,20,71,.35); width: min(420px, calc(100vw - 32px)); }
.cms-dialog::backdrop { background: rgba(10,20,71,.45); }
.cms-dlg-form { padding: 18px 20px; display: grid; gap: 10px; }
.cms-dlg-form h3 { margin: 0; font-size: 18px; }
.cms-dlg-form p { margin: 0; }
.cms-dlg-form label { font-size: 14px; }
.cms-dlg-form input[type=text], .cms-dlg-form select { width: 100%; }
.cms-dlg-times { display: flex; gap: 12px; flex-wrap: wrap; }
.cms-dlg-btns { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 700px) { .cms-actions { white-space: normal; } }
/* 1Z252 – mobil: smeny jako karty (bez vodorovneho posouvani) */
@media (max-width: 700px) {
  .cms-shifts thead { display: none; }
  .cms-shifts, .cms-shifts tbody, .cms-shifts tr, .cms-shifts td { display: block; width: 100%; }
  .cms-shifts tr { border-top: 1px solid var(--line); padding: 6px 4px; }
  .cms-shifts tr.cms-sub { border-top: 1px dashed var(--line); }
  .cms-shifts td { border: 0 !important; padding: 2px 8px !important; white-space: normal !important; }
  .cms-shifts td.cms-empty { display: none; }
  .cms-shifts td[data-l] { display: flex; gap: 8px; }
  .cms-shifts td[data-l]::before { content: attr(data-l); flex: 0 0 72px; color: var(--muted); font-size: 12.5px; }
  .cms-shifts td.cms-day { font-size: 15px; padding-top: 6px !important; }
  .cms-shifts tr.cms-dayfoot { border-top: 0; padding-top: 0; }
  .cms-shifts .cms-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px !important; }
  .cm-table tr.cms-manual td:first-child { box-shadow: none; }
  .cm-table tr.cms-manual { box-shadow: inset 4px 0 0 var(--warn); }
}
@media (max-width: 700px) {
  .cms-shifts td { min-width: 0; overflow-wrap: anywhere; }
  .cms-shifts td[data-l] { flex-wrap: wrap; }
  .cms-shifts tr.cms-dayfoot td[colspan] { display: flex; flex-wrap: wrap; gap: 6px; }
  .cms-shifts .cm-btn { white-space: normal; text-align: left; }
}
/* 1Z253 – QR dochazka */
.cmat-daypick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.cmat-daypick input[type=date] { max-width: 170px; }
.cm-table tr.cmat-missing td { background: var(--err-bg); }
.cm-table tr.cmat-manual td { background: var(--warn-bg); }
.cm-table tr.cmat-void td:not(.cms-actions) { text-decoration: line-through; opacity: .7; }
.cmat-times { display: flex; gap: 12px; flex-wrap: wrap; }
.cmat-loc { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cmat-loc input[type=text], .cmat-loc input[type=number] { max-width: 150px; width: 150px; }
.cmat-qr { display: block; background: #fff; padding: 8px; border-radius: 12px; margin: 8px 0; max-width: 100%; height: auto; }
.cmat-pair { border: 2px solid var(--accent) !important; }
@media (max-width: 700px) {
  .cmat-table thead { display: none; }
  .cmat-table, .cmat-table tbody, .cmat-table tr, .cmat-table td { display: block; width: 100%; }
  .cmat-table tr { border-top: 1px solid var(--line); padding: 6px 4px; }
  .cmat-table td { border: 0 !important; padding: 2px 8px !important; }
  .cmat-table td[data-l] { display: flex; gap: 8px; flex-wrap: wrap; }
  .cmat-table td[data-l]::before { content: attr(data-l); flex: 0 0 96px; color: var(--muted); font-size: 12.5px; }
  .cmat-table .cms-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px !important; }
}
/* kiosek */
.cmat-kiosk { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr auto; gap: 16px 24px; padding: 20px 28px; box-sizing: border-box; }
.cmat-kiosk header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.cmat-k-club { font-size: 22px; font-weight: 700; }
.cmat-k-clock { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmat-k-main { text-align: center; align-self: center; }
.cmat-k-main h1 { font-size: 34px; }
.cmat-k-qr { display: inline-block; background: #fff; padding: 16px; border-radius: 20px; box-shadow: var(--shadow); margin: 12px 0; }
.cmat-k-qr img { display: block; width: min(60vh, 70vw, 420px); height: auto; image-rendering: pixelated; }
.cmat-k-bar { width: min(60vh, 70vw, 420px); height: 6px; margin: 0 auto; background: var(--line); border-radius: 99px; overflow: hidden; }
.cmat-k-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.cmat-k-hint { color: var(--muted); }
.cmat-k-recent { background: var(--panel); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); align-self: start; }
.cmat-k-recent ul { list-style: none; margin: 0; padding: 0; }
.cmat-k-recent li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.cmat-k-recent li span { color: var(--muted); font-size: 14px; }
.cmat-k-recent li.cmat-in b { color: var(--ok); }
.cmat-k-recent li.cmat-out b { color: var(--accent); }
.cmat-k-foot { grid-column: 1 / -1; }
@media (max-width: 860px), (orientation: portrait) { .cmat-kiosk { grid-template-columns: minmax(0, 1fr); } }
/* sken */
.cmat-res { text-align: center; padding: 10px 0; }
.cmat-res-icon { font-size: 56px; line-height: 1.1; }
.cmat-res-time { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmat-res-ok p { color: var(--ok); font-weight: 600; font-size: 17px; }
.cmat-res-err p { color: var(--err); font-weight: 600; }
.cmat-geo { font-size: 17px; }
/* 1Z254 – napoveda, overovaci stranka, podminky, tydenni rozvrh */
.cm-help h2 { margin-bottom: 6px; }
.cm-help-item { border-top: 1px solid var(--line); padding: 4px 0; }
.cm-help-item > summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--accent); list-style-position: inside; }
.cm-help-body { padding: 0 0 8px; }
.cm-help-body p, .cm-help-body li { line-height: 1.55; }
.cm-help-body ul { padding-left: 20px; margin: 6px 0; }
.cmat-v { border-radius: 14px; padding: 14px 16px; margin: 6px 0 12px; color: #fff; }
.cmat-v-head { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.cmat-v-head b { font-size: 19px; }
.cmat-v-ico { flex: 0 0 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.cmat-v-green { background: #15803d; }
.cmat-v-red { background: #b91c1c; }
.cmat-v-orange { background: #c2410c; }
.cmat-v-msg { font-weight: 600; }
.cmat-v-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 12px; }
.cmat-v-table th, .cmat-v-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmat-v-table th { color: var(--muted); font-weight: 500; width: 42%; }
.cmat-v-next { background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.cmat-terms h3 { font-size: 15px; margin: 12px 0 4px; }
.cmat-terms p { margin: 0 0 6px; line-height: 1.5; }
.cmat-terms-form { margin: 12px 0; display: grid; gap: 10px; }
.cmat-privacy li { margin: 0 0 6px; line-height: 1.5; }
.cm-table tr.cmat-review td { background: #fff1e6; }
html[data-theme="dark"] .cm-table tr.cmat-review td { background: #3a2412; }
.cmat-badge-review { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #c2410c; color: #fff; font-size: 12px; font-weight: 600; }
.cmat-addr { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 8px; }
.cmat-addr-l { flex: 1 1 320px; }
.cmat-addr-l input { width: 100%; }
.cmat-acc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-items: end; }
.cmat-acc-form input { width: 100%; }
.cmat-secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .04em; }
.cmat-attempts { list-style: none; padding: 0; margin: 8px 0 0; }
.cmat-attempts li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cmat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; background: #888; }
.cmat-a-green .cmat-dot { background: #15803d; } .cmat-a-red .cmat-dot { background: #b91c1c; } .cmat-a-orange .cmat-dot { background: #c2410c; }
.cms-week td { vertical-align: middle; }
.cms-week input[type=time] { max-width: 130px; }
@media (max-width: 700px) { .cms-week input[type=time] { max-width: 110px; padding: 7px 6px; } }
/* 1Z255 – prepinac jazyka v paticce CM */
.cm-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0 0 8px; font-size: 13.5px; }
.cm-langs a { color: var(--muted); text-decoration: none; }
.cm-langs a:hover, .cm-langs a:focus { color: var(--accent); text-decoration: underline; }
.cm-langs b { color: var(--text); }
/* 1Z255 – honorare */
.cmf-sums .cm-card-num { position: static; font-size: 20px; white-space: normal; }
.cmf-eng > summary { color: var(--text); font-weight: 400; }
.cm-table tr.cmf-paid td { color: var(--muted); }
.cm-table tr.cmf-none td, .cm-table tr.cmf-review td:nth-child(3) { color: var(--err); }
.cm-table tr.cmf-adj td { background: var(--soft); }
.cmf-nights tfoot th { text-align: left; padding: 10px 12px; }
.cmf-nights tfoot th:last-child { white-space: nowrap; }
.cmf-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 10px; }
.cmf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cmf-form h3 { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.cmf-form .cmf-wide, .cmf-form button { grid-column: 1 / -1; }
.cmf-form input, .cmf-form select { width: 100%; }
.cmf-pay { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmf-answer { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.cmf-answer details > summary { list-style: none; cursor: pointer; }
.cmf-answer details[open] { display: grid; gap: 6px; }
/* 1Z256 – provize */
.cmc-grid td, .cmc-grid th { text-align: center; vertical-align: top; }
.cmc-grid td:first-child, .cmc-grid th:first-child { text-align: left; }
.cmc-qty { width: 76px; text-align: center; }
.cmc-disp { margin-top: 4px; font-size: 12.5px; }
.cmc-items input[type=text] { width: 100%; min-width: 120px; }
.cmc-items input.cmc-short { width: 90px; min-width: 0; }
.cm-table tr.cmf-comm td { background: #f2fbf8; }
html[data-theme="dark"] .cm-table tr.cmf-comm td { background: #10302a; }
.cmc-dispute { display: inline-block; }
.cmc-dispute > summary { list-style: none; cursor: pointer; }
.cmc-dispute form { margin-top: 6px; }
@media (max-width: 700px) {
  .cmc-grid thead { display: none; }
  .cmc-grid, .cmc-grid tbody, .cmc-grid tr, .cmc-grid td { display: block; width: 100%; }
  .cmc-grid tr { border-top: 1px solid var(--line); padding: 6px 4px; }
  .cmc-grid td { border: 0 !important; padding: 3px 8px !important; text-align: left; }
  .cmc-grid td[data-l] { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .cmc-grid td[data-l]::before { content: attr(data-l); flex: 0 0 120px; color: var(--muted); font-size: 12.5px; }
}
/* 1Z257 – trzby */
.cmr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cmr-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; }
.cmr-form legend { font-weight: 700; padding: 0 6px; }
.cmr-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.cmr-row span { flex: 1 1 auto; }
.cmr-num { width: 140px; text-align: right; font-variant-numeric: tabular-nums; }
.cmr-total { border-bottom: 0; font-size: 16px; padding-top: 8px; }
.cmr-wide { display: block; margin: 10px 0; }
.cmr-wide input { width: 100%; }
.cmr-bar { display: inline-block; width: 90px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.cmr-bar i { display: block; height: 100%; background: var(--accent); }
.cmr-chk { display: inline-flex; margin-right: 10px; font-size: 13.5px; }

/* 1Z259: vyber jazyka (hlavicka a stranky bez navigace) */
.cm-lang-select { display: flex; align-items: center; gap: 4px; margin: 0; }
.cm-lang-ico { font-size: 15px; line-height: 1; }
.cm-lang-select select { height: 36px; max-width: 150px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 18px; background-color: transparent; color: var(--text); font-size: 14px; cursor: pointer; }
.cm-lang-select select option { color: #111; background: #fff; }
.cm-lang-select noscript button { height: 36px; }
.cm-bare-lang { display: flex; justify-content: flex-end; padding: 12px 16px 0; }
@media (max-width: 720px) {
  .cm-lang-ico { display: none; }
  .cm-lang-select select { max-width: 112px; font-size: 13px; padding: 0 22px 0 8px; }
}
.cm-bare-lang .cm-lang-select select { background-color: var(--panel); }

/* 1Z261: ochrana osobnich udaju a cookies */
.cm-foot-links { margin: 0 0 6px; }
.cm-foot-links a { color: var(--muted); }
.cm-foot-links a:hover, .cm-foot-links a:focus { color: var(--accent); }
.cm-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(10, 20, 71, .22); font-size: 13.5px; line-height: 1.45; }
.cm-cookie[hidden] { display: none; }
.cm-cookie p { margin: 0; flex: 1 1 auto; }
.cm-cookie .cm-btn { flex: 0 0 auto; }
@media (max-width: 560px) { .cm-cookie { flex-direction: column; align-items: stretch; } }
.cm-doc { display: flex; justify-content: center; padding: 24px 16px 8px; }
.cm-doc-card { width: 100%; max-width: 820px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
.cm-doc-card h1 { margin: 12px 0 4px; font-size: 26px; }
.cm-doc-card h2 { margin: 24px 0 8px; font-size: 18px; }
.cm-doc-card p, .cm-doc-card li { line-height: 1.6; }
.cm-doc-card ul { padding-left: 20px; }
.cm-doc-logo { display: inline-block; }
.cm-doc-table td:first-child { white-space: nowrap; }
.cm-doc-table code { font-size: 12.5px; }
@media (max-width: 560px) { .cm-doc-card { padding: 20px 16px; } .cm-doc-table td:first-child { white-space: normal; overflow-wrap: anywhere; } }
