@import url('fonts/font.css');
:root{--paper:#f8f7f2;--panel:#fffefa;--ink:#252e2a;--muted:#646b62;--line:#dadcd2;--rust:#a4442e;--serif:"Cormorant Garamond",Georgia,serif;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select,textarea,input{font:inherit}button,select{cursor:pointer;color:inherit}button,a,select,input,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #438893}button{border:0;background:transparent}button:disabled{opacity:.5;cursor:default}button:not(:disabled):active{translate:0 1px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}svg{width:100%;height:100%;display:block}i[data-icon]{width:19px;height:19px;display:inline-block;flex:none}header{border-bottom:1px solid var(--line)}.head-inner,main,footer{width:min(1328px,91%);margin:auto}.head-inner{height:74px;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font:600 38px/1 var(--serif);letter-spacing:-1.5px}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--rust);color:#fff8ec;display:grid;place-items:center}.brand-mark i{width:25px;height:25px}nav{display:flex;align-items:center;gap:8px}nav>*{font-size:.92rem;font-weight:500;padding:9px 15px;color:#596259;text-decoration:none;border-radius:8px}nav a{background:#e9ede5;color:#374b40}.intro{padding:36px 0 25px;display:flex;align-items:center;justify-content:space-between;gap:22px}.intro h1{font:600 clamp(46px,4.9vw,74px)/.99 var(--serif);letter-spacing:-.043em;margin:0}.intro h1 em{color:var(--rust);font-weight:600}.intro p{margin:12px 0 0;color:var(--muted);font-size:1rem;line-height:1.5}.language{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:22px;font-size:.86rem;padding:8px 15px;color:#506451;background:#f2f4ed;white-space:nowrap}.language i{width:14px;height:14px}.workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:20px;align-items:stretch}.player,.panel{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--panel)}.player{display:flex;flex-direction:column}.scene{position:relative;background:radial-gradient(ellipse at 48% 32%,#466358 0%,#304f45 53%,#233d35 100%);isolation:isolate;min-height:390px;flex:1;overflow:hidden;color:#fbf4e4}.scene canvas{width:100%;height:100%;display:block;position:absolute;inset:0}#scenery{z-index:-1}.stage-head{position:absolute;inset:20px 22px auto;display:flex;align-items:center;justify-content:space-between;z-index:1}.scene-tag,.scene-index{font-size:.78rem;letter-spacing:.04em}.scene-tag{display:inline-flex;align-items:center;gap:7px;border:1px solid #c8dbcc52;border-radius:20px;padding:5px 11px;color:#f4f4e8;background:#243c3560}.scene-tag i{width:15px;height:15px}.scene-index{color:#dae4d5b8;font-size:.69rem;letter-spacing:.16em}.bracket{border:solid #dee8d656;width:14px;height:14px;position:absolute;pointer-events:none}.tl{top:70px;left:24px;border-width:1px 0 0 1px}.tr{top:70px;right:24px;border-width:1px 1px 0 0}.bl{bottom:22px;left:24px;border-width:0 0 1px 1px}.br{bottom:22px;right:24px;border-width:0 1px 1px 0}.scene-name{position:absolute;bottom:34px;left:38px;display:grid;gap:3px;text-shadow:0 1px 6px #10291f}.scene-name strong{font:600 31px/1 var(--serif)}.scene-name span{font-size:.76rem;color:#e1e7db}.expand{position:absolute;bottom:32px;right:36px;border-radius:8px;color:#fff;background:#253d35b8;border:1px solid #dce9d647;width:33px;height:33px;display:grid;place-items:center}.expand i{width:16px;height:16px}#subtitle{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-weight:600;background:#182c25eb;border-radius:7px;padding:5px 12px;max-width:50%;overflow-wrap:anywhere}.scene:fullscreen,.scene.large{height:100%;width:100%;max-height:100vh}.scene.large{position:fixed;inset:0;z-index:20}.transport{display:flex;align-items:center;gap:13px;height:61px;flex:none;padding:0 19px}.round{width:33px;height:33px;background:#eaf0e7;border-radius:50%;display:grid;place-items:center;color:#355643}.round i{width:16px;height:16px}.repeat{padding:3px;color:#637165}.repeat i{width:16px;height:16px}.time{font:500 .76rem Inter,sans-serif;color:#656b62;font-variant-numeric:tabular-nums}.transport input{width:0;flex:1;accent-color:#6a846a;height:5px;cursor:pointer}.speed select{padding:3px 4px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-size:.82rem}.panel{padding:24px 26px}.source{display:flex;flex-direction:column}.card-heading{display:flex;gap:11px;align-items:center}.tile{width:33px;height:33px;border-radius:9px;background:#edf1e7;color:#506c50;display:grid;place-items:center}.tile i{width:17px;height:17px}h2{font:600 30px/1.05 var(--serif);margin:0;letter-spacing:-.025em}.tabs{background:#efefea;display:flex;padding:4px;border-radius:10px;margin:20px 0 20px}.tabs button{flex:1;border-radius:7px;padding:8px 3px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:.88rem;font-weight:500;color:#677063}.tabs button.selected{box-shadow:0 1px 4px #26392b24;color:#263c2b;background:var(--panel)}.tabs i{width:17px;height:17px}.source label,.examples>span{font-size:.84rem;font-weight:600}.editor{background:#fbfaf6;border:1px solid #cdd3c8;border-radius:10px;margin:8px 0 17px;overflow:hidden}.editor:focus-within{border-color:#7c9380}.editor textarea{resize:vertical;border:0;background:transparent;color:var(--ink);width:100%;min-height:89px;height:89px;padding:13px 15px 3px;line-height:1.55;display:block;outline-offset:-3px}.editor div{padding:0 13px 8px;display:flex;align-items:center;justify-content:space-between;color:#71786d;font-size:.72rem}.editor button{color:#75826e;padding:2px}.editor i{width:14px;height:14px}.examples>span{color:var(--muted);font-weight:500}.examples div{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 19px}.examples button,.word-list button,#whole,#cropAgain{font-size:.82rem;background:#f5f5ee;border:1px solid #d9ddd2;border-radius:24px;padding:6px 11px;color:#455647}.primary,#share,#useCrop{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:9px;padding:13px;background:var(--rust);color:white;font-size:.97rem;font-weight:600}.primary{margin-top:auto}.primary i{width:17px;height:17px}.queue{margin-top:20px;padding:20px 25px}.queue-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.queue h2{font-size:27px}.queue-info{font-size:.82rem;color:var(--muted)}#tokens,.word-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;max-height:200px;overflow:auto}#tokens button{border-radius:7px;border:1px solid #d8dfd2;padding:7px 11px;color:#3e5842;background:#f1f4ec;font-size:.9rem}#tokens .active{background:#e6eedd;border-color:#8ea083;font-weight:600}#tokens button[data-kind="letters"]{background:#faf4e8;color:#755732;border-color:#e4d8bd}#tokens button[data-kind="text"]{background:#f4f1eb;color:#675e54}.queue p,#message,#capture-status,dialog p{font-size:.88rem;color:var(--muted);line-height:1.5}#legend{margin:10px 0 0;font-size:.8rem}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:28px;padding:19px 0 23px;color:#6c7369;font-size:.77rem}footer b{font-weight:400;color:#abb4a8;margin:0 6px}#share{background:#385546;padding:10px;width:100%}#cropAgain{margin-bottom:10px}dialog{width:min(560px,94vw);max-height:85dvh;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--ink);padding:24px;box-shadow:0 25px 80px #15271c35}dialog::backdrop{background:#182b2180}.dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.close{font-size:25px;line-height:1.25;border-radius:6px;width:32px;background:#edf0e7}dialog a{color:var(--rust)}#cropDialog{width:min(900px,96vw)}.cropbox{position:relative;width:fit-content;max-width:100%;margin:auto;line-height:0;touch-action:none;cursor:crosshair}.cropbox video{display:block;max-width:100%;max-height:52vh}.cropbox div{position:absolute;pointer-events:none;border:2px solid #ffc878;background:#ffbf6420}.cropActions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px}#whole,#useCrop{border-radius:8px}#capture-status{margin:8px 0}.word-list button{font-size:.94rem}.dialog-title+div p{font-size:1rem}.scene:fullscreen .scene-name{bottom:36px}
@media(min-width:1560px){.scene{min-height:470px}}
@media(max-width:900px){.head-inner,main,footer{width:94%}.workspace{grid-template-columns:minmax(0,1.2fr) minmax(295px,1fr);gap:12px}.panel{padding:18px}.scene-name{left:22px}.transport{gap:8px;padding:0 12px}.examples button{padding:5px 8px}}
@media(max-width:700px){.head-inner,main,footer{width:92%}.head-inner{height:62px}.brand{font-size:31px;gap:8px}.brand-mark{width:33px;height:33px;border-radius:9px}.brand-mark i{width:22px;height:22px}nav{gap:0}nav>*{padding:7px 8px;font-size:.8rem}.intro{padding:25px 0 18px;align-items:flex-start}.intro p{font-size:.92rem;margin-top:7px}.language{display:none}.workspace{grid-template-columns:1fr;gap:14px}.scene{min-height:0;height:clamp(300px,85vw,450px);flex:auto}.panel{padding:18px}.transport{height:51px}.queue{margin-top:14px}.queue-head{align-items:flex-start}.queue h2{font-size:24px}.queue-info{white-space:nowrap;margin-top:7px}.scene-name strong{font-size:26px}.scene-name span{font-size:.69rem}.scene-name{bottom:26px}.tl,.tr{top:54px}.bracket{width:10px;height:10px}.stage-head{inset:14px 17px auto}.examples div{margin-bottom:14px}.tabs{margin:15px 0}.scene-index{font-size:.62rem}footer{margin-top:18px;gap:10px;font-size:.68rem}#subtitle{bottom:7px}}@media(max-width:370px){nav>*{padding:6px}.queue-head{flex-wrap:wrap}}
.input-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.input-heading button,.text-link{font-size:.8rem;color:#874331;text-decoration:underline;text-underline-offset:3px}.queue button[aria-current=true]{box-shadow:inset 0 0 0 2px #607d63}#partNav{display:flex;align-items:center;gap:14px;margin-top:10px;font-size:.84rem;color:var(--muted)}#partNav button{font-size:20px;background:#ecf0e7;border-radius:6px;min-width:30px}.word-list{max-height:28vh;overflow:auto}.sample-ref{font-size:.83rem;color:var(--muted)}.sources li{margin-bottom:8px}.dict-import{display:block;padding:12px 0}.dict-import input{max-width:100%;font-size:.86rem}.dialog-title+div h3{margin-bottom:4px}.dialog-title+div h3+p{margin-top:6px}
.examples button.recorded{background:#e9f0e4;color:#3a573e;border-color:#bdcbb7}
#tokens{position:relative}
#voice-panel{flex:1;display:flex;flex-direction:column}#voiceSource{margin:8px 0 18px;border:1px solid #cbd2c7;border-radius:8px;background:#fbfaf6;padding:10px 12px;width:100%;font-size:.92rem}.live-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.84rem;font-weight:600}.live-label span+span{color:#687065;font-size:.77rem;font-weight:400}#speechBox{max-height:125px;min-height:80px;overflow:auto;border-left:2px solid #a9bca6;background:#f4f5ee;padding:13px 15px;margin-top:8px;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}#partial{color:#526a56;font-style:italic}#voiceHelp{font-size:.81rem;line-height:1.5;color:var(--muted);margin:11px 0 15px}#listenExample{margin-top:11px;align-self:center}#startVoice.stop{background:#48574c}#voiceState[data-live=true]{color:#395b3c}
