:root{--bg: #f5f7fb;--surface: #ffffff;--surface-2: #f0f3f9;--border: #dfe4ee;--text: #1b2333;--muted: #5d6b82;--primary: #2457d6;--primary-ink: #ffffff;--primary-soft: #e8efff;--ok: #1d8a4e;--ok-soft: #e4f5eb;--warn: #b45f06;--warn-soft: #fff2dc;--bad: #c62f3b;--bad-soft: #fde8ea;--radius: 10px;--shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 16px rgba(20, 30, 60, .05);font-family:Inter,Segoe UI,system-ui,-apple-system,Roboto,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}h1,h2,h3{margin:0 0 .5rem;line-height:1.25}h1{font-size:1.5rem}h2{font-size:1.15rem}h3{font-size:1rem}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}p{line-height:1.55}.muted{color:var(--muted)}.small{font-size:12.5px}.mono{font-family:ui-monospace,Consolas,monospace}.nowrap{white-space:nowrap}.right{text-align:right}.grow{flex:1}.row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:.75rem}.between{justify-content:space-between}.mt{margin-top:1rem}.mb{margin-bottom:1rem}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}button,.btn{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.5rem .9rem;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;line-height:1.2;white-space:nowrap}button:hover,.btn:hover{background:var(--surface-2);text-decoration:none}button:disabled{opacity:.55;cursor:not-allowed}button.primary,.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}button.primary:hover{filter:brightness(1.07)}button.danger{color:var(--bad);border-color:#f1c2c6}button.danger:hover{background:var(--bad-soft)}button.ghost{border-color:transparent;background:transparent}button.sm,.btn.sm{padding:.3rem .6rem;font-size:12.5px}input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.5rem .65rem;width:100%}textarea{resize:vertical;min-height:80px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--primary);outline-offset:1px;border-color:var(--primary)}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--primary)}label.field{display:flex;flex-direction:column;gap:.35rem;font-weight:500}label.field>span.hint{font-weight:400;color:var(--muted);font-size:12.5px}label.check{display:flex;gap:.5rem;align-items:flex-start;cursor:pointer}label.check input{margin-top:.2rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.1rem 1.2rem}.card+.card{margin-top:1rem}.alert{padding:.7rem .9rem;border-radius:8px;border:1px solid}.alert.error{background:var(--bad-soft);border-color:#f3c0c5;color:#8d1f29}.alert.ok{background:var(--ok-soft);border-color:#b9e3c9;color:#155f37}.alert.warn{background:var(--warn-soft);border-color:#f4d39a;color:#7a3f02}.alert.info{background:var(--primary-soft);border-color:#c8d7ff;color:#173d9c}.badge{display:inline-block;padding:.15rem .5rem;border-radius:99px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--muted);white-space:nowrap}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.bad{background:var(--bad-soft);color:var(--bad)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.info{background:var(--primary-soft);color:var(--primary)}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem}.stat .label{color:var(--muted);font-size:12.5px}.stat .value{font-size:1.6rem;font-weight:650;margin-top:.2rem;font-variant-numeric:tabular-nums}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.6rem .7rem;border-bottom:1px solid var(--border);vertical-align:top}th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:600;background:var(--surface-2)}tbody tr:hover{background:#fafbfe}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.table-wrap table th:first-child{border-top-left-radius:var(--radius)}.empty{padding:2rem;text-align:center;color:var(--muted)}.clip{max-width:520px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.admin{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#121a2d;color:#c9d2e6;padding:1rem .75rem;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:.6rem;align-items:center;color:#fff;font-weight:700;font-size:1.05rem;padding:.25rem .5rem 1.1rem}.brand .logo{width:30px;height:30px;border-radius:8px;background:var(--primary);display:grid;place-items:center;font-weight:800}.sidebar nav{display:flex;flex-direction:column;gap:2px}.sidebar nav a{color:#c9d2e6;padding:.55rem .7rem;border-radius:7px}.sidebar nav a:hover{background:#ffffff0f;text-decoration:none}.sidebar nav a.active{background:#5082ff2e;color:#fff}.sidebar .foot{margin-top:auto;padding:.5rem;font-size:12.5px}.sidebar .foot button{width:100%;justify-content:center;margin-top:.5rem;background:transparent;color:#c9d2e6;border-color:#2c3754}.main{padding:1.5rem 2rem 3rem;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}.page-head p{margin:.2rem 0 0;color:var(--muted)}.toolbar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}.toolbar input,.toolbar select{width:auto;min-width:180px}.tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--border);margin-bottom:1rem}.tabs button{border:none;border-bottom:2px solid transparent;border-radius:0;background:none;padding:.6rem .9rem;color:var(--muted)}.tabs button.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}@media(max-width:860px){.admin{grid-template-columns:1fr}.sidebar{position:static;height:auto}.sidebar nav{flex-direction:row;flex-wrap:wrap}.main{padding:1rem}}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0e142480;display:grid;place-items:center;z-index:50;padding:1rem}.modal{background:var(--surface);border-radius:12px;width:min(720px,100%);max-height:calc(100vh - 2rem);overflow:auto;box-shadow:0 20px 60px #00000040}.modal.wide{width:min(980px,100%)}.modal header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.2rem;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:1}.modal .body{padding:1.2rem}.modal footer{display:flex;justify-content:flex-end;gap:.5rem;padding:.9rem 1.2rem;border-top:1px solid var(--border);position:sticky;bottom:0;background:var(--surface)}.center-page{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.auth-card{width:min(400px,100%)}.public-wrap{max-width:820px;margin:0 auto;padding:2rem 1rem 4rem}.public-head{display:flex;align-items:center;gap:.6rem;margin-bottom:1.25rem;font-weight:700}.public-head .logo{width:30px;height:30px;border-radius:8px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:800}.public-head .brand-logo{display:inline-flex}.public-head .brand-logo img{display:block;height:26px;width:auto}.public-head .brand-sep{width:1px;height:22px;background:var(--border)}.facts{display:flex;gap:.5rem;flex-wrap:wrap;margin:.5rem 0 1rem}.facts .badge{font-size:12.5px;padding:.3rem .7rem}.instructions{white-space:pre-wrap;background:var(--surface-2);border-radius:8px;padding:.9rem 1rem;line-height:1.6}.exam{min-height:100vh;display:flex;flex-direction:column;user-select:none;-webkit-user-select:none}.exam-bar{position:sticky;top:0;z-index:10;background:var(--surface);border-bottom:1px solid var(--border);padding:.6rem 1.2rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.exam-bar .title{font-weight:650}.timer{font-variant-numeric:tabular-nums;font-weight:700;font-size:1.2rem;padding:.3rem .8rem;border-radius:8px;background:var(--primary-soft);color:var(--primary)}.timer.low{background:var(--warn-soft);color:var(--warn)}.timer.critical{background:var(--bad-soft);color:var(--bad);animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.65}}.exam-body{display:grid;grid-template-columns:1fr 280px;gap:1.2rem;padding:1.2rem;max-width:1200px;width:100%;margin:0 auto;flex:1}.q-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem}.q-text{font-size:1.05rem;line-height:1.6;margin:.5rem 0 1.2rem}.q-code{font-family:ui-monospace,Consolas,Cascadia Mono,monospace;font-size:13.5px;line-height:1.55;background:#0f172a;color:#e2e8f0;padding:.9rem 1rem;border-radius:8px;overflow-x:auto;margin:.7rem 0 0;white-space:pre;-webkit-user-select:none;user-select:none}.opt{display:flex;gap:.75rem;align-items:flex-start;padding:.8rem 1rem;border:1.5px solid var(--border);border-radius:9px;margin-bottom:.6rem;cursor:pointer;background:var(--surface)}.opt:hover{border-color:#b3c4ee}.opt.sel{border-color:var(--primary);background:var(--primary-soft)}.opt .key{width:26px;height:26px;flex:none;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--border);font-weight:600;font-size:12.5px;background:var(--surface)}.opt.sel .key{background:var(--primary);color:#fff;border-color:var(--primary)}.opt input{position:absolute;opacity:0;pointer-events:none}.palette{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:.4rem}.palette button{justify-content:center;padding:.45rem 0;font-variant-numeric:tabular-nums}.palette button.answered{background:var(--ok-soft);border-color:#a9dcbd;color:var(--ok)}.palette button.review{background:var(--warn-soft);border-color:#f0cd8f;color:var(--warn)}.palette button.current{outline:2px solid var(--primary);outline-offset:1px}.legend{display:flex;gap:.8rem;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:.8rem}.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:.3rem;vertical-align:-1px;border:1px solid var(--border)}.save-state{font-size:12.5px;color:var(--muted)}.save-state.bad{color:var(--bad);font-weight:600}@media(max-width:860px){.exam-body{grid-template-columns:1fr}}.result-hero{text-align:center;padding:2rem 1rem}.result-hero .pct{font-size:3rem;font-weight:750;font-variant-numeric:tabular-nums}.bar{height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden}.bar>i{display:block;height:100%;background:var(--primary)}.opt-row{display:grid;grid-template-columns:auto 1fr auto;gap:.5rem;align-items:center;margin-bottom:.5rem}.answer-opt{padding:.45rem .7rem;border-radius:7px;border:1px solid var(--border);margin:.3rem 0}.answer-opt.correct{background:var(--ok-soft);border-color:#a9dcbd}.answer-opt.wrong{background:var(--bad-soft);border-color:#f3c0c5}
