*{box-sizing:border-box} :root{--navy:#082e70;--navy2:#06449b;--blue:#0878e8;--sky:#eaf4ff;--ink:#14213d;--muted:#64748b;--line:#dce7f5}
body{margin:0;background:#f2f7ff;color:var(--ink);font:15px/1.55 Inter,system-ui,Arial,sans-serif}
.app-shell{min-height:100vh;display:flex}.sidebar{width:248px;flex:0 0 248px;background:linear-gradient(165deg,#08285f,#0649a7 75%,#05275d);color:#fff;padding:24px 16px;display:flex;flex-direction:column;min-height:100vh;box-shadow:5px 0 22px #06285d1c}
.side-brand{text-align:center;padding:10px 4px 24px;border-bottom:1px solid #ffffff30}.side-brand img{width:76px;height:76px;object-fit:contain;background:#fff;border-radius:16px;padding:5px;margin-bottom:10px}.logo-placeholder{width:76px;height:76px;border-radius:18px;margin:0 auto 10px;background:#fff;color:#0756b5;display:grid;place-items:center;font-weight:900;font-size:22px}.side-brand b{display:block;font-size:20px;line-height:1.25}.side-brand small{display:block;color:#dbeafe;margin-top:5px}
.side-nav{display:grid;gap:8px;margin-top:24px}.side-nav a{display:flex;align-items:center;gap:14px;color:#eaf3ff;text-decoration:none;padding:13px 15px;border-radius:12px;font-weight:600;transition:.18s}.side-nav a:hover,.side-nav a:focus{background:#2387f5;color:#fff;transform:translateX(2px)}.side-nav a:first-child{background:#1683f7;color:white;box-shadow:0 7px 18px #001d4b40}.side-nav a:first-child span{font-weight:700}.side-nav a{font-size:21px}.side-nav span{font-size:14px}
.side-quote{margin-top:auto;padding:24px 8px 6px;color:#dcecff;font-style:italic;text-align:center;font-size:13px}
.main-area{min-width:0;flex:1}.topbar{height:84px;background:linear-gradient(110deg,#0753b7,#0878e8);color:white;display:flex;align-items:center;justify-content:space-between;padding:14px clamp(18px,3vw,42px);box-shadow:0 4px 18px #06469b25}.topbar b{font-size:20px}.topbar small{display:block;color:#dbeafe;font-size:12px}.top-user{background:#ffffffeb;color:#12376d;border-radius:30px;padding:10px 17px;font-size:13px;font-weight:700}
main{max-width:1500px;margin:0 auto;padding:28px clamp(16px,2.2vw,34px);min-height:calc(100vh - 160px)}h1{font-size:clamp(23px,2vw,30px);margin:0 0 16px;color:#0b3476}h2{font-size:19px;margin:0 0 14px;color:#103b7a}h3{margin-top:0}
.card{background:#fff;border:1px solid #dce9f8;border-radius:18px;padding:22px;margin:16px 0;box-shadow:0 8px 26px #0b4c9710}.login{max-width:450px;margin:7vh auto;border-radius:22px;padding:30px}.login h1{text-align:center}.login p{text-align:center;color:var(--muted)}
label{display:block;font-weight:650;margin:12px 0 5px}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #cbd9eb;border-radius:10px;background:#fbfdff;font:inherit;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#2589ee;box-shadow:0 0 0 3px #1683f71c}textarea{min-height:90px}
button,.button{display:inline-block;border:0;border-radius:10px;background:linear-gradient(110deg,#0865d0,#1388fa);color:#fff;padding:12px 18px;margin-top:14px;text-decoration:none;font-weight:750;cursor:pointer;box-shadow:0 5px 13px #0a65c42b}button:hover,.button:hover{filter:brightness(1.05)}.secondary{background:#53657d}
nav:not(.side-nav){display:flex;gap:12px;flex-wrap:wrap}.muted{color:var(--muted);font-size:13px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stats .card{display:flex;flex-direction:column;margin:0}.stats strong{font-size:34px;color:#0878e8}.stats span{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.alert{background:#fff4d6;color:#805600;border:1px solid #f2d27a;border-radius:12px;padding:14px;margin:14px 0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:640px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #e8eef7}th{background:#f3f8ff;color:#35557f;font-size:13px}td{font-size:14px}
.examhead{display:flex;justify-content:space-between;align-items:center;gap:15px}.timer{font-weight:800;background:#0b367a;color:#fff;padding:11px 16px;border-radius:12px}.question p{margin:10px 0 16px}.option{display:flex;align-items:flex-start;gap:8px;font-weight:450;padding:11px;background:#f6faff;border:1px solid #e3edf9;border-radius:10px;margin:8px 0}.option input{width:auto;margin-top:5px}
footer{text-align:center;padding:22px 15px;color:#718096;font-size:12px;border-top:1px solid #e3ebf6;background:#fff}
.side-quote:after{content:"";display:block;height:4px;width:70%;margin:16px auto 0;border-radius:8px;background:linear-gradient(90deg,#ffca28,#fff)}
@media(max-width:850px){.sidebar{width:210px;flex-basis:210px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.app-shell{display:block}.sidebar{width:100%;min-height:auto;padding:12px}.side-brand{display:flex;align-items:center;gap:12px;text-align:left;padding:4px 8px 12px}.side-brand img,.logo-placeholder{width:48px;height:48px;margin:0}.side-brand b{font-size:16px}.side-nav{display:flex;overflow-x:auto;margin-top:12px;gap:6px}.side-nav a{white-space:nowrap;padding:10px 12px}.side-quote{display:none}.topbar{height:auto;min-height:70px;padding:12px 16px}.topbar b{font-size:16px}.top-user{font-size:11px;padding:8px 10px}.stats{grid-template-columns:1fr 1fr}main{padding:20px 13px}.card{padding:16px;border-radius:14px}.examhead{align-items:flex-start;flex-direction:column}}

.welcome-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:190px;padding:28px 34px;border-radius:20px;color:#fff;background:radial-gradient(circle at 85% 20%,#5ab8ff88,transparent 27%),linear-gradient(112deg,#073b8d,#0878e8 65%,#38a3f6);box-shadow:0 12px 28px #0754b52b;margin-bottom:24px;overflow:hidden}.welcome-banner h1{color:#fff;font-size:clamp(26px,3vw,40px);margin:10px 0}.welcome-banner p{color:#e6f3ff;margin:0}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#bfe2ff}.hero-symbol{font-size:100px;color:#ffffff55;line-height:1}@media(max-width:650px){.welcome-banner{min-height:145px;padding:20px}.hero-symbol{font-size:60px}}

/* V5 exam workspace */
.exam-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:16px;align-items:start}
.question-nav{position:sticky;top:12px}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:14px 0}
.qnum{padding:9px 4px;border:1px solid #d8e3f0;border-radius:7px;background:#f4f7fb;color:#334155;cursor:pointer}
.qnum.answered{background:#dff5e8;border-color:#86d7a5;color:#176b3b}.qnum.doubtful{background:#fff0c2;border-color:#f0c65b;color:#805600}.qnum.current{outline:3px solid #2c83df}
.legend,.connection{font-size:12px;color:#64748b}.connection{margin-top:12px;color:#16804a}.connection.offline{color:#b45309}
.question-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.doubt-label{display:flex;align-items:center;gap:6px;font-size:13px;color:#805600}.doubt-label input{width:auto}
.question-image{max-width:100%;max-height:360px;object-fit:contain;display:block;margin:12px 0;border-radius:9px}
.question-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;padding-top:15px;border-top:1px solid #e5edf6}
.question-actions span{font-size:13px;color:#64748b}.submit-card{text-align:right}
.question-panel[hidden]{display:none!important}
@media(max-width:760px){.exam-layout{grid-template-columns:1fr}.question-nav{position:static}.question-grid{grid-template-columns:repeat(8,1fr)}.question-actions{flex-wrap:wrap}.question-actions span{order:-1;width:100%;text-align:center}}

/* V6 LIGHT EDITION — clean, readable, responsive */
:root{--navy:#12356d;--navy2:#164a91;--blue:#1769d2;--sky:#eff6ff;--ink:#172b4d;--muted:#64748b;--line:#dbe5f1}
body{background:#f5f8fc;color:#172b4d}
.sidebar{background:#fff;color:#17365f;border-right:1px solid #e1e9f3;box-shadow:4px 0 18px #17365f0a}
.side-brand{border-bottom:1px solid #e6edf5}
.side-brand b{color:#12356d}
.side-brand small{color:#64748b}
.logo-placeholder{background:#eaf3ff;color:#145bb2;border:1px solid #d7e7fb}
.side-nav a{color:#49617f;font-size:17px}
.side-nav a span{font-size:14px}
.side-nav a:first-child,.side-nav a:hover,.side-nav a:focus{background:#eaf3ff;color:#145fc1;box-shadow:none;transform:none}
.side-nav a:first-child span{color:#145fc1}
.side-quote{color:#60738e}
.topbar{background:#fff;color:#163a70;border-bottom:1px solid #e1e9f3;box-shadow:0 3px 14px #17365f08}
.topbar small{color:#64748b}
.top-user{background:#edf4fc;color:#1c4c8e;border:1px solid #dbe7f5}
main{color:#1d3558}
h1{color:#153d78}
h2{color:#194b8c}
.card{border-color:#e0e8f2;box-shadow:0 5px 20px #1c3d6509}
button,.button{background:linear-gradient(110deg,#155bb7,#2584ed);box-shadow:0 4px 12px #155bb71a}
.secondary{background:#64748b}
.stats strong{color:#1769d2}
.welcome-banner{background:linear-gradient(110deg,#e5f2ff,#f7fbff 60%,#d9ecff);color:#123b78;border:1px solid #cfe2f8;box-shadow:0 8px 20px #1c5da510}
.welcome-banner h1{color:#123b78}
.welcome-banner p{color:#48688f}
.eyebrow{color:#1769d2}
.hero-symbol{color:#b4d7ff}
.examhead .timer{background:#155bb7}
.option{background:#f7faff;border-color:#e1eaf5;color:#1d3558}
.question-nav{background:#fff}
.qnum{background:#f2f6fb;color:#35516f}
.qnum.answered{background:#dcf5e6;border-color:#8bd2a5;color:#176b3b}
.qnum.doubtful{background:#fff0c2;border-color:#edca62;color:#805600}
.qnum.current{outline-color:#2b83df}
.question-image,.option-image{max-width:100%;max-height:340px;object-fit:contain;display:block;margin:10px auto;border-radius:10px}
.option-image{max-height:180px;margin:8px 0}
.result-card{text-align:center;max-width:680px;margin:24px auto;padding:32px}
.result-mark{width:64px;height:64px;border-radius:50%;background:#dcf5e6;color:#14804a;display:grid;place-items:center;font-size:32px;font-weight:900;margin:0 auto 16px}
.result-score{font-size:56px;line-height:1.1;font-weight:900;color:#1769d2;margin:14px 0}
.result-status{display:inline-block;border-radius:30px;background:#e5f7ec;color:#147344;padding:8px 18px;font-weight:800}
.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}
.result-grid div{background:#f2f7fd;border:1px solid #e1eaf5;border-radius:12px;padding:14px}
.result-grid b,.result-grid small{display:block}.result-grid b{font-size:24px;color:#174f97}.result-grid small{color:#64748b}
.question-actions button:disabled{opacity:.4;cursor:not-allowed}
input[type=checkbox],input[type=radio]{width:auto}
@media(max-width:650px){.sidebar{background:#fff}.side-nav a:first-child{background:#eaf3ff}.result-grid{grid-template-columns:repeat(2,1fr)}}
