@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Newsreader:wght@400;500&display=swap');
:root{--navy:#081739;--blue:#285dd4;--line:#dae5f4;--ink:#142643;--muted:#65758e}*{box-sizing:border-box}body{margin:0;background:#f3f6fc;font:14px/1.55 Archivo,system-ui,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:10px;padding:11px 14px;font-weight:700;min-height:41px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #86adff;outline-offset:2px}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;z-index:999;padding:9px;background:white}.top{padding:15px clamp(16px,4vw,52px);display:flex;justify-content:space-between;align-items:center;gap:15px;background:var(--navy);color:white}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:white;font-weight:700;font-size:18px;line-height:1.15}.brand img{border-radius:10px}.brand small{display:block;color:#bbcbeb;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:500;margin-top:4px}.top nav{display:flex;gap:20px}.top nav a{color:#c9daf7;font-size:12px;text-decoration:none}main{max-width:1510px;margin:auto;padding:clamp(17px,3vw,40px)}.hero{display:flex;align-items:end;justify-content:space-between;gap:25px;flex-wrap:wrap;margin-bottom:24px}.eyebrow{color:#3766bd;letter-spacing:.1em;font-size:10px;text-transform:uppercase;font-weight:700}.hero h1{font:500 clamp(30px,4vw,52px)/1.07 Newsreader,Georgia,serif;letter-spacing:-.04em;margin:10px 0}.hero p{color:var(--muted);max-width:650px;font-size:14px;line-height:1.7}.notice{max-width:350px;background:#eaf1ff;border:1px solid #d8e5fa;border-radius:12px;padding:13px 16px;color:#2d568f;font-size:12px}.guide,.panel{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 6px 22px #112f6208}.guide{margin-bottom:21px}.guide summary{padding:15px 19px;cursor:pointer;font-weight:700;display:flex;justify-content:space-between;align-items:center}.guide summary span{color:#7b8ba1;font-size:11px;font-weight:500}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 15px 15px}.guide-grid article{background:#f8faff;border:1px solid #e6edfa;border-radius:11px;padding:14px}.guide-grid b{color:#2459bd;font-size:12px}.guide-grid p{margin:5px 0 0;font-size:12px;color:#718098}.layout{display:grid;grid-template-columns:minmax(315px,.87fr) minmax(350px,1.13fr);gap:18px;align-items:start}.panel{padding:clamp(17px,2.5vw,27px)}.panel-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.panel h2{font:500 29px Newsreader,Georgia,serif;letter-spacing:-.025em;margin:5px 0 0}.pill{font-size:11px;color:#3460af;background:#edf3ff;padding:6px 10px;border-radius:90px;white-space:nowrap}.search{display:flex;gap:9px;align-items:center;border:1px solid #d7e2f1;border-radius:10px;padding-left:12px;background:#fbfcff}.search input{border:0;outline:0;flex:1;padding:13px;background:transparent;min-width:0}.filters{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.filter{background:#f1f5fb;color:#5e7392;border:1px solid #e1e9f4;font-size:11px;min-height:34px}.filter.active{background:var(--navy);color:white;border-color:var(--navy)}.template-list{display:grid;gap:10px;max-height:680px;overflow:auto;padding:2px}.template{border:1px solid #e1e9f3;background:#fafcff;border-radius:13px;padding:15px;display:grid;gap:6px}.template-top{display:flex;align-items:center;gap:10px}.template-icon{display:grid;place-items:center;width:37px;height:37px;background:#eaf1ff;border-radius:10px;font-size:18px}.template strong{font-size:13px}.template small{color:#6f8099}.template p{font-size:12px;color:#65758e;margin:4px 0 8px}.template button{justify-self:start;background:#e9f0ff;color:#2856ae;font-size:12px}.field{display:grid;gap:7px;color:#3d516e;font-size:12px;font-weight:700;margin-bottom:18px}.field input,.field textarea{border:1px solid #d4e0ef;border-radius:11px;padding:13px;color:var(--ink);background:#fbfcff;font-weight:400;outline:none;resize:vertical}.field input:focus,.field textarea:focus{border-color:#6999eb;box-shadow:0 0 0 4px #e3ecff}.field textarea{line-height:1.8;min-height:340px}.actions{display:flex;flex-wrap:wrap;gap:9px}.primary{background:var(--blue);color:white}.outline{background:#fff;border:1px solid #bfcfeb;color:#31589d}.ghost{background:#eef2f8;color:#526581}.disclaimer{margin:16px 0 0;color:#7e8da4;font-size:11px}.prompt-overlay[hidden],.toast[hidden]{display:none}.prompt-overlay{position:fixed;inset:0;z-index:999999;background:#040b1a;display:grid;place-items:center}.prompt-shell{width:100%;height:100dvh;display:flex;flex-direction:column;background:#050b18;color:white}.prompt-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #253752;flex-wrap:wrap}.prompt-title{display:grid}.prompt-title strong{font-size:14px}.prompt-title span{font-size:11px;color:#a7bad9;margin-top:4px}.control-buttons{display:flex;flex-wrap:wrap;gap:8px}.control-buttons button,.reader-options button{font-size:12px}.prompt-shell .outline{background:#142541;color:#edf3ff;border-color:#365178}.prompt-shell .ghost{background:#1a2942;color:#e8f0fc}.reader-options{display:flex;flex-wrap:wrap;gap:19px;align-items:center;padding:12px 20px}.reader-options label{display:flex;align-items:center;gap:9px;font-size:11px;color:#bed1ee}.reader-options input{accent-color:#76a3ff;max-width:130px}.reader-options select{padding:8px 10px;border:1px solid #42608d;border-radius:8px;color:#fff;background:#132b50}.reader-options output{color:white;white-space:nowrap}.track{height:4px;background:#233957;flex:0 0 auto}.track div{height:100%;width:0%;background:#80a9ff}.reader-wrap{position:relative;overflow-y:auto;overscroll-behavior:contain;flex:1;scrollbar-color:#4b6592 #09172f;padding:28vh clamp(20px,7vw,105px) 0}.reader-text{font:500 48px/1.55 Archivo,system-ui,sans-serif;max-width:24ch;margin:auto;white-space:pre-wrap;overflow-wrap:anywhere}.reader-tail{height:48vh}#guide-line{position:sticky;top:14%;height:2px;background:#598cefaa;pointer-events:none;z-index:1}.reader-footer{text-align:center;padding:10px;font-size:11px;color:#8ca2c3;border-top:1px solid #1d3151}.prompt-shell.recording .prompt-controls,.prompt-shell.recording .reader-options,.prompt-shell.recording .reader-footer{opacity:.12;transition:opacity .3s}.prompt-shell.recording .prompt-controls:hover,.prompt-shell.recording .reader-options:hover{opacity:1}.prompt-shell.light{background:#fff;color:#081739}.prompt-shell.light .reader-wrap{background:#fff}.prompt-shell.warm{background:#241806;color:#ffdf9c}.reader-text.mirrored{transform:scaleX(-1)}.toast{position:fixed;bottom:18px;right:18px;z-index:9999999;padding:13px 17px;border-radius:11px;color:white;background:#193a70;font-size:12px;box-shadow:0 6px 25px #09142d66;max-width:min(94vw,430px)}@media(max-width:860px){.layout{grid-template-columns:1fr}.template-list{max-height:none}.guide-grid{grid-template-columns:1fr}.top{align-items:start;flex-direction:column}.top nav{flex-wrap:wrap;gap:12px}.prompt-controls{padding:11px}.reader-options{padding:11px;gap:8px}.reader-options label{flex:1}.reader-wrap{padding:20vh 18px 0}.control-buttons{gap:5px}.control-buttons button{padding:8px 10px;min-height:37px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Original V2 teleprompter: controls recede after 2800ms; manual reading remains operable. */
.prompt-controls,.reader-options,.reader-footer,.track{transition:opacity .25s ease}.prompt-shell.controls-idle .prompt-controls,.prompt-shell.controls-idle .reader-options,.prompt-shell.controls-idle .reader-footer{opacity:0;pointer-events:none}.prompt-shell.controls-idle .track{opacity:.45}.prompt-shell.recording .prompt-controls,.prompt-shell.recording .reader-options,.prompt-shell.recording .reader-footer{transition:opacity .25s ease}
@media(prefers-reduced-motion:reduce){.prompt-shell.controls-idle .prompt-controls,.prompt-shell.controls-idle .reader-options,.prompt-shell.controls-idle .reader-footer,.prompt-shell.controls-idle .track{opacity:1;pointer-events:auto}}

/* Teleprompter Pro — one reader. The default view is text, play, speed and the
   independent window; everything else lives in the collapsible "Ajustes" panel. */
.tp-layout{grid-template-columns:minmax(0,820px);justify-content:start}
.tp-library{display:inline-flex;align-items:center;min-height:41px;padding:0 14px;border:1px solid #bfcfeb;border-radius:10px;color:#31589d;font-weight:700;text-decoration:none;background:#fff}
.tp-library:hover{border-color:#285dd4}
.v5-studio-library{margin-left:auto;align-self:center;flex-shrink:0;font:500 13px Archivo,sans-serif;color:#1D4FD1;text-decoration:none;padding:0 6px}
.prompt-overlay{background:#040b1a}
.prompt-shell{--tp-bg:#0b1220;--tp-fg:#f2f5fa;position:relative;background:var(--tp-bg);color:var(--tp-fg)}
.prompt-shell .reader-wrap{background:transparent}
.prompt-shell .reader-text{color:var(--tp-fg);margin-inline:auto}
.prompt-controls,.reader-options,.reader-footer{background:#081739;color:#fff}
.prompt-controls{border-bottom:1px solid #253752}
.control-buttons{align-items:center}
.tp-speed{display:inline-flex;align-items:center;gap:4px;border:1px solid #365178;border-radius:10px;padding:2px;background:#101f3b}
.tp-speed button{min-height:35px;padding:0 12px;border:0!important;background:transparent!important;font-size:16px}
.tp-speed output{min-width:68px;text-align:center;font:600 12px Archivo,sans-serif;color:#fff;font-variant-numeric:tabular-nums}
.reader-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px 22px;align-items:start;padding:16px 20px;border-bottom:1px solid #253752;max-height:46vh;overflow:auto}
.reader-options fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:9px;align-items:center;min-width:0}
.reader-options legend{font:600 10px/1 Archivo,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#9cb4dc;padding:0;margin-bottom:10px}
.reader-options label{flex:1 1 100%;justify-content:space-between}
.reader-options input[type=range]{flex:1;max-width:none}
.reader-options input[type=color]{width:44px;height:30px;padding:0;border:1px solid #42608d;border-radius:7px;background:transparent}
.reader-options select{max-width:100%;min-width:0;flex:1}
.reader-options [aria-pressed=true]:not(.tp-preset){background:#285dd4!important;border-color:#285dd4!important;color:#fff!important}
.tp-presets{display:flex;flex-wrap:wrap;gap:7px;flex:1 1 100%}
.tp-preset{min-height:34px;padding:0 12px;border:2px solid #365178;font-size:12px}
.tp-preset[aria-pressed=true]{border-color:#80a9ff;box-shadow:0 0 0 2px #80a9ff66}
.tp-note{flex:1 1 100%;font:400 11.5px/1.5 Archivo,sans-serif;color:#bed1ee}
.tp-countdown{position:absolute;inset:0;display:grid;place-items:center;background:#081739dd;color:#fff;font:500 120px Archivo,sans-serif;z-index:100}
#guide-line{top:38%}
.reader-wrap{padding-top:38vh}
@media(max-width:860px){.tp-speed output{min-width:58px}.reader-options{max-height:52vh}}


/* Prevent studio toolbar, editor labels and disclosures from painting outside controls. */
:is(.top,.hero,.panel,.guide,.filters,.reader-options,.proposal-toolbar) :is(h1,h2,h3,h4,p,summary,strong,label){min-width:0;overflow-wrap:anywhere}
:is(.top,.hero,.panel,.guide,.filters,.reader-options) button{min-width:0;max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
:is(.top,.hero,.panel,.guide,.filters) > *{min-width:0;max-width:100%}
.pill{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.guide summary{gap:10px;flex-wrap:wrap}
@media(max-width:600px){.top{flex-wrap:wrap}.top>*{min-width:0;max-width:100%}}
