*{box-sizing:border-box}body{margin:0;font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#f4f6f9;color:#222;font-size:15px;line-height:1.6}
a{color:#1f4e79}main{max-width:1150px;margin:auto;padding:16px}h1{font-size:22px;margin:8px 0 14px}h2{font-size:17px;margin:0 0 10px}h3{font-size:15px;margin:12px 0 6px}
.top{background:#1f4e79;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;flex-wrap:wrap;gap:8px}.top a{color:#fff;margin-inline-start:14px;text-decoration:none}
.brand{font-weight:700}.who{margin-inline-start:14px;opacity:.85}.out{background:#c62828;padding:3px 10px;border-radius:6px}
footer{text-align:center;color:#888;font-size:12px;padding:20px}
.card{background:#fff;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.08);padding:16px;margin-bottom:16px}.narrow{max-width:460px}
.login{max-width:400px;margin:50px auto}.muted{color:#777;font-size:13px}.center{text-align:center}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:800px){.grid2{grid-template-columns:1fr}}
.form label,.login label{display:block;margin-bottom:10px;font-size:14px}input:not([type=checkbox]):not([type=radio]){width:100%;padding:8px;border:1px solid #ccc;border-radius:6px;font:inherit;margin-top:3px}
.chk{display:inline-flex!important;gap:6px;align-items:center}
.btn{display:inline-block;background:#1f4e79;color:#fff;border:0;border-radius:7px;padding:8px 16px;font:inherit;cursor:pointer;text-decoration:none}
.btn:hover{filter:brightness(1.1)}.btn.sm{padding:3px 10px;font-size:13px}.btn.go{background:#2e7d32}.btn.danger{background:#c62828}.btn.ghost{background:#e8edf3;color:#1f4e79}.btn:disabled{opacity:.4;cursor:default}
.flash{padding:10px 14px;border-radius:8px;margin-bottom:14px}.flash.ok{background:#e6f4ea;color:#1e5e2c}.flash.err{background:#fde8e8;color:#9b1c1c}.flash.warn{background:#fff6dc;color:#7a5200}
.stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.stats>div{flex:1;min-width:130px;background:#fff;border-radius:10px;padding:12px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.stats b{display:block;font-size:24px;color:#1f4e79}.stats span{font-size:12px;color:#666}.stats .pass b{color:#2e7d32}.stats .fail b{color:#c62828}
.tblwrap{overflow-x:auto}.tbl{width:100%;border-collapse:collapse;font-size:14px}.tbl th{background:#eef2f7;text-align:left}.tbl th,.tbl td{padding:7px 8px;border-bottom:1px solid #eee;vertical-align:top}.tbl tr.off{opacity:.5}
.tbl details form{margin-top:6px}.form.mini label{font-size:12px}
.tag{padding:1px 9px;border-radius:10px;font-size:12px}.tag.pass{background:#e6f4ea;color:#1e5e2c}.tag.fail{background:#fde8e8;color:#9b1c1c}
.examrow{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #eee}
.bar{position:relative;background:#eee;border-radius:6px;height:20px;overflow:hidden;min-width:120px}.bar span{display:block;height:100%}.bar em{position:absolute;inset:0;text-align:center;font-style:normal;font-size:12px;line-height:20px;font-weight:700}
.catrow{display:grid;grid-template-columns:1fr 170px;gap:10px;align-items:center;margin-bottom:8px;font-size:13px}.up{color:#2e7d32}.down{color:#c62828}
.chart{width:100%;height:auto;overflow:visible;margin-top:10px}.weak li{font-size:13px}
.examtop{position:sticky;top:0;z-index:5;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.1);margin-bottom:14px;gap:10px;flex-wrap:wrap}
.timer{font-size:26px;font-weight:700;color:#1f4e79;direction:ltr;font-family:Consolas,monospace}.timer.low{color:#c62828;animation:bl 1s infinite}@keyframes bl{50%{opacity:.5}}
.examwrap{display:grid;grid-template-columns:230px 1fr;gap:14px}@media(max-width:800px){.examwrap{grid-template-columns:1fr}.navgrid{order:2}}
.navgrid{background:#fff;border-radius:10px;padding:10px;box-shadow:0 1px 4px rgba(0,0,0,.08);align-self:start;display:flex;flex-wrap:wrap;gap:5px}
.navgrid button.n,.legend .n{width:36px;height:32px;border:1px solid #ccc;background:#fff;border-radius:6px;cursor:pointer;font:inherit;font-size:13px}
.legend{width:100%;font-size:12px;margin-top:8px}.legend .n{display:inline-block;width:14px;height:14px;vertical-align:middle;cursor:default}
.n.done{background:#d7e8f8;border-color:#1f4e79}.n.flag{background:#ffe9a8!important;border-color:#d9a400}.n.cur{outline:2px solid #c62828}
.qhead{display:flex;justify-content:space-between;color:#555;margin-bottom:10px;flex-wrap:wrap}.qtext{font-size:17px;font-family:"Segoe UI",Arial,sans-serif;margin-bottom:12px;text-align:left}
.qimg{max-width:100%;max-height:340px;display:block;margin:8px auto;border:1px solid #ddd;border-radius:6px}
.opts{display:flex;flex-direction:column;gap:8px;font-family:"Segoe UI",Arial,sans-serif}.opt{display:flex;gap:8px;align-items:center;padding:10px 12px;border:1px solid #ddd;border-radius:8px;cursor:pointer}
.opt:hover{background:#f3f7fb}.opt.sel{background:#d7e8f8;border-color:#1f4e79}.qnav{display:flex;justify-content:space-between;margin-top:16px;gap:8px}
.tabs{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}.tabs a{padding:5px 12px;border-radius:16px;background:#eef2f7;text-decoration:none;font-size:13px}.tabs a.on{background:#1f4e79;color:#fff}
.rev{border:1px solid #eee;border-left:5px solid #999;border-radius:8px;padding:10px 12px;margin-bottom:12px}.rev.ok{border-left-color:#2e7d32}.rev.bad{border-left-color:#c62828}.rev.na{border-left-color:#e0a100}
.revhead{font-size:13px;color:#555;margin-bottom:6px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ropts{list-style:none;padding:0;margin:6px 0;font-family:"Segoe UI",Arial,sans-serif;text-align:left}
.ropts li{padding:4px 8px;border-radius:5px;margin-bottom:3px}.ropts li.right{background:#e6f4ea;font-weight:700}.ropts li.mine{background:#fde8e8}
.rev details{background:#fafbfc;border-radius:6px;padding:6px 10px;font-size:14px}.rev summary{cursor:pointer;color:#1f4e79}.note{color:#7a5200}.tips li{margin-bottom:4px;font-size:14px}
.btn.warnb{background:#e0a100;color:#222}
.opt.right{background:#e6f4ea!important;border-color:#2e7d32}.opt.wrong{background:#fde8e8!important;border-color:#c62828}
.n.ok{background:#c8e6c9!important;border-color:#2e7d32}.n.no{background:#ffcdd2!important;border-color:#c62828}
.fb{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.25);z-index:50}
.fb.show{display:flex}.fbin{background:#fff;border-radius:20px;padding:30px 50px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.3);animation:pop .25s}
.fbicon{font-size:110px;line-height:1;font-weight:700}.fbtxt{font-size:24px;font-weight:700;margin-top:8px}
.fb.good .fbicon,.fb.good .fbtxt{color:#2e7d32}.fb.bad .fbicon,.fb.bad .fbtxt{color:#c62828}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
.qfa{background:#f1f7ff;border-radius:6px;padding:8px 10px;margin:6px 0;line-height:1.9}.ofa{color:#1f4e79;font-size:13.5px;padding:2px 4px 0;line-height:1.8}
.ans2{background:#e6f4ea;border-radius:6px;padding:8px 10px;margin:6px 0}
.tbbox{margin:14px 0;padding:8px;border:1px solid #d7dde5;border-radius:8px;background:#fff;clear:both;overflow-x:auto}.tbtitle{font-weight:700;color:#1f4e79;margin-bottom:6px}.tbimg{display:block;max-width:none;width:100%;min-width:640px;height:auto}
.tbmodal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:60;display:none;align-items:stretch;justify-content:center}.tbmodal.show{display:flex}
.tbpanel{background:#fff;width:min(1100px,96vw);margin:2vh auto;border-radius:10px;display:flex;flex-direction:column;overflow:hidden}
.tbhead{display:flex;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid #ddd;flex-wrap:wrap}.tbhead .grow{flex:1}
.tbtabs{display:flex;gap:6px;flex-wrap:wrap;padding:8px 10px;border-bottom:1px solid #eee;max-height:96px;overflow:auto}.tbtabs button{border:1px solid #c8d1dc;background:#f5f8fb;border-radius:6px;padding:4px 10px;cursor:pointer;font-family:inherit}.tbtabs button.on{background:#1f4e79;color:#fff}
.tbbody{overflow:auto;padding:10px;flex:1;text-align:center}.tbbody img{width:100%;min-width:700px;height:auto;display:block;margin:0 auto 16px;border:1px solid #ddd}
.rev details p{white-space:pre-line}

.tbbox{overflow:visible;text-align:center}.tbbox .tbtitle{text-align:left}
.tbimg{width:100%!important;min-width:0!important;max-width:1000px!important;margin:0 auto;height:auto;cursor:zoom-in}
.tbmodal{overflow:hidden}.tbpanel{max-height:96vh;min-height:0;height:96vh;margin:2vh auto}
.tbhead{flex:0 0 auto;background:#fff}.tbtabs{flex:0 0 auto}.tbbody{min-height:0;flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch}
.tbbody img{width:100%!important;min-width:0!important;max-width:none!important;margin:0 auto 16px;display:block}
.tbbody img.z2{width:150%!important}.tbbody img.z3{width:220%!important}.tbbody img.z4{width:320%!important}
.tbhead .btn{padding:4px 12px}
@media(max-width:700px){.tbpanel{width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0}}
.tbbody{direction:ltr}
@media(max-width:700px){.tbbox{overflow-x:auto;text-align:left}.tbimg{width:900px!important;max-width:none!important}}
.exbtns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.exbtns form{margin:0}

/* ---- glass buttons ---- */
.gbtn{--c1:#6366f1;--c2:#8b5cf6;--sh:99,102,241;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:12px 20px;font:inherit;font-weight:700;font-size:15px;color:#fff;text-decoration:none;cursor:pointer;border:1px solid rgba(255,255,255,.55);border-radius:14px;background:linear-gradient(135deg,rgba(var(--sh),.88),rgba(var(--sh),.62));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 8px 20px rgba(var(--sh),.38),inset 0 1px 0 rgba(255,255,255,.65),inset 0 -3px 8px rgba(0,0,0,.12);text-shadow:0 1px 2px rgba(0,0,0,.3);overflow:hidden;transition:transform .2s,box-shadow .2s,filter .2s}
.gbtn::before{content:"";position:absolute;top:0;left:0;right:0;height:50%;background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,0));border-radius:14px 14px 40% 40%;pointer-events:none}
.gbtn:hover{transform:translateY(-4px) scale(1.04);filter:brightness(1.08);box-shadow:0 14px 28px rgba(var(--sh),.5),inset 0 1px 0 rgba(255,255,255,.75),inset 0 -3px 8px rgba(0,0,0,.12);animation:gwig .45s ease-in-out}
.gbtn:active{transform:translateY(0) scale(.98);box-shadow:0 4px 10px rgba(var(--sh),.4),inset 0 2px 6px rgba(0,0,0,.2)}
@keyframes gwig{0%{rotate:0deg}20%{rotate:-2.5deg}40%{rotate:2.5deg}60%{rotate:-1.5deg}80%{rotate:1.5deg}100%{rotate:0deg}}
.g-fc{--sh:168,85,247}.g-st{--sh:14,165,233}.g-go{--sh:22,163,74}
.examrow.combo{background:linear-gradient(90deg,rgba(250,204,21,.14),rgba(251,146,60,.10));border-radius:12px;padding:12px;border:1px solid rgba(251,146,60,.4);margin-top:8px}
@media(prefers-reduced-motion:reduce){.gbtn:hover{animation:none}}

.avatar{border-radius:50%;object-fit:cover;vertical-align:middle;display:inline-block;background:#dbe6f3}
.avatar.ini{background:#1f4e79;color:#fff;text-align:center;font-weight:700;width:32px;height:32px;line-height:32px}
.who{display:inline-flex;gap:8px;align-items:center}.top nav{display:flex;align-items:center;flex-wrap:wrap}
.hello{display:flex;gap:14px;align-items:center;margin-bottom:10px}.hello h1{margin:0}.small{font-size:12.5px}
.gsign{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border:1px solid #747775;border-radius:6px;padding:11px 16px;color:#1f1f1f;text-decoration:none;font-weight:600;margin:14px 0}.gsign:hover{background:#f6f8fc;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.login{max-width:460px}.btn.go{background:#2e7d32}
.pkg{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #d7dde5;border-radius:10px;padding:12px;margin-bottom:10px}.price{font-size:20px;font-weight:700;color:#1f4e79}
.order{border-bottom:1px solid #eee;padding:10px 0;display:flex;flex-direction:column;gap:6px}.order .inline{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.order .inline input{width:auto;flex:1;min-width:170px}
.tag.wait{background:#fff6dc;color:#7a5200}
.flagged{background:#fde8e8}.tbl th{text-align:left}
.wmark{position:fixed;inset:0;pointer-events:none;z-index:40;opacity:.07;background-repeat:repeat}
body.guard{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.guard input,body.guard textarea{-webkit-user-select:text;user-select:text}
body.guard img{-webkit-user-drag:none;pointer-events:auto}
@media print{body.guard *{display:none!important}body.guard:before{content:"Printing is disabled.";display:block;font-size:24px}}
.qtext{white-space:pre-line}

.mock{max-width:900px;margin:10px auto 30px;background:#fff;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.08);padding:20px}
.mockgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:14px 0}
.mockcard{border:1px solid #d7dde5;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:4px}.mockcard.first{border-color:#f59e0b;background:#fff8e6}
.mockcard span{color:#1f4e79;font-weight:600}.mockcard small{color:#777}
.feat{list-style:none;padding:0;line-height:1.9}
.sample{background:#f4f6f9;border-radius:10px;padding:14px;margin:14px 0}
.sopt{display:block;width:100%;text-align:left;font:inherit;padding:10px 12px;margin:6px 0;border:1px solid #ccc;background:#fff;border-radius:8px;cursor:pointer}
.sopt:hover:not(:disabled){background:#eef4fb}.sopt.right{background:#e6f4ea;border-color:#2e7d32}.sopt.wrong{background:#fde8e8;border-color:#c62828}
.sres{background:#fff;border-radius:8px;padding:8px 12px}

.reqbox{background:#eef7ee;border:1px solid #b9dfbb;border-radius:10px;padding:14px 16px;margin:16px 0}.reqbox h3{margin-top:0}
/* profile, locks, packs */
.profbar{background:#fff3cd;border:1px solid #f0c36d;color:#664d03;border-radius:8px;padding:10px 14px;margin:0 0 14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ferr{display:block;color:#b42318;font-size:13px;margin-top:3px}
.rules{background:#f5f8fb;border:1px solid #d7dde5;border-radius:10px;padding:12px 14px;margin:12px 0}.rules p{margin:6px 0}
.row2{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.lockbadge{display:inline-block;background:#eceff3;color:#475467;border-radius:20px;padding:4px 12px;font-weight:600}
.examrow.islocked{background:#fafafa}.examrow.islocked b{color:#667085}
label.pkg{cursor:pointer}.big{font-size:18px}
.pk{display:inline-block;min-width:26px;text-align:center;border-radius:5px;padding:1px 5px;margin:1px;font-size:12px;background:#eceff3;color:#98a2b3}.pk.on{background:#1f7a3a;color:#fff}
.packrow{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 10px}.inline.packs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:6px 0}
