/* =====================================================================
   CELIK — tema "Pelita Malam" (v5)
   Idea: belajar 10 minit pada waktu malam bersama keluarga.
   - Kanvas tenang dan putih; satu warna interaktif (indigo malam) untuk semua ruang.
   - Keberanian di SATU tempat: panel "malam" (langit indigo, bulan sabit, bintang) untuk detik belajar,
     dengan butang kuning pelita sebagai satu-satunya tindakan utama.
   - Fon Nunito (bulat, mesra kanak-kanak, jelas untuk Bahasa Melayu).
   Fail ini dimuatkan terakhir dan hanya menukar rupa; tiada logik.
   ===================================================================== */

/* Nunito menggantikan DM Sans dan Manrope di seluruh app. Alias nama keluarga supaya semua peraturan sedia ada
   (lebih 60 tempat menyebut Manrope / DM Sans) menggunakan Nunito tanpa perlu disunting satu demi satu. */
@font-face{font-family:'Nunito';font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-weight:600;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-weight:700;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-weight:800;font-display:swap;src:url(/fonts/nunito-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-weight:400 500;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-weight:600 700;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-weight:800 900;font-display:swap;src:url(/fonts/nunito-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-weight:500 600;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-weight:700 900;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format('woff2')}

:root{
  /* Palet */
  --malam:#232C7A;      /* indigo malam: interaktif, panel belajar */
  --malam-deep:#161D57;
  --pelita:#FFC234;     /* kuning pelita: tindakan utama sahaja */
  --pelita-ink:#3A2600;
  --daun:#17936B;       /* berjaya / dikuasai */
  --karang:#E5533D;     /* perhatian / ralat */
  --kertas:#F6F6FA;     /* kanvas */
  --ink:#1D2240;--muted:#646B8A;--line:#E4E6F0;--canvas:var(--kertas);--white:#fff;
  --accent:var(--malam);--accent-soft:#ECEEFB;--accent-ink:#2A348C;
  --good:var(--daun);--good-bg:#E6F5EF;--warn:#8A5A00;--warn-bg:#FFF4D6;--bad:#B23A28;--bad-bg:#FDECE8;
  --shadow:none;
  --r-hero:26px;--r-card:18px;--r-ctl:12px;
}
body.theme-parent,body.theme-student,body.theme-creator{--accent:var(--malam);--accent-soft:#ECEEFB;--accent-ink:#2A348C;background:var(--kertas);color:var(--ink)}
body{font-family:Nunito,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:Nunito,system-ui,sans-serif;letter-spacing:-.01em}
.welcome-row h1,.parent-hello h1,.student-welcome h1,.pagehead h1,.kid-hello h1{font-family:Nunito,system-ui,sans-serif;font-weight:800;letter-spacing:-.02em}

/* Label kecil di atas tajuk: lebih senyap, bukan tracking lebar */
.overline,.parent-kicker{font-size:12px;letter-spacing:.04em;font-weight:800;color:var(--muted)}

/* ---------- Kad & permukaan: rata, bersempadan, tiada bayang kelabu generik ---------- */
.surface,body.theme-student .surface{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:none}
.surface-title h3{font-weight:800}

/* ---------- Butang ---------- */
.btn,.primary{border-radius:var(--r-ctl);font-weight:800;box-shadow:none;background:var(--malam);color:#fff}
body.theme-parent .primary,body.theme-student .primary{box-shadow:none}
.btn.ghost,.btn.outline{background:#fff;color:var(--malam);border:1.5px solid #D5D9F0}
.btn.soft{background:var(--accent-soft);color:var(--accent-ink);border:0}
.btn.danger{background:#fff;color:var(--bad);border:1.5px solid #F2C6BD}
.btn:focus-visible,.primary:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8C97F0;outline-offset:2px}
.linkish{color:var(--accent-ink);font-weight:800}

/* Input */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{border-radius:var(--r-ctl);border:1.5px solid var(--line)}
input:focus,select:focus,textarea:focus{border-color:#8C97F0}

/* Cip */
.chip{border:1.5px solid var(--line);font-weight:700;color:var(--ink)}
.chip.sel{background:var(--malam);border-color:var(--malam);color:#fff}

/* ---------- Navigasi ---------- */
#navBottom{background:#fff;border-top:1px solid var(--line);box-shadow:none}
#navBottom button,#navTop button{color:var(--muted);font-weight:700}
#navBottom button.sel,#navTop button.sel{color:var(--malam);background:var(--accent-soft)}
body.theme-creator #navSide{background:var(--malam-deep)}

/* =====================================================================
   PANEL MALAM — satu-satunya elemen berani. Langit indigo, bulan sabit, beberapa bintang.
   Dipakai untuk detik belajar: kad "Langkah seterusnya" ibu bapa dan "Misi Malam" anak.
   ===================================================================== */
.next-step,.adventure,.earn-hero{
  position:relative;overflow:hidden;color:#fff;border-radius:var(--r-hero);
  background:
    radial-gradient(1.6px 1.6px at 12% 22%,#fff 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 70%,#fff9 50%,transparent 51%),
    radial-gradient(1.8px 1.8px at 46% 14%,#fffc 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 58%,#fff8 50%,transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 30%,#fff 50%,transparent 51%),
    radial-gradient(1.1px 1.1px at 90% 78%,#fff9 50%,transparent 51%),
    linear-gradient(165deg,var(--malam) 0%,var(--malam-deep) 100%);
  box-shadow:none;border:0;
}
/* Bulan sabit: bulatan kuning dipotong oleh bulatan berwarna langit */
.next-step::before,.adventure::before{content:"";position:absolute;top:18px;right:20px;width:46px;height:46px;border-radius:50%;
  background:var(--pelita);box-shadow:inset -12px -4px 0 0 var(--pelita);
  -webkit-mask:radial-gradient(circle at 70% 35%,transparent 17px,#000 18px);mask:radial-gradient(circle at 70% 35%,transparent 17px,#000 18px);
  opacity:.95;pointer-events:none}
.next-step h2,.adventure h2{color:#fff;font-weight:800;letter-spacing:-.02em;padding-right:56px}
.next-step .ns-kicker,.adventure .overline{color:#C9CEF5;letter-spacing:.04em;font-size:12px}
.next-step p,.adventure p{color:#E4E7FB!important}
.next-step small{color:#C9CEF5}
.next-step.done{background:
    radial-gradient(1.6px 1.6px at 12% 22%,#fff 50%,transparent 51%),
    radial-gradient(1.8px 1.8px at 46% 14%,#fffc 50%,transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 30%,#fff 50%,transparent 51%),
    linear-gradient(165deg,#2A3487 0%,#1B2363 100%)}
/* Tindakan utama: kuning pelita */
.ns-actions .btn:not(.ghost),.adv-btn,.adventure .primary,html[data-theme="dark"] .ns-actions .btn:not(.ghost){
  background:var(--pelita);color:var(--pelita-ink);border:0;font-weight:800;box-shadow:0 0 0 4px #FFC23426}
.adv-btn{border-radius:16px}
.ns-actions .btn.ghost{background:transparent;color:#fff;border:1.5px solid #ffffff59}
.adventure .planet{display:none}
.earn-hero::before{display:none}
.earn-hero b{color:#fff}

/* Kad pilihan berikut: senyap */
.parent-next-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:none}
.parent-next-card strong{color:var(--accent-ink)}
.parent-welcome{display:none} /* digantikan oleh kad Langkah seterusnya */

/* Statistik */
.earn-stats>div,.fstat{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:none}
.earn-stats b{color:var(--ink)}

/* Titik minggu & kemajuan: kuning pelita = hari belajar */
.weekdots i.on{background:var(--pelita);border-color:var(--pelita)}
.weekdots i.today{border-color:var(--malam)}
.sl-bar i{background:var(--daun)}
.start-list li.ok>span{background:var(--daun);border-color:var(--daun)}

/* Status */
.tn-ok{color:var(--daun)}
.tn-no{color:var(--muted)}
.pill-s.ok{background:var(--good-bg);color:var(--daun)}
.pill-s.warn{background:var(--warn-bg);color:var(--warn)}

/* Kad tip perbualan: kertas nota kuning lembut */
.tipcard{background:#FFF8E4;border:1px solid #F5E2A8;border-radius:var(--r-card)}

/* Kad kod kelas & kod pasang */
.class-code-card{background:#fff;border:1.5px dashed #C9CEF0;border-radius:var(--r-hero)}
.pair-code{color:var(--malam);letter-spacing:.18em}

/* Log masuk */
.authart{background:
    radial-gradient(2px 2px at 15% 20%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 70% 12%,#fffc 50%,transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%,#fff9 50%,transparent 51%),radial-gradient(2px 2px at 85% 60%,#fff 50%,transparent 51%),
    linear-gradient(165deg,var(--malam),var(--malam-deep))}
.authside{background:var(--kertas)}
.authcard{border-radius:var(--r-hero)}
.auth-pitch{background:#fff;border:1px solid var(--line)}
.tabs button.sel{color:var(--malam)}
.saringan-link{background:#FFF8E4;color:#5A4200;border:1px solid #F5E2A8}

/* Toast */
.toast{background:var(--malam-deep);color:#fff;border-radius:14px}

/* Pergerakan: hormati tetapan pengguna */
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* =========================== Mod gelap =========================== */
html[data-theme="dark"]{--ink:#ECEEFA;--muted:#A4AACB;--line:#2A3158;--kertas:#10132A;--canvas:#10132A;--accent-soft:#232A5C;--accent-ink:#B9C1FF;
  --good-bg:#12392E;--warn-bg:#3A2F12;--bad-bg:#3A1C17}
html[data-theme="dark"] body.theme-parent,html[data-theme="dark"] body.theme-student,html[data-theme="dark"] body.theme-creator{background:#10132A;color:var(--ink);--accent:#8C97F0;--accent-soft:#232A5C;--accent-ink:#B9C1FF}
html[data-theme="dark"] .surface,html[data-theme="dark"] .parent-next-card,html[data-theme="dark"] .earn-stats>div,html[data-theme="dark"] .fstat,
html[data-theme="dark"] #navBottom,html[data-theme="dark"] .auth-pitch,html[data-theme="dark"] .class-code-card,html[data-theme="dark"] .class-card{background:#181C3A;border-color:var(--line)}
html[data-theme="dark"] .btn{background:#8C97F0;color:#10132A}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .btn.outline{background:transparent;color:#C9CEFF;border-color:#3A427A}
html[data-theme="dark"] .btn.soft{background:#232A5C;color:#C9CEFF}
html[data-theme="dark"] .chip{background:#181C3A;color:var(--ink)}
html[data-theme="dark"] .chip.sel{background:#8C97F0;color:#10132A;border-color:#8C97F0}
html[data-theme="dark"] .tipcard{background:#2A2614;border-color:#4A4220}
html[data-theme="dark"] .next-step,html[data-theme="dark"] .adventure,html[data-theme="dark"] .earn-hero{box-shadow:inset 0 0 0 1px #2E377A}
html[data-theme="dark"] .weekdots i.today{border-color:#8C97F0}
html[data-theme="dark"] .authside{background:#10132A}
html[data-theme="dark"] .saringan-link{background:#2A2614;color:#F5E2A8;border-color:#4A4220}
html[data-theme="dark"] #navBottom button.sel,html[data-theme="dark"] #navTop button.sel{color:#C9CEFF;background:#232A5C}

/* ===== Kunci keutamaan: lapisan lama mempunyai peraturan per-tema yang lebih spesifik (body.theme-x ...).
   Awalan P = html:is([data-theme],:not([data-theme])) body[class] memberi spesifisiti 0,2,2 + pemilih,
   dan fail ini dimuatkan terakhir, jadi tema ini menang tanpa !important. ===== */
html:is([data-theme],:not([data-theme])) body[class]{--accent:var(--malam);--accent-soft:#ECEEFB;--accent-ink:#2A348C;background:var(--kertas);color:var(--ink)}
html:is([data-theme],:not([data-theme])) body[class] .overline{color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .adventure{
  background:
    radial-gradient(1.6px 1.6px at 12% 22%,#fff 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 70%,#fff9 50%,transparent 51%),
    radial-gradient(1.8px 1.8px at 46% 14%,#fffc 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 58%,#fff8 50%,transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 30%,#fff 50%,transparent 51%),
    linear-gradient(165deg,var(--malam) 0%,var(--malam-deep) 100%);
  border:0;color:#fff}
html:is([data-theme],:not([data-theme])) body[class] .adventure .overline{color:#C9CEF5}
html:is([data-theme],:not([data-theme])) body[class] .primary,html:is([data-theme],:not([data-theme])) body[class] .btn:not(.ghost):not(.soft):not(.danger):not(.outline){box-shadow:none}
html:is([data-theme],:not([data-theme])) body[class] .avatar{background:var(--accent-soft);color:var(--accent-ink)}
html:is([data-theme],:not([data-theme])) body[class] .chips{background:transparent}
html:is([data-theme],:not([data-theme])) body[class] .topnav{background:rgba(255,255,255,.94)}
/* Kedai: kad atas senyap (panel malam dikhaskan untuk detik belajar) */
html:is([data-theme],:not([data-theme])) body[class] .shop-hero{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:var(--r-hero);box-shadow:none}
html:is([data-theme],:not([data-theme])) body[class] .shop-hero::before,html:is([data-theme],:not([data-theme])) body[class] .shop-hero::after{display:none}
html:is([data-theme],:not([data-theme])) body[class] .shop-hero h2 em{color:var(--malam);font-style:normal}
html:is([data-theme],:not([data-theme])) body[class] .shop-kicker{color:var(--muted);letter-spacing:.04em}
html:is([data-theme],:not([data-theme])) body[class] .shop-hero-meta span{background:var(--kertas);border:1px solid var(--line);box-shadow:none}
html[data-theme="dark"] body[class] .shop-hero{background:#181C3A;border-color:var(--line)}
html[data-theme="dark"] body[class] .shop-hero h2 em{color:#C9CEFF}
html[data-theme="dark"] body[class] .shop-hero-meta span{background:#10132A}

html[data-theme="dark"] body[class]{--accent:#8C97F0;--accent-soft:#232A5C;--accent-ink:#B9C1FF;background:#10132A;color:var(--ink)}
html[data-theme="dark"] body[class] .overline{color:var(--muted)}
html[data-theme="dark"] body[class] .surface,html[data-theme="dark"] body[class] .discover{background:#181C3A;border-color:var(--line);box-shadow:none}
html[data-theme="dark"] body[class] .avatar{background:#232A5C;color:#C9CEFF}
html[data-theme="dark"] body[class] .topnav{background:rgba(16,19,42,.94)}
html[data-theme="dark"] body[class] .chips{background:transparent}
html[data-theme="dark"] body[class] .adventure .overline,html[data-theme="dark"] body[class] .adventure p{color:#C9CEF5}

/* Mod gelap: tutup sisa warna hijau (ibu bapa) dan ungu (anak) daripada lapisan lama */
html[data-theme="dark"] body[class] .surface,html[data-theme="dark"] body[class] .authcard,html[data-theme="dark"] body[class] .modal,
html[data-theme="dark"] body[class] .mk-card,html[data-theme="dark"] body[class] .qcard,html[data-theme="dark"] body[class] .kid-chip,
html[data-theme="dark"] body[class] .settings-list,html[data-theme="dark"] body[class] .lib-row{background:#181C3A;border-color:var(--line);color:inherit}
html[data-theme="dark"] body[class] .bottomnav,html[data-theme="dark"] body[class] #navBottom{background:#141836;border-color:var(--line)}
html[data-theme="dark"] body[class] .avatar-grid label{background:#232A5C}
html[data-theme="dark"] body[class] .mk-art{background:linear-gradient(135deg,#1E2450,#161B40)}
html[data-theme="dark"] body[class] .chips{background:transparent!important}
html[data-theme="dark"] body[class] .settings-fold summary{background:#181C3A;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] body[class] .tonight-row,html[data-theme="dark"] body[class] .settings-fold,html[data-theme="dark"] body[class] .tonight-week{border-color:var(--line)}
html[data-theme="dark"] body[class] .chip-set button[aria-pressed="true"]{background:#8C97F0;color:#10132A;border-color:#8C97F0}
html:is([data-theme],:not([data-theme])) body[class] .chip-set button[aria-pressed="true"]{background:var(--malam);color:#fff;border-color:var(--malam)}
html:is([data-theme],:not([data-theme])) body[class] .shop-cart{background:#fff;border:1px solid var(--line);box-shadow:none;border-radius:var(--r-hero)}
html[data-theme="dark"] body[class] .shop-cart,html[data-theme="dark"] body[class] .shop-item,html[data-theme="dark"] body[class] .shop-card{background:#181C3A;border-color:var(--line)}
html[data-theme="dark"] body[class] .shop-product,html[data-theme="dark"] body[class] .shop-gateway-mini{background:#181C3A;border-color:var(--line)}
html[data-theme="dark"] body[class] .shop-product-tag,html[data-theme="dark"] body[class] .shop-cart-icon{background:#232A5C;color:#C9CEFF}
html[data-theme="dark"] body[class] .shop-founding{background:#2A2614;border-color:#4A4220}
/* Panjang baris yang selesa dibaca pada skrin lebar */
.surface p,.surface li,.next-step p,.adventure p{max-width:72ch}

/* ===== Ringkas: Ruang Keluarga ===== */
.home-hello h1{margin:4px 0 12px}
.kids-tonight .kid-tonight{padding:6px 0 12px;border-bottom:1px solid var(--line)}
.kids-tonight .kid-tonight:last-child{border-bottom:0;padding-bottom:0}
.kids-tonight .weekdots{margin:8px 0 0}
.kt-more{margin-top:8px}
.kt-more summary{cursor:pointer;color:var(--accent-ink);font-weight:800;font-size:14px;list-style:none;padding:6px 0}
.kt-more summary::-webkit-details-marker{display:none}
.kt-more summary::after{content:" ▾"}
.kt-more[open] summary::after{content:" ▴"}
.kt-more>*+*{margin-top:10px}
.kt-tip{background:#FFF8E4;border:1px solid #F5E2A8;border-radius:14px;padding:10px 12px;font-size:14px;line-height:1.5}
.kt-tip details summary{cursor:pointer;color:var(--accent-ink);font-weight:700;margin-top:4px}
.kt-focus{font-size:14px;line-height:1.5}.kt-focus ul{margin:4px 0 0;padding-left:18px}
.home-links{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin:6px 0 18px}
.sl-next{margin:10px 0 0}.sl-next b{display:block}.sl-next small{display:block;color:var(--muted);line-height:1.45;margin-top:2px}
html[data-theme="dark"] .kt-tip{background:#2A2614;border-color:#4A4220}
/* Ringkas: skrin anak — gaya misi dilipat */
.skin-fold{margin:-4px 0 12px}
.skin-fold summary{cursor:pointer;list-style:none;color:var(--accent-ink);font-weight:800;font-size:14px;padding:4px 2px}
.skin-fold summary::-webkit-details-marker{display:none}
.skin-fold .skin-pick{margin-top:8px}
/* Sambutan misi sudah ada dalam kad atas; jangan ulang dalam senarai anak */
.kids-tonight .celebrate-row{display:none}
/* Pengajar & SOP */
.checks.sop li small{display:block;color:var(--muted);font-size:12.5px;margin:2px 0 4px 18px}
.checks li.warn{color:var(--warn)}.checks li.pend{color:var(--muted)}
.chk-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.chk-grid label{display:flex;gap:6px;align-items:center;border:1.5px solid var(--line);border-radius:999px;padding:5px 11px;font-size:13.5px}
.edu-app{border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px 0}
.edu-app small{display:block;color:var(--muted)}
.edu-dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:14px;margin:10px 0}
.edu-dl dt{color:var(--muted);font-weight:700}.edu-dl dd{margin:0}
.pj-link a{font-weight:800;color:var(--accent-ink)}
.sop-guide li{margin-bottom:6px}
/* Pelan: pilihan pembelian */
.plan-offers .offer-row{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1.5px solid var(--line);border-radius:14px;margin-top:10px;cursor:pointer}
.plan-offers .offer-row.sel{border-color:var(--malam);background:var(--accent-soft)}
.plan-offers .offer-row input{margin-top:4px;width:20px;height:20px;accent-color:var(--malam)}
.plan-offers .offer-row small{display:block;color:var(--muted);line-height:1.45;margin-top:2px}
.offer-price{white-space:nowrap}
.offer-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.plan-owned{color:var(--daun)}
/* Troli & Bayar */
.pay-page{max-width:640px}
.pay-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.pay-status span{color:var(--muted)}
.pay-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.pay-ic{font-size:22px}
.pay-total{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0 12px;font-size:18px}.pay-total b{font-size:24px}
.pay-btn{width:100%}
.pay-empty{text-align:center}.pay-empty .btn{margin-top:6px}
.pay-history summary{cursor:pointer}
.cart-badge{position:absolute;top:4px;right:calc(50% - 22px);min-width:18px;height:18px;border-radius:9px;background:var(--pelita);color:var(--pelita-ink);font:800 11px/18px Nunito,sans-serif;text-align:center;font-style:normal;padding:0 4px}
#navBottom button,#navTop button{position:relative}
.update-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));z-index:999;display:flex;gap:12px;align-items:center;background:var(--malam-deep);color:#fff;padding:10px 12px 10px 16px;border-radius:16px;box-shadow:0 8px 30px #0003;max-width:calc(100% - 24px)}
.update-bar .btn{background:var(--pelita);color:var(--pelita-ink)}
.pay-phone{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:14px;margin:0 0 12px}
.pay-phone input{padding:12px;border-radius:12px;border:1.5px solid var(--line);font:inherit}
/* Pelan: produk & rating */
.pp-fold{margin-top:8px}.pp-fold summary{cursor:pointer;color:var(--accent-ink);font-weight:800;font-size:14px;padding:4px 0}
.pp-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.pp-pick{display:flex;gap:10px;align-items:flex-start;flex:1;min-width:0;cursor:pointer}
.pp-pick input{margin-top:3px;width:18px;height:18px;accent-color:var(--malam)}
.pp-pick b{display:block;font-size:14.5px}.pp-pick small{display:block;color:var(--muted);font-size:12.5px}
.pp-rate{display:flex;flex:none}.pp-rate button{background:none;border:0;padding:2px;font-size:19px;color:#D3D6E4;cursor:pointer;line-height:1}
.pp-rate button.on{color:var(--pelita)}
.pp-preview{margin:6px 0 0;padding-left:0;list-style:none}.pp-preview li{padding:4px 0;font-size:14px}.pp-preview small{color:var(--muted)}
.kid-rate{margin:14px 0}.kid-rate div{display:flex;gap:12px;justify-content:center;margin-top:8px}
.kid-rate button{font-size:34px;background:#fff;border:2px solid var(--line);border-radius:18px;width:64px;height:64px;cursor:pointer}
.top-edu{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 14px;margin:0 0 10px}
.top-edu ul{list-style:none;margin:6px 0 0;padding:0}.top-edu li{display:flex;gap:8px;align-items:center;padding:5px 0;border-top:1px solid var(--line)}
.top-edu li small{display:block;color:var(--muted);font-size:12px}.te-r{font-weight:800;white-space:nowrap}
html[data-theme="dark"] .top-edu,html[data-theme="dark"] .kid-rate button{background:#181C3A;border-color:var(--line)}
.pp-row{flex-wrap:wrap}.pp-rate{flex-basis:100%;padding-left:28px;margin-top:-2px}
@media(min-width:720px){.pp-row{flex-wrap:nowrap}.pp-rate{flex-basis:auto;padding-left:0;margin-top:0}}
/* Troli: butiran setiap item */
html:is([data-theme],:not([data-theme])) body[class] .pay-item{border-bottom:1px solid var(--line);padding-bottom:10px}
html:is([data-theme],:not([data-theme])) body[class] .pay-item .pay-row{border-bottom:0;padding-bottom:4px}
html:is([data-theme],:not([data-theme])) body[class] .pay-detail{display:grid;gap:4px;margin:0 0 0 44px;font-size:13px}
html:is([data-theme],:not([data-theme])) body[class] .pay-detail div{display:grid;grid-template-columns:78px 1fr;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .pay-detail dt{color:var(--muted);font-weight:600}
html:is([data-theme],:not([data-theme])) body[class] .pay-detail dd{margin:0}
html:is([data-theme],:not([data-theme])) body[class] .pay-lines{display:grid;gap:6px;padding:12px 0 0;font-size:14px;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .pay-lines div{display:flex;justify-content:space-between}
html:is([data-theme],:not([data-theme])) body[class] .pay-steps{margin:12px 0 6px;padding-left:20px;font-size:13px;display:grid;gap:4px}
html:is([data-theme],:not([data-theme])) body[class] .pay-renew{margin:0 0 10px}
@media (max-width:480px){html:is([data-theme],:not([data-theme])) body[class] .pay-detail{margin-left:0}}
html:is([data-theme],:not([data-theme])) body[class] .lib-filters{display:grid;gap:8px;margin:0 0 14px}
html:is([data-theme],:not([data-theme])) body[class] .lib-filters .chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
html:is([data-theme],:not([data-theme])) body[class] .lib-filters .chip{flex:0 0 auto}
/* ===== Rumah & Adab ===== */
html:is([data-theme],:not([data-theme])) body[class] .kid-adab,html:is([data-theme],:not([data-theme])) body[class] .kid-garden{display:flex;gap:14px;align-items:flex-start;background:var(--white);border:2px solid #FFD98A;border-radius:20px;padding:16px;margin:14px 0}
html:is([data-theme],:not([data-theme])) body[class] .kid-adab.done{border-color:#9BDDB5;background:#F2FBF5}
html:is([data-theme],:not([data-theme])) body[class] .kid-adab .ka-ic,html:is([data-theme],:not([data-theme])) body[class] .kid-garden .kg-ic{font-size:36px;line-height:1}
html:is([data-theme],:not([data-theme])) body[class] .kid-adab small,html:is([data-theme],:not([data-theme])) body[class] .kid-garden small,html:is([data-theme],:not([data-theme])) body[class] .kid-story summary small{display:block;color:var(--muted);font-size:12px;font-weight:700}
html:is([data-theme],:not([data-theme])) body[class] .kid-adab b{display:block;font-size:17px;line-height:1.35;margin:2px 0 10px}
html:is([data-theme],:not([data-theme])) body[class] .ka-state{display:inline-block;font-weight:800;font-size:14px;color:#8A5A00}
html:is([data-theme],:not([data-theme])) body[class] .ka-state.ok{color:#1F7A47}
html:is([data-theme],:not([data-theme])) body[class] .kid-garden{border-color:var(--line)}
html:is([data-theme],:not([data-theme])) body[class] .kid-garden b{display:block;font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .kg-bar{height:8px;border-radius:99px;background:var(--line);margin:8px 0 6px;overflow:hidden}
html:is([data-theme],:not([data-theme])) body[class] .kg-bar i{display:block;height:100%;width:calc(var(--p)*1%);background:#5DBB7E;border-radius:99px}
html:is([data-theme],:not([data-theme])) body[class] .kid-story{background:var(--white);border:2px solid #C9C2F5;border-radius:20px;padding:4px 16px;margin:14px 0}
html:is([data-theme],:not([data-theme])) body[class] .kid-story summary{display:flex;gap:12px;align-items:center;padding:12px 0;cursor:pointer;list-style:none;font-size:26px}
html:is([data-theme],:not([data-theme])) body[class] .kid-story summary::-webkit-details-marker{display:none}
html:is([data-theme],:not([data-theme])) body[class] .kid-story summary b{display:block;font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .ks-new{font-size:12px;font-weight:800;background:#6B5CE7;color:#fff;border-radius:99px;padding:4px 10px}
html:is([data-theme],:not([data-theme])) body[class] .ks-done{font-size:18px;color:#1F7A47;font-weight:900}
html:is([data-theme],:not([data-theme])) body[class] .ks-text{font-size:16px;line-height:1.55;margin:0 0 10px}
html:is([data-theme],:not([data-theme])) body[class] .ks-choices{display:grid;gap:10px;margin:0 0 16px}
html:is([data-theme],:not([data-theme])) body[class] .ks-choice{text-align:left;font:inherit;font-weight:700;font-size:15px;padding:14px;border-radius:14px;border:2px solid var(--line);background:var(--canvas);color:var(--ink);cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .ks-choice:hover{border-color:#6B5CE7}
html:is([data-theme],:not([data-theme])) body[class] .ks-out{background:#FFF6E5;border-radius:14px;padding:12px 14px;margin:0 0 16px}
html:is([data-theme],:not([data-theme])) body[class] .ks-out.good{background:#ECF8F0}
html:is([data-theme],:not([data-theme])) body[class] .ks-out p{margin:6px 0 0;line-height:1.5}
html:is([data-theme],:not([data-theme])) body[class] .kid-skills summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .tomorrow{text-align:left;background:var(--canvas);border-radius:16px;padding:14px 16px;margin:14px 0}
html:is([data-theme],:not([data-theme])) body[class] .tomorrow ul{margin:8px 0 0;padding-left:4px;list-style:none;display:grid;gap:6px}
/* Ruang Keluarga */
html:is([data-theme],:not([data-theme])) body[class] .adab-row{display:flex;gap:10px;align-items:center;background:var(--canvas);border-radius:14px;padding:10px 12px;margin:10px 0 0}
html:is([data-theme],:not([data-theme])) body[class] .adab-row.ask{background:#FFF4D6;outline:2px solid #FFD98A}
html:is([data-theme],:not([data-theme])) body[class] .adab-row .adab-ic{font-size:24px}
html:is([data-theme],:not([data-theme])) body[class] .adab-row small{display:block;color:var(--muted);font-size:12px}
html:is([data-theme],:not([data-theme])) body[class] .adab-row span{font-size:14px;line-height:1.35}
html:is([data-theme],:not([data-theme])) body[class] .adab-ok{color:#1F7A47;font-weight:800;font-size:13px;white-space:nowrap}
html:is([data-theme],:not([data-theme])) body[class] .kt-coach{display:grid;gap:2px;background:#EEF3FF;border-radius:14px;padding:10px 12px;margin:10px 0 0;font-size:14px;line-height:1.4}
html:is([data-theme],:not([data-theme])) body[class] .kt-coach small{color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .kt-weak ol{margin:6px 0;padding-left:20px;display:grid;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .kt-weak li span{display:block;font-size:13px;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .kt-weak,html:is([data-theme],:not([data-theme])) body[class] .kt-adab,html:is([data-theme],:not([data-theme])) body[class] .kt-levels{margin:10px 0;font-size:14px}
html:is([data-theme],:not([data-theme])) body[class] .kt-levels ul{margin:4px 0;padding-left:18px}
/* Pelan: tahap ikut subjek */
html:is([data-theme],:not([data-theme])) body[class] .lvl-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
html:is([data-theme],:not([data-theme])) body[class] .lvl-chip{font-size:12px;font-weight:800;border-radius:99px;padding:4px 10px;background:var(--canvas);color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .lvl-chip.on{background:#EAF7EF;color:#1F7A47}
html:is([data-theme],:not([data-theme])) body[class] .lvl-select{font:inherit;font-size:13px;padding:4px 8px;border-radius:10px;border:1px solid var(--line);background:var(--white);color:var(--ink)}
html[data-theme="dark"] body[class] .kid-adab,html[data-theme="dark"] body[class] .kid-garden,html[data-theme="dark"] body[class] .kid-story{background:#1A2036}
html[data-theme="dark"] body[class] .kid-adab.done,html[data-theme="dark"] body[class] .ks-out.good{background:#163024}
html[data-theme="dark"] body[class] .ks-out,html[data-theme="dark"] body[class] .adab-row.ask{background:#3A2E12}
html[data-theme="dark"] body[class] .kt-coach{background:#1C2647}
html[data-theme="dark"] body[class] .ka-state{color:#FFD98A}
html:is([data-theme],:not([data-theme])) body[class] .lvl-row>span:first-child{font-size:13px;color:var(--muted);font-weight:700}
/* ===== Google Sign-In (ikut garis panduan jenama Google: butang putih, logo G berwarna, teks Roboto/sistem) ===== */
html:is([data-theme],:not([data-theme])) body .g-wrap{margin:4px 0 6px}
html:is([data-theme],:not([data-theme])) body .gbtn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:10px 16px;border:1px solid #747775;border-radius:12px;background:#fff;color:#1F1F1F;font:600 15px/1.2 Roboto,system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,box-shadow .15s}
html:is([data-theme],:not([data-theme])) body .gbtn:hover{background:#F8FAFF;box-shadow:0 1px 3px rgba(60,64,67,.25)}
html:is([data-theme],:not([data-theme])) body .gbtn:focus-visible{outline:3px solid #A8C7FA;outline-offset:2px}
html:is([data-theme],:not([data-theme])) body .gbtn.loading{opacity:.75;cursor:progress}
html:is([data-theme],:not([data-theme])) body .gbtn .g-logo{width:20px;height:20px;flex:none}
html[data-theme="dark"] body .gbtn{background:#131314;color:#E3E3E3;border-color:#8E918F}
html[data-theme="dark"] body .gbtn:hover{background:#1E1F20}
html:is([data-theme],:not([data-theme])) body .or-sep{display:flex;align-items:center;gap:12px;margin:16px 0 6px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.06em}
html:is([data-theme],:not([data-theme])) body .or-sep::before,html:is([data-theme],:not([data-theme])) body .or-sep::after{content:"";flex:1;height:1px;background:var(--line)}
html:is([data-theme],:not([data-theme])) body .g-confirm{display:grid;gap:12px;margin:8px 0}
html:is([data-theme],:not([data-theme])) body .g-confirm[hidden]{display:none}
html:is([data-theme],:not([data-theme])) body .g-who{display:flex;gap:12px;align-items:center;background:var(--canvas);border-radius:14px;padding:12px}
html:is([data-theme],:not([data-theme])) body .g-who small{display:block;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body .g-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#4285F4;color:#fff;font-weight:800}
html:is([data-theme],:not([data-theme])) body .g-confirm .actions{display:grid;gap:8px}
/* ===== Log masuk: susunan kemas (tindakan utama dahulu, pautan sekunder di bawah) ===== */
html:is([data-theme],:not([data-theme])) body .authcard .auth-pitch{background:none;border:0;padding:0;margin:4px 0 18px}
html:is([data-theme],:not([data-theme])) body .authcard .auth-pitch b{font-size:22px;line-height:1.25;letter-spacing:-.01em}
html:is([data-theme],:not([data-theme])) body .authcard .auth-pitch span{display:block;margin-top:6px;font-size:14px;color:var(--muted);opacity:1}
html:is([data-theme],:not([data-theme])) body .authcard .lbl-row{display:flex;justify-content:space-between;align-items:baseline}
html:is([data-theme],:not([data-theme])) body .authcard .auth-forgot{background:none;border:0;padding:0;font:inherit;font-size:13px;font-weight:700;color:var(--accent-ink,#24307A);cursor:pointer}
html:is([data-theme],:not([data-theme])) body .authcard .auth-links{display:grid;gap:12px;margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line)}
html:is([data-theme],:not([data-theme])) body .authcard .saringan-link{display:flex;align-items:center;gap:12px;margin:0;padding:12px 14px;border-radius:14px;font-size:14px}
html:is([data-theme],:not([data-theme])) body .authcard .saringan-link .grow{flex:1}
html:is([data-theme],:not([data-theme])) body .authcard .saringan-link small{display:block;font-size:12px;opacity:.8;margin-top:2px}
html:is([data-theme],:not([data-theme])) body .authcard .auth-minor{display:flex;justify-content:center;gap:20px;font-size:13px}
html:is([data-theme],:not([data-theme])) body .authcard .auth-minor a{color:var(--muted);font-weight:700;text-decoration:none}
html:is([data-theme],:not([data-theme])) body .authcard .auth-minor a:hover{color:var(--ink);text-decoration:underline}
html:is([data-theme],:not([data-theme])) body .authcard .top-edu{margin:12px 0 0}
html:is([data-theme],:not([data-theme])) body .authcard .auth-guidance{margin-top:12px;font-size:13px;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body .authcard .auth-guidance summary{cursor:pointer;font-weight:700;text-align:center;list-style:none}
html:is([data-theme],:not([data-theme])) body .authcard .auth-guidance summary::-webkit-details-marker{display:none}
html:is([data-theme],:not([data-theme])) body .authcard .auth-guidance summary::after{content:" ▾"}
html:is([data-theme],:not([data-theme])) body .authcard .auth-legal{font-size:11px;line-height:1.5;color:var(--muted);text-align:center;margin:14px 0 0;opacity:.85}
html[data-theme="dark"] body .authcard .auth-forgot{color:#AEB8FF}
@media (max-width:640px){
  html:is([data-theme],:not([data-theme])) body .authcard{border:0;background:transparent;padding:8px 18px 24px}
  html:is([data-theme],:not([data-theme])) body .authcard .auth-top{margin-bottom:14px}
  html:is([data-theme],:not([data-theme])) body .authcard .tabs{margin-bottom:14px}
}
@media (max-width:640px){html[data-theme="dark"] body .authcard,html[data-theme="dark"] body[class] .authcard{background:transparent;border:0;box-shadow:none}}
/* ===== Pasang app & kunci Ruang Keluarga ===== */
html:is([data-theme],:not([data-theme])) body .authcard .auth-install{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--muted);cursor:pointer}
html:is([data-theme],:not([data-theme])) body .authcard .auth-minor{flex-wrap:wrap;row-gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .install-banner{display:flex;gap:12px;align-items:center;background:#E9F7EF;border:1px solid #BFE6CD;border-radius:16px;padding:12px 14px;margin:0 0 14px}
html:is([data-theme],:not([data-theme])) body[class] .install-banner>span:first-child{font-size:26px}
html:is([data-theme],:not([data-theme])) body[class] .install-banner small{display:block;color:var(--muted);font-size:12.5px}
html:is([data-theme],:not([data-theme])) body[class] .install-banner .ib-x{background:none;border:0;font-size:22px;color:var(--muted);cursor:pointer;padding:0 4px}
html[data-theme="dark"] body[class] .install-banner{background:#173024;border-color:#2C5A41}
html:is([data-theme],:not([data-theme])) body[class] .lock-box{border:1px solid var(--line);border-radius:16px;padding:14px;margin:0 0 12px;display:grid;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .pk-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
html:is([data-theme],:not([data-theme])) body[class] .pk-list li{display:flex;gap:10px;align-items:center}
html:is([data-theme],:not([data-theme])) body[class] .pk-list small{display:block;color:var(--muted);font-size:12px}
html:is([data-theme],:not([data-theme])) body[class] .pin-form{display:flex;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .pin-input{font-size:22px;letter-spacing:.5em;text-align:center;max-width:150px;padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--white);color:var(--ink)}
html:is([data-theme],:not([data-theme])) body[class] .modal .fld .pin-input{max-width:none;width:100%}
html:is([data-theme],:not([data-theme])) body .pin-dots{display:flex;justify-content:center;gap:16px;margin:10px 0 18px}
html:is([data-theme],:not([data-theme])) body .pin-dots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--muted);transition:background .12s}
html:is([data-theme],:not([data-theme])) body .pin-dots i.on{background:var(--ink);border-color:var(--ink)}
html:is([data-theme],:not([data-theme])) body .pin-dots.shake{animation:pinshake .4s}
@keyframes pinshake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
@media (prefers-reduced-motion:reduce){html:is([data-theme],:not([data-theme])) body .pin-dots.shake{animation:none}}
html:is([data-theme],:not([data-theme])) body .pin-pad{display:grid;grid-template-columns:repeat(3,72px);gap:12px;justify-content:center}
html:is([data-theme],:not([data-theme])) body .pin-pad button{width:72px;height:72px;border-radius:50%;border:1px solid var(--line);background:var(--canvas);color:var(--ink);font:700 26px/1 inherit;cursor:pointer}
html:is([data-theme],:not([data-theme])) body .pin-pad button:active{background:var(--accent-soft)}
html:is([data-theme],:not([data-theme])) body .pin-pad button:focus-visible{outline:3px solid #A8C7FA;outline-offset:2px}
html:is([data-theme],:not([data-theme])) body[class] .lb-head{display:flex;justify-content:space-between;align-items:center}
/* ===== Langganan ===== */
html:is([data-theme],:not([data-theme])) body[class] .pay-page{display:grid;gap:14px}
html:is([data-theme],:not([data-theme])) body[class] .sub-status{background:var(--malam,#1D2240);color:#fff;border-radius:20px;padding:18px;display:grid;gap:4px}
html:is([data-theme],:not([data-theme])) body[class] .sub-status small{opacity:.7;font-size:12px;font-weight:700}
html:is([data-theme],:not([data-theme])) body[class] .sub-status b{font-size:20px;line-height:1.25}
html:is([data-theme],:not([data-theme])) body[class] .sub-status span{font-size:14px;opacity:.85}
html:is([data-theme],:not([data-theme])) body[class] .sub-status.free{background:var(--white);color:var(--ink);border:1px solid var(--line)}
html:is([data-theme],:not([data-theme])) body[class] .sub-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.2);margin-top:10px;overflow:hidden}
html:is([data-theme],:not([data-theme])) body[class] .sub-bar i{display:block;height:100%;width:calc(var(--p)*1%);background:#FFC94A;border-radius:99px}
html:is([data-theme],:not([data-theme])) body[class] .sub-left{font-size:12.5px!important;font-weight:700}
html:is([data-theme],:not([data-theme])) body[class] .trial-card{background:#FFF7E0;border:1px solid #F5DE9A;border-radius:20px;padding:16px;display:grid;gap:8px;margin:0}
html:is([data-theme],:not([data-theme])) body[class] .trial-card b{font-size:17px}
html:is([data-theme],:not([data-theme])) body[class] .trial-card ul{margin:0;padding-left:20px;font-size:14px;line-height:1.6}
html:is([data-theme],:not([data-theme])) body[class] .trial-card p{margin:0}
html:is([data-theme],:not([data-theme])) body[class] .home-trial{margin:0 0 14px}
html[data-theme="dark"] body[class] .trial-card{background:#2E2812;border-color:#5A4A1E}
html:is([data-theme],:not([data-theme])) body[class] .plan-pick{display:grid;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .plan-pick h3{margin:6px 0 2px;font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .plan-card{position:relative;display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;color:var(--ink);background:var(--white);border:2px solid var(--line);border-radius:16px;padding:14px;cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .plan-card.sel{border-color:var(--malam,#1D2240);box-shadow:0 0 0 3px rgba(42,52,140,.12)}
html:is([data-theme],:not([data-theme])) body[class] .plan-card b{font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .plan-card small{display:block;color:var(--muted);font-size:12.5px}
html:is([data-theme],:not([data-theme])) body[class] .pc-radio{width:20px;height:20px;border-radius:50%;border:2px solid var(--muted);flex:none}
html:is([data-theme],:not([data-theme])) body[class] .plan-card.sel .pc-radio{border:6px solid var(--malam,#1D2240)}
html:is([data-theme],:not([data-theme])) body[class] .pc-price{text-align:right;white-space:nowrap}
html:is([data-theme],:not([data-theme])) body[class] .pc-badge{position:absolute;top:-10px;right:14px;background:#1F7A47;color:#fff;font-size:11px;font-weight:800;border-radius:99px;padding:3px 10px}
html:is([data-theme],:not([data-theme])) body[class] .packs-row{display:flex;gap:12px;align-items:center;background:var(--white);border:2px dashed var(--line);border-radius:16px;padding:14px;cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .packs-row.sel{border-style:solid;border-color:#1F7A47;background:#F0FAF4}
html:is([data-theme],:not([data-theme])) body[class] .packs-row input{width:20px;height:20px;flex:none}
html:is([data-theme],:not([data-theme])) body[class] .packs-row small{display:block;color:var(--muted);font-size:12.5px;line-height:1.4}
html[data-theme="dark"] body[class] .plan-card,html[data-theme="dark"] body[class] .packs-row{background:#1A2036}
html[data-theme="dark"] body[class] .plan-card.sel{border-color:#AEB8FF}
html[data-theme="dark"] body[class] .plan-card.sel .pc-radio{border-color:#AEB8FF}
html[data-theme="dark"] body[class] .packs-row.sel{background:#163024}
html[data-theme="dark"] body[class] .sub-status:not(.free){background:#2A348C}
html:is([data-theme],:not([data-theme])) body[class] .pay-summary h3{margin:0 0 6px;font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .plan-access{display:grid;gap:6px}
html:is([data-theme],:not([data-theme])) body[class] .plan-access p{margin:0}
/* Akaun: kumpulan bertajuk */
html:is([data-theme],:not([data-theme])) body[class] .set-h{font-size:13px;font-weight:800;color:var(--muted);margin:18px 4px 8px}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold summary{display:grid;gap:2px;cursor:pointer;list-style:none}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold summary::-webkit-details-marker{display:none}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold summary::after{content:"▾";position:absolute;right:18px}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold{position:relative}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold summary small{color:var(--muted);font-size:12.5px}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold[open] .plan-pick{margin:14px 0}
html:is([data-theme],:not([data-theme])) body[class] .renew-fold .pay-summary{border:0;padding:0;box-shadow:none;background:none}
html:is([data-theme],:not([data-theme])) body[class] .add-packs{display:grid;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .add-packs p{margin:0}
html:is([data-theme],:not([data-theme])) body[class] .plan-summary{display:flex;gap:12px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:14px;margin:0 0 14px}
html:is([data-theme],:not([data-theme])) body[class] .plan-summary .ps-av{font-size:30px}
html:is([data-theme],:not([data-theme])) body[class] .plan-summary small{display:block;color:var(--muted);font-size:12.5px}
html:is([data-theme],:not([data-theme])) body[class] .plan-summary .ps-count{text-align:center}
html:is([data-theme],:not([data-theme])) body[class] .plan-summary .ps-count b{font-size:18px}
html[data-theme="dark"] body[class] .plan-summary{background:#1A2036}
html:is([data-theme],:not([data-theme])) body[class] .plan-row .lvl-chip{display:inline-block;margin-top:6px}
html:is([data-theme],:not([data-theme])) body[class] .pp-fold .lvl-row{margin:8px 0 2px}
html:is([data-theme],:not([data-theme])) body[class] .plan-subject-section{background:transparent;border:0;box-shadow:none;padding:0}
html:is([data-theme],:not([data-theme])) body[class] .plan-subject-list{display:grid;gap:12px}

/* =====================================================================
   Reka bentuk v2 — satu skrin, satu kerja.
   Token warna disemak kontras: teks utama ≥ 12:1, teks kecil kelabu ≥ 6:1 pada permukaan (cerah & gelap).
   ===================================================================== */
html[data-theme="light"] body,html:not([data-theme]) body{
  --v-bg:#F3F4F9;--v-dot:rgba(42,52,140,.07);--v-surface:#FFFFFF;--v-ink:#151933;--v-muted:#535A78;--v-line:#E3E6EF;
  --v-btn:#2A348C;--v-btn-ink:#FFFFFF;--v-soft:#ECEEFB;--v-soft-ink:#26307F;--v-accent:#FFC94A;--v-accent-ink:#1A1F3A;
  --v-ok:#17703F;--v-ok-bg:#E7F5EC;--v-warn:#9A4A16;--v-warn-bg:#FDF0E6;--v-link:#2A348C;--v-shadow:0 1px 2px rgba(21,25,51,.06),0 4px 14px rgba(21,25,51,.04);
  --v-night:#1D2240;--v-night-ink:#FFFFFF;--v-night-muted:#C9CDE6;
}
html[data-theme="dark"] body{
  --v-bg:#0D1122;--v-dot:rgba(255,255,255,.045);--v-surface:#171C33;--v-ink:#EEF0FA;--v-muted:#A6ACC8;--v-line:#283050;
  --v-btn:#4552C9;--v-btn-ink:#FFFFFF;--v-soft:#232B4D;--v-soft-ink:#C9D0FF;--v-accent:#FFC94A;--v-accent-ink:#151933;
  --v-ok:#6FD69C;--v-ok-bg:#12301F;--v-warn:#F5AE77;--v-warn-bg:#35210F;--v-link:#B4BEFF;--v-shadow:0 1px 2px rgba(0,0,0,.35);
  --v-night:#232A52;--v-night-ink:#FFFFFF;--v-night-muted:#C9CDE6;
}
/* Latar bertekstur halus (grid titik) — tidak mengganggu bacaan */
html:is([data-theme],:not([data-theme])) body.theme-parent,html:is([data-theme],:not([data-theme])) body.theme-student{
  background-color:var(--v-bg);background-image:radial-gradient(var(--v-dot) 1px,transparent 1.3px);background-size:18px 18px;background-attachment:fixed;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body.theme-parent .page,html:is([data-theme],:not([data-theme])) body.theme-student .page{background:transparent}
html:is([data-theme],:not([data-theme])) body[class] .nav-svg{width:24px;height:24px;display:block;margin:0 auto}
html:is([data-theme],:not([data-theme])) body[class] #navTop .nav-svg{display:inline-block;width:18px;height:18px;vertical-align:-3px;margin:0 6px 0 0}

html:is([data-theme],:not([data-theme])) body[class] .v-stack{display:grid;gap:14px}
html:is([data-theme],:not([data-theme])) body[class] .v-hello{margin:4px 2px 16px}
html:is([data-theme],:not([data-theme])) body[class] .v-hello small{display:block;font-size:13px;font-weight:700;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-hello h1{margin:2px 0 0;font-size:24px;line-height:1.2;letter-spacing:-.01em;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-card{background:var(--v-surface);border:1px solid var(--v-line);border-radius:20px;padding:16px;box-shadow:var(--v-shadow);color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-card h2,html:is([data-theme],:not([data-theme])) body[class] .v-group h2{margin:0 0 10px;font-size:16px;font-weight:800;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-card-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 2px 6px}
html:is([data-theme],:not([data-theme])) body[class] .v-card-head h2{margin:0}
html:is([data-theme],:not([data-theme])) body[class] .v-card-head span{font-size:13px;font-weight:700;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-muted{color:var(--v-muted);font-size:14px;line-height:1.5;margin:0}
html:is([data-theme],:not([data-theme])) body[class] .v-check{display:flex;gap:12px;align-items:center;padding:12px 2px;border-top:1px solid var(--v-line)}
html:is([data-theme],:not([data-theme])) body[class] .v-check:first-of-type{border-top:0}
html:is([data-theme],:not([data-theme])) body[class] .v-check b{display:block;font-size:15px;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-check small{display:block;font-size:13px;line-height:1.4;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-check.done b{color:var(--v-muted);text-decoration:line-through;text-decoration-thickness:1px}
html:is([data-theme],:not([data-theme])) body[class] .v-tick{width:26px;height:26px;border-radius:50%;border:2px solid var(--v-line);flex:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
html:is([data-theme],:not([data-theme])) body[class] .v-check.done .v-tick{background:var(--v-ok);border-color:var(--v-ok);color:var(--v-surface)}
html:is([data-theme],:not([data-theme])) body[class] .v-btn{font:inherit;font-weight:800;font-size:14px;border:0;border-radius:12px;min-height:40px;padding:0 14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.sm{min-height:38px;font-size:13.5px;padding:0 12px}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.lg{min-height:52px;font-size:16px;border-radius:16px}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.xl{min-height:58px;font-size:18px;border-radius:16px}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.wide{width:100%}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.primary{background:var(--v-btn);color:var(--v-btn-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.soft{background:var(--v-soft);color:var(--v-soft-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.accent{background:var(--v-accent);color:var(--v-accent-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.ghost{background:transparent;color:var(--v-ink);border:1px solid var(--v-line)}
html:is([data-theme],:not([data-theme])) body[class] .v-btn.danger-ghost{background:transparent;color:#C2362F;border:1px solid var(--v-line)}
html[data-theme="dark"] body[class] .v-btn.danger-ghost{color:#FF8C84}
html:is([data-theme],:not([data-theme])) body[class] .v-btn:focus-visible,html:is([data-theme],:not([data-theme])) body[class] .v-row:focus-visible,html:is([data-theme],:not([data-theme])) body[class] .v-tile:focus-visible{outline:3px solid #8FA2FF;outline-offset:2px}
html:is([data-theme],:not([data-theme])) body[class] .v-link{background:none;border:0;padding:0;font:inherit;font-weight:800;font-size:14px;color:var(--v-link);cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .v-foot{text-align:center;margin:4px 0 0}
html:is([data-theme],:not([data-theme])) body[class] .v-group{display:grid;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .v-list{display:grid;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .v-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;font:inherit;color:var(--v-ink);background:var(--v-surface);border:1px solid var(--v-line);border-radius:18px;padding:14px;box-shadow:var(--v-shadow);cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .v-row .grow{display:grid;gap:6px;min-width:0}
html:is([data-theme],:not([data-theme])) body[class] .v-row small{font-size:12.5px;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .v-row-top b{font-size:16px;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-chev{color:var(--v-muted);display:flex}
html:is([data-theme],:not([data-theme])) body[class] .v-av{width:48px;height:48px;border-radius:14px;background:var(--v-soft);display:flex;align-items:center;justify-content:center;font-size:26px;flex:none}
html:is([data-theme],:not([data-theme])) body[class] .v-av.lg{width:auto;height:auto;background:none}
html:is([data-theme],:not([data-theme])) body[class] .v-tag{font-size:12.5px;font-weight:800;border-radius:99px;padding:3px 10px;white-space:nowrap}
html:is([data-theme],:not([data-theme])) body[class] .v-tag.ok{background:var(--v-ok-bg);color:var(--v-ok)}
html:is([data-theme],:not([data-theme])) body[class] .v-tag.warn{background:var(--v-warn-bg);color:var(--v-warn)}
html:is([data-theme],:not([data-theme])) body[class] .v-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
html:is([data-theme],:not([data-theme])) body[class] .v-week i{height:6px;border-radius:3px;background:var(--v-line)}
html:is([data-theme],:not([data-theme])) body[class] .v-week i.on{background:var(--v-btn)}
html:is([data-theme],:not([data-theme])) body[class] .v-childhead{display:flex;align-items:center;gap:12px;margin:4px 0 14px}
html:is([data-theme],:not([data-theme])) body[class] .v-childhead h1{margin:0;font-size:22px;line-height:1.2;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-childhead small{display:block;font-size:13px;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-back{width:40px;height:40px;border-radius:12px;border:1px solid var(--v-line);background:var(--v-surface);color:var(--v-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
html:is([data-theme],:not([data-theme])) body[class] .v-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--v-soft);border-radius:14px;padding:4px;margin:0 0 14px}
html:is([data-theme],:not([data-theme])) body[class] .v-seg button{font:inherit;font-size:14px;font-weight:700;border:0;border-radius:10px;min-height:40px;background:transparent;color:var(--v-muted);cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .v-seg button[aria-selected="true"]{background:var(--v-surface);color:var(--v-ink);font-weight:800;box-shadow:var(--v-shadow)}
html:is([data-theme],:not([data-theme])) body[class] .v-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .v-stats b{display:block;font-size:24px;font-weight:800;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-stats b small{font-size:14px;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-stats span{font-size:12.5px;color:var(--v-muted);line-height:1.3;display:block}
html:is([data-theme],:not([data-theme])) body[class] .v-skill{display:grid;gap:6px;padding:12px 0;border-top:1px solid var(--v-line)}
html:is([data-theme],:not([data-theme])) body[class] .v-skill:first-of-type{border-top:0;padding-top:0}
html:is([data-theme],:not([data-theme])) body[class] .v-skill b{font-size:15px}
html:is([data-theme],:not([data-theme])) body[class] .v-skill small{font-size:13px;line-height:1.45;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-skill small b{font-size:13px;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-pct{font-size:13px;font-weight:800;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-pct.warn{color:var(--v-warn)}
html:is([data-theme],:not([data-theme])) body[class] .v-bar{height:8px;border-radius:4px;background:var(--v-line);overflow:hidden}
html:is([data-theme],:not([data-theme])) body[class] .v-bar i{display:block;height:100%;border-radius:4px;background:#E58A3A}
html:is([data-theme],:not([data-theme])) body[class] .v-bar.primary i{background:var(--v-btn)}
html:is([data-theme],:not([data-theme])) body[class] .v-chips{display:flex;flex-wrap:wrap;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .v-chip{font-size:13px;font-weight:700;border-radius:99px;padding:6px 12px}
html:is([data-theme],:not([data-theme])) body[class] .v-chip.ok{background:var(--v-ok-bg);color:var(--v-ok)}
html:is([data-theme],:not([data-theme])) body[class] .v-quote{font-size:16px;font-weight:700;margin:0 0 6px;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-more summary{cursor:pointer;font-weight:800;font-size:14px;color:var(--v-link)}
html:is([data-theme],:not([data-theme])) body[class] .v-more p{color:var(--v-muted);font-size:14px;margin:6px 0 0}
html:is([data-theme],:not([data-theme])) body[class] .v-inline{display:flex;align-items:center;gap:12px}
html:is([data-theme],:not([data-theme])) body[class] .v-inline b{display:block;font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .v-inline small{display:block;font-size:13px;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-big{font-size:26px;font-weight:800;color:var(--v-link)}
html:is([data-theme],:not([data-theme])) body[class] .v-sticky{margin:16px 0 0}
html:is([data-theme],:not([data-theme])) body[class] .v-danger{display:grid;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .v-card .class-row,html:is([data-theme],:not([data-theme])) body[class] .v-card .ns-actions{margin:0}
/* Anak */
html:is([data-theme],:not([data-theme])) body[class] .v-kidhello{display:flex;align-items:center;gap:12px;margin:4px 2px 16px}
html:is([data-theme],:not([data-theme])) body[class] .v-kidhello h1{margin:0;font-size:24px;font-weight:900;color:var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-kidhello small{display:block;font-size:13.5px;font-weight:700;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-mission{background:var(--v-night);color:var(--v-night-ink);border-radius:24px;padding:22px 20px;display:grid;gap:6px}
html:is([data-theme],:not([data-theme])) body[class] .v-mission small{font-size:12.5px;font-weight:800;letter-spacing:.04em;color:var(--v-night-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-mission h2{margin:0;font-size:28px;font-weight:900;line-height:1.15;color:var(--v-night-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-mission p{margin:0 0 10px;font-size:15px;color:var(--v-night-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .v-tile{position:relative;font:inherit;color:var(--v-ink);background:var(--v-surface);border:1px solid var(--v-line);border-radius:18px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:var(--v-shadow);cursor:pointer;min-height:118px}
html:is([data-theme],:not([data-theme])) body[class] .v-tile b{font-size:14.5px}
html:is([data-theme],:not([data-theme])) body[class] .v-tile small{font-size:12px;font-weight:700;color:var(--v-muted);text-align:center}
html:is([data-theme],:not([data-theme])) body[class] .v-tile-ic{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center}
html:is([data-theme],:not([data-theme])) body[class] .v-tile-ic.amber{background:#FFF1CC;color:#8A5A00}
html:is([data-theme],:not([data-theme])) body[class] .v-tile-ic.violet{background:#ECE9FF;color:#4B3BB0}
html:is([data-theme],:not([data-theme])) body[class] .v-tile-ic.sky{background:#E3F2FA;color:#1A6890}
html[data-theme="dark"] body[class] .v-tile-ic.amber{background:#3A2E10;color:#FFD47A}
html[data-theme="dark"] body[class] .v-tile-ic.violet{background:#2A2452;color:#C8BFFF}
html[data-theme="dark"] body[class] .v-tile-ic.sky{background:#13324A;color:#9CD6F5}
html:is([data-theme],:not([data-theme])) body[class] .v-dot{position:absolute;top:10px;right:10px;width:10px;height:10px;border-radius:50%;background:#E5484D;box-shadow:0 0 0 2px var(--v-surface)}
html:is([data-theme],:not([data-theme])) body[class] .v-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
html:is([data-theme],:not([data-theme])) body[class] .v-days div{display:grid;justify-items:center;gap:4px}
html:is([data-theme],:not([data-theme])) body[class] .v-days span{width:32px;height:32px;border-radius:50%;background:var(--v-line);display:flex;align-items:center;justify-content:center;color:var(--v-accent-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-days .on span{background:var(--v-accent)}
html:is([data-theme],:not([data-theme])) body[class] .v-days .today span{box-shadow:0 0 0 2px var(--v-ink)}
html:is([data-theme],:not([data-theme])) body[class] .v-days small{font-size:11.5px;font-weight:700;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-adab,html:is([data-theme],:not([data-theme])) body[class] .v-story{display:grid;gap:12px;text-align:center}
html:is([data-theme],:not([data-theme])) body[class] .v-story{text-align:left}
html:is([data-theme],:not([data-theme])) body[class] .v-adab .v-big{font-size:48px}
html:is([data-theme],:not([data-theme])) body[class] .v-adab small,html:is([data-theme],:not([data-theme])) body[class] .v-story small{font-size:13px;font-weight:800;color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .v-adab p{margin:0;font-size:19px;font-weight:800;line-height:1.35}
html:is([data-theme],:not([data-theme])) body[class] .v-story-text{margin:0;font-size:17px;line-height:1.55}
html:is([data-theme],:not([data-theme])) body[class] .v-choices{display:grid;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .v-choice{text-align:left;font:inherit;font-weight:700;font-size:15.5px;line-height:1.4;padding:14px;border-radius:14px;border:2px solid var(--v-line);background:var(--v-surface);color:var(--v-ink);cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .v-note{background:var(--v-soft);color:var(--v-ink);border-radius:14px;padding:12px 14px;font-size:15px;line-height:1.5}
html:is([data-theme],:not([data-theme])) body[class] .v-note.ok{background:var(--v-ok-bg)}
html:is([data-theme],:not([data-theme])) body[class] .v-note p{margin:6px 0 0}
html:is([data-theme],:not([data-theme])) body[class] .v-card{overflow:hidden}
html:is([data-theme],:not([data-theme])) body[class] .v-card .switch input:checked+span{background:var(--v-btn)}
html:is([data-theme],:not([data-theme])) body[class] .v-card .switch span{background:var(--v-line)}
html:is([data-theme],:not([data-theme])) body[class] .v-card .class-row{border-top:0;padding-top:0}
html:is([data-theme],:not([data-theme])) body[class] .v-fold summary{cursor:pointer;font-weight:800;color:var(--v-ink);display:flex;align-items:center;gap:10px}
html:is([data-theme],:not([data-theme])) body[class] .v-fold summary .v-av{width:36px;height:36px;font-size:20px;border-radius:10px}
html:is([data-theme],:not([data-theme])) body[class] .v-fold[open] summary{margin-bottom:10px}
html:is([data-theme],:not([data-theme])) body[class] .switch{position:relative}
/* ===== Kelulusan Owner & Admin ===== */
html:is([data-theme],:not([data-theme])) body[class] .ap-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:4px 0 14px}
html:is([data-theme],:not([data-theme])) body[class] .ap-head h1{margin:0;font-size:24px}
html:is([data-theme],:not([data-theme])) body[class] .ap-head p{margin:2px 0 0;color:var(--muted);font-size:14px}
html:is([data-theme],:not([data-theme])) body[class] .ap-other{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
html:is([data-theme],:not([data-theme])) body[class] .ap-chip{font:inherit;font-size:13px;font-weight:700;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:99px;padding:6px 12px;cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .ap-chip b{margin-right:6px;color:#B3261E}
html:is([data-theme],:not([data-theme])) body[class] .ap-filter{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin:0 0 12px;scrollbar-width:none}
html:is([data-theme],:not([data-theme])) body[class] .ap-filter .chip{flex:none}
html:is([data-theme],:not([data-theme])) body[class] .ap-group,html:is([data-theme],:not([data-theme])) body[class] .ap-fix{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:6px 14px;margin:0 0 12px}
html:is([data-theme],:not([data-theme])) body[class] .ap-ghead{display:flex;align-items:center;gap:8px;padding:10px 0 6px}
html:is([data-theme],:not([data-theme])) body[class] .ap-ghead b{flex:1;font-size:15px}
html:is([data-theme],:not([data-theme])) body[class] .ap-ghead span{font-size:12px;font-weight:800;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .ap-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .ap-row input{width:22px;height:22px;flex:none;accent-color:#2A348C}
html:is([data-theme],:not([data-theme])) body[class] .ap-row b{display:block;font-size:14.5px;line-height:1.35}
html:is([data-theme],:not([data-theme])) body[class] .ap-row small{display:block;font-size:12.5px;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .ap-why{color:#9A4A16!important;font-weight:700}
html[data-theme="dark"] body[class] .ap-why{color:#F5AE77!important}
html:is([data-theme],:not([data-theme])) body[class] .ap-fix summary{display:flex;justify-content:space-between;padding:10px 0;cursor:pointer;list-style:none}
html:is([data-theme],:not([data-theme])) body[class] .ap-fix summary span{font-weight:800;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .ap-note{margin:6px 2px 90px}
html:is([data-theme],:not([data-theme])) body[class] .ap-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));width:min(560px,calc(100% - 24px));display:flex;align-items:center;gap:10px;background:#1D2240;color:#fff;border-radius:18px;padding:10px 10px 10px 16px;box-shadow:0 10px 30px rgba(0,0,0,.25);z-index:40}
html:is([data-theme],:not([data-theme])) body[class] .ap-bar span{flex:1;font-size:14px}
html:is([data-theme],:not([data-theme])) body[class] .ap-bar .v-btn.ghost{color:#fff;border-color:rgba(255,255,255,.3)}
@media (min-width:641px){html:is([data-theme],:not([data-theme])) body[class] .ap-bar{bottom:24px}}
html:is([data-theme],:not([data-theme])) body[class] .ap-qs{padding-left:20px;display:grid;gap:12px;max-height:55vh;overflow:auto;margin:8px 0}
html:is([data-theme],:not([data-theme])) body[class] .ap-qs ul{list-style:none;padding:0;margin:6px 0;display:grid;gap:2px;font-size:14px}
html:is([data-theme],:not([data-theme])) body[class] .ap-qs li.ok{color:#17703F;font-weight:800}
html[data-theme="dark"] body[class] .ap-qs li.ok{color:#6FD69C}
html:is([data-theme],:not([data-theme])) body[class] .ap-qs small{color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .ap-skip{padding-left:18px;display:grid;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .ap-skip small{display:block;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .admin-tabs{grid-template-columns:none;display:flex;overflow-x:auto;scrollbar-width:none}
html:is([data-theme],:not([data-theme])) body[class] .admin-tabs button{flex:1 0 auto;padding:0 14px}
html:is([data-theme],:not([data-theme])) body[class] .tab-n{display:inline-block;min-width:20px;padding:0 6px;border-radius:99px;background:#B3261E;color:#fff;font-size:11.5px;line-height:20px}
html:is([data-theme],:not([data-theme])) body[class] .admin-cards{display:grid;gap:10px;margin-top:14px}
html:is([data-theme],:not([data-theme])) body[class] .admin-search input{width:100%;box-sizing:border-box;font:inherit;font-size:15px;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--white);color:var(--ink);margin:0 0 12px}
/* Jadual admin jadi kad di telefon */
@media (max-width:640px){
  html:is([data-theme],:not([data-theme])) body[class] .admin-section .data-table thead{display:none}
  html:is([data-theme],:not([data-theme])) body[class] .admin-section .data-table,html:is([data-theme],:not([data-theme])) body[class] .admin-section .data-table tbody{display:block}
  html:is([data-theme],:not([data-theme])) body[class] .admin-section .data-table tr{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid var(--line)}
  html:is([data-theme],:not([data-theme])) body[class] .admin-section .data-table tr[hidden]{display:none}
  html:is([data-theme],:not([data-theme])) body[class] .admin-section .data-table td{display:block;border:0;padding:0}
  html:is([data-theme],:not([data-theme])) body[class] .admin-section .table-scroll{overflow:visible}
}
/* ===== Creator: cipta produk & senarai ===== */
html:is([data-theme],:not([data-theme])) body[class] .np-form{display:grid;gap:14px;max-width:760px}
html:is([data-theme],:not([data-theme])) body[class] .np-step{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px}
html:is([data-theme],:not([data-theme])) body[class] .np-step h2{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:16px}
html:is([data-theme],:not([data-theme])) body[class] .np-step h2 span{width:26px;height:26px;border-radius:50%;background:var(--v-btn);color:#fff;font-size:13px;display:flex;align-items:center;justify-content:center}
html:is([data-theme],:not([data-theme])) body[class] .np-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .np-grid.two{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
@media (max-width:640px){html:is([data-theme],:not([data-theme])) body[class] .np-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html:is([data-theme],:not([data-theme])) body[class] .np-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border:2px solid var(--line);border-radius:14px;cursor:pointer;background:var(--white);min-height:44px}
html:is([data-theme],:not([data-theme])) body[class] .np-card b{font-size:14px;line-height:1.3}
html:is([data-theme],:not([data-theme])) body[class] .np-card small{font-size:12px;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .np-card.sel,html:is([data-theme],:not([data-theme])) body[class] .np-chip.sel{border-color:var(--v-btn);box-shadow:0 0 0 3px color-mix(in srgb,var(--v-btn) 14%,transparent)}
html:is([data-theme],:not([data-theme])) body[class] .np-card input,html:is([data-theme],:not([data-theme])) body[class] .np-chip input{position:absolute;opacity:0;pointer-events:none}
html:is([data-theme],:not([data-theme])) body[class] .np-card:focus-within,html:is([data-theme],:not([data-theme])) body[class] .np-chip:focus-within{outline:3px solid #8FA2FF;outline-offset:2px}
html:is([data-theme],:not([data-theme])) body[class] .np-ic{font-size:22px;line-height:1}
html:is([data-theme],:not([data-theme])) body[class] .np-row{display:flex;flex-wrap:wrap;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .np-chip{position:relative;padding:10px 14px;border:2px solid var(--line);border-radius:99px;font-weight:800;font-size:14px;cursor:pointer;background:var(--white);min-height:44px;box-sizing:border-box;display:flex;align-items:center}
html:is([data-theme],:not([data-theme])) body[class] .np-name{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--white);color:var(--ink);margin-bottom:6px}
html:is([data-theme],:not([data-theme])) body[class] .np-adv{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:12px 16px}
html:is([data-theme],:not([data-theme])) body[class] .np-adv summary{cursor:pointer;font-weight:800;padding:4px 0}
html:is([data-theme],:not([data-theme])) body[class] .np-adv[open] summary{margin-bottom:12px}
html:is([data-theme],:not([data-theme])) body[class] .np-submit{padding:4px 0 8px}
html[data-theme="dark"] body[class] .np-card.sel,html[data-theme="dark"] body[class] .np-chip.sel{border-color:var(--v-link)}
html:is([data-theme],:not([data-theme])) body[class] .pc-list{display:grid;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .pc-item{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px 14px;color:var(--ink);text-decoration:none}
html:is([data-theme],:not([data-theme])) body[class] .pc-list.flat .pc-item{border-radius:12px}
html:is([data-theme],:not([data-theme])) body[class] .pc-main{min-width:0;color:var(--ink);text-decoration:none}
html:is([data-theme],:not([data-theme])) body[class] .pc-main b{display:block;font-size:15px;line-height:1.3}
html:is([data-theme],:not([data-theme])) body[class] .pc-main small{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
html:is([data-theme],:not([data-theme])) body[class] .pc-del{border:0;background:none;color:var(--muted);font-size:16px;width:36px;height:36px;border-radius:10px;cursor:pointer;flex:none}
html:is([data-theme],:not([data-theme])) body[class] .pc-del:hover{background:#FDECEC;color:#B3261E}
/* Editor: tajuk & butang soalan tidak melimpah di fon */
@media (max-width:640px){
html:is([data-theme],:not([data-theme])) body[class] .surface-title{flex-wrap:wrap;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .surface-title .actions{flex-wrap:wrap;width:100%}
html:is([data-theme],:not([data-theme])) body[class] .q .spread{flex-wrap:nowrap;align-items:flex-start;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .q .spread>b{min-width:0;overflow-wrap:anywhere}
html:is([data-theme],:not([data-theme])) body[class] .q .actions{flex:none;flex-wrap:nowrap}
html:is([data-theme],:not([data-theme])) body[class] .q{min-width:0;overflow-wrap:anywhere}
}
html:is([data-theme],:not([data-theme])) body[class] .lower-grid>*{min-width:0}
@media (max-width:640px){
html:is([data-theme],:not([data-theme])) body[class] .template-hero,html:is([data-theme],:not([data-theme])) body[class] .template-summary,html:is([data-theme],:not([data-theme])) body[class] .template-upload-promo,html:is([data-theme],:not([data-theme])) body[class] .template-help{display:none}
html:is([data-theme],:not([data-theme])) body[class] .template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
/* ===== Panduan Creator ===== */
html:is([data-theme],:not([data-theme])) body[class] .pg-steps{display:grid;gap:8px;margin-bottom:14px}
html:is([data-theme],:not([data-theme])) body[class] .pg-step{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px}
html:is([data-theme],:not([data-theme])) body[class] .pg-step b{display:block;font-size:15px}
html:is([data-theme],:not([data-theme])) body[class] .pg-step small{display:block;font-size:13px;color:var(--muted);margin-top:2px;line-height:1.45}
html:is([data-theme],:not([data-theme])) body[class] .pg-n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--v-btn);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
html:is([data-theme],:not([data-theme])) body[class] .pg-folds{display:grid;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .pg-fold{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:0 16px}
html:is([data-theme],:not([data-theme])) body[class] .pg-fold summary{cursor:pointer;font-weight:800;padding:14px 0;min-height:24px}
html:is([data-theme],:not([data-theme])) body[class] .pg-body{padding:0 0 14px;display:grid;gap:10px;min-width:0}
html:is([data-theme],:not([data-theme])) body[class] .pg-body .pc-item{border-radius:12px}
html:is([data-theme],:not([data-theme])) body[class] .pg-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;background:var(--paper,#F4F5FA);border-radius:10px;padding:10px;margin:0}
@media (max-width:640px){html:is([data-theme],:not([data-theme])) body[class] .pg-step{flex-wrap:wrap}html:is([data-theme],:not([data-theme])) body[class] .pg-step .v-btn{margin-left:42px}}
@media (max-width:640px){html:is([data-theme],:not([data-theme])) body[class] .pg-step .grow{flex:1 1 220px;min-width:0}}
/* Unit penggunaan: metrik utama Creator */
html:is([data-theme],:not([data-theme])) body[class] .usage-hero{grid-column:1/-1;text-align:left;font:inherit;color:inherit;cursor:pointer;background:linear-gradient(135deg,#EEF0FF,#E6FAF3);border:1px solid #CFd6FF}
html:is([data-theme],:not([data-theme])) body[class] .usage-hero .metric-value{font-size:44px;line-height:1.1;color:var(--v-btn)}
html:is([data-theme],:not([data-theme])) body[class] .usage-hero .metric-foot{color:#0B7A55;font-weight:700}
html:is([data-theme],:not([data-theme])) body[class] .usage-hero.down .metric-foot{color:#B3261E}
html:is([data-theme],:not([data-theme])) body[class] .usage-note{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
html[data-theme="dark"] body[class] .usage-hero{background:linear-gradient(135deg,#1E2350,#123A30);border-color:#33407A}
html[data-theme="dark"] body[class] .usage-hero .metric-value{color:#C7CEFF}
html[data-theme="dark"] body[class] .usage-hero .metric-foot{color:#7EE2BC}
html[data-theme="dark"] body[class] .usage-hero.down .metric-foot{color:#FFB4AB}
/* ===== Onboarding ibu bapa (kali pertama): skrin fokus tanpa navigasi ===== */
body.onboarding #navTop,body.onboarding #navBottom,body.onboarding #navSide,body.onboarding .portal-switch,body.onboarding .top-actions,body.onboarding .live-pill{display:none!important}
body.onboarding .page{padding-bottom:32px}
html:is([data-theme],:not([data-theme])) body[class] .ob-flow{max-width:520px;margin:8px auto 0;background:var(--white);border:1px solid var(--line);border-radius:24px;padding:20px 20px 24px;box-shadow:0 10px 40px rgba(20,24,60,.08)}
html:is([data-theme],:not([data-theme])) body[class] .ob-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
html:is([data-theme],:not([data-theme])) body[class] .ob-dots{display:flex;gap:6px}
html:is([data-theme],:not([data-theme])) body[class] .ob-dots i{width:28px;height:6px;border-radius:99px;background:var(--line);transition:background .25s}
html:is([data-theme],:not([data-theme])) body[class] .ob-dots i.on{background:var(--v-btn)}
html[data-theme="dark"] body[class] .ob-dots i.on{background:var(--v-link)}
html:is([data-theme],:not([data-theme])) body[class] .ob-step{display:grid;gap:12px}
html:is([data-theme],:not([data-theme])) body[class] .ob-step[hidden]{display:none}
html:is([data-theme],:not([data-theme])) body[class] .ob-step h1{font-size:24px;line-height:1.25;margin:0}
html:is([data-theme],:not([data-theme])) body[class] .ob-step>p{margin:0}
html:is([data-theme],:not([data-theme])) body[class] .ob-kicker{font-size:14px;color:var(--muted);margin:0}
html:is([data-theme],:not([data-theme])) body[class] .ob-input{width:100%;box-sizing:border-box;font:inherit;font-size:18px;padding:14px 16px;border-radius:14px;border:2px solid var(--line);background:var(--white);color:var(--ink)}
html:is([data-theme],:not([data-theme])) body[class] .ob-input:focus{border-color:var(--v-btn);outline:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--v-btn) 14%,transparent)}
html:is([data-theme],:not([data-theme])) body[class] .ob-back{justify-self:center;margin-top:2px}
html:is([data-theme],:not([data-theme])) body[class] .ob-carry{background:var(--paper,#F4F5FA);border-radius:12px;padding:8px 12px}
html:is([data-theme],:not([data-theme])) body[class] .ob-carry p{margin:4px 0}
html:is([data-theme],:not([data-theme])) body[class] .ob-flow .avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
html:is([data-theme],:not([data-theme])) body[class] .ob-flow .avatar-grid:not(.all) label:nth-child(n+9){display:none}
/* Pemilih tahap: tahun lahir dahulu, darjah sebagai pilihan */
html:is([data-theme],:not([data-theme])) body[class] .lv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .lv-chip{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px;border:2px solid var(--line);border-radius:14px;background:var(--white);color:var(--ink);font:inherit;cursor:pointer;min-height:56px}
html:is([data-theme],:not([data-theme])) body[class] .lv-chip b{font-size:18px}
html:is([data-theme],:not([data-theme])) body[class] .lv-chip small{font-size:12px;color:var(--muted)}
html:is([data-theme],:not([data-theme])) body[class] .lv-chip[aria-pressed="true"]{border-color:var(--v-btn);background:var(--v-soft);box-shadow:0 0 0 3px color-mix(in srgb,var(--v-btn) 14%,transparent)}
html[data-theme="dark"] body[class] .lv-chip[aria-pressed="true"]{border-color:var(--v-link);background:var(--v-soft)}
html:is([data-theme],:not([data-theme])) body[class] .lv-chip:focus-visible{outline:3px solid #8FA2FF;outline-offset:2px}
html:is([data-theme],:not([data-theme])) body[class] .lv-alt{margin-top:10px}
html:is([data-theme],:not([data-theme])) body[class] .lv-alt summary{cursor:pointer;font-size:14px;font-weight:700;color:var(--v-btn);padding:6px 0}
html[data-theme="dark"] body[class] .lv-alt summary{color:var(--v-link)}
html:is([data-theme],:not([data-theme])) body[class] .lv-alt[open] summary{margin-bottom:8px}
html:is([data-theme],:not([data-theme])) body[class] .lv-pick .age-hint{margin:8px 0 0}
@media (min-width:641px){html:is([data-theme],:not([data-theme])) body[class] .ob-flow{margin-top:32px;padding:28px 32px 32px}html:is([data-theme],:not([data-theme])) body[class] .ob-step h1{font-size:28px}}

/* ===== Warna tema (aksen): Nila (asal), Daun, Senja — terang & gelap. Kontras disemak: butang ≥ 5:1, pautan ≥ 5.8:1. ===== */
html[data-theme="light"][data-accent="daun"] body{--v-btn:#146B4F;--v-soft:#E2F3EB;--v-soft-ink:#0E5940;--v-link:#126447;--v-dot:rgba(20,107,79,.08);--v-night:#123A2E}
html[data-theme="dark"][data-accent="daun"] body{--v-btn:#177A5A;--v-soft:#173A30;--v-soft-ink:#A9E8CE;--v-link:#7FDDB7;--v-dot:rgba(127,221,183,.05);--v-night:#14382C}
html[data-theme="light"][data-accent="senja"] body{--v-btn:#A9411B;--v-soft:#FCEBE2;--v-soft-ink:#8A3414;--v-link:#A33E19;--v-dot:rgba(169,65,27,.08);--v-night:#4A2117}
html[data-theme="dark"][data-accent="senja"] body{--v-btn:#B04A22;--v-soft:#3B241B;--v-soft-ink:#FFCBB3;--v-link:#FFAE88;--v-dot:rgba(255,174,136,.05);--v-night:#3F2016}
/* Pemilih warna tema */
html:is([data-theme],:not([data-theme])) body[class] .accent-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .accent-pick button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border:2px solid var(--v-line);border-radius:14px;background:var(--v-surface);color:var(--v-ink);font:inherit;cursor:pointer;text-align:left}
html:is([data-theme],:not([data-theme])) body[class] .accent-pick button[aria-pressed="true"]{border-color:var(--v-btn);box-shadow:0 0 0 3px color-mix(in srgb,var(--v-btn) 18%,transparent)}
html:is([data-theme],:not([data-theme])) body[class] .accent-pick b{font-size:14px}
html:is([data-theme],:not([data-theme])) body[class] .accent-pick small{font-size:11.5px;color:var(--v-muted);line-height:1.3}
html:is([data-theme],:not([data-theme])) body[class] .sw{display:flex;gap:3px;margin-bottom:2px}
html:is([data-theme],:not([data-theme])) body[class] .sw i{width:16px;height:16px;border-radius:50%;display:block}
.sw-nila i:nth-child(1){background:#2A348C}.sw-nila i:nth-child(2){background:#8F9BFF}.sw-nila i:nth-child(3){background:#FFC94A}
.sw-daun i:nth-child(1){background:#146B4F}.sw-daun i:nth-child(2){background:#7FDDB7}.sw-daun i:nth-child(3){background:#FFC94A}
.sw-senja i:nth-child(1){background:#A9411B}.sw-senja i:nth-child(2){background:#FFAE88}.sw-senja i:nth-child(3){background:#FFC94A}
/* Profil: foto & nama */
html:is([data-theme],:not([data-theme])) body[class] .avatar.has-photo,html:is([data-theme],:not([data-theme])) body[class] #avatar.has-photo{padding:0;overflow:hidden;background:var(--v-soft)}
html:is([data-theme],:not([data-theme])) body[class] .avatar img,html:is([data-theme],:not([data-theme])) body[class] #avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
html:is([data-theme],:not([data-theme])) body[class] .avatar.xl{width:88px;height:88px;font-size:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
html:is([data-theme],:not([data-theme])) body[class] .profile-form{display:grid;gap:14px}
html:is([data-theme],:not([data-theme])) body[class] .pf-photo{display:flex;align-items:center;gap:16px}
html:is([data-theme],:not([data-theme])) body[class] .pf-photo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
html:is([data-theme],:not([data-theme])) body[class] .pf-photo-actions label{cursor:pointer}
html:is([data-theme],:not([data-theme])) body[class] .pf-info{display:grid;gap:6px;margin:0;font-size:14px}
html:is([data-theme],:not([data-theme])) body[class] .pf-info div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--v-line);padding:6px 0}
html:is([data-theme],:not([data-theme])) body[class] .pf-info dt{color:var(--v-muted)}
html:is([data-theme],:not([data-theme])) body[class] .pf-info dd{margin:0;font-weight:700;text-align:right;overflow-wrap:anywhere}
html:is([data-theme],:not([data-theme])) body[class] button.acct-head{width:100%;border:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;display:flex;align-items:center;gap:12px}
/* Komponen lama (.btn, .primary, .chip) ikut warna tema bila Daun/Senja dipilih (Nila kekal rupa asal). */
html:is([data-accent="daun"],[data-accent="senja"]) body:is(.theme-parent,.theme-student) :is(.primary,.btn:not(.ghost):not(.soft):not(.danger):not(.outline)){background:var(--v-btn)!important;color:var(--v-btn-ink)!important;border-color:transparent!important}
html:is([data-accent="daun"],[data-accent="senja"]) body:is(.theme-parent,.theme-student) :is(.btn.ghost,.btn.outline,.outline){color:var(--v-link)!important;border-color:color-mix(in srgb,var(--v-link) 45%,transparent)!important}
html:is([data-accent="daun"],[data-accent="senja"]) body:is(.theme-parent,.theme-student) :is(.btn.soft){background:var(--v-soft)!important;color:var(--v-soft-ink)!important}
html:is([data-accent="daun"],[data-accent="senja"]) body:is(.theme-parent,.theme-student) :is(.chip.sel,.chip[aria-pressed="true"],.seg button[aria-pressed="true"]){background:var(--v-btn)!important;color:var(--v-btn-ink)!important;border-color:var(--v-btn)!important}
html:is([data-accent="daun"],[data-accent="senja"]) body:is(.theme-parent,.theme-student) :is(.linkish){color:var(--v-link)!important}
html:is([data-accent="daun"],[data-accent="senja"]) body:is(.theme-parent,.theme-student) :is(#navTop button.sel,#navBottom button.sel){color:var(--v-soft-ink)!important;background:var(--v-soft)!important}
/* ===== Animasi pembuka: logo CELIK "celik" (membuka mata), sekali setiap sesi. Ketik untuk langkau. ===== */
#splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#F3F4F9;cursor:pointer;
  animation:sp-auto-out .4s ease 3.2s forwards;transition:opacity .45s ease,visibility .45s}
html[data-theme="dark"] #splash{background:#0D1122}
html.no-splash #splash,#splash.sp-gone{display:none}
#splash.sp-out{opacity:0;visibility:hidden}
#splash .sp-stage{display:flex;flex-direction:column;align-items:center;gap:14px}
#splash .sp-logo{width:104px;height:104px;border-radius:32px;background:none;box-shadow:0 18px 50px rgba(255,138,61,.35);animation:sp-pop .7s cubic-bezier(.3,1.5,.5,1) both}
#splash .sp-logo svg{width:100%;height:100%;display:block}
#splash .sp-arc{stroke-dasharray:100;stroke-dashoffset:100;animation:sp-draw .6s ease-out .25s forwards}
#splash .sp-eye{transform-box:view-box;transform-origin:24px 24px;animation:sp-open .35s ease-out .55s both,celik-blink 6s 1.4s infinite}
#splash .logo-spark{transform-box:fill-box;transform-origin:center;animation:sp-spark .6s ease-out .85s both}
#splash .sp-word{display:flex;gap:2px;font:800 30px/1 Manrope,'DM Sans',system-ui,sans-serif;letter-spacing:.06em}
#splash .sp-word span{opacity:0;transform:translateY(10px);animation:sp-up .4s ease-out forwards}
#splash .sp-word span:nth-child(1){color:#FF8A3D;animation-delay:.55s}#splash .sp-word span:nth-child(2){color:#FF5FA2;animation-delay:.62s}
#splash .sp-word span:nth-child(3){color:#8F6BFF;animation-delay:.69s}#splash .sp-word span:nth-child(4){color:#2FB5E8;animation-delay:.76s}#splash .sp-word span:nth-child(5){color:#2CC28A;animation-delay:.83s}
#splash .sp-tag{font:700 12px/1 Manrope,'DM Sans',system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#535A78;opacity:0;animation:sp-up .4s ease-out 1s forwards}
html[data-theme="dark"] #splash .sp-tag{color:#A6ACC8}
#splash.sp-tap .sp-logo{animation:celik-bounce .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes sp-pop{0%{transform:scale(.3) rotate(-14deg);opacity:0}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes sp-draw{to{stroke-dashoffset:0}}
@keyframes sp-open{0%{transform:scaleY(.05)}100%{transform:scaleY(1)}}
@keyframes sp-spark{0%{transform:scale(0) rotate(-90deg);opacity:0}60%{transform:scale(1.4) rotate(10deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes sp-up{to{opacity:1;transform:none}}
@keyframes sp-auto-out{to{opacity:0;visibility:hidden}}
@media (prefers-reduced-motion:reduce){#splash *,#splash{animation-duration:.01s!important;animation-delay:0s!important}#splash{animation:sp-auto-out .2s ease 1.2s forwards!important}}

/* Owner: tindakan ikon sahaja dalam jadual akaun */
.ico-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ico-btn { width: 36px; height: 36px; min-height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; border-radius: 10px; }
.ico-btn svg { display: block; }

/* Modul belajar dahulu (Jawi, Bahasa Cina, Tamil) */
.lesson-card .ls-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ls-dots { display: flex; gap: 6px; }
.ls-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .2; }
.ls-dot.past { opacity: .5; }
.ls-dot.on { opacity: 1; }
.ls-visual { font-size: 72px; line-height: 1; text-align: center; margin: 14px 0; }
.ls-pop { animation: ls-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ls-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ls-pop { animation: none; } }
.ls-text { font-size: 1.05rem; line-height: 1.6; }
.ls-q { margin: 14px 0 4px; }
.ls-opts { display: grid; gap: 8px; margin: 8px 0; }
.ls-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ls-nav [disabled] { opacity: .45; cursor: not-allowed; }
