@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #0B7BC4;
  --primary-dark: #06558C;
  --sky: #E2F4FC;
  --sky-2: #C6E8F8;
  --bg: #F6F8FA;
  --card: #FFFFFF;
  --text: #0F2A3D;
  --muted: #557085;
  --line: #DDE5EB;
  --ok: #1E9E5A;
  --ok-bg: #E6F7EE;
  --bad: #D64545;
  --bad-bg: #FDECEC;
  --warn: #F5A623;
  --ink: #0B2233;
  --radius: 12px;
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }

/* Nav */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.15; }
.logo small { font-weight: 600; color: var(--muted); font-size: 12px; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .04em;
}
.links { display: flex; gap: 2px; }
.links a { color: var(--muted); font-weight: 600; padding: 8px 10px; font-size: 14px; border-bottom: 2px solid transparent; }
.links a:hover { color: var(--ink); }
.links a.on { color: var(--primary); border-bottom-color: var(--primary); }

.wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 28px; }

/* Hero */
.hero {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 22px; margin-bottom: 20px;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7CC4EE; margin-bottom: 8px; }
.hero h1 { font-size: 26px; font-weight: 800; }
.hero p { margin: 0 0 18px; color: #C9D6DF; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 12px 0 0; font-size: 12px; color: #9FB3C1; font-weight: 600; display: flex; flex-direction: column; }
.stat b { font-size: 22px; font-weight: 800; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; font-size: 15px;
  background: var(--primary); color: #fff; transition: transform .1s, background .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #B8C7D2; cursor: not-allowed; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #E6EDF2; }
.btn.ghost { background: var(--sky); color: var(--primary-dark); }
.btn.ghost:hover { background: var(--sky-2); }
.btn.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Section */
.sec-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.crumb { display: inline-block; font-weight: 700; margin-bottom: 10px; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); margin-bottom: 16px; }

/* Materi cards */
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.mcard {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card); color: var(--text);
  border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); transition: border-color .12s;
}
.mcard:hover { border-color: var(--accent, var(--primary)); }
.mcard > div:last-child { flex: 1; min-width: 0; }
.mcard-ico { font-size: 28px; font-weight: 800; line-height: 1; color: var(--accent, var(--primary)); width: 44px; flex: none; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mcard h3 { font-size: 16.5px; font-weight: 700; }
.mcard-no { font-size: 11.5px; font-weight: 700; color: var(--accent, var(--primary)); text-transform: uppercase; letter-spacing: .1em; }
.meta { font-size: 14px; color: var(--muted); }
.pbar { height: 4px; background: #E8EEF2; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.pbar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* Sub list */
.srow {
  display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--text);
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px;
}
.srow:hover { border-color: var(--primary); }
.snum { flex: none; width: 38px; color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; }
.stitle { flex: 1; font-weight: 600; }
.badge { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--sky); color: var(--primary-dark); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.mid { background: #FFF4DE; color: #B7791F; }
.badge.soon { background: #EEF1F6; color: #7A879E; }

/* Ringkasan */
.ringkasan h3 { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin-top: 1.1em; }
.ringkasan h3:first-child { margin-top: 0; }
.ringkasan ul, .ringkasan ol { padding-left: 1.25em; margin: .4em 0 .8em; }
.ringkasan li { margin-bottom: .3em; }
.tip { background: #FFF8E6; border-left: 3px solid var(--warn); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 12px 0; }
.key { background: var(--sky); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }

/* Visual */
.visual { margin: 12px 0; }
.chart { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; background: #FBFDFF; border: 1px solid var(--line); border-radius: 12px; }
.chart .gl { stroke: #E3EAF6; stroke-width: 1; }
.chart .tk { font-size: 11px; fill: #6B7A96; }
.chart .lb { font-size: 12px; fill: #2A3A5C; font-weight: 700; }
.chart .vl { font-size: 12px; fill: var(--primary-dark); font-weight: 800; }
.chart .ct { font-size: 13.5px; fill: #2A3A5C; font-weight: 800; }
.chart .pl { font-size: 12px; fill: #fff; font-weight: 800; }
.chart .lg { font-size: 12.5px; fill: #2A3A5C; font-weight: 700; }
.vcap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-style: italic; }
.vt-wrap { overflow-x: auto; }
.vt { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
.vt th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 8px 10px; text-align: left; }
.vt td { border: 1px solid var(--line); padding: 7px 10px; vertical-align: top; }
.vt tr:nth-child(even) td { background: #F7FAFF; }
.vlist { margin: 8px 0; padding-left: 0; list-style: none; counter-reset: n; }
.vlist li { counter-increment: n; padding: 4px 0 4px 36px; position: relative; }
.vlist li::before { content: '(' counter(n) ')'; position: absolute; left: 0; font-weight: 800; color: var(--primary-dark); }
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.fl-box { background: var(--sky); border: 2px solid var(--sky-2); color: var(--primary-dark); font-weight: 800; padding: 8px 12px; border-radius: 12px; text-align: center; font-size: 14.5px; }
.fl-box.blank { background: #FFF8E6; border: 2px dashed var(--warn); color: #B7791F; min-width: 52px; }
.fl-arrow { color: var(--primary); font-weight: 800; }

/* Quiz */
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.qtop .meta b { color: var(--text); }
.timer { font-weight: 700; background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.timer.low { background: var(--bad-bg); color: var(--bad); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--sky); color: var(--primary-dark); }
.chip.mudah { background: var(--ok-bg); color: var(--ok); }
.chip.sedang { background: #FFF4DE; color: #B7791F; }
.chip.sulit { background: var(--bad-bg); color: var(--bad); }
.qtext { font-size: 16.5px; font-weight: 500; }
.teori { background: #F3F8FB; border: 0; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 10px 14px; margin-bottom: 14px; font-size: 15px; color: #2A3A5C; }
.teori-h { font-weight: 700; color: var(--primary-dark); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.opts { display: grid; gap: 10px; margin: 16px 0; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text);
  transition: border-color .12s, background .12s;
}
.opt:hover:not(:disabled) { border-color: var(--primary); background: #FAFCFF; }
.opt b { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: #EEF2F5; color: var(--ink); font-weight: 700; font-size: 14px; }
.opt span { padding-top: 2px; }
.opt.sel { border-color: var(--primary); background: var(--sky); }
.opt.sel b { background: var(--primary); color: #fff; }
.opt.ok { border-color: var(--ok); background: var(--ok-bg); }
.opt.ok b { background: var(--ok); color: #fff; }
.opt.bad { border-color: var(--bad); background: var(--bad-bg); }
.opt.bad b { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }
.opts.bs { grid-template-columns: 1fr 1fr; }
.fb { border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.fb.ok { background: var(--ok-bg); border: 2px solid #A7E2C2; }
.fb.bad { background: var(--bad-bg); border: 2px solid #F3B9B9; }
.fb strong { font-size: 17px; }
.exp { margin-top: 8px; }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.qnav button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 800; color: var(--muted); }
.qnav button.done { background: var(--sky); border-color: var(--sky-2); color: var(--primary-dark); }
.qnav button.cur { border-color: var(--primary); color: var(--primary); }

/* Result */
.score { text-align: center; padding: 24px 18px; }
.score .big { font-size: 64px; font-weight: 800; letter-spacing: -.03em; color: var(--primary); line-height: 1; }
.score .msg { font-size: 19px; font-weight: 800; margin: 8px 0 4px; }
.review details { background: #fff; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; padding: 12px 14px; }
.review summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.review summary::-webkit-details-marker { display: none; }
.mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.mark.ok { background: var(--ok); }
.mark.bad { background: var(--bad); }
.review .ans { margin: 10px 0 0; font-size: 15px; }

/* Form */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
select { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--text); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 70px; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 800; color: var(--muted); }
.seg button.on { border-color: var(--primary); background: var(--sky); color: var(--primary-dark); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty .ico { font-size: 44px; }

@media (max-width: 420px) {
  .hero h1 { font-size: 21px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .links a { padding: 8px 6px; font-size: 13px; }
  .logo { font-size: 12.5px; }
  .logo small { font-size: 11px; }
  .opts.bs { grid-template-columns: 1fr; }
}

/* Infografis progres */
.ig-hero { display: flex; gap: 22px; align-items: center; }
.ring { width: 130px; flex: none; }
.ig-hero > div { flex: 1; min-width: 0; }
.ib-row { display: grid; grid-template-columns: 1fr 70px; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ib-row:last-child { border: 0; }
.ib-lbl { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; }
.ib-lbl b { color: var(--primary); margin-right: 4px; }
.ib-track { height: 10px; background: #EDF1F4; border-radius: 3px; overflow: hidden; align-self: center; }
.ib-track i { display: block; height: 100%; background: var(--primary); }
.ib-val { font-weight: 800; font-size: 18px; text-align: right; line-height: 1; }
.ib-val small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.hm-grp { margin-bottom: 12px; }
.hm-h { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hm { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
.hm-t { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.hm-t.kosong { color: #8A9AA6; font-weight: 600; font-size: 11.5px; }
.lgd { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.lgd i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ig-h { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kl { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.kl:last-child { border: 0; }
.kl span { color: var(--primary); font-weight: 700; font-size: 13px; width: 32px; flex: none; }
.kl b { flex: 1; font-weight: 600; font-size: 14px; }
.kl em { font-style: normal; font-weight: 800; }
.tren { width: 100%; height: auto; display: block; }
.tps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tp-n { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tp-s { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.hrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border: 0; }
.hdot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hrow > b { font-size: 18px; }
@media (max-width: 520px) {
  .ig-hero { flex-direction: column; align-items: flex-start; }
  .ring { width: 110px; }
}

/* Login & profil */
.login { max-width: 420px; margin: 24px auto 0; }
.login-head { text-align: center; margin-bottom: 18px; }
.login-head h1 { font-size: 23px; font-weight: 800; }
.logo-mark.big { width: 56px; height: 56px; font-size: 16px; border-radius: 12px; margin: 0 auto 14px; }
.inp { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--text); }
.inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 123, 196, .15); }
.field label { font-weight: 600; font-size: 14px; }
.form-err { background: var(--bad-bg); color: var(--bad); font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.form-ok { background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.links { align-items: center; }
.links a.nav-av { width: 34px; height: 34px; padding: 0; margin-left: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--primary-dark); font-weight: 800; font-size: 12.5px; border: 2px solid transparent; }
.links a.nav-av.on { border-color: var(--primary); }
.prof-hero { display: flex; gap: 18px; align-items: center; }
.av-big { width: 68px; height: 68px; flex: none; border-radius: 50%; background: #7CC4EE; color: var(--ink); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.prof-hero h1 { font-size: 22px; overflow-wrap: anywhere; }
.pasang-top { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.pasang-top b { font-weight: 600; font-size: 14.5px; }
.pasang-top .btn { flex: none; }
.cara { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.cara ol { margin: 8px 0 0; padding-left: 1.3em; }
.cara li { margin-bottom: 6px; }
@media (max-width: 420px) {
  .pasang-top { flex-direction: column; align-items: stretch; }
  .links a.nav-av { width: 30px; height: 30px; margin-left: 2px; font-size: 11.5px; }
}

.btn.danger { background: var(--bad); }
.btn.danger:hover { background: #B83434; }
.zona { border-color: #F3C9C9; }
.logo-txt { white-space: nowrap; }
@media (max-width: 600px) { .logo-txt { display: none; } }

/* Tombol pasang mengambang */
body.ada-fab .foot { padding-bottom: 96px; }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 32px); }
.fab-bar { display: flex; align-items: stretch; background: var(--ink); border-radius: 999px; box-shadow: 0 6px 20px rgba(11, 34, 51, .28); overflow: hidden; }
.fab-go { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font-weight: 700; font-size: 14.5px; padding: 12px 6px 12px 18px; }
.fab-x { border: 0; background: none; color: #9FB3C1; font-size: 22px; line-height: 1; padding: 0 16px 0 10px; border-left: 1px solid rgba(255,255,255,.14); margin-left: 8px; }
.fab-x:hover, .fab-go:hover { color: #7CC4EE; }
.fab-cara { width: 320px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 30px rgba(11, 34, 51, .18); font-size: 14px; }
.fab-cara ol { margin: 8px 0 0; padding-left: 1.3em; }
.fab-cara li { margin-bottom: 6px; }
.cara-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.fab-tutupcara { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); padding: 0; }

.dash { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; margin-bottom: 18px; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: #9FB3C1; font-weight: 600; margin-bottom: 8px; }
.dash-top b { color: #fff; font-size: 14px; }
.dash-bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.dash-bar i { display: block; height: 100%; background: #7CC4EE; border-radius: 99px; min-width: 4px; }
.dash .stats { grid-template-columns: repeat(3, 1fr); border-top: 0; margin-bottom: 0; }
.dash .stat { padding-top: 0; }
@media (max-width: 420px) { .dash .stats { grid-template-columns: repeat(3, 1fr); } .dash .stat b { font-size: 19px; } }

.sprog { flex: none; width: 150px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.sprog-top { display: flex; justify-content: space-between; gap: 6px; }
.sprog-top b { color: var(--ink); }
.sprog-bar { height: 5px; background: #E8EEF2; border-radius: 99px; overflow: hidden; }
.sprog-bar i { display: block; height: 100%; background: var(--primary); }
.sprog-best b { font-size: 13px; color: var(--ink); }
.sprog-best b.ok { color: var(--ok); } .sprog-best b.mid { color: #B7791F; }
@media (max-width: 480px) { .srow { flex-wrap: wrap; } .sprog { width: 100%; padding-left: 50px; } }

/* ===== Ukuran huruf (zoom konten) ===== */
.wrap { zoom: var(--zoom, 1); }

/* ===== Profil ===== */
.prof-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; }
.prof-head h1 { font-size: 26px; font-weight: 800; margin: 0; }
.ibtn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ibtn:hover { border-color: var(--primary); color: var(--primary); }
.ibtn.kecil { width: 36px; height: 36px; flex: none; color: var(--warn); }
.ibtn.kecil svg { fill: var(--warn); }
.ibadge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.prof-id { display: flex; gap: 16px; align-items: center; }
.prof-id .av { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.prof-nama { font-size: 20px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.lis-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 6px; }
.lis-row b { font-size: 16px; overflow-wrap: anywhere; }
.lis-pill { background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.lis-pill.off { background: var(--bad-bg); color: var(--bad); }
.card .meta + .meta { margin-top: 4px; }
details.lisensi { margin-top: 10px; font-size: 13.5px; }
details.lisensi summary { cursor: pointer; color: var(--primary); font-weight: 600; }
details.lisensi ol { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); }
details.lisensi li { margin-bottom: 5px; }
.setuju { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 12px 0 14px; }
.setuju input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.seg2 { display: grid; grid-template-columns: repeat(4, 1fr); background: #EEF2F5; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.seg2 button { border: 0; background: none; padding: 10px 4px; border-radius: 9px; font-weight: 700; color: var(--muted); font-size: 14px; }
.seg2 button.on { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.seg2 + .set-row { border-top: 0; }
.set-row b { font-size: 15.5px; }
.sw { flex: none; width: 52px; height: 30px; border-radius: 99px; border: 0; background: #D5DDE3; position: relative; cursor: pointer; transition: background .15s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.sw.on { background: var(--primary); }
.sw.on i { left: 25px; }
.pasang-row { display: flex; gap: 14px; align-items: center; }
.pasang-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sky); color: var(--primary); display: grid; place-items: center; }
.pill { flex: none; border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px; background: var(--ok-bg); color: var(--ok); }
.pill.go { background: var(--primary); color: #fff; cursor: pointer; }
.tips ol { margin: 0; padding-left: 1.2em; }
.tips li { margin-bottom: 6px; }

/* ===== Tandai soal ===== */
.tandai { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 5px 11px; font-weight: 600; font-size: 13px; cursor: pointer; }
.tandai svg { width: 16px; height: 16px; }
.tandai.on { border-color: var(--warn); color: #B7791F; background: #FFF8E6; }
.tandai.on svg { fill: var(--warn); stroke: var(--warn); }
.tanda-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tanda-row:last-child { border: 0; }
.tanda-q { font-size: 14.5px; margin-top: 2px; }

/* ===== Toast pengingat ===== */
.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -140%); z-index: 80; max-width: min(460px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; transition: transform .25s; }
.toast.on { transform: translate(-50%, 0); }
.toast button { border: 0; background: none; color: #9FB3C1; font-size: 20px; line-height: 1; padding: 0; }

/* ===== Mode gelap ===== */
:root[data-theme="dark"] {
  --bg: #0E1A24; --card: #152532; --text: #E3ECF2; --muted: #93A8B8; --line: #253a4b;
  --sky: #1B3446; --sky-2: #234257; --ok-bg: #12352A; --bad-bg: #3A1D1F; --ink: #08121A;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] .top { background: #101E29; border-color: var(--line); }
:root[data-theme="dark"] .logo, :root[data-theme="dark"] .links a:hover { color: var(--text); }
:root[data-theme="dark"] .mcard, :root[data-theme="dark"] .srow, :root[data-theme="dark"] .opt,
:root[data-theme="dark"] .tp, :root[data-theme="dark"] .review details, :root[data-theme="dark"] .inp,
:root[data-theme="dark"] select, :root[data-theme="dark"] .seg button, :root[data-theme="dark"] .qnav button { background: var(--card); color: var(--text); border-color: var(--line); }
:root[data-theme="dark"] .opt b { background: #20374a; color: var(--text); }
:root[data-theme="dark"] .vt { background: var(--card); }
:root[data-theme="dark"] .vt td { border-color: var(--line); }
:root[data-theme="dark"] .vt tr:nth-child(even) td { background: #182b39; }
:root[data-theme="dark"] .teori { background: #132d3f; color: var(--text); }
:root[data-theme="dark"] .tip { background: #33290f; }
:root[data-theme="dark"] .chart { background: #F4F8FB; }
:root[data-theme="dark"] .seg2 { background: #0E1A24; }
:root[data-theme="dark"] .pbar, :root[data-theme="dark"] .sprog-bar, :root[data-theme="dark"] .ib-track { background: #24384a; }
:root[data-theme="dark"] .hm-t.kosong { background: #24384a !important; color: #93A8B8; }
:root[data-theme="dark"] .fab-cara { background: var(--card); color: var(--text); border-color: var(--line); }
:root[data-theme="dark"] .tandai.on { background: #33290f; }
:root[data-theme="dark"] .ringkasan h3, :root[data-theme="dark"] .teori-h { color: #7CC4EE; }
:root[data-theme="dark"] .sprog-top b, :root[data-theme="dark"] .sprog-best b { color: var(--text); }

/* ===== Halaman login (versi baru) ===== */
.login { max-width: 560px; margin: 8px auto 0; }
.login-top { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.kur-btn { border: 0; background: var(--sky); color: var(--primary-dark); font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 99px; cursor: pointer; }
.kur-btn.on { background: var(--primary); color: #fff; }
.login-brand { display: flex; gap: 14px; align-items: center; }
.login-logo { width: 58px; height: 58px; flex: none; border-radius: 14px; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.login-logo b { color: #fff; font-size: 18px; font-weight: 800; line-height: 1; }
.login-logo i { font-style: normal; background: var(--primary); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.login-brand h1 { font-size: 21px; font-weight: 800; margin: 0 0 2px; }
.login-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-desc { color: var(--muted); margin: 16px 0 22px; max-width: 46ch; }
.login .field label { font-weight: 700; font-size: 15px; }
.login .inp { border-radius: 16px; padding: 15px 16px; border-width: 2px; }
.lis-box { background: #EEF6FC; border: 1.5px solid #BFDDF2; border-radius: 16px; padding: 16px 18px; margin: 8px 0 20px; }
.lis-h { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.lis-box ul { margin: 0; padding-left: 1.3em; font-size: 14px; color: var(--muted); }
.lis-box li { margin-bottom: 6px; }
.lis-box li::marker { color: var(--primary); }
.lis-box li b { color: var(--primary-dark); font-weight: 700; }
.login-go { border-radius: 16px; padding: 15px; font-size: 16px; box-shadow: 0 4px 0 var(--primary-dark); }
.login-go:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-dark); }
.kur-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 20px; max-height: 340px; overflow: auto; font-size: 14px; }
.kur-m { margin-bottom: 10px; }
.kur-m ol { margin: 4px 0 0; padding-left: 1.4em; color: var(--muted); }
:root[data-theme="dark"] .lis-box { background: #132d3f; border-color: #234257; }

/* ===== Navigasi bawah ===== */
body { padding-bottom: 84px; }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-weight: 700; font-size: 13px; padding: 0; border: 0 !important; }
.bnav a svg { width: 44px; height: 32px; padding: 4px 10px; border-radius: 99px; box-sizing: border-box; }
.bnav a.on { color: var(--primary); }
.bnav a.on svg { background: var(--sky); }
.fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
.foot { padding-bottom: 20px; }

/* ===== Beranda ===== */
.home-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 6px 0 16px; }
.sapa { color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.home-head h1 { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
.hh-title { font-size: 26px !important; align-self: center; }
.home-act { display: flex; gap: 8px; align-items: center; flex: none; }
.home-act .kur-btn { padding: 11px 16px; font-size: 14px; }
.lanjut { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px; margin-bottom: 14px; }
.lanjut .eyebrow { color: #7CC4EE; }
.lanjut h2 { font-size: 22px; font-weight: 800; margin: 6px 0 8px; }
.lanjut-meta { color: #B6C6D1; font-size: 14px; }
.lanjut-bar { height: 6px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; margin: 16px 0 18px; }
.lanjut-bar i { display: block; height: 100%; background: #7CC4EE; }
.lanjut-btn { border-radius: 99px; padding: 13px 26px; font-size: 16px; gap: 10px; }
.lanjut-btn svg { width: 18px; height: 18px; fill: none; }
.prog-card { padding: 18px 20px; }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.prog-top span { font-size: 22px; font-weight: 800; }
.prog-bar { height: 8px; background: #E8EEF2; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.prog-bar i { display: block; height: 100%; background: var(--primary); }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 12px; }
.sec-row h2 { font-size: 19px; font-weight: 800; margin: 0; }
.sec-row > span { color: var(--muted); font-weight: 600; font-size: 14px; }
.mcard2 { display: block; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 12px; transition: border-color .12s; }
.mcard2:hover { border-color: var(--primary); }
.mc-top { display: flex; gap: 14px; }
.mc-ico { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.mc-ico.i0 { background: #E2F0FB; color: #0B7BC4; } .mc-ico.i1 { background: #E1F5EE; color: #12805C; } .mc-ico.i2 { background: #EEE9FB; color: #6A4FC9; }
.mc-ico.i3 { background: #FFF2DC; color: #B7791F; } .mc-ico.i4 { background: #FCE7E5; color: #C2463A; }
.mc-body { flex: 1; min-width: 0; }
.mc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-no { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mc-st { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #EEF2F5; color: var(--muted); white-space: nowrap; }
.mc-st.mid { background: #FFF2DC; color: #B7791F; } .mc-st.ok { background: var(--ok-bg); color: var(--ok); }
.mcard2 h3 { font-size: 17px; font-weight: 800; margin: 6px 0 4px; }
.mcard2 p { margin: 0; color: var(--muted); font-size: 14px; }
.mc-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.mc-bar { flex: 1; height: 6px; background: #E8EEF2; border-radius: 99px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--primary); }
.mc-foot b { font-size: 14px; white-space: nowrap; }

/* ===== Jendela (kurikulum, tips) ===== */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(8,18,26,.5); display: none; align-items: flex-end; justify-content: center; }
.modal.on { display: flex; }
.modal-box { background: var(--card); color: var(--text); width: min(560px, 100%); max-height: 80vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 20px 28px; }
@media (min-width: 640px) { .modal { align-items: center; } .modal-box { border-radius: 20px; } }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-h b { font-size: 18px; }
.modal-x { border: 0; background: #EEF2F5; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; color: var(--muted); }
.tips-ol { margin: 0; padding-left: 1.2em; } .tips-ol li { margin-bottom: 8px; }

/* ===== Tryout ===== */
.to-h { font-size: 17px; }
.pill-o { background: var(--sky); color: var(--primary-dark); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.to-card { border-radius: 20px; padding: 22px; }
.to-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.to-tag.t0 { background: #E2F0FB; color: #0B7BC4; } .to-tag.t1 { background: #EEE9FB; color: #6A4FC9; } .to-tag.t2 { background: #FFF2DC; color: #B7791F; }
.to-title { font-size: 26px; font-weight: 800; margin: 8px 0 14px; }
.to-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.to-chips span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 12px; font-weight: 700; font-size: 13.5px; }
.to-chips span.dash { border-style: dashed; color: var(--muted); font-weight: 600; }
.to-info { background: #F2F5F8; border-radius: 12px; padding: 13px 16px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.btn3d { border-radius: 14px; padding: 14px; font-size: 16px; box-shadow: 0 4px 0 var(--primary-dark); }
.btn3d:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-dark); }
.poin-hasil { font-size: 22px; font-weight: 800; color: var(--ink); margin: 6px 0 2px; } .poin-hasil small { font-size: 14px; color: var(--muted); }

/* ===== Progres ===== */
.st3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st3 .card { margin: 0; padding: 16px; border-radius: 18px; }
.st-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-v { font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.st3 .meta { font-size: 12.5px; }
.pb-chart { display: flex; gap: 8px; height: 220px; margin-bottom: 16px; }
.pb-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 26px; }
.pb-bars { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; border-bottom: 0; }
.pb-col { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 0; }
.pb-track { flex: 1; width: 100%; max-width: 46px; background: #EEF2F5; border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.pb-track i { display: block; width: 100%; background: var(--primary); border-radius: 10px; min-height: 0; }
.pb-col b { font-size: 14px; color: var(--muted); }
.pb-col.on b { color: var(--primary); }
.pb-col.on .pb-track { outline: 2px solid var(--primary); outline-offset: 2px; }
.pb-detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #F2F5F8; border-radius: 14px; padding: 14px 16px; }
.pb-detail .btn3d { flex: none; padding: 10px 16px; font-size: 14px; }
.ok-box { display: flex; gap: 14px; align-items: center; background: var(--ok-bg); border: 1px solid #BFE6D2; border-radius: 18px; padding: 18px 20px; color: var(--text); }
.ok-box > span { color: var(--ok); } .ok-box b { color: var(--ok); font-size: 16px; }
.ul-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ul-row:last-child { border: 0; }
.ul-kode { color: var(--primary); font-weight: 700; width: 36px; }
.ul-sc { color: var(--bad); }
.tr-row { padding: 12px 0; border-bottom: 1px solid var(--line); } .tr-row:last-child { border: 0; }
.tr-n { font-size: 12.5px; }
.note-box { background: var(--sky); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.note-box b { color: var(--text); }
@media (max-width: 420px) {
  .home-head h1 { font-size: 20px; } .home-act .kur-btn { padding: 9px 12px; font-size: 13px; } .home-act .ibtn { width: 40px; height: 40px; }
  .st-v { font-size: 21px; } .st3 .card { padding: 12px; } .pb-detail { flex-direction: column; align-items: stretch; }
}
:root[data-theme="dark"] .bnav { background: #101E29; }
:root[data-theme="dark"] .mc-st, :root[data-theme="dark"] .to-info, :root[data-theme="dark"] .pb-detail, :root[data-theme="dark"] .pb-track, :root[data-theme="dark"] .modal-x { background: #1B2E3C; }
:root[data-theme="dark"] .prog-bar, :root[data-theme="dark"] .mc-bar { background: #24384a; }
:root[data-theme="dark"] .poin-hasil { color: var(--text); }

/* ===== Penyesuaian layar sempit & huruf besar ===== */
html, body { max-width: 100%; overflow-x: hidden; }
.home-head { flex-wrap: wrap; }
.home-head > div:first-child { flex: 1 1 200px; min-width: 0; }
.home-act { flex-wrap: wrap; justify-content: flex-end; }
.prof-head, .mc-row, .sec-row, .lis-row, .pb-detail, .prog-top { flex-wrap: wrap; }
.st3 .card { min-width: 0; overflow-wrap: anywhere; }
.qtop { flex-wrap: wrap; }
img, svg, table { max-width: 100%; }
@media (max-width: 360px) {
  .st3 { grid-template-columns: 1fr 1fr; }
  .st3 .card:last-child { grid-column: span 2; }
  .to-chips span { font-size: 12.5px; padding: 6px 9px; }
  .bnav a { font-size: 12px; }
  .wrap { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 900px) {
  .bnav { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 100%); bottom: 14px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(11,34,51,.12); padding-bottom: 8px; }
}
.seg2 button { min-width: 0; padding: 10px 2px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) { .seg2 button { font-size: 12.5px; } }

/* ===== Materi singkat ===== */
.teori-ul { margin: 6px 0 0; padding-left: 1.15em; }
.teori-ul li { margin-bottom: 7px; line-height: 1.6; }
.teori-ul li::marker { color: var(--primary); }
.baca-card .teori-h { font-size: 12.5px; margin-bottom: 8px; }
.baca-isi { font-size: 16px; color: var(--text); margin-bottom: 18px; }
.teori-lagi { margin-bottom: 12px; }
.teori-lagi summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 8px; }

/* ===== Mode gelap ramah anak: kontras cukup, warna lembut, tidak menyilaukan ===== */
:root[data-theme="dark"] {
  --bg: #121E28; --card: #1A2935; --text: #EEF3F7; --muted: #B4C4CF; --line: #2E4152;
  --primary: #4FB3EE; --primary-dark: #2A8FCF; --sky: #1F3A4E; --sky-2: #275069;
  --ok: #5ED39A; --ok-bg: #173A2C; --bad: #FF8A80; --bad-bg: #42221F; --warn: #FFC56B; --ink: #0B151D;
}
:root[data-theme="dark"] a, :root[data-theme="dark"] .links a.on, :root[data-theme="dark"] .bnav a.on { color: #6EC3F2; }
:root[data-theme="dark"] .bnav a { color: #B4C4CF; }
:root[data-theme="dark"] .btn { background: #3AA0DE; color: #08131B; }
:root[data-theme="dark"] .btn:hover { background: #57B4EA; }
:root[data-theme="dark"] .btn3d, :root[data-theme="dark"] .login-go { box-shadow: 0 4px 0 #1E6E9F; }
:root[data-theme="dark"] .btn.ghost { background: #234257; color: #EEF3F7; }
:root[data-theme="dark"] .btn.danger { background: #E5675C; color: #fff; }
:root[data-theme="dark"] .btn.light { background: #EEF3F7; color: #0B151D; }
:root[data-theme="dark"] .chip, :root[data-theme="dark"] .badge { background: #24384a; color: #DCE7EE; }
:root[data-theme="dark"] .chip.sedang, :root[data-theme="dark"] .badge.mid, :root[data-theme="dark"] .mc-st.mid { background: #3D3220; color: #FFD38A; }
:root[data-theme="dark"] .chip.sulit { background: #42221F; color: #FFA79F; }
:root[data-theme="dark"] .mc-st.ok, :root[data-theme="dark"] .badge.ok, :root[data-theme="dark"] .lis-pill { background: #173A2C; color: #7FE0B0; }
:root[data-theme="dark"] .opt.sel { background: #1F3A4E; border-color: #4FB3EE; }
:root[data-theme="dark"] .opt.ok b, :root[data-theme="dark"] .opt.bad b, :root[data-theme="dark"] .opt.sel b { color: #08131B; }
:root[data-theme="dark"] .fb.ok { border-color: #2F6B50; } :root[data-theme="dark"] .fb.bad { border-color: #7A3A35; }
:root[data-theme="dark"] .teori { background: #172F40; border-left-color: #4FB3EE; color: #EEF3F7; }
:root[data-theme="dark"] .vt th { background: #0B151D; color: #EEF3F7; }
:root[data-theme="dark"] .vt td { color: #EEF3F7; }
:root[data-theme="dark"] .tip { background: #3D3220; color: #FFF3DD; }
:root[data-theme="dark"] .key { background: #1F3A4E; }
:root[data-theme="dark"] .mc-ico.i0 { background: #1F3A4E; color: #7CC4F0; } :root[data-theme="dark"] .mc-ico.i1 { background: #173A2C; color: #7FE0B0; }
:root[data-theme="dark"] .mc-ico.i2 { background: #2C2550; color: #C1B2FF; } :root[data-theme="dark"] .mc-ico.i3 { background: #3D3220; color: #FFD38A; }
:root[data-theme="dark"] .mc-ico.i4 { background: #42221F; color: #FFA79F; }
:root[data-theme="dark"] .to-tag.t0 { background: #1F3A4E; color: #7CC4F0; } :root[data-theme="dark"] .to-tag.t1 { background: #2C2550; color: #C1B2FF; } :root[data-theme="dark"] .to-tag.t2 { background: #3D3220; color: #FFD38A; }
:root[data-theme="dark"] .pill-o, :root[data-theme="dark"] .kur-btn { background: #1F3A4E; color: #A9DBF7; }
:root[data-theme="dark"] .tandai.on { background: #3D3220; color: #FFD38A; border-color: #FFC56B; }
:root[data-theme="dark"] .ok-box { border-color: #2F6B50; } :root[data-theme="dark"] .ok-box b, :root[data-theme="dark"] .ok-box > span { color: #7FE0B0; }
:root[data-theme="dark"] .note-box { background: #1F3A4E; color: #C9D8E2; }
:root[data-theme="dark"] .lanjut .eyebrow, :root[data-theme="dark"] .eyebrow { color: #8FD0F5; }
:root[data-theme="dark"] .ul-sc { color: #FFA79F; }
:root[data-theme="dark"] .lis-box li b { color: #A9DBF7; }
:root[data-theme="dark"] .form-err { color: #FFA79F; } :root[data-theme="dark"] .form-ok { color: #7FE0B0; }
:root[data-theme="dark"] .toast { background: #EEF3F7; color: #0B151D; } :root[data-theme="dark"] .toast button { color: #4B5D6B; }

/* ===== Papan coretan ===== */
.coret { position: fixed; inset: 0; z-index: 95; background: rgba(8,18,26,.55); display: none; padding: 8px; }
.coret.on { display: flex; align-items: stretch; justify-content: center; }
.coret-box { background: #fff; width: min(720px, 100%); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.coret-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.coret-h b { flex: 1; display: flex; gap: 10px; align-items: center; font-size: 17px; color: #0B2233; }
.coret-undo, .coret-hapus { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line); background: #fff; color: #0B2233; font-weight: 700; padding: 9px 13px; border-radius: 12px; box-shadow: 0 3px 0 #DCE3E8; cursor: pointer; }
.coret-undo:disabled { opacity: .42; cursor: default; box-shadow: none; }
.coret-x { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 24px; color: #0B2233; cursor: pointer; }
.coret canvas { flex: 1; width: 100%; touch-action: none; cursor: crosshair; background: #fff; }
.coret-f { border-top: 1px solid var(--line); padding: 12px 16px; text-align: center; color: #5B6B7A; font-size: 13.5px; }
:root[data-theme="dark"] .coret-box, :root[data-theme="dark"] .coret canvas, :root[data-theme="dark"] .coret-undo, :root[data-theme="dark"] .coret-hapus, :root[data-theme="dark"] .coret-x { background: #1A2935; color: #EEF3F7; }
:root[data-theme="dark"] .coret-h b { color: #EEF3F7; } :root[data-theme="dark"] .coret-undo, :root[data-theme="dark"] .coret-hapus { box-shadow: 0 3px 0 #0B151D; }
:root[data-theme="dark"] .coret-undo:disabled { box-shadow: none; }
:root[data-theme="dark"] .coret-f { color: #B4C4CF; }
.coret-h b { font-size: 15.5px; min-width: 0; } .coret-h b svg { flex: none; }
@media (max-width: 420px) { .coret-h { gap: 6px; padding: 12px; } .coret-h b { font-size: 13.5px; line-height: 1.25; } .coret-undo, .coret-hapus { padding: 7px 10px; font-size: 13px; gap: 4px; } .coret-x { width: 38px; height: 38px; } }
:root[data-theme="dark"] .mcard-no { color: #8FD0F5 !important; }
:root[data-theme="dark"] .prof-id .av, :root[data-theme="dark"] .pill.go { color: #08131B; }
:root[data-theme="dark"] .btn.danger { background: #B93A30; color: #fff; }
:root[data-theme="dark"] .ibadge { color: #08131B; }

/* ===== Kartu materi singkat (sebelum soal) ===== */
.baca-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 6px 0 16px; }
.baca-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.baca-head h1 { font-size: 21px; font-weight: 800; margin: 4px 0 0; line-height: 1.3; }
.baca-card2 { background: #EAF5FC; border-radius: 22px; padding: 20px; }
.baca-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.baca-ico { width: 52px; height: 52px; flex: none; border-radius: 14px; background: #fff; color: var(--primary); display: grid; place-items: center; }
.baca-title { font-size: 20px; font-weight: 800; }
.baca-card2 .baca-isi { margin-bottom: 18px; }
:root[data-theme="dark"] .baca-card2 { background: #172F40; }
:root[data-theme="dark"] .baca-ico { background: #0B151D; color: #6EC3F2; }

/* Label navigasi bawah 2px lebih kecil */
.bnav a { font-size: 11px; }
@media (max-width: 360px) { .bnav a { font-size: 10px; } }
.login-logo { background: none; display: block; object-fit: contain; }

/* ---------- Soal tambahan (figur, tabel, daftar pernyataan) ---------- */
.v3fig figure { margin: 0 auto; max-width: 560px; }
.v3fig svg, .v3fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.v3fig figcaption { font-size: 12px; color: var(--muted, #5b6b78); text-align: center; margin-top: 6px; }
.qtext ol.st, .q-text ol.st, ol.st { list-style: none; padding: 0; margin: 8px 0; }
ol.st li { padding-left: 30px; text-indent: -30px; margin: 3px 0; }
.tw { overflow-x: auto; margin: 8px 0; }
table.t { border-collapse: collapse; width: 100%; font-size: 0.95em; }
table.t th, table.t td { border: 1px solid var(--line, #d9e2ea); padding: 6px 8px; vertical-align: top; text-align: left; }
table.t th { background: rgba(11, 123, 196, 0.08); font-weight: 700; }

/* ---------- Gaya gambar & grafik bernuansa alami ---------- */
.chart { background: #FCFAF4; border: 1px solid #E6DFCC; }
.chart .gl { stroke: #E9E2D0; stroke-dasharray: 3 4; }
.chart .tk { fill: #6B6455; }
.chart .lb, .chart .lg { fill: #3A3428; }
.chart .vl { fill: #2F5D7A; }
.v3fig .chart.il, .v3fig svg { border: 0; background: none; max-width: 100%; }
.v3fig figure { overflow: hidden; }
.v3fig svg { box-shadow: 0 0 0 1px #E6DFCC; }
.vcap { font-style: normal; font-size: 12px; }
.vt-wrap { border: 1px solid #E6DFCC; border-radius: 12px; overflow: hidden; overflow-x: auto; }
.vt { background: #FFFDF8; font-size: 14.5px; }
.vt th { background: #E9F1F6; color: #1F3A4D; font-weight: 700; border-bottom: 2px solid #C9DCE8; }
.vt td { border: 0; border-bottom: 1px solid #EEE7D6; }
.vt tr:last-child td { border-bottom: 0; }
.vt tr:nth-child(even) td { background: #FAF6EC; }
:root[data-theme="dark"] .vt-wrap { border-color: #2A3B48; }
:root[data-theme="dark"] .vt th { background: #1C3242; color: #EEF3F7; border-bottom-color: #2A4558; }
:root[data-theme="dark"] .vt td { border-bottom-color: #233544; }
:root[data-theme="dark"] .vt tr:nth-child(even) td { background: #182b39; }
:root[data-theme="dark"] .chart { background: #F7F3E8; }
/* Jendela kurikulum: huruf lebih kecil */
.modal-box .kur-m { font-size: 13.5px; margin-bottom: 8px; }
.modal-box .kur-m b { font-size: 14px; }
.modal-box .kur-m ol { margin-top: 2px; }
.modal-box .kur-m li { line-height: 1.45; }
/* Ruang ekstra di bawah halaman agar tombol Install tidak menutupi tombol terakhir */
body.ada-fab { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
/* Tombol install versi ringkas + tab sembunyi */
.fab-go { font-size: 11.5px; padding: 6px 3px 6px 11px; gap: 5px; }
.fab-x { font-size: 17px; padding: 0 9px 0 6px; margin-left: 4px; }
body.ada-fab { padding-bottom: calc(122px + env(safe-area-inset-bottom)); }
.fab.kecil { right: 0; }
.fab-buka { border: 0; background: var(--ink); color: #fff; font-size: 18px; line-height: 1; padding: 6px 7px 8px 9px; border-radius: 10px 0 0 10px; box-shadow: 0 4px 14px rgba(11,34,51,.25); opacity: .85; }
.fab-buka:hover { opacity: 1; }
#b-pasang.btn, #b-cara.btn { font-size: 12px; padding: 7px 12px; border-radius: 8px; }
.pasang-row .pill { font-size: 11.5px; padding: 5px 10px; border-radius: 7px; }
