/* AdShots štúdio a sprievodca (002, R-31, docs/ux/navrh-ux.md § 7–8).
   Tokeny ako CSS premenné: sprievodca svetlý, štúdio tmavé, prefers-color-scheme.
   Rozloženia: telefón < 600 px, tablet 600–1024 px, desktop > 1024 px. Dotykové ciele
   aspoň 44 px, 100dvh, safe-area. Žiadne inline štýly (CSP). */

:root {
  --s-radius: 14px; --s-gap: 16px; --s-touch: 44px;
  --s-ease: cubic-bezier(.2, .7, .2, 1);
}
body.wizard {
  --w-bg: #f6f7fb; --w-panel: #ffffff; --w-line: #e3e6ef; --w-text: #141826; --w-muted: #5b6275;
  --w-accent: #047857; --w-accent-ink: #ffffff; --w-soft: #e8f6f0; --w-focus: #b45309;
  --w-danger: #b42318;
  background: var(--w-bg); color: var(--w-text);
}
@media (prefers-color-scheme: dark) {
  body.wizard {
    --w-bg: #0b1020; --w-panel: #121a2e; --w-line: #26324f; --w-text: #eef2f8; --w-muted: #a9b4c8;
    --w-accent: #34d399; --w-accent-ink: #062b1d; --w-soft: #0f2a1f; --w-focus: #fbbf24;
    --w-danger: #fca5a5;
  }
}
/* spoločné prvky (dialógy, tlačidlá, ponuky kreditov) z app.css berú tokeny stránky,
   inak by v svetlej téme ostal biely text tmavej témy na bielom */
body.wizard, body.studio {
  --bg: var(--w-bg); --panel: var(--w-panel); --line: var(--w-line); --text: var(--w-text);
  --muted: var(--w-muted); --accent: var(--w-accent); --accent-ink: var(--w-accent-ink);
  --danger: var(--w-danger);
}
body.wizard .topbar { border-color: var(--w-line); background: var(--w-panel); }
body.wizard .brand, body.wizard .topbar a:not(.button) { color: var(--w-text); }
body.wizard main { max-width: 1100px; padding: 16px; }
body.wizard .footer { color: var(--w-muted); }
body.wizard :focus-visible { outline: 3px solid var(--w-focus); outline-offset: 2px; }

.wz { display: flex; flex-direction: column; gap: var(--s-gap); min-height: calc(100dvh - 160px); }
.wz-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.wz-steps li { color: var(--w-muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.wz-steps li[aria-current="step"] { color: var(--w-text); font-weight: 700; }
.wz-steps li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--w-line);
  display: inline-grid; place-items: center; font-size: .75rem; }
.wz-steps li[aria-current="step"] .dot, .wz-steps li.done .dot { background: var(--w-accent);
  border-color: var(--w-accent); color: var(--w-accent-ink); }
.wz h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 4px 0; line-height: 1.2; }
.wz .lead { color: var(--w-muted); margin: 0; max-width: 60ch; }
.wz-card { background: var(--w-panel); border: 1px solid var(--w-line); border-radius: var(--s-radius);
  padding: 20px; }
.wz label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.wz input[type=text], .wz textarea, .wz select, .wz input:not([type]) {
  background: var(--w-panel); color: var(--w-text); border: 1px solid var(--w-line);
  border-radius: 10px; padding: 12px; font: inherit; min-height: var(--s-touch); }
.wz .hint { color: var(--w-muted); font-weight: 400; font-size: .9rem; margin: 0; }
.wz .btn { background: var(--w-accent); color: var(--w-accent-ink); border: 0; border-radius: 12px;
  min-height: 48px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.wz .btn.ghost { background: transparent; color: var(--w-text); border: 1px solid var(--w-line); }
.wz .btn.link { background: none; color: var(--w-accent); min-height: var(--s-touch); padding: 0 4px;
  text-decoration: underline; font-weight: 600; }
.wz .btn[disabled] { opacity: .5; cursor: not-allowed; }
.wz .error { color: var(--w-danger); background: transparent; border: 1px solid currentColor; }
.wz-bar { position: sticky; bottom: 0; display: flex; gap: 12px; justify-content: space-between;
  align-items: center; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--w-bg) 70%, transparent); z-index: 2; }
.wz-bar .grow { flex: 1; }

/* zóna nahrávania */
.drop { border: 2px dashed var(--w-line); border-radius: var(--s-radius); padding: 28px 16px;
  text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
  background: var(--w-panel); transition: border-color .15s var(--s-ease), background .15s; }
.drop.over { border-color: var(--w-accent); background: var(--w-soft); }
.drop .big { font-size: 1.15rem; font-weight: 700; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px;
  list-style: none; padding: 0; margin: 0; }
.shot { position: relative; border-radius: 10px; overflow: hidden; background: #000;
  aspect-ratio: 9 / 19.5; border: 1px solid var(--w-line); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .n { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.7); color: #fff;
  border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.shot .tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 4px; }
.shot .tools button { background: rgba(255,255,255,.92); color: #111; border: 0; border-radius: 8px;
  min-width: 32px; min-height: 32px; font-weight: 700; cursor: pointer; }
.shot.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.45); }

.store-link { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.store-link .grow { flex: 1; min-width: 220px; }
.store-link input { width: 100%; }

/* platformy a tón */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; border: 2px solid var(--w-line); border-radius: 12px; padding: 12px;
  min-height: 64px; display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  background: var(--w-panel); font-weight: 400; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--w-accent); background: var(--w-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--w-focus); outline-offset: 2px; }
.choice strong { font-size: 1rem; } .choice small { color: var(--w-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .choice { min-height: var(--s-touch); padding: 8px 14px; border-radius: 999px; flex-direction: row;
  align-items: center; }
.consent { border-left: 4px solid var(--w-accent); }
.consent ul { margin: 6px 0; padding-left: 20px; color: var(--w-muted); }

/* priebeh */
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.progress-steps li { display: flex; gap: 12px; align-items: center; color: var(--w-muted); }
.progress-steps li.now { color: var(--w-text); font-weight: 700; }
.progress-steps li.done { color: var(--w-text); }
.progress-steps .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--w-line); flex: none; }
.progress-steps li.done .ic { background: var(--w-accent); border-color: var(--w-accent); color: var(--w-accent-ink); }
.progress-steps li.now .ic { border-color: var(--w-accent); animation: spin 1.1s linear infinite;
  border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* smery */
.directions { display: grid; gap: var(--s-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .directions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.direction { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.direction h2 { margin: 0; font-size: 1.15rem; }
.direction .meta { color: var(--w-muted); font-size: .9rem; margin: 0; }
.film { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; min-width: 0; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.film img { height: 180px; width: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #0d1426;
  scroll-snap-align: start; flex: none; border: 1px solid var(--w-line); object-fit: contain; }
.film img.tall { aspect-ratio: 9 / 19.5; } .film img.tall[src*="fmt=9"] { aspect-ratio: 9 / 16; }
.film img.portrait { aspect-ratio: 4 / 5; } .film img.square { aspect-ratio: 1; }
.film img.wide43 { aspect-ratio: 4 / 3; }
.film .ph { height: 180px; width: 101px; border-radius: 8px; background: var(--w-line); flex: none; }
.why summary { cursor: pointer; color: var(--w-accent); font-weight: 600; min-height: var(--s-touch);
  display: flex; align-items: center; }
.why dl { display: grid; gap: 6px; margin: 0; } .why dt { font-weight: 600; } .why dd { margin: 0 0 6px; color: var(--w-muted); }
.badge-ai { align-self: flex-start; font-size: .75rem; font-weight: 700; border-radius: 999px;
  padding: 2px 10px; background: var(--w-soft); color: var(--w-accent); border: 1px solid var(--w-accent); }

@media (prefers-reduced-motion: reduce) {
  .progress-steps li.now .ic { animation: none; }
  .drop { transition: none; }
}
@media (max-width: 599px) {
  body.wizard main { padding: 12px; }
  .wz-card { padding: 16px; }
  /* tri tlačidlá s cenou sa do 360 px nezmestia: hlavné ide na vlastný riadok */
  .wz-bar { flex-wrap: wrap; }
  .wz-bar .grow { display: none; }
  .wz-bar .btn { flex: 1 1 40%; min-width: 0; }
  .wz-bar .btn:last-child { flex-basis: 100%; }
  .film img, .film .ph { height: 150px; }
}

/* =====================================================================  štúdio (tmavé) */
body.studio {
  --w-bg: #0b0f1a; --w-panel: #121827; --w-line: #273049; --w-text: #eef2f8; --w-muted: #a6b0c4;
  --w-accent: #34d399; --w-accent-ink: #052b1c; --w-soft: #0f2a1f; --w-focus: #fbbf24; --w-danger: #fca5a5;
  background: var(--w-bg); color: var(--w-text);
}
@media (prefers-color-scheme: light) {
  body.studio { --w-bg: #eef1f7; --w-panel: #ffffff; --w-line: #dde2ec; --w-text: #141826;
    --w-muted: #5b6275; --w-accent: #047857; --w-accent-ink: #fff; --w-soft: #e8f6f0;
    --w-focus: #b45309; --w-danger: #b42318; }
}
body.studio main { max-width: none; padding: 0; }
body.studio .footer { display: none; }
body.studio .topbar { background: var(--w-panel); border-color: var(--w-line); }
body.studio .brand, body.studio .topbar a:not(.button) { color: var(--w-text); }
body.studio :focus-visible { outline: 3px solid var(--w-focus); outline-offset: 2px; }
body.studio .btn { background: var(--w-accent); color: var(--w-accent-ink); border: 0; border-radius: 10px;
  min-height: var(--s-touch); padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
body.studio .btn.ghost { background: transparent; color: var(--w-text); border: 1px solid var(--w-line); }
body.studio .btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
body.studio .btn.link { background: none; color: var(--w-accent); text-decoration: underline; padding: 0 4px; }
body.studio .hint { color: var(--w-muted); }
body.studio input, body.studio select, body.studio textarea {
  background: var(--w-bg); color: var(--w-text); border: 1px solid var(--w-line); border-radius: 8px;
  padding: 10px; font: inherit; min-height: 40px; width: 100%; }
body.studio input[type=checkbox] { width: auto; min-height: 0; }
.chip-btn { background: transparent; color: var(--w-text); border: 1px solid var(--w-line); border-radius: 999px;
  padding: 6px 12px; min-height: 36px; font: inherit; cursor: pointer; }
.chip-btn[aria-pressed="true"] { border-color: var(--w-accent); color: var(--w-accent); }
.chip-btn.danger { color: var(--w-danger); }
.chip-btn small { color: var(--w-muted); }
.seg { display: inline-flex; border: 1px solid var(--w-line); border-radius: 10px; overflow: hidden; }
.seg button { background: transparent; color: var(--w-muted); border: 0; padding: 6px 12px; min-height: 36px;
  font: inherit; cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--w-soft); color: var(--w-text); font-weight: 700; }

.st { display: flex; flex-direction: column; min-height: calc(100dvh - 60px); }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--w-line); background: var(--w-panel); }
.st-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-title h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-back { color: var(--w-text); text-decoration: none; font-size: 1.3rem; min-width: 32px; }
.st-save { font-size: .85rem; color: var(--w-muted); }
.st-save.conflict, .st-save.error, .st-save.offline { color: var(--w-danger); }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.st-grid { display: grid; gap: 0; flex: 1; grid-template-columns: minmax(0, 1fr) 380px; }
.st-stage { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; }
.st-inspector { border-left: 1px solid var(--w-line); background: var(--w-panel); padding: 14px;
  overflow-y: auto; max-height: calc(100dvh - 120px); position: sticky; top: 0; }
.sheet-handle { display: none; }

.player { position: relative; background: #000; border-radius: 12px; overflow: hidden; margin: 0 auto;
  width: 100%; aspect-ratio: 16 / 9; max-height: 62dvh; }
.player.tall { aspect-ratio: 9 / 16; width: auto; height: 62dvh; max-width: 100%; }
.player.portrait { aspect-ratio: 4 / 5; width: auto; height: 58dvh; max-width: 100%; }
.player .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  transition: opacity .3s ease; }
.player .layer.on { opacity: 1; }
.player-tag { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.7); color: #fff;
  border-radius: 999px; font-size: .75rem; padding: 2px 10px; }
.playhead { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.playhead span { display: block; height: 100%; background: var(--w-accent); }
.compare { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #000; }
.compare figure { margin: 0; position: relative; }
.compare img { width: 100%; height: 100%; object-fit: contain; }
.compare figcaption { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); color: #fff;
  font-size: .75rem; border-radius: 999px; padding: 2px 8px; }
.player-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }

.strip-wrap { overflow-x: auto; padding-bottom: 6px; }
.strip { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; min-width: 100%; }
.scene { flex: 1 1 0; min-width: 84px; position: relative; }
.scene.add { flex: 0 0 56px; min-width: 56px; }
.scene-pick { width: 100%; height: 92px; padding: 0; border: 2px solid var(--w-line); border-radius: 10px;
  background: #000; overflow: hidden; position: relative; cursor: pointer; color: var(--w-text); font-size: 1.4rem; }
.scene.add .scene-pick { background: var(--w-panel); }
.scene.active .scene-pick { border-color: var(--w-accent); }
.scene-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* nepoužité obrazovky zo sprievodcu: jedno kliknutie = nová scéna */
.unused { margin-top: 8px; }
.unused .hint { margin: 0 0 4px; }
.unused-row { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; overflow-x: auto; }
.unused-shot { position: relative; width: 52px; height: 92px; padding: 0; border: 2px dashed var(--w-line);
  border-radius: 10px; background: var(--w-panel); overflow: hidden; cursor: pointer; }
.unused-shot:hover, .unused-shot:focus-visible { border-color: var(--w-accent); }
.unused-shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.unused-shot span { position: absolute; inset: auto 4px 4px auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--w-accent); color: var(--w-accent-ink); font-size: 14px; line-height: 20px; text-align: center; }
.scene-n, .scene-dur { position: absolute; bottom: 4px; background: rgba(0,0,0,.75); color: #fff;
  border-radius: 6px; font-size: .72rem; padding: 0 5px; }
.scene-n { left: 4px; } .scene-dur { right: 4px; }
.scene-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--w-focus); box-shadow: 0 0 0 2px #000; }

.tabs-row { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.tabs-row button { background: transparent; color: var(--w-muted); border: 1px solid var(--w-line);
  border-radius: 999px; padding: 6px 12px; min-height: 36px; font: inherit; cursor: pointer; }
.tabs-row button[aria-selected="true"] { color: var(--w-text); border-color: var(--w-accent); background: var(--w-soft); }
.scope { width: 100%; } .scope button { flex: 1; }
.insp-body { display: flex; flex-direction: column; gap: 12px; }
.insp-actions .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fld { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--w-line); }
.fld-head { display: flex; align-items: center; gap: 6px; }
.fld-head label { font-weight: 700; flex: 1; }
.fld.pinned { border-left: 3px solid var(--w-focus); padding-left: 8px; }
.tag-ai { font-size: .7rem; font-weight: 700; color: var(--w-accent); border: 1px solid var(--w-accent);
  border-radius: 999px; padding: 0 6px; }
.why-btn { background: none; border: 0; color: var(--w-accent); text-decoration: underline; cursor: pointer;
  font: inherit; font-size: .85rem; min-height: 32px; }
.why-text { margin: 0; color: var(--w-muted); font-size: .9rem; background: var(--w-soft); padding: 8px; border-radius: 8px; }
.lint-note { margin: 0; color: #fde68a; font-size: .85rem; }
.insp-foot { display: flex; gap: 6px; flex-wrap: wrap; }

.draw { display: flex; flex-direction: column; gap: 8px; }
.draw-area { position: relative; border-radius: 12px; overflow: hidden; background: #000; cursor: crosshair;
  max-width: 280px; touch-action: manipulation; }
.draw-area img { width: 100%; display: block; user-select: none; }
.focus-box { position: absolute; border: 3px solid var(--w-focus); border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.tap-dot, .cursor { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 3px solid #fff; background: rgba(52, 211, 153, .55); color: #04130c; font-weight: 700; font-size: .8rem;
  display: grid; place-items: center; pointer-events: none; }
.cursor { background: transparent; border-color: var(--w-focus); }

.st-bottom { display: none; }
dialog.order { max-width: 560px; }
.order-sum table { margin-top: 6px; }
.results { padding: 16px; max-width: 1100px; margin: 0 auto; }
.result.focus { border-color: var(--w-accent); }
body.studio .card { background: var(--w-panel); border-color: var(--w-line); }
.phases { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; color: var(--w-muted); }
.phases li.now { color: var(--w-text); font-weight: 700; }
.phases li.done { color: var(--w-accent); }
.outputs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* tablet: prehrávač a pás vľavo, inšpektor vpravo */
@media (max-width: 1024px) { .st-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); } }

/* telefón: prehrávač hore, pás, inšpektor ako spodný list, spodná navigácia */
@media (max-width: 599px) {
  .st-head { padding: 8px 12px; }
  .st-actions .ghost { display: none; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-stage { padding: 10px 12px calc(76px + env(safe-area-inset-bottom)); }
  .player, .player.portrait { height: auto; width: 100%; max-height: 52dvh; }
  .player.tall { aspect-ratio: 9 / 16; width: auto; height: 52dvh; }
  .scene-pick { height: 76px; }
  .scene { min-width: 64px; }
  .st-inspector { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; border-left: 0;
    border-top: 1px solid var(--w-line); border-radius: 16px 16px 0 0; max-height: 50dvh; height: 50dvh;
    transform: translateY(105%); transition: transform .2s ease; box-shadow: 0 -10px 30px rgba(0,0,0,.4);
    padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .st-inspector.open { transform: none; }
  .st-inspector.full { height: 92dvh; max-height: 92dvh; }
  .sheet-handle { display: flex; justify-content: space-between; position: sticky; top: -14px;
    background: var(--w-panel); padding: 4px 0 8px; z-index: 1; }
  .st-bottom { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--w-panel); border-top: 1px solid var(--w-line); z-index: 15;
    padding-bottom: env(safe-area-inset-bottom); }
  .st-bottom button { background: none; border: 0; color: var(--w-muted); min-height: 56px; font: inherit; font-size: .9rem; }
  .st-bottom button[aria-current="page"] { color: var(--w-accent); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  .player .layer, .st-inspector { transition: none; }
}

/* dialógy v štúdiu a sprievodcovi berú tokeny stránky, nie tmavú tému administrácie */
body.studio dialog.sheet, body.wizard dialog.sheet { background: var(--w-panel); color: var(--w-text);
  border-color: var(--w-line); }
body.studio dialog.sheet .choice { color: var(--w-text); }
body.studio dialog.sheet .hint, body.wizard dialog.sheet .hint { color: var(--w-muted); }
@media (max-width: 599px) {
  body.studio .st-actions .btn.ghost { display: none; }
  .player.tall { height: 44dvh; }
  .player, .player.portrait { max-height: 44dvh; }
}
@media (max-width: 599px) { .scene-dur { display: none; } }
.result .btn { align-self: flex-start; }

/* jedna obrazovka prihlásenia (US5, T081) */
.auth-one { max-width: 460px; margin: 24px auto; min-height: 0; }
.auth-card h1 { margin: 0; }
.sso { display: flex; flex-direction: column; gap: 10px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  border-radius: 12px; font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 1px solid #747775; cursor: pointer; width: 100%; padding: 0 16px; }
.sso-btn.apple { background: #000; color: #fff; border-color: #000; }
.sso-btn.google { background: #fff; color: #1f1f1f; }
.sso-btn.passkey { background: var(--w-panel); color: var(--w-text); border-color: var(--w-line); }
.or { display: flex; align-items: center; gap: 10px; color: var(--w-muted); font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--w-line); }
.code-input { letter-spacing: .4em; font-size: 1.4rem; text-align: center; }
.wz input[type=email], .wz input[type=url], .wz input[type=password], .wz input[inputmode] {
  background: var(--w-panel); color: var(--w-text); border: 1px solid var(--w-line);
  border-radius: 10px; padding: 12px; font: inherit; min-height: var(--s-touch); }

/* nahovorenie scény (US7) */
.dict { margin-top: 10px; display: grid; gap: 8px; }
.dict-mic { min-height: var(--s-touch); display: inline-flex; align-items: center; gap: 8px;
  justify-content: center; touch-action: none; user-select: none; }
.dict-recording .dict-mic { background: #c62828; color: #fff; animation: dict-pulse 1.2s ease-in-out infinite; }
@keyframes dict-pulse { 50% { box-shadow: 0 0 0 6px rgba(198, 40, 40, .25); } }
@media (prefers-reduced-motion: reduce) { .dict-recording .dict-mic { animation: none; } }
.dict-box { border: 1px solid var(--w-line); border-radius: 10px; padding: 10px; }
.dict-said { line-height: 1.6; }
.dict-said .dropped { text-decoration: line-through; opacity: .55; }
.dict-title { font-weight: 700; margin-bottom: 4px; }
body.studio .dict button.secondary { min-height: var(--s-touch); }
.dict .row { display: flex; flex-wrap: wrap; gap: 8px; }
.price-tag { font-weight: 500; opacity: .85; white-space: nowrap; }

/* karty hlasov (US6, T090) */
.voices { margin: 6px 0 12px; }
.voice-cards { display: grid; gap: 8px; }
.voice-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  border: 1px solid var(--w-line); border-radius: 12px; padding: 8px 10px; background: var(--w-panel); }
.voice-card.on { border-color: var(--w-accent); box-shadow: inset 0 0 0 1px var(--w-accent); }
.voice-play { width: var(--s-touch); height: var(--s-touch); border-radius: 50%; padding: 0; }
.voice-meta { display: grid; min-width: 0; }
.voice-meta small { color: var(--w-muted); }
