/* Elemen bersyarat harus benar-benar tersembunyi meskipun komponen memiliki display:flex/grid. */
[hidden],
[data-for-type][hidden]{display:none!important}

:root{
  --navy-950:#061426;
  --navy-900:#091b33;
  --navy-800:#102b50;
  --navy-700:#163d70;
  --primary:#2563eb;
  --primary-2:#0ea5e9;
  --primary-soft:#eaf2ff;
  --accent:#e8ad45;
  --bg:#f2f6fb;
  --card:#ffffff;
  --text:#17243a;
  --muted:#6d7a8d;
  --line:#dfe7f1;
  --line-strong:#cad6e4;
  --success:#14835a;
  --warning:#b66d08;
  --danger:#c13b47;
  --shadow-sm:0 8px 22px rgba(15,42,74,.07);
  --shadow:0 18px 45px rgba(15,42,74,.10);
  --shadow-lg:0 28px 70px rgba(6,20,38,.18);
  --radius:20px;
  --radius-sm:12px;
  --sidebar-width:272px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:104px}
body{
  margin:0;
  min-width:320px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 95% 0,rgba(37,99,235,.075),transparent 24rem),
    radial-gradient(circle at 0 100%,rgba(14,165,233,.055),transparent 26rem),
    var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{color:inherit}
img,svg{display:block}
::selection{background:rgba(37,99,235,.18)}

.app-shell{min-height:100vh}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar-width);
  padding:22px 16px 18px;
  display:flex;
  flex-direction:column;
  z-index:40;
  color:#d9e6f7;
  background:
    radial-gradient(circle at 12% 8%,rgba(80,164,255,.22),transparent 17rem),
    linear-gradient(180deg,var(--navy-900),var(--navy-950));
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:14px 0 44px rgba(5,18,35,.14);
}
.sidebar:after{
  content:"";
  position:absolute;
  inset:auto 18px 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);
}
.brand{
  display:flex;
  align-items:center;
  gap:13px;
  padding:2px 8px 22px;
  margin-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.brand-mark{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.04em;
  background:linear-gradient(145deg,#62c5ff 0%,#2b6df2 64%,#1948b2 100%);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 12px 30px rgba(23,104,229,.36),inset 0 1px 0 rgba(255,255,255,.32);
}
.brand-copy{min-width:0}
.brand-copy strong{display:block;color:#fff;font-size:19px;letter-spacing:.1em;line-height:1.15}
.brand-copy small{display:block;margin-top:4px;color:#9eb4cf;font-size:11px;white-space:nowrap}
.sidebar-caption{
  padding:0 13px 8px;
  color:#7188a5;
  font-size:9px;
  font-weight:800;
  letter-spacing:.18em;
}
.sidebar-caption-spaced{margin-top:13px}
.sidebar nav{display:flex;flex-direction:column;gap:5px;flex:1;overflow-y:auto;padding-right:2px}
.sidebar nav::-webkit-scrollbar{width:4px}
.sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.sidebar nav a{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:11px 13px;
  border-radius:13px;
  color:#aebfd4;
  font-weight:680;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.sidebar nav a:before{
  content:"";
  position:absolute;
  left:0;
  width:3px;
  height:18px;
  border-radius:0 6px 6px 0;
  background:#65c5ff;
  opacity:0;
  transform:scaleY(.55);
  transition:.18s ease;
}
.sidebar nav a:hover{color:#fff;background:rgba(255,255,255,.065);transform:translateX(2px)}
.sidebar nav a.active{
  color:#fff;
  background:linear-gradient(90deg,rgba(45,119,234,.27),rgba(41,109,220,.09));
  box-shadow:inset 0 0 0 1px rgba(119,183,255,.08);
}
.sidebar nav a.active:before{opacity:1;transform:scaleY(1)}
.nav-icon{width:20px;height:20px;flex:0 0 20px}
.sidebar-footer{
  display:flex;
  align-items:center;
  gap:10px;
  padding:17px 5px 1px;
  margin-top:13px;
  border-top:1px solid rgba(255,255,255,.09);
}
.avatar{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#fff;
  font-weight:850;
  background:linear-gradient(145deg,#3078e8,#1454bd);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 7px 18px rgba(0,0,0,.15);
}
.avatar-small{width:34px;height:34px;flex-basis:34px;border-radius:11px;box-shadow:none}
.identity{min-width:0;flex:1}
.identity strong,.identity small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.identity strong{color:#fff;font-size:12px}
.identity small{margin-top:2px;color:#8fa7c2;font-size:10px;text-transform:capitalize}
.logout{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#9eb2c9;
  transition:.18s ease;
}
.logout:hover{color:#fff;background:rgba(255,255,255,.08)}
.logout .nav-icon{width:18px;height:18px}
.sidebar-backdrop{display:none}

.main{min-height:100vh;margin-left:var(--sidebar-width)}
.main.full{margin-left:0}
.topbar{
  height:88px;
  position:sticky;
  top:0;
  z-index:25;
  display:flex;
  align-items:center;
  gap:17px;
  padding:13px 28px;
  background:rgba(248,251,255,.88);
  border-bottom:1px solid rgba(202,214,228,.82);
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
}
.topbar-title{min-width:0}
.page-kicker{display:block;margin-bottom:2px;color:#7b8ba0;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.topbar h1{margin:0;color:var(--navy-900);font-size:22px;line-height:1.25;letter-spacing:-.025em}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:14px;color:var(--muted);font-size:11px;white-space:nowrap}
.system-status{display:flex;align-items:center;gap:8px;color:#3e526b;font-weight:700}
.status-dot{width:8px;height:8px;border-radius:50%;background:#20b675;box-shadow:0 0 0 4px rgba(32,182,117,.12)}
.topbar-separator{width:1px;height:24px;background:var(--line)}
.user-chip{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 5px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.8)}
.user-chip strong,.user-chip small{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.user-chip strong{color:var(--navy-900);font-size:11px}
.user-chip small{color:var(--muted);font-size:9px;text-transform:capitalize}
.menu-toggle{
  display:none;
  width:42px;
  height:42px;
  place-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  color:var(--navy-800);
  cursor:pointer;
  box-shadow:var(--shadow-sm);
}

.content{max-width:1540px;margin:0 auto;padding:28px}
.auth-content{max-width:none;padding:0}
.grid{display:grid;gap:20px}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  position:relative;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(214,225,237,.92);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:22px;
}
.card:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.card.compact{padding:16px}
.card-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:19px}
.card-header h2,.card-header h3{margin:0;color:var(--navy-900);letter-spacing:-.02em}
.card-header h2{font-size:19px}
.card-header h3{font-size:16px}
.card-header p{margin:5px 0 0;color:var(--muted);font-size:12px}

.metric{overflow:hidden;min-height:142px}
.metric:after{
  content:"";
  position:absolute;
  width:125px;
  height:125px;
  right:-42px;
  top:-43px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.10),rgba(37,99,235,.025) 68%,transparent 69%);
}
.metric .label{color:var(--muted);font-weight:700}
.metric .value{margin:8px 0 2px;color:var(--navy-900);font-size:32px;font-weight:880;letter-spacing:-.045em}
.metric .note{color:var(--muted);font-size:11px}
.metric-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#edf5ff,#dfeeff);color:var(--primary);font-size:20px;border:1px solid #dce9fa}

.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.toolbar .spacer{margin-left:auto}
.btn{
  min-height:41px;
  border:1px solid transparent;
  border-radius:12px;
  padding:9px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--navy-900);
  font-weight:780;
  line-height:1.1;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}
.btn.primary{color:#fff;background:linear-gradient(135deg,#2f75ed,#1d5bd2);box-shadow:0 10px 22px rgba(37,99,235,.22),inset 0 1px 0 rgba(255,255,255,.2)}
.btn.primary:hover{box-shadow:0 13px 27px rgba(37,99,235,.28)}
.btn.secondary{color:#fff;background:linear-gradient(135deg,var(--navy-800),var(--navy-950));box-shadow:0 10px 22px rgba(9,27,51,.18)}
.btn.light{background:#eef4fb;border-color:#e1eaf4;color:#1d3555}
.btn.light:hover{background:#e6eff9}
.btn.success{background:#14835a;color:#fff}
.btn.warning{background:#d88918;color:#fff}
.btn.danger{background:#d14a55;color:#fff}
.btn.outline{background:#fff;border-color:var(--line-strong);color:#1d3555}
.btn.outline:hover{border-color:#94b7e5;background:#f8fbff}
.btn.small{min-height:34px;padding:7px 11px;border-radius:10px;font-size:12px}
.btn.block{width:100%}
.btn[disabled]{opacity:.62;cursor:not-allowed;transform:none}

.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.form-group{display:flex;flex-direction:column;gap:7px;min-width:0}
.form-group.full{grid-column:1/-1}
.form-group label{color:#273a54;font-size:12px;font-weight:790;letter-spacing:.01em}
.form-group small{color:var(--muted);font-size:11px;line-height:1.5}
.form-control{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  color:var(--text);
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:12px;
  outline:0;
  box-shadow:0 1px 0 rgba(16,43,80,.02);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.form-control:hover{border-color:#acbfd4}
.form-control:focus{border-color:#4b88e8;box-shadow:0 0 0 4px rgba(37,99,235,.105)}
.form-control::placeholder{color:#9aa7b8}
textarea.form-control{min-height:118px;resize:vertical;line-height:1.6}
select.form-control{cursor:pointer}
input[type=file].form-control{padding:8px}
input[type=file].form-control::file-selector-button{margin-right:10px;border:0;border-radius:9px;padding:8px 11px;background:#eaf2ff;color:#1f5ab6;font-weight:760;cursor:pointer}
.form-check{display:flex;align-items:flex-start;gap:9px}
.form-check input{margin-top:4px;accent-color:var(--primary)}
.input-group{display:flex;min-width:0}
.input-group .form-control{border-radius:0 12px 12px 0}
.input-group .btn{min-width:45px;border-radius:12px 0 0 12px;border-color:var(--line-strong);border-right:0}
.form-hint{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}

.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff}
.table{width:100%;border-collapse:collapse;background:#fff}
.table th,.table td{padding:13px 14px;border-bottom:1px solid #edf1f6;text-align:left;vertical-align:top}
.table th{position:sticky;top:0;z-index:1;background:#f7f9fc;color:#52637a;font-size:10px;font-weight:820;text-transform:uppercase;letter-spacing:.075em;white-space:nowrap}
.table tr:last-child td{border-bottom:0}
.table tbody tr{transition:background .14s ease}
.table tbody tr:hover{background:#f8fbff}
.table .actions{display:flex;gap:6px;white-space:nowrap}

.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;background:#edf2f7;color:#4c5b70;border:1px solid rgba(120,140,165,.08)}
.badge.success{background:#e7f7ef;color:#087a49}
.badge.warning{background:#fff3d7;color:#916000}
.badge.danger{background:#ffe8e9;color:#ad303b}
.badge.info{background:#e8f2ff;color:#1a5fbf}
.badge.dark{background:#e1e7ef;color:#223044}
.badge.muted{background:#eef0f3;color:#6b7280}
.alert{
  position:relative;
  padding:14px 16px 14px 45px;
  margin-bottom:18px;
  border:1px solid;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(15,42,74,.04);
  white-space:pre-line;
}
.alert:before{position:absolute;left:16px;top:13px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;font-weight:900;content:"i"}
.alert.success{background:#eaf9f1;border-color:#bfe6d2;color:#106b43}.alert.success:before{content:"✓";background:#cceedd}
.alert.error{background:#fff0f1;border-color:#efc2c6;color:#982e38}.alert.error:before{content:"!";background:#f5d1d4}
.alert.warning{background:#fff7e5;border-color:#efd59d;color:#825800}.alert.warning:before{content:"!";background:#f7e3b9}
.alert.info{background:#edf6ff;border-color:#c6def8;color:#205f9f}.alert.info:before{background:#d5e9fb}
.alert a{text-decoration:underline}

.empty{padding:42px 24px;text-align:center;color:var(--muted)}
.empty strong{display:block;margin-bottom:6px;color:var(--navy-900);font-size:17px}
.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-bottom:22px;
  padding:31px 32px;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:25px;
  background:
    radial-gradient(circle at 89% 18%,rgba(91,188,255,.34),transparent 16rem),
    linear-gradient(135deg,var(--navy-950),#143e70 62%,#1c6db7);
  box-shadow:0 24px 55px rgba(9,32,62,.22);
}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.07),transparent 35%);pointer-events:none}
.hero h2{position:relative;margin:0 0 8px;font-size:26px;letter-spacing:-.03em}
.hero p{position:relative;margin:0;max-width:720px;color:#c9dcf0}
.hero .hero-mark{position:relative;font-size:58px;opacity:.88}
.progress{height:9px;overflow:hidden;border-radius:999px;background:#e8edf4}
.progress span{height:100%;display:block;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--primary-2))}

.question-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:21px;margin-bottom:16px;box-shadow:0 8px 24px rgba(18,43,80,.045)}
.question-number{width:34px;height:34px;display:inline-grid;place-items:center;margin-right:8px;border-radius:11px;background:linear-gradient(145deg,var(--navy-800),var(--navy-950));color:#fff;font-weight:850}
.question-text{color:#19263a;font-size:16px;font-weight:680;white-space:pre-wrap}
.stimulus{margin:13px 0;padding:14px 16px;white-space:pre-wrap;background:#f6f9fd;border:1px solid #e4ecf5;border-left:4px solid var(--primary);border-radius:12px}
.option{display:flex;align-items:flex-start;gap:10px;margin:8px 0;padding:12px 13px;border:1px solid #dfe7f0;border-radius:12px;cursor:pointer;transition:.15s ease}
.option:hover{border-color:#84abe0;background:#f8fbff;transform:translateX(2px)}
.option input{margin-top:3px;accent-color:var(--primary)}
.timer{position:sticky;top:104px;z-index:10;padding:16px;text-align:center;color:#fff;border-radius:16px;background:linear-gradient(145deg,#102f55,#081a31);box-shadow:var(--shadow)}
.timer strong{display:block;font-size:27px;letter-spacing:.06em}
.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}
.question-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:14px}
.question-nav a{height:37px;display:grid;place-items:center;border-radius:10px;background:#edf2f7;font-weight:780;transition:.15s ease}
.question-nav a:hover{background:#e2ebf5}
.question-nav a.answered{background:#dff4e9;color:#0d7547}
.question-nav a.active{background:var(--primary);color:#fff}
.question-number.integrity-flagged{
  background:linear-gradient(145deg,#b45309,#c13b47);
  box-shadow:0 0 0 3px rgba(193,59,71,.14);
}
.integrity-question-flagged{
  border-color:rgba(193,59,71,.45)!important;
  box-shadow:0 14px 34px rgba(193,59,71,.10)!important;
}
.integrity-number-badge{margin-left:8px}
.question-nav a.integrity-flagged{
  position:relative;
  background:#fff0e8!important;
  color:#a43737!important;
  border:1px solid rgba(193,59,71,.36);
  box-shadow:0 0 0 2px rgba(193,59,71,.08);
}
.question-nav a.integrity-flagged.active{
  background:linear-gradient(145deg,#b45309,#c13b47)!important;
  color:#fff!important;
}
.nav-integrity-mark{
  position:absolute;
  top:-5px;
  right:-5px;
  width:16px;
  height:16px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--danger);
  color:#fff;
  font-size:10px;
  font-weight:900;
  line-height:1;
  border:2px solid #fff;
}
.integrity-legend{color:var(--danger)}

.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(480px,1.08fr) minmax(420px,.92fr);background:#fff}
.auth-visual{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:64px;
  color:#fff;
  background:
    radial-gradient(circle at 18% 17%,rgba(76,171,255,.35),transparent 22rem),
    radial-gradient(circle at 90% 78%,rgba(49,110,236,.23),transparent 24rem),
    linear-gradient(135deg,#06172d,#0d315d 58%,#155f9f);
}
.auth-visual:before,.auth-visual:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.08);border-radius:50%}
.auth-visual:before{width:430px;height:430px;right:-180px;top:-130px}
.auth-visual:after{width:280px;height:280px;right:70px;bottom:-170px}
.auth-visual>div,.auth-visual>small{position:relative;z-index:1}
.auth-visual .logo-big{width:72px;height:72px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#72d0ff,#2d70ef 67%,#1d4eb9);border:1px solid rgba(255,255,255,.25);box-shadow:0 20px 40px rgba(0,0,0,.22);font-size:37px;font-weight:900}
.auth-visual h1{max-width:620px;margin:26px 0 14px;font-size:43px;line-height:1.08;letter-spacing:-.045em}
.auth-visual p{max-width:580px;color:#c8dbef;font-size:16px}
.feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:32px}
.feature-item{padding:15px;border:1px solid rgba(255,255,255,.12);border-radius:15px;background:rgba(255,255,255,.055);backdrop-filter:blur(8px)}
.feature-item strong{display:block;margin-bottom:3px;color:#fff}.feature-item div{color:#bcd0e7;font-size:12px}
.auth-panel{display:grid;place-items:center;padding:38px;background:linear-gradient(145deg,#fbfdff,#f0f5fb)}
.auth-box{width:min(440px,100%);padding:33px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-lg)}
.auth-box h2{margin:0;color:var(--navy-900);font-size:26px;letter-spacing:-.035em}
.auth-box>p{margin:6px 0 23px;color:var(--muted)}
.tabs{display:flex;margin-bottom:21px;padding:5px;border-radius:13px;background:#eef3f8}
.tabs a{flex:1;padding:9px;text-align:center;border-radius:10px;color:var(--muted);font-weight:780}
.tabs a.active{color:var(--navy-900);background:#fff;box-shadow:0 5px 14px rgba(20,50,90,.10)}

.setup-page{min-height:100vh;padding:38px;background:radial-gradient(circle at 50% 0,rgba(37,99,235,.10),transparent 28rem),linear-gradient(145deg,#edf5ff,#f9fbfd)}
.setup-container{max-width:1040px;margin:auto}
.setup-header{text-align:center;margin-bottom:27px}
.setup-header .brand-mark{margin:auto}
.setup-header h1{margin:18px 0 5px;color:var(--navy-900);letter-spacing:-.035em}
.setup-step{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.step-number{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#3a7def,#1d5bd2);box-shadow:0 7px 16px rgba(37,99,235,.2);font-weight:850}

.muted{color:var(--muted)}
.text-success{color:var(--success)}
.text-danger{color:var(--danger)}
.nowrap{white-space:nowrap}
.truncate{max-width:440px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-row{display:flex;gap:10px;flex-wrap:wrap}
.kpi-chip{display:inline-block;padding:8px 11px;border:1px solid #e2eaf3;border-radius:10px;background:#f2f6fb;color:#31445e;font-size:11px}
.divider{height:1px;margin:21px 0;background:linear-gradient(90deg,transparent,var(--line) 8%,var(--line) 92%,transparent)}
.code{padding:2px 6px;border-radius:6px;background:#edf2f7;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.ai-feedback{padding:13px;white-space:pre-wrap;background:#f0f7ff;border:1px solid #cfe3fa;border-radius:11px}
.score-input{width:90px}
.print-only{display:none}

.matching-grid{display:grid;gap:10px}
.matching-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1fr);gap:12px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:13px;background:#fbfdff}
.matching-left{color:var(--navy-900);font-weight:720}
.save-state{margin-top:10px;text-align:right;color:var(--muted);font-size:11px}
.exam-list{display:grid;gap:8px}
.exam-list-item{display:block;padding:12px;border:1px solid var(--line);border-radius:12px;transition:.15s ease}
.exam-list-item:hover,.exam-list-item.active{border-color:#77a9ec;background:#f0f7ff}
.exam-list-item strong,.exam-list-item small{display:block}.exam-list-item small{margin-top:3px;color:var(--muted)}
.table td .kpi-chip{display:inline-block}
.question-card .toolbar{margin-bottom:12px}

.question-builder{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:start}
.question-builder-main{min-width:0}
.question-builder-side{position:sticky;top:108px}
.section-block{padding:20px 0;border-top:1px solid var(--line)}
.section-block:first-of-type{padding-top:0;border-top:0}
.section-title{display:flex;align-items:center;gap:11px;margin-bottom:17px}
.section-title-number{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#eaf2ff;color:#1d5fca;font-size:12px;font-weight:850}
.section-title h3{margin:0;color:var(--navy-900);font-size:15px}.section-title p{margin:2px 0 0;color:var(--muted);font-size:11px}
.draft-card{overflow:hidden}
.draft-card:after{content:"";position:absolute;width:120px;height:120px;right:-60px;top:-55px;border-radius:50%;background:rgba(37,99,235,.06)}
.draft-status{display:flex;align-items:center;gap:9px;margin:14px 0;padding:11px;border:1px solid #d9e8fb;border-radius:12px;background:#f3f8ff;color:#31577f;font-size:11px}
.draft-status-dot{width:9px;height:9px;border-radius:50%;background:#21a66d;box-shadow:0 0 0 4px rgba(33,166,109,.11)}
.draft-list{margin:0;padding-left:18px;color:var(--muted);font-size:11px}.draft-list li+li{margin-top:7px}
.sticky-actions{position:sticky;bottom:14px;z-index:8;display:flex;align-items:center;gap:10px;margin-top:20px;padding:12px;border:1px solid rgba(202,214,228,.9);border-radius:15px;background:rgba(255,255,255,.93);box-shadow:0 14px 35px rgba(15,42,74,.12);backdrop-filter:blur(14px)}
.sticky-actions .spacer{margin-left:auto}

.upload-zone{position:relative;display:grid;place-items:center;min-height:190px;padding:24px;text-align:center;border:1.5px dashed #a9bed6;border-radius:17px;background:linear-gradient(145deg,#fbfdff,#f4f8fd);transition:.18s ease;cursor:pointer}
.upload-zone:hover,.upload-zone.dragging{border-color:#4e8ce9;background:#f0f7ff}
.upload-zone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.upload-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:10px;border-radius:15px;background:#e8f2ff;color:#2362c5;font-size:24px;font-weight:800}
.upload-zone strong{color:var(--navy-900);font-size:14px}.upload-zone small{display:block;margin-top:5px;color:var(--muted)}
.upload-file-name{margin-top:11px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#3c506a;font-size:11px;word-break:break-word}
.import-result{display:none;margin-top:16px}.import-result.show{display:block}
.import-progress{display:none;align-items:center;gap:10px;margin-top:14px;color:#52637a;font-size:11px}.import-progress.show{display:flex}
.spinner{width:17px;height:17px;border:2px solid #d4e2f1;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:1180px){
  .question-builder{grid-template-columns:1fr}
  .question-builder-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:1050px){
  .grid.cols-4{grid-template-columns:repeat(2,1fr)}
  .grid.cols-3{grid-template-columns:repeat(2,1fr)}
  .exam-layout{grid-template-columns:1fr}
  .timer{position:static}
  .topbar-actions>span:not(.user-chip){display:none}
}
@media(max-width:800px){
  :root{--sidebar-width:272px}
  .sidebar{transform:translateX(-102%);transition:transform .22s ease}
  .sidebar.open{transform:translateX(0)}
  .sidebar-backdrop{position:fixed;inset:0;z-index:35;border:0;background:rgba(3,13,26,.48);backdrop-filter:blur(2px)}
  body.sidebar-open .sidebar-backdrop{display:block}
  .main{margin-left:0}
  .menu-toggle{display:grid}
  .content{padding:18px}
  .topbar{height:78px;padding:11px 18px}
  .topbar h1{font-size:19px}
  .topbar-actions{display:none}
  .grid.cols-2,.grid.cols-3,.grid.cols-4,.form-grid{grid-template-columns:1fr}
  .auth-page{grid-template-columns:1fr}
  .auth-visual{display:none}
  .auth-panel{min-height:100vh;padding:20px}
  .hero{padding:24px}
  .hero .hero-mark{display:none}
  .matching-row{grid-template-columns:1fr}
  .question-builder-side{grid-template-columns:1fr}
  .grid.cols-3>.card[style*="grid-column"],.grid.cols-2>.card[style*="grid-column"]{grid-column:auto!important}
}
@media(max-width:520px){
  .card{padding:17px;border-radius:17px}
  .toolbar .spacer{display:none}
  .toolbar{align-items:stretch}
  .toolbar>.btn,.toolbar>form{width:100%}
  .toolbar>.form-control{max-width:none!important}
  .question-nav{grid-template-columns:repeat(4,1fr)}
  .sticky-actions{flex-wrap:wrap}.sticky-actions .btn{flex:1}.sticky-actions .spacer{display:none}
  .auth-box{padding:25px 20px}
  .setup-page{padding:22px 14px}
}
@media print{
  .sidebar,.topbar,.toolbar,.no-print,.sticky-actions{display:none!important}
  .main{margin:0}
  .content{max-width:none;padding:0}
  .card{border:0;box-shadow:none}
  .print-only{display:block}
  .table th,.table td{padding:6px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* v1.2.4: multi-answer builder and role management */
.choice-grid{display:flex;flex-wrap:wrap;gap:10px 16px;padding:12px 14px;border:1px solid var(--line,#d9e3f0);border-radius:12px;background:#f8fbff}
.choice-grid .form-check{margin:0;min-width:90px}
.role-tabs{box-shadow:0 8px 24px rgba(16,42,78,.08)}

/* v1.2.5: question images and difficulty composition */
.question-image-wrap{margin:14px 0;text-align:center;padding:10px;background:#f8fafc;border:1px solid var(--line);border-radius:14px}
.question-image{display:block;max-width:100%;max-height:560px;width:auto;height:auto;margin:0 auto;border-radius:10px;object-fit:contain}
.question-image-preview{margin-bottom:12px;padding:12px;background:#f8fafc;border:1px solid var(--line);border-radius:14px}
.question-image-preview img{display:block;max-width:min(100%,520px);max-height:340px;object-fit:contain;border-radius:10px;margin-bottom:10px}
.difficulty-composition-card{padding:16px;border:1px solid #dce8f6;background:linear-gradient(180deg,#f9fcff,#f4f8fd);border-radius:15px}
.difficulty-composition-grid{margin-top:9px}
.mini-label{display:block;font-size:12px;font-weight:800;margin-bottom:6px;color:var(--muted)}
@media(max-width:720px){.difficulty-composition-grid{grid-template-columns:1fr!important}.question-image{max-height:420px}}


/* v1.2.6 multi-class exam targeting */
.class-target-card{padding:16px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,rgba(248,251,255,.96),rgba(255,255,255,.96))}
.class-all-option{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid #b9d3ff;background:#eef6ff;border-radius:13px;cursor:pointer;margin-bottom:12px}
.class-all-option input{margin-top:4px;accent-color:var(--primary)}
.class-all-option span{display:grid;gap:2px}.class-all-option small{color:var(--muted)}
.class-selector{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:9px;max-height:260px;overflow:auto;padding:4px 2px}
.class-option{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:#fff;cursor:pointer;transition:.18s ease}
.class-option:hover{border-color:#9dbdf3;box-shadow:0 5px 16px rgba(23,76,147,.08)}
.class-option input{accent-color:var(--primary)}
.class-option:has(input:checked){border-color:#7aa8ef;background:#f0f6ff;font-weight:700}
.class-option:has(input:disabled){opacity:.48;cursor:not-allowed}
.class-selection-summary{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f5f8fc;color:var(--muted);font-size:13px;line-height:1.5}
.class-selection-summary.empty-selection{background:#fff5f5;color:#b42318}
@media(max-width:640px){.class-selector{grid-template-columns:1fr 1fr;max-height:310px}.class-target-card{padding:12px}}

/* v1.3.0: richer item analysis */
.analysis-legend{display:flex;gap:10px 24px;flex-wrap:wrap;margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#f7faff;border:1px solid #e1eaf5;color:#53647a;font-size:11px;line-height:1.55}
.analysis-table-wrap{max-height:none}
.analysis-table td{font-size:12px;line-height:1.45}
.analysis-question-text{min-width:260px;max-width:360px;font-weight:720;color:#1a2940;white-space:normal}
.analysis-count{display:block;font-size:18px;font-weight:900;line-height:1.1}.analysis-count.success{color:#087a49}.analysis-count.danger{color:#b23c48}.analysis-count.muted{color:#64748b}
.analysis-table td small{display:block;margin-top:3px;font-size:10px}
.analysis-reason{margin-top:8px;color:#334155;line-height:1.55}
.analysis-recommendation{margin-top:8px;padding:8px 10px;border-radius:9px;background:#f6f9fd;color:#1f3d60;font-size:11px;line-height:1.5}
.analysis-key-chip{border-color:#9fd3b6!important;background:#eef9f2!important;color:#087a49!important;font-weight:850}
@media(max-width:900px){.analysis-metrics{grid-template-columns:1fr 1fr!important}.analysis-question-text{min-width:220px}}
@media(max-width:560px){.analysis-metrics{grid-template-columns:1fr!important}}

/* v1.3.1: teacher full-answer review mirrors the student exam */
.teacher-review-legend{margin:14px 0 18px;line-height:1.6}
.teacher-review-legend .legend-green{color:#087a49;font-weight:850}.teacher-review-legend .legend-red{color:#b42318;font-weight:850}
.teacher-review-card{overflow:hidden}
.teacher-review-stimulus{margin:12px 0}
.teacher-review-image{position:relative}
.teacher-review-question{margin:14px 0 8px;font-size:16px;line-height:1.6;font-weight:800;color:var(--navy-900)}
.teacher-review-answer-area{margin-top:16px;padding:14px;border:1px solid #d9e4f1;border-radius:15px;background:#fbfdff}
.review-section-label{margin-bottom:10px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#5d6e84}
.teacher-review-options{display:grid;gap:9px}
.teacher-review-option{display:flex;align-items:flex-start;gap:11px;padding:12px 13px;border:1px solid #dfe7f0;border-radius:12px;background:#fff;min-height:48px}
.teacher-review-option.is-correct{border-color:#88cfac;background:#effaf4}
.teacher-review-option.is-wrong-selected{border-color:#ef9ca3;background:#fff2f3}
.teacher-review-option.is-selected{box-shadow:0 0 0 2px rgba(36,99,235,.08)}
.review-control{position:relative;display:inline-flex;flex:0 0 20px;width:20px;height:20px;margin-top:1px;border:2px solid #9aa8ba;background:#fff}
.review-control.radio{border-radius:50%}.review-control.checkbox{border-radius:5px}
.review-control.checked{border-color:#2563eb}
.review-control.radio.checked:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#2563eb}
.review-control.checkbox.checked:after{content:"✓";position:absolute;left:2px;top:-4px;color:#2563eb;font-size:18px;font-weight:950}
.teacher-review-option.is-correct .review-control{border-color:#1f9d63}.teacher-review-option.is-correct .review-control.radio.checked:after{background:#1f9d63}.teacher-review-option.is-correct .review-control.checkbox.checked:after{color:#1f9d63}
.teacher-review-option.is-wrong-selected .review-control{border-color:#d64550}.teacher-review-option.is-wrong-selected .review-control.radio.checked:after{background:#d64550}.teacher-review-option.is-wrong-selected .review-control.checkbox.checked:after{color:#d64550}
.review-option-text{flex:1;line-height:1.5;color:#26364b}.review-option-flags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.teacher-review-matching{display:grid;gap:9px}.teacher-review-match{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1fr) minmax(170px,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #dfe7f0;border-radius:12px;background:#fff}
.teacher-review-match.is-correct{border-color:#88cfac;background:#effaf4}.teacher-review-match.is-wrong-selected{border-color:#ef9ca3;background:#fff2f3}
.teacher-review-match small,.teacher-review-text-answer small,.teacher-review-key-box small{display:block;margin-bottom:5px;color:#697a90;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.teacher-review-match strong{display:block;line-height:1.45}.match-left{font-weight:850;color:#1d2d44}
.teacher-review-text-answer,.teacher-review-key-box{padding:13px 14px;border:1px solid #dfe7f0;border-radius:12px;background:#fff;line-height:1.65;color:#24354b}
.teacher-review-text-answer{border-left:4px solid #2f6feb}.teacher-review-text-answer.is-empty{border-left-color:#94a3b8;color:#64748b;background:#f8fafc}
.teacher-review-key-box{margin-top:10px;border-left:4px solid #23a36d;background:#f1fbf6}.review-key-list{display:flex;gap:7px;flex-wrap:wrap}
.teacher-review-essay-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.teacher-review-essay-grid .teacher-review-key-box{margin-top:0}
.teacher-grading-grid{margin-top:16px}.teacher-score-form{align-self:start;position:sticky;top:12px}
@media(max-width:900px){.teacher-review-match{grid-template-columns:1fr 1fr}.teacher-review-match .match-left{grid-column:1/-1}.teacher-review-essay-grid{grid-template-columns:1fr}.review-option-flags{justify-content:flex-start;width:100%}.teacher-review-option{flex-wrap:wrap}.review-option-text{min-width:calc(100% - 34px)}}
@media(max-width:640px){.teacher-review-match{grid-template-columns:1fr}.teacher-review-match .match-left{grid-column:auto}.teacher-score-form{position:static}.teacher-review-answer-area{padding:10px}.teacher-review-question{font-size:15px}}


/* v1.3.2: navigasi cepat antar siswa pada Detail Penilaian */
.teacher-student-nav{
    position:sticky;
    top:8px;
    z-index:35;
    display:grid;
    grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);
    gap:12px;
    align-items:stretch;
    margin:14px 0;
    padding:10px;
    border:1px solid #dbe6f2;
    border-radius:16px;
    background:rgba(247,250,255,.96);
    box-shadow:0 10px 26px rgba(25,45,75,.08);
    backdrop-filter:blur(8px);
}
.teacher-student-nav.bottom{position:static;margin-top:22px;margin-bottom:10px}
.student-nav-side{min-width:0}.student-nav-side.right{display:flex;justify-content:flex-end}
.student-nav-card{
    width:100%;
    min-height:64px;
    display:flex;
    align-items:center;
    gap:11px;
    padding:9px 12px;
    border:1px solid #d5e0ed;
    border-radius:13px;
    background:#fff;
    color:#17304d;
    text-decoration:none;
    transition:.15s ease;
}
.student-nav-card:hover{border-color:#79aaf4;box-shadow:0 5px 15px rgba(37,99,235,.10);transform:translateY(-1px)}
.student-nav-card.next{justify-content:flex-end;text-align:right}
.student-nav-card.disabled{opacity:.46;cursor:not-allowed;box-shadow:none;transform:none}
.student-nav-card small{display:block;color:#6c7d92;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
.student-nav-card strong{display:block;max-width:235px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.student-nav-card em{display:block;margin-top:2px;color:#718198;font-size:10px;font-style:normal}
.student-nav-arrow{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#edf4ff;color:#2167d8;font-size:20px;font-weight:900}
.student-nav-center{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-width:245px}
.student-nav-position{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:78px;padding:5px 9px;border-left:1px solid #dce5f0;color:#62738a}
.student-nav-position strong{font-size:13px;color:#17304d}.student-nav-position span{font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.teacher-review-scorebar{margin:5px 0 10px}

@media(max-width:1050px){
    .teacher-student-nav{grid-template-columns:1fr 1fr}
    .student-nav-center{grid-column:1/-1;grid-row:2}
}
@media(max-width:640px){
    .teacher-student-nav{position:static;grid-template-columns:1fr;gap:8px;padding:8px}
    .student-nav-side.right{display:block}
    .student-nav-center{grid-column:auto;grid-row:auto;order:-1;min-width:0}
    .student-nav-card strong{max-width:220px}
    .student-nav-position{border-left:0;border-top:1px solid #dce5f0;width:100%;padding-top:7px}
}


/* === v1.4.4: Bank Soal Preview === */
.preview-topnav,.preview-bottomnav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.preview-bottomnav{margin-top:18px;margin-bottom:0;justify-content:center}
.preview-nav-center{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
.btn.disabled{opacity:.48;pointer-events:none;cursor:not-allowed}
.preview-hero{padding:24px 28px}
.preview-readiness{position:relative;display:flex;align-items:flex-end;gap:9px;flex-direction:column}.preview-readiness span{font-size:12px;color:#c9dcf0}.preview-readiness .badge{font-size:13px;padding:8px 11px}
.preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.preview-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:12px}.preview-section-head h2{margin:2px 0 0}.preview-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.preview-question-card{padding:24px}.preview-answer-area{margin-top:17px}.preview-option{cursor:default}.preview-option:hover{transform:none;background:#fff;border-color:#dfe7f0}.preview-option input:disabled{opacity:.72}.preview-image-wrap{margin:14px 0}.preview-image-wrap .question-image{max-height:520px;object-fit:contain}
.preview-side{display:grid;gap:16px}.preview-sticky{position:sticky;top:94px;z-index:3}.preview-card-header{margin-bottom:12px}.preview-card-header h2{font-size:17px}.preview-card-header p{font-size:12px}
.preview-check-list{display:grid;gap:8px}.preview-check{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.preview-check-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:9px;font-weight:900}.preview-check.ok .preview-check-icon{background:#dff4e9;color:#0d7547}.preview-check.problem .preview-check-icon{background:#fff1db;color:#9a6200}.preview-check strong{display:block;font-size:13px}.preview-check small{display:block;margin-top:2px;color:var(--muted);line-height:1.45}
.preview-key-box{padding:12px 13px;margin-top:9px;border:1px solid #dfe7f0;border-radius:12px;background:#f7faff;white-space:pre-wrap}.preview-key-box small{display:block;margin-bottom:6px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.04em}.preview-key-box div{font-size:13px;line-height:1.55;color:#23334a}
.preview-meta{display:grid;gap:0;margin:0}.preview-meta>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #edf1f5}.preview-meta>div:last-child{border-bottom:0}.preview-meta dt{color:var(--muted);font-size:12px;font-weight:700}.preview-meta dd{margin:0;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.badge.neutral{background:#edf1f5;color:#526073}
@media(max-width:1050px){.preview-layout{grid-template-columns:1fr}.preview-sticky{position:static}.preview-side{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-side .card:first-child{grid-column:1/-1}}
@media(max-width:720px){.preview-topnav{justify-content:center}.preview-topnav>a:first-child,.preview-topnav>a:last-child{order:2}.preview-nav-center{order:1;width:100%}.preview-layout{display:block}.preview-side{display:grid;grid-template-columns:1fr;margin-top:16px}.preview-section-head{align-items:flex-start;flex-direction:column}.preview-badges{justify-content:flex-start}.preview-question-card{padding:17px}.preview-meta>div{grid-template-columns:82px minmax(0,1fr)}}
