/* Presisi · halaman: vocab — selector diawali .ps-ui (hanya kerangka Presisi).
   Kotoba (/kosakata*, kosakata_*.html), Bunpou (/bunpou*, kotoba_*.html), Latihan Soal
   (/bank-soal), Dokkai, Shadowing (/shadowing*), Seri Kalimat (/seri*).
   Template dipakai bersama kerangka klasik: blok <style> lama di template hanya dirender
   di klasik ({% if not PRESISI_UI %}), jadi semua aturan tata letak Presisi ada di sini.
   Ikon tombol yang isinya ditulis JS digambar dengan mask SVG (--vc-i-*), karena teks
   tombolnya diganti JS (ikon <svg> di dalamnya akan hilang). */

.ps-ui {
  --vc-read: 720px;
  --vc-i-spk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.2L12 5.6v12.8l-4.8-3.9H4z'/%3E%3Cpath d='M15.6 9.3a3.8 3.8 0 0 1 0 5.4M18.2 6.7a7.4 7.4 0 0 1 0 10.6'/%3E%3C/svg%3E");
  --vc-i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E");
  --vc-i-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6.5' y='5.5' width='3.6' height='13' rx='1'/%3E%3Crect x='13.9' y='5.5' width='3.6' height='13' rx='1'/%3E%3C/svg%3E");
  --vc-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --vc-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H10l-4 3v-3H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
  --vc-i-unlock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E");
  --vc-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 4 2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 16.4l-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z'/%3E%3C/svg%3E");
  --vc-m: var(--vc-i-play);
}

/* ikon mask (pseudo-elemen tombol + span .vc-ico di teks) */
.ps-ui .vc-ico,
.ps-ui .vc .ks-audio::before,
.ps-ui .kt-btn::before,
.ps-ui .kt-ex-play::before,
.ps-ui .kt-unlock-btn::before,
.ps-ui .kt-upgrade-btn::before,
.ps-ui #shp-playall::before,
.ps-ui .shp-btn-quiz::before,
.ps-ui .shp-play::before,
.ps-ui .shp-q-play::before,
.ps-ui .sp-play:not(.sp-play-lock)::before,
.ps-ui .vc .bs-quota-premium::before {
  content: ""; display: inline-block; flex: none; width: 16px; height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--vc-m) center / contain no-repeat;
  mask: var(--vc-m) center / contain no-repeat;
}
.ps-ui .vc-ico { width: 1em; height: 1em; vertical-align: -0.15em; }
.ps-ui .vc-ico-spk, .ps-ui .vc .ks-audio, .ps-ui .kt-btn-word, .ps-ui .shp-play, .ps-ui .shp-q-play { --vc-m: var(--vc-i-spk); }
.ps-ui .vc-ico-check, .ps-ui .shp-btn-quiz, .ps-ui .vc .bs-quota-premium { --vc-m: var(--vc-i-check); }
.ps-ui .kt-btn-example { --vc-m: var(--vc-i-chat); }
.ps-ui .kt-unlock-btn { --vc-m: var(--vc-i-unlock); }
.ps-ui .kt-upgrade-btn { --vc-m: var(--vc-i-star); }
.ps-ui .sp-play.playing { --vc-m: var(--vc-i-pause); }

/* ═══ 1. umum: kepala halaman, tautan kembali, tombol lama ════════════════ */
.ps-ui .vc-head { margin-bottom: 20px; }
.ps-ui .vc-head > div:first-child { display: grid; gap: 4px; min-width: 0; }
.ps-ui .vc-head h1 { margin: 0; font-family: var(--ps-font); font-size: var(--ps-fs-3xl); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: var(--ps-tx); }
.ps-ui .vc-head p { margin: 0; max-width: 68ch; font-size: var(--ps-fs-md); line-height: 1.55; color: var(--ps-tx-2); }
.ps-ui .vc .s-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 32px; padding: 0; font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-tx-3); text-decoration: none; transition: color var(--ps-t) var(--ps-ease); }
.ps-ui .vc .s-back:hover { color: var(--ps-tx); }
.ps-ui .vc-top .s-back { display: none; }
.ps-ui :is(.vc-ks-deck, .vc-ks-quiz, .vc-bs) > .vc-head { max-width: var(--vc-read); }
.ps-ui .vc-back-row { margin: 0 0 2px; }

/* tombol lama (.s-btn-*) di dalam halaman kelompok ini, termasuk yang dibuat student.js */
.ps-ui .vc .s-btn-primary, .ps-ui .vc .s-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--ps-r);
  font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease);
}
.ps-ui .vc .s-btn-primary { background: var(--ps-kon); color: var(--ps-kon-on); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.08), var(--ps-sh-1); }
.ps-ui .vc .s-btn-primary:hover:not(:disabled) { background: var(--ps-kon-2); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.08), var(--ps-sh-1); }
.ps-ui .vc .s-btn-secondary { background: var(--ps-surface); color: var(--ps-tx); border-color: var(--ps-bd); box-shadow: var(--ps-sh-1); }
.ps-ui .vc .s-btn-secondary:hover:not(:disabled) { background: var(--ps-surface); border-color: var(--ps-tx-3); }
.ps-ui .vc .s-btn-primary:active:not(:disabled), .ps-ui .vc .s-btn-secondary:active:not(:disabled) { transform: translateY(1px); }
.ps-ui .vc .s-btn-primary:disabled, .ps-ui .vc .s-btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* bulat tetap bulat saat fokus (aturan fokus kerangka memberi radius 6px) */
.ps-ui .vc .ks-audio:focus-visible, .ps-ui .shp-play:focus-visible, .ps-ui .shp-hafal:focus-visible, .ps-ui .sp-play:focus-visible { border-radius: 50%; }

/* kerangka tamu: <main> jadi item flex body (student.css) dengan margin auto → menyusut ke isi.
   Halaman publik kelompok ini (Shadowing, Seri) dipaksa selebar kolom konten. */
.ps-ui .ps-anon .ps-content:has(> .vc) { width: 100%; }

/* ═══ 2. Kotoba: daftar tema & level JLPT (/kosakata) ═════════════════════ */
/* kotak cari tema menggantikan kotak cari topbar di halaman ini (keduanya mencari kosakata) */
.ps-ui .ps-main:has(#ks-search) .ps-search { visibility: hidden; }

.ps-ui .ks-modebar { margin: 0 0 16px; border: 0; border-radius: var(--ps-r); }
.ps-ui .ks-modebar > .ks-mode { border-radius: 6px; padding: 0 14px; font-size: var(--ps-fs-sm); color: var(--ps-tx-2); text-decoration: none; }
.ps-ui .ks-modebar > .ks-mode:hover { color: var(--ps-tx); }
.ps-ui .ks-modebar > .ks-mode.is-active { background: var(--ps-surface); color: var(--ps-tx); box-shadow: var(--ps-sh-1); }

.ps-ui .ks-search-wrap { position: relative; max-width: var(--vc-read); margin: 0 0 20px; }
.ps-ui .vc-search-i { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; color: var(--ps-tx-3); pointer-events: none; }
.ps-ui .ks-search { display: block; width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: 16px; box-shadow: var(--ps-sh-1); outline: none; transition: border-color var(--ps-t) var(--ps-ease), box-shadow var(--ps-t) var(--ps-ease); }
.ps-ui .ks-search::placeholder { color: var(--ps-tx-3); }
.ps-ui .ks-search:focus { border-color: var(--ps-kon-3); box-shadow: 0 0 0 3px oklch(34% 0.07 258 / 0.12); }

/* hasil cari (#ks-search-results, ditulis student.js searchKosakata) */
.ps-ui .ks-search-results { display: flex; flex-direction: column; gap: 0; margin-top: 8px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-2); overflow: hidden; }
.ps-ui .ks-sr-item { display: grid; grid-template-columns: minmax(56px, auto) minmax(0, 1fr) auto; grid-template-areas: "jp mid au" "jp cat au"; column-gap: 14px; row-gap: 2px; align-items: center; padding: 10px 12px 10px 16px; border: 0; border-bottom: 1px solid var(--ps-bd-2); border-radius: 0; background: none; color: var(--ps-tx); text-decoration: none; transition: background-color var(--ps-t) var(--ps-ease); }
.ps-ui .ks-sr-item:last-child { border-bottom: 0; }
.ps-ui .ks-sr-item:hover { background: var(--ps-kin-tint); border-color: var(--ps-bd-2); }
.ps-ui .ks-sr-jp { grid-area: jp; min-width: 0; font-size: var(--ps-fs-xl); font-weight: 700; line-height: 1.25; color: var(--ps-tx); }
.ps-ui .ks-sr-mid { grid-area: mid; display: flex; flex-direction: column; min-width: 0; }
.ps-ui .ks-sr-romaji { font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .ks-sr-arti { font-size: var(--ps-fs-md); font-weight: 700; line-height: 1.35; color: var(--ps-tx); }
.ps-ui .ks-sr-cat { grid-area: cat; min-width: 0; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); white-space: normal; }
.ps-ui .ks-sr-item > .ks-audio { grid-area: au; }
.ps-ui .ks-sr-empty { padding: 14px 16px; font-size: var(--ps-fs-sm); color: var(--ps-tx-2); text-align: left; }
.ps-ui .ks-sr-locked { opacity: 1; }
.ps-ui .ks-sr-locked .ks-sr-jp, .ps-ui .ks-sr-locked .ks-sr-arti { color: var(--ps-tx-2); }
.ps-ui .ks-sr-locked .ks-sr-cat { color: var(--ps-tx-2); font-weight: 700; }

/* tahap = kartu; kategori = sel berbatas garis tipis (pola kartu Latihan di Beranda) */
.ps-ui .ks-tahap { margin: 0 0 20px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); overflow: hidden; }
.ps-ui .ks-tahap-h { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--ps-bd-2); font-family: var(--ps-font); font-size: var(--ps-fs-md); font-weight: 700; line-height: 1.35; color: var(--ps-tx); }
.ps-ui .ks-tahap-h > span:first-child { min-width: 0; }
.ps-ui .vc-tahap-meta { margin-left: auto; font-size: var(--ps-fs-xs); font-weight: 400; color: var(--ps-tx-3); white-space: nowrap; }
.ps-ui .vc-tahap-st { margin-left: auto; }

.ps-ui .ks-grid, .ps-ui .vc-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 0; margin: 0 -1px -1px 0; }
.ps-ui .ks-cat, .ps-ui .vc-cell {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; align-content: center;
  min-height: 66px; padding: 12px 16px; border: 0; border-radius: 0; background: none;
  box-shadow: inset -1px -1px 0 var(--ps-bd-2); color: var(--ps-tx); text-decoration: none; text-align: left;
  transition: background-color var(--ps-t) var(--ps-ease);
}
.ps-ui .ks-cat:hover, .ps-ui .vc-cell:hover { background: var(--ps-hover); border-color: transparent; transform: none; }
.ps-ui .ks-cat:active, .ps-ui .vc-cell:active { transform: none; }
.ps-ui .ks-cat-icon { grid-row: 1 / span 2; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--ps-sunken); font-size: 20px; line-height: 1; transition: background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .ks-cat:hover .ks-cat-icon { background: var(--ps-kin-soft); }
.ps-ui .ks-cat-label { align-self: end; min-width: 0; font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.3; color: var(--ps-tx); }
.ps-ui .ks-cat-count { align-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .ks-cat-count .ps-i { width: 12px; height: 12px; }
.ps-ui .ks-cat--locked { opacity: 1; }
.ps-ui .ks-cat--locked .ks-cat-label { color: var(--ps-tx-2); }
.ps-ui .ks-cat--locked .ks-cat-count { color: var(--ps-tx-2); font-weight: 700; }
.ps-ui .ks-cat--locked .ks-cat-icon { filter: grayscale(1); opacity: 0.55; }

/* ubin kode (JLPT N5, nomor episode) */
.ps-ui .vc-code { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--ps-bd-2); color: var(--ps-tx-2); font-size: var(--ps-fs-sm); font-weight: 800; font-variant-numeric: tabular-nums; transition: background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .ks-cat:hover .vc-code, .ps-ui .vc-cell:hover .vc-code, .ps-ui .vc-cell:hover .ps-glyph { background: var(--ps-kin-soft); color: var(--ps-kin-hi); }

/* sel daftar umum (Shadowing, Seri) */
.ps-ui .vc-cells { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ps-ui .vc-cell { grid-template-columns: 38px minmax(0, 1fr) 16px; column-gap: 14px; }
.ps-ui .vc-cell-tx { display: grid; gap: 2px; min-width: 0; }
.ps-ui .vc-cell-tx b { font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.35; color: var(--ps-tx); }
.ps-ui .vc-cell-tx > span { font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .vc-cell-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.ps-ui .vc-cell .ps-go { margin: 0; width: 16px; height: 16px; color: var(--ps-tx-3); }
.ps-ui .vc-list-card { overflow: hidden; }
.ps-ui .vc-sr-index .vc-list-card { max-width: var(--vc-read); }
.ps-ui .vc-sr-index .vc-cells { grid-template-columns: minmax(0, 1fr); }
.ps-ui .vc-list-card .ps-empty { padding: 22px 20px; }

/* ═══ 3. Kotoba: kartu kata (/kosakata/<slug>, /kosakata/jlpt/<N>) ═══════ */
.ps-ui .vc-quiz-cta .ps-i { width: 16px; height: 16px; }
.ps-ui .ks-deck { max-width: var(--vc-read); margin: 0; }
.ps-ui .ks-progress { margin: 0 0 8px; text-align: left; font-size: var(--ps-fs-xs); font-weight: 700; color: var(--ps-tx-3); font-variant-numeric: tabular-nums; }
.ps-ui .ks-card { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 28px 24px 24px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); text-align: center; }
.ps-ui .ks-img { margin: 0 auto 14px; }
.ps-ui .ks-img img { width: clamp(120px, 30vw, 168px); height: auto; filter: none; }
.ps-ui .vc .ks-word { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; font-family: var(--ps-font); font-size: clamp(40px, 9vw, 56px); font-weight: 800; line-height: 1.2; color: var(--ps-tx); }
.ps-ui .vc .ks-kana { margin-top: 6px; font-size: var(--ps-fs-xl); color: var(--ps-tx-2); }
.ps-ui .ks-romaji { margin-top: 2px; font-size: var(--ps-fs-sm); color: var(--ps-tx-3); letter-spacing: 0.02em; }
.ps-ui .ks-arti { margin-top: 14px; font-size: var(--ps-fs-2xl); font-weight: 800; line-height: 1.3; color: var(--ps-tx); }
.ps-ui .ks-example { margin-top: 20px; padding: 14px 16px; border: 0; border-radius: var(--ps-r); background: var(--ps-sunken); text-align: left; }
.ps-ui .ks-ex-jp { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: var(--ps-fs-lg); font-weight: 700; line-height: 1.5; color: var(--ps-tx); }
.ps-ui .ks-ex-kana { margin-top: 2px; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .ks-ex-id { margin-top: 6px; font-size: var(--ps-fs-sm); color: var(--ps-tx-2); line-height: 1.5; }
.ps-ui .ks-nav { display: flex; gap: 10px; margin-top: 14px; }
.ps-ui .ks-nav button { flex: 1 1 0; min-width: 0; min-height: 44px; }

/* tombol suara (.ks-audio dari student.js: isinya emoji → disembunyikan, ikon digambar CSS) */
.ps-ui .vc .ks-audio { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ps-bd); border-radius: 50%; background: var(--ps-surface); color: var(--ps-kon-3); font-size: 0; line-height: 0; vertical-align: middle; cursor: pointer; box-shadow: var(--ps-sh-1); transition: border-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease), background-color var(--ps-t) var(--ps-ease); }
.ps-ui .vc .ks-audio::before { width: 18px; height: 18px; }
.ps-ui .vc .ks-audio:hover { border-color: var(--ps-tx-3); color: var(--ps-kon); }
.ps-ui .vc .ks-audio-sm { width: 30px; height: 30px; }
.ps-ui .vc .ks-audio-sm::before { width: 15px; height: 15px; }

/* kartu terkunci (server) */
.ps-ui .vc-lock-card { display: grid; justify-items: start; gap: 10px; max-width: var(--vc-read); }
.ps-ui .vc-lock-card h2 { margin: 2px 0 0; font-family: var(--ps-font); font-size: var(--ps-fs-xl); font-weight: 800; color: var(--ps-tx); }
.ps-ui .vc-lock-card p { margin: 0; max-width: 60ch; font-size: var(--ps-fs-sm); line-height: 1.6; color: var(--ps-tx-2); }
.ps-ui .vc-lock-card p strong { color: var(--ps-tx); }
.ps-ui .vc-lock-card .s-btn-primary { margin-top: 4px; }

/* ═══ 4. Kuis kata & Latihan Soal (.bs-*: dipakai juga kuis kana) ═════════ */
.ps-ui .vc .bs-card { max-width: var(--vc-read); padding: 22px 24px 24px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); }
.ps-ui .vc #kq2-card .ks-word { margin-top: 4px; }
.ps-ui .vc #kq2-card .ks-kana { margin-top: 2px; }

.ps-ui .bs-statusbar-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
.ps-ui .bs-level-num { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ps-kin-soft); color: var(--ps-kin-hi); font-size: var(--ps-fs-xs); font-weight: 800; }
.ps-ui .bs-quota { font-size: var(--ps-fs-sm); color: var(--ps-tx-2); }
.ps-ui .bs-quota b { color: var(--ps-tx); font-variant-numeric: tabular-nums; }
.ps-ui .bs-quota-premium { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ps-ok-tx); }
.ps-ui .bs-level-hint { margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--ps-fs-xs); line-height: 1.5; color: var(--ps-tx-3); }
.ps-ui .bs-level-hint b { color: var(--ps-tx-2); }
.ps-ui .vc-bs .bs-statusbar { max-width: var(--vc-read); min-height: 26px; margin: 0 0 14px; }

.ps-ui .bs-q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ps-tx-3); font-variant-numeric: tabular-nums; }
.ps-ui .bs-signal .bs-sig { background: var(--ps-bd); }
.ps-ui .bs-signal .bs-sig.on { background: var(--ps-kin); }
.ps-ui .bs-q-text { margin-bottom: 18px; font-size: var(--ps-fs-xl); font-weight: 700; line-height: 1.55; color: var(--ps-tx); }

.ps-ui .bs-options { display: grid; gap: 8px; }
.ps-ui .bs-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-md); line-height: 1.45; text-align: left; cursor: pointer; box-shadow: var(--ps-sh-1); transition: border-color var(--ps-t) var(--ps-ease), background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .bs-opt:hover:not(:disabled) { border-color: var(--ps-tx-3); background: var(--ps-hover); transform: none; }
.ps-ui .bs-opt:active:not(:disabled) { transform: translateY(1px); }
.ps-ui .bs-opt:disabled { cursor: default; color: var(--ps-tx); opacity: 1; }
.ps-ui .bs-opt:disabled:not(.is-correct):not(.is-wrong) { color: var(--ps-tx-2); box-shadow: none; }
.ps-ui .bs-opt-num { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ps-sunken); color: var(--ps-tx-2); font-size: var(--ps-fs-xs); font-weight: 800; box-shadow: inset 0 0 0 1px var(--ps-bd-2); }
.ps-ui .bs-opt-text { min-width: 0; overflow-wrap: anywhere; }
.ps-ui .bs-opt.is-correct { border-color: var(--ps-ok); background: var(--ps-ok-soft); color: var(--ps-ok-tx); font-weight: 700; }
.ps-ui .bs-opt.is-correct .bs-opt-num { background: var(--ps-ok); color: oklch(99% 0.01 158); box-shadow: none; }
.ps-ui .bs-opt.is-wrong { border-color: var(--ps-danger); background: var(--ps-danger-soft); color: var(--ps-danger-tx); }
.ps-ui .bs-opt.is-wrong .bs-opt-num { background: var(--ps-danger); color: oklch(99% 0.01 25); box-shadow: none; }

.ps-ui .bs-feedback { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ps-bd-2); }
.ps-ui .bs-fb-head { margin-bottom: 6px; font-size: var(--ps-fs-md); font-weight: 800; }
.ps-ui .bs-fb-ok { color: var(--ps-ok-tx); }
.ps-ui .bs-fb-no { color: var(--ps-danger-tx); }
.ps-ui .bs-fb-exp { margin-bottom: 14px; font-size: var(--ps-fs-sm); line-height: 1.6; color: var(--ps-tx-2); }
.ps-ui .vc .bs-next { margin-top: 4px; }

/* keadaan kosong / kuota / tingkat terkunci / selesai (ikon emoji disembunyikan) */
.ps-ui .bs-quota-reached { display: grid; justify-items: start; gap: 8px; padding: 4px 0 2px; text-align: left; }
.ps-ui .bs-qr-icon { display: none; }
.ps-ui .bs-quota-reached h2 { margin: 0; font-family: var(--ps-font); font-size: var(--ps-fs-xl); font-weight: 800; color: var(--ps-tx); }
.ps-ui .bs-quota-reached p { margin: 0; max-width: 60ch; font-size: var(--ps-fs-sm); line-height: 1.6; color: var(--ps-tx-2); }
.ps-ui .bs-quota-reached p strong { color: var(--ps-tx); }

/* ═══ 5. Bunpou: daftar kata (/bunpou) ═══════════════════════════════════ */
.ps-ui .kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0; }
.ps-ui .kt-card-root { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); color: var(--ps-tx); text-decoration: none; transition: border-color var(--ps-t) var(--ps-ease), box-shadow var(--ps-t) var(--ps-ease); }
.ps-ui .kt-card-root:hover { border-color: var(--ps-tx-3); box-shadow: var(--ps-sh-2); }
.ps-ui .kt-card-root:active { transform: none; }
.ps-ui .kt-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .kt-jlpt, .ps-ui .vc-jlpt { display: inline-grid; line-height: 1; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: var(--ps-r-sm); background: var(--ps-bd-2); color: var(--ps-tx-2); font-size: var(--ps-fs-xs); font-weight: 800; }
.ps-ui .kt-vg { color: var(--ps-tx-3); }
.ps-ui .kt-id-label { font-size: var(--ps-fs-sm); color: var(--ps-tx-2); }
.ps-ui .kt-kanji { margin-top: 2px; font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--ps-tx); }
.ps-ui .kt-kana { margin-top: 2px; font-size: var(--ps-fs-sm); color: var(--ps-tx-2); }
.ps-ui .kt-form-count { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ps-bd-2); font-size: var(--ps-fs-xs); font-weight: 700; color: var(--ps-kin-hi); }
.ps-ui .kt-tier-breakdown { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ps-ui .kt-tb { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.ps-ui .kt-tb-free { background: var(--ps-ok-soft); color: var(--ps-ok-tx); }
.ps-ui .kt-tb-xp { background: var(--ps-kin-soft); color: var(--ps-kin-hi); }
.ps-ui .kt-tb-paid { background: var(--ps-kon); color: var(--ps-kon-on); }
.ps-ui .vc-empty-line { color: var(--ps-tx-2); }

/* ═══ 6. Bunpou: bentuk kata (/bunpou/<root>) ════════════════════════════ */
.ps-ui .vc-bp-detail .vc-head h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.ps-ui .vc-bp-detail .vc-head .vc-h-sub { font-size: var(--ps-fs-xl) !important; color: var(--ps-tx-3) !important; }
.ps-ui .vc-bp-detail .vc-head p { line-height: 1.9; }
.ps-ui .vc-bp-detail .vc-jlpt { margin-right: 8px; vertical-align: 1px; }
.ps-ui .kt-xp-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin: 0 0 0 8px; padding: 0 8px; vertical-align: 1px; border-radius: var(--ps-r-sm); background: var(--ps-kin-soft); color: var(--ps-kin-hi); font-size: var(--ps-fs-xs); font-weight: 700; white-space: nowrap; }
.ps-ui .kt-xp-badge strong { color: var(--ps-kin-hi); font-weight: 800; font-variant-numeric: tabular-nums; }

.ps-ui .kt-section { margin: 0 0 20px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); overflow: hidden; }
.ps-ui .kt-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; min-height: 56px; padding: 12px 20px; border-bottom: 1px solid var(--ps-bd-2); }
.ps-ui .kt-section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.ps-ui .kt-section-title h2 { margin: 0; font-family: var(--ps-font); font-size: var(--ps-fs-lg); font-weight: 800; line-height: 1.3; color: var(--ps-tx); }
.ps-ui .kt-tier-dot { display: none; }
.ps-ui .kt-tier-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ps-bd-2); color: var(--ps-tx-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.ps-ui .kt-tier-free .kt-tier-badge { background: var(--ps-ok-soft); color: var(--ps-ok-tx); }
.ps-ui .kt-tier-xp_unlock .kt-tier-badge { background: var(--ps-kin-soft); color: var(--ps-kin-hi); }
.ps-ui .kt-tier-paid .kt-tier-badge { background: var(--ps-kon); color: var(--ps-kon-on); }

.ps-ui .kt-unlock-btn, .ps-ui .kt-upgrade-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--ps-r); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; filter: none; transition: background-color var(--ps-t) var(--ps-ease); }
.ps-ui .kt-unlock-btn { background: var(--ps-kin); color: var(--ps-on-kin); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.35), var(--ps-sh-1); }
.ps-ui .kt-unlock-btn:hover:not(:disabled) { background: oklch(71% 0.125 78); filter: none; }
.ps-ui .kt-unlock-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ps-ui .kt-upgrade-btn { background: var(--ps-kon); color: var(--ps-kon-on); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.08), var(--ps-sh-1); }
.ps-ui .kt-upgrade-btn:hover { background: var(--ps-kon-2); filter: none; }

.ps-ui .kt-section-body { padding: 16px 20px 20px; }
.ps-ui .kt-group + .kt-group { margin-top: 18px; }
.ps-ui .kt-group-label { margin: 0 0 10px; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ps-tx-3); }
.ps-ui .kt-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; }

.ps-ui .kt-card-form { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); cursor: default; user-select: none; overflow: hidden; transition: border-color var(--ps-t) var(--ps-ease), background-color var(--ps-t) var(--ps-ease); }
.ps-ui .kt-card-form.kt-active { border-color: var(--ps-kin); background: var(--ps-kin-tint); }
.ps-ui .kt-form-key { margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ps-tx-3); }
.ps-ui .kt-form-id { min-height: 34px; margin-bottom: 6px; font-size: var(--ps-fs-sm); line-height: 1.35; color: var(--ps-tx-2); }
.ps-ui .kt-form-kanji { font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--ps-tx); overflow-wrap: anywhere; }
.ps-ui .kt-form-kana { margin-top: 2px; font-size: var(--ps-fs-sm); color: var(--ps-tx-2); }
.ps-ui .kt-form-romaji { margin: 1px 0 12px; font-size: var(--ps-fs-xs); font-style: normal; color: var(--ps-tx-3); opacity: 1; }
.ps-ui .kt-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ps-ui .kt-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 90px; height: 36px; padding: 0 10px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; cursor: pointer; transition: border-color var(--ps-t) var(--ps-ease), background-color var(--ps-t) var(--ps-ease); }
.ps-ui .kt-btn::before { width: 15px; height: 15px; color: var(--ps-kon-3); }
.ps-ui .kt-btn:hover:not(:disabled) { border-color: var(--ps-tx-3); background: var(--ps-surface); }
.ps-ui .kt-btn:active:not(:disabled) { transform: translateY(1px); }
.ps-ui .kt-btn:disabled, .ps-ui .kt-btn.kt-locked { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.ps-ui .kt-btn-word.kt-playing { border-color: var(--ps-kin); background: var(--ps-kin-tint); }
.ps-ui .kt-example-panel { margin-top: 12px; padding: 12px; border: 0; border-radius: var(--ps-r); background: var(--ps-sunken); }
.ps-ui .kt-ex-jp { margin-bottom: 2px; font-size: var(--ps-fs-lg); font-weight: 700; line-height: 1.5; color: var(--ps-tx); }
.ps-ui .kt-ex-kana { margin-bottom: 6px; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .kt-ex-id { margin-bottom: 10px; font-size: var(--ps-fs-sm); font-style: normal; line-height: 1.5; color: var(--ps-tx-2); }
.ps-ui .kt-ex-play { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--ps-r); background: var(--ps-kon); color: var(--ps-kon-on); font: inherit; font-size: var(--ps-fs-xs); font-weight: 700; cursor: pointer; filter: none; transition: background-color var(--ps-t) var(--ps-ease); }
.ps-ui .kt-ex-play::before { width: 12px; height: 12px; }
.ps-ui .kt-ex-play:hover { background: var(--ps-kon-2); filter: none; }
.ps-ui .kt-ex-play.kt-playing { background: var(--ps-kin); color: var(--ps-on-kin); }

/* bentuk terkunci: isi tetap diburamkan (bagian dari gerbang akses), lapisan netral + ikon */
.ps-ui .kt-card-locked { cursor: not-allowed; }
.ps-ui .kt-card-locked > *:not(.kt-card-lock-overlay) { filter: blur(3px); opacity: 0.5; }
.ps-ui .kt-card-lock-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: oklch(99.7% 0.001 255 / 0.4); }
.ps-ui .kt-lock-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ps-surface); color: var(--ps-tx-2); font-size: 0; box-shadow: 0 0 0 1px var(--ps-bd), var(--ps-sh-1); }
.ps-ui .kt-lock-icon .ps-i { width: 18px; height: 18px; }
.ps-ui .kt-tier-paid .kt-lock-icon { color: var(--ps-kon); }

/* ═══ 7. Dokkai (/dokkai) — tampilan diatur JS lewat style.display: jangan set display:none di sini ═══ */
.ps-ui .dk-wrap { max-width: none; margin: 0; }
.ps-ui .dk-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.ps-ui .dk-jp { font-size: var(--ps-fs-md); font-weight: 700; letter-spacing: 0.04em; color: var(--ps-kin-hi); }
.ps-ui .dk-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; max-width: 960px; }
.ps-ui .dk-loading { grid-column: 1 / -1; margin: 0; color: var(--ps-tx-3); }
.ps-ui .dk-lvl { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "badge h" "badge meta" "prog prog" "lock lock"; column-gap: 14px; row-gap: 2px; align-items: center; align-content: start; width: 100%; padding: 18px 20px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); color: var(--ps-tx); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--ps-t) var(--ps-ease), box-shadow var(--ps-t) var(--ps-ease); }
.ps-ui .dk-lvl:hover { border-color: var(--ps-tx-3); box-shadow: var(--ps-sh-2); }
.ps-ui .dk-lvl:active { transform: none; }
.ps-ui .dk-lvl-badge { grid-area: badge; width: 44px; height: 44px; display: grid; place-items: center; margin: 0; border-radius: 10px; background: var(--ps-bd-2); color: var(--ps-tx-2); font-size: var(--ps-fs-md); font-weight: 800; line-height: 1; transition: background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .dk-lvl:hover .dk-lvl-badge { background: var(--ps-kin-soft); color: var(--ps-kin-hi); }
.ps-ui .dk-lvl-h { grid-area: h; align-self: end; font-size: var(--ps-fs-lg); font-weight: 800; line-height: 1.3; }
.ps-ui .dk-lvl-meta { grid-area: meta; align-self: start; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); font-variant-numeric: tabular-nums; }
.ps-ui .dk-lvl-prog { grid-area: prog; display: block; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--ps-bd-2); overflow: hidden; }
.ps-ui .dk-lvl-prog i { display: block; height: 100%; border-radius: inherit; background: var(--ps-kin); }
.ps-ui .dk-lvl-lock { grid-area: lock; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--ps-fs-xs); font-weight: 700; color: var(--ps-tx-2); }
.ps-ui .dk-lvl-lock .ps-i { width: 13px; height: 13px; }
.ps-ui .dk-note { max-width: var(--vc-read); margin: 14px 0 0; font-size: var(--ps-fs-sm); line-height: 1.55; color: var(--ps-tx-2); text-align: left; }

.ps-ui #dk-quiz, .ps-ui #dk-done { max-width: var(--vc-read); }
.ps-ui .dk-bar { display: flex; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-tx-2); }
.ps-ui .dk-back { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-right: auto; padding: 0 12px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; cursor: pointer; box-shadow: var(--ps-sh-1); transition: border-color var(--ps-t) var(--ps-ease); }
.ps-ui .dk-back:hover { border-color: var(--ps-tx-3); }
.ps-ui #dk-progress { font-variant-numeric: tabular-nums; color: var(--ps-tx-2); }
.ps-ui #dk-score { font-variant-numeric: tabular-nums; color: var(--ps-ok-tx); }
.ps-ui .dk-card { padding: 22px 24px 24px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); }
.ps-ui .dk-instruction { margin-bottom: 14px; font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.5; color: var(--ps-tx-2); }
.ps-ui .dk-passage-wrap { position: relative; margin: 0 0 18px; padding: 14px 18px 16px; border-radius: var(--ps-r); background: var(--ps-sunken); }
.ps-ui .dk-passage-tag { position: static; display: inline-flex; align-items: center; height: 22px; margin-bottom: 6px; padding: 0 9px; border-radius: 999px; background: var(--ps-kon); color: var(--ps-kon-on); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.ps-ui .dk-passage { font-size: var(--ps-fs-xl); line-height: 2; white-space: pre-wrap; color: var(--ps-tx); }
.ps-ui .dk-question { margin-bottom: 14px; font-size: var(--ps-fs-lg); font-weight: 700; line-height: 1.6; color: var(--ps-tx); }
.ps-ui .dk-options { display: grid; gap: 8px; }
.ps-ui .dk-opt { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-md); font-weight: 400; line-height: 1.5; text-align: left; cursor: pointer; box-shadow: var(--ps-sh-1); transition: border-color var(--ps-t) var(--ps-ease), background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .dk-opt:hover:not(:disabled) { border-color: var(--ps-tx-3); background: var(--ps-hover); }
.ps-ui .dk-opt:disabled { cursor: default; color: var(--ps-tx-2); box-shadow: none; }
.ps-ui .dk-opt.correct { border-color: var(--ps-ok); background: var(--ps-ok-soft); color: var(--ps-ok-tx); font-weight: 700; }
.ps-ui .dk-opt.wrong { border-color: var(--ps-danger); background: var(--ps-danger-soft); color: var(--ps-danger-tx); }
.ps-ui .dk-explain { margin-top: 14px; padding: 12px 14px; border: 0; border-radius: var(--ps-r); background: var(--ps-sunken); font-size: var(--ps-fs-sm); line-height: 1.65; color: var(--ps-tx); }
.ps-ui .dk-explain b { color: var(--ps-tx); }
.ps-ui .dk-next { align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 160px; height: 44px; margin-top: 16px; padding: 0 20px; border: 0; border-radius: var(--ps-r); background: var(--ps-kon); color: var(--ps-kon-on); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; cursor: pointer; box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.08), var(--ps-sh-1); transition: background-color var(--ps-t) var(--ps-ease); }
.ps-ui .dk-next:hover { background: var(--ps-kon-2); }
.ps-ui .dk-done { padding: 22px 24px 24px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); text-align: left; }
.ps-ui .dk-done h2 { margin: 0 0 8px; font-family: var(--ps-font); font-size: var(--ps-fs-2xl); font-weight: 800; color: var(--ps-tx); }
.ps-ui .dk-done p { margin: 0; line-height: 1.6; }
.ps-ui .dk-done .dk-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ps-ui .dk-done button { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--ps-r); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; cursor: pointer; transition: background-color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease); }
.ps-ui .dk-b-primary { border: 1px solid transparent; background: var(--ps-kon); color: var(--ps-kon-on); }
.ps-ui .dk-b-primary:hover { background: var(--ps-kon-2); }
.ps-ui .dk-b-ghost { border: 1px solid var(--ps-bd) !important; background: var(--ps-surface); color: var(--ps-tx); }
.ps-ui .dk-b-ghost:hover { border-color: var(--ps-tx-3) !important; }

/* ═══ 8. Shadowing: pemutar episode (/shadowing/<ep>) ═══════════════════ */
.ps-ui .shp-wrap { max-width: var(--vc-read); margin: 0; }
.ps-ui .shp-head { display: block; margin: 0 0 16px; }
.ps-ui .shp-emoji { display: none; }
.ps-ui .shp-kicker { font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-tx-3); }
.ps-ui .shp-title { margin: 2px 0 0; font-family: var(--ps-font); font-size: var(--ps-fs-3xl); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: var(--ps-tx); }
.ps-ui .shp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.ps-ui .shp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; cursor: pointer; box-shadow: var(--ps-sh-1); transition: background-color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease); }
.ps-ui .shp-btn:hover:not(:disabled) { border-color: var(--ps-tx-3); }
.ps-ui .shp-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ps-ui .shp-btn-primary { border-color: transparent; background: var(--ps-kon); color: var(--ps-kon-on); box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.08), var(--ps-sh-1); }
.ps-ui .shp-btn-primary:hover:not(:disabled) { border-color: transparent; background: var(--ps-kon-2); }
.ps-ui #shp-playall::before { width: 14px; height: 14px; }
.ps-ui .shp-btn-quiz { background: var(--ps-surface); color: var(--ps-tx); border-color: var(--ps-bd); }
.ps-ui .shp-btn-quiz::before { width: 15px; height: 15px; color: var(--ps-kon-3); }
.ps-ui .shp-progress { display: inline-flex; align-items: center; height: 26px; margin-left: auto; padding: 0 10px; border-radius: 999px; background: var(--ps-kin-soft); color: var(--ps-kin-hi); font-size: var(--ps-fs-xs); font-weight: 800; }
.ps-ui .shp-progress:empty { display: none; }
.ps-ui .shp-hint { margin: 0 0 16px; font-size: var(--ps-fs-sm); line-height: 1.6; color: var(--ps-tx-2); }
.ps-ui .shp-hint b { color: var(--ps-tx); }
.ps-ui .shp-hint .vc-ico { color: var(--ps-kon-3); }

.ps-ui .shp-lines { display: block; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); overflow: hidden; }
.ps-ui .shp-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ps-bd-2); border-radius: 0; background: none; transition: background-color var(--ps-t) var(--ps-ease); }
.ps-ui .shp-line:last-child { border-bottom: 0; }
.ps-ui .shp-line.is-playing { background: var(--ps-kin-tint); border-color: var(--ps-bd-2); }
.ps-ui .shp-play { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--ps-bd); border-radius: 50%; background: var(--ps-surface); color: var(--ps-kon-3); font-size: 0; line-height: 0; cursor: pointer; box-shadow: var(--ps-sh-1); transition: background-color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .shp-play::before { width: 18px; height: 18px; }
.ps-ui .shp-play:hover { border-color: var(--ps-tx-3); background: var(--ps-surface); color: var(--ps-kon); }
.ps-ui .shp-line.is-playing .shp-play { border-color: var(--ps-kin); background: var(--ps-kin); color: var(--ps-on-kin); }
.ps-ui .shp-text { min-width: 0; padding-top: 2px; }
.ps-ui .shp-jp { font-size: var(--ps-fs-xl); font-weight: 700; line-height: 1.45; color: var(--ps-tx); }
.ps-ui .shp-kana { margin-top: 1px; font-size: var(--ps-fs-xs); color: var(--ps-tx-3); }
.ps-ui .shp-id { margin-top: 6px; font-size: var(--ps-fs-sm); line-height: 1.5; color: var(--ps-tx-2); }
.ps-ui .shp-hafal { position: relative; width: 36px; height: 36px; margin-top: 2px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--ps-bd); border-radius: 50%; background: var(--ps-surface); color: var(--ps-bd); font-size: 0; cursor: pointer; transition: background-color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .shp-hafal .ps-i { width: 16px; height: 16px; stroke-width: 2.4; }
.ps-ui .shp-hafal:hover { border-color: var(--ps-tx-3); color: var(--ps-tx-3); }
.ps-ui .shp-hafal.is-on { border-color: var(--ps-ok); background: var(--ps-ok); color: oklch(99% 0.01 158); }
.ps-ui .shp-play::after, .ps-ui .shp-hafal::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }

/* kuis (overlay) */
.ps-ui .shp-quiz-backdrop { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 16px; background: oklch(15% 0.04 258 / 0.5); }
.ps-ui .shp-quiz-backdrop.is-open { display: flex; }
.ps-ui .shp-quiz-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 22px 20px; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-xl); box-shadow: var(--ps-sh-pop); }
.ps-ui .shp-quiz-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--ps-r); background: none; color: var(--ps-tx-3); font-size: 24px; line-height: 1; cursor: pointer; transition: background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .shp-quiz-x:hover { background: var(--ps-sunken); color: var(--ps-tx); }
.ps-ui .shp-q-count { font-size: var(--ps-fs-xs); font-weight: 800; letter-spacing: 0.06em; color: var(--ps-tx-3); font-variant-numeric: tabular-nums; }
.ps-ui .shp-q-jp { margin: 8px 40px 10px 0; font-size: var(--ps-fs-2xl); font-weight: 800; line-height: 1.45; color: var(--ps-tx); }
.ps-ui .shp-q-play { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0 0 14px; padding: 0 12px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-sm); font-weight: 700; cursor: pointer; box-shadow: var(--ps-sh-1); }
.ps-ui .shp-q-play::before { width: 16px; height: 16px; color: var(--ps-kon-3); }
.ps-ui .shp-q-play:hover { border-color: var(--ps-tx-3); }
.ps-ui #shp-quiz-body > div:not([class]) { font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-tx-2); }
.ps-ui .shp-q-opt { display: block; width: 100%; min-height: 46px; margin: 8px 0 0; padding: 11px 14px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font: inherit; font-size: var(--ps-fs-md); line-height: 1.45; text-align: left; cursor: pointer; transition: border-color var(--ps-t) var(--ps-ease), background-color var(--ps-t) var(--ps-ease); }
.ps-ui .shp-q-opt:hover:not(:disabled) { border-color: var(--ps-tx-3); background: var(--ps-hover); }
.ps-ui .shp-q-opt:disabled { cursor: default; color: var(--ps-tx-2); }
.ps-ui .shp-q-opt.correct { border-color: var(--ps-ok); background: var(--ps-ok-soft); color: var(--ps-ok-tx); font-weight: 700; }
.ps-ui .shp-q-opt.wrong { border-color: var(--ps-danger); background: var(--ps-danger-soft); color: var(--ps-danger-tx); }
.ps-ui .shp-q-done { text-align: left; }
.ps-ui .shp-q-done h3 { margin: 2px 40px 6px 0; font-family: var(--ps-font); font-size: var(--ps-fs-2xl); font-weight: 800; color: var(--ps-tx); }
.ps-ui .shp-q-done #shp-q-xp { margin: 0; }

/* ═══ 9. Seri Kalimat (/seri, /seri/<slug>) ════════════════════════════ */
.ps-ui .vc-cell .ps-glyph { width: 38px; height: 38px; }
.ps-ui .vc-cell .ps-glyph .ps-i { width: 18px; height: 18px; color: var(--ps-tx-2); }
.ps-ui .vc-cell:hover .ps-glyph .ps-i { color: var(--ps-kin-hi); }
.ps-ui .sp-hero { max-width: var(--vc-read); margin: 0 0 18px; text-align: left; }
.ps-ui .sp-hero-kicker { display: none; }
.ps-ui .sp-hero-title { margin: 0; font-family: var(--ps-font); font-size: var(--ps-fs-3xl); font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; color: var(--ps-tx); }
.ps-ui .sp-hero-lead { margin: 4px 0 0; font-size: var(--ps-fs-md); line-height: 1.55; color: var(--ps-tx-2); }
.ps-ui .sp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 10px; margin-top: 14px; }
.ps-ui .sp-pdf { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--ps-bd); border-radius: var(--ps-r); background: var(--ps-surface); color: var(--ps-tx); font-size: var(--ps-fs-sm); font-weight: 700; text-decoration: none; box-shadow: var(--ps-sh-1); transition: border-color var(--ps-t) var(--ps-ease); }
.ps-ui .sp-pdf .ps-i { width: 16px; height: 16px; color: var(--ps-kon-3); }
.ps-ui .sp-pdf:hover { border-color: var(--ps-tx-3); }
.ps-ui .sp-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ps-kin-soft); color: var(--ps-kin-hi); font-size: 11.5px; font-weight: 700; }
.ps-ui .sp-badge-full { background: var(--ps-ok-soft); color: var(--ps-ok-tx); }
.ps-ui .sp-list { display: block; max-width: var(--vc-read); margin: 0; background: var(--ps-surface); border: 1px solid var(--ps-bd); border-radius: var(--ps-r-lg); box-shadow: var(--ps-sh-1); overflow: hidden; }
.ps-ui .sp-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ps-bd-2); border-radius: 0; background: none; opacity: 1; }
.ps-ui .sp-item:last-child { border-bottom: 0; }
.ps-ui .sp-item.sp-locked .sp-body { opacity: 0.6; }
.ps-ui .sp-num { padding-top: 4px; font-size: var(--ps-fs-sm); font-weight: 800; color: var(--ps-tx-3); font-variant-numeric: tabular-nums; }
.ps-ui .sp-body { min-width: 0; }
.ps-ui .sp-jp { font-size: var(--ps-fs-xl); font-weight: 700; line-height: 1.4; color: var(--ps-tx); }
.ps-ui .sp-baca { margin-top: 2px; font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-kin-hi); }
.ps-ui .sp-romaji { font-size: var(--ps-fs-xs); font-style: normal; color: var(--ps-tx-3); }
.ps-ui .sp-arti { margin-top: 4px; font-size: var(--ps-fs-md); line-height: 1.5; color: var(--ps-tx); }
.ps-ui .sp-dengar { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--ps-fs-xs); color: var(--ps-tx-2); }
.ps-ui .sp-dengar .ps-i { width: 14px; height: 14px; color: var(--ps-tx-3); }
.ps-ui .sp-note { margin-top: 3px; font-size: var(--ps-fs-xs); line-height: 1.5; color: var(--ps-tx-3); }
.ps-ui .sp-audio { flex: none; }
.ps-ui .sp-play { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--ps-kon); color: var(--ps-kon-on); font-size: 0; line-height: 0; text-decoration: none; cursor: pointer; transition: background-color var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease); }
.ps-ui .sp-play:hover { background: var(--ps-kon-2); }
.ps-ui .sp-play:not(.sp-play-lock)::before { width: 16px; height: 16px; margin-left: 2px; }
.ps-ui .sp-play.playing { background: var(--ps-kin); color: var(--ps-on-kin); }
.ps-ui .sp-play.playing::before { margin-left: 0; }
.ps-ui .sp-play.sp-play-lock { background: var(--ps-sunken); color: var(--ps-tx-3); box-shadow: inset 0 0 0 1px var(--ps-bd); }
.ps-ui .sp-play.sp-play-lock .ps-i { width: 16px; height: 16px; }
.ps-ui .sp-play::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.ps-ui .sp-upsell { max-width: none; margin: 0; padding: 16px 20px 18px; border: 0; border-bottom: 1px solid var(--ps-bd-2); border-radius: 0; background: var(--ps-kin-tint); text-align: left; }
.ps-ui .sp-upsell-title { font-size: var(--ps-fs-md); font-weight: 800; color: var(--ps-tx); }
.ps-ui .sp-upsell-text { margin: 4px 0 12px; font-size: var(--ps-fs-sm); line-height: 1.6; color: var(--ps-tx-2); }
.ps-ui .sp-upsell-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--ps-r); background: var(--ps-kon); color: var(--ps-kon-on); font-size: var(--ps-fs-sm); font-weight: 700; text-decoration: none; box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.08), var(--ps-sh-1); transition: background-color var(--ps-t) var(--ps-ease); }
.ps-ui .sp-upsell-cta:hover { background: var(--ps-kon-2); }

/* ═══ 10. HP & layar sentuh ═════════════════════════════════════════════ */
@media (max-width: 767px) {
  .ps-ui .vc-head h1, .ps-ui .shp-title, .ps-ui .sp-hero-title { font-size: var(--ps-fs-2xl); }
  .ps-ui .vc-head { margin-bottom: 16px; }
  .ps-ui .ks-tahap, .ps-ui .kt-section { margin-bottom: 14px; }
  .ps-ui .ks-tahap-h, .ps-ui .kt-section-head { padding-left: 16px; padding-right: 16px; }
  .ps-ui .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-ui .ks-cat { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; min-height: 60px; padding: 12px; }
  .ps-ui .ks-cat-icon, .ps-ui .ks-cat .vc-code { width: 32px; height: 32px; border-radius: 8px; font-size: 17px; }
  .ps-ui .ks-cat .vc-code { font-size: var(--ps-fs-xs); }
  .ps-ui .vc-cells { grid-template-columns: minmax(0, 1fr); }
  .ps-ui .vc-cell { padding: 12px 16px; }
  .ps-ui .ks-card { padding: 22px 16px 18px; }
  .ps-ui .vc .bs-card, .ps-ui .dk-card, .ps-ui .dk-done { padding: 18px 16px 20px; }
  .ps-ui .kt-grid { gap: 12px; }
  .ps-ui .kt-section-body { padding: 14px 16px 16px; }
  .ps-ui .kt-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-ui .dk-levels { gap: 12px; }
  .ps-ui .dk-passage { font-size: var(--ps-fs-lg); line-height: 1.9; }
  .ps-ui .dk-next { width: 100%; }
  .ps-ui .shp-line { gap: 12px; padding: 12px 14px; }
  .ps-ui .sp-item { gap: 10px; padding: 12px 14px; }
  .ps-ui .sp-upsell { padding: 14px 16px 16px; }
}
@media (pointer: coarse) {
  .ps-ui .vc .s-back { min-height: 44px; margin: -8px 0; }
  .ps-ui .ks-modebar > .ks-mode { height: 40px; }
  .ps-ui .vc .s-btn-primary, .ps-ui .vc .s-btn-secondary, .ps-ui .shp-btn, .ps-ui .sp-pdf, .ps-ui .sp-upsell-cta, .ps-ui .dk-back, .ps-ui .dk-done button, .ps-ui .kt-unlock-btn, .ps-ui .kt-upgrade-btn, .ps-ui .kt-btn, .ps-ui .shp-q-play { min-height: 44px; }
  .ps-ui .kt-ex-play { height: 40px; }
  .ps-ui .vc .ks-audio { width: 40px; height: 40px; }
  .ps-ui .vc .ks-audio-sm { width: 36px; height: 36px; }
  .ps-ui .shp-play { width: 44px; height: 44px; }
  .ps-ui .shp-quiz-x { width: 44px; height: 44px; top: 6px; right: 6px; }
}
