*{box-sizing:border-box}body{margin:0;background:var(--cd-ground);color:var(--cd-t1);font:16px/1.65 var(--cd-font-body)}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;min-height:48px;border:0;border-radius:10px;padding:13px 22px;font-weight:500;transition:background .18s,transform .18s}button:hover{transform:translateY(-1px)}button:disabled{opacity:.5;cursor:not-allowed;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--cd-amber);outline-offset:4px}[hidden]{display:none!important}.masthead{max-width:1260px;margin:auto;padding:25px 36px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--cd-line)}.wordmark{font:700 38px/1 var(--cd-font-display);letter-spacing:-2.5px;text-decoration:none;color:var(--cd-t1)}.wordmark span{color:var(--cd-accent)}.header-note{font-size:12px;color:var(--cd-t2)}.test-tag{margin-left:auto;font-size:11px;background:var(--cd-amber-wash);color:var(--cd-amber-ink);border-radius:30px;padding:5px 12px}main{max-width:1190px;margin:auto;padding:30px 36px 60px}.steps{display:flex;gap:30px;font-size:12px;color:var(--cd-t2);padding:0 0 40px;overflow:auto}.steps span{white-space:nowrap;padding-bottom:8px}.steps [aria-current]{color:var(--cd-accent);box-shadow:0 2px var(--cd-accent);font-weight:600}h1,h2,h3{font-family:var(--cd-font-display);text-wrap:balance}h1{font-size:clamp(32px,4.3vw,54px);line-height:1.13;letter-spacing:-2px;margin:15px 0 24px}h2{font-size:clamp(25px,3.2vw,39px);line-height:1.22;letter-spacing:-1px;margin:10px 0 20px}h3{font-size:16px;letter-spacing:-.25px;margin:0 0 9px}p{margin:0 0 16px}.kicker{color:var(--cd-accent);font-size:13px;font-weight:600;margin-bottom:10px}.lead{font-size:17px;color:var(--cd-t2);max-width:540px}.welcome{display:grid;grid-template-columns:1.25fr 1fr;gap:75px;align-items:center;min-height:610px}.welcome-copy{padding:20px 0}.journey{margin:30px 0;display:grid;gap:14px}.journey p{margin:0;display:grid;grid-template-columns:180px 1fr;gap:10px;font-size:13px}.journey b{font-weight:500}.journey span{color:var(--cd-t2)}.quiet{font-size:12px;color:var(--cd-t2)}.form-sheet{background:var(--cd-surface);padding:36px;border-radius:var(--cd-radius);box-shadow:var(--cd-shadow)}.sheet-label{font-size:12px;color:var(--cd-t2)}.form-sheet h2{font-size:27px;letter-spacing:-.7px;margin:12px 0 27px}.form-sheet label{display:block;font-size:13px;font-weight:500;margin:19px 0 8px}input:not([type=checkbox]):not([type=range]){border:1px solid var(--cd-line-strong);padding:13px 14px;background:var(--cd-ground);border-radius:8px;width:100%;min-height:50px;color:var(--cd-t1)}.primary{background:var(--cd-accent);color:var(--cd-on-accent)}.primary:hover{background:var(--cd-brand-strong)}.secondary{background:var(--cd-surface-2);color:var(--cd-t1)}.secondary:hover{background:var(--cd-bar)}.danger{background:var(--cd-bad);color:white}.form-sheet .primary{display:flex;justify-content:space-between;width:100%;gap:8px}.fine{font-size:11px;line-height:1.7;color:var(--cd-t2);margin:14px 0 0}.privacy-note{display:flex;gap:13px;margin:23px 0}.privacy-note svg{width:20px;min-width:20px;fill:none;stroke:var(--cd-accent);stroke-width:1.5}.privacy-note p{font-size:12px;line-height:1.6;margin:0}.notice{background:var(--cd-warn-wash);color:var(--cd-warn);padding:16px 20px;border-radius:10px;margin-bottom:25px;font-size:14px}.preparation{max-width:840px;margin:10px auto}.prep-list{display:grid;gap:0;margin:30px 0}.prep-list article{display:flex;gap:24px;padding:22px 0;border-top:1px solid var(--cd-line)}.prep-symbol{font-size:30px;line-height:1.2;width:40px;flex-shrink:0;color:var(--cd-accent)}.prep-list p{font-size:14px;color:var(--cd-t2);margin:0}.consent-box{background:var(--cd-wash);padding:24px;border-radius:12px;margin:22px 0 30px}.check{display:flex;align-items:flex-start;gap:13px;font-size:13px;cursor:pointer}.check input{accent-color:var(--cd-accent);min-width:21px;height:21px;margin:1px 0 0}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.studio-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.studio-title h2{font-size:27px}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.camera-stage{position:relative;background:#171c28;aspect-ratio:4/3;border-radius:14px;overflow:hidden}.camera-stage>video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}.face-guide{position:absolute;left:32%;top:18%;width:36%;height:52%;border:2px dashed #ffffff70;border-radius:48%;pointer-events:none}.camera-bottom{position:absolute;bottom:12px;left:15px;right:15px;display:flex;justify-content:space-between;color:white;font-size:12px;font-variant-numeric:tabular-nums;text-shadow:0 1px 4px #171c28}.recording #record-indicator{background:#b82d2d;border-radius:30px;padding:2px 9px}.direction{background:var(--cd-wash);color:var(--cd-accent-ink);padding:13px 18px;font-size:13px;border-radius:10px;margin-top:12px;min-height:50px}.record-actions{display:flex;gap:12px;margin:18px 0}.record-actions button{flex:1;padding:12px}.studio-tools{padding:12px 0}.checks{margin:18px 0}.checks p{font-size:12px;padding:10px 12px;margin:7px 0;background:var(--cd-surface-2);border-radius:8px}.checks p:before{content:'●';margin-right:9px}.checks [data-state=good]{background:var(--cd-good-wash);color:var(--cd-good)}.checks [data-state=warn]{background:var(--cd-warn-wash);color:var(--cd-warn)}.studio-tools h3:not(:first-child){margin-top:28px}.studio-tools label{display:block;font-size:12px;margin-top:14px}.studio-tools output{float:right}.studio-tools input[type=range]{width:100%;accent-color:var(--cd-accent);height:35px}.small{padding:8px 13px;font-size:12px}.studio-tools details{font-size:12px;margin-top:20px}.studio-tools summary{cursor:pointer;min-height:44px;padding:10px 0}.studio-tools details p{max-height:240px;overflow:auto;white-space:pre-line}.text-button{background:none;border:0;color:var(--cd-accent);display:inline-block;text-decoration:underline;font-size:13px;min-height:44px;padding:12px 0;cursor:pointer}.prompter{position:absolute;top:0;left:0;right:0;background:#101829eb;color:#fff;padding:9px 16px 13px;z-index:2}.reading-cue{text-align:center;font-size:10px;color:#bdc9e2;margin-bottom:6px}.reading-cue:before{content:'↑ ';color:white}#script-window{height:110px;overflow:hidden;position:relative}#script-text{font:500 23px/1.45 var(--cd-font-body);white-space:pre-line;text-align:center;will-change:transform}.countdown{position:absolute;inset:0;display:grid;place-items:center;font:600 80px var(--cd-font-display);background:#171c2870;color:white;z-index:4}.review{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;min-height:560px}.review video{width:100%;max-height:540px;background:#171c28;border-radius:14px}.centered{text-align:center;max-width:650px;margin:60px auto;min-height:400px}.centered .lead{margin:0 auto 18px}.status-orbit{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:var(--cd-wash);color:var(--cd-accent);font-size:34px;margin:0 auto 24px}.status-orbit.success{background:var(--cd-good-wash);color:var(--cd-good)}progress{width:100%;height:12px;accent-color:var(--cd-accent);margin:20px 0}.receipt{font-size:12px;font-variant-numeric:tabular-nums;background:var(--cd-surface-2);padding:12px;display:inline-block;border-radius:8px}footer{max-width:1190px;margin:0 auto;padding:25px 36px;border-top:1px solid var(--cd-line);font:600 14px var(--cd-font-display);display:flex;justify-content:space-between;color:var(--cd-t2)}footer span{font:400 11px var(--cd-font-body)}#sample-video{max-height:250px;width:100%;background:#171c28;border-radius:10px}.admin-list{display:grid;gap:14px;margin:30px 0}.admin-item{background:var(--cd-surface);padding:22px;border-radius:12px;box-shadow:var(--cd-shadow);overflow-wrap:anywhere}.admin-item a{margin-right:20px}.admin-item p{font-size:13px}.admin-form{max-width:600px}.admin-form .primary{margin-top:15px}.link-output{width:100%;word-break:break-all;display:block;margin:18px 0;font-size:13px}
@media(max-width:900px){.welcome{gap:32px}.journey p{display:block}.journey span{display:block}.studio-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.studio-title .quiet{display:none}}
@media(max-width:680px){.masthead{padding:20px;gap:12px}.wordmark{font-size:33px}.header-note{display:none}main{padding:24px 20px 40px}.steps{gap:22px;font-size:10px;padding-bottom:29px}.welcome{display:flex;flex-direction:column;gap:25px;align-items:stretch;min-height:0}.welcome-copy{padding:0}.welcome h1{font-size:36px;letter-spacing:-1.4px}.lead{font-size:15px}.journey{display:none}.welcome-copy .quiet{margin-bottom:0}.form-sheet{padding:25px}.form-sheet h2{font-size:24px}.form-sheet .fine{font-size:11px}.studio-layout{display:flex;flex-direction:column;gap:6px}.studio-title h2{font-size:23px}.camera-stage{aspect-ratio:3/4;max-height:62svh}.camera-stage>video{object-fit:contain}.camera-area{min-width:0}.record-actions{gap:8px}.record-actions button{font-size:12px}.studio-tools{padding-top:20px}.checks{display:grid;grid-template-columns:1fr 1fr;gap:7px}.checks p{margin:0;font-size:11px;padding:10px 8px}.studio-tools h3:not(:first-child){margin-top:24px}.review{display:flex;flex-direction:column-reverse;gap:25px;min-height:0}.review video{max-height:360px}.review .actions button{flex:1}.preparation .lead{font-size:14px}.prep-list article{gap:14px}.prep-symbol{width:30px}.prep-list p{font-size:13px}.consent-box{padding:18px}.check{font-size:12px}.actions button{flex:1}.centered{margin:35px auto}footer{padding:20px}.recording main{padding-top:10px}.recording .masthead,.recording .steps,.recording .studio-title,.recording footer{display:none}.recording .camera-stage{max-height:74svh}.recording .studio-tools{padding-top:0}#script-window{height:115px}}
@media(max-height:520px) and (orientation:landscape){.recording main{padding:8px 16px}.recording .masthead,.recording .steps,.recording .studio-title,.recording footer{display:none}.studio-layout{display:grid;grid-template-columns:1fr 230px}.camera-stage{height:65svh;aspect-ratio:auto}.prompter{left:0;right:auto;top:0;width:43%;height:100%;display:flex;flex-direction:column;justify-content:center}.reading-cue:before{content:'← '}.prompter #script-window{height:145px}#script-text{font-size:21px}.record-actions{margin:8px 0}.direction{padding:6px 10px;min-height:0}.studio-tools{max-height:92svh;overflow:auto}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.live-checks{position:absolute;bottom:40px;left:12px;right:12px;display:grid;grid-template-columns:1fr 1fr;gap:4px;z-index:3}.live-checks span{background:#162032ed;color:#e0e7f4;font-size:10px;line-height:1.4;padding:5px 7px;border-radius:5px}.live-checks [data-state=good]{color:#b6f4cf}.live-checks [data-state=warn]{color:#ffdb9a}@media(max-width:680px){.recording .studio-tools{display:none}.recording .camera-stage{max-height:62svh}.recording .record-actions{margin-top:12px}.recording .record-actions button{font-size:12px}}

/* Revisão de enquadramento: a prévia mantém a proporção real da câmera. */
.camera-stage {
  --camera-ratio: 1.333333;
  width: min(100%, calc(72svh * var(--camera-ratio)));
  height: auto;
  aspect-ratio: var(--camera-ratio);
  max-height: none;
  margin-inline: auto;
}

/* REC imersivo: imagem e controles ocupam o viewport, como uma câmera. */
body.recording { overflow: hidden; background: #171c28; }
.recording main { padding: 0; margin: 0; max-width: none; }
.recording #studio {
  position: fixed; inset: 0; z-index: 100;
  width: 100%; height: 100%; height: 100dvh;
  background: #171c28;
}
.recording .masthead, .recording .steps, .recording .studio-title,
.recording .studio-tools, .recording footer { display: none; }
.recording #studio .studio-layout,
.recording #studio .camera-area { display: block; width: 100%; height: 100%; min-height: 0; }
.recording #studio #camera-stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-height: none;
  aspect-ratio: auto; margin: 0; border-radius: 0;
}
.recording #camera { object-fit: cover; object-position: center; }
.recording #studio .prompter {
  top: calc(10dvh + env(safe-area-inset-top)); left: 50%; right: auto;
  transform: translateX(-50%); width: min(100%, 520px);
  height: auto; padding: 0 18px;
  background: transparent;
}
.recording #studio .face-guide {
  left: 50%; top: 23%; transform: translateX(-50%);
  width: min(56vw, 30dvh); height: auto; aspect-ratio: 3 / 4;
}
.recording #studio .record-actions {
  position: absolute; z-index: 6;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: row; justify-content: center;
  gap: 12px; margin: 0; padding: 0;
}
.recording #studio .record-actions button { min-height: 50px; max-width: 240px; }
.recording #pause-live { background: rgba(20,28,38,.62); color: white; }
.recording #studio .direction {
  position: absolute; z-index: 5;
  left: 20px; right: 20px; bottom: calc(76px + env(safe-area-inset-bottom));
  min-height: 0; margin: 0; padding: 0;
  background: transparent; color: white; border-radius: 0;
  text-align: center; font-size: 11px; line-height: 1.45;
  text-shadow: 0 1px 3px #101826, 0 0 6px #101826;
}
.recording #studio .camera-bottom {
  bottom: calc(123px + env(safe-area-inset-bottom)); left: 20px; right: 20px;
}
.recording #studio .live-checks {
  bottom: calc(159px + env(safe-area-inset-bottom));
  left: 16px; right: 16px; max-width: 490px; margin-inline: auto;
}
.recording #notice:not([hidden]) {
  position: fixed; z-index: 120; left: 16px; right: 16px;
  top: calc(100px + env(safe-area-inset-top));
}
@media (orientation: landscape) and (max-height: 520px) {
  .recording #studio .face-guide { top: 20%; width: 24dvh; }
  .recording #studio .prompter { width: min(60%, 460px); top: 8px; }
  .recording #studio .live-checks {
    bottom: auto; top: 20px; right: 12px; left: auto;
    grid-template-columns: 1fr; width: 160px;
  }
  .recording #studio .camera-bottom { top: 18px; bottom: auto; right: auto; gap: 16px; }
  .recording #studio .direction { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.camera-stage > video { display: block; object-fit: contain; }
.face-guide, .recording .face-guide {
  display: block;
  z-index: 1;
  border: 1.5px dashed rgba(255,255,255,.8);
  box-shadow: 0 0 1px 1px rgba(0,0,0,.2);
}
.portrait-camera .face-guide {
  left: 23%; top: 22%; width: 54%; height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 48%;
}
.prompter {
  background: transparent;
  padding: 10px 22px 0;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 7px rgba(0,0,0,.75);
}
.reading-cue { color: white; opacity: .85; margin-bottom: 5px; font-size: 9px; }
#script-window { height: 5.8em; font-size: 30px; }
#script-text { font-size: 30px; line-height: 1.45; font-weight: 500; }
.recording #studio #script-window { height: 5.8em; }
.recording .live-checks span { background: rgba(16,24,38,.48); font-weight: 400; }
@media (max-width: 680px) {
  .camera-stage { width: min(100%, calc(72svh * var(--camera-ratio))); }
  .recording main { max-width: none; padding: 0; }
  .recording .studio-layout { display: block; }
  .recording .camera-area { width: 100%; }
  .recording .camera-stage {
    width: min(100%, calc((100svh - 126px - env(safe-area-inset-bottom)) * var(--camera-ratio)));
    max-height: none;
    aspect-ratio: var(--camera-ratio);
    border-radius: 0;
  }
  .recording .direction {
    margin: 8px 12px 0; padding: 7px 10px;
    min-height: 0; font-size: 11px; line-height: 1.45;
  }
  .recording .record-actions { margin: 8px 12px; padding-bottom: env(safe-area-inset-bottom); }
  .recording .record-actions button { min-height: 46px; }
  .recording .studio-tools { display: none; }
  .recording .prompter { padding-inline: 20px; }
  .recording .live-checks { bottom: 38px; left: 10px; right: 10px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .recording main { max-width: none; padding: 0; }
  .recording .studio-layout { display: block; }
  .recording .studio-tools { display: none; }
  .recording .camera-area {
    display: grid; grid-template-columns: minmax(0,1fr) 210px;
    grid-template-rows: 1fr auto; align-items: center; min-height: 100svh;
  }
  .recording .camera-stage {
    grid-column: 1; grid-row: 1 / 3;
    width: min(100%, calc(100svh * var(--camera-ratio)));
    aspect-ratio: var(--camera-ratio); height: auto; max-height: none; border-radius: 0;
  }
  .recording .direction { grid-column: 2; grid-row: 1; margin: 12px; }
  .recording .record-actions { grid-column: 2; grid-row: 2; flex-direction: column; margin: 12px; }
  .prompter { top: 0; left: 0; right: 0; width: 100%; height: auto; display: block; padding: 8px 20px 0; }
  .prompter #script-window { height: 2.9em; }
  .reading-cue:before { content: '← '; }
}

/* Controles discretos do teleprompter, acessíveis durante a gravação. */
.prompt-controls { display:flex; justify-content:center; gap:12px; margin-bottom:4px; pointer-events:auto; }
.prompt-controls button { min-height:44px; padding:6px 8px; background:transparent; color:white; font-size:11px; line-height:1.25; text-shadow:0 1px 3px #101826,0 0 6px #101826; }
.prompt-controls button:focus-visible { outline-offset:0; }
