/* ============== Simulasi CAT: daftar paket, layar ujian, hasil ==============
   Peran warna: turquoise = sudah dijawab / tombol utama; coral = waktu & ragu-ragu (hal mendesak). */

/* ---------- Daftar paket ---------- */
.cat-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.pk-list { display: grid; gap: 1rem; }
.pk-card { padding: 1.6rem; display: grid; gap: 1.2rem; }
.pk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pk-head h2 { font-size: 1.5rem; }
.pk-head p { margin-top: 0.4rem; font-size: 0.9375rem; max-width: 34rem; }
.pk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.pk-facts div { padding: 0.8rem 0.9rem; border-radius: 1rem; background: var(--sand-2); }
.pk-facts dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.pk-facts dd { margin: 0.15rem 0 0; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pk-last { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.pk-last b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pk-last b span { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.pk-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pk-soon { display: grid; gap: 0.5rem; justify-items: start; }
.pk-soon h3 { font-size: 1.125rem; }
.rules { position: sticky; top: 5rem; }
.rules h3 { font-size: 1.0625rem; margin-bottom: 0.8rem; }
.rules ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.rules li { display: flex; gap: 0.7rem; font-size: 0.9375rem; color: var(--ink-2); }
.rules li > span:first-child { color: var(--coral-deep); margin-top: 2px; }

/* ---------- Layar ujian ---------- */
.exam { position: relative; z-index: 2; min-height: 100dvh; display: flex; flex-direction: column; }
.exam-loading, .exam-msg { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: start; }
.ex-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: calc(0.6rem + env(safe-area-inset-top)) 1.5rem 0.6rem;
  background: color-mix(in srgb, var(--sand) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--hair);
}
.ex-title { display: grid; min-width: 0; line-height: 1.3; }
.ex-title b { font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-title span { font-size: 0.8125rem; color: var(--muted); }
.ex-timer {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: var(--coral-soft); color: var(--coral-deep);
  font-size: 1.0625rem; font-variant-numeric: tabular-nums;
}
.ex-timer.low { background: var(--coral); color: #2B0D07; }
.ex-save { font-size: 0.8125rem; color: var(--muted); min-width: 7.5rem; text-align: right; }
.ex-save.ok { color: var(--ok); }
.ex-save.bad { color: var(--bad); font-weight: 600; }
.ex-finish { min-height: 44px; }

.ex-body { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.2rem 1.5rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.ex-main { display: grid; gap: 1rem; min-width: 0; }
.ex-q { padding: 1.6rem; scroll-margin-top: 5rem; }
.ex-q-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ex-no { font-weight: 700; font-size: 1rem; margin-right: 0.3rem; }
.ex-stem { font-size: 1.0625rem; line-height: 1.7; max-width: 70ch; white-space: pre-line; }
.ex-stem-wrap { display: grid; gap: 0.75rem; }
.q-tbl-wrap { overflow-x: auto; max-width: 100%; }
.q-tbl {
  border-collapse: separate; border-spacing: 0; min-width: 240px; max-width: 460px; width: auto;
  border: 1px solid var(--hair-2); border-radius: 0.85rem; overflow: hidden;
  background: var(--paper); font-variant-numeric: tabular-nums;
}
.q-tbl.has-head { min-width: 280px; }
.q-tbl th {
  background: var(--teal-deep); color: #FFFFFF; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.6rem 1.25rem; text-align: center;
  border-bottom: 1px solid var(--hair-2);
}
.q-tbl th + th { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.q-tbl td {
  padding: 0.58rem 1.25rem; text-align: center; font-weight: 600; font-size: 1rem;
  color: var(--ink); border-top: 1px solid var(--hair);
}
.q-tbl tbody tr:first-child td { border-top: 0; }
.q-tbl td + td { border-left: 1px solid var(--hair); }
.q-tbl.has-head tbody tr:nth-child(even) td { background: var(--teal-soft); }
.q-tbl .q-tbl-x { background: var(--teal-soft); color: var(--teal-deep); font-weight: 800; }
.cb-q .q-tbl { border-radius: 4px; border-color: #CBD5E1; background: #FFFFFF; }
.cb-q .q-tbl th { background: #1E5C8A; color: #FFFFFF; }
.cb-q .q-tbl td { color: #0F172A; }
.ex-opts { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.ex-opt {
  display: flex; align-items: flex-start; gap: 0.9rem; width: 100%; min-height: 56px;
  padding: 0.75rem 1rem; border-radius: 1.1rem; text-align: start;
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair-2);
  transition: box-shadow 300ms var(--spring), background-color 300ms var(--spring), transform 200ms var(--spring);
}
.ex-opt:hover { box-shadow: 0 0 0 1.5px var(--teal-deep); }
.ex-opt:active { transform: scale(0.995); }
.ex-opt.on { background: var(--teal-soft); box-shadow: 0 0 0 2px var(--teal-deep); }
.ex-letter { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 0.9375rem; box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.ex-opt.on .ex-letter { background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.ex-text { padding-top: 0.35rem; font-size: 1rem; line-height: 1.55; }

.ex-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.6rem; }
.ex-nav .btn { gap: 0.4rem; }
.ex-nav [data-act='next'] { justify-self: end; }
.ex-nav [data-act='prev'] { justify-self: start; }
.ex-ragu.on { background: var(--coral); color: #2B0D07; box-shadow: none; }
.btn[disabled].ghost { opacity: 0.4; }

.ex-side { position: sticky; top: 5.2rem; padding: 1.2rem; }
.ex-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.ex-side-head h2 { font-size: 1rem; }
.ex-side-x { display: none; }
.ex-grid { display: grid; grid-template-columns: repeat(5, 44px); gap: 0.4rem; justify-content: space-between; }
.ex-num { width: 44px; height: 44px; border-radius: 12px; font-weight: 600; font-size: 0.875rem; font-variant-numeric: tabular-nums; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); transition: background-color 250ms var(--spring), box-shadow 250ms var(--spring); }
.ex-num:hover { box-shadow: inset 0 0 0 1.5px var(--teal-deep); }
.ex-num.ans { background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.ex-num.flag { background: var(--coral-soft); color: var(--coral-deep); box-shadow: inset 0 0 0 2px var(--coral); }
.ex-num.ans.flag { background: var(--coral); color: #2B0D07; box-shadow: none; }
.ex-num.now { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.ex-legend { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.4rem; font-size: 0.8125rem; color: var(--ink-2); }
.ex-legend li { display: flex; align-items: center; gap: 0.5rem; }
.ex-legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.cat-lg { width: 14px; height: 14px; border-radius: 4px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); }
.cat-lg.ans { background: var(--teal); box-shadow: none; }
.cat-lg.flag { background: var(--coral-soft); box-shadow: inset 0 0 0 2px var(--coral); }
.ex-grid-btn { display: none; }

/* ---------- Hasil ---------- */
.res-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.res-top { margin-bottom: 1.5rem; }
.res-score { grid-column: span 7; }
.res-sub { grid-column: span 5; }
.s-bars.wide .s-row { grid-template-columns: 36px 1fr 64px; }
.s-row em small { color: var(--muted); font-weight: 500; }
.res-sub .sub-list li { grid-template-columns: minmax(0, 1fr) 90px 48px; }
.sub-name { display: grid; min-width: 0; }
.sub-name b { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-name span { font-size: 0.75rem; color: var(--muted); }
.sub-list em { font-style: normal; font-size: 0.8125rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rv-head h2 { font-size: 1.5rem; }
.rv-filter { grid-template-columns: repeat(4, auto); margin: 0; }
.rv-filter b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-list { display: grid; gap: 1rem; }
.rv-card { padding: 1.5rem; }
.rv-opts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.5rem; }
.rv-opts li { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.65rem 0.9rem; border-radius: 1rem; box-shadow: 0 0 0 1px var(--hair); flex-wrap: wrap; }
.rv-opts li .ex-text { flex: 1; min-width: 12rem; padding-top: 0.3rem; }
.rv-opts li.key { background: var(--ok-soft); box-shadow: 0 0 0 1.5px var(--ok); }
.rv-opts li.key .ex-letter { background: var(--ok); color: #FFFFFF; box-shadow: none; }
.rv-opts li.pick { background: var(--bad-soft); box-shadow: 0 0 0 1.5px var(--bad); }
.rv-opts li.pick .ex-letter { background: var(--bad); color: #FFFFFF; box-shadow: none; }
.rv-opts li.pick-key { background: var(--ok-soft); box-shadow: 0 0 0 2px var(--ok); }
.rv-opts li.pick-key .ex-letter { background: var(--ok); color: #FFFFFF; box-shadow: none; }
:root[data-theme='dark'] .rv-opts li.key .ex-letter, :root[data-theme='dark'] .rv-opts li.pick-key .ex-letter, :root[data-theme='dark'] .rv-opts li.pick .ex-letter { color: #0B1F1A; }
.rv-pt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); padding-top: 0.4rem; font-variant-numeric: tabular-nums; }
.rv-tag { align-self: center; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--night); color: var(--night-text); white-space: nowrap; }
.rv-exp { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 1rem; background: var(--sand-2); }
.rv-exp b { font-size: 0.875rem; }
.rv-exp p { margin-top: 0.35rem; color: var(--ink-2); max-width: 75ch; }
.rv-empty { padding: 1rem 0; }

/* ---------- Responsif ---------- */
@media (max-width: 1023px) {
  .cat-grid { grid-template-columns: 1fr; }
  .rules { position: static; }
  .res-score, .res-sub { grid-column: span 12; }

  .ex-top { padding-left: 1rem; padding-right: 1rem; gap: 0.6rem; }
  .ex-save { display: none; }
  .ex-body { grid-template-columns: 1fr; padding: 1rem 1rem calc(9rem + env(safe-area-inset-bottom)); }
  .ex-q { padding: 1.2rem; }
  /* Navigasi soal menempel di bawah, sebagai "menu bawah" (kaca diperbolehkan). */
  .ex-nav {
    position: fixed; z-index: 15; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
    padding: 0.4rem; border-radius: 1.5rem; max-width: 560px; margin: 0 auto;
    background: color-mix(in srgb, var(--sand) 70%, transparent);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -16px rgba(18, 41, 43, 0.35);
  }
  .ex-nav .btn { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
  .ex-grid-btn {
    display: inline-flex; position: fixed; z-index: 15; left: 50%; transform: translateX(-50%);
    bottom: calc(5.4rem + env(safe-area-inset-bottom)); min-height: 44px; gap: 0.5rem;
    background: var(--paper); box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-float);
  }
  .ex-side {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 75dvh; overflow-y: auto; border-radius: 1.6rem 1.6rem 0 0;
    padding: 1.2rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--paper); box-shadow: var(--shadow-float);
    transform: translateY(105%); transition: transform 450ms var(--spring); visibility: hidden;
  }
  .ex-side.open { transform: none; visibility: visible; }
  .ex-side-x { display: grid; }
  .ex-grid { grid-template-columns: repeat(auto-fill, 44px); gap: 0.45rem; justify-content: start; }
}
@media (max-width: 640px) {
  .pk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-actions .btn, .res-actions .btn { flex: 1 1 100%; }
  .ex-title span { display: none; }
  .ex-timer { padding: 0 0.8rem; font-size: 1rem; }
  .ex-finish { padding: 0.4rem 0.9rem; }
  .ex-stem { font-size: 1rem; }
  .ex-nav .btn .ic { display: none; }
  .rv-filter { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .rv-filter button { padding: 0.5rem 0.3rem; font-size: 0.8125rem; }
  .rv-card { padding: 1.1rem; }
  .sub-list li { grid-template-columns: minmax(0, 1fr) 64px 44px; }
  .res-sub .sub-list li { grid-template-columns: minmax(0, 1fr) 64px 44px; }
}
@media (max-width: 640px) { .res-actions { width: 100%; } }

/* ---------- Detail paket, peringkat, sebaran, ulas ---------- */
.pk-tabs { display: inline-grid; grid-template-columns: repeat(3, auto); margin-bottom: 1rem; }
.pk-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border-radius: 0.85rem; font-weight: 600; font-size: 0.875rem; color: var(--muted); transition: background-color 400ms var(--spring), color 400ms var(--spring); }
.pk-tabs a.on { background: var(--field-bg); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 12px -6px rgba(18, 41, 43, 0.3); }
:root[data-theme='dark'] .pk-tabs a.on { background: rgba(255, 255, 255, 0.1); }
.pk-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.pk-pg { font-size: 0.875rem; }
.rk-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.rk-meta { margin: 1rem 0; font-size: 0.875rem; }
.rk-table { display: grid; gap: 0.3rem; }
.rk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 56px 56px 56px 64px; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border-radius: 0.9rem; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.rk-row.me { background: var(--teal-soft); }
.rk-headrow { font-size: 0.75rem; font-weight: 600; color: var(--muted); padding-top: 0; padding-bottom: 0.2rem; }
.rk-name { display: grid; min-width: 0; }
.rk-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name small { font-size: 0.75rem; color: var(--muted); }
.rk-total { font-weight: 700; }
.dot-ok, .dot-no { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 0.3rem; vertical-align: middle; }
.dot-ok { background: var(--ok); } .dot-no { background: var(--coral); }
.sb-wrap { display: grid; gap: 1rem; }
.sb-facts dd small { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.sb-me { margin-top: 1rem; }
.hist-chart { display: grid; grid-template-columns: repeat(10, 1fr); align-items: end; gap: 0.4rem; height: 200px; }
.hc-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.3rem; }
.hc-col i { width: 100%; max-width: 40px; height: var(--h, 0%); min-height: 2px; border-radius: 8px 8px 3px 3px; background: var(--teal-2); }
.hc-col.me i { background: var(--coral); }
.hc-n { font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hc-l { font-size: 0.75rem; color: var(--muted); }
.ulas-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; transition: transform 400ms var(--spring); }
.ulas-link:hover { transform: translateY(-2px); }
.ulas-link > span:nth-child(2) { flex: 1; display: grid; gap: 0.15rem; }
.ulas-link .muted { font-size: 0.875rem; }
.ulas-intro { margin-bottom: 1.2rem; max-width: 60ch; }
.ulas-src { font-size: 0.8125rem; margin-left: auto; }
.ulas-actions { margin-top: 1rem; display: flex; justify-content: flex-end; }
.ulas-actions .btn .ic { color: var(--ok); }
@media (max-width: 1023px) { .pk-detail { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pk-tabs { display: grid; width: 100%; }
  .rk-filter { grid-template-columns: 1fr; }
  .rk-row { grid-template-columns: 30px minmax(0, 1fr) 40px 40px 40px 48px; gap: 0.3rem; font-size: 0.8125rem; padding: 0.5rem 0.3rem; }
  .ulas-src { margin-left: 0; width: 100%; }
  .ulas-actions .btn { width: 100%; }
}

/* ---------- Latihan Kilat ---------- */
.kl-resume { margin-bottom: 1rem; }
.kl-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.kl-setup { display: grid; gap: 0.8rem; }
.kl-setup h3 { font-size: 1rem; margin-top: 0.4rem; }
.kl-kat, .kl-jml { margin: 0; }
.kl-jml { grid-template-columns: repeat(4, 1fr); }
.sub-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem; }
.sub-chip { display: grid; gap: 0.1rem; text-align: start; min-height: 56px; padding: 0.6rem 0.8rem; border-radius: 1rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); border-left: 0; transition: box-shadow 300ms var(--spring), background-color 300ms var(--spring); }
.sub-chip:hover { box-shadow: inset 0 0 0 1.5px var(--teal-deep); }
.sub-chip.on { background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal-deep); }
.sc-name { font-weight: 600; font-size: 0.9375rem; }
.sc-meta { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.sub-chip.low .sc-meta::before, .sub-chip.mid .sc-meta::before, .sub-chip.high .sc-meta::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sub-chip.low .sc-meta::before { background: var(--coral); }
.sub-chip.mid .sc-meta::before { background: #E8B04A; }
.sub-chip.high .sc-meta::before { background: var(--ok); }
.kl-legend { font-size: 0.75rem; margin-top: 0.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; }
.kl-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 0.3rem; }
.lg-low { background: var(--coral); } .lg-mid { background: #E8B04A; } .lg-high { background: var(--ok); }
.kl-avail { font-size: 0.875rem; }
.kl-sesi { display: grid; gap: 0.85rem; padding-bottom: 5.5rem; }
.kl-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: start; }
.kl-bar-l { min-width: 0; display: grid; gap: 0.1rem; }
.kl-crumb { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.kl-title { margin: 0; font-size: clamp(1.35rem, 2.8vw, 1.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kl-of { font-size: 0.65em; color: var(--muted); font-weight: 600; }
.kl-bar-r { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.kl-end { min-height: 44px; padding: 0 1rem; font-size: 0.875rem; }

.kl-meter { display: grid; gap: 0.55rem; }
.kl-meter-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.75rem; }
.kl-meter-stat { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kl-meter-stat b { color: var(--ink); font-weight: 700; }
.kl-meter-stat em { font-style: normal; font-weight: 700; }
.kl-meter-stat .st-ok { color: var(--ok); }
.kl-meter-stat .st-bad { color: var(--bad); }
.kl-streak { font-size: 0.78rem; padding: 0.15rem 0.65rem; }

.kl-prog { height: 7px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.kl-prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--teal-deep); border-radius: 99px; transition: width 420ms var(--spring); }

.kl-dots { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding: 0.1rem 0; -webkit-overflow-scrolling: touch; }
.kl-dots::-webkit-scrollbar { display: none; }
.kl-dot { flex: none; min-width: 34px; height: 34px; padding: 0 0.45rem; border-radius: 0.65rem; border: 1px solid var(--hair-2); background: var(--paper); color: var(--ink-2); font-family: var(--font); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.kl-dot:hover { border-color: var(--teal); color: var(--ink); }
.kl-dot.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.kl-dot.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); }
.kl-dot.now { background: var(--night); border-color: var(--night); color: var(--night-text); }

.kl-q { padding: 1.35rem 1.35rem 1.4rem; }
.kl-q .ex-stem { font-size: 1rem; line-height: 1.62; color: var(--ink); max-width: 62ch; text-wrap: pretty; }
.kl-opts { display: grid; gap: 0.6rem; margin-top: 1.15rem; }
.kl-opt { display: flex; align-items: flex-start; gap: 0.8rem; flex-wrap: wrap; padding: 0.8rem 0.95rem; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--hair-2); }
.kl-opt .ex-text { flex: 1; min-width: 12rem; padding-top: 0.25rem; line-height: 1.5; }
.kl-opt.key { background: var(--ok-soft); box-shadow: 0 0 0 1.5px var(--ok); }
.kl-opt.pick { background: var(--bad-soft); box-shadow: 0 0 0 1.5px var(--bad); }
.kl-opt.pick-key { background: var(--ok-soft); box-shadow: 0 0 0 2px var(--ok); }
.kl-opt.key .ex-letter, .kl-opt.pick-key .ex-letter { background: var(--ok); color: #FFFFFF; box-shadow: none; }
.kl-opt.pick .ex-letter { background: var(--bad); color: #FFFFFF; box-shadow: none; }
:root[data-theme='dark'] .kl-opt .ex-letter { color: inherit; }
:root[data-theme='dark'] .kl-opt.key .ex-letter, :root[data-theme='dark'] .kl-opt.pick-key .ex-letter, :root[data-theme='dark'] .kl-opt.pick .ex-letter { color: #0B1F1A; }
.kl-q .rv-exp { outline: none; margin-top: 1.15rem; }
.kl-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.65rem; }
.kl-nav-sp { flex: 1; }
.kl-hint { font-size: 0.875rem; }
.kl-done { display: grid; justify-items: center; text-align: center; gap: 0.8rem; padding: 2rem 1.5rem; }
.kl-done h2 { font-size: 1.5rem; }
.kl-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 480px; }
.kl-rev-h { font-size: 1.25rem; margin: 1.6rem 0 0.8rem; }
.kl-tip { margin-top: 0.4rem; font-size: 0.875rem; }
@media (max-width: 1023px) { .kl-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .kl-q { padding: 1.1rem 1.05rem 1.2rem; }
  .kl-nav .btn { flex: 1; justify-content: center; }
  .kl-nav-sp { display: none; }
  .kl-done .soon-actions .btn { flex: 1 1 100%; }
}

/* Gambar soal (figural): latar putih supaya gambar hitam-putih tetap jelas di mode gelap */
.q-fig { margin: 0.9rem 0 0.2rem; padding: 0.5rem; border-radius: 1rem; background: #FFFFFF; box-shadow: 0 0 0 1px var(--hair-2); max-width: 760px; }
.q-fig img { display: block; width: 100%; height: auto; border-radius: 0.6rem; cursor: zoom-in; }
.zoom-gbr { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #fff; }
.zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.75rem 0.6rem 1rem; border-bottom: 1px solid #e3e5e8; font-size: 0.85rem; color: #4a5658; }
.zoom-tutup { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: #eef1f1; color: #12292B; cursor: pointer; }
.zoom-tutup svg { width: 20px; height: 20px; }
.zoom-isi { flex: 1; overflow: auto; display: flex; padding: 12px; -webkit-overflow-scrolling: touch; }
.zoom-isi img { display: block; margin: auto; width: min(1100px, 230vw); max-width: none; height: auto; flex: none; }
@media (min-width: 900px) { .zoom-bar span { visibility: hidden; } .zoom-isi img { width: min(1400px, 100%); } }
.q-fig + .q-fig { margin-top: 0.6rem; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }

/* Try Out Akbar */
.ak-intro { max-width: 46rem; margin: -0.4rem 0 1rem; }
.ak-card + .ak-card { margin-top: 1rem; }
.ak-card.live { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1.5px var(--coral); }
.ak-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ak-head h2 { font-size: 1.4rem; margin-top: 0.5rem; }
.ak-head p { margin-top: 0.3rem; max-width: 36rem; }
.ak-when { display: flex; gap: 0.5rem; align-items: center; margin: 0.9rem 0 0.2rem; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.ak-when > [data-icon] { color: var(--teal-deep); flex: none; }
.ak-count { font-size: 15px !important; }
.ak-skor { margin-top: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 0.9rem; background: var(--sand-2); font-size: 14px; }
.ak-skor b { font-size: 17px; }
.rk-no { width: 2rem; text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ak-head h2 { font-size: 1.15rem; } .ak-when { font-size: 13px; align-items: flex-start; } }
.ak-card { display: grid; gap: 0.9rem; }
.ak-card .ak-when { margin: 0; }
.ak-card .ak-skor { margin: 0; }

/* ---------- Simulasi CAT: kartu ringkas, label di pojok, dua tombol (2026-11-21) ---------- */
.cat-switch { display: grid; grid-template-columns: 1fr 1fr; max-width: 520px; }
.pk-list .cari { margin: 0; }
.pk-card { position: relative; padding: 1.3rem 1.2rem 1.1rem; gap: 0.9rem; }
.pk-card[hidden] { display: none; }
.pk-card .pk-chips { position: absolute; top: -0.65rem; right: 1rem; display: flex; gap: 0.35rem; }
.pk-card .pk-chips .chip { box-shadow: 0 0 0 2px var(--paper); font-weight: 700; }
.pk-main { display: flex; gap: 0.9rem; align-items: center; }
.pk-txt { min-width: 0; }
.pk-txt h2 { font-size: 1.15rem; line-height: 1.25; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin-top: 0.3rem; font-size: 13px; color: var(--muted); }
.pk-meta span + span::before { content: ''; }
.pk-last { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding: 0.6rem 0.8rem; border-radius: 0.9rem; background: var(--sand-2); font-size: 13.5px; }
.pk-last b { font-size: 15px; }
.ok-t { color: var(--ok); font-weight: 700; } .bad-t { color: var(--bad); font-weight: 700; }
.pk-card .pk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pk-card .pk-actions .btn { width: 100%; }
.ulas-link .mg-ic { flex: none; margin: 0; }
.rules { padding: 0; }
.rules summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 1rem 1.2rem; cursor: pointer; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary h3 { margin: 0; }
.rules summary > [data-icon] { transition: transform 300ms var(--spring); color: var(--muted); }
.rules[open] summary > [data-icon] { transform: rotate(90deg); }
.rules ul { padding: 0 1.2rem 1.2rem; }
@media (min-width: 1024px) { .rules:not([open]) { position: sticky; } }
@media (max-width: 640px) {
  .pk-card { padding: 1.2rem 0.9rem 0.9rem; gap: 0.75rem; }
  .pk-card .pk-chips { right: 0.7rem; }
  .pk-txt h2 { font-size: 1rem; }
  .pk-meta { font-size: 12.5px; gap: 0.15rem 0.7rem; }
  .pk-card .pk-actions .btn { font-size: 13.5px; padding: 0.3rem 0.6rem; }
  .cat-switch { margin-bottom: 0.8rem; }
}
/* Tombol kembali & judul tryout utuh */
.ex-back { flex: none; margin-left: -0.4rem; }
.ex-title b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
@media (max-width: 640px) {
  .ex-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'back title title title' 'back timer save finish'; row-gap: 0.4rem; align-items: center; }
  .ex-back { grid-area: back; align-self: start; }
  .ex-title { grid-area: title; }
  .ex-title b { font-size: 0.95rem; -webkit-line-clamp: 2; }
  .ex-timer { grid-area: timer; justify-self: start; margin-left: 0; min-height: 44px; }
  .ex-save { grid-area: save; }
  .ex-finish { grid-area: finish; min-height: 44px; }
}
/* Keluar ujian: pilihan jeda / batalkan */
.ex-pilih { display: grid; gap: 0.6rem; margin: 0.6rem 0 0.2rem; }
.ex-opsi { display: flex; align-items: flex-start; gap: 0.8rem; width: 100%; padding: 0.8rem 0.9rem; border-radius: 1rem; text-align: left; background: var(--field-bg, #FFFFFF); box-shadow: inset 0 0 0 1.5px var(--hair-2); transition: box-shadow 200ms ease, background-color 200ms ease; }
.ex-opsi:hover { box-shadow: inset 0 0 0 1.5px #22C3CB; }
.ex-opsi > span:last-child { display: grid; gap: 0.15rem; } .ex-opsi b { font-size: 15px; } .ex-opsi small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.ex-opsi-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.ex-opsi-ic.jeda { background: #E6F8F9; color: #0A7F87; } .ex-opsi-ic.batal { background: var(--coral-soft); color: var(--coral-deep); }
.ex-opsi.bahaya:hover, .ex-opsi.yakin { box-shadow: inset 0 0 0 2px #E5533D; background: #FFF1EC; }
.ex-opsi.yakin b { color: var(--coral-deep); }
:root[data-theme='dark'] .ex-opsi.yakin, :root[data-theme='dark'] .ex-opsi.bahaya:hover { background: rgba(229, 83, 61, 0.14); }
.ex-batal-link { margin-top: 0.7rem; text-align: center; font-size: 13.5px; }
.ex-batal-link .link { background: none; }
/* Tryout SKD: kartu ringkas 2 kolom */
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.pk-grid > .empty-row { grid-column: 1 / -1; }
.pk-grid .pk-card { padding: 0.9rem 0.9rem 0.85rem; gap: 0.5rem; align-content: start; }
.pk-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.pk-top .mg-ic { width: 42px; height: 42px; border-radius: 13px; margin: 0; }
.pk-top .mg-ic .ic-art { width: 26px; height: 26px; }
.pk-grid .pk-chips { justify-content: flex-end; }
.pk-grid .pk-card h2 { font-size: 1rem; line-height: 1.3; }
.pk-grid .pk-meta { display: grid; gap: 0.05rem; font-size: 12.5px; color: var(--muted); }
.pk-grid .pk-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-grid .pk-last { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; padding: 0.45rem 0.6rem; border-radius: 0.7rem; background: var(--sand-2); font-size: 12px; color: var(--ink-2); }
.pk-grid .pk-last b { font-size: 1.05rem; } .pk-grid .pk-last small { font-size: 11px; color: var(--muted); font-weight: 500; }
.pk-grid .pk-last i { font-style: normal; font-weight: 700; font-size: 11.5px; }
.pk-grid .pk-last.kosong { color: var(--muted); }
.pk-grid .pk-actions { display: grid; gap: 0.35rem; margin-top: auto; }
.pk-grid .pk-actions .btn { width: 100%; min-height: 44px; padding: 0.3rem 0.6rem; font-size: 0.875rem; }
.pk-grid .pk-actions .btn .sm-chip { font-size: 11px; }
.pk-detail { justify-self: center; font-size: 12.5px; }
@media (max-width: 380px) { .pk-grid { gap: 0.55rem; } .pk-grid .pk-card { padding: 0.75rem; } .pk-grid .pk-card h2 { font-size: 0.95rem; } }
/* Drilling Soal */
.dr-head { display: flex; flex-direction: row; align-items: center; gap: 0.85rem; justify-content: flex-start; text-align: start; }
.dr-ikon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--teal-soft); flex: none; }
.dr-ikon .ic-art { width: 34px; height: 34px; }
.dr-setup { padding: 1.35rem 1.4rem; display: grid; gap: 1.25rem; align-content: start; }
.dr-sec { display: grid; gap: 0.75rem; padding-top: 1.15rem; border-top: 1px solid var(--hair); }
.dr-sec:first-child { padding-top: 0; border-top: 0; }
.dr-step { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.dr-step > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.65rem; }
.dr-step h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.dr-step .opt { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.dr-reset { background: none; font-size: 0.8125rem; font-weight: 600; }

.dr-kats { display: grid; gap: 0.75rem; }
.dr-kat { padding: 0.95rem 1rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--hair-2); display: grid; gap: 0.65rem; }
.dr-kat-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dr-kat-head b { font-size: 0.875rem; font-weight: 800; color: var(--ink); }
.dr-kat-head .muted { font-size: 0.8125rem; flex: 1; }
.dr-semua { min-height: 34px; padding: 0 0.7rem; border-radius: 0.55rem; border: 1px solid var(--hair-2); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); background: var(--sand-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.dr-semua:hover { border-color: var(--teal-deep); color: var(--ink); }
.dr-semua.on { color: var(--night-text); background: var(--night); border-color: var(--night); }

.dr-lbls { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dr-lbl { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0.4rem 0.8rem; border-radius: 0.65rem; border: 1px solid var(--hair-2); font-size: 0.84rem; font-weight: 600; line-height: 1.35; text-align: start; color: var(--ink); background: var(--paper); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.dr-lbl:hover { border-color: var(--teal-deep); background: var(--sand); }
.dr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-2); flex: none; }
.dr-lbl.low .dr-dot { background: var(--coral); }
.dr-lbl.mid .dr-dot { background: var(--warn); }
.dr-lbl.high .dr-dot { background: var(--ok); }
.dr-lbl.on { color: #FFFFFF; background: var(--teal-deep); border-color: var(--teal-deep); }
.dr-kat[data-kat='TIU'] .dr-lbl.on { background: var(--coral-deep); border-color: var(--coral-deep); }
.dr-kat[data-kat='TKP'] .dr-lbl.on { background: var(--ok); border-color: var(--ok); }
:root[data-theme='dark'] .dr-lbl.on { color: #07181A; }
.dr-cek { display: inline-grid; }

.dr-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dr-pill { min-width: 56px; min-height: 44px; padding: 0 0.95rem; border-radius: var(--r-sm); border: 1px solid var(--hair-2); font-weight: 700; font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--paper); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.dr-pill:hover { border-color: var(--teal-deep); }
.dr-pill.on { color: var(--night-text); background: var(--night); border-color: var(--night); }

.dr-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.dr-mode-btn { display: grid; gap: 0.3rem; align-content: start; padding: 0.85rem 0.95rem; border-radius: var(--r-md); text-align: start; background: var(--paper); border: 1.5px solid var(--hair-2); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.dr-mode-btn:hover { border-color: var(--teal-deep); }
.dr-mode-hd { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dr-mode-btn b { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.dr-mode-btn > span:last-child { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.dr-radio { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--hair-2); }
.dr-mode-btn.on { background: var(--teal-soft); border-color: var(--teal-deep); }
.dr-mode-btn.on .dr-radio { border-color: var(--teal-deep); background: var(--teal-deep); box-shadow: inset 0 0 0 3px var(--paper); }

.dr-sub-h { margin: 0.25rem 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.dr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-top: 1.15rem; border-top: 1px solid var(--hair); }
.dr-foot-info { margin: 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; font-variant-numeric: tabular-nums; }
.dr-foot-info b { color: var(--ink); font-weight: 700; }
.dr-mulai { min-height: 48px; padding: 0 1.4rem; font-size: 0.9375rem; }
@media (max-width: 640px) {
  .dr-setup { padding: 1.1rem 1.05rem; }
  .dr-mode { grid-template-columns: 1fr; }
  .dr-foot { flex-direction: column; align-items: stretch; }
  .dr-mulai { width: 100%; justify-content: center; }
}
/* Sesi drilling: jam */
.dr-jam { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.8rem; border-radius: 999px; background: var(--coral-soft); color: var(--coral-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.dr-jam.kritis { background: #E5533D; color: #FFFFFF; }
.dr-soal-jam { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.7rem; font-variant-numeric: tabular-nums; }
.dr-soal-jam b { font-size: 1.1rem; color: var(--teal-deep); min-width: 2.2ch; text-align: right; } .dr-soal-jam span { font-size: 12px; color: var(--muted); }
.dr-soal-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.dr-soal-bar i { display: block; height: 100%; width: var(--p, 100%); border-radius: 99px; background: linear-gradient(90deg, #3FDCE3, #0A7F87); transition: width 250ms linear; }
.dr-soal-bar i.kritis { background: linear-gradient(90deg, #FF9478, #E5533D); }
@media (pointer: coarse) { .dr-lbl, .dr-semua, .dr-pill { min-height: 44px; } .dr-reset { min-height: 44px; } }
.pk-grid .pk-card .pk-chips { position: static; }
.pk-grid .pk-card .pk-chips .chip { box-shadow: none; }
.pk-grid .pk-card .pk-actions { grid-template-columns: minmax(0, 1fr); }
.pk-grid .pk-detail { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }

/* ===== Tryout SKD v2: kartu 2 kolom, tinggi sama, padat; di layar lebar isinya memanjang ke samping ===== */
.pk-grid { grid-auto-rows: 1fr; gap: 0.75rem; }
.pk-grid .pk2 { display: grid; grid-template-columns: minmax(0, 1fr); align-content: stretch; gap: 0.7rem; padding: 0.9rem; border-radius: 1.1rem; background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 10px 22px -20px rgba(10, 60, 64, 0.5); backdrop-filter: none; }
.pk-grid .pk2.premium { box-shadow: 0 0 0 1px rgba(226, 174, 69, 0.45), 0 10px 22px -20px rgba(120, 80, 0, 0.45); }
.pk2-info { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.pk2-sisi { display: grid; gap: 0.5rem; align-content: end; min-width: 0; }
.pk-grid .pk2 .pk-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.pk2-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--teal-deep); background: var(--teal-soft); flex: none; }
.pk2.premium .pk2-ic { color: #8A5A00; background: #FFF3D6; }
.pk-grid .pk2 .pk-chips { position: static; }
.pk-grid .pk2 .chip { min-height: 0; padding: 0.15rem 0.55rem; font-size: 11.5px; font-weight: 800; box-shadow: none; gap: 0.2rem; }
.chip.gold { color: #8A5A00; background: #FFF3D6; }
:root[data-theme='dark'] .chip.gold { color: #FFC857; background: rgba(255, 196, 87, 0.14); } :root[data-theme='dark'] .pk2.premium .pk2-ic { color: #FFC857; background: rgba(255, 196, 87, 0.14); }
.pk-grid .pk2 h2 { font-size: 0.98rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pk-grid .pk2 .pk-meta { display: grid; gap: 0.05rem; font-size: 12px; color: var(--muted); }
.pk-grid .pk2 .pk-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-grid .pk2 .pk-last { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'l v' 's v'; align-items: center; column-gap: 0.4rem; min-height: 50px; padding: 0.45rem 0.6rem; border-radius: 0.75rem; background: var(--sand-2); color: var(--ink); }
.pk-grid .pk2 .pk-last > span { grid-area: l; font-size: 11px; font-weight: 600; color: var(--muted); }
.pk-grid .pk2 .pk-last > b { grid-area: v; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pk-grid .pk2 .pk-last > b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pk-grid .pk2 .pk-last > i { grid-area: s; display: inline-flex; align-items: center; gap: 0.3rem; font-style: normal; font-size: 11.5px; font-weight: 700; }
.pk-grid .pk2 .pk-last.kosong > i { color: var(--muted); font-weight: 600; } .pk-grid .pk2 .pk-last.kosong > b { color: var(--muted); }
.pk-titik { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pk-mini { color: var(--muted); }
.pk-grid .pk2 .pk-actions { display: flex; gap: 0.4rem; margin: 0; }
.pk-grid .pk2 .pk-actions .btn { flex: 1; min-width: 0; min-height: 40px; padding: 0 0.6rem; font-size: 13px; font-weight: 800; color: #FFFFFF; background: #0A7F87; box-shadow: none; }
.pk-grid .pk2 .pk-actions .btn:hover { background: #086B72; }
.pk-sisa { font-size: 11px; font-weight: 700; opacity: 0.85; font-variant-numeric: tabular-nums; }
.pk-grid .pk2 .pk-detail { flex: none; width: 40px; height: 40px; min-height: 40px; border-radius: 0.75rem; display: grid; place-items: center; color: var(--teal-deep); background: var(--teal-soft); position: relative; }
.pk-grid .pk2 .pk-detail::after { content: ''; position: absolute; inset: -2px; }
@media (min-width: 1200px) {
  .pk-grid .pk2 { padding: 1rem 1.05rem; }
}
@media (max-width: 767px) {
  .pk-grid { gap: 0.5rem; }
  .pk-grid .pk2 { padding: 0.75rem; gap: 0.55rem; border-radius: 1rem; }
  .pk-grid .pk2 h2 { font-size: 0.92rem; }
  .pk-grid .pk2 .pk-meta { font-size: 11.5px; }
  .pk-grid .pk2 .pk-last { min-height: 46px; padding: 0.4rem 0.5rem; } .pk-grid .pk2 .pk-last > b { font-size: 1.02rem; }
  .pk-grid .pk2 .pk-actions .btn { min-height: 38px; font-size: 12.5px; } .pk-grid .pk2 .pk-detail { width: 38px; height: 38px; min-height: 38px; }
}

/* ===== Tryout SKD v3: daftar 1 kolom + urutkan & saring ===== */
.pk-alat { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0.2rem; min-width: 0; }
.pk-urut { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; flex: none; min-height: 40px; padding: 0 0.8rem; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--hair-2); }
.pk-urut select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding-right: 0.1rem; }
.pk-urut select:focus-visible { outline: none; } .pk-urut:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.pk-saring { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.pk-saring::-webkit-scrollbar { display: none; }
.pk-sr { flex: none; min-height: 36px; padding: 0 0.8rem; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--sand-2); position: relative; }
.pk-sr::after { content: ''; position: absolute; inset: -4px -2px; }
.pk-sr.on { color: #FFFFFF; background: #0A7F87; }
.pk-jumlah { font-size: 12px; margin: 0.35rem 0 0.4rem; }
.pk-grid.pk-daftar { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 0.55rem; }
.pk-daftar .pkb { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.85rem; align-items: start; padding: 0.95rem 1.05rem; border-radius: 1.1rem; background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 10px 22px -22px rgba(10, 60, 64, 0.6); transition: box-shadow 200ms var(--out); }
.pk-daftar .pkb:hover { box-shadow: 0 0 0 1px var(--hair-2), 0 14px 26px -20px rgba(10, 60, 64, 0.55); }
.pk-daftar .pkb.premium { box-shadow: 0 0 0 1px rgba(226, 174, 69, 0.45), 0 10px 22px -22px rgba(120, 80, 0, 0.5); }
.pkb-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--teal-deep); background: var(--teal-soft); }
.pkb.premium .pkb-ic { color: #8A5A00; background: #FFF3D6; }
:root[data-theme='dark'] .pkb.premium .pkb-ic { color: #FFC857; background: rgba(255, 196, 87, 0.14); }
.pkb-isi { display: grid; gap: 0.35rem; min-width: 0; }
.pkb-judul { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.pkb-judul h2 { font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; min-width: 0; }
.pk-daftar .pk-chips { position: static; display: flex; gap: 0.3rem; flex: none; }
.pk-daftar .chip { min-height: 0; padding: 0.15rem 0.55rem; font-size: 11.5px; font-weight: 800; box-shadow: none; gap: 0.2rem; }
.pk-daftar .pk-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem; font-size: 12.5px; color: var(--muted); }
.pk-daftar .pk-meta > span { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.pkb-bawah { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.2rem; padding-top: 0.55rem; border-top: 1px solid var(--hair); }
.pk-daftar .pk-last { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.45rem; min-width: 0; padding: 0; background: none; font-size: 12.5px; color: var(--ink-2); }
.pk-daftar .pk-last > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pk-daftar .pk-last > b { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink); } .pk-daftar .pk-last > b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pk-daftar .pk-last > i { display: inline-flex; align-items: center; gap: 0.25rem; font-style: normal; font-size: 12px; font-weight: 700; }
.pk-daftar .pk-actions { display: flex; gap: 0.4rem; flex: none; margin: 0; }
.pk-daftar .pk-actions .btn { min-height: 38px; padding: 0 1.1rem; font-size: 13px; font-weight: 800; color: #FFFFFF; background: #0A7F87; box-shadow: none; width: auto; }
.pk-daftar .pk-actions .btn:hover { background: #086B72; }
.pk-daftar .pk-detail { width: 38px; height: 38px; min-height: 38px; border-radius: 0.75rem; display: grid; place-items: center; color: var(--teal-deep); background: var(--teal-soft); position: relative; }
.pk-daftar .pk-detail::after { content: ''; position: absolute; inset: -3px; }
@media (max-width: 767px) {
  .pk-alat { gap: 0.35rem; margin-top: 0.5rem; }
  .pk-urut { min-height: 36px; padding: 0 0.65rem; font-size: 12px; }
  .pk-sr { min-height: 34px; padding: 0 0.65rem; font-size: 12px; }
  .pk-daftar .pkb { grid-template-columns: 36px minmax(0, 1fr); gap: 0.65rem; padding: 0.75rem 0.8rem; border-radius: 1rem; }
  .pkb-ic { width: 36px; height: 36px; border-radius: 11px; }
  .pkb-judul h2 { font-size: 0.93rem; }
  .pk-daftar .pk-meta { font-size: 11.5px; gap: 0.1rem 0.6rem; }
  .pkb-bawah { padding-top: 0.45rem; }
  .pk-daftar .pk-actions .btn { min-height: 36px; padding: 0 0.85rem; font-size: 12.5px; } .pk-daftar .pk-detail { width: 36px; height: 36px; min-height: 36px; }
  .pk-urut select { max-width: 9.5rem; text-overflow: ellipsis; }
}
.pk-grid.pk-daftar .pk-card .pk-actions { display: flex; grid-template-columns: none; flex-wrap: nowrap; align-items: center; }
.pk-grid.pk-daftar .pk-card .pk-actions .btn { width: auto; flex: none; }
.pk-daftar .pk-detail .ic { width: 18px; height: 18px; }
@media (max-width: 767px) { .pk-urut { flex: 0 1 auto; min-width: 0; } .pk-urut select { max-width: 8.6rem; } .pkb-bawah { gap: 0.4rem; } }
@media (max-width: 767px) { .pk-urut > .ic:first-child { display: none; } .pk-urut select { max-width: 7.6rem; } .pk-jumlah { margin: 0.25rem 0 0.35rem; } }

/* ---------- Mode tampilan CAT BKN (mengikuti web simulasi CAT BKN; selalu terang) ---------- */
.cb, .cb-layer { --cb-pri: #0d6efd; --cb-ok: #28a745; --cb-bad: #dc3545; --cb-sec: #6c757d; --cb-line: #dee2e6; --cb-ink: #212529; }
.cb {
  background: #f5f6f8; color: var(--cb-ink); color-scheme: light; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.cb-ic { width: 1.05em; height: 1.05em; flex: none; }
.cb-hd { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 10px; color: #fff; background: linear-gradient(135deg, #5563d6 0%, #6a3f98 100%); box-shadow: 0 2px 8px rgba(40, 30, 90, 0.25); }
.cb-t { min-width: 0; }
.cb-alat .ex-save:empty { display: none; }
.cb-t h1 { font-size: 16px; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; letter-spacing: 0; }
.cb-t p { font-size: 12px; opacity: 0.88; margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-t { grid-column: 1 / -1; padding-right: 96px; }
.cb-alat { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 12px; display: flex; align-items: center; gap: 6px; }
.cb-alat .ex-save { min-width: 0; color: rgba(255, 255, 255, 0.85); font-size: 11px; }
.cb-alat .ex-save.ok { color: #c8f7d4; } .cb-alat .ex-save.bad { color: #ffd2d2; }
.cb-keluar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: #fff; position: relative; }
.cb-keluar::after { content: ""; position: absolute; inset: -5px; }
.cb-prog { grid-column: 1; background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 5px 10px 7px; }
.cb-prog span { display: block; text-align: right; font-size: 12px; font-weight: 600; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.cb-bar { height: 6px; border-radius: 9px; background: #e9ecef; overflow: hidden; }
.cb-bar i { display: block; height: 100%; width: 0; background: var(--cb-pri); transition: width 0.3s ease; }
.cb .cb-timer { grid-column: 2; margin: 0; min-height: 0; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 19px; font-weight: 800; letter-spacing: 0.3px; gap: 7px; }
.cb .cb-timer.low { background: #dc3545; color: #fff; }
.cb-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1; }
.cb-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.cb-pad { padding: 12px; }
.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer; border: 1.5px solid transparent; min-height: 44px; }
.cb-btn.sm { min-height: 38px; padding: 7px 12px; font-size: 14px; }
.cb-btn.primary { background: var(--cb-pri); color: #fff; } .cb-btn.primary:hover { background: #0b5ed7; }
.cb-btn.danger { background: var(--cb-bad); color: #fff; } .cb-btn.danger:hover { background: #bb2d3b; }
.cb-btn.secondary { background: var(--cb-sec); color: #fff; }
.cb-btn.out-danger { background: #fff; color: #c82333; border-color: var(--cb-bad); }
.cb-btn.blok { width: 100%; }
.cb-btn:focus-visible, .cb-op:focus-visible, .cb-nb:focus-visible, .cb-keluar:focus-visible { outline: 3px solid #86b7fe; outline-offset: 2px; }
.cb-navtg { display: flex; justify-content: flex-end; }
.cb-side { display: none; flex-direction: column; gap: 10px; }
.cb-side.open { display: flex; }
.cb-fin-d { display: none; }
.cb-nav h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; margin-bottom: 10px; color: var(--cb-ink); letter-spacing: 0; }
.cb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cb-nb { aspect-ratio: 1; border: 0; border-radius: 7px; display: grid; place-items: center; color: #fff; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cb-nb.ok { background: #2e7d32; } .cb-nb.no { background: #dc2a1b; } .cb-nb.aktif { background: #f6d965; color: #5a4300; }
.cb-leg { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.cb-leg li { display: flex; align-items: center; gap: 7px; }
.cb-leg i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.cb-leg i.ok { background: var(--cb-ok); } .cb-leg i.aktif { background: #f6d965; } .cb-leg i.no { background: #dc2a1b; }
.cb-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cb-soal { padding: 14px; }
.cb-no { font-size: 19px; font-weight: 400; padding-bottom: 8px; border-bottom: 1px solid var(--cb-line); color: var(--cb-ink); letter-spacing: 0; }
.cb-kat { display: inline-block; margin: 10px 0; background: var(--cb-pri); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 5px; }
.cb-q { background: #f8f9fb; border-left: 4px solid var(--cb-pri); border-radius: 0 8px 8px 0; padding: 11px 13px; }
.cb-q .ex-stem { font-size: 15px; line-height: 1.6; max-width: none; color: var(--cb-ink); }
.cb-q .q-fig { margin-top: 10px; background: #fff; border: 1px solid #e3e5e8; border-radius: 8px; padding: 8px; }
.cb-opsi { display: grid; gap: 8px; margin-top: 12px; }
.cb-op { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid #dfe2e6; border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 15px; line-height: 1.45; color: var(--cb-ink); cursor: pointer; }
.cb-op:hover { border-color: #9ec5fe; }
.cb-op b { width: 30px; height: 30px; border-radius: 50%; background: #eef0f3; display: grid; place-items: center; flex: none; font-size: 14px; }
.cb-op.on { background: #eef4ff; border-color: var(--cb-pri); }
.cb-op.on b { background: var(--cb-pri); color: #fff; }
.cb-aksi { display: flex; gap: 8px; margin-top: 14px; }
.cb-aksi .primary { flex: 1; }
/* dialog konfirmasi ala Bootstrap: di atas, bukan lembar bawah */
.cb-layer { place-items: start center !important; padding: 28px 12px !important; }
.sheet.cb-modal { width: min(500px, 100%); background: #fff; color: var(--cb-ink, #212529); border-radius: 8px; overflow: hidden; padding: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.cb-m-h { display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: #f8f9fa; border-bottom: 1px solid #dee2e6; }
.cb-modal .cb-m-h h2 { font-size: 17px; font-weight: 500; letter-spacing: 0; color: #212529; margin: 0; }
.cb-m-x { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: #555; cursor: pointer; }
.cb-m-b { padding: 14px; font-size: 15px; line-height: 1.5; color: #444; }
.cb-tanya { font-weight: 700; color: #222; margin-bottom: 6px; }
.cb-m-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #dee2e6; }
.cb-m-f .cb-btn { color: #fff; }

@media (min-width: 900px) {
  .cb-hd { grid-template-columns: minmax(200px, 320px) 1fr auto auto; gap: 20px; padding: 12px 22px; }
  .cb-t h1 { font-size: 19px; } .cb-t p { font-size: 13px; }
  .cb-prog { grid-column: 2; max-width: 620px; }
  .cb .cb-timer { grid-column: 3; font-size: 21px; padding: 8px 18px; }
  .cb-t { grid-column: 1; padding-right: 0; }
  .cb-alat { position: static; grid-column: 4; }
  .cb-body { display: grid; grid-template-columns: 336px minmax(0, 1fr); align-items: start; gap: 16px; padding: 16px 22px; }
  .cb-navtg, .cb-fin-m { display: none; }
  /* Navigasi soal menempel dan memanjang sampai bawah layar; nomor soal digulir di dalamnya. */
  .cb-side, .cb-side.open { display: flex; position: sticky; top: calc(var(--cb-hd, 72px) + 16px); height: calc(100dvh - var(--cb-hd, 72px) - 32px); }
  .cb-fin-d { display: block; flex: none; }
  .cb-nav { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .cb-grid { grid-template-columns: repeat(6, 1fr); overflow-y: auto; align-content: start; padding: 2px 4px 2px 0; flex: 1; min-height: 0; }
  .cb-leg { flex: none; flex-wrap: nowrap; justify-content: space-between; gap: 8px; font-size: 12px; white-space: nowrap; }
  .cb-leg { font-size: 11.5px; gap: 6px; }
  .cb-leg i { width: 11px; height: 11px; }
  .cb-soal { padding: 18px 22px; }
  .cb-no { font-size: 22px; }
  .cb-q .ex-stem { font-size: 16px; }
  .cb-op { font-size: 16px; padding: 10px 14px; }
  .cb-aksi { justify-content: space-between; } .cb-aksi .primary { flex: 0 0 auto; }
}
@media (max-width: 380px) { .cb-grid { grid-template-columns: repeat(6, 1fr); } .cb .cb-timer { font-size: 17px; padding: 7px 10px; } }

/* Hasil: kartu skor ala CAT BKN */
.cbh { background: linear-gradient(160deg, #5563d6 0%, #6a3f98 100%); color: #fff; border-radius: 1.2rem; padding: 18px 14px 14px; text-align: center; display: grid; gap: 12px; align-content: start; }
.cbh-total b { display: block; font-size: 56px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.cbh-total span { font-size: 16px; }
.cbh-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cbh-sub div { display: grid; gap: 2px; align-content: start; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.cbh-sub b { color: #7fe3f2; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cbh-sub span { font-size: 11.5px; line-height: 1.3; }
.cbh-sub small { font-size: 11px; opacity: 0.8; }
.cbh-sub .bad b { color: #ffc2b8; }
.cbh-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; font-size: 13px; }
.cbh-st { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); font-weight: 700; }
.cbh-st.ok { background: #1e7e34; } .cbh-st.bad { background: #dc3545; }
@media (min-width: 900px) { .cbh { padding: 26px 20px 18px; } .cbh-total b { font-size: 68px; } .cbh-sub span { font-size: 13px; } }

/* Pintasan di atas daftar tryout: Soal untuk diulas & Try Out Akbar */
.pk-pintas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: -0.4rem 0 1rem; }
.pk-pintas .ulas-link { padding: 0.8rem 1rem; gap: 0.8rem; }
.pk-pintas .ulas-link b { font-size: 15px; }
.pk-pintas .ulas-link .muted { font-size: 13px; line-height: 1.35; }
@media (max-width: 640px) {
  .pk-pintas { gap: 0.5rem; margin: -0.6rem 0 0.8rem; }
  .pk-pintas .ulas-link { padding: 0.6rem 0.65rem; gap: 0.5rem; align-items: flex-start; }
  .pk-pintas .ulas-link > span[data-icon], .pk-pintas .ulas-link > .ic:last-child { display: none; }
  .pk-pintas .mg-ic { width: 34px; height: 34px; border-radius: 10px; }
  .pk-pintas .mg-ic .ic-art { width: 22px; height: 22px; }
  .pk-pintas .ulas-link b { font-size: 13.5px; line-height: 1.25; }
  .pk-pintas .ulas-link .muted { font-size: 11.5px; }
}

/* Soal untuk diulas: daftar tryout yang sudah selesai */
.ut-list { display: grid; gap: 0.6rem; }
.ut-kartu { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; color: inherit; text-decoration: none; transition: transform 300ms var(--spring); }
a.ut-kartu:hover { transform: translateY(-2px); }
.ut-kartu.terkunci { opacity: 0.75; }
.ut-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); }
.ut-isi { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ut-isi b { font-size: 15px; line-height: 1.3; }
.ut-meta { font-size: 12.5px; color: var(--muted); }
.ut-kanan { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.ut-kanan .chip { font-size: 12px; }
.ut-saring { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
@media (max-width: 640px) {
  .ut-kartu { padding: 0.7rem 0.75rem; gap: 0.6rem; align-items: flex-start; flex-wrap: wrap; }
  .ut-ic { width: 34px; height: 34px; border-radius: 10px; }
  .ut-isi b { font-size: 14px; }
  .ut-meta { font-size: 11.5px; }
  .ut-kanan { width: 100%; padding-left: calc(34px + 0.6rem); justify-content: space-between; }
}

/* Daftar tryout: status dikerjakan, saring status, tombol Ulas soal */
.seg.pk-status { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0.6rem 0 0; }
.pk-status button { gap: 0.35rem; min-height: 40px; padding: 0.4rem 0.5rem; font-size: 13px; }
.pk-status button b { min-width: 22px; padding: 1px 6px; border-radius: 99px; font-size: 11.5px; background: var(--paper); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pk-status button.on b { background: #0A7F87; color: #fff; }
.pk-daftar .pkb.sudah .pkb-ic { color: #fff; background: #1E7E45; }
:root[data-theme='dark'] .pk-daftar .pkb.sudah .pkb-ic { background: #2E9E5B; }
.pk-daftar .pk-st { white-space: nowrap; }
.pk-daftar .pk-actions .btn.pk-ulas { color: var(--teal-deep); background: var(--teal-soft); padding: 0 0.85rem; gap: 0.3rem; }
.pk-daftar .pk-actions .btn.pk-ulas:hover { background: color-mix(in srgb, var(--teal) 22%, var(--teal-soft)); }
.pkb-bawah { flex-wrap: wrap; }
.pkb-bawah .pk-actions { margin-left: auto !important; }
@media (max-width: 767px) {
  .pk-status button { font-size: 11.5px; min-height: 38px; padding: 0.3rem; flex-direction: column; gap: 1px; line-height: 1.15; }
  .pk-status button b { font-size: 11px; padding: 0 6px; }
  .pk-daftar .pk-actions .btn.pk-ulas { padding: 0 0.65rem; }
}

/* Tombol Peringkat berlabel (menggantikan ikon kecil) */
.pk-daftar .pk-actions { align-items: center; }
.pk-daftar .pk-actions .btn.pk-peringkat { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-height: 38px; padding: 0 0.85rem; gap: 0.3rem; border-radius: 999px; color: var(--teal-deep); background: var(--teal-soft); font-size: 13px; font-weight: 800; }
.pk-daftar .pk-actions .btn.pk-peringkat:hover { background: color-mix(in srgb, var(--teal) 22%, var(--teal-soft)); }
.pk-daftar .pk-actions .btn.pk-peringkat .ic { width: 16px; height: 16px; }
.pk-daftar .pk-actions .btn.pk-peringkat::after { display: none; }
@media (max-width: 767px) {
  .pk-lbl-panjang { display: none; }
  .pk-daftar .pk-actions .btn.pk-peringkat { min-height: 36px; padding: 0 0.6rem; font-size: 12.5px; }
}
/* Ulasan per tryout: saring Semua/Salah/Tidak dijawab/Benar */
.seg.ut-status { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0.6rem; }
.ut-status button { gap: 0.35rem; min-height: 40px; padding: 0.35rem; font-size: 13px; }
.ut-status button b { min-width: 22px; padding: 1px 6px; border-radius: 99px; font-size: 11.5px; background: var(--paper); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ut-status button.on b { background: #0A7F87; color: #fff; }
@media (max-width: 640px) { .ut-status button { flex-direction: column; gap: 1px; font-size: 11.5px; line-height: 1.15; min-height: 44px; } }

/* Tes Kesiapan publik (/tes-kesiapan) & kartu CTA kontekstual */
.tk-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.tk-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 1.5rem; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair);
}
.tk-top-act { display: flex; align-items: center; gap: 0.85rem; }
.tk-intro { flex: 1; display: grid; place-items: center; padding: 1.5rem 1rem 3rem; }
.tk-hero { width: 100%; max-width: 760px; padding: 2rem; display: grid; gap: 1.25rem; }
.tk-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.18; }
.tk-lead { color: var(--ink-2); line-height: 1.6; font-size: 1rem; }
.tk-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.tk-meta div { padding: 0.85rem 1rem; border-radius: 1rem; background: var(--teal-soft); display: grid; gap: 0.2rem; }
.tk-meta b { font-size: 1.05rem; color: var(--teal-deep); }
.tk-meta span { font-size: 0.8125rem; color: var(--ink-2); }
.tk-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tk-modes legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.tk-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.tk-mode {
  text-align: start; padding: 1.1rem 1.15rem; border-radius: 1.15rem; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; gap: 0.35rem; cursor: pointer;
  transition: box-shadow 220ms ease, background-color 220ms ease, transform 180ms ease;
}
.tk-mode:hover { box-shadow: inset 0 0 0 2px var(--teal-deep); }
.tk-mode.on { background: var(--teal-soft); box-shadow: inset 0 0 0 2.5px var(--teal-deep); }
.tk-mode b { font-size: 1.05rem; color: var(--ink); }
.tk-mode p { font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.tk-mode-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 99px; background: var(--teal-deep); color: #fff; }
.tk-mode-tag.bkn { background: #1E5C8A; }
.tk-start-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; padding-top: 0.25rem; }
.tk-res { max-width: 960px; margin: 0 auto; width: 100%; display: grid; gap: 1.25rem; padding-bottom: 3rem; }
.tk-score { padding: 1.6rem; display: grid; gap: 1.25rem; }
.tk-score h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0.4rem; }
.tk-score h1 small { font-size: 0.62em; font-weight: 600; color: var(--ink-2); }
.tk-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.tk-cat { padding: 0.95rem 1rem; border-radius: 1rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); display: grid; gap: 0.2rem; }
.tk-cat b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tk-cat.ok { background: var(--teal-soft); box-shadow: inset 0 0 0 1.5px var(--teal-deep); }
.tk-cat.ok b { color: var(--teal-deep); }
.tk-cat.no b { color: var(--bad); }
.tk-cat small { font-size: 0.8rem; color: var(--ink-2); }

/* Kartu CTA kontekstual (dipakai di Hasil Tryout & Hasil Tes Kesiapan) */
.cta-konteks {
  padding: 1.35rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; border-left: 5px solid var(--teal-deep);
}
.cta-konteks-isi { flex: 1 1 360px; display: grid; gap: 0.35rem; }
.cta-konteks-isi h2 { font-size: 1.15rem; line-height: 1.3; }
.cta-konteks-isi p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }
.cta-konteks-act { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 680px) {
  .tk-hero { padding: 1.3rem; }
  .tk-meta, .tk-mode-grid, .tk-cats { grid-template-columns: 1fr; }
  .tk-top { padding: 0.75rem 1rem; }
}
/* Rekap per tingkat soal (mudah/sedang/sulit) di atas daftar subtopik */
.sub-list.sub-tingkat { padding-bottom: 0.6rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line, #E3E9EA); }
/* Pilihan tingkat soal Drilling: 4 tombol satu baris di HP */
.dr-pills.dr-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dr-pills.dr-4 .dr-pill { min-width: 0; padding-inline: 0.4rem; }
