/* TIME PROMPT — stile
   Palette TIME: nero, verde smeraldo luminoso, bianco. Mobile-first. */

:root {
  --bg: #040706;
  --bg-2: #08100c;
  --surface: #0d1712;
  --surface-2: #13211a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(52, 229, 138, .35);
  --emerald: #34e58a;
  --emerald-2: #1fc46f;
  --emerald-deep: #0b3a24;
  --glow: 0 0 24px rgba(52, 229, 138, .35);
  --text: #f3f6f4;
  --muted: #93a69c;
  --red: #ff3b30;
  --radius: 18px;
  --radius-sm: 12px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-sans: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Noto Serif", "Times New Roman", serif;
  --font-read: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 70% 0%, rgba(20, 90, 55, .28), transparent 60%),
                    radial-gradient(80% 50% at 0% 100%, rgba(10, 60, 36, .22), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.noscript { padding: 2rem; text-align: center; }

/* ---------- icone ---------- */
[data-icon] { display: inline-flex; width: 24px; height: 24px; }
[data-icon] svg { width: 100%; height: 100%; }
.ico { width: 22px; height: 22px; margin-right: 10px; }

/* ---------- schermate ---------- */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; letter-spacing: .12em; font-size: .86rem;
  cursor: pointer; user-select: none;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .icon-btn:focus-visible, .ctl-btn:focus-visible, .rec-btn:focus-visible, .side-btn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
.btn-xl { width: 100%; min-height: 60px; font-size: .95rem; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .78rem; }
.btn-primary { background: var(--emerald); color: #02140a; box-shadow: var(--glow); }
.btn-primary:hover { background: #4ff09c; }
.btn-secondary { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--emerald); }
.btn-ghost { background: transparent; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.btn-ghost .ico { width: 18px; height: 18px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255, 59, 48, .7); margin-right: 12px; flex: none; }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer;
}
.icon-btn-accent { color: var(--emerald); border-color: var(--line-strong); }
.icon-btn.glass { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.icon-btn:disabled { opacity: .35; }

/* ---------- HOME ---------- */
.screen-home { justify-content: space-between; padding: calc(20px + var(--safe-t)) 22px calc(14px + var(--safe-b)); }
.home-wrap { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.kicker { margin: 4px 0 16px; color: var(--emerald); font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.logo-card {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(52, 229, 138, .18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(52, 229, 138, .12);
}
.logo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; display: block; }
.wordmark { margin: 24px 0 4px; font-size: clamp(2.1rem, 11vw, 3rem); font-weight: 800; letter-spacing: .14em; line-height: 1; }
.wm-accent { color: var(--emerald); text-shadow: 0 0 22px rgba(52, 229, 138, .45); }
.claim { margin: 10px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: #e9f5ee; }
.divider { width: 70%; height: 1px; margin: 22px 0; background: linear-gradient(90deg, transparent, rgba(52, 229, 138, .5), transparent); position: relative; }
.divider span { position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: var(--glow); transform: translateX(-50%); }
.home-actions { width: 100%; display: grid; gap: 14px; }
.btn-rec { border-color: rgba(255, 59, 48, .45); }
.recovery-banner {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 59, 48, .08); border: 1px solid rgba(255, 59, 48, .35); font-size: .85rem;
}
.recovery-banner strong { display: block; font-size: .9rem; }
.recovery-banner span { color: var(--muted); }
.app-footer { text-align: center; padding-top: 26px; }
.brand-sign { margin: 0; font-size: .74rem; letter-spacing: .2em; font-weight: 700; color: rgba(243, 246, 244, .75); }
.privacy-note { margin: 6px 0 0; font-size: .7rem; color: var(--muted); }
.legal-links { display: flex; gap: 14px; justify-content: center; font-size: .7rem; }
.legal-links a { color: var(--muted); }

/* ---------- topbar generica ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: rgba(4, 7, 6, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar h2 { margin: 0; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; flex: 1; text-align: center; }
.topbar > span:last-child:empty { width: 46px; }

/* ---------- ELENCO ---------- */
.list-wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 14px; }
.script-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.script-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px;
}
.script-item.is-current { border-color: var(--line-strong); }
.si-main { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.si-title { font-weight: 700; font-size: 1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.si-snippet { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-read); }
.si-meta { margin: 8px 0 0; color: rgba(147, 166, 156, .75); font-size: .72rem; letter-spacing: .04em; }
.si-actions { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.si-actions button {
  flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 52px; background: none; border: 0; border-radius: 10px; cursor: pointer;
  color: var(--muted); font-size: .64rem; letter-spacing: .1em; font-weight: 700;
}
.si-actions button svg, .si-actions button [data-icon] { width: 22px; height: 22px; flex: none; }
.si-actions button:active { background: rgba(255, 255, 255, .05); }
.si-actions .si-rec { color: var(--emerald); }
.si-actions .si-del:active { color: var(--red); }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }

/* ---------- EDITOR ---------- */
.screen-editor { height: 100dvh; }
.editor-wrap { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; min-height: 0; }
.field-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); font-weight: 700; margin: 6px 2px 6px; }
.input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; font-size: 1rem; font-family: var(--font-read);
}
.input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(52, 229, 138, .15); }
.textarea { flex: 1; min-height: 200px; resize: none; line-height: 1.55; margin-top: 2px; }
.editor-meta { margin: 8px 2px 0; color: var(--muted); font-size: .75rem; }
.save-state { min-width: 46px; text-align: right; font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
.save-state.ok { color: var(--emerald); }
.editor-actions { width: 100%; max-width: 720px; margin: 0 auto; padding: 10px 14px calc(14px + var(--safe-b)); }
.btn-rec-primary .rec-dot { background: #02140a; box-shadow: none; }

/* ---------- STUDIO ---------- */
.screen-studio { height: 100dvh; min-height: 0; background: #000; overflow: hidden; position: relative; }
.screen-studio .stage {
  position: relative; flex: none; margin: 0 auto;
  width: min(100vw, calc((100dvh - 150px - var(--safe-b)) * 9 / 16));
  max-height: calc(100dvh - 130px - var(--safe-b));
  aspect-ratio: 9 / 16; overflow: hidden; background: #050807;
  container-type: size;
}
@media (min-width: 700px) {
  .screen-studio .stage { margin-top: 12px; border-radius: 18px; }
}
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050807; }
.cam-video.mirror { transform: scaleX(-1); }
.cam-message {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px; text-align: center; gap: 14px; background: rgba(4, 7, 6, .92); font-size: .95rem; line-height: 1.45;
}
.cam-message strong { color: var(--emerald); letter-spacing: .1em; font-size: .85rem; text-transform: uppercase; }

/* teleprompter: tutte le misure sono relative alla larghezza dello stage (cqw),
   così l'anteprima mini e lo studio mostrano esattamente la stessa composizione */
.prompter { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.prompter-box {
  --fs: 44; --w: 90; --op: .55; --top: 9%;
  position: absolute; left: 50%; top: var(--top); transform: translateX(-50%);
  width: calc(var(--w) * 1%); height: 40%;
  border-radius: calc(4 * 1cqw);
  background: rgba(0, 0, 0, var(--op));
  overflow: hidden; pointer-events: auto; touch-action: none; cursor: grab;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
  transition: top .25s ease, width .2s ease;
}
.prompter-box.pos-center { --top: 30%; }
.prompter-box.pos-bottom { --top: 52%; }
.prompter-content {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 0 calc(5 * 1cqw);
  font-family: var(--font-read); font-weight: 600;
  font-size: calc(var(--fs) / 400 * 100cqw);
  line-height: 1.35; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
  will-change: transform;
  user-select: none; -webkit-user-select: none;
}
.prompter-content p { margin: 0 0 .7em; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompter-content .tp-end { color: var(--emerald); font-size: .55em; letter-spacing: .25em; font-weight: 700; text-align: center; padding-top: .6em; }
.prompter-content .tp-empty { color: var(--muted); font-size: .6em; text-align: center; font-weight: 500; }
.reading-line {
  position: absolute; left: 0; right: 0; top: 30%; height: 0;
  border-top: 1px dashed rgba(52, 229, 138, .0);
}
.reading-line::before {
  content: ""; position: absolute; left: calc(1.4 * 1cqw); top: calc(-1.4 * 1cqw);
  border: calc(1.4 * 1cqw) solid transparent; border-left-color: var(--emerald);
  filter: drop-shadow(0 0 4px rgba(52, 229, 138, .8));
}
.prompter-box.paused::after {
  content: "IN PAUSA · TOCCA PER RIPRENDERE"; position: absolute; right: calc(3 * 1cqw); bottom: calc(3 * 1cqw);
  font-size: calc(2.6 * 1cqw); letter-spacing: .12em; font-weight: 700; color: var(--emerald);
  background: rgba(0, 0, 0, .6); padding: .4em .8em; border-radius: 99px; font-family: var(--font-sans);
}
.prompter-box.idle::after { content: none; }

.countdown {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .35); cursor: pointer;
}
.countdown span { font-size: calc(36 * 1cqw); font-weight: 800; color: #fff; text-shadow: 0 0 40px rgba(52, 229, 138, .8); animation: pulse 1s ease infinite; }
.countdown small { margin-top: 10px; color: rgba(255, 255, 255, .8); letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; }
@keyframes pulse { 0% { transform: scale(1.25); opacity: .2; } 30% { transform: scale(1); opacity: 1; } 100% { opacity: .9; } }

.studio-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 12px 18px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
}
.studio-status { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.studio-title { max-width: 100%; font-size: .72rem; letter-spacing: .08em; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000; }
.rec-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; background: rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .08em; }
.rec-badge .rec-dot { width: 10px; height: 10px; margin-right: 8px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.studio-bottom {
  flex: 1; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 8px 14px calc(10px + var(--safe-b)); background: #000;
  width: 100%; max-width: 520px; margin: 0 auto;
}
.speed-row, .rec-row { display: flex; align-items: center; justify-content: space-between; }
.speed-ctl { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.speed-val { min-width: 64px; text-align: center; line-height: 1; }
.speed-val small { display: block; font-size: .55rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 3px; }
.speed-val strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--emerald); }
.ctl-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ctl-btn:active { background: rgba(52, 229, 138, .2); }
.ctl-btn.on { color: var(--emerald); border-color: var(--line-strong); }
.side-btn {
  width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; cursor: pointer; color: var(--text); padding: 6px 0;
}
.side-btn small { font-size: .58rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.side-btn:disabled { opacity: .3; }
.rec-btn {
  width: 78px; height: 78px; flex: none; border-radius: 50%; border: 4px solid #fff; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.rec-inner { width: 60px; height: 60px; border-radius: 50%; background: var(--red); transition: all .2s ease; box-shadow: 0 0 18px rgba(255, 59, 48, .6); }
.rec-btn.recording .rec-inner { width: 30px; height: 30px; border-radius: 7px; }
.rec-btn:disabled { opacity: .4; }
.rec-btn:active .rec-inner { transform: scale(.92); }
.screen-studio.is-recording .side-btn { visibility: hidden; }
.screen-studio.is-recording #stSwitch, .screen-studio.is-recording #stClose { visibility: hidden; }

/* ---------- pannelli sopra lo studio ---------- */
.panel {
  position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel .topbar h2 { text-align: left; }
.set-preview-wrap { display: flex; flex-direction: column; align-items: center; padding: 12px 0 4px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.screen-studio .stage.stage-mini, .stage-mini { position: relative; margin: 0; min-width: 0; width: min(40vw, 24dvh, 200px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-strong); container-type: size; background: radial-gradient(circle at 50% 40%, #1d3a2b, #050807 70%); }
.stage-mini .prompter-box { cursor: default; }
.stage-mini .prompter-box.paused::after { content: none; }
.set-preview-label { margin: 8px 0 4px; font-size: .62rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.set-body { flex: 1; overflow-y: auto; padding: 8px 18px calc(24px + var(--safe-b)); width: 100%; max-width: 560px; margin: 0 auto; }
.set-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-group label, .set-group .lbl { display: flex; justify-content: space-between; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.set-group output { color: var(--emerald); font-variant-numeric: tabular-nums; }
.hint { margin: 10px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.45; }
.set-info { font-size: .74rem; color: var(--muted); line-height: 1.5; }
.set-info b { color: var(--text); font-weight: 600; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--emerald) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--emerald); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--emerald); box-shadow: var(--glow); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--emerald); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { min-height: 46px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 700; letter-spacing: .1em; font-size: .8rem; color: var(--muted); }
.seg button[aria-checked=true] { background: var(--emerald); color: #02140a; box-shadow: var(--glow); }

.pick-list { padding: 14px; overflow-y: auto; width: 100%; max-width: 640px; margin: 0 auto; }

/* ---------- ANTEPRIMA ---------- */
.review-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.review-player { display: flex; justify-content: center; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.review-player video { display: block; height: min(56dvh, 620px); max-width: 100%; aspect-ratio: 9 / 16; background: #000; }
.review-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.review-info div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.review-info dt { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.review-info dd { margin: 4px 0 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.review-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .8rem; line-height: 1.45; background: rgba(255, 196, 0, .07); border: 1px solid rgba(255, 196, 0, .3); color: #f5e3a8; }
.review-actions { display: grid; gap: 12px; }

/* ---------- dialog, toast, busy ---------- */
.dialog { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--text); padding: 22px; width: min(92vw, 380px); }
.dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.dialog h3 { margin: 0 0 8px; font-size: 1.05rem; }
.dialog p { margin: 0 0 18px; color: var(--muted); line-height: 1.45; font-size: .9rem; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.dialog-actions .btn { flex: 1; }
.dialog.danger #dlgOk { background: var(--red); color: #fff; box-shadow: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 50;
  max-width: 90vw; padding: 12px 18px; border-radius: 14px; background: #0f1d16; border: 1px solid var(--line-strong);
  font-size: .86rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fadeIn .2s ease; text-align: center;
}
.toast.error { border-color: rgba(255, 59, 48, .6); }
.busy { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .75); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(52, 229, 138, .2); border-top-color: var(--emerald); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-height: 680px) {
  .rec-btn { width: 66px; height: 66px; }
  .rec-inner { width: 50px; height: 50px; }
  .ctl-btn { width: 42px; height: 42px; }
  .studio-bottom { gap: 4px; min-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* desktop: centra e limita */
@media (min-width: 900px) {
  .screen-home { justify-content: center; gap: 30px; }
}
