/* JLPT CBT — tema LPK Jakaruta Global Group (mengikuti mockup JGG_SYSTEM). Tanpa build step. */
:root {
  --navy-900: #0b1f3a; --navy-800: #0f2a4d; --navy-700: #16386a; --navy-600: #1e4a86;
  --sakura: #e8879b; --sakura-deep: #d45f7a; --gold: #d4a237;
  --cream: #f7f4ee; --paper: #ffffff; --ink: #1a2436; --ink-soft: #5b6478; --line: #e4e1d8;
  --green: #3f9c6d; --orange: #e08a3c; --blue: #3f7fc0; --purple: #8b6fd6; --red: #c0392b;
  --ok-bg: #e3f3ea; --warn-bg: #fdf2e2; --err-bg: #fdeee9; --info-bg: #eef3fa;
  --radius: 14px; --shadow: 0 8px 28px rgba(11,31,58,.08);
  --font: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--cream); color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-600); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 1.3rem; font-weight: 800; }
h2 { font-size: 1rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
small, .muted { color: var(--ink-soft); }
ruby rt { font-size: .55em; color: var(--ink-soft); }
u { text-underline-offset: 4px; }
code { background: #f1efe8; padding: 1px 5px; border-radius: 5px; font-size: .85em; }

/* ---------- App shell: sidebar + topbar ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 220px; flex-shrink: 0; background: var(--navy-900); color: #c9d4e6; padding: 18px 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 0 18px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; text-decoration: none; }
.sb-brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; object-fit: cover; flex-shrink: 0; }
.sb-brand p { margin: 0; font-size: 12px; font-weight: 800; color: #fff; line-height: 1.25; text-transform: uppercase; }
.sb-brand span { font-size: 10px; color: #93a3bf; }
.sb-nav { flex: 1; overflow-y: auto; }
.sb-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6f7f9c; padding: 14px 18px 4px; }
.sb-item { display: flex; align-items: center; gap: 11px; padding: 10px 18px; font-size: 13px; color: #a9b7cf; border-left: 3px solid transparent; text-decoration: none; font-weight: 500; }
.sb-item .ic { width: 18px; text-align: center; font-size: 14px; }
.sb-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.sb-item.active { background: rgba(232,135,155,.14); color: #fff; border-left-color: var(--sakura); font-weight: 700; }
.sb-item .count { margin-left: auto; background: var(--sakura-deep); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.sb-foot { padding: 12px 18px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.sb-foot button { display: flex; align-items: center; gap: 9px; color: #93a3bf; font-size: 12.5px; background: none; border: 0; cursor: pointer; padding: 8px 0; font-family: inherit; }
.sb-foot button:hover { color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar .crumb { font-size: 13px; color: var(--ink-soft); }
.topbar .crumb b { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); padding: 0 6px 0 0; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-600), var(--sakura)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar.lg { width: 58px; height: 58px; font-size: 20px; }
.user-chip p { margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.user-chip span { font-size: 10.5px; color: var(--ink-soft); }
.container { padding: 22px 26px 48px; width: 100%; max-width: 1280px; }
.container.narrow { max-width: 820px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 2px; }
.page-head p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(11,31,58,.45); z-index: 40; }
  .menu-toggle { display: inline-block; }
  .topbar { padding: 10px 16px; }
  .container { padding: 16px 16px 40px; }
  .user-chip .txt { display: none; }
}

/* ---------- Cards, grid, stats ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.card-head h2 { margin: 0; font-size: 14.5px; }
.card-head a { font-size: 12px; font-weight: 600; text-decoration: none; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.stat .ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--info-bg); }
.stat .ic.green { background: var(--ok-bg); } .stat .ic.orange { background: var(--warn-bg); } .stat .ic.purple { background: #f0ebfb; } .stat .ic.pink { background: var(--err-bg); }
.stat .label { margin: 0; font-size: 11.5px; color: var(--ink-soft); }
.stat .value { margin: 2px 0 0; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
a.stat:hover { border-color: #c8d4e6; }

.welcome-banner { background: linear-gradient(120deg, var(--navy-800), var(--navy-600) 70%); border-radius: var(--radius); padding: 24px 26px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; position: relative; overflow: hidden; }
.welcome-banner h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.welcome-banner p { margin: 0 0 14px; color: #cfe0f7; font-size: 13px; max-width: 420px; }
.welcome-banner .fuji-mini { width: 170px; height: 110px; flex-shrink: 0; opacity: .9; }
.progress-track { width: 240px; max-width: 100%; height: 8px; background: rgba(255,255,255,.2); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--sakura); border-radius: 10px; }
@media (max-width: 640px) { .welcome-banner .fuji-mini { display: none; } }

.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0eee7; }
.list-row:last-child { border-bottom: 0; }
.list-row .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: var(--info-bg); }
.list-row .ic.green { background: var(--ok-bg); color: var(--green); } .list-row .ic.orange { background: var(--warn-bg); color: var(--orange); }
.list-row .info { flex: 1; min-width: 0; }
.list-row .info p { margin: 0; font-size: 13px; font-weight: 600; }
.list-row .info span { font-size: 11px; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--paper); }
th { text-align: left; padding: 11px 14px; background: #f6f4ee; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: #fbfaf6; }
td.actions { white-space: nowrap; text-align: right; }
td.num, th.num { text-align: right; }
.card.flush { padding: 0; overflow: hidden; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 13.5px; background: #fbfaf7; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); background: #fff; }
input[type=file] { font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 7px; font-weight: 400; color: var(--ink-soft); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline-form .field { margin: 0; }
.error-text { color: var(--red); font-size: 12px; margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1.5px solid var(--navy-700); background: var(--navy-700); color: #fff; font: inherit; font-weight: 700; font-size: 12.5px; text-decoration: none; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--navy-600); border-color: var(--navy-600); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: #f6f4ee; }
.btn.danger { background: var(--sakura-deep); border-color: var(--sakura-deep); }
.btn.success { background: var(--green); border-color: var(--green); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #3a2a05; }
.btn.small { padding: 5px 11px; font-size: 11.5px; }
.btn.big { padding: 12px 22px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Alerts & badges ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: 13px; }
.alert.success { background: var(--ok-bg); color: #1c6b45; border-color: #cdead9; }
.alert.error { background: var(--err-bg); color: #a3334c; border-color: #f6cfd6; }
.alert.warn { background: var(--warn-bg); color: #9a5a17; border-color: #f4dcb8; }
.alert.info { background: var(--info-bg); color: var(--navy-700); border-color: #d3e0f2; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #f1efe8; color: var(--ink-soft); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--green); }
.badge.warn { background: var(--warn-bg); color: var(--orange); }
.badge.err { background: var(--err-bg); color: var(--sakura-deep); }
.badge.info { background: var(--info-bg); color: var(--blue); }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .12em; background: #f1efe8; padding: 2px 8px; border-radius: 6px; }

/* ---------- Filters & pagination ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.filters .field { margin: 0; min-width: 150px; }
.pagination { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; justify-content: flex-end; }
.pagination a, .pagination span { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; text-decoration: none; font-size: 12px; color: var(--ink); }
.pagination .current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination .disabled { color: #b0b7c6; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); }
.login-visual { position: relative; background: linear-gradient(180deg, #3a6fa8 0%, #1e4a86 45%, #0f2a4d 100%); overflow: hidden; padding: 48px 44px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.login-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 85%, rgba(255,255,255,.10) 0%, transparent 45%), radial-gradient(circle at 85% 15%, rgba(232,135,155,.25) 0%, transparent 40%); }
.fuji { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55)); clip-path: polygon(0% 100%, 30% 38%, 42% 46%, 50% 22%, 58% 46%, 70% 38%, 100% 100%); opacity: .9; }
.brand-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-mark img { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); object-fit: cover; }
.brand-mark h1 { font-size: 21px; margin: 0; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.brand-mark p { margin: 2px 0 0; font-size: 11.5px; color: #cfe0f7; }
.login-tagline { position: relative; z-index: 1; margin-top: 38px; }
.login-tagline .jp { font-size: 30px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.login-tagline .en { font-size: 13.5px; color: #cfe0f7; margin: 0; }
.login-quote { position: relative; z-index: 1; font-size: 15px; font-style: italic; color: #f4dbe2; max-width: 280px; line-height: 1.5; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 23px; margin: 0 0 4px; font-weight: 800; }
.login-card .sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 26px; }
.login-card .mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 24px; }
.login-card .mobile-brand img { width: 40px; height: 40px; border-radius: 50%; }
.field-pw { position: relative; }
.field-pw button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 820px) { .login-wrap { grid-template-columns: 1fr; } .login-visual { display: none; } .login-card .mobile-brand { display: flex; } }

/* ---------- Question editor ---------- */
.option-row { display: grid; grid-template-columns: 32px 1fr 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.option-row .num { font-weight: 700; text-align: center; }
.preview { background: #fbfaf6; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; font-size: 1.1rem; }

/* ---------- Ujian CBT ---------- */
.exam-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
.exam-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.exam-topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; }
.exam-topbar .brand img { width: 30px; height: 30px; border-radius: 50%; }
.ujian-shell { flex: 1; display: grid; grid-template-columns: 1fr 270px; min-height: 0; }
.ujian-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #fff; gap: 12px; flex-wrap: wrap; }
.ujian-head h1 { margin: 0; font-size: 15px; }
.ujian-head span { font-size: 12px; color: var(--ink-soft); }
.timer-chip { display: flex; align-items: center; gap: 7px; background: var(--err-bg); color: var(--sakura-deep); font-weight: 800; padding: 7px 14px; border-radius: 20px; font-size: 14px; font-variant-numeric: tabular-nums; }
.timer-chip.low { background: var(--sakura-deep); color: #fff; }
.section-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.section-steps span { font-size: 11px; padding: 2px 10px; border-radius: 20px; background: #f1efe8; color: var(--ink-soft); }
.section-steps span.now { background: var(--navy-700); color: #fff; font-weight: 700; }
.section-steps span.done { text-decoration: line-through; opacity: .6; }
.q-area { padding: 26px 30px; overflow: auto; }
.q-card { max-width: 860px; }
.js .q-card { display: none; }
.js .q-card.current { display: block; }
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.q-no { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.q-stem { font-size: 20px; font-weight: 700; margin: 0 0 20px; line-height: 1.7; }
.passage { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; font-size: 16px; line-height: 2; }
.q-img { max-width: 100%; max-height: 320px; border-radius: 12px; margin-bottom: 16px; display: block; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; background: #fff; font-weight: 500; font-size: 16px; margin: 0; color: var(--ink); transition: .12s; }
.choice:hover { border-color: #9fb7d6; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .lbl { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--navy-700); background: var(--info-bg); }
.choice:has(input:checked) .lbl { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.flag-toggle { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-soft); font-weight: 500; margin: 0; cursor: pointer; }
.save-state { font-size: 11px; color: var(--ink-soft); margin-right: 10px; }
.q-nav-btns { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; }
.nbtn { padding: 11px 22px; border-radius: 9px; border: 0; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.nbtn.prev { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.nbtn.next { background: var(--green); color: #fff; }
.nbtn[disabled] { opacity: .4; cursor: default; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: flex; }
.q-side { border-left: 1px solid var(--line); background: #fbfaf6; padding: 18px 16px; }
.q-side h2 { font-size: 13px; margin-bottom: 12px; }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 44px)); gap: 7px; margin-bottom: 16px; }
.q-grid a { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; text-decoration: none; position: relative; }
.q-grid a.answered { background: var(--ok-bg); border-color: var(--green); color: var(--green); }
.q-grid a.current { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.q-grid a.flagged::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.legend { display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 18px; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 7px; vertical-align: -1px; border: 1.5px solid var(--line); background: #fff; }
.legend .sw.cur { background: var(--navy-700); border-color: var(--navy-700); }
.legend .sw.ans { background: var(--ok-bg); border-color: var(--green); }
.legend .sw.flag { background: var(--orange); border-color: var(--orange); border-radius: 50%; }
.btn-finish { width: 100%; padding: 13px; border: 0; border-radius: 10px; background: var(--sakura-deep); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.btn-finish:hover { background: #c24d69; }
@media (max-width: 980px) { .ujian-shell { grid-template-columns: 1fr; } .q-side { border-left: 0; border-top: 1px solid var(--line); } .q-area { padding: 20px 16px; } .q-stem { font-size: 18px; } }

/* ---------- Hasil ujian ---------- */
.hasil-hero { background: linear-gradient(120deg, #e9f7ef, #f2fbf5); border: 1px solid #cdead9; border-radius: 16px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.hasil-hero.neutral { background: linear-gradient(120deg, #eef3fa, #f6f9fd); border-color: #d3e0f2; }
.hasil-hero.fail { background: linear-gradient(120deg, #fdf2e2, #fdf8f0); border-color: #f4dcb8; }
.hasil-hero .l { display: flex; align-items: center; gap: 16px; }
.hasil-hero .mark { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hasil-hero.neutral .mark { background: var(--navy-600); } .hasil-hero.fail .mark { background: var(--orange); }
.hasil-hero h2 { margin: 0 0 4px; font-size: 19px; color: #1c6b45; }
.hasil-hero.neutral h2 { color: var(--navy-700); } .hasil-hero.fail h2 { color: #9a5a17; }
.hasil-hero p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.hasil-hero .r { text-align: right; }
.hasil-hero .r span { font-size: 11.5px; color: var(--ink-soft); display: block; }
.hasil-hero .r b { font-size: 32px; color: var(--ink); }
.hasil-hero .r b small { font-size: 15px; }
.kompetensi-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.kompetensi-row .lbl { width: 190px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.kompetensi-row .lbl small { display: block; font-weight: 400; }
.kbar { flex: 1; height: 9px; background: #eee; border-radius: 6px; overflow: hidden; }
.kbar span { display: block; height: 100%; border-radius: 6px; }
.kompetensi-row .val { width: 40px; text-align: right; font-weight: 800; font-size: 13px; }
@media (max-width: 640px) { .kompetensi-row .lbl { width: 120px; } }
.btnrow { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.score-big { font-size: 2.6rem; font-weight: 900; color: var(--navy-800); line-height: 1; }
/* kartu statistik tanpa ikon (angka di atas, label di bawah) */
.stat:not(:has(.ic)) { flex-direction: column; align-items: flex-start; gap: 0; }
.stat:not(:has(.ic)) .value { order: 2; } .stat:not(:has(.ic)) .label { order: 1; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.bell { position: relative; font-size: 17px; text-decoration: none; }
.bell .dot { position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sakura-deep); border: 1.5px solid #fff; }

/* Timeline tahapan program Jepang */
.timeline-h { display: flex; align-items: flex-start; padding: 18px 4px 6px; overflow-x: auto; }
.tl-step { flex: 1; min-width: 86px; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.tl-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before, .tl-step.current::before { background: var(--green); }
.tl-circ { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; z-index: 1; color: var(--ink-soft); font-weight: 700; }
.tl-step.done .tl-circ { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.current .tl-circ { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.tl-label { font-size: 11px; margin-top: 7px; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.tl-step.done .tl-label { color: var(--green); }
.tl-step.current .tl-label { color: var(--navy-600); }

/* Materi */
.materi-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .materi-layout { grid-template-columns: 1fr; } }
.video-frame { background: #111; border-radius: 14px; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; color: #cfd6e4; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.resource-btns { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.materi-list-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: inherit; }
.materi-list-item:hover { background: #f3f1ea; }
.materi-list-item.active { background: var(--info-bg); }
.materi-list-item .num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.materi-list-item .num.done { background: var(--green); }
.materi-list-item .info { flex: 1; min-width: 0; }
.materi-list-item .info p { margin: 0; font-size: 13px; font-weight: 600; }
.materi-list-item .info span { font-size: 11px; color: var(--ink-soft); }

/* Dokumen & profil */
.doc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0eee7; font-size: 13px; gap: 10px; }
.doc-row:last-child { border-bottom: 0; }
.doc-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.doc-status.selesai { background: var(--ok-bg); color: var(--green); }
.doc-status.proses { background: var(--warn-bg); color: var(--orange); }
.doc-status.belum { background: #f1efe8; color: var(--ink-soft); }
.mon-profile { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.mon-profile h2 { margin: 0 0 3px; font-size: 17px; }
.mon-profile p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.bar-track { height: 9px; background: #ece9e1; border-radius: 6px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--green); border-radius: 6px; }

/* Sertifikat */
.cert-wrap { display: flex; justify-content: center; padding: 10px 0; }
.cert { width: 100%; max-width: 760px; aspect-ratio: 1.414/1; background: radial-gradient(circle at 92% 8%, rgba(232,135,155,.14), transparent 45%), radial-gradient(circle at 6% 94%, rgba(212,162,55,.14), transparent 45%), #fff;
  border: 12px solid #fff; outline: 2px solid var(--gold); outline-offset: -16px; border-radius: 10px; box-shadow: 0 20px 50px rgba(11,31,58,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 48px; position: relative; }
.cert .seal { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cert .org { font-size: 11px; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 14px; font-weight: 700; text-transform: uppercase; }
.cert h1 { margin: 0; font-size: 24px; letter-spacing: .06em; color: var(--navy-800); font-weight: 900; text-transform: uppercase; }
.cert .to { font-size: 12px; color: var(--ink-soft); margin: 6px 0 12px; }
.cert .name { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; color: var(--sakura-deep); font-weight: 700; margin: 0 0 12px; }
.cert .desc { font-size: 13px; color: var(--ink-soft); max-width: 460px; line-height: 1.7; margin: 0; }
.cert .foot { position: absolute; bottom: 34px; left: 56px; right: 56px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-soft); }
.cert .flower { position: absolute; font-size: 26px; opacity: .8; }
@media (max-width: 640px) { .cert { padding: 22px; aspect-ratio: auto; } .cert .name { font-size: 26px; } .cert .foot { position: static; margin-top: 16px; flex-direction: column; gap: 4px; } }
@media print {
  .sidebar, .topbar, .no-print, .alert { display: none !important; }
  body, .app-shell, .main { background: #fff !important; }
  .container { padding: 0 !important; max-width: none; }
  .cert { box-shadow: none; max-width: none; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* Laporan */
.chart-bars { display: flex; align-items: flex-end; gap: 18px; height: 180px; padding: 0 6px; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-bars .b { width: 60%; border-radius: 6px 6px 0 0; min-height: 2px; }
.chart-bars .v { font-size: 12px; font-weight: 700; }
.chart-bars .l { font-size: 11px; color: var(--ink-soft); }
.legend-row { display: flex; gap: 16px; margin-top: 12px; font-size: 11.5px; color: var(--ink-soft); flex-wrap: wrap; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.review-q { border-top: 1px solid var(--line); padding: 16px 0; }
.review-q:first-child { border-top: 0; }
.review-opt { padding: 6px 10px; border-radius: 8px; margin: 4px 0; font-size: 14px; }
.review-opt.correct { background: var(--ok-bg); color: #1c6b45; font-weight: 700; }
.review-opt.wrong { background: var(--err-bg); color: #a3334c; text-decoration: line-through; }

@media (max-width: 640px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.cols-4 .stat { padding: 12px; gap: 10px; }
  .grid.cols-4 .stat .ic { width: 36px; height: 36px; font-size: 16px; }
  .grid.cols-4 .stat .value { font-size: 1.2rem; }
}
