*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial;color:#171717;background:#fff}a{text-decoration:none;color:inherit}.wrap{max-width:1180px;margin:auto;padding:0 20px}.nav{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee}.brand{font-weight:900;font-size:24px;color:#f97316}.links{display:flex;gap:22px;align-items:center}.btn{display:inline-block;background:#f97316;color:#fff;padding:12px 18px;border-radius:10px;border:0;font-weight:800;cursor:pointer}.btn2{background:#fff;color:#f97316;border:1px solid #f97316}.hero{padding:78px 0;background:linear-gradient(180deg,#fff7ed,#fff)}h1{font-size:52px;line-height:1.05;margin:0 0 18px}.muted{color:#666}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{border:1px solid #e9e9e9;border-radius:16px;padding:20px;background:#fff;box-shadow:0 6px 22px #00000008}.section{padding:55px 0}.orange{background:#f97316;color:white}.badge{display:inline-block;padding:5px 9px;border-radius:99px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:800}.q{margin:12px 0}.option{display:block;padding:9px;border:1px solid #eee;border-radius:8px;margin:7px 0}.form input,.form select,.form textarea{width:100%;padding:11px;margin:6px 0 14px;border:1px solid #ddd;border-radius:9px}.form textarea{min-height:100px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.side{background:#171717;color:white;padding:22px}.side a{display:block;padding:10px;border-radius:8px;margin:3px 0}.side a:hover{background:#333}.main{padding:28px;background:#fafafa}.table{width:100%;border-collapse:collapse;background:white}.table th,.table td{padding:10px;border-bottom:1px solid #eee;text-align:left;font-size:14px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi{background:white;border:1px solid #eee;border-radius:14px;padding:18px}.notice{padding:12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;margin:12px 0}@media(max-width:800px){.links{display:none}.grid,.kpis,.two{grid-template-columns:1fr}.admin{grid-template-columns:1fr}.side{position:relative}h1{font-size:38px}}.brandLogo{display:flex;align-items:center;gap:9px;text-decoration:none}.brandLogo img{width:46px;height:46px;border-radius:50%;object-fit:cover}.brandLogo>span{font-weight:900;color:#0b2b63;font-size:21px}.brandLogo>span span{color:#f97316}.inlineForm{display:inline}.linkBtn,.dangerLink{border:0;background:none;padding:0;font:inherit;cursor:pointer;text-decoration:underline;color:#0b2b63}.dangerLink{color:#b42318}
@media(max-width:760px){.brandLogo img{width:40px;height:40px}.brandLogo>span{font-size:18px}}
.testShell{max-width:1180px}.testTop{position:sticky;top:0;z-index:5;background:#fff;border:1px solid #eee;border-radius:14px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.timer{font-size:24px;font-weight:900;color:#0b2b63}.timer.danger{color:#b42318}.testGrid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.testQuestion{display:none;min-height:420px}.testOption{padding:14px;cursor:pointer}.testOption:has(input:checked){border:2px solid #f97316;background:#fff7ed}.testActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.palette{height:max-content;position:sticky;top:90px}.paletteGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.paletteGrid button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:9px;cursor:pointer}.paletteGrid button.answered{background:#16a34a;color:#fff;border-color:#16a34a}.paletteGrid button.review{background:#7c3aed;color:#fff;border-color:#7c3aed}.dot{display:inline-block;width:10px;height:10px;border-radius:50%}.dot.ans{background:#16a34a}.dot.rev{background:#7c3aed}.correctOption{background:#dcfce7!important;border:2px solid #16a34a!important}.wrongOption{background:#fee2e2!important;border:2px solid #dc2626!important}.greenText{color:#16a34a}.redText{color:#dc2626}.solution{margin-top:12px;padding:12px;border-radius:10px;background:#f8fafc}.qimg{max-width:100%;height:auto;border-radius:10px}@media(max-width:800px){.testGrid{grid-template-columns:1fr}.palette{position:static}.testTop{top:0}.testTop .btn{padding:9px 11px}.timer{font-size:19px}}
.softBg{background:#f7f8fc}.filterBar{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 22px}.filterBar select,.filterBar input{padding:11px 14px;border:1px solid #dbe1ea;border-radius:9px;background:#fff;min-width:140px}.filterBar .durationInput{width:150px}.miniTag{background:#f7f7fb;color:#58607a;border-radius:99px;padding:5px 10px;font-size:12px}.tagRow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.practiceCard .option{padding:14px}.practiceActions{display:flex;gap:8px;align-items:center;margin-top:14px}.spacer{flex:1}.btn:disabled{opacity:.45;cursor:not-allowed}.crumb{color:#7c5cff;margin-bottom:18px}.testListCard{display:flex;align-items:center;justify-content:space-between;border:1px solid #dfe4ee;border-radius:16px;padding:18px 20px;background:#fff;margin:14px 0}.testListCard h3{margin:0 0 8px}.navyBtn{background:#0d1f5c;color:#fff;padding:12px 20px;border-radius:99px;font-weight:800}.freeBadge,.premiumBadge{display:inline-block;padding:5px 10px;border-radius:7px;font-size:11px;font-weight:800}.freeBadge{background:#d1fae5;color:#047857}.premiumBadge{background:#fff7ed;color:#ff5a00}.productGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.productCard{border:1px solid #dfe4ee;border-radius:16px;overflow:hidden;background:#fff}.productCover{height:120px;background:linear-gradient(110deg,#334bc4,#714af0);position:relative;display:grid;place-items:center}.productCover .freeBadge,.productCover .premiumBadge{position:absolute;right:10px;top:10px;background:#fff}.bookIcon{font-size:30px;color:#20d5c2}.productBody{padding:18px}.productBody h3{min-height:48px}.price{font-size:20px;margin:8px 0 14px}.price s{font-size:13px;color:#666}.fullBtn{display:block;text-align:center;border-radius:99px}.tableWrap{overflow:auto}.history th{font-size:12px;color:#505879}.analysisRow{display:grid;grid-template-columns:1.5fr 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e6e9ef;border-radius:12px;padding:14px;margin:9px 0}.weakStatus,.strongStatus,.sampleStatus{padding:6px 9px;border-radius:99px;font-size:12px;font-weight:800}.weakStatus{background:#fee2e2;color:#b91c1c}.strongStatus{background:#dcfce7;color:#15803d}.sampleStatus{background:#f1f5f9;color:#475569}@media(max-width:800px){.productGrid{grid-template-columns:1fr}.testListCard{align-items:flex-start;gap:16px;flex-direction:column}.practiceActions{flex-wrap:wrap}.spacer{display:none}.analysisRow{grid-template-columns:1fr}.filterBar>*{flex:1 1 140px}}
.mixNumber{display:flex;align-items:center;gap:8px;border:1px solid #d9e0ec;border-radius:10px;padding:0 10px;background:#fff}.mixNumber span{font-size:12px;color:#59627a}.mixNumber input{border:0!important;min-width:76px;width:90px;padding:11px 4px!important;outline:0}.siteFooter{background:#0d173f;color:#fff;margin-top:48px}.footerGrid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:48px;padding:48px 24px 38px}.footerGrid>div{display:flex;flex-direction:column;gap:10px}.footerGrid a,.footerGrid p{color:#9fb7ff;text-decoration:none;margin:0}.footerGrid b{color:#fff;margin-bottom:4px}.footerBrand{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-size:20px}.footerBrand img{width:30px;height:30px;border-radius:50%;object-fit:cover}.footerBottom{border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;color:#89a4ef;padding:20px 24px 28px;font-size:14px}@media(max-width:800px){.footerGrid{grid-template-columns:1fr 1fr;gap:30px}.footerGrid>div:first-child{grid-column:1/-1}.footerBottom{flex-direction:column;gap:8px}.mixNumber{width:100%;box-sizing:border-box}.mixNumber input{flex:1}}
.googleBtn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;border:1px solid #d9dde3;border-radius:10px;background:#fff;color:#171717;text-decoration:none}.googleBtn:hover{border-color:#b8bec8;box-shadow:0 1px 3px rgba(0,0,0,.08)}.googleG{font-weight:800;font-size:20px;color:#4285f4}.authOr{display:flex;align-items:center;gap:12px;color:#777;margin:18px 0}.authOr span{height:1px;background:#e3e3e3;flex:1}.authOr b{font-size:12px}

/* V3.4 student identity/profile */
.profileMenu{position:relative}.profileMenu summary{list-style:none;display:flex;align-items:center;gap:7px;cursor:pointer;font-weight:800;color:#0b2b63}.profileMenu summary::-webkit-details-marker{display:none}.profileAvatar,.dashboardAvatar{display:grid;place-items:center;border-radius:50%;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-weight:900}.profileAvatar{width:34px;height:34px;font-size:13px}.profileDropdown{position:absolute;right:0;top:44px;z-index:20;width:260px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.14);padding:10px}.profileDropdown>a,.profileDropdown .profileLogout{display:block;width:100%;padding:10px 11px;border-radius:9px;text-align:left}.profileDropdown>a:hover,.profileDropdown .profileLogout:hover{background:#fff7ed}.profileIdentity{padding:8px 10px 12px;border-bottom:1px solid #eee;margin-bottom:4px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.profileIdentity span{font-size:12px;color:#667085}.profileIdentity small{font-size:12px;color:#c2410c}.profileLogout{border:0;background:#fff;color:#b42318;font:inherit;cursor:pointer}.dashboardIdentity{display:flex;align-items:center;gap:16px;margin-bottom:22px}.dashboardIdentity h1{margin:0 0 5px}.dashboardIdentity p{margin:0}.dashboardAvatar{width:58px;height:58px;font-size:22px;flex:0 0 58px}
@media(max-width:1050px){.links{gap:14px;font-size:14px}.profileName{display:none}}

/* V3.5 core workflow polish */
.warningNotice{background:#fff1f2!important;border-color:#fecdd3!important;color:#9f1239}.resultTitle,.performanceHead,.recentAttempt,.mistakeRow,.analysisMini{display:flex;align-items:center;justify-content:space-between;gap:14px}.resultTitle h1,.performanceHead h1{margin-bottom:6px}.rangeTabs{display:flex;gap:8px;flex-wrap:wrap}.rangeTabs a{padding:8px 12px;border:1px solid #dbe1ea;border-radius:99px;background:#fff;color:#475569;font-weight:700;font-size:13px}.rangeTabs a.active{background:#0d1f5c;color:#fff;border-color:#0d1f5c}.performanceKpis{grid-template-columns:repeat(4,1fr);margin-bottom:28px}.twoPerf{display:grid;grid-template-columns:1fr 1fr;gap:18px}.twoPerf .card{margin-bottom:10px}.recentAttempt,.mistakeRow,.analysisMini{margin:10px 0}.recentAttempt>a,.mistakeRow>a,.analysisMini>a{color:#0b2b63;font-weight:800;white-space:nowrap}.searchBar{display:flex;gap:10px;margin:18px 0 24px}.searchBar input{flex:1;min-width:0;padding:13px 14px;border:1px solid #dbe1ea;border-radius:10px;font-size:16px}.searchResult{display:flex;align-items:center;gap:12px;margin:10px 0}.materialDetail h1{font-size:40px;margin-top:14px}.practiceActions form{margin:0}
@media(max-width:900px){.performanceKpis{grid-template-columns:repeat(2,1fr)}.performanceHead,.resultTitle{align-items:flex-start;flex-direction:column}.twoPerf{grid-template-columns:1fr}.recentAttempt,.mistakeRow,.analysisMini{align-items:flex-start;flex-direction:column}.searchBar{flex-direction:column}}
@media(max-width:560px){.performanceKpis{grid-template-columns:1fr}.materialDetail h1{font-size:34px}}

/* V3.6 practice / PYQ Mix / saved-question polish */
.practiceContext,.practiceNav,.savedHead,.savedQuestion,.savedActions{display:flex;align-items:center;justify-content:space-between;gap:12px}.practiceContext{margin-bottom:12px}.compactBtn{padding:8px 12px}.answerStatus{margin-top:12px;padding:10px 12px;border-radius:10px;font-weight:800}.answerGood{background:#dcfce7;color:#166534;border:1px solid #86efac}.answerBad{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.savedHead{margin-bottom:18px}.savedQuestion{margin:12px 0}.savedQuestion>div:first-child{min-width:0}.savedActions{flex:0 0 auto}.savedActions form{margin:0}.trendList{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0 28px}.trendItem{background:#fff;border:1px solid #e6e9ef;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:5px}.trendItem span{font-weight:800}.trendItem b{color:#0d1f5c}.trendItem small{color:#667085}.mixBar button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:850px){.trendList{grid-template-columns:repeat(2,1fr)}.savedQuestion,.savedHead{align-items:flex-start;flex-direction:column}.savedActions{width:100%;justify-content:flex-start}.practiceNav{flex-wrap:wrap}}
@media(max-width:520px){.trendList{grid-template-columns:1fr}.savedActions{flex-direction:column;align-items:stretch}.savedActions .btn{width:100%;text-align:center}.practiceNav{align-items:stretch;flex-direction:column}.practiceNav .btn{width:100%;text-align:center}}
.materialBadges{position:absolute;top:10px;right:10px;display:flex;gap:6px;align-items:center}.productCover .materialBadges .freeBadge,.productCover .materialBadges .premiumBadge{position:static}.materialCoverImg{width:100%;height:100%;object-fit:cover}.materialDetailCover{width:100%;max-height:320px;object-fit:cover;border-radius:12px;margin-bottom:16px}.materialActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.adminCoverPreview{width:110px;height:80px;object-fit:cover;border-radius:10px;border:1px solid #ddd}.linkBtn:disabled{opacity:.4;cursor:not-allowed;text-decoration:none}
