/* Reelbrief: komponenty appky. Prepis design/mockups/mockup.css do štruktúry appky.
   Hodnoty sú len tokeny z design/tokens.css (načítaný pred týmto súborom).
   Triedy sú ploché, jedna trieda na časť komponentu. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--stol);
  color: var(--film);
  font-family: var(--font-ui);
  font-size: var(--text-16);
  line-height: var(--leading-ui);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-control); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; }

/* ---------- Stránka ---------- */
/* Mobil je prvý. Všetko je zarovnané vľavo, na počítači jeden stĺpec s väčším okrajom. */
.page { max-width: 720px; padding-bottom: var(--s12); }
@media (min-width: 768px) {
  .page { padding-left: var(--s4); padding-right: var(--s4); }
}

/* ---------- Horná lišta ---------- */
.topbar { height: 60px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s4); }
.topbar__grow { flex: 1; min-width: 0; }
.wordmark { font-family: var(--font-stencil); font-weight: 800; font-size: var(--text-31); line-height: 1; letter-spacing: 0.005em; color: var(--film); text-decoration: none; }
.back { width: var(--tap); height: var(--tap); display: grid; place-items: center; margin-left: calc(var(--s2) * -1); color: var(--film); text-decoration: none; font-size: 26px; line-height: 1; }
.topbar__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-25); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credits { font-size: var(--text-13); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--film); text-decoration: none; white-space: nowrap; padding: var(--s2) 0; }
.avatar { width: var(--tap); height: var(--tap); display: grid; place-items: center; text-decoration: none; border-radius: 50%; margin-right: calc(var(--s1) * -1); }
.avatar__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--film); color: var(--harok); display: grid; place-items: center; font-weight: 700; font-size: var(--text-13); text-transform: uppercase; }

/* ---------- Typografia ---------- */
.screen-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-39); line-height: var(--leading-display); margin: var(--s4) 0 var(--s2); letter-spacing: -0.005em; }
.lede { margin: 0; color: var(--grafit); font-size: var(--text-16); }
.lede strong { color: var(--film); font-weight: 600; font-variant-numeric: tabular-nums; }
.h2 { font-family: var(--font-ui); font-weight: 700; font-size: var(--text-20); line-height: 1.2; margin: 0; }
.meta { font-size: var(--text-13); color: var(--grafit); }
.meta--red { color: var(--ceruzka-text); font-weight: 600; }
.meta--safe { color: var(--safelight-text); font-weight: 600; }
.pad { padding: 0 var(--s4); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Filmový pás s perforáciou ---------- */
.band {
  position: relative;
  background: var(--film);
  margin: 0 var(--s4);
  border-radius: 3px;
  padding: 13px 0;
  /* Perforácia: farba --stol so 42 % krytím (data URI nevie čítať CSS premenné). */
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='5'%3E%3Crect x='3' y='0.5' width='5' height='4' rx='1' fill='%23E9EEEA' fill-opacity='.42'/%3E%3C/svg%3E");
}
.band::before, .band::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 5px;
  background-image: var(--hole); background-repeat: repeat-x;
}
.band::before { top: 4px; }
.band::after { bottom: 4px; }
.band--bleed { margin: 0; border-radius: 0; }

/* Políčka v páse. Šírka podľa dĺžky scény (je to časová os). */
.frames { display: flex; gap: 3px; padding: 0 10px; }
.frame { position: relative; flex: var(--d, 1) 1 0; min-width: 0; height: 76px; border-radius: var(--r-frame); overflow: hidden; background: var(--emulzia); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frames--small .frame { height: 52px; }
.frame--blank { background: var(--emulzia); }
.edge { position: absolute; left: 4px; top: 2px; font-family: var(--font-display); font-weight: 700; font-size: var(--text-13); line-height: 1; color: var(--harok); text-shadow: 0 0 3px rgba(35, 32, 28, .9); }
.edge--dur { left: auto; right: 4px; top: auto; bottom: 3px; font-weight: 600; }
.edge-row { display: flex; justify-content: space-between; padding: 0 var(--s4); margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-13); color: var(--film-text); line-height: 1; }

/* Vyvolávanie pod safelightom: AI na políčku ešte pracuje */
.frame--developing img { filter: sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(.55) contrast(.7); opacity: .55; }
.frame--developing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(200, 97, 30, 0), rgba(200, 97, 30, .35)); }
.frame--empty { background: repeating-linear-gradient(135deg, var(--emulzia) 0 6px, var(--film) 6px 12px); }
@media (prefers-reduced-motion: no-preference) {
  .frame--developing img { animation: develop var(--develop) ease-in-out infinite alternate; }
  .frame--developing.frame--empty::after { animation: develop-glow var(--develop) ease-in-out infinite alternate; }
}
@keyframes develop { from { opacity: .35; } to { opacity: .7; } }
@keyframes develop-glow { from { opacity: .5; } to { opacity: 1; } }

/* Prehrávacia hlava */
.playhead { position: absolute; top: 8px; bottom: 8px; width: 2px; background: var(--harok); border-radius: 1px; box-shadow: 0 0 0 1px rgba(35, 32, 28, .6); }
.playhead::before { content: ""; position: absolute; top: -5px; left: -4px; border: 5px solid transparent; border-top: 6px solid var(--harok); }

/* ---------- Značky ceruzkou ---------- */
.mark { fill: none; stroke: var(--ceruzka); stroke-width: var(--mark-width); stroke-linecap: round; stroke-linejoin: round; filter: url(#wax); }
.mark--on-film { stroke: var(--ceruzka-na-filme); stroke-width: 4px; filter: url(#wax) drop-shadow(0 0 1.5px rgba(35, 32, 28, .85)); }
.mark--draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--mark-draw) var(--ease-pencil) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-control); border: 1.5px solid var(--film); background: transparent; color: var(--film); font-weight: 600; font-size: var(--text-16); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--film); color: var(--harok); }
.btn--primary:hover { background: var(--emulzia); border-color: var(--emulzia); }
.btn--quiet { border-color: transparent; padding: 0 var(--s2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; min-height: var(--tap); }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; padding: 0 var(--s4); font-size: var(--text-16); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary:disabled:hover { background: var(--film); border-color: var(--film); }
.btn[aria-pressed="true"] { background: var(--harok); border-color: var(--ceruzka); color: var(--film); box-shadow: inset 0 0 0 1px var(--ceruzka); }

/* ---------- Polia ---------- */
.label { display: block; font-weight: 600; margin: 0 0 var(--s2); }
.field { display: block; width: 100%; min-height: 104px; resize: vertical; padding: var(--s3); border: 1px solid var(--okraj); border-radius: var(--r-control); background: var(--harok); font-size: var(--text-16); line-height: var(--leading-ui); }
.field::placeholder { color: var(--grafit); }
.field--line { min-height: 48px; resize: none; }
.field:focus-visible { box-shadow: var(--focus); }
.field[aria-invalid="true"] { border-color: var(--ceruzka); }
.field--seconds { width: 112px; font-variant-numeric: tabular-nums; }
.field-error { margin: var(--s2) 0 0; font-size: var(--text-13); font-weight: 600; color: var(--ceruzka-text); }

/* Chyba celej akcie: povie, čo sa stalo a čo urobiť */
.alert { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); align-items: start; margin: var(--s4) 0 0; font-weight: 600; }
.alert__icon { width: 22px; height: 22px; margin-top: 1px; overflow: visible; }

/* ---------- Voľby (segmenty) a štýly s rádiami ---------- */
.seg { display: flex; flex-wrap: wrap; gap: var(--s2); }
.seg__opt { position: relative; min-height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--okraj); border-radius: var(--r-control); background: var(--harok); display: inline-flex; align-items: center; font-weight: 500; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg__opt:has(input:checked) { border-color: var(--film); box-shadow: inset 0 0 0 1px var(--film); font-weight: 700; }
.seg__opt:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--film), var(--focus); }
.seg__opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
button.seg__opt { color: var(--film); }
.seg__opt[aria-pressed="true"] { border-color: var(--film); box-shadow: inset 0 0 0 1px var(--film); font-weight: 700; }
.seg__opt[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 1px var(--film), var(--focus); }

/* ---------- Čipy (rýchle voľby) ---------- */
.chips { display: flex; gap: var(--s2); overflow-x: auto; padding: 2px var(--s4) 4px; margin: 0 calc(var(--s4) * -1); scrollbar-width: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-chip); border: 1px solid var(--okraj); background: var(--harok); color: var(--film); font-size: var(--text-16); font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.chip--on { border-color: var(--film); background: var(--film); color: var(--harok); }

/* ---------- Hárok: jediná vyvýšená plocha ---------- */
.sheet { background: var(--harok); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-sheet); padding: var(--s5) var(--s4) var(--s6); margin-top: var(--s5); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }

/* ---------- Stav práce AI ---------- */
.status { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: var(--text-13); font-weight: 600; color: var(--safelight-text); }
.status__dot { flex: 0 0 auto; margin-left: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--safelight); box-shadow: 0 0 0 4px rgba(200, 97, 30, .18); }

/* ---------- Tvoje videá ---------- */
.new-strip { display: block; margin: var(--s5) 0 var(--s2); text-decoration: none; color: inherit; border-radius: 3px; }
.new-strip .band { margin: 0 var(--s4); }
.new-strip__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--s2); color: var(--harok); font-weight: 600; }
.new-strip__plus { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; margin-top: -3px; }
.new-strip:hover .frame--empty { background: repeating-linear-gradient(135deg, var(--film) 0 6px, var(--emulzia) 6px 12px); }
.project { padding: var(--s5) 0 var(--s4); border-top: 1px solid var(--linka); }
.projects { margin-top: var(--s5); }
.project__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 0 var(--s4) var(--s3); }
.project__head .h2 { min-width: 0; overflow-wrap: anywhere; }
.project__state { padding: var(--s3) var(--s4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.project__state .status { margin: 0; }
.circled { position: relative; display: inline-block; padding: 0 10px; font-weight: 700; color: var(--film); white-space: nowrap; }
.circled svg { position: absolute; left: -8px; top: -11px; width: calc(100% + 16px); height: calc(100% + 22px); overflow: visible; }
.empty { padding: var(--s6) var(--s4) 0; }
.empty__text { margin: 0 0 var(--s4); max-width: 34em; }

/* ---------- Nové video ---------- */
.group { padding: var(--s5) var(--s4); border-top: 1px solid var(--linka); }
.group--first { border-top: 0; }
.group__title { font-weight: 700; font-size: var(--text-16); margin: 0 0 var(--s1); }
.group__hint { margin: 0 0 var(--s3); font-size: var(--text-13); color: var(--grafit); }
fieldset.group { margin: 0; min-width: 0; border-left: 0; border-right: 0; border-bottom: 0; }
fieldset.group.group--first { border-top: 0; }
legend.group__title { padding: 0; float: left; width: 100%; }
legend.group__title + * { clear: left; }
.seconds { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); flex-wrap: wrap; }
.dropzone { border: 1.5px dashed var(--okraj); border-radius: var(--r-control); padding: var(--s4); background: var(--harok); }
.dropzone--over { border-color: var(--film); }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin: 0 0 var(--s3); list-style: none; padding: 0; }
@media (min-width: 480px) { .clips { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); } }
.clip { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-frame); overflow: hidden; background: var(--film); }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip__num { position: absolute; left: 4px; top: 2px; font-family: var(--font-display); font-weight: 700; font-size: var(--text-13); line-height: 1; color: var(--harok); text-shadow: 0 0 3px rgba(35, 32, 28, .9); }
.clip__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(35, 32, 28, .6); }
.clip__bar span { display: block; height: 100%; width: 0; background: var(--safelight); }
.clip--done .clip__bar { display: none; }
.clip--error { box-shadow: inset 0 0 0 2px var(--ceruzka-na-filme); }
.clip__remove { position: absolute; right: 0; top: 0; width: var(--tap); height: var(--tap); display: grid; place-items: start end; padding: 3px 4px 0 0; border: 0; background: none; cursor: pointer; }
.clip__remove span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(35, 32, 28, .78); color: var(--harok); font-size: 15px; line-height: 1; }
.clip__remove:focus-visible { box-shadow: none; }
.clip__remove:focus-visible span { box-shadow: var(--focus); }
.clip--add { display: grid; place-items: center; background: var(--harok); border: 1.5px dashed var(--okraj); color: var(--film); font-family: var(--font-display); font-weight: 800; font-size: 28px; cursor: pointer; }
.clip--add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.clip--add:has(input:focus-visible) { box-shadow: var(--focus); }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); max-width: 420px; }
.style { position: relative; border: 1px solid var(--okraj); border-radius: var(--r-control); padding: 6px 6px var(--s2); background: var(--harok); text-align: center; font-weight: 600; font-size: var(--text-13); cursor: pointer; }
.style input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style:has(input:checked) { border-color: var(--film); box-shadow: inset 0 0 0 1px var(--film); }
.style:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--film), var(--focus); }
.style__prev { display: block; position: relative; aspect-ratio: 9 / 12; border-radius: var(--r-frame); overflow: hidden; margin-bottom: 6px; background: var(--emulzia); }

.swatches { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s3); flex-wrap: wrap; }
.swatch { position: relative; width: var(--tap); height: var(--tap); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch__dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--harok); box-shadow: 0 0 0 1px var(--okraj); background: var(--swatch); }
.swatch:has(input:checked) .swatch__dot { box-shadow: 0 0 0 2px var(--film); }
.swatch:has(input:focus-visible) .swatch__dot { box-shadow: 0 0 0 2px var(--film), 0 0 0 4px var(--harok), 0 0 0 6px var(--ceruzka); }
.hex { display: inline-flex; align-items: center; gap: var(--s2); }
.hex .field { width: 120px; min-height: 44px; padding: 6px 10px; font-variant-numeric: tabular-nums; }

.footer-cta { position: sticky; bottom: 0; z-index: 3; background: var(--stol); padding: var(--s3) var(--s4) max(var(--s5), env(safe-area-inset-bottom)); border-top: 1px solid var(--linka); }
.footer-cta__note { text-align: center; margin: var(--s2) 0 0; }
.footer-cta .alert { margin: 0 0 var(--s3); }

/* Ukážka titulkov vo videu. Toto je vzhľad renderovaného videa (Barlow Condensed),
   nie UI appky, preto vlastné farby obsahu. */
@font-face { font-family: "Barlow Condensed Video"; src: url("/static/fonts/video/barlow-condensed-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Barlow Condensed Video"; src: url("/static/fonts/video/barlow-condensed-latin-ext-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+0100-02FF; }
@font-face { font-family: "Barlow Condensed Video"; src: url("/static/fonts/video/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Barlow Condensed Video"; src: url("/static/fonts/video/barlow-condensed-latin-ext-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02FF; }
.cap { display: block; position: absolute; left: 8%; right: 8%; top: 26%; text-align: center; }
.cap__label { display: inline-block; background: var(--label, #E3262B); color: var(--label-ink, #fff); font-family: "Barlow Condensed Video", sans-serif; font-weight: 800; font-size: 9px; letter-spacing: .02em; padding: 2px 6px 1px; transform: rotate(-2.5deg); text-transform: uppercase; }
.cap__text { display: block; margin-top: 4px; color: #fff; font-family: "Barlow Condensed Video", sans-serif; font-weight: 900; font-size: 15px; line-height: .95; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.cap__text--gold { color: #E8C46A; }
.cap__text--sport { display: inline-block; background: #fff; color: #111; padding: 2px 5px; text-shadow: none; }

/* ---------- Prihlásenie a účet ---------- */
.auth { padding: 0 var(--s4); max-width: 480px; }
.auth__band { margin: var(--s6) 0 0; }
.auth__band .band { margin: 0; }
.auth__form { margin-top: var(--s6); display: grid; gap: var(--s3); }
.auth__form .label { margin: 0 0 calc(var(--s1) * -1); }
.auth__note { margin: var(--s5) 0 0; }
.rows { margin: var(--s5) 0 0; padding: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s4) var(--s4); border-top: 1px solid var(--linka); margin: 0; }
.row dt { font-weight: 600; }
.row dd { margin: 0; overflow-wrap: anywhere; }
.inline-form { display: inline; margin: 0; }
.lang-switch { padding: var(--s6) var(--s4) 0; }
.lang-switch .btn--quiet { margin-left: calc(var(--s2) * -1); }

/* ---------- Účet: predvoľby a profil štýlu ---------- */
.settings { padding: var(--s8) var(--s4) 0; }
.settings__hint { margin: var(--s1) 0 0; font-size: var(--text-13); color: var(--grafit); max-width: 34em; }
.settings .alert { max-width: 34em; }
.rows--section { margin-top: var(--s3); }
.settings__color { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.swatches--flush { margin-top: 0; }
button.swatch { border: 0; padding: 0; background: none; font: inherit; color: inherit; }
.swatch[aria-pressed="true"] .swatch__dot { box-shadow: 0 0 0 2px var(--film); }
button.swatch:focus-visible { outline: none; }
button.swatch:focus-visible .swatch__dot { box-shadow: 0 0 0 2px var(--film), 0 0 0 4px var(--harok), 0 0 0 6px var(--ceruzka); }
.rules { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.rule { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s4); border-top: 1px solid var(--linka); }
.rule__text { flex: 1 1 18em; min-width: 0; }
.rule__body { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rule__text .meta { margin: var(--s1) 0 0; }
.rule--off .rule__body { color: var(--grafit); font-weight: 500; }
.settings__empty { margin: var(--s3) 0 0; padding: var(--s4); border-top: 1px solid var(--linka); max-width: 34em; }
.history { border-top: 1px solid var(--linka); }
.history__summary { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--s4); cursor: pointer; font-weight: 600; }
.history__summary:focus-visible { outline: none; box-shadow: var(--focus); }
.rules--history { margin: 0; }

/* ---------- Tvoje videá: odkazy ---------- */
.project__link { color: inherit; text-decoration: none; }
.project__link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.project__band { display: block; }

/* ---------- Prehrávač: tmavý pás filmu ---------- */
.player { background: var(--film); padding: var(--s3) 0 var(--s4); }
.player__screen { position: relative; width: 236px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--r-frame); overflow: hidden; background: var(--emulzia); }
.player__screen video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--film); cursor: pointer; }
.player__screen--empty { background: repeating-linear-gradient(135deg, var(--emulzia) 0 6px, var(--film) 6px 12px); }
.player__screen--developing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(200, 97, 30, 0), rgba(200, 97, 30, .35)); }
@media (prefers-reduced-motion: no-preference) {
  .player__screen--developing::after { animation: develop-glow var(--develop) ease-in-out infinite alternate; }
}
.player__label { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--s4) var(--s2); color: var(--film-text); font-family: var(--font-display); font-weight: 600; font-size: var(--text-13); }
.player__label b { color: var(--harok); font-weight: 700; }
.player__safe { color: var(--safelight); }
.player__controls { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4) 0; color: var(--harok); }
.play { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1.5px solid var(--film-text); background: transparent; color: var(--harok); display: grid; place-items: center; cursor: pointer; font-size: var(--text-16); line-height: 1; }
.play:focus-visible { box-shadow: 0 0 0 2px var(--film), 0 0 0 4px var(--ceruzka-na-filme); border-radius: 50%; }
.time { font-size: var(--text-13); color: var(--film-text); font-variant-numeric: tabular-nums; }
.time b { color: var(--harok); font-weight: 600; }

/* ---------- Časová os ---------- */
.axis { position: relative; padding-top: var(--s5); }
.axis__track { border-radius: 3px; }
.axis__track:focus-visible { box-shadow: var(--focus); }
.axis .frame[data-start] { cursor: pointer; }
.edge-row--axis { color: var(--grafit); }
.vp__status { margin: var(--s4) var(--s4) 0; }
.vp__hint { margin: var(--s2) var(--s4) 0; font-size: var(--text-13); color: var(--grafit); max-width: 34em; }

/* ---------- Verzie ---------- */
.versions { padding: var(--s6) var(--s4) var(--s8); background: var(--harok); margin-top: var(--s6); }
.versions__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); min-height: 48px; }
.version { display: grid; grid-template-columns: 54px 1fr; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--linka); position: relative; }
.version__thumb { position: relative; width: 54px; aspect-ratio: 9 / 16; border-radius: var(--r-frame); overflow: visible; background: var(--emulzia); }
.version__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-frame); }
.version__thumb--developing { background: repeating-linear-gradient(135deg, var(--emulzia) 0 6px, var(--film) 6px 12px); }
.version__name { font-weight: 700; display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.version__link { color: inherit; text-decoration: none; }
.version__note { margin: 2px 0 var(--s1); color: var(--film); }
.version__actions { display: flex; gap: var(--s1); flex-wrap: wrap; margin-left: calc(var(--s2) * -1); }
.version--current .version__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--film); display: inline-block; transform: translateY(-1px); }
.ring { position: absolute; left: -14px; top: -10px; width: 82px; height: 116px; overflow: visible; pointer-events: none; }
.vp__deletion { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--linka); }

/* ---------- Obrazovka Video: mobil ---------- */
.vp__deskbar, .vp .crumb { display: none; }
.vp .titlebar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vp .titlebar__action { display: none; }   /* na mobile je Schváliť v hlavičke verzií */

/* ---------- Obrazovka Video: počítač, tri stĺpce ---------- */
@media (min-width: 1024px) {
  .vp { display: grid; grid-template-columns: 440px minmax(0, 1fr) 340px; min-height: 100vh; }
  .vp__mobilebar { display: none; }
  .vp__projector { background: var(--film); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
  .vp__deskbar { display: block; }
  .topbar--film .wordmark, .topbar--film .credits { color: var(--harok); }
  .vp__projector .player { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .vp__projector .player__screen { width: 300px; }
  .vp__projector .player__label, .vp__projector .player__controls { width: 300px; margin: 0 auto; padding-left: 0; padding-right: 0; }
  .vp__main { padding: var(--s5) var(--s8) var(--s6); min-width: 0; }
  .vp .crumb { display: inline-block; color: var(--film); text-decoration: none; font-weight: 600; font-size: var(--text-13); margin-bottom: var(--s1); }
  .vp .titlebar { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s2); }
  .vp .titlebar .screen-title { margin: 0; }
  .vp .titlebar__action { display: block; flex: 0 0 auto; padding-bottom: var(--s2); }
  .vp__main .band { margin: 0; }
  .vp__main .frame { height: 108px; }
  .vp__main .edge-row { padding: 0 2px; }
  .vp__status { margin: var(--s5) 0 0; }
  .vp__hint { margin: var(--s2) 0 0; }
  .vp__side { margin-top: 0; border-left: 1px solid var(--linka); padding: var(--s5); }
  .vp__side .versions__action { display: none; }
  .vp__side .version { grid-template-columns: 46px 1fr; }
  .vp__side .version__thumb { width: 46px; }
}

/* ---------- Oprava poznámkou: sekcia, značky, Rozumiem, hárok ---------- */
.axis { padding-top: 44px; }
.axis__marks { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 2; }
.mark-label { position: absolute; top: 2px; z-index: 2; font-size: var(--text-13); font-weight: 700; color: var(--ceruzka-text); white-space: nowrap; }
.frame--out img { opacity: .45; }
.section-controls { padding: var(--s3) var(--s4) 0; }
.btn-row { display: flex; gap: var(--s2); }
.btn-row > .btn { flex: 1; }
.context { font-size: var(--text-13); font-weight: 600; color: var(--ceruzka-text); text-align: right; }
.context__clear { border: 0; background: none; padding: var(--s1) 0 var(--s1) var(--s1); color: var(--film); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; min-height: var(--tap); }
.composer__field { margin-top: var(--s3); }
.composer__base, .composer__note { margin: 0 0 var(--s3); }
.composer__note { margin: var(--s3) 0 0; }
.send { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); }
.send__long { display: none; }
.chip { cursor: pointer; }
.chip:focus-visible { border-radius: var(--r-chip); }
.sheet .chips { margin-top: 0; }

.answer { border-left: 3px solid var(--ceruzka); padding: var(--s1) var(--s4) var(--s1) var(--s3); margin: var(--s5) var(--s4) 0; }
.answer__lead { font-weight: 600; margin: 0; }
.answer__list { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.answer__item { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); align-items: start; }
.answer__icon { width: 22px; height: 22px; margin-top: 1px; overflow: visible; }
.answer .status { margin-top: var(--s3); }
.answer .meta { margin: var(--s2) 0 0; }
.answer__options { margin: var(--s3) 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }

@media (min-width: 1024px) {
  .section-controls { padding: var(--s3) 0 0; max-width: 420px; }
  .answer { margin: var(--s5) 0 0; }
  .vp__main .sheet { border-radius: var(--r-sheet); padding: var(--s4); }
  .vp__main .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .vp__main .field { min-height: 72px; }
  .send__short { display: none; }
  .send__long { display: inline; }
}

/* ---------- Admin (len pre nás) ----------
   Na počítači tmavý stĺpec s navigáciou ako stĺpec prehrávača, obsah na svetelnom stole v hárkoch.
   Na mobile je navigácia tmavý pás hore a tabuľky sa posúvajú do strany. */
.admin { padding: 0; }
.adm { min-height: 100vh; }
.adm__side { background: var(--film); color: var(--harok); padding: var(--s3) var(--s4) 0; }
.adm__brand { display: flex; align-items: center; gap: var(--s3); min-height: 44px; }
.adm__wordmark { font-family: var(--font-stencil); font-weight: 800; font-size: var(--text-25); line-height: 1; color: var(--harok); text-decoration: none; }
.adm__tag { padding: 2px var(--s2); border: 1px solid var(--emulzia); border-radius: var(--r-chip); color: var(--film-text); font-size: var(--text-13); font-weight: 600; }
.adm__back { color: var(--film-text); font-size: var(--text-13); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.adm__back:hover { color: var(--harok); }
.adm__back--top { margin-left: auto; }
.adm__back--side { display: none; }
.adm__nav { display: flex; gap: var(--s1); overflow-x: auto; margin: var(--s2) calc(var(--s4) * -1) 0; padding: 0 var(--s4); scrollbar-width: none; }
.adm__link { flex: 0 0 auto; display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); color: var(--film-text); font-weight: 600; text-decoration: none; border-radius: var(--r-control) var(--r-control) 0 0; }
.adm__link:hover { color: var(--harok); }
.adm__link[aria-current="page"] { color: var(--harok); box-shadow: inset 0 -3px 0 var(--ceruzka-na-filme); }
.adm__main { padding: var(--s5) var(--s4) var(--s12); min-width: 0; }
.adm__head { margin-bottom: var(--s5); }
.adm__crumb { display: inline-block; margin-bottom: var(--s2); color: var(--grafit); font-size: var(--text-13); font-weight: 600; text-decoration: none; }
.adm__crumb:hover { color: var(--film); text-decoration: underline; text-underline-offset: 3px; }
.adm__headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); }
.adm__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-39); line-height: var(--leading-display); overflow-wrap: anywhere; }
.adm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.adm__actions:empty { display: none; }
.adm__lede { margin: var(--s2) 0 0; max-width: 60em; color: var(--grafit); }

@media (min-width: 1024px) {
  .adm { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .adm__side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: var(--s6) var(--s4); }
  .adm__brand { flex-wrap: wrap; padding: 0 var(--s3); }
  .adm__wordmark { font-size: var(--text-31); }
  .adm__back--top { display: none; }
  .adm__back--side { display: inline-block; margin: auto var(--s3) 0; }
  .adm__nav { flex-direction: column; overflow: visible; margin: var(--s8) 0 0; padding: 0; }
  .adm__link { border-radius: var(--r-control); }
  .adm__link:hover { background: var(--emulzia); }
  .adm__link[aria-current="page"] { background: var(--emulzia); box-shadow: inset 3px 0 0 var(--ceruzka-na-filme); }
  .adm__main { padding: var(--s8) var(--s10) var(--s16); max-width: 1280px; }
}

/* Prepínač mesiaca */
.month { display: inline-flex; align-items: center; min-height: 40px; background: var(--harok); border: 1px solid var(--okraj); border-radius: var(--r-control); }
.month__step { display: grid; place-items: center; width: 40px; align-self: stretch; color: var(--film); font-size: var(--text-20); text-decoration: none; }
.month__step:hover { background: var(--stol); }
.month__step--off { color: var(--linka); }
.month__label { padding: 0 var(--s2); min-width: 9em; text-align: center; font-weight: 700; }

/* Hárky */
.panel { margin: 0 0 var(--s5); padding: var(--s5); background: var(--harok); border: 1px solid var(--linka); border-radius: var(--r-sheet); min-width: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel__title { display: block; margin: 0 0 var(--s4); font-size: var(--text-20); font-weight: 700; line-height: 1.2; }
.panel__hint { margin: calc(var(--s2) * -1) 0 var(--s4); color: var(--grafit); font-size: var(--text-13); max-width: 60em; }
.panel__empty { margin: 0; padding: var(--s1) 0; color: var(--grafit); }
.panel__foot { margin: var(--s4) 0 0; color: var(--grafit); font-size: var(--text-13); }
.panel--flush .panel__empty { padding: var(--s5); }
.cols { display: grid; gap: 0 var(--s5); }
@media (min-width: 1024px) {
  .panel { padding: var(--s6); }
  .panel--flush { padding: 0; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Treba riešiť */
.todo__list { list-style: none; margin: 0; padding: 0; }
.todo__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-top: 1px solid var(--linka); }
.todo__item:first-child { border-top: 0; padding-top: 0; }
.todo__dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--grafit); }
.todo__item--red .todo__dot { background: var(--ceruzka); }
.todo__item--safe .todo__dot { background: var(--safelight); }
.todo__body { min-width: 0; }
.todo__text { font-weight: 600; color: var(--film); text-decoration: none; overflow-wrap: anywhere; }
a.todo__text:hover { text-decoration: underline; text-underline-offset: 3px; }
.todo__quote { display: block; margin-top: 2px; color: var(--grafit); font-size: var(--text-13); overflow-wrap: anywhere; }
.todo__meta { color: var(--grafit); font-size: var(--text-13); white-space: nowrap; }
.todo__ok { display: flex; align-items: center; gap: var(--s3); margin: 0; color: var(--grafit); }
.todo__check { flex: 0 0 auto; width: 10px; height: 10px; border: 2px solid var(--grafit); border-radius: 50%; }

/* Hlavné čísla */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.kpi { margin: 0; padding: var(--s4); background: var(--harok); border: 1px solid var(--linka); border-radius: var(--r-sheet); min-width: 0; }
.kpi__label { color: var(--grafit); font-size: var(--text-13); font-weight: 600; }
.kpi__value { margin: var(--s2) 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-31); line-height: var(--leading-display); overflow-wrap: anywhere; }
.kpi__bar { margin: var(--s3) 0 0; }
.kpi__hint { margin: var(--s2) 0 0; color: var(--grafit); font-size: var(--text-13); }
@media (min-width: 900px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
  .kpi { padding: var(--s5); }
  .kpi__value { font-size: var(--text-39); }
}

/* Menšie metriky v hárku */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s4) var(--s5); margin: 0; }
.stat { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--linka); }
.stat__label { color: var(--grafit); font-size: var(--text-13); }
.stat__value { margin: var(--s1) 0 0; font-size: var(--text-25); font-weight: 700; line-height: 1.2; }
.stat__hint { margin: var(--s1) 0 0; color: var(--grafit); font-size: var(--text-13); }

/* Pruh naplnenia */
.bar { display: block; height: 6px; background: var(--linka); border-radius: var(--r-chip); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w, 0%); background: var(--film); border-radius: var(--r-chip); }
.bar--warn .bar__fill { background: var(--safelight); }
.bar--over .bar__fill { background: var(--ceruzka); }

/* Náklady podľa kroku */
.costs { list-style: none; margin: 0; padding: 0; }
.costs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name calls usd" "bar bar bar"; gap: var(--s2) var(--s4); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid var(--linka); }
.costs__row:first-child { border-top: 0; padding-top: 0; }
.costs__name { grid-area: name; font-weight: 600; }
.costs__calls { grid-area: calls; color: var(--grafit); font-size: var(--text-13); }
.costs__usd { grid-area: usd; font-weight: 700; text-align: right; }
.costs__bar { grid-area: bar; }
.costs__row--total { grid-template-areas: "name calls usd"; border-top: 2px solid var(--film); padding-bottom: 0; }

/* Údaje "názov: hodnota" */
.facts { margin: 0; }
.facts__item { min-width: 0; }
.facts dt { color: var(--grafit); font-size: var(--text-13); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts--stack { display: grid; gap: var(--s4); }
.facts--stack dd { font-weight: 500; }
.facts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3) var(--s5); margin: var(--s4) 0 0; }
.facts--strip { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s8); margin: 0 0 var(--s5); padding: var(--s4) var(--s5); background: var(--harok); border: 1px solid var(--linka); border-radius: var(--r-sheet); }

/* Rozbaľovacie detaily (JSON) */
.more { margin-top: var(--s3); }
.more__summary { display: inline-flex; align-items: center; min-height: 32px; color: var(--grafit); font-size: var(--text-13); font-weight: 600; cursor: pointer; }
.more__summary:hover { color: var(--film); }

/* Filtre zoznamu */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); }
.filters__item { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); background: var(--harok); border: 1px solid var(--okraj); border-radius: var(--r-chip); color: var(--film); font-weight: 600; text-decoration: none; }
.filters__item:hover { border-color: var(--film); }
.filters__item[aria-current="page"] { background: var(--film); border-color: var(--film); color: var(--harok); }
.filters__count { color: var(--grafit); font-size: var(--text-13); }
.filters__item[aria-current="page"] .filters__count { color: var(--film-text); }

/* Tabuľky */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0 var(--s4) var(--s2) 0; border-bottom: 1px solid var(--linka); color: var(--grafit); font-size: var(--text-13); font-weight: 600; text-align: left; white-space: nowrap; }
.table td { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--linka); text-align: left; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table__link { color: var(--film); font-weight: 600; text-decoration: none; }
.table__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.table__sub { display: block; }
.table__empty { color: var(--grafit); }
.panel--flush .table th { padding-top: var(--s4); }
.panel--flush .table th:first-child, .panel--flush .table td:first-child { padding-left: var(--s5); }
.panel--flush .table th:last-child, .panel--flush .table td:last-child { padding-right: var(--s5); }
.table--rows tbody tr:hover { background: var(--stol); }
.cell-email { overflow-wrap: anywhere; }

/* Projekt v zozname: náhľad 9:16 a názov */
.proj { display: flex; align-items: center; gap: var(--s3); min-width: 220px; color: var(--film); text-decoration: none; }
.proj__thumb { flex: 0 0 auto; width: 36px; height: 64px; background: var(--film); border-radius: var(--r-frame); overflow: hidden; }
.proj__thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj__text { display: grid; min-width: 0; }
.proj__title { font-weight: 700; overflow-wrap: anywhere; }
.proj:hover .proj__title { text-decoration: underline; text-underline-offset: 3px; }
.proj__approved { display: block; margin-top: var(--s1); }

/* Štítky stavu */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: var(--r-chip); background: color-mix(in srgb, var(--grafit) 14%, transparent); color: var(--film); font-size: var(--text-13); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--processing, .pill--queued, .pill--v-planning, .pill--v-rendering, .pill--job-queued, .pill--job-running, .pill--note-pending, .pill--note-misunderstood { background: color-mix(in srgb, var(--safelight) 16%, transparent); color: var(--safelight-text); }
.pill--queued { background: color-mix(in srgb, var(--grafit) 14%, transparent); color: var(--grafit); }
.pill--ready, .pill--v-ready, .pill--job-done, .pill--note-applied, .pill--note-confirmed { background: color-mix(in srgb, var(--film) 10%, transparent); color: var(--film); }
.pill--approved { background: color-mix(in srgb, var(--ceruzka) 12%, transparent); color: var(--ceruzka-text); }
.pill--failed, .pill--v-failed, .pill--job-failed, .pill--note-failed { background: var(--ceruzka); color: var(--harok); }
.pill--req { background: var(--stol); }
.pill--req::before { display: none; }

/* Verzie v detaile projektu */
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--s3); }
.vcard { display: flex; gap: var(--s3); padding: var(--s3); background: var(--stol); border-radius: var(--r-control); min-width: 0; }
.vcard__thumb { flex: 0 0 auto; width: 54px; height: 96px; background: var(--film); border-radius: var(--r-frame); overflow: hidden; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard__body { min-width: 0; flex: 1; }
.vcard__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0; }
.vcard__body > .meta { margin: var(--s1) 0 0; }
.vcard__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1) var(--s3); margin: var(--s2) 0 0; font-size: var(--text-13); }
.vcard__stats dt { color: var(--grafit); }
.vcard__stats dd { margin: 0; font-weight: 600; }

/* Poznámky ako časová os */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s5); border-left: 2px solid var(--linka); display: grid; gap: var(--s6); }
.timeline__item { position: relative; min-width: 0; }
.timeline__item::before { content: ""; position: absolute; left: calc(var(--s5) * -1 - 6px); top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--grafit); box-shadow: 0 0 0 3px var(--harok); }
.timeline__item--applied::before, .timeline__item--confirmed::before { background: var(--film); }
.timeline__item--misunderstood::before, .timeline__item--pending::before { background: var(--safelight); }
.timeline__item--failed::before { background: var(--ceruzka); }
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); margin: 0; }
.timeline__quote { margin: var(--s2) 0; padding-left: var(--s3); border-left: var(--mark-width) solid var(--ceruzka); white-space: pre-line; overflow-wrap: anywhere; }
.timeline__result { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); }
.note-log__ai { display: grid; gap: var(--s1); margin: 0; font-size: var(--text-13); }
.note-log__ai div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--s2); }
.note-log__ai dt { color: var(--grafit); }
.note-log__ai dd { margin: 0; overflow-wrap: anywhere; }

/* Workspace ako karty */
.wscards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.wscards .panel { margin: 0; }
.attempts { margin-top: var(--s5); }
.wscard__head { margin-bottom: var(--s4); }
.wscard__head .meta { margin: var(--s1) 0 0; }
.wscard__title { margin: 0; font-size: var(--text-20); font-weight: 700; line-height: 1.2; }
.wscard__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s3); margin: 0 0 var(--s4); }
.wscard__stats dt { color: var(--grafit); font-size: var(--text-13); }
.wscard__stats dd { margin: 2px 0 0; font-weight: 700; }
.wscard__note { display: block; }
.wscard__budget { margin-bottom: var(--s4); }
.wscard__budgetline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.wscard__forms { display: grid; gap: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--linka); }
.grant { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.grant__label { flex: 0 0 100%; color: var(--grafit); font-size: var(--text-13); font-weight: 600; }
.grant .field { min-height: 40px; padding: 6px 10px; width: auto; }
.grant__credits { max-width: 7em; }
.grant__reason { flex: 1 1 8em; min-width: 0; }

/* Požiadavky */
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.reqs .req { margin: 0; }
.req__quote { margin: 0 0 var(--s2); font-weight: 600; overflow-wrap: anywhere; }
.req__tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s2); }
.req__answer { margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.req__meta { margin: 0; }
.fb__body { white-space: pre-line; font-weight: 500; }
.fb__actions { margin: var(--s3) 0 0; }
.req--done { background: var(--stol); }
.req--done .fb__body { color: var(--grafit); }

/* Ostatné */
.admin__quote { margin: 0; max-width: 48em; white-space: pre-line; overflow-wrap: anywhere; }
.admin__error { display: block; overflow-wrap: anywhere; max-width: 40em; }
.plain-list { margin: 0; padding-left: var(--s5); }
.plain-list li { margin: var(--s1) 0; }
.rules--admin { margin: 0; }
.rules--admin .rule:first-child { border-top: 0; }
.rules--admin .rule { padding: var(--s4) var(--s5); }
.code { margin: 0; padding: var(--s3); background: var(--stol); border-radius: var(--r-control); font-size: var(--text-13); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow: auto; }
.code--small { max-height: 240px; margin-top: var(--s2); }
.rule-form { display: grid; gap: var(--s2); max-width: 40em; }
.rule-form .panel__title { margin-bottom: var(--s1); }
.rule-form .field { min-height: 72px; }
.rule-form__row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.rule-form .rule-form__type { min-height: var(--tap); width: auto; padding: 0 var(--s3); }
.adm__main > .alert { margin: 0 0 var(--s4); }

/* ---------- Napíš nám ---------- */
.feedback { padding: 0 var(--s4); max-width: 40em; }
.feedback__about { margin: var(--s3) 0 0; }
.feedback__form { margin-top: var(--s5); display: grid; gap: var(--s3); }
.feedback__form .label { margin: 0 0 calc(var(--s1) * -1); }
.feedback__after { margin-top: var(--s6); flex-wrap: wrap; }
.vp__feedback { margin: var(--s3) 0 0; }

/* ---------- Podmienky používania ---------- */
.terms { padding: 0 var(--s4); max-width: 40em; }
.terms h2.terms__h { font-family: var(--font-display); font-weight: 800; font-size: var(--text-31); line-height: var(--leading-display); margin: var(--s4) 0 var(--s4); }
.terms h3.terms__h { font-size: var(--text-16); font-weight: 700; margin: var(--s6) 0 var(--s2); }
.terms p, .terms li { overflow-wrap: anywhere; }
.terms p { margin: 0 0 var(--s3); }
.terms ul { margin: 0 0 var(--s3); padding-left: var(--s5); }
.terms li { margin: var(--s1) 0; }
.terms__form { display: grid; gap: var(--s4); padding: var(--s6) var(--s4) 0; max-width: 40em; }
.terms__accepted { padding: var(--s4) var(--s4) 0; }
.auth__terms { margin: var(--s4) 0 0; }
.auth__terms a { color: inherit; }
.check { display: flex; gap: var(--s3); align-items: flex-start; min-height: var(--tap); cursor: pointer; font-weight: 600; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--film); }
.check input:focus-visible { outline: none; box-shadow: var(--focus); }
