/* =========================================================
   e-Learning Kampus — tampilan
   ========================================================= */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --line: #e6e3db;
  --line-2: #d8d4c9;
  --ink: #18222c;
  --ink-2: #4a5663;
  --ink-3: #7b8592;
  --brand: #0f3b4c;
  --brand-2: #155268;
  --brand-ink: #ffffff;
  --brand-soft: #e3eef1;
  --accent: #d99a1b;
  --accent-soft: #fbf0d9;
  --ok: #1f7a4d; --ok-soft: #e1f2e8;
  --warn: #a2620a; --warn-soft: #fcefd6;
  --bad: #b3372e; --bad-soft: #fbe5e2;
  --info: #24609b; --info-soft: #e2edf8;
  --live: #0d7f72; --live-soft: #dcf3ef;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .05), 0 2px 8px rgba(20, 30, 40, .04);
  --shadow-lg: 0 10px 30px rgba(20, 30, 40, .12);
  --side: 264px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* warna kelas */
  --c0: #2f6f8f; --c1: #7a4f9c; --c2: #b2553b; --c3: #2c7d5b; --c4: #a8761a; --c5: #3b5bb5; --c6: #9a3f68; --c7: #4f7a2e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171c; --surface: #182128; --surface-2: #1d272f; --line: #27333c; --line-2: #33414c;
    --ink: #e8edf1; --ink-2: #b4bfc8; --ink-3: #85919c;
    --brand: #5fb3cc; --brand-2: #7cc4d9; --brand-ink: #0b1a20; --brand-soft: #1b3440;
    --accent: #e8b04a; --accent-soft: #3a2f17;
    --ok: #5cc48d; --ok-soft: #173327; --warn: #e4a447; --warn-soft: #3a2a12; --bad: #ef7a70; --bad-soft: #3d1c1a;
    --info: #79aee6; --info-soft: #172a3d; --live: #4cc9b6; --live-soft: #123430;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2, .h2 { font-size: 18px; font-weight: 700; }
h3, .h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 10px; }
small { font-size: 12.5px; }
code { font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
img { max-width: 100%; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.urgent { color: var(--bad); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.center { text-align: center; justify-content: center; }
.w100 { width: 100%; }
.pad { padding: 4px 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Kerangka ---------- */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--brand); color: #dce9ee; display: flex; flex-direction: column; padding: 20px 14px; z-index: 30; }
@media (prefers-color-scheme: dark) { .side { background: #0d1418; border-right: 1px solid var(--line); } }
.brand { display: flex; gap: 11px; align-items: center; color: #fff; padding: 2px 8px 18px; text-decoration: none !important; }
.brand b { display: block; font-size: 15.5px; line-height: 1.2; }
.brand small { display: block; color: #9fbfcb; font-size: 12px; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #2b1e04; display: grid; place-items: center; flex: none; }
.logo.lg { width: 48px; height: 48px; border-radius: 14px; }
.logo.img { background: #fff; padding: 4px; overflow: hidden; }
.logo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.periode { margin: 0 8px 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 12px; }
.periode span { display: block; color: #9fbfcb; }
.periode b { color: #fff; font-size: 13.5px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cfe0e6; font-weight: 600; font-size: 14.5px; text-decoration: none; position: relative; }
.menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu a.on { background: rgba(255,255,255,.13); color: #fff; }
.menu a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.dot { margin-left: auto; background: var(--accent); color: #2b1e04; font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none !important; }
.me b { display: block; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.me small { color: #9fbfcb; font-size: 11.5px; }
.side .btn-ghost { color: #cfe0e6; border-color: rgba(255,255,255,.18); }
.side .btn-ghost:hover { background: rgba(255,255,255,.08); }

.main-wrap { margin-left: var(--side); min-width: 0; }
.topbar { display: none; }
.bottom { display: none; }
main { padding: 0 0 60px; }

.page { max-width: 1180px; margin: 0 auto; padding: 28px 32px 0; display: flex; flex-direction: column; gap: 22px; }
.page.narrow { max-width: 860px; }
.page.wide { max-width: 1320px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-h h2 { display: flex; align-items: center; gap: 8px; }
.sec-h.sm { margin: 14px 0 8px; }
section > .sec-h:first-child { margin-top: 2px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.row-gap { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.grid2.top { align-items: start; }
.grid-side { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.inl { display: inline; }

/* ---------- Kartu ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { display: flex; align-items: center; gap: 8px; }
.card-h.pad { padding: 18px 20px 0; }
.link { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 2px; }

/* ---------- Tombol ---------- */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 700; font-size: 14px; line-height: 1; padding: 11px 18px; border-radius: 10px; border: 1.5px solid transparent; background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none !important; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover, .btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.sm, .btn-ghost.sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: transparent; border: 0; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.on { color: var(--accent); }
.icon-btn.sm { width: 28px; height: 28px; }

/* ---------- Formulir ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=file] { padding: 8px; background: var(--surface-2); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 10px 0; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 8px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 12px; color: var(--ink-3); min-width: 280px; }
.search input { border: 0; padding: 10px 0; background: transparent; box-shadow: none !important; }
.search select { border: 0; width: auto; padding: 8px 4px; background: transparent; }

/* Segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg.big span { padding: 9px 14px; }

/* ---------- Tag & flash ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; line-height: 1.5; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tag.muted { background: transparent; color: var(--ink-3); }
.tag.live-tag { background: var(--live-soft); color: var(--live); border-color: transparent; }
.tag.live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; margin: 16px auto 0; max-width: 1116px; }
main > .flash { margin-left: 32px; margin-right: 32px; }
@media (min-width: 1181px) { main > .flash { margin-left: auto; margin-right: auto; } }
.flash span { flex: 1; }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; padding: 0; }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.page .flash { margin: 0; max-width: none; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 12px; color: var(--ink-3); }
.empty b { color: var(--ink-2); font-size: 15px; }
.empty p { margin: 0; font-size: 13.5px; max-width: 360px; }

/* ---------- Avatar ---------- */
.av { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 13.5px; color: #fff; flex: none; letter-spacing: .02em; }
.av.sm { width: 32px; height: 32px; font-size: 12px; }
.av.xl { width: 72px; height: 72px; font-size: 24px; }
.av0 { background: var(--c0) } .av1 { background: var(--c1) } .av2 { background: var(--c2) } .av3 { background: var(--c3) }
.av4 { background: var(--c4) } .av5 { background: var(--c5) } .av6 { background: var(--c6) } .av7 { background: var(--c7) }
.c0 { --c: var(--c0) } .c1 { --c: var(--c1) } .c2 { --c: var(--c2) } .c3 { --c: var(--c3) } .c4 { --c: var(--c4) } .c5 { --c: var(--c5) } .c6 { --c: var(--c6) } .c7 { --c: var(--c7) }

/* ---------- Beranda ---------- */
.hello h1 { font-size: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats.five { grid-template-columns: repeat(5, 1fr); }
.stats.six { grid-template-columns: repeat(6, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stat b small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.stat.warn { border-color: var(--warn); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.today { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.today li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.today li.live { border-color: var(--live); background: var(--live-soft); }
.today li.past { opacity: .65; }
.today .t { display: flex; flex-direction: column; align-items: center; min-width: 52px; font-variant-numeric: tabular-nums; }
.today .t b { font-size: 15px; } .today .t span { font-size: 12px; color: var(--ink-3); }
.today .d { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.today .d a { color: var(--ink); }
.today .d .tag { align-self: flex-start; margin-top: 4px; }

.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.kcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kc-top { background: var(--c); color: #fff; padding: 12px 14px 30px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .02em; position: relative; overflow: hidden; }
.kc-top::after { content: ""; position: absolute; right: -24px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); }
.kc-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kc-body b { font-size: 15px; line-height: 1.3; }
.kc-body .prog { flex: none; }
.prog { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; flex: 1; }
.prog i { display: block; height: 100%; background: var(--ok); border-radius: 6px; }
.prog.low i { background: var(--bad); }

.dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl li + li { border-top: 1px solid var(--line); }
.dl a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--ink); text-decoration: none !important; }
.dl a:hover .dl-t b { color: var(--brand); }
.dl-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dl-ic.lg { width: 52px; height: 52px; border-radius: 14px; }
.dl-ic.tugas { background: var(--info-soft); color: var(--info); }
.dl-ic.kuis { background: var(--accent-soft); color: var(--warn); }
.dl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-t small { color: var(--ink-3); }
.dl-d { font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.dl-d.urgent { color: var(--bad); }
.count { background: var(--warn-soft); color: var(--warn); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 999px; }

.ann { display: flex; flex-direction: column; gap: 3px; }
.dash-side .ann + .ann { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: 13.5px; margin: 0; }
.ann-wrap { display: flex; flex-direction: column; gap: 10px; }
.ann-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ann-h > span:not(.av) { flex: 1; display: flex; flex-direction: column; }

/* ---------- Daftar baris ---------- */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none !important; transition: background .12s; }
.lrow + .lrow { border-top: 1px solid var(--line); }
a.lrow:hover { background: var(--surface-2); }
.lrow > .ic:last-child { color: var(--ink-3); }
.lmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lmain b { font-size: 14.5px; }
.lside { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lsch { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); align-items: flex-end; }
.lsch span { display: inline-flex; align-items: center; gap: 6px; }
.lbar { width: 5px; align-self: stretch; border-radius: 4px; background: var(--c); }
.num-sm { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.notif.unread { background: var(--brand-soft); }
.ndot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.notif.unread .ndot { background: var(--accent); }
.notif:not(.unread) b { font-weight: 600; color: var(--ink-2); }

/* ---------- Header kelas & tab ---------- */
.khead { background: var(--c); color: #fff; position: relative; overflow: hidden; }
.khead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 92% -10%, rgba(255,255,255,.18) 0 160px, transparent 161px), radial-gradient(circle at 78% 120%, rgba(0,0,0,.12) 0 180px, transparent 181px); }
.khead-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 22px 32px 26px; }
.khead h1 { font-size: 28px; margin: 4px 0 12px; }
.kcode { font-size: 13px; font-weight: 700; opacity: .85; letter-spacing: .02em; }
.kmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; opacity: .95; }
.kmeta span { display: inline-flex; align-items: center; gap: 7px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.crumb.dark { color: var(--ink-3); margin-bottom: -8px; }
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.tabs-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 14px 14px 12px; font-weight: 700; font-size: 14px; color: var(--ink-3); border-bottom: 2.5px solid transparent; white-space: nowrap; text-decoration: none !important; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--brand); border-color: var(--brand); }

/* ---------- Daftar pertemuan ---------- */
.meet { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.meet a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: border-color .12s, box-shadow .12s; }
.meet a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.meet .num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.meet li.done .num { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.meet li.now a { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.meet li.now .num { background: var(--accent); color: #2b1e04; border-color: transparent; }
.meet li.exam .num { font-size: 12px; background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt b { font-size: 15px; }
.hl { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.chips span { display: inline-flex; align-items: center; gap: 4px; }
.chips .on { color: var(--live); font-weight: 700; }
.chips .none { color: var(--ink-3); font-style: italic; }

/* ---------- Halaman pertemuan ---------- */
.p-head { display: flex; gap: 18px; align-items: flex-start; }
.p-num { width: 74px; height: 74px; border-radius: 18px; background: var(--brand); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.p-num.exam { background: var(--bad); color: #fff; }
.p-num small { font-size: 9px; opacity: .8; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.p-num b { font-size: 28px; line-height: 1; }
.p-title { flex: 1; min-width: 0; }
.p-title h1 { margin-bottom: 6px; }
.prose { overflow-wrap: anywhere; }
.prose a { text-decoration: underline; }
.prose.quote { background: var(--surface-2); border-left: 3px solid var(--line-2); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 8px; }

.att-card { border-top: 4px solid var(--live); }
.att-open { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.att-open p { flex-basis: 100%; margin: 0; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border-radius: 14px; background: var(--live-soft); margin-bottom: 8px; text-align: center; }
.code { font-size: 54px; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; padding-left: .18em; }
.code-box:fullscreen { justify-content: center; background: var(--surface); }
.code-box:fullscreen .code { font-size: 22vw; }
.code-box .row-gap { margin-top: 8px; }
.code-in { display: flex; gap: 12px; align-items: flex-end; }
.code-in .field { flex: 1; }
.code-input { font-size: 26px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; text-align: center; padding: 12px; }
.att-done { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.att-done.warn { background: var(--warn-soft); color: var(--warn); }
.att-done.bad { background: var(--bad-soft); color: var(--bad); }
.att-done div { display: flex; flex-direction: column; }
.att-done b { font-size: 18px; }
.att-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.att-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.att-list li + li { border-top: 1px solid var(--line); }
.att-list li.flash-new { animation: newrow 1.8s ease-out; }
@keyframes newrow { from { background: var(--live-soft); } to { background: transparent; } }
.att-list .seg span { padding: 5px 10px; min-width: 32px; justify-content: center; }
.seg .s-H input:checked + span { background: var(--ok); color: #fff; }
.seg .s-I input:checked + span { background: var(--info); color: #fff; }
.seg .s-S input:checked + span { background: var(--warn); color: #fff; }
.seg .s-A input:checked + span { background: var(--bad); color: #fff; }

.mat { display: flex; flex-direction: column; gap: 10px; }
.mat-i { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mat-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none !important; }
a.mat-row:hover { background: var(--surface-2); }
.mat-row > .ic:last-child { color: var(--ink-3); }
.mat-row.bordered { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.mat-row .lmain small:not(.muted) { color: var(--ink-2); }
.fi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; flex: none; color: #fff; background: #6b7785; }
.fi-pdf { background: #c8432f; } .fi-doc { background: #2f62b0; } .fi-ppt { background: #d06a1f; } .fi-xls { background: #217346; }
.fi-img { background: #7b52a6; } .fi-zip { background: #6b5d3e; } .fi-vid { background: #b23a5a; } .fi-link { background: var(--brand); color: var(--brand-ink); }
.mat-text { padding: 0 16px 16px 74px; }
.video { position: relative; padding-top: 56.25%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mat-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.mat-foot .muted { display: inline-flex; align-items: center; gap: 5px; }
.pager { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Progres & langkah ---------- */
.prog.big { height: 10px; border-radius: 10px; margin: 0; }
.mini-prog { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; }
.mini-prog .prog { margin: 0; width: 64px; flex: none; }
.mini-prog small { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.steps-card { border-top: 4px solid var(--brand); }
.steps { list-style: none; margin: 16px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; background: var(--surface); transition: border-color .12s; }
.steps a:hover { border-color: var(--brand); }
.steps a > .ic { color: var(--ink-3); }
.st-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; border: 2px solid var(--line-2); color: var(--ink-2); }
.st-ok a { background: var(--surface-2); }
.st-ok .st-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.st-ok b { color: var(--ink-2); }
.st-miss .st-dot { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.steps-note { margin: 10px 0 0; }
.req { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-left: 4px solid var(--ok); }
.req > .ic { color: var(--ok); margin-top: 2px; }
.req > div { display: flex; flex-direction: column; gap: 2px; }
.req.empty-req { border-left-color: var(--warn); }
.req.empty-req > .ic { color: var(--warn); }
.mat-done { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 16px; border-top: 1px dashed var(--line-2); background: var(--accent-soft); flex-wrap: wrap; }
.pad-m { padding: 12px 16px; margin: 0; }
.att-list.flat { border: 0; border-radius: 0; max-height: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.att-list .kh-tag { min-width: 120px; display: flex; justify-content: flex-end; }
.seg.sm span { padding: 5px 9px; font-size: 12px; min-width: 30px; justify-content: center; }
.att-c.T { background: var(--warn-soft); color: var(--warn); }
.att-c.part { width: auto; min-width: 26px; padding: 0 5px; background: var(--info-soft); color: var(--info); font-size: 11px; }
.tbl.att th a { color: inherit; }
.my-prog { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; border-left: 4px solid var(--brand); }
.mp-num { display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; max-width: 110px; }
.mp-num b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--brand); }
.mp-num span { font-size: 18px; color: var(--ink-3); font-weight: 700; }
.mp-num small { flex-basis: 100%; color: var(--ink-3); font-size: 12px; }
.mp-bar { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.meet li.locked a { background: var(--surface-2); }
.meet li.locked .num { color: var(--ink-3); }
.meet li.locked b { color: var(--ink-3); }
.meet li.done .num { background: var(--ok); color: #fff; }
.meet li.part .num { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.locked-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; }
.locked-card h1 { margin-bottom: 6px; }
.locked-card p:not(.eyebrow) { color: var(--ink-2); max-width: 460px; }
.lock-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); margin-bottom: 6px; }
.btn.locked { opacity: .6; cursor: not-allowed; }
.resume { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.resume a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none !important; transition: border-color .12s, box-shadow .12s; }
.resume a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.rs-bar { width: 5px; align-self: stretch; border-radius: 4px; background: var(--c); }
.rs-prog { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.rs-prog .prog { margin: 0; max-width: 220px; }
.card-row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }

/* ---------- Tugas ---------- */
.item-head { display: flex; gap: 16px; align-items: center; }
.item-head > div { flex: 1; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts > div { padding: 14px 18px; display: flex; flex-direction: column; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.facts b { font-size: 15px; }
.facts b.urgent { color: var(--bad); }
.submit { border-top: 4px solid var(--info); }
.sub-box { display: flex; flex-direction: column; gap: 4px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); color: var(--ink-3); cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--ink); }
.drop.has b { color: var(--ok); }
.grade-box { display: flex; gap: 20px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--brand-soft); margin-top: 12px; flex-wrap: wrap; }
.grade-box > div:first-child { display: flex; flex-direction: column; }
.grade-box b { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--brand); }
.grade-box b small { font-size: 16px; color: var(--ink-3); }
.grade-box.center { justify-content: center; text-align: center; }
.grade-box.sm { margin: 0; padding: 10px 16px; }
.grade-box.sm b { font-size: 26px; }
.fb { flex: 1; min-width: 200px; } .fb p { margin: 0; }
.subs { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sub { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1.4fr) minmax(220px, 1.3fr); gap: 14px; align-items: center; padding: 12px 16px; }
.sub + .sub { border-top: 1px solid var(--line); }
.sub.none { background: var(--surface-2); }
.sub-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sub-who > span { display: flex; flex-direction: column; min-width: 0; }
.sub-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.filelink { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-what details summary { cursor: pointer; font-size: 13px; color: var(--brand); font-weight: 600; }
.sub-grade { display: flex; gap: 8px; align-items: center; }
.cell-wrap { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.cell { width: 78px; padding: 7px 8px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.cmt { flex: 1; padding: 7px 10px; font-size: 13.5px; }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; }
.sticky-save .btn { box-shadow: var(--shadow-lg); }

/* ---------- Tabel ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b + small, .tbl td small.muted { display: block; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 200px; }
.tbl th.sticky { background: var(--surface-2); }
.tbl.att th:not(.sticky), .tbl.att td:not(.sticky) { text-align: center; padding: 8px 6px; }
.att-c { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 12px; font-weight: 800; }
.att-c.H { background: var(--ok-soft); color: var(--ok); } .att-c.I { background: var(--info-soft); color: var(--info); }
.att-c.S { background: var(--warn-soft); color: var(--warn); } .att-c.A { background: var(--bad-soft); color: var(--bad); }
.att-c.nil { color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.legend .att-c { margin-left: 8px; }
.tbl.grades td { white-space: nowrap; }
.tbl.grades th, .tbl.grades td { padding-left: 8px; padding-right: 8px; }
.tbl.grades th { white-space: normal; min-width: 64px; max-width: 110px; vertical-align: bottom; }
.tbl.grades .cell { width: 66px; }
.tbl.grades .sticky { min-width: 170px; }
.grade-l { display: inline-grid; place-items: center; min-width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 20px; padding: 0 8px; }
.grade-l.sm { min-width: 34px; height: 28px; font-size: 13.5px; border-radius: 8px; }
.grade-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.grade-hero > div { display: flex; align-items: center; gap: 14px; }
.grade-hero .big { font-size: 42px; font-weight: 800; letter-spacing: -.02em; }
.grade-hero p { max-width: 360px; margin: 0; }
.comp-stats { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.comp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.comp-chips span { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.cell.manual { border-color: var(--accent); background: var(--accent-soft); }
.d-block { display: block; }
.bobot { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.bobot .field { width: 110px; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--ink-2); }
.kv b { text-align: right; }
.kv.mono b { font-family: ui-monospace, monospace; font-size: 13px; font-weight: 600; }

/* ---------- Kuis ---------- */
.publish { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--line-2); }
.publish.on { border-left-color: var(--ok); }
.publish > div { display: flex; flex-direction: column; }
.qlist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.q-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.q-h > .row-gap { margin-left: auto; }
.q.right { border-left: 4px solid var(--ok); }
.q.wrong { border-left: 4px solid var(--bad); }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.opts.view { list-style: none; padding: 0; }
.opts.view li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.opts.view li > span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 12.5px; flex: none; }
.opts.view li.key { border-color: var(--ok); background: var(--ok-soft); }
.opts.view li.key > span { background: var(--ok); color: #fff; }
.opts.view li.picked { border-color: var(--bad); background: var(--bad-soft); }
.opts.view li em { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--line-2); background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; }
.opt .L { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt:has(input:checked) .L { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.opt:has(input:focus-visible) { outline: 2.5px solid var(--accent); }
.opts-edit { display: flex; flex-direction: column; gap: 8px; }
.opt-in { display: flex; gap: 10px; align-items: center; }
.opt-in .L { width: 28px; font-weight: 800; text-align: center; color: var(--ink-3); }
.opt-in:has(input[type=radio]:checked) .L { color: var(--ok); }
.opt-in:has(input[type=radio]:checked) input:not([type=radio]) { border-color: var(--ok); background: var(--ok-soft); }
.quiz-start { display: flex; flex-direction: column; gap: 14px; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.rules li .ic { margin-top: 2px; color: var(--brand); }
.bars { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bars li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.bars li span { width: 56px; color: var(--ink-2); } .bars li .prog { margin: 0; } .bars li b { width: 38px; text-align: right; }

/* Mode ujian */
main.exam-mode { padding-bottom: 30px; }
.exam-bar { position: sticky; top: 0; z-index: 25; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 12px 32px; box-shadow: var(--shadow); }
.eb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eb-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-variant-numeric: tabular-nums; }
.timer b { font-size: 19px; }
.timer.low { background: var(--bad-soft); color: var(--bad); animation: pulse 1s infinite; }
.save-st { min-width: 90px; text-align: right; }
.exam-body { max-width: 1100px; margin: 0 auto; padding: 22px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.exam-q { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.exam-q .q { scroll-margin-top: 90px; }
.q-text { font-size: 15.5px; }
.essay { margin-top: 12px; }
.exam-nav { position: sticky; top: 86px; }
.exam-nav .card { display: flex; flex-direction: column; gap: 12px; }
.qnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qnav a { display: grid; place-items: center; height: 36px; border-radius: 8px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 13.5px; color: var(--ink-2); text-decoration: none !important; }
.qnav a.ans { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Kalender ---------- */
.cal { --gutter: 56px; }
.cal-head { display: grid; grid-template-columns: var(--gutter) repeat(var(--days), 1fr); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-head span { padding: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; }
.cal-head span b { font-size: 20px; color: var(--ink); }
.cal-head span.today b { background: var(--accent); color: #2b1e04; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.cal-body { display: grid; grid-template-columns: var(--gutter) repeat(var(--days), 1fr); position: relative; background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour)); }
.cal-hours { position: relative; }
.cal-hours span { position: absolute; right: 8px; font-size: 11.5px; color: var(--ink-3); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.cal-hours span:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 9px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-left: 4px solid var(--c); padding: 6px 8px; overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 1px; transition: box-shadow .12s; }
.ev:hover { box-shadow: var(--shadow-lg); z-index: 3; }
.ev b { font-size: 12.5px; line-height: 1.25; }
.ev small { font-size: 11.5px; color: var(--ink-2); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 4; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.agenda { display: none; }
.ag-day { margin-bottom: 18px; }
.ag-day h3 { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.ag-ev { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; color: var(--ink); text-decoration: none !important; }
.ag-ev .t { display: flex; flex-direction: column; min-width: 46px; font-variant-numeric: tabular-nums; }
.ag-ev .t small { color: var(--ink-3); }
.ag-ev .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c, var(--bad)); }

/* ---------- Forum ---------- */
.post-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-h > span:not(.av):not(.row-gap) { flex: 1; display: flex; flex-direction: column; }
.post.first h1 { margin-bottom: 10px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.thread .post { display: flex; gap: 10px; align-items: flex-start; }
.bubble { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 14px; min-width: 0; }
.bubble .post-h { margin-bottom: 4px; }
.bubble .post-h > span { flex-direction: row !important; flex-wrap: wrap; gap: 6px; align-items: center; }
.post.lect .bubble { background: var(--info-soft); border-color: transparent; }
.post.mine .bubble { border-color: var(--brand); }
.reply { display: flex; gap: 10px; align-items: flex-end; padding: 12px; }
.reply textarea { flex: 1; }

/* ---------- Admin ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.chk span { display: flex; flex-direction: column; min-width: 0; }
.chk small { color: var(--ink-3); overflow-wrap: anywhere; }
.chk.ok > .ic { color: var(--ok); } .chk.bad > .ic { color: var(--bad); } .chk.bad { border-color: var(--bad); }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* ---------- Pengaturan ---------- */
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.set-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.set-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.set-main .field small { font-weight: 400; }
.logo-set { display: flex; gap: 16px; align-items: flex-start; }
.logo-pv { width: 84px; height: 84px; border-radius: 18px; background: var(--brand); color: var(--accent); display: grid; place-items: center; flex: none; overflow: hidden; }
.logo-pv img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8px; }
.color-in { display: flex; align-items: center; gap: 10px; }
.color-in input[type=color] { width: 56px; height: 42px; padding: 3px; cursor: pointer; flex: none; }
.swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; padding: 2px; background: var(--surface); cursor: pointer; }
.sw:hover { border-color: var(--ink-3); }
.sw i { width: 20px; height: 24px; display: block; }
.sw i:first-child { border-radius: 6px 0 0 6px; } .sw i:last-child { border-radius: 0 6px 6px 0; }
.bg-pv { display: flex; flex-direction: column; gap: 4px; }
.bg-pv img { width: 100%; max-height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.toggle input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .15s; border: 0; padding: 0; margin-top: 2px; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { left: 21px; }
.toggle > span { display: flex; flex-direction: column; gap: 2px; }
.pv-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.pv { display: grid; grid-template-columns: 130px 1fr; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); height: 200px; font-size: 11px; }
.pv-side { background: var(--brand); color: #dce9ee; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.pv-brand { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; color: #fff; min-width: 0; }
.pv-brand b { display: block; font-size: 11px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.pv-brand small { display: block; font-size: 9px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.pv-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #2b1e04; display: grid; place-items: center; flex: none; overflow: hidden; }
.pv-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
.pv-item { display: flex; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 6px; font-weight: 600; position: relative; }
.pv-item.on { background: rgba(255,255,255,.14); color: #fff; }
.pv-item.on::before { content: ""; position: absolute; left: -8px; top: 5px; bottom: 5px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.pv-main { background: #f5f4f0; padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: #18222c; }
.pv-h { font-weight: 800; font-size: 13px; line-height: 1.2; }
.pv-btn { background: var(--brand); color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 7px; }
.pv-badge { background: var(--accent); color: #2b1e04; font-weight: 800; border-radius: 9px; min-width: 20px; height: 20px; display: grid; place-items: center; }

/* ---------- Penilaian (admin) ---------- */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: -8px; overflow-x: auto; }
.subtabs a { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--ink-3); border-bottom: 2.5px solid transparent; white-space: nowrap; text-decoration: none !important; }
.subtabs a.on { color: var(--brand); border-color: var(--brand); }
.tbl.edit td { padding: 6px 8px; }
.tbl.edit th { padding: 9px 8px; }
.tbl.edit input, .tbl.edit select { padding: 8px 10px; min-height: 40px; }
#t-komp { table-layout: fixed; min-width: 560px; }
#t-komp th:nth-child(1) { width: 30%; } #t-komp th:nth-child(2) { width: 27%; } #t-komp th:nth-child(3) { width: 108px; }
#t-komp th:nth-child(4) { width: auto; } #t-komp th:nth-child(5) { width: 70px; }
#t-komp input:not([type=hidden]), #t-komp select { width: 100%; min-width: 0; }
#t-komp .pct input { width: 70px; }
.tbl.narrow-t { width: auto; }
.pct { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink-3); }
.pct input { width: 86px; text-align: right; }
.pct i { font-style: normal; }
.w-s { width: 96px; }
[data-up] .ic { transform: rotate(90deg); }
tr[data-row]:first-child [data-up] { visibility: hidden; }
.try { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.try input { width: 90px; padding: 6px 8px; }
.try b { font-size: 16px; color: var(--brand); min-width: 90px; }
.sum-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); }
.sum-bar i { display: block; height: 100%; }
.sum-bar i + i { border-left: 2px solid var(--surface); }
.kv.small li { padding: 6px 0; font-size: 13px; }
.kv .sw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

.set-grid.one { grid-template-columns: 1fr; }
.set-grid.one .set-side { position: sticky; top: 0; z-index: 6; flex-direction: row; align-items: stretch; gap: 12px; padding: 10px 0; background: var(--bg); }
.set-grid.one .sum-card { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.sum-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sum-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.sum-legend li { display: inline-flex; gap: 6px; align-items: center; }
.sum-legend li b { font-weight: 800; }

.import-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1.5px dashed var(--line-2); box-shadow: none; }
.ic-l { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 260px; }
.ic-l > div { display: flex; flex-direction: column; gap: 2px; }
.xl-ic { width: 44px; height: 44px; border-radius: 12px; background: #1d6f42; color: #fff; display: grid; place-items: center; flex: none; }
.ic-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ic-r input[type=file] { max-width: 280px; }
.flash.draft { align-items: center; }
.flash.draft .btn { flex: none; }
.xl-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.xl-box .row-gap { justify-content: flex-start; }
.lap ul { margin: 4px 0 0; padding-left: 18px; }

.copy-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1.5px dashed var(--brand); background: var(--brand-soft); box-shadow: none; }
.copy-card .lmain { min-width: 220px; }
.xl-ic.cp { background: var(--brand); color: var(--brand-ink); }
.flash.info-flash { background: var(--info-soft); color: var(--info); align-items: center; }
.flash.info-flash form { flex: none; }
.src-list { display: flex; flex-direction: column; gap: 8px; }
.src { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.src:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Profil ---------- */
.profile { display: flex; align-items: center; gap: 18px; }
.profile h1 { font-size: 22px; }
.profile p { margin: 2px 0 0; }
.only-m { display: none; }

/* ---------- Login ---------- */
.login-page { background: var(--surface); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: var(--brand); color: #e3eef2; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .login-art { background: #0d1418; } }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); right: -180px; top: -160px; }
.login-art::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(217,154,27,.12); left: -90px; bottom: -110px; }
.login-art.has-bg { background-image: linear-gradient(160deg, color-mix(in srgb, var(--brand) 88%, transparent), color-mix(in srgb, var(--brand) 70%, #000 30%)), var(--login-bg); background-size: cover; background-position: center; }
.login-art.has-bg::before, .login-art.has-bg::after { display: none; }
.art-top { display: flex; align-items: center; gap: 14px; font-size: 17px; color: #fff; position: relative; z-index: 1; }
.art-mid { position: relative; z-index: 1; max-width: 460px; }
.art-mid h2 { font-size: 40px; font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 16px; letter-spacing: -.02em; }
.art-mid p { font-size: 16px; color: #b9d2db; margin-bottom: 26px; }
.art-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.art-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.art-list .ic { color: var(--accent); }
.art-foot { font-size: 13px; color: #8fb0bc; position: relative; z-index: 1; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.lf-in { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.lf-in h1 { font-size: 30px; }
.lf-in p { margin: 0; }
.lf-in .flash { margin: 0; }
.lf-brand { display: none; align-items: center; gap: 10px; }
.demo-acc { margin-top: 10px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.demo-acc button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.demo-acc button:hover { border-color: var(--brand); }
.demo-acc button span:nth-child(2) { flex: 1; font-weight: 600; }
.demo-acc .tag { min-width: 82px; justify-content: center; }
.hint { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 4px !important; }
.input-lg, .field input { min-height: 46px; }

.plain { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.errbox { max-width: 440px; margin: 80px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; }
.errbox > .ic { color: var(--warn); }
.errbox h1 { font-size: 24px; }
.errbox p { color: var(--ink-2); }

/* =========================================================
   Responsif
   ========================================================= */
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
  .grid-side { grid-template-columns: 1fr; }
  .stats.six { grid-template-columns: repeat(3, 1fr); }
  .sub { grid-template-columns: 1fr 1fr; }
  .sub-grade { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  body { font-size: 15px; }
  .side { display: none; }
  .main-wrap { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 30; }
  @media (prefers-color-scheme: dark) { .topbar { background: #0d1418; border-bottom: 1px solid var(--line); } }
  .brand-m { display: flex; align-items: center; gap: 9px; color: #fff; flex: 1; min-width: 0; text-decoration: none !important; }
  .brand-m b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-m .logo { width: 32px; height: 32px; border-radius: 9px; }
  .bell { color: #fff; position: relative; display: grid; place-items: center; width: 38px; height: 38px; }
  .bell em { position: absolute; top: 2px; right: 0; background: var(--accent); color: #2b1e04; font-style: normal; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
  .bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-decoration: none !important; position: relative; }
  .bottom a.on { color: var(--brand); }
  .bottom.banyak { overflow-x: auto; scrollbar-width: none; }
  .bottom.banyak a { flex: 0 0 auto; min-width: 72px; }
  .bottom a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .bottom .dot { position: absolute; top: 3px; left: 54%; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .page { padding: 18px 16px 0; gap: 18px; }
  main > .flash { margin: 12px 16px 0; }
  h1 { font-size: 22px; }
  .hello h1 { font-size: 23px; }
  .stats, .stats.five, .comp-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats.five .stat:first-child { grid-column: 1 / -1; }
  .stat b { font-size: 21px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .khead-in { padding: 14px 16px 18px; }
  .khead h1 { font-size: 22px; margin-bottom: 8px; }
  .kmeta { font-size: 12.5px; flex-direction: column; gap: 4px; }
  .tabs { top: calc(58px + env(safe-area-inset-top)); }
  .tabs-in { padding: 0 8px; }
  .tabs a { padding: 12px 10px 10px; font-size: 13.5px; }
  .tabs a .ic { display: none; }
  .lrow { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .lrow .lside { width: 100%; justify-content: flex-start; padding-left: 50px; order: 3; }
  .lrow .lside:empty { display: none; }
  .lsch { display: none; }
  .search { min-width: 0; width: 100%; }
  .page-h { align-items: stretch; flex-direction: column; }
  .p-head { gap: 12px; flex-wrap: wrap; }
  .p-num { width: 56px; height: 56px; border-radius: 14px; }
  .p-num b { font-size: 22px; }
  .p-num small { font-size: 7.5px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .code { font-size: 42px; }
  .code-in { flex-direction: column; align-items: stretch; }
  .mat-text { padding: 0 16px 16px; }
  .sub { grid-template-columns: 1fr; gap: 8px; }
  .cal { display: none; }
  .agenda { display: block; }
  .cal-due { display: none; }
  .checks { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
  .set-side { position: static; order: -1; }
  .set-grid.one .set-side { position: sticky; flex-direction: column; }
  .set-grid.one .set-side .btn { width: 100%; }
  .logo-set { flex-direction: column; }
  .stats.six { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .only-m { display: block; }
  .item-head { flex-wrap: wrap; }
  .item-head .dl-ic.lg { width: 44px; height: 44px; }
  .exam-bar { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); top: 0; }
  .save-st { display: none; }
  .exam-body { grid-template-columns: 1fr; padding: 16px; }
  .exam-nav { position: static; }
  .att-list li { flex-wrap: wrap; }
  .att-list .seg { margin-left: auto; }
  .att-list .kh-tag { min-width: 0; }
  .mini-prog { min-width: 0; }
  .resume .btn { display: none; }
  .my-prog { gap: 14px; }
  .grade-hero .big { font-size: 34px; }
  .bobot .field { width: calc(50% - 6px); }
  .bobot .btn { width: 100%; }
  .tbl .sticky { min-width: 150px; }
  .reply .av { display: none; }

  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .lf-brand { display: flex; margin-bottom: 18px; }
  .login-form { place-items: start center; padding-top: 12vh; }
}
@media (max-width: 860px) {
  /* Saat mengerjakan kuis di HP, sembunyikan navigasi bawah agar tidak mengganggu */
  body:has(main.exam-mode) .bottom, body:has(main.exam-mode) .topbar { display: none; }
  body:has(main.exam-mode) main { padding-bottom: 20px; }
}
@media print {
  .side, .topbar, .bottom, .tabs, .btn, form button { display: none !important; }
  .main-wrap { margin: 0; }
  .card, .list { box-shadow: none; }
}

/* =========================================================
   Isi berformat (hasil editor) — dipakai di materi & tugas
   ========================================================= */
.prose { line-height: 1.7; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 .8em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; margin: 1.3em 0 .5em; color: var(--ink); letter-spacing: -.01em; }
.prose h2 { font-size: 1.4em; }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.05em; }
.prose ul, .prose ol { margin: 0 0 .8em; padding-left: 1.6em; }
.prose li { margin: .2em 0; }
.prose li > ul, .prose li > ol { margin: .2em 0; }
.prose ul ul { list-style: circle; } .prose ul ul ul { list-style: square; }
.prose ol ol { list-style: lower-alpha; } .prose ol ol ol { list-style: lower-roman; }
.prose blockquote { margin: 0 0 .8em; padding: .6em 1em; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { margin: 0 0 .8em; padding: 12px 14px; background: #1d2730; color: #e6edf3; border-radius: 10px; overflow-x: auto; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; tab-size: 4; overflow-wrap: normal; }
.prose code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 1.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; vertical-align: middle; }
.prose p:has(> img:only-child) { text-align: center; }
/* Tabel: kata tidak pernah dipotong di tengah; bila terlalu lebar, tabel digeser ke samping */
.prose .tb-gulir { overflow-x: auto; margin: 0 0 1em; -webkit-overflow-scrolling: touch; }
.prose .tb-gulir > table { margin: 0; }
.prose table { border-collapse: collapse; margin: 0 0 1em; width: 100%; font-size: .95em; table-layout: auto; overflow-wrap: normal; word-break: normal; }
.prose table.tb-tengah { margin-left: auto; margin-right: auto; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; vertical-align: top; min-width: 2.5em; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose table.tb-zebra > tbody > tr:nth-child(even) > td { background: var(--surface-2); }
.prose table.tb-polos th, .prose table.tb-polos td { border: 0; border-bottom: 1px solid var(--line); }
.prose table.tb-polos th { border-bottom: 2px solid var(--line-2); background: none; }
.prose td[style*="background-color"], .prose th[style*="background-color"] { color: #1a1a1a; }
.prose td a, .prose th a { overflow-wrap: anywhere; }
.prose mark { background: #fff3bf; color: #1a1a1a; padding: 0 .1em; border-radius: 3px; }
.prose span[style*="background-color"] { color: #1a1a1a; padding: 0 .1em; border-radius: 3px; }
.prose sub, .prose sup { font-size: .75em; }
@media (prefers-color-scheme: dark) {
  .prose span[style*="color:"]:not([style*="background-color"]) { filter: brightness(1.6) saturate(.9); }
  .prose pre { background: #0b1116; }
}

/* =========================================================
   Editor teks
   ========================================================= */
.ed { border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; position: relative; }
.ed.focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.ed.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.ed.drop { border-style: dashed; border-color: var(--brand); background: var(--brand-soft); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 11px 11px 0 0; position: sticky; top: 0; z-index: 8; }
.ed-g { display: inline-flex; align-items: center; gap: 2px; padding-right: 6px; margin-right: 4px; border-right: 1px solid var(--line); }
.ed-g:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ed-bar button:not(.btn) { all: unset; box-sizing: border-box; min-width: 34px; height: 34px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 15px; font-family: Georgia, "Times New Roman", serif; line-height: 1; }
.ed-bar button:not(.btn) b, .ed-bar button:not(.btn) u, .ed-bar button:not(.btn) s { font-family: var(--font); font-size: 15px; }
.ed-bar button:not(.btn) b { font-weight: 800; }
.ed-bar button:not(.btn) .ed-i { font-style: italic; font-weight: 600; font-size: 16px; }
.ed-bar button:not(.btn) sup, .ed-bar button:not(.btn) sub { font-size: 10px; font-family: var(--font); }
.ed-bar button:not(.btn):hover { background: var(--line); color: var(--ink); }
.ed-bar button:not(.btn):focus-visible { outline: 2.5px solid var(--accent); outline-offset: 0; }
.ed-bar button.on, .ed-bar button.open { background: var(--brand-soft); color: var(--brand); }
.ed-blok { width: auto; height: 34px; padding: 0 30px 0 10px; font-size: 13.5px; font-weight: 600; border-radius: 8px; border: 1px solid var(--line-2); background-color: var(--surface); cursor: pointer; }
.ed-col span { font-family: var(--font); font-weight: 800; font-size: 15px; }
.ed-col { position: relative; }
.ed-bar-c { position: absolute; left: 8px; right: 20px; bottom: 6px; height: 3px; border-radius: 2px; background: currentColor; }
.ed-hl { background: #fff3bf; color: #1a1a1a; padding: 1px 4px; border-radius: 4px; font-size: 13px !important; }
.ed-dd { position: relative; display: inline-flex; }
.ed-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 200px; font-family: var(--font); }
.ed-pop[hidden] { display: none; }
.ed-pop.wide { width: 300px; max-width: calc(100vw - 40px); }
.ed-pop-h { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ed-sw { display: grid; grid-template-columns: repeat(4, 32px); gap: 6px; }
.ed-sw button { all: unset; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; border: 1px solid rgba(0,0,0,.12); box-sizing: border-box; }
.ed-sw button:hover, .ed-sw button:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.ed-sw button.none { background: linear-gradient(135deg, transparent 45%, var(--bad) 45%, var(--bad) 55%, transparent 55%), var(--surface); }
.ed-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ed-f input { padding: 8px 10px; font-weight: 400; font-size: 14px; }
.ed-act { display: flex; justify-content: flex-end; gap: 8px; }
.ed-err { color: var(--bad); font-size: 13px; font-weight: 600; }
.ed-err[hidden] { display: none; }
.ed-pop small { font-size: 12px; line-height: 1.4; }
.ed-grid { display: grid; grid-template-columns: repeat(8, 20px); gap: 3px; }
.ed-grid button { all: unset; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; box-sizing: border-box; background: var(--surface); }
.ed-grid button.on { background: var(--brand-soft); border-color: var(--brand); }
.ed-pop .check { padding: 0; font-size: 13px; }
.ed-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.ed-ctx[hidden], .ed-draf[hidden] { display: none; }
.ed-ctx b { color: var(--brand); margin-right: 4px; }
.ed-ctx button { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.ed-ctx button:hover { border-color: var(--brand); }
.ed-ctx button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.ed-ctx button.bad { color: var(--bad); }
.ed-seg { display: inline-flex; gap: 3px; }
.ed-draf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ed-draf span { flex: 1; min-width: 180px; }
.ed-area { min-height: 160px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; outline: none; font-size: 15.5px; cursor: text; }
.ed-lg .ed-area { min-height: 320px; }
.ed-area.ed-empty::before { content: attr(data-ph); color: var(--ink-3); position: absolute; pointer-events: none; max-width: calc(100% - 60px); }
.ed-area img { cursor: pointer; }
.ed-area img.sel { outline: 3px solid var(--brand); outline-offset: 2px; }
.ed-area { overflow-x: auto; }
.ed-area table td, .ed-area table th { min-width: 3em; position: relative; }
.ed-area table:not(.tb-polos) td, .ed-area table:not(.tb-polos) th { outline: 1px dashed transparent; }
.ed-area.ed-kolom, .ed-area.ed-kolom td, .ed-area.ed-kolom th { cursor: col-resize; }
.ed-area.ed-geser { cursor: col-resize; user-select: none; -webkit-user-select: none; }
.ed-area.ed-geser table { outline: 2px solid var(--brand); outline-offset: 1px; }
.ed-area table.tb-polos td, .ed-area table.tb-polos th { border-left: 1px dashed var(--line); border-right: 1px dashed var(--line); }
.ed-ctx-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.ed-ctx-r > b { min-width: 64px; }
.ed-ctx-r + .ed-ctx-r { padding-top: 6px; border-top: 1px dashed var(--line); }
.ed-ctx .ed-seg button { padding: 5px 8px; }
.ed-ctx .ed-sw.sm { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.ed-ctx .ed-sw.sm button { width: 20px; height: 20px; padding: 0; border-radius: 5px; }
.ed-ctx .ed-sw.sm button.on { outline: 2px solid var(--brand); outline-offset: 1px; background-clip: padding-box; }
.ed-ctx .ed-sw.sm button.none { background: linear-gradient(135deg, var(--surface) 45%, var(--bad) 46% 54%, var(--surface) 55%); }
.ed-tip { font-size: 12px; }
.ed-area a { cursor: text; }
.ed-foot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12.5px; min-height: 30px; align-items: center; }
.ed-stat { color: var(--ink-2); font-weight: 600; }
.ed-stat.bad { color: var(--bad); }
.ed-hit { margin-left: auto; white-space: nowrap; }
.ed.ed-full { position: fixed; inset: 0; z-index: 200; border-radius: 0; border: 0; }
.ed.ed-full .ed-bar { border-radius: 0; justify-content: center; }
.ed.ed-full .ed-area { flex: 1; max-height: none; padding: 32px max(24px, calc((100vw - 820px) / 2)); font-size: 16.5px; }
html.ed-noscroll { overflow: hidden; }
textarea.ed-src[hidden], .ed [hidden] { display: none !important; }
@media (max-width: 860px) {
  .ed-bar { gap: 2px; padding: 4px; }
  .ed-g { padding-right: 3px; margin-right: 2px; }
  .ed-bar button:not(.btn) { min-width: 32px; height: 32px; padding: 0 5px; }
  .ed-pop { position: fixed; z-index: 300; top: 72px; bottom: auto; left: 12px !important; right: 12px !important; width: auto !important; max-width: none; }
  .ed-area { padding: 14px; font-size: 16px; }
  .ed-lg .ed-area { min-height: 260px; }
}

/* Pratinjau Google Drive & video */
.doc-emb { padding: 0 16px 14px 74px; }
.doc-emb iframe { width: 100%; height: min(70vh, 560px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.fi-drive { background: #e8f0fe; color: #1a73e8; }
.emb-pv { margin-top: 8px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.emb-pv iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.emb-pv.doc iframe { aspect-ratio: auto; height: 320px; }
.emb-pv .emb-msg { display: block; padding: 10px 12px; font-size: 13px; }
.emb-pv .emb-msg.bad { color: var(--bad); }
.prose iframe.yt, .prose .vid { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; margin: 0 auto .8em; }
.ed-area iframe { pointer-events: none; outline: 2px dashed var(--line-2); outline-offset: 2px; }
@media (max-width: 860px) { .doc-emb { padding: 0 12px 12px; } }
@media (prefers-color-scheme: dark) { .fi-drive { background: #1b2a44; color: #8ab4f8; } }
.prose iframe.yt.doc { aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface-2); }

/* Saran nilai esai */
.kunci-esai { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); display: flex; flex-direction: column; gap: 4px; }
.kunci-esai summary { cursor: pointer; }
.saran { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
.saran-n { display: flex; align-items: baseline; gap: 2px; min-width: 64px; }
.saran-n b { font-size: 26px; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.saran-t { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.saran-t .tag { margin: 2px 2px 0 0; }
input.flash-ok { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 35%, transparent); border-color: var(--ok); }

/* Admin fakultas */
.prodi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }
.prodi-list .check { padding: 6px 0; align-items: flex-start; }
.fak-hapus { margin-top: -12px; }
.sum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sum-list li { display: flex; flex-direction: column; }

/* ===== Notifikasi web ===== */
[data-push-ui][hidden], [data-push-ui] [hidden] { display: none !important; }
.push-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; border-left: 4px solid var(--accent); }
.push-banner .push-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); }
.push-banner .push-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.push-daftar { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.push-msg:empty { display: none; }
.push-msg { color: var(--ok); margin: 0; }
.push-msg.err { color: var(--bad); }
@media (max-width: 640px) { .push-banner { flex-wrap: wrap; } .push-banner .row-gap { width: 100%; justify-content: flex-end; } }
.copy-box { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.copy-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
code.break { overflow-wrap: anywhere; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pesan-dosen { border-top: 1px solid var(--line); padding-top: 14px; }
.pesan-dosen textarea { font: inherit; line-height: 1.5; }
.isian-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.notif-pv { margin-top: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; max-width: 420px; }
.notif-pv p { margin: 4px 0 0; color: var(--ink-2); }
.video-alt { padding: 8px 14px 12px; font-size: 13px; }
.video-alt a { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); }

/* ===== Kirim ke SIAKAD ===== */
.sk-tbl td, .sk-tbl th { vertical-align: top; }
.sk-tbl th.c, .sk-tbl td.c { text-align: center; }
.sk-tbl .w1 { width: 1%; }
.sk-tbl tr.warn-row td { background: var(--warn-soft); }
.sk-warn { display: flex; gap: 4px; align-items: flex-start; color: var(--warn); margin-top: 3px; font-size: 12px; }
.sk-beda { background: var(--warn-soft); font-weight: 700; }
.sk-ajak { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.sk-ajak > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; }
.sk-ajak b { display: inline-flex; gap: 6px; align-items: center; }

/* ===== Jendela pengingat mengajar ===== */
html.pg-kunci, html.pg-kunci body { overflow: hidden; }
.pg-layar { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; background: rgba(10, 22, 30, .78); backdrop-filter: blur(3px); animation: pg-masuk .2s ease-out; }
.pg-kartu { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 22px; padding: 28px 24px 20px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 6px solid var(--accent); }
.pg-ikon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); animation: pg-goyang 1.2s ease-in-out infinite; }
.pg-kartu h2 { margin: 0 0 12px; font-size: 22px; }
.pg-isi { white-space: pre-line; text-align: left; margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.pg-aksi .pg-siap { width: 100%; font-size: 20px; font-weight: 800; letter-spacing: .08em; padding: 16px; }
.pg-buka { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
@keyframes pg-masuk { from { opacity: 0; } to { opacity: 1; } }
@keyframes pg-goyang { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .pg-ikon, .pg-layar { animation: none; } }

/* =========================================================
   Aktivitas dosen (admin)
   ========================================================= */
.akt-filter { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.akt-filter .field { margin: 0; min-width: 150px; flex: 0 1 auto; }
.akt-filter .field.grow { flex: 1 1 220px; }
.akt-filter select, .akt-filter input { width: 100%; }
.akt-stats .stat { color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.akt-stats .stat:hover { border-color: var(--brand); }
.akt-stats .st-ok b { color: var(--ok); } .akt-stats .st-warn b { color: var(--warn); } .akt-stats .st-bad b, .akt-stats .st-telat b { color: var(--bad); }
.akt-bar { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.akt-bar .prog { margin: 0; width: 90px; flex: none; }
.akt-bar b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.akt-tbl td { vertical-align: top; }
.akt-tbl th { white-space: nowrap; }
.akt-tbl .akt-dsn { min-width: 190px; }
.akt-tbl td:nth-child(2) { min-width: 210px; }
.akt-tbl .akt-isi { min-width: 250px; }
.akt-tbl td:nth-child(4) { min-width: 120px; }
.akt-tbl td:nth-child(7) { white-space: nowrap; }
.akt-tbl tr.akt-sama .akt-dsn b { color: var(--ink-3); font-weight: 600; }
.akt-rinci summary { cursor: pointer; font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 4px; }
.pt-grid { display: grid; grid-template-columns: repeat(8, 26px); gap: 4px; margin: 8px 0 4px; }
.pt-c { display: inline-grid; place-items: center; height: 24px; border-radius: 6px; font: 700 11px/1 inherit; font-style: normal; border: 1px solid transparent; }
.pt-c.ok { background: var(--ok); color: #fff; }
.pt-c.telat { background: var(--bad); color: #fff; }
.pt-c.kosong { background: var(--surface-2); color: var(--ink-3); border-color: var(--line-2); }
.pt-c.uji { font-size: 8.5px; letter-spacing: -.02em; }
.pt-ket { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pt-ket .pt-c { width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.card-h.pad { padding: 16px 18px 6px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .stats.five.akt-stats { grid-template-columns: repeat(2, 1fr); } .akt-stats .stat:first-child { grid-column: 1 / -1; } }
@media print {
  .akt-filter, .akt-aksi, .no-print, .akt-daftar form, .akt-rinci summary { display: none !important; }
  .akt .stat, .akt .card { border: 1px solid #bbb; }
  .akt-tbl { font-size: 11px; }
  .akt-tbl th, .akt-tbl td { padding: 4px 6px; }
  .akt-sub { color: #000 !important; }
  .akt-stats { grid-template-columns: repeat(5, 1fr) !important; }
}

/* =========================================================
   Pengumuman kampus
   ========================================================= */
.pk-list { display: flex; flex-direction: column; gap: 14px; }
.pk-item { display: flex; flex-direction: column; gap: 12px; }
.pk-item h2 { font-size: 17px; margin: 6px 0 2px; }
.pk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-tags .tag svg { vertical-align: -1px; }
.pk-ringkas { color: var(--ink-2, var(--ink)); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; }
.pk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.pk-foot .row-end { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-baca { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.pk-baca .prog { width: 120px; margin: 0; flex: none; }
.btn.bad { color: var(--bad); }
.pk-set { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pk-set legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.pk-tingkat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pk-opsi { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.pk-opsi:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pk-opsi span { display: flex; flex-direction: column; gap: 2px; }
.pk-opsi input { margin-top: 3px; }
.pk-pill { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.pk-pill a { padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--ink-3); text-decoration: none !important; }
.pk-pill a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.pk-sub { font-size: 15px; color: var(--ink-3); margin: 6px 0 0; }
.pk .stack + .stack { margin-top: 22px; }
a.pk-kartu { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none !important; border-left: 4px solid transparent; }
a.pk-kartu:hover { border-color: var(--line-2); }
a.pk-kartu.baru { border-left-color: var(--ok); }
a.pk-kartu.t-penting { border-left-color: var(--bad); }
a.pk-kartu.t-sematkan:not(.baru) { border-left-color: var(--info); }
a.pk-kartu b { font-size: 15.5px; }
.pk-dash { margin-bottom: 22px; }
.pk-dash .card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.pk-dash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pk-dash-list .pk-kartu { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); border-left-width: 4px; }
.pk-baca-isi { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.pk-baca-isi h1 { font-size: 24px; margin: 0; }
.pk-lamp { align-self: flex-start; }
.pk-layar { position: fixed; inset: 0; z-index: 900; background: rgba(10, 20, 25, .62); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(2px); }
.pk-kotak { background: var(--surface); border-radius: 16px; max-width: 640px; width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-top: 6px solid var(--bad); }
.pk-kepala { display: flex; align-items: center; gap: 8px; color: var(--bad); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.pk-kotak h2 { margin: 0; font-size: 20px; }
.pk-isi { overflow-y: auto; min-height: 0; flex: 1 1 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.pk-kotak form { display: flex; justify-content: flex-end; }
.pk-oke { min-width: 220px; justify-content: center; }
@media (max-width: 860px) { .pk-tingkat { grid-template-columns: 1fr; } .pk-oke { width: 100%; } }
body:has(.pk-layar) { overflow: hidden; }
.pk-set .grid2 { align-items: start; }
