/* Screening Translexi Studio — antarmuka peserta.
   Warna dari brand Translexi; huruf Inter Tight (lisensi OFL, lihat fonts/OFL.txt). */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 599; font-display: swap; src: url("fonts/InterTight-400.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("fonts/InterTight-800.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 100 599; font-display: swap; src: url("fonts/InterTight-400i.ttf") format("truetype"); }
@font-face { font-family: "Inter Tight"; font-style: italic; font-weight: 600 900; font-display: swap; src: url("fonts/InterTight-800i.ttf") format("truetype"); }

:root {
  --blue: #2872FA;
  --blue-deep: #1A5FED;
  --royal: #183785;
  --navy: #0A192F;
  --ink: #02030B;
  --paper: #F3F4F6;
  --white: #FFFFFF;
  --green: #3EAF7C;
  --green-ink: #1B6B49;
  --green-wash: #E3F4EC;
  --slate: #CBD5E1;
  --slate-wash: #E9EEF4;
  --muted: #55606F;
  --blue-wash: #E6EEFE;
  --error: #B42318;
  --error-wash: #FDECEA;
  --warn-wash: #FFF3D6;
  --warn-ink: #6B4A00;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  --bar-h: 52px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font); letter-spacing: 0.005em;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
h1, h2, h3, h4 { font-weight: 800; color: var(--navy); letter-spacing: -0.012em; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 1.95rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--royal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
strong { font-weight: 800; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--slate-wash); padding: 0.1em 0.35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.boot { padding: 2rem var(--gutter); color: var(--muted); }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* ---------- kerangka ---------- */
.topbar { background: var(--navy); color: var(--white); }
.topbar-in { max-width: 80rem; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; line-height: 0; }
.logo { height: 24px; width: auto; display: block; }
.who { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; min-width: 0; }
.who-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.who-role { display: none; color: var(--slate); }
.pwlink { display: none; }
@media (min-width: 720px) { .pwlink { display: inline-flex; } }
.pwform { padding-top: 12px; }
.form-ok { background: var(--green-wash); color: var(--green-ink); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 16px; font-weight: 800; font-size: 0.95rem; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.wrap.wide { max-width: 62rem; }
.wrap.xl { max-width: 80rem; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--royal); }
.section-title { margin: 0 0 14px; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 1.5px solid transparent;
  font: 800 0.95rem/1.25 var(--font); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn.primary { background: var(--blue-deep); color: var(--white); } /* putih di atas #1A5FED: kontras 5,3:1 */
.btn.primary:hover { background: var(--royal); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--royal); border-color: var(--slate); }
.btn.secondary:hover { border-color: var(--blue); color: var(--royal); }
.btn.quiet { background: transparent; color: var(--royal); }
.btn.quiet:hover { background: var(--blue-wash); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.35); min-height: 38px; padding: 4px 14px; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn.small { min-height: 38px; padding: 4px 12px; font-size: 0.875rem; }
.btn.block { width: 100%; }
.btn.big { padding: 14px 22px; font-size: 1.05rem; min-height: 56px; width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- teks bacaan ---------- */
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 2rem; margin: 0 0 0.6em; }
.prose h2 { font-size: 1.45rem; margin: 2.1em 0 0.6em; padding-top: 0.2em; }
.prose h3 { font-size: 1.15rem; margin: 1.7em 0 0.5em; color: var(--royal); }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin: 0.4em 0; padding-left: 0.25em; }
.prose li::marker { color: var(--blue); font-weight: 800; }
.prose ul > li ul, .prose ol > li ul { margin: 0.4em 0 0.2em; padding-left: 1.2em; }
.prose ul ul > li { list-style: "– "; }
.prose ul ul > li::marker { color: var(--muted); font-weight: 400; }
.prose blockquote { margin: 1.2em 0; padding: 0.9em 1.1em 0.2em; background: var(--white); border: 1px solid var(--slate); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p { margin-bottom: 0.8em; }
.prose hr { border: 0; border-top: 1px solid var(--slate); margin: 2em 0; }
.prose a { word-break: break-word; }
.prose .table-wrap { overflow-x: auto; max-width: 100%; margin: 1.2em 0; border: 1px solid var(--slate); border-radius: var(--radius-sm); background: var(--white); -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: inherit; line-height: 1.5; }
.prose th, .prose td { padding: 0.55em 0.8em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-wash); }
.prose th { font-weight: 800; color: var(--navy); background: var(--slate-wash); border-bottom: 1px solid var(--slate); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--paper); }
.prose .al-c { text-align: center; }
.prose .al-r { text-align: right; }
/* Layar sempit: tiap baris menjadi kartu, sel bertumpuk dengan judul kolomnya; tidak ada geser samping. */
@media (max-width: 600px) {
  .prose .table-wrap { border: 0; background: transparent; border-radius: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose tbody tr, .prose tbody tr:nth-child(even) { background: var(--white); border: 1px solid var(--slate); border-radius: var(--radius-sm); margin: 0 0 0.75em; padding: 0.35em 0; }
  .prose td, .prose tbody tr:nth-child(even) td, .prose tbody tr:last-child td { background: transparent; border: 0; padding: 0.35em 0.9em; text-align: left; overflow-wrap: anywhere; }
  .prose td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; line-height: 1.3; }
  .prose td[data-label=""]::before { display: none; }
}
.module { margin-bottom: 40px; }
.intro { margin-bottom: 28px; }
.jump { margin: 0 0 22px; }
.introbox { margin-top: 40px; border-top: 1px solid var(--slate); padding-top: 8px; }
.rubric summary, .introbox > summary, .promptbox > summary, details.small > summary, .anchors > summary { list-style: none; }
.rubric summary::-webkit-details-marker, .introbox > summary::-webkit-details-marker, .promptbox > summary::-webkit-details-marker, details.small > summary::-webkit-details-marker, .anchors > summary::-webkit-details-marker { display: none; }
.rubric summary::before, .introbox > summary::before, .promptbox > summary::before, details.small > summary::before, .anchors > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 14px; border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(-45deg); transition: transform 0.15s; }
.rubric[open] > summary::before, .introbox[open] > summary::before, .promptbox[open] > summary::before, details.small[open] > summary::before, .anchors[open] > summary::before { transform: rotate(45deg); }
.introbox > summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 48px; display: flex; align-items: center; }
.introbox[open] > summary { margin-bottom: 12px; }
.introbox .intro { margin-bottom: 0; }
.taskprompt { margin: 18px 0 18px; font-size: 1.0625rem; }
.scorenote { font-size: 1rem; color: var(--ink); margin-top: 8px; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.login-brand { background: var(--navy); color: var(--white); padding: 28px var(--gutter) 30px; }
.login-title { font: 800 1.7rem/1.15 var(--font); letter-spacing: -0.02em; margin: 26px 0 8px; }
.login-lead { color: var(--slate); margin: 0; max-width: 28ch; }
.login-panel { flex: 1; padding: 28px var(--gutter) 48px; }
.login-form { max-width: 24rem; }
.login-form h1 { font-size: 1.6rem; margin-bottom: 8px; }
.login-form .btn { margin-top: 8px; }
.form-error { background: var(--error-wash); color: var(--error); border: 1px solid #F2B8B2; border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 16px; font-weight: 800; font-size: 0.95rem; }

/* ---------- isian ---------- */
.field { margin: 0 0 26px; }
.field-head { margin-bottom: 8px; }
.label { display: block; font-weight: 800; font-size: 1rem; color: var(--navy); margin: 0 0 4px; letter-spacing: -0.005em; }
.req { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.help { margin: 0; color: var(--muted); font-size: 0.925rem; max-width: 68ch; }
.help, .label, .choice-row .rich, .flag-label { white-space: pre-line; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error { margin: 6px 0 0; }
input[type="text"], input[type="url"], input[type="password"], textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); letter-spacing: 0.005em; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--slate); border-radius: 10px; padding: 11px 13px; min-height: 46px;
}
textarea { resize: vertical; display: block; }
input:focus, textarea:focus { outline: 3px solid rgba(40, 114, 250, 0.35); outline-offset: 0; border-color: var(--blue); }
.login-form .field { margin-bottom: 18px; }
.readonly { background: var(--slate-wash); border-radius: 10px; padding: 11px 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.readonly.empty { color: var(--muted); font-style: italic; }
.error-text { color: var(--error); font-weight: 800; font-size: 0.925rem; margin: 8px 0; }

.cards { display: grid; gap: 12px; align-items: start; }
.card { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 14px; }
.card.pad { padding: 18px; margin: 0 0 14px; }
.card.picked { border-color: var(--blue); background: #F7FAFF; }
.choice { display: block; cursor: pointer; }
.choice-row, .flag-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.choice input, .flag-row input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.flag-label { flex: 1; font-weight: 800; }
.flag-state { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.card.flag textarea { margin-top: 12px; }
.card.flag .readonly { margin-top: 12px; }
.media-box { margin-top: 12px; }
.media-box video, .media-box img { display: block; width: 100%; max-height: 360px; border-radius: var(--radius-sm); background: var(--navy); object-fit: contain; }
.media-box iframe { width: 100%; height: 220px; border: 1px solid var(--slate); border-radius: var(--radius-sm); background: var(--white); }

/* catatan video */
.vn-grid { display: grid; gap: 14px; }
/* Klip kritik mengikuti rasio aslinya (kebanyakan 9:16): tinggi hingga ~72vh, di tengah; tidak dipaksa 16:9. */
.vn-media video { display: block; width: 100%; min-height: 14rem; max-height: min(72vh, 46rem); object-fit: contain; background: var(--navy); border-radius: var(--radius); }
.mark { width: 100%; margin-top: 10px; font-variant-numeric: tabular-nums; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.note { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: start; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 10px; }
.note .note-text { grid-column: 1 / -1; min-height: 0; }
.note .readonly { grid-column: 1 / -1; }
.note .btn { justify-self: end; grid-column: 2; grid-row: 1; }
.timechip { font: 800 0.95rem var(--font); font-variant-numeric: tabular-nums; background: var(--blue-wash); color: var(--royal); border: 0; border-radius: 999px; min-height: 36px; min-width: 64px; padding: 0 14px; cursor: pointer; justify-self: start; }
.timechip:hover { background: var(--blue); color: var(--white); }
.notes .empty, .filelist .empty { color: var(--muted); padding: 6px 0; font-size: 0.95rem; }
.notes .empty { background: var(--slate-wash); border-radius: var(--radius); padding: 14px; }

/* berkas */
.filelist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.file { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 10px 12px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.file-name { font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.file-name .muted { font-weight: 400; }
.file-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.file-thumb { display: block; margin: 0 0 10px; max-width: 100%; }
a.file-thumb img { display: block; max-height: 200px; max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--slate); background: var(--slate-wash); object-fit: contain; }
video.file-thumb { width: 100%; max-width: 480px; max-height: 280px; background: var(--navy); border-radius: var(--radius-sm); }
.preview { margin-top: 10px; }
.preview iframe { width: 100%; height: 420px; border: 1px solid var(--slate); border-radius: var(--radius-sm); background: var(--white); }
.preview img { max-width: 100%; border-radius: var(--radius-sm); }
.dropzone { border: 2px dashed var(--slate); border-radius: var(--radius); padding: 18px 14px; text-align: center; background: var(--white); position: relative; }
.dropzone.over { border-color: var(--blue); background: var(--blue-wash); }
.dropzone p { margin: 6px 0 0; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop-label { display: block; }
.drop-label strong { color: var(--royal); text-decoration: underline; text-underline-offset: 0.18em; }
.uploads { display: grid; gap: 8px; margin-top: 8px; }
.upload-item { display: grid; gap: 4px; }
progress { width: 100%; height: 8px; accent-color: var(--blue); }

/* ---------- beranda & daftar ---------- */
.program { margin-top: 8px; }
.days { list-style: none; margin: 0; padding: 0; position: relative; }
.day { position: relative; padding: 0 0 26px 40px; }
.day::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: -2px; width: 2px; background: var(--slate); }
.day:last-child::before { display: none; }
.dot { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--slate); background: var(--paper); }
.day.open .dot { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px var(--blue-wash); }
.day-body h2 { font-size: 1.3rem; margin-bottom: 8px; }
.day-body h2 a { color: var(--navy); text-decoration: none; }
.day-body h2 a:hover { color: var(--blue-deep); }
.day.closed .day-body h2 { color: var(--muted); }
.deadline { margin: 0 0 6px; font-weight: 800; color: var(--royal); font-size: 0.95rem; }
.deadline.late { color: var(--error); }
.tasklist { list-style: none; padding: 0; margin: 14px 0 14px; display: grid; gap: 8px; }
.taskrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 56px; }
.taskrow:hover { border-color: var(--blue); }
.taskrow-title { font-weight: 800; color: var(--navy); grid-column: 1; }
.taskrow-meta { color: var(--muted); font-size: 0.875rem; grid-column: 1; grid-row: 2; }
.taskrow .chip { grid-column: 2; grid-row: 1 / span 2; }
.chip { display: inline-block; font: 800 0.8rem/1 var(--font); letter-spacing: 0; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.chip.idle { background: var(--slate-wash); color: var(--muted); }
.chip.doing { background: var(--blue-wash); color: var(--royal); }
.chip.done { background: var(--green-wash); color: var(--green-ink); }
.chip.locked { background: var(--warn-wash); color: var(--warn-ink); }
.resultcard { display: grid; gap: 4px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; margin: 8px 0 8px; }
.resultcard:hover { background: var(--royal); color: var(--white); }
.resultcard span { color: var(--slate); }
.daytitle { margin-bottom: 14px; }
.tasks { border-top: 1px solid var(--slate); padding-top: 28px; }

.notice { padding: 40px 0; max-width: 34rem; }
.notice h1 { margin-bottom: 12px; }
.notice .btn { margin-top: 8px; }

/* ---------- tugas ---------- */
/* Bilah bawah tetap (semua lebar, hanya selama tugas terbuka): simpan di kiri, waktu di kanan. */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--slate); backdrop-filter: blur(6px); padding-bottom: env(safe-area-inset-bottom); }
.taskbar-in { max-width: 80rem; margin: 0 auto; padding: 6px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.task.has-bar { padding-bottom: calc(var(--bar-h) + 20px + env(safe-area-inset-bottom)); }
html:has(.task.has-bar) { scroll-padding-bottom: calc(var(--bar-h) + 24px); }
.statuswrap { display: grid; min-width: 0; }
.savestatus { font-size: 0.9rem; color: var(--muted); }
.savestatus.ok { color: var(--green-ink); font-weight: 800; }
.savestatus.err { color: var(--error); font-weight: 800; }
.status-detail { font-size: 0.8rem; color: var(--error); overflow-wrap: anywhere; }
.timer { font: 800 1.35rem/1 var(--font); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; background: var(--navy); color: var(--white); padding: 9px 14px; border-radius: 10px; white-space: nowrap; }
.timer.urgent { background: var(--error); }
.bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.dlchip { font: 800 0.85rem/1 var(--font); font-variant-numeric: tabular-nums; background: var(--slate-wash); color: var(--navy); padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.dlchip.low { background: var(--warn-wash); color: var(--warn-ink); }
.dlchip.urgent { background: var(--error); color: var(--white); }
.upload-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-wash); color: var(--warn-ink); font-weight: 700; }
@media (max-width: 420px) { .dlchip { font-size: 0.75rem; padding: 7px 8px; } .taskbar-in { gap: 8px; } }

.metachips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.metachips li { background: var(--white); border: 1px solid var(--slate); border-radius: 999px; padding: 6px 12px; font-size: 0.875rem; font-weight: 800; color: var(--navy); }
.metachips li.noai { background: var(--navy); border-color: var(--navy); color: var(--white); }
.rubric { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 0 16px; margin: 0 0 32px; }
.rubric summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 48px; display: flex; align-items: center; }
.rubric[open] summary { border-bottom: 1px solid var(--slate-wash); margin-bottom: 12px; }
.rubric-dim { margin: 0 0 16px; }
.rubric-dim h4 { margin-bottom: 4px; }
.rubric ol { margin: 0; padding-left: 1.4em; color: var(--ink); font-size: 0.95rem; }
.rubric li::marker { font-weight: 800; color: var(--royal); }

.step { margin: 0 0 40px; padding: 22px 16px 8px; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); }
.step.ro { background: #FAFBFC; }
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.step-head h2 { font-size: 1.3rem; }
.step > .prose { margin-bottom: 22px; }
.step-foot { padding: 4px 0 18px; }
.confirm { background: var(--blue-wash); border-radius: var(--radius); padding: 14px; }
.confirm p { margin: 0 0 12px; font-weight: 800; color: var(--navy); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.honesty { display: flex; gap: 12px; align-items: flex-start; background: var(--slate-wash); border-radius: var(--radius); padding: 14px; margin: 4px 0 16px; cursor: pointer; font-weight: 800; color: var(--navy); }
.honesty input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin-top: 1px; }
.step .error-text { margin: 0 0 12px; }

.startcard { background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 22px 18px; margin: 8px 0 40px; }
.startcard h2 { margin-bottom: 12px; }
.startcard ul { padding-left: 1.3em; margin: 0 0 22px; }
.startcard li { margin: 0.5em 0; }
.startcard li::marker { color: var(--blue); }

.banner { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 24px; display: grid; gap: 2px; }
.banner strong { font-size: 1.1rem; }
.banner.ok { background: var(--green-wash); color: var(--green-ink); }
.banner.warn { background: var(--warn-wash); color: var(--warn-ink); }
.pembahasan, .scoreblock { margin: 0 0 40px; padding-top: 28px; border-top: 1px solid var(--slate); }
.pembahasan h2, .scoreblock h2 { margin-bottom: 14px; }
.pembahasan .prose h2 { font-size: 1.15rem; color: var(--royal); margin-top: 1.6em; }
.pembahasan .prose > h2:first-child { margin-top: 0; }

/* ---------- hasil / meter ---------- */
.dimlist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; }
.dimlist li { display: grid; grid-template-columns: 1fr auto 2.6rem; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--slate-wash); }
.dimlist.compact { margin-bottom: 12px; }
.dimlist.compact li { padding: 6px 0; }
.dim-name { font-weight: 800; color: var(--navy); }
.dim-num { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 22px; height: 10px; border-radius: 3px; background: var(--slate); }
.meter i.on { background: var(--blue); }
.res-tasks { margin-top: 32px; }
.card h3 a { color: var(--navy); text-decoration: none; }

/* ---------- penilai (admin dan direksi) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.staff { max-width: 76rem; }
.staffnav { display: flex; gap: 4px; margin: -4px 0 22px; padding: 4px; background: var(--white); border: 1px solid var(--slate); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.staffnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; color: var(--navy); font-weight: 800; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.staffnav a:hover { background: var(--blue-wash); }
.staffnav a.on { background: var(--navy); color: var(--white); }
.pagehead { margin: 0 0 28px; }
.pagehead h1 { margin-bottom: 10px; }
.pagehead .lead { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; margin: 0; }
.metaline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.block { margin: 0 0 44px; }
.block > h2 { margin-bottom: 8px; }
.block > .help { margin-bottom: 16px; }
.chip.role { background: var(--navy); color: var(--white); }
.chiprow { margin: 0 0 12px; }
.panel { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 18px 16px 16px; margin: 0 0 24px; }
.panel h2 { margin-bottom: 4px; }
.panel h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.panel-head p { margin: 2px 0 0; }
.panel.draft { border-color: var(--blue); background: #F7FAFF; }
.draftbox { background: #F7FAFF; border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; }
.draftbox p:last-child { margin-bottom: 0; }
.formbox { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.formbox .field { margin-bottom: 16px; }
select { width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--slate); border-radius: 10px; padding: 10px 12px; min-height: 46px; }
input[type="datetime-local"], input[type="text"] { font-family: var(--font); }
input[type="datetime-local"] { width: 100%; max-width: 20rem; font-size: 1rem; background: var(--white); border: 1.5px solid var(--slate); border-radius: 10px; padding: 10px 12px; min-height: 46px; color: var(--ink); }
.savestatus:empty { display: none; }
.formbox .savestatus, .panel .savestatus { margin: 10px 0 0; }

/* angka dan batang */
.sbar { display: block; height: 8px; border-radius: 4px; background: var(--slate); overflow: hidden; min-width: 3rem; }
.sbar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.sbar.top i { background: var(--green); }
.sbar.wide { width: 100%; }
.num { display: grid; gap: 5px; text-decoration: none; color: var(--navy); border-radius: 8px; padding: 6px 8px; margin: -6px -8px; }
.num:hover { background: var(--blue-wash); color: var(--navy); }
.num-v { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.35rem; line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.dimlist .num-v, .dimrow .num-v { font-size: 1.05rem; }
.dimrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, 7rem) 2.6rem; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--slate-wash); }
.dimrow .num { display: block; text-align: right; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; margin: -6px -8px -6px 0; padding: 6px 8px; }
.dimrow .num-v, .dimrow > .muted { text-align: right; }
.dimrow.tall .rubric-line { grid-column: 1 / -1; margin: 0; color: var(--ink); }
.dimlist.compact .dimrow { padding: 7px 0; }
.dimrow .dim-name { font-weight: 400; color: var(--ink); }

/* papan: tabel (layar lebar) dan kartu (ponsel) */
.matrix-wrap { display: none; }
.pcards { display: grid; gap: 14px; }
.pcard { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 16px; }
.pcard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.pcard-head h3 { font-size: 1.25rem; }
.pcard-head h3 a { color: var(--navy); text-decoration: none; }
.pcard-sum { color: var(--ink); font-size: 0.95rem; margin: 0 0 10px; }
.pcard-learn { margin: 14px 0 10px; }
.pcard .btn { margin-top: 4px; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.matrix th, .matrix td { padding: 14px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--slate-wash); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { background: var(--slate-wash); font-size: 0.8rem; font-weight: 800; color: var(--navy); vertical-align: bottom; line-height: 1.25; }
.matrix .dimcol { width: 5.6rem; }
.matrix .dim-id { display: block; font-size: 1.1rem; color: var(--royal); }
.matrix .dim-title { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.matrix tbody th { font-weight: 800; min-width: 8.5rem; }
.matrix tbody th .small { display: block; font-weight: 400; }
.pname { color: var(--navy); font-size: 1.05rem; text-decoration: none; }
.pname:hover { color: var(--blue-deep); text-decoration: underline; }
.cell .num { width: 4.4rem; }
.cell.empty { color: var(--muted); }
.learncell { min-width: 15.5rem; }
.learn { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.matrix .learn { flex-wrap: nowrap; }
.pcard-none { margin: 0 0 12px; }
.learn-col { display: grid; gap: 4px; }
.learn-label { font-size: 0.8rem; color: var(--muted); font-weight: 800; }
.lpart { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; align-items: baseline; min-width: 5.2rem; text-decoration: none; color: var(--navy); border-radius: 8px; padding: 4px 6px; margin: -4px -6px; }
.lpart:hover { background: var(--blue-wash); color: var(--navy); }
.lpart .sbar { grid-column: 1 / -1; margin-top: 5px; }
.lpart .lunapp { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); font-weight: 800; margin-top: 3px; }
.lnum { font-weight: 800; font-size: 1.35rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ltot { font-size: 0.8rem; color: var(--muted); }
.lpart.empty { color: var(--muted); }
.arrow { color: var(--royal); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.delta { font: 800 0.8rem/1 var(--font); padding: 6px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.delta.up { background: var(--green-wash); color: var(--green-ink); }
.delta.down { background: var(--error-wash); color: var(--error); }
.delta.flat { background: var(--slate-wash); color: var(--muted); }

/* peta peran */
.rolemap { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.lane { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 14px 16px; }
.lane h3 { font-size: 1rem; margin-bottom: 10px; color: var(--royal); }
.lane.no h3 { color: var(--muted); }
.lane.pending { background: transparent; border-style: dashed; }
.lane.pending h3 { color: var(--muted); }
.lane-people { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--blue-wash); color: var(--royal); font-weight: 800; text-decoration: none; }
.person:hover { background: var(--blue); color: var(--white); }
.lane p { margin: 0; }

/* kemajuan */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 14px; font-size: 0.875rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.progress { display: grid; gap: 10px; }
.prow { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 10px 20px; }
.prow-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prow-name a { font-weight: 800; color: var(--navy); text-decoration: none; }
.prow-days { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pday { display: grid; gap: 4px; }
.pday-label { font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.pday-cells { display: flex; flex-wrap: wrap; gap: 6px; }
.pcell { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; font: 800 1.05rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; }
.pcell.sample { width: 26px; height: 26px; border-radius: 7px; font-size: 0.85rem; }
.pcell.idle { background: var(--slate-wash); color: var(--muted); }
.pcell.doing { background: var(--blue-wash); color: var(--royal); border-color: var(--blue); }
.pcell.done { background: var(--green); color: var(--white); }
.pcell.locked { background: var(--warn-wash); color: var(--warn-ink); border-color: #E0B24A; }
a.pcell:hover { box-shadow: 0 0 0 3px rgba(40, 114, 250, 0.35); }

/* halaman peserta */
.dimdets { display: grid; gap: 8px; }
.dimdet { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 0 14px; }
.dimdet > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, 8rem) 3rem; gap: 12px; align-items: center; min-height: 56px; cursor: pointer; list-style: none; }
.dimdet > summary::-webkit-details-marker { display: none; }
.dimdet > summary .num-v { text-align: right; }
.dimdet[open] > summary { border-bottom: 1px solid var(--slate-wash); }
.evidence { list-style: none; padding: 0; margin: 0; }
.evidence li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--slate-wash); }
.evidence li:last-child { border-bottom: 0; }
.evidence a { font-weight: 800; }
.dimdet p { margin: 12px 0; }
.scorechips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.scorechip { font: 800 0.8rem/1 var(--font); font-variant-numeric: tabular-nums; background: var(--blue-wash); color: var(--royal); padding: 6px 9px; border-radius: 999px; }
.taskrow.rev { grid-template-columns: 1fr auto; }
.taskrow.static { color: var(--muted); background: transparent; border-style: dashed; }
.taskrow .scorechips, .taskrow > .small { grid-column: 1; grid-row: 3; margin-top: 4px; }
.comments { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.comment { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px; }
.comment p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-by { font-size: 0.95rem; }
.prose.plain p { margin-bottom: 0.9em; }

/* tinjau */
.jumpbar { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; }
.linklike { font: 800 0.95rem var(--font); background: none; border: 0; color: var(--royal); padding: 8px 0; min-height: 40px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.promptbox { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 0 16px; margin: 0 0 28px; }
.promptbox > summary, details.small > summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
details.small > summary { min-height: 36px; font-size: 0.9rem; }
.promptbox[open] { padding-bottom: 14px; }
.honesty-note { background: var(--slate-wash); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 800; color: var(--navy); margin: 0 0 18px; }
.step.ro .step-head h3 { font-size: 1.25rem; }
.step.ro { margin-bottom: 24px; }
.step.ro .field { margin-bottom: 22px; }
.quote { margin: 8px 0; padding: 8px 12px; background: var(--white); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem; }
.panel.draft .quote { background: var(--white); }
.quote p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote footer { color: var(--muted); font-size: 0.875rem; }
.evgroup { margin: 0 0 12px; }
.evgroup h4 { color: var(--royal); margin-bottom: 2px; }
.draft-summary { margin: 14px 0 0; }
.draft-summary p:last-child { margin-bottom: 0; }
.matchlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.matchlist li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.matchlist .quote { grid-column: 2; }
.mark { font: 800 0.75rem/1 var(--font); padding: 6px 9px; border-radius: 999px; white-space: nowrap; margin-top: 2px; }
.mark.yes { background: var(--green-wash); color: var(--green-ink); }
.mark.no { background: var(--slate-wash); color: var(--muted); }
.badge { display: inline-block; font: 800 0.75rem/1 var(--font); padding: 6px 9px; border-radius: 999px; background: var(--slate-wash); color: var(--navy); white-space: nowrap; }
.badge.claude { background: #EDE7FF; color: #4B2FA8; }
.badge.warn { background: var(--warn-wash); color: var(--warn-ink); }
.badge.ok { background: var(--green-wash); color: var(--green-ink); }
.badge.edit { background: var(--blue-wash); color: var(--royal); }
.rubric-line { margin: 8px 0 0; font-size: 0.95rem; }

/* segmented 1..4 */
.dimforms { display: grid; gap: 22px; margin: 6px 0 22px; }
.dimform-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dimform-head .label { margin: 0; }
.seg { display: inline-grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 18rem; border: 1.5px solid var(--slate); border-radius: 12px; overflow: hidden; background: var(--white); }
.seg button { min-height: 50px; border: 0; border-right: 1.5px solid var(--slate); background: transparent; font: 800 1.2rem var(--font); color: var(--navy); cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--blue-wash); }
.seg button[aria-checked="true"] { background: var(--navy); color: var(--white); }
.seg button:focus-visible { outline-offset: -3px; border-radius: 0; }
ol.rub { margin: 6px 0 4px; padding-left: 1.4em; }
ol.rub li { margin: 4px 0; }

/* butir kunci dalam formulir */
.keylist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.keyitem { border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px; background: #FBFCFD; }
.keyitem-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 8px; }
.keyitem-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.keytext { margin: 0 0 10px; }
.keyitem input[type="text"] { font-size: 0.95rem; }
.keyitem details { margin-top: 6px; }
.extras { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.extra { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.extra input[type="text"] { grid-column: 1 / -1; }
.savebar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: rgba(255, 255, 255, 0.96); padding: 12px 0 4px; margin-top: 20px; border-top: 1px solid var(--slate); backdrop-filter: blur(6px); }
.savebar .savestatus { margin: 0; }

/* sakelar */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--slate); transition: background-color 0.15s; }
.track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform 0.15s; box-shadow: 0 1px 2px rgba(2, 3, 11, 0.3); }
.switch input:checked + .track { background: var(--green-ink); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track, .toggle:focus-visible .track { outline: 3px solid var(--blue); outline-offset: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; min-height: 44px; font: 800 0.95rem var(--font); color: var(--navy); cursor: pointer; }
.toggle[aria-checked="true"] .track { background: var(--green-ink); }
.toggle[aria-checked="true"] .track::after { transform: translateX(18px); }

/* jangkar */
.anchors { padding: 0 16px; }
.anchors > summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 52px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.anchors[open] { padding-bottom: 16px; }
.anchor-grid { display: grid; gap: 18px; margin-top: 12px; }
.anchor h4 { margin-bottom: 8px; }
.anchornotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.anchornotes li { display: flex; gap: 10px; align-items: baseline; }
.timechip.static { cursor: default; flex: none; min-width: 52px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.timechip.static:hover { background: var(--blue-wash); color: var(--royal); }

/* kunci jawaban */
/* Target gulir setelah Kirim bagian: beri ruang untuk bilah kbar yang menempel di atas. */
.step { scroll-margin-top: 16px; }
.kbar { position: sticky; top: 0; z-index: 12; background: rgba(243, 244, 246, 0.96); backdrop-filter: blur(6px); margin: 0 calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter); border-bottom: 1px solid var(--slate); }
.kbar-in { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 10px 0; max-width: 76rem; margin: 0 auto; }
.kbar-in .kcount { margin: 0; font-size: 1.05rem; white-space: nowrap; }
.kbar-in .kcount strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kbar-in .check { grid-column: 1 / -1; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
.kbar-in .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.kday { margin: 36px 0 14px; font-size: 1.3rem; }
.kday:first-child { margin-top: 0; }
.ktask { margin: 0 0 28px; }
.ktask-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.ktask-head h3 { font-size: 1.1rem; color: var(--royal); }
.kitems { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kitem { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px; }
.kitem.approved { border-color: var(--green); box-shadow: inset 5px 0 0 var(--green); }
.kitem:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.kitem-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.ktext { margin: 0 0 10px; }
.kactions { display: flex; flex-wrap: wrap; gap: 8px; }
.kactions .approve { min-width: 7.5rem; }
.btn.secondary.on { background: var(--green-wash); color: var(--green-ink); border-color: var(--green); }
.kedit { margin: 0 0 6px; display: grid; gap: 10px; }
.kitem details { margin-top: 6px; }
.kitem .error-text { margin: 8px 0 0; }

/* pengaturan (daftar periksa) */
.pstep > h2 { display: flex; align-items: center; gap: 12px; }
.pstep-n { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 1.05rem; font-weight: 800; }
.pstep > .help { margin: 6px 0 16px; }
.setting { margin: 0 0 28px; }
.setting > h3 { margin-bottom: 8px; }
.setting > .help { margin-bottom: 12px; }
.setting code { white-space: nowrap; }
.advanced { margin-top: 8px; }
.daygrid { display: grid; gap: 14px; }
.daycard { margin: 0; }
.daycard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.daycard .field { margin: 12px 0; }
.daycard .savestatus { margin: 10px 0 0; }
.confirm { margin-top: 12px; }
.userlist { overflow-x: auto; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); }
.users { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.users th, .users td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--slate-wash); }
.users thead th { background: var(--slate-wash); font-size: 0.85rem; }
.users tbody tr:last-child > * { border-bottom: 0; }
.users { min-width: 520px; }
.users td.acts { white-space: nowrap; }
.users .row { flex-wrap: nowrap; }
.users .danger { color: var(--error); }
.users .danger:hover { background: var(--error-wash); color: var(--error); }
@media (max-width: 600px) {
  .users { min-width: 0; }
  .users thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .users tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--slate-wash); }
  .users tbody tr:last-child { border-bottom: 0; }
  .users th, .users td { display: block; padding: 0; border: 0; }
  .users tbody th { grid-column: 1; }
  .users td:nth-child(2) { grid-column: 1; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
  .users td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: start; font-size: 0.9rem; }
  .users td.acts { grid-column: 1 / -1; margin-top: 8px; }
}
.userlist + .savestatus { margin: 8px 0 0; }
.setting .formbox { margin-top: 16px; max-width: 34rem; }
.setting .formbox h4 { margin: 0 0 12px; }
.pwslot:not(:empty) { margin-bottom: 16px; display: grid; gap: 12px; }
.pwbox { background: var(--blue-wash); border: 2px solid var(--blue); border-radius: var(--radius); padding: 16px; max-width: 34rem; }
.pwbox:focus { outline: 3px solid rgba(40, 114, 250, 0.35); outline-offset: 2px; }
.pwtitle { margin: 0 0 10px; font-weight: 800; color: var(--navy); }
.pwbox input.pwfield { width: 100%; margin: 0 0 12px; font: 700 1.25rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.06em; background: var(--white); border: 1.5px solid var(--blue); border-radius: 10px; padding: 10px 13px; min-height: 48px; color: var(--ink); }
.pwbox textarea.pwmessage { margin: 12px 0 0; font: 400 0.9rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pwbox .savestatus { margin: 10px 0 0; }

/* ---------- materi (admin dan direksi) ---------- */
.matbox { margin: 0 0 28px; }
.matbox > summary { cursor: pointer; }
.matday { margin-top: 36px; }
.matday > h2 { margin-bottom: 12px; }
.matday .matbox { margin-top: 0; margin-bottom: 8px; }
.mat-sub { font-size: 1.05rem; margin: 22px 0 0; color: var(--royal); }
.taskrow.matrow { grid-template-columns: 1fr; gap: 8px; }
.matrow .taskrow-title { grid-column: 1; }
.mchips { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { display: inline-block; font: 800 0.78rem/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--slate-wash); color: var(--navy); white-space: nowrap; }
.mchip.hard { background: var(--warn-wash); color: var(--warn-ink); }
.mchip.noai { background: var(--navy); color: var(--white); }
.mchip.draft { background: #EDE7FF; color: #4B2FA8; }
.previewnote { display: grid; gap: 2px; background: var(--blue-wash); color: var(--royal); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; font-size: 0.95rem; }
.previewnote strong { color: var(--navy); }
.matfiles { margin-top: 6px; }
.assessor { margin: 48px 0 32px; border-top: 4px solid var(--navy); padding-top: 18px; }
.assessor-head { margin-bottom: 20px; }
.assessor-kicker { display: inline-block; margin: 0 0 4px; background: var(--navy); color: var(--white); font: 800 0.85rem/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.keyitem-top .small { flex-basis: 100%; }
.pager { display: grid; gap: 12px; margin: 40px 0 0; }
.pager-link { display: grid; gap: 2px; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--navy); min-height: 56px; }
.pager-link:hover { border-color: var(--blue); }
.pager-link.next { text-align: right; }
.pager-gap { display: none; }
@media (max-width: 719px) { .staffnav { gap: 2px; flex-wrap: wrap; } .staffnav a { padding: 0 9px; font-size: 0.9rem; } }
@media (min-width: 720px) {
  .taskrow.matrow { grid-template-columns: 1fr auto; align-items: center; }
  .mchips { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-gap { display: block; }
}

/* ---------- layar lebar ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  h1 { font-size: 2.4rem; }
  .who-role { display: inline; }
  .who-name { max-width: 18rem; }
  .wrap { padding-top: 40px; }
  .step { padding: 28px 28px 12px; }
  .startcard { padding: 28px; }
  .btn.big { width: auto; }
  .login { flex-direction: row; }
  .login-brand { flex: 0 0 min(42%, 30rem); padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between; }
  .login-title { font-size: 2.2rem; margin-top: auto; }
  .login-lead { font-size: 1.1rem; margin-top: 8px; margin-bottom: 8px; }
  .login-panel { display: grid; align-content: center; justify-items: center; padding: 48px; }
  .login-form { width: 100%; }
  .taskrow { grid-template-columns: 1fr auto auto; }
  .taskrow-title { grid-column: 1; }
  .taskrow-meta { grid-column: 2; grid-row: 1; }
  .taskrow .chip { grid-column: 3; grid-row: 1; }
}
@media (min-width: 720px) {
  .pcards { grid-template-columns: 1fr 1fr; }
  .daygrid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 24px 24px 20px; }
  .anchor-grid { grid-template-columns: 1fr 1fr; }
  .kbar-in { grid-template-columns: auto 14rem 1fr; }
  .kbar-in .check { grid-column: auto; justify-self: end; }
  .dimforms { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
}
@media (min-width: 1000px) {
  .matrix-wrap { display: block; }
  .pcards { display: none; }
  .prow { grid-template-columns: 11rem 1fr; align-items: center; }
  .prow-name { display: grid; gap: 0; }
}
@media (min-width: 960px) {
  .vn-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .vn-media { position: sticky; top: 76px; }
  .note { grid-template-columns: auto 1fr auto; }
  .note .note-text { grid-column: 2; grid-row: 1; }
  .note .readonly { grid-column: 2; }
  .note .btn { grid-column: 3; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Peserta v4 (22 Okt): satu halaman, satu pekerjaan. Halaman putih, garis tipis, satu elemen menonjol per halaman
   (kartu "Sekarang" di beranda, tombol Kirim di blok). Tanpa tab, tanpa chip, tanpa kartu bersarang.
   ===================================================================== */
:root { --line: #E5E7EB; --quiet: #F6F7F9; }
body:has(.wrap.home), body:has(.task), body:has(.wrap.blockpage) { background: var(--white); }
.fold > summary { list-style: none; cursor: pointer; font-weight: 800; color: var(--navy); min-height: 48px; display: flex; align-items: center; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 14px; border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(-45deg); transition: transform 0.15s; }
.fold[open] > summary::before { transform: rotate(45deg); }
.rowst { font-size: 0.85rem; font-weight: 800; white-space: nowrap; }
.rowst.done { color: var(--green-ink); }
.rowst.locked, .rowst.doing { color: var(--muted); font-weight: 400; }
.rowst.late { color: var(--warn-ink); }

/* ---------- beranda: Hari ini ---------- */
.wrap.home { max-width: 44rem; padding-top: 22px; padding-bottom: 56px; }
.home-head { margin: 0 0 18px; }
.home-head h1 { font-size: 1.6rem; margin-bottom: 6px; }
.home-rules { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.resultlink { display: block; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--blue-wash); color: var(--royal); font-weight: 800; text-decoration: none; }
.resultlink:hover { background: #D9E6FD; }
.nowcard { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0 0 28px; }
.nowcard.quiet { background: var(--quiet); color: var(--ink); }
.nowcard h2 { color: var(--white); font-size: 1.45rem; line-height: 1.2; margin: 2px 0 6px; }
.nowcard.quiet h2 { color: var(--navy); }
.now-k { margin: 0; font-size: 0.95rem; font-weight: 800; color: #8FB4FF; }
.nowcard.quiet .now-k { color: var(--blue-deep); }
.now-sub { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.45; }
.nowcard.quiet .now-sub { color: var(--muted); }
.now-act { margin: 14px 0 0; }
.sched { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.sched-day { display: flex; align-items: baseline; gap: 4px; padding: 16px 0 6px; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.sched-day .muted { font-weight: 400; }
.sched-item { border-bottom: 1px solid var(--line); }
.sched-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 4px 8px 0; text-decoration: none; color: var(--ink); }
a.sched-row:hover .sched-name { color: var(--blue-deep); }
.sched-time { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.sched-body { display: grid; min-width: 0; }
.sched-name { font-weight: 800; color: var(--navy); line-height: 1.25; }
.sched-note { font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.sched-item.break .sched-row { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.sched-item.break .sched-name, .sched-item.info .sched-name { font-weight: 400; color: var(--muted); }
.sched-item.past .sched-name { color: var(--muted); font-weight: 400; }
.sched-foot { margin: -18px 0 28px; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.sched-foot:empty { display: none; }
.rowst.wait { color: var(--muted); font-weight: 400; }
.sched-item.now { box-shadow: inset 4px 0 0 var(--blue); }
.sched-item.now .sched-row { padding-left: 12px; }
.sched-item.now .sched-time { color: var(--royal); font-weight: 800; }
.folds { border-top: 1px solid var(--line); }
.folds.top { margin: 0 0 18px; }
.home-hint { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.folds .fold { border-bottom: 1px solid var(--line); }
.folds .fold[open] { padding-bottom: 12px; }
.folds .prose { font-size: 1rem; }
.folds .prose h2 { font-size: 1.15rem; margin-top: 1.4em; }
.folds .intro, .folds .module { margin-bottom: 0; }
.folds hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.rule-list { margin: 0; padding: 0 0 0 1.15em; font-size: 0.95rem; line-height: 1.5; }
.rule-list li { margin: 0 0 0.5em; padding-left: 0.2em; }
.rule-list li::marker { color: var(--blue); }

/* ---------- halaman blok = halaman tugas ---------- */
.wrap.blockpage { padding-top: 16px; padding-bottom: 48px; }
.back { display: inline-flex; align-items: center; min-height: 40px; font-weight: 800; text-decoration: none; margin: 0 0 2px -2px; }
.block-head { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.block-head h1 { font-size: 1.6rem; margin: 0 0 6px; }
.block-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.block-meta { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.block-meta .noai { display: inline-block; background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.8rem; line-height: 1; padding: 6px 9px; border-radius: 999px; vertical-align: 1px; }
.work-jump { margin-left: auto; font-size: 0.9rem; }
.wrap.tl { padding-top: 12px; padding-bottom: 24px; }
.tl-cols { display: grid; gap: 28px; min-width: 0; }
.tl-brief, .work { min-width: 0; }
.brief-title { font-size: 1.25rem; margin: 0 0 8px; }
.task .taskprompt { margin: 0 0 16px; font-size: 1rem; line-height: 1.55; max-width: none; }
.task .taskprompt p:last-child { margin-bottom: 0; }
.task .taskprompt ul { margin-bottom: 0.6em; }
.brief-h { font-size: 1rem; margin: 0 0 8px; }
.brief-h .muted { font-weight: 400; }
.mats { margin: 0 0 16px; }
.matlist { list-style: none; margin: 0; padding: 0; }
.matrow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.matlist > .matrow:last-child { border-bottom: 1px solid var(--line); }
.matrow .mat-thumb { width: 48px; height: 48px; aspect-ratio: auto; border-radius: 6px; border: 1px solid var(--line); }
.mat-body { display: grid; min-width: 0; }
.mat-name { font-size: 0.92rem; line-height: 1.3; overflow-wrap: anywhere; color: var(--ink); }
.mat-acts { display: flex; gap: 16px; font-size: 0.9rem; font-weight: 800; }
.mat-acts a, .linkbtn { display: inline-flex; align-items: center; min-height: 32px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--royal); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; cursor: pointer; }
.linkbtn:hover { color: var(--blue-deep); }
.matgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.mat { display: grid; gap: 4px; align-content: start; min-width: 0; }
.mat-label { font-size: 0.78rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mat-thumb { position: relative; display: block; aspect-ratio: 1; background: var(--slate-wash); border: 1.5px solid var(--slate); border-radius: var(--radius-sm); overflow: hidden; }
.mat-thumb:hover { border-color: var(--blue); }
.mat-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mat-glyph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 0.8rem var(--font); letter-spacing: 0.06em; color: var(--royal); }
.mat-play { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 25, 47, 0.82); }
.mat-play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--white); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.task .rubric { margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.task .rubric summary { min-height: 44px; }
.task .rubric[open] summary { border-bottom: 0; margin-bottom: 4px; }
/* Pelajari: pelipat berisi karusel; gambar lebih pendek supaya kartu tidak menutupi tugasnya */
.learn { margin: 4px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.learn > summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.learn > summary::-webkit-details-marker { display: none; }
.learn > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(-45deg); transition: transform 0.15s; }
.learn[open] > summary::before { transform: rotate(45deg); }
.learn-n { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.learn[open] { padding-bottom: 16px; }
.task .cz { max-width: none; margin-top: 0; }
.task .cz-card { flex-direction: column; }
.task .cz-media { width: auto; max-width: none; aspect-ratio: auto; height: clamp(12rem, 38dvh, 22rem); }
.task .cz-card .cc-body { padding: 12px 14px 14px; }
.task .cz-viewport { border-color: var(--line); }
/* Kerjakan: bagian dipisah garis, bukan kartu */
.work-h { font-size: 1.25rem; margin: 0 0 12px; }
.task .step { margin: 0 0 8px; padding: 18px 0 8px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.task .step.ro { background: transparent; }
.task .step-head { margin-bottom: 8px; }
.task .step-head h2 { font-size: 1.1rem; }
.task .step > .prose { margin-bottom: 16px; font-size: 1rem; line-height: 1.55; }
.task .step > .prose ol, .task .step > .prose ul { margin-bottom: 0.9em; }
.task .field { margin-bottom: 22px; }
.task .label { font-size: 0.95rem; }
.task .help { font-size: 0.9rem; }
.step-wait { margin: 0 0 18px; font-weight: 800; }
.demo-reset { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; font-size: 0.92rem; }
.demo-reset .linkbtn { color: var(--muted); }
.step-later { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.step-later strong { color: var(--muted); }
.stepprompt { margin: 0 0 14px; }
.stepprompt[open] > summary { margin-bottom: 4px; }
.stepprompt > summary { cursor: pointer; font-weight: 800; color: var(--royal); min-height: 40px; display: flex; align-items: center; font-size: 0.95rem; }
.stepprompt > summary { list-style: none; }
.stepprompt > summary::-webkit-details-marker { display: none; }
.stepprompt > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 12px; border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(-45deg); transition: transform 0.15s; }
.stepprompt[open] > summary::before { transform: rotate(45deg); }
.task .startcard { margin: 0 0 16px; padding: 18px 18px 20px; background: var(--quiet); border: 0; }
.task .startcard h2 { font-size: 1.2rem; }
.task .banner { margin-bottom: 16px; }
.task .pembahasan, .task .scoreblock { padding-top: 18px; margin-bottom: 24px; border-color: var(--line); }
.task .honesty { background: var(--quiet); }
.task .readonly { background: var(--quiet); }
.task .card { border-color: var(--line); }
.task .note, .task .file, .task .notes .empty { border-color: var(--line); }
.task .dropzone { border-color: var(--slate); background: var(--white); }

/* ---------- isian: log percobaan ---------- */
.iter { container-type: inline-size; }
.iter-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.iter-row { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 12px 14px 14px; }
.task .step .iter-row { background: var(--quiet); border: 0; }
.iter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.iter-title { font-size: 0.95rem; color: var(--royal); }
.iter-grid { display: grid; gap: 10px; grid-template-areas: "tool" "prompt" "result" "note"; }
.iter-tool { grid-area: tool; }
.iter-prompt { grid-area: prompt; }
.iter-result { grid-area: result; }
.iter-note { grid-area: note; }
.iter-grid .label.small { font-size: 0.82rem; margin-bottom: 3px; color: var(--muted); }
.iter-grid > div { min-width: 0; }
.iter-tool select { width: 100%; max-width: 16rem; }
select { font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--slate); border-radius: 10px; padding: 9px 12px; min-height: 46px; }
select:focus { outline: 3px solid rgba(40, 114, 250, 0.35); outline-offset: 0; border-color: var(--blue); }
.iter-prompt textarea { min-height: 96px; }
.iter-note textarea { min-height: 56px; }
.iter-media { display: grid; gap: 6px; justify-items: start; }
.iter-media .file-thumb { margin: 0; }
.iter-media .btn.quiet { padding-left: 0; }
.iter-media a.file-thumb img { max-height: 160px; }
.iter-media video.file-thumb { max-height: 200px; }
.iter-drop { width: 100%; padding: 14px 10px; }
.iter-drop p { margin: 0; }
.iter-fname { margin: 0; overflow-wrap: anywhere; }
.iter-hint { margin: 0; font-size: 0.78rem; }
.iter-ro { padding: 8px 12px; }
.iter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn.danger, .btn.quiet.danger { color: var(--error); background: var(--error-wash); }
@container (min-width: 560px) {
  .iter-grid { grid-template-columns: minmax(0, 1fr) 14rem; grid-template-areas: "tool result" "prompt result" "note result"; column-gap: 16px; }
}


/* ---------- layar lebar ---------- */
@media (min-width: 720px) {
  .wrap.home { padding-top: 32px; }
  .home-head h1 { font-size: 1.9rem; }
  .sched-row { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
  .nowcard { padding: 22px 26px 24px; }
  .nowcard h2 { font-size: 1.7rem; }
  .block-head h1 { font-size: 2rem; }
}
@media (min-width: 1024px) {
  .wrap.tl { padding-top: 24px; }
  .work-jump { display: none; }
  .tl-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; }
  .tl-brief { position: sticky; top: 16px; max-height: calc(100vh - 32px - var(--bar-h)); max-height: calc(100dvh - 32px - var(--bar-h)); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
  .task:not(.has-bar) .tl-brief { max-height: calc(100dvh - 32px); }
  .work { padding-left: 40px; border-left: 1px solid var(--line); }
}

/* =====================================================================
   Penilai v2: papan lebar, halaman peserta ringkas, tinjau dua kolom, materi per blok
   ===================================================================== */
.wrap.staff { max-width: 90rem; }
body:has(.wrap.staff) .topbar-in { max-width: 90rem; }
.dchips { display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.dchip { font: 800 0.75rem/1 var(--font); font-variant-numeric: tabular-nums; background: var(--blue-wash); color: var(--royal); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.dchip.scored { background: var(--navy); color: var(--white); }

/* ---------- papan: kemajuan per blok ---------- */
.progtable-wrap { display: none; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.progtable { width: 100%; border-collapse: collapse; }
.progtable th, .progtable td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--slate-wash); }
.progtable tbody tr:last-child > * { border-bottom: 0; }
.progtable thead th { background: var(--slate-wash); vertical-align: bottom; font-size: 0.8rem; line-height: 1.3; font-weight: 800; color: var(--navy); }
.progtable th + th, .progtable td { border-left: 1px solid var(--slate-wash); }
.progtable .pgroup span { display: block; }
.progtable .pg-when { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.progtable .pg-n { font-weight: 400; color: var(--muted); }
.progtable tbody th { white-space: nowrap; }
.progtable tbody th a { font-weight: 800; color: var(--navy); text-decoration: none; display: block; }
.progtable tbody th a:hover { color: var(--blue-deep); text-decoration: underline; }
.progtable tbody th .small { font-weight: 400; display: block; }
@media (min-width: 1000px) { .progtable-wrap { display: block; } .progress { display: none; } }

/* ---------- halaman peserta ---------- */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.pp-side, .pp-main { display: contents; }
.pp-sum { order: 1; } .pp-dims { order: 2; } .pp-learn { order: 3; } .pp-tasks { order: 4; } .pp-com { order: 5; }
.pp-main .block, .pp-side .block { min-width: 0; }
.tasktable-wrap { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.tasktable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tasktable th, .tasktable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--slate-wash); vertical-align: middle; }
.tasktable thead th { background: var(--slate-wash); font-size: 0.8rem; font-weight: 800; color: var(--navy); }
.tasktable tbody tr:last-child > * { border-bottom: 0; }
.tasktable tbody th { font-weight: 800; }
.tasktable tbody th a { color: var(--navy); text-decoration: none; }
.tasktable tbody th a:hover { text-decoration: underline; }
.tasktable tr.idle { background: #FAFBFC; }
.tasktable .tt-block { font-weight: 800; color: var(--navy); }
.tasktable td .small { display: block; }
@media (max-width: 719.98px) {
  .tasktable, .tasktable tbody { display: block; }
  .tasktable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tasktable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; border-bottom: 1px solid var(--slate-wash); }
  .tasktable tbody tr:last-child { border-bottom: 0; }
  .tasktable th, .tasktable td { display: block; padding: 0; border: 0; }
  .tasktable tbody th { flex: 1 0 100%; }
  .tasktable td[data-label="Blok"] { flex: 1 0 100%; font-size: 0.85rem; color: var(--muted); }
  .tasktable td[data-label="Blok"] .tt-block { font-weight: 400; color: var(--muted); }
  .tasktable td[data-label="Dimensi"] { margin-left: auto; }
}
@media (min-width: 900px) {
  .dimdets { grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; }
  .dimdet > summary { grid-template-columns: minmax(0, 1fr) minmax(3rem, 6rem) 2.6rem; }
}
@media (min-width: 1100px) {
  .pp-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 32px; align-items: start; }
  .pp-side, .pp-main { display: block; min-width: 0; }
}

/* ---------- tinjau: dua kolom ---------- */
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.rv-main, .rv-side { min-width: 0; }
.jumpbar { align-items: center; }
.bandtoggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.panel.draft .fold { margin: 10px 0 0; border-top: 1px solid var(--slate-wash); }
.fold > summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 40px; display: flex; align-items: center; list-style: none; font-size: 0.95rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 12px; border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(-45deg); transition: transform 0.15s; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold[open] { padding-bottom: 6px; }
.panel.draft .dimlist { margin-bottom: 10px; }

/* log percobaan sebagai linimasa bernomor */
.rv-main .iter-list { counter-reset: itn; gap: 14px; margin-left: 14px; padding-left: 24px; border-left: 3px solid var(--blue-wash); }
.rv-main .iter-row { position: relative; counter-increment: itn; }
.rv-main .iter-row::before { content: counter(itn); position: absolute; left: -40px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font: 800 0.85rem/28px var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.rv-main .iter-row .iter-title { color: var(--navy); }
.rv-main .iter-ro { margin: 0; }
.rv-main .iter-media a.file-thumb img { max-height: 220px; cursor: zoom-in; }
.rv-main .iter-media video.file-thumb { max-height: 260px; }
.rv-main a.file-thumb img { cursor: zoom-in; }
.rv-main .preview iframe { height: 520px; }
.rv-main .step.ro .field { margin-bottom: 18px; }

/* banding */
.band-slot { margin: 0 0 24px; }
.band { display: grid; gap: 18px; background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 14px 16px 16px; }
.band-col { min-width: 0; }
.band h3 { font-size: 1rem; margin-bottom: 10px; }
.band h3 .muted { font-weight: 400; }
.band .matgrid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.band-video { display: block; width: 100%; max-height: 200px; aspect-ratio: 9 / 16; background: var(--navy); border-radius: var(--radius-sm); object-fit: contain; }
@media (min-width: 720px) { .band { grid-template-columns: 1fr 1fr; gap: 24px; } .band-col + .band-col { border-left: 1px solid var(--slate-wash); padding-left: 24px; } }
.mat-thumb.lb img { cursor: zoom-in; }

/* karusel kartu (carousel.js): satu kartu per tampilan; kotak media tetap 4:5 supaya tinggi tidak melompat */
.cz { display: grid; gap: 10px; max-width: 30rem; margin: 2px auto 0; border-radius: var(--radius); }
.cz:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cz-viewport { touch-action: pan-y; background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.cz-card { display: flex; flex-direction: column; min-width: 0; }
.cz-card[hidden] { display: none; }
.cz-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--slate-wash); }
.cz-media a { position: absolute; inset: 0; display: block; }
.cz-media img, .cz-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--slate-wash); }
.cz-media video { background: var(--navy); }
.cz-media img { cursor: zoom-in; }
.cz-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cz-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--slate); background: var(--white); color: var(--blue-deep); font: 800 1.6rem/1 var(--font); cursor: pointer; padding: 0 0 3px; }
.cz-btn:hover:not(:disabled) { border-color: var(--blue-deep); background: var(--blue-wash); }
.cz-btn:disabled { color: var(--slate); cursor: default; }
.cz-btn:focus-visible, .cz-dot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cz-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.cz-dot { width: 28px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.cz-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--slate); }
.cz-dot[aria-current]::before { background: var(--blue-deep); transform: scale(1.3); }
@media (min-width: 900px) {
  .cz { max-width: 56rem; }
  .cz-card { flex-direction: row; align-items: stretch; }
  .cz-media { flex: none; width: 24rem; max-width: 55%; }
  .cz-card .cc-body { flex: 1; min-width: 0; padding: 18px 22px; }
}

/* lightbox */
/* grid-template-columns minmax(0,1fr): tanpa ini kolom auto membesar mengikuti judul nowrap yang panjang dan tombol Tutup terdorong keluar layar. */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 3, 11, 0.9); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.lightbox-bar { display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter); color: var(--white); }
.lightbox-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.lightbox-bar .btn.quiet { color: var(--white); }
/* Flex + margin:auto, bukan grid/place-items: di grid, max-height:100% tidak berlaku dan gambar tinggi terpotong
   tanpa bisa digulir. Ketuk gambar untuk ukuran asli; panggung lalu bisa digulir ke segala arah. */
.lightbox-stage { display: flex; overflow: auto; overscroll-behavior: contain; padding: 4px var(--gutter) 20px; min-height: 0; }
.lightbox-stage img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); background: var(--white); cursor: zoom-in; }
.lightbox-stage.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.mats-note { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.mats-note p { margin: 0 0 6px; }
.lightbox-stage.video { align-items: center; justify-content: center; }
.lightbox-stage video { margin: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); background: #000; }
button.mat-thumb { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.lightbox-hint { color: var(--slate-wash); font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .lightbox-hint { display: none; } }

@media (min-width: 1100px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr) minmax(25rem, 31rem); gap: 0 32px; align-items: start; }
  .rv-side .dimforms { grid-template-columns: 1fr; gap: 18px; }
  .rv-side .panel { padding: 16px 16px 14px; }
  .rv-side .anchor-grid { grid-template-columns: 1fr; }
}

/* ---------- materi per blok ---------- */
.matday > h2 .mchip { vertical-align: middle; margin-left: 6px; font-size: 0.72rem; }
.mchip.open { background: var(--green-wash); color: var(--green-ink); }
.mb-list { display: grid; gap: 12px; }
.matblock { background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.mb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.mb-head h3 { font-size: 1.15rem; }
.mb-time { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--royal); font-size: 0.95rem; min-width: 7.5rem; }
.mb-kind { margin-left: auto; font: 800 0.72rem/1 var(--font); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.mb-note { margin: 4px 0 0; }
.matblock.kind-break, .matblock.kind-info { background: #FAFBFC; padding-top: 10px; padding-bottom: 10px; }
.matblock.kind-break h3, .matblock.kind-info h3 { font-weight: 400; color: var(--muted); font-size: 1rem; }
.matblock .matbox { margin: 10px 0 0; padding: 0 12px; border: 1px solid var(--slate-wash); border-radius: var(--radius-sm); background: #FBFCFE; }
.matblock .matbox[open] { padding-bottom: 12px; }
.matblock .matbox > summary { min-height: 42px; font-size: 0.95rem; }
.mb-tasks { margin: 10px 0 0; }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.mt-main, .mt-side { min-width: 0; }
.mt-side { margin-top: 24px; }
.mt-side .mats { margin: 0 0 16px; }
.mt-side .brief-h { font-size: 1.05rem; margin: 0 0 10px; }
.mt-side .rubric { margin: 0 0 16px; }
.mt-when { margin: -6px 0 12px; }
@media (min-width: 1100px) {
  .mt-grid { grid-template-columns: minmax(0, 1fr) 26rem; gap: 0 32px; align-items: start; }
  .mt-side { margin-top: 0; }
  .mt-main .step { padding-left: 24px; padding-right: 24px; }
}

/* ---------- pengaturan ---------- */
.dayblocks { margin: 0 0 6px; }
.toolbox select { max-width: 24rem; }
.tooldesc { margin: 8px 0 0; }
.toolbox textarea { font: 0.9rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.toolresult { margin-top: 14px; }
.toolout { margin: 0; padding: 12px 14px; background: var(--navy); color: #E6EEFE; border-radius: var(--radius-sm); font: 0.85rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; }
.toolimg { margin: 0; }
.toolimg img { display: block; max-width: 100%; max-height: 28rem; border-radius: var(--radius-sm); border: 1px solid var(--slate); background: var(--white); }
@media (min-width: 1100px) {
  .kitems { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pengaturan: Jalannya hari ---------- */
.runner { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.run-row { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.run-time { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.run-body { display: grid; min-width: 0; gap: 2px; }
.run-name { font-weight: 800; color: var(--navy); line-height: 1.25; }
.run-detail, .run-names { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.run-row.sekarang { box-shadow: inset 4px 0 0 var(--blue); }
.run-row.sekarang .run-time { color: var(--royal); font-weight: 800; }
.run-row.selesai .run-name, .run-row.dilewati .run-name { color: var(--muted); font-weight: 400; }
.run-act:empty { display: none; }
@media (max-width: 519px) { .run-row { grid-template-columns: 3.2rem minmax(0, 1fr); } .run-act { grid-column: 2; } }
