:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#19243a;background:#f3f6fb;font-size:15px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}
button,.btn{border:1px solid #cad5e8;background:#fff;border-radius:10px;padding:.65rem .85rem;font-weight:650;color:#213657;white-space:nowrap}
button:hover:not(:disabled){background:#edf3ff}button.primary{background:#2456d3;color:white;border-color:#2456d3}button.primary:hover{background:#173da8}
button.danger{border-color:#e9b0b0;color:#a31f36;background:#fff8f8}button.ghost{border:0;background:none}button.small{padding:.36rem .55rem;font-size:.83rem}
input,select,textarea{width:100%;padding:.7rem .8rem;color:#1b2d48;border:1px solid #c6d3e6;border-radius:9px;background:white;min-height:42px}textarea{min-height:102px;resize:vertical}input[type=checkbox],input[type=radio]{width:auto;min-height:0;accent-color:#2456d3}
label{font-weight:650;font-size:.86rem;display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}label.inline{flex-direction:row;align-items:center;font-weight:500;margin:0;gap:.5rem}
small,.muted{color:#64738b}.muted{font-size:.91rem}.hint{color:#54627c;font-size:.85rem}h1,h2,h3{line-height:1.22;color:#15254c}h1{font-size:1.8rem}h2{font-size:1.3rem;margin:.25rem 0 1rem}h3{font-size:1.08rem}p{margin:.35rem 0 1rem}
.shell{max-width:1320px;margin:auto;padding:0 1.15rem 3rem}.topbar{background:white;border-bottom:1px solid #dbe3f0}.topbar-inner{max-width:1320px;margin:auto;min-height:70px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{font-weight:800;color:#173770;letter-spacing:.02em;font-size:1.2rem}.brand small{display:block;font-size:.68rem;font-weight:500;letter-spacing:0}.profile{display:flex;align-items:center;gap:12px}.profile span{font-size:.9rem}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1.6rem 0 1rem}.page-heading h1{margin:0}
.nav{display:flex;gap:.5rem;overflow:auto;padding:1.05rem 0;border-bottom:1px solid #d9e2f0}.nav button{border:0;background:transparent;padding:.6rem .85rem;color:#52617c}.nav button.active{background:#e0e9ff;color:#123d9c}
.card{background:white;border:1px solid #dce4f0;border-radius:15px;padding:1.25rem;box-shadow:0 4px 18px #1f376809}.card+.card{margin-top:1rem}.grid{display:grid;gap:1rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.cards{margin-top:1rem}.stat{padding:1.15rem}.stat strong{font-size:1.7rem;display:block;color:#1d4eb5}.stat span{color:#566782;font-size:.87rem}
.row{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.space{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:.8rem}.status{display:inline-flex;align-items:center;gap:.3rem;padding:.24rem .6rem;background:#eef1f8;border-radius:999px;font-size:.8rem;font-weight:700}.status.active,.status.open,.status.submitted{color:#155f40;background:#e2f6ec}.status.locked,.status.closed{color:#a12635;background:#fdebed}.status.review,.status.paused{color:#865715;background:#fff2d8}.status.draft{color:#5d6880;background:#eef1f8}
.tablewrap{overflow-x:auto}.table{border-collapse:collapse;min-width:700px;width:100%;font-size:.88rem}.table th{text-align:left;background:#f0f4fb;color:#37465c;padding:.75rem}.table td{border-top:1px solid #e1e7f2;padding:.7rem;vertical-align:middle}.table td:last-child{white-space:nowrap}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}.form-grid .full{grid-column:1/-1}.form-grid label{margin-bottom:1rem}.actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-top:1rem}.notice{border-left:4px solid #2456d3;padding:.8rem 1rem;background:#eff4ff;border-radius:7px;margin:.6rem 0 1rem}.notice.warn{border-color:#bd7817;background:#fff8e8}.notice.error{border-color:#c73345;background:#fff2f2}.notice.ok{border-color:#16845b;background:#e8f8f0}.toast{position:fixed;z-index:1000;right:1.3rem;bottom:1.3rem;max-width:520px;padding:1rem 1.2rem;border-radius:12px;color:#fff;background:#1c365e;box-shadow:0 8px 24px #10234240}.toast[hidden]{display:none}.toast.error{background:#9c273a}.toast.success{background:#186b50}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:1rem;background:radial-gradient(circle at 70% 20%,#e3ecff,#f3f6fb 55%,#e8f1fa)}.auth{max-width:440px;width:100%;padding:2rem}.auth h1{font-size:1.65rem;margin-bottom:.2rem}.auth header{text-align:center;margin-bottom:1.5rem}.auth .big{font-weight:900;font-size:2rem;color:#214db3}.auth .btn{width:100%}
.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:1rem;align-items:start}.exam-side{position:sticky;top:1rem}.exam-question{font-size:1.1rem;font-weight:650;white-space:pre-wrap;margin:1rem 0 1.25rem}.exam-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem}.timer{background:#e8f0ff;color:#123c91;font-weight:800;padding:.45rem .8rem;border-radius:10px;font-variant-numeric:tabular-nums}.timer.urgent{background:#fce7e7;color:#ae2b37}.choices{display:flex;flex-direction:column;gap:.75rem}.choice{border:1px solid #d8e2f0;padding:.9rem 1rem;border-radius:11px;display:flex;gap:.8rem;cursor:pointer;align-items:flex-start}.choice:hover{background:#f2f7ff}.choice.selected{border-color:#2456d3;background:#eaf0ff}.choice input{margin-top:.3rem}.number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem}.number-grid button{padding:.52rem .1rem;text-align:center;white-space:normal;font-size:.87rem}.number-grid .answered{background:#def7ea;border-color:#8ccdad}.number-grid .flagged{box-shadow:inset 0 -4px #d59826}.number-grid .current{border:2px solid #2354c5}.save-status{font-size:.85rem;color:#67768b}.save-status.bad{color:#ac2539;font-weight:700}.save-status.busy{color:#966416}.question-image{max-width:100%;max-height:300px;object-fit:contain;border-radius:10px;border:1px solid #e1e7f0}
.loader-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh}.spinner{width:35px;height:35px;border:4px solid #c4d7f7;border-top-color:#2456d3;border-radius:100%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f0f4fb;padding:.5rem .7rem;border-radius:8px;letter-spacing:.12em;font-weight:800;display:inline-block;font-size:1.17rem}.link{background:none;border:0;text-decoration:underline;color:#1642a5;padding:.25rem}.empty{text-align:center;padding:2.5rem;color:#586b84}.side-note{font-size:.84rem;color:#60708a}.hidden{display:none!important}
@media(max-width:900px){.grid.four{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:repeat(2,1fr)}.exam-layout{grid-template-columns:1fr}.exam-side{position:static;order:-1}.number-grid{grid-template-columns:repeat(10,1fr)}}
@media(max-width:570px){.grid.two,.grid.three,.grid.four,.form-grid{grid-template-columns:1fr}.shell{padding:0 .75rem 2rem}.topbar-inner{padding:.7rem}.profile span{display:none}.card{padding:.9rem}.number-grid{grid-template-columns:repeat(6,1fr)}.auth{padding:1.2rem}.table{font-size:.8rem}}

/* Form login HP: lihat password tidak menutupi kolom. */
.auth .row{flex-wrap:nowrap}.auth .row input{min-width:0;flex:1}.auth .row button{flex:0 0 auto}
