:root{
  --bg:#0b1020; --bg2:#111833; --panel:#ffffff; --ink:#0f172a; --muted:#5b6478;
  --line:#e5e9f2; --brand:#4f46e5; --brand2:#6366f1; --teal:#0f9d6e;
  --warn:#b45309; --warnbg:#fff7ed; --danger:#dc2626; --radius:14px;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--bg); color:#e8ecf6; line-height:1.55; -webkit-font-smoothing:antialiased;
}
a{color:var(--brand2)}
button{font-family:inherit}
.hidden{display:none !important}

/* ---------- login ---------- */
.login-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;
  background:radial-gradient(900px 500px at 15% 0%,rgba(99,102,241,.25),transparent 60%),
             radial-gradient(700px 420px at 90% 100%,rgba(15,157,110,.18),transparent 60%),var(--bg);
}
.login-card{
  width:100%; max-width:420px; background:var(--panel); color:var(--ink);
  border-radius:20px; padding:32px 28px; box-shadow:0 24px 60px rgba(0,0,0,.45);
}
.brand-row{display:flex; align-items:center; gap:12px; margin-bottom:6px}
.brand-mark{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:20px;
  background:linear-gradient(135deg,var(--brand),#818cf8); box-shadow:0 8px 20px rgba(79,70,229,.35);
}
.brand-row h1{font-size:1.2rem; letter-spacing:.2px}
.brand-row p{font-size:.78rem; color:var(--muted)}
.login-card h2{font-size:1.45rem; margin:18px 0 4px}
.login-card .sub{font-size:.88rem; color:var(--muted); margin-bottom:20px}
label{display:block; font-size:.8rem; font-weight:600; color:#334155; margin:0 0 6px}
input[type=text],input[type=password],input[type=tel],input[type=date],input[type=number],select,textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px; font-size:.95rem;
  color:var(--ink); background:#fbfcfe; outline:none; transition:border .15s,box-shadow .15s;
}
input:focus,select:focus,textarea:focus{border-color:var(--brand2); box-shadow:0 0 0 3px rgba(99,102,241,.15); background:#fff}
.field{margin-bottom:14px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  border:1px solid transparent; border-radius:10px; padding:10px 16px; font-size:.9rem; font-weight:600;
  background:#eef1f8; color:#334155; transition:transform .05s, filter .15s;
}
.btn:hover{filter:brightness(.97)} .btn:active{transform:translateY(1px)}
.btn-primary{background:linear-gradient(135deg,var(--brand),#818cf8); color:#fff; box-shadow:0 8px 18px rgba(79,70,229,.28)}
.btn-block{width:100%; padding:12px}
.btn-ghost{background:rgba(255,255,255,.08); color:#e8ecf6; border-color:rgba(255,255,255,.14)}
.btn-danger{background:#fee2e2; color:#b91c1c}
.btn-sm{padding:6px 10px; font-size:.8rem; border-radius:8px}
.msg{margin-top:12px; font-size:.85rem; padding:10px 12px; border-radius:9px; display:none}
.msg.err{display:block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca}
.msg.ok{display:block; background:#ecfdf5; color:#047857; border:1px solid #a7f3d0}
.login-note{margin-top:18px; font-size:.75rem; color:var(--muted); border-top:1px solid var(--line); padding-top:14px}
.login-note b{color:#334155}

/* ---------- info UTS (publik, tampil sebelum login) ---------- */
.login-shell{
  width:100%; max-width:1060px; display:grid; grid-template-columns:minmax(0,1fr) 400px;
  gap:22px; align-items:start;
}
.info-card{
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:20px;
  padding:18px 18px 16px; box-shadow:0 24px 60px rgba(0,0,0,.4);
}
.info-head{display:flex; align-items:center; gap:10px; margin-bottom:3px}
.info-badge{
  font-size:.62rem; font-weight:700; letter-spacing:1.6px; padding:4px 9px; border-radius:999px;
  background:rgba(255,217,74,.16); color:#ffd94a; border:1px solid rgba(255,217,74,.42);
}
.info-card h2{font-size:1.2rem; color:#fff; letter-spacing:.2px}
.info-sub{font-size:.82rem; color:#9aa5bf; margin-bottom:12px}
.info-shot{
  display:block; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 44px rgba(0,0,0,.5); background:#111833;
}
.info-shot img{display:block; width:100%; height:auto}
.info-rows{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px}
.info-rows .row{
  display:flex; gap:8px; align-items:baseline; background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09); border-radius:10px; padding:8px 10px;
  font-size:.78rem; color:#cfd7ea;
}
.info-rows b{color:#fff; font-variant-numeric:tabular-nums; white-space:nowrap; font-size:.8rem}
.info-rows .row.uts{border-color:rgba(247,169,73,.55); background:rgba(247,169,73,.13)}
.info-rows .row.uts b{color:#ffd08a}
.info-rows .row.late{border-color:rgba(248,113,113,.42); background:rgba(248,113,113,.1); color:#f3c4c4}
.info-rows .row.late b{color:#fca5a5}
.info-note{margin-top:10px; font-size:.72rem; color:#8d97b3}

/* ---------- app shell ---------- */
.topbar{
  position:sticky; top:0; z-index:30; background:rgba(11,16,32,.9); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.09);
}
.topbar-in{max-width:1180px; margin:0 auto; padding:12px 20px; display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.topbar .brand{display:flex; align-items:center; gap:10px; font-weight:700}
.topbar .brand small{display:block; font-weight:400; font-size:.72rem; color:#8d97b3}
.badge{font-size:.7rem; padding:4px 9px; border-radius:999px; background:rgba(15,157,110,.18); color:#6ee7b7; border:1px solid rgba(15,157,110,.35)}
.topbar .spacer{flex:1}
.topbar .who{font-size:.78rem; color:#c3cbe2; text-align:right; line-height:1.3}
.topbar .who b{display:block; color:#fff; font-size:.85rem}
main{max-width:1180px; margin:0 auto; padding:22px 20px 60px}

.page-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px}
.page-head h2{font-size:1.35rem; letter-spacing:.2px}
.page-head p{font-size:.84rem; color:#9aa5bf}
.stat-row{display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 18px}
.stat{
  flex:1 1 150px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.09);
  border-radius:12px; padding:12px 14px;
}
.stat b{display:block; font-size:1.3rem; color:#fff}
.stat span{font-size:.74rem; color:#9aa5bf; text-transform:uppercase; letter-spacing:.4px}

.toolbar{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09); border-radius:14px; padding:12px; margin-bottom:14px;
}
.toolbar input[type=text]{flex:1 1 220px; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); color:#fff}
.toolbar input[type=text]::placeholder{color:#8d97b3}
.toolbar select{flex:0 1 200px; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); color:#fff}
.toolbar select option{color:#0f172a}

.table-card{background:var(--panel); border-radius:16px; overflow:hidden; box-shadow:0 18px 40px rgba(0,0,0,.35)}
.table-scroll{overflow-x:auto}
table{width:100%; border-collapse:collapse; font-size:.88rem; color:var(--ink); min-width:840px}
thead th{
  text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.5px; color:#64748b;
  background:#f7f9fc; padding:11px 14px; border-bottom:1px solid var(--line); white-space:nowrap;
}
tbody td{padding:11px 14px; border-bottom:1px solid #eef1f7; vertical-align:top}
tbody tr:hover{background:#fafbff}
tbody tr:last-child td{border-bottom:none}
.nm b{display:block; font-weight:600}
.nm small{color:#64748b; font-size:.75rem}
.prodi-pill{display:inline-block; font-size:.72rem; font-weight:600; padding:3px 8px; border-radius:999px; background:#eef2ff; color:#4338ca; white-space:nowrap}
.prodi-pill.hki{background:#ecfdf5; color:#047857}
.prodi-pill.es{background:#fff7ed; color:#b45309}
.prodi-pill.iat{background:#eff6ff; color:#1d4ed8}
.hp{font-variant-numeric:tabular-nums; white-space:nowrap; font-size:.84rem; color:#334155}
.eye{background:none; border:none; cursor:pointer; color:#6366f1; font-size:.95rem; padding:2px 4px; vertical-align:middle}
.eye:hover{color:#4338ca}
.ret{font-size:.78rem; color:#64748b; white-space:nowrap}
.ret.warn{color:#b45309; font-weight:600}
.ret.over{color:#b91c1c; font-weight:700}
.acts{white-space:nowrap; text-align:right}
.acts button{margin-left:4px}
.empty{padding:40px 20px; text-align:center; color:var(--muted); font-size:.9rem}
.foot-note{margin-top:14px; font-size:.75rem; color:#8d97b3; line-height:1.7}

/* ---------- modal ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(5,8,18,.72); backdrop-filter:blur(4px);
  display:flex; align-items:flex-start; justify-content:center; padding:30px 16px; z-index:60; overflow:auto;
}
.modal{
  width:100%; max-width:560px; background:var(--panel); color:var(--ink); border-radius:18px;
  padding:24px; box-shadow:0 30px 70px rgba(0,0,0,.5); margin:auto;
}
.modal.wide{max-width:900px}
.modal h3{font-size:1.1rem; margin-bottom:4px}
.modal .hint{font-size:.8rem; color:var(--muted); margin-bottom:16px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.modal-actions{display:flex; gap:10px; justify-content:flex-end; margin-top:18px; flex-wrap:wrap}
.consent{display:flex; gap:10px; align-items:flex-start; background:#f7f9fc; border:1px solid var(--line); border-radius:10px; padding:11px 12px; margin:6px 0 4px}
.consent input{margin-top:3px; width:16px; height:16px; flex:0 0 auto}
.consent label{margin:0; font-weight:400; font-size:.78rem; color:#475569; line-height:1.5}
.policy-list{list-style:none; display:grid; gap:10px; margin-top:10px}
.policy-list li{background:#f7f9fc; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:.83rem; color:#334155}
.policy-list b{display:block; color:#0f172a; font-size:.8rem; text-transform:uppercase; letter-spacing:.3px; margin-bottom:2px}
.audit-table{width:100%; border-collapse:collapse; font-size:.78rem; color:var(--ink); min-width:620px}
.audit-table th{background:#f7f9fc; text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); font-size:.7rem; text-transform:uppercase; color:#64748b}
.audit-table td{padding:8px 10px; border-bottom:1px solid #eef1f7; vertical-align:top}
.toast{
  position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px); z-index:90;
  background:#0f172a; color:#fff; padding:11px 16px; border-radius:11px; font-size:.85rem;
  box-shadow:0 18px 40px rgba(0,0,0,.45); opacity:0; pointer-events:none; transition:all .22s ease;
  max-width:92vw;
}
.toast.show{opacity:1; transform:translate(-50%,0)}
.toast.err{background:#7f1d1d}

@media (max-width:720px){
  .grid2{grid-template-columns:1fr}
  .topbar .who{display:none}
  .topbar-in{padding:10px 14px; gap:8px}
  .topbar .brand small{display:none}
  .topbar .btn-sm{padding:6px 9px; font-size:.76rem}
  main{padding:16px 14px 50px}
  .login-card{padding:26px 20px}
  .page-head h2{font-size:1.15rem}
  .page-head p{font-size:.78rem}
  .stat-row{gap:8px; margin:12px 0 14px}
  .stat{flex:1 1 44%; padding:10px 12px}
  .stat b{font-size:1.1rem}
  .stat span{font-size:.64rem; letter-spacing:.2px}
  .toolbar{padding:10px; gap:8px}
  .toolbar input[type=text]{flex:1 1 100%}
  .toolbar select{flex:1 1 44%}
  table{min-width:760px}
}

/* info UTS: satu kolom, poster di atas form login */
@media (max-width:960px){
  .login-shell{grid-template-columns:1fr; max-width:620px; gap:16px}
  .info-rows{grid-template-columns:1fr}
  .login-wrap{padding:18px 14px}
}
@media (max-width:480px){
  .info-card{padding:14px 14px 13px; border-radius:16px}
  .info-card h2{font-size:1.05rem}
  .info-sub{font-size:.78rem}
}
