:root{font-family:Avenir Next,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#202b35;background:#f2eee5;font-synthesis:none;--ink: #202b35;--green: #064e48;--deep: #003f3b;--muted: #5d6d66;--cream: #f9f5ed;--white: #fffefa;--mint: #c7eedc;--line: #8dcdb9;--border: #e7e2d7;--orange: #9a3412;--apricot: #ffe7cf}*{box-sizing:border-box}body{margin:0;min-height:100vh;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}button,input{font:inherit}button{cursor:pointer}button,input,a{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #197f73;outline-offset:3px}button svg,.search svg{flex:0 0 auto}button svg{width:1.1em;height:1.1em}a{color:var(--green)}.workspace{max-width:1140px;margin:auto;padding:26px 30px 32px}.topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.brand{display:flex;align-items:center;gap:10px;color:var(--green);font-size:.93rem;font-weight:700;letter-spacing:.075em}.brand-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #b8dacf;border-radius:11px;background:#e3efe5}.brand-icon svg{width:21px;height:21px}.review-link,.text-button,.icon-button,.side-review{min-height:44px;border:0;background:transparent;color:var(--green);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.review-link{padding:0 10px}.count{background:#dbebe1;padding:2px 8px;border-radius:20px;font-size:.8rem}.columns{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(255px,1fr);align-items:start;gap:22px}.learning{overflow:visible;background:var(--cream);border:1px solid #e4dfd4;border-radius:23px;box-shadow:0 12px 34px #3b30250a}.titlebar{background:var(--deep);color:#fffefa;padding:14px;border-radius:22px 22px 0 0;text-align:center}.titlebar h1{font-size:1.6rem;letter-spacing:.15em;font-weight:750}.study-body{padding:17px 20px 18px}.search-area{position:relative;z-index:2}.search{display:flex;min-height:50px;align-items:center;gap:10px;border-radius:15px;padding:0 8px 0 13px;color:var(--green);background:#fcfefa;border:1.5px solid #8fc7b8}.search:focus-within{border-color:#408c7f;box-shadow:0 0 0 3px #d6ebe1}.search svg{width:23px;height:23px}.search input{min-width:0;flex:1;min-height:44px;border:0;background:transparent;color:var(--deep);font-weight:650}.search input:focus-visible{outline:0}.search input::placeholder{color:#5c756d;font-weight:500}.search button{min-height:44px;border:0;background:transparent;color:var(--green);font-weight:700;padding:0 8px}.search-results{position:absolute;width:100%;top:calc(100% + 6px);padding:8px 12px 12px;border:1px solid #cdded2;border-radius:15px;background:var(--white);box-shadow:0 12px 35px #28463824}.search-head{display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--green);overflow-wrap:anywhere}.icon-button{min-width:44px;border-radius:50%;flex:0 0 auto}.icon-button:hover{background:#e5eee7}.group-header{text-align:center;color:var(--green);padding-top:20px}.group-divider{display:flex;align-items:center;gap:14px;max-width:410px;margin:auto}.group-divider span{flex:1;border-top:1px solid #90c8b6}.group-divider h2{font-size:1.2rem;letter-spacing:.1em}.group-header p{margin-top:4px;font-size:.8rem;color:var(--muted)}.map{height:435px;position:relative;margin:0 auto;max-width:660px}.branches{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.branches line{stroke:#a1deca;stroke-width:2.5px}.hub,.node{position:absolute;translate:-50% -50%}.hub{width:clamp(110px,30%,148px);aspect-ratio:1;left:50%;top:50%;border-radius:50%;background:var(--mint);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:var(--deep);font-weight:700}mark{color:var(--orange);background:var(--apricot);border-radius:.25em;padding-inline:.055em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.hub mark{font-size:1.95rem;font-weight:800;padding-inline:.22em;line-height:1.28}.hub span{font-size:.93rem}.node{left:var(--x);top:var(--y);width:min(45%,218px);min-height:96px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border:1px solid #eeeae0;background:#fffefa;border-radius:20px;box-shadow:0 4px 12px #4036260c;color:var(--ink);padding:10px 5px}.node--inner{width:min(32%,181px)}.node:hover{border-color:#8ecab7;box-shadow:0 5px 15px #12483a17}.node-word{font-size:1.45rem;line-height:1.16;font-weight:800;letter-spacing:-.045em;overflow-wrap:anywhere}.ipa{color:#5d6368;font-family:Avenir Next,Charis SIL,Segoe UI,Arial,sans-serif;font-weight:500}.node .ipa{font-size:.91rem;max-width:100%;overflow-wrap:anywhere}.node-meaning{font-size:.92rem;font-weight:650}.node[data-hidden=true] .node-meaning{color:#5d6d66;font-weight:500}.recall-dot{position:absolute;width:7px;height:7px;border-radius:50%;background:#548e73;top:7px;right:8px}.recall-dot[data-result=miss]{background:var(--orange)}.practice{text-align:center;margin-top:-5px}.text-button{padding:0 9px;text-decoration:underline;text-underline-offset:5px;border-radius:7px}.text-button:hover{background:#e7f0e6}.practice p{min-height:22px;font-size:.8rem;color:var(--muted)}.sheet-actions,.map-actions{display:flex;gap:10px}.primary,.secondary{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;font-size:.97rem;font-weight:750;border:1.5px solid var(--green);border-radius:12px}.primary{background:var(--green);color:#fffefa}.primary:hover{background:#087066}.secondary{background:transparent;color:var(--green)}.secondary:hover{background:#e8f3eb}.map-actions{margin-top:9px}.map-actions>*,.sheet-actions>*{flex:1}.map-actions>.primary{flex:1.25}.previous{display:flex;margin:4px auto -8px}.wide{width:100%}.sidebar{display:grid;gap:13px}.side-card{padding:17px;border-radius:18px;border:1px solid #e5e0d4;background:var(--white)}.progress-card{background:#e5f0e6;border-color:#d4e4d7}.eyebrow{display:inline-flex;align-items:center;gap:7px;color:#3c6459;font-weight:700;font-size:.77rem;letter-spacing:.055em}.signal{width:7px;height:7px;background:#458872;border-radius:50%}.side-card h2{color:var(--deep);font-size:1.04rem}.progress-card h2{font-size:1.24rem;margin:9px 0 5px}.side-card p{color:var(--muted);font-size:.82rem;line-height:1.55}.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.stats div{display:grid;gap:1px;padding:9px 10px;background:#f9fcf7;border-radius:10px;color:var(--green)}.stats strong{font-size:1.52rem}.stats small{font-size:.81rem}.stats span,.roots-card header span{font-size:.76rem;color:var(--muted)}.side-review{justify-content:space-between;width:100%;border-bottom:1px solid #bbd7c6;font-size:.85rem}.roots-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.family-list{display:grid;gap:5px}.family-row,.result-row{width:100%;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}.family-row{min-height:54px;border:1px solid transparent;border-radius:10px;color:var(--green);background:transparent}.family-row:hover,.family-row[data-active=true]{background:#e8f3e9;border-color:#d8e9dc}.family-row strong,.result-row strong{font-size:1rem}.family-row small,.result-row small{display:block;font-size:.75rem;color:var(--muted)}.family-status{display:flex;gap:5px;align-items:center;font-size:.73rem;text-align:right}.guide ol{padding-left:20px;margin:9px 0 0;color:var(--green);font-size:.82rem}.guide li{padding-left:2px;margin:6px 0}.guide li span{display:block;color:var(--muted)}.footer-note{color:var(--muted);font-size:.75rem;padding-inline:3px}dialog{width:min(calc(100vw - 30px),480px);max-height:min(90dvh,720px);padding:0;border:1px solid #dfdfd3;background:var(--white);color:var(--ink);border-radius:22px;box-shadow:0 20px 70px #11372d33}dialog::backdrop{background:#102e285b}body:has(dialog[open]){overflow:hidden}.sheet{padding:18px 20px 20px}.sheet-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);margin-bottom:13px;padding-bottom:4px}.sheet-head h2{color:var(--green);font-size:1.18rem}.sheet-copy,.empty{color:var(--muted);line-height:1.65;font-size:.91rem;margin-bottom:13px}.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;background:#e4f1e7;color:var(--green);border:0;border-radius:100px;font-size:.82rem;font-weight:700}button.pill{min-height:44px;padding-inline:14px}button.pill:hover{background:#cfe8d7}.detail-word{font-size:2rem;font-weight:800;overflow-wrap:anywhere;letter-spacing:-.045em}.detail-heading p{margin-top:3px}.detail-heading h3,.review-card h3{color:var(--green);margin-top:10px}.detail-block{padding:10px 12px;border-radius:12px;margin-top:10px;background:var(--cream)}.detail-block h3{font-size:.85rem;color:var(--green);margin-bottom:4px}.detail-block p{line-height:1.55;font-size:.94rem}.detail-block .word-parts{color:var(--orange);font-weight:750}.source-links{display:flex;gap:18px;margin-top:4px;font-size:.8rem}.source-links a{display:inline-flex;align-items:center;min-height:44px}.summary{text-align:center;padding:4px 0 17px}.summary h3{color:var(--green);font-size:1.35rem;margin:6px 0}.summary p,.review-card p{color:var(--muted);margin-top:5px;font-size:.92rem}.summary-icon{width:42px;height:42px;display:inline-grid;place-items:center;border-radius:50%;background:var(--mint);color:var(--green)}.queue-list{list-style:none;padding:0;margin:0 0 12px}.queue-list li{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--border)}.queue-list li span{color:var(--muted);font-size:.83rem}.review-card{text-align:center}.review-card .eyebrow{display:block;margin-bottom:9px}.review-card .sheet-actions,.review-card .wide{margin-top:15px}@media(max-width:780px){:root{background:var(--cream)}.workspace{max-width:500px;padding:7px 12px max(17px,env(safe-area-inset-bottom))}.topline{margin-bottom:4px}.brand{font-size:.75rem}.brand-icon{width:28px;height:28px;border-radius:8px}.brand-icon svg{width:17px;height:17px}.review-link{font-size:.83rem;padding-right:3px}.columns{display:block}.sidebar{display:none}.learning{border:0;box-shadow:none}.titlebar{border-radius:13px;padding:10px}.titlebar h1{font-size:1.52rem}.study-body{padding:14px 0 0}.group-header{padding-top:18px}.group-divider{margin-inline:18px}.map{height:clamp(395px,114vw,465px)}.node{min-height:94px;border-radius:17px}.node-word{font-size:clamp(1.1rem,5.3vw,1.4rem)}.node--inner .node-word{font-size:clamp(1.08rem,4.9vw,1.3rem)}.node .ipa{font-size:.83rem}.hub span{font-size:.85rem}.hub mark{font-size:1.76rem}.practice{margin-top:-3px}.map-actions>.primary{flex:1}dialog{margin:auto auto 0;width:min(100%,500px);border-radius:20px 20px 0 0}.sheet{padding:11px 16px max(20px,env(safe-area-inset-bottom))}}@media(max-width:354px){.map{height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.branches{display:none}.map .hub,.map .node{position:static;translate:none}.map .hub{grid-column:1 / -1;justify-self:center;width:112px;margin-bottom:3px}.map .node{width:100%;min-height:85px}}.library,.detail-page{background:var(--cream);border:1px solid var(--border);border-radius:23px;box-shadow:0 12px 34px #3b30250a}.library-hero{display:flex;justify-content:space-between;gap:18px;align-items:end;padding:26px 30px;border-radius:22px 22px 0 0;background:var(--deep);color:var(--white)}.library-kicker{color:#b7e3d4;font-size:.81rem;font-weight:700;letter-spacing:.11em}.library-hero h1{font-size:clamp(1.8rem,5vw,2.5rem);letter-spacing:.07em;margin:4px 0 6px}.library-hero p:last-child{color:#e2f1e8;font-size:.92rem}.library-stats{display:flex;flex-wrap:wrap;gap:7px;color:#e4f2e9}.library-stats span{padding:6px 9px;border:1px solid #73a79b;border-radius:8px;font-size:.79rem}.library-stats strong{color:#fffefa;font-size:1rem}.library-body{padding:20px 24px}.library-subhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px;min-height:54px;margin-top:5px}.library-subhead h2{color:var(--green);font-size:1rem}.library-subhead .text-button{font-size:.81rem}.ranked-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ranked-list .family-row{gap:9px;padding:11px;border:1px solid var(--border);border-radius:14px;background:var(--white);min-height:94px}.ranked-list .family-row:hover{background:#e8f3e9;border-color:#b8dacf}.rank{align-self:flex-start;display:grid;place-items:center;min-width:28px;height:28px;border-radius:7px;background:#e4f1e7;color:var(--green);font-size:.75rem;font-weight:750;font-variant-numeric:tabular-nums}.family-copy{flex:1;min-width:0}.ranked-list .family-row strong{font-size:1.22rem}.family-examples{display:block;margin-top:4px;font-size:.73rem;color:var(--muted);overflow-wrap:anywhere}.ranked-list .family-status{font-size:.72rem}.library .footer-note{margin-top:16px}.map-title{position:relative}.map-title h1{padding-inline:44px}.title-back{position:absolute;inset-inline-start:7px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-height:44px;min-width:44px;background:transparent;border:0;border-radius:10px;color:var(--white)}.title-back:hover{background:#ffffff20}.title-back:focus-visible{outline-color:#b7e3d4;outline-offset:-3px}.node{touch-action:manipulation;user-select:none;-webkit-user-select:none}.node[data-remembered=true]{background:#eaf4ed;border-color:#badacb}.node[data-remembered=true] .node-word,.node[data-remembered=true] .node-word mark{text-decoration:line-through 2px var(--green)}.detail-page{max-width:680px;margin-inline:auto}.detail-page .word-detail{padding:20px 24px 24px}.detail-kicker{display:flex;align-items:center;gap:8px}.meaning-list{margin:4px 0 0;padding-left:20px;font-size:.94rem;line-height:1.6}.meaning-list li+li{margin-top:4px}@media(max-width:920px){.ranked-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.library,.detail-page{border:0;box-shadow:none}.library-hero{display:block;border-radius:13px;padding:17px 15px}.library-stats{margin-top:13px}.library-body{padding:13px 0}.ranked-list{grid-template-columns:1fr;gap:7px}.ranked-list .family-row{min-height:72px}.detail-page .word-detail{padding:16px 0}}.top-actions{display:flex;gap:6px;align-items:center}.top-actions a,.admin .review-link{text-decoration:none}.top-actions a:hover,.admin .review-link:hover{text-decoration:underline}.app-error{margin:12px auto;max-width:1050px;padding:8px 16px;color:#892e19;background:#fff1e3;border:1px solid #efcdbb;border-radius:10px}.admin{max-width:1040px}.admin .admin-hero{border-radius:20px}.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.admin-tabs button{min-height:44px;flex:1 0 auto;padding:8px 12px;border:1px solid var(--border);border-radius:9px;background:var(--white);color:var(--green);font-weight:700}.admin-tabs button[aria-current]{background:var(--green);color:#fff;border-color:var(--green)}.admin-panel{margin-bottom:14px;padding:20px 24px;border:1px solid var(--border);border-radius:16px;background:var(--white)}.admin-panel h2,.admin-panel h3{color:var(--green)}.admin-panel h2{margin-bottom:8px;font-size:1.2rem}.admin-panel h3{font-size:1rem}.admin-muted{margin:4px 0 8px;color:var(--muted);font-size:.86rem;line-height:1.55}.admin-row,.admin-record{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-block:10px}.admin-record{justify-content:space-between;padding:10px 0;border-top:1px solid var(--border)}.admin-record p{margin-bottom:0}.admin-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.admin-field{display:grid;min-width:0;gap:4px;margin-block:5px;font-size:.86rem;color:var(--green);font-weight:650}.admin-wide{grid-column:1 / -1}.admin input:not([type=checkbox]),.admin textarea,.admin select{min-height:44px;min-width:0;width:100%;max-width:100%;padding:7px 10px;border:1px solid #cbd9d1;border-radius:8px;background:#fff;color:var(--ink);font:inherit}.admin textarea{resize:vertical}.admin-preview select{width:auto}.admin button:disabled{opacity:.5;cursor:default}.admin-notice{padding:10px 14px;margin-bottom:10px;border-radius:8px;color:var(--deep);background:#e3f1e9}.admin-notice[data-error=true]{color:#892e19;background:#fff1e3}.editor-batch,.admin-preview,.admin-review{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--cream)}.editor-batch .admin-row:first-child{margin-top:0}.editor-card{padding:0 10px;margin:6px 0;border:1px solid var(--border);border-radius:8px;background:var(--white)}.editor-card summary{padding:10px 0;min-height:44px;cursor:pointer;color:var(--green)}.json-export{margin-bottom:8px}.admin-preview .node{cursor:default}.admin-review label{display:flex;align-items:start;gap:8px}.admin-review label input{margin-top:4px}@media(max-width:780px){.admin-panel{padding:12px}.admin-field-grid{grid-template-columns:1fr}.admin-tabs{gap:5px}.admin-tabs button{padding:5px 6px;font-size:.83rem}.admin .admin-hero{border-radius:13px}.top-actions{gap:0}}.candidate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0}.candidate-row,.batch-run{border:1px solid var(--border);padding:10px;border-radius:10px;margin-block:8px}.candidate-row label{display:flex;align-items:center;gap:6px;min-height:44px;color:var(--green)}.candidate-row a{display:block;padding-block:5px;font-size:.8rem;overflow-wrap:anywhere}.correction-corner{text-align:right;margin-top:4px}.correction-link{min-height:44px;min-width:44px;border:0;background:transparent;color:var(--muted);font-size:.75rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.correction-link:hover{color:var(--green)}.subtle-admin{font-size:.75rem;color:var(--muted);font-weight:500}.correction-link+.sheet-actions{margin-top:4px}.admin-field textarea{font:inherit;padding:8px;border:1px solid var(--border);border-radius:8px;max-width:100%}
