@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#243c32;background:#f7f8f3;font-synthesis:none;--green:#315e45;--muted:#718077;--line:#dfe5da;--lime:#e4eccf}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ba96b;outline-offset:4px}header{height:94px;max-width:1440px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-size:23px;font-weight:700;letter-spacing:-1px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--green);color:white;border-radius:11px;font-size:27px;padding-bottom:6px;position:relative}.brand-mark span{font-size:16px;position:absolute;right:4px;top:-3px;color:#dbe7b9}.brand-sub{font-size:13px;font-weight:500;letter-spacing:0;color:#718077;border-left:1px solid #cdd6c9;padding-left:13px;margin-left:1px}.header-actions{display:flex;gap:12px}.icon-button{background:transparent;border:1px solid var(--line);width:34px;height:34px;border-radius:50%;font-size:19px}main{max-width:1344px;margin:auto;padding:54px 48px 48px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;font-weight:700;color:#72816a;margin:0 0 16px;display:flex;align-items:center;gap:9px}.dot{height:6px;width:6px;border-radius:50%;background:#789f59;display:inline-block}h1,h2,h3,p{margin-top:0}h1{font-family:Manrope,system-ui,sans-serif;font-size:clamp(36px,4.5vw,61px);line-height:1.15;letter-spacing:-2.7px;font-weight:650;margin-bottom:16px}h1 em{font-style:normal;color:#7c936d}.subtitle{color:var(--muted);font-size:15px;line-height:1.7}.hero{display:flex;justify-content:space-between;align-items:center;gap:32px;margin-bottom:35px}.word-stamp{width:128px;height:128px;flex-shrink:0;border-radius:32px;background:#edf0e1;display:flex;align-items:center;justify-content:center;font-size:65px;transform:rotate(7deg);margin-right:12px;border:1px solid #e1e7d3}.setup{background:white;border:1px solid var(--line);border-radius:18px;padding:22px 24px;display:flex;align-items:end;gap:22px;box-shadow:0 4px 14px #233b2910}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label,.field-label{font-size:11px;font-weight:600;color:var(--muted)}select{border:0;background:transparent;color:#243c32;font-weight:600;padding:5px 23px 5px 0;max-width:100%;cursor:pointer}select option{color:#243c32;background:white}.setup .divider{height:40px;width:1px;background:var(--line)}.primary{border:0;background:var(--green);color:#fff;border-radius:10px;padding:14px 24px;font-weight:600;white-space:nowrap;box-shadow:0 2px 2px #203c2915}.primary:hover{background:#244e36}.secondary{background:white;border:1px solid var(--line);border-radius:10px;padding:12px 20px;font-weight:550}.text-button{background:none;border:0;padding:8px 0;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:4px}.start-area{margin-left:auto}.setup-note{display:flex;justify-content:space-between;margin:13px 4px 32px;gap:12px;color:var(--muted);font-size:12px}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:16px}.toolbar h2{font-size:15px;letter-spacing:-.2px;margin:0}.count{color:#8b988b;font-size:12px;font-weight:400;margin-left:8px}.filters{display:flex;align-items:center;gap:8px}.chip{background:transparent;border:1px solid var(--line);border-radius:7px;padding:6px 10px;font-size:11px}.chip.active{background:#e8eedf;border-color:#d5dfc8}.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tile{position:relative;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 18px;min-height:127px;transition:background .15s,border-color .15s,transform .15s}.tile:hover{background:#f0f4e7;border-color:#b9cbaa;transform:translateY(-2px)}.tile.playing{border-color:#73955a;background:#eaf0df}.tile-top{display:flex;align-items:center;gap:7px;color:#738173;font-size:11px;font-weight:550}.flag{font-size:17px;line-height:1}.speaker{margin-left:auto;color:#a5afa0;font-size:15px}.word{display:block;font-family:Manrope,system-ui,sans-serif;font-weight:650;font-size:24px;margin-top:12px;line-height:1.3;overflow-wrap:anywhere}.reading{display:block;color:#86917e;font-size:12px;margin-top:5px;min-height:16px}.tile.success{background:#e7eedb;border-color:#c8d9b7}.tile.missed{background:#f8f8f5;opacity:.75}.footer-line{display:flex;justify-content:space-between;color:#8a9484;border-top:1px solid var(--line);margin-top:30px;padding-top:18px;font-size:11px}.study-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.study-header h1{font-size:37px;margin:0;letter-spacing:-1px}.clock{font-variant-numeric:tabular-nums;font-family:Manrope,system-ui;font-weight:650;font-size:30px;letter-spacing:-1px}.clock small{font:11px 'DM Sans',sans-serif;display:block;color:var(--muted);letter-spacing:0;text-align:center}.progress-track{height:4px;background:#e2e8d8;border-radius:8px;overflow:hidden}.progress-fill{height:100%;width:100%;background:#8ba16a;transition:width .08s linear}.study-progress{margin-bottom:24px}.center-stage{max-width:700px;margin:0 auto;text-align:center;padding-top:18px}.center-stage h1{font-size:44px;letter-spacing:-1.8px}.center-stage .eyebrow{justify-content:center}.ready-symbol{font-size:62px;margin:25px 0}.rules{display:flex;justify-content:center;gap:28px;margin:32px 0;color:var(--muted);font-size:13px}.rules strong{display:block;font-size:24px;color:var(--green);margin-bottom:6px}.actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:24px}.recall-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.score strong{font-family:Manrope;font-size:32px}.score span{color:var(--muted)}.recall-card{position:relative;border:1px solid var(--line);background:white;border-radius:24px;padding:45px 30px 30px;box-shadow:0 12px 50px #30442c08;min-height:330px}.recall-card .flag{font-size:45px}.recall-card h1{font-size:clamp(32px,5vw,54px);margin:22px 0 38px}.recall-card .progress-track{max-width:330px;margin:auto;height:6px}.listening{font-size:12px;color:var(--muted);min-height:18px;margin-top:18px}.partial{min-height:30px;color:#738365;font-size:17px;margin:20px 0 0}.pass{padding:12px 38px;background:transparent;border:1px solid #ccd6c4;border-radius:10px}.shortcut{font-size:11px;color:#91a087;margin-left:15px;border:1px solid #dce3d6;padding:2px 5px;border-radius:4px}.recall-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:22px}.dots{display:flex;gap:4px;max-width:430px;flex-wrap:wrap}.dots i{display:block;width:7px;height:7px;background:#e0e6d8;border-radius:50%}.dots i.done{background:#719356}.answer-input{font-size:22px;border:0;border-bottom:1px solid #bacba9;text-align:center;width:85%;padding:8px;margin-top:12px;background:transparent}.results-head{text-align:center;margin-bottom:32px}.result-number{font:650 95px/1.2 Manrope,system-ui;letter-spacing:-6px;color:var(--green)}.result-number span{font-size:35px;letter-spacing:-2px;color:#a1ae94}.result-meta{color:var(--muted);font-size:13px;margin:12px 0}.history-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);gap:20px}.history-row small{color:var(--muted)}.badge{font-size:10px;padding:4px 7px;border-radius:5px;background:#e9efdf;color:#5c7750}.error{color:#a24432;background:#f8ede8;border:1px solid #eed1c7;padding:14px;border-radius:10px;font-size:14px;line-height:1.6;margin:20px 0}.notice{color:var(--muted);font-size:12px;line-height:1.7}.mic-bars{display:flex;justify-content:center;align-items:center;gap:5px;height:40px;margin:18px 0}.mic-bars i{width:5px;border-radius:4px;background:#86a167;height:12px}dialog{border:1px solid var(--line);border-radius:20px;padding:35px;max-width:550px;width:calc(100% - 32px);color:inherit;background:#fbfcf7;max-height:85vh;overflow:auto}dialog::backdrop{background:#1c332956;backdrop-filter:blur(4px)}dialog h2{font-family:Manrope;font-size:24px;letter-spacing:-.7px}dialog p,dialog li{font-size:14px;line-height:1.8;color:#687968}dialog a{color:var(--green)}.close{position:absolute;right:15px;top:12px;background:none;border:0;font-size:26px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:10px;color:#fff;background:#2d473a;box-shadow:0 4px 24px #0002;font-size:13px;max-width:90vw;z-index:5;display:none}#toast.visible{display:block}details{margin:24px 0;text-align:left;font-size:13px}summary{cursor:pointer;color:var(--muted)}table{border-collapse:collapse;width:100%;font-size:12px;margin-top:14px}td,th{padding:9px;text-align:left;border-bottom:1px solid var(--line)}.pulse{animation:pulse .9s ease-in-out infinite alternate}@keyframes pulse{to{opacity:.5}}@media(max-width:1100px){.grid{grid-template-columns:repeat(4,1fr)}.setup{gap:14px}.setup .divider{display:none}}@media(max-width:800px){header{padding:0 24px;height:75px}main{padding:34px 24px}.grid{grid-template-columns:repeat(3,1fr)}.setup{flex-wrap:wrap;gap:20px}.start-area{margin-left:0}.word-stamp{width:90px;height:90px;font-size:47px}.hero{gap:10px}.setup-note{flex-direction:column;gap:4px}.brand-sub{font-size:11px}.toolbar{align-items:start;flex-wrap:wrap}.filters{flex-wrap:wrap}}@media(max-width:520px){header{padding:0 20px}.brand{font-size:21px;gap:8px}main{padding:30px 18px}.hero{align-items:start}.word-stamp{display:none}h1{font-size:40px;letter-spacing:-1.8px}.subtitle{font-size:13px}.setup{padding:18px;gap:20px}.field{flex:1 0 36%}.start-area{width:100%}.primary{width:100%}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tile{padding:15px;min-height:118px}.word{font-size:23px}.footer-line{line-height:1.8;gap:15px}.center-stage{padding-top:10px}.center-stage h1{font-size:35px}.rules{gap:22px}.recall-card{padding:38px 18px 25px;min-height:315px}.recall-card h1{font-size:37px}.recall-bottom{gap:15px}.dots{max-width:180px}.actions{flex-direction:column}.settings-grid{grid-template-columns:1fr}.study-header h1{font-size:30px}.clock{font-size:25px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Family explorer: native checkboxes and disclosure buttons, lazy-rendered branches. */
.language-picker-button{border:0;background:transparent;text-align:left;font-weight:600;padding:5px 0;display:flex;gap:18px;justify-content:space-between}.language-picker-button span{color:var(--muted)}.empty-selection{padding:35px 0;color:var(--muted)}
dialog.tree-picker{width:min(940px,calc(100% - 32px));max-width:940px;max-height:92dvh;padding:28px;overflow:auto}.tree-heading h2{margin-bottom:7px;font-size:28px}.tree-heading .eyebrow{font-size:10px;margin-bottom:8px}.tree-heading p{margin-bottom:18px;font-size:13px}.tree-controls{display:flex;align-items:center;gap:18px}.tree-controls input[type=search]{min-width:0;flex:1;border:1px solid var(--line);background:white;border-radius:9px;padding:12px 14px;color:inherit}.tree-only{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.tree-picker input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex:none;cursor:pointer}.tree-picker input:disabled{cursor:default}.tree-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin:10px 0}.tree-actions>div{display:flex;gap:18px}.tree-actions .text-button{font-size:11px}.tree-scroll{height: min(49vh,510px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff;overscroll-behavior:contain}.tree-roots,.tree-node ul{list-style:none;margin:0;padding:0}.tree-node ul{padding-left:18px;border-left:1px solid #e4e9df;margin-left:16px}.tree-row{display:flex;align-items:center;gap:9px;min-height:49px;padding:7px 12px 7px 6px;border-bottom:1px solid #f0f2eb}.tree-row:hover{background:#f6f8f0}.tree-expand{border:0;background:none;width:26px;min-height:30px;flex:none;font-size:23px;padding:0;color:#647b58}.tree-spacer{width:26px;flex:none}.tree-label{min-width:0;flex:1}.tree-name{display:block;border:0;background:none;padding:3px 0;text-align:left;font-size:13px;font-weight:550;overflow-wrap:anywhere;color:#263f31}.tree-label label{cursor:pointer}.tree-label small{display:block;font-size:10px;color:#768474;line-height:1.5}.tree-path{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:600px}.tree-meta{font-size:10px;color:#6b7c65;max-width:110px;text-align:right;flex:none}.tree-info{font-size:16px;text-decoration:none;flex:none;padding:7px}.explore-only .tree-name{font-weight:400;color:#596656}.explore-only .tree-meta{color:#7e8979}.tree-more{padding:6px 20px}.tree-empty{padding:25px}.tree-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px}.tree-footer strong{font-size:14px}.tree-footer #tree-filter-count{display:block;font-size:11px;color:var(--muted);margin-top:4px}.tree-source{margin:15px 0 0;font-size:11px}.tree-source p{font-size:11px;margin:8px 0;line-height:1.6}.tree-source summary{font-size:11px}.tree-picker .close{z-index:1}
@media(max-width:520px){dialog.tree-picker{padding:20px 12px;width:calc(100% - 16px);max-height:95dvh}.tree-heading{padding:0 9px}.tree-heading h2{font-size:25px}.tree-controls{gap:10px;flex-wrap:wrap}.tree-controls input[type=search]{flex-basis:100%}.tree-scroll{height:47dvh}.tree-row{gap:5px;padding-right:5px}.tree-node ul{margin-left:7px;padding-left:7px}.tree-name{font-size:12px}.tree-meta{font-size:9px;max-width:65px}.tree-expand,.tree-spacer{width:20px}.tree-footer .primary{width:auto;padding:12px 16px}.tree-path{max-width:200px}.tree-info{padding:5px}.tree-actions{gap:5px}.tree-actions>div{gap:10px}.tree-actions .text-button{font-size:10px}}
.tree-picker[open]{display:flex;flex-direction:column;overflow:hidden}.tree-picker>*{flex-shrink:0}.tree-picker .tree-scroll{flex:1 1 auto;min-height:100px}.tree-picker .tree-source[open]{max-height:140px;overflow:auto}
/* Connected horizontal family tree; search retains its compact list layout. */
.tree-picker{width:min(1240px,calc(100% - 24px));max-width:1240px;height:92dvh;padding:24px}.tree-picker .tree-scroll{height:auto;min-height:150px;background-color:#f6f8f2;background-image:radial-gradient(#cdd8c5 1px,transparent 1px);background-size:20px 20px;cursor:grab}.tree-scroll.dragging{cursor:grabbing;user-select:none}.tree-zoom{display:flex;align-items:center;gap:5px;margin:0 0 10px}.tree-zoom button{border:1px solid var(--line);background:white;border-radius:7px;padding:5px 11px;font-size:12px}.tree-zoom output{font-size:11px;min-width:42px;text-align:center;color:var(--muted)}.visual-tree{width:max-content;min-width:100%;padding:24px;transform-origin:0 0}.visual-tree .tree-roots,.visual-tree .tree-node ul{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;border:0}.visual-tree .tree-node{display:flex;align-items:center;position:relative;gap:44px}.visual-tree .tree-node ul[hidden]{display:none}.visual-tree .tree-node>ul{position:relative;padding:8px 0}.visual-tree .tree-node>ul:before{content:'';position:absolute;left:-23px;top:0;bottom:0;border-left:1px solid #aabb9f}.visual-tree .tree-node>ul>.tree-node:before{content:'';position:absolute;width:23px;left:-23px;top:50%;border-top:1px solid #aabb9f}.visual-tree .tree-node:has(>ul:not([hidden]))>.tree-row:after{content:'';position:absolute;right:-23px;top:50%;width:23px;border-top:1px solid #aabb9f}.visual-tree .tree-row{position:relative;flex:none;width:235px;min-height:76px;border:1px solid #d9e2d1;border-radius:12px;background:white;box-shadow:0 3px 10px #30442c06;display:grid;grid-template-columns:22px 18px 1fr 22px;gap:6px;padding:10px}.visual-tree .tree-row:has(input:checked){border-color:#9eb78d;background:#f0f5e9}.visual-tree .tree-row:has(input:indeterminate){border-color:#9eb78d}.visual-tree .tree-meta{grid-column:3;text-align:left;max-width:none}.visual-tree .tree-info{grid-column:4;grid-row:1;padding:2px}.visual-tree .tree-expand,.visual-tree .tree-spacer{width:22px}.visual-tree .tree-label{grid-column:3;grid-row:1}.visual-tree .tree-name{font-size:13px;line-height:1.35}.visual-tree .tree-more{list-style:none;background:#fff;border-radius:8px;padding:5px 12px}.tree-scroll.searching{cursor:auto;background:white}.tree-heading .eyebrow{display:none}.tree-heading p{margin-bottom:12px}.tree-actions>span{margin-right:auto}.tree-footer{margin-top:12px}.tree-source{margin-bottom:0}@media(max-width:520px){.tree-picker{padding:16px;height:96dvh;max-height:96dvh}.tree-actions{flex-wrap:wrap}.tree-actions>span{display:none}.tree-heading h2{font-size:23px}.tree-heading p{font-size:11px}.tree-controls{gap:8px}.tree-zoom{margin-bottom:8px}}
.visual-tree.family-overview{width:100%}.visual-tree.family-overview>.tree-roots{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px}.family-overview .tree-row{width:100%}.tree-zoom [data-home]{margin-right:auto}.tree-picker .tree-source{margin-top:10px}.tree-picker .tree-heading p{margin-bottom:8px}.tree-picker .tree-footer{margin-top:10px}
.visual-tree{min-width:0}.visual-tree.family-overview{min-width:100%}
/* Leaf-labelled overview: quiet branch junctions instead of classification cards. */
.leaf-tree{padding:32px 40px}.leaf-tree .tree-node{gap:55px}.leaf-tree .tree-node>ul{gap:8px}.leaf-tree .tree-node>ul:before{left:-28px;border-color:#91a786;border-radius:12px}.leaf-tree .tree-node>ul>.tree-node:before{left:-28px;width:28px;border-color:#91a786}.leaf-tree .tree-node:has(>ul:not([hidden]))>.tree-row:after{width:28px;right:-28px;border-color:#91a786}.leaf-tree .tree-row{width:180px;min-height:42px;padding:8px 10px;grid-template-columns:18px 1fr 18px;gap:8px;border-radius:24px}.leaf-tree .tree-row>input{grid-column:1;grid-row:1}.leaf-tree .tree-row>.tree-label{grid-column:2;grid-row:1}.leaf-tree .tree-row>.tree-info{grid-column:3;grid-row:1;opacity:0}.leaf-tree .tree-row:hover>.tree-info,.leaf-tree .tree-row:focus-within>.tree-info{opacity:1}.leaf-tree .tree-spacer,.leaf-tree .tree-meta,.leaf-tree .tree-label small{display:none}.leaf-tree .tree-name{font-size:13px}.leaf-tree .fork-row{width:38px;min-height:38px;padding:0;display:flex;align-items:center;justify-content:center;border:0;background:none!important;box-shadow:none;position:relative}.leaf-tree .fork-row input{appearance:none;width:20px;height:20px;margin:0;border:2px solid #819878;border-radius:50%;background:#fff;cursor:pointer;z-index:1}.leaf-tree .fork-row input:checked{background:#315e45;box-shadow:inset 0 0 0 4px #f4f7ed}.leaf-tree .fork-row input:indeterminate{background:linear-gradient(90deg,#315e45 50%,#f4f7ed 50%)}.leaf-tree .fork-row input:disabled{opacity:.45}.fork-toggle{position:absolute;left:8px;top:32px;width:22px;height:22px;border:0;border-radius:50%;background:#e6eddf;font-size:13px;padding:0;opacity:0;z-index:3}.fork-row:hover .fork-toggle,.fork-row:focus-within .fork-toggle{opacity:1}.fork-caption{display:none;position:absolute;bottom:34px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 9px;font-size:11px;border-radius:6px;background:#315e45;color:white;z-index:5;pointer-events:none}.fork-row:hover .fork-caption,.fork-row:focus-within .fork-caption{display:block}.fork-row small{position:absolute;left:38px;font-size:11px;color:#718077}.leaf-tree .tree-node>ul{padding:0}.leaf-tree .tree-fork>ul>.tree-node:first-child:before{border-top-left-radius:9px}.leaf-tree .tree-fork>ul>.tree-node:last-child:before{border-bottom-left-radius:9px}@media(hover:none){.fork-toggle{opacity:1}.leaf-tree .tree-row>.tree-info{opacity:1}}
.leaf-tree{padding:22px 32px}.leaf-tree .tree-row:not(.fork-row){min-height:32px;padding:4px 10px}.leaf-tree .tree-node>ul{gap:6px}.leaf-tree .tree-row:not(.fork-row) .tree-name{padding:1px 0;line-height:18px}.tree-picker{height:96dvh;max-height:96dvh}.tree-picker .tree-heading p{font-size:12px;line-height:1.4}
.leaf-tree{margin-inline:auto}
/* A single forest canvas: all families are present without inventing a common ancestor. */
.forest-canvas{margin:0;width:max-content}.forest-canvas>.tree-roots{display:block;columns:3;column-gap:64px;width:1900px}.forest-canvas>.tree-roots>.tree-node{display:inline-flex;width:100%;break-inside:avoid;margin-bottom:40px;padding:20px 0;border-bottom:1px solid #dce4d4}.forest-canvas.leaf-tree>.tree-roots>.tree-node{min-width:540px}.forest-canvas:not(.leaf-tree)>.tree-roots{columns:1;width:max-content}.forest-canvas:not(.leaf-tree)>.tree-roots>.tree-node{width:max-content;display:flex}.tree-picker:has(.forest-canvas){width:calc(100% - 24px);max-width:none}
.forest-canvas.leaf-tree>.tree-roots{columns:auto;display:flex;flex-wrap:wrap;align-items:flex-start;gap:32px;width:2600px}.forest-canvas.leaf-tree>.tree-roots>.tree-node{width:max-content;min-width:0;display:flex;flex-direction:column;gap:30px;margin:0;padding:20px;border:0}.forest-canvas.leaf-tree>.tree-roots>.tree-node[data-node="indo1319"]{order:-1;width:100%}.forest-canvas.leaf-tree>.tree-roots>.tree-node>ul{display:flex;flex-direction:row;align-items:flex-start;gap:26px;padding-top:18px}.forest-canvas.leaf-tree>.tree-roots>.tree-node>ul:before{left:0;right:0;top:0;bottom:auto;border-left:0;border-top:1px solid #91a786;border-radius:0}.forest-canvas.leaf-tree>.tree-roots>.tree-node>ul>.tree-node:before{left:50%;top:-18px;width:0;height:18px;border-top:0;border-left:1px solid #91a786}.forest-canvas.leaf-tree>.tree-roots>.tree-node:has(>ul:not([hidden]))>.tree-row:after{top:100%;left:50%;right:auto;width:0;height:30px;border-top:0;border-left:1px solid #91a786}
.forest-canvas.leaf-tree>.tree-roots{flex-direction:row}
/* Spoiler-free setup; study controls appear with the timed board. */
.intro-languages{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.intro-languages details{flex:1;min-width:0}
.intro-languages summary{cursor:pointer;font-size:12px;color:var(--muted);width:fit-content;padding:5px 0}
.intro-languages select{border:1px solid var(--line);border-radius:7px;padding:6px 9px;background:transparent;color:var(--muted);font-size:12px;max-width:150px}
.language-names{display:flex;flex-wrap:wrap;gap:6px;padding:16px 0 4px}
.language-names span{font-size:11px;border:1px solid var(--line);padding:5px 9px;border-radius:20px}
.intro-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;margin:28px 0 0;padding:0}
.intro-steps li{display:flex;gap:12px}
.intro-steps li>span{font-size:11px;color:#8a9c7c;padding-top:2px}
.intro-steps strong{font-size:13px;font-weight:600}
.intro-steps p{font-size:12px;color:var(--muted);line-height:1.6;margin:5px 0 0}
.intro-reveal{font-size:12px;color:var(--muted);text-align:center;margin:32px 0 0}
.intro-footer{justify-content:center;flex-wrap:wrap;gap:24px;margin-top:32px}
.intro-footer a{font-size:11px;color:var(--muted);text-decoration:none}
.intro-footer a:hover{text-decoration:underline}
.study-layout{gap:12px;flex-wrap:wrap}
@media(max-width:520px){.intro-steps{gap:18px;grid-template-columns:1fr}.intro-reveal{text-align:left;margin-top:24px}.intro-footer{justify-content:flex-start;gap:12px 20px}}
/* Intro: all round controls share one card. */
main:has(.intro-hero){max-width:1040px;padding-top:28px}
.intro-hero{margin-bottom:22px}
.intro-hero h1{font-size:clamp(32px,4.5vw,48px);letter-spacing:-1.8px;margin-bottom:10px}
.intro-hero .subtitle{margin-bottom:0}
.intro-hero .word-stamp{width:88px;height:88px;font-size:46px;border-radius:24px}
.challenge-setup{display:block;padding:22px 24px}
.setup-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px}
.setup-fields select,.setup-fields .language-picker-button{width:100%;min-height:34px;font-size:14px}
.setup-fields select:disabled{opacity:.45;cursor:default}
.setup-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.intro-steps{margin:24px 0 0;gap:20px}
.intro-footer{margin-top:24px;padding-top:16px}
@media(max-width:600px){
 .setup-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
 .challenge-setup{padding:18px}
 .intro-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .intro-steps li{display:block}
 .intro-steps li>span{display:none}
 .intro-steps p{font-size:11px;line-height:1.5}
 .setup-bottom .notice{max-width:180px}
}

.mode-tabs{display:flex;gap:6px;margin:0 0 18px}.mode-tabs button{border:1px solid transparent;background:none;border-radius:8px;padding:10px 16px;font-weight:600;font-size:13px;color:var(--muted)}.mode-tabs button[aria-pressed=true]{background:#e8eedf;border-color:#d5dfc8;color:var(--green)}.fixed-setup{justify-content:space-between;align-items:center}.fixed-setup h2{margin:0 0 12px;font-size:25px}.fixed-setup p:last-child{margin-bottom:0}.fixed-setup p{font-size:13px}.archive-date{margin-bottom:16px;max-width:240px}

.archive-list{max-height:220px;overflow-y:auto;border:1px solid var(--line,#d9ddd5);border-radius:12px;margin-bottom:16px;padding:4px}.archive-day{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 16px;border:0;border-radius:8px;background:transparent;text-align:left;font:inherit;color:inherit}.archive-day:hover{background:#f0f3eb}.archive-day[aria-pressed=true]{background:#e8eedf;color:var(--green);font-weight:600}.archive-day:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
/* Warm paper, forest ink, and restrained color across Challenge screens. */
:root{--green:#255b47;--muted:#64756d;--line:#dce3da;--lime:#e3edd8;background:#f6f5ef;color:#203c31}
body{background:radial-gradient(ellipse at 90% 0%,#e8eddd 0,transparent 48%),radial-gradient(ellipse at 0% 80%,#f3e9dc 0,transparent 45%);min-height:100vh}
header{height:84px;border-bottom-color:#d4ddd280}.brand-mark{background:linear-gradient(145deg,#44745a,#204c3b);box-shadow:0 3px 8px #254d3915}.icon-button{background:#ffffff70;transition:background .15s,border-color .15s}.icon-button:hover{background:white;border-color:#9eb4a5}
main:has(.intro-hero){padding-top:42px}.intro-hero{margin-bottom:30px}.intro-hero h1{font-size:clamp(34px,4.8vw,52px);font-weight:750;letter-spacing:-2px;max-width:680px}.intro-hero .eyebrow{color:#58765b;letter-spacing:2.2px;font-size:10px}.intro-hero .word-stamp{background:linear-gradient(145deg,#fefdf7,#dfe8ce);border:1px solid #cbd9c1;box-shadow:8px 10px 0 #dce4d04d;transform:rotate(8deg);border-radius:28px}
.mode-tabs{width:fit-content;padding:4px;border:1px solid #d7dfd3;border-radius:14px;background:#e9ede380;gap:3px;margin-bottom:22px}.mode-tabs button{padding:10px 20px;border-radius:10px;color:#54675c}.mode-tabs button[aria-pressed=true]{background:#fffef9;border-color:#d8e2d2;box-shadow:0 2px 5px #263d3010;color:#244f3b}
.setup{background:#fffefa;border-color:#dce3d6;box-shadow:0 8px 28px #253b2b06;border-radius:20px}.fixed-setup{padding:28px 30px;border-left:4px solid #88a87a}.fixed-setup h2{font-family:Manrope,system-ui,sans-serif;font-size:27px;letter-spacing:-.9px;font-variant-numeric:tabular-nums}.fixed-setup .primary{min-width:146px}.primary{background:linear-gradient(145deg,#356d52,#24523f);border:1px solid #24523f;box-shadow:0 3px 0 #183e2d;transition:filter .15s,transform .15s}.primary:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.primary:disabled{box-shadow:none;opacity:1;background:#e8ede4;border-color:#d8e1d3;color:#677762}.secondary{background:#fffefa;border-color:#cfdccc}.setup-fields .field label,.field-label{font-size:11px;letter-spacing:.3px;color:#667669}.setup-fields select{border-bottom:1px solid #e5e9df;padding-bottom:6px}.setup-fields select:focus{border-bottom-color:#70976d}
.archive-list{background:#fffefa80;border-color:#d9e2d4;padding:6px;border-radius:16px}.archive-day{font-variant-numeric:tabular-nums;border-radius:10px;padding:14px 18px}.archive-day span{font-size:11px;color:#567251}.archive-day[aria-pressed=true]{background:#e3edd9}.intro-steps{padding:4px 8px}.intro-steps li>span{font-weight:700;color:#a26e46}.intro-steps strong{color:#365444}.intro-footer{border-top-color:#d5ded180}
.tile{border-color:#d9e3d2;box-shadow:0 2px 5px #263d3005}.tile:hover{border-color:#89a784;background:#f8fcf3}.tile.playing{border-color:#789b6a;background:#edf5e4;box-shadow:0 0 0 2px #9db88b30}.study-header{padding-bottom:5px}.clock{font-variant-numeric:tabular-nums;color:#315b46}.progress-track{background:#e1e8d9}.progress-fill{background:linear-gradient(90deg,#75976a,#b1bd85)}.recall-card{background:linear-gradient(145deg,#fffefb,#f5f7ed);border-color:#d5dfcc;box-shadow:0 16px 48px #30452d08}.result-number{color:#2a6048}.badge{background:#e4edda;color:#345b3c}
@media(max-width:600px){main:has(.intro-hero){padding-top:30px}.intro-hero{margin-bottom:25px}.fixed-setup{padding:22px}.mode-tabs{width:100%}.mode-tabs button{flex:1;padding:10px 12px}.fixed-setup .primary{min-width:0}.intro-steps{padding:0}.fixed-setup h2{font-size:24px}}


.dated-score{display:flex;align-items:center;gap:24px}.dated-score>strong{font-size:32px;letter-spacing:-1px;font-variant-numeric:tabular-nums;white-space:nowrap}.dated-score small{font-size:15px;color:var(--muted);font-weight:400;letter-spacing:0}@media(max-width:600px){.dated-score{width:100%;justify-content:space-between}.dated-score .primary{width:auto}}

.dated-actions{display:flex;flex-direction:column;align-items:center;gap:10px}.dated-actions .text-button{font-size:11px;white-space:normal;text-align:center}.history-row .dated-actions{align-items:flex-end;max-width:160px}

.account-providers{display:flex;flex-wrap:wrap;gap:12px}.provider-signin{padding:0;border:0;background:transparent}.provider-signin img{display:block;height:40px;width:auto}

.language-navigation{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.language-navigation .dots{gap:0;max-width:440px}.language-dot{display:grid;place-items:center;width:24px;height:28px;padding:0;border:0;background:transparent;border-radius:5px;flex-shrink:0}.language-dot span{width:7px;height:7px;border-radius:50%;background:#dce4d2}.language-dot.done{opacity:1}.language-dot.done span{background:#719356}.language-dot[aria-current="true"] span{background:var(--green);outline:2px solid var(--green);outline-offset:3px}.language-dot:not(:disabled):hover{background:#e4eccf}.language-arrow{background:transparent;border:1px solid var(--line);border-radius:8px;min-width:36px;height:40px;font-size:20px;padding:0}.recall-bottom{gap:16px}@media(max-width:600px){.recall-bottom{flex-wrap:wrap}.language-navigation{flex-basis:100%}.language-navigation .dots{max-width:none;flex:1}.recall-bottom>.pass{margin-left:auto}}

/* A short, number-led invitation; round settings supply the actual figures. */
main:has(.challenge-hook){max-width:1000px;padding-top:42px}
.challenge-hook{position:relative;padding:10px 0 32px;margin-bottom:22px}
.challenge-hook .eyebrow{font-size:10px;letter-spacing:2px;margin:0 0 22px;color:#607666}
.challenge-hook h1{font-family:Manrope,system-ui,sans-serif;font-size:clamp(44px,7.8vw,84px);font-weight:800;letter-spacing:-.065em;line-height:1.08;max-width:none;margin:0}
.challenge-hook h1>span{display:block}
.challenge-hook .hook-time{color:#7c9062}
.hook-timeline{display:flex;align-items:center;gap:24px;margin-top:28px;font-size:13px;color:#6a796d}
.hook-timeline>span:not(.hook-arrow){display:flex;align-items:baseline;gap:7px}
.hook-timeline strong{font-size:14px;font-weight:600;color:#294c3b}
.hook-arrow{color:#94a287;font-size:20px}
main:has(.challenge-hook) .fixed-setup{border-left:1px solid #dce3d6;padding:24px 28px}
main:has(.challenge-hook) .fixed-setup h2{font-size:21px;margin-bottom:9px}
main:has(.challenge-hook) .fixed-setup p{display:inline;font-size:12px;color:#6a796d}
main:has(.challenge-hook) .fixed-setup p+p:before{content:' · ';white-space:pre}
main:has(.challenge-hook) .intro-footer{margin-top:28px}
@media(max-width:600px){main:has(.challenge-hook){padding-top:24px}.challenge-hook{padding:8px 0 24px;margin-bottom:14px}.challenge-hook .eyebrow{font-size:9px;letter-spacing:1.35px;margin-bottom:20px}.challenge-hook h1{font-size:clamp(42px,11vw,64px)}.hook-timeline{gap:16px;margin-top:22px;font-size:12px}.hook-timeline strong{font-size:12px}.hook-timeline>span:not(.hook-arrow){gap:5px}main:has(.challenge-hook) .fixed-setup{padding:20px}}
@media(max-width:360px){.hook-timeline{gap:12px}.hook-timeline>span:not(.hook-arrow){display:grid;gap:2px}}

.header-actions .lemmas-link{text-decoration:none;white-space:nowrap;font-size:13px;display:inline-flex;align-items:center;min-height:44px}.header-actions{flex-wrap:wrap}
