body[data-view="teleprompter"] .shell,body[data-view="teleprompter"] main{background:#3b0a10;color:#ede3d6}
.tp-page{max-width:1180px;margin:0 auto;color:#ede3d6}.tp-heading{margin:0 0 30px}.tp-heading h1{font:400 clamp(30px,4vw,44px)/1.15 var(--serif);letter-spacing:-.025em;margin:0 0 12px}.tp-heading p{font:400 15px/1.7 var(--sans);color:#d1bbad}.tp-layout{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(300px,1fr);gap:56px;align-items:start}.tp-setup>label,.tp-settings>label:not(.tp-check),#tp-import>label{display:block;font:500 14px/1.5 var(--sans);margin-bottom:10px}.tp-setup textarea{display:block;width:100%;min-height:180px;resize:vertical;padding:16px;border:1px solid #ede3d640;border-radius:12px;background:#24090d;color:#ede3d6;font:400 16px/1.8 var(--sans)}.tp-setup textarea::placeholder{color:#c4aa9a}.tp-script-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 20px}.tp-script-meta>span{color:#cdb2a0;font-size:12px}.tp-text-button{border:0;background:none;color:#ede3d6;padding:10px 0;font:400 13px/1.5 var(--sans);cursor:pointer;text-align:left;min-height:44px}.tp-text-button:hover{text-decoration:underline;text-underline-offset:4px}.tp-settings{padding-top:22px;border-top:1px solid #ede3d633}.tp-settings output{float:right;font-size:13px;color:#d1bbad;font-variant-numeric:tabular-nums}.tp-settings input[type=range]{width:100%;margin:0 0 22px;accent-color:#d5b8a0;height:24px;cursor:pointer}.tp-check{display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:24px;min-height:36px}.tp-check input{width:18px;height:18px;accent-color:#d5b8a0}.tp-setup-actions{display:flex;gap:12px;flex-wrap:wrap}.tp-setup-actions button{min-height:46px}.tp-help{font:400 12px/1.8 var(--sans);color:#cfb9aa;margin:16px 0 0}.tp-record-panel{max-width:480px;width:100%;justify-self:center;scroll-margin-top:20px}.tp-stage{position:relative;width:100%;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#13080a;isolation:isolate}.tp-stage[hidden]{display:none}.tp-stage>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#13080a}.tp-stage>video.is-mirrored{transform:scaleX(-1)}.tp-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#d1bbad;text-align:center;padding:25px;font:400 22px/1.5 var(--serif)}.tp-placeholder svg{width:36px;height:36px;stroke-width:1}.tp-placeholder[hidden]{display:none}.tp-reader{position:absolute;left:18px;right:18px;top:65px;height:35%;max-height:240px;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;background:#100607b8;border-radius:10px;padding:16px 18px;z-index:1;cursor:grab}.tp-reader::-webkit-scrollbar{display:none}.tp-reader[hidden]{display:none}#tp-reader-text{font:400 28px/1.65 var(--sans);color:#fff8ef;white-space:pre-wrap;overflow-wrap:anywhere;padding-bottom:100px;min-height:100%;text-align:center}.tp-stage-bar{position:absolute;left:18px;right:18px;top:14px;display:flex;align-items:center;gap:12px;z-index:2;color:#fff8ef;font:500 12px/1.5 var(--sans)}#tp-record-state{padding:5px 9px;border-radius:6px;background:#18090bcc}#tp-record-state.is-recording{background:#ede3d6;color:#3b0a10}#tp-clock{font-variant-numeric:tabular-nums;margin-left:auto}.tp-stage-button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#18090bcc;color:#ede3d6}.tp-stage-button svg{width:20px;height:20px}.tp-count{position:absolute;inset:0;display:grid;place-items:center;background:#18090b66;color:#ede3d6;font:400 80px/1 var(--serif);z-index:3}.tp-count[hidden]{display:none}.tp-live-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.tp-live-actions .tp-text-button{grid-column:1/-1;justify-self:center;padding:0;min-height:36px}.tp-record-button{border:1px solid #ede3d6;background:#ede3d6;color:#3b0a10;border-radius:8px;min-height:46px;padding:10px 14px;font:500 14px/1.5 var(--sans)}.tp-record-button.is-recording{background:#7a2837;color:#fff8ef;border-color:#a9626f}.tp-camera-actions{display:flex;justify-content:space-between;gap:14px}.tp-feedback{font:400 14px/1.7 var(--sans);color:#ede3d6;margin:16px 0;min-height:0}.tp-feedback:empty{display:none}.tp-result{padding-top:24px;border-top:1px solid #ede3d633}.tp-result[hidden]{display:none}.tp-result h2{font:400 30px/1.3 var(--serif);margin:0 0 16px}.tp-result video{display:block;width:100%;max-height:600px;background:#100607;border-radius:12px}.tp-result-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.tp-result-actions button{min-height:44px}.tp-page button:disabled{opacity:.45;cursor:default;text-decoration:none}.tp-page :is(button,input,textarea,select,.tp-reader):focus-visible{outline:2px solid #d5b8a0;outline-offset:4px}#tp-import{margin:4px 0 25px}#tp-import[hidden]{display:none}#tp-import select{width:100%;font:400 14px/1.5 var(--sans);padding:12px;border:1px solid #ede3d640;border-radius:8px;background:#24090d;color:#ede3d6}#tp-import-status{font-size:12px;color:#cfb9aa;line-height:1.7}.tp-record-panel.is-expanded{position:fixed;inset:0;z-index:100;width:100%;max-width:none;height:100dvh;overflow:auto;padding:12px max(12px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));background:#13080a;display:flex;flex-direction:column;align-items:center}.tp-record-panel.is-expanded .tp-stage{flex:1;min-height:220px;aspect-ratio:auto;max-width:620px}.tp-record-panel.is-expanded .tp-live-actions,.tp-record-panel.is-expanded .tp-camera-actions{width:100%;max-width:620px;flex:none}.tp-record-panel.is-expanded>.tp-help,.tp-record-panel.is-expanded .tp-result{display:none}.tp-record-panel.is-expanded .tp-reader{height:30%;max-height:230px}.tp-expanded{overflow:hidden}
@media(max-width:1050px){.tp-layout{gap:30px;grid-template-columns:1fr}.tp-record-panel{max-width:430px}}
@media(max-width:760px){.tp-heading{margin-bottom:24px}.tp-heading p{font-size:14px}.tp-layout{grid-template-columns:1fr;gap:30px}.tp-setup textarea{min-height:150px}.tp-record-panel{max-width:430px}.tp-help{font-size:12px}.tp-stage{max-height:660px}.tp-setup-actions{display:grid;grid-template-columns:1fr 1fr}.tp-setup-actions button{font-size:13px;padding:10px}.tp-reader{left:12px;right:12px;padding:12px}.tp-stage-bar{left:12px;right:12px}.tp-live-actions button{font-size:13px}.tp-result-actions{display:grid;grid-template-columns:1fr}.tp-result-actions .tp-text-button{text-align:center}body[data-view=teleprompter] .area-navigation button,body[data-view=criar] .area-navigation button,body[data-view=stories] .area-navigation button,body[data-view=minhas] .area-navigation button{font-size:12px;padding-inline:4px}.tp-record-panel.is-expanded .tp-stage{max-height:none}}

#tp-resolution{display:block;width:100%;margin:0 0 24px;padding:12px;background:#24090d;color:#ede3d6;border:1px solid #ede3d640;border-radius:8px;font:400 14px/1.5 var(--sans)}

/* Preview and output share a portrait frame, including expanded mode. */
.tp-stage{max-height:none}
.tp-position-label{display:block;font:500 14px/1.5 var(--sans);margin-bottom:10px}
.tp-positions{display:flex;gap:6px;margin:0 0 22px}
.tp-positions button{flex:1;min-width:0;min-height:44px;padding:8px 5px;border:1px solid #ede3d640;border-radius:8px;background:none;color:#d1bbad;font:400 12px/1.4 var(--sans)}
.tp-positions button[aria-pressed=true]{background:#ede3d6;border-color:#ede3d6;color:#3b0a10}
.tp-record-panel>.tp-positions{margin:12px 0 0;width:100%}
.tp-stage[data-position=top] .tp-reader{top:65px;bottom:auto;transform:none}
.tp-stage[data-position=middle] .tp-reader{top:50%;bottom:auto;transform:translateY(-50%)}
.tp-stage[data-position=bottom] .tp-reader{top:auto;bottom:18px;transform:none}
.tp-record-panel.is-expanded .tp-stage{flex:none;width:min(100%,max(124px,calc((100dvh - 270px - env(safe-area-inset-bottom)) * .5625)));height:auto;aspect-ratio:9/16;min-height:0;max-height:none;max-width:620px}
.tp-record-panel.is-expanded>.tp-positions{max-width:620px;flex:none}
@media(max-width:760px){.tp-stage{max-height:none}.tp-positions button{font-size:12px}}

/* On a phone the camera fills the viewport and controls overlay it, like Stories. */
@media(max-width:760px){
 .tp-record-panel.is-expanded{padding:12px max(12px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));justify-content:flex-end;align-items:stretch;gap:0;overflow:hidden;isolation:isolate}
 .tp-record-panel.is-expanded .tp-stage{position:absolute;inset:0;z-index:0;width:100%;height:100%;max-width:none;min-height:0;max-height:none;aspect-ratio:auto;border-radius:0}
 .tp-record-panel.is-expanded .tp-stage:after{content:'';position:absolute;inset:auto 0 0;height:330px;background:linear-gradient(transparent,#13080ae8 35%,#13080a);pointer-events:none}
 .tp-record-panel.is-expanded>.tp-positions,.tp-record-panel.is-expanded>.tp-live-actions,.tp-record-panel.is-expanded>.tp-camera-actions,.tp-record-panel.is-expanded>.tp-feedback{position:relative;z-index:2;width:100%;max-width:none}
 .tp-record-panel.is-expanded>.tp-positions{margin-top:0}
 .tp-record-panel.is-expanded .tp-stage-bar{top:calc(14px + env(safe-area-inset-top));z-index:2}
 .tp-record-panel.is-expanded .tp-reader{height:clamp(70px,25dvh,220px);max-height:calc(100% - 330px)}
 .tp-record-panel.is-expanded .tp-stage[data-position=top] .tp-reader{top:calc(65px + env(safe-area-inset-top))}
 .tp-record-panel.is-expanded .tp-stage[data-position=middle] .tp-reader{top:50%;transform:translateY(-50%)}
 .tp-record-panel.is-expanded .tp-stage[data-position=bottom] .tp-reader{bottom:calc(255px + env(safe-area-inset-bottom))}
 .tp-record-panel.is-expanded>.tp-feedback{font-size:12px;margin:5px 0 0;line-height:1.4}
}
@media(max-width:760px) and (max-height:540px){
 .tp-record-panel.is-expanded{overflow:auto}
 .tp-record-panel.is-expanded .tp-reader{height:75px;max-height:none}
 .tp-record-panel.is-expanded .tp-stage[data-position=bottom] .tp-reader{bottom:240px}
 .tp-record-panel.is-expanded .tp-positions button{min-height:36px}
}

.tp-stage-bar #tp-clock{padding:5px 8px;border-radius:6px;background:#18090bcc}

/* Finishing a take reveals its player and decisions in the same camera surface. */
.tp-record-panel.is-review>.tp-stage,.tp-record-panel.is-review>.tp-live-actions,.tp-record-panel.is-review>.tp-camera-actions,.tp-record-panel.is-review>.tp-help,.tp-record-panel.is-review>.tp-feedback{display:none}
.tp-record-panel.is-expanded.is-review{display:flex;align-items:stretch;justify-content:flex-start;padding:20px max(18px,env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom));overflow:auto;background:#13080a}
.tp-record-panel.is-expanded.is-review #tp-result{position:relative;z-index:3;display:flex;flex-direction:column;gap:12px;width:100%;max-width:620px;height:100%;min-height:0;margin:0 auto;padding:0;border:0}
.tp-review-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none}
.tp-review-heading h2{font:400 30px/1.2 var(--serif);margin:0}
.tp-review-heading h2:focus{outline:none}
.tp-record-panel.is-review #tp-playback{flex:1 1 0;min-height:120px;height:0;max-height:none;width:100%;object-fit:contain;border-radius:12px;background:#080405}
#tp-playback[hidden],#tp-review-loading[hidden]{display:none!important}
#tp-review-loading{flex:1;min-height:160px;display:grid;place-items:center;color:#ede3d6;font:400 16px/1.6 var(--sans)}
#tp-review-status{font:400 14px/1.6 var(--sans);color:#ede3d6;margin:0}
.tp-record-panel.is-review #tp-file-info{margin:0;font-size:12px;flex:none}
.tp-record-panel.is-review .tp-result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;flex:none}
.tp-record-panel.is-review .tp-result-actions button{min-width:0;min-height:48px;padding:12px 5px;font:500 13px/1.4 var(--sans);border-radius:8px;justify-content:center;text-align:center}
.tp-review-more{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}
.tp-record-panel.is-review #tp-result>.tp-help:last-child{display:none}
.tp-record-panel.is-expanded.is-review:after{display:none}
@media(max-width:760px){.tp-record-panel.is-expanded.is-review{padding-top:calc(12px + env(safe-area-inset-top))}.tp-review-heading h2{font-size:28px}.tp-record-panel.is-review .tp-result-actions button{font-size:12px}.tp-review-more button{font-size:12px}#tp-review-status{font-size:13px}}
@media(max-height:540px){.tp-record-panel.is-review #tp-playback{flex:none;height:220px}.tp-record-panel.is-expanded.is-review{overflow:auto}}
