:root{color-scheme:dark;--bg:#0b1125;--card:#151e39;--line:#2a385e;--ink:#f2f5ff;--muted:#abb9db;--mint:#7ef4d2;--purple:#b3a0ff;font:16px/1.55 system-ui,"Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 75% 0%,#202455,transparent 55%),var(--bg);color:var(--ink);min-height:100vh}header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px max(4vw,16px);background:#0c1429;border-bottom:1px solid var(--line);flex-wrap:wrap}.brand{font-weight:900;font-size:1.25rem;color:var(--mint);text-decoration:none}.brand span{color:var(--ink)}nav,.row,.keys{display:flex;align-items:center;flex-wrap:wrap;gap:9px}main{width:min(1100px,92%);margin:32px auto;min-height:70vh}footer{text-align:center;color:var(--muted);padding:18px}h1,h2,h3,p{margin:0 0 .65em}h1{font-size:clamp(1.8rem,5vw,3.4rem);line-height:1.14}h2{font-size:1.35rem}.hero,.card{border:1px solid var(--line);border-radius:22px;background:var(--card);padding:clamp(16px,3vw,30px);margin-bottom:15px}.hero{background:radial-gradient(circle at 85% 22%,#453981 0%,transparent 45%),linear-gradient(130deg,#142747,#191e3d);position:relative;overflow:hidden}.hero p,.hero h1{max-width:690px}.orbit{float:right;font-size:clamp(1.3rem,7vw,5rem);color:var(--mint);text-shadow:0 0 35px #72efddaa}.eyebrow,.pill{color:var(--mint);font-weight:750;letter-spacing:.07em}.pill{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:3px 9px;font-size:.82rem}.muted,small{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:13px}.grid .card{margin:0}.topic{text-align:left;min-height:100px}.topic b{display:block;font-size:1.08rem}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:15px 0}.stat{background:#0e1830;border:1px solid var(--line);padding:10px 14px;border-radius:14px}.stat b{display:block;font-size:1.3rem;color:var(--mint)}button,input,select,textarea{font:inherit;color:inherit;border:1px solid var(--line);border-radius:11px;background:#0e1830;padding:9px 12px;min-width:0}button{cursor:pointer;min-height:42px;font-weight:650}button:hover,a:hover{filter:brightness(1.18)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button:disabled{opacity:.46;cursor:default}.primary{background:var(--mint);color:#0c2630;border-color:var(--mint)}.active{border-color:var(--purple);color:var(--purple)}label{display:block;margin:10px 0}label input:not([type=checkbox]),label textarea{display:block;width:100%;margin-top:4px}textarea{width:100%;resize:vertical}.stack{max-width:470px;margin:auto}.math{font-family:Cambria,"Microsoft YaHei",serif;font-size:clamp(1.3rem,4.2vw,2.25rem);overflow-wrap:anywhere;margin:16px 0}.frac{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center;line-height:1.05;padding:0 .13em}.frac>span:first-child{border-bottom:1px solid currentColor}progress{width:100%;accent-color:var(--mint)}.notice{padding:10px 12px;background:#29294e;border-left:3px solid var(--purple);border-radius:8px;margin:10px 0;white-space:pre-wrap}.error{border-color:#ff947d}.level{border-left:4px solid var(--purple)}details{margin:13px 0}summary{cursor:pointer;font-weight:700}canvas,img{max-width:100%;max-height:300px;object-fit:contain}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}td,th{text-align:left;padding:8px;border-bottom:1px solid var(--line)}a{color:var(--mint)}.maze{display:grid;grid-template-columns:repeat(3,minmax(48px,85px));gap:7px}.maze button{aspect-ratio:1}.is-current{background:var(--purple);color:#172244}@media(max-width:600px){main{margin-top:17px}header{padding:10px 4vw}nav button{font-size:.83rem;padding:6px 8px}.hero .orbit{display:none}}


.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:520px){.source-grid{grid-template-columns:1fr}}

.home-map{background:#facc53;border-color:#facc53;color:#211904}
.home-ai{background:#125cff;border-color:#5085ff;color:#fff;box-shadow:0 3px 14px #125cff55}

.profile-chapter{font-weight:700;background:#202b49}
.profile-section td:first-child{padding-left:1.4rem;white-space:normal;min-width:12rem}

.calculator{margin:16px 0}
.key-group{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.key-group .keys{margin-top:10px}
.key-group .keys button{min-width:42px}
.frac{max-width:100%;break-inside:avoid}
.frac>span{min-width:0;overflow-wrap:anywhere;padding:.12em .2em}
.frac sup{line-height:0}
.practice-card{padding:clamp(12px,2vw,22px)}
.practice-card .eyebrow,.practice-card h2{margin-bottom:4px}
.practice-progress{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:.82rem;color:var(--muted);margin-bottom:10px}
.practice-progress progress{display:block;width:min(24vw,120px);height:5px}
.practice-workspace{border-top:1px solid var(--line);padding-top:10px}
.practice-workspace .math{margin:6px 0 12px}
.difficulty-stars{display:inline-block;color:#ffd45f;white-space:nowrap;letter-spacing:.08em}
.practice-form{display:grid;grid-template-columns:minmax(0,1fr)}
.practice-form label{margin:4px 0}
.practice-form .calculator{margin:8px 0}
.practice-form .key-group{margin:6px 0;padding:6px 8px}
.practice-form .keys{gap:5px}
.practice-form .keys button{padding:6px 8px}
.practice-form .practice-tools{grid-column:1/-1}



.points-rise{position:fixed;z-index:10;right:clamp(12px,5vw,48px);bottom:6vh;pointer-events:none;padding:10px 20px;border-radius:999px;background:var(--mint);color:#0c2630;font-weight:800;box-shadow:0 8px 24px #0006;animation:points-rise 1.5s ease-out both}
@keyframes points-rise{0%{opacity:0;transform:translateY(32px)}20%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translateY(-72px)}}
@media(prefers-reduced-motion:reduce){.points-rise{animation:none}}


.practice-response{margin:10px 0 6px;scroll-margin-top:12px}
.practice-answer>input{display:block;width:100%}

.practice-tool-row,.practice-action-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.practice-tool-row{margin:0 0 14px}
.practice-answer-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.practice-answer-actions label{margin:0;font-weight:700}
.practice-action-group button,.practice-tool-row button{white-space:nowrap;padding-inline:clamp(10px,2vw,16px)}
.practice-primary{background:#175dff;border-color:#75a0ff;color:#fff}
.practice-secondary{background:#132345;border-color:#4c6ca9;color:#d6e5ff}
.practice-secondary:disabled{opacity:.5}

.answer-verdict{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin-bottom:9px}
.answer-verdict strong{font-size:1.08rem}
.correct-result{background:#12352c;border-color:#51d59b;color:#b4f8d5}
.wrong-result{background:#40202e;border-color:#fb8195;color:#ffd5de}
.invalid-result{background:#3a301d;border-color:#e6b764;color:#ffe5ac}
.idle-result{color:var(--muted);background:#101a31}
.idle-result strong{font-size:.88rem}

.company-signature{display:block;color:#d5e7ff;margin-bottom:4px}
.practice-hint-green{background:#3eea93;border-color:#6affb3;color:#073521}
.practice-submit-red{background:#e32945;border-color:#ff7185;color:#fff}
.practice-next-blue{background:#1760ff;border-color:#76a4ff;color:#fff}
.guide-panel{border:1px solid #806b3d;border-radius:12px;background:#322916;color:#ffe69f}
.guide-panel summary{padding:10px 12px;list-style:none;display:flex;justify-content:space-between;gap:10px}
.guide-panel summary::-webkit-details-marker{display:none}
.guide-panel .guide-open,.guide-panel[open] .guide-closed{display:none}
.guide-panel[open] .guide-open{display:inline}
.guide-content{border-top:1px solid #806b3d;padding:10px 12px}
.guide-content p{margin:0}
.ink-picker{display:flex;flex-wrap:wrap;gap:6px 12px;padding:4px 8px;margin:0 0 6px;border:1px solid var(--line);border-radius:8px;font-size:.82rem}
.ink-picker legend{padding-inline:5px;color:var(--muted)}
.ink-picker label{display:inline-flex;align-items:center;gap:4px;margin:0}
.ink-picker input[type=radio]{width:auto;margin:0;accent-color:currentColor}
.ink-red,[data-ink=red]{--work-ink:#ff8294}
.ink-yellow,[data-ink=yellow]{--work-ink:#ffe27b}
.ink-green,[data-ink=green]{--work-ink:#78efac}
.ink-picker label,.practice-workspace[data-ink] #steps-field{color:var(--work-ink,var(--ink))}
.practice-workspace[data-ink] ::selection{background:var(--work-ink,#b3a0ff);color:#101726}
.answer-effect{position:fixed;inset:0;z-index:9;display:grid;place-items:center;pointer-events:none;overflow:hidden}
.answer-effect svg{width:min(56vw,285px);height:auto;max-height:62vh;overflow:visible}
.answer-effect-correct svg{animation:answer-check-pop 1.5s ease-out both}
.answer-effect-check{fill:none;stroke:#ff414a;stroke-width:27;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 12px #ff475c88)}
.answer-effect-wrong svg{animation:answer-burst-pop 1.25s ease-out both}
.answer-effect-burst{fill:#ff7b31;stroke:#ffcd64;stroke-width:4;stroke-linejoin:round}
.answer-effect-core{fill:#fff0a2}
.answer-effect-ring,.answer-effect-sparks{fill:none;stroke:#ffca63;stroke-width:4;stroke-linecap:round}
.answer-effect-ring{opacity:.64;transform-origin:center;animation:answer-burst-ring 1s ease-out both}
@keyframes answer-check-pop{0%{opacity:1;transform:scale(.82)}19%{transform:scale(1.07)}32%,70%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
@keyframes answer-burst-pop{0%{opacity:1;transform:scale(.35)}18%{transform:scale(1.06)}42%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.13)}}
@keyframes answer-burst-ring{0%{transform:scale(.6)}100%{transform:scale(1.34);opacity:0}}
@media(prefers-reduced-motion:reduce){.answer-effect svg,.answer-effect-ring{animation:none}}

.ink-white,[data-ink=white]{--work-ink:#fff}

.today-hero{background:radial-gradient(ellipse at 95% 10%,#304a85 0%,transparent 58%),linear-gradient(145deg,#172950,#16203b)}
.today-actions{margin:16px 0}
.today-progress{max-width:520px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0c1730}
.today-progress>div{display:flex;justify-content:space-between;gap:8px}
.today-progress>div span{color:var(--mint);font-weight:700}
.today-progress progress{display:block;height:8px;margin:8px 0}
.today-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.today-skills{list-style:none;padding:0;margin:0}
.today-skills li{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.today-skills li:last-child{border-bottom:0}
.summary-hero .stat b{font-variant-numeric:tabular-nums}
@media(max-width:560px){.today-grid{grid-template-columns:1fr}.today-grid .card{margin-bottom:0}}

.practice-editor{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:start}
.practice-editor>.practice-steps:only-child{grid-column:1/-1}
.practice-keypad{padding:8px 10px 4px;border:1px solid var(--line);border-radius:12px;background:#101a31}
.practice-keypad .calculator{margin:0}
.practice-keypad .calculator>p{margin-bottom:5px;font-size:.82rem}
.process-preview{margin-top:10px;border:1px solid var(--line);background:#101a31;border-radius:10px;padding:8px 12px}
.process-preview>b{color:var(--muted);font-size:.85rem}
#process-preview{margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-family:Cambria,"Microsoft YaHei",serif;font-size:1.1rem;color:var(--work-ink,var(--ink))}
@media(max-width:680px){
 .practice-editor{grid-template-columns:minmax(0,1fr);gap:8px}
 .practice-editor #steps-field{height:7.5rem;min-height:5rem}
 .practice-keypad .keys{display:grid;grid-template-columns:repeat(auto-fit,minmax(36px,1fr))}
 .practice-keypad .keys button{min-width:0;min-height:36px;padding:4px}
}

.teacher-question-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.teacher-question{padding:14px 0;border-top:1px solid var(--line)}
.teacher-question h3{font-size:1rem;color:var(--muted)}
.teacher-question-box{min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#0e1830}
.teacher-question-box .math{margin:.5em 0 0;font-size:clamp(1.05rem,2.5vw,1.4rem)}
#teacher-section,#teacher-bank-id,#import-source-section{max-width:100%}
@media(max-width:600px){.teacher-question-fields{grid-template-columns:minmax(0,1fr)}}

.question-image{display:block;max-width:100%;height:auto;max-height:380px;margin:.6em 0}
.teacher-question-editor fieldset{margin:0}
.teacher-question-editor textarea{min-height:4em}
.form-status{margin:.6em 0 0;color:var(--mint);overflow-wrap:anywhere}

.teacher-question-edit{margin:0 0 12px}
.teacher-question-edit>summary{width:fit-content;padding:6px 12px;border:1px solid var(--mint);border-radius:8px;color:var(--mint);cursor:pointer}
.teacher-question-edit[open]>summary{margin-bottom:10px}

.complete-solution{display:grid;gap:.6rem}
.complete-solution p{margin:0}
.solution-lines{display:grid;gap:.4rem;margin-top:.25rem}
.solution-final{padding:.65rem .75rem;border-left:3px solid var(--mint);background:#0e1830;border-radius:6px}

.badge-wall{display:grid;grid-template-columns:repeat(auto-fit,minmax(106px,1fr));gap:12px;padding:12px 0}
.badge-wall figure{margin:0;text-align:center;background:#111c32;border:1px solid #334361;border-radius:14px;padding:10px}
.badge-wall img{display:block;width:min(100%,105px);margin:auto}.badge-wall figcaption{font-size:.86rem}
.badge-wall .locked img{filter:grayscale(.85);opacity:.56}
.gentle-check .answer-effect-check{stroke:#ff414a}
details>.platform-action{margin-block:12px}
.practice-layers + .practice-map-action { margin-block-start: 14px; }
.catalog-tree details > details { margin-inline-start: clamp(6px, 2vw, 16px); }

.map-module .practice-layers { margin-top: 14px; }
.map-directory .map-node { margin: 0 0 10px; min-width: 0; }
.map-directory .map-chapter { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--mint); border-radius: 16px; }
.map-directory .map-section { background: #0e1830; border: 1px solid var(--line); border-radius: 11px; }
.map-directory .map-knowledge { border-bottom: 1px solid var(--line); }
.map-node-title { padding: 10px 12px; overflow-wrap: anywhere; }
.map-node-title::marker { color: var(--purple); }
.map-kind { display: inline-block; font-size: .72rem; font-weight: 750; color: var(--muted); margin-inline: 4px 8px; }
.map-name { margin-inline-end: 8px; }
.map-chapter > .map-node-title { font-size: 1.2rem; font-weight: 850; }
.map-chapter > .map-node-title .map-kind { color: var(--mint); }
.map-section > .map-node-title { font-size: 1.02rem; font-weight: 700; }
.map-section > .map-node-title .map-kind { color: var(--purple); }
.map-knowledge > .map-node-title { font-size: .92rem; font-weight: 500; }
.map-node-body { padding: 0 clamp(5px, 2vw, 16px) 6px; }
.map-node-title .directory-meta { display: inline-block; font-size: .74rem; background: #263552; color: #e5edff; border-radius: 12px; padding: 1px 7px; }

.map-directory .map-kind { display:inline-flex; align-items:center; gap:.35em; padding:.12em .5em; border-radius:7px; white-space:nowrap; }
.map-directory .map-chapter > .map-node-title .map-kind { color:#8cf7d7; background:#173d3d; }
.map-directory .map-section > .map-node-title .map-kind { color:#d8ccff; background:#302550; }
.map-directory .map-knowledge > .map-node-title .map-kind { color:#ffdc91; background:#3e3020; }
.map-kind-icon { font-size:.78em; }

.map-kind { display:inline-flex; align-items:center; gap:.35em; padding:.12em .5em; border-radius:7px; white-space:nowrap; }
.map-kind-topic,.map-kind-chapter { color:#8cf7d7; background:#173d3d; }
.map-kind-section { color:#d8ccff; background:#302550; }
.map-kind-knowledge { color:#ffdc91; background:#3e3020; }

.home-launch { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr); gap:clamp(18px,4vw,40px); align-items:center; }
.home-launch h1 { font-size:clamp(1.85rem,4.5vw,3.2rem); }
.home-launch .practice-layers { margin-block:14px; }
.home-launch .today-progress { margin:0; align-self:stretch; }
.home-xp { margin:16px 0 10px; color:var(--muted); }
.home-xp strong { font-size:1.5rem; color:var(--mint); margin-inline-start:8px; }
.home-overview { grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); }
@media(max-width:680px){ .home-launch { grid-template-columns:1fr; } }

.home-launch .home-scope { font-size:clamp(1.35rem,3.4vw,2.35rem); color:var(--mint); line-height:1.35; }
.home-scope-item { white-space:nowrap; }

/* LeapThink visual system */
:root {
  --bg:#0b1325; --card:#15223a; --line:#344665; --ink:#f4f7ff;
  --muted:#bdcbe4; --mint:#83f1ca; --purple:#c7b9ff;
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}
body { background:radial-gradient(ellipse at 75% 0%,#222e58 0%,transparent 44rem),var(--bg); }
header { background:#0d172bea; gap:14px 24px; padding-block:14px; }
.brand { font-size:clamp(1rem,2vw,1.3rem); }
nav { gap:6px; }
nav button { background:transparent; border-color:transparent; border-radius:9px; min-height:40px; }
nav button.active { background:#28264b; color:#ddd3ff; border-color:#62568c; }
nav button:hover { background:#212e47; }
main { width:min(1140px,94%); }
.card,.hero { border-radius:18px; padding:clamp(15px,3vw,30px); }
.card { box-shadow:0 5px 18px #050a161c; }
.hero { background:linear-gradient(120deg,#1b304e,#262b54); }
.home-launch {
  background:radial-gradient(ellipse at 8% 0%,#23495a,transparent 65%),linear-gradient(118deg,#192b46,#252b52);
  border-color:#476483;
}
.home-launch .home-scope { color:var(--ink); text-wrap:balance; }
.home-scope-item { color:var(--mint); }
.home-launch .today-progress { background:#101b31; border-color:#435875; border-radius:15px; }
.home-overview { gap:14px; }
.home-overview .card h2 { font-size:1.16rem; }
.home-overview .card p,.today-skills li small { color:var(--muted); }
button { transition:background-color .15s,border-color .15s,box-shadow .15s; }
button:not(:disabled):hover { box-shadow:0 2px 10px #070f2b35; }
button.primary { box-shadow:0 2px 0 #368e79; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
.map-directory .map-chapter { border-inline-start-width:3px; }
.map-directory .map-section { background:#101c32; }
.map-node-title { padding-block:12px; }
.map-node-title .directory-meta { background:#2a3c57; }
.practice-progress { background:#101c32; padding:9px 12px; border-radius:10px; }
.practice-workspace .math { color:var(--ink); }
.practice-steps,.practice-answer input { border-color:#425572; }
.teacher-question-fields { gap:14px; }
.teacher-question-box { border-color:#3a4e6b; border-radius:12px; }
.scroll table th { background:#101d32; color:#d9e5fc; }
.scroll table tbody tr:nth-child(even) { background:#0f192c56; }
@media(max-width:600px) {
  header { gap:8px; }
  nav button { font-size:.83rem; min-height:36px; }
  .home-launch .home-scope { font-size:clamp(1.28rem,4.6vw,1.8rem); }
  .map-node-title { padding-inline:7px; }
}
@media(prefers-reduced-motion:reduce) { button { transition:none; } }


.plan-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.plan-actions > div { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:12px; border:1px solid var(--line); border-radius:12px; }
.plan-actions p { margin:0; overflow-wrap:anywhere; }
.plan-actions button { margin-top:auto; }
@media(max-width:460px){ .plan-actions { grid-template-columns:1fr; } }

.question-file-preview:empty{display:none}.question-file-preview img{max-height:120px;border-radius:8px}

.curriculum-options{border:1px solid var(--line);border-radius:10px;margin:12px 0;padding:4px 12px}.curriculum-options label{margin:4px 10px 4px 0} #import-bank [data-import-step][hidden]{display:none}

[data-import-step],.import-review-card{min-width:0}
#import-bank select[name="course_node"],.import-review-card select[data-import-field="course_node"]{width:100%;max-width:100%}
#import-cards{display:grid;gap:16px;margin-block:16px}
#import-cards:empty{display:none}

.home-next{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.home-next h2{font-size:1.15rem;margin:0 0 4px}
.home-next p{margin:0 0 12px;color:var(--muted)}
.home-week{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.home-week dt{font-size:.82rem;color:var(--muted)}
.home-week dd{margin:4px 0 0;font-size:1.1rem;font-weight:700;color:var(--mint)}
.home-review-skills{margin-block:0 12px;padding-inline-start:1.3em}

.map-practice-progress{display:inline-block;margin:4px 8px 4px 0;padding:3px 8px;border-radius:8px;background:#174035;color:var(--mint);font-size:.8rem;font-weight:650}


.realm-page{color:#142e4d;background:radial-gradient(ellipse at 10% 26%,#f7fcff 0%,transparent 40%),radial-gradient(ellipse at 83% 53%,#fef6df 0%,transparent 52%),linear-gradient(152deg,#b5e2ff,#e8f4ff 62%,#ffe8b8);border:1px solid #a9d7f4;border-radius:25px;padding:clamp(12px,3vw,30px)}
.realm-hero{padding:clamp(14px,3vw,24px);background:#ffffffd9;border:1px solid #fff;border-radius:18px;margin-bottom:16px;box-shadow:0 8px 22px #23547e1c}
.realm-hero h1{font-size:clamp(1.4rem,4vw,2.65rem);margin:12px 0}
.realm-hero label{font-weight:700}
.realm-hero select,.realm-hero button,.realm-dialog button{color:#163454;background:#e8f4ff;border-color:#aac5da}
.realm-hero select{max-width:100%}
.realm-totals{display:flex;flex-wrap:wrap;gap:8px 24px;margin:8px 0}
.realm-totals strong{font-size:1.2rem;color:#16458a}
.realm-next{display:grid;grid-template-columns:1fr auto;gap:4px 12px;border-inline-start:4px solid #cb8c25;background:#fff5df;border-radius:8px;padding:10px 12px;margin:12px 0}
.realm-next progress{accent-color:#b77a18}
.realm-hero small,.realm-next small{color:#4d5362}
.realm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.realm-badge{position:relative;display:grid;justify-items:center;align-content:start;gap:3px;padding:10px 5px;background:#ffffffd9;border:1px solid #a9c8dd;border-radius:15px;color:#183956;line-height:1.3;min-width:0}
.realm-badge strong{font-size:clamp(.96rem,2.4vw,1.23rem)}
.realm-badge span,.realm-badge small{font-size:clamp(.71rem,1.7vw,.84rem);white-space:nowrap}
.realm-badge small{color:#3b5670}
.realm-art{display:grid;place-items:center;width:min(132px,100%);aspect-ratio:1;margin:0 auto}
.realm-art img{width:100%;height:auto;max-height:none;display:block}
.realm-art-fallback::after{content:"✦";display:grid;place-items:center;width:76%;aspect-ratio:1;border:4px solid #edc368;border-radius:50%;background:#163c64;color:#fff0b8;font-size:2.6rem}
.realm-badge.is-locked .realm-art img{filter:saturate(.55);opacity:.72}
.realm-badge.is-highest{border:2px solid #ad781c;box-shadow:0 0 18px var(--realm-accent);background:#fff9e8}
.realm-badge.is-earned small{color:#176352}
.realm-ultimate{display:grid;justify-content:center;margin-top:14px}
.realm-final{min-width:min(240px,100%);background:#fff3d7;border-color:#c08b28;padding:12px 25px}
.realm-final .realm-art{width:min(176px,100%)}
.realm-dialog{max-width:min(460px,90vw);padding:20px;border:1px solid #c49949;border-radius:18px;background:#fff8e7;color:#142e4d;text-align:center}
.realm-dialog::backdrop{background:#112844aa}
.realm-award{position:fixed;z-index:30;bottom:clamp(12px,4vw,36px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 24px);border:2px solid #c58b2e;border-radius:16px;background:#fff7e0;color:#172e47;padding:8px 12px;box-shadow:0 8px 24px #0005}
.realm-award .realm-art{width:56px;flex:0 0 56px}.realm-award p{margin:2px 0}.realm-award button{background:#e8f4ff;color:#163454;border-color:#aac5da}
.realm-award-motion .realm-art{animation:realm-shine 1s ease-out}
@keyframes realm-shine{0%{transform:scale(.75);filter:brightness(1.8)}40%{transform:scale(1.24);filter:drop-shadow(0 0 12px #efa528)}100%{transform:scale(1)}}
@media(max-width:680px){.realm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.realm-next{grid-template-columns:1fr}.realm-next small{justify-self:end}}
@media(prefers-reduced-motion:reduce){.realm-award-motion .realm-art{animation:none}}

.realm-award-motion::before,.realm-award-motion::after{content:"✧";position:absolute;top:0;left:30px;color:#9b6010;pointer-events:none;animation:realm-spark 1s ease-out both}
.realm-award-motion::after{content:"✦";left:58px;animation-delay:.08s}
@keyframes realm-spark{from{transform:translateY(17px) scale(.6);opacity:0}35%{opacity:1}to{transform:translateY(-24px) scale(1.2);opacity:0}}
@media(prefers-reduced-motion:reduce){.realm-award-motion::before,.realm-award-motion::after{animation:none;display:none}}

.family-board{background:#f1f9ff;color:#153454;padding:clamp(14px,3vw,26px);border-radius:18px}
.family-board .stat,.family-board article{color:#153454;background:white;border:1px solid #cce0ec;padding:12px;border-radius:12px;margin:8px 0}
.family-board .stat b{color:#12614d}
.family-board button{background:#e3f2fb;color:#153454;border-color:#b6d4e8}
.family-board button.primary{background:#9debd5;color:#114e40}
.family-tabs{margin:12px 0}
@media(max-width:550px){header #nav{gap:4px}header #nav button{padding-inline:7px}.family-board h1{font-size:1.6rem}}

.desk-overview strong{display:block;font-size:1.9rem;margin-bottom:14px;color:var(--mint)}
.desk-bulk{padding:12px;margin-block:12px;border:1px solid var(--line);border-radius:12px}
.desk-item{margin:12px 0}.desk-item .math{margin:8px 0}.desk-tabs button{min-height:38px}
@media(max-width:600px){.desk-bulk select,.desk-bulk input{max-width:100%}.desk-tabs{gap:6px}}

.desk-item .teacher-question-editor select,.desk-bulk select,#desk-filter-form select{max-width:100%}

.nb-hero{margin-bottom:1rem}.nb-actions,.nb-filters,.nb-crop{display:grid;gap:.75rem;grid-template-columns:repeat(4,minmax(0,1fr));margin:1rem 0}.nb-actions button{min-height:48px}.nb-filters label,.nb-crop label{min-width:0}.nb-filters select,.nb-crop input{width:100%;min-width:0}.nb-item{padding:1rem 0;border-bottom:1px solid #3c506c}.nb-meta{color:#b7cae3;font-size:.88rem}.nb-photo{display:block;max-width:min(100%,40rem);max-height:28rem;object-fit:contain;border-radius:.5rem;margin:.6rem 0}.nb-photo[hidden]{display:none}.nb-stem{white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto}.nb-drop{border:2px dashed #7995b6;padding:1rem;border-radius:.75rem}.nb-drop label{display:block;padding:.5rem 0}.nb-answer{margin:1rem 0}.nb-verdict{min-height:1.5rem}.nb-ok{color:#ff677f;font-weight:700}.nb-no{color:#ffcf6b}.nb-check{display:flex;gap:.75rem;align-items:baseline}.nb-worksheet{background:#fff;color:#192944;padding:1.5rem;margin:1rem 0;border-radius:.5rem}.nb-worksheet article{break-inside:avoid}.nb-writing{height:4rem;border-bottom:1px dashed #b3bdcc;margin-bottom:.65rem}.nb-download{display:inline-block;color:#81f3d8;font-weight:700;padding:.75rem}.nb-family{margin-bottom:1.2rem}
@media(max-width:640px){.nb-actions,.nb-filters,.nb-crop{grid-template-columns:repeat(2,minmax(0,1fr))}.nb-actions button{padding:.5rem;min-width:0}.nb-hero .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.nb-hero .stat{padding:.4rem}.nb-drop input{max-width:100%}}
#nb-edit select,#nb-upload select,#nb-assign input,#nb-print select{display:block;width:100%;max-width:100%;min-width:0}
#nb-edit textarea{min-height:85px}
.nb-drop,.nb-crop,.nb-item,.nb-filters{min-width:0}
@page{size:A4;margin:15mm}
@media print{body:has(.nb-worksheet){background:white;color:#000}body:has(.nb-worksheet)>header,body:has(.nb-worksheet)>footer,main:has(.nb-worksheet)>:not(.nb-worksheet){display:none}main:has(.nb-worksheet){width:100%;margin:0}.nb-worksheet{width:100%;margin:0;padding:0}.nb-worksheet .math{color:#000}}

.desk-classification{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:.5rem;margin:.75rem 0}.desk-classification>div{padding:.55rem .7rem;background:#101a31;border:1px solid #334665;border-radius:.55rem;min-width:0}.desk-classification dt{color:#bbcced;font-size:.85rem}.desk-classification dd{margin:0;font-weight:650;overflow-wrap:anywhere}.desk-directory select,.desk-details select{width:100%;max-width:100%;min-width:0}.desk-content-edit{margin:1rem 0}.teacher-question-editor [hidden]{display:none!important}.desk-item .question-image{max-width:100%}
@media(max-width:640px){#desk-filter-form>label{flex:1 1 42%;min-width:0;max-width:100%}#desk-filter-form select,#desk-filter-form input,#desk-bulk select,.desk-item input,.desk-item select{max-width:100%;min-width:0}#desk-filter-form select{width:100%}.desk-item{scroll-margin-top:1rem}.desk-item .row button{min-height:44px}.desk-classification{grid-template-columns:repeat(2,minmax(0,1fr))}}
.desk-directory-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.desk-directory-levels label{min-width:0}.desk-directory-levels select{display:block}

:root{--surface-strong:#101a30;--surface-soft:#182541;--border-strong:#405577;--ink-secondary:#c0cde5;--selected:#d2c3ff;--warn:#ffcf7b;--negative:#ffa3ad;--radius-panel:16px;--layout-gap:clamp(12px,2vw,20px)}
#nav{min-width:0}
#nav a,.family-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:.52rem .82rem;min-height:44px;border:1px solid transparent;border-radius:11px;color:var(--ink);text-decoration:none;font-weight:650;white-space:nowrap}
#nav a:hover:not([aria-current]),.family-tabs a:hover:not([aria-selected="true"]){background:var(--surface-soft);border-color:var(--line)}
#nav a[aria-current="page"],.family-tabs a[aria-selected="true"]{background:#312753;color:var(--selected);border-color:#a78df7;font-weight:750}
.growth-hero{padding-block:clamp(18px,3vw,31px)}
.growth-hero h1{margin-bottom:.2em}
.growth-hero .eyebrow{color:var(--mint)}
.home-v47{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:var(--layout-gap);align-items:start}
.home-v47>div{min-width:0}
.home-v47 .stat small,.family-tabs~.card .stat small{color:var(--ink-secondary)}
.family-tabs{border:1px solid var(--line);background:var(--surface-strong);padding:8px;border-radius:var(--radius-panel);margin:0 0 var(--layout-gap)}
.family-tabs~.card,.home-v47 .card{border-radius:var(--radius-panel)}
.growth-level select{margin-inline-start:.7rem}
main select, main select option{color:var(--ink);background:var(--surface-strong);color-scheme:dark}
main .realm-hero select{background:var(--surface-strong);color:var(--ink)}
.growth-empty{color:var(--ink-secondary)}
.plan-progress{padding:12px 0}.plan-progress>div{display:flex;justify-content:space-between;gap:8px}
.plan-progress span,.plan-focus{color:var(--ink-secondary)}
.task-sequence{padding:0;list-style:none;margin:8px 0}
.task-sequence li{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:7px 0;padding:12px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface-strong)}
.task-sequence p{margin:4px 0 0;color:var(--ink-secondary);font-size:.91rem}
.task-sequence button{flex-shrink:0}
.task-state,.mastery-label{display:inline-block;margin-inline-start:8px;color:var(--mint);font-size:.86rem}
details>summary{list-style:none;cursor:pointer;overflow-wrap:anywhere}
details>summary::-webkit-details-marker{display:none}
details>summary::before{content:'';display:inline-block;border:solid var(--selected);border-width:0 2px 2px 0;width:7px;height:7px;transform:translateY(-3px) rotate(45deg);margin-inline:2px 12px}
details[open]>summary::before{transform:translateY(1px) rotate(225deg)}
details>summary:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.growth-detail,.growth-branch{background:var(--surface-strong);border:1px solid var(--border-strong);border-radius:12px;margin:8px 0;min-width:0}
.growth-detail>summary,.growth-branch>summary{padding:10px 12px;min-height:44px}
.growth-detail-body,.growth-branch-body{padding:0 12px 10px;min-width:0;overflow-wrap:anywhere}
.growth-branch-body .growth-branch-body{padding-inline:7px}
.growth-detail-body li{margin-block:.45rem}
.growth-detail-body article{padding:10px 0;border-bottom:1px solid var(--line)}
.growth-detail-body [data-close-panel]{min-height:36px;margin-top:8px}
@media(max-width:680px){
 .home-v47{grid-template-columns:1fr}
 #nav{width:100%;gap:5px}
 #nav a,.family-tabs a{padding-inline:.62rem}
 .family-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-v47 .stats{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
 .growth-detail-body,.growth-branch-body,.growth-branch-body .growth-branch-body{padding-inline:7px}
 .task-sequence button{min-height:44px}
}


/* Shared premium question editor */
.rich-field{min-width:0}.rich-editor{min-height:150px;max-height:480px;overflow:auto;padding:.8rem;background:#101a31;color:#f4f7ff;border:1px solid #435678;border-radius:12px;line-height:1.8;overflow-wrap:anywhere}.rich-editor:focus{outline:2px solid #7af0cd}.rich-toolbar{display:flex;gap:.3rem;flex-wrap:wrap;margin:.6rem 0}.rich-toolbar button{font-size:.8rem;padding:.35rem .5rem;min-height:36px}.display-choice{display:block;width:100%}.rich-field select{width:100%}.rich-field .question-file-preview{max-width:100%}.question-presentation img{max-width:100%;height:auto;cursor:zoom-in}.question-presentation{overflow-wrap:anywhere;min-width:0}.question-presentation p{margin:.4rem 0}.question-presentation ol,.question-presentation ul{padding-left:1.5rem}.question-preview-dialog{width:min(900px,94vw);max-height:90vh;overflow:auto;background:#15223b;color:#f4f7ff;border:1px solid #526683;border-radius:20px;padding:1.3rem}.question-preview-dialog::backdrop{background:#050c1bc9}.dialog-close{position:sticky;top:0;float:right;z-index:2}.question-preview-dialog section{border-bottom:1px solid #425675;padding:1rem 0}.editor-recovery{padding:.8rem;margin-top:1rem;background:#101a31;border-radius:12px}.select-search-toggle{font-size:.75rem;padding:.2rem .5rem;margin:.2rem}.math-root{display:inline-flex;align-items:baseline;white-space:nowrap}.math-root>span{border-top:1px solid currentColor;padding:0 .16em}.formula-display{display:inline-block;vertical-align:middle;margin:0 .12em}.rich-editor [data-formula]{background:#243b5b;border-radius:4px;padding:0 .2rem}.question-versions{margin-top:1rem}.question-versions details{padding:.5rem;border-bottom:1px solid #425675}
@media(max-width:640px){.rich-toolbar button{min-height:44px}.teacher-question-fields{grid-template-columns:minmax(0,1fr)}.question-preview-dialog{padding:.8rem}.rich-editor{font-size:16px}.rich-field{padding:.7rem;max-width:100%;box-sizing:border-box}}

.rich-editor [data-picture]{display:inline-block;max-width:100%;vertical-align:middle}.rich-editor .inline-picture{max-width:100%;height:auto;display:block;border:1px solid #506889;border-radius:8px;margin:.5rem 0}.rich-editor:empty:before{content:"可输入文字、Ctrl+V粘贴截图或图文，也可拖入图片";color:#a3b5d2;pointer-events:none}.rich-editor img{user-select:all}.question-presentation .inline-picture{max-width:100%;height:auto}

.source-composer{min-height:250px;padding:16px;background:var(--panel,#0d172d);border:1px solid #344767;border-radius:16px;overflow-wrap:anywhere;outline:none}.source-composer:focus{border-color:#7ef0d0;box-shadow:0 0 0 2px #7ef0d030}.source-composer:empty:before{content:attr(data-placeholder);color:#91a4bf}.source-composer img{display:block;max-width:100%;height:auto;margin:10px 0}.source-file-button{margin-top:12px}[data-source-files] span{display:block;overflow-wrap:anywhere}[data-source-files] button{padding:4px 8px;min-height:36px}

.entry-success{margin-top:24px;padding:20px;border:1px solid #7ef0d0;border-radius:16px}.entry-success button{margin:6px}.region-image-dialog textarea{width:100%;min-height:180px}.region-image-dialog>[data-region-preview]{max-height:45vh;object-fit:contain}.rich-field[data-mode=text] .region-attachment{display:none}.rich-toolbar{flex-wrap:wrap}

button.danger{color:#ffb5bd;background:#381d2b;border-color:#a45a68}button.danger:hover{background:#582636}button.danger:focus-visible{outline:2px solid #ffbec8;outline-offset:3px}

/* Keep content approval beside its publish action, wrapping on phones. */
.publish-confirm-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:100%}
.publish-confirm-actions .desk-confirm{display:flex;align-items:center;gap:8px;margin:0;min-height:44px;max-width:100%;font-size:1rem}
.publish-confirm-actions input[type="checkbox"]{width:20px;height:20px;flex:0 0 20px;margin:0}
.publish-confirm-actions button{flex-shrink:0}

#desk-filter-form{align-items:flex-end}
#desk-filter-form label{min-width:0;max-width:100%}
#desk-filter-form label:has(select[name="course_node"]){flex:1 1 100%;width:100%}
#desk-filter-form select,#desk-filter-form input{min-width:0;max-width:100%}
#desk-filter-form select[name="course_node"]{width:100%}
[data-desk-results][aria-busy="true"]{opacity:.5;pointer-events:none}

/* V5.2: focused login, refresh recovery and ordinary-practice skipping. */
.logged-out header .brand span{display:none}.logged-out header .brand::after{content:'恩泽数学｜小升初AI自学系统';font-size:clamp(16px,2vw,24px)}
.login-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);gap:clamp(28px,5vw,80px);align-items:center;max-width:1180px;margin:32px auto 48px}
.login-value{position:relative;padding:20px 0}.login-value h1{font-size:clamp(34px,4.5vw,60px);line-height:1.2;margin:16px 0 22px;letter-spacing:-1px}.login-eyebrow{color:#7af4d6;font-weight:700;letter-spacing:1px;margin:0 0 12px}.login-intro{max-width:560px;color:#bdcce4;line-height:1.8;font-size:17px}.login-features{list-style:none;display:grid;gap:16px;margin:26px 0 0;padding:0}.login-features li{display:grid;grid-template-columns:105px 1fr;gap:12px;align-items:center}.login-features b{color:#80f5d8}.login-features span{color:#bdcce4;font-size:15px}.login-card{width:100%;max-width:460px;margin:0;box-sizing:border-box;padding:32px}.login-card h2{margin:0}.login-card input{width:100%;box-sizing:border-box;min-height:48px;font-size:16px}.login-card button{min-height:48px;width:100%}.login-test-note{color:#a7bbd8;font-size:12px;text-align:center}.login-math{height:100px;display:flex;gap:22px;align-items:center;color:#7af4d6}.login-math span{display:grid;place-items:center;width:65px;height:65px;background:#142b46;border:1px solid #31546c;border-radius:18px;font-size:30px}.login-math span:nth-child(2){transform:rotate(-8deg)}.login-math i{width:60px;height:60px;border:1px solid #7af4d6;border-radius:50%;opacity:.5}
.refresh-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.refresh-control button{min-height:44px}.refresh-control span{color:#a9e9db;font-size:13px;max-width:250px}.skip-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0;color:#b9cde7}.skip-options label{display:flex;align-items:center;gap:8px;font-size:14px}.skip-options select{max-width:100%;min-width:0;font-size:14px}.skip-limit{padding:16px;border:1px solid #5f6284;border-radius:16px;background:#17253e}.skip-limit p{margin-top:0}.skip-limit button{font-size:14px;min-height:44px}.practice-action-group{flex-wrap:wrap}
@media(max-width:720px){.login-layout{grid-template-columns:minmax(0,1fr);gap:16px;margin:16px auto 24px;max-width:460px}.login-value{padding:0 8px}.login-value h1{font-size:32px;margin:10px 0}.login-intro{font-size:14px;margin:8px 0}.login-math,.login-features{display:none}.login-card{padding:22px}.logged-out header{padding:16px}.logged-out footer{margin-top:20px}.skip-options{align-items:flex-start}.skip-options label{flex-wrap:wrap}.skip-options select{width:100%}.refresh-control span{max-width:150px}}

/* Login cover: reference composition. All selectors remain scoped to the cover. */
.brand .brand-cover{display:none}.logged-out{position:relative;isolation:isolate;background:radial-gradient(ellipse at 32% 55%,#063778 0%,#02285b 35%,#001a40 78%);overflow-x:clip}
.logged-out header{padding:20px 4.4vw;background:#031c3f;border-bottom:1px solid #16598a;min-height:96px}.logged-out header .brand{width:100%;color:#f7f9ff}.logged-out header .brand::after{content:none}.logged-out header .brand .brand-authenticated{display:none}.logged-out header .brand .brand-cover{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:clamp(22px,3.1vw,42px);line-height:1.3}.brand-cover i{font-style:normal;color:#21f7d0;font-size:1.2em}.brand-cover b{font-weight:850;white-space:nowrap}.brand-cover em{font-style:normal;color:#ff514f;font-size:.76em;font-weight:750}
.logged-out main{width:min(1320px,90%);margin:0 auto;min-height:0}.logged-out .login-layout{grid-template-columns:minmax(0,1.18fr) minmax(390px,.98fr);gap:64px;align-items:start;max-width:none;margin:62px auto 10px}.logged-out .login-value{padding:0}.logged-out .login-eyebrow{font-size:clamp(20px,2vw,28px);color:#47f8cc;letter-spacing:2px;margin:0}.logged-out .login-value h1{font-size:clamp(42px,5.15vw,76px);line-height:1.2;letter-spacing:-1.5px;margin:32px 0 36px;white-space:nowrap;font-weight:850}.cover-highlight{color:#22f5cc;position:relative;display:inline-block}.cover-highlight::after{content:'';position:absolute;left:0;right:0;height:13px;bottom:-17px;border-top:7px solid #63ffe0;border-radius:50%;transform:rotate(-1deg);filter:drop-shadow(0 0 5px #16dfd3)}.logged-out .login-intro{font-size:clamp(16px,1.35vw,20px);font-weight:650;line-height:1.8;color:#f5f7ff;margin:0;max-width:none}
.cover-features{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;padding:0;margin:52px 0 0}.cover-features li{height:136px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid #36b2d7;border-radius:24px;background:linear-gradient(145deg,#0b4670aa,#07315b88);box-shadow:inset 0 0 18px #0b74a126}.cover-features svg{width:52px;height:52px;color:#46ffd2}.cover-features b{font-size:clamp(16px,1.65vw,24px);white-space:nowrap;color:#f9fbff}.cover-math-art{display:block;width:calc(100% + 64px);max-width:none;max-height:none;height:auto;margin:12px -32px -2px;object-fit:contain;aspect-ratio:2/1}
.logged-out .login-card{max-width:none;width:100%;padding:38px 44px 42px;margin:24px 0 0;background:linear-gradient(135deg,#123b6699,#0a2a4ccc);border:1px solid #4086be;border-radius:27px;box-shadow:0 8px 34px #00132e55,inset 0 0 24px #0d4e7615}.logged-out .login-card h2{font-size:clamp(32px,3.1vw,46px);margin:0 0 16px;font-weight:850}.logged-out .login-card label{font-size:20px;font-weight:750;margin:20px 0 0}.logged-out .login-card input{margin-top:8px;min-height:60px;padding:12px 16px;border:1px solid #4486bd;background:#031c3fbb;border-radius:16px;box-shadow:inset 0 2px 8px #00132e22;font-size:19px}.cover-password{position:relative}.logged-out .login-card .cover-password input{padding-right:60px}.logged-out .login-card .cover-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:8px;border:0;border-radius:10px;background:transparent;color:#fff;box-shadow:none}.cover-password-toggle svg{width:28px;height:28px}.cover-password-toggle[aria-pressed=true] .eye-slash{display:none}.logged-out .login-card>button.primary{width:100%;margin-top:34px;min-height:76px;font-size:28px;font-weight:850;border:0;border-bottom:4px solid #2dbda7;border-radius:18px;color:#012642;background:linear-gradient(110deg,#69f6c6,#45f5cf);box-shadow:0 3px 0 #072c4655}
.logged-out footer{display:flex;align-items:center;justify-content:center;gap:40px;padding:16px 4vw 28px;color:#f3f7ff;font-size:18px;position:relative;z-index:1}.logged-out footer::before,.logged-out footer::after{content:'';height:1px;flex:1;max-width:290px;background:linear-gradient(90deg,transparent,#c7e9ff)}.logged-out footer::after{transform:rotate(180deg)}.logged-out::after{content:'';position:absolute;pointer-events:none;z-index:-1;bottom:0;left:0;width:100%;height:210px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 260' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23007bc1' stop-opacity='.48'/%3E%3Cstop offset='1' stop-color='%23001a42' stop-opacity='.25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 110 C350 55 580 290 940 160 S1360 10 1600 10 V260 H0Z' fill='url(%23w)'/%3E%3Cpath d='M0 110 C350 55 580 290 940 160 S1360 10 1600 10' fill='none' stroke='%2311d7fa' stroke-width='1.4'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}
@media(min-width:1600px){.logged-out main{width:min(1450px,90%)}.logged-out .login-layout{gap:76px;margin-top:70px}}
@media(max-width:1050px) and (min-width:721px){.logged-out .login-layout{gap:30px;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)}.logged-out .login-value h1{font-size:clamp(34px,4.6vw,50px)}.logged-out .login-card{padding:28px}.cover-features{gap:12px}.cover-features li{height:110px}.cover-features b{font-size:16px}}
@media(max-width:720px){.logged-out header{padding:16px 5%;min-height:0}.logged-out header .brand .brand-cover{gap:6px 9px;font-size:clamp(19px,5.1vw,27px)}.brand-cover em{flex-basis:100%;padding-left:32px;font-size:12px}.logged-out main{width:92%}.logged-out .login-layout{grid-template-columns:minmax(0,1fr);gap:14px;margin:24px auto 20px;max-width:460px}.logged-out .login-value{padding:0 6px}.logged-out .login-eyebrow{font-size:16px}.logged-out .login-value h1{font-size:clamp(31px,8.5vw,42px);letter-spacing:-1px;margin:16px 0 24px}.cover-highlight::after{height:7px;bottom:-10px;border-top-width:4px}.logged-out .login-intro{font-size:13px;line-height:1.7}.cover-features{display:grid;gap:10px;margin:20px 0 4px}.cover-features li{height:78px;gap:2px;border-radius:16px}.cover-features svg{width:30px;height:30px}.cover-features b{font-size:13px}.cover-math-art{display:none}.logged-out .login-card{margin:0;padding:24px;border-radius:22px}.logged-out .login-card h2{font-size:28px;margin-bottom:8px}.logged-out .login-card label{font-size:16px;margin-top:14px}.logged-out .login-card input{min-height:48px;padding:9px 12px;border-radius:12px;font-size:16px}.logged-out .login-card>button.primary{min-height:54px;margin-top:24px;font-size:21px;border-radius:13px}.logged-out footer{font-size:12px;gap:12px;padding:8px 4vw 22px}.logged-out footer::before,.logged-out footer::after{max-width:50px}.logged-out::after{height:140px}}

/* Login failures remain next to the submit action without rebuilding the form. */
.logged-out .login-card .form-status{margin:16px 0 0;padding:12px 14px;border:1px solid #39779e;border-radius:12px;background:#092b4a;color:#d2f5f0;font-size:14px;line-height:1.6;font-weight:500}
.logged-out .login-card .form-status[hidden]{display:none}
.logged-out .login-card .form-status[role="alert"]{background:#572b3a;color:#ffe2dd;border-color:#e58b8d}
/* V6: local additions preserve the existing navy/teal design. */
.loop-progress{margin:14px 0;padding:12px;border:1px solid #34516d;border-radius:12px;background:#101d34}.loop-progress>div{display:flex;justify-content:space-between;gap:12px}.loop-progress progress{width:100%;height:14px;margin:9px 0;accent-color:#64f3cc}.loop-progress small{color:#b9cbe7}.v6-point>summary{min-height:44px}.v6-labels{border:1px solid #34516d;border-radius:12px;padding:14px;margin:12px 0}.v6-labels select[multiple],.v6-config select[multiple]{min-height:130px}.v6-config textarea{width:100%;box-sizing:border-box;font:inherit}#v6-answer-field{min-height:48px}.v6-point .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v6-config pre,pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.v6-point .grid{grid-template-columns:1fr}.loop-progress>div{flex-wrap:wrap}.v6-labels{padding:9px}.v6-config{min-width:0}.v6-point button{min-height:44px}#v6-answer .keys{grid-template-columns:repeat(7,minmax(0,1fr))}}

.topic-flow{margin:12px 0;padding:14px;border:1px solid #35546c;border-radius:14px;background:#0e1b31}.topic-flow-meter{display:flex;align-items:center;gap:12px;min-width:0;margin:8px 0}.topic-flow-meter progress{flex:1;min-width:40px;width:100%;accent-color:#79edcc}.topic-flow ol{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));list-style:none;padding:0;gap:8px}.topic-flow li{padding:10px 6px;border:1px solid #40516d;border-radius:10px;text-align:center}.topic-flow li small{display:block;color:#bfcde5;margin-top:6px}.topic-flow li.done{border-color:#79edcc;background:#183f3b}.topic-flow li.started{border-color:#b89bff}.map-node-title>.topic-flow-meter{flex-basis:100%;font-size:.85rem}.map-node-title{flex-wrap:wrap}@media(max-width:700px){.topic-flow ol{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-flow-meter{flex-wrap:wrap}.topic-flow-meter progress{flex-basis:100%}}

.home-learning-flow{margin:20px 0;padding:16px;border:1px solid #37516c;border-radius:14px;background:#101e35}.home-learning-flow ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.home-stage{width:100%;min-height:78px;padding:10px 4px;background:#12223a;border:1px solid #455570;border-radius:10px}.home-stage small{display:block;margin-top:8px;font-size:.75rem;color:#c0cce1}.home-stage.current{border:2px solid #79edcc;background:#18413d}.home-stage.done{border-color:#79edcc}.home-stage.exempt{border-color:#bba0f8}.home-stage-note{margin-top:12px;padding:12px;border-left:3px solid #79edcc;background:#182a44;line-height:1.8}.home-stage:focus-visible{outline:3px solid #fff;outline-offset:2px}@media(max-width:700px){.home-learning-flow ol{grid-template-columns:repeat(2,minmax(0,1fr))}.home-stage{min-height:68px}.home-learning-flow{padding:10px}}
/* Unified published directory and six-stage topic workflow. */
.directory-publish{position:sticky;top:0;z-index:5;background:#15243b;border:1px solid #405573;border-radius:14px;padding:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.directory-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #34445d}.directory-row>input{flex:1;min-width:160px;margin:0}.directory-row>button{min-width:42px;min-height:42px;padding:8px}.directory-kind{color:#83f3d0;font-size:13px;min-width:28px}.directory-circle{border-radius:50%;font-size:22px;font-weight:bold}.directory-frequency{display:flex;gap:5px;align-items:center;margin:0;font-size:13px}.directory-frequency input{width:72px;margin:0;padding:8px}.directory-children{padding-left:22px;border-left:1px solid #3b536d;margin-left:20px}.directory-more{width:100%;margin:0;font-size:13px}.directory-more>label{display:inline-flex;gap:6px;align-items:center;margin:5px}.directory-more input[type=number]{width:80px}.directory-more select{max-width:min(70vw,600px)}.directory-row.archived{opacity:.65}.directory-inline{overflow-wrap:anywhere}.directory-branch[hidden],.directory-children[hidden]{display:none}.topic-stage-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.topic-stage-actions>button{min-height:46px}.topic-stage-actions>span{color:#8fafc4}.topic-review{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #35506b;padding-top:12px}.topic-review small{width:100%;color:#b7cde5}.home-learning-flow ol{grid-template-columns:repeat(6,minmax(0,1fr))}.practice-card #v6-work-field{min-height:300px}.practice-card .practice-answer input{width:100%;min-height:50px}.directory-inline .directory-more small{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:700px){.directory-children{padding-left:8px;margin-left:4px}.directory-row{gap:5px}.directory-row>input{min-width:110px;width:calc(100% - 150px);font-size:15px}.directory-frequency{order:2}.directory-more{order:3}.directory-publish{top:0}.topic-stage-actions>button{flex:1 1 27%;font-size:14px;padding:10px}.topic-stage-actions>span{display:none}.home-learning-flow ol{grid-template-columns:repeat(3,minmax(0,1fr))}.practice-card #v6-work-field{min-height:220px}}

.practice-workspace[data-ink] #v6-work-field{color:var(--work-ink,var(--ink))}

.directory-frequency{white-space:nowrap;flex:0 0 auto}.directory-frequency input[type=number]{width:72px;min-width:0;flex:0 0 72px}.directory-circle{flex:0 0 42px}@media(max-width:700px){.practice-keypad .keys button{min-height:44px;font-size:14px;white-space:nowrap}.practice-keypad .keys button[data-value=back]{grid-column:span 2}}

.topic-flow ol{grid-template-columns:repeat(6,minmax(0,1fr))}.topic-flow-model ol{grid-template-columns:repeat(4,minmax(0,1fr))}.map-node[open]>summary .topic-flow-meter{display:none}@media(max-width:700px){.topic-flow ol,.topic-flow-model ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Today home follows the supplied reference; all styles stay scoped to this page. */
main.today-reference{width:min(1710px,84%);margin:clamp(28px,2.34vw,48px) auto;font-size:clamp(16px,1.15vw,24px)}
.today-reference .today-reference-hero{min-height:clamp(175px,13.15vw,270px);padding:clamp(28px,2.2vw,44px);margin-bottom:clamp(16px,1.17vw,24px);border-radius:24px}
.today-reference .today-reference-hero h1{font-size:clamp(48px,4.7vw,96px);line-height:1.14;margin:0;max-width:none}
.today-reference .home-v47{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(18px,1.46vw,30px)}
.today-reference .home-v47 .card{padding:clamp(24px,2.2vw,44px);border-radius:26px;margin-bottom:clamp(16px,1.17vw,24px)}
.today-reference .home-v47 h2{font-size:clamp(23px,1.65vw,34px);margin-bottom:clamp(22px,1.5vw,31px)}
.today-reference .home-v47 h3{font-size:clamp(19px,1.35vw,28px);margin:clamp(22px,1.5vw,31px) 0 18px}
.today-reference .home-v47 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,1.17vw,24px);margin:0 0 clamp(22px,1.5vw,31px)}
.today-reference .home-v47>div:last-child .card:last-child .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.today-reference .stat{padding:clamp(14px,1vw,21px);border-radius:20px;min-width:0;min-height:clamp(82px,5.55vw,114px)}
.today-reference .stat small{font-size:.9em}.today-reference .stat b{font-size:1.45em;line-height:1.5}
.today-reference .plan-progress{padding:10px 0}.today-reference .plan-progress>div{align-items:center;margin-bottom:16px}.today-reference .plan-progress progress{height:11px;display:block}
.today-reference .task-sequence li{padding:clamp(14px,.88vw,18px);margin:8px 0;border-radius:20px;min-height:clamp(82px,5vw,104px)}
.today-reference button{font-size:inherit;padding:clamp(12px,.8vw,17px);border-radius:17px;min-height:48px}.today-reference .task-state{font-size:.85em}
.today-reference-page header .brand{font-size:clamp(20px,1.5vw,31px)}.today-reference-page #nav{font-size:clamp(16px,1.16vw,24px)}.today-reference-page #nav a{min-height:clamp(44px,3.3vw,68px);border-radius:16px}
@media(max-width:760px){main.today-reference{width:94%;margin:18px auto;font-size:16px}.today-reference .today-reference-hero{min-height:132px;padding:24px;border-radius:20px}.today-reference .today-reference-hero h1{font-size:44px}.today-reference .home-v47{grid-template-columns:1fr;gap:0}.today-reference .home-v47 .card{padding:22px;border-radius:20px}.today-reference .home-v47 h2{font-size:24px;margin-bottom:22px}.today-reference .home-v47 h3{font-size:20px}.today-reference .stat{padding:12px;border-radius:15px;min-height:80px}.today-reference .home-v47>div:last-child .card:last-child .stats{gap:8px}.today-reference .stat small{font-size:.8em}.today-reference .stat b{font-size:1.4em}.today-reference .task-sequence li{padding:12px;gap:8px;border-radius:16px}.today-reference .task-sequence button{padding:10px;max-width:100%}.today-reference-page #nav{font-size:16px}.today-reference-page header .brand{font-size:clamp(16px,4.4vw,21px)}}

@media(min-width:761px){main.today-reference{width:min(1710px,83.2%);margin-left:9.44%;margin-right:auto}.today-reference-page header{padding-inline:clamp(16px,1.5vw,31px)}}
@media(min-width:761px){.today-reference .home-v47 h2{font-size:clamp(23px,1.56vw,32px);margin-bottom:clamp(20px,1.17vw,24px)}.today-reference .home-v47 h3{font-size:clamp(19px,1.26vw,26px);margin-top:clamp(20px,1.17vw,24px)}.today-reference .stat{padding:clamp(12px,.78vw,16px)}.today-reference .stat small{font-size:.85em}.today-reference .stat b{font-size:1.35em}.today-reference button{line-height:1.4}}
@media(max-width:760px){.today-reference-page header .brand{font-size:16px}}

/* Point-scoped seven entries and explicit catalogue disclosure controls. */
.map-module-flow>summary{cursor:pointer;font-weight:700;min-height:44px}.map-module-flow .when-open{display:none}.map-module-flow[open]>summary .when-open{display:inline}.map-module-flow[open]>summary .when-closed{display:none}.map-expand-tools{margin:18px 0}.topic-flow ol{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}.topic-flow-model ol{grid-template-columns:repeat(4,minmax(0,1fr))}.topic-stage-actions>button{white-space:normal;min-width:95px}.map-directory{min-width:0}.map-node-title{overflow-wrap:anywhere}
@media(max-width:700px){.topic-flow ol,.topic-flow-model ol{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-stage-actions{gap:6px}.topic-stage-actions>button{min-width:90px;flex:1 1 40%}.map-expand-tools>button{flex:1}}

/* Scheduled reviews remain visible as a non-browsable system stage. */
.topic-stage-actions .system-review-stage:disabled{background:#29313e;border-color:#495365;color:#b9c1cf;opacity:1;cursor:not-allowed;filter:none;box-shadow:none}.system-review-stage small{display:block;font-size:.7em;line-height:1.3;color:#aeb7c7;font-weight:400;margin-top:2px}

/* Module overview is directory navigation only; flows belong to point details. */
.map-module-overview .topic-flow,.map-module-overview .topic-stage-actions,.map-module-overview .topic-review,.map-module-overview .topic-flow-meter{display:none!important}

/* Knowledge atlas: scoped presentation; learning, teacher and home pages are unchanged. */
.knowledge-map{--map-border:#2c4261;--map-subtle:#98abc8;--map-surface:#111f35;min-width:0}
.knowledge-map .map-hero{padding:32px 34px;border-color:#385578;background:radial-gradient(ellipse at 95% 0%,#16626855,transparent 55%),linear-gradient(120deg,#182c49,#17243f);box-shadow:0 16px 42px #030b1c24}
.knowledge-map .map-hero:not(.map-module){display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.knowledge-map .map-hero .eyebrow{font-size:.74rem;letter-spacing:.12em;color:#8ae7d3;margin-bottom:16px}
.knowledge-map .map-hero h1{font-size:clamp(1.8rem,3.4vw,2.75rem);line-height:1.35;letter-spacing:-.03em;margin-bottom:12px}
.knowledge-map .map-hero h1 span{color:#98b2d1;font-size:.67em;font-weight:500;letter-spacing:0}
.knowledge-map .map-hero p:not(.eyebrow){font-size:.9rem;color:#b4c7df;line-height:1.8;margin-bottom:0;max-width:570px}
.knowledge-map .map-module .row{margin:18px 0 14px}
.knowledge-map .map-module .row button{font-size:.83rem;min-height:40px;padding:8px 14px;background:#132540;border-color:#395674}
.knowledge-map .map-catalog-stats{display:flex;gap:26px;padding:22px 26px;border:1px solid #5b8e9f40;border-radius:18px;background:#0e203e80}
.knowledge-map .map-catalog-stats div{display:flex;flex-direction:column;min-width:35px;text-align:center}
.knowledge-map .map-catalog-stats b{font-size:1.8rem;color:#a2f3df;line-height:1.3;font-variant-numeric:tabular-nums}
.knowledge-map .map-catalog-stats span{font-size:.76rem;color:#b2c4dd;margin-top:5px}
.knowledge-map .map-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:30px 2px 16px}
.knowledge-map .map-section-heading h2{font-size:1.12rem;margin:0}
.knowledge-map .map-section-heading>span{font-size:.8rem;color:var(--map-subtle)}
.knowledge-map .map-module-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.knowledge-map .map-module-card{display:flex;flex-direction:column;padding:23px;border-radius:18px;border-color:#2c4261;background:linear-gradient(140deg,#172941,#121d33);box-shadow:0 6px 20px #030b1c22;min-width:0;transition:border-color .18s,transform .18s}
.knowledge-map .map-module-card:hover{border-color:#62baa0;transform:translateY(-2px)}
.knowledge-map .map-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:23px}
.knowledge-map .map-module-index{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;border:1px solid #518a9f50;background:#21475d55;color:#8fe2d0;font-size:1.05rem;font-weight:750;letter-spacing:.04em}
.knowledge-map .map-availability{font-size:.68rem;color:#a9b6cd;background:#223249;padding:4px 8px;border-radius:20px;white-space:nowrap}
.knowledge-map .map-availability.available{color:#98efd4;background:#16463d}
.knowledge-map .map-module-card h2{font-size:1.14rem;line-height:1.6;margin-bottom:17px}
.knowledge-map .map-card-counts{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--map-subtle);font-size:.75rem;margin-bottom:22px}
.knowledge-map .map-card-counts b{color:#dbe7f7;font-size:.9rem;font-weight:600}
.knowledge-map .map-module-card>button{align-self:stretch;margin-top:auto;display:flex;justify-content:space-between;align-items:center;border-color:#345778;background:#17334b;font-size:.85rem;color:#a3f4de}
.knowledge-map .map-module-card>button:after{content:'↗';font-size:1.1rem;font-weight:400}
.knowledge-map .map-expand-tools{justify-content:flex-end;gap:8px;margin:20px 0 14px}
.knowledge-map .map-expand-tools button{background:transparent;border-color:#344761;font-size:.78rem;min-height:38px;padding:6px 12px;color:#bed0e7}
.knowledge-map .map-directory .map-chapter{border:1px solid #35536b;border-radius:18px;background:#14243b;margin-bottom:18px;overflow:hidden}
.knowledge-map .map-directory .map-section{border:1px solid #2e425d;border-radius:13px;background:#101d31;margin-bottom:10px;overflow:hidden}
.knowledge-map .map-directory .map-section[open]{border-color:#45677a;background:#102036}
.knowledge-map .map-directory .map-node-title{list-style:none;display:flex;align-items:center;gap:8px;padding:18px 20px;position:relative;line-height:1.6}
.knowledge-map .map-node-title::-webkit-details-marker{display:none}
.knowledge-map details>.map-node-title:before{content:'›';color:#8da8c6;font-size:1.35rem;line-height:1;transform:rotate(0deg);width:12px;flex-shrink:0}
.knowledge-map details[open]>.map-node-title:before{transform:rotate(90deg);color:#80e4ca}
.knowledge-map .map-chapter>.map-node-title{font-size:1.12rem;background:linear-gradient(100deg,#1c3645a0,transparent)}
.knowledge-map .map-section>.map-node-title{font-size:.98rem}
.knowledge-map .map-name{flex:1 1 160px;margin:0;overflow-wrap:break-word}
.knowledge-map .map-node-title .map-kind{margin:0;font-size:.68rem;padding:3px 8px;border-radius:7px;flex-shrink:0}
.knowledge-map .map-kind-icon{display:none}
.knowledge-map .map-node-title .directory-meta{font-size:.67rem;font-weight:500;background:#273a53;color:#c3d2e6;padding:3px 9px;border-radius:20px;margin:0}
.knowledge-map .map-node-body{padding:0 16px 8px}
.knowledge-map .map-chapter>.map-node-body{padding-top:14px}
.knowledge-map .topic-flow{margin:0 0 10px;padding:16px 4px 4px;border:0;border-top:1px solid #2d465f;border-radius:0;background:transparent}
.knowledge-map .topic-flow-meter{gap:16px;margin:0 0 20px;font-size:.78rem;color:#b7cbe3}
.knowledge-map .topic-flow-meter>span{white-space:nowrap;font-variant-numeric:tabular-nums}
.knowledge-map progress{appearance:none;-webkit-appearance:none;border:0;height:6px;border-radius:20px;overflow:hidden;background:#2b3e55;color:#72e2c4}
.knowledge-map progress::-webkit-progress-bar{background:#2b3e55;border-radius:20px}
.knowledge-map progress::-webkit-progress-value{background:linear-gradient(90deg,#40c5b1,#9aefcf);border-radius:20px}
.knowledge-map progress::-moz-progress-bar{background:#72e2c4;border-radius:20px}
.knowledge-map .map-node-title>.topic-flow-meter{margin:2px 0 0 28px;max-width:300px;flex-basis:100%;gap:10px;font-size:.7rem}
.knowledge-map .topic-stage-actions{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 14px;counter-reset:stage}
.knowledge-map .topic-stage-actions>span{display:none}
.knowledge-map .topic-stage-actions>button{counter-increment:stage;min-width:0;min-height:84px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:12px 11px;white-space:nowrap;font-size:.8rem;border:1px solid #3a526d;border-radius:12px;background:#182d45;color:#e7f0fc;box-shadow:none;text-align:left}
.knowledge-map .topic-stage-actions>button:before{content:'0' counter(stage);font-size:.65rem;letter-spacing:.05em;color:#7cbaae;font-weight:500}
.knowledge-map .topic-stage-actions>button:hover:not(:disabled){background:#204538;border-color:#71d9bb;color:#aaf8df;filter:none}
.knowledge-map .topic-stage-actions>.system-review-stage:disabled{background:#292f39;border-color:#454c58;color:#a5adba;cursor:not-allowed;opacity:1;filter:none;box-shadow:none}
.knowledge-map .system-review-stage:disabled:before{color:#8b929e}
.knowledge-map .system-review-stage small{font-size:.58rem;line-height:1.3;color:#929caa;margin:0}
.knowledge-map .topic-flow>p{font-size:.75rem;line-height:1.8;color:#a4b8d1;margin:0 0 12px}
.knowledge-map .topic-review{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0;padding:12px 0 6px;border-top:1px solid #2b4058;font-size:.73rem}
.knowledge-map .topic-review>b{color:#bccbde;font-weight:600}
.knowledge-map .topic-review>span{color:#96a9c2}
.knowledge-map .topic-review>small{flex-basis:100%;font-size:.68rem;color:#8fa4be;margin:0;line-height:1.7}
.knowledge-map .topic-flow-model ol{gap:8px}
.knowledge-map .topic-flow li{background:#162b42;border-color:#344b64;font-size:.8rem;padding:12px}
.knowledge-map .map-node-body>.muted,.knowledge-map .map-empty-note{font-size:.8rem;padding:12px 4px}
@media(min-width:1200px){.knowledge-map .map-module-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.knowledge-map .topic-stage-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.knowledge-map .map-module-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
.knowledge-map .map-hero{padding:23px 20px;border-radius:18px}.knowledge-map .map-hero:not(.map-module){gap:20px}.knowledge-map .map-hero h1{font-size:1.75rem}.knowledge-map .map-hero .eyebrow{font-size:.65rem;margin-bottom:12px}.knowledge-map .map-hero p:not(.eyebrow){font-size:.78rem}
.knowledge-map .map-catalog-stats{width:100%;justify-content:space-around;padding:14px;gap:10px}.knowledge-map .map-catalog-stats b{font-size:1.4rem}.knowledge-map .map-catalog-stats span{font-size:.68rem}
.knowledge-map .map-section-heading{margin-top:24px}.knowledge-map .map-section-heading>span{display:none}.knowledge-map .map-module-overview{grid-template-columns:1fr;gap:12px}.knowledge-map .map-module-card{padding:20px}.knowledge-map .map-card-top{margin-bottom:15px}.knowledge-map .map-module-card h2{margin-bottom:10px}.knowledge-map .map-card-counts{margin-bottom:16px}
.knowledge-map .map-node-body{padding:0 10px 4px}.knowledge-map .map-directory .map-node-title{padding:14px 12px;gap:7px}.knowledge-map .map-name{flex-basis:140px}.knowledge-map .map-node-title .directory-meta{margin-left:20px}.knowledge-map .map-chapter>.map-node-title{font-size:1rem}.knowledge-map .map-section>.map-node-title{font-size:.91rem}.knowledge-map .map-node-title>.topic-flow-meter{margin-left:20px}
.knowledge-map .topic-stage-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.knowledge-map .topic-stage-actions>button{min-height:76px;padding:11px 14px;font-size:.82rem}.knowledge-map .topic-flow-meter{flex-wrap:nowrap;gap:12px;margin-bottom:16px}.knowledge-map .topic-flow-meter progress{flex-basis:auto}.knowledge-map .topic-review{gap:5px 8px}.knowledge-map .map-expand-tools>button{flex:0 1 auto}
}
@media(prefers-reduced-motion:reduce){.knowledge-map .map-module-card{transition:none}.knowledge-map .map-module-card:hover{transform:none}}

/* Dedicated stem surface in the existing V6 answer workbench. */
.practice-card .practice-question-panel{margin:8px 0 24px;padding:20px 24px 24px;background:linear-gradient(120deg,#142a40,#111d32);border:1px solid #3d5877;border-left:3px solid #71dfc1;border-radius:16px;box-shadow:0 5px 18px #030b1b24;min-width:0}
.practice-card .practice-question-label{display:flex;align-items:center;gap:8px;font-size:.78rem;font-weight:700;letter-spacing:.08em;color:#9edecf;margin:0 0 14px}
.practice-card .practice-question-label>span{font-size:.45rem;color:#79e2c5}
.practice-card .practice-question-content{min-width:0;line-height:1.9;overflow-wrap:anywhere;color:#f1f5ff}
.practice-card .practice-question-content>.math,.practice-card .practice-question-content>.rich-field{margin:0}
.practice-card .practice-question-content .math{font-size:clamp(1.16rem,2.4vw,1.5rem);line-height:1.8}
.practice-card .practice-question-content .rich-field{padding:0;background:transparent;border:0;font-size:clamp(1.1rem,2vw,1.3rem);line-height:1.9}
.practice-card .practice-question-content .question-image{display:block;max-width:100%;height:auto;object-fit:contain}
.practice-card .practice-progress>span:first-child{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:600px){.practice-card .practice-question-panel{padding:16px 16px 20px;margin:6px 0 20px;border-radius:13px}.practice-card .practice-question-label{font-size:.75rem;margin-bottom:10px}.practice-card .practice-question-content .math,.practice-card .practice-question-content .rich-field{font-size:1.12rem;line-height:1.9}}

.v6-skip-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:12px;font-size:.8rem;color:#b8cbe4}.v6-skip-tools label{display:flex;align-items:center;gap:8px;margin:0}.v6-skip-tools select{font-size:.8rem;max-width:230px}.practice-card .skip-limit{margin-top:10px;padding:12px 14px;border:1px solid #685c37;background:#302b21;color:#e4d6b1;border-radius:10px;font-size:.82rem;line-height:1.8}@media(max-width:600px){.v6-skip-tools label{flex-wrap:wrap}.v6-skip-tools select{max-width:100%}}

/* Peer learning choices, responsive operation groups; recommendations are not a step lock. */
.topic-stage-actions,.knowledge-map .topic-stage-actions{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:stretch;margin:22px 0 4px;counter-reset:none}
.topic-stage-actions>button,.knowledge-map .topic-stage-actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:70px;padding:13px 9px;line-height:1.5;white-space:normal;overflow-wrap:normal;text-align:center;font-size:.92rem;counter-increment:none;background:#142a43;border-color:#3b5374;color:#e8f1ff}
.topic-stage-actions>button:before,.knowledge-map .topic-stage-actions>button:before{content:none}
.topic-stage-actions>button.primary,.knowledge-map .topic-stage-actions>button.primary{background:#79e8c7;border-color:#79e8c7;color:#10342e}
.topic-stage-actions .system-review-stage:disabled,.knowledge-map .topic-stage-actions .system-review-stage:disabled{background:#29313e;border-color:#495365;color:#aeb8c9;opacity:1;cursor:not-allowed}
.topic-stage-actions>span{display:none}
.action-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 0;min-width:0}
.action-row>button{max-width:100%;margin:0;white-space:normal}
main :where(.card,details,section,article,form):not(.row):not(.practice-form):not(.directory-publish)>button+button{margin-inline-start:8px;margin-block:4px}
main button{max-width:100%;overflow-wrap:break-word}
@media(max-width:1000px){.topic-stage-actions,.knowledge-map .topic-stage-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.topic-stage-actions,.knowledge-map .topic-stage-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.topic-stage-actions>button,.knowledge-map .topic-stage-actions>button{min-height:64px;font-size:.89rem;padding:12px 8px;flex:auto}.topic-stage-actions>.system-review-stage{grid-column:1/-1}.action-row{gap:10px}.action-row>button{flex:0 1 auto}}

/* Native multi-selects must not force their intrinsic option width onto small screens. */
main fieldset{min-inline-size:0;max-width:100%}
main select[multiple]{display:block;min-width:0;width:100%;max-width:100%;box-sizing:border-box}

/* Keep publication controls in normal flow so expanded catalogue rows stay clickable. */
.directory-publish{position:static;top:auto;z-index:auto}

/* Long catalogue option labels must stay within their form on legacy management pages too. */
main select,main input[type=file]{min-width:0;max-width:100%;box-sizing:border-box}
main .row>label{min-width:0;max-width:100%}

/* V6.2 evaluation and honors, scoped to the existing layout. */
.v62-rating{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0}
.v62-stars{font-size:1.6rem;letter-spacing:.14em;color:#ffd367;white-space:nowrap}.v62-stars>span{color:#78839d}
.v62-evidence,.v62-award-proof{padding:18px;margin:16px 0;border:1px solid #36556b;border-radius:14px;background:#0c192e}
.v62-evidence>span{display:inline-block;margin:8px 14px;color:#75e5c3}.v62-real-award{padding:16px;border-radius:14px;background:#123f3b;border:1px solid #68dfb5}
.v62-seal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px}
.v62-seal{border:1px solid var(--seal-color);border-radius:20px;padding:18px;background:linear-gradient(150deg,#14243d,#0c162a);min-width:0;text-align:center}
.v62-seal .realm-art{display:block;width:100%;max-width:210px;margin:auto}.v62-seal img{max-width:100%;height:auto;aspect-ratio:1}
.v62-seal.is-locked .realm-art{filter:grayscale(1);opacity:.42}.v62-seal.is-earned{box-shadow:inset 0 0 20px #ffffff05}
.v62-seal details{text-align:left}.v62-seal pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem}
.v62-timeline{list-style:none;margin:0;padding:0}.v62-timeline>li{display:flex;gap:20px;padding:20px 0;border-bottom:1px solid #2e425c}.v62-timeline time{color:#9cb3ce;white-space:nowrap}
.v62-target-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.v62-target-grid>div{padding:12px;border-radius:12px;background:#0b182d}
.v62-honor-intro h1{font-size:clamp(2rem,5vw,3.4rem)}
@media(max-width:600px){.v62-timeline>li{flex-direction:column;gap:6px}.v62-seal-grid{grid-template-columns:1fr}.v62-stars{font-size:1.3rem}.v62-evidence{padding:12px}.v62-evidence>span{margin:8px 0;display:block}}
@media(prefers-reduced-motion:no-preference){.v62-real-award{animation:v62-award .45s ease-out}@keyframes v62-award{from{transform:translateY(6px);opacity:.4}to{transform:none;opacity:1}}}

/* Honor growth cards inherit the existing blue/gold realm family with readable contrast. */
.realm-next{color:#183956}.realm-next h3,.realm-next p{color:inherit}.v62-seal h3{color:var(--seal-color)}

.v62-seal-grid{align-items:start}@media(min-width:1100px){.v62-seal-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Explicit peer topic cards prevent collapsed siblings looking like nested points. */
.directory-inline .directory-branch[data-directory-kind=chapter]{margin:16px 0;padding:14px;border:1px solid #405678;border-left:3px solid #75dfc6;border-radius:14px;background:#13233a;min-width:0}
.directory-inline .directory-branch[data-directory-kind=chapter]>.directory-row{border-bottom:0;padding-top:0}
.directory-owner{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 12px;font-size:.8rem;color:#a8bfda;overflow-wrap:anywhere}.directory-owner>span{color:#83d9c6}
.directory-inline .directory-branch[data-directory-kind=chapter]>.directory-row>.directory-kind{font-weight:700;color:#b9a8ff;padding:5px 8px;border-radius:7px;background:#302c50;min-width:62px;text-align:center;white-space:nowrap}
.directory-inline .directory-branch[data-directory-kind=section]>.directory-row>.directory-kind{min-width:58px;color:#87edd0;font-weight:600;white-space:nowrap}
.directory-add{flex:0 0 auto;min-width:76px;min-height:42px;border-radius:10px;font-size:.83rem;white-space:nowrap}
.directory-inline .directory-branch[data-directory-kind=chapter]>.directory-children{margin:8px 0 0 10px;padding-left:14px;border-left:1px solid #3d5b71}
@media(max-width:700px){.directory-inline .directory-branch[data-directory-kind=chapter]{margin:12px 0;padding:10px}.directory-inline .directory-branch[data-directory-kind=chapter]>.directory-children{margin-left:2px;padding-left:7px}.directory-add{min-width:68px;padding:8px;font-size:.78rem}.directory-owner{font-size:.75rem;gap:6px}.directory-row>input{min-width:90px}}

/* Explicit module draft actions */
.directory-inline>.directory-branch[data-directory-kind=topic]{margin-block:20px;padding:14px;border:1px solid #405678;border-radius:16px;min-width:0}
.directory-module-save{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 0 2px;border-top:1px solid #3c526c;margin-top:12px}
.directory-module-save>button{min-height:44px;margin:0;white-space:normal}.directory-module-save>span{color:#91e8cf;font-size:.84rem}.directory-module-save>span.unsaved{color:#ffd280}.directory-module-save>small{flex-basis:100%;color:#b2c5dc;font-size:.75rem}
@media(max-width:700px){.directory-inline>.directory-branch[data-directory-kind=topic]{padding:10px}.directory-module-save{gap:8px}.directory-publish>button{padding:10px;font-size:.8rem}.directory-module-save>button{width:100%}}

/* Practice entry stays visible even when diagnosis suggests exemption. */
.study-practice-choice{border:1px solid #405875;border-radius:14px;padding:18px;background:#102038;min-width:0}.study-practice-choice+.study-practice-choice{margin-top:14px}.study-practice-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.study-practice-choice-heading h3{margin:0;font-size:1.05rem;overflow-wrap:anywhere}.study-practice-state{color:#a8d8cc;font-size:.82rem}.study-practice-choice>p{margin:12px 0;color:#bfd0e5}.study-practice-choice>details{margin-top:14px;border-top:1px solid #334d68;padding-top:12px}.study-practice-choice>.action-row{margin-top:12px}.study-practice-choice>.action-row>button{min-height:46px}
@media(max-width:600px){.study-practice-choice{padding:14px}.study-practice-choice>.action-row>button{flex:1 1 130px}.study-practice-choice-heading{gap:7px}}

/* Answer actions and feedback: keep focus outlines clear of adjacent buttons. */
.practice-answer-actions{margin:16px 0 14px;gap:12px 16px}
.practice-action-group{gap:10px;min-width:0;max-width:100%}
.practice-answer>input{min-height:52px}
.answer-verdict.correct-result,.answer-verdict.wrong-result{align-items:center;flex-wrap:nowrap;gap:16px;padding:18px 20px;margin:12px 0 18px;border-width:2px;border-radius:18px}
.answer-verdict.correct-result{background:linear-gradient(110deg,#0e493b,#102e2b);border-color:#51edb2;box-shadow:0 4px 22px #2ce5a01c;color:#dcfff0}
.answer-verdict.wrong-result{background:linear-gradient(110deg,#4b101b,#25121b);border-color:#ff454f;box-shadow:0 4px 24px #ff303033;color:#ffe5e6}
.verdict-mark{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:50%;background:#58efb4;color:#063e2c;box-shadow:0 0 0 6px #5cecb31a}
.wrong-result .verdict-mark{background:#350b17;color:#ff454f;box-shadow:0 0 0 3px #ff454f,0 0 22px #ff303044}
.wrong-result .verdict-mark svg{stroke-width:6}
.wrong-result .verdict-copy>strong{color:#ff8088}
.verdict-mark svg{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.verdict-copy{display:grid;gap:4px;min-width:0}
.answer-verdict .verdict-copy>span{font-size:.94rem;line-height:1.5;opacity:.92}
.correct-result .verdict-copy>strong,.wrong-result .verdict-copy>strong{font-size:clamp(1.25rem,2.5vw,1.65rem);font-weight:850;line-height:1.25}
.verdict-fresh .verdict-mark{animation:verdict-pop .48s cubic-bezier(.2,.8,.25,1.2) both}
@keyframes verdict-pop{0%{transform:scale(.55);opacity:.3}65%{transform:scale(1.12);opacity:1}100%{transform:scale(1);opacity:1}}
@media(max-width:600px){
 .practice-answer-actions{align-items:stretch}
 .practice-answer-actions>label{width:100%}
 .practice-action-group{width:100%}
 .practice-action-group>button{flex:1 1 100px;min-height:48px}
 .answer-verdict.correct-result,.answer-verdict.wrong-result{padding:16px 14px;gap:14px}
 .verdict-mark{flex-basis:52px;width:52px;height:52px}
 .verdict-mark svg{width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){.verdict-fresh .verdict-mark{animation:none}}

#v6-answer{margin-bottom:14px}


/* V6.3: one result, evidence-based feedback and one primary recommendation. */
.v63-result{border-color:#405a79;background:linear-gradient(125deg,#182a43,#1b2341);padding:clamp(20px,3.5vw,38px)}
.v63-result.is-passed{border-color:#58deb7;background:linear-gradient(125deg,#123d39,#182941)}
.v63-result h1{font-size:clamp(1.55rem,3.7vw,2.55rem);margin:.5em 0}
.v63-result .eyebrow{font-size:.86rem;letter-spacing:.02em;overflow-wrap:anywhere}
.v63-score{font-weight:850;font-size:clamp(1.45rem,3vw,2rem);line-height:1.5;margin:.6em 0}
.v63-score>span{font-size:1rem;color:#bacce3;font-weight:500}
.v63-subordinate{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#c4d2e4;font-size:.9rem;margin-top:18px}
.v63-subordinate .v62-stars{font-size:1.15rem}
.v63-rewards{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #47827366;padding-top:16px;margin-top:18px}
.v63-earned{background:#63edbf1c;color:#b9ffe6;border:1px solid #64e9bc77;border-radius:10px;padding:8px 12px;font-weight:700}
.v63-gap{border-left:3px solid #f5c675;padding:9px 12px;background:#e5b2530c;color:#ffdfaa}
.v63-feedback{display:grid;gap:16px}.v63-feedback>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;align-items:start}.v63-feedback b{color:#9cf0da}.v63-feedback p{margin:0;overflow-wrap:anywhere}
.v63-choices article{padding:16px;border:1px solid #39516b;border-radius:14px;background:#102038;min-width:0}.v63-choices article p{font-size:.86rem;color:#b1c4de;margin:8px 0;overflow-wrap:anywhere}.v63-choices article button{display:block;margin-top:12px;max-width:100%;white-space:normal}
.v63-answer-index{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.v63-answer-index button{min-width:76px}.v63-answer-index .correct{color:#9ce7c7;border-color:#397a64}.v63-answer-index .wrong{color:#ff9aa2;border-color:#e14e60;background:#431c2b}
.v63-plan-return button{font-size:.87rem;color:#bfd0e6;background:transparent;border-color:#344963}
.v63-medals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.v63-medal{border:1px solid #39465d;background:#101a2d;border-radius:18px;padding:20px;color:#a8b8d0}.v63-medal.is-earned{border-color:#c4a65e;background:linear-gradient(135deg,#332e25,#172536);color:#fff0cc}.v63-medal h3{font-size:1.1rem;margin-top:20px}.v63-medal-art{display:grid;place-items:center;width:74px;height:74px;border:3px double #6b7891;border-radius:50%;font-size:2.4rem;font-weight:800;color:#a6b3c9;box-shadow:0 0 0 6px #8ba0c00c}.is-earned .v63-medal-art{color:#ffdf83;border-color:#ecc875;background:#d7a14518;box-shadow:0 0 0 6px #e7bb4914}.v63-medal details{font-size:.85rem}.v63-medal .v62-award-proof{margin-top:12px;padding-top:12px;border-top:1px solid #52617b}.v63-medal button{margin-top:10px}
@media(max-width:600px){.v63-feedback>div{grid-template-columns:1fr;gap:5px}.v63-result{padding:20px 16px}.v63-choices .grid{grid-template-columns:1fr}.v63-choices button{width:100%}.v63-answer-index button{flex:1 1 80px}.v63-medals{grid-template-columns:1fr}.v63-result .eyebrow{line-height:1.6}}

.v63-wrong-count{color:#ff8088;display:inline-block}

.lf-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:20px;margin-bottom:24px;align-items:start}.lf-layout>.card{margin:0;min-width:0;padding:28px}.lf-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.lf-heading h2{margin:0;font-size:24px}.lf-band{background:#163c48;color:#87f7d4;border:1px solid #36776f;border-radius:999px;padding:6px 14px;font-size:13px;white-space:nowrap}.lf-accuracy{display:flex;align-items:baseline;flex-wrap:wrap;gap:16px;margin-top:20px}.lf-accuracy strong{font-size:40px;line-height:1.2;color:#8af5d5}.lf-accuracy span{color:#bcd0e7}.lf-disclaimer{font-size:13px;color:#afc4dd;line-height:1.6;margin:10px 0 4px}.lf-review{display:flex;gap:14px;padding:20px 0;border-bottom:1px solid #2c4059}.lf-review:last-child{border-bottom:0}.lf-review>div{min-width:0}.lf-review b{font-size:14px;color:#adc8e8}.lf-review p{margin:5px 0 0;line-height:1.75;font-size:16px;overflow-wrap:anywhere}.lf-icon{flex:0 0 40px;height:40px;border-radius:12px;background:#233b59;color:#82efd0;display:grid;place-items:center;font-size:22px}.lf-review:nth-child(2) .lf-icon{background:#343254;color:#d0c0ff}.lf-source{font-size:12px;color:#a9c1db;line-height:1.7}.lf-source button{display:block;margin-top:8px;font-size:13px;padding:7px 12px}.lf-action{background:#10283d;border-left:3px solid #7cf3d0;border-radius:10px;padding:16px;font-size:15px;line-height:1.7}.lf-action b{display:block;color:#86f3d5;margin-bottom:6px}.lf-recommend h2{font-size:27px;margin-top:8px}.lf-recommend>p{line-height:1.8}.lf-recommend>button{width:100%;margin-top:12px;white-space:normal}.lf-trace{background:#0e1d32;border:1px solid #30445f;border-radius:12px;padding:14px;margin:18px 0}.lf-trace summary{font-size:14px;color:#a7dfed}.lf-trace p{font-size:13px;line-height:1.75;overflow-wrap:anywhere}.lf-path-card{padding:24px!important}.lf-path{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:20px}.lf-path>.lf-step{padding:14px 8px;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px;border-radius:16px;background:#11273d;border:1px solid #34516d;color:#ecf3ff;white-space:normal;min-height:130px}.lf-step-number{display:grid;place-items:center;width:32px;height:32px;background:#294561;border-radius:50%;color:#bdd9f5;font-size:15px}.lf-step strong{font-size:16px;white-space:nowrap}.lf-step small{font-size:12px;color:#b4cce4}.lf-path>.done{border-color:#438976;background:#143337}.lf-path>.done .lf-step-number{background:#8bf0ce;color:#07372d}.lf-path>.review{border-color:#88644b}.lf-path>.is-current{outline:2px solid #9b8cdb;outline-offset:2px}.lf-path>.empty{opacity:.55}
@media(max-width:900px){.lf-layout{grid-template-columns:1fr}.lf-path{grid-template-columns:repeat(3,minmax(0,1fr))}.lf-layout>.card{padding:22px}}
@media(max-width:480px){.lf-layout{gap:14px}.lf-layout>.card,.lf-path-card{padding:18px!important}.lf-heading h2{font-size:21px}.lf-heading{gap:10px}.lf-path{gap:8px}.lf-path>.lf-step{padding:12px 4px;min-height:112px}.lf-step strong{font-size:14px}.lf-step small{font-size:11px}.lf-review{gap:10px}.lf-icon{flex-basis:34px;height:34px}.lf-review p{font-size:15px}.lf-accuracy strong{font-size:34px}}

.pf-panel{padding:18px;margin:16px 0;border:1px solid #3a506a;border-radius:14px;background:#112039;min-width:0}.pf-panel h3{margin:0 0 14px;font-size:20px}.pf-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.pf-actions button{white-space:normal;max-width:100%;min-height:42px;padding:10px 15px}.pf-upload{padding:12px;border:1px solid #334b68;border-radius:12px}.pf-upload p,.pf-status,.pf-availability{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.pf-panel input[type=file]{max-width:100%;font-size:14px}.pf-preview{position:relative;width:fit-content;max-width:100%;margin:14px 0}.pf-preview img{display:block;max-width:100%;max-height:480px;width:auto;border-radius:8px}.pf-preview.is-selecting{touch-action:none;cursor:crosshair}.pf-crop-box{position:absolute;border:2px solid #85f6d4;background:#6ef4c92a;pointer-events:none}.pf-panel [hidden]{display:none!important}.pf-result{margin-top:16px;padding:16px;border-left:3px solid #7deecb;border-radius:10px;background:#182f46}.pf-result h4{margin:0 0 12px}.pf-feedback p{line-height:1.7;overflow-wrap:anywhere}.pf-feedback b{display:block;color:#8df0d6}.pf-confirm{padding:14px;border:1px solid #b99555;border-radius:10px;background:#433b28}.pf-confirm p{font-size:14px;line-height:1.7}.pf-panel textarea{width:100%;min-height:130px;box-sizing:border-box}.pf-status{color:#c5d7ef}.pf-availability{color:#adc1d9}@media(max-width:480px){.pf-panel{padding:12px}.pf-actions{gap:8px}.pf-actions button{flex:1 1 130px;font-size:14px;padding:10px}.pf-result{padding:12px}}

/* Post-error learning, independent from first-attempt grading. */
.tutor-card{margin-top:24px;padding:24px;border:1px solid #35526c;border-left:4px solid #77efd0;border-radius:20px;background:#102036;min-width:0}
.tutor-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.tutor-actions button{margin:0;white-space:normal;min-height:48px}
.tutor-path{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none}.tutor-path li{padding:8px 14px;border:1px solid #35526c;border-radius:12px;color:#bbcede}.tutor-path li[aria-current]{color:#092d2c;background:#77efd0;font-weight:700}
.tutor-lesson{padding:20px;background:#0c182c;border:1px solid #35526c;border-radius:16px}.tutor-explanation{line-height:1.85;overflow-wrap:anywhere}.tutor-question{padding:16px;border-radius:12px;background:#183c49;line-height:1.8}
.tutor-redo{margin-top:20px;padding:20px;border:1px solid #77efd0;border-radius:16px}.tutor-card textarea,.tutor-card input{box-sizing:border-box;width:100%;max-width:100%}.tutor-history article{padding:12px 0;border-bottom:1px solid #35526c}
.tutor-card .answer-verdict,.tutor-card [role=status]{overflow-wrap:anywhere}
@media(max-width:640px){.tutor-card{padding:16px}.tutor-lesson,.tutor-redo{padding:14px}.tutor-actions button{flex:1 1 140px}.tutor-path{gap:6px}.tutor-path li{font-size:14px;padding:6px 10px}}

.tutor-voice{box-sizing:border-box;width:100%;padding:16px;border:1px solid #386779;border-radius:14px;background:#112e40;margin:14px 0}.tutor-voice h4{margin:0 0 10px}.tutor-voice audio{width:100%;max-width:100%;margin-top:10px}.tutor-voice .voice-recording{background:#a82143;color:white;border-color:#ff7c98}.tutor-voice [role=status]{line-height:1.7;overflow-wrap:anywhere}.tutor-voice .tutor-actions{margin-top:12px}@media(max-width:640px){.tutor-voice{padding:12px}.tutor-voice .tutor-actions button{flex:1 1 120px;min-width:0}}

.ai-tabs,.ai-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.ai-table-wrap{max-width:100%;overflow-x:auto}.ai-table-wrap table{width:100%;border-collapse:collapse}.ai-table-wrap th,.ai-table-wrap td{padding:12px;text-align:left;border-bottom:1px solid #35526c;white-space:nowrap}.ai-original,.ai-step-check{padding:18px;border:1px solid #4b7f83;border-radius:14px;margin:14px 0;background:#103240}.ai-confirm{display:flex;align-items:center;gap:10px}.ai-confirm input{width:auto!important}[data-ai-step]{padding:18px;border:1px solid #3e596f;border-radius:14px;margin:16px 0}[data-ai-design]{max-width:100%;width:100%}[data-ai-design] textarea{width:100%;box-sizing:border-box;max-width:100%}.ai-feedback-link{margin-top:12px;font-size:14px}.ai-step-check small{color:#b9d8e4}@media(max-width:640px){.ai-tabs button,.ai-actions button{flex:1 1 130px;min-width:0}.ai-table-wrap th,.ai-table-wrap td{padding:8px}[data-ai-step]{padding:12px}}
