:root{--ink:#172033;--muted:#667085;--line:#e5e7eb;--bg:#f6f8fc;--brand:#3157e5;--brand2:#2446c7;--green:#178447;--red:#b42318;--amber:#b26a00;--purple:#7a45c2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{text-decoration:none;color:inherit}.site-header{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:30}.site-brand{font-size:22px;font-weight:850;color:var(--brand)}.site-header nav{display:flex;gap:18px}.student-wrap{width:min(1180px,calc(100% - 28px));margin:30px auto}.catalog-hero{padding:34px;border-radius:20px;background:linear-gradient(135deg,#172033,#3157e5);color:#fff;margin-bottom:20px}.catalog-hero h1,.result-hero h1{font-size:40px;margin:6px 0}.catalog-hero p{max-width:700px;color:#dbe4ff}.eyebrow{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.catalog-filters{display:flex;gap:10px;margin-bottom:18px}.catalog-filters select,.catalog-filters button,.start-card select{padding:11px 13px;border-radius:10px;border:1px solid var(--line);background:#fff;font:inherit}.catalog-filters button,.start-btn,.primary-action,.exam-actions button,.submit-test{border:0;background:var(--brand);color:#fff;font-weight:750;cursor:pointer}.test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.test-card,.start-card,.detail-main,.question-panel,.palette-panel,.review-card,.result-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 22px rgba(29,45,85,.04)}.test-card{padding:20px}.test-card h2{font-size:19px;margin:12px 0 4px}.test-card p{color:var(--muted);margin:0}.test-card-top,.test-meta{display:flex;gap:8px;flex-wrap:wrap}.test-type,.free-chip,.premium-chip{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#2d4dc8}.free-chip{background:#eaf8ee;color:var(--green)}.premium-chip{background:#fff3db;color:#8a5700}.test-meta{margin:18px 0;color:#526079}.test-meta span{padding-right:10px;border-right:1px solid var(--line)}.primary-action,.secondary-action{display:inline-flex;padding:11px 15px;border-radius:10px}.secondary-action{background:#fff;border:1px solid var(--line)}.test-detail{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.detail-main,.start-card{padding:26px}.detail-main h1{font-size:36px;margin:8px 0 20px}.detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.detail-stats div{padding:14px;background:#f8f9fc;border-radius:12px}.detail-stats b{display:block;font-size:22px}.detail-stats span{font-size:12px;color:var(--muted)}.instructions{margin-top:24px}.start-card{height:max-content;position:sticky;top:88px}.start-card form{display:grid;gap:12px}.start-btn{padding:13px;border-radius:10px;font-size:16px}.muted{color:var(--muted)}.s-notice,.s-error{padding:12px 14px;border-radius:10px;margin-bottom:14px}.s-notice{background:#eaf8ee;color:#176b32}.s-error{background:#fff0f0;color:#9b2525}.exam-topbar{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px;position:sticky;top:78px;z-index:20;margin-bottom:14px}.exam-topbar>div:first-child{display:grid}.exam-topbar span{font-size:12px;color:var(--muted)}.exam-clock{text-align:center}.exam-clock b{display:block;font-size:23px;color:var(--red)}.submit-test{padding:10px 14px;border-radius:9px;background:var(--red)}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px}.question-panel,.palette-panel{padding:22px}.question-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:18px}.q-number{font-weight:850;color:var(--brand)}.q-meta{font-size:12px;color:var(--muted)}.question-text{font-size:18px;font-weight:650;line-height:1.65}.question-image{max-width:100%;max-height:380px;margin:14px 0;border-radius:10px}.option-list{display:grid;gap:10px;margin:22px 0}.option-item{display:grid;grid-template-columns:auto 34px 1fr;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:13px;cursor:pointer}.option-item:hover{border-color:#9cafed;background:#fafbff}.option-item input{width:18px;height:18px}.option-key{width:28px;height:28px;border-radius:8px;background:#eef2ff;color:#2948bf;display:grid;place-items:center;font-weight:800}.exam-actions{display:flex;gap:9px;flex-wrap:wrap}.exam-actions button{padding:10px 13px;border-radius:9px}.exam-actions .secondary-btn,.exam-actions .clear-btn{background:#fff;color:var(--ink);border:1px solid var(--line)}.exam-actions .review-btn{background:var(--purple)}.palette-panel{height:max-content;position:sticky;top:154px}.palette-panel h3{margin-top:0}.palette-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.palette-btn{height:40px;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;background:#fff;font-weight:750}.palette-btn.answered,.p.answered{background:#daf4e3;color:#126a38;border-color:#b8e3c7}.palette-btn.review,.p.review{background:#efe3ff;color:#6532a8;border-color:#d8c0f7}.palette-btn.visited,.p.visited{background:#fff1d6;color:#875100;border-color:#f0d7a2}.palette-btn.current{outline:3px solid #cbd5ff}.palette-legend{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:11px;color:var(--muted);margin-bottom:14px}.palette-legend span{display:flex;align-items:center;gap:5px}.p{width:13px;height:13px;border:1px solid var(--line);border-radius:4px;display:inline-block}.attempt-note{margin-top:18px;padding-top:15px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.result-hero{text-align:center;margin:20px 0 24px}.result-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.result-card{padding:18px;text-align:center}.result-card b{font-size:25px;display:block}.result-card span{font-size:12px;color:var(--muted)}.result-card.good b{color:var(--green)}.result-card.bad b{color:var(--red)}.result-card.score{background:#eef2ff}.result-actions{display:flex;justify-content:center;gap:10px;margin:20px 0 28px}.review-list{display:grid;gap:12px}.review-card{padding:18px;border-left:5px solid #bfc5d2}.review-card.correct{border-left-color:var(--green)}.review-card.wrong{border-left-color:var(--red)}.review-card.skipped{border-left-color:#9ba3b1}.review-title{display:flex;gap:8px}.review-answer{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:13px}.explanation{margin-top:12px;padding:12px;background:#f7f8fb;border-radius:9px}.pager{display:flex;justify-content:center;gap:10px;margin:24px}.pager a,.pager span{background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:8px}.empty-state{text-align:center;padding:30px;background:#fff;border-radius:14px;grid-column:1/-1}@media(max-width:900px){.test-grid{grid-template-columns:1fr 1fr}.test-detail,.exam-layout{grid-template-columns:1fr}.start-card,.palette-panel{position:static}.detail-stats,.result-grid{grid-template-columns:repeat(2,1fr)}.exam-topbar{top:68px;grid-template-columns:1fr auto}.exam-topbar form{grid-column:1/-1}.submit-test{width:100%}}@media(max-width:620px){.student-wrap{width:min(100% - 18px,1180px);margin-top:14px}.site-header{padding:0 14px}.site-header nav{gap:10px;font-size:13px}.test-grid{grid-template-columns:1fr}.catalog-hero{padding:22px}.catalog-hero h1,.detail-main h1,.result-hero h1{font-size:28px}.catalog-filters{display:grid}.detail-stats,.result-grid{grid-template-columns:1fr 1fr}.exam-actions{display:grid}.exam-actions button{width:100%}.palette-grid{grid-template-columns:repeat(5,1fr)}.question-panel,.palette-panel{padding:16px}}

.custom-builder,.ready-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 5px 22px rgba(29,45,85,.04)}.custom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.custom-grid label{display:grid;gap:6px;font-weight:650}.custom-grid input,.custom-grid select{padding:11px 12px;border:1px solid var(--line);border-radius:9px;font:inherit}.ready-card{max-width:780px;margin:40px auto}.ready-card h1{font-size:34px}.ready-card form{margin-top:20px}.ready-card .start-btn{padding:13px 18px}@media(max-width:760px){.custom-grid{grid-template-columns:1fr}}

/* Phase 5: Student account + personalized preparation */
.site-header nav{align-items:center}.nav-form{display:inline}.nav-form button{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;padding:0}.auth-shell{min-height:calc(100vh - 140px);display:grid;place-items:center}.auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 12px 40px rgba(29,45,85,.08)}.auth-card h1{font-size:32px;margin:6px 0 8px}.auth-form{display:grid;gap:14px;margin-top:22px}.auth-form label,.profile-grid label{display:grid;gap:6px;font-weight:700}.auth-form input,.profile-grid input,.profile-grid select,.note-form input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff}.check-row{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;justify-content:flex-start;gap:8px!important;font-weight:500!important}.check-row input{width:auto}.auth-form .primary-action{justify-content:center;border:0;cursor:pointer}.auth-foot{text-align:center;margin:18px 0 0;color:var(--muted)}.auth-foot a{color:var(--brand);font-weight:750}.dash-hero{background:linear-gradient(135deg,#172033,#3157e5);color:#fff;border-radius:20px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.dash-hero h1{font-size:34px;margin:4px 0}.dash-hero p{margin:0;color:#dbe4ff}.dash-hero .secondary-action{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.24);color:#fff}.dash-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.dash-kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.dash-kpi b{display:block;font-size:26px}.dash-kpi span{font-size:12px;color:var(--muted)}.goal-card,.continue-card,.panel-card,.profile-card,.weak-card,.bookmark-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 22px rgba(29,45,85,.04)}.goal-card{padding:20px;margin-bottom:16px}.goal-head{display:flex;justify-content:space-between;align-items:end;gap:12px}.goal-head h2{margin:4px 0}.goal-head>b{font-size:24px;color:var(--brand)}.progress-track{height:12px;border-radius:999px;background:#edf0f6;overflow:hidden;margin:13px 0 7px}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#3157e5,#6f8cff);border-radius:inherit}.continue-card{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.continue-card h2{margin:5px 0}.dashboard-columns{display:grid;grid-template-columns:1.3fr .9fr;gap:16px;margin-bottom:16px}.panel-card{padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.panel-head h2{margin:0;font-size:20px}.panel-head a{color:var(--brand);font-weight:750;font-size:13px}.mini-test{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.mini-test:first-of-type{border-top:0}.mini-test b,.mini-test span{display:block}.mini-test span{color:var(--muted);font-size:12px}.mini-test strong{color:var(--brand)}.weak-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.weak-row:first-of-type{border-top:0}.weak-row b,.weak-row span{display:block}.weak-row span{font-size:12px;color:var(--muted)}.weak-row strong{color:var(--red);font-size:20px}.history-table{display:grid}.history-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 160px;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line)}.history-row:first-child{border-top:0}.history-row span b,.history-row span small{display:block}.history-row span small{color:var(--muted);margin-top:2px}.history-row strong{font-size:18px;color:var(--brand);text-align:right}.history-row em{font-style:normal;color:var(--muted);text-align:right;font-size:13px}.page-title{margin-bottom:18px}.page-title h1{font-size:34px;margin:5px 0}.page-title p{color:var(--muted);margin:0}.profile-card{padding:22px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}.weak-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.weak-card{padding:18px;display:flex;justify-content:space-between;gap:16px}.weak-card h3{margin:4px 0}.weak-metrics{text-align:right}.weak-metrics b,.weak-metrics span{display:block}.weak-metrics b{font-size:24px;color:var(--red)}.weak-metrics span{font-size:12px;color:var(--muted)}.bookmark-list{display:grid;gap:14px}.bookmark-card{padding:20px}.bookmark-head{display:flex;justify-content:space-between;align-items:center}.bookmark-head>span{font-size:11px;font-weight:800;color:var(--brand);background:#eef2ff;padding:5px 8px;border-radius:999px}.bookmark-head button,.tool-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer;font:inherit;font-weight:700}.bookmark-options{display:grid;gap:7px;margin:12px 0}.bookmark-options>div{padding:9px 11px;border:1px solid var(--line);border-radius:9px}.bookmark-options .correct-option{border-color:#b8e3c7;background:#eaf8ee}.review-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px;padding-top:13px;border-top:1px solid var(--line)}.note-form{display:flex;gap:7px;flex:1;min-width:280px}.note-form input{min-width:0}.hero-secondary{margin-left:7px;background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.25)}
@media(max-width:900px){.dash-kpis{grid-template-columns:1fr 1fr}.dashboard-columns{grid-template-columns:1fr}.weak-grid{grid-template-columns:1fr 1fr}.history-row{grid-template-columns:minmax(0,1fr) 70px}.history-row em{grid-column:1/-1;text-align:left}.profile-grid{grid-template-columns:1fr}}
@media(max-width:620px){.site-header{height:auto;min-height:62px;gap:10px;padding-top:10px;padding-bottom:10px}.site-header nav{flex-wrap:wrap;justify-content:flex-end}.dash-hero,.continue-card{align-items:flex-start;flex-direction:column}.dash-kpis{grid-template-columns:1fr 1fr}.weak-grid{grid-template-columns:1fr}.auth-card{padding:20px}.auth-card h1,.page-title h1,.dash-hero h1{font-size:27px}.history-row{grid-template-columns:1fr auto}.note-form{min-width:100%;flex-direction:column}}

/* Phase 6: Adaptive preparation, revision, points and leaderboard */
.hero-actions{display:flex;gap:8px;flex-wrap:wrap}.phase6-kpis{grid-template-columns:repeat(6,1fr)}.smart-actions{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin:16px 0;box-shadow:0 5px 22px rgba(29,45,85,.04)}.smart-actions .panel-head h2{margin:3px 0 0}.smart-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.smart-action-grid form{margin:0}.smart-action{width:100%;min-height:128px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:16px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:3px;cursor:pointer;font:inherit;color:var(--ink)}.smart-action:hover{border-color:#aab9f1;box-shadow:0 8px 24px rgba(49,87,229,.08)}.smart-action>span{font-size:24px}.smart-action b{font-size:16px}.smart-action small{color:var(--muted)}.smart-action.primary-smart{background:linear-gradient(135deg,#3157e5,#2446c7);border-color:transparent;color:#fff}.smart-action.primary-smart small{color:#dbe4ff}.plan-progress{margin-bottom:16px}.plan-grid{display:grid;gap:12px}.plan-task{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:14px;align-items:center}.plan-task.done{background:#f7fbf8;border-color:#cbe9d5}.task-status{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eef2ff;color:var(--brand);font-weight:900}.plan-task.done .task-status{background:#daf4e3;color:var(--green)}.plan-task h2{margin:0 0 3px;font-size:18px}.plan-task p{margin:0;color:var(--muted)}.plan-task button{border:0;cursor:pointer}.revision-kpis{grid-template-columns:repeat(2,minmax(0,220px))}.revision-cta{margin:0 0 16px}.revision-cta button{border:0;cursor:pointer}.revision-list{display:grid;gap:12px}.revision-card{background:#fff;border:1px solid var(--line);border-left:5px solid #c4cad5;border-radius:14px;padding:18px;display:flex;justify-content:space-between;gap:16px}.revision-card.due{border-left-color:var(--amber);background:#fffdf7}.revision-card h3{margin:4px 0;font-size:17px}.revision-card p{margin:0;color:var(--muted);font-size:13px}.revision-meta{text-align:center;min-width:80px}.revision-meta b,.revision-meta span{display:block}.revision-meta b{font-size:22px}.revision-meta span{font-size:11px;color:var(--muted)}.achievement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.achievement-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;gap:14px}.achievement-card>span{font-size:32px}.achievement-card h2{margin:0 0 4px;font-size:18px}.achievement-card p{margin:0 0 8px;color:var(--muted)}.achievement-card small{color:var(--brand);font-weight:700}.leader-tabs{display:flex;gap:8px;margin-bottom:14px}.leader-tabs a{padding:9px 13px;border:1px solid var(--line);background:#fff;border-radius:10px;font-weight:700}.leader-tabs a.active{background:var(--brand);color:#fff;border-color:var(--brand)}.leader-table{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.leader-row{display:grid;grid-template-columns:70px minmax(180px,1fr) 120px 120px 120px;gap:12px;align-items:center;padding:13px 16px;border-top:1px solid var(--line)}.leader-row:first-child{border-top:0}.leader-head{background:#f8f9fc;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.leader-row.me{background:#eef2ff}.leader-row>b{color:var(--brand)}
@media(max-width:1000px){.phase6-kpis{grid-template-columns:repeat(3,1fr)}.smart-action-grid{grid-template-columns:1fr 1fr}.achievement-grid{grid-template-columns:1fr 1fr}.leader-row{grid-template-columns:60px minmax(140px,1fr) 90px 90px 90px}}
@media(max-width:650px){.phase6-kpis{grid-template-columns:1fr 1fr}.smart-action-grid,.achievement-grid{grid-template-columns:1fr}.plan-task{grid-template-columns:36px 1fr}.plan-task>div:last-child{grid-column:2}.revision-card{flex-direction:column}.leader-table{overflow-x:auto}.leader-row{min-width:650px}.hero-actions{width:100%}.hero-actions a{flex:1;justify-content:center}}

/* Website audit v12: deterministic header dropdown and non-overlapping test toolbar. */
.site-header .site-nav{display:flex;align-items:center;gap:18px;min-width:0}.online-tests-menu{position:relative;z-index:80}.online-tests-trigger{appearance:none;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:700;cursor:pointer;padding:8px 0;white-space:nowrap}.online-tests-trigger span{font-size:13px;margin-left:3px}.online-tests-dropdown{display:none;position:absolute;left:0;top:calc(100% + 8px);width:min(320px,calc(100vw - 28px));padding:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(20,31,57,.16);max-height:min(420px,calc(100vh - 110px));overflow:auto}.online-tests-menu.is-open .online-tests-dropdown{display:grid}.online-tests-dropdown a,.online-tests-dropdown span{display:block;padding:10px 12px;border-radius:8px;color:var(--ink);font-size:14px;line-height:1.3}.online-tests-dropdown a:hover{background:#f1f5ff;color:var(--brand)}.online-tests-dropdown .all-tests-link{font-weight:800;color:var(--brand);border-bottom:1px solid var(--line);border-radius:0}.header-logout{margin:0}.header-logout button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0;font-weight:inherit}

/* Attempt screen must never have a sticky header over its questions. */
.test-attempt-mode{background:#f4f7fc}.test-attempt-mode .attempt-wrap{width:min(1440px,calc(100% - 32px));margin:20px auto 32px}.test-attempt-mode .exam-topbar{position:static!important;top:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;margin:0 0 14px!important;padding:14px 18px!important}.test-attempt-mode .exam-title{min-width:0;display:grid;gap:3px}.test-attempt-mode .exam-title b{font-size:18px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.test-attempt-mode .exam-live-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important;min-width:0}.test-attempt-mode .network-status,.test-attempt-mode .save-status{display:flex!important;align-items:center!important;gap:4px!important;white-space:nowrap}.test-attempt-mode .network-status b{font-size:14px}.test-attempt-mode .save-status i{width:9px;height:9px;border-radius:50%;background:#cf3d35;display:inline-block}.test-attempt-mode .save-status[data-state="saved"] i{background:#1b9a55}.test-attempt-mode .save-status[data-state="saving"] i{background:#d18d18}.test-attempt-mode .save-status[data-state="error"] i{background:#cf3d35}.test-attempt-mode .exam-clock{min-width:70px}.test-attempt-mode .exam-clock b{font-size:21px;line-height:1.1}.test-attempt-mode .fullscreen-btn{white-space:nowrap}.test-attempt-mode .submit-test{white-space:nowrap}.test-attempt-mode .palette-panel{position:static!important;top:auto!important}.test-attempt-mode .exam-layout{align-items:start}
@media(max-width:1080px){.site-header{height:auto;min-height:66px;align-items:flex-start;padding-top:12px;padding-bottom:12px;gap:14px}.site-header .site-nav{justify-content:flex-end;flex-wrap:wrap;gap:10px 14px}.test-attempt-mode .exam-topbar{grid-template-columns:minmax(0,1fr)!important}.test-attempt-mode .exam-live-tools{justify-content:flex-start!important}.test-attempt-mode .exam-title b{white-space:normal}.test-attempt-mode .exam-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:800px){.site-header{align-items:center}.site-header .site-nav{font-size:13px}.test-attempt-mode .attempt-wrap{width:min(100% - 18px,1440px);margin-top:10px}.test-attempt-mode .exam-layout{grid-template-columns:1fr}.test-attempt-mode .palette-panel{order:2}.test-attempt-mode .network-status b{display:none}.test-attempt-mode .fullscreen-btn{font-size:0;padding:9px 11px}.test-attempt-mode .fullscreen-btn::before{content:'⛶';font-size:17px}.test-attempt-mode .save-status span{font-size:11px}.test-attempt-mode .exam-live-tools{gap:7px}.test-attempt-mode .exam-topbar{padding:12px!important}}
@media(max-width:540px){.site-header{display:block}.site-header .site-brand{display:inline-block;margin-bottom:8px}.site-header .site-nav{justify-content:flex-start}.online-tests-dropdown{left:0}.test-attempt-mode .exam-live-tools{width:100%;display:grid!important;grid-template-columns:1fr auto auto!important}.test-attempt-mode .exam-clock{grid-column:2}.test-attempt-mode #submitTestForm{grid-column:3}.test-attempt-mode .save-status{grid-column:1}.test-attempt-mode .exam-actions{grid-template-columns:1fr 1fr!important}.test-attempt-mode .exam-actions button{width:100%}}

/* Phase 7: Public traffic + SEO content */
.public-wrap{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 56px}.public-nav nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.seo-hero{display:grid;grid-template-columns:1.6fr .9fr;gap:30px;align-items:center;padding:48px;border:1px solid #e7ebf4;border-radius:24px;background:linear-gradient(135deg,#f8faff,#eef4ff);box-shadow:0 18px 45px rgba(35,58,110,.07)}.seo-hero h1{font-size:48px;line-height:1.08;margin:10px 0}.seo-hero p{font-size:18px;color:#58657b;max-width:720px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.site-search{background:#fff;border:1px solid #e1e6ef;padding:18px;border-radius:16px;box-shadow:0 12px 28px rgba(22,39,78,.08)}.site-search label{font-weight:800}.site-search input{margin:8px 0 10px}.site-search button{width:100%}.hub-links{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:24px 0}.hub-links a{background:#fff;border:1px solid #e4e8f0;border-radius:14px;padding:16px;color:#15223c;display:grid;gap:3px;transition:.2s}.hub-links a:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(30,49,91,.08)}.hub-links span{font-size:12px;color:#6c778c}.public-section{margin:34px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:14px}.section-head h2{margin:0;font-size:26px}.traffic-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.compact-posts{display:grid;gap:10px}.compact-posts article{background:#fff;border:1px solid #e5e9f1;border-radius:14px;padding:16px}.compact-posts h3{margin:7px 0 6px;font-size:17px}.compact-posts p{margin:0 0 8px;color:#647086}.compact-posts time{font-size:12px;color:#7d8798}.content-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef3ff;color:#3457c9;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:36px 0}.trust-strip div{background:#12213f;color:#fff;padding:20px;border-radius:15px;display:grid;gap:5px}.trust-strip span{color:#c8d2e6}.listing-hero{padding:28px 0 14px}.listing-hero h1{font-size:42px;margin:8px 0}.content-filters{margin:10px 0 20px}.content-card-grid{display:grid;gap:14px}.content-card{display:grid;grid-template-columns:220px 1fr;background:#fff;border:1px solid #e4e8f0;border-radius:16px;overflow:hidden}.content-card>img{width:100%;height:100%;min-height:180px;object-fit:cover}.content-card>div{padding:20px}.content-card h2{margin:8px 0;font-size:23px}.content-card p{color:#5e6b80}.content-card-meta{display:flex;gap:9px;align-items:center;color:#758096;font-size:12px}.content-card-foot{display:flex;justify-content:space-between;gap:12px;color:#7b8597;font-size:13px}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.article-main{min-width:0}.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:#7c879b;margin:6px 0 20px}.article-head h1{font-size:42px;line-height:1.15;margin:12px 0}.article-excerpt{font-size:19px;line-height:1.6;color:#59667b}.byline{display:flex;flex-wrap:wrap;gap:12px;color:#7b8697;font-size:13px;border-bottom:1px solid #e8ebf2;padding-bottom:16px}.featured-image{width:100%;max-height:520px;object-fit:cover;border-radius:18px;margin:22px 0}.article-body{background:#fff;border:1px solid #e5e9f1;border-radius:16px;padding:26px;font-size:17px;line-height:1.85;white-space:normal}.fact-box,.source-box,.side-card{background:#fff;border:1px solid #e4e8f0;border-radius:15px;padding:20px;margin:18px 0}.fact-box dl{display:grid;grid-template-columns:1fr 1fr;gap:0}.fact-box dl div{padding:10px;border-bottom:1px solid #eef0f5}.fact-box dt{font-size:12px;color:#7d8799;text-transform:uppercase}.fact-box dd{margin:3px 0 0;font-weight:700}.official-action{display:inline-flex;margin-top:14px;padding:12px 16px;background:#1f58d6;color:#fff;border-radius:10px;font-weight:800}.source-box{background:#f9fbff}.expired-note{padding:13px 15px;background:#fff3e5;color:#8d4e00;border:1px solid #f6d7ae;border-radius:10px;margin-bottom:15px}.article-side{position:relative}.side-card{position:sticky;top:90px}.related{margin-top:28px}.ad-slot{margin:24px 0;padding:12px;border:1px dashed #d9dde6;border-radius:12px;background:#fafbfc;text-align:center;overflow:hidden}.ad-label{font-size:10px;color:#8992a3;text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px}.site-footer{background:#111d35;color:#dbe4f4;padding:32px max(20px,calc((100% - 1180px)/2));display:flex;justify-content:space-between;gap:25px}.site-footer p{color:#aebbd2}.footer-links{display:flex;gap:14px;flex-wrap:wrap;align-content:flex-start}.footer-links a{color:#dbe4f4}.search-page{max-width:720px;display:flex;gap:8px}.search-page input{margin:0}.search-page button{width:auto}.empty-state{padding:26px;background:#fff;border:1px solid #e5e9f1;border-radius:14px;color:#6d788c}
@media(max-width:1050px){.hub-links{grid-template-columns:repeat(3,1fr)}.seo-hero,.article-layout{grid-template-columns:1fr}.article-side{display:none}}
@media(max-width:760px){.public-wrap{width:min(100% - 22px,1180px)}.seo-hero{padding:28px 20px}.seo-hero h1,.listing-hero h1,.article-head h1{font-size:34px}.hub-links{grid-template-columns:repeat(2,1fr)}.traffic-grid,.trust-strip{grid-template-columns:1fr}.content-card{grid-template-columns:1fr}.content-card>img{height:210px}.fact-box dl{grid-template-columns:1fr}.site-footer{flex-direction:column}.public-nav nav{gap:10px;font-size:13px}}
.side-test-links{display:grid;gap:8px;margin:12px 0 16px}.side-test-links a{padding:9px 10px;border:1px solid #e5e9f1;border-radius:9px;background:#f8faff;font-size:13px}
.attempt-loading .question-panel,.attempt-loading .palette-panel{opacity:.58;pointer-events:none}.attempt-loading{cursor:progress}.review-answer span{flex:1 1 260px}.review-answer b{display:block;margin-top:3px;color:var(--ink);font-size:14px;line-height:1.5}
.test-attempt-mode{background:#eef2f7;overflow-x:hidden}.test-attempt-mode .attempt-wrap{width:100%;max-width:none;margin:0;padding:12px;min-height:100vh}.test-attempt-mode .exam-topbar{top:0;grid-template-columns:minmax(180px,1fr) auto auto auto auto auto}.test-attempt-mode .palette-panel{top:88px}.network-status,.save-status{display:grid;text-align:center;border:1px solid var(--line);border-radius:9px;padding:6px 10px;background:#f8fafc;min-width:88px}.network-status span,.network-status b{font-size:11px}.network-status span{color:var(--green)}.network-status.offline span,.network-status.offline b{color:var(--red)}.save-status{display:block;color:var(--muted);font-weight:750}.save-status[data-state=saving]{color:var(--amber)}.save-status[data-state=saved]{color:var(--green);background:#eaf8ee}.save-status[data-state=error]{color:var(--red);background:#fff0f0}.fullscreen-btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:9px 11px;border-radius:9px;font-weight:750;cursor:pointer}@media(max-width:900px){.test-attempt-mode .exam-topbar{grid-template-columns:1fr auto auto}.exam-title{grid-column:1/-1}.network-status,.save-status{min-width:76px}.fullscreen-btn{display:none}}@media(max-width:620px){.test-attempt-mode .attempt-wrap{padding:7px}.test-attempt-mode .exam-topbar{gap:7px;padding:10px}.test-attempt-mode .exam-clock b{font-size:19px}.test-attempt-mode .submit-test{padding:9px}.network-status{display:none}}
.test-attempt-mode .exam-topbar{display:flex!important;position:relative!important;justify-content:space-between;align-items:center;gap:16px;top:auto!important;padding:12px 16px;border-radius:12px;box-shadow:0 8px 28px rgba(15,23,42,.09)}.exam-title{min-width:0;display:grid}.exam-title b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exam-live-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-shrink:0}.exam-live-tools form{margin:0}.exam-live-tools .fullscreen-btn{width:auto!important;min-width:112px;align-self:center}.test-attempt-mode .exam-layout{align-items:start}.test-attempt-mode .question-panel{min-height:calc(100vh - 105px)}.test-attempt-mode .palette-panel{top:12px}.save-status{display:flex!important;align-items:center;justify-content:center;gap:6px}.save-status i{width:9px;height:9px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.12)}.save-status[data-state=saved] i{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.13)}.save-status[data-state=saving] i{background:#f59e0b}.save-status[data-state=error] i,.save-status[data-state=dirty] i{background:#dc2626}.network-status.fast span{color:#15803d}.network-status.slow span,.network-status.slow b{color:#b45309}@media(max-width:900px){.test-attempt-mode .exam-topbar{align-items:flex-start}.exam-live-tools{flex-wrap:wrap}.exam-title{max-width:38%}}@media(max-width:650px){.test-attempt-mode .exam-topbar{display:grid!important;grid-template-columns:1fr}.exam-title{max-width:100%}.exam-live-tools{justify-content:space-between;width:100%}.save-status{display:flex!important}.test-attempt-mode .exam-layout{display:block}.test-attempt-mode .palette-panel{position:static;margin-top:10px}.test-attempt-mode .question-panel{min-height:auto}}
.result-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.site-header nav{align-items:center}.header-logout{margin:0}.header-logout button{border:1px solid #f0c9c4;background:#fff5f4;color:#b42318;border-radius:8px;padding:7px 10px;font:inherit;font-weight:750;cursor:pointer}.test-footer{margin-top:42px;background:#111d35;color:#dbe4f4;padding:28px max(20px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.test-footer>div{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.test-footer span{color:#aebbd2}.test-footer a{color:#dbe4f4;font-size:13px}.exam-directory{margin:22px 0}.exam-directory h2{margin:0 0 12px}.exam-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.exam-directory-card{min-height:150px;border-radius:16px;padding:20px;background:linear-gradient(145deg,#fff,#f4f7ff);border:1px solid #dfe6f8;display:grid;gap:7px;box-shadow:0 8px 22px rgba(40,65,120,.06);transition:.2s}.exam-directory-card:hover{transform:translateY(-3px);border-color:#9eaff0;box-shadow:0 14px 30px rgba(40,65,120,.12)}.exam-directory-card span{font-size:11px;color:#3157e5;text-transform:uppercase;font-weight:850;letter-spacing:.08em}.exam-directory-card b{font-size:20px}.exam-directory-card small{color:var(--muted);align-self:end}.series-card{background:linear-gradient(145deg,#f3f6ff,#fff)}.crumbs{font-size:13px;color:var(--muted);margin:16px 0}.crumbs a{color:var(--brand)}@media(max-width:900px){.exam-card-grid{grid-template-columns:1fr 1fr}.test-footer{flex-direction:column;align-items:flex-start}}@media(max-width:620px){.site-header nav{gap:8px}.header-logout button{padding:6px 8px}.exam-card-grid{grid-template-columns:1fr}.test-footer{margin-top:26px}}
.online-tests-menu{position:relative;z-index:60}.online-tests-trigger{border:0;background:transparent;padding:0;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;white-space:nowrap}.online-tests-trigger span{font-size:11px;color:var(--muted)}.online-tests-dropdown{display:none;position:absolute;top:calc(100% + 12px);left:0;width:270px;max-height:70vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 18px 45px rgba(15,23,42,.18);gap:2px}.online-tests-menu:hover .online-tests-dropdown,.online-tests-menu:focus-within .online-tests-dropdown{display:grid}.online-tests-dropdown a,.online-tests-dropdown span{padding:10px 11px;border-radius:8px;font-size:14px}.online-tests-dropdown a:hover{background:#eef2ff;color:var(--brand)}.online-tests-dropdown .all-tests-link{font-weight:850;background:#f4f6ff;color:var(--brand);margin-bottom:4px}.test-attempt-mode .exam-topbar{position:static!important;display:flex!important;min-height:0!important;height:auto!important;flex-wrap:nowrap!important;overflow:hidden}.test-attempt-mode .exam-title{flex:1 1 auto!important;max-width:none!important;min-width:0}.test-attempt-mode .exam-live-tools{display:flex!important;flex:0 1 auto!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important}.test-attempt-mode .network-status,.test-attempt-mode .save-status{min-width:65px;padding:5px 6px}.test-attempt-mode .fullscreen-btn{min-width:auto!important;padding:7px}.test-attempt-mode .exam-clock b{font-size:20px}.test-attempt-mode .submit-test{padding:9px 10px;width:auto!important}@media(max-width:900px){.test-attempt-mode .exam-title span{font-size:11px}.test-attempt-mode .network-status{min-width:55px}.test-attempt-mode .network-status span{font-size:0}.test-attempt-mode .network-status span:first-letter{font-size:12px}.test-attempt-mode .save-status{min-width:31px;padding:8px}.test-attempt-mode .save-status span{display:none}.test-attempt-mode .fullscreen-btn{display:none!important}}@media(max-width:650px){.online-tests-dropdown{position:fixed;left:12px;right:12px;width:auto}.test-attempt-mode .exam-topbar{display:block!important;overflow:visible}.test-attempt-mode .exam-title{margin-bottom:8px}.test-attempt-mode .exam-live-tools{display:grid!important;grid-template-columns:1fr auto auto auto;gap:6px!important}.test-attempt-mode .network-status span{display:none}.test-attempt-mode .network-status{min-width:0}.test-attempt-mode .save-status{display:flex!important}.test-attempt-mode .exam-clock{text-align:left}.test-attempt-mode .submit-test{width:100%!important}.test-attempt-mode .exam-live-tools form{grid-column:1/-1}.test-attempt-mode .fullscreen-btn{display:block!important}}


/* Phase 9: Premium Membership */
.premium-hero{text-align:center;padding:42px 20px;background:linear-gradient(135deg,#0f172a,#0f766e);color:#fff;border-radius:22px;margin-bottom:22px}.premium-hero h1{font-size:38px;margin:8px 0}.premium-hero p{max-width:720px;margin:auto;color:#d7f5ef}.premium-pill,.best-badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:12px;font-weight:800}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.plan-card,.checkout-card,.pay-box,.success-box,.membership-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 8px 30px rgba(15,23,42,.06)}.plan-card.featured{border:2px solid #0f766e;transform:translateY(-4px)}.plan-card h2{margin:12px 0 3px}.price{font-size:34px;font-weight:850;margin:14px 0}.price del{font-size:15px;color:var(--muted);font-weight:500}.feature-list{list-style:none;padding:0;display:grid;gap:8px;color:#475467}.premium-btn,.outline-btn{display:inline-flex;justify-content:center;padding:12px 17px;border-radius:10px;font-weight:800}.premium-btn{background:#0f766e;color:#fff;border:0}.outline-btn{border:1px solid var(--line);background:#fff}.wide{width:100%;margin-top:12px}.checkout-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.bill-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.bill-row.total{font-size:20px;border-top:2px solid #d9e3e0;margin-top:5px}.discount b{color:var(--green)}.coupon-box{display:flex;gap:8px;align-items:end;margin-top:18px}.coupon-box label{flex:1}.coupon-box input,.gateway-option input{padding:10px}.gateway-option{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;margin:8px 0}.gateway-option input{width:auto}.gateway-option span{display:grid}.gateway-option small{color:var(--muted)}.secure-note{font-size:12px;color:var(--muted);margin-top:16px}.pay-box,.success-box{max-width:650px;margin:40px auto;text-align:center}.success-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto;background:#dcfce7;color:#15803d;font-size:38px;font-weight:800}.action-row{display:flex;justify-content:center;gap:10px;margin-top:20px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.membership-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}.status-chip{display:inline-block;padding:5px 8px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:800}.status-chip.active,.status-chip.trialing{background:#dcfce7;color:#166534}.status-chip.grace{background:#fef3c7;color:#92400e}.status-chip.expired,.status-chip.cancelled{background:#fee2e2;color:#991b1b}.empty-state{padding:30px;background:#fff;border:1px dashed var(--line);border-radius:12px}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;background:#fff}.table-wrap th,.table-wrap td{padding:12px;border-bottom:1px solid var(--line);text-align:left}@media(max-width:900px){.plan-grid,.checkout-grid,.membership-grid{grid-template-columns:1fr}.plan-card.featured{transform:none}.premium-hero h1{font-size:30px}.page-head{align-items:flex-start;gap:12px;flex-direction:column}}


/* Phase 10: PWA install affordance */
.pwa-install{border:1px solid rgba(15,118,110,.3);background:#ecfdf5;color:#0f766e;padding:8px 11px;border-radius:9px;font-weight:800;cursor:pointer}.pwa-install[hidden]{display:none!important}

/* Website audit v12 final cascade: after all older phase CSS. */
.online-tests-menu.is-open .online-tests-dropdown{display:grid!important}
.test-attempt-mode .attempt-wrap{width:min(1440px,calc(100% - 32px))!important;margin:20px auto 32px!important;padding:0!important;min-height:0!important}
.test-attempt-mode .exam-topbar{position:static!important;top:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;margin:0 0 14px!important;padding:14px 18px!important;overflow:visible!important}
.test-attempt-mode .exam-title{min-width:0!important;max-width:none!important;display:grid!important;gap:3px!important}.test-attempt-mode .exam-title b{font-size:18px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.test-attempt-mode .exam-live-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important;min-width:0!important}.test-attempt-mode .network-status,.test-attempt-mode .save-status{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;white-space:nowrap!important}.test-attempt-mode .save-status i{width:9px!important;height:9px!important;border-radius:50%!important;background:#cf3d35!important;display:inline-block!important}.test-attempt-mode .save-status[data-state=saved] i{background:#1b9a55!important}.test-attempt-mode .save-status[data-state=saving] i{background:#d18d18!important}.test-attempt-mode .save-status[data-state=error] i{background:#cf3d35!important}.test-attempt-mode .palette-panel{position:static!important;top:auto!important}
@media(max-width:1080px){.test-attempt-mode .exam-topbar{grid-template-columns:minmax(0,1fr)!important}.test-attempt-mode .exam-live-tools{justify-content:flex-start!important}.test-attempt-mode .exam-title b{white-space:normal!important}.test-attempt-mode .exam-layout{grid-template-columns:minmax(0,1fr) 290px!important}}
@media(max-width:800px){.test-attempt-mode .attempt-wrap{width:min(100% - 18px,1440px)!important;margin-top:10px!important}.test-attempt-mode .exam-layout{grid-template-columns:1fr!important}.test-attempt-mode .palette-panel{order:2}.test-attempt-mode .network-status b{display:none!important}.test-attempt-mode .fullscreen-btn{display:block!important;font-size:0!important;padding:9px 11px!important}.test-attempt-mode .fullscreen-btn::before{content:'⛶';font-size:17px}.test-attempt-mode .save-status span{font-size:11px!important}.test-attempt-mode .exam-live-tools{gap:7px!important}.test-attempt-mode .exam-topbar{padding:12px!important}}
@media(max-width:540px){.test-attempt-mode .exam-live-tools{width:100%;display:grid!important;grid-template-columns:1fr auto auto!important}.test-attempt-mode .exam-clock{grid-column:2}.test-attempt-mode #submitTestForm{grid-column:3}.test-attempt-mode .save-status{grid-column:1}.test-attempt-mode .exam-actions{grid-template-columns:1fr 1fr!important}.test-attempt-mode .exam-actions button{width:100%!important}}


/* ExamKosh v13 responsive navigation + final UI safeguards */
.site-header{position:sticky;top:0;z-index:100;overflow:visible}
.site-header .site-nav{display:flex;align-items:center;gap:18px;min-width:0}
.site-header .site-nav>a,.site-header .header-logout button,.site-header .pwa-install{white-space:nowrap}
.nav-toggle{display:none;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:8px 10px;font:inherit;font-weight:800;align-items:center;gap:6px;cursor:pointer}
.nav-register{font-weight:800;color:var(--brand)}
.online-tests-menu{position:relative;z-index:120}
.online-tests-menu .online-tests-dropdown{z-index:130}
.online-tests-menu:not(.is-open) .online-tests-dropdown{display:none!important}
.online-tests-menu.is-open .online-tests-dropdown{display:grid!important}
@media (min-width:821px){.online-tests-menu:hover:not(.is-open) .online-tests-dropdown{display:none!important}.online-tests-menu.is-open .online-tests-dropdown{display:grid!important}}
@media(max-width:820px){
  .site-header{height:auto;min-height:64px;padding:10px 14px;flex-wrap:nowrap;gap:12px}
  .site-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nav-toggle{display:inline-flex;flex:0 0 auto}
  .site-header .site-nav{display:none;position:absolute;top:calc(100% + 1px);left:10px;right:10px;max-height:calc(100vh - 84px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:0 18px 45px rgba(15,23,42,.18);flex-direction:column;align-items:stretch;gap:4px}
  .site-header .site-nav.is-open{display:flex}
  .site-header .site-nav>a,.site-header .site-nav>.pwa-install,.site-header .header-logout button,.online-tests-trigger{display:flex;width:100%;min-height:42px;align-items:center;padding:9px 10px;border-radius:9px;text-align:left}
  .site-header .site-nav>a:hover,.site-header .header-logout button:hover,.online-tests-trigger:hover{background:#f4f6ff}
  .header-logout{width:100%;margin:0}.header-logout button{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer}
  .online-tests-menu{width:100%}
  .online-tests-trigger{justify-content:space-between;border:0;background:transparent}
  .online-tests-dropdown,.online-tests-menu.is-open .online-tests-dropdown{position:static!important;left:auto!important;right:auto!important;top:auto!important;width:100%!important;max-height:48vh!important;margin:3px 0 4px!important;border-radius:10px!important;box-shadow:none!important;background:#f8faff!important}
  .online-tests-dropdown a,.online-tests-dropdown span{min-height:40px;display:flex;align-items:center}
  .public-wrap,.student-wrap{max-width:100%;overflow-x:hidden}
  .site-footer,.test-footer{overflow-wrap:anywhere}
}
@media(max-width:520px){
  .site-brand{font-size:20px}.nav-toggle span:last-child{display:none}
  .nav-toggle{padding:8px 10px;font-size:18px}
  .catalog-hero,.seo-hero,.dash-hero{border-radius:16px}
  .catalog-hero h1,.seo-hero h1,.detail-main h1,.result-hero h1{font-size:26px;line-height:1.2}
  .test-card,.detail-main,.start-card,.question-panel,.palette-panel,.review-card{min-width:0}
  .test-meta,.review-answer{overflow-wrap:anywhere}
}

/* ExamKosh v13 premium brand */
.site-brand{display:flex;align-items:center;gap:11px;color:var(--ink);min-width:max-content}
.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#5b35e8,#3157e5);color:#fff;font-weight:900;font-size:20px;box-shadow:0 8px 20px rgba(74,62,210,.22)}
.brand-copy{display:grid;line-height:1.05}.brand-copy strong{font-size:22px;letter-spacing:-.02em}.brand-copy small{margin-top:5px;font-size:9px;letter-spacing:.13em;color:#8a94a6;font-weight:850;white-space:nowrap}
.nav-register{background:var(--brand);color:#fff!important;padding:9px 13px;border-radius:10px}
@media(max-width:980px) and (min-width:821px){.brand-copy small{display:none}.site-header .site-nav{gap:12px;font-size:14px}}
@media(max-width:520px){.brand-mark{width:38px;height:38px;border-radius:11px}.brand-copy strong{font-size:20px}.brand-copy small{display:none}}

/* ExamKosh v15: attempt toolbar must stay in normal document flow.
   This intentionally overrides every older sticky/fixed attempt-toolbar rule. */
.test-attempt-mode .attempt-wrap{
  padding-top:0!important;
}
.test-attempt-mode .exam-topbar{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:1!important;
  transform:none!important;
  margin:0 0 18px!important;
  width:100%!important;
}
.test-attempt-mode .exam-layout,
.test-attempt-mode .question-panel{
  position:relative!important;
  top:auto!important;
  transform:none!important;
}
.test-attempt-mode .question-panel{
  z-index:2!important;
}
.test-attempt-mode .palette-panel{
  position:static!important;
  top:auto!important;
}
@media(max-width:800px){
  .test-attempt-mode .exam-topbar{
    position:relative!important;
    margin-bottom:12px!important;
  }
  .test-attempt-mode .exam-title b{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .test-attempt-mode .exam-live-tools{
    min-width:0!important;
  }
  .test-attempt-mode .question-panel{
    margin-top:0!important;
  }
}

/* ExamKosh v16: hover-only desktop Online Tests menu, series cards and fast answer autosave */
@media (min-width:821px){
  .site-header .site-nav .online-tests-menu:hover .online-tests-dropdown,
  .site-header .site-nav .online-tests-menu:focus-within .online-tests-dropdown{
    display:grid!important;
  }
  .site-header .site-nav .online-tests-menu .online-tests-dropdown{
    top:100%!important;
    margin-top:0!important;
  }
}
.series-card{display:flex;flex-direction:column;min-height:230px}
.series-card .test-meta{margin-top:auto}
.series-card .primary-action{align-self:flex-start}
.series-chip{font-size:11px;font-weight:850;padding:5px 8px;border-radius:999px;background:#ecfdf5;color:#167147}
.test-attempt-mode .option-item{transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}
.test-attempt-mode .option-item.is-selected,
.test-attempt-mode .option-item:has(input:checked){border-color:#5575ed;background:#eef3ff;box-shadow:0 0 0 2px rgba(49,87,229,.08)}
.test-attempt-mode .option-item.is-selected .option-key,
.test-attempt-mode .option-item:has(input:checked) .option-key{background:#3157e5;color:#fff}
.test-attempt-mode .save-status[data-state="queued"]{color:#8a5a00;background:#fff7df;border-color:#efd59a}
.test-attempt-mode .save-status[data-state="queued"] i{background:#f59e0b!important}
.test-attempt-mode .save-status[data-state="idle"] i{background:#94a3b8!important}
.test-attempt-mode .attempt-loading .option-item{pointer-events:none}
@media(max-width:820px){.series-card{min-height:0}}

/* ExamKosh v17: polished home search + responsive Test Series cards */
.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}

/* Home search card */
.home-search{
  align-self:stretch;
  display:grid;
  align-content:center;
  gap:14px;
  padding:22px!important;
  border:1px solid #dfe6f2!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%)!important;
  box-shadow:0 16px 38px rgba(26,43,84,.10)!important;
  min-width:0;
}
.home-search-head{display:flex;align-items:center;gap:12px;min-width:0}
.home-search-icon{width:42px;height:42px;flex:0 0 42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#3157e5,#6545df);color:#fff;font-size:25px;line-height:1;box-shadow:0 9px 22px rgba(49,87,229,.22)}
.home-search-head>div{display:grid;gap:2px;min-width:0}
.home-search-head strong{font-size:20px;line-height:1.2;letter-spacing:-.02em;color:#15213b}
.home-search-head small{font-size:12px;line-height:1.45;color:#718096}
.home-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;min-width:0}
.home-search input{
  width:100%!important;
  min-width:0!important;
  height:50px!important;
  margin:0!important;
  padding:0 15px!important;
  border:1px solid #d6deeb!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#172033!important;
  font:inherit!important;
  font-size:14px!important;
  outline:none!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.02)!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
.home-search input::placeholder{color:#98a2b3}
.home-search input:focus{border-color:#6682ee!important;box-shadow:0 0 0 4px rgba(49,87,229,.11)!important}
.home-search button{
  width:auto!important;
  min-width:112px!important;
  height:50px!important;
  margin:0!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:linear-gradient(135deg,#3157e5,#2446c7)!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:800!important;
  cursor:pointer!important;
  box-shadow:0 10px 22px rgba(49,87,229,.22)!important;
  transition:transform .15s ease,box-shadow .15s ease!important;
}
.home-search button:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(49,87,229,.28)!important}
.home-search-hints{display:flex;gap:7px;flex-wrap:wrap}
.home-search-hints span{font-size:10px;font-weight:750;color:#61708a;background:#f2f5fb;border:1px solid #e4e9f3;border-radius:999px;padding:4px 8px}

/* Test Series section */
.series-directory{margin-top:22px!important}
.series-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 16px}
.series-section-head h2{font-size:28px;line-height:1.2;margin:3px 0 4px;letter-spacing:-.02em;color:#14203a}
.series-section-head p{margin:0;color:#6b778c;font-size:14px}
.series-total-badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#eef3ff;color:#3157e5;border:1px solid #d7e0ff;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:850}
.series-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.series-list-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  min-height:255px;
  padding:22px;
  border:1px solid #dfe6f3;
  border-radius:20px;
  background:linear-gradient(145deg,#ffffff 0%,#f7f9ff 100%);
  box-shadow:0 10px 28px rgba(34,55,99,.07);
  display:flex;
  flex-direction:column;
  gap:16px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.series-list-card::after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-44px;top:-48px;background:linear-gradient(135deg,rgba(49,87,229,.10),rgba(101,69,223,.03));pointer-events:none}
.series-list-card:hover{transform:translateY(-4px);border-color:#b8c6f3;box-shadow:0 17px 38px rgba(34,55,99,.13)}
.series-list-card__top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.series-access-badge,.series-featured-badge{display:inline-flex;align-items:center;min-height:27px;padding:5px 9px;border-radius:999px;font-size:10px;line-height:1;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.series-access-badge.is-free{background:#eaf9ef;color:#14753d;border:1px solid #ccebd7}
.series-access-badge.is-premium{background:#fff4dd;color:#8b5800;border:1px solid #f2d79b}
.series-featured-badge{background:#eef1ff;color:#5740c9;border:1px solid #ddd8ff}
.series-list-card__body{position:relative;z-index:1;display:grid;gap:7px;min-width:0}
.series-exam-name{font-size:11px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:#5470d8}
.series-list-card__body h3{margin:0;color:#13203a;font-size:22px;line-height:1.32;letter-spacing:-.02em;overflow-wrap:anywhere}
.series-list-card__body p{margin:0;color:#68758a;font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.series-list-card__footer{position:relative;z-index:1;margin-top:auto;padding-top:14px;border-top:1px solid #e8edf5;display:flex;align-items:center;justify-content:space-between;gap:12px}
.series-test-count{display:grid;line-height:1.05}
.series-test-count b{font-size:23px;color:#17233d;letter-spacing:-.02em}
.series-test-count span{margin-top:4px;font-size:11px;color:#7b8799;font-weight:700}
.series-open-btn{min-height:42px;padding:10px 14px;border-radius:11px;background:#3157e5;color:#fff!important;font-size:13px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;box-shadow:0 8px 18px rgba(49,87,229,.18);transition:background .15s ease,transform .15s ease,box-shadow .15s ease}
.series-open-btn:hover{background:#2446c7;transform:translateY(-1px);box-shadow:0 11px 22px rgba(49,87,229,.25)}
.featured-series-section .section-head{align-items:flex-end}
.featured-series-grid{margin-top:3px}
.featured-series-card{min-height:270px}
.series-empty-state{margin:12px 0 24px}
.test-list-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:30px 0 14px}
.test-list-heading h2{margin:3px 0 0;font-size:25px;line-height:1.2}
.test-list-heading>span{font-size:12px;font-weight:800;color:#667085;background:#fff;border:1px solid #e1e6ef;border-radius:999px;padding:6px 10px;white-space:nowrap}
.test-list-crumbs{margin-top:22px}

/* Override older generic series-card rules so catalog cards never become tall empty blocks. */
.exam-directory .series-card{min-height:0!important}

@media(max-width:980px){
  .series-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .featured-series-card{min-height:250px}
}
@media(max-width:820px){
  .home-search{padding:18px!important}
  .series-section-head{align-items:flex-start}
}
@media(max-width:640px){
  .home-search-row{grid-template-columns:1fr}
  .home-search button{width:100%!important}
  .home-search-head strong{font-size:18px}
  .home-search-hints{display:none}
  .series-card-grid{grid-template-columns:1fr;gap:13px}
  .series-list-card,.featured-series-card{min-height:0;padding:18px;border-radius:17px}
  .series-list-card__body h3{font-size:20px}
  .series-list-card__footer{align-items:stretch;flex-direction:column}
  .series-test-count{grid-template-columns:auto 1fr;align-items:end;gap:7px}
  .series-test-count span{margin:0 0 2px}
  .series-open-btn{width:100%}
  .series-section-head{display:grid;gap:10px}
  .series-total-badge{justify-self:start}
  .test-list-heading{align-items:flex-start;display:grid;gap:8px}
  .test-list-heading>span{justify-self:start}
}
