*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f7fb;color:#172033}.topbar{height:68px;background:#0b1324;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 5%;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800}.brand-mark{width:36px;height:36px;border-radius:10px;background:#e31b23;display:grid;place-items:center;font-weight:900}.topbar nav{display:flex;gap:18px}.topbar nav a{color:#dce3f2;text-decoration:none;font-weight:600}.container{max-width:1100px;margin:0 auto;padding:28px 18px 60px}.hero{background:linear-gradient(135deg,#0b1324,#1e3a63);color:#fff;border-radius:22px;padding:48px 34px;margin-bottom:24px}.hero h1{font-size:clamp(32px,6vw,56px);margin:0 0 12px}.hero p{font-size:18px;color:#dbe5f5;max-width:700px}.btn{display:inline-block;border:0;border-radius:12px;padding:12px 18px;background:#e31b23;color:#fff;text-decoration:none;font-weight:800;cursor:pointer}.btn.secondary{background:#fff;color:#172033;border:1px solid #d7deea}.btn.green{background:#138a4b}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.card{background:#fff;border:1px solid #e4e8f0;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(12,25,50,.05)}.card h3{margin-top:0}.muted{color:#667085}.form{max-width:520px;margin:30px auto}.field{margin:0 0 16px}.field label{display:block;font-weight:700;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;padding:13px;border:1px solid #cfd7e5;border-radius:10px;font:inherit;background:#fff}.flash{padding:13px 16px;border-radius:12px;background:#e8f0ff;margin-bottom:18px}.flash.error{background:#ffe8e8}.flash.success{background:#e8f8ee}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{background:#fff;border:1px solid #e5e9f0;border-radius:16px;padding:18px}.stat strong{font-size:28px;display:block}.test-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.timer{font-size:22px;font-weight:900;color:#c81924}.progress{height:8px;background:#e6eaf1;border-radius:99px;overflow:hidden;margin-bottom:24px}.progress>span{display:block;height:100%;background:#e31b23}.question-card{background:#fff;border:1px solid #e1e6ef;border-radius:20px;padding:22px}.question-image{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:0 auto 22px;border-radius:12px}.options{display:grid;gap:12px}.option{display:flex;align-items:flex-start;gap:12px;border:1px solid #d8deea;border-radius:13px;padding:14px;cursor:pointer}.option:hover{border-color:#e31b23}.option input{margin-top:4px}.actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:11px;border-bottom:1px solid #e5e8ee;text-align:left}.pill{display:inline-block;padding:5px 9px;border-radius:99px;background:#edf2f7}.pass{color:#08763e;font-weight:800}.fail{color:#b42318;font-weight:800}footer{padding:28px 5%;background:#0b1324;color:#aebbd0;display:flex;justify-content:space-between;gap:10px}@media(max-width:700px){.stats{grid-template-columns:1fr}.test-head{align-items:flex-start;flex-direction:column}.topbar{padding:0 16px}.topbar nav{gap:10px}.brand span:last-child{display:none}}
.diagram-wrap{display:flex;justify-content:center;align-items:center;margin:0 0 16px;min-height:0}.question-image{display:block;width:auto;max-width:100%;max-height:340px;height:auto;object-fit:contain;border-radius:10px;border:1px solid #e5e7eb;background:#fff}.question-card{padding:18px}.question-card h2{margin:0 0 16px;font-size:clamp(19px,2.5vw,26px);line-height:1.3}.option{padding:12px}.actions{margin-top:16px}@media(max-width:700px){.question-image{max-height:250px;max-width:100%}.question-card{padding:14px;border-radius:16px}.question-card h2{font-size:20px;line-height:1.3;margin-bottom:14px}.options{gap:8px}.option{padding:11px 12px;border-radius:11px}.actions{margin-top:14px}.btn{padding:11px 15px}}

/* Reference-style theory test layout */
.test-head{margin-bottom:14px}.test-head h1{margin:0;font-size:clamp(26px,4vw,38px);line-height:1.15;font-weight:800;color:#172033}.dash{margin:0 6px}.timer{font-size:24px}.progress{height:7px;margin-bottom:18px}.question-card{padding:36px 38px 34px;border-radius:22px;box-shadow:0 3px 16px rgba(12,25,50,.05)}.question-card h2{font-size:clamp(24px,3vw,34px);line-height:1.35;margin:0 0 28px;font-weight:500;color:#182131}.diagram-wrap{margin:0 auto 28px;max-width:760px}.question-image{width:auto;max-width:100%;max-height:560px;border:0;border-radius:10px;background:#fff;object-fit:contain}.options{gap:16px}.option{min-height:76px;align-items:center;padding:18px 24px;border-radius:16px;font-size:clamp(20px,2.4vw,28px);background:#fff}.option input{width:23px;height:23px;flex:0 0 auto;margin:0}.option span{display:block}.actions{margin-top:18px}.actions .btn{min-width:110px;text-align:center}
@media(max-width:700px){.container{padding:16px 12px 36px}.test-head{flex-direction:row;align-items:center}.test-head h1{font-size:23px}.dash{margin:0 3px}.timer{font-size:20px}.question-card{padding:22px 16px 20px;border-radius:18px}.question-card h2{font-size:22px;line-height:1.35;margin-bottom:20px}.diagram-wrap{margin-bottom:20px;max-width:100%}.question-image{max-height:300px;max-width:94%;width:auto}.options{gap:10px}.option{min-height:58px;padding:13px 14px;border-radius:13px;font-size:18px}.option input{width:19px;height:19px}.actions{margin-top:14px}}
@media(min-width:701px){.test-head{align-items:center}.test-head .timer{order:2}}

/* Professional homepage */
.home-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:center;margin:-28px -18px 0;padding:78px max(6vw,42px) 74px;background:radial-gradient(circle at 80% 20%,rgba(227,27,35,.18),transparent 28%),linear-gradient(135deg,#071021 0%,#0d1830 58%,#152847 100%);color:#fff;min-height:600px}
.hero-copy{position:relative;z-index:2;max-width:690px}.eyebrow,.section-kicker{font-size:12px;letter-spacing:.16em;font-weight:800}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#ffb6ba;text-transform:uppercase;margin-bottom:20px}.eyebrow-dot{width:8px;height:8px;border-radius:50%;background:#e31b23;box-shadow:0 0 0 5px rgba(227,27,35,.15)}
.home-hero h1{font-size:clamp(42px,6vw,72px);line-height:1.02;letter-spacing:-.045em;margin:0 0 22px;font-weight:850}.home-hero h1 span{color:#ff5a60}.hero-lead{font-size:18px;line-height:1.7;color:#c8d3e7;max-width:640px;margin:0 0 28px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.home-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 20px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid transparent;transition:.2s ease}.home-btn:hover{transform:translateY(-1px)}.home-btn-primary{background:#e31b23;color:#fff;box-shadow:0 12px 30px rgba(227,27,35,.22)}.home-btn-light{background:#fff;color:#111a2c}.hero-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px;color:#aebbd0;font-size:13px}.hero-visual{position:relative;min-height:470px;display:grid;place-items:center}.visual-glow{position:absolute;width:330px;height:330px;background:rgba(227,27,35,.16);filter:blur(50px);border-radius:50%}.practice-card{position:relative;width:min(410px,100%);background:#fff;color:#182131;border-radius:24px;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.38);transform:rotate(2deg)}.practice-top{display:flex;justify-content:space-between;font-size:10px;font-weight:900;letter-spacing:.12em;color:#778399}.practice-progress{height:6px;background:#edf0f5;border-radius:20px;margin:14px 0 18px;overflow:hidden}.practice-progress span{display:block;width:52%;height:100%;background:#e31b23}.practice-number{font-size:13px;color:#68748a;font-weight:800}.practice-number small{font-weight:500}.practice-question{font-size:21px;font-weight:800;line-height:1.25;margin:10px 0 16px}.practice-diagram{height:145px;border-radius:14px;background:#f4f6f9;position:relative;overflow:hidden;margin-bottom:13px}.road-cross{position:absolute;inset:0}.road-cross:before,.road-cross:after{content:"";position:absolute;background:#fff;border:1px solid #d8dee8}.road-cross:before{width:100%;height:48px;top:49px}.road-cross:after{height:100%;width:48px;left:50%;top:0;transform:translateX(-50%)}.road-cross i{position:absolute;width:10px;height:4px;background:#8d98aa;z-index:2}.road-cross i:nth-child(1){top:70px;left:16px}.road-cross i:nth-child(2){top:70px;right:16px}.road-cross i:nth-child(3){bottom:12px;left:calc(50% - 5px)}.car{position:absolute;z-index:3;width:44px;height:25px;border-radius:12px;background:#e31b23;color:#fff;font-weight:900;font-size:11px;display:grid;place-items:center}.car-a{left:26%;top:61px}.car-b{left:53%;bottom:20px;background:#ff7a21}.practice-option{border:1px solid #e0e5ed;border-radius:11px;padding:11px 13px;margin-top:8px;font-size:13px;font-weight:700;display:flex;align-items:center;gap:9px}.radio{width:15px;height:15px;border:1.5px solid #8a95a6;border-radius:50%}.practice-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:11px;color:#748095}.practice-footer b{color:#e31b23}
.home-stats{max-width:1120px;margin:0 auto;padding:0 18px;display:grid;grid-template-columns:repeat(4,1fr);position:relative;z-index:3;transform:translateY(-32px)}.home-stats>div{background:#fff;padding:23px 24px;border-right:1px solid #e7ebf2;box-shadow:0 12px 35px rgba(12,25,50,.08)}.home-stats>div:first-child{border-radius:16px 0 0 16px}.home-stats>div:last-child{border-radius:0 16px 16px 0;border-right:0}.home-stats strong{display:block;font-size:27px;color:#172033}.home-stats span{font-size:12px;color:#7a8496;font-weight:700}
.home-section{max-width:1120px;margin:20px auto 90px;padding:0 18px}.section-heading{text-align:center;max-width:680px;margin:0 auto 34px}.section-kicker{display:block;color:#e31b23;margin-bottom:10px}.section-heading h2,.how-copy h2,.home-cta h2{font-size:clamp(30px,4vw,44px);line-height:1.12;letter-spacing:-.025em;margin:0 0 12px;color:#172033}.section-heading p,.how-copy p,.home-cta p{color:#667085;line-height:1.7;margin:0}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feature-card{background:#fff;border:1px solid #e5e9f0;border-radius:20px;padding:24px;box-shadow:0 8px 28px rgba(12,25,50,.045)}.feature-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#fff0f1;color:#e31b23;font-size:12px;font-weight:900;margin-bottom:20px}.feature-card h3{margin:0 0 9px;font-size:18px}.feature-card p{margin:0;color:#667085;line-height:1.6;font-size:14px}
.how-section{background:#fff;border-top:1px solid #e8ecf2;border-bottom:1px solid #e8ecf2;padding:76px max(18px,6vw);display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center}.how-copy{max-width:470px}.home-text-link{display:inline-flex;gap:8px;color:#e31b23;text-decoration:none;font-weight:800;margin-top:24px}.steps{display:grid;gap:14px}.step{display:flex;gap:18px;padding:20px;border:1px solid #e4e8ef;border-radius:17px;background:#fafbfc}.step>span{width:38px;height:38px;flex:0 0 auto;border-radius:50%;background:#0b1324;color:#fff;display:grid;place-items:center;font-weight:900}.step h3{margin:0 0 5px;font-size:16px}.step p{margin:0;color:#667085;font-size:14px;line-height:1.5}
.home-cta{max-width:1120px;margin:70px auto;padding:38px 40px;border-radius:22px;background:linear-gradient(135deg,#0b1324,#142848);display:flex;align-items:center;justify-content:space-between;gap:30px;color:#fff}.home-cta h2{color:#fff;margin-bottom:8px}.home-cta p{color:#bac7da}.home-cta .section-kicker{color:#ff8589}
@media(max-width:900px){.home-hero{grid-template-columns:1fr;padding:58px 28px 70px}.hero-visual{min-height:390px}.feature-grid{grid-template-columns:repeat(2,1fr)}.how-section{grid-template-columns:1fr;gap:36px}.home-cta{margin:50px 18px;padding:30px;flex-direction:column;align-items:flex-start}.home-stats{grid-template-columns:repeat(2,1fr)}.home-stats>div:first-child{border-radius:16px 0 0 0}.home-stats>div:nth-child(2){border-radius:0 16px 0 0;border-right:0}.home-stats>div:nth-child(3){border-radius:0 0 0 16px}.home-stats>div:last-child{border-radius:0 0 16px 0}}
@media(max-width:600px){.home-hero{margin:-16px -12px 0;padding:45px 20px 54px;min-height:0}.home-hero h1{font-size:42px}.hero-lead{font-size:16px}.hero-trust{display:grid;gap:7px}.hero-visual{min-height:350px}.practice-card{transform:none;padding:17px;border-radius:19px}.practice-diagram{height:120px}.practice-question{font-size:18px}.home-stats{padding:0 12px;transform:translateY(-22px)}.home-stats>div{padding:18px}.home-stats strong{font-size:23px}.home-section{margin-bottom:60px;padding:0 12px}.feature-grid{grid-template-columns:1fr}.feature-card{padding:20px}.how-section{padding:55px 20px}.home-cta{margin:40px 12px;padding:26px 22px}.home-cta h2{font-size:30px}.home-btn{width:100%}}

/* Professional student dashboard */
.student-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:28px 30px;border-radius:22px;background:linear-gradient(135deg,#0b1324,#152847);color:#fff;box-shadow:0 14px 35px rgba(12,25,50,.10)}
.student-welcome .section-kicker{color:#ff8589}.student-welcome h1{margin:6px 0 7px;font-size:clamp(27px,4vw,38px);letter-spacing:-.025em}.student-welcome p{margin:0;color:#bdc9dc;line-height:1.55;max-width:650px}.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:28px}.dash-stat{background:#fff;border:1px solid #e4e8ef;border-radius:17px;padding:20px;box-shadow:0 6px 22px rgba(12,25,50,.045);min-width:0}.dash-stat span,.dash-stat small{display:block;color:#667085}.dash-stat span{font-size:13px;font-weight:700}.dash-stat strong{display:block;font-size:32px;line-height:1.15;margin:7px 0 4px;color:#172033}.dash-stat small{font-size:12px}.mini-progress{height:5px;background:#edf0f5;border-radius:10px;overflow:hidden;margin-top:11px}.mini-progress span{display:block;height:100%;background:#e31b23;border-radius:10px}.tests-section,.recent-section{margin-bottom:30px}.section-title-row{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px}.section-title-row h2{margin:4px 0 5px;font-size:28px;letter-spacing:-.02em}.section-title-row p{margin:0;color:#667085}.test-count{white-space:nowrap;padding:8px 12px;border-radius:99px;background:#eef2f7;color:#475467;font-size:12px;font-weight:800}.test-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.test-tile{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid #e1e6ee;border-radius:18px;padding:20px 20px 20px 22px;box-shadow:0 5px 20px rgba(12,25,50,.04);transition:.18s ease}.test-tile:hover{transform:translateY(-1px);box-shadow:0 10px 25px rgba(12,25,50,.07)}.test-tile.is-locked{background:#fafbfc}.test-number{font-size:11px;letter-spacing:.12em;color:#98a2b3;font-weight:800}.test-number strong{color:#e31b23}.test-tile h3{margin:5px 0 7px;font-size:19px}.test-tile p{margin:0;color:#667085;font-size:13px}.test-tile p span{padding:0 4px;color:#b2bac7}.test-tile-action{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:0 0 auto}.test-tile-action .btn{white-space:nowrap}.text-action{font-size:12px;color:#e31b23;text-decoration:none;font-weight:800}.locked-label{font-size:12px;color:#98a2b3;font-weight:800}.test-status{display:inline-flex;align-items:center;gap:6px;margin-top:11px;font-size:11px;font-weight:800}.test-status.ready{color:#667085}.test-status.passed{color:#08763e}.test-status.failed{color:#b42318}.test-status.locked{color:#7a8496}.result-list{background:#fff;border:1px solid #e1e6ee;border-radius:18px;overflow:hidden}.result-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:20px;padding:16px 20px;border-bottom:1px solid #edf0f4}.result-row:last-child{border-bottom:0}.result-row strong,.result-row span{display:block}.result-row span{font-size:12px;color:#98a2b3;margin-top:3px}.result-score{font-weight:900}.score-pass{color:#08763e}.score-fail{color:#b42318}.empty-state{background:#fff;border:1px dashed #d5dce7;border-radius:18px;padding:30px;text-align:center}.empty-state p{color:#667085;margin:7px 0 18px}.section-kicker{display:block;color:#e31b23;font-size:11px;letter-spacing:.15em;font-weight:900}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,1fr)}.test-list{grid-template-columns:1fr}}
@media(max-width:600px){.student-welcome{padding:22px 20px;display:block;border-radius:18px}.student-welcome .btn{width:100%;margin-top:16px}.dashboard-stats{gap:10px;margin-bottom:24px}.dash-stat{padding:16px}.dash-stat strong{font-size:27px}.section-title-row{align-items:flex-start}.section-title-row h2{font-size:24px}.section-title-row p{font-size:13px;line-height:1.5}.test-count{display:none}.test-tile{padding:17px;align-items:flex-end}.test-tile h3{font-size:17px}.test-tile p{font-size:12px;line-height:1.5}.test-tile-action .btn{padding:10px 13px}.result-row{grid-template-columns:1fr auto;gap:8px 14px}.result-row .text-action{grid-column:1 / -1}.student-welcome h1{font-size:27px}}

/* Student dashboard reference design */
.student-ref-body{margin:0;background:#f3f6fa;color:#0d1b33;font-family:Inter,Arial,sans-serif}.student-ref-header{height:116px;background:#071a32;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:30px}.student-ref-brand{color:#fff;text-decoration:none;display:flex;flex-direction:column;line-height:.92}.student-ref-logo{font-size:55px;font-weight:950;letter-spacing:-.07em}.student-ref-logo:after{content:'';display:inline-block;width:18px;height:18px;background:#e51d2a;border-radius:50%;margin-left:-34px;margin-bottom:9px;vertical-align:middle}.student-ref-sub{font-size:18px;font-weight:900;letter-spacing:.01em}.student-ref-sub small{display:block;font-size:12px;letter-spacing:.13em;margin-top:8px;font-weight:700}.student-ref-topnav{height:100%;display:flex;align-items:stretch;gap:34px}.student-ref-topnav a{min-width:78px;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:16px;font-weight:800;position:relative}.student-ref-topnav b{font-size:31px;line-height:1}.student-ref-topnav a.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:6px;background:#e51d2a}.student-ref-main{max-width:1120px;margin:0 auto;padding:12px 0 80px}.student-ref-hero{height:214px;border-radius:18px;overflow:hidden;position:relative;margin-bottom:12px;display:flex;align-items:center;padding:0 28px;box-shadow:0 3px 12px rgba(13,27,51,.08);background:#dce8f2 url('hero-road.jpg') right center/52% 100% no-repeat}.student-ref-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(234,242,251,.98) 0%,rgba(234,242,251,.95) 38%,rgba(234,242,251,.22) 63%,rgba(234,242,251,0) 75%);z-index:1}.student-ref-hero-copy{position:relative;z-index:3}.student-ref-hero h1{font-size:37px;line-height:1.05;margin:0 0 9px;letter-spacing:-.03em}.student-ref-hero h1 span{color:#e51d2a}.student-ref-hero p{font-size:20px;line-height:1.35;margin:0 0 14px}.student-ref-primary{display:inline-block;background:#ed1824;color:#fff;text-decoration:none;border-radius:12px;padding:15px 28px;font-size:21px;font-weight:900;box-shadow:0 5px 12px rgba(237,24,36,.2)}.student-ref-hero-message{position:absolute;left:52%;top:28px;font-size:27px;line-height:1.08;font-style:italic;color:#0b1b32;z-index:3;text-align:center}.student-ref-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.student-ref-stats article{background:#fff;border:1px solid #e0e5ec;border-radius:17px;padding:18px 20px;display:flex;gap:14px;align-items:center;min-height:126px;box-shadow:0 2px 10px rgba(13,27,51,.04)}.student-ref-stats label{font-size:16px;line-height:1.2;color:#1a2740}.student-ref-stats strong{display:block;font-size:39px;line-height:1;margin-top:7px}.student-ref-stats small{font-size:14px;color:#68768a}.sr-icon{width:56px;height:56px;border-radius:13px;display:grid;place-items:center;color:#fff;font-size:27px;font-weight:900;flex:0 0 auto}.sr-icon.blue{background:#146be7}.sr-icon.green{background:#079a4c}.sr-icon.purple{background:#7136c9}.sr-icon.orange{background:#f07d00}.sr-bar,.sr-test-progress{height:13px;background:#dfe3e9;border-radius:99px;overflow:hidden;margin-top:7px}.sr-bar span,.sr-test-progress span{display:block;height:100%;background:#0a9a4d;border-radius:99px}.sr-section-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px}.sr-section-head h2{font-size:29px;margin:0}.sr-section-head a{color:#0e1728;text-decoration:none;font-weight:800}.sr-test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.sr-test-card{background:#fff;border:1px solid #e0e5ec;border-radius:17px;padding:18px 21px;min-height:245px;position:relative;box-shadow:0 2px 9px rgba(13,27,51,.035)}.sr-test-card h3{font-size:25px;margin:0 0 3px}.sr-test-card p{margin:4px 0;color:#58667b;font-size:16px}.sr-test-progress{width:75%;height:20px;margin-top:16px}.sr-test-progress span{background:#126ee8}.sr-test-card.passed .sr-test-progress span{background:#079a4c}.sr-pct{position:absolute;right:21px;top:139px;font-size:17px}.sr-status{margin-top:8px;padding:8px 12px;border-radius:10px;text-align:center;font-weight:800;font-size:16px}.sr-status.passed{background:#e3f5ea;color:#08743a}.sr-status.failed{background:#fde6e8;color:#c21c27}.sr-status.progress{background:#fde8ea;color:#d31925}.sr-status.locked{background:#edf0f4;color:#182338}.sr-test-card button,.sr-start{display:block;width:100%;margin-top:8px;border:0;border-radius:10px;padding:12px;text-align:center;font:inherit;font-weight:900;text-decoration:none;background:#06192f;color:#fff}.sr-start.continue{background:#e51d2a}.sr-test-card.passed .sr-actions{display:flex;gap:8px;margin-top:8px}.sr-actions a{flex:1;text-align:center;padding:11px;border:1px solid #cfd6df;border-radius:10px;color:#152036;text-decoration:none;font-weight:800}.sr-actions .retake{background:#079a4c;color:#fff;border-color:#079a4c}.sr-test-card.failed .sr-start{background:#e51d2a}.student-ref-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.student-ref-shortcuts a{background:#fff;border:1px solid #e0e5ec;border-radius:15px;padding:18px 20px;display:flex;align-items:center;gap:13px;color:#132038;text-decoration:none;min-height:88px}.student-ref-shortcuts span{width:45px;height:45px;border-radius:12px;background:#fff0f1;color:#e51d2a;display:grid;place-items:center;font-size:28px;font-weight:900}.student-ref-shortcuts b{line-height:1.2;flex:1}.student-ref-shortcuts a> :last-child{font-size:25px}.student-ref-bottom{display:grid;grid-template-columns:1.25fr .95fr;gap:14px}.sr-activity,.sr-encourage{background:#fff;border:1px solid #e0e5ec;border-radius:17px;padding:20px}.sr-activity header{font-size:18px;font-weight:900;border-bottom:1px solid #e9edf2;padding-bottom:12px}.sr-activity header a{float:right;color:#0b67d9;text-decoration:none;font-size:14px}.sr-activity>div{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f3}.sr-activity time{margin-left:auto;color:#657187;font-size:13px}.activity-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900}.activity-dot.ok{background:#08a04f}.activity-dot.bad{background:#e51d2a}.sr-encourage{position:relative;padding-left:86px}.sr-encourage .target{position:absolute;left:20px;top:20px;width:55px;height:55px;border-radius:12px;background:#ffe9eb;color:#e51d2a;display:grid;place-items:center;font-size:36px}.sr-encourage h3{margin:0 0 4px;font-size:22px}.sr-encourage p{margin:0;color:#667085;line-height:1.5}.sr-encourage blockquote{margin:18px 0 0;background:#fff0f1;border-radius:10px;padding:14px;color:#5d2228;font-weight:800}.sr-encourage small{font-weight:500}.student-ref-bottomnav{display:none}
@media(max-width:900px){.student-ref-header{padding:0 22px}.student-ref-main{padding:10px 14px 90px}.student-ref-stats{grid-template-columns:repeat(2,1fr)}.sr-test-grid{grid-template-columns:repeat(2,1fr)}.student-ref-shortcuts{grid-template-columns:repeat(2,1fr)}.student-ref-bottom{grid-template-columns:1fr}.student-ref-hero-message{left:55%;font-size:22px}}
@media(max-width:600px){.student-ref-header{height:82px;padding:0 12px}.student-ref-logo{font-size:31px}.student-ref-sub{font-size:10px}.student-ref-sub small{font-size:7px;margin-top:4px}.student-ref-topnav{gap:8px}.student-ref-topnav a{min-width:40px;font-size:9px}.student-ref-topnav b{font-size:21px}.student-ref-topnav a:nth-child(4){display:none}.student-ref-main{padding:8px 10px 95px}.student-ref-hero{height:190px;padding:18px 16px;align-items:flex-start;background-position:right center;background-size:62% 100%}.student-ref-hero:after{background:linear-gradient(90deg,rgba(234,242,251,.98) 0%,rgba(234,242,251,.9) 47%,rgba(234,242,251,.18) 78%,rgba(234,242,251,0) 100%)}.student-ref-hero h1{font-size:25px;max-width:300px}.student-ref-hero p{font-size:14px}.student-ref-primary{font-size:15px;padding:11px 15px}.student-ref-hero-message{left:auto;right:15%;top:54px;font-size:16px}.student-ref-stats{gap:8px}.student-ref-stats article{min-height:104px;padding:12px;gap:9px}.sr-icon{width:43px;height:43px;font-size:20px}.student-ref-stats label{font-size:13px}.student-ref-stats strong{font-size:27px}.student-ref-stats small{font-size:11px}.sr-section-head h2{font-size:24px}.sr-section-head a{font-size:12px}.sr-test-grid{grid-template-columns:1fr}.sr-test-card{min-height:222px}.student-ref-shortcuts{grid-template-columns:repeat(2,1fr);gap:8px}.student-ref-shortcuts a{min-height:75px;padding:12px}.student-ref-shortcuts span{width:36px;height:36px;font-size:22px}.student-ref-shortcuts b{font-size:12px}.sr-activity,.sr-encourage{padding:15px}.sr-activity>div{font-size:12px}.sr-activity time{font-size:10px}.student-ref-bottomnav{display:flex;position:fixed;left:0;right:0;bottom:0;height:72px;background:#071a32;color:#fff;z-index:20;align-items:center;justify-content:space-around}.student-ref-bottomnav a{color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;font-size:22px;gap:2px}.student-ref-bottomnav a small{font-size:11px}.student-ref-bottomnav a.active{color:#f01d2b}.student-ref-bottomnav em{display:none}}


/* Answer Key: keep the existing table layout, but show each diagram directly above its question text. */
.answer-question-image{display:block;margin:0 0 10px;max-width:260px;}
.answer-question-image img{display:block;width:auto;max-width:260px;max-height:190px;height:auto;object-fit:contain;border:1px solid #dfe5ed;border-radius:8px;background:#fff;padding:3px;}
.answer-question-text{line-height:1.45;}
.answer-table td:nth-child(3){min-width:280px;vertical-align:top;}
.answer-table td:nth-child(4){width:110px;min-width:100px;text-align:center;vertical-align:middle;}
.answer-diagram-thumb{display:inline-flex;width:82px;height:58px;align-items:center;justify-content:center;border:1px solid #dfe5ed;border-radius:7px;background:#fff;overflow:hidden;text-decoration:none;}
.answer-diagram-thumb img{display:block;max-width:78px;max-height:54px;width:auto;height:auto;object-fit:contain;}
.answer-diagram-empty{color:#8b95a3;}
@media(max-width:800px){.answer-question-image{max-width:220px}.answer-question-image img{max-width:220px;max-height:160px}.answer-table td:nth-child(3){min-width:230px}.answer-table td:nth-child(4){width:90px;min-width:84px}.answer-diagram-thumb{width:68px;height:50px}.answer-diagram-thumb img{max-width:64px;max-height:46px;}}
