:root{--red:#b50930;--red-dark:#8d0929;--red-light:#fff0f4;--ink:#243445;--muted:#85838b;--line:#e8e2e6;--glass:#ffffffd9;--paper:#faf9fb;--shadow:0 5px 24px #61253b0b;--glass-shadow:inset 0 1px 1px #fff,0 4px 18px #61253b09;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Arial,sans-serif;color-scheme:light;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{opacity:.35;cursor:default}button,a{transition:background .18s,box-shadow .18s,transform .18s}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b5093075;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ui-icon{display:block;width:19px;height:19px;object-fit:contain;flex-shrink:0;pointer-events:none;filter:invert(13%) sepia(82%) saturate(3890%) hue-rotate(333deg) brightness(84%) contrast(105%)}
.header{position:sticky;top:8px;z-index:20;margin:8px 10px 0;min-height:66px;border:1px solid #d0526a;border-bottom:2px solid #cfac71;border-radius:15px;background:#b50930f5;color:#fff;box-shadow:inset 0 1px 1px #ffffff85,inset 0 -1px 1px #73001d70,0 4px 14px #77001c16;backdrop-filter:blur(24px) saturate(165%);-webkit-backdrop-filter:blur(24px) saturate(165%);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:9px 18px}.brand{display:flex;align-items:center;gap:16px;flex:none;color:#fff;text-decoration:none;line-height:1.25}.brand>b{font-size:17px;letter-spacing:1px;font-weight:800}.brand>span{display:block;border-left:1px solid #ffffff45;padding-left:16px;font-size:12px;font-weight:650;letter-spacing:.5px}.brand small{display:block;font-size:9px;letter-spacing:1px;color:#ffe2ea;margin-top:3px;font-weight:500}.view-switch{display:flex;gap:5px;align-items:center;padding:4px;border:1px solid #ffffff30;border-radius:12px;background:#ffffff0d;box-shadow:inset 0 1px 1px #ffffff14}.view-switch button{display:flex;align-items:center;gap:7px;min-height:35px;padding:8px 14px;border:1px solid transparent;background:transparent;border-radius:8px;color:#fff1f4;font-size:12px;font-weight:550;white-space:nowrap}.view-switch .ui-icon,.header-help .ui-icon{filter:brightness(0) invert(1);width:17px;height:17px}.view-switch button:hover{background:#ffffff1a}.view-switch button[aria-pressed=true]{background:#fff;color:var(--red);border-color:#fff;box-shadow:0 2px 8px #68001920,inset 0 1px 0 #fff}.view-switch button[aria-pressed=true] .ui-icon{filter:invert(13%) sepia(82%) saturate(3890%) hue-rotate(333deg) brightness(84%) contrast(105%)}.header-help{border:1px solid #ffffff35;background:#ffffff0c;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;flex-shrink:0}.header-help:hover{background:#ffffff25}
.shell{display:grid;grid-template-columns:218px minmax(0,1fr);max-width:1600px;margin:auto}.sidebar{position:sticky;top:84px;max-height:calc(100vh - 84px);overflow:auto;border-right:1px solid var(--line);padding:26px 15px 20px;align-self:start}.side-title{font-size:10px;letter-spacing:1.3px;color:#98858e;font-weight:650;padding:0 11px 14px}.topic{width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;min-height:42px;padding:9px 11px;margin-bottom:3px;font-size:12px;color:#6f6a74;line-height:1.5}.topic>.ui-icon{width:18px;height:18px;opacity:.65}.topic>.count{margin-left:auto;color:#927d8c;font-size:10px;font-weight:400}.topic:hover{background:#fff}.topic.active{color:var(--red);background:#fff4f7cc;border-color:#ecd5de;box-shadow:inset 0 1px 1px #fff,0 2px 9px #7a173308;font-weight:650}.topic.active>.ui-icon{opacity:1}.side-progress{margin:20px 11px 0;border-top:1px solid var(--line);padding-top:17px;display:grid;grid-template-columns:17px 1fr;align-items:center;gap:6px 7px;color:#9a8f96;font-size:10px}.side-progress .ui-icon{width:15px;height:15px}.side-progress #due-total{grid-column:2;font-size:9px;color:#b4a5ad}main{padding:13px 30px 0;min-width:0}.location-bar{position:sticky;top:83px;z-index:10;background:#faf9fbdf;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);display:flex;align-items:center;gap:16px;border-bottom:1px solid #eee8ec;padding:9px 0 12px;margin-bottom:20px;min-height:55px}.back-navigation{display:flex;align-items:center;justify-content:center;gap:6px;background:#ffffffbb;border:1px solid #e4d8df;box-shadow:var(--glass-shadow);border-radius:9px;padding:8px 11px;font-size:11px;color:#8a5264;min-height:36px;flex-shrink:0}.back-navigation .ui-icon{width:15px;height:15px}.back-navigation:hover{background:#fff1f5}#breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px;line-height:1.5;min-width:0}#breadcrumbs button{border:0;background:transparent;color:#978590;padding:4px 5px;text-align:left;font-size:11px;line-height:1.5}#breadcrumbs button[aria-current=page],#breadcrumbs>span[aria-current]{font-weight:650;color:#8f1637}#breadcrumbs .ui-icon{width:16px;height:16px}#breadcrumbs .crumb-chevron{width:12px;height:12px;opacity:.4}#breadcrumbs button:hover{color:var(--red)}.quick-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 0 22px}.quick-numbers{display:flex;align-items:center;gap:24px;color:#9b8e95;font-size:12px}.quick-numbers b{font-size:22px;font-weight:650;color:#49323f;margin-right:5px;letter-spacing:-.5px}.quick-numbers span+span{border-left:1px solid var(--line);padding-left:24px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;min-height:40px;font-size:12px;font-weight:600;white-space:nowrap}.primary{border:1px solid #a7092d;background:var(--red);color:#fff;box-shadow:inset 0 1px 1px #ffffff50,0 3px 9px #b509301c}.primary .ui-icon{width:16px;height:16px;filter:brightness(0) invert(1)}.primary:hover{background:#a10a2b;box-shadow:inset 0 1px 1px #ffffff40,0 5px 14px #a5093020}.secondary{border:1px solid #e2d4dc;background:#ffffffb8;color:#8e4a60;box-shadow:var(--glass-shadow)}.secondary .ui-icon{width:16px;height:16px}.secondary:hover{background:#fff2f6}.text-button,.quiet{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#9b6276;font-size:11px;padding:7px;line-height:1.5}.text-button .ui-icon{width:17px;height:17px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.workspace-heading h1{font-size:25px;line-height:1.35;letter-spacing:-.6px;font-weight:650;margin:0;color:#382c38}.workspace-heading #results{margin:0;font-size:11px;color:#aaa0a7;white-space:nowrap}.filters{display:flex;gap:9px;align-items:center;margin-bottom:22px}.search{display:flex;align-items:center;gap:9px;flex:1;min-width:0;background:#ffffffb8;border:1px solid #e5dfe4;border-radius:10px;padding:0 12px;box-shadow:var(--glass-shadow);backdrop-filter:blur(16px)}.search .ui-icon{width:17px;height:17px;opacity:.5}.search input{display:block;width:100%;min-width:0;border:0;outline:0!important;background:transparent;padding:12px 0;font-size:12px;color:#493a46}.search:focus-within{border-color:#c75b78;box-shadow:0 0 0 3px #b5093009}.search input::placeholder{color:#b1a6ad}.status-filter select{display:block;min-width:110px;max-width:150px;min-height:42px;border:1px solid #e5dfe4;background:#ffffffb8;color:#8a7682;padding:9px 11px;border-radius:10px;box-shadow:var(--glass-shadow);font-size:11px}.hide-label{display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;color:#8b7481;font-size:11px;min-height:40px;padding:0 5px}.hide-label input{accent-color:var(--red);width:13px;height:13px;margin:0}.hide-label>.ui-icon{width:17px;height:17px;opacity:.65}.filter-reset{width:38px;height:38px;display:grid;place-items:center;border:1px solid #e5dfe4;border-radius:10px;background:#ffffffb8;box-shadow:var(--glass-shadow);flex-shrink:0}.filter-reset .ui-icon{width:16px;height:16px;opacity:.65}.filter-reset:hover{background:#fff1f6}
.map-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.topic-map-card{position:relative;display:flex;align-items:center;gap:14px;min-width:0;text-align:left;padding:22px 18px;border:1px solid #ffffffed;border-bottom-color:#e8dfe5;border-radius:17px;background:#ffffffb8;box-shadow:inset 0 1px 1px #fff,0 4px 18px #58243b06;backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%)}.topic-map-card:hover{background:#fff7fa;transform:translateY(-2px);box-shadow:inset 0 1px 1px #fff,0 8px 24px #7824420d;border-color:#e4c5d0}.category-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border:1px solid #ffffffd9;background:#b5093007;border-radius:13px;box-shadow:inset 0 1px 1px #fff}.category-icon .ui-icon{width:23px;height:23px}.category-copy{flex:1;min-width:0}.category-copy strong{display:block;color:#5b3c4c;font-size:14px;font-weight:600;line-height:1.5}.category-copy small{display:block;font-size:10px;color:#8c6c7f;margin-top:5px}.category-next{width:15px;height:15px;opacity:.45}.semantic-branches{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;position:relative}.semantic-branches:before{content:'';position:absolute;left:50%;top:-22px;bottom:22px;border-left:1px solid #e2c5d0}.semantic-branch{position:relative;min-width:0;border:1px solid #ffffffeb;border-bottom-color:#e7dce3;border-radius:17px;padding:17px;background:#ffffffbc;box-shadow:var(--glass-shadow);backdrop-filter:blur(16px) saturate(140%)}.semantic-branch:before{content:'';position:absolute;top:32px;right:-15px;width:15px;border-top:1px solid #e2c5d0}.semantic-branch:nth-child(even):before{right:auto;left:-15px}.branch-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 16px;width:100%;text-align:left;border:0;background:transparent}.branch-heading h4{font-size:16px;line-height:1.5;letter-spacing:-.2px;font-weight:600;color:#68404f;margin:0}.branch-heading>span{display:flex;gap:7px;align-items:center;font-size:10px;color:#b298a6}.branch-heading>span .ui-icon{width:14px;height:14px;opacity:.5}.node-tree{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:14px}.map-node{position:relative;min-width:0;background:#ffffffe0;border:1px solid #fff;border-bottom-color:#ece4e9;box-shadow:inset 0 1px 1px #fff,0 3px 14px #5f293b07;border-radius:14px;padding:12px}.node-link{display:block;font-size:9px;color:#8c6c7f;line-height:1.5;margin:1px 0 9px;min-height:13px}.vocabulary-picture{display:block;width:100%;border:0;padding:0;overflow:hidden;background:#faf9fa;border-radius:10px;cursor:pointer}.vocabulary-picture img{display:block;width:100%;height:200px;object-fit:contain;background:#faf9fa}.node-word-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:12px}.node-word{border:0;background:transparent;text-align:left;padding:0;font-size:20px;font-weight:650;line-height:1.35;letter-spacing:-.4px;color:#2e2a34;overflow-wrap:anywhere;max-width:100%;min-width:0}.node-word:hover{color:var(--red)}.node-ipa,.ipa{display:block;font-size:12px;line-height:1.8;color:#965b75;margin:5px 0;overflow-wrap:anywhere}.node-meaning,.meaning{display:block;font-size:14px;line-height:1.7;color:#76616e;margin:5px 0 0;overflow-wrap:anywhere}.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;padding:6px;border:1px solid #e7dbe2;border-radius:50%;background:#ffffffc9;box-shadow:var(--glass-shadow);flex-shrink:0}.icon-button>.ui-icon{width:17px;height:17px}.icon-button:hover{background:#fff1f5;border-color:#d8afbf}.icon-button.saved{background:#ffe9f0;border-color:#dfb2c2}.pronunciation.icon-button{width:36px;height:36px;background:#b50930;border:1px solid #a70a2e;box-shadow:inset 0 1px 1px #ffffff66,0 3px 8px #b5093020}.pronunciation .ui-icon{width:18px;height:18px;filter:brightness(0) invert(1)}.pronunciation:hover{background:#9f082b}.pronunciation[aria-busy=true]{background:#80112e;box-shadow:0 0 0 4px #b5093012}.small-node{padding:9px}.small-node .vocabulary-picture img{height:132px}.small-node .node-word{font-size:15px;letter-spacing:-.2px}.small-node .node-word-row{gap:5px;margin-top:10px}.small-node .node-ipa{font-size:10px}.small-node .node-meaning{font-size:12px}.small-node .pronunciation{width:29px;height:29px;padding:5px}.small-node .pronunciation .ui-icon{width:15px;height:15px}.open-branch-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px;background:#b5093005;border:1px solid #ebdce3;border-radius:9px;margin-top:15px;color:#9d536d;font-size:11px;min-height:39px}.open-branch-button .ui-icon{width:14px;height:14px;opacity:.65}.open-branch-button:hover{background:#fff0f5}.branch-panel{min-width:0}.branch-tools{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:18px}.short-note{position:relative;max-width:70%;font-size:12px;color:#9b7a8a}.short-note>summary{display:inline-flex;list-style:none;align-items:center;gap:6px;padding:8px 0;cursor:pointer;font-size:11px;min-height:38px;color:#a27a8d}.short-note>summary .ui-icon{width:16px;height:16px;opacity:.65}.short-note p{font-size:12px;line-height:1.9;color:#927d89;margin:7px 0 2px;max-width:700px}.short-note summary::-webkit-details-marker{display:none}.expanded-tree{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.expanded-tree .map-node{padding:14px}.expanded-tree .vocabulary-picture img{height:205px}.expanded-tree .node-word{font-size:21px}.expanded-tree .node-meaning{font-size:14px}.precise-relations{margin-top:27px}.precise-relations>h4,.word-detail>h3{font-size:12px;font-weight:600;color:#976a7e;display:flex;align-items:center;gap:7px;margin:19px 0 12px}.precise-relations>h4 .ui-icon,.word-detail>h3 .ui-icon{width:16px;height:16px;opacity:.7}.word-relation{position:relative;background:#ffffffbb;border:1px solid #eee5eb;border-radius:13px;padding:18px;margin:10px 0;box-shadow:inset 0 1px 1px #fff,0 3px 14px #60324605}.relation-diagram{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,1fr) minmax(0,1fr);align-items:center;gap:12px;max-width:820px;margin:0 auto}.word-chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;overflow-wrap:anywhere;border:1px solid #ead6df;background:#fff5f8cc;border-radius:8px;padding:7px 10px;text-align:left;font-size:12px;font-weight:550;color:#8c3d58;line-height:1.6;min-width:0}.word-chip:hover{background:#ffe8ef;border-color:#d9a6ba}.relation-link{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:6px;text-align:center;color:#947187;line-height:1.6}.relation-link small{font-size:10px}.relation-link>.ui-icon{width:20px;height:20px;opacity:.5}.relation-extra{font-size:12px;color:#8d7784;margin-top:6px}.relation-extra summary{list-style:none;display:flex;justify-content:end;cursor:pointer}.relation-extra summary .ui-icon{width:15px;height:15px;opacity:.35}.relation-extra summary::-webkit-details-marker{display:none}.relation-extra p{margin:12px 0 0;line-height:1.9;font-size:12px;color:#927b89}.preview-words{display:flex;flex-wrap:wrap;gap:7px}.reveal-meaning{background:#fff3f7;border:1px solid #ecd8e1;border-radius:7px;color:#b08294;padding:7px 10px;font-size:10px;margin-top:9px;min-height:31px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.card{min-width:0;overflow:hidden;border:1px solid #ffffffde;border-bottom-color:#e6dce2;background:#ffffffc9;border-radius:16px;box-shadow:var(--glass-shadow);display:flex;flex-direction:column}.vocab-heading{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #f0e8ed}.vocab-heading>p{flex:1;font-size:10px;color:#927385;line-height:1.6;margin:0}.vocab-heading small{display:block;color:#9d788b;font-size:10px}.vocab-heading .icon-button{width:29px;height:29px}.vocab-heading .icon-button .ui-icon{width:15px;height:15px}.card>.vocabulary-picture{border-radius:0;background:#faf9fa}.card-vocabulary-image{height:190px!important}.card-body{padding:15px;display:flex;flex-direction:column;flex:1}.card-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.word-button{font-size:20px;line-height:1.4;letter-spacing:-.4px;font-weight:650;border:0;background:transparent;padding:0;text-align:left;overflow-wrap:anywhere;max-width:100%;color:#332b35}.card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #f0e7ed;margin-top:17px;padding-top:11px}.context-button{border:0;background:transparent;padding:5px 0;font-size:10px;color:#ac7a90;text-align:left}.learn-button{width:28px;height:28px;display:grid;place-items:center;padding:4px;border:1px solid #eadce3;background:#fffafc;border-radius:50%;flex-shrink:0}.learn-button .ui-icon{width:16px;height:16px;opacity:.4}.learn-button.learned{background:#fff1f5;border-color:#dca9bc}.learn-button.learned .ui-icon{opacity:1}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:24px 0}.pagination button{display:grid;place-items:center;width:37px;height:37px;border:1px solid #e3d6df;background:#ffffffc9;border-radius:9px;box-shadow:var(--glass-shadow)}.pagination .ui-icon{width:16px;height:16px}.pagination>span{font-size:11px;color:#927385}.pagination:empty{display:none}.empty{text-align:center;padding:50px 20px;background:#ffffffb5;border:1px solid #ece2e8;border-radius:17px}.empty>.ui-icon{width:33px;height:33px;margin:0 auto 15px;opacity:.35}.empty h3{font-size:18px;font-weight:550;color:#987386}.empty p{font-size:12px;color:#a6909c}.empty .primary,.empty .secondary{margin:12px 5px}.session-line{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:760px;margin:0 auto 16px;color:#ad8c9d;font-size:11px}.session-track{height:3px;border-radius:3px;background:#ecdce4;width:140px;overflow:hidden}.session-track>span{display:block;height:100%;background:var(--red)}.study{max-width:760px;margin:0 auto;border:1px solid #ffffffee;border-bottom-color:#e7dce3;border-radius:20px;background:#ffffffd4;box-shadow:var(--glass-shadow);overflow:hidden}.study-bar{display:flex;justify-content:space-between;align-items:center;padding:13px 20px;border-bottom:1px solid #f0e5eb;font-size:11px;color:#a78497}.study-body{padding:24px 28px 28px;text-align:center}.study-body>.vocabulary-picture{max-width:510px;margin:0 auto 19px}.study-vocabulary-image{height:260px!important}.study-word{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-size:29px;font-weight:650;line-height:1.4;letter-spacing:-.7px;color:#342c36;margin:12px 0 4px;overflow-wrap:anywhere}.study-ipa{color:#9c5b78;font-size:13px;margin:6px 0 16px;line-height:1.8;overflow-wrap:anywhere}.study-meaning{font-size:20px;line-height:1.8;color:#8c4f68;margin:12px 0}.study-controls{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:23px}.study-question{font-size:12px;color:#af8d9d;margin:18px 0}.study-context{text-align:left;border:1px solid #eee0e8;border-radius:11px;padding:13px 16px;margin-top:20px;background:#fff9fbb8}.study-context>summary{display:flex;align-items:center;gap:7px;font-size:11px;color:#af8297;cursor:pointer;list-style:none}.study-context>summary .ui-icon{width:15px;height:15px}.study-context>summary::-webkit-details-marker{display:none}.study-context .preview-words{margin-top:15px}.study-context .word-relation{margin-top:15px;padding:12px}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.quiz-choice{display:flex;align-items:center;gap:13px;text-align:left;min-height:58px;padding:13px 16px;border:1px solid #e7dbe3;background:#fffafc;border-radius:11px;color:#836775;font-size:13px;line-height:1.8}.quiz-choice>span{color:#c5a5b5;font-size:10px}.quiz-choice.correct{background:#f2f9f3;border-color:#8fbd9b;color:#478358;opacity:1}.quiz-choice.wrong{background:#fff0f3;border-color:#d894aa;color:#aa4665;opacity:1}.quiz-feedback{display:flex;justify-content:center;align-items:center;gap:8px;background:#fff4f7;border:1px solid #eedbe4;border-radius:9px;padding:11px;margin-top:17px;font-size:12px;color:#a2637d}.quiz-feedback .ui-icon{width:16px;height:16px}
footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #eee5eb;margin-top:34px;padding:17px 0;font-size:9px;font-weight:500;letter-spacing:.8px;color:#bdabb5}footer .text-button{padding:4px}footer .ui-icon{opacity:.4;width:16px;height:16px}dialog{width:890px;max-width:calc(100vw - 30px);max-height:90vh;overflow:auto;border:1px solid #fffffff5;border-bottom-color:#e4d1dd;border-radius:22px;background:#ffffffef;backdrop-filter:blur(28px) saturate(160%);-webkit-backdrop-filter:blur(28px) saturate(160%);padding:0;color:var(--ink);box-shadow:inset 0 1px 1px #fff,0 24px 90px #4d183b2b}dialog::backdrop{background:#42122a38;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}.dialog-toolbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#ffffffd9;backdrop-filter:blur(20px);border-bottom:1px solid #f0e4ec}.dialog-toolbar .text-button{font-size:11px;gap:6px;color:#a16d85;padding:7px 8px}.dialog-toolbar .text-button .ui-icon{width:16px;height:16px}.dialog-toolbar>.icon-button{width:30px;height:30px;border:0;background:#b5093007;box-shadow:none}.dialog-toolbar .icon-button .ui-icon{width:15px;height:15px}#detail-body{padding:27px}.word-media-hero{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,1fr);align-items:center;gap:28px;margin-bottom:26px}.word-detail-image{width:100%;height:285px;object-fit:contain;background:#faf9fa;border:1px solid #fff;border-radius:14px}.word-media-hero h2{font-size:31px;line-height:1.35;letter-spacing:-.7px;font-weight:650;overflow-wrap:anywhere;margin:0 0 12px;color:#352c38}.word-media-hero .ipa{font-size:13px}.word-media-hero .meaning{font-size:19px;margin-top:15px}.detail-tools{display:flex;gap:10px;align-items:center;margin-top:20px}.detail-tools .icon-button{width:40px;height:40px}.detail-tools .pronunciation .ui-icon{width:20px;height:20px}.concept-context{background:#fff8fb9c;border:1px solid #eedfe8;border-radius:12px;padding:15px 18px;margin:12px 0}.concept-path{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;padding:0 0 12px;text-align:left;color:#a06f85;font-size:11px;line-height:1.8}.concept-path .ui-icon{width:16px;height:16px;opacity:.65}.concept-path>span{flex:1}.info h2{font-size:26px;color:#67364d;letter-spacing:-.5px;margin:0 0 25px}.help-steps>p{display:flex;align-items:center;gap:12px;font-size:14px;color:#a17d8f;line-height:1.8;margin:19px 0}.help-steps .ui-icon{width:22px;height:22px}.info-foot{display:flex;align-items:center;gap:9px;border-top:1px solid #efe2e9;margin-top:26px;padding-top:18px;font-size:11px;color:#baa1ae}.info-foot .ui-icon{width:16px;height:16px;opacity:.55}.info-stats{display:flex;justify-content:space-between;gap:20px;padding:15px 0 20px}.info-stats b{font-size:31px;font-weight:650;color:#9e3154}.info-stats small{display:block;font-size:11px;color:#bc9dad;font-weight:400;margin-top:4px}#toast{position:fixed;left:50%;bottom:23px;transform:translateX(-50%);max-width:90vw;z-index:50;border:1px solid #ffffff6b;background:#9f1038eb;color:#fff;padding:11px 18px;border-radius:12px;box-shadow:0 7px 30px #7d1a3829;backdrop-filter:blur(20px);font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}
@media(min-width:1500px){.map-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.expanded-tree .vocabulary-picture img{height:225px}}
@media(max-width:1150px){.shell{grid-template-columns:195px minmax(0,1fr)}main{padding:12px 22px 0}.sidebar{padding-left:10px;padding-right:10px}.topic{font-size:11px;gap:9px;padding:8px 9px}.map-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.expanded-tree,.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.small-node .vocabulary-picture img{height:110px}.small-node .node-word{font-size:14px}.small-node .node-ipa{font-size:9px}.small-node .node-meaning{font-size:11px}.semantic-branch{padding:14px}.semantic-branches{gap:21px 23px}.semantic-branch:before{width:12px;right:-12px}.semantic-branch:nth-child(even):before{left:-12px}.branch-heading h4{font-size:15px}.header{gap:18px}.view-switch button{padding:8px 11px}.topic-map-card{padding:20px 16px}.node-tree{gap:10px}.category-copy strong{font-size:14px}}
@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{position:sticky;top:83px;z-index:12;max-height:none;background:#faf9fbe8;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);padding:10px 18px;border-right:0;border-bottom:1px solid #eee5eb;overflow:visible}.side-title,.side-progress{display:none}#topics{display:flex;align-items:center;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}#topics::-webkit-scrollbar{display:none}.topic{flex:none;width:auto;white-space:nowrap;margin:0;padding:8px 11px;min-height:37px;background:#ffffff80;border:1px solid #e9e1e7;font-size:11px;gap:7px}.topic .ui-icon{width:16px;height:16px}.topic .count{font-size:9px;margin-left:3px}.topic.active{background:#fff0f5;border-color:#dfbecd}.location-bar{top:140px}.header .brand>span{font-size:10px}.header .brand>b{font-size:15px}.header{gap:14px;padding-left:15px;padding-right:13px}.view-switch{gap:2px;padding:3px}.view-switch button{font-size:11px;padding:8px 10px;gap:6px}.header-help{width:31px;height:31px}.header-help .ui-icon{width:16px;height:16px}.word-media-hero{grid-template-columns:210px minmax(0,1fr);gap:23px}.word-detail-image{height:240px}.word-media-hero h2{font-size:29px}.semantic-branches{gap:22px 28px}.semantic-branch{padding:17px}.small-node .vocabulary-picture img{height:140px}.small-node .node-word{font-size:15px}.small-node .node-ipa{font-size:10px}.small-node .node-meaning{font-size:12px}.map-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.topic-map-card{padding:19px 14px;gap:10px}.category-icon{width:38px;height:38px;border-radius:11px}.category-icon .ui-icon{width:21px;height:21px}.category-copy strong{font-size:13px}.category-copy small{font-size:9px}.category-next{display:none}}
@media(max-width:640px){.header{margin:6px 7px 0;top:6px;min-height:61px;border-radius:13px;gap:10px;padding:8px 11px;flex-wrap:wrap}.brand{gap:10px}.brand>b{font-size:14px;letter-spacing:.7px}.brand>span{padding-left:10px;font-size:10px!important}.brand small{font-size:8px;letter-spacing:.7px;margin-top:2px}.header-help{width:30px;height:30px;margin-left:auto}.view-switch{order:3;width:100%;gap:4px;justify-content:space-between;border-radius:10px;padding:3px;background:#ffffff0d}.view-switch button{flex:1;justify-content:center;gap:7px;padding:7px 5px;min-height:33px;font-size:11px;border-radius:7px}.view-switch .ui-icon{width:16px;height:16px}.sidebar{top:117px;padding:9px 15px}.topic{font-size:10px;min-height:34px;padding:7px 10px;gap:6px;border-radius:9px}.topic .ui-icon{width:15px;height:15px}.topic .count{font-size:8px}.location-bar{top:169px;padding:8px 0 10px;margin-bottom:17px;gap:8px;align-items:center;min-height:50px}.back-navigation{padding:7px 8px;gap:4px;font-size:10px;min-height:34px;border-radius:8px}.back-navigation .ui-icon{width:14px;height:14px}#breadcrumbs{font-size:10px;gap:2px;line-height:1.6}#breadcrumbs button{font-size:10px;padding:2px 4px}#breadcrumbs .ui-icon{width:15px;height:15px}#breadcrumbs .crumb-chevron{width:10px;height:10px}main{padding:8px 16px 0}.quick-summary{padding:1px 0 20px}.quick-numbers{gap:15px;font-size:10px}.quick-numbers b{font-size:20px}.quick-numbers span+span{padding-left:15px}.quick-summary .primary{font-size:10px;padding:9px 12px;min-height:37px}.quick-summary .primary .ui-icon{width:14px;height:14px}.workspace-heading{margin-bottom:14px}.workspace-heading h1{font-size:23px;letter-spacing:-.6px}.workspace-heading #results{font-size:10px}.filters{gap:7px;flex-wrap:wrap;margin-bottom:19px}.search{flex-basis:calc(100% - 105px);padding:0 10px}.search input{padding:11px 0;font-size:12px}.search .ui-icon{width:16px;height:16px}.status-filter select{min-width:93px;max-width:100px;padding:9px 7px;font-size:10px;min-height:40px;border-radius:9px}.hide-label{font-size:10px;min-height:29px;margin-right:auto;padding-left:1px;gap:6px}.hide-label>.ui-icon{width:15px;height:15px}.hide-label input{width:12px;height:12px}.filter-reset{width:30px;height:30px;border-radius:8px;margin-left:auto}.filter-reset .ui-icon{width:14px;height:14px}.map-overview{grid-template-columns:1fr 1fr;gap:10px}.topic-map-card{padding:16px 12px;gap:11px;border-radius:14px;flex-direction:column;align-items:start;min-height:137px}.category-icon{width:38px;height:38px;border-radius:11px}.category-icon .ui-icon{width:20px;height:20px}.category-copy strong{font-size:14px}.category-copy small{font-size:9px;margin-top:4px}.category-next{display:block;position:absolute;right:12px;top:18px;width:13px;height:13px;opacity:.3}.semantic-branches{grid-template-columns:1fr;gap:19px;padding-left:12px}.semantic-branches:before{left:0;top:0;bottom:18px}.semantic-branch:before,.semantic-branch:nth-child(even):before{right:auto;left:-13px;width:12px;top:28px}.semantic-branch{padding:14px;border-radius:15px}.branch-heading{padding-bottom:14px}.branch-heading h4{font-size:16px}.branch-heading>span{font-size:9px}.branch-heading>span .ui-icon{width:13px;height:13px}.small-node{padding:8px;border-radius:11px}.small-node .vocabulary-picture img{height:115px}.small-node .node-word{font-size:14px}.small-node .node-ipa{font-size:10px}.small-node .node-meaning{font-size:12px}.small-node .node-link{font-size:8px;margin-bottom:7px}.small-node .pronunciation{width:27px;height:27px}.small-node .pronunciation .ui-icon{width:14px;height:14px}.open-branch-button{font-size:10px;min-height:36px;margin-top:13px;padding:8px}.expanded-tree{grid-template-columns:1fr;gap:15px}.expanded-tree .map-node{padding:15px;border-radius:17px}.expanded-tree .vocabulary-picture img{height:235px}.expanded-tree .node-word{font-size:23px}.expanded-tree .node-ipa{font-size:13px;margin-top:6px}.expanded-tree .node-meaning{font-size:16px}.expanded-tree .pronunciation{width:39px;height:39px}.expanded-tree .pronunciation .ui-icon{width:20px;height:20px}.expanded-tree .node-link{font-size:10px}.branch-tools{gap:10px;margin-bottom:16px}.branch-tools .primary{font-size:11px;min-height:37px;padding:8px 12px}.branch-tools .primary .ui-icon{width:14px;height:14px}.short-note{max-width:60%}.short-note>summary{font-size:10px;min-height:37px}.short-note>summary .ui-icon{width:15px;height:15px}.short-note p{font-size:11px;line-height:1.9}.relation-diagram{grid-template-columns:minmax(0,1fr) 85px minmax(0,1fr);gap:7px}.word-relation{padding:13px;border-radius:11px}.word-chip{font-size:11px;padding:6px 8px}.relation-link small{font-size:8px;line-height:1.7}.relation-link .ui-icon{width:18px;height:18px}.relation-extra p{font-size:11px}.precise-relations{margin-top:22px}.precise-relations>h4{font-size:11px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card{border-radius:13px}.vocab-heading{padding:9px 10px}.vocab-heading>p{font-size:8px}.vocab-heading small{font-size:9px}.vocab-heading .icon-button{width:27px;height:27px;padding:5px}.vocab-heading .icon-button .ui-icon{width:14px;height:14px}.card-vocabulary-image{height:148px!important}.card-body{padding:12px}.word-button{font-size:17px}.card-title{gap:7px}.card-title .pronunciation{width:29px;height:29px;padding:5px}.card-title .pronunciation .ui-icon{width:15px;height:15px}.card-body .ipa{font-size:10px}.card-body .meaning{font-size:12px}.card-footer{gap:7px;margin-top:12px;padding-top:9px}.context-button{font-size:9px}.learn-button{width:25px;height:25px}.learn-button .ui-icon{width:14px;height:14px}.session-line{font-size:10px;gap:10px;margin-bottom:13px}.session-track{width:85px}.session-line .text-button{font-size:10px;padding:5px}.study{border-radius:16px}.study-bar{padding:11px 16px;font-size:10px}.study-bar .icon-button{width:29px;height:29px}.study-body{padding:19px 18px 23px}.study-vocabulary-image{height:220px!important}.study-word{font-size:25px;gap:10px}.study-word .pronunciation{width:33px;height:33px}.study-word .pronunciation .ui-icon{width:17px;height:17px}.study-ipa{font-size:12px}.study-meaning{font-size:18px}.study-controls{gap:9px;margin-top:20px}.study-controls .primary,.study-controls .secondary{font-size:11px;padding:10px 13px}.study-context{padding:12px 14px}.study-context .relation-diagram{grid-template-columns:1fr}.study-context .relation-link .ui-icon{transform:rotate(90deg)}.study-context .relation-link small{font-size:9px}.quiz-options{grid-template-columns:1fr;gap:8px;margin-top:17px}.quiz-choice{padding:11px 13px;min-height:51px;font-size:12px}.quiz-feedback{font-size:11px}.study-question{font-size:11px;line-height:1.8}.pagination{margin:22px 0}.pagination button{width:34px;height:34px}.pagination>span{font-size:10px}footer{margin-top:27px;padding:15px 0;font-size:8px}dialog{max-width:calc(100vw - 22px);max-height:92vh;border-radius:18px}#detail-body{padding:21px 18px}.dialog-toolbar{padding:8px 11px}.dialog-toolbar .text-button{font-size:10px;padding:6px}.dialog-toolbar .text-button .ui-icon{width:14px;height:14px}.dialog-toolbar>.icon-button{width:28px;height:28px}.word-media-hero{grid-template-columns:1fr;gap:20px;margin-bottom:22px}.word-detail-image{height:245px;border-radius:11px}.word-media-hero h2{font-size:29px;letter-spacing:-.6px;margin-bottom:9px}.word-media-hero .ipa{font-size:12px}.word-media-hero .meaning{font-size:18px;margin-top:13px}.detail-tools{margin-top:18px}.word-detail>h3{font-size:11px;gap:6px}.concept-context{padding:13px 14px}.concept-path{font-size:10px;gap:7px}.concept-path .ui-icon{width:14px;height:14px}.preview-words{gap:6px}.info h2{font-size:24px;margin-bottom:22px}.help-steps>p{font-size:13px;gap:10px}.help-steps .ui-icon{width:20px;height:20px}.info-foot{font-size:10px;line-height:1.8}.info-stats b{font-size:28px}.info-stats small{font-size:10px}}
@media(max-width:360px){.header{padding-left:9px;padding-right:9px}.brand>b{font-size:13px}.brand>span{font-size:9px!important}.view-switch button{font-size:10px;gap:5px}.view-switch .ui-icon{width:15px;height:15px}main{padding-left:13px;padding-right:13px}.small-node .node-word{font-size:13px}.small-node .vocabulary-picture img{height:105px}.expanded-tree .vocabulary-picture img{height:215px}.relation-diagram{grid-template-columns:1fr}.relation-link .ui-icon{transform:rotate(90deg)}.relation-link small{font-size:9px}.category-copy strong{font-size:13px}.topic-map-card{padding:14px 11px}.category-copy small{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(prefers-contrast:more){:root{--muted:#665461;--line:#cfa9ba}.node-ipa,.ipa,.node-meaning,.meaning,.category-copy small{color:#705563}.topic-map-card,.semantic-branch,.map-node{border-color:#d9bac9}}
/* Keep the scrolling topic rail inside the phone viewport. */
.sidebar{min-width:0}#topics{min-width:0;max-width:100%}.shell{width:100%}
@media(max-width:850px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{width:100%}}

/* Connected maps: shared-subject tree lines and explicit word-to-word links. */
.mind-canvas{position:relative;isolation:isolate;min-width:0;padding:18px 16px 22px;background-image:radial-gradient(#c991a72e .8px,transparent .8px);background-size:18px 18px;border-radius:20px}
.mind-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:-1;pointer-events:none}
.mind-wires path{fill:none;stroke:#cd7893;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.mind-wires circle{fill:#b50930;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.mind-hub{display:flex;position:relative;align-items:center;justify-content:center;gap:9px;width:fit-content;max-width:100%;min-height:44px;margin:0 auto;padding:11px 20px;border:1px solid #bd3756;border-radius:30px;background:#b50930f2;box-shadow:inset 0 1px 1px #ffffff60,0 4px 15px #a50b3016;color:white;font-size:15px;font-weight:650;line-height:1.5;text-align:center}
.mind-hub .ui-icon{width:19px;height:19px;filter:brightness(0) invert(1)}
button.mind-hub:hover{background:#940b2b}
.mind-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:44px 42px;padding:42px 8px 0 32px}
.mind-group{display:flex;align-items:center;min-width:0;justify-content:center;position:relative}
.mind-word{flex:1;min-width:0;position:relative}
.mind-group:not(.linked-group) .mind-word{max-width:370px}
.linked-group{grid-column:1/-1;align-items:center}
.word-map .map-node{border:1px solid #dcb4c3;border-radius:24px;background:#fffffff0;box-shadow:inset 0 1px 1px #fff,0 5px 20px #7c24450a;padding:14px 16px 15px}
.word-map .node-link{width:fit-content;max-width:100%;border:1px solid #ecd4dd;border-radius:15px;background:#fff4f8;color:#93516b;font-size:10px;padding:3px 9px;margin:0 auto 12px;text-align:center;min-height:0}
.word-map .vocabulary-picture{max-width:240px;margin:auto;border-radius:14px}
.word-map .vocabulary-picture img{height:145px}
.word-map .node-word{font-size:20px}
.word-map .node-word-row{margin-top:12px;flex-wrap:nowrap}
.word-map .node-ipa{font-size:11px;margin:4px 0}
.word-map .node-meaning{font-size:13px;margin-top:3px}
.word-map .pronunciation{width:33px;height:33px}
.word-map .pronunciation .ui-icon{width:17px;height:17px}
.mind-connection{display:flex;position:relative;align-self:center;flex:0 0 138px;min-width:0;min-height:94px;align-items:center;justify-content:center;margin:0 2px;text-align:center}
.connection-line{position:absolute;left:-3px;right:-3px;top:50%;height:2.5px;background:#b50930}
.connection-line:before,.connection-line:after{content:'';position:absolute;width:7px;height:7px;border:1.5px solid #fff;border-radius:50%;background:#b50930;top:-2px}
.connection-line:before{left:0}.connection-line:after{right:0}
.mind-connection.flow .connection-line:after{width:8px;height:8px;background:transparent;border:0;border-top:2px solid #b50930;border-right:2px solid #b50930;border-radius:0;transform:rotate(45deg);top:-3px;right:1px}
.mind-connection.flow.reverse .connection-line:after{left:1px;right:auto;transform:rotate(-135deg)}
.mind-connection details{position:relative;width:100%;padding:0 9px;z-index:2}
.mind-connection summary{display:flex;align-items:center;justify-content:center;gap:4px;list-style:none;background:#fff7fb;border:1px solid #e5b9c9;box-shadow:0 2px 6px #b5093008;border-radius:13px;padding:7px 8px;color:#8e2649;font-size:11px;font-weight:550;line-height:1.6;cursor:pointer;overflow-wrap:anywhere}
.mind-connection summary::-webkit-details-marker{display:none}
.mind-connection summary .ui-icon{width:12px;height:12px;opacity:.6}
.mind-connection details[open]{z-index:4}
.mind-connection details p{position:absolute;width:240px;max-width:65vw;left:50%;transform:translateX(-50%);margin:8px 0 0;padding:12px;background:#fff;border:1px solid #e2bbc9;border-radius:12px;box-shadow:0 8px 25px #69243b1a;color:#795369;font-size:12px;line-height:1.8;text-align:left}
.long-chain .mind-connection{flex-basis:115px}
.long-chain .map-node{padding:12px}
.long-chain .node-word{font-size:17px}
.long-chain .vocabulary-picture img{height:125px}
.long-chain .node-word-row{flex-wrap:wrap}
.overview-map .map-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 30px;padding:42px 4px 0 32px}
.overview-map .topic-map-card{border-color:#dfbac9;border-radius:22px;min-height:97px;background:#fffffff0}
.subject-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 22px;padding:42px 0 0 30px;align-items:start}
.subject-branch{min-width:0;background:#ffffff75;border:1px solid #ecd6df;border-radius:22px;padding:8px}
.subject-branch .mind-canvas{background-image:none;padding:10px 5px 6px}
.compact-map>.mind-hub{font-size:13px;border-color:#dec1cc;background:#fff;color:#943754;padding:9px 13px;min-height:40px;box-shadow:var(--glass-shadow)}
.compact-map>.mind-hub .ui-icon{filter:invert(13%) sepia(82%) saturate(3890%) hue-rotate(333deg) brightness(84%) contrast(105%);width:16px;height:16px}
.compact-map .mind-groups{gap:32px 12px;padding:37px 0 0 23px}
.compact-map .mind-wires path{stroke:#d499ad;stroke-width:1.75}
.compact-map .map-node{padding:9px 10px 11px;border-radius:18px}
.compact-map .node-link{font-size:8px;padding:2px 6px;margin-bottom:8px}
.compact-map .vocabulary-picture img{height:95px}
.compact-map .node-word{font-size:14px}
.compact-map .node-word-row{gap:4px;flex-wrap:wrap;margin-top:9px}
.compact-map .node-ipa{font-size:9px}
.compact-map .node-meaning{font-size:11px}
.compact-map .pronunciation{width:26px;height:26px}
.compact-map .pronunciation .ui-icon{width:13px;height:13px}
.compact-map .mind-connection{flex-basis:70px;margin:0;min-height:80px}
.compact-map .mind-connection details{padding:0 5px}
.compact-map .mind-connection summary{padding:5px;font-size:8px;gap:0;flex-direction:column}
.compact-map .mind-connection summary .ui-icon{width:11px;height:11px}
.compact-map .open-branch-button{border:0;background:transparent;padding:7px;margin:11px auto 0;min-height:30px;width:fit-content;font-size:10px}
/* Detail comparisons also draw a real line between the two word chips. */
.relation-link{position:relative;padding:0 3px;min-height:48px}
.relation-link:before{content:'';position:absolute;left:-12px;right:-12px;top:50%;height:2px;background:#c36d89;z-index:0}
.relation-link small{position:relative;z-index:1;padding:5px 9px;background:#fff7fa;border:1px solid #edd5de;border-radius:12px;color:#91435e}
.relation-link>.ui-icon{display:none}
@media(max-width:1150px){.subject-branches{grid-template-columns:1fr}.subject-branch{padding:14px}.compact-map .vocabulary-picture img{height:125px}.compact-map .node-word{font-size:16px}.compact-map .node-meaning{font-size:12px}.compact-map .node-ipa{font-size:10px}.compact-map .mind-connection{flex-basis:120px}.compact-map .mind-connection summary{font-size:10px;flex-direction:row;gap:4px}.long-chain{flex-direction:column}.long-chain .mind-word{width:100%}.long-chain .map-node{display:grid;grid-template-columns:115px minmax(0,1fr);gap:0 16px}.long-chain .node-link{grid-column:2;grid-row:1;margin:0 0 5px}.long-chain .vocabulary-picture{grid-column:1;grid-row:1/5;width:100%;align-self:center}.long-chain .node-word-row{grid-column:2;grid-row:2;margin-top:0;flex-wrap:nowrap}.long-chain .node-ipa,.long-chain .node-meaning,.long-chain .reveal-meaning,.long-chain .meaning{grid-column:2}.long-chain .mind-connection{flex:0 0 62px;width:100%;min-height:62px;margin:0}.long-chain .connection-line{width:2.5px;height:auto;left:50%;right:auto;top:0;bottom:0}.long-chain .connection-line:before{left:-2px;top:0}.long-chain .connection-line:after{left:-2px;right:auto;top:auto;bottom:0}.long-chain .mind-connection details{width:fit-content;max-width:75%;padding:0}.long-chain .mind-connection.flow .connection-line:after{left:-3px;top:auto;bottom:2px;transform:rotate(135deg)}.long-chain .mind-connection.flow.reverse .connection-line:after{top:2px;bottom:auto;transform:rotate(-45deg)}}
@media(max-width:640px){.mind-canvas{padding:15px 5px 18px;border-radius:17px}.mind-hub{font-size:13px;min-height:41px;padding:9px 16px;max-width:90%}.mind-hub .ui-icon{width:17px;height:17px}.mind-groups{grid-template-columns:1fr;gap:35px;padding:36px 0 0 28px}.mind-group:not(.linked-group) .mind-word{max-width:none}.linked-group{flex-direction:column}.linked-group .mind-word{width:100%}.word-map .map-node{padding:11px 12px;border-radius:20px;display:grid;grid-template-columns:85px minmax(0,1fr);gap:0 12px;align-items:center}.word-map .node-link{grid-column:2;grid-row:1;justify-self:start;font-size:9px;padding:2px 7px;margin:0 0 5px}.word-map .vocabulary-picture{grid-column:1;grid-row:1/5;align-self:center;width:100%;border-radius:11px}.word-map .vocabulary-picture img{height:100px}.word-map .node-word-row{grid-column:2;grid-row:2;gap:5px;flex-wrap:wrap;margin-top:0}.word-map .node-word{font-size:17px}.word-map .node-ipa,.word-map .node-meaning,.word-map .reveal-meaning,.word-map .meaning{grid-column:2}.word-map .node-ipa{font-size:10px;margin:4px 0}.word-map .node-meaning,.word-map .meaning{font-size:12px;line-height:1.6}.word-map .pronunciation{width:29px;height:29px}.word-map .pronunciation .ui-icon{width:15px;height:15px}.mind-connection,.long-chain .mind-connection{flex:0 0 70px;width:100%;min-height:70px;margin:0}.connection-line{width:2.5px;height:auto;left:50%;right:auto;top:0;bottom:0}.connection-line:before{left:-2px;top:0}.connection-line:after{left:-2px;right:auto;top:auto;bottom:0}.mind-connection details{width:fit-content;max-width:85%;padding:0}.mind-connection summary{font-size:10px;padding:5px 10px}.mind-connection.flow .connection-line:after{left:-3px;top:auto;bottom:2px;transform:rotate(135deg)}.mind-connection.flow.reverse .connection-line:after{top:2px;bottom:auto;transform:rotate(-45deg)}.overview-map .map-overview{grid-template-columns:1fr;gap:32px;padding:37px 0 0 28px}.overview-map .topic-map-card{min-height:77px;padding:13px 15px;flex-direction:row;align-items:center;gap:13px}.overview-map .category-next{position:static;display:block}.overview-map .category-copy strong{font-size:14px}.overview-map .category-copy small{font-size:10px}.subject-branches{grid-template-columns:1fr;padding:37px 0 0 26px;gap:37px}.subject-branch{padding:8px 4px}.subject-branch .mind-canvas{padding:7px 0}.compact-map>.mind-hub{font-size:12px;padding:8px 11px;min-height:37px}.compact-map .mind-groups{grid-template-columns:1fr;gap:30px;padding:34px 0 0 23px}.compact-map .map-node{grid-template-columns:70px minmax(0,1fr);padding:10px;gap:0 10px;border-radius:18px}.compact-map .vocabulary-picture img{height:85px}.compact-map .node-link{font-size:8px;margin:0 0 4px}.compact-map .node-word{font-size:15px}.compact-map .node-word-row{margin:0}.compact-map .node-ipa{font-size:9px}.compact-map .node-meaning{font-size:11px}.compact-map .mind-connection{flex:0 0 62px;min-height:62px;width:100%;margin:0}.compact-map .mind-connection details{max-width:85%;padding:0}.compact-map .mind-connection summary{font-size:9px;padding:5px 8px;flex-direction:row;gap:4px}.word-map .reveal-meaning{justify-self:start;margin-top:4px;padding:4px 7px;min-height:26px}.relation-diagram{grid-template-columns:minmax(0,1fr) minmax(65px,.75fr) minmax(0,1fr)}.relation-link:before{left:-8px;right:-8px}.relation-link small{font-size:8px;padding:4px 5px}}
@media(max-width:360px){.word-map .map-node{grid-template-columns:68px minmax(0,1fr);gap:0 9px;padding:9px}.word-map .node-word{font-size:15px}.word-map .node-ipa{font-size:9px}.word-map .vocabulary-picture img{height:88px}.compact-map .map-node{grid-template-columns:58px minmax(0,1fr);gap:0 8px;padding:8px}.compact-map .node-word{font-size:14px}.compact-map .vocabulary-picture img{height:74px}.relation-diagram{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr)}}
@media(min-width:641px){.word-map:not(.compact-map) .map-node{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0 14px;align-items:center;min-height:162px}.word-map:not(.compact-map) .node-link{grid-column:2;grid-row:1;justify-self:start;margin:0 0 6px}.word-map:not(.compact-map) .vocabulary-picture{grid-column:1;grid-row:1/5;width:100%;align-self:center}.word-map:not(.compact-map) .vocabulary-picture img{height:124px}.word-map:not(.compact-map) .node-word-row{grid-column:2;grid-row:2;margin:0;flex-wrap:wrap;gap:5px}.word-map:not(.compact-map) .node-ipa,.word-map:not(.compact-map) .node-meaning,.word-map:not(.compact-map) .reveal-meaning,.word-map:not(.compact-map) .meaning{grid-column:2}.word-map:not(.compact-map) .node-word{font-size:19px}.word-map:not(.compact-map) .long-chain .map-node{grid-template-columns:1fr;min-height:0}.word-map:not(.compact-map) .long-chain .map-node>*{grid-column:1;grid-row:auto}.word-map:not(.compact-map) .long-chain .node-link{justify-self:center}.word-map:not(.compact-map) .long-chain .node-word{font-size:16px}.word-map:not(.compact-map) .long-chain .vocabulary-picture img{height:115px}}
@media(min-width:641px) and (max-width:1150px){.word-map:not(.compact-map) .long-chain .map-node{grid-template-columns:112px minmax(0,1fr)}.word-map:not(.compact-map) .long-chain .node-link{grid-column:2;grid-row:1;justify-self:start}.word-map:not(.compact-map) .long-chain .vocabulary-picture{grid-column:1;grid-row:1/5}.word-map:not(.compact-map) .long-chain .node-word-row{grid-column:2;grid-row:2}.word-map:not(.compact-map) .long-chain .node-ipa,.word-map:not(.compact-map) .long-chain .node-meaning,.word-map:not(.compact-map) .long-chain .reveal-meaning,.word-map:not(.compact-map) .long-chain .meaning{grid-column:2}.word-map:not(.compact-map) .long-chain .node-word{font-size:19px}}
.subject-branch{border:0;background:transparent;padding:0}
.subject-branch .mind-canvas{background:transparent}

/* A bounded drawing surface with an independent pan/zoom camera. */
.map-explorer{position:relative;border:1px solid #e0c4cf;border-radius:19px;background:#fffafd;box-shadow:inset 0 1px 1px #fff,0 5px 22px #81233f09;overflow:hidden}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:#ffffffed;border-bottom:1px solid #ead5df;position:relative;z-index:3;min-height:52px}
.map-toolbar svg{width:19px;height:19px;flex-shrink:0}
.map-gesture-hint{display:flex;align-items:center;gap:7px;font-size:11px;color:#987281;white-space:nowrap}
.map-gesture-hint svg{width:16px;height:16px}
.map-camera-tools{display:flex;align-items:center;gap:4px}
.map-camera-tools button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:34px;height:34px;padding:6px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#9b2448;font-size:11px;font-weight:550;white-space:nowrap}
.map-camera-tools button:hover{background:#fff0f5;border-color:#e4bbca}
.map-camera-tools button:active{background:#ffe3ed}
.map-camera-tools .map-zoom-level{min-width:48px;font-variant-numeric:tabular-nums;background:#fff7fa;border-color:#eddae2}
.map-camera-tools .map-fit{border-color:#e4bbca;background:#fff7fa;margin:0 2px}
.camera-divider{height:20px;width:1px;background:#ead5df;margin:0 5px}
.map-viewport{position:relative;isolation:isolate;width:100%;height:clamp(360px,65dvh,760px);overflow:hidden;touch-action:none;overscroll-behavior:contain;cursor:grab;background:#faf6fa;background-image:radial-gradient(#c47b9635 1px,transparent 1px);background-size:20px 20px;user-select:none;-webkit-user-select:none}
.map-viewport:focus-visible{outline:2px solid #b50930;outline-offset:-3px}
.map-viewport.is-dragging,.map-viewport.is-dragging *{cursor:grabbing!important}
.map-viewport .vocabulary-picture{cursor:pointer}
.map-scene{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;padding:0}
.map-scene img{-webkit-user-drag:none}
.map-scene>.mind-canvas{width:100%;background-image:none;border-radius:0;background:transparent;padding:20px 16px 26px}
.map-scene .mind-wires path{vector-effect:none}
.map-explorer.is-expanded{position:fixed;inset:10px;z-index:40;border-radius:18px;background:#fff;box-shadow:0 12px 70px #501c3740}
.map-explorer.is-expanded .map-viewport{height:calc(100dvh - 74px)}
body.map-expanded{overflow:hidden}
/* Logical layout remains stable while the camera scales on any screen. */
.map-scene .mind-hub{font-size:15px;min-height:44px;padding:11px 20px;max-width:100%}
.map-scene .mind-hub .ui-icon{width:19px;height:19px}
.map-scene .mind-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 42px;padding:42px 8px 0 32px}
.map-scene .mind-group{flex-direction:row;align-items:center}
.map-scene .mind-group:not(.linked-group) .mind-word{max-width:370px}
.map-scene .linked-group .mind-word{width:auto}
.map-scene .word-map:not(.compact-map) .map-node{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0 14px;align-items:center;min-height:162px;padding:14px 16px 15px;border-radius:24px}
.map-scene .word-map:not(.compact-map) .node-link{grid-column:2;grid-row:1;justify-self:start;font-size:10px;padding:3px 9px;margin:0 0 6px}
.map-scene .word-map:not(.compact-map) .vocabulary-picture{grid-column:1;grid-row:1/5;align-self:center;width:100%;border-radius:14px}
.map-scene .word-map:not(.compact-map) .vocabulary-picture img{height:124px}
.map-scene .word-map:not(.compact-map) .node-word-row{grid-column:2;grid-row:2;margin:0;flex-wrap:wrap;gap:5px}
.map-scene .word-map:not(.compact-map) .node-ipa,.map-scene .word-map:not(.compact-map) .node-meaning,.map-scene .word-map:not(.compact-map) .reveal-meaning,.map-scene .word-map:not(.compact-map) .meaning{grid-column:2}
.map-scene .word-map:not(.compact-map) .node-word{font-size:19px}
.map-scene .word-map:not(.compact-map) .node-ipa{font-size:11px;margin:4px 0}
.map-scene .word-map:not(.compact-map) .node-meaning,.map-scene .word-map:not(.compact-map) .meaning{font-size:13px;line-height:1.7}
.map-scene .word-map:not(.compact-map) .pronunciation{width:33px;height:33px}
.map-scene .word-map:not(.compact-map) .pronunciation .ui-icon{width:17px;height:17px}
.map-scene .word-map:not(.compact-map) .long-chain .map-node{display:block;min-height:0;padding:12px}
.map-scene .word-map:not(.compact-map) .long-chain .node-link{margin:0 auto 8px}
.map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture img{height:115px}
.map-scene .word-map:not(.compact-map) .long-chain .node-word-row{margin-top:10px}
.map-scene .word-map:not(.compact-map) .long-chain .node-word{font-size:17px}
.map-scene .mind-connection{flex:0 0 138px;width:auto;min-height:94px;margin:0 2px}
.map-scene .connection-line{width:auto;height:2.5px;left:-3px;right:-3px;top:50%;bottom:auto}
.map-scene .connection-line:before{left:0;top:-2px;bottom:auto}
.map-scene .connection-line:after{left:auto;right:0;top:-2px;bottom:auto}
.map-scene .mind-connection.flow .connection-line:after{left:auto;right:1px;top:-3px;bottom:auto;transform:rotate(45deg)}
.map-scene .mind-connection.flow.reverse .connection-line:after{left:1px;right:auto;top:-3px;bottom:auto;transform:rotate(-135deg)}
.map-scene .mind-connection details{width:100%;max-width:none;padding:0 9px}
.map-scene .mind-connection summary{padding:7px 8px;font-size:11px;gap:4px;flex-direction:row}
.map-scene .mind-connection details p{max-width:240px}
.map-scene .long-chain .mind-connection{flex-basis:115px}
.map-scene .subject-branches{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 24px;padding:42px 0 0 30px}
.map-scene .subject-branch{padding:0}
.map-scene .subject-branch .mind-canvas{padding:10px 5px 6px}
.map-scene .compact-map>.mind-hub{font-size:13px;padding:9px 13px;min-height:40px}
.map-scene .compact-map>.mind-hub .ui-icon{width:16px;height:16px}
.map-scene .compact-map .mind-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 12px;padding:37px 0 0 23px}
.map-scene .compact-map .map-node{display:block;padding:10px 11px 12px;border-radius:18px;min-height:0}
.map-scene .compact-map .node-link{font-size:8px;padding:2px 6px;margin:0 auto 8px}
.map-scene .compact-map .vocabulary-picture img{height:95px}
.map-scene .compact-map .node-word{font-size:14px}
.map-scene .compact-map .node-word-row{gap:4px;flex-wrap:wrap;margin-top:9px}
.map-scene .compact-map .node-ipa{font-size:9px}
.map-scene .compact-map .node-meaning{font-size:11px}
.map-scene .compact-map .pronunciation{width:26px;height:26px}
.map-scene .compact-map .pronunciation .ui-icon{width:13px;height:13px}
.map-scene .compact-map .mind-connection{flex:0 0 72px;width:auto;min-height:80px;margin:0}
.map-scene .compact-map .mind-connection details{width:100%;padding:0 5px;max-width:none}
.map-scene .compact-map .mind-connection summary{font-size:8px;padding:5px;gap:0;flex-direction:column}
.map-scene .compact-map .mind-connection summary .ui-icon{width:11px;height:11px}
.map-scene .overview-map .map-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 30px;padding:42px 4px 0 32px}
.map-scene .overview-map .topic-map-card{min-height:97px;padding:20px 18px;flex-direction:row;align-items:center;gap:14px}
.map-scene .overview-map .category-icon{width:46px;height:46px}
.map-scene .overview-map .category-copy strong{font-size:14px}
.map-scene .overview-map .category-copy small{font-size:10px}
.map-scene .overview-map .category-next{display:block;position:static;width:15px;height:15px}
@media(max-width:640px){.map-explorer{border-radius:14px}.map-toolbar{min-height:49px;padding:7px 8px;gap:4px}.map-gesture-hint{font-size:9px;gap:4px}.map-gesture-hint svg{width:14px;height:14px}.map-camera-tools{gap:1px}.map-camera-tools button{min-width:29px;height:32px;padding:5px}.map-camera-tools svg{width:17px;height:17px}.map-camera-tools .map-zoom-level{min-width:42px;font-size:10px}.map-camera-tools .map-fit{gap:4px;padding:5px 7px;font-size:10px}.camera-divider{margin:0 3px}.map-viewport{height:clamp(330px,60dvh,650px)}.map-explorer.is-expanded{inset:5px;border-radius:13px}.map-explorer.is-expanded .map-viewport{height:calc(100dvh - 62px)}}
@media(max-width:360px){.map-gesture-hint>span{display:none}.map-toolbar{padding:7px 6px}.map-camera-tools .map-fit{padding:5px}.camera-divider{margin:0 2px}}
.map-explorer{scroll-margin-top:150px}.map-viewport{overflow:clip}
@media(max-width:850px){.map-explorer{scroll-margin-top:210px}}
@media(max-width:640px){.map-explorer{scroll-margin-top:225px}.map-viewport{height:clamp(240px,calc(100dvh - 300px),650px)}}
/* A portrait branch uses a taller logical drawing so Fit remains readable on phones. */
@media(max-width:640px){#branch-panel .map-scene{width:600px!important}#branch-panel .map-scene .mind-groups{grid-template-columns:1fr;gap:34px;padding:42px 8px 0 32px}#branch-panel .map-scene .mind-group:not(.linked-group) .mind-word{max-width:none}#branch-panel .map-scene .linked-group{flex-direction:column}#branch-panel .map-scene .linked-group .mind-word{width:100%}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .map-node{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:162px;padding:14px 16px 15px}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .node-link{grid-column:2;grid-row:1;justify-self:start;margin:0 0 6px}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture{grid-column:1;grid-row:1/5}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture img{height:124px}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .node-word-row{grid-column:2;grid-row:2;margin:0}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .node-ipa,#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .node-meaning,#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .reveal-meaning,#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .meaning{grid-column:2}#branch-panel .map-scene .word-map:not(.compact-map) .long-chain .node-word{font-size:19px}#branch-panel .map-scene .mind-connection{flex:0 0 70px;width:100%;min-height:70px;margin:0}#branch-panel .map-scene .connection-line{width:2.5px;height:auto;left:50%;right:auto;top:0;bottom:0}#branch-panel .map-scene .connection-line:before{left:-2px;top:0;bottom:auto}#branch-panel .map-scene .connection-line:after{left:-2px;right:auto;top:auto;bottom:0}#branch-panel .map-scene .mind-connection details{width:fit-content;max-width:85%;padding:0}#branch-panel .map-scene .mind-connection.flow .connection-line:after{left:-3px;top:auto;bottom:2px;transform:rotate(135deg)}#branch-panel .map-scene .mind-connection.flow.reverse .connection-line:after{top:2px;bottom:auto;transform:rotate(-45deg)}.map-camera-tools button{height:36px;min-width:32px}.map-camera-tools .map-zoom-level{min-width:42px}}
.map-scene .subject-branches{grid-template-columns:repeat(var(--map-columns,2),minmax(0,1fr))}

/* Compact vocabulary families and optional recognition review. */
.extra-label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;color:#75616a;cursor:pointer}.extra-label input{accent-color:#b50930}
.node-phrase{font-size:12px;color:#a52443;display:block;margin:5px 0;line-height:1.4;overflow-wrap:anywhere}
.family-toggle{display:flex;align-items:center;justify-content:center;gap:5px;background:#fff0f3;border:1px solid #efd1d9;color:#a31336;border-radius:16px;padding:5px 10px;margin-top:8px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}.family-toggle .ui-icon{width:15px;height:15px}
.phrase-links{display:grid;gap:8px;margin:18px 0}.phrase-links div{display:flex;flex-wrap:wrap;gap:5px 16px;padding:10px 14px;border-radius:14px;background:#fff1f4}.phrase-links b{font-size:15px;color:#a31336}.phrase-links span{font-size:14px;color:#71616a}

/* Always-open meaning bubbles; they remain readable outside the zoom canvas. */
.visible-meaning-links{margin:14px 0 28px;scroll-margin-top:150px}
.visible-meaning-links>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.visible-meaning-links h2{display:flex;align-items:center;gap:8px;margin:0;font-size:18px;color:#9f1639}
.visible-meaning-links h2 .ui-icon{width:21px;height:21px}
.meaning-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px;align-items:start}
.meaning-pop{position:relative;min-width:0;padding:15px;background:linear-gradient(145deg,#fff,#fff4f6);border:1px solid #e5b8c4;border-radius:20px;box-shadow:0 7px 24px #9d123512,inset 0 1px 1px #fff}
.meaning-pop:before{content:'';position:absolute;top:-7px;left:28px;width:12px;height:12px;background:#fff;border-left:1px solid #e5b8c4;border-top:1px solid #e5b8c4;transform:rotate(45deg)}
.meaning-pop-head{display:grid;grid-template-columns:60px minmax(0,1fr) 32px;align-items:center;gap:10px;padding-bottom:12px}
.meaning-pop-head>.vocabulary-picture{width:60px;height:60px;border-radius:13px;overflow:hidden}
.meaning-pop-head .meaning-pop-image{display:block;width:60px;height:60px;object-fit:cover}
.meaning-pop-label{display:block;color:#8a6070;font-size:10px;font-weight:650;letter-spacing:.3px;margin-bottom:3px}
.meaning-pop-word,.linked-term{display:block;border:0;padding:0;background:none;color:#901331;text-align:left;font:inherit;font-weight:750;line-height:1.35;overflow-wrap:anywhere;white-space:normal;text-decoration:none}
.meaning-pop-word{font-size:17px;cursor:pointer}
.meaning-pop-gloss{display:block;margin-top:4px;color:#64505a;font-size:12px;line-height:1.5}
.meaning-pop-head>.pronunciation,.meaning-link-row>.pronunciation{width:29px;height:29px;min-width:29px}
.meaning-pop-head>.pronunciation .ui-icon,.meaning-link-row>.pronunciation .ui-icon{width:15px;height:15px}
.meaning-pop-rows{display:grid;gap:8px;border-top:1px solid #efd2db;padding-top:11px}
.meaning-link-row{display:grid;grid-template-columns:63px minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 9px;border-radius:12px;background:#ffffffce;min-width:0}
.link-kind{display:grid;justify-items:center;align-content:center;align-self:stretch;gap:2px;border-right:1px solid #eed3dc;padding-right:7px;color:#a2173a;text-align:center}
.link-kind b{font-size:21px;line-height:1;font-weight:700}.link-kind small{font-size:9px;line-height:1.25;font-weight:650}
.linked-expression{min-width:0}.linked-term{font-size:14px}.linked-gloss{display:block;font-size:12px;line-height:1.45;color:#65515a;margin-top:3px;overflow-wrap:anywhere}
[data-link-type="similar"]{background:#ffe8ee;border:1px solid #edc0ce}[data-link-type="similar"] .linked-term{color:#b10834}
[data-link-type="contrast"],[data-link-type="distinction"]{background:#fff7e9;border:1px solid #e8d1a8}[data-link-type="contrast"] .link-kind,[data-link-type="distinction"] .link-kind{color:#805b22;border-right-color:#e6d4b3}
.meaning-callout{position:relative;display:grid;gap:7px;margin:13px 0 2px;padding:10px;background:#fff0f4;border:1px solid #e8becb;border-radius:14px;box-shadow:0 4px 12px #9d123509;grid-column:1/-1;min-width:0;text-align:left}
.meaning-callout:before{content:'';position:absolute;width:9px;height:9px;left:22px;top:-6px;background:#fff0f4;border-left:1px solid #e8becb;border-top:1px solid #e8becb;transform:rotate(45deg)}
.map-scene .meaning-callout .meaning-link-row{grid-template-columns:46px minmax(0,1fr) auto;padding:5px;gap:5px}.map-scene .meaning-callout .linked-term{font-size:12px}.map-scene .meaning-callout .linked-gloss{font-size:10px}.map-scene .meaning-callout .link-kind b{font-size:17px}.map-scene .meaning-callout .link-kind small{font-size:8px}.map-scene .meaning-callout .pronunciation{width:23px;height:23px;min-width:23px}.map-scene .meaning-callout .pronunciation .ui-icon{width:12px;height:12px}
.map-scene .compact-map .meaning-callout{padding:6px;margin-top:10px}.map-scene .compact-map .meaning-link-row{grid-template-columns:32px minmax(0,1fr);gap:4px}.map-scene .compact-map .meaning-link-row>.pronunciation{grid-column:2;justify-self:start}.map-scene .compact-map .linked-term{font-size:11px}.map-scene .compact-map .linked-gloss{font-size:9px}.map-scene .compact-map .link-kind small{font-size:7px}
.card-body>.meaning-callout{margin:18px 0}.study-related{margin:12px 0}.family-toggle{grid-column:1/-1}
@media(max-width:1000px){.meaning-guide-grid{grid-template-columns:1fr}.visible-meaning-links h2{font-size:17px}}
@media(max-width:640px){.visible-meaning-links{margin:12px 0 22px;scroll-margin-top:225px}.visible-meaning-links>header{margin-bottom:16px}.visible-meaning-links>header>.text-button{font-size:11px}.meaning-pop{padding:12px;border-radius:17px}.meaning-guide-grid{gap:20px}.meaning-pop-head{grid-template-columns:48px minmax(0,1fr) 29px;gap:9px}.meaning-pop-head>.vocabulary-picture,.meaning-pop-head .meaning-pop-image{width:48px;height:48px}.meaning-pop-word{font-size:16px}.meaning-link-row{grid-template-columns:55px minmax(0,1fr) auto;padding:7px 6px;gap:7px}.linked-term{font-size:14px}.linked-gloss{font-size:12px}.meaning-pop-gloss{font-size:12px}}
@media(prefers-reduced-motion:reduce){.meaning-pop,.meaning-callout{animation:none;transition:none}}

/* One connected workspace: images, pronunciation and meaning links share each node. */
.map-branch-nav{display:flex;gap:7px;overflow-x:auto;padding:10px 14px;background:#fffafce8;border-bottom:1px solid #ead5df;scrollbar-width:thin}
.map-branch-nav button{flex:0 0 auto;max-width:240px;padding:7px 12px;border:1px solid #ecd4dd;border-radius:20px;background:#fff;color:#8f3952;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;cursor:pointer}
.map-branch-nav button:hover,.map-branch-nav button[aria-pressed=true]{background:#b50930;color:#fff;border-color:#b50930;box-shadow:0 3px 9px #b5093020}
.map-camera-tools .map-read{background:#b50930;color:#fff;border-color:#b50930}
.map-camera-tools .map-read:hover{background:#930a29;color:#fff}
.map-explorer .map-viewport{height:clamp(440px,calc(100dvh - 260px),900px)}
.map-explorer.is-expanded .map-viewport{height:calc(100dvh - 120px)}
.map-scene .subject-branches{gap:52px 38px;padding:42px 12px 12px 34px}
.map-scene .subject-branch .mind-canvas{padding:10px 0 20px}
.map-scene .compact-map>.mind-hub{font-size:15px;padding:9px 17px;box-shadow:0 3px 12px #9e153415}
.map-scene .word-map .mind-groups{gap:32px 18px;padding:36px 0 0 24px}
.map-scene .word-map .mind-group:not(.linked-group) .mind-word{max-width:none;width:100%}
.map-scene .word-map .mind-group.linked-group{flex-direction:column;align-items:stretch;grid-column:auto}
.map-scene .word-map .linked-group .mind-word{width:100%;flex:none}
.map-scene .word-map .map-node,.map-scene .word-map:not(.compact-map) .long-chain .map-node{display:block;min-height:0;padding:13px;border-radius:21px;text-align:left;background:linear-gradient(145deg,#fffffffa,#fff7faf5);box-shadow:inset 0 1px 1px #fff,0 7px 20px #84203d0b}
.map-scene .word-map .node-link,.map-scene .word-map:not(.compact-map) .long-chain .node-link{display:block;font-size:10px;padding:3px 8px;margin:0 0 9px;color:#976173}
.map-scene .word-map .node-main{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:11px;min-width:0}
.map-scene .word-map .node-main>.vocabulary-picture,.map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture{display:block;width:72px;max-width:none;margin:0;border-radius:13px;grid-column:auto;grid-row:auto;overflow:hidden}
.map-scene .word-map .node-main>.vocabulary-picture img,.map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture img{display:block;width:72px;height:86px;object-fit:cover}
.map-scene .node-copy{min-width:0}
.map-scene .word-map .node-word-row,.map-scene .word-map:not(.compact-map) .long-chain .node-word-row{margin:0;gap:7px;align-items:center;flex-wrap:wrap;grid-column:auto;grid-row:auto}
.map-scene .word-map .node-word,.map-scene .word-map:not(.compact-map) .long-chain .node-word{font-size:19px;line-height:1.2;text-align:left;overflow-wrap:anywhere}
.map-scene .word-map .node-ipa{display:block;font-size:11px;line-height:1.45;margin:5px 0;color:#8f7881;overflow-wrap:anywhere}
.map-scene .word-map .node-meaning{display:block;font-size:13px;line-height:1.5;margin:3px 0 0;color:#67525c}
.map-scene .word-map .pronunciation{width:32px;height:32px;min-width:32px}
.map-scene .word-map .pronunciation .ui-icon{width:16px;height:16px}
.map-scene .word-map .meaning-callout{padding:8px;margin:15px 0 0;gap:7px;border-radius:15px;background:#fff0f4}
.map-scene .word-map .meaning-link-row{grid-template-columns:43px minmax(0,1fr) auto;gap:7px;padding:7px;border-radius:10px}
.map-scene .word-map .meaning-link-row>.pronunciation{grid-column:auto;justify-self:auto;width:28px;height:28px;min-width:28px}
.map-scene .word-map .meaning-link-row .linked-term{font-size:15px;line-height:1.35}
.map-scene .word-map .meaning-link-row .linked-gloss{font-size:12px;line-height:1.4}
.map-scene .word-map .meaning-link-row .link-kind b{font-size:21px}
.map-scene .word-map .meaning-link-row .link-kind small{font-size:8px;line-height:1.4}
.map-scene .word-map .family-toggle{font-size:11px;padding:6px 10px}
.map-scene .word-map .mind-connection,.map-scene .word-map .long-chain .mind-connection{flex:0 0 62px;width:100%;min-height:62px;margin:0}
.map-scene .word-map .connection-line{width:2px;height:auto;left:50%;right:auto;top:0;bottom:0}
.map-scene .word-map .connection-line:before{left:-2px;top:0;bottom:auto}
.map-scene .word-map .connection-line:after{left:-2px;right:auto;top:auto;bottom:0}
.map-scene .word-map .mind-connection.flow .connection-line:after{left:-3px;right:auto;top:auto;bottom:2px;transform:rotate(135deg)}
.map-scene .word-map .mind-connection.flow.reverse .connection-line:after{top:2px;bottom:auto;transform:rotate(-45deg)}
.map-scene .word-map .mind-connection details{width:fit-content;max-width:90%;padding:0}
.map-scene .word-map .mind-connection summary{font-size:10px;line-height:1.5;padding:5px 10px;gap:5px;flex-direction:row}
.map-scene .open-branch-button{font-size:11px;margin:18px auto 0}
.map-explorer.portrait-map .map-scene{width:var(--readable-map-width)!important}
.map-explorer.portrait-map .subject-branches{padding:34px 0 8px 17px;gap:42px}
.map-explorer.portrait-map .word-map .mind-groups{grid-template-columns:1fr;padding:32px 0 0 18px;gap:28px}
.map-explorer.portrait-map .word-map .node-main{grid-template-columns:82px minmax(0,1fr)}
.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture,.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture img{width:82px}
.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture img{height:96px}
.map-explorer.portrait-map .word-map .node-word{font-size:21px}
.map-explorer.portrait-map .word-map .node-meaning{font-size:14px}
.map-explorer.portrait-map .word-map .linked-term{font-size:16px}
@media(max-width:640px){.map-gesture-hint{display:none}.map-toolbar{justify-content:center}.map-camera-tools{width:100%;justify-content:space-between}.map-camera-tools .map-read{padding:5px 8px}.map-camera-tools .map-read>svg{display:none}.map-camera-tools .map-fit{font-size:10px}.map-branch-nav{padding:9px;gap:6px}.map-branch-nav button{font-size:11px;padding:7px 10px}.map-explorer .map-viewport{height:clamp(340px,calc(100dvh - 300px),700px)}.map-explorer.is-expanded .map-viewport{height:calc(100dvh - 113px)}}


/* Read at full size by default; the overview is an explicit camera action. */
.map-scene .word-map .map-node,.map-scene .word-map:not(.compact-map) .long-chain .map-node{padding:18px;border-radius:24px}
.map-scene .word-map .node-main{grid-template-columns:128px minmax(0,1fr);gap:18px}
.map-scene .word-map .node-main>.vocabulary-picture,.map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture{width:128px;border-radius:16px;background:#fff}
.map-scene .word-map .node-main>.vocabulary-picture img,.map-scene .word-map:not(.compact-map) .long-chain .vocabulary-picture img{width:128px;height:144px;object-fit:contain}
.map-scene .word-map .node-word,.map-scene .word-map:not(.compact-map) .long-chain .node-word{font-size:26px;line-height:1.25}
.map-scene .word-map .node-ipa{font-size:14px;line-height:1.5;margin:7px 0;color:#7c6570}
.map-scene .word-map .node-meaning{font-size:17px;line-height:1.5;color:#55424c}
.map-scene .word-map .node-link,.map-scene .word-map:not(.compact-map) .long-chain .node-link{font-size:12px;margin-bottom:12px}
.map-scene .word-map .pronunciation{width:44px;height:44px;min-width:44px}
.map-scene .word-map .pronunciation .ui-icon{width:21px;height:21px}
.map-scene .word-map .meaning-callout{padding:12px;margin-top:20px;gap:10px;border-radius:18px}
.map-scene .word-map .meaning-link-row{grid-template-columns:57px minmax(0,1fr) auto;padding:10px;gap:11px;border-radius:13px}
.map-scene .word-map .meaning-link-row .linked-term{font-size:22px;line-height:1.35}
.map-scene .word-map .meaning-link-row .linked-gloss{font-size:16px;line-height:1.5;color:#55424c}
.map-scene .word-map .meaning-link-row .link-kind b{font-size:27px}
.map-scene .word-map .meaning-link-row .link-kind small{font-size:11px}
.map-scene .word-map .meaning-link-row>.pronunciation{width:40px;height:40px;min-width:40px}
.map-scene .word-map .meaning-link-row>.pronunciation .ui-icon{width:20px;height:20px}
.map-scene .word-map .family-toggle{font-size:14px;padding:9px 13px}
.map-scene .compact-map>.mind-hub,.map-scene .mind-hub{font-size:18px}
.map-scene .word-map .mind-connection summary{font-size:13px;padding:6px 12px}
.map-explorer.portrait-map .word-map .node-main{display:block}
.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture{width:100%;margin:0 0 14px}
.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture img{width:100%;height:132px;object-fit:contain}
.map-explorer.portrait-map .word-map .node-word{font-size:25px}
.map-explorer.portrait-map .word-map .node-meaning{font-size:17px}
.map-explorer.portrait-map .word-map .meaning-link-row{grid-template-columns:42px minmax(0,1fr) auto;padding:8px;gap:8px}
.map-explorer.portrait-map .word-map .meaning-link-row .linked-term{font-size:21px}
.map-explorer.portrait-map .word-map .meaning-link-row .linked-gloss{font-size:16px}
.map-explorer.portrait-map .word-map .meaning-link-row .link-kind small{font-size:10px}
.map-explorer.portrait-map .word-map .meaning-callout{padding:8px;margin-top:17px}
.map-explorer.portrait-map .word-map .map-node{padding:15px}
.map-explorer.portrait-map .word-map .meaning-link-row>.pronunciation{width:36px;height:36px;min-width:36px}

.map-scene .compact-map>button.mind-hub:hover{color:#fff}
.map-scene .compact-map>button.mind-hub:hover .ui-icon{filter:brightness(0) invert(1)}

/* A lightweight semantic overview; no cloned cards or duplicate media. */
.map-surface{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;min-width:0}
.has-minimap .map-surface{grid-template-columns:minmax(0,1fr) 211px}
.map-minimap{min-width:0;padding:13px 0;background:linear-gradient(150deg,#fffdfef5,#fff1f6e8);border-left:1px solid #ead1db;position:relative;z-index:2;overflow:auto;max-height:calc(100dvh - 260px)}
.map-minimap>header{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0 12px 8px;color:#941b3b;font-size:12px}
.map-minimap>header>svg{width:15px;height:15px}.map-minimap>header>strong{font-weight:700}
.minimap-current{display:block;flex:1 0 100%;font-size:11px;line-height:1.45;color:#765363;padding-top:3px;overflow-wrap:anywhere;min-height:19px}
.map-minimap .minimap-track{position:relative;display:block;margin:0;padding:0;border:0;background:none;overflow:visible;scrollbar-width:thin;width:210px}
.minimap-drawing{position:absolute;inset:0;width:210px;height:100%;pointer-events:none;overflow:visible}
.minimap-spine{fill:none;stroke:#d59baf;stroke-width:2;stroke-linecap:round}
.minimap-window{fill:#b509300b;stroke:#b50930;stroke-width:1.7;pointer-events:none}
.map-minimap .minimap-track>button{position:absolute;display:flex;align-items:center;gap:6px;width:166px;min-height:33px;max-width:none;margin:0;padding:4px 7px;background:#fff;border:1px solid #e5c0cd;border-radius:9px;color:#825063;text-align:left;white-space:normal;font:600 11px/1.35 system-ui;cursor:pointer;box-shadow:0 2px 5px #8d1b3c08}
.map-minimap .minimap-track>button:before{content:'';position:absolute;left:-11px;top:50%;width:10px;height:1px;background:#d59baf}
.map-minimap .minimap-track>button>i{width:5px;height:5px;border-radius:50%;background:#cf8ba3;flex:0 0 5px}
.map-minimap .minimap-track>button[aria-pressed=true]{background:#b50930;color:#fff;border-color:#b50930;box-shadow:0 3px 8px #b5093025}
.map-minimap .minimap-track>button[aria-pressed=true]>i{background:#fff}
.map-minimap .minimap-track>button:hover{border-color:#b50930;background:#ffe5ee;color:#901331}
.map-minimap .minimap-track>button:focus-visible{outline:2px solid #b50930;outline-offset:3px}
.narrow-map .map-scene .word-map .mind-groups{grid-template-columns:1fr}
.map-explorer.is-expanded .map-minimap{max-height:calc(100dvh - 74px)}
@media(max-width:950px){.has-minimap .map-surface{display:flex;flex-direction:column-reverse}.map-minimap{padding:6px 0 0;border-left:0;border-bottom:1px solid #ead1db;max-height:none;overflow:hidden}.map-minimap>header{padding:0 12px 2px;font-size:10px;gap:5px}.map-minimap>header>svg{width:12px;height:12px}.map-minimap .minimap-current{display:none}.map-minimap .minimap-track{width:100%;overflow-x:auto;overflow-y:hidden;min-height:70px}.horizontal-minimap .minimap-drawing{width:var(--mini-length);height:70px}.map-minimap .minimap-track>button{width:142px;min-height:40px;font-size:11px}.map-minimap .minimap-track>button:before{display:none}.map-explorer.is-expanded .map-minimap{max-height:none}.map-explorer.is-expanded .map-viewport{height:calc(100dvh - 174px)}}

.map-minimap .minimap-track>button[aria-pressed=true]:hover{background:#9d1234;color:#fff}

/* Drag the overview window with a mouse, pen or finger without changing zoom. */
.map-minimap .minimap-window{opacity:0}
.minimap-handle{position:absolute;z-index:3;border:2px solid #b50930;border-radius:9px;background:#b5093009;box-shadow:0 0 0 1px #ffffffb0;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.minimap-handle:focus-visible{outline:3px solid #9e193c;outline-offset:3px;background:#b5093016}
.minimap-grip{position:absolute;right:-9px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:20px;height:26px;border:1px solid #b50930;border-radius:8px;background:#fff;color:#a40e34;box-shadow:0 2px 6px #81142c20;pointer-events:none}
.minimap-grip svg{width:14px;height:14px}
.is-moving-window,.is-moving-window .minimap-handle{cursor:grabbing}
.is-moving-window .minimap-handle{background:#b5093018;box-shadow:0 0 0 2px #fff}
.horizontal-minimap .minimap-grip{right:auto;left:50%;top:auto;bottom:-5px;transform:translateX(-50%);width:26px;height:18px}
.minimap-handle{border-color:transparent;border-left-color:#b50930;border-right-color:#b50930;box-shadow:none}
.minimap-grip{left:-1px;right:auto}
.horizontal-minimap .minimap-handle{border-color:#b50930 transparent}
.horizontal-minimap .minimap-grip{left:50%;right:auto}

/* Keep the overview control available while the main map uses the freed space. */
.map-camera-tools .map-overview-toggle{border:1px solid #e4bbca;background:#fff5f9;gap:5px}
.map-camera-tools .map-overview-toggle[aria-expanded=false]{background:#b50930;color:#fff;border-color:#b50930}
.map-camera-tools .map-overview-toggle[aria-expanded=false]:hover{background:#94102e}
.map-minimap[hidden]{display:none!important}
.has-minimap.overview-hidden .map-surface{grid-template-columns:minmax(0,1fr)}
@media(max-width:950px){.map-overview-toggle>span{display:none}.map-overview-toggle{min-width:32px}.map-explorer.overview-hidden .map-viewport{height:clamp(340px,calc(100dvh - 205px),795px)}}
.map-explorer.overview-hidden.is-expanded .map-viewport{height:calc(100dvh - 74px)}
@media(max-width:950px){.map-camera-tools .map-overview-toggle>span{display:inline;font-size:10px}.map-camera-tools .map-fit>span{display:none}}
@media(max-width:360px){.map-camera-tools .map-overview-toggle svg{display:none}.map-camera-tools .map-read>span{display:none}.map-camera-tools .map-read>svg{display:block}.map-camera-tools .camera-divider{display:none}.map-camera-tools button{min-width:28px}}
@media(min-width:641px) and (max-width:1150px){.map-gesture-hint{display:none}.map-toolbar{justify-content:flex-end}}

/* Keep map actions reachable while the page scrolls past the drawing surface. */
.map-explorer{overflow:clip}
.map-toolbar{position:sticky;top:150px;z-index:15;background:#fffdfdf2;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 4px 12px #74203b0d}
@media(max-width:850px){.map-toolbar{top:210px}}
@media(max-width:640px){.map-toolbar{top:225px}}
.map-explorer.is-expanded .map-toolbar{top:0}

/* Return from a group jump without changing the saved reading zoom. */
.map-camera-tools .map-position-back{border:1px solid #e4bbca;background:#fff5f9;gap:5px}
.map-camera-tools .map-position-back:disabled{opacity:.4;cursor:default;background:transparent;box-shadow:none}
@media(max-width:950px){.map-camera-tools .map-position-back>span{display:none}}
@media(max-width:360px){.map-camera-tools{gap:0}.map-camera-tools .map-position-back{padding:4px;min-width:28px}}

/* Matching back/forward map history controls; compact icons on smaller screens. */
.map-camera-tools .map-position-forward{border:1px solid #e4bbca;background:#fff5f9;gap:5px}
.map-camera-tools .map-position-forward:disabled{opacity:.4;cursor:default;background:transparent;box-shadow:none}
@media(max-width:1150px){.map-camera-tools .map-position-back>span,.map-camera-tools .map-position-forward>span{display:none}}
@media(max-width:360px){.map-camera-tools .map-position-forward{padding:4px;min-width:28px}.map-camera-tools .map-overview-toggle>span{display:none}.map-camera-tools .map-overview-toggle svg{display:block}.map-camera-tools .map-zoom-level{min-width:38px}.map-camera-tools .map-fit{margin:0;padding:4px}}
/* Give every phone control its own clear tap area instead of shrinking labels. */
.map-camera-tools button{flex-shrink:0}
@media(max-width:640px){.map-camera-tools .camera-divider{display:none}.map-camera-tools .map-overview-toggle>span{display:none}.map-camera-tools .map-overview-toggle svg{display:block}}
@media(max-width:360px){.map-camera-tools .map-overview-toggle,.map-camera-tools .map-read{min-width:28px;padding:4px}}

/* One compact study bar above an edge-to-edge map. Side panels never reflow it. */
:root{--study-top:80px;--study-height:54px;--map-top:134px}
.shell{display:block;max-width:none;width:100%;margin:0}
.shell>main{padding:0;margin:0;width:100%;max-width:none;min-width:0}
.study-toolbar{display:flex;align-items:center;gap:12px;position:sticky;top:var(--study-top);z-index:35;min-height:54px;padding:8px 14px;border:1px solid #e6d4dc;border-left:0;border-right:0;background:#fffdfdf0;backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%);box-shadow:0 4px 20px #67122d0a}
.study-toolbar .location-bar{position:static;min-height:0;max-width:280px;flex:0 1 auto;padding:0;margin:0;gap:0;border:0;background:none;backdrop-filter:none}
.study-toolbar #breadcrumbs{font-size:12px;gap:3px;min-width:0;flex-wrap:nowrap;overflow:hidden}
.study-toolbar #breadcrumbs button,.study-toolbar #breadcrumbs>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:185px}
.study-toolbar #breadcrumbs button{font-size:12px;padding:3px}
.study-toolbar .search{flex:1 1 180px;flex-basis:180px;max-width:420px;min-width:90px;border-radius:22px;padding:0 12px;box-shadow:none;background:#f8f4f7;gap:7px}
.study-toolbar .search input{width:100%;padding:8px 0;font-size:13px;min-height:35px}
.study-toolbar .search .ui-icon{width:17px;height:17px}
.topics-toggle{display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;height:36px;padding:6px 11px;border:1px solid #e7cdd8;border-radius:12px;background:#fff5f8;color:#9b193b;font-size:12px;font-weight:600}
.topics-toggle[aria-expanded=true]{background:#b50930;color:#fff;border-color:#b50930}.topics-toggle[aria-expanded=true] .ui-icon{filter:brightness(0) invert(1)}
#map-tools-slot{margin-left:auto;flex:none}
#map-tools-slot:empty{display:none}
#map-tools-slot .map-toolbar{display:block;position:static;padding:0;min-height:0;border:0;box-shadow:none;background:none;backdrop-filter:none}
#map-tools-slot .map-camera-tools{display:flex;gap:10px;width:auto;justify-content:initial}
.camera-history,.camera-zoom{display:flex;align-items:center;gap:0;border:1px solid #e8d4dd;background:#fff7fa;border-radius:12px;overflow:hidden}
#map-tools-slot .map-camera-tools button{display:flex;align-items:center;justify-content:center;border:0;border-radius:0;min-width:34px;width:34px;height:34px;margin:0;padding:6px;background:transparent;color:#981c3d;box-shadow:none}
#map-tools-slot .map-camera-tools button:hover{background:#f8e3ec}
#map-tools-slot .map-camera-tools button:disabled{background:transparent;opacity:.3}
#map-tools-slot .map-camera-tools .map-zoom-level{width:50px;min-width:50px;font-size:12px;background:#fff;}
#map-tools-slot .map-camera-tools svg{width:18px;height:18px}
.study-options{position:relative;flex:none}
.study-options>summary{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;cursor:pointer;height:36px;padding:6px 10px;border:1px solid #e7cdd8;border-radius:12px;background:#fff5f8;color:#9b193b;font-size:12px;font-weight:600}
.study-options>summary::-webkit-details-marker{display:none}
.study-options>summary .ui-icon{width:16px;height:16px;order:2}
.study-options[open]>summary{background:#b50930;color:#fff}.study-options[open]>summary .ui-icon{filter:brightness(0) invert(1);transform:rotate(180deg)}
.study-options.has-filters>summary:after{content:'';width:6px;height:6px;border-radius:50%;background:#b50930;position:absolute;right:4px;top:3px;box-shadow:0 0 0 2px white}
.study-options-content{position:absolute;right:0;top:calc(100% + 10px);width:264px;max-height:calc(100dvh - var(--map-top) - 24px);overflow:auto;padding:15px;border:1px solid #e5cbd7;border-radius:19px;background:#fffcfdf5;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);box-shadow:0 14px 44px #65142f20;text-align:left}
.option-heading{display:block;text-transform:uppercase;font-size:10px;letter-spacing:1px;font-weight:700;color:#a77d8d;margin-bottom:10px}
.study-options .filters{display:grid;grid-template-columns:1fr auto;gap:12px;margin:0;padding:0}
.study-options .status-filter{grid-column:1/-1}.study-options .status-filter select{width:100%;max-width:none;min-height:38px;font-size:12px;border-radius:10px;background:#fff}
.study-options .extra-label,.study-options .hide-label{display:flex;align-items:center;gap:8px;margin:0;padding:0;font-size:12px;min-height:34px}
.study-options .extra-label{grid-column:1/-1}.study-options .hide-label>.ui-icon{width:16px;height:16px}
.study-options .filter-reset{width:32px;height:32px;margin:0}
.study-options .map-view-options{display:grid;gap:3px;border-top:1px solid #ecdde4;margin-top:14px;padding-top:14px}
.map-view-options:empty,#map-options-slot:empty{display:none}
.map-view-options>button,.study-options .back-navigation{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:9px;border:0;border-radius:10px;color:#8c2a48;background:transparent;font-size:12px;text-align:left;box-shadow:none}
.map-view-options>button:hover,.study-options .back-navigation:hover{background:#f9e9f0}
.map-view-options svg{width:18px;height:18px;flex:none}
.study-options .back-navigation{margin-top:10px;border-top:1px solid #ecdde4;border-radius:0}
.atlas-map-mode #home-hero,.atlas-map-mode .workspace-heading,.atlas-map-mode main>footer{display:none!important}
.atlas-map-mode .workspace{margin:0;padding:0;border:0}
.atlas-map-mode .map-explorer{border:0;border-radius:0;box-shadow:none;overflow:clip;scroll-margin-top:var(--map-top)}
.atlas-map-mode .map-surface,.atlas-map-mode .has-minimap .map-surface,.atlas-map-mode .has-minimap.overview-hidden .map-surface{display:block;position:relative}
.atlas-map-mode .map-explorer .map-viewport,.atlas-map-mode .map-explorer.overview-hidden .map-viewport{width:100%;height:calc(100dvh - var(--map-top));min-height:260px;max-height:none;border:0;border-radius:0}
.atlas-map-mode #pagination{margin:0}
body:not(.atlas-map-mode) .workspace,body:not(.atlas-map-mode) main>footer{padding:18px;max-width:1500px;margin:auto}
/* Topic drawer and group overview float at the viewport edges. */
.shell>.sidebar{display:block;position:fixed;left:8px;right:auto;top:calc(var(--map-top) + 8px);bottom:8px;z-index:60;width:230px;max-width:calc(100vw - 54px);max-height:none;padding:14px 10px;border:1px solid #e1c6d3;border-radius:18px;background:#fffcf2e8;background:#fffcfdf0;backdrop-filter:blur(26px) saturate(135%);-webkit-backdrop-filter:blur(26px) saturate(135%);box-shadow:6px 8px 30px #64112f16;overflow:auto;transform:translateX(calc(-100% - 16px));visibility:hidden;transition:transform .22s ease,visibility .22s}
.shell>.sidebar.is-open{transform:translateX(0);visibility:visible}
.side-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:0 6px 12px;gap:10px}
.side-panel-heading .side-title{display:block;margin:0;padding:0;font-size:10px}
.side-panel-heading button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:9px;background:#f7eaf0}
.sidebar #topics{display:block;overflow:visible;max-width:100%}
.sidebar .topic{width:100%;display:flex;white-space:normal;min-height:41px;font-size:12px;margin:3px 0;padding:9px 10px;gap:9px;background:transparent;border-color:transparent;border-radius:11px}
.sidebar .topic.active{background:#fff0f5;border-color:#e0b8c8}
.sidebar .topic .count{font-size:10px;margin-left:auto}
.sidebar .topic .ui-icon{width:18px;height:18px}.sidebar .side-progress{display:grid;margin-top:18px;padding:14px 8px 0}
.map-explorer .map-minimap,.map-explorer.is-expanded .map-minimap{display:block;position:fixed;left:auto;right:8px;top:calc(var(--map-top) + 8px);bottom:auto;z-index:45;width:224px;max-width:calc(100vw - 60px);max-height:calc(100dvh - var(--map-top) - 16px);padding:15px 0 12px;border:1px solid #e1c6d3;border-radius:18px;background:#fffcf2e8;background:#fffcfdf0;backdrop-filter:blur(26px) saturate(135%);-webkit-backdrop-filter:blur(26px) saturate(135%);box-shadow:-6px 8px 30px #64112f16;overflow:auto}
.map-explorer .map-minimap>header{padding:0 12px 8px;font-size:12px}.map-explorer .map-minimap .minimap-current{display:block;min-height:0;font-size:11px}
.map-explorer .map-minimap .minimap-track{display:block;width:210px;overflow:visible;min-height:0;max-height:none}
.map-explorer .map-minimap .minimap-track>button{width:166px;min-height:33px;font-size:11px}.map-explorer .map-minimap .minimap-track>button:before{display:block}
.map-explorer .overview-edge-toggle{position:fixed;right:240px;top:calc(var(--map-top) + 14px);z-index:46;display:flex;align-items:center;justify-content:center;gap:5px;min-width:36px;height:36px;padding:7px 9px;border:1px solid #e0b8c8;border-radius:12px;background:#fff9fceF;color:#9b193b;box-shadow:0 4px 16px #75143114;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.overview-edge-toggle svg{width:18px;height:18px}.overview-edge-toggle>span{display:none}
.map-explorer .overview-edge-toggle[aria-expanded=false]{right:8px;background:#b50930;color:#fff}.overview-edge-toggle[aria-expanded=false]>span{display:inline;font-size:11px;font-weight:600}
.atlas-map-mode .map-explorer.is-expanded{inset:0;border:0;border-radius:0;z-index:50}
.map-explorer.is-expanded .study-toolbar{position:relative;top:0;border-radius:0}
.atlas-map-mode .map-explorer.is-expanded .map-viewport{height:calc(100dvh - var(--study-height))}
.map-explorer.is-expanded .map-minimap{z-index:65}.map-explorer.is-expanded .overview-edge-toggle{z-index:66}
@media(max-width:900px){.study-toolbar{gap:8px;padding:7px 10px}.study-toolbar .location-bar{max-width:180px}.study-toolbar #breadcrumbs .crumb-chevron,.study-toolbar #breadcrumbs>button:first-child:not(:last-child){display:none}.study-toolbar #breadcrumbs button{max-width:155px}.topics-toggle>span{display:none}.topics-toggle{width:36px;padding:7px}}
@media(max-width:640px){.study-toolbar{gap:7px;flex-wrap:wrap;min-height:0;padding:7px 9px}.study-toolbar .location-bar{flex:1;max-width:none}.study-toolbar #breadcrumbs button{font-size:11px;max-width:185px}.study-toolbar .search{order:3;flex:1 1 100%;max-width:none;height:33px}.study-toolbar .search input{min-height:30px;padding:5px 0;font-size:12px}.study-options>summary{height:34px;width:34px;min-width:34px;padding:7px}.study-options>summary>span{display:none}#map-tools-slot .map-camera-tools{gap:6px}#map-tools-slot .map-camera-tools button{width:29px;min-width:29px;height:32px;padding:5px}#map-tools-slot .map-camera-tools .map-zoom-level{width:44px;min-width:44px;font-size:11px}#map-tools-slot .map-camera-tools svg{width:16px;height:16px}.camera-history,.camera-zoom{border-radius:10px}.topics-toggle{height:34px;width:32px;min-width:32px}.study-toolbar .location-bar{margin:0;padding:0;min-height:0}.study-toolbar #breadcrumbs .ui-icon{width:16px;height:16px}.study-options-content{right:0;width:250px}.map-explorer .map-minimap{width:210px}.map-explorer .overview-edge-toggle{right:226px}.shell>.sidebar{width:224px}.sidebar .side-progress{display:grid}}
@media(max-width:380px){.study-toolbar{gap:4px;padding:6px}.study-toolbar .location-bar{max-width:58px}.study-toolbar #breadcrumbs button{max-width:58px}.study-toolbar #breadcrumbs .ui-icon{display:none}#map-tools-slot .map-camera-tools{gap:4px}#map-tools-slot .map-camera-tools button{width:27px;min-width:27px}#map-tools-slot .map-camera-tools .map-zoom-level{width:40px;min-width:40px}}
@media(prefers-reduced-motion:reduce){.shell>.sidebar{transition:none}}
.study-toolbar{margin-top:6px;z-index:75}
.shell>.sidebar{align-self:auto;height:calc(100dvh - var(--map-top) - 16px);bottom:auto;margin:0}
.map-explorer.is-expanded .study-toolbar{margin-top:0}
.map-explorer .map-minimap{overflow-x:hidden;overflow-y:auto}
.study-options-content{background:#fffcfdfa}
.camera-history button:focus-visible,.camera-zoom button:focus-visible{outline-offset:-3px}

/* Desktop follows wide horizontal branches; phones keep the vertical reading map. */
.landscape-map .map-scene>.mind-canvas{padding:16px 24px 24px}
.landscape-map .subject-map>.mind-hub{margin:0 0 0 24px}
.landscape-map .map-scene .subject-branches{display:flex;align-items:flex-start;gap:64px;width:max-content;padding:30px 12px 12px 18px}
.landscape-map .subject-branch{flex:none;width:max-content}
.landscape-map .subject-branch>.mind-canvas{width:max-content;padding:0}
.landscape-map .word-map>.mind-hub{margin-left:150px;margin-right:auto;max-width:390px}
.landscape-map .map-scene .word-map .mind-groups{display:grid;grid-auto-flow:row;grid-template-rows:repeat(2,max-content);grid-auto-columns:max-content;grid-template-columns:repeat(var(--group-columns,1),max-content);align-items:start;justify-items:start;gap:36px 36px;width:max-content;padding:30px 0 0 18px}
.landscape-map .map-scene .word-map .mind-group,.landscape-map .map-scene .word-map .mind-group.linked-group{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;grid-column:auto;width:max-content;max-width:none}
.landscape-map .map-scene .word-map .mind-word,.landscape-map .map-scene .word-map .mind-group:not(.linked-group) .mind-word,.landscape-map .map-scene .word-map .linked-group .mind-word{width:400px;max-width:400px;flex:0 0 400px}
.landscape-map .map-scene .word-map .mind-connection,.landscape-map .map-scene .word-map .long-chain .mind-connection{flex:0 0 96px;width:96px;min-height:80px;align-self:center}
.landscape-map .map-scene .word-map .connection-line{width:auto;height:2px;left:-1px;right:-1px;top:50%;bottom:auto}
.landscape-map .map-scene .word-map .connection-line:before{left:0;top:-2px;bottom:auto}
.landscape-map .map-scene .word-map .connection-line:after{left:auto;right:0;top:-2px;bottom:auto}
.landscape-map .map-scene .word-map .mind-connection.flow .connection-line:after{left:auto;right:1px;top:-3px;bottom:auto;transform:rotate(45deg)}
.landscape-map .map-scene .word-map .mind-connection.flow.reverse .connection-line:after{left:1px;right:auto;top:-3px;bottom:auto;transform:rotate(-135deg)}
.landscape-map .map-scene .word-map .mind-connection details{width:100%;max-width:100%;padding:0 6px}
.landscape-map .map-scene .word-map .mind-connection summary{padding:6px;font-size:11px;flex-direction:column;text-align:center}
.landscape-map .map-scene .word-map .mind-connection details p{max-width:300px}

/* One card anatomy: role/audio header, illustration, word, IPA, then meaning. */
.map-scene .word-map .map-node>.node-link{height:26px;min-height:26px;max-width:calc(100% - 56px);margin:0 0 30px;display:flex;align-items:center;width:fit-content}
.map-scene .word-map .map-node>.pronunciation{position:absolute;top:18px;right:18px;margin:0;width:44px;height:44px;min-width:44px}
.map-scene .word-map .node-main{align-items:start;min-height:144px}
.map-scene .word-map .node-copy{align-self:start;padding:0}
.map-scene .word-map .node-word-row,.map-scene .word-map:not(.compact-map) .long-chain .node-word-row{display:block;margin:0;min-height:33px}
.map-scene .word-map .node-word,.map-scene .word-map:not(.compact-map) .long-chain .node-word{display:block;white-space:nowrap;overflow-wrap:normal;word-break:normal;max-width:none;font-size:26px;line-height:33px}
.map-scene .word-map .node-ipa{margin:7px 0;min-height:21px}
.map-scene .word-map .node-meaning{margin:0;min-height:51px}
.map-scene .word-map .meaning-link-row{grid-template-columns:57px minmax(0,1fr) 40px}
.map-scene .word-map .meaning-link-row .linked-term{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.landscape-map .map-scene .word-map .mind-word,.landscape-map .map-scene .word-map .mind-group:not(.linked-group) .mind-word,.landscape-map .map-scene .word-map .linked-group .mind-word{width:480px;max-width:480px;flex:0 0 480px}
/* Portrait cards use the same fixed audio corner, with the image above the word. */
.map-explorer.portrait-map .word-map .node-main{display:block}
.map-explorer.portrait-map .word-map .map-node>.pronunciation{top:15px;right:15px}
.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture{height:144px;margin:0 0 14px}
.map-explorer.portrait-map .word-map .node-main>.vocabulary-picture img{height:144px}
.map-explorer.portrait-map .word-map .node-word{font-size:25px}
.map-explorer.portrait-map .word-map .meaning-link-row{grid-template-columns:minmax(0,1fr) 36px;gap:8px}
.map-explorer.portrait-map .word-map .meaning-link-row .link-kind{grid-column:1;grid-row:1;display:flex;align-items:center;gap:6px;border:0;padding:0;justify-content:start}
.map-explorer.portrait-map .word-map .meaning-link-row .link-kind b{font-size:21px}
.map-explorer.portrait-map .word-map .meaning-link-row .link-kind small{font-size:11px}
.map-explorer.portrait-map .word-map .meaning-link-row>.pronunciation{grid-column:2;grid-row:1}
.map-explorer.portrait-map .word-map .meaning-link-row .linked-expression{grid-column:1/-1;grid-row:2}
.map-explorer.portrait-map .word-map .mind-groups{padding-left:12px;padding-right:0}
.map-explorer.portrait-map .subject-branch>.mind-canvas{padding-left:0;padding-right:0}

/* Keep the full phone width for vocabulary instead of nested tree gutters. */
.map-explorer.portrait-map .map-scene>.mind-canvas{padding-left:0;padding-right:0}
.map-explorer.portrait-map .map-scene .subject-branches{padding-left:0;padding-right:0}
.map-explorer.portrait-map .word-map .mind-groups{padding-left:0;padding-right:0}

.map-explorer.portrait-map .word-map .map-node{padding:14px}
.map-explorer.narrow-map:not(.portrait-map) .word-map .node-main{grid-template-columns:120px minmax(0,1fr)}
.map-explorer.narrow-map:not(.portrait-map) .word-map .node-main>.vocabulary-picture,.map-explorer.narrow-map:not(.portrait-map) .word-map .node-main>.vocabulary-picture img{width:120px}

/* Share the tallest content tracks across the visible map; retain every link. */
.map-scene .word-map .map-node,.map-scene .word-map:not(.compact-map) .long-chain .map-node{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:56px var(--card-main-height,auto) var(--card-links-height,auto) var(--card-family-height,auto);gap:0;align-content:start}
.map-scene .word-map .map-node>.node-link{grid-column:1;grid-row:1;align-self:start}
.map-scene .word-map .map-node>.node-main{grid-column:1;grid-row:2;align-self:start}
.map-scene .word-map .map-node>.meaning-callout{grid-column:1;grid-row:3;align-self:start}
.map-scene .word-map .meaning-link-row{min-height:var(--card-link-row-height,0px)}
.map-scene .word-map .map-node>.family-toggle{grid-column:1;grid-row:4;align-self:start}
.map-scene .word-map .meaning-link-row .linked-expression{align-self:start}

/* Approved wide artwork and word-by-word pronunciation, shared by map and list cards. */
#content .wide-vocabulary-card{display:block;padding:0;border-radius:27px;overflow:hidden;border:1px solid #e9c5d2;background:linear-gradient(140deg,#fffffff5,#fff9fcf7);box-shadow:0 10px 32px #771e380d,inset 0 1px 0 #fff}
#content .wide-vocabulary-card>.vocabulary-picture{display:block;width:100%;max-width:none;aspect-ratio:2/1;margin:0;padding:0;border-radius:0;background:#f4ebee;grid-column:auto;grid-row:auto}
#content .wide-vocabulary-card>.vocabulary-picture img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;background:transparent}
#content .wide-vocabulary-card .node-body{padding:24px 26px 28px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--card-role-height,auto) var(--card-main-height,auto) var(--card-links-height,auto) var(--card-family-height,auto);gap:0}
#content .wide-vocabulary-card .node-role{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;min-height:26px}
#content .wide-vocabulary-card .node-link{display:block;position:static;width:fit-content;max-width:100%;height:auto;min-height:0;padding:4px 9px;margin:0;font-size:11px;font-weight:500;line-height:1.4;color:#a45770;background:#fff0f5;border:1px solid #edceda;border-radius:20px}
#content .wide-vocabulary-card .node-main{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:16px;align-items:start;grid-column:1;grid-row:2;align-self:start;min-height:0;margin:0}
#content .wide-vocabulary-card .node-copy{min-width:0;padding:0;align-self:start}
#content .wide-vocabulary-card .node-main>.pronunciation{position:static;align-self:start;width:46px;height:46px;min-width:46px;margin:0;padding:0}
#content .wide-vocabulary-card .node-main>.pronunciation .ui-icon{width:22px;height:22px}
#content .wide-vocabulary-card .node-meaning{display:block;font-size:20px;line-height:1.45;min-height:58px;margin:15px 0 0;color:#604955}
#content .wide-vocabulary-card .meaning-callout{grid-column:1;grid-row:3;align-self:start;margin-top:20px}
#content .wide-vocabulary-card .family-toggle{grid-column:1;grid-row:4;align-self:start}
#content .wide-vocabulary-card .card-footer{grid-column:1;grid-row:5;margin-top:18px}
#content .landscape-map .word-map .mind-word,#content .landscape-map .word-map .mind-group:not(.linked-group) .mind-word,#content .landscape-map .word-map .linked-group .mind-word{width:560px;max-width:560px;flex:0 0 560px}
.word-group{min-width:0}
.aligned-vocabulary{display:inline-grid;grid-template-columns:repeat(var(--word-count,1),max-content);column-gap:.32em;align-items:start;white-space:nowrap;width:max-content;max-width:none;font-size:32px;line-height:1.18;letter-spacing:-.8px;font-weight:720;color:#302731;text-align:center;padding:0;margin:0;background:transparent;border:0}
.word-pair{display:grid;grid-template-rows:auto auto;justify-items:center;row-gap:8px;white-space:nowrap}
.word-pair .english-word{display:block;white-space:nowrap}
.word-pair .word-ipa{display:block;font-size:.82em;line-height:1.3;letter-spacing:0;font-weight:400;white-space:nowrap;color:#856876}
#content .wide-vocabulary-card .node-word{display:inline-grid;grid-template-columns:repeat(var(--word-count,1),max-content);font-size:32px;line-height:1.18;letter-spacing:-.8px;max-width:none;overflow-wrap:normal;word-break:normal;white-space:nowrap}
#content>.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:24px;align-items:stretch}
.study .study-body>.vocabulary-picture{display:block;width:100%;max-width:100%;aspect-ratio:2/1;margin:0 0 24px;border-radius:20px;overflow:hidden}
.study .study-body>.vocabulary-picture img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:contain}
.study .study-word{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:16px;align-items:start;text-align:left;margin:0 0 18px}
.study .study-word .pronunciation{width:46px;height:46px}
#detail .word-media-hero{display:block}
#detail .word-detail-image{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;border-radius:20px;margin:0 0 22px}
#detail .detail-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
#detail .detail-heading .detail-tools{display:flex;gap:8px;margin:0}
#detail .detail-heading .pronunciation{width:46px;height:46px}
#detail .detail-term{font-size:32px}
@media(max-width:640px){
 #content .wide-vocabulary-card{border-radius:23px}
 #content .wide-vocabulary-card .node-body{padding:20px 19px 23px}
 #content .wide-vocabulary-card .node-role{margin-bottom:12px}
 #content .wide-vocabulary-card .node-main{grid-template-columns:minmax(0,1fr) 42px;gap:12px}
 #content .wide-vocabulary-card .node-main>.pronunciation{width:42px;height:42px;min-width:42px}
 #content .wide-vocabulary-card .node-word,.aligned-vocabulary,#detail .detail-term{font-size:24px}
 #content .wide-vocabulary-card .node-meaning{font-size:19px;margin-top:13px;min-height:55px}
 .study .study-word{grid-template-columns:minmax(0,1fr) 42px;gap:12px}
 .study .study-word .pronunciation{width:42px;height:42px}
}
@media(max-width:420px){
 #content .wide-vocabulary-card .node-body{padding-left:12px;padding-right:12px}
 #detail .detail-heading .detail-tools{flex-direction:column;align-items:center}
}

/* Related vocabulary carries its own picture, word-aligned IPA and translation. */
#content .meaning-link-row.illustrated-link,#detail .meaning-link-row.illustrated-link{
 display:grid;grid-template-columns:112px minmax(0,1fr) 40px;grid-template-rows:56px auto;
 align-items:center;gap:13px 14px;padding:14px;border-radius:15px;
}
#content .illustrated-link>.linked-image,#detail .illustrated-link>.linked-image{
 display:block;grid-column:1;grid-row:1;width:112px;height:56px;aspect-ratio:2/1;object-fit:contain;border-radius:9px;background:#fff;
}
#content .illustrated-link>.link-kind,#detail .illustrated-link>.link-kind{
 grid-column:2;grid-row:1;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:7px;border:0;padding:0;text-align:left;
}
#content .illustrated-link>.link-kind b,#detail .illustrated-link>.link-kind b{font-size:24px}
#content .illustrated-link>.link-kind small,#detail .illustrated-link>.link-kind small{font-size:12px}
#content .illustrated-link>.pronunciation,#detail .illustrated-link>.pronunciation{grid-column:3;grid-row:1;width:40px;height:40px;min-width:40px;justify-self:end;position:static}
#content .illustrated-link>.linked-expression,#detail .illustrated-link>.linked-expression{grid-column:1/-1;grid-row:2;align-self:start;min-width:0}
#content .illustrated-link .linked-term,#detail .illustrated-link .linked-term{
 display:inline-grid;grid-template-columns:repeat(var(--word-count,1),max-content);font-size:24px;line-height:1.18;letter-spacing:-.4px;font-weight:720;white-space:nowrap;overflow-wrap:normal;word-break:normal;
}
#content .illustrated-link .word-pair,#detail .illustrated-link .word-pair{row-gap:5px}
#content .illustrated-link .word-ipa,#detail .illustrated-link .word-ipa{font-size:.82em}
#content .illustrated-link .linked-gloss,#detail .illustrated-link .linked-gloss{font-size:18px;line-height:1.45;margin-top:10px;color:#65515a}
@media(max-width:640px){
 #content .meaning-link-row.illustrated-link,#detail .meaning-link-row.illustrated-link{grid-template-columns:88px minmax(0,1fr) 36px;grid-template-rows:44px auto;gap:12px 9px;padding:11px}
 #content .illustrated-link>.linked-image,#detail .illustrated-link>.linked-image{width:88px;height:44px}
 #content .illustrated-link>.pronunciation,#detail .illustrated-link>.pronunciation{width:36px;height:36px;min-width:36px}
 #content .illustrated-link>.link-kind,#detail .illustrated-link>.link-kind{gap:5px}
 #content .illustrated-link>.link-kind b,#detail .illustrated-link>.link-kind b{font-size:21px}
 #content .illustrated-link>.link-kind small,#detail .illustrated-link>.link-kind small{font-size:10px}
 #content .illustrated-link .linked-term,#detail .illustrated-link .linked-term{font-size:22px}
 #content .illustrated-link .linked-gloss,#detail .illustrated-link .linked-gloss{font-size:16px}
}
#content .illustrated-link .audio-origin,#detail .illustrated-link .audio-origin{display:block;font-size:11px;line-height:1.4;color:#8b6878;margin-top:7px}

/* A compact, two-dimensional desktop map instead of an endless horizontal strip. */
.balanced-map .map-scene .subject-branches{
 display:flex;flex-wrap:wrap;align-content:flex-start;
 align-items:start;gap:56px 48px;width:var(--topic-width,max-content);padding:42px 0 20px 30px;box-sizing:content-box;
}
.balanced-map .map-scene .subject-branch{width:max-content;max-width:none}
.balanced-map .map-scene .word-map .mind-groups{
 display:grid;grid-template-columns:repeat(var(--cluster-columns,3),560px);
 grid-template-rows:none;grid-auto-rows:max-content;grid-auto-flow:row;
 align-items:start;justify-items:start;gap:32px 64px;width:max-content;padding:36px 0 0 18px;
}
.balanced-map .map-scene .word-map .mind-group,
.balanced-map .map-scene .word-map .mind-group.linked-group{
 grid-column:span var(--group-span,1);width:max-content;max-width:none;
 display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;
}
.balanced-map .map-scene .word-map>.mind-hub{margin-left:150px;margin-right:auto}

/* Meaning-bound, short artwork cues. The wide photograph remains stationary. */
.artwork-frame{display:block;position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;isolation:isolate}
.artwork-frame>img{display:block;width:100%;height:100%;object-fit:cover}
.semantic-effect{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit}
.semantic-effect svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 1px #fff)}
.semantic-effect path,.semantic-effect ellipse{fill:none;stroke:#c20b3b;stroke-width:2.4px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.semantic-effect .motion-trace,.semantic-effect .motion-route,.semantic-effect .motion-arrow{stroke-dasharray:100;animation:semantic-trace var(--motion-ms) ease both}
.semantic-effect .motion-scan{animation:semantic-scan var(--motion-ms) ease both;transform-box:view-box}
.semantic-effect .motion-stage{fill:#fff5f8;animation:semantic-stage calc(var(--motion-ms)/2) ease both;animation-delay:calc(var(--stage)*260ms)}
.semantic-effect .motion-sound{animation:semantic-stage 900ms ease 2}
.semantic-effect .motion-ripple{animation:semantic-ripple 1300ms ease-out both;animation-delay:calc(var(--stage)*220ms)}
.linked-picture{display:block;width:112px;height:56px;min-height:0;overflow:hidden;border-radius:9px;grid-column:1;grid-row:1}
.linked-picture .linked-image{width:100%;height:100%;object-fit:cover}
@keyframes semantic-trace{0%{stroke-dashoffset:100;opacity:0}18%{opacity:1}70%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@keyframes semantic-scan{0%{transform:translateY(0);opacity:0}15%{opacity:.95}80%{transform:translateY(var(--scan-distance));opacity:.95}100%{transform:translateY(var(--scan-distance));opacity:0}}
@keyframes semantic-stage{0%,100%{opacity:0}25%,75%{opacity:.9}}
@keyframes semantic-ripple{0%{opacity:0;scale:.65}20%{opacity:.8}100%{opacity:0;scale:1.3}}
@media(prefers-reduced-motion:reduce){.semantic-effect{display:none!important}.semantic-effect *{animation:none!important}}

@media(max-width:599px){.linked-picture{width:88px;height:44px}}
#detail .word-media-hero>.vocabulary-picture{display:block;width:100%;aspect-ratio:2/1;padding:0;border-radius:20px;overflow:hidden}
#pronunciation-voice{font:inherit;padding:9px 13px;border:1px solid #ebcbd8;border-radius:10px;background:#fff;color:#a10832}
.linked-picture{padding:0;border:0;background:transparent;cursor:pointer}

/* Related words get a readable image panel rather than a tiny thumbnail. */
#content .meaning-link-row.illustrated-link,#detail .meaning-link-row.illustrated-link{
 grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:auto auto auto;
 gap:14px 12px;min-height:0;
}
#content .illustrated-link>.linked-picture,#detail .illustrated-link>.linked-picture{
 grid-column:1/-1;grid-row:1;width:100%;height:auto;aspect-ratio:2/1;
 border-radius:11px;
}
#content .illustrated-link>.link-kind,#detail .illustrated-link>.link-kind{grid-column:1;grid-row:2}
#content .illustrated-link>.pronunciation,#detail .illustrated-link>.pronunciation{grid-column:2;grid-row:2}
#content .illustrated-link>.linked-expression,#detail .illustrated-link>.linked-expression{grid-column:1/-1;grid-row:3}
/* Keep the word/IPA anatomy; each card ends after its own content. */
#content .wide-vocabulary-card .node-body{grid-template-rows:var(--card-role-height,auto) auto auto auto;align-content:start}
#content .wide-vocabulary-card .node-meaning{min-height:0}
#content .meaning-link-row{min-height:0}
#content>.grid{align-items:start}
.balanced-map .map-scene .word-map .mind-connection,.balanced-map .map-scene .word-map .long-chain .mind-connection{flex-basis:64px;width:64px}
@media(max-width:640px){
 #content .meaning-link-row.illustrated-link,#detail .meaning-link-row.illustrated-link{grid-template-columns:minmax(0,1fr) 36px;grid-template-rows:auto auto auto;gap:12px 9px}
}

/* A small, saved reward counter and short physical press feedback. */
.header-actions{display:flex;align-items:center;gap:12px;flex:none}
.image-star-counter{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:4px 12px;border:1px solid #efd093;border-radius:24px;background:linear-gradient(#fffdf7,#fff8e9);color:#8a5500;box-shadow:inset 0 1px 1px #fff,0 2px 7px #61001912;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1}
.image-star-counter>svg{width:26px;height:26px;color:#ffcd3e;flex:none}
.image-star-counter.star-arrived>svg{animation:atlas-star-arrival .45s ease-out}
.map-explorer>.image-star-counter.map-star-counter{position:absolute;bottom:16px;left:16px;z-index:12;box-shadow:0 4px 18px #57232a20}
#image-star-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:10010}
.image-star-flight{position:absolute;display:block;width:28px;height:28px;color:#ffcd3e;filter:drop-shadow(0 2px 3px #b56e1a50);animation:atlas-star-flight .75s cubic-bezier(.22,.05,.32,1) both}
.image-star-flight svg{display:block;width:100%;height:100%}
.image-star-flight small{position:absolute;left:25px;top:-4px;font-size:16px;font-weight:800;color:#895000;text-shadow:0 1px #fff}
/* Every playable picture shares the hand cursor, including its artwork layers. */
:is(.vocabulary-picture,.linked-picture):not(:disabled),:is(.vocabulary-picture,.linked-picture):not(:disabled) *{cursor:pointer}
:is(.wide-vocabulary-card,.meaning-link-row.illustrated-link,.study-primary-card,.study-related-pane,.word-detail){transition:transform 90ms ease-out,filter 90ms ease-out,box-shadow 90ms ease-out}
.tactile-pressed{transform:perspective(1000px) translateY(3px) rotateX(var(--press-rx,0deg)) rotateY(var(--press-ry,0deg)) scale(.98);filter:brightness(.98);box-shadow:inset 0 3px 9px #840d2e18,0 2px 5px #840d2e14!important}
@keyframes atlas-star-flight{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}15%{opacity:1}40%{opacity:1;transform:translate(calc(-50% + var(--star-x)*.3),calc(-50% + var(--star-y)*.3 - 30px)) scale(1.15) rotate(-15deg)}100%{opacity:0;transform:translate(calc(-50% + var(--star-x)),calc(-50% + var(--star-y))) scale(.5) rotate(30deg)}}
@keyframes atlas-star-arrival{45%{transform:scale(1.3)}100%{transform:scale(1)}}
@media(max-width:640px){.header-actions{margin-left:auto;gap:7px}.image-star-counter{min-height:30px;padding:3px 8px;gap:4px;font-size:15px}.image-star-counter>svg{width:22px;height:22px}}
@media(max-width:360px){.header-actions{gap:5px}.header-actions .header-help{width:27px;height:27px}.image-star-counter{padding:3px 6px;font-size:14px}.image-star-counter>svg{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){:is(.wide-vocabulary-card,.meaning-link-row.illustrated-link,.study-primary-card,.study-related-pane,.word-detail){transition:none}.tactile-pressed{transform:none;filter:none}.image-star-flight,.image-star-counter.star-arrived>svg{animation:none}}

/* Readable Vietnamese across the vocabulary, meaning bubbles and practice. */
#content .wide-vocabulary-card .node-meaning,#detail .meaning,
#content .meaning-link-row .linked-gloss,#detail .meaning-link-row .linked-gloss,
#content .study-meaning{font-size:22px;font-weight:550;line-height:1.45;color:#4b3a43}

/* One connected study board, with answers directly beneath the pair. */
body:has(#content .connected-study) .workspace{padding:8px 0}
body:not(.atlas-map-mode) #content:has(.connected-study){padding:8px 14px 0;scroll-margin-top:calc(var(--map-top) + 8px)}
.study.connected-study{max-width:1120px;border-radius:22px;scroll-margin-top:calc(var(--map-top) + 8px)}
.connected-study .study-bar{min-height:38px;padding:5px 14px;gap:12px}
.study-branch-link{font-size:12px;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:none;border:0;color:#8c3a56;padding:4px 0}
.connected-study .study-bar>.icon-button{width:30px;height:30px;flex:none}
.connected-study .session-line{display:flex;align-items:center;gap:9px;margin:0 0 0 auto;max-width:none;font-size:12px;flex:none}
.connected-study .session-track{width:66px;flex:none}
.connected-study .session-line .text-button{padding:4px;min-width:28px}
.connected-study .study-body{padding:10px 12px 12px;text-align:left}
.study-deck-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:33px;margin-bottom:8px}
.study-deck-chips{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;align-items:center}
.study-deck-chips button{border:1px solid #e8c9d5;background:#fff8fb;border-radius:20px;padding:5px 11px;white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#94304d;min-height:30px;flex:none}
.study-deck-chips button[aria-pressed=true]{background:#b50930;color:white;border-color:#b50930}
.study-deck-arrows{display:flex;align-items:center;gap:7px;flex:none}
.study-deck-arrows button{display:grid;place-items:center;width:30px;height:30px;padding:5px;border:1px solid #e8c9d5;border-radius:10px;background:#fff7fa;color:#a30a36}
.study-deck-arrows .ui-icon{width:17px;height:17px}
.study-page-count{font-size:12px;font-variant-numeric:tabular-nums;color:#85475d;white-space:nowrap;min-width:34px;text-align:center}
.study-pair{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:8px;position:relative;align-items:start;min-width:0}
.single-study .study-pair{grid-template-columns:minmax(0,1fr);max-width:580px;margin:auto}
.study-pane{min-width:0;position:relative}
.study-primary-card,.study-related-pane{border:1px solid #e8c9d5;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 4px 16px #71133408}
.study-primary-card>.vocabulary-picture{display:block;width:100%;max-width:420px;aspect-ratio:2/1;margin:0 auto;padding:0;border:0;border-radius:0;overflow:hidden;background:transparent}
.study-primary-card>.vocabulary-picture img,.connected-study .linked-picture img{display:block;width:100%;height:100%!important;aspect-ratio:2/1;object-fit:contain}
.study-primary-copy{padding:12px 14px}
.connected-study .study-word{grid-template-columns:minmax(0,1fr) 42px;gap:10px;margin:0;align-items:start}
.connected-study .study-word .pronunciation{width:42px;height:42px;min-width:42px}
.connected-study .study-term{font-size:30px}
#content .connected-study .study-meaning{margin:8px 0 0}
.study-pair-bridge{align-self:center;justify-self:center;display:grid;place-items:center;width:28px;height:34px;border-radius:20px;border:1px solid #e9c4d3;background:#fff4f8;color:#ad123f;font-size:23px;position:relative}
.study-pair-bridge:before,.study-pair-bridge:after{content:'';position:absolute;top:50%;width:9px;height:1px;background:#d59bae}
.study-pair-bridge:before{right:100%}.study-pair-bridge:after{left:100%}
.study-related-stack{min-width:0}
.study-related-pane:not(.is-active){display:none}
#content .connected-study .study-related-pane>.meaning-link-row{border:0;box-shadow:none;margin:0;border-radius:0;background:#fff7fa;padding:10px 12px;gap:8px 10px}
#content .connected-study .illustrated-link>.linked-picture{max-width:420px;margin:0 auto;border-radius:12px}
#content .connected-study .illustrated-link .linked-term{font-size:27px}
#content .connected-study .meaning-link-row:not(.illustrated-link){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:12px;padding:16px}
#content .connected-study .meaning-link-row:not(.illustrated-link) .link-kind{display:flex;align-items:center;justify-content:flex-start;gap:8px;grid-column:1;grid-row:1;border:0;text-align:left}
#content .connected-study .meaning-link-row:not(.illustrated-link) .linked-expression{grid-column:1;grid-row:2;min-width:0}
#content .connected-study .meaning-link-row:not(.illustrated-link) .linked-term{display:block;width:max-content;max-width:none;white-space:nowrap;font-size:27px;line-height:1.2}
#content .connected-study .illustrated-link .linked-gloss{margin-top:8px}
#content .connected-study .illustrated-link>.pronunciation{width:36px;height:36px;min-width:36px}
.study-locked{min-height:275px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:linear-gradient(140deg,#fff8fb,#fbf2f6);color:#98576f;text-align:center}
.study-locked>span{display:grid;place-items:center;border:1px solid #e2becd;border-radius:50%;width:54px;height:54px;font-size:30px;margin-bottom:15px;background:#fff}
.study-locked>b{font-size:20px;font-weight:550}.study-locked>p{font-size:16px;margin:9px 0 0}
.study-action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 8px;min-height:36px}
.connected-study .study-question,.study-action-bar>span{margin:0;font-size:16px;font-weight:550;color:#7b4258}
.connected-study .quiz-feedback{margin:0;padding:0;border:0;background:none;justify-content:flex-start;font-size:18px;font-weight:600;color:#993152}
.study-action-bar .study-controls{margin:0;gap:8px}
.study-action-bar .primary,.study-action-bar .secondary{padding:8px 14px;min-height:36px;font-size:14px}
.connected-study .quiz-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}
.connected-study .quiz-choice{font-size:22px;font-weight:550;line-height:1.4;min-height:72px;padding:10px 12px;color:#4b3a43;gap:9px}
.connected-study .quiz-choice>span{font-size:14px;color:#a16f83;align-self:flex-start;padding-top:4px}
.connected-study .quiz-choice:disabled{opacity:1}
.connected-study .quiz-choice.correct{color:#286642}.connected-study .quiz-choice.wrong{color:#9c2647}

@media(max-width:899px){
 body:not(.atlas-map-mode) #content:has(.connected-study){padding-left:8px;padding-right:8px}
 .connected-study .study-body{padding:10px}
 .study-pair,.single-study .study-pair{display:flex;max-width:none;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;padding:0 0 7px}
 .study-pane,.study-related-pane:not(.is-active){display:block;flex:0 0 calc(100% - 28px);scroll-snap-align:start;scroll-snap-stop:always;min-width:0}
 .single-study .study-pane{flex-basis:100%}
 .study-related-stack{display:contents}.study-pair-bridge{display:none}
 .study-deck-nav{align-items:center;flex-wrap:nowrap;gap:6px}
 .study-deck-chips{order:0;flex:1 1 0;padding-bottom:3px}
 .study-deck-arrows{margin-left:auto}.study-deck-arrows button{width:34px;height:30px}
 .study-deck-chips button{max-width:220px}
 .connected-study .quiz-options{grid-template-columns:repeat(3,minmax(0,1fr))}
 .study-primary-card>.vocabulary-picture,#content .connected-study .illustrated-link>.linked-picture{max-width:420px}
 .study-locked{min-height:260px}
}
@media(max-width:640px){
 #content .wide-vocabulary-card .node-meaning,#detail .meaning,#content .meaning-link-row .linked-gloss,#detail .meaning-link-row .linked-gloss,#content .study-meaning{font-size:20px;font-weight:550}
 .study.connected-study{border-radius:17px}
 .connected-study .study-term{font-size:26px}
 #content .connected-study .illustrated-link .linked-term{font-size:25px}
 #content .connected-study .meaning-link-row:not(.illustrated-link) .linked-term{font-size:25px}
 .study-primary-copy{padding:11px 12px}
 .connected-study .quiz-choice{font-size:20px;min-height:64px;padding:10px;gap:7px}
 .connected-study .quiz-options{grid-template-columns:1fr}
 .connected-study .session-track{display:none}
 .connected-study .study-bar{padding-left:10px;padding-right:10px;gap:8px}
 .study-action-bar .primary,.study-action-bar .secondary{font-size:13px;padding:8px 10px}
}

/* Three clear choices, with a tactile letter token and readable meanings. */
.connected-study .quiz-options{gap:12px}
.connected-study .quiz-choice{display:flex;align-items:center;text-align:left;border:1px solid #e8c5d1;border-radius:18px;background:linear-gradient(150deg,#fff,#fff5f8);box-shadow:0 4px 0 #eddae1,0 7px 16px #74133406;transition:transform .15s,box-shadow .15s,border-color .15s;gap:12px;padding:14px;min-height:82px}
.connected-study .quiz-choice>.choice-letter{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #edb9c9;border-radius:12px;background:#fff;color:#b50930;font-size:19px;font-weight:700;align-self:center;padding:0;box-shadow:0 2px 5px #ad123f0a}
.connected-study .quiz-choice>.choice-meaning{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit;align-self:center;padding:0;min-width:0}
.connected-study .quiz-choice:not(:disabled):hover{border-color:#ba2851;box-shadow:0 4px 0 #eac0ce,0 8px 20px #74133410;transform:translateY(-2px)}
.connected-study .quiz-choice:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 #eddae1}
.connected-study .quiz-choice:focus-visible{outline:3px solid #bd1646;outline-offset:4px}
.connected-study .quiz-choice.correct{background:#eff9f2;border-color:#79b58b;box-shadow:0 3px 0 #c9e4d1}
.connected-study .quiz-choice.correct>.choice-letter{background:#287144;border-color:#287144;color:#fff}
.connected-study .quiz-choice.wrong{background:#fff0f3;border-color:#d88aa0;box-shadow:0 3px 0 #edcbd5}
.connected-study .quiz-choice.wrong>.choice-letter{background:#b50930;border-color:#b50930;color:#fff}
@media(max-width:700px){.connected-study .quiz-options{grid-template-columns:1fr}.connected-study .quiz-choice{min-height:64px;padding:10px 12px;gap:12px}.connected-study .quiz-choice>.choice-letter{flex-basis:34px;width:34px;height:34px;font-size:18px}}
@media(prefers-reduced-motion:reduce){.connected-study .quiz-choice{transition:none}.connected-study .quiz-choice:not(:disabled):hover{transform:none}}

/* Meaning -> fresh context: one word, two short steps. */
.study-steps{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 10px;color:#a37d8b;font-size:13px;line-height:1.3}
.study-steps>span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:20px;background:#fbf6f8;border:1px solid transparent}
.study-steps b{display:grid;place-items:center;border:1px solid #e3c5d0;border-radius:50%;width:21px;height:21px;font-size:12px;font-weight:600}
.study-steps>.is-current{border-color:#ecc2d0;background:#fff0f5;color:#a80936;font-weight:600}
.study-steps>.is-current b{color:white;background:#b50930;border-color:#b50930}
.study-steps>.is-done{color:#3a7150}.study-steps>i{font-style:normal}
.cloze-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px;padding:8px 8px 2px}
.context-picture{width:100%;aspect-ratio:2/1;overflow:hidden;background:#fbf8fa}
.context-picture img{display:block;width:100%;height:100%;object-fit:contain}
.cloze-picture-card>.vocabulary-picture{max-width:none}
.cloze-question{min-width:0}.cloze-instruction{margin:0 0 10px;color:#94516a;font-size:14px;font-weight:550}
.cloze-sentence{font-size:27px;line-height:1.6;font-weight:550;letter-spacing:-.3px;color:#342c32;margin:0 0 24px;text-wrap:pretty}
.sentence-blank{display:inline-block;min-width:95px;padding:0 12px;line-height:1.25;text-align:center;border-bottom:3px solid #bf1747;color:#b50930;background:#fff0f5;border-radius:6px 6px 0 0;margin:0 4px;font-weight:700}
.cloze-sentence mark{background:#ecf7ef;color:#24643b;border-radius:7px;padding:2px 6px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#content .context-study .quiz-options{grid-template-columns:1fr;gap:12px}
#content .context-study .quiz-choice{font-size:22px;min-height:64px}
.context-study .study-action-bar{margin-bottom:0}
@media(max-width:899px){.cloze-layout{grid-template-columns:1fr;gap:18px;padding:0}.cloze-picture-card{max-width:520px;width:100%;margin:0 auto}.cloze-sentence{font-size:24px;margin-bottom:18px}.cloze-instruction{font-size:13px}.study-steps{margin-bottom:10px}}
@media(max-width:640px){#content .context-study .quiz-choice{font-size:20px}.cloze-sentence{font-size:22px;line-height:1.65}.cloze-layout{gap:15px}.sentence-blank{min-width:74px}.study-steps{font-size:12px;gap:7px}}

#content .context-study .choice-meaning{white-space:nowrap}
/* Sentence help: each word keeps its meaning above and IPA below. */
.cloze-sentence{display:flex;flex-wrap:wrap;align-items:stretch;column-gap:.25em;row-gap:10px;text-wrap:initial}
.cloze-sentence .sentence-token{display:grid;grid-template-rows:34px 1.5em 25px;align-items:center;justify-items:start;min-width:0;max-width:100%;font:inherit;letter-spacing:inherit}
.cloze-sentence .sentence-english{grid-row:2;white-space:nowrap;line-height:1.5;color:#2d2730}
.cloze-sentence .sentence-help{appearance:none;border:0;border-radius:9px;padding:0 3px;margin:0 -3px;background:transparent;text-align:left;cursor:help;box-shadow:none;transition:background .15s}
.cloze-sentence .sentence-help:hover,.cloze-sentence .sentence-help[aria-expanded=true]{background:#edf6ef}
.cloze-sentence .sentence-help:focus-visible{outline:2px solid #267345;outline-offset:4px}
.cloze-sentence .sentence-vietnamese{grid-row:1;max-width:155px;font-size:14px;line-height:1.2;font-weight:600;letter-spacing:0;color:#237344;align-self:end;padding-bottom:3px}
.cloze-sentence .sentence-ipa{grid-row:3;font-size:15px;line-height:1.25;font-weight:500;color:#b50930;letter-spacing:0;white-space:nowrap;align-self:start}
.cloze-sentence .sentence-blank,.cloze-sentence>mark{align-self:center;line-height:1.5;margin-top:9px}
.sentence-picture-help{position:fixed;z-index:240;width:min(300px,calc(100vw - 24px));padding:10px;border:1px solid #e3c9d1;border-radius:20px;background:rgba(255,255,255,.98);box-shadow:0 12px 48px #55203830;backdrop-filter:blur(20px);color:#2d2730}
.sentence-picture-help[hidden]{display:none}
.sentence-picture-help>img{display:block;width:100%;height:170px;object-fit:contain;border-radius:12px;background:#faf7f8}
.sentence-picture-help>strong,.sentence-picture-help>span{display:block;padding:4px 8px 0}
.sentence-picture-help>strong{font-size:20px}.sentence-picture-help>span{font-size:16px;font-weight:550;color:#237344;padding-bottom:6px}
.sentence-help-close{position:absolute;right:15px;top:15px;width:30px;height:30px;display:grid;place-items:center;border:1px solid #e7cbd2;border-radius:50%;background:#fff;cursor:pointer;box-shadow:0 2px 8px #55203820}
@media(max-width:640px){.cloze-sentence .sentence-vietnamese{font-size:13px;max-width:130px}.cloze-sentence .sentence-ipa{font-size:14px}.sentence-picture-help>img{height:150px}}

/* Visible learning order, integrated into the sticky toolbar. */
.study-toolbar{flex-wrap:wrap;row-gap:8px}
.curriculum-control{position:relative;order:4;flex:1 0 100%;min-width:0;padding-top:8px;border-top:1px solid #f0e2e8}
.path-anchor{position:absolute;top:0;width:0;height:0;scroll-margin-top:var(--study-top)}
.curriculum-steps[hidden]{display:none!important}
.curriculum-control[hidden],.curriculum-all[hidden]{display:none!important}
.curriculum-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;width:100%;margin:0}
.curriculum-step{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:5px 10px;min-width:0;min-height:56px;padding:8px 12px;border:1px solid #e7c8d3;border-radius:16px;background:linear-gradient(145deg,#fff,#fff8fb);color:#8c2444;text-align:left;font-family:inherit;box-shadow:inset 0 1px 1px #fff,0 2px 0 #f1dfe6;cursor:pointer}
.curriculum-step:not(:last-child):after{content:'›';position:absolute;right:-20px;top:50%;transform:translateY(-50%);color:#bd7d92;font-size:24px;font-weight:500;pointer-events:none}
.curriculum-number{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#f8e5ed;color:#a1133b;font-size:17px;font-weight:750;box-shadow:inset 0 1px 1px #fff}
.curriculum-copy{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;min-width:0}.curriculum-copy strong{display:block;max-width:100%;white-space:normal;text-wrap:pretty;font-size:17px;line-height:1.25;font-weight:650}.curriculum-copy small{display:block;font-size:12px;font-weight:500;line-height:1.45;margin-top:0;color:#8a6272;white-space:nowrap}
.curriculum-instruction{grid-column:1/-1;display:block;font-size:13px;font-weight:500;line-height:1.5;color:#775261;white-space:normal;text-wrap:pretty}
.curriculum-step[aria-pressed=true]{background:linear-gradient(135deg,#c61547,#a90531);border-color:#b00937;color:#fff;box-shadow:inset 0 1px 1px #ffffff70,0 3px 0 #840327,0 5px 14px #9c0e3521}
.curriculum-step[aria-pressed=true] .curriculum-number{background:#fff;color:#b50930}.curriculum-step[aria-pressed=true] small,.curriculum-step[aria-pressed=true] .curriculum-instruction{color:#fff2f6}
.curriculum-step:hover:not([aria-pressed=true]){background:#fff0f5;border-color:#cb8fa5}.curriculum-step:active{transform:translateY(1px)}
.curriculum-step:focus-visible,.curriculum-all:focus-visible{outline:3px solid #d87d9a;outline-offset:3px}
.curriculum-all{display:flex;align-items:center;gap:9px;width:100%;padding:10px;margin:4px 0 14px;border:1px solid #ebcfda;border-radius:11px;background:#fff8fb;color:#921a3e;font-family:inherit;font-size:13px;text-align:left}
.curriculum-all[aria-pressed=true]{background:#f8dce7;border-color:#bf6282}
.curriculum-topics{display:flex;align-items:center;gap:10px;width:100%;min-width:0;margin:10px 0 0;padding:6px 10px;border:1px solid #ecd3dc;border-radius:14px;background:linear-gradient(120deg,#fff5f8,#fffdfd)}
.topic-journey{display:flex;align-items:center;gap:7px;min-width:0;flex:1}
#topics.path-topics{position:relative;display:flex;align-items:center;gap:7px;min-width:0;flex:1;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d7a1b4 transparent;padding:3px 2px 6px;scroll-padding-inline:4px}
#topics.path-topics::-webkit-scrollbar{display:block;height:4px}#topics.path-topics::-webkit-scrollbar-thumb{background:#d7a1b4;border-radius:4px}
.path-topic{flex:none;display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #e8d1da;border-radius:10px;background:#fff;color:#6a4656;font-family:inherit;font-size:13px;font-weight:550;white-space:nowrap}
.path-topic .ui-icon{width:16px;height:16px;opacity:.8}.path-topic small{font-size:11px;color:#8a6272;padding-left:2px}
.path-topic[aria-current]{border-color:#bb335a;background:#fbe3ec;color:#981638;box-shadow:inset 0 -2px 0 #bb335a;font-weight:700}
.path-topic:hover{background:#fff0f6;border-color:#c5728d}
.path-arrow{display:flex;align-items:center;justify-content:center;flex:none;width:40px;min-width:40px;height:40px;padding:8px;border:1px solid #dbb1c0;border-radius:10px;background:#fff;color:#981638}
.path-arrow .ui-icon{width:16px;height:16px}.path-arrow:not(:disabled):hover{background:#fbe3ec}.path-arrow:disabled{opacity:.35;cursor:default}
.path-topic:focus-visible,.path-arrow:focus-visible{outline:2px solid #ad254d;outline-offset:1px}
.path-overview{display:flex;align-items:center;gap:9px;width:100%;padding:10px;border:0;border-radius:10px;background:#fff5f8;color:#921a3e;font-family:inherit;text-align:left;font-size:12px}
.path-progress{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0 16px;font-size:12px;color:#6f5763}
@media(max-width:640px){.study-toolbar .search{order:0;flex:1 1 90px;min-width:76px;width:auto;max-width:none}.curriculum-topics{display:block;padding:6px;margin-top:8px}.path-topic{min-height:40px;padding:8px;font-size:12px}.topic-journey{gap:4px}}
@media(max-width:640px){.curriculum-steps{gap:18px}.curriculum-step{grid-template-columns:25px minmax(0,1fr);gap:5px 7px;padding:8px;min-height:51px;border-radius:12px}.curriculum-step:not(:last-child):after{right:-14px;font-size:20px}.curriculum-number{width:25px;height:25px;font-size:15px}.curriculum-copy strong{font-size:14px}.curriculum-copy small{font-size:11px}.curriculum-instruction{font-size:12px;line-height:1.4}}
@media(max-width:480px){.curriculum-step{grid-template-columns:minmax(0,1fr);grid-template-rows:22px auto 1fr;gap:5px;padding:8px 5px;text-align:center;align-items:start}.curriculum-number{width:22px;height:22px;font-size:13px;justify-self:center}.curriculum-copy{display:block}.curriculum-copy strong{font-size:12px;white-space:normal;min-height:30px;display:flex;align-items:center;justify-content:center}.curriculum-copy small{margin-top:2px}.curriculum-steps{gap:14px}.curriculum-step:not(:last-child):after{right:-11px;font-size:18px}.curriculum-instruction{font-size:11px;line-height:1.45}}
.focused-curriculum .quick-summary .quick-numbers>span:first-child{font-weight:600}
.listening-board{display:flex;min-height:230px;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;border:1px solid #efcfda;border-radius:24px;background:linear-gradient(135deg,#fff,#fff1f5)}
.listening-board h2{font-size:27px;margin:0}.listening-board p{font-size:18px;margin:0;color:#765560}
.listening-glyph>.ui-icon{width:36px;height:36px}.listening-board>.pronunciation{width:66px;height:66px}.listening-board>.pronunciation .ui-icon{width:30px;height:30px}
.transfer-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.transfer-board .study-primary-card{min-width:0}.transfer-question{min-width:0}.transfer-sentence{font-size:25px;font-weight:550;line-height:1.55;margin:12px 0 22px;color:#302630}
.transfer-board .quiz-options{display:grid;grid-template-columns:1fr;gap:10px}.transfer-board .quiz-choice{width:100%;min-height:62px}.transfer-board .choice-meaning{font-size:19px;font-weight:550;line-height:1.35;text-align:left}
.transfer-explanation{font-size:20px;line-height:1.5;font-weight:550;background:#fff1f5;border:1px solid #eac8d3;border-radius:16px;padding:14px}
@media(max-width:899px){.transfer-board{grid-template-columns:minmax(0,1fr);gap:16px}.transfer-sentence{font-size:22px}.transfer-board .choice-meaning{font-size:19px}.focused-curriculum .filters .extra-label{display:none}}



/* Vietnamese context uses natural text flow, without the old English gloss rows. */
.cloze-sentence.cloze-vietnamese{display:block;line-height:1.65;font-weight:600;text-wrap:pretty}
.cloze-vietnamese .sentence-blank,.cloze-vietnamese>mark{display:inline-block;vertical-align:baseline;margin-top:0}
.cloze-vietnamese .sentence-blank{margin-inline:.18em}

/* Listening progress: red marks the current location; green marks exposure. */
.step-listening-progress,#journey-progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:4px;border:0;border-radius:8px;overflow:hidden;background:#eadfe4;accent-color:#25804e}
.step-listening-progress{grid-column:1/-1;align-self:end;margin-top:3px;pointer-events:none}
.step-listening-progress::-webkit-progress-bar,#journey-progress::-webkit-progress-bar{background:#eadfe4;border-radius:8px}
.step-listening-progress::-webkit-progress-value,#journey-progress::-webkit-progress-value{background:#25804e;border-radius:8px}
.step-listening-progress::-moz-progress-bar,#journey-progress::-moz-progress-bar{background:#25804e;border-radius:8px}
.curriculum-step[aria-pressed=true] .step-listening-progress::-webkit-progress-bar{background:#ffffff40}
.curriculum-step[aria-pressed=true] .step-listening-progress::-webkit-progress-value{background:#a6f0bc}
.curriculum-step[aria-pressed=true] .step-listening-progress::-moz-progress-bar{background:#a6f0bc}
.curriculum-step.heard-complete .curriculum-number{background:#e8f6ed;color:#216e43}
.path-topic.heard-complete:not([aria-current]){border-color:#98c9a9;background:#f0f9f3}
.topic-heard-check{display:grid;place-items:center;flex:none;width:17px;height:17px;border-radius:50%;background:#d8efdf;color:#236e42;font-size:12px;font-weight:750}
.listening-journey{display:flex;align-items:center;gap:14px;padding:9px 2px 2px}
.journey-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;align-items:baseline;min-width:0;flex:1;font-size:12px;line-height:1.4;color:#70505f}
.journey-summary strong{font-weight:650;color:#79304c}.journey-summary>span{justify-self:end;text-align:right}
#journey-progress{grid-column:1/-1;height:5px}
.journey-continue{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:40px;max-width:45%;padding:8px 14px;border:1px solid #a50732;border-radius:11px;background:#b50930;color:#fff;box-shadow:0 2px 0 #810523;font-weight:650;font-size:13px}
.journey-continue .ui-icon{width:16px;height:16px;filter:brightness(0) invert(1)}
.journey-continue:hover:not(:disabled){background:#99092c}.journey-continue:active:not(:disabled){transform:translateY(2px);box-shadow:none}
.journey-continue:disabled{background:#eaf5ed;color:#246e42;border-color:#a2c9ad;box-shadow:none;opacity:1}.journey-continue:disabled .ui-icon{display:none}
.vocabulary-picture[data-listen-key],.linked-picture[data-listen-key]{position:relative}
.heard-badge{position:absolute;z-index:3;right:10px;top:10px;padding:5px 9px;border-radius:20px;border:1px solid #a7cbb3;background:#f0fbf3f5;color:#236c40;box-shadow:0 2px 8px #173c2420;font-size:13px;font-weight:650;line-height:1.3;pointer-events:none}
.vocabulary-picture.is-heard,.linked-picture.is-heard{outline:2px solid #72b38c;outline-offset:-2px}
.map-node:has(>.vocabulary-picture.is-heard),.study-primary-card:has(>.vocabulary-picture.is-heard),.meaning-link-row:has(>.linked-picture.is-heard){border-color:#91c5a4}
.map-node.journey-target,.meaning-link-row.journey-target{outline:3px solid #b50930;outline-offset:4px}
@media(max-width:640px){.listening-journey{gap:9px;padding-top:8px}.journey-summary{column-gap:8px;font-size:12px}.journey-continue{padding:8px 10px;font-size:12px}.heard-badge{font-size:12px;right:8px;top:8px}}
@media(max-width:480px){.journey-summary{grid-template-columns:minmax(0,1fr);gap:3px}.journey-summary>span{justify-self:start;text-align:left}.curriculum-step{grid-template-rows:22px auto 1fr 4px}.step-listening-progress{margin-top:0}.journey-continue{max-width:40%}}

.curriculum-step.heard-complete .curriculum-number{position:relative}.curriculum-step.heard-complete .curriculum-number:after{content:"✓";position:absolute;right:-5px;bottom:-3px;width:14px;height:14px;display:grid;place-items:center;border:1px solid #fff;border-radius:50%;background:#237344;color:#fff;font-size:10px;line-height:1}

.linked-progress-step{display:block;width:fit-content;max-width:100%;margin-top:7px;padding:3px 8px;border-radius:8px;background:#f3e9ed;color:#7d3551;font-size:14px;line-height:1.4;font-weight:600}

/* One visible learning navigator; camera gestures still work on the map. */
.study-toolbar{row-gap:0}
.curriculum-control{order:0;padding-top:0;border-top:0}
.map-toolbar{display:none!important}
.header-actions .guide-launcher{width:auto;min-width:78px;height:auto;min-height:34px;padding:7px 10px;border:1px solid #f3d17a;border-radius:999px;background:#860926;color:#fff3cc;font-size:12px;font-weight:700;white-space:nowrap}
.header-actions .guide-launcher:focus-visible{outline:3px solid #ffcf49;outline-offset:3px}
#atlas-guide{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;color:#301b19}
#atlas-guide,#atlas-guide::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
#atlas-guide::backdrop{background:transparent}
.atlas-guide-spot{position:fixed;border:3px solid #ffcf49;border-radius:12px;box-shadow:0 0 0 150vmax #1f0a0fb8;pointer-events:none}
.atlas-guide-arrow{position:fixed;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.atlas-guide-arrow>.guide-connector{fill:none;stroke:#ffcf49;stroke-width:3;stroke-linecap:round}
.atlas-guide-panel{position:fixed;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:14px 16px;border:1px solid #edcf9c;border-radius:22px;background:#fffcf5;color:#301b19;box-shadow:0 18px 60px #20020b66;outline:none;font-family:Arial,sans-serif}
.atlas-guide-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#97101c;font-size:11px;font-weight:800;letter-spacing:.04em}
.atlas-guide-meta button{width:34px;height:34px;flex-shrink:0;border:0;border-radius:50%;color:#800b16;background:#f8e9dc;font-size:24px;padding:0}
.atlas-guide-visual-row{display:flex;align-items:center;gap:12px;margin:12px 0 16px}
.atlas-guide-visual-row>div:last-child{min-width:0}
.atlas-guide-preview{display:flex;align-items:center;justify-content:center;flex:0 0 100px;height:74px;overflow:hidden;pointer-events:none;user-select:none}
.atlas-guide-preview>div{display:flex;align-items:center;justify-content:center}
.atlas-guide-panel h2{margin:0 0 6px;font-size:20px;line-height:1.25;color:#301b19}
.atlas-guide-panel p{margin:0;color:#634740;font-size:14px;line-height:1.4}
.atlas-guide-dots{display:flex;gap:5px;margin:10px 0 13px}
.atlas-guide-dots i{height:5px;flex:1;border-radius:9px;background:#eadbd1}
.atlas-guide-dots i[data-active=true]{background:#ae1424}
.atlas-guide-actions{display:flex;align-items:center;gap:7px}
.atlas-guide-actions button{min-height:42px;min-width:48px;padding:8px 11px;border:1px solid #d8c0b0;border-radius:12px;color:#81202a;background:#fff;font:700 20px/1.3 Arial,sans-serif;user-select:none}
.atlas-guide-actions .guide-skip{margin-right:auto;padding-left:0;border-color:transparent;background:transparent;font-size:13px}
.atlas-guide-actions .guide-next{min-width:64px;background:#a20d20;color:#fff;border-color:#a20d20}
.atlas-guide-panel button:focus-visible{outline:3px solid #d19b18;outline-offset:2px}
@media(max-width:560px){.header-actions .guide-launcher{min-width:70px;font-size:11px;padding:6px 8px}.atlas-guide-panel{padding:12px}.atlas-guide-panel h2{font-size:18px}.atlas-guide-preview{flex-basis:88px}.atlas-guide-visual-row{gap:9px}}
@media(max-height:500px){.atlas-guide-panel{padding:10px 12px}.atlas-guide-visual-row{margin:6px 0}.atlas-guide-preview{height:56px}.atlas-guide-panel h2{font-size:18px}.atlas-guide-panel p{font-size:13px}.atlas-guide-dots{margin:8px 0}.atlas-guide-actions button{min-height:36px}}

/* Keep the test number easy to read beneath the vocabulary label. */
.header .brand small{font-size:16px;line-height:1.15;font-weight:700;letter-spacing:.6px;color:#fff;margin-top:3px;white-space:nowrap}
@media(max-width:640px){.header .brand small{font-size:14px}}

/* Four stages share one path; the last measures recall, not image clicks. */
@media(min-width:481px) and (max-width:900px){.curriculum-step{grid-template-columns:26px minmax(0,1fr);gap:5px 7px;padding:9px}.curriculum-number{width:26px;height:26px;font-size:15px}.curriculum-copy strong{font-size:15px}.curriculum-instruction{font-size:12px}}
@media(max-width:480px){.curriculum-steps{gap:10px}.curriculum-step:not(:last-child):after{right:-9px;font-size:16px}.curriculum-copy strong{font-size:12px;min-height:45px}.curriculum-instruction{font-size:10px}.curriculum-copy small{font-size:10px}.curriculum-step{padding:8px 4px}}

/* Phone learning path: four compact stages, one topic picker, native scrolling. */
.step-phone-name,.mobile-topic-toggle{display:none}
#mobile-topics{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,600px);max-width:100%;max-height:min(76dvh,720px);padding:0 14px max(14px,env(safe-area-inset-bottom));border:1px solid #e6c6d2;border-bottom:0;border-radius:24px 24px 0 0;background:#fffafb;color:#402532;box-shadow:0 -12px 50px #380e2426;overflow-y:auto;overscroll-behavior:contain}
#mobile-topics::backdrop{background:#250e1b77;backdrop-filter:none}
.topic-sheet-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0 12px;background:#fffafb}
.topic-sheet-header h2{margin:0;font-size:22px;color:#8f173b}.topic-sheet-header p{margin:4px 0 0;color:#74515f;font-size:13px}
#mobile-topics-close{width:44px;height:44px;flex:none;border:1px solid #e2c4d0;border-radius:50%;background:#fff;color:#a5103b;font-size:27px}
.mobile-topic-list{display:grid;gap:8px;padding:2px 0}
.mobile-topic-list .path-topic{display:grid;grid-template-columns:22px minmax(0,1fr) auto 18px;min-height:54px;width:100%;gap:10px;padding:12px;text-align:left;font-size:16px;white-space:normal;scroll-margin-block:100px 12px}
.mobile-topic-list .path-topic small{font-size:13px;white-space:nowrap}.mobile-topic-list .ui-icon{width:21px;height:21px}
.mobile-topic-list .topic-heard-check{grid-column:4}
@media(max-width:767px){
 html{scroll-padding-top:calc(var(--study-height,110px) + 12px)}
 .header{position:relative;top:auto;min-height:52px;margin:4px 6px 0;padding:4px 9px;gap:6px;flex-wrap:nowrap;border-radius:13px}
 .header .brand{gap:8px;min-width:0}.header .brand>b{font-size:13px;letter-spacing:.4px}.header .brand>span{padding-left:8px;font-size:9px;letter-spacing:.4px}
 .header .brand small{font-size:14px;margin-top:2px}
 .header .header-actions{gap:6px}.header .image-star-counter{padding:4px 8px;min-height:34px;gap:4px;font-size:17px}.header .image-star-counter svg{width:22px;height:22px}
 .header-actions .guide-launcher{min-width:44px;min-height:44px;padding:6px 7px;font-size:10px}
 #study-toolbar{top:0;margin-top:4px;padding:5px 7px;min-height:0;display:block;background:#fffdfd;backdrop-filter:none;border-bottom-color:#ead3dc}
 .curriculum-steps{gap:6px}
 .curriculum-step{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:16px 14px 3px;min-height:44px;padding:3px 5px;gap:2px;text-align:center;border-radius:10px;align-items:center}
 .curriculum-step:not(:last-child):after{display:none}
 .curriculum-number{height:16px;width:16px;justify-self:center;font-size:11px;line-height:1}
 .curriculum-copy{display:block;min-width:0}.curriculum-copy strong{display:block;min-height:0;font-size:12px;line-height:14px;white-space:nowrap;font-weight:700}
 .step-desktop-name,.curriculum-copy small,.curriculum-instruction{display:none}
 .step-phone-name{display:inline}.step-listening-progress{height:3px;margin:0}
 .curriculum-step.heard-complete .curriculum-number:after{width:11px;height:11px;font-size:8px;right:-7px;bottom:-1px}
 .curriculum-topics{margin-top:6px;padding:0;border:0;border-radius:0;background:transparent}
 .topic-journey{gap:6px}
 #topics.path-topics{display:none}
 .path-arrow{height:50px;min-height:50px;width:44px;min-width:44px;padding:10px;border-color:#e2c4d0;background:#fff8fb}
 .mobile-topic-toggle{display:grid;grid-template-columns:minmax(0,1fr) 16px;grid-template-rows:auto auto 3px;gap:2px 4px;min-width:0;flex:1;min-height:50px;padding:5px 9px;border:1px solid #ddb4c4;border-radius:11px;background:#fff6fa;color:#8a173a;text-align:left;font:inherit}
 .mobile-topic-name{display:flex;align-items:center;gap:6px;min-width:0;font-size:14px;line-height:18px}.mobile-topic-name strong{font-weight:700;overflow-wrap:anywhere}.mobile-topic-name .ui-icon{width:16px;height:16px;flex:none}
 .mobile-topic-toggle>.ui-icon{align-self:center;width:14px;height:14px}
 .mobile-topic-count{grid-column:1/-1;font-size:11px;color:#74515f;line-height:14px}
 .mobile-topic-toggle progress{grid-column:1/-1;width:100%;height:3px;border:0;appearance:none;border-radius:5px;overflow:hidden;background:#eadfe4;accent-color:#25804e}
 .mobile-topic-toggle progress::-webkit-progress-bar{background:#eadfe4}.mobile-topic-toggle progress::-webkit-progress-value{background:#25804e}.mobile-topic-toggle progress::-moz-progress-bar{background:#25804e}
 .mobile-topic-toggle:focus-visible{outline:3px solid #bd6380;outline-offset:2px}
 .listening-journey{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:12px;padding:0;z-index:60}
 .listening-journey .journey-summary{display:none}.listening-journey:has(>button[hidden]){display:none}
 .journey-continue{min-height:46px;max-width:none;padding:10px 16px;font-size:14px;border-radius:24px;box-shadow:0 3px 14px #670d3330,0 2px 0 #810523}
 .phone-card-feed{max-width:620px;margin:auto;padding:2px 12px 80px;touch-action:pan-y pinch-zoom}
 .phone-card-section{display:grid;gap:14px;margin:0 0 24px;min-width:0}
 .phone-card-section>h2{font-size:15px;font-weight:650;color:#8c3351;margin:14px 2px 0;line-height:1.4}
 #content .phone-card-feed .wide-vocabulary-card{width:100%;min-width:0;max-width:100%;border-radius:18px;scroll-margin-top:calc(var(--study-height) + 12px)}
 #content .phone-card-feed .node-body{padding:12px 14px 16px;grid-template-rows:auto auto auto auto}
 #content .phone-card-feed .node-role{margin:0 0 10px;min-height:0}
 #content .phone-card-feed .node-main{grid-template-columns:minmax(0,1fr) 44px;gap:10px}
 #content .phone-card-feed .node-main>.pronunciation{width:44px;height:44px;min-width:44px}
 #content .phone-card-feed .node-word,#content .phone-card-feed .linked-term{display:flex;flex-wrap:wrap;gap:8px .3em;width:fit-content;max-width:100%;font-size:25px;white-space:normal;text-align:left;letter-spacing:-.4px}
 #content .phone-card-feed .linked-term{font-size:22px}
 #content .phone-card-feed .word-pair{row-gap:5px;max-width:100%;justify-items:start;white-space:normal}
 #content .phone-card-feed .english-word,#content .phone-card-feed .word-ipa{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #content .phone-card-feed .node-meaning{font-size:19px;line-height:1.45;margin-top:12px;min-height:0}
 #content .phone-card-feed .meaning-callout{margin-top:16px;padding:9px;min-width:0}
 #content .phone-card-feed .meaning-link-row.illustrated-link{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto auto auto;gap:10px;padding:9px}
 #content .phone-card-feed .illustrated-link>.link-kind{grid-column:1;min-width:0}
 #content .phone-card-feed .illustrated-link>.pronunciation{grid-column:2;width:44px;height:44px;min-width:44px}
 #content .phone-card-feed .illustrated-link>.linked-expression{grid-column:1/-1}
 #content .phone-card-feed .meaning-link-row:not(.illustrated-link){grid-template-columns:44px minmax(0,1fr);min-width:0}
 #content .phone-card-feed .meaning-link-row .linked-gloss{font-size:18px;overflow-wrap:anywhere}
 #content .phone-card-feed .linked-picture,#content .phone-card-feed .vocabulary-picture{touch-action:pan-y pinch-zoom}
 .connected-study .quiz-options{grid-template-columns:1fr}.connected-study .quiz-choice{min-height:60px}
 #content .context-study .choice-meaning{white-space:normal;overflow-wrap:anywhere}
 #content .study{scroll-margin-top:calc(var(--study-height) + 12px)}
}

@media(max-width:359px){.curriculum-step{padding-inline:3px}.curriculum-copy strong{font-size:11px}.header .brand>b{font-size:12px}.header .brand>span{font-size:8px}.header .brand small{font-size:13px}}
@media(max-width:359px){.curriculum-steps{gap:4px}.curriculum-step{padding-inline:0}}

.guide-phone-icon{display:none}
@media(max-width:767px){.header-actions .guide-launcher{display:grid;place-items:center;width:44px;min-width:44px;padding:0}.guide-launcher .guide-label{display:none}.guide-launcher .guide-phone-icon{display:block;width:23px;height:23px}.header .brand{gap:6px}.header .brand>span{padding-left:6px}}
@media(max-width:359px){.header .image-star-counter{font-size:14px;padding:4px 6px;gap:3px}.header .image-star-counter svg{width:18px;height:18px}}
@media(max-width:767px){.header-actions,.image-star-counter,.star-total{min-width:0}.header .image-star-counter{flex-shrink:1}.header .star-total{white-space:normal;overflow-wrap:anywhere}}
