:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1f2944;background:#f5f7fc;--blue:#2d4cec;--muted:#65718b;--line:#e0e5f0}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #798ff9;outline-offset:4px}a{color:inherit}.topbar{height:92px;max-width:1512px;margin:auto;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:800;font-size:23px;letter-spacing:-1px}.brand-mark{display:grid;place-items:center;width:35px;height:38px;border-radius:11px;background:var(--blue);color:white;font-size:25px;font-weight:700;box-shadow:0 4px 12px #2d4cec20}.brand-light{font-weight:500}.top-meta{display:flex;align-items:center;gap:22px;font-size:14px}.language-label{color:var(--muted)}.prototype-tag{font-size:11px;letter-spacing:1.1px;background:#e8ecf7;border:1px solid #dde3f1;padding:7px 10px;border-radius:5px;font-weight:700}.workspace{display:grid;grid-template-columns:minmax(280px,330px) minmax(0,1fr);gap:58px;max-width:1512px;padding:46px 5% 26px;margin:auto;min-height:calc(100svh - 92px)}.word-panel{padding-top:8px}.section-label{font-size:12px;font-weight:700;letter-spacing:1.4px;display:flex;align-items:center;gap:8px;color:#6a7791}.tiny-line{width:20px;height:2px;background:var(--blue)}h1,h2,p{margin-top:0}h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1.6px;font-size:36px;line-height:1.2;margin:20px 0 10px;font-weight:700}.intro{font-size:16px;color:var(--muted);margin-bottom:30px}label{display:block;font-size:14px;font-weight:600;margin-bottom:9px}.input-wrap{position:relative}#word-input{width:100%;height:54px;border:1px solid #d8dfeb;border-radius:10px;background:white;padding:0 40px 0 16px;font-size:17px;color:#1f2944}#word-input::placeholder{color:#8c96aa}#word-input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #2d4cec15}#word-input[aria-invalid=true]{border-color:#c34242}#clear-input{position:absolute;right:8px;top:10px;border:0;background:transparent;color:#69768e;font-size:24px;width:32px;height:34px}.primary-button{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:var(--blue);color:white;height:50px;border-radius:10px;font-size:15px;font-weight:600;margin-top:11px;padding:0 17px;box-shadow:0 4px 8px #2d4cec15}.primary-button:hover{background:#233fcf}.primary-button span{font-size:22px;font-weight:400}.input-message{font-size:14px;min-height:20px;line-height:1.5;margin:10px 0 20px;color:#6c768c}.input-message.error{color:#a33535}.vocabulary-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.vocabulary-heading h2{font-size:14px;font-weight:600;margin:0}.vocabulary-heading>span{font-size:12px;color:#7a859c}.word-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.word-chip{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:43px;border:1px solid var(--line);border-radius:8px;background:transparent;color:#46536d;padding:9px 12px;font-size:14px}.word-chip:hover{background:#e9eefc;border-color:#b7c5f8}.word-chip.active{background:#e9edff;border-color:#c0ccfc;color:#2d4cec}.chip-arrow{opacity:.5}.word-chip.active .chip-arrow{opacity:1}.sign-detail{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.sign-detail h2{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:27px;letter-spacing:-.7px;margin:10px 0 5px;line-height:1.2}.sign-detail p{font-size:16px;color:var(--muted);line-height:1.6;margin-bottom:22px}.source-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px}.source-details summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:15px 0;color:#526078;font-weight:500}.source-details summary::-webkit-details-marker{display:none}.source-details summary>span{font-size:22px;font-weight:400}.source-details[open] summary>span{transform:rotate(45deg)}.source-details p{font-size:14px;line-height:1.6;color:var(--muted)}.text-link{display:inline-block;color:var(--blue);font-weight:500;text-decoration:none;margin-bottom:16px}.panel-footnote{font-size:13px;line-height:1.7;color:#8b95a9;margin-top:23px;margin-bottom:0}.stage-panel{min-width:0}.stage{position:relative;border-radius:20px 20px 0 0;background:radial-gradient(ellipse at 50% 37%,#f5f8ff 0%,#e7eefb 45%,#dbe6f8 100%);height:clamp(440px,63vh,690px);min-height:440px;overflow:hidden;isolation:isolate;border:1px solid #dce4f3;border-bottom:0}.stage-topline{position:absolute;top:22px;left:24px;right:22px;display:flex;justify-content:space-between;align-items:center;z-index:2;gap:12px}.view-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#63718c}.view-dot{width:5px;height:5px;background:#768aaa;border-radius:50%}.view-controls{display:flex;gap:3px;background:#ffffff60;padding:4px;border:1px solid #ffffffc0;border-radius:8px}.view-button{border:0;background:transparent;color:#62708b;border-radius:5px;padding:6px 10px;font-size:14px}.view-button.active{background:#fff;color:#344568;box-shadow:0 1px 4px #2438550a}#avatar-canvas{display:block;width:100%;height:100%;outline:none;touch-action:pan-y}.loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;background:#e9f0fcf5;z-index:3;color:#536583}.loading-overlay strong{font-weight:500;font-size:17px}.loading-overlay>span:last-child{font-size:14px;padding:0 24px;text-align:center;max-width:420px;line-height:1.6}.spinner{width:24px;height:24px;border:2px solid #bac8e5;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stage-caption{position:absolute;bottom:26px;left:27px;pointer-events:none;display:flex;flex-direction:column;gap:6px;z-index:2}.stage-caption .section-label{font-size:12px;color:#7584a1;letter-spacing:1.3px}.stage-caption>span:last-child{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#516a93;font-size:25px;font-weight:600;letter-spacing:-.6px}.camera-hint{position:absolute;bottom:30px;right:26px;font-size:12px;color:#8290aa;pointer-events:none}.transport{background:white;border:1px solid #dce4f3;border-top:0;border-radius:0 0 20px 20px;padding:18px 24px 21px}.timeline-row{display:flex;gap:12px;align-items:center;color:#8390a5;font-size:12px;font-variant-numeric:tabular-nums;margin-bottom:16px}.timeline-row>span{min-width:29px}.timeline-row>span:last-child{text-align:right}#timeline{width:100%;height:16px;margin:0;accent-color:var(--blue);cursor:pointer}.transport-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.play-controls{display:flex;align-items:center;gap:11px}.icon-button{border:1px solid #e5e9f2;width:36px;height:36px;background:white;border-radius:50%;font-size:24px;line-height:1;color:#6c7890}.play-button{display:flex;align-items:center;justify-content:center;gap:7px;background:#263b62;color:white;border:0;border-radius:8px;height:38px;min-width:89px;font-size:14px;font-weight:500;padding:0 13px}.play-button:hover{background:#1c2e4e}.speed-control{display:flex;align-items:center;gap:3px;font-size:14px}.speed-control>span{color:#8b95a6;font-size:12px;margin-right:6px}.speed-control button{border:0;padding:7px 8px;border-radius:5px;background:transparent;color:#68758c;font-size:14px}.speed-control button.active{background:#eaf0ff;color:var(--blue);font-weight:600}.loop-button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:#7b879c;font-size:14px;padding:7px;border-radius:6px}.loop-button span{font-size:20px;line-height:1}.loop-button[aria-pressed=true]{color:var(--blue);background:#eaf0ff}.stage-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 5px;color:#8a95a9;font-size:12px}.stage-footer>span:last-child{color:#9b8b72}button{transition:background .15s,color .15s}button:active{transform:translateY(1px)}[hidden]{display:none!important}
@media(min-width:1600px){.stage{height:660px}}@media(max-width:1100px){.workspace{gap:30px;grid-template-columns:285px minmax(0,1fr);padding:32px 4%}.topbar{padding:0 4%}.stage{height:560px}.stage-topline{left:18px;right:18px}.camera-hint{display:none}.speed-control>span{display:none}.transport{padding:16px}.loop-button{font-size:0}.loop-button span{font-size:21px}}
@media(max-width:760px){.topbar{height:74px;padding:0 22px}.language-label{display:none}.prototype-tag{font-size:10px}.brand{font-size:21px}.workspace{display:flex;flex-direction:column;gap:24px;padding:25px 20px}.word-panel{display:contents}.word-panel>.section-label,.intro,.panel-footnote,.sign-detail{display:none}h1{font-size:28px;letter-spacing:-1px;margin:0 0 -7px}#word-form{position:relative;margin-bottom:-15px}#word-form label{font-size:14px}.input-wrap{padding-right:58px}#word-input{height:49px;font-size:16px}#clear-input{right:63px;top:7px}.primary-button{position:absolute;width:49px;height:49px;right:0;top:26px;margin:0;padding:0;justify-content:center;font-size:0}.primary-button span{font-size:25px}.input-message{margin:7px 0 0;min-height:0}.input-message:empty{display:none}.vocabulary-heading{display:none}.word-list{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:-7px}.word-chip{width:auto;min-height:36px;font-size:14px;padding:7px 11px;gap:8px}.chip-arrow{display:none}.stage-panel{order:1}.source-details{order:2;margin-top:-12px}.stage{height:clamp(370px,57svh,550px);min-height:370px;border-radius:16px 16px 0 0}.stage-topline{top:14px;left:15px;right:13px}.view-label{font-size:12px}.view-button{font-size:14px}.view-controls{padding:3px}.stage-caption{left:18px;bottom:20px}.stage-caption>span:last-child{font-size:22px}.stage-caption .section-label{font-size:10px}.transport{border-radius:0 0 16px 16px;padding:13px 15px 16px}.timeline-row{margin-bottom:12px}.stage-footer{font-size:12px;gap:10px;padding:13px 2px}.speed-control button{padding:7px 5px}.play-controls{gap:8px}.play-button{min-width:76px;height:35px}.icon-button{height:33px;width:33px}.loop-button{padding:4px}.source-details p{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spinner{animation:none}}

/* Approved Blender portrait playback. Preserve the full signing frame. */
.stage{background:#65788b;height:clamp(360px,60vh,640px);min-height:0;aspect-ratio:auto;max-height:none}.stage-topline{color:#eef3fb}.view-label{color:#eef3fb}.stage-caption{display:none}#avatar-video{display:block;width:100%;height:100%;object-fit:contain}.loading-overlay{background:#65788bdd}.stage-topline{pointer-events:none}.stage .view-dot{background:#a7d4b7}@media(max-width:760px){.stage{height:auto;min-height:0;aspect-ratio:1}}

/* Sentence controls extend the approved player. */
.catalog-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#e9edf7;margin:0 0 22px}.catalog-switch button{flex:1;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:14px;font-weight:600}.catalog-switch button.active{background:#fff;color:var(--blue);box-shadow:0 1px 4px #24385514}.word-chip{line-height:1.4;overflow-wrap:anywhere}.selection-readout{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.selection-readout>strong{font-size:18px;font-weight:600;color:#263b62;line-height:1.4}.phrase-segments{display:flex;gap:5px;flex-wrap:wrap}.phrase-segments span{padding:5px 9px;border-radius:5px;font-size:14px;background:#f0f3f9;color:#68758c;transition:background .12s,color .12s}.phrase-segments span.active{background:#dfe7ff;color:#233fcf}.prototype-tag{font-size:12px}@media(max-width:760px){.catalog-switch{margin:0 0 -12px;max-width:360px}.selection-readout{margin-bottom:12px}.selection-readout>strong{font-size:17px}.phrase-segments span{font-size:14px}.prototype-tag{font-size:12px}.word-list{max-height:190px;overflow:auto;padding:3px 2px}}

.video-workspace-link{font-size:14px;font-weight:600;color:var(--blue);text-decoration:none;white-space:nowrap}@media(max-width:760px){.top-meta .prototype-tag{display:none}}
/* Keep the expanded desktop vocabulary beside the signing stage. */
@media(min-width:761px){.word-list{max-height:360px;overflow-y:auto;overscroll-behavior:contain;padding:3px 2px}}

/* Keep navigation readable with the alphabet view on narrow screens. */
.topbar{height:auto;min-height:92px;gap:14px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px}.top-meta{flex-wrap:wrap;gap:14px}.top-meta .video-workspace-link{font-size:14px;white-space:nowrap}@media(max-width:760px){.topbar{min-height:74px;padding-top:16px;padding-bottom:16px}}

/* The composer shares the alphabet's continuous skeleton. */
#avatar-canvas{position:absolute;width:100%;height:100%;object-fit:contain;inset:0;margin:auto}.stage{background:#65788b}.loading-overlay{color:#fff}.composer-hint{font-size:13px;color:var(--muted);line-height:1.55;margin:12px 0 0}.phrase-segments{justify-content:flex-start;max-height:160px;overflow:auto;width:100%}.phrase-segments button{border:1px solid transparent;padding:6px 9px;border-radius:6px;font-size:14px;background:#f0f3f9;color:#526078;text-align:left}.phrase-segments button.active{background:#dfe7ff;color:#233fcf;border-color:#b8c8ff}.phrase-segments button.spelled{border-style:dashed;border-color:#b8c1d5}.phrase-segments small{font-size:11px;color:#78859d;margin-left:5px}.new-tag{font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--blue);margin-left:7px}.selection-readout>strong{overflow-wrap:anywhere}.word-chip{gap:4px}.stage-panel{align-self:start;position:sticky;top:20px}@media(max-width:760px){.stage-panel{position:static}.composer-hint{margin-top:9px}.speed-control button{font-size:12px;padding:7px 4px}.transport-row{gap:6px}.word-list{max-height:140px}.play-button{min-width:70px}.play-controls{gap:5px}.stage{aspect-ratio:1}}

.sign-detail h2,#stage-status{overflow-wrap:anywhere}.view-label{min-width:0}

/* Camera inspection stays separate from signing playback. */
.camera-controls{min-width:0;margin:0;padding:12px 20px;border:1px solid #dce4f3;border-bottom:0;background:#f8faff;color:#46536d}
.camera-control-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px}
.camera-control-row label{margin:0}.camera-control-row input{flex:1;min-width:65px;width:100px;accent-color:var(--blue);height:32px}
.camera-control-row button{min-width:36px;min-height:36px;border:1px solid #d8dfeb;border-radius:7px;background:white;color:#344568;padding:6px 10px}
.camera-control-row [data-zoom-in],.camera-control-row [data-zoom-out]{font-size:20px;padding:3px 9px}
.camera-control-row output{min-width:43px;font-variant-numeric:tabular-nums}
.camera-controls p{font-size:14px;line-height:1.5;margin:7px 0 0;color:#65718b}
.camera-controls button:disabled{cursor:default}#avatar-canvas:focus-visible,#letter-avatar:focus-visible{outline:3px solid #aec4ff;outline-offset:-4px}
@media(max-width:760px){.camera-controls{padding:10px 12px}.camera-control-row{gap:6px}.camera-controls p{font-size:14px}}

.angle-control-row{margin-top:9px}.angle-control-row output{min-width:68px}.camera-control-row button[aria-pressed=true]{background:#e9edff;border-color:#aebffa;color:#2d4cec}
