@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#162543;background:#f6f8fc}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar-backdrop{display:none}.sidebar{background:#101e38;color:#d3def2;width:260px;flex:none;position:sticky;top:0;height:100vh;padding:29px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 43px;color:white;font:700 24px Outfit,sans-serif;letter-spacing:-.6px}.brandmark{display:grid;place-items:center;background:#f4b942;color:#12233d;border-radius:13px;width:42px;height:42px;font-size:25px}.brand small{display:block;font:500 10px 'DM Sans',sans-serif;letter-spacing:1px;text-transform:uppercase;color:#9dafc9}.sidebar nav{display:grid;gap:5px}.sidebar nav button{border:0;background:transparent;color:#afc0db;text-align:left;border-radius:10px;padding:13px 16px;font-size:17px;display:flex;align-items:center;gap:14px}.sidebar nav button span{font-size:14px;font-weight:600}.nav-unread-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:#d93025;color:#fff;font-size:11px;font-weight:800;line-height:1;vertical-align:middle}.nav-unread-badge[hidden]{display:none!important}.sidebar nav button:hover,.sidebar nav button.active{background:#263f63;color:white}.sidebar nav button.active{box-shadow:inset 3px 0 #f5bb46}.sidefoot{margin-top:auto;padding:20px 13px;border-top:1px solid #33425c;font-size:12px;line-height:1.8;color:#a8bad1}.sidefoot b{color:#f6bb44}main{min-width:0;flex:1}.top{height:82px;padding:0 clamp(20px,5vw,70px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8edf5;background:#fff}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#446caa}#account{display:flex;align-items:center;gap:10px}.solid,.outline{border-radius:9px;padding:11px 16px;font-size:13px;font-weight:800;border:1px solid #1e3971}.solid{color:white;background:#244785}.solid:hover{background:#17346a}.outline{background:white;color:#224580}.outline:hover{background:#eff5ff}#menu{display:none;border:0;background:none;font-size:24px}.page{padding:40px clamp(20px,5vw,70px);max-width:1450px;margin:auto;min-height:calc(100vh - 138px)}h1,h2,h3{font-family:Outfit,Arial,sans-serif;letter-spacing:-.03em;margin:0}h1{font-size:clamp(34px,4vw,56px);line-height:1.12}h2{font-size:27px}h3{font-size:19px}p{line-height:1.65;color:#63748b}.hero{border-radius:22px;background:linear-gradient(115deg,#142b53,#2d5994);color:white;padding:clamp(30px,5vw,58px);display:grid;grid-template-columns:1.4fr .6fr;gap:20px;overflow:hidden;position:relative}.hero:after{content:'✦';font-size:230px;color:#ffffff0d;position:absolute;right:7%;top:-55px}.hero .eyebrow{color:#f2c466}.hero p{color:#c8d8eb;max-width:550px}.hero strong{color:#f7c463}.hero button{background:#f4bc4d;color:#162a49;border:0;padding:13px 22px;border-radius:9px;font-weight:800}.hero-art{align-self:center;z-index:1;text-align:center;font-size:110px;filter:drop-shadow(0 12px 15px #101b3899)}.hero-learning-art{position:relative;width:min(560px,100%);height:365px;display:flex;justify-content:center;align-self:end;overflow:visible;filter:none}.hero-learning-art img{position:absolute;z-index:2;right:0;bottom:8px;display:block;width:148%;height:auto;max-height:490px;object-fit:contain;filter:drop-shadow(0 20px 22px #07162f77)}.hero-science{position:absolute;z-index:3;display:block;pointer-events:none}.hero-science svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:#56b9ff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px #168ad899)}.hero-science svg circle{fill:#0f315c}.hero-science svg text{fill:#77c7ff;stroke:none;font:700 18px Arial,sans-serif}.hero-atom{left:-9%;top:3%;width:94px;height:94px}.hero-triangle{left:-58%;top:47%;width:118px;height:105px}.hero-molecule{right:-9%;top:3%;width:86px;height:78px}.hero-equation{right:-13%;top:31%;color:#69c2ff;font:italic 700 31px Georgia,serif;transform:rotate(-11deg);text-shadow:0 0 12px #168ad899;white-space:nowrap}.hero-equation sup{font-size:.55em;position:relative;top:-.35em}.hero-spark{color:#ffc62f;text-shadow:0 0 14px #ffb300;font-size:42px;line-height:1}.hero-spark-one{left:-5%;top:34%}.hero-spark-two{right:11%;top:25%;font-size:34px}.hero-rays{right:-14%;top:56%;width:80px;height:74px}.hero-rays i{position:absolute;left:35px;top:31px;width:28px;height:4px;border-radius:9px;background:#ffc62f;box-shadow:0 0 10px #ffb300;transform-origin:-12px 2px}.hero-rays i:nth-child(1){transform:rotate(-52deg)}.hero-rays i:nth-child(2){transform:rotate(-17deg)}.hero-rays i:nth-child(3){transform:rotate(25deg)}.hero-rays i:nth-child(4){transform:rotate(62deg)}@media(max-width:1050px){.hero-learning-art{width:min(440px,100%);height:330px}.hero-learning-art img{right:0;bottom:2px;width:132%;max-height:430px}.hero-equation{right:-2%;font-size:26px}.hero-triangle{left:-2%;width:100px}.hero-atom{left:7%;width:80px;height:80px}.hero-molecule{right:0;width:72px;height:68px}}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:37px 0 18px}.section-heading p{margin:5px 0 0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card,.panel{background:#fff;border:1px solid #e4eaf3;border-radius:15px;padding:23px;box-shadow:0 4px 22px #172f5308}.card{cursor:pointer;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-3px);box-shadow:0 10px 28px #172f5315}.icon{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:#e8f1ff;color:#24528e;font-size:23px;margin-bottom:18px}.card:nth-child(2) .icon{background:#f9eefa;color:#8b4ea2}.card:nth-child(3) .icon{background:#fff2dc;color:#bb7925}.card:nth-child(4) .icon{background:#e5f7ec;color:#299766}.card p{font-size:13px;margin-bottom:0}.features{display:grid;grid-template-columns:2fr 1fr;gap:18px}.feature-list{display:grid;gap:10px}.mini{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #e9edf4;border-radius:11px;cursor:pointer}.mini:hover{background:#f8faff}.mini .icon{margin:0;flex:none}.mini b{display:block}.mini small,.muted{color:#718096;font-size:12px}.banner{background:#fef7e7;border:1px solid #f8eac9;border-radius:14px;padding:22px}.banner h3{margin-bottom:8px}.banner p{margin:0;font-size:13px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:28px 0 19px;flex-wrap:wrap}.pills{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #dce5f0;background:#fff;color:#3f5472;padding:9px 14px;border-radius:30px;font-size:12px;font-weight:700}.pill.active{background:#234783;border-color:#234783;color:#fff}.entries{display:grid;gap:13px}.entry{background:white;border:1px solid #e4eaf3;border-radius:14px;padding:22px}.entry h3{margin:8px 0}.entry p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.badge{display:inline-block;background:#eaf1fc;color:#315a91;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:800}.entry .meta{color:#8090a6;font-size:12px}.entry .actions{display:flex;gap:12px;margin-top:16px}.link{border:0;background:none;color:#26569a;font-weight:800;padding:8px 0}.link:hover{text-decoration:underline}.reply{border-top:1px solid #edf0f5;margin-top:12px;padding-top:12px}.reply p{margin:4px 0}.reply-form{display:flex;gap:8px;margin-top:12px}.reply-form input{flex:1}.empty{text-align:center;padding:50px 20px;background:#fff;border:1px dashed #cbd8e9;border-radius:15px;color:#66809d}.empty strong{display:block;color:#1e385e;font-size:18px;margin-bottom:8px}.problem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.problem{padding:24px}.problem h3{margin:15px 0}.problem form{display:flex;gap:9px}.problem input{flex:1;min-width:0}.feedback{font-size:13px;font-weight:700}.success{color:#188358}.error{color:#bb3d4c;font-size:13px}.tablewrap{overflow-x:auto;background:white;border:1px solid #e4eaf3;border-radius:15px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;padding:16px;border-bottom:1px solid #edf0f4;font-size:13px}th{color:#6b7c94;background:#f7f9fd;font-size:11px;text-transform:uppercase;letter-spacing:.7px}tr:last-child td{border:0}.rank{font-weight:800;color:#b9831e}.points{color:#22549b;font-weight:800}.table-note{font-size:13px;margin-top:13px}input,textarea,select{border:1px solid #d8e1eb;border-radius:8px;padding:11px 12px;background:#fff;color:#172d4d;outline:none}input:focus,textarea:focus,select:focus{border-color:#4384da;box-shadow:0 0 0 3px #4384da25}dialog{border:0;border-radius:18px;box-shadow:0 25px 80px #071b3a55;max-width:min(460px,calc(100vw - 24px));width:100%;padding:30px}dialog::backdrop{background:#08172ab3}dialog h2{margin:12px 0 6px}dialog p{margin:0 0 18px}dialog form>label{display:block;font-size:12px;font-weight:800;margin:12px 0}dialog label input,dialog label textarea,dialog label select{display:block;width:100%;margin-top:6px}.close{float:right;border:0;background:none;font-size:27px;color:#60728d}.full{width:100%}#authSwitch{display:block;margin:8px auto 0}footer{text-align:center;padding:20px;color:#8290a4;font-size:12px}.welcome{font-weight:700;color:#385278;font-size:13px}@media(max-width:1050px){.sidebar{width:76px}.brand{font-size:0;padding:0 0 40px;justify-content:center}.brand small,.sidebar nav button span,.sidefoot{display:none}.sidebar nav button{justify-content:center}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sidebar{position:fixed;z-index:20;width:260px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:19;background:rgba(7,22,43,.48);opacity:0;pointer-events:none;transition:opacity .2s}.sidebar.open+.sidebar-backdrop{opacity:1;pointer-events:auto}.sidebar .brand{font-size:24px;justify-content:start;padding:0 12px 35px}.sidebar .brand small,.sidebar nav button span,.sidebar .sidefoot{display:block}.sidebar nav button{justify-content:start}#menu{display:block;flex:none}.top{height:70px;padding:0 12px;gap:8px}.top>.eyebrow{display:none}#account{margin-left:auto;gap:7px;min-width:0}#account .outline,#account .solid{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;padding:9px 11px;font-size:12px}#signupBtn{max-width:170px}.page{padding:24px 17px}.hero{grid-template-columns:1fr}.hero-art{display:none}.features,.problem-grid{grid-template-columns:1fr}.grid{gap:10px}.card{padding:16px}.card h3{font-size:16px}.welcome{display:none}.section-heading{align-items:flex-start}.section-heading .solid{white-space:nowrap}.reply-form,.problem form{flex-wrap:wrap}.reply-form input,.problem input{flex-basis:100%}}

[hidden]{display:none!important}


.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px;align-items:start}.settings-panel{padding:26px}.settings-panel h2{margin:0 0 18px}.settings-panel form,.settings-panel label{display:grid;gap:9px}.settings-panel form{gap:18px}.settings-panel label{font-weight:700}.settings-panel input,.settings-panel select{width:100%;padding:13px;border:1px solid #cbd4e2;border-radius:9px;background:#fff;color:#162543;font:inherit}.settings-panel>label{margin-top:20px}.settings-panel p{color:#60718c}
html[data-theme="dark"]{color-scheme:dark;background:#111827;color:#e7edf7}html[data-theme="dark"] body,html[data-theme="dark"] main{background:#111827;color:#e7edf7}html[data-theme="dark"] .top,html[data-theme="dark"] footer,html[data-theme="dark"] .page,html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .entry,html[data-theme="dark"] .empty,html[data-theme="dark"] .tablewrap,html[data-theme="dark"] .problem,html[data-theme="dark"] dialog{background:#1d2a3e;color:#e7edf7}html[data-theme="dark"] .page h1,html[data-theme="dark"] .page h2,html[data-theme="dark"] .page h3,html[data-theme="dark"] .panel h2{color:#f5f7fc}html[data-theme="dark"] .page p,html[data-theme="dark"] .settings-panel p,html[data-theme="dark"] .meta,html[data-theme="dark"] .section-heading p{color:#c7d3e4}html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#172235;color:#f5f7fc;border-color:#60718c}html[data-theme="dark"] .outline,html[data-theme="dark"] .pill{background:#263750;color:#f5f7fc;border-color:#64758d}html[data-theme="dark"] .hero{background:#1b345b}
html[data-text-size="large"] .page,html[data-text-size="large"] .sidebar,html[data-text-size="large"] .top{font-size:18px}html[data-text-size="extra"] .page,html[data-text-size="extra"] .sidebar,html[data-text-size="extra"] .top{font-size:21px}html[data-text-size="large"] .page p,html[data-text-size="large"] .entry p{font-size:19px}html[data-text-size="extra"] .page p,html[data-text-size="extra"] .entry p{font-size:22px}

.avatar{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;object-fit:cover;background:#b48c36;color:#122541;font-weight:800}.avatar-large{width:88px;height:88px;font-size:32px}.photo-settings{display:flex;align-items:center;gap:20px;margin:8px 0 24px}.photo-settings>div{min-width:0;flex:1}.photo-settings input[type=file]{width:100%;font-size:13px}.photo-settings .link{padding:8px 0;text-align:left}.password-title{margin-top:30px!important;padding-top:22px;border-top:1px solid #cbd4e2}.member-search{display:flex!important;gap:8px!important;margin-bottom:18px}.member-search input{min-width:0;flex:1}.member-list{display:grid;gap:10px}.member-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid #d7dfeb;border-radius:12px;padding:13px}.member-row strong,.member-row small{display:block;overflow-wrap:anywhere}.member-row small{color:#64748b;margin-top:4px}.member-actions{display:flex;gap:8px;flex-wrap:wrap}.member-actions button{white-space:nowrap}.danger{color:#a91e32!important;border-color:#a91e32!important}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px}.pagination button{font-size:24px;min-width:46px}.pagination button:disabled{opacity:.4;cursor:not-allowed}html[data-theme=dark] .member-row{border-color:#556580}html[data-theme=dark] .member-row small{color:#bbc9dc}html[data-theme=dark] .password-title{border-color:#556580}@media(max-width:720px){.member-row{align-items:stretch;flex-direction:column}.member-actions button{flex:1}.photo-settings{align-items:flex-start}}

.problem-image{display:block;width:100%;max-height:480px;object-fit:contain;margin:12px 0 18px;border-radius:12px;background:#f5f7fb}

.problem form[data-attempt]{display:grid;gap:12px}.problem form[data-attempt] label,.custom-grade label{display:grid;gap:7px;font-weight:700}.problem form[data-attempt] textarea{width:100%;resize:vertical;font:inherit;padding:12px;border:1px solid #cbd4e2;border-radius:9px}.problem form[data-attempt] button{justify-self:start}.solution-card{padding:22px;margin-bottom:14px}.solution-card p{overflow-wrap:anywhere}.solution-working{white-space:pre-wrap}.solution-card .member-actions{margin:16px 0}.custom-grade{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.custom-grade input{padding:12px;width:170px}html[data-theme=dark] .problem form[data-attempt] textarea{background:#172235;color:#f5f7fc;border-color:#60718c}

.check-row{display:flex!important;align-items:center;gap:10px}.check-row input{width:auto!important;flex:none}.member-suggestions{display:grid;gap:4px;margin:-10px 0 18px}.member-suggestion{display:block;text-align:left;border:1px solid #d7dfeb;background:#fff;color:#162543;border-radius:9px;padding:10px;cursor:pointer}.member-suggestion strong,.member-suggestion span{display:block}.member-suggestion span{font-size:12px;color:#64748b}.member-suggestion:hover{border-color:#b48c36}.solution-image{display:block;width:100%;max-width:700px;max-height:600px;object-fit:contain;border-radius:12px;margin:12px 0}.problem form[data-attempt] input[type=file]{width:100%;max-width:100%}html[data-theme=dark] .member-suggestion{background:#172235;color:#f5f7fc;border-color:#60718c}html[data-theme=dark] .member-suggestion span{color:#bbc9dc}

.account-avatar-link{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:0;border-radius:50%;line-height:0}.account-avatar-link:hover{box-shadow:0 0 0 3px #4384da35}.account-avatar-link:focus-visible{outline:3px solid #4384da;outline-offset:3px}

.learning-intro{margin:26px 0 18px;background:linear-gradient(120deg,#eef5ff,#fffaf0)}.learning-intro h2,.resource-hero h2{margin-bottom:8px}.learning-intro p,.resource-hero p{margin:0}.dropdown-list{display:grid;gap:12px;max-width:900px}.learning-dropdown{background:#fff;border:1px solid #dce5f0;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px #172f5308}.learning-dropdown summary{list-style:none;display:flex;align-items:center;gap:13px;padding:18px 20px;font-weight:800;color:#203b64;cursor:pointer}.learning-dropdown summary::-webkit-details-marker{display:none}.learning-dropdown summary:hover{background:#f7faff}.strategy-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8f1ff;color:#24528e;flex:none}.dropdown-arrow{margin-left:auto;font-size:20px;transition:transform .18s}.learning-dropdown[open] .dropdown-arrow{transform:rotate(180deg)}.dropdown-content{padding:0 20px 19px 63px}.dropdown-content p{margin:0}.resource-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:26px 0 18px;background:linear-gradient(120deg,#fff8e8,#edf5ff)}.resource-hero .badge{margin-bottom:12px}.resource-icon{font-size:58px;color:#b48629}.coming-soon{display:inline-block;margin-top:10px;padding:6px 10px;border-radius:20px;background:#eef3fa;color:#60728d;font-size:12px;font-weight:800}html[data-theme=dark] .learning-intro,html[data-theme=dark] .resource-hero{background:#1c304f}html[data-theme=dark] .learning-dropdown{background:#152744;border-color:#405372}html[data-theme=dark] .learning-dropdown summary{color:#e4edfb}html[data-theme=dark] .learning-dropdown summary:hover{background:#203756}@media(max-width:700px){.dropdown-content{padding-left:20px}.resource-icon{display:none}}

.comment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}.comment-toolbar label{display:flex;align-items:center;gap:7px;font-size:12px;color:#64748b}.comment-toolbar select{padding:7px 9px}.top-reply-form{margin-bottom:18px}.comment-list{display:grid;gap:5px}.comment{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;margin-top:8px;margin-left:calc(min(var(--comment-depth),3) * 18px);border-left:2px solid #dce5f0;padding:8px 0 8px 10px}.comment-votes{display:flex;flex-direction:column;align-items:center;gap:2px}.comment-votes button{border:0;background:transparent;color:#8291a6;padding:2px;font-size:13px}.comment-votes button:hover,.comment-votes button.voted{color:#d07a20}.comment-votes button:last-child:hover,.comment-votes button:last-child.voted{color:#356cc4}.comment-score{font-size:12px;color:#344965}.comment-main{min-width:0}.comment-meta{font-size:12px;color:#78899f}.comment-body{margin:5px 0!important;white-space:pre-wrap;overflow-wrap:anywhere;color:#33465f!important}.comment-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.comment-actions .link{font-size:12px;padding:3px 0}.danger-text{color:#ae2e43!important}.comment-children{margin-top:4px}.comment-reply-slot .reply-form{margin:8px 0}.comment-deleted>.comment-main>.comment-body{color:#8996a8!important;font-style:italic}html[data-theme=dark] .comment{border-color:#445875}html[data-theme=dark] .comment-body{color:#d8e2f0!important}html[data-theme=dark] .comment-meta,html[data-theme=dark] .comment-toolbar label{color:#aebdd0}@media(max-width:700px){.comment{margin-left:calc(min(var(--comment-depth),2) * 10px)}.comment-toolbar{align-items:flex-start;flex-direction:column}.nested-reply-form .outline{display:inline-block!important}}

/* Polished Reddit-style comment controls */
.comment{display:block;padding:12px 0 12px 14px}.comment-main{width:100%}.comment-actions{gap:14px;margin-top:7px}.comment-vote-bar{display:inline-flex;align-items:center;gap:2px;background:#eef2f7;border-radius:999px;padding:2px;min-height:34px}.comment-vote-bar button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#607086;font-size:14px;padding:0}.comment-vote-bar button:hover{background:#dde5ef}.comment-vote-bar .upvote:hover,.comment-vote-bar .upvote.voted{background:#fff0e8;color:#d9480f}.comment-vote-bar .downvote:hover,.comment-vote-bar .downvote.voted{background:#e9edff;color:#4b5ed7}.comment-vote-bar .comment-score{min-width:24px;text-align:center;font-size:12px;color:#283b55}.comment-edit-form{margin:12px 0;padding:14px;background:#f7f9fc;border:1px solid #dce4ef;border-radius:12px}.comment-edit-form label{display:block;font-size:12px;font-weight:800;color:#344965}.comment-edit-form textarea{display:block;width:100%;margin-top:7px;resize:vertical}.edit-actions{display:flex;gap:8px;margin-top:10px}.comment-edit-form .error{margin:8px 0 0}html[data-theme=dark] .comment-vote-bar{background:#263a57}html[data-theme=dark] .comment-vote-bar button,html[data-theme=dark] .comment-vote-bar .comment-score{color:#d5deeb}html[data-theme=dark] .comment-edit-form{background:#1b2f4c;border-color:#405372}html[data-theme=dark] .comment-edit-form label{color:#e3ebf6}

.vote-icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.comment-vote-bar button.voted .vote-icon{fill:currentColor;stroke-width:1.5}

.shared-video{display:block;width:100%;max-width:760px;max-height:520px;margin:15px 0;border-radius:14px;background:#0b1220}.upload-or{text-align:center;color:#7b8ba0;font-size:12px;font-weight:800;margin:2px 0}#videoUploadField small{display:block;margin-top:6px;color:#718096;font-weight:500}


.strategy-poster-link{display:block;margin-top:18px;max-width:760px}.strategy-poster{display:block;width:100%;height:auto;border:1px solid #d9e3ee;border-radius:12px;background:#fff;box-shadow:0 8px 24px #17375e12;cursor:zoom-in}.strategy-poster:hover{border-color:#49bfd5;box-shadow:0 10px 30px #17375e20}@media(max-width:700px){.strategy-poster-link{margin-top:14px}.strategy-poster{border-radius:8px}}


.crop-dialog{max-width:min(520px,calc(100vw - 24px));padding:28px}.crop-dialog h2{margin-bottom:6px}.crop-dialog>p{color:#60718c}.crop-stage{width:min(360px,100%);aspect-ratio:1;margin:20px auto 18px;border-radius:16px;overflow:hidden;background:#0b1525;box-shadow:inset 0 0 0 1px #ffffff20}.crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.crop-stage canvas:active{cursor:grabbing}.crop-zoom-label{display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:14px!important;margin:0!important}.crop-zoom-label input{width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important}.crop-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.crop-actions button{min-width:112px}@media(max-width:520px){.crop-dialog{padding:22px 18px}.crop-stage{width:100%;margin-top:16px}.crop-actions button{flex:1;min-width:0}}html[data-theme=dark] .crop-dialog>p{color:#c7d3e4}


.card .icon:has(.subject-icon-image){padding:4px;overflow:hidden;background:#fff}.subject-icon-image{display:block;width:100%;height:100%;object-fit:contain;border-radius:5px}.physics-icon-image{transform:scale(1.22)}.chemistry-icon-image{transform:scale(1.1)}html[data-theme=dark] .card .icon:has(.subject-icon-image){background:#fff}


/* Keep the knowledge-sharing banner readable in dark mode */
html[data-theme=dark] .banner{background:#fff6df;color:#183253}html[data-theme=dark] .banner h3{color:#183253}html[data-theme=dark] .banner p{color:#536986}


/* Larger, clearer subject-card icons */
.card>.icon{width:64px;height:64px;font-size:34px;border-radius:14px}.card .icon:has(.subject-icon-image){padding:3px;background:#f7faff}.subject-icon-image,.physics-icon-image,.chemistry-icon-image{width:100%;height:100%;object-fit:contain;transform:none!important}.card:hover>.icon{transform:translateY(-2px) scale(1.04);transition:transform .18s ease}@media(max-width:700px){.card>.icon{width:58px;height:58px;font-size:31px}}html[data-theme=dark] .card .icon:has(.subject-icon-image){background:#f7faff}


/* Maths equation editor */
.math-editor{margin:8px 0 14px;padding:12px;border:1px solid var(--line,#d4dbe5);border-radius:12px;background:color-mix(in srgb,var(--panel,#fff) 94%,#173761 6%);font-weight:400}
.math-editor-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:9px;color:var(--ink,#10213d)}
.math-editor-heading span{font-size:.76rem;color:var(--muted,#64748b)}
.math-editor-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px}
.math-wrap-button,.math-symbol-button{border:1px solid var(--line,#cbd5e1);background:var(--panel,#fff);color:var(--ink,#10213d);border-radius:8px;cursor:pointer;font:inherit}
.math-wrap-button{padding:7px 10px;font-size:.78rem;font-weight:700}
.math-symbols{display:flex;flex-direction:column;gap:5px}
.math-symbol-group{border-top:1px solid var(--line,#dbe2ea);padding-top:5px}
.math-symbol-group summary{cursor:pointer;font-size:.79rem;font-weight:800;color:var(--blue,#173b69);padding:4px 0}
.math-symbol-group>div{display:flex;flex-wrap:wrap;gap:5px;padding:4px 0 7px}
.math-symbol-button{min-width:38px;min-height:34px;padding:5px 8px;font-family:Georgia,'Times New Roman',serif;font-size:1rem}
.math-wrap-button:hover,.math-symbol-button:hover{background:#e7eef8;border-color:#7590b2}
.math-live-preview{min-height:48px;margin-top:9px;padding:10px;border:1px dashed var(--line,#cbd5e1);border-radius:9px;background:var(--bg,#f7f9fc);overflow-x:auto;color:var(--ink,#10213d)}
.math-preview-placeholder{font-size:.8rem;color:var(--muted,#64748b)}
.math-preview-content{white-space:pre-wrap;overflow-wrap:anywhere}
mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
@media(max-width:700px){
  .math-editor{padding:10px}
  .math-editor-heading{display:block}
  .math-editor-heading span{display:block;margin-top:3px}
  .math-symbol-button{min-width:42px;min-height:38px}
}


.latex-rendered{display:inline;font-family:Cambria Math,'Times New Roman',serif;font-size:1.08em;line-height:1.7}
.latex-display{display:block;text-align:center;margin:.45em 0;overflow-x:auto;font-size:1.15em}
.latex-frac{display:inline-flex;vertical-align:middle;flex-direction:column;text-align:center;line-height:1.05;margin:0 .16em}
.latex-frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 .18em .08em}
.latex-frac>span:last-child{padding:.08em .18em 0}
.latex-root{display:inline-flex;align-items:flex-start;vertical-align:middle}
.latex-root>.latex-radical{font-size:1.25em;line-height:1}
.latex-radicand{border-top:1.5px solid currentColor;padding:0 .12em}
.latex-root>sup{font-size:.55em;margin-right:-.12em}
.latex-overline{border-top:1.5px solid currentColor}
.latex-vector::after,.latex-arrow::after{content:'→';position:absolute;left:0;right:0;top:-.85em;text-align:center;font-size:.75em}
.latex-vector,.latex-arrow{position:relative;display:inline-block}
.latex-mathbf{font-weight:700}.latex-mathrm,.latex-text{font-family:inherit;font-style:normal}
.latex-mathbb{font-weight:600}.latex-operator{font-style:normal;margin-right:.15em}
.latex-matrix{display:inline-flex;align-items:center;vertical-align:middle;gap:.12em}
.latex-matrix>span{font-size:2em;font-weight:300}
.latex-matrix table{border-collapse:collapse;display:inline-table;width:auto}
.latex-matrix td{padding:.08em .28em;text-align:center;border:0}


.math-eye-toggle{display:flex!important;visibility:visible!important;opacity:1!important;width:max-content;align-items:center;gap:8px;margin:8px 0 6px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--blue);font:inherit;font-size:.78rem;font-weight:800;line-height:1.2;cursor:pointer;position:relative;z-index:1}.math-eye-label{display:inline!important;visibility:visible!important;opacity:1!important;white-space:nowrap}
.math-eye-toggle.active{background:var(--blue);color:#fff}
.math-eye-icon{position:relative;display:inline-block;width:16px;height:10px;border:2px solid currentColor;border-radius:75% 25% 75% 25%;transform:rotate(45deg);box-sizing:border-box}
.math-eye-pupil{display:none;position:absolute;width:5px;height:5px;border-radius:50%;background:currentColor;left:50%;top:50%;transform:translate(-50%,-50%)}
.math-eye-toggle.active .math-eye-pupil{display:block}
.math-editor[hidden]{display:none!important}
.reply-image-field{font-size:.78rem;min-width:190px}
.reply-image-field input{margin-top:4px}
.comment-image-link{display:block;width:max-content;max-width:100%;margin:8px 0}
.comment-image{display:block;max-width:min(420px,100%);max-height:360px;object-fit:contain;border-radius:10px;border:1px solid var(--line)}
.problem{position:relative;padding-top:86px}.problem>.badge{position:absolute;left:30px;top:30px;margin:0}.problem>h3{clear:both;margin-top:0}
.problem-menu{position:absolute;right:22px;top:20px;z-index:20}
.problem-menu-button{width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:1.65rem;line-height:1;cursor:pointer}
.problem-menu-button:hover,.problem-menu-button[aria-expanded="true"]{background:var(--soft)}
.problem-menu-list{position:absolute;right:0;top:42px;min-width:150px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px #0b173055;z-index:30}.problem-menu:has(.problem-menu-list:not([hidden]))~h3{margin-top:100px}
.problem-menu-list[hidden]{display:none}
.problem-menu-list button{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:transparent;text-align:left;font:inherit;font-weight:700;cursor:pointer;color:var(--ink)}
.problem-menu-list button:hover{background:var(--soft)}
.problem-menu-list .danger-text{color:#a52b2b}


/* Consistent interactive feedback for every button */
button:not(:disabled),input[type="button"]:not(:disabled),input[type="submit"]:not(:disabled),input[type="reset"]:not(:disabled){
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
  transform-origin:center;
}
button:not(:disabled):hover,input[type="button"]:not(:disabled):hover,input[type="submit"]:not(:disabled):hover,input[type="reset"]:not(:disabled):hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
  box-shadow:0 8px 18px #10213d24;
}
button:not(:disabled):active,input[type="button"]:not(:disabled):active,input[type="submit"]:not(:disabled):active,input[type="reset"]:not(:disabled):active{
  transform:translateY(1px) scale(.97);
  box-shadow:0 2px 7px #10213d24;
  transition-duration:.07s;
}
button:focus-visible,input[type="button"]:focus-visible,input[type="submit"]:focus-visible,input[type="reset"]:focus-visible{
  outline:3px solid #69bfff;
  outline-offset:3px;
}
.hero button:not(:disabled):hover{
  transform:translateY(-3px) scale(1.025);
  box-shadow:0 12px 28px #f4bc4d55;
}
.hero button:not(:disabled):active{transform:translateY(1px) scale(.97)}
.sidebar nav button:not(:disabled):hover{transform:translateX(4px);box-shadow:none}
.sidebar nav button:not(:disabled):active{transform:translateX(2px) scale(.98)}
.comment-votes button:not(:disabled):hover,.comment-vote-bar button:not(:disabled):hover,.problem-menu-button:not(:disabled):hover{
  transform:scale(1.13);
  box-shadow:none;
}
@media(prefers-reduced-motion:reduce){
  button,input[type="button"],input[type="submit"],input[type="reset"]{transition:none!important}
  button:hover,button:active,input[type="button"]:hover,input[type="button"]:active,input[type="submit"]:hover,input[type="submit"]:active,input[type="reset"]:hover,input[type="reset"]:active{transform:none!important}
}

/* Nunyanya logo */
.brand{display:block;padding:0 8px 30px}.brand-logo{display:block;width:100%;height:auto;max-height:58px;object-fit:contain}.brand-tagline{display:block;margin-top:8px;text-align:center;font:600 9px 'DM Sans',Arial,sans-serif;letter-spacing:1.4px;text-transform:uppercase;color:#9dafc9}@media(max-width:1050px) and (min-width:701px){.brand{padding:0 4px 30px}.brand-logo{width:60px;max-width:none;transform:translateX(-1px)}.brand-tagline{display:none}}@media(max-width:700px){.sidebar .brand{display:block;padding:0 8px 28px}.sidebar .brand-logo{width:100%;max-height:58px}.sidebar .brand-tagline{display:block}}

/* College experience */
html[data-student-level="college"]{--college-navy:#071d36;--college-gold:#f2b93b}
html[data-student-level="college"] .sidebar{background:linear-gradient(180deg,#061b32,#092a49)}
html[data-student-level="college"] .hero{background:linear-gradient(110deg,#061c35 0%,#0b3152 62%,#10283d 100%);border-radius:14px;box-shadow:0 18px 50px #071d3620}
html[data-student-level="college"] .hero .eyebrow{color:#f2b93b;letter-spacing:4px}
html[data-student-level="college"] .hero strong{color:#f2b93b}
html[data-student-level="college"] .hero button{background:#f2b93b;color:#071d36}
html[data-student-level="college"] .card{border-radius:12px}
html[data-student-level="college"] .grid .card:nth-child(5){background:linear-gradient(135deg,#f7f1f1,#fff);border-color:#ead9dc}
html[data-student-level="college"] .grid .card:nth-child(5) .icon{background:#f5e4e8;color:#8d2e45}
html[data-student-level="college"] .section-heading h2{font-family:Georgia,'Times New Roman',serif;color:#071d36}

/* Dedicated college dashboard */
.college-page{max-width:1500px;margin:0 auto}.college-hero{min-height:390px;display:grid;grid-template-columns:44% 56%;overflow:hidden;border-radius:12px;background:linear-gradient(115deg,#061a31,#082743 62%,#071a2b);color:white;box-shadow:0 14px 34px #071d361c}.college-copy{padding:42px 20px 24px 44px;z-index:2}.college-copy .eyebrow{color:#f4bd43;font-size:12px;font-weight:800;letter-spacing:5px}.college-copy h1{font-family:Georgia,serif;font-size:52px;line-height:1.02;margin:15px 0;color:#fff}.college-copy h1 strong{color:#f4bd43}.college-copy>p{font-size:17px;line-height:1.45;max-width:590px;color:#e9eef5}.college-copy>button{margin-top:18px;border:0;border-radius:10px;background:#f3bd3e;color:#071d36;font-weight:800;font-size:15px;padding:15px 24px}.college-copy>button span{margin-left:22px;font-size:20px}.college-benefits{display:flex;gap:26px;margin-top:28px}.college-benefits>span{display:grid;grid-template-columns:auto auto;color:#f4bd43;font-size:24px;column-gap:8px}.college-benefits b{color:#fff;font-size:12px}.college-benefits small{grid-column:2;color:#d7e0ea;font-size:11px}.college-hero-art{position:relative;overflow:hidden;background:radial-gradient(circle at 65% 42%,#365164 0,#102c43 38%,transparent 65%)}.college-hero-art>img{position:absolute;right:11%;bottom:-3%;height:94%;max-width:75%;object-fit:contain;filter:drop-shadow(0 15px 15px #0008)}.college-map{position:absolute;left:12%;top:10%;font-size:100px;color:#d6a73d66}.college-atom{position:absolute;right:8%;top:8%;font-size:90px;color:#d9b05a66}.college-hero-art em{position:absolute;right:3%;top:40%;font-family:cursive;font-size:20px;line-height:1.2;color:#f6c74e;transform:rotate(-7deg)}.college-books{position:absolute;right:15%;bottom:8%;width:245px;display:flex;flex-direction:column;gap:3px;z-index:4;transform:rotate(1deg)}.college-books span{display:block;background:linear-gradient(#183d5c,#0b2942);border:2px solid #b28b35;border-radius:3px;padding:7px 12px;color:#f3c451;font:800 13px Georgia;text-align:center;box-shadow:0 3px 5px #0008}.college-books .medicine-book{background:linear-gradient(#7f244b,#4d1230);color:#fff;border-color:#d69a3a;margin-left:10px}.college-subject-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:16px}.college-subject{position:relative;min-height:185px;border-radius:12px;padding:14px 14px 18px;background:#edf5ff;border:1px solid #e4e9ef;overflow:hidden}.college-subject:nth-child(2){background:#fff6df}.college-subject:nth-child(3){background:#fff0ee}.college-subject:nth-child(4){background:#eef7e9}.college-subject:nth-child(5){background:#f5efff}.college-subject-visual{height:76px;font-size:50px;display:flex;align-items:center;justify-content:center}.college-subject-visual img{max-height:70px;max-width:110px}.college-subject h3{font:700 22px Georgia;color:#071d36;margin:4px 0}.college-subject p{font-size:13px;line-height:1.35;color:#58708b;padding-right:30px;margin:0}.college-subject>button{position:absolute;right:12px;bottom:13px;width:38px;height:38px;border:0;border-radius:50%;background:#23609a;color:white;font-size:21px}.college-subject:nth-child(2)>button{background:#d69e25}.college-subject:nth-child(3)>button{background:#bd463f}.college-subject:nth-child(4)>button{background:#3e7b2b}.college-subject:nth-child(5)>button{background:#7546b6}.college-shortcuts-title{display:flex;justify-content:space-between;align-items:center;margin:18px 4px 10px}.college-shortcuts-title h2{font:700 26px Georgia;color:#071d36;margin:0;border-bottom:4px solid #efb93c;padding-bottom:5px}.college-shortcuts-title button{border:0;background:none;font-weight:700;color:#071d36}.college-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.college-shortcuts article{display:grid;grid-template-columns:58px 1fr 30px;align-items:center;gap:12px;padding:16px;border-radius:12px;background:#f0f2ff;cursor:pointer}.college-shortcuts article:nth-child(2){background:#fff7e8}.college-shortcuts article:nth-child(3){background:#eef8ed}.college-shortcuts article>span{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#cfd5ff;font-size:25px}.college-shortcuts article:nth-child(2)>span{background:#ffdb75}.college-shortcuts article:nth-child(3)>span{background:#c9e8c3}.college-shortcuts h3{font:700 18px Georgia;color:#071d36;margin:0 0 3px}.college-shortcuts p{font-size:12px;color:#5d7085;margin:0}.college-shortcuts b{font-size:22px}
@media(max-width:1050px){.college-hero{grid-template-columns:1fr}.college-hero-art{min-height:300px}.college-subject-grid{grid-template-columns:repeat(3,1fr)}.college-shortcuts{grid-template-columns:1fr}.college-copy h1{font-size:44px}}
@media(max-width:700px){.college-copy{padding:30px 24px}.college-copy h1{font-size:38px}.college-benefits{display:none}.college-hero-art{min-height:250px}.college-books{width:180px}.college-hero-art em{display:none}.college-subject-grid{grid-template-columns:1fr 1fr}.college-subject{min-height:170px}.college-subject-grid .college-subject:last-child{grid-column:1/-1}.college-shortcuts-title h2{font-size:22px}}

/* Premium signup */

/* ===== Nunyanya signup / login ===== */
dialog#authDialog.auth-dialog{
  width:min(1120px,calc(100vw - 32px));
  max-width:none;
  height:min(900px,calc(100vh - 32px));
  max-height:none;
  margin:auto;
  padding:0;
  border:0;
  border-radius:28px;
  overflow:hidden;
  background:transparent;
  box-shadow:0 34px 100px rgba(4,22,47,.42);
}
#authDialog::backdrop{
  background:rgba(7,25,46,.72);
  backdrop-filter:blur(6px);
}
#authDialog .auth-shell{
  position:relative;
  display:grid;
  grid-template-columns:minmax(360px,40%) minmax(0,60%);
  width:100%;
  height:100%;
  min-width:0;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#fff;
}
#authDialog .auth-close{
  position:absolute;
  top:18px;
  right:20px;
  z-index:50;
  width:42px;
  height:42px;
  padding:0;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#0d2748;
  font-size:31px;
  line-height:1;
  box-shadow:0 5px 20px rgba(10,35,67,.12);
}
#authDialog .auth-left{
  position:relative;
  min-width:0;
  min-height:0;
  height:100%;
  padding:40px 38px 32px;
  color:#fff;
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 28%,rgba(26,114,166,.58),transparent 27%),
    radial-gradient(circle at 65% 62%,rgba(26,111,160,.22),transparent 31%),
    linear-gradient(180deg,#073d72 0%,#07335d 40%,#04182f 100%);
}
#authDialog .auth-left:after{
  content:"";
  position:absolute;
  width:340px;
  height:340px;
  right:-210px;
  top:365px;
  border:2px solid rgba(246,189,67,.42);
  border-radius:50%;
  box-shadow:0 0 45px rgba(246,189,67,.14);
}
#authDialog .auth-brand img{
  display:block;
  width:100%;
  max-width:315px;
  height:auto;
  max-height:72px;
  object-fit:contain;
  margin:0 auto;
}
#authDialog .auth-brand span{
  display:block;
  margin-top:8px;
  text-align:center;
  color:#f4bd43;
  font-size:10px;
  font-weight:900;
  letter-spacing:5px;
}
#authDialog .auth-left h2{
  margin:30px 0 14px;
  color:#fff;
  font:700 35px/1.12 Georgia,'Times New Roman',serif;
  letter-spacing:-.02em;
}
#authDialog .auth-left h2 strong{
  color:#f4bd43;
  font-size:46px;
}
#authDialog .auth-left-sub{
  max-width:330px;
  margin:0;
  color:#dce9f5;
  font-size:16px;
  line-height:1.55;
}
#authDialog .auth-benefits{
  position:relative;
  z-index:2;
  list-style:none;
  padding:0;
  margin:28px 0 0;
  display:grid;
  gap:18px;
}
#authDialog .auth-benefits li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  color:#edf5ff;
  font-size:14px;
  line-height:1.35;
}
#authDialog .auth-benefits b{
  flex:none;
  width:36px;
  color:#f6bd39;
  font-size:27px;
  line-height:1;
  text-align:center;
}
#authDialog .auth-doodle{
  position:absolute;
  z-index:1;
  color:rgba(247,190,58,.42);
  pointer-events:none;
}
#authDialog .auth-doodle-atom{right:25px;top:465px;font-size:58px}
#authDialog .auth-doodle-bulb{right:47px;top:590px;font-size:52px;transform:rotate(-10deg)}
#authDialog .auth-doodle-map{right:55px;bottom:70px;font-size:70px}
#authDialog .auth-books{
  position:absolute;
  left:34px;
  right:24px;
  bottom:22px;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
#authDialog .auth-books .book{
  display:block;
  width:238px;
  padding:7px 12px;
  margin-top:3px;
  border:2px solid #b88b2d;
  border-radius:4px;
  background:linear-gradient(180deg,#124f7b,#092f4f);
  color:#f4c454;
  font:800 13px Georgia,'Times New Roman',serif;
  text-align:center;
  box-shadow:0 4px 10px rgba(0,0,0,.28);
  transform:rotate(-1deg);
}
#authDialog .auth-books .book.med{
  margin-left:8px;
  background:linear-gradient(180deg,#8f244b,#56142f);
  color:#fff;
}
#authDialog .auth-cap{
  position:absolute;
  left:30px;
  bottom:179px;
  color:#0b2649;
  font-size:72px;
  text-shadow:0 2px 0 #e2ad2f;
  transform:rotate(-8deg);
}
#authDialog .auth-books em{
  position:absolute;
  right:0;
  bottom:18px;
  color:#f5c248;
  font:19px/1.1 cursive;
  transform:rotate(-8deg);
}
#authDialog .auth-right{
  min-width:0;
  height:100%;
  padding:38px 38px 28px;
  overflow-y:auto;
  overflow-x:hidden;
  background:#fff;
}
#authDialog .auth-eyebrow{
  margin-right:52px;
  color:#2f70d3;
  font-size:12px;
  font-weight:900;
  letter-spacing:4px;
  text-transform:uppercase;
}
#authDialog .auth-right>h2{
  margin:10px 56px 8px 0;
  color:#0a2348;
  font:700 51px/.98 Georgia,'Times New Roman',serif;
  letter-spacing:-.03em;
  text-align:left;
}
#authDialog .auth-sub{
  margin:0 0 14px;
  color:#657b97;
  font-size:17px;
  line-height:1.45;
  text-align:left;
}
#authDialog .signup-progress{
  position:relative;
  height:62px;
  margin:12px 58px 18px;
  display:flex;
  justify-content:space-between;
}
#authDialog .signup-progress-line{
  position:absolute;
  top:18px;
  left:28px;
  right:28px;
  height:2px;
  background:#d5dfeb;
}
#authDialog .signup-progress>span{
  position:relative;
  z-index:1;
  text-align:center;
  color:#7a8da5;
}
#authDialog .signup-progress b{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin:0 auto 6px;
  border:2px solid #cad6e6;
  border-radius:50%;
  background:#fff;
  color:#74869c;
  font-size:14px;
}
#authDialog .signup-progress .active b{
  border-color:#1f73e3;
  background:#1f73e3;
  color:#fff;
}
#authDialog .signup-progress small{
  display:block;
  color:#526985;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}
#authDialog .student-level-title{
  margin:2px 0 12px;
  color:#0a2348;
  font:700 24px Georgia,'Times New Roman',serif;
  text-align:left;
}
#authDialog .student-type-cards{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  width:100%;
  min-width:0;
  margin:0 0 14px;
}
#authDialog .student-type-card{
  position:relative;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:245px;
  padding:16px 14px 14px;
  border:2px solid #dce5ef;
  border-radius:17px;
  background:#fbfdff;
  text-align:center;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
#authDialog .student-type-card:hover{transform:translateY(-2px)}
#authDialog .student-type-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
#authDialog .student-type-icon{
  display:grid;
  place-items:center;
  width:132px;
  height:92px;
  margin-bottom:5px;
}
#authDialog .student-type-icon img{
  display:block;
  width:128px;
  height:92px;
  object-fit:contain;
}
#authDialog .student-type-card strong{
  display:block;
  margin:5px 0 7px;
  color:#0b2852;
  font:700 22px/1.02 Georgia,'Times New Roman',serif;
}
#authDialog .student-type-card small{
  color:#5d7591;
  font-size:13px;
  line-height:1.35;
}
#authDialog .student-type-card i{
  width:22px;
  height:22px;
  margin-top:12px;
  border:2px solid #b8c7d8;
  border-radius:50%;
  background:#fff;
}
#authDialog .student-type-card:has(input:checked) i{border:6px solid #1f73e3}
#authDialog .high-school-card:has(input:checked){
  border-color:#b9d5f4;
  background:linear-gradient(180deg,#f7fbff,#edf6ff);
  box-shadow:0 10px 28px rgba(31,115,227,.12);
}
#authDialog .college-card:has(input:checked){
  border-color:#efb21c;
  background:linear-gradient(180deg,#fffdf8,#fff7df);
  box-shadow:0 10px 28px rgba(239,178,28,.14);
}
#authDialog .signup-fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px 16px;
  width:100%;
  min-width:0;
}
#authDialog .signup-fields label,
#authDialog .auth-block{
  display:block;
  min-width:0;
  margin:0;
  color:#182a40;
  font-size:13px;
  font-weight:700;
}
#authDialog .signup-fields .full-field{grid-column:1/-1}
#authDialog .field-title{
  display:block;
  margin-bottom:6px;
  color:#153d6d;
  font-size:13px;
  font-weight:800;
}
#authDialog input,
#authDialog select{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  min-height:50px;
  margin:0;
  padding:0 14px;
  border:1px solid #d2deeb;
  border-radius:12px;
  background:#fff;
  color:#17304e;
  font-size:15px;
  outline:none;
}
#authDialog input:focus,
#authDialog select:focus{
  border-color:#2a73d7;
  box-shadow:0 0 0 3px rgba(42,115,215,.12);
}
#authDialog .auth-block{margin-top:10px}
#authDialog .auth-cta{
  width:100%;
  min-height:58px;
  margin-top:14px;
  padding:0 18px;
  border:0;
  border-radius:13px;
  background:linear-gradient(180deg,#ffca27,#f0ae12);
  color:#082143;
  font-size:18px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(240,174,18,.24);
}
#authDialog .auth-cta:hover{background:linear-gradient(180deg,#ffd142,#f3b71f)}
#authDialog .auth-link{
  display:block;
  margin:14px auto 0;
  padding:4px 0;
  border:0;
  background:none;
  color:#234f91;
  font-size:15px;
  font-weight:800;
}
#authDialog .error{margin:8px 0 0}
#authDialog .signup-showcase[hidden]{display:none!important}

/* Login mode */
dialog#authDialog.login-mode{
  width:min(520px,calc(100vw - 28px));
  height:auto;
  max-height:90vh;
}
#authDialog.login-mode .auth-shell{display:block;height:auto;overflow:visible}
#authDialog.login-mode .auth-right{
  height:auto;
  max-height:90vh;
  padding:44px 38px 32px;
}
#authDialog.login-mode .auth-right>h2{font-size:40px}
#authDialog.login-mode .auth-eyebrow,
#authDialog.login-mode .auth-right>h2,
#authDialog.login-mode .auth-sub{text-align:center;margin-right:0}

/* Short desktop/laptop screens */
@media(min-width:901px) and (max-height:830px){
  dialog#authDialog.auth-dialog{height:calc(100vh - 24px)}
  #authDialog .auth-left{padding-top:28px}
  #authDialog .auth-left h2{margin-top:18px;font-size:30px}
  #authDialog .auth-left h2 strong{font-size:39px}
  #authDialog .auth-left-sub{font-size:14px}
  #authDialog .auth-benefits{gap:11px;margin-top:15px}
  #authDialog .auth-benefits li{font-size:12px}
  #authDialog .auth-books{bottom:14px}
  #authDialog .auth-books .book{padding:5px 10px}
  #authDialog .auth-right{padding-top:24px}
  #authDialog .auth-right>h2{font-size:42px}
  #authDialog .auth-sub{font-size:15px}
  #authDialog .signup-progress{margin-top:8px;margin-bottom:10px}
  #authDialog .student-type-card{min-height:200px;padding-top:10px}
  #authDialog .student-type-icon{height:72px}
  #authDialog .student-type-icon img{width:106px;height:74px}
  #authDialog .student-type-card strong{font-size:19px}
  #authDialog input,#authDialog select{min-height:44px}
  #authDialog .auth-block{margin-top:8px}
  #authDialog .auth-cta{min-height:50px;margin-top:10px}
}

/* Tablet and mobile */
@media(max-width:900px){
  dialog#authDialog.auth-dialog{
    width:min(620px,calc(100vw - 24px));
    height:auto;
    max-height:94vh;
  }
  #authDialog .auth-shell{display:block;height:auto;overflow:visible}
  #authDialog .auth-left{display:none!important}
  #authDialog .auth-right{
    height:auto;
    max-height:94vh;
    padding:34px 24px 28px;
    overflow-y:auto;
  }
  #authDialog .auth-eyebrow,
  #authDialog .auth-right>h2,
  #authDialog .auth-sub{text-align:center;margin-right:0}
  #authDialog .auth-right>h2{font-size:40px}
  #authDialog .signup-progress{margin-left:24px;margin-right:24px}
}
@media(max-width:520px){
  dialog#authDialog.auth-dialog{width:calc(100vw - 16px)}
  #authDialog .auth-right{padding:30px 16px 24px}
  #authDialog .auth-right>h2{font-size:34px}
  #authDialog .student-type-cards{grid-template-columns:1fr 1fr;gap:8px}
  #authDialog .student-type-card{min-height:190px;padding:10px 8px}
  #authDialog .student-type-icon{width:100px;height:70px}
  #authDialog .student-type-icon img{width:96px;height:68px}
  #authDialog .student-type-card strong{font-size:17px}
  #authDialog .student-type-card small{font-size:10px}
  #authDialog .signup-fields{grid-template-columns:1fr}
  #authDialog .signup-fields .full-field{grid-column:auto}
  #authDialog .signup-progress{margin-left:8px;margin-right:8px}
}

/* Signup approved books illustration */
#authDialog .auth-books-scene{
  position:absolute;
  left:12px;
  right:8px;
  bottom:0;
  z-index:3;
  height:300px;
  pointer-events:none;
  overflow:visible;
}
#authDialog .auth-books-scene:before{
  content:"";
  position:absolute;
  left:-12px;
  right:-8px;
  bottom:0;
  height:210px;
  background:
    radial-gradient(circle at 35% 55%,rgba(255,186,70,.26),transparent 36%),
    linear-gradient(0deg,rgba(2,15,31,.72),rgba(2,15,31,0));
  z-index:-1;
}
#authDialog .auth-books-scene img{
  position:absolute;
  left:0;
  bottom:-3px;
  width:100%;
  height:300px;
  object-fit:contain;
  object-position:left bottom;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.26));
}
#authDialog .auth-books-scene em{
  position:absolute;
  right:6px;
  bottom:20px;
  z-index:2;
  color:#f8c642;
  font:20px/1.03 "Comic Sans MS","Brush Script MT",cursive;
  transform:rotate(-8deg);
  text-shadow:0 3px 10px rgba(0,0,0,.28);
}
#authDialog .auth-doodle-atom{right:30px;top:455px;font-size:54px;opacity:.72}
#authDialog .auth-doodle-bulb{display:none}
#authDialog .auth-doodle-map{display:none}
@media(min-width:901px) and (max-height:830px){
  #authDialog .auth-books-scene{height:235px}
  #authDialog .auth-books-scene img{height:238px}
  #authDialog .auth-books-scene em{font-size:17px;bottom:15px}
}

/* Use the approved generated books artwork */
#authDialog .auth-books-scene{
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:330px!important;
  overflow:hidden!important;
  border-radius:0 0 0 28px;
}
#authDialog .auth-books-scene:before{display:none!important}
#authDialog .auth-books-scene img{
  left:0!important;
  bottom:0!important;
  width:100%!important;
  height:330px!important;
  object-fit:cover!important;
  object-position:center 62%!important;
  filter:none!important;
}
#authDialog .auth-books-scene em{display:none!important}
@media(min-width:901px) and (max-height:830px){
  #authDialog .auth-books-scene{height:250px!important}
  #authDialog .auth-books-scene img{height:250px!important;object-position:center 60%!important}
}


/* Approved full signup showcase artwork */
#authDialog .signup-showcase{
  padding:0!important;
  background:#051d3b!important;
  overflow:hidden!important;
}
#authDialog .signup-showcase:after{
  display:none!important;
}
#authDialog .signup-showcase-art{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#051d3b;
}
#authDialog .signup-showcase-art img{
  display:block;
  width:100%;
  object-fit:fill;
}
#authDialog .signup-showcase-art img:nth-child(-n+6){
  height:12.555556%;
}
#authDialog .signup-showcase-art img:nth-child(n+7){
  height:12.333333%;
}


/* Global admin High School / College dashboard switch */
.admin-context-switch{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #d4deec;border-radius:12px;background:#f4f7fb;box-shadow:0 2px 8px rgba(21,43,79,.06)}
.admin-context-switch span{padding:0 7px;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#687b96}
.admin-context-switch button{border:0;border-radius:8px;padding:9px 12px;background:transparent;color:#355477;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .18s ease,color .18s ease,transform .12s ease,box-shadow .18s ease}
.admin-context-switch button:hover:not(:disabled){background:#e3ebf7;color:#173d76;transform:translateY(-1px)}
.admin-context-switch button:active:not(:disabled){transform:translateY(1px)}
.admin-context-switch button.active{background:#244f91;color:#fff;box-shadow:0 3px 9px rgba(36,79,145,.25)}
.admin-context-switch button:disabled{cursor:wait;opacity:.65}
html[data-theme="dark"] .admin-context-switch{background:#17253a;border-color:#41536d}
html[data-theme="dark"] .admin-context-switch span{color:#aebbd0}
html[data-theme="dark"] .admin-context-switch button{color:#d9e5f6}
html[data-theme="dark"] .admin-context-switch button:hover:not(:disabled){background:#293d59}
html[data-theme="dark"] .admin-context-switch button.active{background:#3f71b9;color:#fff}
@media(max-width:900px){.admin-context-switch span{display:none}.admin-context-switch button{padding:8px 9px;font-size:11px}}
@media(max-width:700px){#account{gap:6px}.admin-context-switch{position:absolute;left:58px}.admin-context-switch button{padding:7px 8px}.account-avatar-link{margin-left:auto}}


/* Exact uploaded High School dashboard hero */
.high-school-hero-exact{position:relative;width:100%;aspect-ratio:1760/894;border-radius:22px;overflow:hidden;background:#173965;box-shadow:0 12px 30px rgba(15,37,72,.12)}
.high-school-hero-exact img{display:block;width:100%;height:100%;object-fit:cover}
.high-school-hero-exact .hero-cta-button{left:5.2%;top:51.7%;width:31.1%;height:11.2%}
@media(max-width:700px){.high-school-hero-exact{border-radius:14px}}


/* Generated College dashboard hero with Medicine book */
.college-hero-exact{position:relative;width:100%;aspect-ratio:2172/724;border-radius:16px;overflow:hidden;background:#071e33;box-shadow:0 12px 30px rgba(7,30,51,.16);margin-bottom:16px}
.college-hero-exact img{display:block;width:100%;height:100%;object-fit:cover}
.college-hero-exact .hero-cta-button{left:4.2%;top:66.5%;width:23.2%;height:12.2%}
@media(max-width:700px){.college-hero-exact{border-radius:12px}}


/* College dashboard interaction polish */
.college-subject p{padding-right:0}
.college-shortcuts article{grid-template-columns:58px minmax(0,1fr)}
.college-subject,
.college-shortcuts article,
.college-shortcuts-title button{
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,background-color .2s ease;
  will-change:transform;
}
.college-subject:hover,
.college-shortcuts article:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 28px rgba(8,31,54,.15);
  filter:saturate(1.05);
}
.college-subject:active,
.college-shortcuts article:active{
  transform:translateY(-1px) scale(.985);
  box-shadow:0 6px 14px rgba(8,31,54,.12);
}
.college-shortcuts-title button{cursor:pointer;border-radius:8px;padding:8px 11px}
.college-shortcuts-title button:hover{
  transform:translateY(-2px);
  background:#e8eff8;
  box-shadow:0 6px 14px rgba(8,31,54,.1);
}
.college-shortcuts-title button:active{transform:translateY(1px) scale(.97)}
.college-shortcuts-title button:focus-visible,
.college-subject:focus-visible,
.college-shortcuts article:focus-visible{outline:3px solid #e1a31b;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  .college-subject,.college-shortcuts article,.college-shortcuts-title button{transition:none}
  .college-subject:hover,.college-shortcuts article:hover,.college-shortcuts-title button:hover{transform:none}
}


/* Animate the College hero call-to-action baked into the artwork */
.college-hero-exact button{
  transform-origin:center;
  transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease,filter .18s ease;
}
.college-hero-exact button:hover{
  transform:translateY(-4px) scale(1.018);
  background:rgba(255,205,74,.16);
  box-shadow:0 12px 24px rgba(0,0,0,.2),0 0 0 2px rgba(255,220,120,.24);
  filter:brightness(1.04);
}
.college-hero-exact button:active{
  transform:translateY(2px) scale(.975);
  background:rgba(8,31,54,.18);
  box-shadow:0 4px 9px rgba(0,0,0,.18);
}
@media(prefers-reduced-motion:reduce){
  .college-hero-exact button{transition:none}
  .college-hero-exact button:hover,.college-hero-exact button:active{transform:none}
}


/* Keep both dashboard Explore buttons on the exact same motion system */
.high-school-hero-exact button:not(:disabled),
.college-hero-exact button:not(:disabled){
  transform-origin:center;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,background-color .18s ease;
}
.high-school-hero-exact button:not(:disabled):hover,
.college-hero-exact button:not(:disabled):hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
  box-shadow:0 8px 18px rgba(16,33,61,.14);
}
.high-school-hero-exact button:not(:disabled):active,
.college-hero-exact button:not(:disabled):active{
  transform:translateY(1px) scale(.97);
  box-shadow:0 2px 7px rgba(16,33,61,.14);
  transition-duration:.07s;
}


/* Explore CTA uses the same motion as the College subject cards */
.high-school-hero-exact button:not(:disabled),
.college-hero-exact button:not(:disabled){
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,background-color .2s ease;
  will-change:transform;
}
.high-school-hero-exact button:not(:disabled):hover,
.college-hero-exact button:not(:disabled):hover{
  transform:translateY(-5px);
  box-shadow:0 14px 28px rgba(8,31,54,.15);
  filter:saturate(1.05);
}
.high-school-hero-exact button:not(:disabled):active,
.college-hero-exact button:not(:disabled):active{
  transform:translateY(-1px) scale(.985);
  box-shadow:0 6px 14px rgba(8,31,54,.12);
  transition-duration:.2s;
}


/* Enhanced league table */
.league-period-tabs{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:4px;max-width:620px;margin:4px 0 24px;padding:5px;border-radius:13px;background:#edf1f6}
.league-period-tabs button{border:0;border-radius:10px;padding:12px 18px;background:transparent;color:#263e60;font-weight:800;cursor:pointer}
.league-period-tabs button.active{background:linear-gradient(135deg,#ffd25a,#efae17);color:#102646;box-shadow:0 6px 16px rgba(226,160,20,.25)}
.league-podium{display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:end;gap:14px;margin:0 0 22px}
.league-winner{position:relative;min-height:210px;padding:34px 18px 20px;border:1px solid #d7e3e3;border-radius:16px;background:linear-gradient(160deg,#0b5a49,#07382f);color:#fff;text-align:center;cursor:pointer;overflow:hidden;box-shadow:0 12px 28px rgba(8,31,54,.12);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.league-winner:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(8,31,54,.2);filter:saturate(1.05)}
.league-winner:active{transform:translateY(-1px) scale(.985)}
.league-winner:before{content:"";position:absolute;inset:auto -15% -45% -15%;height:75%;background:radial-gradient(circle,rgba(244,189,55,.24),transparent 68%);pointer-events:none}
.league-place-1{min-height:235px;border-color:#e9b52a;background:linear-gradient(160deg,#07375c,#082844);box-shadow:0 14px 34px rgba(12,48,83,.2),inset 0 0 0 2px rgba(239,181,42,.45)}
.league-place-3{background:linear-gradient(160deg,#176458,#0a3c35)}
.league-medal{position:absolute;top:12px;left:14px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(#ffe785,#e3a20e);border:3px solid #fff0b0;color:#604100;font-size:20px;font-weight:900;box-shadow:0 5px 14px rgba(0,0,0,.2)}
.league-place-2 .league-medal{background:linear-gradient(#fff,#aebbc9);border-color:#edf2f5;color:#455364}
.league-place-3 .league-medal{background:linear-gradient(#ffd2aa,#bc692d);border-color:#ffe1c5;color:#6f3215}
.league-winner .avatar-large{width:94px;height:94px;margin:0 auto 11px;border:4px solid #fff;box-shadow:0 0 0 4px #eeb634,0 7px 18px rgba(0,0,0,.25);font-size:38px}
.league-winner h3{color:#fff;margin:0 0 3px}
.league-winner p{color:#dbe9e8;margin:0 0 8px;font-size:13px;line-height:1.35}
.league-winner>strong{position:relative;font-size:24px;color:#fff3ba}
.league-tablewrap{margin-top:0}
.league-student-link{display:flex;align-items:center;gap:10px;padding:3px 6px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.league-student-link .avatar{flex:none;width:38px;height:38px;font-size:15px}
.league-student-link span{display:grid;gap:1px}
.league-student-link b{color:var(--ink)}
.league-student-link small{color:#718198;font-size:10px}
.league-student-link:hover{background:#edf4ff;box-shadow:none;transform:translateX(3px)}
.current-student-row{background:#fff4c6!important}
.league-profile-dialog{width:min(520px,calc(100vw - 32px));border:0;border-radius:20px;padding:28px;box-shadow:0 28px 80px rgba(5,24,48,.35)}
.league-profile-dialog::backdrop{background:rgba(5,20,39,.65);backdrop-filter:blur(4px)}
.league-profile-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:#edf2f8;color:#173150;font-size:26px;cursor:pointer}
.league-profile-head{display:flex;align-items:center;gap:18px;padding-right:35px}
.league-profile-head .avatar-large{flex:none;width:92px;height:92px;font-size:36px}
.league-profile-head h2{margin:4px 0}
.league-profile-head p{margin:0}
.league-profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:24px 0 18px}
.league-profile-stats div{padding:14px 8px;border-radius:12px;background:#f2f6fb;text-align:center}
.league-profile-stats strong,.league-profile-stats span{display:block}
.league-profile-stats strong{font-size:20px;color:#17355c}
.league-profile-stats span{margin-top:3px;color:#6b7e97;font-size:11px}
.league-profile-subject{padding:13px 15px;border-radius:11px;background:#fff6da;margin:0}
.league-empty-podium{padding:28px;border:1px dashed #cad6e5;border-radius:15px;color:#687b94;text-align:center;margin-bottom:20px}
@media(max-width:800px){.league-podium{grid-template-columns:1fr}.league-winner,.league-place-1{min-height:0}.league-place-1{grid-row:1}.league-period-tabs{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.league-profile-stats{grid-template-columns:repeat(2,1fr)}.league-profile-head{align-items:flex-start}.league-profile-head .avatar-large{width:70px;height:70px}.league-period-tabs button{padding:10px 8px}}


/* Help Me Solve — question-first redesign */
.help-composer{margin-bottom:22px;padding:22px;border:1px solid #d7e0ea;border-radius:17px;background:linear-gradient(145deg,#fffdf8,#fbf7ed);box-shadow:0 12px 30px rgba(15,37,72,.08)}
.help-composer label{display:grid;gap:7px;color:#152b49;font-size:13px;font-weight:800}
.help-compose-grid{display:grid;grid-template-columns:minmax(190px,.65fr) minmax(260px,1.35fr);gap:16px;margin-bottom:15px}
.help-composer input,.help-composer select,.help-composer textarea{width:100%;border:1px solid #ccd7e4;border-radius:11px;background:#fff;color:#18324f;font:inherit;padding:12px 14px;outline:none}
.help-composer input:focus,.help-composer select:focus,.help-composer textarea:focus{border-color:#2d70bf;box-shadow:0 0 0 3px rgba(45,112,191,.12)}
.help-details-label textarea{min-height:128px;resize:vertical;line-height:1.55}
.help-compose-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:14px}
.help-image-drop{position:relative!important;display:grid!important;grid-template-columns:34px auto!important;column-gap:10px!important;align-items:center;min-width:230px;padding:12px 15px;border:1px dashed #a8b6c7;border-radius:12px;background:#fff;cursor:pointer}
.help-image-drop>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#edf4ff;font-size:20px}
.help-image-drop b{font-size:13px}.help-image-drop small{color:#718198;font-size:10px;font-weight:500}
.help-image-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.help-compose-actions{display:flex;align-items:center;gap:12px}
.help-compose-actions .error{margin:0}
.help-post-button{border:0;border-radius:11px;padding:13px 22px;background:linear-gradient(135deg,#ffd23f,#f0ad08);color:#10243f;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(226,160,20,.22)}
.help-feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;border-bottom:1px solid #dce4ee}
.help-feed-tabs{display:flex;align-items:center;gap:6px}
.help-feed-tabs button{position:relative;border:0;background:transparent;padding:13px 17px;color:#536984;font-weight:800;cursor:pointer}
.help-feed-tabs button.active{color:#15335d}
.help-feed-tabs button.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px;background:#efb21c}
.help-subject-filter{display:flex;align-items:center;gap:8px;color:#5c6e84;font-size:12px;font-weight:800}
.help-subject-filter select{min-width:155px;padding:9px 12px;border:1px solid #cdd8e6;border-radius:10px;background:#fff;color:#173452;font-weight:700}
.help-entries{display:grid;gap:13px}
.help-question-card{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;padding:14px;border:1px solid #d7e0e8;border-radius:16px;background:#fffdf9;box-shadow:0 7px 20px rgba(13,39,72,.07);transition:transform .2s ease,box-shadow .2s ease}
.help-question-card:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(13,39,72,.13)}
.help-question-card:not(:has(.help-question-image)){grid-template-columns:1fr}
.help-question-image{display:block;min-height:140px;border-radius:12px;overflow:hidden;background:#eef2f6}
.help-question-image img{display:block;width:100%;height:100%;max-height:180px;object-fit:cover}
.help-question-content{min-width:0}
.help-question-top{display:flex;align-items:center;gap:12px;margin-bottom:7px}
.help-subject-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#eaf3ff;color:#24558d;font-size:11px;font-weight:800}
.help-subject-badge img{width:16px;height:16px;object-fit:contain}
.help-question-top time{color:#77879a;font-size:11px}
.help-question-card h3{margin:0 0 5px;color:#102746;font-size:20px}
.help-question-card p{margin:0 0 12px;color:#53667c;line-height:1.48}
.help-question-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#6d7c90;font-size:11px}
.help-question-footer>span{margin-right:auto}
.help-replies-button{border:1px solid #d2ddea;border-radius:9px;padding:7px 10px;background:#fff;color:#234b7a;font-weight:800;cursor:pointer}
.help-question-card .replies{grid-column:1/-1;margin-top:12px;padding-top:14px;border-top:1px solid #e3e8ef}
html[data-theme="dark"] .help-composer,html[data-theme="dark"] .help-question-card{background:#17253a;border-color:#40516a}
html[data-theme="dark"] .help-composer label,html[data-theme="dark"] .help-question-card h3{color:#edf4ff}
html[data-theme="dark"] .help-composer input,html[data-theme="dark"] .help-composer select,html[data-theme="dark"] .help-composer textarea,html[data-theme="dark"] .help-image-drop,html[data-theme="dark"] .help-subject-filter select{background:#101d2f;border-color:#41546d;color:#e9f1fb}
html[data-theme="dark"] .help-question-card p,html[data-theme="dark"] .help-question-footer{color:#b8c6d9}
@media(max-width:800px){.help-compose-grid{grid-template-columns:1fr}.help-compose-bottom{align-items:stretch;flex-direction:column}.help-image-drop{width:100%}.help-compose-actions{justify-content:flex-end}.help-feed-toolbar{align-items:stretch;flex-direction:column;border-bottom:0}.help-feed-tabs{overflow-x:auto;border-bottom:1px solid #dce4ee}.help-subject-filter{justify-content:flex-end}.help-question-card{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:560px){.help-composer{padding:15px}.help-question-card{grid-template-columns:1fr}.help-question-image{min-height:170px}.help-feed-tabs button{padding:11px 12px}.help-compose-actions{align-items:stretch;flex-direction:column}.help-post-button{width:100%}}


/* Subject Rooms — same visual system as Help Me Solve */
.discussion-question-card .help-question-top{position:relative;padding-right:38px}
.discussion-menu{position:absolute;right:0;top:-6px;z-index:12}
.discussion-menu-button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#122d50;font-size:27px;line-height:1;cursor:pointer}
.discussion-menu-button:hover{background:#edf2f8;box-shadow:none;transform:none}
.discussion-menu-list{position:absolute;right:0;top:36px;min-width:145px;padding:6px;border:1px solid #d8e1ec;border-radius:11px;background:#fff;box-shadow:0 13px 30px rgba(10,32,60,.2)}
.discussion-menu-list[hidden]{display:none}
.discussion-menu-list button{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:#173452;text-align:left;font-weight:800;cursor:pointer}
.discussion-menu-list button:hover{background:#eff4fa;box-shadow:none;transform:none}
.discussion-menu-list span{display:block;padding:8px 10px;color:#77879a;font-size:11px}
.help-replies-button{display:inline-flex;align-items:center;gap:6px}
.reply-count-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.discussion-save-button{display:grid;place-items:center;width:34px;height:34px;padding:6px;border:0;border-radius:9px;background:transparent;color:#173452;cursor:pointer}
.discussion-save-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.discussion-save-button:hover{background:#edf4ff;box-shadow:none}
.discussion-save-button.saved{background:#fff0bd;color:#b27600}
.discussion-save-button.saved svg{fill:#efb21c;stroke:#b27600}
.discussion-edit-dialog{width:min(620px,calc(100vw - 30px));padding:28px;border:0;border-radius:19px;box-shadow:0 28px 80px rgba(5,24,48,.35)}
.discussion-edit-dialog::backdrop{background:rgba(5,20,39,.65);backdrop-filter:blur(4px)}
.discussion-edit-dialog form{display:grid;gap:15px}
.discussion-edit-dialog h2{margin:0 40px 4px 0}
.discussion-edit-dialog label{display:grid;gap:7px;color:#173452;font-size:13px;font-weight:800}
.discussion-edit-dialog input,.discussion-edit-dialog select,.discussion-edit-dialog textarea{width:100%;padding:12px 14px;border:1px solid #ced9e7;border-radius:10px;background:#fff;color:#173452;font:inherit}
html[data-theme="dark"] .discussion-menu-button,html[data-theme="dark"] .discussion-save-button{color:#dce8f7}
html[data-theme="dark"] .discussion-menu-list{background:#17253a;border-color:#41536d}
html[data-theme="dark"] .discussion-menu-list button{color:#e6effb}
html[data-theme="dark"] .discussion-menu-list button:hover{background:#263a55}
html[data-theme="dark"] .discussion-edit-dialog{background:#17253a;color:#edf4ff}
html[data-theme="dark"] .discussion-edit-dialog label{color:#dce8f7}
html[data-theme="dark"] .discussion-edit-dialog input,html[data-theme="dark"] .discussion-edit-dialog select,html[data-theme="dark"] .discussion-edit-dialog textarea{background:#101d2f;border-color:#41546d;color:#e9f1fb}


/* Daily challenge experience */
.page:has(.challenge-heading-row)>.eyebrow,.page:has(.challenge-heading-row)>.section-heading{display:none}

.challenge-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:-10px 0 18px;padding:18px 22px;border-radius:20px;background:linear-gradient(135deg,#071f3b,#0a3455);color:#fff;box-shadow:0 14px 34px rgba(8,32,58,.15)}
.challenge-title-mark{display:flex;align-items:center;gap:14px}.challenge-title-mark>span{font-size:38px;filter:drop-shadow(0 4px 8px rgba(247,184,28,.25))}
.challenge-title-mark strong{display:block;font-family:var(--serif);font-size:24px}.challenge-title-mark small{display:block;margin-top:3px;color:#c8d7e9;font-size:14px}
.challenge-date{flex:0 0 auto;padding:11px 16px;border:1px solid rgba(157,200,237,.45);border-radius:12px;background:rgba(255,255,255,.06);font-weight:800;color:#edf6ff}
.challenge-subjects{margin-bottom:16px}.challenge-subjects .pill{min-width:112px}
.daily-challenge-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
.problem-stage,.problem-stage .problem-grid{min-width:0}.problem-stage .problem-grid{display:grid;gap:18px}
.challenge-problem-card{position:relative;overflow:visible;border:1px solid #d9e2ee;background:#fffdf9;box-shadow:0 16px 36px rgba(14,42,70,.09)}
.challenge-card-meta{display:flex;align-items:center;gap:10px;padding-right:38px}.challenge-card-meta>strong{margin-left:auto;color:#16365e;font-size:14px}
.difficulty-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:9px;background:#fff0bd;color:#785600;font-size:12px;font-weight:900}
.challenge-problem-card>h3{margin:18px 0 8px;font-size:25px;line-height:1.25;color:#0b2445}.challenge-problem-card .problem-image{max-height:330px;object-fit:contain;background:#f4f7fa;border-radius:14px}
.challenge-answer-form{display:grid;gap:12px;margin:22px -1px -1px;padding:20px;border:1px solid #d8e1ec;border-radius:16px;background:#fff}
.challenge-answer-form h4{margin:0;color:#102c50;font-size:17px}.challenge-answer-form textarea{min-height:132px}
.challenge-answer-form .challenge-upload{padding:11px 13px;border:1px dashed #aebed0;border-radius:11px;background:#f8fbff}.challenge-answer-form button{justify-self:end;min-width:170px}
.challenge-sidebar{display:grid;gap:16px;position:sticky;top:18px}.challenge-progress-card,.previous-challenges-card{border-radius:18px;color:#fff;box-shadow:0 15px 35px rgba(9,38,60,.14)}
.challenge-progress-card{padding:20px;background:linear-gradient(145deg,#075b48,#053e38)}.challenge-progress-card h3,.previous-challenges-card h3{margin:0;font-size:18px}
.challenge-streak-summary{display:grid;grid-template-columns:48px 1fr 82px;gap:10px;align-items:center;margin-top:16px}.streak-flame{font-size:42px}
.challenge-streak-summary span,.challenge-streak-summary small{display:block;color:#cfebdf;font-size:11px}.challenge-streak-summary strong{display:block;margin:2px 0;font-size:25px}
.week-ring{width:76px;height:76px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,#075044 56%,transparent 58%),conic-gradient(#ffc533 var(--week-progress),rgba(255,255,255,.15) 0)}
.week-ring b{font-size:17px}.week-ring span{font-size:10px}
.challenge-week{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14)}
.challenge-week div{text-align:center}.challenge-week i{display:grid;width:23px;height:23px;margin:auto;place-items:center;border:2px solid rgba(255,255,255,.24);border-radius:50%;color:rgba(255,255,255,.45);font-style:normal}.challenge-week span{display:block;margin-top:5px;color:#c7dfd9;font-size:10px}.challenge-week .done i{border-color:#8ee65c;background:#8ee65c;color:#123e2d;font-weight:900}.challenge-week .today span{color:#ffc533;font-weight:900}
.previous-challenges-card{padding:18px;background:#092d4d}.previous-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.previous-heading>span{font-size:11px;color:#a9c7df}
.previous-list{display:grid;gap:9px;margin-top:13px}.previous-list article{padding:11px;border:1px solid rgba(155,196,228,.22);border-radius:11px;background:rgba(255,255,255,.035)}
.previous-list article>div,.previous-list article>p{display:flex;align-items:center;justify-content:space-between;gap:8px}.previous-list time{color:#a9c7df;font-size:10px}.previous-subject{padding:4px 7px;border-radius:7px;background:#0d6753;color:#d9fff1;font-size:10px;font-weight:900}
.previous-list article>strong{display:block;overflow:hidden;margin:7px 0;color:#fff;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.previous-list article>p{margin:0;color:#ffc533;font-size:10px}.previous-list article>p b{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:#83df59;color:#0e3d2c}.previous-empty{padding:18px 8px;text-align:center;color:#aac3d8;font-size:12px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1050px){.daily-challenge-layout{grid-template-columns:1fr}.challenge-sidebar{position:static;grid-template-columns:1fr 1fr}.challenge-progress-card,.previous-challenges-card{min-width:0}}
@media(max-width:700px){.challenge-heading-row{align-items:flex-start;flex-direction:column;padding:16px}.challenge-date{width:100%;text-align:center}.challenge-title-mark strong{font-size:20px}.challenge-title-mark small{font-size:12px}.challenge-sidebar{grid-template-columns:1fr}.challenge-card-meta{align-items:flex-start;flex-wrap:wrap}.challenge-card-meta>strong{margin-left:0}.challenge-problem-card>h3{font-size:21px}.challenge-answer-form{margin-left:-10px;margin-right:-10px;padding:15px}.challenge-answer-form button{width:100%}.challenge-subjects{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.challenge-subjects .pill{flex:0 0 auto}}

.challenge-calendar{margin-top:18px;padding-top:15px;border-top:1px solid rgba(255,255,255,.16)}
.calendar-title{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}.calendar-title span{font-size:18px}.calendar-title strong{font-size:14px;color:#fff}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calendar-weekdays{margin-bottom:6px}.calendar-weekdays span{text-align:center;color:#a9d0c5;font-size:9px;font-weight:800;text-transform:uppercase}
.calendar-day,.calendar-blank{aspect-ratio:1;min-width:0}.calendar-day{position:relative;display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:rgba(255,255,255,.055);color:#d8ece7}
.calendar-day b{font-size:10px}.calendar-day.completed{border-color:#84df5a;background:#84df5a;color:#103a2b;box-shadow:0 3px 8px rgba(82,194,76,.2)}.calendar-day.completed i{position:absolute;right:2px;bottom:0;font-size:7px;font-style:normal;font-weight:900}
.calendar-day.current{outline:2px solid #ffc533;outline-offset:1px;color:#ffc533}.calendar-day.current.completed{color:#103a2b}
.calendar-key{display:flex;justify-content:center;gap:14px;margin-top:10px;color:#bcd9d2;font-size:9px}.calendar-key span{display:flex;align-items:center;gap:5px}.calendar-key i{width:9px;height:9px;border-radius:3px}.key-complete{background:#84df5a}.key-today{border:2px solid #ffc533}

/* One-problem-per-row answer composer */
.problem-stage .problem-grid{grid-template-columns:minmax(0,1fr)!important}
.challenge-problem-card{width:100%;max-width:none}
.challenge-answer-form{position:relative;display:block;padding:18px 20px 20px}
.challenge-answer-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:38px;margin-bottom:12px;padding-right:130px}
.challenge-answer-heading h4{margin:0}
.challenge-solution-editor{display:block;width:100%;min-height:170px!important;padding:16px!important;resize:vertical;border:1px solid #bdcad9!important;border-radius:11px!important;background:#fff!important;font:inherit;line-height:1.55}
.challenge-upload{position:absolute;top:14px;right:18px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.challenge-upload span{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border-radius:9px;color:#15335d;font-size:12px;font-weight:900;cursor:pointer}
.challenge-upload span:hover{background:#eef3f9}.challenge-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.challenge-answer-form>.math-eye-toggle{position:absolute!important;top:14px!important;right:145px!important;margin:0!important;border:0!important;background:#eef2f7!important}
.challenge-answer-form>.math-editor{margin-top:12px}
.challenge-answer-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.challenge-preview-button{padding:10px 18px;border:0;border-radius:9px;background:#eef2f7;color:#15335d;font-weight:900;cursor:pointer}
.challenge-inline-preview{margin-top:12px;padding:14px;border:1px solid #d7e0ea;border-radius:10px;background:#f8fbff;color:#15335d}
@media(max-width:700px){.challenge-answer-heading{align-items:flex-start;flex-direction:column;padding-right:0}.challenge-upload{position:static}.challenge-answer-form>.math-eye-toggle{position:static!important;margin:8px 0!important}.challenge-answer-actions{display:grid;grid-template-columns:1fr 1fr}.challenge-answer-actions button{min-width:0!important;width:100%}}

.attach-image-icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* Refined challenge attachment control */
.challenge-upload{top:13px!important;right:18px!important}
.challenge-upload span{display:inline-flex!important;align-items:center!important;justify-content:center;gap:8px;min-height:40px;padding:9px 13px!important;border:1px solid #d5dfeb;border-radius:9px!important;background:#f1f4f8!important;color:#15335d!important;white-space:nowrap;font-size:12px!important;line-height:1;font-weight:900;box-shadow:none;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.challenge-upload span:hover{background:#e7edf5!important;border-color:#b9c8da;transform:translateY(-1px)}
.attach-image-icon{display:block;width:20px!important;height:20px!important;overflow:visible;fill:none!important;stroke:#15335d!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
.attach-image-icon rect,.attach-image-icon circle,.attach-image-icon path{fill:none!important;stroke:#15335d!important;stroke-width:1.8!important;vector-effect:non-scaling-stroke}
.challenge-answer-heading{min-height:42px;padding-right:165px}
@media(max-width:700px){.challenge-upload{position:static!important}.challenge-answer-heading{padding-right:0}}


/* Stack Overflow-style topic tags */
.topic-tags-field{display:grid;gap:7px;margin-top:14px;color:#15335d;font-weight:900}
.topic-tags-field>span{font-size:11px;color:#71849b;font-weight:600}
.topic-tags-field input{width:100%;padding:11px 13px;border:1px solid #cbd7e5;border-radius:10px;background:#fff;color:#102c50}
.topic-tags-field input:focus{border-color:#2e65a7;box-shadow:0 0 0 3px rgba(46,101,167,.12);outline:0}
.post-topic-tags{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 4px}
.post-topic-tags button{padding:5px 9px;border:1px solid #c9d8e8;border-radius:6px;background:#eaf3fb;color:#27618f;font-size:11px;font-weight:800;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.post-topic-tags button:hover,.post-topic-tags button.active{border-color:#8cb9dc;background:#d5ebfa;color:#174e79}


/* Searchable community tag explorer */
.tag-explorer-host{margin:14px 0 18px}
.tag-explorer{display:grid;gap:12px;padding:15px 17px;border:1px solid #d8e2ed;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(16,44,77,.05)}
.tag-search-row{display:flex;align-items:center;gap:12px}.tag-search-row>label{display:flex;align-items:center;gap:9px;min-width:260px;max-width:480px;flex:1;padding:0 12px;border:1px solid #bfcede;border-radius:9px;background:#fff}.tag-search-row svg{width:18px;height:18px;fill:none;stroke:#4d6784;stroke-width:2;stroke-linecap:round}.tag-search-row input{width:100%;padding:10px 0;border:0!important;box-shadow:none!important;outline:0;background:transparent}.tag-search-row>span{color:#71849a;font-size:11px;font-weight:800}
.popular-tag-list,.active-tag-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.popular-tag-list>strong,.active-tag-filters>strong{margin-right:4px;color:#17365f;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.popular-tag-list button{display:inline-flex;align-items:center;gap:7px;padding:5px 6px 5px 9px;border:1px solid #c9d8e8;border-radius:6px;background:#eaf3fb;color:#27618f;cursor:pointer}.popular-tag-list button span{font-size:11px;font-weight:800}.popular-tag-list button b{min-width:20px;padding:3px 5px;border-radius:5px;background:rgba(39,97,143,.12);font-size:9px}.popular-tag-list button:hover,.popular-tag-list button.active{border-color:#83b6dc;background:#d6edfc;color:#164e7a}
.active-tag-filters{padding-top:11px;border-top:1px solid #e4ebf2}.active-tag-filters button{padding:6px 9px;border:1px solid #7eadd2;border-radius:999px;background:#e0f1fc;color:#18547f;font-size:10px;font-weight:900;cursor:pointer}.active-tag-filters .clear-tag-filters{border-color:transparent;background:transparent;color:#b43a42;text-decoration:underline}
.no-tag-match{color:#7a8ca1;font-size:11px}
@media(max-width:700px){.tag-search-row{align-items:stretch;flex-direction:column}.tag-search-row>label{width:100%;min-width:0;max-width:none}.popular-tag-list{align-items:flex-start}}

/* Admin control centre */
.admin-dashboard{display:grid;gap:18px}.admin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.admin-stat{min-height:108px;background:#fff;border:1px solid #e1e8f3;border-radius:16px;padding:18px;display:flex;align-items:center;gap:18px;box-shadow:0 8px 28px rgba(18,48,88,.07)}.admin-stat-icon{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;font-size:30px;font-weight:800;color:#1760c2;background:#e9f2ff}.admin-stat-icon.reviews{color:#d98a00;background:#fff3db}.admin-stat-icon.problems{color:#15975a;background:#e5f8ee}.admin-stat-icon.subjects{color:#2764c2;background:#eaf2ff}.admin-stat div{display:grid;gap:2px}.admin-stat small{font-size:.9rem;color:#3d5271;font-weight:700}.admin-stat strong{font:800 2rem/1 Outfit,sans-serif;color:#0f1f40}.admin-stat-note{font-size:.75rem;color:#7184a1}.admin-stat-note.warning{color:#dc8b00}.admin-stat-note.success{color:#12975a}.admin-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);gap:18px;align-items:start}.admin-right-column{display:grid;gap:18px}.admin-publish-card,.admin-members-card,.admin-subject-card{padding:20px;border-radius:17px;box-shadow:0 8px 30px rgba(18,48,88,.07)}.admin-card-title{display:flex;align-items:center;gap:10px;margin-bottom:17px}.admin-card-title h2{font-size:1.45rem}.admin-title-icon{color:#1f61bd;font-size:1.45rem}.admin-steps{margin-left:auto;display:flex;align-items:center}.admin-steps>*{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;border:1px solid #cbd8eb;color:#687a96;background:#fff;font-size:.78rem}.admin-steps b{background:#245ca9;color:#fff;border-color:#245ca9}.admin-steps>*+*{margin-left:21px;position:relative}.admin-steps>*+*:before{content:"";position:absolute;width:22px;height:1px;background:#cbd8eb;right:100%;top:50%}.admin-form-section{border:0;border-top:1px solid #c9d8eb;padding:16px 0 4px;margin:0}.admin-form-section legend{padding-right:14px;color:#164987;font-weight:800}.admin-form-section legend b{display:inline-grid;place-items:center;background:#2b64b2;color:#fff;width:27px;height:27px;border-radius:50%;margin-right:8px}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px}.admin-form-section label{display:grid;gap:6px;font-size:.86rem;font-weight:700;color:#1b3153}.admin-form-section label small{font-weight:500;color:#7587a1}.admin-form-section input,.admin-form-section select,.admin-form-section textarea{width:100%}.admin-editor{border:1px solid #cfdaea;border-radius:10px;overflow:hidden;background:#fff}.admin-editor:focus-within{border-color:#4384da;box-shadow:0 0 0 3px #4384da25}.admin-editor-toolbar{display:flex;gap:2px;padding:6px;border-bottom:1px solid #dce4ef;background:#f8faff}.admin-editor-toolbar button{border:0;background:transparent;color:#17355f;width:31px;height:31px;border-radius:6px}.admin-editor-toolbar button:hover{background:#e8f1ff}.admin-editor textarea{border:0;border-radius:0;box-shadow:none!important;resize:vertical}.admin-editor-toolbar .editor-preview-toggle{margin-left:auto;width:auto;min-width:34px;padding:0 9px;font-weight:800}.admin-editor-toolbar .editor-preview-toggle.active{background:#dceaff;color:#0f4f9f}.admin-question-preview{border-top:1px solid #dce4ef;background:#fbfdff}.admin-question-preview[hidden]{display:none}.admin-question-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid #e1e8f2;background:#f5f9ff;color:#17355f}.admin-question-preview-head strong{font-size:.88rem}.admin-question-preview-head span{font-size:.75rem;color:#6e8099;font-weight:600}.admin-question-preview-body{padding:14px 16px;min-height:74px;color:#13294c;font-size:1rem;line-height:1.6;font-weight:500}.admin-question-preview-body ul,.admin-question-preview-body ol{margin:8px 0 8px 22px}.admin-question-preview-body a{color:#1f66bf;text-decoration:underline}.admin-upload{margin-top:12px;min-height:66px;border:1px dashed #91b4df;border-radius:10px;display:flex!important;align-items:center;justify-content:center;grid-template-columns:auto auto;gap:12px!important;cursor:pointer;background:#fbfdff;text-align:left;position:relative}.admin-upload input{position:absolute;width:1px;height:1px;opacity:0}.admin-upload span{display:grid}.admin-upload-icon{font-size:1.5rem;color:#2764b6}.admin-upload small{display:block}.admin-toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin-switch-row{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.admin-switch-row span{display:grid}.admin-switch-row input{appearance:none;width:38px;height:22px;border-radius:20px;background:#b8c6da;padding:0;position:relative;transition:.2s;flex:none}.admin-switch-row input:before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;left:3px;top:2px;box-shadow:0 1px 4px #0003;transition:.2s}.admin-switch-row input:checked{background:#2565bd}.admin-switch-row input:checked:before{transform:translateX(16px)}.admin-publish-button{width:100%;border:0;border-radius:10px;padding:14px;background:linear-gradient(90deg,#f3b52e,#ffca45);color:#13294c;font-weight:900;font-size:1rem;box-shadow:0 8px 18px rgba(236,172,27,.22)}.member-title{flex-wrap:wrap}.admin-level-tabs{margin-left:auto;border:1px solid #ccd8ea;border-radius:10px;overflow:hidden;display:flex}.admin-level-tabs button{border:0;background:#fff;color:#27476f;padding:9px 15px;font-weight:800}.admin-level-tabs button.active{background:#234f91;color:#fff}.admin-member-tools{display:grid;grid-template-columns:1fr 145px;gap:10px}.admin-member-tools .member-search{position:relative;margin:0}.admin-member-tools .member-search input{padding-left:36px}.search-glyph{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:1.35rem;color:#4b6383}.admin-role-filter{border:1px solid #d8e1eb;border-radius:9px;display:flex;align-items:center;padding-left:10px;background:#fff}.admin-role-filter select{border:0;box-shadow:none;padding-left:6px;min-width:0;width:100%}.admin-member-count{margin:13px 0 8px;font-size:.85rem}.admin-member-list{border:1px solid #dce5f0;border-radius:12px;overflow:visible}.admin-member-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #e4eaf2;position:relative}.admin-member-row:last-child{border:0}.admin-member-row>.avatar,.admin-member-row>.avatar-initial{width:42px;height:42px}.admin-member-info,.admin-member-role{display:grid;gap:2px}.admin-member-info strong{color:#102343}.admin-member-info small,.admin-member-role small{font-size:.75rem;color:#687c99}.admin-member-role{min-width:112px}.role-pill{width:max-content;border-radius:20px;background:#e5f0ff;color:#1758af;padding:5px 10px;font-size:.72rem;font-weight:800;text-transform:capitalize}.role-pill.admin{background:#fff0cd;color:#b36f00}.admin-member-menu{position:relative}.admin-member-menu>button{border:0;background:transparent;font-size:1.35rem;color:#173c6a;width:32px;height:32px;border-radius:7px}.admin-member-menu>button:hover{background:#edf3fb}.admin-member-menu-list{position:absolute;right:0;top:34px;z-index:6;width:150px;padding:6px;background:#fff;border:1px solid #dce5f0;border-radius:9px;box-shadow:0 10px 25px #132d5528}.admin-member-menu-list button,.admin-member-menu-list span{display:block;width:100%;padding:8px;border:0;background:transparent;text-align:left;font-size:.8rem}.admin-member-menu-list button:hover{background:#f2f6fc}.admin-subject-card p{font-size:.82rem;margin:0 0 9px}.subject-admin-list{display:flex;gap:7px;flex-wrap:wrap}.admin-subject-chip{display:inline-flex;align-items:center;gap:6px;background:#edf4ff;color:#225491;border-radius:999px;padding:8px 12px;font-size:.78rem;font-weight:800}.admin-subject-chip button{border:0;background:transparent;color:#6680a5;padding:0;font-size:1rem}.admin-add-subject{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.admin-add-subject .error{grid-column:1/-1}.admin-advanced-settings{margin-top:14px;border-top:1px solid #e1e8f1;padding-top:11px}.admin-advanced-settings summary{cursor:pointer;color:#31557e;font-weight:800;font-size:.82rem}.admin-advanced-settings form{margin-top:10px}.admin-advanced-settings .check-row{margin-right:12px}.admin-advanced-settings .solid{margin-top:9px}.admin-members-card .pagination{padding-top:12px}
@media(max-width:1180px){.admin-summary{grid-template-columns:repeat(2,1fr)}.admin-workspace{grid-template-columns:1fr}.admin-right-column{grid-template-columns:1fr 1fr}.admin-members-card{grid-column:1/-1}}
@media(max-width:760px){.admin-summary{grid-template-columns:1fr}.admin-right-column{grid-template-columns:1fr}.admin-members-card{grid-column:auto}.admin-form-grid,.admin-toggle-grid{grid-template-columns:1fr}.admin-member-tools{grid-template-columns:1fr}.admin-member-row{grid-template-columns:auto 1fr auto}.admin-member-role{grid-column:2}.admin-card-title h2{font-size:1.2rem}.admin-level-tabs{width:100%;margin-left:0}.admin-level-tabs button{flex:1}.admin-add-subject{grid-template-columns:1fr}}

/* Student solutions dashboard */
.solutions-dashboard{display:grid;gap:16px}.solution-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.solution-summary-card{background:#fff;border:1px solid #d6e2f2;border-radius:14px;min-height:92px;padding:16px 19px;display:flex;align-items:center;gap:16px;box-shadow:0 7px 24px #1838630b}.solution-summary-card>span{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e6f0ff;color:#1555ac;font-size:1.5rem;font-weight:800}.solution-summary-card.pending{border-left:5px solid #f2bb2e;background:linear-gradient(100deg,#fffaf0,#fff)}.solution-summary-card.pending>span{background:#ffedb3;color:#9b6700}.solution-summary-card div{display:grid}.solution-summary-card small{color:#405a7d;font-weight:700}.solution-summary-card strong{font:800 1.8rem Outfit,sans-serif;color:#0d2044}.solution-filter-panel{padding:13px 16px}.solution-filter-row{display:grid;grid-template-columns:auto auto minmax(125px,.55fr) minmax(135px,.6fr) minmax(215px,1fr);gap:12px;align-items:end}.solution-segmented{display:flex;border:1px solid #cad9ed;border-radius:10px;padding:3px;background:#fff}.solution-segmented button{border:0;background:transparent;color:#29486f;padding:10px 14px;border-radius:8px;font-weight:800;white-space:nowrap}.solution-segmented button.active{background:#24559b;color:#fff;box-shadow:0 3px 9px #12396529}.solution-select,.solution-search label{display:grid;gap:5px;font-size:.72rem;font-weight:800;color:#385275}.solution-select select,.solution-search input{width:100%;min-height:43px}.solution-search{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:end}.solution-search .outline{height:43px}.solution-safety-banner{display:flex;align-items:center;gap:12px;background:#eef5ff;border:1px solid #d4e2f5;border-radius:12px;padding:11px 14px}.safety-shield{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#245ba6;color:#fff;font-weight:900}.solution-safety-banner div{display:grid;gap:2px;flex:1}.solution-safety-banner strong{color:#183a6b}.solution-safety-banner small{color:#627b9e}.solution-clear-button{border:1px solid #dc3345;background:#fff;color:#c52234;border-radius:9px;padding:11px 14px;font-weight:850}.solution-clear-button:hover{background:#fff0f2}.solution-list{display:grid;gap:13px}.solution-list-heading{display:flex;justify-content:space-between;color:#536b8a}.solution-list-heading span{font-size:.8rem}.solution-review-card{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(330px,1.5fr) minmax(280px,1fr);gap:20px;padding:20px;align-items:start}.solution-student{display:flex;gap:12px;border-right:1px solid #e0e7f1;padding-right:18px}.solution-student>.avatar,.solution-student>.avatar-initial{width:56px;height:56px;flex:none}.solution-student div{display:grid;gap:3px;min-width:0}.solution-student strong{color:#102345}.solution-student small,.solution-student time{font-size:.76rem;color:#617795;overflow-wrap:anywhere}.solution-badges{display:flex;gap:7px;flex-wrap:wrap}.solution-badges .type{background:#e2efff}.solution-answer-content h3{margin:9px 0 6px}.solution-answer-content>p{margin:7px 0;font-size:.82rem}.solution-answer-box{background:#f0f4fa;border-radius:7px;padding:10px 12px;color:#1d385f;min-height:39px}.solution-answer-content details{margin-top:10px}.solution-answer-content summary{cursor:pointer;color:#456a98;font-size:.82rem}.solution-working{white-space:pre-wrap}.solution-reference{color:#617795}.solution-attachment{display:flex;align-items:center;gap:8px;margin-top:9px;color:#225aa5;font-size:.8rem;font-weight:700}.solution-attachment img{width:45px;height:38px;object-fit:cover;border-radius:6px}.solution-review-actions{border-left:1px solid #e0e7f1;padding-left:18px}.solution-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:.75rem;font-weight:850}.solution-status.pending{background:#fff1d5;color:#9a5a00}.solution-status.reviewed{background:#dcf6e7;color:#147a44}.solution-review-actions>p{font-size:.82rem;margin:10px 0;color:#627691}.solution-review-actions>div{display:flex;gap:7px;flex-wrap:wrap}.solution-review-actions .solid,.solution-review-actions .outline{padding:9px 12px}.solution-review-actions .custom-grade{margin-top:10px}.solution-clear-dialog{max-width:440px}.solution-clear-dialog form{display:grid}.solution-dialog-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:#ffebee;color:#c91e32;font-size:1.4rem}.solution-clear-dialog h2{margin:12px 0 6px}.solution-dialog-actions{display:flex;justify-content:flex-end;gap:9px}.danger-solid{border:1px solid #d51f35;background:#d51f35;color:#fff;border-radius:9px;padding:11px 16px;font-weight:850}
@media(max-width:1200px){.solution-summary-grid{grid-template-columns:repeat(2,1fr)}.solution-filter-row{grid-template-columns:1fr 1fr 1fr}.solution-search{grid-column:span 2}.solution-review-card{grid-template-columns:220px 1fr}.solution-review-actions{grid-column:2;border-left:0;padding-left:0}}
@media(max-width:760px){.solution-summary-grid{grid-template-columns:1fr}.solution-filter-row{grid-template-columns:1fr}.solution-search{grid-column:auto}.solution-segmented{overflow:auto}.solution-safety-banner{align-items:flex-start;flex-wrap:wrap}.solution-clear-button{width:100%}.solution-review-card{grid-template-columns:1fr}.solution-student{border-right:0;padding-right:0}.solution-review-actions{grid-column:auto}.solution-review-actions{border-top:1px solid #e0e7f1;padding-top:13px}}

/* Real animated hero call-to-action shared by High School and College */
.hero-cta-button{position:absolute;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden;border:1px solid rgba(255,213,105,.8);border-radius:14px;padding:0 clamp(14px,1.8vw,30px);background:linear-gradient(135deg,#ffd463 0%,#f4b934 55%,#ffc94d 100%);color:#10294b;font:800 clamp(13px,1.18vw,20px)/1.1 'DM Sans',sans-serif;cursor:pointer;box-shadow:0 8px 20px rgba(4,19,39,.2),inset 0 1px 0 rgba(255,255,255,.55);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,border-color .2s ease;will-change:transform}
.hero-cta-button:before{content:"";position:absolute;top:-80%;left:-45%;width:32%;height:260%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.52),transparent);transform:rotate(18deg);transition:left .55s ease;pointer-events:none}
.hero-cta-button:hover{transform:translateY(-5px) scale(1.02);filter:saturate(1.08) brightness(1.03);border-color:#ffe39a;box-shadow:0 15px 28px rgba(4,19,39,.3),0 0 0 3px rgba(255,198,65,.18),inset 0 1px 0 rgba(255,255,255,.65)}
.hero-cta-button:hover:before{left:120%}
.hero-cta-button:active{transform:translateY(-1px) scale(.985);box-shadow:0 6px 13px rgba(4,19,39,.24),inset 0 2px 4px rgba(111,71,0,.12);transition-duration:.08s}
.hero-cta-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hero-cta-arrow{font-size:1.7em;line-height:1;transition:transform .2s ease}
.hero-cta-button:hover .hero-cta-arrow{transform:translateX(6px)}
@media(max-width:700px){.hero-cta-button{border-radius:8px;padding:0 10px;font-size:clamp(8px,2.3vw,13px)}.hero-cta-arrow{font-size:1.45em}}
@media(prefers-reduced-motion:reduce){.hero-cta-button,.hero-cta-button:before,.hero-cta-arrow{transition:none}.hero-cta-button:hover{transform:none}}

/* Editable hero copy: the artwork stays in the image; all marketing copy is real HTML. */
.editable-hero:after{content:"";position:absolute;inset:0 auto 0 0;width:66%;z-index:1;pointer-events:none;background:linear-gradient(90deg,#09243d 0%,#09243d 72%,rgba(9,36,61,.94) 84%,rgba(9,36,61,0) 100%)}
.high-school-hero-exact.editable-hero:after{width:68%;background:linear-gradient(90deg,#1d426f 0%,#1d426f 72%,rgba(29,66,111,.92) 86%,rgba(29,66,111,0) 100%)}
.editable-hero .hero-copy{position:absolute;z-index:2;left:4.2%;top:8.5%;width:52%;height:84%;display:flex;flex-direction:column;align-items:flex-start;color:#fff}
.editable-hero .hero-eyebrow{margin:0 0 3%;color:#ffc84f;font-size:clamp(9px,.85vw,16px);font-weight:800;letter-spacing:.32em}
.editable-hero .hero-copy h1{margin:0;color:#fff;font-family:Georgia,'Times New Roman',serif;font-size:clamp(26px,3.7vw,68px);line-height:.98;letter-spacing:-.035em}
.editable-hero .hero-copy h1 span{color:#ffc550}
.editable-hero .hero-description{margin:3% 0 0;color:#f2f5fa;font-size:clamp(10px,1.18vw,21px);line-height:1.45}
.editable-hero .hero-copy .hero-cta-button{position:relative;inset:auto;width:auto;height:auto;min-height:50px;margin-top:4%;padding:.8em 1.4em;gap:1.6em;font-size:clamp(12px,1.15vw,20px)}
.editable-hero .hero-benefits{margin-top:auto;display:flex;align-items:center;gap:clamp(12px,2vw,34px);width:100%}
.editable-hero .hero-benefits>div{display:flex;align-items:center;gap:10px;min-width:0}
.editable-hero .hero-benefits b{color:#ffc84f;font-size:clamp(20px,2vw,35px);font-weight:500}
.editable-hero .hero-benefits span{display:flex;flex-direction:column;line-height:1.25}
.editable-hero .hero-benefits strong,.editable-hero .hero-benefits small{font-size:clamp(8px,.82vw,14px);font-weight:500;white-space:nowrap}
.high-school-hero-exact.editable-hero .hero-copy{left:5.2%;top:4.5%;width:59%;height:73%}
.high-school-hero-exact.editable-hero .hero-copy h1{font-family:'Outfit','DM Sans',Arial,sans-serif;font-weight:800;font-size:clamp(28px,4.5vw,78px);line-height:1.02}
.high-school-hero-exact.editable-hero .hero-description{font-size:clamp(10px,1.5vw,25px)}
.high-school-hero-exact.editable-hero .hero-copy .hero-cta-button{margin-top:5%;font-size:clamp(12px,1.35vw,22px)}
@media(max-width:700px){
  .editable-hero:after,.high-school-hero-exact.editable-hero:after{width:74%}
  .editable-hero .hero-copy{left:4%;top:8%;width:58%;height:84%}
  .editable-hero .hero-eyebrow{font-size:clamp(6px,1.65vw,10px)}
  .editable-hero .hero-copy h1{font-size:clamp(15px,5vw,28px)}
  .editable-hero .hero-description{font-size:clamp(6px,1.8vw,10px)}
  .editable-hero .hero-copy .hero-cta-button{min-height:26px;padding:.55em .8em;margin-top:4%;gap:.8em;font-size:clamp(7px,1.9vw,11px)}
  .editable-hero .hero-benefits{gap:6px}
  .editable-hero .hero-benefits b{display:none}
  .editable-hero .hero-benefits strong,.editable-hero .hero-benefits small{font-size:clamp(5px,1.3vw,8px)}
  .high-school-hero-exact.editable-hero .hero-copy{left:5%;top:5%;width:61%;height:76%}
  .high-school-hero-exact.editable-hero .hero-copy h1{font-size:clamp(16px,5vw,31px)}
  .high-school-hero-exact.editable-hero .hero-description{font-size:clamp(6px,1.75vw,11px)}
}

/* Clean High School hero: background contains artwork only; every left-side word is editable HTML. */
.high-school-hero-exact.editable-hero:after{display:none}
.high-school-hero-exact.editable-hero .hero-copy{top:2.5%;height:92%;width:59%}
.hero-brand-lockup{width:108%;margin:0 0 2.5% -4%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ffc84f;text-align:center}
.hero-welcome-line{display:flex;align-items:center;justify-content:center;gap:clamp(14px,1.8vw,30px);width:100%;font-size:clamp(21px,2.45vw,43px);font-weight:900;letter-spacing:.18em;white-space:nowrap}
.hero-welcome-line img{display:block;width:clamp(185px,18vw,315px);height:auto;object-fit:contain}
.hero-brand-lockup small{margin-top:-.15%;font-size:clamp(9px,.78vw,14px);font-weight:800;letter-spacing:.36em;color:#f7d471}
.high-school-hero-exact.editable-hero .hero-copy h1{font-size:clamp(27px,4.15vw,72px)}
.high-school-hero-exact.editable-hero .hero-description{margin-top:2.5%}
.high-school-hero-exact.editable-hero .hero-copy .hero-cta-button{margin-top:4%}
@media(max-width:700px){
 .high-school-hero-exact.editable-hero .hero-copy{top:3%;height:92%;width:61%}
 .hero-brand-lockup{margin-bottom:2%}
 .hero-welcome-line{gap:7px;font-size:clamp(11px,2.7vw,17px)}
 .hero-welcome-line img{width:clamp(95px,21vw,145px)}
 .hero-brand-lockup small{font-size:clamp(5px,1.15vw,8px)}
 .high-school-hero-exact.editable-hero .hero-copy h1{font-size:clamp(15px,4.65vw,29px)}
}

/* College hero branding lockup */
.college-hero-exact .hero-brand-lockup{width:104%;margin:-1% 0 1% -2%}
.college-hero-exact .hero-welcome-line{gap:clamp(8px,.8vw,14px);font-size:clamp(12px,1.35vw,24px);letter-spacing:.16em}
.college-hero-exact .hero-welcome-line img{width:clamp(110px,10.5vw,185px)}
.college-hero-exact .hero-brand-lockup small{font-size:clamp(6px,.5vw,9px);letter-spacing:.32em}
.college-hero-exact .hero-copy h1{font-size:clamp(25px,3.35vw,61px)}
.college-hero-exact .hero-description{margin-top:2%}
.college-hero-exact .hero-copy .hero-cta-button{margin-top:2.5%}
.college-hero-exact .hero-benefits strong,.college-hero-exact .hero-benefits small{white-space:normal}
@media(max-width:700px){
 .college-hero-exact .hero-welcome-line{gap:4px;font-size:clamp(6px,1.7vw,10px)}
 .college-hero-exact .hero-welcome-line img{width:clamp(55px,13vw,90px)}
 .college-hero-exact .hero-brand-lockup small{font-size:clamp(3px,.75vw,5px)}
 .college-hero-exact .hero-copy h1{font-size:clamp(12px,4vw,23px)}
}

/* Responsive College hero sizing: prevents the lower benefits from being clipped. */
.college-hero-exact{aspect-ratio:auto;height:clamp(500px,36vw,590px);min-height:500px}
.college-hero-exact .hero-copy{top:5.5%;height:89%;width:53%}
.college-hero-exact .hero-brand-lockup{width:110%;margin:-1% 0 1.5% -5%;text-align:center}
.college-hero-exact .hero-welcome-line{justify-content:center;gap:clamp(12px,1.2vw,22px);font-size:clamp(20px,1.75vw,31px);letter-spacing:.17em}
.college-hero-exact .hero-welcome-line img{width:clamp(170px,13vw,230px)}
.college-hero-exact .hero-brand-lockup small{font-size:clamp(8px,.65vw,12px)}
.college-hero-exact .hero-benefits{padding-bottom:2px}
@media(max-width:1000px){
 .college-hero-exact{height:500px;min-height:500px}
 .college-hero-exact .hero-copy{width:58%}
 .college-hero-exact .hero-copy h1{font-size:clamp(35px,5.2vw,52px)}
}
@media(max-width:700px){
 .college-hero-exact{height:420px;min-height:420px}
 .college-hero-exact .hero-copy{left:4%;top:4%;width:62%;height:92%}
 .college-hero-exact .hero-brand-lockup{width:106%;margin:0 0 2% -3%}
 .college-hero-exact .hero-welcome-line{gap:6px;font-size:clamp(10px,2.9vw,16px)}
 .college-hero-exact .hero-welcome-line img{width:clamp(90px,24vw,135px)}
 .college-hero-exact .hero-brand-lockup small{font-size:clamp(5px,1.2vw,8px)}
 .college-hero-exact .hero-copy h1{font-size:clamp(23px,6.3vw,34px)}
 .college-hero-exact .hero-description{font-size:clamp(8px,2vw,11px)}
 .college-hero-exact .hero-benefits{flex-wrap:wrap;row-gap:5px}
}

/* College hero composition correction */
.college-hero-exact>img{object-position:right center}
.college-hero-exact .hero-copy{left:4%;width:52%}
.college-hero-exact .hero-brand-lockup{width:100%;margin:-1% 0 4%;align-self:center}
.college-hero-exact .hero-welcome-line{width:100%;justify-content:center}
.college-hero-exact .hero-copy h1{margin-top:0}
@media(max-width:1000px){
 .college-hero-exact .hero-copy{left:4%;width:56%}
 .college-hero-exact .hero-brand-lockup{width:100%;margin:0 0 4%}
}
@media(max-width:700px){
 .college-hero-exact>img{object-position:72% center}
 .college-hero-exact .hero-copy{left:4%;width:61%}
 .college-hero-exact .hero-brand-lockup{width:100%;margin:0 0 5%}
}

/* Final College hero spacing and artwork visibility */
.college-hero-exact.editable-hero:after{
 width:62%;
 background:linear-gradient(90deg,#09243d 0%,#09243d 58%,rgba(9,36,61,.9) 72%,rgba(9,36,61,.45) 86%,rgba(9,36,61,0) 100%);
}
.college-hero-exact .hero-copy{top:4%;height:92%}
.college-hero-exact .hero-brand-lockup{margin:0 0 6%}
.college-hero-exact .hero-copy h1,
.college-hero-exact .hero-description,
.college-hero-exact .hero-copy .hero-cta-button{flex-shrink:0}
.college-hero-exact .hero-benefits{margin-top:auto}
@media(max-width:1000px){
 .college-hero-exact .hero-brand-lockup{margin-bottom:7%}
 .college-hero-exact.editable-hero:after{width:66%}
}
@media(max-width:700px){
 .college-hero-exact .hero-brand-lockup{margin-bottom:8%}
 .college-hero-exact.editable-hero:after{width:72%}
}

/* Generated subject artwork is scoped to College cards only. */
.college-subject-visual .college-subject-art{display:block;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(7,29,54,.14))}
.college-subject-visual .medicine-art{max-height:74px;max-width:76px}
.college-subject-visual .economics-art{max-height:72px;max-width:128px}
.college-subject-visual .physics-art{max-height:70px;max-width:138px}

/* Dark College dashboard cards for stronger text and artwork contrast. */
.college-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.college-subject{
 color:#fff;
 border-color:rgba(255,255,255,.13);
 box-shadow:0 10px 24px rgba(7,29,54,.13);
}
.college-subject:nth-child(1){background:linear-gradient(145deg,#183f67,#0d2d4d)}
.college-subject:nth-child(2){background:linear-gradient(145deg,#5a471d,#34280e)}
.college-subject:nth-child(3){background:linear-gradient(145deg,#642e35,#3d1c23)}
.college-subject:nth-child(4){background:linear-gradient(145deg,#315a37,#1e3d25)}
.college-subject:nth-child(5){background:linear-gradient(145deg,#463765,#2f2449)}
.college-subject:nth-child(6){background:linear-gradient(145deg,#1b5c58,#103d3a)}
.college-subject h3{color:#fff}
.college-subject p{color:#dce7f3}
.college-subject-visual{background:rgba(255,255,255,.07);border-radius:10px}
.college-subject-visual .college-subject-art{filter:drop-shadow(0 6px 10px rgba(0,0,0,.3))}
.college-shortcuts article{
 color:#fff;
 border:1px solid rgba(255,255,255,.12);
 box-shadow:0 9px 22px rgba(7,29,54,.12);
}
.college-shortcuts article:nth-child(1){background:linear-gradient(135deg,#2b3768,#1d2853)}
.college-shortcuts article:nth-child(2){background:linear-gradient(135deg,#5b461d,#3f3012)}
.college-shortcuts article:nth-child(3){background:linear-gradient(135deg,#2b5736,#1d4028)}
.college-shortcuts article>span{color:#fff;background:rgba(133,157,255,.24)}
.college-shortcuts article:nth-child(2)>span{color:#ffe19a;background:rgba(255,198,65,.2)}
.college-shortcuts article:nth-child(3)>span{color:#c9f3c4;background:rgba(125,205,111,.2)}
.college-shortcuts h3{color:#fff}
.college-shortcuts p{color:#dce7f3}
@media(max-width:1050px){.college-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.college-subject-grid{grid-template-columns:1fr 1fr}}


/* Dark High School subject cards, scoped away from the College dashboard. */
.high-school-subject-card{
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 24px rgba(7,29,54,.15);
}
.high-school-subject-card:nth-child(1){background:linear-gradient(145deg,#183f67,#0d2d4d)}
.high-school-subject-card:nth-child(2){background:linear-gradient(145deg,#5a471d,#34280e)}
.high-school-subject-card:nth-child(3){background:linear-gradient(145deg,#642e35,#3d1c23)}
.high-school-subject-card:nth-child(4){background:linear-gradient(145deg,#315a37,#1e3d25)}
.high-school-subject-card h3{color:#fff}
.high-school-subject-card p{color:#dce7f3}
.high-school-subject-card .icon{
  color:#fff;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.1);
}
.high-school-subject-card:hover{
  border-color:rgba(255,255,255,.28);
  box-shadow:0 14px 30px rgba(7,29,54,.22);
}


/* Dark High School learning cards with clear, accessible contrast. */
.high-school-learning-cards .feature-list{
  background:linear-gradient(145deg,#102f50,#09243d);
  border-color:rgba(255,255,255,.12);
  box-shadow:0 10px 26px rgba(7,29,54,.16);
}
.high-school-learning-cards .mini{
  border-color:rgba(255,255,255,.12);
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.high-school-learning-cards .mini:nth-child(1){background:linear-gradient(135deg,#294f7d,#18395f)}
.high-school-learning-cards .mini:nth-child(2){background:linear-gradient(135deg,#493a6e,#302653)}
.high-school-learning-cards .mini:nth-child(3){background:linear-gradient(135deg,#245848,#173d32)}
.high-school-learning-cards .mini b{color:#fff}
.high-school-learning-cards .mini small{color:#dce7f3}
.high-school-learning-cards .mini .icon{
  color:#ffd05a;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.1);
}
.high-school-learning-cards .banner{
  color:#fff;
  background:linear-gradient(145deg,#5b461d,#34280e);
  border-color:rgba(255,214,112,.24);
  box-shadow:0 10px 26px rgba(71,49,10,.18);
}
.high-school-learning-cards .banner h3{color:#fff}
.high-school-learning-cards .banner p{color:#f4ead1}
.high-school-learning-cards .banner .icon{
  color:#ffd05a;
  background:rgba(255,255,255,.1);
}
.high-school-learning-cards .mini:hover{
  border-color:rgba(255,255,255,.28);
  box-shadow:0 9px 22px rgba(0,0,0,.2);
}


/* Gold challenge-points badge and an opaque, non-overlapping admin menu. */
.challenge-card-meta .challenge-points{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  color:#102d54;
  font-size:15px;
  font-weight:900;
  white-space:nowrap;
}
.challenge-points-coin{
  display:inline-grid;
  place-items:center;
  width:40px;
  height:34px;
  border-radius:9px;
  background:linear-gradient(145deg,#ffe9a2,#ffd15b);
  color:#7b5700;
  font-size:17px;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(160,108,0,.08);
}
.problem-menu-list{
  min-width:188px;
  padding:9px;
  background:#fffdf9;
  border:1px solid #e1e6ee;
  border-radius:13px;
  box-shadow:0 16px 36px rgba(11,23,48,.24);
  isolation:isolate;
}
.problem-menu-list button{
  position:relative;
  z-index:1;
  padding:10px 12px;
  color:#102d54;
  background:#fffdf9;
}
.problem-menu-list button:hover{background:#f1f5fa}
.problem-menu-list .danger-text{color:#bd3042}
.problem-menu:has(.problem-menu-list:not([hidden]))~h3{margin-top:18px}
@media(max-width:700px){
  .challenge-card-meta .challenge-points{margin-left:0}
  .challenge-points-coin{width:36px;height:31px}
}


/* High School hero: Nunyanya-first brand hierarchy from the approved mockup. */
.high-school-hero-exact.editable-hero .high-school-brand-lockup{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  margin:0 0 4%;
  text-align:center;
  flex-shrink:0;
}
.high-school-hero-exact .high-school-welcome{
  color:#ffc94f;
  font-size:clamp(20px,2.25vw,40px);
  font-weight:800;
  line-height:1;
  letter-spacing:.18em;
  white-space:nowrap;
}
.high-school-hero-exact .high-school-nunyanya-logo{
  display:block;
  width:clamp(330px,43vw,760px);
  max-width:100%;
  height:auto;
  margin:2.2% auto 1.5%;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.22));
}
.high-school-hero-exact .high-school-brand-lockup small{
  color:#ffc94f;
  font-size:clamp(8px,.82vw,14px);
  font-weight:800;
  line-height:1;
  letter-spacing:.28em;
}
.high-school-hero-exact.editable-hero .hero-copy h1{
  font-size:clamp(25px,3.25vw,56px);
  line-height:1.04;
  margin-top:0;
}
.high-school-hero-exact.editable-hero .hero-description{margin-top:2.2%}
.high-school-hero-exact.editable-hero .hero-copy .hero-cta-button{margin-top:3%}
@media(max-width:1000px){
  .high-school-hero-exact .high-school-welcome{font-size:clamp(17px,2.5vw,27px)}
  .high-school-hero-exact .high-school-nunyanya-logo{width:clamp(270px,44vw,470px)}
  .high-school-hero-exact.editable-hero .hero-copy h1{font-size:clamp(22px,3.6vw,39px)}
}
@media(max-width:700px){
  .high-school-hero-exact.editable-hero .hero-copy{top:3%;height:94%;width:63%}
  .high-school-hero-exact.editable-hero .high-school-brand-lockup{margin-bottom:4%}
  .high-school-hero-exact .high-school-welcome{font-size:clamp(9px,3vw,15px);letter-spacing:.13em}
  .high-school-hero-exact .high-school-nunyanya-logo{width:clamp(155px,49vw,285px);margin:2.5% auto 2%}
  .high-school-hero-exact .high-school-brand-lockup small{font-size:clamp(4px,1.25vw,7px);letter-spacing:.2em}
  .high-school-hero-exact.editable-hero .hero-copy h1{font-size:clamp(14px,4.25vw,25px)}
}


/* Tighten the High School brand stack and keep the CTA inside the hero. */
.high-school-hero-exact.editable-hero .high-school-brand-lockup{margin-bottom:1%}
.high-school-hero-exact .high-school-nunyanya-logo{
  margin:-7.5% auto -7.5%;
}
.high-school-hero-exact.editable-hero .hero-description{margin-top:1.4%;margin-bottom:0}
.high-school-hero-exact.editable-hero .hero-copy .hero-cta-button{
  display:flex;
  flex-shrink:0;
  margin-top:2%;
}
@media(max-width:1000px){
  .high-school-hero-exact .high-school-nunyanya-logo{margin:-7% auto -7%}
}
@media(max-width:700px){
  .high-school-hero-exact.editable-hero .high-school-brand-lockup{margin-bottom:.5%}
  .high-school-hero-exact .high-school-nunyanya-logo{margin:-7.5% auto -7.5%}
  .high-school-hero-exact.editable-hero .hero-description{margin-top:1%}
  .high-school-hero-exact.editable-hero .hero-copy .hero-cta-button{margin-top:1.5%}
}


/* Final High School headline scale and vertical position. */
.high-school-hero-exact.editable-hero .hero-copy h1{
  margin-top:10.5%;
  font-size:clamp(19px,2.15vw,37px);
}
@media(max-width:1000px){
  .high-school-hero-exact.editable-hero .hero-copy h1{
    margin-top:8.5%;
    font-size:clamp(17px,2.5vw,27px);
  }
}
@media(max-width:700px){
  .high-school-hero-exact.editable-hero .hero-copy h1{
    margin-top:8%;
    font-size:clamp(11px,3vw,17px);
  }
}


/* Podium hierarchy: crown and elevation for the first-place student. */
.league-place-1{
  z-index:2;
  overflow:visible;
  transform:translateY(-24px);
}
.league-place-1:hover{transform:translateY(-30px)}
.league-place-1:active{transform:translateY(-25px) scale(.985)}
.league-winner-crown{
  position:absolute;
  z-index:3;
  top:-7px;
  left:50%;
  width:82px;
  height:auto;
  transform:translateX(-50%) rotate(-3deg);
  pointer-events:none;
  filter:drop-shadow(0 7px 8px rgba(0,0,0,.28));
}
@media(max-width:800px){
  .league-podium{padding-top:30px}
  .league-place-1{transform:translateY(-12px)}
  .league-place-1:hover{transform:translateY(-16px)}
  .league-place-1:active{transform:translateY(-12px) scale(.985)}
  .league-winner-crown{top:-5px;width:66px}
}
@media(prefers-reduced-motion:reduce){
  .league-winner{transition:none}
}


/* Final High School description scale. */
.high-school-hero-exact.editable-hero .hero-description{
  font-size:clamp(9px,1.15vw,19px);
}
@media(max-width:1000px){
  .high-school-hero-exact.editable-hero .hero-description{
    font-size:clamp(8px,1.45vw,16px);
  }
}
@media(max-width:700px){
  .high-school-hero-exact.editable-hero .hero-description{
    font-size:clamp(6px,1.55vw,9px);
  }
}

/* Problem video + answer reveal */
.admin-video-toggle{margin-top:12px;padding:12px 14px;border:1px solid #d8e2ef;border-radius:10px;background:#f9fbfe}
.admin-video-upload{margin-top:10px;min-height:72px;border:1px dashed #6e9fd8;border-radius:10px;display:flex!important;align-items:center;justify-content:center;grid-template-columns:auto auto;gap:12px!important;cursor:pointer;background:#f7fbff;text-align:left;position:relative;color:#17355f}
.admin-video-upload[hidden]{display:none!important}
.admin-video-upload input{position:absolute;width:1px;height:1px;opacity:0}
.admin-video-upload span{display:grid}
.problem-video-wrap{margin:18px 0}
.problem-video{display:block;width:100%;max-height:520px;border-radius:14px;background:#08172a;box-shadow:0 8px 24px rgba(11,35,66,.14)}
.submitted-answer-state{display:grid;gap:12px}
.view-answer-button{justify-self:start;padding:9px 14px;border-radius:9px;font-weight:800}
.correct-answer-panel{margin-top:2px;border:1px solid #cfe0d5;border-radius:13px;background:#f7fcf8;overflow:hidden}
.correct-answer-panel[hidden]{display:none}
.correct-answer-heading{display:flex;align-items:center;gap:9px;padding:11px 14px;background:#e9f7ed;color:#176d42;border-bottom:1px solid #cfe0d5}
.correct-answer-heading span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#1f9a5b;color:#fff;font-weight:900}
.correct-answer-text{padding:15px 16px;color:#102d4e;font-weight:700;line-height:1.6}
.correct-answer-explanation{padding:0 16px 15px;color:#405a73;line-height:1.6}
.correct-answer-explanation>strong{display:block;margin-bottom:5px;color:#17355f}
#problemEditVideoStatus{display:block;margin:-4px 0 8px}
@media(max-width:700px){
  .problem-video{max-height:360px}
  .admin-toggle-grid{grid-template-columns:1fr}
}

/* Phone landscape: keep the navigation as a slide-out menu instead of the tablet icon rail */
@media (max-width:950px) and (pointer:coarse){
  .sidebar{position:fixed;z-index:20;width:260px;transform:translateX(-100%);transition:transform .2s}
  .sidebar.open{transform:translateX(0)}
  .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:19;background:rgba(7,22,43,.48);opacity:0;pointer-events:none;transition:opacity .2s}
  .sidebar.open+.sidebar-backdrop{opacity:1;pointer-events:auto}
  .sidebar .brand{font-size:24px;justify-content:start;padding:0 12px 35px}
  .sidebar .brand small,.sidebar nav button span,.sidebar .sidefoot{display:block}
  .sidebar nav button{justify-content:start}
  #menu{display:block}
  .top>.eyebrow{display:none}
}

/* Mobile sidebar must be vertically scrollable so every navigation item is reachable */
@media (max-width:950px) and (pointer:coarse){
  .sidebar{
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding-bottom:28px;
  }
  .sidebar nav{flex:none}
  .sidebar .sidefoot{flex:none}
}

/* Keep the bottom of the mobile navigation clear of the browser/system bars */
@media (max-width:950px) and (pointer:coarse){
  .sidebar{
    height:100dvh;
    max-height:100dvh;
    padding-bottom:calc(96px + env(safe-area-inset-bottom));
  }
  .sidebar .sidefoot{
    padding-bottom:calc(24px + env(safe-area-inset-bottom));
  }
}

/* Keep student answer text clear on iPad, iPhone landscape and touch tablets.
   This intentionally overrides system dark-theme form colors because the answer editor itself is white. */
.challenge-solution-editor,
html[data-theme="dark"] .challenge-solution-editor{
  background:#fff!important;
  color:#102c50!important;
  -webkit-text-fill-color:#102c50!important;
  caret-color:#102c50!important;
  opacity:1!important;
  font-size:16px!important;
  font-weight:500;
  text-shadow:none!important;
  -webkit-appearance:none;
  appearance:none;
}
.challenge-solution-editor::placeholder,
html[data-theme="dark"] .challenge-solution-editor::placeholder{
  color:#718096!important;
  -webkit-text-fill-color:#718096!important;
  opacity:1!important;
}
.challenge-solution-editor:focus,
html[data-theme="dark"] .challenge-solution-editor:focus{
  border-color:#2f6fb4!important;
  box-shadow:0 0 0 3px rgba(47,111,180,.16)!important;
  outline:none!important;
}
@media (min-width:701px) and (max-width:1180px){
  .daily-challenge-layout{grid-template-columns:1fr!important}
  .challenge-sidebar{position:static!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  .challenge-problem-card{min-width:0}
  .challenge-answer-form{min-width:0}
  .challenge-solution-editor{width:100%;max-width:100%}
}
@media (max-width:900px){
  .challenge-sidebar{grid-template-columns:1fr!important}
}


/* Pair comparison questions */
.pair-builder-area{margin:14px 0;padding:14px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fbfe}
.pair-builder-area[hidden]{display:none!important}
.pair-builder-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.pair-builder-intro>div{display:grid;gap:3px}
.pair-builder-intro small{color:#64748b}
.pair-builder-list{display:grid;gap:14px}
.pair-builder-row{padding:14px;border:1px solid #d8e2ec;border-radius:13px;background:#fff}
.pair-builder-head{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.pair-builder-head strong{display:grid;place-items:center;min-width:30px;height:30px;border-radius:8px;background:#102f50;color:#fff}
.pair-builder-head span{font-weight:800;color:#17355f}
.pair-remove{margin-left:auto;border:0;background:#fff1f2;color:#b42335;width:34px;height:34px;border-radius:9px;font-size:20px;cursor:pointer}
.pair-builder-options{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end}
.pair-builder-options label,.pair-guide{display:grid;gap:6px}
.pair-builder-options input,.pair-guide textarea{width:100%}
.pair-vs{font-weight:900;color:#6b7f95;padding-bottom:12px}
.pair-builder-correct{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0}
.pair-builder-correct>span{font-weight:800;color:#17355f}
.pair-builder-correct label{display:flex;align-items:center;gap:7px;margin:0}
.pair-guide small{font-weight:500;color:#718096}

.student-pair-list{display:grid;gap:18px}
.student-pair{margin:0;padding:16px;border:1px solid #d8e2ef;border-radius:15px;background:#fbfdff}
.student-pair legend{padding:0 7px;font-weight:800;color:#17355f}
.student-pair legend span{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:6px;border-radius:8px;background:#102f50;color:#fff}
.student-pair-options{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:stretch}
.student-pair-option{position:relative;margin:0;cursor:pointer}
.student-pair-option input{position:absolute;opacity:0;pointer-events:none}
.student-pair-option>span{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;height:100%;padding:14px;border:2px solid #d7e1ec;border-radius:12px;background:#fff;color:#17355f;transition:border-color .15s,background .15s,box-shadow .15s}
.student-pair-option b{line-height:1.35}
.student-pair-option i{display:none;flex:none;width:26px;height:26px;border-radius:50%;background:#1f8a55;color:#fff;font-style:normal;font-weight:900;text-align:center;line-height:26px}
.student-pair-option input:checked+span{border-color:#2e6ca9;background:#eef6ff;box-shadow:0 0 0 3px rgba(46,108,169,.10)}
.student-pair-option input:checked+span i{display:block}
.student-pair-option input:focus-visible+span{outline:3px solid rgba(46,108,169,.24);outline-offset:2px}
.student-pair-vs{align-self:center;font-size:12px;font-weight:900;color:#7b8ea3}
.student-pair-reason{display:grid;gap:7px;margin-top:12px}
.student-pair-reason>span{font-weight:800;color:#17355f}
.student-pair-reason textarea{width:100%;min-height:82px;background:#fff;color:#102c50;-webkit-text-fill-color:#102c50}
.pair-correct-list{margin:0;padding-left:22px;display:grid;gap:12px}
.pair-correct-list li{padding-left:4px}
.pair-correct-list small{display:block;margin-top:4px;color:#50677f;font-weight:500}

@media(max-width:700px){
  .pair-builder-intro{align-items:flex-start;flex-direction:column}
  .pair-builder-options,.student-pair-options{grid-template-columns:1fr}
  .pair-vs,.student-pair-vs{text-align:center;padding:0}
  .student-pair-option>span{min-height:58px}
}


/* Pair answer review shown immediately after submission */
.pair-answer-panel{margin-top:10px}
.pair-review-list{display:grid;gap:16px}
.pair-review-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px 12px;padding:14px;border:1px solid #d9e4ee;border-radius:12px;background:#fff}
.pair-review-label{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#102f50;color:#fff;font-weight:900}
.pair-review-options{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:9px;align-items:stretch}
.pair-review-option{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:58px;padding:12px 13px;border:2px solid #dbe4ed;border-radius:11px;background:#f9fbfd;color:#17355f}
.pair-review-option b{font-size:12px;white-space:nowrap}
.pair-review-option.correct{border-color:#2f9b62;background:#eef9f2}
.pair-review-option.correct b{color:#197447}
.pair-review-option.mine:not(.correct){border-color:#d96b75;background:#fff3f4}
.pair-review-option.mine:not(.correct) b{color:#b53b49}
.pair-review-vs{align-self:center;font-size:12px;font-weight:900;color:#7b8ea3}
.pair-review-guide{grid-column:2;display:grid;gap:4px;padding:10px 12px;border-radius:9px;background:#f5f8fb;color:#415a73}
.pair-review-guide strong{color:#17355f}
@media(max-width:700px){
  .pair-review-row{grid-template-columns:1fr}
  .pair-review-label{margin-bottom:2px}
  .pair-review-options{grid-template-columns:1fr}
  .pair-review-vs{text-align:center}
  .pair-review-guide{grid-column:1}
}


/* Pair marking guide toggle */
.pair-guide-toggle-row{margin-top:10px}
.pair-guide-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:1px solid #d8e2ec;border-radius:10px;background:#f8fbfe;color:#17355f;font:inherit;font-weight:800;cursor:pointer;text-align:left}
.pair-guide-toggle small{font-weight:600;color:#7b8ea3}
.pair-guide-toggle[aria-expanded="true"]{background:#eef6ff;border-color:#b9d0e8}
.pair-guide[hidden]{display:none!important}
@media(max-width:700px){
  .pair-guide-toggle{align-items:flex-start;flex-direction:column}
}


/* Pair comparison scoring notice */
.pair-score-notice{display:grid;gap:4px;margin:0 0 14px;padding:12px 14px;border:1px solid #c9e1d2;border-radius:11px;background:#f1fbf5;color:#214d35}
.pair-score-notice strong{font-size:14px}
.pair-score-notice span{font-size:13px;line-height:1.45}
.pair-score-notice.warning{border-color:#efd08a;background:#fff8e7;color:#6b4b06}
.pair-score-notice.warning strong{color:#8a5d00}
