@charset "UTF-8";
:root{color-scheme:dark;--bg:#101713;--panel:#151c18;--line:#2e3931;--muted:#94a497;--text:#e4eade;--accent:#efad80;--mint:#b5dbc4;--paper:#edece4;--ink:#263b31;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:12px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.45;cursor:default}button:not(:disabled):hover{filter:brightness(1.13)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit}button svg,.credit svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:82px;display:flex;align-items:center;padding:0 25px;gap:22px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;white-space:nowrap}.brand>svg{width:36px;height:40px;stroke:var(--accent);fill:none;stroke-width:1;stroke-linejoin:round}.brand>span{font-size:30px;font-weight:520;letter-spacing:-1.8px}.brand-3d{font-weight:300;color:#bfccbf}.brand-dot{color:var(--accent)}.brand-caption{font-size:8px;line-height:1.8;letter-spacing:1.7px;color:var(--muted);min-width:92px}.project-title{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:22px;min-width:0;color:#b0beb1}.project-title i,.live-dot,.engine-status i{width:5px;height:5px;border-radius:50%;background:var(--mint);display:inline-block;flex-shrink:0}.project-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:18px}.quiet-btn,.outline-btn,.accent-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:5px;min-height:34px;font-size:11px}.quiet-btn{color:#b7c4b8;padding:5px 0}.help-button{border:1px solid #435246;padding:5px 10px}.accent-btn{background:var(--accent);color:#32261c;font-weight:650;padding:11px 15px;gap:12px}.outline-btn{border:1px solid #435347;color:#c2cec1;padding:10px}.full{width:100%}.transport{height:64px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);padding:0 26px;background:#161e19}.transport-play{display:flex;align-items:center;gap:10px;min-width:220px}.play-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-width:106px;background:var(--mint);border-radius:4px;padding:10px 15px;color:#17291e;font-weight:650}.play-btn svg{width:12px;height:14px;fill:currentColor;stroke:currentColor}.icon-btn{display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:4px;font-size:19px;color:#a1b2a4}.icon-btn:hover{background:#2b3c30}.passage-counter{display:flex;gap:12px;align-items:baseline;border-left:1px solid var(--line);padding-left:23px}.passage-counter strong{font:22px Consolas,monospace;color:#d8e2d2;font-weight:400}.passage-counter>span{font:10px Consolas,monospace;color:var(--muted)}select{background:#1d2820;color:#d5dfd1;border:1px solid #3d4d40;border-radius:4px;padding:10px;font-size:11px;cursor:pointer;max-width:100%}.speed-control{display:flex;align-items:center;gap:10px;font-size:8px;letter-spacing:1px;color:var(--muted)}.speed-control select{background:transparent;border:0;padding:7px;font:10px Consolas,monospace}.transport-right{margin-left:auto;display:flex;align-items:center;gap:9px;font:9px Consolas,monospace;color:#9db29f}.workspace{height:calc(100dvh - 207px);min-height:650px;display:grid;grid-template-columns:256px minmax(280px,1fr) 256px;grid-template-rows:minmax(425px,1fr) 196px}.panel{background:var(--panel);padding:23px 20px;overflow:auto;scrollbar-width:thin;scrollbar-color:#4e6050 transparent}.source-panel{grid-column:1;grid-row:1/3;border-right:1px solid var(--line)}.panel-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-bottom:21px}.panel-heading h2{font-size:12px;font-weight:500;margin:0;white-space:nowrap}.panel-heading>span{font:7px Consolas,monospace;color:#829788;letter-spacing:.6px;white-space:nowrap}.source-card{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#243129;border:1px solid #64745b;border-radius:6px;padding:15px 10px;margin-bottom:12px}.mini-volume{font-size:33px;color:var(--accent);line-height:1}.source-card strong{display:block;font-size:11px;font-weight:500;margin:0 0 6px}.source-card small{font-size:8px;color:#9aaf9f}.card-arrow{margin-left:auto;color:var(--accent)}.hint{font-size:9px;color:#96a99a;line-height:1.75;margin:10px 0 12px}.model-info{display:flex;flex-direction:column;gap:7px;padding:17px 0 18px;border-bottom:1px solid var(--line)}.tiny-label,.eyebrow{font-size:8px;letter-spacing:1.6px;color:#99b29d;font-weight:500}.model-info strong{font-size:12px;font-weight:500}.model-info small{font:8px Consolas,monospace;color:#92a397}.settings{padding:20px 0 10px}.settings summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font-size:12px;margin-bottom:17px}.settings summary::after{content:"−";color:#94ad99}.settings:not([open]) summary::after{content:"+"}.settings summary>span{margin-left:auto;margin-right:12px;font:8px Consolas,monospace;color:#657e6c}.range-label{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#b4c3b4;margin:15px 0 8px}.range-label output{font:10px Consolas,monospace;color:#dce6d4}input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:3px;border-radius:5px;background:#3b5040;display:block;cursor:pointer;margin:10px 0 18px}input[type=range]::-webkit-slider-thumb{appearance:none;width:10px;height:10px;background:#d5dfc9;border:2px solid #203825;border-radius:50%;box-shadow:0 0 0 1px #acbda3}input[type=range]::-moz-range-thumb{width:7px;height:7px;background:#d5dfc9;border:2px solid #203825;border-radius:50%}.check-label{display:flex;align-items:center;gap:7px;font-size:9px;color:#a9bdad;line-height:1.6;margin:13px 0}input[type=checkbox]{accent-color:var(--accent);margin:0;width:12px;height:12px}.source-note{margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.source-note p{font-size:10px;color:#91a898;line-height:1.8;margin:9px 0 0}.calculation-progress{margin-top:14px}.calculation-progress progress{width:100%;height:4px;accent-color:var(--accent)}.calculation-progress span{display:block;font-size:9px;color:#b7c9b7;margin-top:8px;line-height:1.6}#cancelBtn{margin-top:8px}.stage{position:relative;overflow:hidden;background:var(--paper);min-width:0;min-height:0;color:var(--ink)}#sceneCanvas{width:100%;height:100%;display:block;outline:0;touch-action:none;cursor:grab}#sceneCanvas:active{cursor:grabbing}#sceneCanvas:focus-visible{outline:2px solid #627b65;outline-offset:-4px}.stage-heading{position:absolute;left:28px;top:27px;pointer-events:none}.stage-heading .eyebrow{font-size:7px;color:#7b8c7d;letter-spacing:1.6px}.stage-heading h1{font-size:28px;font-weight:370;letter-spacing:-1.1px;line-height:1.2;margin:11px 0 7px}.stage-heading h1 em{font-style:normal;color:#687b68}.stage-heading p{font-size:10px;color:#72816f;margin:0;max-width:300px;line-height:1.6}.stage-toolbar{position:absolute;right:18px;top:20px;display:flex;gap:8px;align-items:center}.segmented{display:flex;border:1px solid #c8cdc1;border-radius:5px;background:#e7e8deed;padding:3px}.segmented button{font-size:9px;border-radius:3px;padding:7px 10px;color:#667862}.segmented .active{color:#edf0e5;background:#556b56}.stage-toolbar .icon-btn{color:#73856c}.stage-toolbar .icon-btn:hover{background:#d7ddcf}.view-tools{display:flex;align-items:center;gap:3px;position:absolute;bottom:45px;left:50%;transform:translateX(-50%);background:#f2f2e9ef;border:1px solid #c9cfc1;padding:4px;border-radius:6px;box-shadow:0 4px 10px #23342509}.view-tools button{padding:7px 13px;color:#64765f;border-radius:3px;font-size:10px;white-space:nowrap}.view-tools button.active{background:#d8dfd1;color:#344c35}.view-tools button:hover{background:#dfe4d6}.stage-bottom{position:absolute;left:25px;right:25px;bottom:17px;display:flex;align-items:center;justify-content:space-between;font:7px Consolas,monospace;color:#7f8e79;letter-spacing:.6px;pointer-events:none}.stage-bottom b{font-weight:400;margin-left:5px;color:#5d7258}.inspector{grid-column:3;grid-row:1/3;border-left:1px solid var(--line)}.form-label{display:block;margin:16px 0 8px;font-size:9px;color:#a2b5a5}.color-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}.color-pair label{display:flex;align-items:center;gap:7px;color:#a9bdad;font-size:9px}.color-pair input{padding:0;border:1px solid #506151;border-radius:5px;width:30px;height:30px;overflow:hidden;cursor:pointer;background:none}.color-pair input::-webkit-color-swatch-wrapper{padding:3px}.color-pair input::-webkit-color-swatch{border:0;border-radius:2px}.inspector-section{margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;margin-bottom:22px}.stats-grid strong{display:block;font:22px Consolas,monospace;color:#c4d5ba;font-weight:400}.stats-grid span{display:block;font-size:8px;color:#94a995;margin-top:6px}.timeline{grid-column:2;grid-row:2;background:#18221b;border-top:1px solid var(--line);padding:19px 27px;min-width:0}.timeline-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.timeline-header .eyebrow{font-size:7px;letter-spacing:1.4px;color:#8ea38f}.timeline h2{font-size:13px;font-weight:400;margin:7px 0 0}.timeline-header .quiet-btn{font-size:9px;gap:12px}.timeline input{margin:9px 0 10px;height:4px}.timeline-scale{display:flex;justify-content:space-between;font:8px Consolas,monospace;color:#718c76}.current-passage{display:flex;gap:10px;align-items:center;margin:18px 0 11px;color:#b6c7b4;font:9px Consolas,monospace;white-space:nowrap}.step-tag{color:#dbb18a;background:#342f23;padding:4px 6px;border-radius:3px;letter-spacing:.5px;font-size:8px}.direction-arrow{color:#6f8e75}.span-length{margin-left:auto;color:#9eb59e}.thread-strip{height:4px;border-radius:3px;overflow:hidden;background:#aeb4b0;position:relative;display:flex}.thread-strip i{height:100%;flex-shrink:0}.strip-caption{display:flex;align-items:center;gap:16px;color:#869e88;margin-top:9px;font-size:8px}.strip-caption>span:last-child{margin-left:auto;font-size:7px}.strip-caption i{width:10px;height:2px;display:inline-block;margin-right:5px;vertical-align:middle}.strip-caption b{font-weight:400;color:#a2b89e;margin-left:5px}.studio-footer{height:61px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 18px;background:#111a14;border-top:1px solid var(--line);color:#819a84;font-size:9px}.credit{display:flex;align-items:center;gap:12px;border:1px solid #475a45;border-left:3px solid var(--accent);background:#202d22;border-radius:5px;padding:7px 11px;color:#a6bca2;flex-shrink:0}.credit>svg{width:26px;height:29px;color:var(--accent);stroke-width:1}.credit>div{display:flex;flex-direction:column;gap:4px}.credit strong{font-size:11px;color:#d6e2cb;font-weight:500;letter-spacing:.3px}.credit>div>span{font-size:8px}.credit a{text-decoration:none}.version{font:9px Consolas,monospace;border-left:1px solid #465c43;padding-left:11px;color:#c7d4bd}.credit button{font-size:8px;color:#c7d4bd;text-decoration:underline;text-underline-offset:3px}.engine-status{display:flex;align-items:center;gap:8px;font:8px Consolas,monospace;letter-spacing:1px}.engine-status i{width:4px;height:4px}#fps{color:#69826e;margin-left:8px;letter-spacing:0}.loading-overlay,.fatal-error{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#edece4e8;padding:35px;text-align:center;line-height:1.8}.loading-overlay p{color:#62755c}.spinner{width:23px;height:23px;border:1px solid #9ba990;border-top-color:#36583b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.fatal-error{color:#663c2c}.toast{position:fixed;bottom:78px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);border:1px solid #7a8c6d;border-radius:5px;padding:12px 20px;background:#2b3c2e;color:#e0ead6;box-shadow:0 5px 30px #0005;z-index:40;font-size:11px;line-height:1.6}.toast.error{background:#49362a;border-color:#a77455}dialog{background:#18241b;color:var(--text);border:1px solid #617057;border-radius:10px;padding:35px;max-width:860px;width:calc(100% - 40px);max-height:calc(100dvh - 44px);box-shadow:0 20px 100px #0009}dialog::backdrop{background:#070f0bbb;backdrop-filter:blur(4px)}dialog h2{font-size:30px;font-weight:350;letter-spacing:-1px;margin:12px 0 17px}dialog p{font-size:11px;line-height:1.9;color:#b3c4ad}dialog a{color:var(--mint);text-underline-offset:3px}.close-dialog{position:absolute;right:16px;top:12px;font-size:25px;color:#a5b79e;line-height:1;padding:6px}.dialog-intro{max-width:640px;font-size:13px!important}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;border-top:1px solid var(--line);margin-top:24px;padding-top:8px}.help-grid h3{font-size:13px;font-weight:500;color:var(--accent);margin:21px 0 9px}.help-note{background:#243526;border-left:2px solid var(--mint);padding:15px 19px;margin:20px 0}.help-note b{font-size:12px;font-weight:500;color:#d3dfc9}.help-note p{margin:8px 0 0}.credits-details{margin:20px 0;border-top:1px solid #3b503c;padding-top:17px}.credits-details summary{cursor:pointer;font-size:11px;color:#a9bea4}.dialog-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:15px;border-top:1px solid var(--line)}.export-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0}.export-options button{text-align:left;background:#243427;border:1px solid #506349;border-radius:6px;padding:20px}.export-options strong{font-size:14px;font-weight:400;display:flex;justify-content:space-between;color:#d4e1ca}.export-options small{font-size:10px;line-height:1.8;color:#91ac8e;display:block;margin-top:10px}.guide-summary{padding:15px;background:#243526;color:#c4d3bb;font-size:11px;line-height:1.8}.guide-jump{display:flex;gap:10px;margin:10px 0 20px}.guide-jump input{width:100px;background:#101b13;border:1px solid #4b6449;color:#dce9d3;border-radius:4px;padding:9px}table{width:100%;border-collapse:collapse;text-align:left;font-size:10px;white-space:nowrap}td,th{padding:10px;border-bottom:1px solid var(--line)}th{font-weight:500;color:#91ad8b}tr.current{background:#2b412d;color:var(--accent)}.table-scroll{overflow:auto;max-height:340px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.stage:fullscreen{background:var(--paper);width:100vw;height:100dvh}.stage:fullscreen canvas{width:100vw;height:100dvh}[hidden]{display:none!important}
@media(min-width:1600px){.workspace{grid-template-columns:278px minmax(400px,1fr) 278px}.panel{padding:26px}.stage-heading{left:35px;top:33px}.stage-heading h1{font-size:33px}.timeline{padding:19px 35px}}
@media(max-width:1180px){.project-title{display:none}.topbar{gap:16px}.brand-caption{margin-right:auto}.header-actions{gap:15px}.workspace{grid-template-columns:230px minmax(240px,1fr) 222px}.panel{padding:22px 16px}.stage-heading{top:24px;left:22px}.stage-heading h1{font-size:23px;max-width:230px}.stage-heading p{max-width:200px;font-size:9px}.stage-toolbar{top:auto;bottom:92px;right:16px}.transport-play{min-width:198px}.current-passage{gap:7px;font-size:8px}.step-tag{font-size:7px}.timeline{padding:19px}.strip-caption>span:last-child{display:none}.view-tools button{padding:7px 10px}.stage-bottom{left:18px;right:18px}.stage-bottom>span:nth-child(2){display:none}.panel-heading h2{font-size:11px}.panel-heading>span{font-size:6px}}
@media(max-width:920px){.workspace{height:auto;min-height:0;grid-template-columns:225px minmax(280px,1fr);grid-template-rows:535px 196px auto}.source-panel{grid-column:1;grid-row:1/3}.stage{grid-column:2;grid-row:1}.inspector{grid-column:1/3;grid-row:3;border-top:1px solid var(--line);border-left:0;display:block;padding:25px;columns:2;column-gap:35px}.inspector>*{break-inside:avoid}.inspector>.panel-heading{column-span:all}.stage-toolbar{top:20px;bottom:auto;right:17px}.stage-heading{top:80px}.stage-heading h1{max-width:300px}.transport{gap:17px}.transport-play{min-width:185px}.transport-right{font-size:8px}.topbar{padding:0 19px}.brand>span{font-size:28px}.brand-caption{display:none}.studio-footer #saveStatus{font-size:8px}.engine-status{display:none}.topbar .quiet-btn span{display:none}.help-button span{display:inline!important}.header-actions{gap:20px}}
@media(max-width:600px){.topbar{height:auto;min-height:78px;padding:16px;flex-wrap:wrap;gap:16px}.brand>span{font-size:27px}.brand>svg{width:28px;height:31px}.header-actions{width:100%;justify-content:space-between;gap:13px}.header-actions .quiet-btn span{display:inline}.header-actions .accent-btn{min-height:32px;padding:8px 11px;font-size:10px}.transport{height:65px;padding:0 16px;gap:10px}.transport-play{min-width:0;gap:3px}.play-btn{padding:10px 12px;min-width:85px;gap:6px}.transport-play .icon-btn{width:27px}.passage-counter{padding-left:10px;gap:5px}.passage-counter strong{font-size:17px}.passage-counter>span{font-size:8px}.speed-control{margin-left:auto;font-size:0;gap:0}.speed-control select{font-size:9px;padding:7px 0}.transport-right{display:none}.workspace{display:flex;flex-direction:column}.stage{order:0;height:480px;min-height:480px}.timeline{order:1;padding:20px}.source-panel{order:2;overflow:visible;border-right:0;border-top:1px solid var(--line);padding:27px 23px}.inspector{order:3;display:block;columns:auto;overflow:visible;padding:27px 23px}.inspector .color-pair{max-width:280px}.source-card{padding:16px}.stage-heading{top:77px;left:22px}.stage-heading h1{font-size:26px}.stage-heading p{max-width:280px}.stage-toolbar{left:20px;right:20px;justify-content:space-between;top:18px}.stage-bottom{font-size:6px;left:20px;right:20px}.view-tools{bottom:47px}.view-tools button{padding:8px 11px}.current-passage{font-size:8px;flex-wrap:wrap;gap:8px}.span-length{margin-left:auto}.thread-strip{margin-top:5px}.studio-footer{height:auto;min-height:98px;flex-direction:column;align-items:flex-start;padding:15px 16px;gap:12px}.credit{gap:10px;max-width:100%;padding:8px 10px}.credit>svg{width:22px}.credit button{font-size:7px}.credit .version{font-size:8px}.credit>div>span{font-size:7px}.credit strong{font-size:10px}.help-grid{display:block}.export-options{grid-template-columns:1fr}dialog{padding:28px 23px;width:calc(100% - 22px);max-height:calc(100dvh - 22px)}dialog h2{font-size:26px}.dialog-actions{flex-direction:column}.dialog-actions>*{width:100%}.toast{bottom:20px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
@media(max-width:600px){.stage-heading{top:72px}.stage-heading p{display:none}}
.window-view-btn{display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #b8c2af;border-radius:5px;background:#e7e8deed;color:#496047;font-size:10px;white-space:nowrap}.window-view-btn:hover{background:#d8dfd1}.scene-only{display:none}body.scene-expanded{overflow:hidden}.scene-expanded>.topbar,.scene-expanded>.transport,.scene-expanded .source-panel,.scene-expanded .inspector,.scene-expanded .timeline{display:none}.scene-expanded .workspace{height:100dvh;min-height:0;display:block}.scene-expanded .stage{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;z-index:20}.scene-expanded #sceneCanvas{width:100%;height:100%}.scene-expanded .stage-heading{left:28px;top:27px}.scene-expanded .stage-heading h1{font-size:30px;max-width:none}.scene-expanded .stage-toolbar{left:auto;right:22px;top:20px;bottom:auto;max-width:calc(100% - 44px);flex-wrap:wrap;justify-content:flex-end}.scene-expanded .scene-only{display:inline-flex}.scene-expanded .stage-bottom{display:none}.scene-expanded .view-tools{bottom:74px}.scene-expanded .studio-footer{position:fixed;bottom:14px;left:16px;z-index:30;height:auto;min-height:0;padding:0;background:transparent;border:0;display:block}.scene-expanded .studio-footer>#saveStatus,.scene-expanded .studio-footer>.engine-status{display:none}.scene-expanded .credit{box-shadow:0 3px 15px #14211b20}.scene-expanded .play-btn{min-width:88px;font-size:10px;min-height:34px;padding:9px 12px}
@media(max-width:920px){.scene-expanded .stage-heading{top:110px}.scene-expanded .stage-heading h1{font-size:27px}}
@media(max-width:600px){.scene-expanded .stage-toolbar{left:16px;right:16px;top:16px;max-width:none;justify-content:space-between;gap:10px}.scene-expanded .stage-toolbar .segmented{order:3;margin-left:auto}.scene-expanded .stage-heading{left:21px;top:120px}.scene-expanded .stage-heading h1{font-size:25px}.scene-expanded .stage-heading p{display:none}.scene-expanded .studio-footer{left:12px;right:12px;bottom:12px}.scene-expanded .credit{width:fit-content;max-width:100%}.scene-expanded .view-tools{bottom:75px}}
/* One aligned row of view controls, floating over the full 3D viewport. */
.view-tools{display:grid;grid-template-columns:1.2fr .8fr 1.2fr .7fr 40px;align-items:center;gap:4px;width:min(430px,calc(100% - 24px));left:50%;right:auto;bottom:12px;transform:translateX(-50%);padding:5px;border-radius:8px;background:#f2f2e9f7;box-shadow:0 4px 18px #23342520}
.view-tools button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:36px;padding:0 6px;font-size:11px;line-height:1;border-radius:4px}
.view-tools #resetViewBtn{font-size:19px;border-left:1px solid #c9cfc1;border-radius:0 4px 4px 0;color:#496047}
.stage-bottom{bottom:72px}
.scene-expanded .view-tools{bottom:14px}
@media(max-width:1200px){.scene-expanded .view-tools{left:auto;right:18px;transform:none}}
@media(max-width:760px){.view-tools button{height:40px}.scene-expanded .view-tools{left:50%;right:auto;bottom:78px;transform:translateX(-50%)}}
@media(max-width:350px){.view-tools button{font-size:10px}}
#sceneCanvas.is-panning,#sceneCanvas.is-panning:active{cursor:move}
/* Author, year, version and help are plain text beside the studio caption. */
.brand-caption{margin-right:0}
.header-credit{display:flex;align-items:center;gap:8px;flex-shrink:0;color:#a9bba7;font-size:10px;white-space:nowrap}
.header-credit a{text-decoration:none}.header-credit a:hover{text-decoration:underline;text-underline-offset:3px}
.header-credit>span[aria-hidden]{color:#607963}
.header-credit #appVersion{font:9px Consolas,monospace;color:#c5d4bc}
.header-credit button{padding:4px 0;font-size:9px;color:#b9cbb2;text-decoration:underline;text-underline-offset:3px}
.studio-footer{height:30px;min-height:30px}.workspace{height:calc(100dvh - 176px)}
.scene-expanded .workspace{height:100dvh}.scene-expanded .studio-footer{display:none}
.scene-expanded .view-tools{left:50%;right:auto;bottom:14px;transform:translateX(-50%)}
@media(max-width:1100px) and (min-width:601px){.topbar{gap:12px}.header-actions{gap:12px}.header-actions .quiet-btn:not(.help-button) span{display:none}.header-credit{gap:6px;font-size:9px}}
@media(max-width:920px){.workspace{height:auto}}
@media(max-width:600px){.brand-caption{display:block;margin-left:auto;font-size:7px;width:89px;min-width:0;letter-spacing:1.2px}.header-credit{order:2;width:100%;gap:7px;font-size:9px}.header-actions{order:3}.studio-footer{height:auto;min-height:34px;flex-direction:row;padding:10px 16px}.workspace{height:auto}.scene-expanded .workspace{height:100dvh}}

/* Compact language control beside project actions. */
#languageSelect{width:100px;min-width:0;padding:7px 20px 7px 8px;font-size:10px;color:#dce5d4;background-color:#233c2b;border:1px solid #5d7459;border-radius:5px;cursor:pointer}
#languageSelect option{background:#233c2b;color:#e7eddf}.credits-release{font-size:13px;color:#edb487}
@media(max-width:1100px){#languageSelect{width:86px}.header-actions{gap:8px}}
@media(max-width:600px){#languageSelect{width:95px}.header-actions{flex-wrap:wrap}.header-credit{flex-wrap:wrap;white-space:normal}}

/* Identify the active portrait among the two demonstrations. */
.source-card{background:#19261d;border-color:#405641}.source-card .mini-volume{opacity:.55}.source-card.selected{background:#293a2c;border-color:#9ab38e}.source-card.selected .mini-volume{opacity:1}.source-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Keep project commands above the viewport and playback beside its timeline. */
.topbar{height:64px;padding:0 20px;gap:16px}.brand>span{font-size:27px}.brand>svg{width:30px;height:34px}
.timeline{padding:15px 25px}.timeline .transport{height:34px;min-height:34px;padding:0;margin:0 0 14px;gap:12px;background:none;border:0}
.timeline .transport-play{min-width:0;gap:5px}.timeline .play-btn{min-width:88px;padding:8px 11px;min-height:34px;font-size:11px}
.timeline .passage-counter{padding-left:12px;gap:6px}.timeline .passage-counter strong{font-size:19px}.timeline .passage-counter>span{font-size:9px;white-space:nowrap}
.timeline .speed-control{gap:3px;letter-spacing:.5px}.timeline .speed-control select{padding:5px 2px}.timeline .transport-right{min-width:0;font-size:8px}.timeline .transport-right span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline #showAllBtn{margin-left:auto;white-space:nowrap;flex-shrink:0;font-size:10px}.timeline .current-passage{margin:13px 0 10px}
@media(min-width:921px){.workspace{height:calc(100dvh - 94px);min-height:440px;grid-template-rows:minmax(260px,1fr) 184px}}
@media(max-width:1500px){.timeline .transport-right{display:none}}
@media(min-width:601px) and (max-width:1100px){.topbar{gap:11px;padding:0 16px}.header-credit{gap:5px;font-size:9px}.header-actions{gap:10px}.brand-caption{display:none}}
@media(max-width:920px){.timeline{padding:15px 18px}.timeline .transport{gap:8px;flex-wrap:wrap;height:auto;min-height:34px}.timeline .speed-control{font-size:0;margin-left:auto}.timeline .speed-control select{font-size:9px}.timeline .passage-counter{padding-left:8px}.timeline .passage-counter strong{font-size:16px}.timeline .passage-counter>span{font-size:8px}.timeline .transport-play{gap:2px}.timeline .play-btn{min-width:72px;gap:5px}.timeline .icon-btn{width:25px}.timeline #showAllBtn{font-size:9px}}
@media(max-width:600px){.topbar{height:auto;min-height:104px;padding:10px 14px;gap:8px}.brand-caption{display:block;font-size:6px;width:80px;min-width:0;line-height:1.5}.brand>span{font-size:25px}.brand>svg{width:27px;height:29px}.header-credit{width:auto;order:3;gap:6px;font-size:8px;margin:0}.header-credit button{font-size:8px}.header-actions{order:2;width:100%;gap:10px;flex-wrap:nowrap;justify-content:space-between}.header-actions .quiet-btn span{display:inline}.header-actions .quiet-btn,.header-actions .accent-btn{font-size:10px;min-height:30px;padding-top:5px;padding-bottom:5px}#languageSelect{width:90px;padding-top:5px;padding-bottom:5px}.timeline{padding:14px 16px}.timeline .transport{gap:6px}.timeline .play-btn{min-width:68px;padding:8px}.timeline .speed-control{margin-left:auto}.timeline #showAllBtn{margin-left:0}.timeline .passage-counter{gap:4px}.timeline .passage-counter>span{max-width:52px;white-space:normal}.timeline .strip-caption{gap:10px}}

@media(min-width:921px) and (max-width:1200px){.timeline{padding-left:16px;padding-right:16px}.timeline .transport{gap:7px}.timeline .transport-play{gap:2px}.timeline .play-btn{min-width:68px;padding:8px;gap:4px}.timeline .icon-btn{width:25px}.timeline .passage-counter{padding-left:7px}.timeline .passage-counter strong{font-size:16px}.timeline .passage-counter>span{display:none}.timeline .speed-control{font-size:0}.timeline .speed-control select{font-size:9px}.timeline #showAllBtn{font-size:9px}}
@media(min-width:601px) and (max-width:760px){.topbar{height:auto;min-height:72px;padding:8px 16px;flex-wrap:wrap;gap:7px 12px}.header-credit{order:3;width:100%;font-size:8px}.header-actions{width:auto;order:2;flex-wrap:nowrap}.brand>span{font-size:25px}}

/* A growing portrait library occupies a single button in the workspace. */
.demos-trigger{justify-content:flex-start;gap:10px;margin-bottom:12px;font-size:12px;min-height:46px}.demos-trigger>span:first-child{color:var(--accent);font-size:23px}.demos-trigger>span:last-child{margin-left:2px;color:var(--accent)}.demo-count{margin-left:auto;font:10px Consolas,monospace;background:#2a3e2d;border-radius:10px;padding:3px 7px;color:#c8dabe}
#demosDialog{max-width:690px}.demo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}.demo-item{margin:0;padding:20px 16px;align-items:flex-start;min-height:142px;gap:13px}.demo-item .mini-volume{margin-top:3px}.demo-item-content{display:flex;flex-direction:column;gap:9px;min-width:0}.demo-item strong{font-size:15px;margin:0;line-height:1.4}.demo-item small{font-size:10px;line-height:1.6}.demo-item .demo-passages{font:10px Consolas,monospace;color:#b3c7ac}.demo-selected{align-self:flex-start;border:1px solid #6e8b68;border-radius:3px;padding:3px 6px;color:var(--mint);font-size:9px}.demo-load-error{color:#f1b395!important;background:#422d23;padding:10px;border-radius:4px}.demo-load-status{color:var(--mint)!important}
@media(max-width:600px){.demo-list{grid-template-columns:1fr;gap:10px;margin:18px 0}.demo-item{min-height:120px;padding:15px}.demo-item strong{font-size:14px}}

/* Three display modes remain grouped above the full-size canvas. */
.stage-toolbar{max-width:calc(100% - 32px);flex-wrap:wrap;justify-content:flex-end}.stage-toolbar .segmented{flex-shrink:0}.segmented button{white-space:nowrap}
@media(min-width:921px) and (max-width:1300px){.stage-heading{top:76px}}
@media(max-width:600px){.stage-toolbar{gap:6px;left:12px;right:12px;max-width:none}.segmented button{padding:7px 8px}.stage-toolbar .window-view-btn{padding:7px 8px;font-size:9px}.stage-toolbar .window-view-btn span{display:none}.stage-toolbar .window-view-btn svg{width:17px;height:17px}.scene-expanded .stage-toolbar .window-view-btn span{display:inline}}

/* Personal tools use the existing footer, without reducing the 3D viewport. */
.studio-footer #saveStatus{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-entry{display:flex;align-items:center;gap:7px;margin:0;flex-shrink:0}.command-entry label{font-size:9px;color:#91a698}.command-entry input{width:96px;min-width:0;height:22px;padding:2px 7px;border:1px solid #405545;border-radius:4px;background:#18251c;color:#dce6d4;font:11px Consolas,monospace}.command-entry input:focus{border-color:#9ab38e}
#personalDialog{max-width:560px}.personal-options{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.personal-options h3{font-size:13px;color:var(--accent);font-weight:500}.personal-options .check-label{font-size:12px;gap:10px}.personal-options p{margin:8px 0}.personal-options .signature-preview{width:fit-content;background:#edece4;color:#40513e;padding:9px 14px;border-radius:4px;font-size:12px}
@media(max-width:600px){.studio-footer{gap:10px}.command-entry{gap:5px}.command-entry label{font-size:8px}.command-entry input{width:78px}}

/* 2.0 — one collapsible workshop column, inspired by StringArt 2D. */
.workspace{display:grid;grid-template-columns:292px minmax(0,1fr);grid-template-rows:minmax(280px,1fr) 184px;height:calc(100dvh - 94px);min-height:500px}
.source-panel{grid-column:1;grid-row:1/3;overflow:auto;padding:18px 18px 28px;border-right:1px solid var(--line)}
.source-panel .panel-heading{margin-bottom:14px}.source-panel .panel-heading h2{font-size:15px}.panel-close{font-size:24px;color:var(--muted);padding:0 3px;line-height:1}
.stage{grid-column:2;grid-row:1;min-width:0;min-height:0;height:auto}.timeline{grid-column:2;grid-row:2}.guide-trigger{justify-content:space-between;margin-bottom:12px;border-color:#72866c;background:#27362a;color:#d6e4ce;font-size:12px}
.source-panel .settings{border-top:1px solid var(--line);margin:16px 0 0;padding:0 0 16px}.source-panel .settings>summary{padding:16px 0;font-size:12px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.source-panel .settings>summary:after{content:'+';color:var(--accent);font-size:17px}.source-panel .settings[open]>summary:after{content:'−'}.source-panel .range-label{font-size:10px;margin-top:17px}.source-panel .check-label{font-size:10px;line-height:1.7}.source-panel .hint{font-size:9px;line-height:1.7}.source-panel .source-note{margin-top:0}.source-panel .model-info{margin:16px 0}
.demo-library .demo-count{margin-left:auto;margin-right:10px}.source-panel .demo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.source-panel .demo-item{padding:9px;min-height:64px;gap:0;border-radius:5px;align-items:center}.source-panel .demo-item .mini-volume,.source-panel .demo-item small:not(.demo-passages),.source-panel .demo-selected{display:none}.source-panel .demo-item-content{gap:4px;width:100%}.source-panel .demo-item strong{font-size:11px;line-height:1.35}.source-panel .demo-item .demo-passages{font-size:8px}.source-panel .demo-item.selected{border-color:var(--mint);background:#2c4030}.appearance-settings .inspector-section{margin-top:17px}.source-panel #calculateBtn{margin-top:10px}
body.settings-hidden .workspace{grid-template-columns:minmax(0,1fr)}body.settings-hidden .source-panel{display:none}body.settings-hidden .stage,body.settings-hidden .timeline{grid-column:1}
.guide-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.guide-stats>div{padding:14px 8px;background:#243526;border-radius:5px}.guide-stats strong{font-size:23px}.guide-stats span{font-size:10px}#guideDialog{max-width:880px}#guideDialog input[type=range]{width:100%}.guide-jump{flex-wrap:wrap}.guide-portions{padding:10px 13px;background:#243526;border-left:2px solid var(--mint)}#settingsStatus{color:var(--accent)}#settingsToggle{white-space:nowrap}
@media(min-width:921px){.stage-heading{top:76px;left:24px}.stage-heading h1{max-width:none}.stage-heading p{max-width:350px}.stage-toolbar{top:16px;bottom:auto;right:16px}}
@media(min-width:601px) and (max-width:920px){.workspace{grid-template-columns:260px minmax(0,1fr);grid-template-rows:minmax(320px,1fr) 184px;min-height:600px;height:calc(100dvh - 102px)}.source-panel{padding:16px 14px}.stage-toolbar{top:12px;left:12px;right:12px;justify-content:flex-end}.stage-toolbar .segmented button{font-size:9px;padding:7px}.stage-heading{top:96px;left:18px}.stage-heading h1{font-size:22px}.stage-heading p{display:none}.view-tools button{font-size:9px}.stage-bottom{font-size:6px}.brand-caption{display:none}.header-actions{gap:10px}}
@media(max-width:600px){.workspace{display:flex;height:auto;min-height:0;flex-direction:column}.source-panel{order:0;max-height:46dvh;overflow:auto;width:100%;border-top:0;border-bottom:1px solid var(--line);padding:12px 16px 20px}.source-panel .panel-heading{margin-bottom:8px}.source-panel .demo-list{grid-template-columns:repeat(3,minmax(0,1fr))}.source-panel .model-info{margin:10px 0}.stage{order:1;height:55dvh;min-height:360px}.timeline{order:2;min-height:184px}.header-actions{gap:8px}.header-actions #settingsToggle{font-size:10px}.topbar .brand-caption{display:none}body.settings-hidden .stage{height:calc(100dvh - 310px);min-height:360px}.guide-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-stats strong{font-size:21px}.stage-heading{top:80px}.stage-toolbar{top:12px}.source-panel .settings>summary{padding:13px 0}.studio-footer{flex-direction:row;min-height:30px;height:30px}}
body.scene-expanded .workspace{display:block;height:100dvh;min-height:0}body.scene-expanded .source-panel{display:none}body.scene-expanded .stage{height:100dvh;min-height:0}.scene-expanded .stage-heading{top:76px}

.source-panel .settings>summary{margin:0;min-height:46px;line-height:1.4}.source-panel .settings>summary>span:first-child{font:inherit;letter-spacing:normal;color:inherit}.source-panel .demo-list{max-height:210px;overflow:auto;padding-right:2px}.source-panel .model-info{padding:10px 0;margin:10px 0}.source-panel .model-info strong{margin:6px 0}.source-panel .settings{margin-top:10px}.source-panel .demo-library{padding-bottom:10px}

@media(max-width:600px){.guide-jump{gap:6px}.guide-jump input{width:72px}.guide-jump .accent-btn{padding:9px 12px}.guide-jump .outline-btn{padding:9px 12px}}

/* 2.0.1 — compact demos on both sides of the canvas, as in StringArt 2D. */
.source-panel{display:flex;flex-direction:column;overflow:hidden;padding:0}.settings-scroll{flex:1;min-height:0;overflow:auto;padding:18px 18px 24px;scrollbar-width:thin;scrollbar-color:#4e6050 transparent}.sidebar-actions{flex-shrink:0;padding:12px 18px;background:var(--panel);border-top:1px solid var(--line)}.sidebar-actions .guide-trigger{margin:0;min-height:40px}.stage-demo-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;display:flex;flex-direction:column;gap:6px;width:104px;max-height:calc(100% - 150px);overflow:auto;scrollbar-width:thin;scrollbar-color:#98a88f transparent;padding:2px}.demos-left{left:9px}.demos-right{right:9px}.stage-demo-nav .source-card{display:block;margin:0;min-height:30px;padding:8px 5px;border:1px solid #bfc9b7;border-radius:16px;background:#eeefe6ef;color:#4e644a;box-shadow:0 2px 6px #2334250b;text-align:center}.stage-demo-nav .mini-volume,.stage-demo-nav small,.stage-demo-nav .demo-selected{display:none}.stage-demo-nav .demo-item-content{display:block}.stage-demo-nav strong{display:block;margin:0;font-size:10px;font-weight:500;line-height:1.25}.stage-demo-nav .selected{background:#556b56;border-color:#556b56;color:#edf0e5}.stage-demo-nav button:focus-visible{outline:2px solid #556b56;outline-offset:0}.stage-heading{left:128px}.stage-bottom{left:125px;right:125px}.stage-bottom>span:first-child{font-size:6px}.stage-bottom>span:nth-child(2){display:none}
.scene-expanded .stage-demo-nav{display:none}.scene-expanded .stage-heading{left:28px}
@media(min-width:601px) and (max-width:1050px){.stage-demo-nav{width:78px;gap:5px}.stage-demo-nav .source-card{padding:7px 3px}.stage-demo-nav strong{font-size:9px}.stage-heading{left:99px}.stage-heading h1{font-size:22px}.stage-heading p{display:none}.stage-bottom{left:99px;right:99px}.stage-toolbar .window-view-btn span{display:none}.stage-toolbar .window-view-btn{padding:7px}.segmented button{font-size:8px;padding:7px 6px}}
@media(max-width:600px){.source-panel{max-height:46dvh;padding:0}.settings-scroll{padding:14px 16px 18px}.sidebar-actions{padding:10px 16px}.stage{height:calc(55dvh + 100px);min-height:460px}#sceneCanvas{height:calc(100% - 100px)}.stage-demo-nav{top:auto;transform:none;left:12px;right:12px;width:auto;max-height:38px;flex-direction:row;gap:6px;overflow-x:auto;overflow-y:hidden;justify-content:flex-start}.demos-left{bottom:53px}.demos-right{bottom:11px}.stage-demo-nav .source-card{width:auto;flex:0 0 auto;min-width:78px;min-height:30px;padding:8px 10px}.stage-demo-nav strong{font-size:10px}.view-tools{bottom:112px}.stage-bottom{bottom:172px;left:20px;right:20px}.stage-heading{left:22px}.scene-expanded #sceneCanvas{height:100%}.scene-expanded .view-tools{bottom:78px}.scene-expanded .stage-heading{left:21px}}
