:root{--navy:#10264a;--navy2:#183661;--ink:#1a2e4b;--muted:#61728b;--teal:#28b6aa;--teal-dark:#16877f;--mint:#dff5ef;--cream:#f9f8f3;--line:#dbe4e9;--white:#fff;--coral:#f18b6b;--red:#b44a51;--shadow:0 22px 65px rgba(14,37,70,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:"Noto Sans Thai","Sarabun",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}button,a{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #f6ad65;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.48}.site-shell{min-height:100vh;display:flex;flex-direction:column}.masthead{height:86px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,calc((100vw - 1120px)/2));border-bottom:1px solid rgba(255,255,255,.12)}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;line-height:1.15}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border:2px solid #70d5c5;border-radius:13px;color:#70d5c5;font-size:26px;transform:rotate(-7deg)}.brand strong{display:block;font-size:16px;letter-spacing:.18em}.brand small{display:block;margin-top:4px;color:#a9c0d4;font-size:12px;letter-spacing:.03em}.header-note{border:1px solid #536b8a;border-radius:999px;padding:6px 14px;color:#c4d5e4;font-size:12px}main{flex:1}.wrap{max-width:1120px;margin:0 auto;padding:0 28px}.hero{background:radial-gradient(circle at 82% 20%,rgba(44,181,171,.18),transparent 33%),linear-gradient(145deg,#10264a,#173c62);color:#fff;overflow:hidden}.hero-inner{min-height:480px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.8fr);align-items:center;gap:40px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#70ddd0;font-weight:800;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.eyebrow:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal)}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(38px,5vw,67px);line-height:1.16;letter-spacing:-.035em;margin:16px 0 20px;font-weight:800}.hero h1 em{font-style:normal;color:#76dfcf}.hero-lead{max-width:570px;color:#d4e3ef;font-size:17px;margin-bottom:27px}.hero-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:14px;min-height:51px;padding:11px 22px;font-weight:800;text-decoration:none;transition:transform .18s,background .18s,box-shadow .18s}.button:hover:not(:disabled){transform:translateY(-2px)}.button-primary{color:#0b2c41;background:#77e2d0;box-shadow:0 10px 22px rgba(29,191,171,.17)}.button-primary:hover:not(:disabled){background:#9cf1e0}.button-secondary{color:var(--navy);background:#e8edf0}.button-outline{color:var(--ink);background:#fff;border:1px solid var(--line)}.button-danger{color:#fff;background:var(--navy)}.helper{font-size:13px;color:#bbd1df}.orbit{position:relative;height:365px;display:grid;place-items:center}.orbit:before,.orbit:after{content:"";position:absolute;border:1px solid rgba(132,222,216,.28);border-radius:50%}.orbit:before{width:320px;height:320px}.orbit:after{width:230px;height:230px}.planet{width:185px;height:185px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#63d7c4,#158d9d);box-shadow:0 0 0 20px rgba(38,182,170,.07),0 25px 60px rgba(0,0,0,.18);font-size:90px;transform:rotate(-13deg);z-index:1}.orbit-chip{position:absolute;z-index:2;display:flex;align-items:center;gap:9px;background:#fff;color:var(--navy);box-shadow:0 14px 30px rgba(0,0,0,.16);border-radius:12px;padding:9px 15px;font-size:14px;font-weight:800}.orbit-chip i{font-style:normal;font-size:18px}.chip-a{top:33px;left:20px;transform:rotate(-6deg)}.chip-b{right:0;top:110px;transform:rotate(6deg)}.chip-c{bottom:27px;left:34px;transform:rotate(5deg)}.intro-bottom{padding:44px 0 64px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 21px}.stat strong{display:block;font-size:27px;line-height:1.1;color:var(--navy)}.stat span{font-size:13px;color:var(--muted)}.section-title{font-size:23px;color:var(--navy);margin:42px 0 16px}.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.topic-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;display:flex;align-items:center;gap:12px;font-weight:800}.topic-icon{width:43px;height:43px;display:grid;place-items:center;background:#e5f5f3;border-radius:12px;font-size:22px}.small-note{color:var(--muted);font-size:13px;margin:23px 0 0}.exam-page{background:linear-gradient(180deg,var(--navy) 0 178px,var(--cream) 178px);padding:34px 0 70px;min-height:calc(100vh - 150px)}.exam-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;color:#fff;margin-bottom:26px}.exam-head h1{font-size:30px;line-height:1.3;margin:4px 0 0}.exam-head p{font-size:13px;color:#b7cde0;margin:0}.timer{background:#233d60;border:1px solid #57708b;border-radius:13px;padding:9px 16px;min-width:118px;text-align:center;line-height:1.15}.timer small{display:block;color:#b9d0df;font-size:11px}.timer strong{display:block;font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:.03em}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:22px;align-items:start}.quiz-card,.side-card,.result-card,.review-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.quiz-card{padding:33px 36px 29px;min-height:490px}.progress-top{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;font-weight:700}.progress-top strong{color:var(--teal-dark)}.progress-track{height:9px;border-radius:9px;background:#e9eff0;overflow:hidden;margin:11px 0 32px}.progress-fill{height:100%;border-radius:9px;background:linear-gradient(90deg,#2bb5a7,#74ddc8);transition:width .3s}.question-tag{display:inline-block;background:#e2f4f0;color:#0d8078;border-radius:7px;padding:5px 10px;font-size:12px;font-weight:800}.question-number{color:var(--coral);font-size:13px;font-weight:900;letter-spacing:.06em;margin:23px 0 4px}.question-title{font-size:25px;line-height:1.36;margin-bottom:12px;color:var(--navy)}.question-prompt{font-size:17px;line-height:1.85;color:#34465d;margin-bottom:23px;white-space:pre-line}.choices{display:grid;gap:10px}.choice{width:100%;text-align:left;display:flex;gap:14px;align-items:flex-start;border:1.5px solid #dce4e9;background:#fff;border-radius:14px;padding:13px 16px;color:var(--ink);font-size:15.5px;line-height:1.55;transition:border .16s,background .16s,transform .16s}.choice:hover{border-color:#68cbbb;transform:translateX(2px)}.choice.selected{background:#e8f8f3;border-color:#25ae9f;box-shadow:0 0 0 2px rgba(37,174,159,.1)}.choice-letter{flex:none;width:30px;height:30px;border-radius:9px;background:#edf2f3;display:grid;place-items:center;font-weight:900;color:#50647a;line-height:1}.choice.selected .choice-letter{background:#28b6aa;color:#fff}.quiz-actions{display:flex;justify-content:space-between;gap:12px;margin-top:29px;padding-top:22px;border-top:1px solid var(--line)}.side-card{padding:22px;box-shadow:none}.side-card h2{font-size:16px;margin:0 0 13px}.side-progress{font-size:13px;color:var(--muted);margin-bottom:18px}.question-map{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.map-btn{aspect-ratio:1;border:1px solid #dbe4e9;background:#f6f8f8;border-radius:9px;color:#62738b;font-size:13px;font-weight:800}.map-btn.answered{background:#e3f5f0;border-color:#9cdacb;color:#17897d}.map-btn.current{background:var(--navy);border-color:var(--navy);color:#fff}.side-tip{border-top:1px solid var(--line);margin-top:19px;padding-top:18px;color:var(--muted);font-size:12px}.side-tip strong{color:var(--ink)}.side-finish{width:100%;margin-top:18px}.result-page{background:linear-gradient(180deg,var(--navy) 0 255px,var(--cream) 255px);padding:42px 0 80px}.result-heading{color:#fff;margin-bottom:25px}.result-heading .eyebrow{margin-bottom:6px}.result-heading h1{font-size:36px;line-height:1.25;margin:8px 0}.result-heading p{color:#c6d7e6;margin:0}.result-card{padding:32px;display:grid;grid-template-columns:190px 1fr;gap:30px;align-items:center}.score-ring{width:176px;height:176px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--teal) var(--score),#e8eef0 0);position:relative}.score-ring:before{content:"";position:absolute;inset:13px;background:#fff;border-radius:50%}.score-ring-inner{position:relative;text-align:center;line-height:1.1}.score-ring strong{font-size:52px;color:var(--navy)}.score-ring span{display:block;color:var(--muted);font-size:13px}.result-summary h2{font-size:25px;margin:0 0 6px}.result-summary p{color:var(--muted);margin:0 0 17px}.result-pills{display:flex;flex-wrap:wrap;gap:8px}.pill{background:#f1f5f6;color:#52657b;border-radius:100px;padding:5px 11px;font-size:12px;font-weight:800}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:19px}.breakdown{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0 38px}.breakdown-item{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px}.breakdown-item span{font-size:12px;color:var(--muted);display:block}.breakdown-item strong{font-size:21px;color:var(--navy)}.review-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:15px}.review-head h2{margin:0;color:var(--navy);font-size:25px}.review-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.review-list{display:grid;gap:15px}.review-card{box-shadow:none;padding:25px 28px}.review-top{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:12px}.review-kicker{font-size:12px;font-weight:800;color:var(--teal-dark)}.review-status{font-size:12px;font-weight:800;border-radius:99px;padding:4px 11px;white-space:nowrap}.review-status.correct{background:#e1f5e9;color:#1c865b}.review-status.wrong{background:#fff0ec;color:#bd634f}.review-status.blank{background:#edf0f4;color:#607188}.review-card h3{font-size:19px;line-height:1.45;margin:0 0 8px}.review-prompt{font-size:14px;color:#4b5f75;margin:0 0 13px}.answer-row{display:flex;flex-wrap:wrap;gap:8px 17px;font-size:13px;margin-bottom:13px}.answer-row b{color:var(--navy)}.answer-row .right{color:#138473}.explanation{background:#f1f8f6;border-left:3px solid var(--teal);border-radius:0 10px 10px 0;padding:12px 15px;font-size:14px;line-height:1.8}.explanation strong{color:#0d8078}.modal-backdrop{position:fixed;inset:0;background:rgba(9,27,52,.68);z-index:10;display:grid;place-items:center;padding:18px}.modal{width:min(100%,430px);background:#fff;border-radius:20px;padding:28px;box-shadow:0 25px 70px rgba(0,0,0,.28)}.modal h2{font-size:23px;line-height:1.3;margin:0 0 10px}.modal p{color:var(--muted);margin-bottom:23px}.modal-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}.footer{max-width:1120px;width:100%;margin:auto auto 0;padding:25px 28px;display:flex;justify-content:space-between;gap:12px;color:#8693a2;font-size:11px;border-top:1px solid #e4e6e4}
@media(max-width:850px){.hero-inner{grid-template-columns:1fr;min-height:auto;padding-top:62px;padding-bottom:30px}.orbit{height:260px}.orbit:before{width:245px;height:245px}.orbit:after{width:178px;height:178px}.planet{width:140px;height:140px;font-size:70px}.chip-a{top:10px;left:15%}.chip-b{right:12%;top:90px}.chip-c{bottom:5px;left:20%}.exam-layout{grid-template-columns:1fr}.side-card{order:-1}.question-map{grid-template-columns:repeat(10,1fr)}.side-tip{display:none}.side-finish{width:auto}.stats,.topic-grid,.breakdown{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.masthead{height:70px;padding:0 18px}.header-note{display:none}.brand strong{font-size:13px}.brand small{font-size:11px}.brand-mark{width:38px;height:38px}.wrap{padding:0 17px}.hero-inner{padding-top:46px}.hero h1{font-size:43px}.hero-lead{font-size:15px}.orbit{height:214px}.orbit:before{width:198px;height:198px}.orbit:after{width:140px;height:140px}.planet{width:112px;height:112px;font-size:55px}.orbit-chip{font-size:11px;padding:6px 9px}.chip-a{left:3%;top:5px}.chip-b{right:1%;top:76px}.chip-c{left:13%;bottom:0}.intro-bottom{padding:28px 0 45px}.stats{gap:8px}.stat{padding:15px}.stat strong{font-size:22px}.stat span{font-size:11px}.topic-grid{gap:8px}.topic-card{padding:11px;gap:7px;font-size:12px}.topic-icon{width:34px;height:34px;font-size:18px}.section-title{font-size:19px;margin-top:31px}.exam-page{padding-top:21px;background:linear-gradient(180deg,var(--navy) 0 152px,var(--cream) 152px)}.exam-head h1{font-size:22px}.exam-head p{font-size:11px}.timer{min-width:88px;padding:7px 8px}.timer strong{font-size:17px}.exam-layout{gap:13px}.side-card{padding:14px 16px;border-radius:16px}.side-card h2,.side-progress{display:none}.question-map{grid-template-columns:repeat(10,1fr);gap:5px}.map-btn{font-size:10px;border-radius:6px}.side-finish{display:none}.quiz-card{padding:22px 18px;border-radius:17px;min-height:0}.progress-track{margin-bottom:23px}.question-number{margin-top:16px}.question-title{font-size:21px}.question-prompt{font-size:15px;line-height:1.76}.choice{font-size:14px;padding:11px 12px;gap:10px}.choice-letter{width:27px;height:27px}.quiz-actions{margin-top:22px}.button{min-height:46px;padding:9px 13px;font-size:13px}.result-page{padding-top:30px}.result-heading h1{font-size:27px}.result-card{grid-template-columns:1fr;justify-items:center;text-align:center;padding:23px}.score-ring{width:155px;height:155px}.result-pills,.result-actions{justify-content:center}.breakdown{gap:8px;margin-bottom:28px}.breakdown-item{padding:12px}.breakdown-item strong{font-size:18px}.review-card{padding:18px}.review-card h3{font-size:17px}.review-head h2{font-size:21px}.footer{display:block;padding:20px 17px}.footer span{display:block;margin:2px 0}}

/* Expanded practice bank */
html{scroll-behavior:smooth}
.setup-card{scroll-margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;margin-top:32px;box-shadow:0 16px 46px rgba(17,39,73,.07)}
.setup-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:22px}
.setup-heading h2{margin:5px 0 0;color:var(--navy);font-size:25px}
.setup-heading p{margin:0;color:var(--muted);font-size:13px}
.eyebrow.dark{color:var(--teal-dark)}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-button{text-align:left;border:1.5px solid #dbe5e9;background:#f8faf9;border-radius:15px;padding:18px;display:flex;flex-direction:column;gap:5px;color:var(--ink);cursor:pointer}
.mode-button strong{font-size:19px;color:var(--navy)}
.mode-button span{font-size:13px;color:var(--muted);line-height:1.5}
.mode-button.active{border-color:var(--teal);background:#eaf8f4;box-shadow:0 0 0 2px rgba(37,174,159,.1)}
.setup-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}
.setup-controls{grid-template-columns:repeat(3,minmax(0,1fr))}
.setup-controls label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:800;color:var(--navy)}
.setup-controls select{width:100%;border:1px solid #cbd9de;border-radius:11px;background:#fff;padding:12px 13px;color:var(--ink);font:inherit;font-weight:600}
.setup-action{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:22px}
.setup-action span{font-size:12px;color:var(--muted)}
.topic-card strong,.topic-card small{display:block}
.topic-card strong{font-size:13px}
.topic-card small{font-size:11px;line-height:1.4;color:var(--muted);margin-top:2px}
.topic-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.science-diagram{display:block;width:100%;height:auto;max-height:230px}
.diagram-wrap{margin:3px 0 21px;border-radius:17px;overflow:hidden}
.diagram-wrap figcaption{font-size:11px;text-align:right;color:var(--muted);padding:4px 3px}
.written-label{display:block;font-weight:800;color:var(--navy);margin:7px 0 9px}
.written-input{display:block;width:100%;min-height:185px;resize:vertical;border:1.5px solid #cedbdf;border-radius:14px;padding:15px;font:inherit;font-size:15px;line-height:1.7;color:var(--ink);background:#fff}
.written-input:focus,.setup-controls select:focus{outline:3px solid rgba(37,174,159,.2);border-color:var(--teal)}
.written-help{font-size:12px;color:var(--muted);margin:9px 0 0}
.written-review-answer{background:#f6f8fa;border:1px solid #e1e8ec;border-radius:11px;padding:14px 16px;margin-bottom:12px}
.written-review-answer strong{font-size:12px;color:var(--navy)}
.written-review-answer p{white-space:pre-wrap;line-height:1.75;margin:6px 0 0;color:#40566a}
.rubric{margin-top:13px;background:#fffdf6;border:1px solid #f0e2b5;border-radius:11px;padding:14px 16px;font-size:13px;color:#425570}
.rubric>strong{color:var(--navy)}
.rubric ul{margin:9px 0 14px;padding-left:21px;line-height:1.75}
.self-score{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.score-option{min-width:34px;height:34px;border-radius:8px;border:1px solid #bfd1d8;background:#fff;color:var(--navy);font-weight:800}
.score-option.active{background:var(--teal);border-color:var(--teal);color:#fff}
.breakdown-item small{display:block;color:var(--muted);font-size:11px}
@media(max-width:900px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.setup-card{padding:20px 16px;margin-top:20px}.setup-heading{display:block}.setup-heading p{margin-top:5px}.mode-switch{gap:8px}.mode-button{padding:13px 11px}.mode-button strong{font-size:16px}.mode-button span{font-size:11px}.setup-controls{grid-template-columns:1fr}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-card{align-items:flex-start}.topic-card strong{font-size:11px}.topic-card small{font-size:10px}.question-map{grid-template-columns:repeat(10,minmax(0,1fr))}.diagram-wrap{margin-bottom:15px}.science-diagram{min-height:130px}.written-input{min-height:165px}.breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.review-card .diagram-wrap{margin:5px 0 13px}}

/* Topic matched lessons shown after submission */
.lesson-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:14px;padding:16px;background:#f5f7fd;border:1px solid #dce4f2;border-radius:14px}
.lesson-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#dbe5fc;color:#243d78;font-size:16px}
.lesson-body{min-width:0}.lesson-label{display:block;color:#586b9a;font-weight:800;font-size:11px;margin-bottom:3px}.lesson-body>strong{display:block;color:var(--navy);font-size:15px;line-height:1.45}.lesson-body p{margin:4px 0 0;color:#53647e;font-size:12px;line-height:1.6}.lesson-body p b{color:#263c70}
.lesson-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:39px;padding:8px 13px;border-radius:10px;background:#223c72;color:#fff;font-size:12px;font-weight:800;text-decoration:none}.lesson-link:hover{background:#33579c}
@media(max-width:600px){.lesson-card{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:12px}.lesson-icon{width:36px;height:36px}.lesson-body>strong{font-size:13px}.lesson-link{grid-column:2;justify-self:start;margin-top:3px}.lesson-label{font-size:10px}}

/* Visible difficulty labels on each question and its review */
.question-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.question-meta .question-tag{margin:0}
.difficulty-badge{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900;line-height:1.35;white-space:nowrap;border:1px solid transparent}
.difficulty-easy{background:#e9f7ed;border-color:#bce5c8;color:#226741}
.difficulty-medium{background:#fff4dc;border-color:#f5d792;color:#805300}
.difficulty-hard{background:#fff0e8;border-color:#f4b9a4;color:#a53b22}
.review-difficulty{margin:7px 0 9px}
@media(max-width:700px){.setup-controls{grid-template-columns:1fr}.question-meta{align-items:flex-start}.difficulty-badge{font-size:11px}}
.header-links{display:flex;align-items:center;gap:12px}.archive-nav{color:#a8f0e2;text-decoration:none;font-size:13px;font-weight:800;border:1px solid #548879;border-radius:999px;padding:7px 13px}.archive-nav:hover{background:#244f64}.archive-hero-link{background:#ffffff18;color:#fff;border:1px solid #8dcfc3}.archive-hero-link:hover{background:#ffffff2b}.archive-feature{display:flex;align-items:center;gap:17px;text-decoration:none;color:var(--navy);border:1px solid #b7dcd5;background:linear-gradient(100deg,#e7f8f2,#fff);border-radius:17px;padding:17px 21px;margin-top:17px;box-shadow:0 10px 30px #163f4310}.archive-feature-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;background:#d1efe7;border-radius:12px;font-size:25px}.archive-feature strong,.archive-feature small{display:block}.archive-feature strong{font-size:18px}.archive-feature small{font-size:12px;color:var(--muted);margin-top:2px}.archive-feature-arrow{margin-left:auto;font-size:24px;color:#16877f}.archive-feature:hover{border-color:#36aa94;transform:translateY(-2px)}
@media(max-width:600px){.masthead{height:auto;min-height:76px;padding:12px 18px}.header-links{gap:5px}.header-links .header-note{display:none}.archive-nav{font-size:11px;padding:6px 9px}.archive-feature{padding:14px;gap:10px}.archive-feature-icon{width:40px;height:40px;font-size:21px}.archive-feature strong{font-size:14px}.archive-feature small{font-size:11px}.archive-feature-arrow{font-size:18px}}
/* Student names and saved scores */
.student-nav-button,.student-teacher-link{border:1px solid #d7e6e4;background:#fff;color:#123450;border-radius:999px;padding:.55rem .85rem;font:inherit;font-size:.84rem;font-weight:750;cursor:pointer;text-decoration:none;white-space:nowrap}
.student-nav-button:hover,.student-teacher-link:hover{background:#eaf7f4}
.student-dialog{border:0;border-radius:24px;padding:0;width:min(92vw,440px);box-shadow:0 22px 80px #0c254b55;color:#10264a}
.student-dialog::backdrop{background:#061b36a8}
.student-dialog form{padding:2rem;display:grid;gap:.8rem;position:relative}
.student-dialog h2{font-size:1.7rem;line-height:1.2;margin:0}
.student-dialog p,.student-dialog small{color:#576d7b;margin:0;line-height:1.5}
.student-dialog label{font-weight:750;margin-top:.4rem}
.student-dialog input{width:100%;border:1px solid #bfd5d1;border-radius:12px;padding:.9rem 1rem;font:inherit;font-size:1rem;box-sizing:border-box}
.student-dialog .student-submit{justify-content:center}
.student-close{position:absolute;right:1rem;top:1rem;border:0;background:transparent;font-size:1.7rem;color:#677;cursor:pointer}
.student-existing{display:flex;flex-wrap:wrap;gap:.5rem;padding:.85rem;background:#f2f8f7;border-radius:14px}
.student-existing strong{flex-basis:100%;font-size:.86rem}
.student-existing button{border:1px solid #98c9be;background:white;border-radius:999px;padding:.45rem .75rem;font:inherit;cursor:pointer}
.student-history-card{margin-top:1.25rem;padding:1.3rem 1.5rem;border:1px solid #dae9e7;border-radius:20px;background:#fff}
.student-history-card h2{font-size:1.2rem;margin:0 0 .7rem}
.student-history-card p{margin:.3rem 0;color:#60717d}
.history-list{display:grid;gap:.35rem}
.history-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 0;border-top:1px solid #e7efed}
.history-row span{display:grid;gap:.15rem}
.history-row small{color:#627783}
.history-row b{white-space:nowrap;color:#087d70}
.history-more{margin-top:.5rem}
.history-more summary{width:max-content;max-width:100%;list-style:none;cursor:pointer;color:#087d70;font-weight:750;padding:.55rem .8rem;border-radius:10px;background:#eaf7f4}
.history-more summary::-webkit-details-marker{display:none}
.history-more summary::after{content:'⌄';display:inline-block;margin-left:.55rem;transition:transform .2s}
.history-more[open] summary::after{transform:rotate(180deg)}
.history-more summary:hover,.history-more summary:focus-visible{background:#d8f0e9}
.history-chart{margin:.9rem 0;padding:1rem;border-radius:14px;background:#f4f9f8}
.history-chart strong{font-size:.95rem}
.history-chart p{font-size:.78rem;margin:.25rem 0 .4rem;line-height:1.4}
.history-chart svg{display:block;width:100%;height:auto;max-height:205px;overflow:visible}
.history-chart-grid{stroke:#dceae6;stroke-width:1}
.history-chart-axis{font-size:10px;fill:#667a80}
.history-chart-line{fill:none;stroke:#099988;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.history-chart-dot{fill:#fff;stroke:#087d70;stroke-width:2.5}
.history-older{max-height:320px;overflow:auto;padding-right:.3rem}
.save-status{font-size:.9rem;color:#356d65;margin-top:.65rem}
.save-status.error{color:#9c4227}
@media(max-width:700px){.header-links{flex-wrap:wrap;justify-content:flex-end;gap:.35rem}.student-nav-button,.student-teacher-link{font-size:.72rem;padding:.35rem .55rem}.student-dialog form{padding:1.4rem}}
