@font-face{font-family:sptgt;src:url(assets/SPTGTSans-Regular.otf)}@font-face{font-family:sptgt;src:url(assets/SPTGTSans-SemiBold.otf);font-weight:600}*{box-sizing:border-box}body{margin:0;color:#153e51;background:#f2f5f5;font:16px sptgt,Arial}header{display:flex;align-items:center;gap:16px;padding:18px max(24px,calc((100vw - 1480px)/2));background:#fff;border-bottom:1px solid #d9e3e6}header img{width:42px;height:48px}header div{flex:1}small{display:block;font-size:12px;margin-top:4px}button,input,select{font:inherit;color:inherit}button,select{background:#fff;border:1px solid #bacdd4;border-radius:8px;padding:10px 12px;cursor:pointer}button:hover{background:#e6f2f5}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e55742;outline-offset:2px}button[aria-pressed=true],button.active{background:#17475d;color:white;border-color:#17475d}main{max-width:1480px;margin:auto;padding:28px 24px}.eyebrow{font-size:12px;letter-spacing:.13em;color:#617d89}h1{font-size:clamp(25px,3vw,38px);font-weight:600;max-width:1000px;margin:10px 0}#subtitle{color:#56717e;margin:12px 0 24px}.modes{display:flex;gap:8px;margin-bottom:18px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px;align-items:start}.model,aside{border:1px solid #d6e1e4;background:white;border-radius:14px;overflow:hidden}.systembar,.viewbar,.controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px}.systembar{border-bottom:1px solid #dce6e8}.systembar label{flex:1;min-width:180px;font-size:12px}.systembar select{display:block;width:100%;margin-top:5px;font-size:15px}.stage{height:clamp(350px,49vh,650px);position:relative;background:#f4f7f9}canvas{width:100%;height:100%;display:block;touch-action:none}.stage-note{position:absolute;left:18px;bottom:12px;font-size:12px;pointer-events:none;color:#617b87}#loading{position:absolute;inset:35% 10%;text-align:center;background:#fff;padding:20px;border-radius:10px}.viewbar{border-top:1px solid #dce6e8}.viewbar button{padding:8px;font-size:13px}.inspection{border-top:1px solid #dce6e8;padding:15px}.inspection p,footer{font-size:13px;line-height:1.6;color:#617782}summary{cursor:pointer}.controls label{display:flex;align-items:center;gap:6px;font-size:14px}.controls input[type=range]{width:110px}aside{padding:20px}.search span{display:block;font-size:13px;margin-bottom:8px}.search input{width:100%;padding:12px;border:1px solid #bacdd4;border-radius:8px;background:#f8fafb}.results{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;max-height:190px;overflow:auto}.results button{font-size:13px;padding:7px 9px}article{border-top:1px solid #dce6e8;margin-top:20px;padding-top:12px}article h2{font-size:28px;margin:12px 0 6px}article h3{font-size:19px;color:#64808d;margin:0}article p{line-height:1.6}blockquote{margin:20px 0;padding:12px 15px;border-left:3px solid #e65344;background:#f5f8f9;line-height:1.6}blockquote small{font-size:14px;color:#617782}footer{max-width:950px;margin-top:22px}dialog{width:min(720px,94vw);max-height:85vh;border:1px solid #bacdd4;border-radius:14px;color:inherit;padding:24px}dialog::backdrop{background:#123c50aa}.entry{padding:14px 0;border-bottom:1px solid #dce6e8}.entry:target{background:#e6f2f5}#exercise{background:#eaf3f6;padding:14px;border-radius:8px;margin-bottom:18px}#exercise p{line-height:1.5}.projector{font-size:21px}.projector .workspace{grid-template-columns:minmax(0,1fr) 430px}.projector .stage{height:58vh}[hidden]{display:none!important}@media(max-width:850px){header{padding:12px;gap:10px}header small{max-width:180px;font-size:10px}header button{padding:9px;font-size:12px}main{padding:18px 12px}.workspace,.projector .workspace{grid-template-columns:1fr;gap:12px}.stage,.projector .stage{height:42vh;min-height:280px;max-height:440px}.systembar{padding:10px;gap:8px}.systembar label{min-width:120px;max-width:100%}.systembar select{font-size:13px;padding:9px 5px}aside{padding:16px}.results{max-height:110px}article h2{font-size:25px}h1{font-size:27px}.viewbar{gap:5px}.heading p{line-height:1.5}.modes button{flex:1;padding:10px 5px;font-size:14px}}
/* Model loading: a calm brand panel, with measured download progress. */
#loading.loader{inset:0;z-index:2;margin:0;border-radius:0;padding:24px;display:grid;place-items:center;text-align:left;color:#f1f7fa;background:radial-gradient(ellipse at 80% 0%,#22617c88,transparent 70%),#123d52;overflow:auto}
.loader-content{width:min(100%,430px)}.loader-brand{display:flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.18em;color:#c3dce7}.loader-brand img{width:42px;filter:brightness(0) invert(1)}.loader-art{height:85px;position:relative;margin:12px 0 18px;background:linear-gradient(90deg,transparent 49.5%,#afd8e51c 50%,transparent 50.5%);border-bottom:1px solid #b3d9e533}.loader-wheel{position:absolute;bottom:9px;width:47px;height:47px;border:2px solid #a6d7e7;border-radius:50%;background:radial-gradient(circle,#b5deeb 0 4px,transparent 5px 15px,#9fcbd52b 16px 20px,transparent 21px);box-shadow:0 0 24px #8ec9dd12}.loader-wheel.left{left:18%}.loader-wheel.right{right:18%}.loader-frame{position:absolute;left:12%;right:12%;bottom:42px;height:13px;border:1px solid #a6d7e7;background:#255d73;border-radius:3px}.loader-rail{position:absolute;bottom:6px;left:4%;right:4%;height:2px;background:#aacbd9}.loader-kicker{font-size:10px;letter-spacing:.16em;color:#add0df;margin:0 0 10px}#loadTitle{font-size:clamp(21px,2.4vw,29px);line-height:1.2;font-weight:600;margin:0 0 22px}.load-status{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px;color:#d2e4ed;min-height:20px}#loadAmount{white-space:nowrap;font-variant-numeric:tabular-nums}#loadProgress{display:block;width:100%;height:4px;margin:10px 0 14px;border:0;border-radius:4px;overflow:hidden;accent-color:#6bc9ed;background:#ffffff20}#loadProgress::-webkit-progress-bar{background:#ffffff20}#loadProgress::-webkit-progress-value{background:#6bc9ed}#loadProgress::-moz-progress-bar{background:#6bc9ed}#loadProgress:not([value]){background:linear-gradient(90deg,#ffffff20 20%,#6bc9ed 50%,#ffffff20 80%);background-size:200% 100%;animation:load-flow 2s ease-in-out infinite}#loadHint{color:#a9c6d4;font-size:12px;line-height:1.5;margin:0}.loader.error #loadTitle{color:#fff}.loader.error #retryLoad{margin-top:16px;border-color:#a6d7e7;background:#eaf5fa;color:#153e51}@keyframes load-flow{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){#loadProgress:not([value]){animation:none}}@media(max-width:850px){#loading.loader{padding:20px}.loader-art{height:60px;margin:6px 0 12px}.loader-brand img{width:32px}.loader-brand{font-size:10px}#loadTitle{font-size:22px;margin-bottom:15px}.loader-kicker{font-size:9px}}
/* The model is the working surface; the long reading card remains alongside/below. */
.stage{height:clamp(480px,63vh,760px);--quick-height:80px}.stage-tools{position:absolute;z-index:2;top:14px;left:14px;right:14px;display:flex;gap:7px;pointer-events:none}.stage-tools button{min-height:44px;background:#ffffffee;box-shadow:0 3px 12px #173d5010;pointer-events:auto}.stage-tools #openPicker{margin-right:auto;padding-inline:15px}.stage-tools #overlayZoomIn,.stage-tools #overlayZoomOut{width:44px;font-size:23px;padding:3px}.quick-card{position:absolute;z-index:2;bottom:16px;left:16px;width:min(410px,calc(100% - 32px));background:#fffffff5;backdrop-filter:blur(14px);border:1px solid #d4e3e9;border-radius:16px;box-shadow:0 12px 36px #153e5124;overflow:hidden;padding:16px;transition:box-shadow .2s}.quick-heading{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}.quick-label{font-size:9px;letter-spacing:.14em;color:#65838e}.quick-card h2{font-size:23px;line-height:1.15;font-weight:600;margin:6px 0 3px;overflow-wrap:anywhere}.quick-translation{font-size:14px;color:#617b88;margin:0}.quick-buttons{display:flex;gap:3px}.quick-buttons button{border:0;min-width:36px;min-height:40px;background:transparent;padding:4px;font-size:23px;line-height:1;color:#617b88}.quick-function{font-size:14px;line-height:1.4;margin:12px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.quick-actions{display:flex;gap:8px;margin-top:12px}.quick-actions button{min-height:44px;font-size:13px;border-radius:9px;flex:1}.quick-actions button:first-child{background:#17475d;color:white;border-color:#17475d}.quick-actions button:last-child{border-color:transparent;background:#edf4f6}.quick-card.compact .quick-function{display:none}.quick-card.compact .quick-actions{display:none}.quick-card.compact h2{font-size:19px}.quick-intro{display:flex;align-items:center;gap:13px}.quick-intro p{font-size:14px;margin:0;line-height:1.4}.quick-intro small{font-size:12px;color:#67818d;margin-top:3px}.intro-dot{flex-shrink:0;width:12px;height:12px;border-radius:50%;background:#0084d5;box-shadow:0 0 0 7px #0084d511}.picker-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.picker-head h2{margin:0 0 20px;font-size:23px}.picker-head button{min-width:44px;min-height:44px;font-size:22px;padding:4px}#nodePicker .results{max-height:48vh;margin-top:18px;gap:8px}#nodePicker .results button{padding:12px;min-height:44px;font-size:15px}#card{scroll-margin-top:16px;margin-top:0;border-top:0;outline-offset:5px}.model{min-width:0}.stage #exercise{position:absolute;z-index:2;top:68px;left:16px;right:16px;margin:0;padding:12px 16px;background:#ffffffed;box-shadow:0 4px 20px #153e5115;border:1px solid #d6e6ec;border-radius:12px;max-width:410px}.stage #exercise h2{font-size:19px;margin:6px 0}.stage #exercise p{font-size:13px;margin:5px 0}.stage #exercise small{font-size:11px}.stage #exercise button{min-height:44px}#loading.loader{z-index:5}.projector .quick-card{width:min(480px,calc(100% - 32px))}.projector .quick-card h2{font-size:28px}
@media(max-width:850px){
 header{padding:10px 12px}header img{width:34px;height:34px}header small{display:none}header strong{font-size:15px}main{padding:14px 10px}.heading .eyebrow{font-size:9px;margin:0 0 5px}h1{font-size:22px;line-height:1.18;margin:6px 0 10px}#subtitle{display:none}.modes{margin-bottom:10px;gap:5px}.modes button{min-height:42px}.workspace{gap:12px}.systembar{padding:9px;gap:8px}.systembar label{font-size:10px}.systembar select{min-height:40px;margin-top:3px}.stage,.projector .stage{height:clamp(440px,64svh,660px);min-height:440px;max-height:none}.stage canvas{position:absolute;top:52px;left:0;height:calc(100% - var(--quick-height) - 64px);min-height:180px}.quick-card,.projector .quick-card{left:10px;bottom:10px;width:calc(100% - 20px);padding:12px 14px;border-radius:14px}.quick-card h2,.projector .quick-card h2{font-size:21px}.quick-card .quick-buttons button{min-width:40px;min-height:44px}.quick-function{font-size:13px;margin:8px 0}.quick-actions{margin-top:9px}.quick-actions button{font-size:12px;min-height:44px;padding:8px}.quick-translation{font-size:13px}.stage-tools{top:8px;left:10px;right:10px}.stage-tools button{font-size:13px;min-height:40px}.stage-tools #overlayZoomIn,.stage-tools #overlayZoomOut{width:40px}.viewbar{gap:5px;padding:8px}.viewbar button{min-height:40px}.viewbar #zoomOut,.viewbar #zoomIn,.viewbar #zoomValue{display:none}aside{padding:20px}article h2{font-size:26px}.stage #exercise{top:57px;left:10px;right:10px;max-width:none;padding:9px 12px}.stage:has(#exercise:not([hidden])) canvas{top:170px;height:calc(100% - var(--quick-height) - 182px);min-height:130px}.stage:has(#exercise:not([hidden])){min-height:540px}dialog{padding:18px}.quick-card.compact .quick-translation{font-size:12px}}
@media(prefers-reduced-motion:reduce){.quick-card{transition:none}}
@media(max-width:850px){.stage:has(#exercise:not([hidden])) canvas{top:calc(68px + var(--task-height,90px));height:calc(100% - var(--quick-height) - var(--task-height,90px) - 80px);min-height:130px}.stage #exercise h2{font-size:16px;max-width:calc(100% - 75px)}.stage #exercise p:first-of-type{display:none}.stage #exercise #feedback{font-size:12px;line-height:1.3;margin:5px 0 0}.stage #exercise #next{position:absolute;right:10px;top:12px;padding:8px 10px;min-height:44px}.stage #exercise #feedback:empty{display:none}}
.audio-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:6px 10px;margin-top:8px;border-color:#c6dfe9;color:#176188;background:#edf7fb;font-size:12px}.audio-button span{font-size:10px}.audio-button.playing{background:#176188;color:white;border-color:#176188}.quick-card .audio-button{min-height:36px;margin-top:6px}.intro-audio{margin-left:25px}.audio-preview{border-top:1px solid #dce6e8;padding-top:16px;margin-top:16px}.audio-preview strong{display:block;font-size:22px}.audio-preview small{color:#67818d;font-size:11px;margin-top:12px}.audio-status{color:#9b3f31;font-size:12px;line-height:1.4}.audio-status:empty{display:none}.quick-card.compact .audio-button{display:none}@media(max-width:850px){.quick-card .audio-button{min-height:36px;font-size:11px;padding:5px 9px}.quick-card:has(.audio-button) .quick-function{-webkit-line-clamp:1}}
/* Platform finish: quieter chrome, distinct action levels and comfortable targets. */
body{background:#f3f6fa;color:#183e50}header{border-bottom:0;box-shadow:0 1px 0 #183e500d;background:#fff}header strong{letter-spacing:-.025em}main{padding-top:30px}.eyebrow{color:#47849e}.heading h1{letter-spacing:-.035em}.heading #subtitle{color:#78909c}.modes{display:inline-flex;padding:5px;border:1px solid #dce7ed;background:#e8eff4;border-radius:14px;gap:4px}.modes button{border:0;background:transparent;box-shadow:none;border-radius:10px;padding:11px 22px;color:#69808c}.modes button[aria-pressed=true]{background:#fff;color:#153f55;box-shadow:0 2px 7px #234d6420}.modes #glossary{border-left:1px solid #cfdee7;border-radius:0 9px 9px 0}button{transition:background .16s,box-shadow .16s,transform .16s,border-color .16s;min-height:42px;border-color:#d5e3ea;background:#fff;box-shadow:0 1px 2px #183e5008;font-weight:600;border-radius:11px}button:hover{background:#f1f8fc;border-color:#9fc7da;box-shadow:0 3px 10px #1a577d12}button:active{transform:translateY(1px);box-shadow:none}button:disabled{cursor:default;opacity:.45}button:focus-visible{outline:3px solid #0084d566;outline-offset:3px}.model,aside{border-color:#dce7ed;border-radius:20px;box-shadow:0 7px 32px #1e496007}.systembar{background:#fcfdff;border-color:#e4edf2;padding:13px 16px}.systembar label{color:#6a8290}.systembar select{border-color:#dce7ed;border-radius:10px;background:#fff}.stage{background:radial-gradient(ellipse at 50% 40%,#fff,#eff5f8)}.stage-tools button{box-shadow:0 3px 14px #193f5810;border-color:#dce8ef}.scene-back{position:absolute;left:16px;top:68px;z-index:2;min-height:42px;padding:9px 16px;color:#17608a;background:#e8f4fbee;border:1px solid #b7d8e9;box-shadow:0 3px 14px #193f5812}.viewbar{gap:6px;padding:11px 14px;background:#fcfdff;border-color:#e3edf2}.viewbar button{border:0;background:#edf3f7;color:#567584;min-height:38px;padding:8px 13px}.viewbar button:hover{background:#dcecf6;color:#175d86}.viewbar #reset{margin-left:auto;background:transparent;color:#849ba7}.inspection{padding:17px;border-color:#e4edf2}.inspection summary{font-weight:600;font-size:14px;list-style-position:inside;color:#527386}.controls{padding:14px 0 0}.controls input[type=range]{accent-color:#0084d5}.quick-card{border:1px solid #dce9ef;box-shadow:0 10px 32px #25475b1a;border-radius:18px}.quick-label{color:#5593b0}.quick-card h2{letter-spacing:-.025em}.quick-actions button:first-child,.card-actions #isolate{background:#17658e;color:#fff;border-color:#17658e;box-shadow:0 3px 8px #17658e20}.quick-actions button:first-child:hover,.card-actions #isolate:hover{background:#0e7bb0;border-color:#0e7bb0}.quick-actions button:last-child{background:#edf5f9;color:#276682}.quick-buttons button{font-weight:400;box-shadow:none}.quick-buttons button:hover{background:#eef6fa}.quick-heading>div:first-child{min-width:0}.quick-heading h2{overflow-wrap:normal}.quick-buttons{flex-shrink:0}aside{padding:24px}.card-actions{display:grid;gap:9px;margin-top:20px}.card-actions button{width:100%;margin:0;padding:12px 14px;min-height:44px;white-space:normal;line-height:1.3;text-align:left}.card-actions #termLink{background:#edf5f9;border-color:transparent;color:#226687}.card-actions #clearSelection,.card-actions #backToModel{background:transparent;border-color:transparent;box-shadow:none;color:#6b8492;font-size:13px;min-height:36px;padding-block:7px}.card-actions #backToModel{display:none}#card>h2{letter-spacing:-.035em}blockquote{border-left-color:#0084d5;border-radius:0 12px 12px 0;background:#f2f7fa;padding:16px}#card>.audio-button{margin:0;min-height:40px}#card .eyebrow{font-size:10px}#card:focus{outline:2px solid #8ec4df;outline-offset:8px}.platform-footer{display:flex;justify-content:space-between;max-width:none;border-top:1px solid #dfe9ef;padding:18px 2px;color:#94a7b2;font-size:12px}.platform-footer span:first-child{font-weight:600}.audio-preview{border-color:#e6edf2}.audio-button{border-radius:20px;background:#eff8fc;box-shadow:none}.audio-button.playing{background:#17658e}.picker-head h2{letter-spacing:-.025em}#nodePicker{border:0;box-shadow:0 25px 100px #183e5040;border-radius:22px}#nodePicker .results button{border-radius:12px;font-weight:400}.entry button{font-weight:500}.search input{border-radius:12px}.search input:focus{outline-color:#0084d566}.inspection>p{font-size:12px;color:#7d929d}
@media(max-width:850px){main{padding:16px 10px}.modes{display:flex;padding:4px}.modes button{padding:10px 12px}.scene-back{left:10px;top:57px;min-height:36px;font-size:12px;padding:6px 12px}.systembar{padding:10px}.viewbar{padding:9px;gap:4px}.viewbar button{padding:7px 10px;min-height:38px}.quick-card{border-radius:16px}.quick-actions button{padding:9px 8px}.card-actions #backToModel{display:block}aside{padding:22px}.platform-footer{font-size:10px}.quick-heading h2{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){button{transition:none}button:active{transform:none}}
/* Glossary: searchable vocabulary index with progressive disclosure. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#dictionary{padding:0;width:min(820px,94vw);max-height:88svh;border:0;border-radius:24px;box-shadow:0 24px 100px #163b5040;background:#f8fbfd}#dictionary::backdrop{background:#102e426b;backdrop-filter:blur(5px)}.dictionary-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:28px 30px 22px;background:white}.dictionary-top h2{font-size:32px;letter-spacing:-.04em;margin:8px 0}.dictionary-top p:not(.eyebrow){font-size:14px;color:#7a929e;line-height:1.5;margin:0}#closeDictionary{width:44px;height:44px;flex-shrink:0;border:0;background:#eef4f7;box-shadow:none;font-size:26px;font-weight:400}.dictionary-filters{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:1fr 190px;gap:10px;padding:16px 30px 14px;background:#f8fbfdf5;border-top:1px solid #edf3f6;border-bottom:1px solid #e3edf2;backdrop-filter:blur(12px)}.dictionary-search input{width:100%;min-height:46px;padding:12px 16px;border:1px solid #dce7ee;border-radius:12px;background:white;font-size:14px}.dictionary-filters select{width:100%;min-height:46px;font-size:13px}.dictionary-filters #dictionaryCount{grid-column:1/-1;color:#8499a5;font-size:11px;letter-spacing:.04em}#entries{padding:8px 30px 24px}.dictionary-entry{margin:8px 0;background:white;border:1px solid #e0eaf0;border-radius:14px;overflow:hidden}.dictionary-entry summary{list-style:none;display:flex;align-items:center;gap:14px;padding:16px;min-height:80px}.dictionary-entry summary::-webkit-details-marker{display:none}.term-initial{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;background:#eef6fa;color:#3c88ac;font-size:21px;font-weight:600}.term-names{display:grid;gap:5px;flex:1;min-width:0}.term-names strong{font-weight:600;font-size:17px;letter-spacing:-.02em;overflow-wrap:anywhere}.term-names>span{color:#8195a0;font-size:13px}.term-plus{font-size:23px;font-weight:400;color:#6c9bb2}.dictionary-entry[open]{border-color:#add2e6;box-shadow:0 5px 15px #25557308}.dictionary-entry[open] .term-plus{transform:rotate(45deg)}.dictionary-entry[open] .term-initial{background:#17658e;color:white}.term-body{padding:0 20px 20px 72px}.term-body>p{line-height:1.6;font-size:14px;margin:0 0 12px}.term-body blockquote{margin:16px 0}.show-term{display:block;margin-top:16px;min-height:42px;border:0;background:#edf5f9;color:#17658e;font-size:13px}.dictionary-empty{padding:40px 20px;text-align:center;color:#6c8795}.dictionary-empty h3{color:#204e65}.overview-term{margin-top:24px;padding-top:22px;border-top:1px solid #e2ecf1}.overview-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.overview-title h3{margin:0 0 3px;color:#173f53;font-size:25px;letter-spacing:-.03em}.overview-title>div>span{font-size:15px;color:#7894a2}.overview-term>p:not(.eyebrow){font-size:14px}.overview-term blockquote{margin:18px 0 10px}.overview-term blockquote small{font-size:13px}.inspection summary{list-style:none;display:flex;align-items:center;gap:12px}.inspection summary::-webkit-details-marker{display:none}.inspection summary small{font-weight:400;color:#8a9fa9;font-size:11px;margin-top:4px}.inspection-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eaf4f9;color:#3a82a6;font-size:21px}.inspection-chevron{margin-left:auto;font-size:22px;color:#8ca7b5}.inspection[open] .inspection-chevron{transform:rotate(180deg)}.inspection-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.tool-panel{background:#f5f9fc;border:1px solid #e3edf3;border-radius:14px;padding:16px;min-width:0}.tool-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:600;margin-bottom:18px}.tool-heading output{font-size:12px;background:#e5f0f7;color:#28769d;border-radius:8px;padding:5px 8px;min-width:42px;text-align:center}.tool-panel input[type=range]{width:100%;max-width:none;accent-color:#2589bb;height:20px;margin:0;cursor:pointer}.tool-panel input:disabled{cursor:default;opacity:.45}.range-ends{display:flex;justify-content:space-between;color:#91a5b0;font-size:10px;margin-top:7px}.cut-switch{position:relative;display:inline-flex;cursor:pointer}.cut-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0}.cut-switch>span{display:block;width:38px;height:22px;border-radius:20px;background:#cadbe5;transition:background .2s}.cut-switch>span:before{content:'';display:block;width:16px;height:16px;margin:3px;border-radius:50%;background:white;box-shadow:0 1px 4px #2a506324;transition:transform .2s}.cut-switch input:checked+span{background:#2487b6}.cut-switch input:checked+span:before{transform:translateX(16px)}.cut-switch input:focus-visible+span{outline:3px solid #8dcae6;outline-offset:3px}.cut-settings{display:grid;grid-template-columns:auto 58px 1fr;gap:10px;align-items:center}.cut-settings>label{font-size:11px;color:#7895a5}.cut-settings select{padding:6px;min-height:34px;border-radius:8px;font-size:12px;background:white}.tool-panel:has(#cut:not(:checked)) .cut-settings{opacity:.45}.audio-button,.quick-card .audio-button{padding:4px 11px 4px 4px;gap:8px;border:0;border-radius:24px;background:#eff6fa;color:#3e7793;box-shadow:none;font-size:11px;min-height:38px;font-weight:500}.sound-disc{display:grid!important;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:50%;color:#fff;background:#267da7;box-shadow:0 2px 5px #276c8e20}.sound-disc svg{width:16px;height:16px}.stop-icon{display:none;width:9px;height:9px;border-radius:2px;background:currentColor}.audio-button:hover{background:#e3f1f8;box-shadow:none}.audio-button.playing{background:#dceef7;color:#1d678b}.audio-button.playing .sound-disc{background:#174e6c}.audio-button.playing .sound-icon{display:none}.audio-button.playing .stop-icon{display:block}.platform-footer{align-items:center;gap:20px}.platform-footer span:last-child{text-align:right;max-width:70%}
@media(max-width:850px){#dictionary{width:calc(100vw - 20px);max-height:90svh;border-radius:20px}.dictionary-top{padding:22px 20px 18px}.dictionary-top h2{font-size:28px}.dictionary-top p:not(.eyebrow){font-size:12px}.dictionary-filters{padding:14px 16px;grid-template-columns:1fr}.dictionary-filters #dictionaryCount{font-size:10px}#entries{padding:4px 12px 16px}.dictionary-entry summary{padding:13px;gap:11px;min-height:76px}.term-initial{width:35px;height:35px;font-size:18px}.term-names strong{font-size:16px}.term-body{padding:0 16px 18px}.inspection-grid{grid-template-columns:1fr}.tool-panel{padding:14px}.tool-heading{margin-bottom:12px}.cut-settings{grid-template-columns:auto 55px 1fr}.overview-title{align-items:start;flex-wrap:wrap}.platform-footer{font-size:10px;line-height:1.5}.quick-card .audio-button{font-size:11px}.quick-card .sound-disc{width:27px;height:27px}}
/* Keep dialog chrome fixed while only the vocabulary list scrolls. */
#dictionary[open]{display:flex;flex-direction:column;overflow:hidden}.dictionary-top{position:relative;flex-shrink:0;padding-right:90px}.dictionary-top #closeDictionary{position:absolute;right:24px;top:50%;transform:translateY(-50%);margin:0;float:none}.dictionary-filters{position:relative;flex-shrink:0;top:auto}#entries{overflow-y:auto;overscroll-behavior:contain;min-height:0}.intro-audio{display:flex;align-items:center;gap:12px;margin-top:12px}.intro-audio>div{display:grid;gap:4px}.intro-audio strong{font-size:14px;font-weight:500}.intro-audio .audio-button,.overview-title .audio-button{margin-top:0;flex-shrink:0;align-self:center}.overview-title{align-items:center}.ipa{display:flex;align-items:center;gap:8px;font-family:'Segoe UI','Arial',sans-serif;font-size:13px;line-height:1.65;color:#568499;font-weight:400;letter-spacing:.015em;overflow-wrap:anywhere}.ipa small{display:inline-block;margin:0;background:#edf3f6;color:#8aa0ac;font:9px sptgt,Arial;padding:2px 4px;border-radius:4px;letter-spacing:.04em}.term-names{gap:3px}.term-names .ipa{font-size:12px}.quick-card .ipa{font-size:11px;margin-top:4px}.quick-card.compact .ipa{display:none}.overview-title .ipa{margin-top:5px}.dictionary-entry summary{min-height:94px}#card> .ipa{margin-top:10px}
@media(max-width:850px){.dictionary-top{padding-right:72px}.dictionary-top #closeDictionary{right:16px}.intro-audio{margin-left:0;justify-content:space-between}.term-names .ipa{font-size:11px}.term-names strong{font-size:15px}.overview-title{flex-wrap:nowrap}.overview-title .audio-button{font-size:10px}.quick-card .ipa{font-size:10px}}
/* Motion and custom menus. Native selects remain as a state bridge for the viewer. */
.native-bridge{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;clip-path:inset(50%);pointer-events:none}.select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;font-weight:400;font-size:14px;min-height:42px;padding:10px 12px;background:white;border:1px solid #dae7ef;border-radius:11px;gap:12px}.select-trigger:after{content:'';width:6px;height:6px;flex-shrink:0;border-right:1.5px solid #7395a8;border-bottom:1.5px solid #7395a8;transform:rotate(45deg);transition:transform .25s}.select-trigger[aria-expanded=true]{border-color:#92bdd3;box-shadow:0 0 0 3px #4199c414}.select-trigger[aria-expanded=true]:after{transform:rotate(225deg)}.systembar .select-trigger{margin-top:5px}.select-popup{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid #dae7ef;border-radius:14px;background:#fffffffa;box-shadow:0 12px 36px #183e502b;overflow:auto;overscroll-behavior:contain;backdrop-filter:blur(16px);opacity:0;transform:translateY(-5px) scale(.98);transition:opacity .18s,transform .22s cubic-bezier(.22,1,.36,1),display .22s allow-discrete,overlay .22s allow-discrete}.select-popup:popover-open{opacity:1;transform:translateY(0) scale(1)}@starting-style{.select-popup:popover-open{opacity:0;transform:translateY(-5px) scale(.98)}}.select-option{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;box-shadow:none;min-height:40px;padding:10px 12px;border-radius:8px;text-align:left;font-size:13px;font-weight:400;color:#486a7d;background:transparent;gap:10px}.select-option[aria-selected=true]{background:#eaf4fa;color:#17658e;font-weight:600}.select-option[aria-selected=true]:after{content:'✓';font-size:13px}.select-option:focus-visible{outline:0;background:#edf5fa;box-shadow:inset 0 0 0 1px #a3ccdf}.cut-settings .select-trigger{min-height:34px;padding:6px 9px;font-size:12px}.dictionary-filters>.select-trigger{min-height:46px}.dictionary-filters>label .select-trigger{min-height:46px}.modes{position:relative;isolation:isolate}.modes .mode-pill{position:absolute;left:0;top:0;z-index:-1;border-radius:10px;background:white;box-shadow:0 2px 7px #234d6420;transition:transform .38s cubic-bezier(.22,1,.36,1),width .38s cubic-bezier(.22,1,.36,1)}.modes button[aria-pressed=true]{background:transparent;box-shadow:none}.dictionary-entry summary{min-height:82px}.term-body>.ipa{margin:0 0 12px}.dictionary-entry{transition:border-color .25s,box-shadow .25s,background .25s}.term-plus{transition:transform .3s cubic-bezier(.22,1,.36,1)}#entries{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#c6dce7 transparent}.inspection-chevron{transition:transform .3s cubic-bezier(.22,1,.36,1)}#closeDictionary,#closePicker{display:grid;place-items:center;padding:0!important;line-height:0!important;flex-shrink:0}#closeDictionary svg,#closePicker svg{display:block;margin:0;transform:none}#dictionary .dictionary-top #closeDictionary{display:grid;place-items:center;line-height:0;padding:0}.quick-card .quick-function{display:none}.select-trigger:active,.select-option:active{transform:none}.inspection summary{min-height:40px}
@media(max-width:850px){.select-trigger{font-size:12px;min-height:40px}.systembar .select-trigger{padding:9px 10px}.dictionary-filters .select-trigger{font-size:13px}.term-body .ipa{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@supports(animation-timeline:view()){ @media(prefers-reduced-motion:no-preference){.dictionary-entry{animation:term-arrival linear both;animation-timeline:view();animation-range:entry 0% entry 100%}@keyframes term-arrival{from{opacity:.7;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}}}
/* Editorial examples: a quiet quotation rather than a detached note. */
blockquote{position:relative;isolation:isolate;overflow:hidden;border:0!important;border-radius:18px;background:linear-gradient(135deg,#edf5fa,#f6f9fc)!important;padding:26px 22px 20px!important;margin:22px 0 14px;box-shadow:inset 0 0 0 1px #dbe9f16b;font-size:16px;line-height:1.65}
blockquote:before{content:'“';position:absolute;z-index:-1;right:14px;top:-27px;font:110px Georgia,serif;color:#bed9e76b;pointer-events:none}blockquote small{display:block;border-top:1px solid #d5e5ef99;padding-top:10px;margin-top:12px;color:#638094;font-size:13px;line-height:1.55}
#card:focus,#card:focus-visible,canvas:focus,canvas:focus-visible{outline:none!important;box-shadow:none}
button:focus:not(:focus-visible),summary:focus:not(:focus-visible){outline:none}
/* Quiz lives above the scene, so every option remains reachable on a phone. */
#exercise{position:relative;inset:auto;max-width:none;margin:16px;padding:24px;border:1px solid #dbe8ef;border-radius:20px;background:linear-gradient(130deg,#f4f9fc,#fff);box-shadow:none}
#exercise h2{font-size:22px;max-width:none;margin:16px 0 12px}#exercise p:first-of-type{display:block}#exercise p{font-size:15px;line-height:1.55}#exercise #next{position:static;margin-top:12px;min-width:130px;background:#17658e;color:white}#exercise .quiz-top{display:flex;justify-content:space-between;gap:12px;color:#6c8a9d;font-size:12px}.quiz-progress{height:4px;background:#e1edf3;border-radius:8px;overflow:hidden;margin-top:12px}.quiz-progress span{display:block;height:100%;background:#2c92bd;border-radius:inherit;transition:width .6s cubic-bezier(.22,1,.36,1)}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0 10px}.quiz-options button{padding:13px 16px;text-align:left;white-space:normal;min-height:48px;background:#fff;border:1px solid #d6e6ef;border-radius:12px;box-shadow:0 2px 6px #143d5105}.quiz-options button:hover{background:#edf6fb;transform:translateY(-2px)}.quiz-options button.correct{background:#e5f4ed;color:#23724e;border-color:#88c6a7;opacity:1}.quiz-options button.incorrect{background:#fff0ed;color:#a14b3b;border-color:#e6b5a9;opacity:1}.quiz-options button:disabled{cursor:default;transform:none}.quiz-kicker{font-size:10px;letter-spacing:.12em;color:#4885a6}.quiz-review{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin:16px 0}.quiz-review p{border-bottom:1px solid #dfebf0;padding:8px 0}.quiz-review p span{color:#4081a0}.quiz-review small{display:block;color:#78909e;margin-left:28px}.quiz-prompt{font-weight:600;color:#254f66}.quiz-hint{color:#6a8495}
/* IntersectionObserver supplies the same scroll reveal on mobile and desktop. */
.dictionary-entry{animation:none!important}
@media(max-width:850px){#exercise{margin:10px;padding:18px}#exercise h2{font-size:20px}.quiz-options,.quiz-review{grid-template-columns:1fr}#exercise .quiz-prompt{font-size:16px}blockquote{padding:23px 18px 18px!important;font-size:15px}}
/* A single compact view toolbar on phones, with reset as a distinct icon action. */
.viewbar #reset .reset-icon{display:none}
@media(max-width:850px){.viewbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 40px;align-items:center;gap:4px;padding:10px 8px}.viewbar button[data-view]{min-width:0;padding:8px 2px;font-size:11px;min-height:40px;white-space:nowrap;border-radius:10px}.viewbar #reset{display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid #d9e6ee;background:#fff;border-radius:12px;color:#4b7c96;box-shadow:0 2px 5px #153e5106}.viewbar #reset span{display:none}.viewbar #reset .reset-icon{display:block}.viewbar #reset:hover{background:#e9f3f9}}
@media(max-width:360px){.viewbar{grid-template-columns:repeat(4,minmax(0,1fr)) 36px;gap:3px;padding:9px 6px}.viewbar button[data-view]{font-size:10px}.viewbar #reset{width:36px;height:40px}}

/* Question height changes must not make the browser move the viewport anchor. */
.workspace{overflow-anchor:none}


.viewbar{flex-wrap:wrap}.viewbar #focusJoint{color:#17668a;background:#e5f2f8}

.viewbar #focusJoint{color:inherit;background:#fff}.viewbar #focusJoint[aria-pressed="true"]{color:#fff;background:#17668a}.viewbar #focusJoint:hover{background:#e5f2f8;color:#17668a}
/* Shared list motion for the local atlases. */
.select-popup{isolation:isolate;transition:opacity .16s,transform .32s cubic-bezier(.18,1.18,.32,1),display .22s allow-discrete,overlay .22s allow-discrete}
.select-popup::before,#results[role=listbox]::before{content:"";position:absolute;z-index:0;pointer-events:none;inset:0 6px auto;height:var(--row-h,0);transform:translateY(var(--row-y,0));background:#e5f2fa;border-radius:9px;opacity:0}
.select-popup.row-tracking::before,#results.row-tracking::before{opacity:1}
.select-popup .select-option{position:relative;z-index:1}
.select-popup.row-tracking .select-option,.select-popup.row-tracking .select-option:hover{background:transparent}
.select-option[aria-selected=true]::after{color:#17658e}
@starting-style{.select-popup:popover-open{opacity:0;transform:translateY(-6px) scale(.985,.94)}.select-popup[data-direction=above]:popover-open{transform:translateY(6px) scale(.985,.94)}}
#results[role=listbox]{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr}
#nodePicker #results[role=listbox].row-tracking button{position:relative;background:transparent}
#results button strong,#results button small{display:block}#results button small{color:#577789;margin-top:3px}
#nodePicker mark,#entries mark{color:inherit;background:#ffe8ac;padding:0;border-radius:3px}
@media(prefers-reduced-motion:reduce){.select-popup{transition:none!important}}

.term-body .copy-term{display:inline-flex;align-items:center;gap:6px;margin:6px;padding:6px 10px;background:transparent;color:#396377;border:1px solid transparent;border-radius:9px;font-size:12px;box-shadow:none}
.term-body .copy-term:hover,.term-body .copy-term:focus-visible{background:#edf5f9;border-color:#cfdee7}
.term-body .copy-term.copied{color:#207551;background:#e3f4eb}
.copy-term.copied span:first-child{font-size:0}.copy-term.copied span:first-child::after{content:'✓';font-size:14px}
.audio-button.playing .sound-disc{position:relative}
.audio-button.playing .sound-disc::after{content:'';position:absolute;inset:-2px;border-radius:50%;background:conic-gradient(#42a6c9 var(--audio-angle,0deg),#b8d6e5 0);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),black 0);pointer-events:none}
.attempt-meter{display:flex;gap:4px;max-width:380px;margin:12px 0}.attempt-meter i{flex:1;height:8px;border-radius:3px}.attempt-meter .hit{background:#389474}.attempt-meter .miss{background:repeating-linear-gradient(135deg,#e8b695 0 3px,#f7dccb 3px 6px)}
#openPicker kbd{font:inherit;font-size:10px;border:1px solid #cbdce5;border-radius:4px;padding:1px 4px;color:#547181}
@media (pointer:coarse){#openPicker kbd{display:none}}
@media(prefers-reduced-motion:no-preference){.attempt-meter i{transform-origin:left;animation:meter-arrive .28s ease-out both;animation-delay:calc(var(--step)*35ms)}@keyframes meter-arrive{from{transform:scaleX(.1);opacity:.25}}.copy-term.copied span:first-child{animation:copy-arrive .24s ease-out}@keyframes copy-arrive{from{transform:scale(.65)}}}
