/* ─────────────────────────────────────────────────────────────────────────────
   Štýly makiet appky zmaturuj.app (shadow DOM hostiteľa .zmx-host na sluzby.html).
   Prevzaté 1:1 z webu zmaturuj.app: premenné svetlej témy z :root (styles.css),
   ikony a tlačidlá PressButton (styles.css) a celý phone.css. Vynechané sú len
   pravidlá tmavej témy (html.dark) a rozmer podľa šírky okna – šírku rámu
   (--pw) a mierku plátna (--ps) dodáva hostiteľ podľa výšky javiska (assets/zmx.css).
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
:host {
  display: block;
  /* Dedené textové vlastnosti webu ANMA (napr. letter-spacing na body) by prešli cez hranicu
     shadow DOM – vraciame ich na východiskové hodnoty, aké má body na zmaturuj.app. */
  letter-spacing: normal; word-spacing: normal; text-transform: none; font-variant: normal;
  font-feature-settings: normal; font-kerning: auto; text-rendering: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  --bg: #FAF9FD;
  --card: #FFFFFF;
  --card2: #F1EFF6;
  --line: rgba(27, 22, 38, .10);
  --ink: #1B1626;
  --ink2: #6E6880;
  --nav: #FFFFFF;
  --nav-item: rgba(27, 22, 38, .055);
  --chip-amber-bg: #FAEEDA;
  --chip-amber-ink: #854F0B;
  --chip-green-bg: #EAF3DE;
  --chip-green-ink: #3B6D11;
  --chip-violet-bg: #EEEDFE;
  --chip-violet-ink: #534AB7;
  --chip-red-bg: #FCEBEB;
  --chip-red-ink: #A03030;
  --accent-ink: #534AB7;
  --press-shadow: #D6D1E4;
  --press-shadow-red: #EBC5C5;
  --listen-bg: #E6EFFD;
  --listen-ink: #1D4ED8;
  --listen-fill: #2563EB;
  --listen-shadow: #1E40AF;
  --listen-track: #CFDCF4;
  --path-trail: #E4E0EF;
  --shadow-soft: 0 1px 2px rgba(27, 22, 38, .04), 0 10px 30px rgba(27, 22, 38, .06);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --nav-h: 68px;
}
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-wrap: balance; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }

/* Rozloženie na javisku: menší domov vľavo, väčšia prehliadka vpravo, oba stoja na spodnom okraji. */
.zmx { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: var(--zmx-gap, 24px); padding-bottom: var(--zmx-pad, 4%); }

/* ── Ikony (Tabler, rovnaká sada ako appka) ─────────────────────────────── */
.ic { width: 20px; height: 20px; display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-f { fill: currentColor; stroke: none; }
.ic-12 { width: 12px; height: 12px; } .ic-14 { width: 14px; height: 14px; } .ic-15 { width: 15px; height: 15px; }
.ic-16 { width: 16px; height: 16px; } .ic-18 { width: 18px; height: 18px; } .ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; } .ic-23 { width: 23px; height: 23px; } .ic-24 { width: 24px; height: 24px; }
.ic-28 { width: 28px; height: 28px; }
.ic.inline { display: inline-block; vertical-align: -2px; }
.ink2 { color: var(--ink2); }
.ic-10 { width: 10px; height: 10px; } .ic-11 { width: 11px; height: 11px; } .ic-13 { width: 13px; height: 13px; } .ic-17 { width: 17px; height: 17px; }
.phone-canvas [hidden] { display: none !important; }

/* ── Tlačidlá: PressButton z appky ──────────────────────────────────────── */
.press {
  --pd: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 18px; margin-bottom: var(--pd);
  border-radius: 14px; border: 1px solid transparent;
  font: 700 14px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.press:active, .press.is-pressed { transform: translateY(var(--pd)); box-shadow: none !important; }
.press-primary { background: #534AB7; color: #fff; box-shadow: 0 var(--pd) 0 #3C3489; }
.press-secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 var(--pd) 0 var(--press-shadow); }
.press-danger { background: var(--chip-red-bg); color: var(--chip-red-ink); box-shadow: 0 var(--pd) 0 var(--press-shadow-red); }
.press-white { background: #fff; color: #26215C; box-shadow: 0 var(--pd) 0 #3C3489; }
.press-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 var(--pd) 0 rgba(20, 14, 60, .35); }
.press-sm { --pd: 3px; height: 38px; padding: 0 14px; border-radius: 11px; font-size: 12.5px; }
.press-block { display: flex; width: 100%; }

/* ── Telefón a simulované obrazovky appky (phone.css) ───────────────────── */
.phone {
  --pw: 300px; --ps: .74667;
  position: relative; flex-shrink: 0;
  width: var(--pw); height: calc((var(--pw) - 20px) * 2.16533 + 20px);
  padding: 10px; border-radius: 52px; background: #0E0A14;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .09), 0 34px 70px rgba(20, 12, 50, .34), 0 10px 22px rgba(20, 12, 50, .22);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #0E0A14; }
.phone::before { left: -3px; top: 150px; height: 56px; }
.phone::after { right: -3px; top: 190px; height: 84px; }
.phone-tour { --pw: 330px; --ps: .82667; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42px; background: var(--bg); isolation: isolate; }
.phone-canvas {
  position: absolute; left: 0; top: 0; width: 375px; height: 812px; overflow: hidden;
  transform: scale(var(--ps)); transform-origin: 0 0;
  background: var(--bg); color: var(--ink); font: 14px/1.4 var(--font); text-align: left;
}

.status { position: absolute; inset: 0 0 auto; z-index: 30; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 36px; font: 600 15px var(--font); color: var(--ink); pointer-events: none; transition: color 300ms ease; }
.phone-canvas.status-light .status { color: #fff; }
.status-r { display: flex; align-items: center; gap: 6px; }
.status .sig { width: 17px; height: 11px; background: linear-gradient(to right, currentColor 0 3px, transparent 3px 4.6px, currentColor 4.6px 7.6px, transparent 7.6px 9.2px, currentColor 9.2px 12.2px, transparent 12.2px 13.8px, currentColor 13.8px); clip-path: polygon(0 75%, 18% 75%, 18% 50%, 45% 50%, 45% 25%, 72% 25%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.status .wifi { width: 15px; height: 11px; background: currentColor; clip-path: polygon(50% 100%, 0 30%, 16% 12%, 50% 0, 84% 12%, 100% 30%); border-radius: 2px; }
.status .bat { position: relative; width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .95; }
.status .bat::before { content: ''; position: absolute; inset: 1.5px; right: 5px; border-radius: 2px; background: currentColor; }
.island { position: absolute; top: 11px; left: 50%; z-index: 31; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.home-ind { position: absolute; bottom: 8px; left: 50%; z-index: 32; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); opacity: .85; pointer-events: none; }
.phone-canvas.status-light .home-ind { background: #fff; }

/* Obrazovky: prelínajú sa a jemne dosadnú. */
.scr { position: absolute; inset: 0; padding-top: 54px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms; }
.scr.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s; }

/* Prst: kruh, ktorý prejde na miesto ťuknutia. */
.tap { position: absolute; left: 0; top: 0; z-index: 40; width: 46px; height: 46px; opacity: 0; pointer-events: none; transform: translate(165px, 860px); transition: transform 560ms var(--ease-in-out), opacity 200ms ease; }
.tap.is-on { opacity: 1; }
.tap.is-fast { transition-duration: 380ms, 200ms; }
.tap::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(83, 74, 183, .26); border: 2px solid rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(20, 12, 50, .28); transition: transform 140ms var(--ease-out); }
.tap::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(127, 119, 221, .8); opacity: 0; }
.tap.is-down::before { transform: scale(.78); }
.tap.is-down::after { animation: tapRipple 520ms var(--ease-out) forwards; }
@keyframes tapRipple { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.9); } }

.rise { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.rise:not(.in) { opacity: 0; transform: translateY(14px); }
.is-hidden { opacity: 0; pointer-events: none; }
.mt16 { margin-top: 16px; }
.mono { font-variant-numeric: tabular-nums; }
.xp-float { position: absolute; z-index: 5; padding: 3px 8px; border-radius: 999px; background: #534AB7; color: #fff; font: 700 12px var(--font); white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.95); pointer-events: none; }
.xp-float.go { animation: xpFloat 1300ms var(--ease-out) forwards; }
@keyframes xpFloat { 0% { opacity: 0; transform: translateY(6px) scale(.95); } 18% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; transform: translateY(-14px); } 100% { opacity: 0; transform: translateY(-22px); } }
.pop { animation: popIn 360ms var(--ease-out-back); }
@keyframes popIn { 0% { transform: scale(.94); } 50% { transform: scale(1.07); } 100% { transform: scale(1); } }


/* ── Prvky appky (components/ui2) ───────────────────────────────────────── */
.a-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.a-label { font-size: 12px; font-weight: 500; color: var(--ink2); }
.a-icbtn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card); border: 1px solid var(--line); color: var(--ink2); transition: transform 120ms var(--ease-out); }
.a-icbtn.is-pressed { transform: scale(.9); }
.a-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.a-chip.amber { background: var(--chip-amber-bg); color: var(--chip-amber-ink); }
.a-chip.green { background: var(--chip-green-bg); color: var(--chip-green-ink); }
.a-chip.violet { background: var(--chip-violet-bg); color: var(--chip-violet-ink); }
.a-chip.red { background: var(--chip-red-bg); color: var(--chip-red-ink); }
.a-avatar { position: relative; overflow: hidden; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--av, #CECBF6); color: var(--avi, #26215C); font: 600 17px var(--display); }
.a-avatar::before { content: ''; position: absolute; width: 62%; height: 62%; top: -20%; right: -16%; border-radius: 50%; background: var(--avb, #AFA9EC); }
.a-avatar > span { position: relative; }
.a-avatar.s26 { width: 26px; height: 26px; font-size: 11px; }
.emb { display: inline-block; flex-shrink: 0; overflow: hidden; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10); }
.emb svg { display: block; width: 100%; height: 100%; }

/* PressButton a PressChip v telefóne (rozmery z PressButton.tsx). */
.phone-canvas .press { font-family: var(--font); }
.press-success { background: #3B6D11; color: #fff; box-shadow: 0 var(--pd) 0 #27500A; }
.a-pchip { --pd: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-bottom: 3px; padding: 0 12px; border-radius: 11px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--press-shadow); font-size: 12.5px; font-weight: 600; transition: background-color 150ms ease, color 150ms ease, transform 80ms ease; }
.a-pchip.is-on { background: #534AB7; color: #fff; border-color: transparent; box-shadow: 0 3px 0 #3C3489; }

/* OptionTile */
.a-opt {
  --pd: 3px;
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 3px; padding: 11px 13px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--press-shadow);
  color: var(--ink); font-size: 14px; line-height: 1.35;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 120ms ease, opacity 200ms ease, transform 80ms ease;
}
.a-opt .lbl { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card2); color: var(--ink2); font: 700 12px var(--display); transition: background-color 200ms ease, color 200ms ease; }
.a-opt .txt { flex: 1; min-width: 0; }
.a-opt .trail { flex-shrink: 0; opacity: 0; transform: scale(.5); transition: opacity 180ms ease, transform 260ms var(--ease-out-back); }
.a-opt.st-selected { background: rgba(127, 119, 221, .14); border: 1.5px solid #7F77DD; box-shadow: 0 3px 0 #3C3489; }
.a-opt.st-selected .lbl { background: #7F77DD; color: #26215C; }
.a-opt.acc.st-selected { background: var(--acc-bg); border: 1.5px solid transparent; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); color: var(--acc-ink); }
.a-opt.acc.st-selected .lbl { background: #534AB7; color: #fff; }
.a-opt.st-correct { background: var(--chip-green-bg); border: 1.5px solid var(--chip-green-ink); box-shadow: 0 3px 0 rgba(16, 185, 129, .45); }
.a-opt.st-correct .lbl { background: var(--chip-green-ink); color: var(--chip-green-bg); }
.a-opt.st-wrong { background: var(--chip-red-bg); border: 1.5px solid var(--chip-red-ink); box-shadow: 0 3px 0 rgba(239, 68, 68, .45); }
.a-opt.st-wrong .lbl { background: var(--chip-red-ink); color: var(--chip-red-bg); }
.a-opt.st-dim { opacity: .7; box-shadow: none; color: var(--ink2); }
.a-opt.st-dim .lbl { background: var(--card2); color: var(--ink2); }
.a-opt.st-selected .trail, .a-opt.st-correct .trail { opacity: 1; transform: none; }
.a-opt.acc .trail { color: var(--acc-ink); }
.a-opt.st-correct .trail { color: var(--chip-green-ink); }
.phone-canvas .is-pressed { transform: translateY(var(--pd, 4px)); box-shadow: none !important; }

/* Dlaždica predmetu (SubjectTile) */
.a-tile { --pd: 0px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 106px; padding: 12px; border-radius: 20px; background: var(--base); transition: transform 120ms var(--ease-out); }
.a-tile.is-pressed { transform: scale(.97); }
.a-tile .blob1 { position: absolute; width: 80px; height: 80px; top: -24px; right: -16px; border-radius: 50%; background: var(--b1); }
.a-tile .blob2 { position: absolute; width: 48px; height: 48px; top: 34px; right: 30px; border-radius: 50%; background: var(--b2); }
.a-tile .arrow { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--strong); }
.a-tile .tag { position: relative; padding: 2px 10px; border-radius: 999px; background: var(--tagbg); color: var(--tagink); font-size: 12px; font-weight: 500; }
.a-tile .tile-title { position: relative; margin-top: auto; padding-top: 16px; color: var(--strong); font-size: 15px; font-weight: 600; line-height: 1.2; }
.a-tile .tile-title small { display: block; margin-top: 2px; color: var(--soft); font-size: 12px; font-weight: 400; }

/* Spodná navigácia (BottomNav): lišta 60, dlaždica 46 × 44 pod aktívnou položkou. */
.a-tabbar { position: absolute; left: 14px; right: 14px; bottom: 20px; z-index: 20; height: 60px; display: flex; align-items: center; border-radius: 999px; background: var(--nav); border: 1px solid var(--line); }
.a-tabbar .cell { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.a-tabbar .cell.is-on .ic { opacity: 0; }
.a-tabbar .tile { position: absolute; top: 6px; left: calc(var(--i) * 20% + (20% - 46px) / 2); z-index: 1; width: 46px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #534AB7; box-shadow: 0 4px 0 #3C3489; color: #fff; }

/* Plávajúca spodná lišta testu a precvičovania. */
.fbar { position: absolute; left: 14px; right: 14px; bottom: 34px; z-index: 12; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 999px; background: var(--nav); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(27, 22, 38, .08); }
.fbar .press { margin-bottom: 3px; }
.fbar-back { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card2); color: var(--ink2); }
.fbar-skip { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: #EF9F27; }
.fbar-count { flex: 1; padding-left: 8px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.segs { flex: 1; display: flex; gap: 4px; }
.segs i { flex: 1; height: 6px; border-radius: 999px; background: var(--card2); transition: background-color 300ms ease; }
.segs.h5 i { height: 5px; }
.segs.g2 { gap: 2px; }
.segs.g3 { gap: 3px; }
.segs i.on { background: #7F77DD; }
.segs i.cur { background: var(--accent-ink); }
.slide { position: absolute; inset: 0; padding: 0 16px; opacity: 0; transform: translateX(40px); pointer-events: none; transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.slide.is-current { opacity: 1; transform: none; }
.slide.is-past { opacity: 0; transform: translateX(-40px); }
.view { position: absolute; inset: 54px 0 0; opacity: 0; transform: scale(.98); pointer-events: none; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.view.is-current { opacity: 1; transform: none; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ── Domov ──────────────────────────────────────────────────────────────── */
.h-wrap { padding: 16px 16px 0; }
.h-head { display: flex; align-items: center; gap: 12px; }
.h-hello { flex: 1; display: flex; flex-direction: column; }
.h-small { font-size: 12px; line-height: 1.2; color: var(--ink2); }
.h-name { font: 600 17px/1.25 var(--display); }
.h-status { position: relative; margin-top: 16px; padding: 14px; }
.h-status-top { display: flex; justify-content: space-between; gap: 12px; }
.h-count { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.h-days { font: 500 40px/1 var(--display); color: #7F77DD; font-variant-numeric: tabular-nums; }
.h-dword { font-size: 18px; font-weight: 500; color: var(--ink2); }
.h-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.h-xp { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.h-lvl { font-size: 13px; font-weight: 500; }
.h-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--chip-violet-bg); }
.h-fill { display: block; width: 56%; height: 100%; border-radius: inherit; background: #7F77DD; transition: width 900ms var(--ease-out); }
.h-xptext { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.h-xp .xp-float { right: 0; top: -2px; }
.h-continue { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; }
.h-play { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #CECBF6; color: #26215C; }
.h-cont-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.h-cont-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ── Test: prehrávač ────────────────────────────────────────────────────── */
.tp-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.tp-timer { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--chip-violet-bg); color: var(--chip-violet-ink); font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.tp-body { position: absolute; left: 0; right: 0; top: 49px; bottom: 0; }
.pc { margin-top: 12px; padding: 12px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; }
.pc-head .ic { color: var(--ink2); }
.pc-text { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-more { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.ap { margin-top: 8px; padding: 12px 12px 10px; border-radius: 14px; background: var(--listen-bg); color: var(--listen-ink); }
.ap-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.ap-head .ic:last-child { margin-left: auto; opacity: .8; }
.ap-slider { position: relative; height: 32px; margin-top: 10px; }
.ap-track { position: absolute; left: 0; right: 0; top: 13px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--listen-track); }
.ap-fill { display: block; width: var(--ap, 30%); height: 100%; background: var(--listen-fill); transition: width 1000ms linear; }
.ap-thumb { position: absolute; top: 7px; left: var(--ap, 30%); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 2.5px solid var(--listen-fill); transition: left 1000ms linear; }
.ap-times { display: flex; justify-content: space-between; margin-top: -4px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.ap-ctrl { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 14px; margin-top: 6px; }
.ap-btn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--listen-ink); }
.ap-play { --pd: 4px; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--listen-fill); color: #fff; box-shadow: 0 4px 0 var(--listen-shadow); transition: transform 80ms ease; }
.ap-play .ic { position: absolute; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.ap-play { position: relative; }
.ap-play .i-pause { opacity: 0; transform: scale(.6); }
.ap.is-playing .ap-play .i-play { opacity: 0; transform: scale(.6); }
.ap.is-playing .ap-play .i-pause { opacity: 1; transform: none; }
.ap-speed { grid-column: 5; justify-self: end; height: 32px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; background: var(--card); color: var(--listen-ink); font-size: 12px; font-weight: 700; }
.q-label { margin-top: 16px; }
.q-text { margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.35; }

/* ── Test: výsledok ─────────────────────────────────────────────────────── */
.tr { padding: 24px 16px 0; }
.tr-head { position: relative; height: 170px; display: flex; align-items: center; justify-content: center; }
.cf { position: absolute; opacity: 0; transform: translateY(-10px) rotate(0deg) scale(.6); transition: opacity 300ms ease, transform 700ms var(--ease-out-back); }
.view.is-current .cf { opacity: 1; transform: rotate(var(--r)); }
.tr-ring { position: relative; width: 120px; height: 120px; }
.tr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-ring .trk { fill: none; stroke: var(--chip-violet-bg); stroke-width: 10; }
.tr-ring .val { fill: none; stroke: #7F77DD; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1100ms var(--ease-out); }
.tr-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 26px var(--display); font-variant-numeric: tabular-nums; }
.tr-title { margin-top: 12px; text-align: center; font: 600 21px var(--display); }
.tr-sub { margin-top: 2px; text-align: center; font-size: 12px; color: var(--ink2); }
.tr-chips { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tr-stat { padding: 10px; }
.tr-stat small { display: block; font-size: 12px; color: var(--ink2); }
.tr-stat b { display: block; margin-top: 2px; font: 600 19px var(--display); font-variant-numeric: tabular-nums; }
.tr .press { margin-top: 14px; }
.tr-back { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink2); }

/* ── Precvičovanie (Mode1Session) ───────────────────────────────────────── */
.pr-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; }
.pr-body { position: absolute; left: 0; right: 0; top: 104px; bottom: 0; }
.pr-body .slide { padding-top: 16px; }
.pr-label { margin-bottom: 8px; font-size: 11px; color: var(--ink2); }
.pr-q { font-size: 15px; font-weight: 600; line-height: 1.4; }
.pr-body .opts { margin-top: 16px; }
.fb { margin-top: 12px; opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out); }
.fb.is-on { opacity: 1; transform: none; }
.fb-ok { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .2); }
.fb-ck { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--chip-green-bg); color: var(--chip-green-ink); }
.fb-ok p { flex: 1; font-size: 13px; }
.fb-ok p b { font-weight: 600; color: #34D399; }
.fb-ok p span { color: #10B981; }
.fb-bad { display: grid; gap: 8px; }
.fb-box { padding: 10px 14px; border-radius: 12px; }
.fb-box small { display: block; font-size: 11px; font-weight: 600; }
.fb-box p { margin-top: 2px; font-size: 13px; }
.fb-box.red { background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .2); }
.fb-box.red small { color: var(--chip-red-ink); }
.fb-box.green { background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .2); }
.fb-box.green small { color: #10B981; }
.fbar .lbl-swap { display: inline-flex; align-items: center; gap: 6px; }

/* ── Cesta k maturite ───────────────────────────────────────────────────── */
.pa-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.pa-title { flex: 1; min-width: 0; font: 600 17px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--chip-green-bg); color: var(--chip-green-ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pa-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; height: 64px; margin: 4px 16px 0; padding: 0 14px; border-radius: 16px; background: var(--base); }
.pa-banner .bb1 { position: absolute; width: 84px; height: 84px; top: -30px; right: -22px; border-radius: 50%; background: var(--b1); opacity: .9; }
.pa-banner .bb2 { position: absolute; width: 40px; height: 40px; bottom: -14px; right: 58px; border-radius: 50%; background: var(--b2); }
.pa-banner-t { position: relative; flex: 1; min-width: 0; }
.pa-banner-t small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.pa-banner-t b { display: block; margin-top: 1px; font: 600 16px var(--display); color: var(--strong); }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.pa-ring { position: relative; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--strong) calc(var(--p) * 360deg), rgba(255, 255, 255, .45) 0deg); transition: --p 700ms cubic-bezier(0.23, 1, 0.32, 1); }
.pa-ring i { position: absolute; inset: 4px; border-radius: 50%; background: var(--base); }
.pa-ring span { position: relative; font-size: 11px; font-weight: 800; color: var(--strong); font-variant-numeric: tabular-nums; }
.pa-map { position: absolute; left: 0; right: 0; top: 196px; height: 580px; }
.pa-trail { position: absolute; left: 0; top: 0; width: 375px; height: 580px; overflow: visible; }
.pa-trail path { fill: none; stroke-width: 6; stroke-linecap: round; }
.pa-trail .dim { stroke: var(--path-trail); }
.pa-trail .lit { stroke: var(--b1); }
.pa-trail .grow { transition: stroke-dashoffset 800ms var(--ease-in-out); }
.pa-node { position: absolute; width: 170px; margin-left: -85px; display: flex; flex-direction: column; align-items: center; }
.pa-node .bub { --pd: 5px; position: relative; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 300ms ease, box-shadow 300ms ease, transform 80ms ease, color 300ms ease; }
.pa-node.big .bub { width: 66px; height: 66px; margin-top: -33px; border-radius: 22px; }
.pa-node .bub .ic { position: absolute; transition: opacity 220ms ease, transform 320ms var(--ease-out-back); }
.pa-node .i-alt { opacity: 0; transform: scale(.5); }
.pa-node.swap .i-main { opacity: 0; transform: scale(.5); }
.pa-node.swap .i-alt { opacity: 1; transform: none; }
.pa-node.lesson.st-done .bub { background: #534AB7; box-shadow: 0 5px 0 #3C3489; color: #fff; }
.pa-node.quiz.st-done .bub { background: #ED93B1; box-shadow: 0 5px 0 #993556; color: #4B1528; }
.pa-node.lesson.st-current .bub { background: #7F77DD; box-shadow: 0 5px 0 #534AB7; color: #fff; }
.pa-node.quiz.st-current .bub { background: #F4C0D1; box-shadow: 0 5px 0 #ED93B1; color: #4B1528; }
.pa-node.st-current .bub::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid #7F77DD; opacity: .55; }
.pa-node.st-locked .bub { background: var(--card2); box-shadow: 0 4px 0 var(--press-shadow); color: var(--ink2); }
.pa-node.big.st-locked .bub { background: var(--chip-amber-bg); color: var(--chip-amber-ink); }
.situ { position: absolute; bottom: calc(100% + 14px); left: 50%; z-index: 5; padding: 5px 11px; border-radius: 10px; background: #534AB7; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 3px 0 #3C3489; opacity: 0; transform: translate(-50%, 6px); transition: opacity 260ms ease, transform 320ms var(--ease-out); }
.situ::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #534AB7; }
.pa-node.st-current .situ { opacity: 1; transform: translate(-50%, 0); animation: situBob 1.6s ease-in-out infinite; }
@keyframes situBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
.pa-lbl { margin-top: 8px; padding: 3px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pa-node.st-locked .pa-lbl { color: var(--ink2); }
.pa-node .xp-float { top: -64px; }

/* ── Ťahák: detail s balíčkom ───────────────────────────────────────────── */
.sh-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--nav) 88%, transparent); }
.sh-head .sh-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-head .a-icbtn.s30 { width: 30px; height: 30px; }
.sh-body { padding: 0 16px; }
.sh-h1 { margin-top: 14px; font: 600 20px/1.2 var(--display); }
.sh-chips { display: flex; gap: 6px; margin-top: 10px; }
.sh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.sh-chip.violet { background: var(--chip-violet-bg); color: var(--chip-violet-ink); }
.sh-chip.green { background: var(--chip-green-bg); color: var(--chip-green-ink); }
.sh-chip.gray { background: var(--card2); color: var(--ink2); }
.sh-modes { display: flex; gap: 8px; margin-top: 16px; }
.sh-modes .a-pchip { flex: 1; }
.sh-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.sh-prog .segs i.know { background: #7F77DD; }
.sh-prog .segs i.now { background: #AFA9EC; }
.sh-prog .segs i.again { background: var(--chip-violet-bg); }
.sh-prog span { font-size: 11.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.deck { position: absolute; left: 16px; right: 16px; top: 272px; height: 412px; }
.fc { position: absolute; left: 0; right: 0; top: 0; height: 388px; transform-origin: 50% 100%; transition: transform 380ms cubic-bezier(.22, 1.1, .36, 1), opacity 320ms ease; }
.fc[data-depth="1"] { transform: translateY(12px) scale(.95); }
.fc[data-depth="2"] { transform: translateY(24px) scale(.9); }
.fc-top { z-index: 3; }
.fc-next { z-index: 2; }
.fc-ghost { z-index: 1; }
/* Otočenie v dvoch polovičkách: bez 3D plochy a skrytej zadnej strany, funguje v každom prehliadači. */
.fc-inner { position: relative; width: 100%; height: 100%; }
.fc-top.is-flipped .fc-front { display: none; }
.fc-top.is-flipped .fc-back { display: flex; }
.fc-top.is-leaving { transition: transform 320ms var(--ease-out), opacity 320ms ease; opacity: 0; }
.fc-face { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; padding: 20px; border-radius: 24px; }
.fc-front { background: var(--base); color: var(--strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.fc-back { display: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .10); }
.fc-front i { position: absolute; border-radius: 50%; }
.fc-front .fb1 { width: 150px; height: 150px; top: -52px; right: -40px; background: var(--b1); }
.fc-front .fb2 { width: 72px; height: 72px; top: 64px; right: 52px; background: var(--b2); }
.fc-front .fb3 { width: 110px; height: 110px; bottom: -50px; left: -36px; background: var(--b2); opacity: .55; }
.fc-tag { position: relative; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--tagbg); color: var(--tagink); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.fc-term { position: relative; margin: auto 0; font: 600 27px/1.12 var(--display); letter-spacing: -.01em; }
.fc-hint { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 11px; font-weight: 600; color: var(--soft); }
.fc-hint span { display: inline-flex; align-items: center; gap: 4px; }
.fc-back .fc-hint { color: var(--ink2); }
.fc-md { margin-top: 12px; }
.fc-md p { font-size: 13.5px; line-height: 1.6; }
.fc-callout { margin-top: 10px; padding: 9px 11px 8px; border-radius: 14px; background: var(--chip-violet-bg); }
.fc-callout small { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chip-violet-ink); }
.fc-callout p { font-size: 13px; line-height: 1.6; }
.stamp { position: absolute; top: 18px; z-index: 5; padding: 6px 12px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.stamp.know { left: 18px; background: #3B6D11; transform: rotate(-8deg); }
.stamp.again { right: 18px; background: #534AB7; transform: rotate(8deg); }
.fc-top.is-dragging .stamp.know { opacity: 1; }
.sh-actions { position: absolute; left: 16px; right: 16px; top: 700px; display: flex; align-items: flex-start; gap: 10px; }
.sh-actions .press { flex: 1; }
.sh-rot { width: 44px; height: 44px; margin-top: 2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.sh-hint { position: absolute; left: 24px; right: 24px; top: 762px; text-align: center; font-size: 11.5px; line-height: 1.4; color: var(--ink2); }

/* ── Aréna ──────────────────────────────────────────────────────────────── */
.ar-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ar-ring { position: relative; width: 62px; height: 62px; margin: 4px auto 0; }
.ar-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ar-ring .trk { fill: none; stroke: var(--card2); stroke-width: 5; }
.ar-ring .val { fill: none; stroke: #7F77DD; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 0; transition: stroke-dashoffset 1000ms linear; }
.ar-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ar-count { margin-top: 6px; text-align: center; font-size: 11px; color: var(--ink2); }
.ar-card { margin: 14px 16px 12px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ar-card small { font-size: 11px; color: var(--ink2); }
.ar-card p { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.ar-sent { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(16, 185, 129, .1); color: #34D399; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity 220ms ease, transform 260ms var(--ease-out); }
.ar-sent.is-on { opacity: 1; transform: none; }
.ar-tiles { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.ar-tile { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 16px; background: var(--t); color: #fff; font-size: 14px; font-weight: 500; transition: opacity 200ms ease, transform 120ms var(--ease-out), box-shadow 200ms ease; }
.ar-tile i { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ar-tile.is-pressed { transform: scale(.98); }
.ar-tile.is-dim { opacity: .45; }
.ar-tile.is-picked { box-shadow: 0 0 0 2px #fff; }
.ar-res { display: flex; justify-content: center; margin-top: 2px; }
.ar-res .a-chip { font-weight: 600; transform: scale(.8); opacity: 0; transition: opacity 200ms ease, transform 360ms var(--ease-out-back); }
.view.is-current .ar-res .a-chip { transform: none; opacity: 1; transition-delay: 150ms; }
.ar-ropts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 0 16px; }
.ar-ro { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--card2); color: var(--ink2); font-size: 14px; font-weight: 500; }
.ar-ro i { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: .7; }
.ar-ro.ok { background: var(--t); color: #fff; box-shadow: 0 0 0 2px #97C459; }
.ar-ro.ok i { opacity: 1; }
.ar-ro.ok .ic-ok { margin-left: auto; }
.ar-lb { margin: 16px 16px 8px; }
.ar-rows { position: relative; margin: 0 16px; height: 212px; }
.ar-row { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: transform 600ms var(--ease-in-out); }
.ar-row.me { background: rgba(83, 74, 183, .1); border-color: rgba(83, 74, 183, .25); }
.ar-row .rank { width: 24px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink2); }
.ar-row .nm { flex: 1; font-size: 14px; font-weight: 500; }
.ar-row.me .nm { color: var(--accent-ink); }
.ar-row .pts { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ar-wait { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink2); }

/* ── AI učiteľ: ústna skúška (DeviceVoiceExam, ExamCommittee, LiveTranscript) ── */
.exam-stage {
  --stage-bg: radial-gradient(120% 80% at 50% 22%, #E6E1F7 0%, #FAF9FD 60%);
  --stage-ink: #1B1626; --stage-ink2: #6E6880;
  --stage-status-speak: #534AB7; --stage-status-listen: #3B6D11;
  --stage-chip-bg: rgba(83, 74, 183, .12);
  --stage-ctrl-bg: rgba(27, 22, 38, .06); --stage-ctrl-line: rgba(27, 22, 38, .14); --stage-ctrl-ink: rgba(27, 22, 38, .65);
  --stage-panel-bg: rgba(255, 255, 255, .72); --stage-panel-line: rgba(27, 22, 38, .10);
  --stage-text-dim: rgba(27, 22, 38, .5); --stage-text-faint: rgba(27, 22, 38, .32); --stage-text-body: rgba(27, 22, 38, .74);
  --stage-avatar-shadow: rgba(83, 74, 183, .28); --stage-avatar-ring: rgba(255, 255, 255, .9);
  --stage-card2: #F1EFF6; --stage-line: rgba(27, 22, 38, .10);
}
.scr.exam-stage { display: flex; flex-direction: column; padding: 62px 12px 52px; background: var(--stage-bg); color: var(--stage-ink); }
.ex-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ex-top-c { flex: 1; min-width: 0; text-align: center; }
.ex-top-c b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.ex-top-c span { display: block; margin-top: 2px; font-size: 11px; color: var(--stage-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-clock { display: flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 4px 10px; border-radius: 100px; background: var(--stage-chip-bg); color: var(--stage-status-speak); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 6px; }
.ex-status { display: flex; align-items: center; justify-content: center; gap: 6px; height: 20px; font-size: 14px; font-weight: 500; color: var(--stage-status-speak); transition: color 200ms ease; }
.ex-status[data-mode="listen"] { color: var(--stage-status-listen); }
.ex-status[data-mode="think"] { color: var(--stage-ink2); }
.eq { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: currentColor; animation: eq 900ms ease-in-out infinite; }
.eq i:nth-child(2) { animation-duration: 1.1s; animation-delay: .25s; }
.eq i:nth-child(3) { animation-duration: .8s; animation-delay: .1s; }
.eq i:nth-child(4) { animation-duration: 1s; animation-delay: .35s; }
.eq i:nth-child(5) { animation-duration: .95s; animation-delay: .15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.ex-status[data-mode="think"] .eq { display: none; }
.ex-disc { max-width: 280px; text-align: center; font-size: 11px; line-height: 1.45; color: var(--stage-ink2); }
.ex-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ex-side { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--stage-ctrl-bg); outline: 1.5px solid var(--stage-ctrl-line); color: var(--stage-ctrl-ink); }
.ex-end { --pd: 0px; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #E24B4A; color: #fff; box-shadow: 0 4px 22px rgba(226, 75, 74, .45); transition: transform 120ms var(--ease-out); }
.ex-end.is-pressed { transform: scale(.92); }

/* Komisia: rozmery a tvary z ExamCommittee.tsx (predpona ec-). */
.ec-root { position: relative; width: 300px; height: 200px; flex-shrink: 0; --ec-skin: #CECBF6; --ec-skin2: #B9B3EE; --ec-hair: #26215C; --ec-pink: #F4C0D1; --ec-lav: #AFA9EC; --ec-deep: #534AB7; --ec-sclera: #FBFAFE; }
.ec-aura { position: absolute; left: 50%; top: 4px; width: 132px; height: 132px; margin-left: -66px; pointer-events: none; }
.ec-aura > * { position: absolute; left: 50%; top: 50%; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); }
.ec-p1, .ec-p2 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(127, 119, 221, .35), transparent 70%); }
.ec-rip { width: 150px; height: 150px; border: 1.5px solid rgba(151, 196, 89, .45); }
.ec-root[data-state="speaking"] .ec-p1 { animation: ecPulse 2.4s ease-out infinite; }
.ec-root[data-state="speaking"] .ec-p2 { animation: ecPulse 2.4s ease-out infinite 1.2s; }
.ec-root[data-state="listening"] .ec-rip { animation: ecRipple 1.6s ease-out infinite; }
.ec-think { position: absolute; left: calc(50% + 58px); top: 0; display: flex; gap: 4px; padding: 8px 10px; border-radius: 14px 14px 14px 4px; background: var(--stage-card2); border: 1px solid var(--stage-line); opacity: 0; transform: translateY(6px) scale(.95); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.ec-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--stage-status-speak); animation: ecProc 1.6s ease-in-out infinite; }
.ec-think i:nth-child(2) { animation-delay: .2s; } .ec-think i:nth-child(3) { animation-delay: .4s; }
.ec-root[data-state="thinking"] .ec-think { opacity: 1; transform: none; }
.ec-m { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; --look: 0; --tilt: 0; --nod: 0; transition: transform 250ms var(--ease-out); }
.ec-m.ec-lead { left: 50%; top: 4px; transform: translateX(-50%); }
.ec-root[data-state="listening"] .ec-m.ec-lead { transform: translateX(-50%) translateY(-4px) scale(1.03); }
.ec-m.ec-l2 { left: 18px; top: 80px; opacity: .92; }
.ec-m.ec-l3 { right: 18px; top: 80px; opacity: .92; }
.ec-head { transform: rotate(calc(var(--tilt) * 1deg)) translateY(calc(var(--nod) * 3px)); transform-origin: 50% 95%; transition: transform 420ms var(--ease-in-out); }
.ec-av { position: relative; overflow: hidden; border-radius: 50%; background: var(--ec-skin); box-shadow: 0 10px 30px var(--stage-avatar-shadow); border: 3px solid var(--stage-avatar-ring); }
.ec-lead .ec-av { width: 132px; height: 132px; }
.ec-l2 .ec-av, .ec-l3 .ec-av { width: 60px; height: 60px; border-width: 2px; }
.ec-inner { position: absolute; left: -3px; top: -3px; width: 132px; height: 132px; transform-origin: 0 0; }
.ec-l2 .ec-inner, .ec-l3 .ec-inner { left: -2px; top: -2px; transform: scale(.4545); }
.ec-hair { position: absolute; background: var(--ec-hair); }
.ec-rn .ec-hair { left: -4px; top: -8px; width: 140px; height: 42px; border-radius: 70px 70px 44px 14px; }
.ec-rn .ec-hair::before, .ec-rn .ec-hair::after { content: ''; position: absolute; top: 22px; width: 20px; height: 76px; background: var(--ec-hair); border-radius: 0 0 12px 12px; }
.ec-rn .ec-hair::before { left: 0; } .ec-rn .ec-hair::after { right: 0; }
.ec-mk .ec-hair { left: 16px; top: 2px; width: 100px; height: 22px; border-radius: 50px 50px 8px 8px; opacity: .9; }
.ec-ph .ec-hair { left: 0; top: -6px; width: 132px; height: 40px; border-radius: 66px 66px 20px 34px; }
.ec-ph .ec-bun { position: absolute; left: 94px; top: -12px; width: 32px; height: 32px; border-radius: 50%; background: var(--ec-hair); }
.ec-collar { position: absolute; left: 21px; bottom: -18px; width: 90px; height: 46px; border-radius: 45px 45px 0 0; }
.ec-rn .ec-collar { background: var(--ec-pink); } .ec-mk .ec-collar { background: var(--ec-lav); } .ec-ph .ec-collar { background: var(--ec-deep); }
.ec-mk .ec-tie { position: absolute; left: 60px; bottom: -4px; width: 12px; height: 24px; background: var(--ec-hair); clip-path: polygon(50% 0, 100% 28%, 50% 100%, 0 28%); }
.ec-rn .ec-earring { position: absolute; left: 14px; top: 84px; width: 7px; height: 7px; border-radius: 50%; background: var(--ec-pink); }
.ec-face { position: absolute; inset: 0; transform: translateX(calc(var(--look) * 5px)); transition: transform 360ms var(--ease-in-out); }
.ec-brow { position: absolute; top: 38px; width: 19px; height: 4.5px; border-radius: 3px 3px 4px 4px; background: var(--ec-hair); }
.ec-brow-l { left: 37px; transform: rotate(-4deg); } .ec-brow-r { right: 37px; transform: rotate(4deg); }
.ec-mk .ec-brow { width: 20px; height: 5px; } .ec-mk .ec-brow-l { left: 36px; } .ec-mk .ec-brow-r { right: 36px; }
.ec-eye { position: absolute; top: 49px; width: 16px; height: 16px; overflow: hidden; border-radius: 50%; background: var(--ec-sclera); }
.ec-eye-l { left: 37px; } .ec-eye-r { right: 37px; }
.ec-pupil { position: absolute; left: 4.5px; top: 4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ec-hair); transform: translateX(calc(var(--look) * 3px)); transition: transform 300ms var(--ease-in-out); }
.ec-lid { position: absolute; inset: -1px; background: var(--ec-skin); transform: scaleY(0); transform-origin: top; }
.ec-blink .ec-lid { animation: ecBlink 170ms var(--ease-out) 1; }
.ec-nose { position: absolute; left: 62px; top: 66px; width: 8px; height: 5px; border-radius: 0 0 5px 5px; background: var(--ec-skin2); }
.ec-mouth { position: absolute; left: 46px; top: 76px; width: 40px; height: 24px; overflow: visible; }
.ec-mouth path { fill: var(--ec-hair); }
.ec-mk .ec-stache { position: absolute; left: 51px; top: 79px; width: 30px; height: 8px; }
.ec-mk .ec-stache::before, .ec-mk .ec-stache::after { content: ''; position: absolute; top: 0; width: 15px; height: 6px; background: var(--ec-hair); border-radius: 3px 3px 6px 6px; }
.ec-mk .ec-stache::before { left: 0; transform: rotate(-9deg); transform-origin: right center; }
.ec-mk .ec-stache::after { right: 0; transform: rotate(9deg); transform-origin: left center; }
.ec-ph .ec-glasses { position: absolute; left: 0; top: 0; width: 132px; height: 132px; }
.ec-ph .ec-glasses i { position: absolute; top: 45px; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--ec-hair); }
.ec-ph .ec-glasses i:first-child { left: 33px; } .ec-ph .ec-glasses i:last-child { right: 33px; }
.ec-ph .ec-glasses b { position: absolute; left: 57px; top: 55px; width: 18px; height: 2.5px; background: var(--ec-hair); }
.ec-tag { padding: 3px 8px; border-radius: 999px; background: var(--ec-skin); color: #26215C; font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.ec-lead .ec-tag { padding: 4px 10px; font-size: 11px; }
.ec-role { margin-top: -2px; font-size: 10px; color: var(--stage-ink2); }
.ec-nod .ec-l2 .ec-head, .ec-nod .ec-l3 .ec-head { animation: ecNod 700ms var(--ease-out); }
@keyframes ecPulse { 0% { transform: translate(-50%, -50%) scale(.55); opacity: .38; } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }
@keyframes ecRipple { 0% { transform: translate(-50%, -50%) scale(.7); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
@keyframes ecProc { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes ecBlink { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
@keyframes ecNod { 0%, 100% { transform: none; } 40% { transform: translateY(3px); } }

.lt-box { width: 100%; max-width: 351px; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 10px 12px 8px; border-radius: 14px; background: var(--stage-panel-bg); border: .5px solid var(--stage-panel-line); }
.lt-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lt-t { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stage-text-dim); }
.lt-all { font-size: 11px; font-weight: 600; color: var(--stage-status-speak); }
.lt-lines { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.lt-line { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.lt-line.is-on { opacity: 1; transform: none; }
.lt-line.is-gone { display: none; }
.lt-who { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #CECBF6; color: #26215C; font-size: 9px; font-weight: 800; }
.lt-me .lt-who { background: var(--chip-green-bg); color: var(--chip-green-ink); }
.lt-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.lt-nm { font-size: 11px; font-weight: 600; color: var(--stage-text-dim); }
.lt-ts { font-size: 10px; color: var(--stage-text-faint); font-variant-numeric: tabular-nums; }
.lt-tx { font-size: 13px; line-height: 1.5; color: var(--stage-text-body); }
.lt-line.is-live .lt-tx { color: var(--stage-ink); }
.lt-caret { display: none; width: 2px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--stage-status-speak); animation: ltCaret 1s steps(2, start) infinite; }
.lt-me .lt-caret { background: var(--stage-status-listen); }
.lt-line.is-live .lt-caret { display: inline-block; }
@keyframes ltCaret { to { visibility: hidden; } }
.lt-chip { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--chip-green-bg); color: var(--chip-green-ink); font-size: 9px; font-weight: 800; letter-spacing: .06em; vertical-align: middle; opacity: 0; transform: scale(.6); transition: opacity 200ms ease, transform 320ms var(--ease-out-back); }
.lt-chip.is-on { opacity: 1; transform: none; }

/* Výsledok skúšky (AiTeacherResultsView) */
.ex-res { position: absolute; inset: 0; z-index: 12; overflow: hidden; padding: 62px 16px 0; background: var(--stage-bg); color: var(--stage-ink); opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-drawer); }
.ex-res.is-on { opacity: 1; transform: none; }
.ex-res-head { display: flex; align-items: center; gap: 10px; }
.ex-res-head > span { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--stage-chip-bg); color: var(--stage-status-speak); }
.ex-res-head b { display: block; font: 600 20px/1.2 var(--display); }
.ex-res-head small { display: block; font-size: 12px; color: var(--stage-ink2); }
.gr { position: relative; width: 110px; height: 110px; margin: 18px auto 0; }
.gr svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gr .trk { fill: none; stroke: var(--stage-card2); stroke-width: 9; }
.gr .val { fill: none; stroke: var(--g); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 289.03; stroke-dashoffset: 289.03; transition: stroke-dashoffset 1100ms var(--ease-out); }
.ex-res.is-on .gr .val { stroke-dashoffset: 57.8; }
.gr div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gr b { font: 800 30px/1 var(--display); color: var(--g); }
.gr small { margin-top: 3px; font-size: 10px; color: var(--stage-ink2); }
.ex-res-chips { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ex-res .ex-disc { margin: 8px auto 0; }
.ex-res .a-label { margin-top: 16px; margin-bottom: 8px; }
.ex-part { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 10px 12px; }
.ex-part div { flex: 1; min-width: 0; }
.ex-part b { display: block; font-size: 13px; font-weight: 600; }
.ex-part small { display: block; font-size: 11px; color: var(--ink2); }
.ex-part i { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font: 800 14px var(--display); font-style: normal; }
.ex-bars { padding: 12px; display: grid; gap: 10px; }
.ex-bar { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; }
.ex-bar span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-bar em { height: 6px; overflow: hidden; border-radius: 999px; background: var(--card2); }
.ex-bar em i { display: block; width: 0; height: 100%; border-radius: inherit; background: #7F77DD; transition: width 900ms var(--ease-out) 300ms; }
.ex-res.is-on .ex-bar em i { width: var(--w); }

/* ── Prihlásenie a registrácia (AuthShell) ──────────────────────────────── */
.scr.au { display: flex; flex-direction: column; padding-top: 0; background: var(--bg); }
.au-stage { position: relative; overflow: hidden; flex-shrink: 0; padding: 68px 20px 48px; background: #534AB7; color: #fff; }
.au-mark { position: absolute; right: -56px; top: 44px; width: 220px; height: 220px; opacity: .13; pointer-events: none; }
.au-brand { position: relative; display: flex; align-items: center; gap: 8px; font: 600 15px var(--display); }
.au-title { position: relative; margin: 28px 0 0; font: 400 34px/1.12 var(--display); }
.au-title span { display: block; }
.au-title .acc { color: #F4C0D1; font-weight: 500; }
.au-sub { position: relative; max-width: 360px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .74); }
.au-sheet { position: relative; flex: 1; display: flex; flex-direction: column; margin-top: -28px; padding: 22px 20px 50px; border-radius: 28px 28px 0 0; background: var(--bg); box-shadow: 0 -12px 30px rgba(0, 0, 0, .18); }
.au-social { display: flex; gap: 8px; }
.au-social .press { flex: 1; }
.au-social .press.is-off { opacity: .5; }
.au-div { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; color: var(--ink2); }
.au-div::before, .au-div::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.au-form { display: flex; flex-direction: column; gap: 10px; }
.au-field { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color 150ms ease, box-shadow 150ms ease; }
.au-field.is-focus { border-color: #7F77DD; box-shadow: inset 0 0 0 1px #7F77DD; }
.au-field .f { flex: 1; min-width: 0; }
.au-field .f > span { display: block; font-size: 11px; line-height: 1; color: var(--ink2); }
.au-field .v { display: block; min-height: 18px; margin-top: 4px; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.au-field .v:empty::before { content: attr(data-ph); color: var(--ink2); opacity: .6; }
.au-field.is-focus .v::after { content: ''; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: #7F77DD; animation: ltCaret 1s steps(2, start) infinite; }
.au-field.is-focus .v:empty::before { content: none; }
.au-field > .ic { color: var(--ink2); }
.au-strength { display: flex; align-items: center; gap: 10px; margin-top: -4px; opacity: 0; transition: opacity 200ms ease; }
.au-strength.is-on { opacity: 1; }
.au-strength div { flex: 1; display: flex; gap: 4px; }
.au-strength i { flex: 1; height: 5px; border-radius: 999px; background: var(--card2); transition: background-color 200ms ease; }
.au-strength span { font-size: 11px; font-weight: 500; }
.au-strength[data-s="1"] i:nth-child(-n+1), .au-strength[data-s="1"] span { background-color: var(--chip-red-ink); color: var(--chip-red-ink); }
.au-strength[data-s="2"] i:nth-child(-n+2), .au-strength[data-s="2"] span { background-color: var(--chip-amber-ink); color: var(--chip-amber-ink); }
.au-strength[data-s="3"] i, .au-strength[data-s="3"] span { background-color: var(--chip-green-ink); color: var(--chip-green-ink); }
.au-strength span { background-color: transparent !important; }
.au-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
.au-box { width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card); border: 1px solid var(--line); color: transparent; transition: background-color 150ms ease, border-color 150ms ease; }
.au-consent.is-on .au-box { background: #534AB7; border-color: #534AB7; color: #fff; }
.au-consent u { color: var(--accent-ink); text-underline-offset: 2px; }
.au-form .press { margin-top: 4px; }
.au-foot { margin-top: auto; padding-top: 24px; text-align: center; font-size: 13px; color: var(--ink2); }
.au-foot b { font-weight: 600; color: var(--accent-ink); }

/* ── Potvrdzovací e-mail v schránke ─────────────────────────────────────── */
.ml-top { display: flex; align-items: center; gap: 4px; padding: 8px 12px; color: #007AFF; font-size: 16px; }
.ml-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.ml-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #534AB7; }
.ml-av img { width: 22px; }
.ml-head b { display: block; font-size: 15px; }
.ml-head span { font-size: 12px; color: var(--ink2); }
.ml-subject { padding: 4px 16px 10px; font: 600 20px/1.25 var(--font); }
.ml-mail { margin: 0 14px; overflow: hidden; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.ml-mail > img { display: block; width: 100%; height: auto; }
.ml-body { padding: 16px 18px 18px; }
.ml-body > p { font-size: 13px; line-height: 1.55; color: var(--ink2); }
.ml-chip { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; padding: 9px 10px; border-radius: 14px; background: var(--card2); }
.ml-chip > span { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--chip-violet-bg); color: var(--chip-violet-ink); font-weight: 700; }
.ml-chip small { display: block; font-size: 11px; color: var(--ink2); }
.ml-chip b { font-size: 13px; }
.ml-note { display: block; margin-top: 8px; text-align: center; font-size: 11px; color: var(--ink2); }

/* ── Onboarding: škola a predmety ───────────────────────────────────────── */
.ob-chrome { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.ob-word { font: 600 16px var(--display); }
.ob-word span { color: #7F77DD; }
.ob-dots { display: flex; gap: 6px; margin-top: 10px; }
.ob-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--card2); }
.ob-dots i.on { width: 22px; background: #7F77DD; }
.ob-step { margin-top: 6px; font-size: 11px; color: var(--ink2); }
.ob-body { padding: 0 16px; }
.ob-t { margin-top: 20px; font: 600 21px/1.25 var(--display); }
.ob-help { margin-top: 6px; font-size: 11px; color: var(--ink2); }
.ob-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ob-row { --pd: 0px; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: background-color 200ms ease, border-color 200ms ease, transform 120ms var(--ease-out); }
.ob-row.is-pressed { transform: scale(.98); }
.ob-row.is-on, .ob-sub.is-on { background: var(--chip-violet-bg); border: 1.5px solid #534AB7; padding: 9.5px; }
.ob-sub.is-on { padding: 0; }
.ob-ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card2); color: var(--ink2); transition: background-color 150ms ease, color 150ms ease; }
.ob-row.is-on .ob-ico { background: #7F77DD; color: #26215C; }
.ob-row .t, .ob-sub .t { flex: 1; min-width: 0; }
.ob-row .t b { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; }
.ob-row .t small, .ob-sub .t small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-row.is-on .t small, .ob-sub.is-on .t small { color: var(--chip-violet-ink); }
.ob-radio { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1.5px solid var(--line); color: transparent; transition: background-color 150ms ease; }
.is-on > .ob-radio, .is-on > .ob-sub-row > .ob-radio { background: #7F77DD; border-color: transparent; color: #26215C; }
.ob-sh { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; }
.ob-sh .a-icbtn { margin-top: 2px; }
.ob-sh b { display: block; font: 600 18px/1.25 var(--display); }
.ob-sh small { display: block; margin-top: 4px; font-size: 11px; color: var(--ink2); }
.ob-groups { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.ob-group { display: flex; flex-direction: column; gap: 8px; }
.ob-group .a-label em { font-style: normal; opacity: .75; }
.ob-sub { overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: background-color 150ms ease, border-color 150ms ease; }
.ob-sub.soon { opacity: .5; }
.ob-sub-row { display: flex; align-items: center; gap: 12px; padding: 10px; }
.ob-sub.is-on .ob-sub-row { padding: 9.5px; }
.ob-tile { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--base); }
.ob-tile .emb { width: 26px; height: 17px; }
.ob-sub .t b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.ob-lv { display: flex; gap: 8px; padding: 0 10px 10px 44px; }
.ob-lv[hidden] { display: none; }
.ob-cta { position: absolute; left: 16px; right: 16px; bottom: 50px; }

/* ── Pridať na plochu ───────────────────────────────────────────────────── */
.ios-page { position: absolute; inset: 54px 0 0; }
.ios-mini { padding: 16px; }
.ios-mini-head { display: flex; align-items: center; gap: 12px; }
.ios-mini-head small { display: block; font-size: 12px; color: var(--ink2); }
.ios-mini-head b { font: 600 17px var(--display); }
.ios-mini-card { height: 128px; margin-top: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.ios-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ios-mini-grid i { height: 106px; border-radius: 20px; }
.ios-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 30px; background: color-mix(in srgb, var(--card) 92%, transparent); border-top: 1px solid var(--line); }
.ios-url { display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; border-radius: 12px; background: var(--card2); font-size: 14px; }
.ios-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 8px; color: #007AFF; }
.ios-tools .dim { opacity: .35; }
.ios-share { display: flex; border-radius: 10px; transition: transform 80ms ease; }
.ios-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 14; padding: 16px 16px 40px; border-radius: 22px 22px 0 0; background: var(--card2); box-shadow: 0 -14px 34px rgba(0, 0, 0, .22); transform: translateY(105%); transition: transform 480ms var(--ease-drawer); }
.ios-sheet.is-on { transform: none; }
.ios-sheet-app { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; }
.ios-sheet-app img { width: 44px; height: 44px; border-radius: 11px; }
.ios-sheet-app b { display: block; font-size: 15px; }
.ios-sheet-app small { font-size: 12px; color: var(--ink2); }
.ios-rows { overflow: hidden; border-radius: 14px; background: var(--card); }
.ios-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 16px; transition: background-color 150ms ease; }
.ios-row + .ios-row { border-top: 1px solid var(--line); }
.ios-row.is-pressed { background: var(--card2); transform: none; }
.ios-home { position: absolute; inset: 0; z-index: 16; padding: 70px 22px 0; background: linear-gradient(165deg, #7F77DD 0%, #534AB7 45%, #26215C 100%); opacity: 0; pointer-events: none; transition: opacity 420ms var(--ease-out); }
.ios-home.is-on { opacity: 1; }
.ios-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
.ios-app { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 11px; }
.ios-app i, .ios-app img { width: 62px; height: 62px; border-radius: 15px; }
.ios-app.zm { opacity: 0; transform: scale(.4); }
.ios-app.zm.is-on { opacity: 1; transform: none; transition: opacity 260ms ease, transform 520ms var(--ease-out-back); }
.ios-app.zm img { box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.ios-dock { position: absolute; left: 14px; right: 14px; bottom: 26px; display: flex; justify-content: space-around; padding: 14px; border-radius: 30px; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ios-dock i { width: 60px; height: 60px; border-radius: 15px; }

/* Obmedzený pohyb: obrazovky sa len prelínajú, bez posunov a slučiek. */
@media (prefers-reduced-motion: reduce) {
  .scr, .slide, .view, .rise, .fb, .ex-res, .ios-sheet, .fc, .fc-inner, .cf, .lt-line { transition-property: opacity !important; transform: none !important; }
  .ec-p1, .ec-p2, .ec-rip, .ec-think i, .eq i, .situ, .lt-caret, .pulse-dot, .au-field .v::after { animation: none !important; }
  .tap { display: none; }
}

/* ── Doplnky podľa skutočných dát appky ─────────────────────────────────── */
.pc-head > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-excerpt { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.pc-excerpt .gap { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; margin: 0 2px; padding: 0 6px; border-radius: 6px; background: var(--chip-violet-bg); color: var(--chip-violet-ink); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.ap.is-static .ap-fill, .ap.is-static .ap-thumb { transition: none; }
.pr-body .pc { margin-top: 0; }
.pr-label { margin-top: 16px; }

.pa-block { position: absolute; left: 16px; right: 16px; top: 108px; display: flex; align-items: center; gap: 10px; }
.pa-block::before, .pa-block::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pa-block span { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--accent-ink); }
.pa-banner.low { margin-top: 38px; }
.pa-lbl { max-width: 150px; text-align: center; white-space: normal; }
.pa-lbl b { display: block; font-weight: 600; }
.pa-lbl small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; font-weight: 400; color: var(--ink2); }
.pa-node.st-locked .pa-lbl b { color: var(--ink2); }

.ios-url .redact, .ios-sheet-app .redact { display: inline-block; width: 128px; height: 10px; border-radius: 999px; background: currentColor; opacity: .22; vertical-align: middle; }
.ios-sheet-app .redact { width: 110px; height: 8px; margin-top: 6px; color: var(--ink2); }

.ob-scroll { transition: transform 700ms var(--ease-in-out); }
.ob-sub .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ex-bar { grid-template-columns: 96px 1fr 16px; }
.ex-bar em i { background: var(--g, #7F77DD); }
.ex-bar span:last-child { font-weight: 700; color: var(--g, var(--ink)); }
.ex-scale { margin-top: 2px; font-size: 10px; color: var(--ink2); }
.ex-part small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-node.quiz.st-current .bub { box-shadow: 0 5px 0 #993556; }
.sh-chip.amber { background: var(--chip-amber-bg); color: var(--chip-amber-ink); }
.fc-callout.note { background: var(--chip-amber-bg); }
.fc-callout.note small { color: var(--chip-amber-ink); }
.ob-viewport { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; overflow: hidden; }
.scr[data-screen="subjects"] { padding-top: 0; }
.pa-map { height: 720px; }
.pa-trail { height: 720px; }
.ap-title { flex: 1; min-width: 0; }

/* ── Rozmer z hostiteľa (assets/zmx.css) ────────────────────────────────── */
/* Telefón ostáva v natívnej veľkosti z webu zmaturuj.app (300 px domov, 330 px prehliadka),
   aby zaoblenia, tlačidlá na boku aj tieň sedeli 1:1; na javisko sa zmenší celý cez scale().
   Slot drží v rozložení miesto zodpovedajúce zmenšenému telefónu. */
.zmx-slot { position: relative; flex-shrink: 0; }
.zmx-slot--hero { display: var(--zmx-hero-display, block); width: calc(300px * var(--zmx-k-hero, .5)); height: calc(626.29px * var(--zmx-k-hero, .5)); }
.zmx-slot--tour { width: calc(330px * var(--zmx-k-tour, .5)); height: calc(691.25px * var(--zmx-k-tour, .5)); }
.zmx-slot > .phone { position: absolute; left: 0; top: 0; transform: scale(var(--zmx-k-hero, .5)); transform-origin: 0 0; }
.zmx-slot--tour > .phone { transform: scale(var(--zmx-k-tour, .5)); }
/* Jediný telefón v palube (index.html): sedí v strede panelu. Počas pohybu paluby je na
   kompozitore (will-change), aby sa pri každej zmene mierky neprekresľoval. */
.zmx-slot > .phone.is-moving { will-change: transform; }
:host(.zmx-host--one) .zmx { align-items: center; padding-bottom: 0; }
