/* zapis UI — dizajn C „Ateliér“, paleta C3 „Terakota“. Čisté CSS bez frameworku a bez build kroku.
   Pravidlá (docs/ui.md): farby len cez tokeny nižšie (test AC 008/3), žiadne data: URI, externé url(),
   @import ani @font-face (prísne CSP: default-src 'self'), žiadne inline štýly v šablónach.
   Akcent prepisuje /static/brand.css (BRAND_ACCENT), načítaný za týmto súborom. */

:root {
  --accent: #a1432a;
  --accent-contrast: #ffffff;
  --accent-hover: #88371f;

  --bg: #f7f3ed;
  --surface: #fffdf9;
  --raised: #f0ebe2;
  --text: #231f1b;
  --muted: #6b625a;
  --line: #e6e0d5;
  --line-strong: #cdc4b6;
  /* okraj ovládacích prvkov (inputy, selecty, .seg, rádio karty, vypnutý prepínač): ≥ 3 : 1 voči surface/bg/raised (WCAG 1.4.11, 018) */
  --control-border: #8a8075;

  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --accent-soft-2: color-mix(in srgb, var(--accent) 22%, var(--surface));
  --accent-text: color-mix(in srgb, var(--accent) 85%, var(--text));

  --ok-bg: #dff0dc;   --ok-fg: #215c2b;
  --info-bg: #e0e8ef; --info-fg: #294b68;
  --warn-bg: #f9ecc4; --warn-fg: #6a4a00;
  --err-bg: #f9dfe3;  --err-fg: #8c1d36;
  --neu-bg: #f0ebe2;  --neu-fg: #443d37;
  --dim-bg: #eeebe6;  --dim-fg: #6f6861;
  --danger: #a9203b;
  --danger-contrast: #ffffff;

  --s1: #a1432a; --s2: #2f5f8f; --s3: #8e5708; --s4: #8a3d6a; --s5: #7a5a2a; --s6: #2f6e2e; --s7: #625d57;

  --shadow: 0 1px 2px rgba(50,30,20,.05), 0 8px 24px rgba(50,30,20,.06);
  --shadow-lg: 0 2px 4px rgba(50,30,20,.08), 0 20px 48px rgba(50,30,20,.14);
  --shadow-xs: 0 1px 3px rgba(0,0,0,.08);
  --shadow-knob: 0 1px 2px rgba(0,0,0,.3);
  --knob: #ffffff;
  --backdrop: rgba(40,26,20,.4);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --pill: 999px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --fs-2xs: 12px; --fs-xs: 13px; --fs-sm: 14px; --fs-base: 16px; --fs-lg: 20px; --fs-xl: 25px; --fs-2xl: 31px; --fs-3xl: 39px;

  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --topbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #e8916e; --accent-contrast: #1f130e; --accent-hover: #f0a988;
    --bg: #191614; --surface: #211d1a; --raised: #2c2723; --text: #ece6dd; --muted: #a89f95;
    --line: #36302b; --line-strong: #4a423b; --control-border: #80766b;
    --ok-bg: #1b331c; --ok-fg: #9bd690; --info-bg: #1b2b3a; --info-fg: #9cc2e3; --warn-bg: #3c2d0c; --warn-fg: #f0c56a;
    --err-bg: #3f1a24; --err-fg: #f4a0b4; --neu-bg: #302a26; --neu-fg: #cdc5bb; --dim-bg: #262220; --dim-fg: #a89f95;
    --danger: #f28ca0; --danger-contrast: #1a0e0e;
    --s1: #e8916e; --s2: #86b3e0; --s3: #e9b45a; --s4: #dc93c3; --s5: #d1b07c; --s6: #8fd07c; --s7: #aba39a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.5);
    --backdrop: rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
html[data-theme="dark"] {
  --accent: #e8916e; --accent-contrast: #1f130e; --accent-hover: #f0a988;
  --bg: #191614; --surface: #211d1a; --raised: #2c2723; --text: #ece6dd; --muted: #a89f95;
  --line: #36302b; --line-strong: #4a423b; --control-border: #80766b;
  --ok-bg: #1b331c; --ok-fg: #9bd690; --info-bg: #1b2b3a; --info-fg: #9cc2e3; --warn-bg: #3c2d0c; --warn-fg: #f0c56a;
  --err-bg: #3f1a24; --err-fg: #f4a0b4; --neu-bg: #302a26; --neu-fg: #cdc5bb; --dim-bg: #262220; --dim-fg: #a89f95;
  --danger: #f28ca0; --danger-contrast: #1a0e0e;
  --s1: #e8916e; --s2: #86b3e0; --s3: #e9b45a; --s4: #dc93c3; --s5: #d1b07c; --s6: #8fd07c; --s7: #aba39a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.5);
  --backdrop: rgba(0,0,0,.55);
  color-scheme: dark;
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); font-size: var(--fs-base); line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-base); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.25em; }
code, pre, kbd, .mono { font-family: var(--mono); font-size: max(0.9em, 12px); }
code { background: var(--raised); padding: 1px 6px; border-radius: 6px; }
pre { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-4); overflow: auto; margin: 0 0 var(--sp-4); line-height: 1.45; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
img, svg { vertical-align: middle; }
.tnum, time, .time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 600; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-5); }
.page { padding: var(--sp-6) 0 var(--sp-7); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.page-head h1 { margin-bottom: var(--sp-1); }
.page-head p { margin: 0; color: var(--muted); }
.row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-5); align-items: start; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--topbar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand-org { color: var(--muted); font-weight: 400; font-size: var(--fs-sm); margin-left: 2px; }
.nav { flex: 1; min-width: 0; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); align-items: center; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; border: 0; background: transparent; font: inherit; cursor: pointer; line-height: 1.3; }
.pill:hover { background: var(--raised); color: var(--text); }
.pill[aria-current="page"], .pill.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.pills-sm .pill { padding: 6px 12px; font-size: var(--fs-sm); }
.topbar-tools { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.lang { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--muted); padding: 0 4px; }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 4px; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--text); font-weight: 600; }
.lang a:hover { background: var(--raised); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--pill); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn.bordered { border-color: var(--line); background: var(--surface); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

/* menus (details) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--sp-2); z-index: 40; }
.menu-panel.left { right: auto; left: 0; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--radius-xs); color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--raised); }
.menu-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: var(--sp-2); display: flex; gap: 12px; align-items: center; }
.menu-head .name { font-weight: 600; line-height: 1.2; }
.menu-head .email { color: var(--muted); font-size: var(--fs-xs); }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .pills { padding: var(--sp-2) 0; }

/* ---------- avatars ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 600; letter-spacing: 0; flex: none; background: var(--accent-soft-2); color: var(--accent-text); }
.avatar.sm { width: 24px; height: 24px; font-size: var(--fs-2xs); }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.av-1 { background: color-mix(in srgb, var(--s1) 18%, var(--surface)); color: var(--s1); }
.av-2 { background: color-mix(in srgb, var(--s2) 18%, var(--surface)); color: var(--s2); }
.av-3 { background: color-mix(in srgb, var(--s3) 18%, var(--surface)); color: var(--s3); }
.av-4 { background: color-mix(in srgb, var(--s4) 18%, var(--surface)); color: var(--s4); }
.av-5 { background: color-mix(in srgb, var(--s5) 18%, var(--surface)); color: var(--s5); }
.av-6 { background: color-mix(in srgb, var(--s6) 18%, var(--surface)); color: var(--s6); }
.av-7 { background: color-mix(in srgb, var(--s7) 18%, var(--surface)); color: var(--s7); }
.av-bot { background: var(--text); color: var(--surface); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -6px; box-sizing: content-box; }
.avatar-stack .avatar.sm { margin-left: -3px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.person > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.person .person-name { font-weight: 500; line-height: 1.2; }
.person .person-sub { color: var(--muted); font-size: var(--fs-xs); line-height: 1.2; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; transition: box-shadow .12s; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--raised); color: var(--text); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { background: var(--accent-soft-2); color: var(--accent-text); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { background: var(--raised); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--err-bg); color: var(--err-fg); }
.btn-danger.solid { background: var(--danger); color: var(--danger-contrast); border-color: transparent; }
.btn-lg { padding: 13px 22px; font-size: var(--fs-base); }
.btn-sm { padding: 6px 10px; font-size: var(--fs-xs); border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; background: var(--neu-bg); color: var(--neu-fg); white-space: nowrap; }
.chip .icon { width: 13px; height: 13px; }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-info { background: var(--info-bg); color: var(--info-fg); }
.chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-err { background: var(--err-bg); color: var(--err-fg); }
.chip-neu { background: var(--neu-bg); color: var(--neu-fg); }
.chip-dim { background: var(--dim-bg); color: var(--dim-fg); font-weight: 500; }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.chip-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 500; }
.chip-lg { padding: 6px 14px; font-size: var(--fs-sm); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip .dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.chip-speaker { font-weight: 600; }
.sp-1 { background: color-mix(in srgb, var(--s1) 14%, var(--surface)); color: var(--s1); }
.sp-2 { background: color-mix(in srgb, var(--s2) 14%, var(--surface)); color: var(--s2); }
.sp-3 { background: color-mix(in srgb, var(--s3) 14%, var(--surface)); color: var(--s3); }
.sp-4 { background: color-mix(in srgb, var(--s4) 14%, var(--surface)); color: var(--s4); }
.sp-5 { background: color-mix(in srgb, var(--s5) 14%, var(--surface)); color: var(--s5); }
.sp-6 { background: color-mix(in srgb, var(--s6) 14%, var(--surface)); color: var(--s6); }
.sp-7 { background: color-mix(in srgb, var(--s7) 14%, var(--surface)); color: var(--s7); }
.chip-platform { background: var(--raised); color: var(--text); font-weight: 500; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-5); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card + .card { margin-top: var(--sp-5); }
.card-tight { padding: var(--sp-4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-flat { box-shadow: none; border: 1px solid var(--line); }
.card-tint { background: var(--raised); box-shadow: none; border: 0; }
.card-accent { background: var(--accent-soft); box-shadow: none; border: 0; }
.section-title { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--sp-2); }
.divided > * + * { border-top: 1px solid var(--line); padding-top: var(--sp-4); margin-top: var(--sp-4); }

/* ---------- callouts & banners ---------- */
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: var(--fs-sm); align-items: flex-start; }
.callout .icon { margin-top: 2px; }
.callout p { margin: 0; }
.callout-info { background: var(--info-bg); color: var(--info-fg); }
.callout-warn { background: var(--warn-bg); color: var(--warn-fg); }
.callout-err { background: var(--err-bg); color: var(--err-fg); }
.callout-ok { background: var(--ok-bg); color: var(--ok-fg); }
.callout-neutral { background: var(--raised); color: var(--text); }
.callout a { color: inherit; }
.banner { background: var(--warn-bg); color: var(--warn-fg); font-size: var(--fs-sm); }
.banner .container { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.banner a { color: inherit; }
.banner-err { background: var(--err-bg); color: var(--err-fg); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field > label, .field > .label { font-weight: 600; font-size: var(--fs-sm); }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: var(--fs-sm); }
.hint { color: var(--muted); font-size: var(--fs-xs); margin: 0; }
.error-text { color: var(--err-fg); font-size: var(--fs-xs); margin: 0; display: flex; gap: 6px; align-items: center; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); }
.input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; padding-right: 32px; }
/* šípka selectu bez data: URI (CSP): obal .select s ::after */
.select { position: relative; display: block; min-width: 0; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select.inline { display: inline-block; }
.input-sm { padding: 6px 10px; font-size: var(--fs-xs); border-radius: 8px; }
.input-group { display: flex; gap: var(--sp-2); align-items: stretch; }
.input-group .input { flex: 1; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check .check-text { line-height: 1.4; }
.check .check-sub { display: block; color: var(--muted); font-size: var(--fs-xs); }
.radio-cards { display: grid; gap: var(--sp-2); }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.radio-card input { accent-color: var(--accent); margin-top: 3px; width: 18px; height: 18px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card .rc-title { font-weight: 600; font-size: var(--fs-sm); }
.radio-card .rc-sub { color: var(--muted); font-size: var(--fs-xs); }
.radio-card:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 24px; border-radius: var(--pill); background: var(--control-border); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); top: 3px; left: 3px; transition: transform .15s; box-shadow: var(--shadow-knob); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--raised); border-radius: var(--pill); padding: 3px; gap: 2px; border: 1px solid var(--control-border); margin: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label, .seg .seg-item { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--pill); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked), .seg .seg-item[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
/* vypnutá možnosť: len priehľadnosť, bez prečiarknutia; dôvod cez aria-describedby (018) */
.seg label:has(input:disabled), .seg label:has(input[aria-disabled="true"]) { opacity: .5; cursor: not-allowed; }
.seg-block { display: flex; width: 100%; }
.seg-block label { flex: 1; justify-content: center; }
.form-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-top: var(--sp-5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-5); }
.copy-row { display: flex; align-items: center; gap: var(--sp-2); background: var(--raised); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; }
.copy-row code { background: none; padding: 0; font-size: var(--fs-sm); flex: 1; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 4px; background: var(--raised); border-radius: var(--pill); padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.tab { border: 0; background: transparent; padding: 7px 16px; border-radius: var(--pill); font: inherit; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs); }
.tab .count { background: var(--accent-soft); color: var(--accent-text); border-radius: var(--pill); padding: 0 7px; font-size: var(--fs-2xs); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--raised); }
.table th:first-child { border-top-left-radius: var(--radius-sm); }
.table th:last-child { border-top-right-radius: var(--radius-sm); }
.table tr:last-child td { border-bottom: 0; }
.table-dense th, .table-dense td { padding: 7px 10px; font-size: var(--fs-xs); }
.table tbody tr:hover td { background: color-mix(in srgb, var(--raised) 50%, transparent); }
.table tr.is-selected td { background: var(--accent-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.time { white-space: nowrap; }
.table details summary { cursor: pointer; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; }
.kv-wide dt { min-width: 160px; }

/* ---------- meetings list ---------- */
.filters { display: flex; gap: var(--sp-3); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.filters .filters-search { flex: 0 1 340px; min-width: 220px; margin-left: auto; }
.filters-more > summary { list-style: none; }
.filters-more > summary::-webkit-details-marker { display: none; }
.filters-more .count { background: var(--accent-soft); color: var(--accent-text); border-radius: var(--pill); padding: 0 7px; font-size: var(--fs-2xs); }
.filters-panel { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.filters select.input { width: auto; min-width: 150px; }
.filters.card { align-items: flex-end; }
.filters.card .field { margin-bottom: 0; }
/* zoznam (018): jeden kontajner, riadky s oddeľovačmi, skupiny podľa obdobia */
.mlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); overflow: hidden; }
.mgroup { padding: 10px 20px 4px; background: var(--raised); border-top: 1px solid var(--line); }
.mgroup:first-child { border-top: 0; }
.mgroup-h { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; }
.mgroup-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info-fg); }
.mgroup-h .dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px var(--sp-4); align-items: center; padding: 6px 20px; border-top: 1px solid var(--line); }
.mgroup + .mrow, .mlist > .mrow:first-child { border-top: 0; }
.mrow:hover { background: color-mix(in srgb, var(--raised) 50%, transparent); }
.mrow .mrow-day { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mrow .mrow-main { min-width: 0; }
.mrow .mrow-title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; text-decoration: none; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mrow-title:hover { color: var(--accent-text); }
.mrow .mrow-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
.mrow .mrow-minutes { display: inline-flex; align-items: center; gap: 3px; color: var(--ok-fg); font-weight: 600; }
.mrow .mrow-reason { color: var(--err-fg); }
.mrow .mrow-side { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; justify-content: flex-end; }
.live-meetings { margin-bottom: var(--sp-5); }
.live-meetings > .mgroup-h { margin-bottom: var(--sp-2); }
.mlist-live .mrow { border-left: 3px solid var(--info-fg); }
.mlist .load-more { padding: var(--sp-3) 0; margin-top: 0; border-top: 1px solid var(--line); }
.mrow.is-dim { opacity: .7; }
.load-more { display: flex; justify-content: center; margin-top: var(--sp-5); }

/* ---------- hero (meeting) ---------- */
.hero { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-5); margin-bottom: var(--sp-5); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.hero-top { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: flex-start; flex-wrap: wrap; }
.hero h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: var(--fs-sm); }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.hero-bottom { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.hero-bottom .block { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.hero-bottom .block .lbl { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
/* detail (018): hlavička + karty Zápis · Prepis · Rečníci · Bot; bez JS sú panely pod sebou */
.detail-head { margin-bottom: var(--sp-4); }
.detail-head .hero { margin-bottom: var(--sp-4); }
.hero-main { min-width: 0; }
.hero-meta { margin: 0; }
.hero-meta .meta-link { display: inline-flex; align-items: center; gap: 4px; }
.hero-access { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.access-line { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.access-line .lbl { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.access-line .sep { color: var(--muted); }
.access-more { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.access-more summary { cursor: pointer; color: var(--accent-text); font-size: var(--fs-xs); font-weight: 600; }
.access-more ul { margin: 6px 0 0; }
.access-blocks { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-2); }
.access-blocks .block { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.access-blocks .block .lbl { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.panel + .panel { margin-top: var(--sp-5); }
.panel > .card + .card, .panel-bot > * + * { margin-top: var(--sp-5); }
.minutes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-5); align-items: start; }
.minutes-layout > * { min-width: 0; }
.minutes-side { display: flex; flex-direction: column; gap: var(--sp-4); }
.minutes-side .card + .card { margin-top: 0; }
.minutes-side > div:empty { display: none; }
.minutes-extra .section + .section { margin-top: var(--sp-4); }
.bot-compact .bc-line { margin: 0 0 var(--sp-2); }
.bc-steps summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); }
.btn-icon { padding: 10px; }
.menu-more .only-mobile, .menu-more.menu-mobile-only { display: none; }
.task-noowner { display: inline-flex; align-items: center; gap: 4px; color: var(--warn-fg); font-size: var(--fs-xs); font-weight: 600; }

/* živý banner (018): medzi hlavičkou a kartami, kým je bot v hovore */
.live-banner { border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4); border: 1px solid var(--line); }
.lb-info { background: var(--info-bg); color: var(--info-fg); }
.lb-warn { background: var(--warn-bg); color: var(--warn-fg); }
.lb-err { background: var(--err-bg); color: var(--err-fg); }
.lb-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lb-head > .icon { margin-top: 3px; }
.lb-text { flex: 1; min-width: 220px; }
.lb-title { font-size: var(--fs-base); margin: 0; }
.lb-sub { margin: 2px 0 0; font-size: var(--fs-sm); }
.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; margin-top: 7px; flex: none; }
.lb-dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
.lb-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.lb-actions form { margin: 0; }
.live-banner .steps { margin-bottom: var(--sp-2); }
.live-banner .steps li { color: inherit; }
.live-banner .steps li::after { background: var(--surface); }
.lb-results { margin: 0; font-size: var(--fs-sm); }

/* ---------- bot status ---------- */
.bot-card .bot-state { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3); }
.bot-card .bot-state .avatar { width: 40px; height: 40px; }
.steps { list-style: none; margin: var(--sp-3) 0 var(--sp-3); padding: 0; display: flex; gap: 0; counter-reset: step; }
.steps li { flex: 1; min-width: 0; position: relative; text-align: center; font-size: var(--fs-2xs); padding-left: 2px; padding-right: 2px; hyphens: manual; color: var(--muted); padding-top: 18px; line-height: 1.2; }
.steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; background: var(--line); }
.steps li:first-child::before { left: 50%; border-radius: 3px 0 0 3px; }
.steps li:last-child::before { right: 50%; border-radius: 0 3px 3px 0; }
.steps li::after { content: ""; position: absolute; top: 1px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--accent); }
.steps li.done::after { background: var(--accent); border-color: var(--accent); }
.steps li.current { color: var(--accent-text); font-weight: 600; }
.steps li.current::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.steps li.current::after { background: var(--surface); border-color: var(--accent); border-width: 3px; box-shadow: 0 0 0 4px var(--accent-soft); }
.steps li.failed { color: var(--err-fg); }
.steps li.failed::after { background: var(--err-bg); border-color: var(--err-fg); }
.steps li.ok::before { background: var(--s6); }
.steps li.ok::after { background: var(--s6); border-color: var(--s6); }
.steps li.ok { color: var(--ok-fg); font-weight: 600; }
.steps-lg li { font-size: var(--fs-xs); padding-top: 24px; }
.steps-lg li::before { top: 7px; }
.steps-lg li::after { top: 2px; width: 13px; height: 13px; margin-left: -6.5px; }

/* ---------- speakers & timeline ---------- */
.speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.speaker { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.speaker .person { gap: 10px; }
.speaker .speak-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm); }
.speaker meter { grid-column: 1 / -1; width: 100%; height: 8px; }
.timeline { margin-top: var(--sp-4); }
.timeline-axis { display: flex; justify-content: space-between; font-size: var(--fs-2xs); color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; padding: 0 2px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; margin-bottom: 6px; }
.tl-row .tl-name { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* časová os: inline SVG, pásy sú <rect> s x/width vo viewBox jednotkách (bez style=, CSP) */
.tl-track { display: block; width: 100%; height: 14px; background: var(--raised); border-radius: var(--pill); overflow: hidden; }
.tl-track rect { fill: var(--s7); }
.tl-track rect.s1 { fill: var(--s1); } .tl-track rect.s2 { fill: var(--s2); } .tl-track rect.s3 { fill: var(--s3); } .tl-track rect.s4 { fill: var(--s4); }
.tl-track rect.s5 { fill: var(--s5); } .tl-track rect.s6 { fill: var(--s6); } .tl-track rect.s7 { fill: var(--s7); }
.timeline details { margin-top: var(--sp-4); }
.timeline details summary { cursor: pointer; font-size: var(--fs-sm); color: var(--muted); }
meter { width: 100%; height: 8px; border-radius: 4px; }
meter::-webkit-meter-bar { background: var(--raised); border: 0; border-radius: 4px; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 4px; }
meter.m1::-webkit-meter-optimum-value { background: var(--s1); } meter.m2::-webkit-meter-optimum-value { background: var(--s2); }
meter.m3::-webkit-meter-optimum-value { background: var(--s3); } meter.m4::-webkit-meter-optimum-value { background: var(--s4); }
meter.m5::-webkit-meter-optimum-value { background: var(--s5); } meter.m6::-webkit-meter-optimum-value { background: var(--s6); }
meter.m7::-webkit-meter-optimum-value { background: var(--s7); }
meter::-moz-meter-bar { background: var(--accent); border-radius: 4px; }

/* ---------- audio player & transcript ---------- */
.player { position: sticky; top: calc(var(--topbar-h) + 12px); z-index: 5; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 16px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; margin: var(--sp-4) 0; border: 1px solid var(--line); }
.player .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.player .play .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.player .play .icon-pause { display: none; }
.player.is-playing .play .icon-pause { display: block; }
.player.is-playing .play .icon-play { display: none; }
.player .ptime { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); white-space: nowrap; }
.player .ptime .muted { color: var(--muted); }
.player input[type="range"] { width: 100%; accent-color: var(--accent); height: 6px; }
.player .speed { font-size: var(--fs-xs); }
.player .pnote { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); margin: 0; display: flex; gap: 6px; align-items: center; }
.player .pnote[hidden] { display: none; }
.transcript-tools { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-top: var(--sp-4); }
.transcript-tools .input-icon { flex: 1; min-width: 200px; }
.transcript { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px 12px; padding: 10px 12px; border-radius: var(--radius-sm); align-items: start; }
.line:hover { background: var(--raised); }
.line .lt { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--muted); padding-top: 3px; }
.line .lt button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.line .lbody { min-width: 0; }
.line .lspeaker { display: inline-flex; margin-bottom: 4px; }
.line .ltext { margin: 0; }
.line .lactions { opacity: 0; display: flex; gap: 2px; }
.line:hover .lactions, .line:focus-within .lactions { opacity: 1; }
.line.is-current { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.line.is-current .ltext { color: var(--text); }
.line mark { background: color-mix(in srgb, var(--s3) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.version-select { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); }

/* ---------- zápis ---------- */
.summary-card h2 { display: flex; align-items: center; gap: 10px; }
.summary-card .section { margin-top: var(--sp-5); }
.summary-card .section:first-of-type { margin-top: var(--sp-3); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics details { width: 100%; }
.topics details summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.topics details summary::-webkit-details-marker { display: none; }
.topics details[open] summary .chip { background: var(--accent-soft-2); }
.topics details .topic-body { margin: 8px 0 4px 8px; font-size: var(--fs-sm); color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.decision { padding: 12px 14px; background: var(--raised); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.decision blockquote, .quote { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; font-size: var(--fs-xs); }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.task input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 3px; }
.task .ttext { font-size: var(--fs-sm); line-height: 1.4; }
.task .tmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.task .tmeta .person { font-size: var(--fs-xs); color: var(--muted); }
.task .tactions { display: flex; gap: 2px; opacity: 0; }
.task:hover .tactions, .task:focus-within .tactions { opacity: 1; }
.task.is-done .ttext { text-decoration: line-through; color: var(--muted); }
.task.is-editing { grid-template-columns: 1fr; background: var(--accent-soft); border-color: var(--accent); }
.task.is-editing .edit-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.task.is-editing .edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task.is-editing .edit-actions { display: flex; gap: 8px; justify-content: flex-end; }
.due { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--pill); background: var(--raised); font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.due.soon { background: var(--warn-bg); color: var(--warn-fg); }
.due.over { background: var(--err-bg); color: var(--err-fg); }
.export-btns { display: inline-flex; gap: 4px; }

/* ---------- dialog / sheet ---------- */
dialog.sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0; box-shadow: var(--shadow-lg); display: none; flex-direction: column; }
dialog.sheet[open] { display: flex; }
dialog.sheet::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: var(--fs-lg); }
.sheet-body { padding: var(--sp-5); overflow: auto; flex: 1; }
.sheet-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); display: flex; gap: var(--sp-2); justify-content: flex-end; }
dialog.modal { margin: auto; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); padding: var(--sp-5); width: min(480px, calc(100% - 32px)); }
dialog.modal::backdrop { background: var(--backdrop); }
dialog.sheet.dialog-static { position: static; inset: auto; display: flex; width: 100%; max-width: 720px; height: auto; max-height: none; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.share-level { display: flex; flex-direction: column; gap: 8px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.people li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); padding: 6px 8px; border-radius: var(--radius-xs); }
.people li:hover { background: var(--raised); }
.people .why { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; width: min(380px, calc(100% - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 12px 12px 12px 14px; font-size: var(--fs-sm); }
.toast .icon { margin-top: 2px; flex: none; }
.toast .toast-body { flex: 1; }
.toast .toast-title { font-weight: 600; }
.toast .toast-text { color: var(--muted); font-size: var(--fs-xs); }
.toast .toast-actions { margin-top: 6px; display: flex; gap: 6px; }
.toast-ok { border-left-color: var(--s6); } .toast-ok .icon { color: var(--s6); }
.toast-warn { border-left-color: var(--s3); } .toast-warn .icon { color: var(--s3); }
.toast-err { border-left-color: var(--danger); } .toast-err .icon { color: var(--danger); }
.toast-info { border-left-color: var(--info-fg); } .toast-info .icon { color: var(--info-fg); }
.toast[hidden] { display: none; }
.toast-static { position: static; width: auto; }

/* ---------- empty states & loading ---------- */
.empty { text-align: center; padding: var(--sp-6) var(--sp-5); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { color: var(--text); margin: 0; }
.empty p { margin: 0; max-width: 40ch; }
.empty .illu { width: 120px; height: 90px; }
.illu .a { fill: var(--accent-soft-2); stroke: none; }
.illu .b { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illu .c { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.skeleton { display: flex; flex-direction: column; gap: 10px; }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--raised) 25%, color-mix(in srgb, var(--raised) 60%, var(--surface)) 50%, var(--raised) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk.w-50 { width: 50%; } .sk.w-30 { width: 30%; } .sk.w-20 { width: 20%; } .sk.lg { height: 18px; }
.sk-line { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.htmx-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-sm); }
/* includeIndicatorStyles:false (htmx by inline štýl porušil CSP): indikátor skrytý, kým beží request */
.htmx-indicator { visibility: hidden; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { visibility: visible; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; background: var(--raised); border-radius: var(--pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: var(--pill); }
progress { width: 100%; height: 8px; accent-color: var(--accent); }
.chat-bubble { background: var(--raised); border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: var(--fs-sm); max-width: 60ch; }
.chat-bubble.me { background: var(--accent-soft); border-radius: 16px 16px 4px 16px; margin-left: auto; }
.chat-bubble .who { font-weight: 600; font-size: var(--fs-xs); color: var(--muted); display: block; margin-bottom: 4px; }
.chat { display: flex; flex-direction: column; gap: 10px; }

/* ---------- auth pages ---------- */
.auth { min-height: calc(100vh - var(--topbar-h) - 120px); display: grid; place-items: center; padding: var(--sp-6) var(--sp-4); }
.auth-card { width: min(460px, 100%); text-align: center; padding: var(--sp-6); }
.auth-card .logo-big { width: 64px; height: 64px; margin: 0 auto var(--sp-4); display: block; }
.auth-card h1 { font-size: var(--fs-xl); }
.auth-card .btn { margin-top: var(--sp-4); }
.auth-card .note { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-xs); }
.req-id { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-4); }

/* ---------- admin: providers, misc ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .stat-label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .stat-value { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.provider { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--sp-3); align-items: center; }
.provider .picon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.provider .ptitle { font-weight: 600; }
.provider .psub { color: var(--muted); font-size: var(--fs-xs); }
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rule { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; background: var(--raised); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.rule .rule-idx { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-2xs); font-weight: 600; }
.rule code { background: var(--surface); }
.arrow { color: var(--muted); }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--surface); min-height: 42px; align-items: center; }
.chips-input .chip button { border: 0; background: none; color: inherit; padding: 0; margin-left: 2px; cursor: pointer; display: inline-flex; }
.chips-input input { border: 0; background: none; font: inherit; font-size: var(--fs-sm); flex: 1; min-width: 100px; color: var(--text); }
.chips-input input:focus-visible { outline: none; }
.swatch { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.preview-brand { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.diff { font-family: var(--mono); font-size: var(--fs-xs); background: var(--raised); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; white-space: pre; overflow: auto; }
.diff .add { color: var(--ok-fg); background: var(--ok-bg); display: block; }
.diff .del { color: var(--err-fg); background: var(--err-bg); display: block; }
.version-list { list-style: none; margin: 0; padding: 0; }
.version-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.version-list li:last-child { border-bottom: 0; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--sp-3); align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.event .etime { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }
.event .etime strong { display: block; color: var(--text); font-size: var(--fs-base); }
.event .etitle { font-weight: 600; }
.event .esub { color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.event .everdict { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 220px; }
.everdict .why { margin: 0; display: flex; gap: 4px; align-items: flex-start; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
.everdict .why .icon { margin-top: 1px; flex: none; }
.switch input:disabled + .track { opacity: .55; }
.switch:has(input:disabled) { cursor: not-allowed; }
.switch-text { font-weight: 600; }
.rule-status { display: inline-flex; align-items: center; gap: 4px; color: var(--ok-fg); font-size: var(--fs-sm); font-weight: 600; }
.event.is-go { border-left: 4px solid var(--s6); }
.event.is-nogo { border-left: 4px solid var(--line-strong); }
.events { display: flex; flex-direction: column; gap: 10px; }
.day-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: var(--sp-4) 0 var(--sp-2); }
.event .everdict form { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.live-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.live-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
fieldset.radio-cards { border: 0; padding: 0; margin: 0; min-width: 0; }
.states-section { margin-bottom: var(--sp-7); }
.states-section > h2 { padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.json { font-size: var(--fs-xs); }
.detail-panel { background: var(--raised); border-radius: var(--radius-sm); padding: var(--sp-4); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: auto; padding: var(--sp-5) 0; color: var(--muted); font-size: var(--fs-xs); }
.footer .container { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .sitemap { width: 100%; }
.footer .sitemap summary { cursor: pointer; }
.footer .sitemap ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-side { grid-template-columns: minmax(0, 1fr) 320px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .minutes-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-side, .form-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .brand-org { display: none; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 56px; }
  .container { padding: 0 var(--sp-4); }
  .page { padding: var(--sp-5) 0 var(--sp-6); }
  h1 { font-size: var(--fs-xl); }
  .hero h1 { font-size: var(--fs-xl); }
  .card, .hero { padding: var(--sp-4); border-radius: 12px; }
  .topbar-inner { gap: var(--sp-2); }
  /* Len vizuálne skryté: odkaz a tlačidlá si nechajú prístupný názov (axe link-name, button-name, summary-name). */
  .brand span.brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 52px minmax(0, 1fr); padding: 8px 16px; }
  .mrow .mrow-side { grid-column: 2; justify-content: flex-start; }
  .mgroup { padding: 10px 16px 4px; }
  .filters .filters-search { min-width: 100%; flex-basis: 100%; margin-left: 0; }
  .player { grid-template-columns: auto 1fr auto; }
  .player input[type="range"] { grid-column: 1 / -1; }
  .line { grid-template-columns: 44px 1fr; }
  .line .lactions { grid-column: 2; opacity: 1; }
  .task .tactions { opacity: 1; }
  .tl-row { grid-template-columns: 80px 1fr; }
  .event { grid-template-columns: 1fr; }
  .event .everdict { width: auto; }
  .hero-actions .btn span.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* kroky na úzkej obrazovke ako zvislý zoznam (018) */
  .steps { flex-direction: column; gap: 6px; }
  .steps li { text-align: left; padding: 0 0 0 22px; }
  .steps li::before { top: 0; bottom: -6px; left: 6px; right: auto; width: 3px; height: auto; border-radius: 0; }
  .steps li:first-child::before { left: 6px; top: 50%; border-radius: 0; }
  .steps li:last-child::before { right: auto; bottom: 50%; border-radius: 0; }
  .steps li.current::before { background: var(--accent); }
  .steps li::after { top: 50%; left: 1px; margin-left: 0; margin-top: -6.5px; }
  .toasts { right: 12px; bottom: 12px; left: 12px; width: auto; }
  .lang { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .provider { grid-template-columns: 44px 1fr; }
  .rule { grid-template-columns: auto 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .footer, .player, .toasts, .hero-actions { display: none; }
}

/* ---------- aplikácia: doplnky k mockupu ---------- */
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 60; background: var(--surface); color: var(--accent-text); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 600; }
.skip-link:focus { top: var(--sp-3); }
main:focus { outline: none; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand .logo .logo-bg { fill: var(--accent); }
.brand .logo .logo-fg { stroke: var(--accent-contrast); }
.brand .logo .logo-dot { fill: var(--accent-soft-2); }
.auth-card .logo-big .logo-bg { fill: var(--accent); }
.auth-card .logo-big .logo-fg { stroke: var(--accent-contrast); }
.auth-card .logo-big .logo-dot { fill: var(--accent-soft-2); }
.user-menu > summary { padding: 0; }
form.inline { display: inline; margin: 0; }
.hero-actions form, .form-actions form { margin: 0; }
.auth-card .row { justify-content: center; margin-top: var(--sp-4); }
.auth-card form .btn { margin-top: var(--sp-4); }
.toast-static .toast { position: static; }
.demo-grid > .card + .card { margin-top: 0; }
.menu-list form { margin: 0; }
.chip-wrap { white-space: normal; text-align: left; }
.chip .chip-src { font-weight: 500; }
.hero-meta a { overflow-wrap: anywhere; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }
.mrow .mrow-title { overflow-wrap: anywhere; }
.toasts:empty { display: none; }
.toast .icon-btn { width: 30px; height: 30px; flex: none; }
.task.task-ro { grid-template-columns: minmax(0, 1fr); }
.task .ttext { overflow-wrap: anywhere; }
.line .lt .ts { display: inline-block; }
.line .ltext { overflow-wrap: anywhere; }
[data-cert-download] { white-space: normal; max-width: 100%; text-align: left; }
[data-cert-download] .mono { overflow-wrap: anywhere; min-width: 0; } /* the certificate file is named after the brand (016) */
.player.is-native { display: block; }
.player.is-native audio { width: 100%; }
.player audio:not([controls]) { display: none; }
.version-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--fs-sm); }
.version-form .select { min-width: 0; flex: 1 1 220px; max-width: 420px; }
.card-head .meta { font-size: var(--fs-xs); color: var(--muted); }
.history { margin-top: var(--sp-4); font-size: var(--fs-sm); }
.history summary { cursor: pointer; color: var(--muted); }
.history .table-wrap { margin-top: var(--sp-2); }
.sheet-msg { margin-bottom: var(--sp-4); }
fieldset.share-level { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
fieldset.share-level legend { padding: 0; margin-bottom: var(--sp-2); }
.people .why .btn { margin-left: 6px; }
.add-participant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 180px); gap: 0 var(--sp-3); margin-top: var(--sp-4); }
.add-participant .form-actions { grid-column: 1 / -1; margin-top: 0; }
.gallery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-3); }
.gallery-list a { display: block; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.footer .lang-foot { display: none; }
.filters .seg { flex-wrap: wrap; max-width: 100%; }
.filters .input-icon .htmx-indicator { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .footer .lang-foot { display: inline-flex; }
  .add-participant { grid-template-columns: minmax(0, 1fr); }
  /* detail na mobile (018): hlavička a karty prilepené pod top barom, najviac 2 akcie (Zdieľať, ⋯) */
  .detail-head { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--bg); margin: 0 calc(-1 * var(--sp-4)) var(--sp-4); padding: var(--sp-2) var(--sp-4) var(--sp-2); }
  .detail-head .hero { margin-bottom: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
  .detail-head .hero h1 { margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-top { flex-wrap: nowrap; gap: var(--sp-2); }
  .hero-actions { flex-wrap: nowrap; flex: none; }
  .menu-export { display: none; }
  .menu-more .only-mobile { display: list-item; }
  .menu-more.menu-mobile-only { display: block; }
  .meta-people, .hero-meta .meta-link { display: none; }
  .hero-access { margin-top: var(--sp-2); padding-top: var(--sp-2); }
  .access-line { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: var(--fs-xs); }
  .access-line .lbl { display: none; }
  .access-more { margin-top: 2px; }
  /* banner nad kartami je súčasť prilepenej hlavičky: bez krokov a poznámky, aby nezaberal obrazovku */
  .detail-head .live-banner { padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2); }
  .detail-head .live-banner .steps, .detail-head .live-banner .lb-results { display: none; }
  .detail-head .tabs { display: flex; width: 100%; }
  .detail-head .tabs[hidden] { display: none; }
  .player { position: static; }
  /* dotykové ciele ≥ 44 × 44 px (018) */
  .btn, .icon-btn, .tab, .seg label, .switch, .menu > summary, .menu-list a, .menu-list button { min-height: 44px; }
  .btn, .icon-btn, .btn-icon, .tab, .seg label { min-width: 44px; justify-content: center; }
  .btn-sm { padding: 8px 12px; }
  .access-more summary, .bc-steps summary, .history summary { min-height: 44px; display: flex; align-items: center; }
}

/* ---------- administration (003 slice 4) ---------- */
.grid-2 > *, .grid-side > * { min-width: 0; }
/* visually hidden captions and headers of a wide table stay inside its scroll box */
.table-wrap { position: relative; }
.grid-2 > .card + .card, .grid-4 > .card + .card, .grid-side > .card + .card, .admin-stack > .card + .card { margin-top: 0; }
.diff > span { display: block; min-height: 1.45em; }
.diff .gap { color: var(--muted); }
.diff-add { color: var(--ok-fg); }
.diff-del { color: var(--err-fg); }
.version-diff { margin-top: 6px; }
.version-diff summary { cursor: pointer; font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); }
.version-diff .diff { margin-top: 6px; max-height: 320px; }
.version-list form { margin: 0; }
ul.events { list-style: none; margin: 0; padding: 0; }
.event form { margin: 0; }
.input.mono { font-family: var(--mono); }
.policy-editor { font-family: var(--mono); min-height: 360px; font-size: var(--fs-xs); line-height: 1.5; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.problems { margin: 6px 0 0; padding-left: 18px; }
.problems code { background: none; padding: 0; white-space: normal; overflow-wrap: anywhere; }
.strike { text-decoration: line-through; }
.subnav .pill .icon { width: 16px; height: 16px; }
.rule > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.rule .mono.xs { white-space: nowrap; }
@media (max-width: 640px) {
  .rule .mono.xs { display: none; }
  .version-list li { grid-template-columns: auto 1fr; }
  .version-list li > .row { grid-column: 1 / -1; }
}

/* ---------- utility margins (last, so they win) ---------- */
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--sp-2) !important; } .mb-4 { margin-bottom: var(--sp-4) !important; } .mb-5 { margin-bottom: var(--sp-5) !important; }
.mt-4 { margin-top: var(--sp-4) !important; } .mt-5 { margin-top: var(--sp-5) !important; }
