/* ==========================================================
   Aplikasi Cipta CPNS: tampilan kaca, terang & gelap
   ========================================================== */
#root { position: relative; z-index: 2; }
body.no-scroll { overflow: hidden; }

/* ---------- Latar: mint bersih dengan semburat turquoise di atas (pilihan pemilik "B", 2026-11-21).
   Alasan: menyatu dengan warna utama Turquoise, bersih, tanpa pola. Tetap (fixed) supaya tidak ikut scroll. ---------- */
/* Dua warna merek berdampingan (permintaan pemilik): turquoise di kiri, coral di kanan, memudar ke mint. */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 248, 247, 0) 0px, var(--sand) 440px), linear-gradient(100deg, #DDF2F0 0%, #EAF4F1 48%, #FCE7E1 100%); }
:root[data-theme='dark'] .bg-orbs { background: linear-gradient(180deg, rgba(9, 21, 23, 0) 0px, var(--sand) 440px), linear-gradient(100deg, #0E2629 0%, #0C1D1F 50%, #2A1A18 100%); }

/* ---------- Kaca ---------- */
.glass {
  position: relative;
  padding: 1.4rem;
  border-radius: 1.75rem;
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair);
  isolation: isolate;
}
.glass-panel {
  background: color-mix(in srgb, var(--sand) 62%, transparent);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair), var(--shadow-float);
}
/* Kaca (blur) hanya di bar atas dan menu bawah (audit #13b). Panel lain padat. */
.panel { background: var(--paper); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair), var(--shadow-float); }
.side-in.panel { box-shadow: 0 0 0 1px var(--hair); }
/* Kilau yang lewat pelan-pelan */
.sheen { overflow: hidden; }
.sheen::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 1.6s var(--spring) 0.6s 1 both; /* sekali saat kartu muncul */
}
:root[data-theme='dark'] .sheen::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%); }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* ---------- Kerangka ---------- */
.app { position: relative; z-index: 2; display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 0.75rem 0 0.75rem 0.75rem; z-index: 10; }
.side-in { height: 100%; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.1rem 0.75rem 0.75rem; border-radius: 1.9rem; }
.side-in > .brand { padding: 0 0.6rem; }
/* Semua menu ada di sidebar; daftar menggulir sendiri bila layar pendek, kartu paket & akun tetap di bawah. */
.side-nav { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -0.3rem; padding: 0 0.3rem; }
.side-label { margin: 0.7rem 0.85rem 0.2rem; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.side-label:first-child { margin-top: 0.2rem; }
.side-soon { margin-left: auto; padding: 0.08rem 0.42rem; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); box-shadow: 0 0 0 1px var(--hair-2); }
.side-link.active .side-soon { color: var(--teal-ink); box-shadow: 0 0 0 1px rgba(18, 41, 43, 0.25); }
.side-link {
  position: relative; display: flex; align-items: center; gap: 0.75rem; flex: none;
  min-height: 40px; padding: 0.4rem 0.85rem; border-radius: 0.95rem; white-space: nowrap;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background-color 400ms var(--spring), color 400ms var(--spring), transform 400ms var(--spring), box-shadow 400ms var(--spring);
}
.side-link .ic { width: 22px; height: 22px; }
.side-link:hover { background: var(--hair); color: var(--ink); }
.side-link:active { transform: scale(0.98); }
.side-link.active {
  background: var(--teal);
  color: var(--teal-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.side-bottom { margin-top: auto; display: grid; gap: 0.6rem; }

.plan-mini {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem; border-radius: 1.25rem;
  background: linear-gradient(135deg, #FFE3DB 0%, #FFD0C4 100%);
  color: #9E3424;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 400ms var(--spring);
}
:root[data-theme='dark'] .plan-mini { background: linear-gradient(135deg, rgba(255, 107, 87, 0.22), rgba(255, 107, 87, 0.1)); color: #FFB2A6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.plan-mini:hover { transform: translateY(-1px); }
.pm-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--coral); color: #3A0D06; }
.plan-mini div { display: grid; line-height: 1.3; }
.plan-mini b { font-size: 14px; color: var(--ink); }
.plan-mini div span { font-size: 12.5px; }
.plan-mini .go { margin-left: auto; }
.plan-mini.premium { background: var(--night); color: var(--night-sub); }
.plan-mini.premium b { color: var(--night-text); }
:root[data-theme='dark'] .plan-mini.premium { background: linear-gradient(135deg, rgba(255, 107, 87, 0.2), rgba(255, 107, 87, 0.08)); color: #C9D8D6; }
:root[data-theme='dark'] .plan-mini.premium b { color: #FFB2A6; }

.side-user { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem; border-radius: 1.1rem; transition: background-color 400ms var(--spring); }
.side-user:hover, .side-user.active { background: var(--hair); }
.side-user .who { display: grid; min-width: 0; line-height: 1.3; flex: 1; }
.side-user .who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user > span:last-child { color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--coral); color: #2B0D07; /* coral: identitas pengguna, imbangan turquoise di navigasi */
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 21px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 2rem 0.6rem;
}
.tb-brand { display: none; }
.tb-title { display: none; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem; border-radius: 999px; }
@media (min-width: 1024px) {
  .tb-actions { background: color-mix(in srgb, var(--sand) 55%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair), var(--shadow-soft); }
}
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background-color 300ms var(--spring), transform 300ms var(--spring); }
.icon-btn:hover { background: var(--hair); color: var(--ink); }
.icon-btn:active { transform: scale(0.94); }
.bell .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--sand); transform: scale(0); transition: transform 400ms var(--spring); }
.bell.has .dot { transform: scale(1); }

.theme-switch {
  position: relative; width: 68px; height: 44px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 41, 43, 0.08), rgba(18, 41, 43, 0.04));
  box-shadow: inset 0 1px 2px rgba(18, 41, 43, 0.12), 0 0 0 1px var(--hair);
  transition: background-color 500ms var(--spring);
}
.ts-knob {
  position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #FFFFFF, #EAF2F1); color: #B97800;
  box-shadow: 0 2px 6px rgba(18, 41, 43, 0.2), inset 0 1px 0 #FFFFFF;
  transition: transform 550ms var(--spring), background 400ms var(--spring), color 400ms var(--spring);
}
.theme-switch.on { background: linear-gradient(180deg, #16343A, #0E2529); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.theme-switch.on .ts-knob { transform: translateX(24px); background: linear-gradient(160deg, #2C4E54, #1A363B); color: #9BEFF2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12); }

.pop-wrap { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 2rem));
  border-radius: 1.4rem; padding: 0.6rem; z-index: 30;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 250ms var(--spring), transform 350ms var(--spring);
}
.pop.open { opacity: 1; transform: none; }
.pop-head { padding: 0.5rem 0.7rem 0.6rem; font-size: 14px; }
.pop-item { display: flex; gap: 0.75rem; padding: 0.75rem; border-radius: 1rem; transition: background-color 300ms var(--spring); }
.pop-item:hover { background: var(--hair); }
.pop-item > span:last-child { display: grid; gap: 0.15rem; font-size: 13px; color: var(--ink-2); }
.pop-item b { font-size: 14px; color: var(--ink); }
.pi-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal-soft); color: var(--teal-deep); }
.pop-empty { display: grid; justify-items: center; gap: 0.5rem; padding: 1.6rem 1rem 1.8rem; color: var(--muted); font-size: 14px; }

.tabbar { display: none; }
.view { min-width: 0; outline: none; flex: 1; }

/* ---------- Halaman ---------- */
.page { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2rem 4rem; }
.page.narrow { max-width: 780px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.greet-date { font-size: 13.5px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.02em; margin-top: 0.3rem; }
.muted { color: var(--muted); }
.muted-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.opt { color: var(--muted); font-weight: 500; }
.note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 1rem; }
.link.sm { font-size: 0.875rem; display: inline-flex; align-items: center; min-height: 44px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.card-head h3 { font-size: 17px; }
.dotsep { color: var(--teal-deep); padding: 0 0.15rem; }
.more { display: inline-block; margin-top: 0.9rem; }

/* ---------- Sorotan ---------- */
.sorotan { position: relative; margin-bottom: 1rem; }
.sr-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 1.9rem; outline: none; }
.sr-track::-webkit-scrollbar { display: none; }
.slide {
  /* Teks selalu di sisi kiri yang gelap (kontras putih >= 4.7:1); warna terang hanya di sisi ikon. */
  --c1: #0E6E74; --c2: #127F86; --c3: #2DCCD3;
  position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden;
  min-height: 150px; border-radius: 1.5rem; padding: 1.3rem 1.8rem;
  display: flex; align-items: center;
  background: linear-gradient(100deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%);
  color: #FFFFFF;
}
.slide[data-tone='night'] { --c1: #12292B; --c2: #1F4549; --c3: #2B6A70; }
.slide[data-tone='coral'] { --c1: #A8351F; --c2: #C2452E; --c3: #FF6B57; }
.sl-body { position: relative; z-index: 2; display: grid; gap: 0.45rem; max-width: 30rem; }
.sl-tag { justify-self: start; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: #FFFFFF; color: #12292B; }
.sl-title { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sl-text { font-size: 0.9375rem; font-weight: 500; max-width: 26rem; }
.sl-cta { justify-self: start; margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.6rem 0.55rem 1rem; border-radius: 999px; min-height: 44px; font-weight: 600; font-size: 0.875rem; background: #FFFFFF; color: #12292B; transition: transform 400ms var(--spring); }
.slide:hover .sl-cta { transform: translateX(3px); }
.sl-deco { position: absolute; inset: 0; z-index: 1; }
.sl-deco i { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.sl-deco i:nth-child(1) { width: 320px; height: 320px; right: -60px; top: -110px; }
.sl-deco i:nth-child(2) { width: 200px; height: 200px; right: 40px; top: -20px; border-color: rgba(255, 255, 255, 0.22); background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%); }
.sl-big { position: absolute; right: 2.2rem; top: 50%; transform: translateY(-50%) rotate(-8deg); color: rgba(255, 255, 255, 0.92); }
.sl-big .ic { width: 104px; height: 104px; }
.sr-dots { display: flex; justify-content: center; margin-top: 0.2rem; }
.sr-dots button { width: 36px; height: 44px; display: grid; place-items: center; }
.sr-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--hair-2); transition: width 450ms var(--spring), background-color 300ms var(--spring); }
.sr-dots button[aria-selected='true']::before { width: 26px; background: var(--teal-deep); }

/* ---------- Bento Beranda ---------- */
.bento-app { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
/* Kartu target = fokus utama layar (audit #21): lebar penuh. */
.hero-card { grid-column: span 12; }
.task-card { grid-column: span 12; }
.menu-panel { grid-column: span 12; }
.score-card { grid-column: span 5; }
.info-tabs { grid-column: span 7; }
.rep-avg { grid-column: span 5; }
.rep-chart { grid-column: span 7; }
.rep-hist { grid-column: span 12; }

.hero-card { padding: 1.6rem 1.7rem 1.7rem; display: flex; flex-direction: column; gap: 1.3rem; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: linear-gradient(135deg, rgba(45, 204, 211, 0.12) 0%, transparent 45%, rgba(255, 107, 87, 0.12) 100%); }
.hc-top { display: flex; justify-content: space-between; align-items: center; }
.hc-edit { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.45rem 1rem; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: 0 0 0 1px var(--hair-2); background: var(--ghost-bg); transition: background-color 300ms var(--spring), transform 300ms var(--spring); }
.hc-edit:hover { color: var(--ink); }
.hc-edit:active { transform: scale(0.97); }
.hc-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.hc-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; max-width: 26rem; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.7rem; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hc-meta > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hc-meta .ic { color: var(--teal-deep); }
.count {
  display: flex; align-items: center; gap: 0.7rem; flex: none;
  padding: 0.75rem 1.15rem 0.75rem 0.9rem; border-radius: 1.3rem;
  background: #12292B; color: #EAF4F4;
}
:root[data-theme='dark'] .count { background: linear-gradient(150deg, rgba(45, 204, 211, 0.22), rgba(45, 204, 211, 0.08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(45, 204, 211, 0.25); }
.count b { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: #FF7A66; } /* coral: hal yang mendesak */
.count b.sm { font-size: 20px; }
.count span { font-size: 12.5px; line-height: 1.3; opacity: 0.8; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hc-actions .btn.ghost .ic { color: var(--coral-deep); }

.sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.big-num { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-num span { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.s-bars { margin-top: 1.2rem; display: grid; gap: 0.95rem; }
.s-row { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 0.7rem; font-size: 13px; font-weight: 600; }
.s-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.s-row em.ok { color: var(--ok); } .s-row em.bad { color: var(--bad); }
.bar { position: relative; height: 10px; border-radius: 99px; background: var(--sand-2); box-shadow: inset 0 1px 2px rgba(18, 41, 43, 0.08); }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 99px; background: var(--teal-2); }
.bar b { position: absolute; top: -4px; bottom: -4px; left: var(--p, 0%); width: 2px; border-radius: 2px; background: var(--ink); }
.s-foot { margin-top: 1.1rem; font-size: 12px; color: var(--muted); }
.empty { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; }
.empty h3 { font-size: 18px; margin-top: 0.6rem; }
.empty p { color: var(--ink-2); font-size: 14.5px; }
.empty .link { margin-top: auto; padding-top: 0.4rem; font-size: 0.875rem; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.em-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); }
:root[data-theme='dark'] .em-ic { background: var(--teal-soft); box-shadow: none; }

/* Tugas */
.task-progress { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tp-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.tp-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: var(--coral); transition: width 600ms var(--spring); } /* coral: kemajuan hari ini */
.tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.task {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; border-radius: 1.05rem;
  background: var(--ghost-bg); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair);
  transition: background-color 400ms var(--spring), opacity 400ms var(--spring);
}
.task-check { width: 44px; height: 44px; margin: -9px -6px -9px -9px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.tc-box {
  width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--hair-2); background: var(--field-bg); color: transparent;
  transition: background 400ms var(--spring), box-shadow 400ms var(--spring), transform 300ms var(--spring);
}
.task-check:hover .tc-box { box-shadow: inset 0 0 0 1.5px var(--teal-deep); }
.task-check:active .tc-box { transform: scale(0.9); }
.task.done .tc-box { background: var(--ok); box-shadow: none; color: #FFFFFF; }
.task-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.task.done .task-title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.lvl { flex: none; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lvl-ringan { background: var(--teal-soft); color: var(--teal-deep); }
.lvl-sedang { background: var(--sand-2); color: var(--ink-2); }
.lvl-berat { background: var(--coral-soft); color: var(--coral-deep); }
.task.done .lvl { background: var(--ok-soft); color: var(--ok); }
.task-del { width: 44px; height: 44px; margin: -6px -6px -6px 0; border-radius: 12px; display: grid; place-items: center; color: var(--muted); flex: none; transition: background-color 300ms var(--spring), color 300ms var(--spring); }
.task-del:hover { background: var(--bad-soft); color: var(--bad); }
.tasks-empty { color: var(--muted); font-size: 14px; padding: 0.4rem 0 0.2rem; }
.saran { margin-top: 1rem; }
.saran > p { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.saran-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.saran-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0.45rem 0.9rem 0.45rem 0.7rem; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--teal-deep); background: var(--teal-soft); transition: transform 300ms var(--spring), opacity 300ms; }
.saran-chip:hover { transform: translateY(-1px); }
.saran-chip:disabled { opacity: 0.5; }

/* Tab berita / peringkat */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.3rem; border-radius: 1.1rem; background: var(--sand-2); margin-bottom: 1rem; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; padding: 0.6rem; border-radius: 0.85rem; font-weight: 600; font-size: 14px; color: var(--muted); transition: background-color 400ms var(--spring), color 400ms var(--spring), box-shadow 400ms var(--spring); }
.seg button.on { background: var(--field-bg); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 12px -6px rgba(18, 41, 43, 0.3); }
:root[data-theme='dark'] .seg button.on { background: rgba(255, 255, 255, 0.1); }
.news { list-style: none; padding: 0; margin: 0; display: grid; }
.news li + li { border-top: 1px solid var(--hair); }
.news a { display: grid; gap: 0.15rem; padding: 0.7rem 0; }
.news b { font-size: 14.5px; }
.news span { font-size: 12.5px; color: var(--muted); }
.rank-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.rank-mini li { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 0.9rem; font-size: 14px; }
.rank-mini li.me { background: var(--teal-soft); }
.rank-mini b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-mini em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--sand-2); flex: none; }
.rk-1 { background: linear-gradient(145deg, #FFE08A, #F5B323); color: #5A3B00; }
.rk-2 { background: linear-gradient(145deg, #EEF2F4, #B9C4C9); color: #2E3B40; }
.rk-3 { background: linear-gradient(145deg, #F6C9A5, #D98A52); color: #4A2308; }

.empty-row { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 1.3rem 1rem; border-radius: 1.1rem; background: var(--hair); color: var(--muted); font-size: 14px; text-align: left; }
.empty-row .ic { width: 24px; height: 24px; flex: none; }

/* ---------- Ubin menu ---------- */
.mgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem 0.6rem; }
.mtile { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.6rem; padding: 0.4rem 0.2rem; border-radius: 1.2rem; text-align: center; transition: transform 450ms var(--spring); }
.mtile:hover { transform: translateY(-3px); }
.mtile:active { transform: scale(0.96); }
/* Tiga nada saja (audit #18): teal = belajar mandiri, coral = latihan soal, netral = komunitas & info. */
[data-tone] { --t1: #E3F7F6; --t2: #A9E9EA; --t3: #0A6A6F; }
[data-tone='coral'] { --t1: #FFEDE8; --t2: #FFC2B6; --t3: #A8351F; }
[data-tone='ink'] { --t1: #EEF3F2; --t2: #D3DEDC; --t3: #12292B; }
.mt-ic {
  position: relative; width: 66px; height: 66px; border-radius: 22px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, #FFFFFF 0%, var(--t1) 40%, var(--t2) 100%);
  color: var(--t3);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--hair);
  transition: transform 500ms var(--spring), box-shadow 500ms var(--spring);
}
.mt-ic::after { content: ''; position: absolute; left: 8%; right: 8%; top: 4%; height: 42%; border-radius: 18px 18px 40% 40%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); pointer-events: none; }
.mt-ic .ic { width: 32px; height: 32px; position: relative; z-index: 1; }
.mtile:hover .mt-ic { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--hair-2); }
:root[data-theme='dark'] .mt-ic { background: linear-gradient(150deg, color-mix(in srgb, var(--t2) 38%, #0F2225) 0%, color-mix(in srgb, var(--t3) 55%, #0F2225) 100%); color: var(--t1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08); }
:root[data-theme='dark'] .mt-ic::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)); }
.mt-label { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
/* Badge hanya untuk status nyata (audit #4, #9): "Segera" = belum bisa dipakai. Kontras >= 5.5:1. */
.mt-badge {
  position: absolute; top: -6px; left: calc(50% + 8px);
  padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  color: #F2FAFA; background: #12292B; box-shadow: 0 0 0 2px var(--sand);
  z-index: 2;
}
:root[data-theme='dark'] .mt-badge { color: #12292B; background: #E9F6F5; }
.mtile.segera .mt-ic { opacity: 0.72; }
.mtile.segera .mt-label { color: var(--ink-2); }

/* ---------- Ubin statistik ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.tile { padding: 1.15rem 1.2rem 1.25rem; }
.t-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--t1, #E3F7F6); color: var(--t3, #0A6A6F); }
:root[data-theme='dark'] .t-ic { background: color-mix(in srgb, var(--t2, #A9E9EA) 22%, transparent); color: var(--t2, #A9E9EA); }
.t-val { margin-top: 0.95rem; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.t-label { font-weight: 600; font-size: 14px; margin-top: 0.2rem; }
.t-sub { font-size: 12.5px; color: var(--muted); margin-top: 0.1rem; }

/* ---------- Riwayat & laporan ---------- */
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--hair); }
.hist li:first-child { border-top: 0; }
.h-main { display: grid; min-width: 0; }
.h-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-main span { font-size: 12.5px; color: var(--muted); }
.h-score { display: flex; align-items: center; gap: 0.7rem; }
.h-score b { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.chart { display: flex; align-items: flex-end; gap: 0.6rem; height: 200px; padding-top: 1.4rem; }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.35rem; }
.chart .cv { font-size: 0.75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart i { width: 100%; max-width: 36px; height: var(--h, 0%); border-radius: 10px 10px 4px 4px; background: var(--coral); }
.chart .col.ok i { background: var(--teal-2); }

/* ---------- Belajar & segera ---------- */
.menu-panel.grp + .menu-panel.grp { margin-top: 1rem; }
/* Belajar: satu panel, tiga kelompok */
.bl-panel { display: grid; gap: 1.6rem; }
.bl-label { font-size: 15px; font-weight: 700; margin-bottom: 0.9rem; }
.soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; padding: 3rem 2rem; overflow: hidden; }
.soon h1 { font-size: 28px; letter-spacing: -0.02em; }
.soon p { color: var(--ink-2); max-width: 30rem; }
.soon-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 0.3rem; background: linear-gradient(150deg, #FFFFFF 0%, var(--t1) 40%, var(--t2) 100%); color: var(--t3); box-shadow: inset 0 1.5px 0 #FFFFFF, 0 0 0 1px var(--hair); }
:root[data-theme='dark'] .soon-ic { background: color-mix(in srgb, var(--t2) 25%, transparent); color: var(--t2); box-shadow: none; }
.soon-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 0.8rem; }

/* ---------- Paket ---------- */
.plans-app { display: grid; grid-template-columns: 1fr 1.08fr; gap: 1rem; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.8rem; }
.plan-card.premium {
  position: relative; border-radius: 1.75rem; color: #EAF4F4;
  background: linear-gradient(160deg, #173A3E, #0C2124);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  isolation: isolate;
}
.plan-card.premium::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.1) 50%, transparent 65%); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font-weight: 700; font-size: 15px; color: var(--muted); }
.plan-card.premium .plan-name, .plan-card.premium .plan-sub { color: rgba(234, 244, 244, 0.7); }
.plan-price { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.plan-price.sm { font-size: 28px; padding: 0.35rem 0 0.2rem; }
.plan-sub { color: var(--muted); font-size: 14.5px; }
.plan-card ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: 0.7rem; font-size: 14.5px; }
.plan-card li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-card li .ic { color: var(--teal-deep); margin-top: 2px; }
.plan-card.premium li .ic { color: var(--teal); }
.plan-card .btn, .plan-card .cur { margin-top: auto; }
.plan-card .cur { align-self: flex-start; }
.plan-note { font-size: 12.5px; color: rgba(234, 244, 244, 0.65); margin-top: 0.7rem; text-align: center; }

/* ---------- Peringkat ---------- */
.me-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; overflow: hidden; }
.me-card .t-ic { width: 54px; height: 54px; border-radius: 18px; }
.rank-card { padding: 1.4rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 0.7rem; margin-bottom: 1.2rem; }
.pod { position: relative; display: grid; justify-items: center; gap: 0.15rem; padding: 1rem 0.6rem 2.6rem; border-radius: 1.3rem; text-align: center; background: var(--ghost-bg); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair); }
.pod b { font-size: 14.5px; }
.pod span:not(.pod-medal) { font-size: 12px; color: var(--muted); }
.pod em { font-style: normal; font-weight: 700; font-size: 22px; margin-top: 0.3rem; }
.pod i { position: absolute; bottom: 0.7rem; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.pod-1 { padding-top: 1.6rem; padding-bottom: 3.4rem; background: linear-gradient(170deg, rgba(255, 224, 138, 0.55), var(--ghost-bg)); }
.pod-medal { color: #C98A00; }
.pod-2 .pod-medal { color: #7A8A91; } .pod-3 .pod-medal { color: #B5672E; }
.pod.me { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 2px var(--teal); }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.rank-list li { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.7rem; border-radius: 1rem; }
.rank-list li.me { background: var(--teal-soft); }
.rn { flex: 1; display: grid; min-width: 0; }
.rn b { font-size: 14.5px; }
.rn span { font-size: 12px; color: var(--muted); }
.rank-list em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Study Plan ---------- */
.sp-card { padding: 1.5rem; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; margin-bottom: 1.2rem; }
.day { display: grid; justify-items: center; gap: 0.1rem; min-height: 44px; padding: 0.6rem 0; border-radius: 1rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: capitalize; transition: background-color 400ms var(--spring), color 400ms var(--spring); }
.day b { font-size: 18px; color: var(--ink); font-weight: 700; }
.day:hover { background: var(--hair); }
.day.today b { color: var(--coral-deep); }
.day.on { background: var(--teal); color: var(--teal-ink); }
.day.on b { color: var(--teal-ink); }
.sp-date { font-size: 17px; margin-bottom: 0.9rem; text-transform: capitalize; }
.add-task { display: grid; grid-template-columns: 1fr 130px auto; gap: 0.5rem; margin-bottom: 1rem; }
.lvl-sel select { padding-left: 1rem; }
.news-list { display: grid; gap: 0.8rem; }
.news-card h3 { font-size: 18px; margin: 0.4rem 0; }
.news-card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Akun ---------- */
.pad-lg { padding: 1.8rem; }
.page.narrow > section + section { margin-top: 1rem; }
.acc-id { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hair); }
.acc-id div { display: grid; line-height: 1.4; min-width: 0; }
.acc-id b { font-size: 18px; }
.acc-id span { font-size: 14px; overflow-wrap: anywhere; }
.acc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.acc-form .field:first-child { grid-column: span 2; }
.acc-form .alert, .acc-actions { grid-column: span 2; }
.acc-plan { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc-plan h2 { font-size: 26px; margin: 0.2rem 0 0.3rem; }
.acc-plan .muted { font-size: 14px; }
.acc-out { margin-top: 1.5rem; }
.acc-out .btn .ic { color: var(--bad); }

/* ---------- Kerangka muat ---------- */
.sk { border-radius: 1.75rem; background: linear-gradient(90deg, var(--hair) 0%, var(--hair-2) 50%, var(--hair) 100%); background-size: 200% 100%; animation: shimmer 1.4s var(--spring) infinite; }
.sk-h { height: 64px; width: 46%; margin-bottom: 1.4rem; border-radius: 1.2rem; }
.sk-banner { height: 150px; margin-bottom: 1rem; }
.sk-hero { grid-column: span 8; height: 248px; }
.sk-side { grid-column: span 4; height: 248px; }
.sk-list { height: 160px; border-radius: 1.1rem; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Lembar (dialog) ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1rem; }
.sheet-back { position: absolute; inset: 0; background: rgba(9, 21, 23, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 500ms var(--spring); }
.sheet { position: relative; width: min(520px, 100%); padding: 1.8rem; border-radius: 2rem; transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 650ms var(--spring), opacity 500ms var(--spring); background: color-mix(in srgb, var(--paper) 86%, transparent); }
.sheet-layer.open .sheet-back { opacity: 1; }
.sheet-layer.open .sheet { transform: none; opacity: 1; }
.sheet-grip { display: none; }
.sheet h2 { font-size: 24px; margin-top: 1rem; letter-spacing: -0.02em; }
.sheet-sub { color: var(--ink-2); margin-top: 0.4rem; font-size: 14.5px; }
.sheet-x { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color 300ms var(--spring); }
.sheet-x:hover { background: var(--hair); color: var(--ink); }
.sheet-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.4rem; }
.input-wrap.select::after { content: ''; position: absolute; right: 1.1rem; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.input-wrap input[type='date'] { min-height: 52px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 50; transform: translate(-50%, 20px); opacity: 0; padding: 0.75rem 1.2rem; border-radius: 999px; background: var(--night); color: var(--night-text); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-float); transition: transform 500ms var(--spring), opacity 400ms var(--spring); max-width: calc(100vw - 2rem); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok::before { content: '✓'; color: var(--teal); margin-right: 0.5rem; font-weight: 800; }
.toast.bad::before { content: '!'; color: var(--coral); margin-right: 0.5rem; font-weight: 800; }

/* ---------- Masuk / Daftar ---------- */
.auth { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(380px, 0.9fr) 1.1fr; min-height: 100dvh; }
.auth-show { padding: 1rem 0 1rem 1rem; }
.show-in {
  position: sticky; top: 1rem; height: calc(100dvh - 2rem); min-height: 560px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem; border-radius: 2rem; overflow: hidden; color: #EAF6F6;
  background: linear-gradient(160deg, #12292B 0%, #12292B 55%, #1C4C50 100%);
}
.brand.light > span { color: #5FE1E6; }
.brand.light b { color: #FF7A66; }
.show-copy h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); letter-spacing: -0.02em; color: #FFFFFF; }
.show-copy p { margin-top: 1rem; color: rgba(234, 246, 246, 0.78); max-width: 26rem; }
.show-card { padding: 1.3rem; border-radius: 1.5rem; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.08); display: grid; gap: 0.85rem; max-width: 380px; }
.sc-row { display: grid; grid-template-columns: 34px 1fr 32px; gap: 0.7rem; align-items: center; font-size: 13px; font-weight: 600; }
.sc-row em { font-style: normal; text-align: right; }
.show-card .bar { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.show-card .bar b { background: #FFFFFF; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.3rem; }
.sc-foot b { font-size: 26px; letter-spacing: -0.02em; }
.show-card .chip.ok { background: rgba(45, 204, 211, 0.18); color: var(--teal); }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem 2rem; }
.auth-brand-hp { display: none; }
.auth-card { width: min(460px, 100%); }
.auth-card.shell { background: var(--glass-shell); box-shadow: 0 0 0 1px var(--glass-edge), 0 0 0 1.5px var(--hair); }
.auth-card .core { padding: 2.2rem; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-edge), var(--shadow-float); }
.auth-card h1 { font-size: 28px; letter-spacing: -0.02em; }
.auth-sub { margin-top: 0.5rem; color: var(--ink-2); font-size: 15px; }
.auth-form { display: grid; gap: 1.05rem; margin-top: 1.5rem; }
.auth-form .btn { margin-top: 0.5rem; }
.auth-note { margin-top: 1.2rem; font-size: 12.5px; color: var(--muted); text-align: center; }

.auth-google { margin-top: 1.5rem; display: grid; gap: 1rem; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  width: 100%; min-height: 48px; padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600;
  border: 1px solid var(--hair); box-shadow: 0 1px 2px rgba(18, 41, 43, 0.05);
  transition: background-color 180ms var(--out), border-color 180ms var(--out), transform 180ms var(--out);
}
.btn-google:hover { background: var(--sand); border-color: var(--teal); }
.btn-google:active { transform: scale(0.99); }
.btn-google .g-ic { flex: 0 0 auto; display: block; }
.auth-sep {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--hair); }

.otp-head { display: grid; gap: 0.35rem; margin-bottom: 1.4rem; }
.otp-badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-deep); margin-bottom: 0.45rem;
}
.otp-badge svg { width: 22px; height: 22px; }
.otp-head .auth-sub b { color: var(--ink); font-weight: 600; word-break: break-all; }
.otp-form { display: grid; gap: 1.25rem; margin-top: 1.1rem; }
.otp-boxes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 300px; margin: 0 auto; width: 100%;
}
.otp-box {
  width: 100%; height: 60px; border-radius: 14px; text-align: center;
  font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--hair);
  transition: border-color 160ms var(--out), box-shadow 160ms var(--out), background-color 160ms var(--out);
}
.otp-box:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.otp-box.filled { border-color: var(--teal-deep); background: var(--sand); }
.otp-box.err { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(229, 83, 61, 0.14); }
.otp-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--hair);
}
.link-btn {
  background: none; border: 0; padding: 0.35rem 0; min-height: 44px;
  font-size: 13.5px; font-weight: 600; color: var(--teal-deep); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn:disabled { color: var(--muted); cursor: default; font-weight: 500; }
.link-btn.muted { color: var(--ink-2); font-weight: 500; }
.alert.ok { background: var(--teal-soft); color: var(--teal-deep); border-color: transparent; }

.notfound { min-height: 100dvh; display: grid; place-content: center; gap: 1.2rem; text-align: center; padding: 2rem; }
.nf-mark { margin: 0 auto; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-card, .info-tabs { grid-column: span 12; }
  .rep-avg, .rep-chart { grid-column: span 12; }
}
@media (max-width: 1023px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar {
    padding: calc(0.65rem + env(safe-area-inset-top)) 1rem 0.65rem;
    background: color-mix(in srgb, var(--sand) 70%, transparent);
    backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 0 var(--hair);
  }
  .tb-brand { display: inline-flex; }
  .tb-title { display: none; }
  .tb-actions { gap: 0.2rem; padding: 0; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; z-index: 20; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
    padding: 0.44rem; border-radius: 1.75rem; max-width: 540px; margin: 0 auto;
  }
  .tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 0.24rem; min-height: 54px; padding: 0.52rem 0 0.48rem; border-radius: 1.35rem; color: var(--muted); transition: color 240ms var(--spring), background-color 240ms var(--spring); }
  .tab-ic { display: grid; place-items: center; transition: transform 300ms var(--spring); }
  .tab-svg { width: 23px; height: 23px; display: block; }
  .tab-fill { fill: currentColor; fill-opacity: 0; transition: fill-opacity 240ms var(--out); }
  .tab-lbl { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1.25; }
  .tab.active { color: var(--teal-deep); background: color-mix(in srgb, var(--teal) 18%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
  .tab.active .tab-ic { transform: translateY(-1px); }
  .tab.active .tab-fill { fill-opacity: 0.22; }
  .tab.active .tab-lbl { font-weight: 800; color: var(--ink); }
  :root[data-theme='dark'] .tab.active { background: rgba(45, 204, 211, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
  :root[data-theme='dark'] .tab.active .tab-lbl { color: var(--teal-deep); }
  .view { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .page { padding: 1.2rem 1rem 2rem; }
  .bento-app > * { grid-column: span 12 !important; }
  .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 0.3rem; }
  .toast { bottom: calc(6.8rem + env(safe-area-inset-bottom)); }
  .sr-track { gap: 0.7rem; }
  .slide { flex-basis: 92%; }

  .auth { grid-template-columns: 1fr; }
  .auth-show { display: none; }
  .auth-main { justify-content: flex-start; padding: 1.5rem 1rem 3rem; gap: 1.5rem; }
  .auth-brand-hp { display: inline-flex; align-self: flex-start; }
}
@media (max-width: 640px) {
  .page-head { align-items: flex-start; }
  .page-head .streak { order: -1; }
  .glass { padding: 1.2rem; border-radius: 1.6rem; }
  .slide { min-height: 150px; padding: 1.2rem 1.2rem; border-radius: 1.4rem; }
  .sl-big { right: -0.6rem; opacity: 0.55; }
  .sl-big .ic { width: 112px; height: 112px; }
  .sl-text { font-size: 14px; max-width: 15rem; }
  .hero-card { padding: 1.3rem; }
  .hc-body { flex-direction: column; align-items: flex-start; }
  .hc-actions .btn { flex: 1 1 100%; }
  .tiles { gap: 0.75rem; }
  .tile { padding: 1rem; }
  .t-val { font-size: 26px; }
  .mt-ic { width: 60px; height: 60px; border-radius: 20px; }
  .mt-ic .ic { width: 30px; height: 30px; }
  .mt-label { font-size: 12.5px; }
  .mt-badge { left: calc(50% + 4px); }
  .plans-app { grid-template-columns: 1fr; }
  .podium { gap: 0.4rem; }
  .pod { padding-left: 0.3rem; padding-right: 0.3rem; }
  .add-task { grid-template-columns: 1fr 112px; }
  .add-task .btn { grid-column: span 2; }
  .auth-card .core { padding: 1.5rem; }
  .acc-form { grid-template-columns: 1fr; }
  .acc-form > * { grid-column: span 1 !important; }
  .acc-actions .btn { width: 100%; }
  .acc-plan { flex-direction: column; align-items: flex-start; }
  .sheet-layer { place-items: end center; padding: 0; }
  .sheet { width: 100%; border-radius: 1.9rem 1.9rem 0 0; padding: 1.2rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--hair-2); margin: 0 auto 0.8rem; }
  .sheet-actions .btn { flex: 1; }
}

/* Chip kecil di dalam tombol (status "Segera") */
.btn .sm-chip { padding: 0.15rem 0.5rem; font-size: 0.75rem; }
.hc-actions .btn.ghost { gap: 0.5rem; }
.chip.on-dark { background: rgba(255, 255, 255, 0.12); color: #EAF4F4; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.show-card > .chip.on-dark { justify-self: start; margin-bottom: 0.2rem; }
.head-note { font-size: 0.875rem; }
.card-head { flex-wrap: wrap; row-gap: 0.2rem; }
.card-head .link { white-space: nowrap; }
:root[data-theme='dark'] .task.done .tc-box { color: #0B2A1F; }
/* Ringkasan skor Tryout Mini (tanpa garis passing grade) */
.mini-skor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1.1rem 0 0.4rem; }
.mini-skor div { padding: 0.7rem 0.8rem; border-radius: 1rem; background: var(--sand-2); }
.mini-skor dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.mini-skor dd { margin: 0.1rem 0 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-card > .link.sm { margin-top: 0.4rem; }
.note-left { font-size: 0.8125rem; margin-top: 0.4rem; }
.h-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; min-height: 44px; }
.h-link:hover .h-main b { color: var(--teal-deep); }
.h-score b small { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.hist li { padding: 0.4rem 0; }
.chart a.col:hover i { opacity: 0.8; }
/* Laporan: statistik & insight */
.rep-stats { grid-column: span 7; }
.rep-insight { grid-column: span 5; }
.rep-sub { grid-column: span 12; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.st-box { padding: 0.85rem 0.9rem; border-radius: 1rem; background: var(--sand-2); }
.st-box dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.st-box dd { margin: 0.2rem 0 0; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-box p { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.insight { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.insight li { display: flex; gap: 0.6rem; font-size: 0.9375rem; color: var(--ink-2); }
.insight li > span:first-child { color: var(--coral-deep); margin-top: 2px; }
.rep-target { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--hair); display: grid; gap: 0.2rem; }
.rep-sub .sub-list { margin-bottom: 0.4rem; }
.sub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.sub-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 30%) 48px; align-items: center; gap: 0.8rem; }
.sub-name { display: grid; min-width: 0; }
.sub-name b { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-name span { font-size: 0.75rem; color: var(--muted); }
.sub-list em { font-style: normal; font-size: 0.8125rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .rep-stats, .rep-insight { grid-column: span 12; } }
@media (max-width: 640px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg.seg3 { grid-template-columns: repeat(3, 1fr); }
.akt { display: grid; gap: 0.1rem; padding: 0.65rem 0; font-size: 0.875rem; color: var(--ink-2); }
.akt b { color: var(--ink); font-weight: 600; }
.akt span { font-size: 0.75rem; color: var(--muted); }
/* Study Plan: tautan tugas, minggu, kalender, template */
.task-go { width: 44px; height: 44px; margin: -6px -4px -6px 0; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--teal-deep); transition: background-color 300ms var(--spring); }
.task-go:hover { background: var(--teal-soft); }
.wk-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.wk-head b { font-size: 1rem; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.wk-day { display: flex; flex-direction: column; gap: 0.4rem; min-height: 180px; padding: 0.75rem; border-radius: 1rem; background: var(--ghost-bg); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair); transition: box-shadow 300ms var(--spring); }
.wk-day:hover { box-shadow: 0 0 0 1.5px var(--teal-deep); }
.wk-day.today { box-shadow: 0 0 0 2px var(--coral); }
.wk-date { font-size: 0.8125rem; font-weight: 600; text-transform: capitalize; }
.wk-prog { font-size: 0.75rem; color: var(--coral-deep); font-weight: 600; }
.wk-day ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; font-size: 0.8125rem; }
.wk-day li { padding: 0.3rem 0.45rem; border-radius: 0.5rem; background: var(--sand-2); line-height: 1.35; }
.wk-day li span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wk-day li.done { text-decoration: line-through; color: var(--muted); }
.wk-day li.more { background: transparent; color: var(--muted); padding-left: 0; }
.wk-empty { font-size: 0.8125rem; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.cal-h { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); padding-bottom: 0.2rem; }
.cal-d { min-height: 64px; padding: 0.4rem 0.5rem; border-radius: 0.8rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair); transition: box-shadow 300ms var(--spring); }
.cal-d:hover { box-shadow: 0 0 0 1.5px var(--teal-deep); }
.cal-d b { font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.cal-d.out { opacity: 0.45; }
.cal-d.today { box-shadow: 0 0 0 2px var(--coral); }
.cal-d.done { background: var(--ok-soft); }
.cal-n { align-self: flex-end; font-size: 0.75rem; font-weight: 600; padding: 0.05rem 0.4rem; border-radius: 99px; background: var(--teal-soft); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.cal-d.done .cal-n { background: var(--ok); color: #FFFFFF; }
.tpl-sheet { width: min(640px, 100%); max-height: 88dvh; overflow-y: auto; }
.tpl-date { margin-top: 1rem; max-width: 260px; }
.tpl-list { display: grid; gap: 0.7rem; margin-top: 1.2rem; }
.tpl { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1.1rem; box-shadow: 0 0 0 1px var(--hair-2); }
.tpl h3 { font-size: 1rem; }
.tpl p.muted { font-size: 0.875rem; margin-top: 0.2rem; }
.tpl-meta { font-size: 0.8125rem; color: var(--coral-deep); font-weight: 600; margin-top: 0.3rem; }
@media (max-width: 900px) { .wk-grid { grid-template-columns: 1fr; } .wk-day { min-height: 0; } }
@media (max-width: 640px) {
  .cal-d { min-height: 52px; padding: 0.3rem; }
  .cal-n { align-self: center; padding: 0.05rem 0.3rem; }
  .tpl { flex-direction: column; align-items: stretch; }
  .tpl .btn { width: 100%; }
}
.acc-hint { grid-column: span 2; }
.acc-sub { margin-top: 1.4rem; }
@media (max-width: 640px) { .acc-hint { grid-column: span 1; } }
/* ---------- Bank Materi ---------- */
.mt-prog { display: grid; gap: 0.35rem; min-width: 220px; }
.mt-tabs { display: grid; grid-template-columns: repeat(3, auto); }
.mt-tabs a { gap: 0.5rem; }
.mt-tabs a span { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mt-sub { margin-bottom: 1rem; }
.mt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.mt-card { display: flex; flex-direction: column; gap: 0.6rem; transition: transform 400ms var(--spring), box-shadow 400ms var(--spring); }
.mt-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1.5px var(--teal-deep); }
.mt-card.done { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--ok); }
.mt-top { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.mt-card h3 { font-size: 1.0625rem; }
.mt-card p { font-size: 0.875rem; }
.mt-foot { margin-top: auto; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8125rem; font-weight: 600; color: var(--coral-deep); }
.mb .mb-sec { margin-bottom: 1rem; }
.mb-sec h2, .mb-h { font-size: 1.125rem; margin-bottom: 0.8rem; }
.mb-h { margin-top: 1.6rem; margin-bottom: 0.3rem; }
.mb-hint { font-size: 0.875rem; margin-bottom: 0.8rem; }
.mb-lead p { font-size: 1.0625rem; line-height: 1.7; }
.mb-points { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.9rem; }
.mb-points li::marker { color: var(--coral-deep); font-weight: 700; }
.mb-points b { display: block; font-size: 0.9375rem; }
.mb-points p { color: var(--ink-2); margin-top: 0.15rem; max-width: 68ch; }
.mb-table-wrap { overflow-x: auto; border-radius: 1rem; box-shadow: 0 0 0 1px var(--hair-2); }
.mb-table-wrap:focus-visible { outline-offset: 2px; }
.mb-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 520px; }
.mb-table th, .mb-table td { padding: 0.65rem 0.8rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--hair); }
.mb-table thead th { background: var(--sand-2); font-weight: 600; font-size: 0.8125rem; }
.mb-table tbody th { font-weight: 600; }
.mb-table tbody tr:last-child > * { border-bottom: 0; }
.mb-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.mb-call { padding: 1.2rem 1.3rem; border-radius: 1.5rem; }
.mb-call h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 0.5rem; }
.mb-call p { font-size: 0.9375rem; }
.mb-call.trap { background: var(--coral-soft); color: var(--ink); }
.mb-call.trap h2 { color: var(--coral-deep); }
.mb-call.tip { background: var(--teal-soft); color: var(--ink); }
.mb-call.tip h2 { color: var(--teal-deep); }
.mb-ex { margin-bottom: 1rem; }
.ex-opt.mb-key { background: var(--ok-soft); box-shadow: 0 0 0 2px var(--ok); opacity: 1; }
.ex-opt.mb-key .ex-letter { background: var(--ok); color: #FFFFFF; box-shadow: none; }
.ex-opt.mb-wrong { background: var(--bad-soft); box-shadow: 0 0 0 1.5px var(--bad); opacity: 1; }
.ex-opt.mb-wrong .ex-letter { background: var(--bad); color: #FFFFFF; box-shadow: none; }
.ex-opt.mb-dim { opacity: 0.6; }
.ex-opt[disabled] { cursor: default; }
:root[data-theme='dark'] .ex-opt.mb-key .ex-letter, :root[data-theme='dark'] .ex-opt.mb-wrong .ex-letter { color: #0B1F1A; }
.mb-exp { margin-top: 1rem; outline: none; }
.mb-end { margin-top: 1.4rem; }
.mb-end-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mb-end-row p { font-size: 0.875rem; margin-top: 0.2rem; }
.mb-end-act { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mb-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--hair); }
.mb-navlink { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; max-width: 48%; font-size: 0.875rem; font-weight: 600; color: var(--teal-deep); }
.mb-navlink small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.mb-navlink.next { margin-left: auto; text-align: end; }
@media (max-width: 640px) {
  .mt-prog { width: 100%; }
  .mt-tabs { display: grid; width: 100%; }
  .mb-callouts { grid-template-columns: 1fr; }
  .mb-end-act, .mb-end-act .btn, .mb-end-act > span { width: 100%; }
  .mb-end-act > span .btn { width: 100%; }
}
/* ---------- Panel admin ---------- */
.pk-tabs.adm-tabs { display: inline-grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-width: 100%; }
.adm-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.adm-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.adm-tools > p { max-width: 60ch; font-size: 0.875rem; }
.adm-filter { display: grid; grid-template-columns: 180px 180px minmax(180px, 1fr) auto; gap: 0.5rem; flex: 1; }
.adm-act { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.adm-count { font-size: 0.8125rem; }
.adm-list { display: grid; gap: 0.6rem; }
.adm-item { padding: 1rem 1.2rem; display: grid; gap: 0.5rem; }
.adm-item-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.adm-item-head code { font-size: 0.8125rem; padding: 0.1rem 0.45rem; border-radius: 0.4rem; background: var(--sand-2); }
.adm-item p.muted { font-size: 0.8125rem; }
.adm-stem { font-size: 0.9375rem; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.adm-item-act { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.btn.sm { min-height: 44px; padding: 0.3rem 1rem; font-size: 0.875rem; }
.adm-note { margin-top: 1rem; font-size: 0.9375rem; }
.adm-sheet { width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; }
.adm-sheet.wide { width: min(760px, 100%); }
.adm-form { gap: 0.8rem; }
.adm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.adm-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.adm-opt { display: grid; grid-template-columns: 1fr 96px; gap: 0.6rem; }
.input-wrap.plain input, .input-wrap.plain select, .input-wrap.plain textarea { padding-left: 1rem; }
.input-wrap textarea { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 0; outline: 0; background: transparent; border-radius: 1rem; font-size: 1rem; resize: vertical; line-height: 1.5; }
@media (max-width: 900px) { .adm-filter { grid-template-columns: 1fr 1fr; } .adm-filter .btn { grid-column: span 2; } }
@media (max-width: 640px) {
  .pk-tabs.adm-tabs { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; }
  .adm-2, .adm-3 { grid-template-columns: 1fr; }
  .adm-filter { grid-template-columns: 1fr; } .adm-filter .btn { grid-column: span 1; }
  .adm-act, .adm-act .btn { width: 100%; }
}

/* ---------- HP: lebih ringkas, supaya tidak banyak scroll (permintaan pemilik 2026-11-21) ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { padding: calc(0.4rem + env(safe-area-inset-top)) 0.85rem 0.4rem; }
  .tb-brand .brand-mark { width: 28px; height: 28px; }
  .tb-brand { font-size: 16px; gap: 0.5rem; }
  .tabbar { left: 0.65rem; right: 0.65rem; bottom: calc(0.65rem + env(safe-area-inset-bottom)); padding: 0.4rem; border-radius: 1.65rem; }
  .tab { min-height: 52px; padding: 0.48rem 0 0.44rem; gap: 0.22rem; border-radius: 1.25rem; }
  .tab-svg { width: 22px; height: 22px; }
  .view { padding-bottom: calc(4.9rem + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }

  .page { padding: 0.75rem 0.85rem 1.4rem; }
  .page-head { margin-bottom: 0.85rem; gap: 0.45rem; }
  .page-head h1 { font-size: 1.4rem; margin-top: 0.1rem; }
  .greet-date, .head-note { font-size: 12.5px; }
  .glass { padding: 1rem; border-radius: 1.3rem; }
  .bento-app { gap: 0.75rem; }
  .card-head { margin-bottom: 0.7rem; }
  .card-head h3 { font-size: 15.5px; }

  .btn { min-height: 44px; padding: 0.35rem 1.1rem; font-size: 14px; }
  .field { gap: 0.3rem; }
  .field > label { font-size: 13px; }
  .input-wrap input, .input-wrap select { min-height: 46px; padding-top: 0.6rem; padding-bottom: 0.6rem; }

  .slide { min-height: 0; padding: 1rem 1.1rem; border-radius: 1.2rem; }
  .sl-title { font-size: 1.12rem; }
  .sl-text { font-size: 13px; }
  .sl-big .ic { width: 88px; height: 88px; }
  .hero-card { padding: 1rem; }
  .hc-body h2 { font-size: 1.25rem; }
  .count b { font-size: 28px; }
  .big-num { font-size: 30px; }
  .tile { padding: 0.8rem; }
  .t-val { font-size: 22px; margin-top: 0.5rem; }
  .st-grid { gap: 0.5rem; }
  .st-box { padding: 0.65rem 0.75rem; border-radius: 0.85rem; }
  .st-box dd { font-size: 1.15rem; }
  .plan-card { padding: 1.1rem; }
  .plan-price { font-size: 30px; }
  .plan-price.sm { font-size: 22px; }
  .plan-card ul { margin: 0.8rem 0 1rem; gap: 0.45rem; font-size: 13.5px; }
  .acc-plan h2 { font-size: 20px; }
  .soon h1 { font-size: 22px; }
  .sheet h2 { font-size: 20px; }

  /* Ikon menu lebih kecil: semua menu Belajar muat satu layar */
  .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem 0.25rem; }
  .mtile { gap: 0.35rem; padding: 0.2rem 0.1rem; }
  .mt-ic { width: 50px; height: 50px; border-radius: 16px; }
  .mt-ic .ic { width: 25px; height: 25px; }
  .mt-label { font-size: 12px; }
  .mt-badge { top: -6px; padding: 0.05rem 0.4rem; }
}
@media (max-width: 640px) and (min-width: 360px) {
  .belajar .mgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .belajar .head-note { display: none; }
  .belajar .page-head { margin-bottom: 0.7rem; }
  .bl-panel { gap: 1rem; padding: 0.9rem 0.7rem; }
  .bl-label { font-size: 13.5px; margin: 0 0.3rem 0.6rem; }
}
@media (max-width: 640px) {
  .glass.pad-lg { padding: 1rem; }
  .avatar.lg { width: 50px; height: 50px; border-radius: 16px; font-size: 18px; }
  .acc-id { gap: 0.8rem; padding-bottom: 1rem; margin-bottom: 1rem; }
  .acc-id b { font-size: 16px; }
  .acc-id span { font-size: 13px; }
  .acc-form { gap: 0.8rem; }
  .mt-badge { left: auto; right: -2px; }
}
@media (max-width: 640px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .mt-badge { left: 50%; right: auto; top: -9px; transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .insight li, .insight p { font-size: 13.5px; }
}

/* Akun di bar atas (desktop); di HP lewat tab Akun */
.tb-user { display: none; }
@media (min-width: 1024px) {
  .tb-user { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.2rem 0.75rem 0.2rem 0.2rem; border-radius: 999px; transition: background-color 400ms var(--spring); }
  .tb-user:hover, .tb-user.active { background: var(--hair); }
  .tb-user .avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 13px; }
  .tb-user .who { display: grid; line-height: 1.2; max-width: 9rem; }
  .tb-user .who b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tb-user .who span { font-size: 12px; color: var(--muted); }
}
.side-link > [data-icon] { flex: none; display: grid; }
.side-link > span:not([data-icon]) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Akses Gratis (voucher) */
.ag-card { display: grid; gap: 1rem; }
.ag-ok { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 0.9rem; border-radius: 1rem; background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ink); }
.ag-ok > [data-icon] { color: var(--ok); flex: none; margin-top: 1px; }
.ag-form { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: end; }
.ag-form .field { min-width: 0; }
.ag-form input { text-transform: uppercase; letter-spacing: 0.04em; }
.ag-form input::placeholder { text-transform: none; letter-spacing: 0; }
.ag-form .btn { min-height: 52px; }
@media (max-width: 640px) { .ag-form { grid-template-columns: 1fr; } .ag-form .btn { width: 100%; min-height: 46px; } }

/* Video Penjelasan */
.vd-grp + .vd-grp { margin-top: 1.6rem; }
.vd-sub { font-size: 16px; margin: 0 0 0.8rem; }
.vd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vd-card { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.vd-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--sand-2); padding: 0; border: 0; }
.vd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--spring); }
button.vd-thumb { cursor: pointer; }
button.vd-thumb:hover img { transform: scale(1.03); }
.vd-thumb.soon img { filter: saturate(0.85); }
.vd-soon { position: absolute; left: 0.6rem; bottom: 0.6rem; background: rgba(255, 255, 255, 0.92); color: #12292B; }
.vd-play { position: absolute; inset: 0; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(0deg, rgba(18, 41, 43, 0.35), transparent 60%); }
.vd-body { padding: 0 0.4rem 0.4rem; display: grid; gap: 0.3rem; }
.vd-body h3 { font-size: 15px; line-height: 1.3; }
.vd-meta { font-size: 12.5px; color: var(--muted); }
.vd-sheet { width: min(960px, 94vw); }
.vd-sheet h2 { font-size: 18px; margin: 0 2.5rem 0.9rem 0; }
.vd-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #000; }
.vd-frame iframe, .vd-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 640px) {
  .vd-list { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .vd-card { padding: 0.4rem; gap: 0.45rem; border-radius: 1rem; }
  .vd-thumb { border-radius: 0.75rem; }
  .vd-body { padding: 0 0.25rem 0.3rem; }
  .vd-body h3 { font-size: 13px; }
  .vd-soon { left: 0.35rem; bottom: 0.35rem; font-size: 12px; padding: 0.05rem 0.45rem; }
  .vd-sub { font-size: 14.5px; margin-bottom: 0.55rem; }
}
.adm-vd { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: start; }
.adm-vd img { width: 160px; height: 90px; border-radius: 0.7rem; object-fit: cover; }
@media (max-width: 640px) { .adm-vd { grid-template-columns: 96px 1fr; gap: 0.7rem; } .adm-vd img { width: 96px; height: 54px; } }
.vd-chip { justify-self: start; font-size: 12px; padding: 0.1rem 0.55rem; }
.hide-sm { font-style: normal; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Papan sambutan: pilihan Study Plan */
.sp-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.sp-pick legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.sp-opts { display: grid; gap: 0.45rem; }
.sp-opt { display: flex; gap: 0.7rem; align-items: center; min-height: 44px; padding: 0.55rem 0.8rem; border-radius: 0.95rem; background: var(--field-bg); box-shadow: 0 0 0 1px var(--hair-2); cursor: pointer; transition: box-shadow 300ms var(--spring), background-color 300ms var(--spring); }
.sp-opt:has(input:checked) { box-shadow: 0 0 0 1.5px var(--teal-deep); background: color-mix(in srgb, var(--teal) 10%, var(--field-bg)); }
.sp-opt input { width: 18px; height: 18px; accent-color: var(--teal-deep); flex: none; margin: 0; }
.sp-opt span { display: grid; line-height: 1.3; }
.sp-opt b { font-size: 14px; }
.sp-opt small { font-size: 12px; color: var(--muted); }
.sp-opt:focus-within { box-shadow: 0 0 0 1.5px var(--teal-deep), 0 0 0 5px rgba(45, 204, 211, 0.18); }

/* ==========================================================
   Tema cerah (permintaan pemilik 2026-11-21: "jangan ngantuk, harus semangat").
   Identitas tetap turquoise + coral, ditambah kuning (sun) dan hijau (leaf) sebagai aksen.
   Kontras teks dicek: putih di #0A7F87 4.8:1, putih di #C93C27 5.1:1, tinta di #2DCCD3 7.8:1, #3A2400 di #FFC233 9.1:1.
   ========================================================== */
.bg-orbs { background: linear-gradient(180deg, rgba(246, 250, 250, 0) 0px, var(--sand) 520px), linear-gradient(100deg, #D6F7F8 0%, #EEFBFB 45%, #FFE9E2 100%); }

/* Kartu putih padat dengan bayangan berwarna lembut */
.glass { box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(14, 124, 130, 0.08), 0 14px 34px -22px rgba(14, 124, 130, 0.35); }
:root[data-theme='dark'] .glass { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair); }

/* Tombol utama: gradien turquoise yang hidup + cahaya */
.btn { --bg: linear-gradient(135deg, #46E0E6 0%, #22C3CB 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 26px -12px rgba(18, 170, 178, 0.75); }
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 32px -12px rgba(18, 170, 178, 0.9); }
.btn.ghost { --bg: #FFFFFF; }
:root[data-theme='dark'] .btn.ghost { --bg: var(--ghost-bg); }

/* Navigasi aktif */
.side-link.active { background: linear-gradient(135deg, #46E0E6 0%, #22C3CB 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 22px -12px rgba(18, 170, 178, 0.8); }

/* Ubin menu: ikon penuh warna, beda warna per menu */
[data-tone='teal'] { --g1: #46E0E6; --g2: #0E9AA3; --gi: #FFFFFF; }
[data-tone='coral'] { --g1: #FF9A7E; --g2: #E5533D; --gi: #FFFFFF; }
[data-tone='sun'] { --g1: #FFD966; --g2: #FFB21F; --gi: #3A2400; }
[data-tone='green'] { --g1: #4FD39A; --g2: #129067; --gi: #FFFFFF; }
[data-tone='night'] { --g1: #2B5559; --g2: #12292B; --gi: #FFC233; }
[data-tone='ink'] { --g1: #2B5559; --g2: #12292B; --gi: #FFC233; }
.mtile .mt-ic, :root[data-theme='dark'] .mtile .mt-ic {
  background: linear-gradient(150deg, var(--g1) 0%, var(--g2) 100%);
  color: var(--gi);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 12px 22px -14px color-mix(in srgb, var(--g2) 85%, transparent);
}
.mtile .mt-ic::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)); }
.mtile:hover .mt-ic { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 16px 26px -14px color-mix(in srgb, var(--g2) 95%, transparent); }
.mtile.segera .mt-ic { opacity: 0.55; filter: saturate(0.7); }
/* Label "Segera" coral (putih di #C93C27 = 5.1:1) */
.mt-badge, :root[data-theme='dark'] .mt-badge { background: #C93C27; color: #FFFFFF; }
.side-soon { color: #C93C27; box-shadow: 0 0 0 1px rgba(201, 60, 39, 0.35); background: #FFF1ED; }
:root[data-theme='dark'] .side-soon { color: #FF9182; background: rgba(255, 107, 87, 0.12); }

/* Sorotan lebih jenuh; teks putih selalu di sisi kiri yang gelap */
.slide { --c1: #0A7F87; --c2: #10A1AA; --c3: #46E0E6; }
.slide[data-tone='coral'] { --c1: #C93C27; --c2: #E5533D; --c3: #FF9A7E; }
.slide[data-tone='sun'] { --c1: #FFC233; --c2: #FFD15C; --c3: #FFE7A3; color: #3A2400; }
.slide[data-tone='sun'] .sl-deco i { border-color: rgba(58, 36, 0, 0.18); }
.slide[data-tone='sun'] .sl-big { color: rgba(58, 36, 0, 0.75); }

/* Kemajuan & streak: lebih hangat */
.tp-bar i { background: linear-gradient(90deg, #FF9A7E, #E5533D); }
.streak { background: linear-gradient(135deg, #FFE9E2, #FFD8CC); color: #A8351F; }

/* Strip aktivitas peserta (data asli dari /api/aktivitas) */
.live-strip { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: 1.3rem; background: #0A7F87; color: #FFFFFF; box-shadow: 0 14px 30px -20px rgba(10, 127, 135, 0.9); }
.live-strip::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(70, 224, 230, 0.55), transparent 70%); pointer-events: none; }
.live-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #FFFFFF; color: #0A7F87; font-weight: 800; font-size: 14px; }
.live-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; position: relative; z-index: 1; }
.live-txt b { font-size: 14.5px; font-weight: 700; }
.live-txt span { font-size: 12.5px; opacity: 0.9; }
.live-pill { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: #FFFFFF; color: #C93C27; font-weight: 700; font-size: 12.5px; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #E5533D; box-shadow: 0 0 0 3px rgba(229, 83, 61, 0.2); }
@media (max-width: 640px) { .live-strip { padding: 0.7rem 0.8rem; gap: 0.7rem; border-radius: 1.1rem; } .live-av { width: 36px; height: 36px; font-size: 13px; } .live-txt b { font-size: 13.5px; } }
/* Ikon sidebar: ubin kecil berwarna sesuai warna menu */
.side-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--g1), var(--g2)); color: var(--gi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.side-ic .ic { width: 18px; height: 18px; }
.side-link { padding-left: 0.55rem; }
.side-link.active .side-ic { background: #FFFFFF; color: #0A7F87; box-shadow: none; }
.side-link:has(.side-soon) .side-ic { opacity: 0.6; }

/* ==========================================================
   Ikon kaca 3D (permintaan pemilik 2026-11-21): ubin putih berkilau, ikon satu warna
   dengan gradasi turquoise terang ke gelap, isian memudar ke putih, titik kuning seperti titik di logo.
   Menggantikan ubin penuh warna per menu.
   ========================================================== */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:root { --ic-a: #2FD2DA; --ic-b: #0A7F87; --ic-s1: #6FE2E7; --ic-s2: #DFF9FA; }
:root[data-theme='dark'] { --ic-a: #7FEFF3; --ic-b: #22C3CB; --ic-s1: rgba(70, 224, 230, 0.55); --ic-s2: rgba(70, 224, 230, 0.12); }
.gs-main-a { stop-color: var(--ic-a); } .gs-main-b { stop-color: var(--ic-b); }
.gs-soft-a { stop-color: var(--ic-s1); } .gs-soft-b { stop-color: var(--ic-s2); }

.mtile .mt-ic, :root[data-theme='dark'] .mtile .mt-ic {
  background: linear-gradient(160deg, #FFFFFF 0%, #F3FCFC 50%, #DDF5F6 100%);
  color: var(--ic-b);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    inset 0 -5px 10px -6px rgba(14, 154, 163, 0.28),
    0 0 0 1px rgba(14, 124, 130, 0.09),
    0 12px 22px -14px rgba(14, 124, 130, 0.55);
}
:root[data-theme='dark'] .mtile .mt-ic { background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(70, 224, 230, 0.10) 60%, rgba(70, 224, 230, 0.18) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -5px 10px -6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 22px -14px rgba(0, 0, 0, 0.7); }
.mtile .mt-ic::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); height: 38%; }
:root[data-theme='dark'] .mtile .mt-ic::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)); }
.mtile:hover .mt-ic { box-shadow: inset 0 1.5px 0 #FFFFFF, inset 0 -5px 10px -6px rgba(14, 154, 163, 0.3), 0 0 0 1px rgba(14, 124, 130, 0.14), 0 16px 26px -14px rgba(14, 124, 130, 0.6); }
.mt-ic .ic-tile { width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(10, 127, 135, 0.18)); }
.mtile.segera .mt-ic { opacity: 0.6; filter: grayscale(0.35); }

.side-ic, :root[data-theme='dark'] .side-ic { background: linear-gradient(160deg, #FFFFFF 0%, #EAF9FA 100%); box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -3px 6px -4px rgba(14, 154, 163, 0.3), 0 0 0 1px rgba(14, 124, 130, 0.1), 0 6px 12px -8px rgba(14, 124, 130, 0.5); }
:root[data-theme='dark'] .side-ic { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.side-ic .ic-tile { width: 22px; height: 22px; }
.side-link.active .side-ic { background: #FFFFFF; }
@media (max-width: 640px) { .mt-ic .ic-tile { width: 34px; height: 34px; } }

/* Ilustrasi ikon (revisi): turquoise padat, bukan transparan; kuning di bagian ikon itu sendiri */
:root { --ic-a: #3AD8DF; --ic-b: #0E9AA3; --ic-l1: #D3F7F8; --ic-l2: #96E6EA; --ic-d1: #0E8F97; --ic-d2: #0A6A6F; }
:root[data-theme='dark'] { --ic-a: #5FE6EC; --ic-b: #1BB7C0; --ic-l1: #B5F1F4; --ic-l2: #6FDDE2; --ic-d1: #0E9AA3; --ic-d2: #0A7F87; }
.gs-light-a { stop-color: var(--ic-l1); } .gs-light-b { stop-color: var(--ic-l2); }
.gs-deep-a { stop-color: var(--ic-d1); } .gs-deep-b { stop-color: var(--ic-d2); }
.mt-ic .ic-art { filter: drop-shadow(0 3px 3px rgba(10, 106, 111, 0.22)); }
.mt-ic .ic-art { width: 46px; height: 46px; }
.side-ic .ic-art { width: 24px; height: 24px; }
@media (max-width: 640px) { .mt-ic .ic-art { width: 38px; height: 38px; } }

/* ---------- Tutorial pertama kali (tur) ---------- */
.tur { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.tur-tutup-klik { position: absolute; inset: 0; pointer-events: auto; }
.tur-sorot { position: fixed; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 1.1rem; box-shadow: 0 0 0 9999px rgba(10, 30, 32, 0.58), 0 0 0 3px #46E0E6; opacity: 0; transition: left 350ms var(--spring), top 350ms var(--spring), width 350ms var(--spring), height 350ms var(--spring), opacity 250ms ease; pointer-events: none; }
.tur-kartu { position: fixed; left: var(--kx); top: var(--ky); width: var(--kw); pointer-events: auto; padding: 1.1rem 1.15rem 1rem; border-radius: 1.4rem; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(6px); transition: opacity 250ms ease, transform 350ms var(--spring), left 350ms var(--spring), top 350ms var(--spring); outline: none; }
.tur.buka .tur-sorot, .tur.buka .tur-kartu { opacity: 1; transform: none; }
.tur-panah { position: absolute; top: -8px; left: calc(var(--px) - 8px); width: 16px; height: 16px; background: var(--paper); transform: rotate(45deg); border-radius: 3px; }
.tur-kartu.di-atas .tur-panah { top: auto; bottom: -8px; }
.tur-atas { display: flex; justify-content: space-between; align-items: center; }
.tur-no { font-size: 13px; font-weight: 700; color: var(--teal-deep); }
.tur-x { width: 44px; height: 44px; margin: -0.6rem -0.6rem -0.6rem 0; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.tur-kartu h2 { font-size: 18px; margin-top: 0.15rem; }
.tur-kartu p { margin-top: 0.35rem; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.tur-titik { display: flex; gap: 0.35rem; margin: 0.9rem 0 0.8rem; }
.tur-titik i { width: 7px; height: 7px; border-radius: 99px; background: var(--hair-2); transition: width 300ms var(--spring), background 300ms; }
.tur-titik i.on { width: 22px; background: linear-gradient(90deg, #46E0E6, #22C3CB); }
.tur-aksi { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.tur-lewati { min-height: 44px; padding: 0 0.4rem; color: var(--muted); font-weight: 600; font-size: 14px; }
.tur-lanjut { min-height: 44px; padding: 0.3rem 1.1rem; gap: 0.3rem; }
@media (prefers-reduced-motion: reduce) { .tur-sorot, .tur-kartu { transition: none; } }

/* ---------- Pencarian seragam ---------- */
.cari { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; padding: 0 1rem; min-height: 50px; border-radius: 1.1rem; background: var(--field-bg); box-shadow: 0 0 0 1px var(--hair-2), 0 8px 20px -16px rgba(14, 124, 130, 0.4); color: var(--muted); transition: box-shadow 300ms var(--spring); }
.cari:focus-within { box-shadow: 0 0 0 1.5px var(--teal-deep), 0 0 0 6px rgba(45, 204, 211, 0.16); color: var(--teal-deep); }
.cari input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.cari input::-webkit-search-cancel-button { cursor: pointer; }
.cari-kosong { text-align: center; padding: 1.5rem 0.5rem; }
.seg4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* ---------- Bank Materi: grid kartu ---------- */
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.mg-card { position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem; transition: transform 400ms var(--spring), box-shadow 400ms var(--spring); }
.mg-card:hover { transform: translateY(-2px); }
.mg-card[hidden] { display: none; }
.mg-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 0.2rem; background: linear-gradient(160deg, #FFFFFF 0%, #F3FCFC 50%, #DDF5F6 100%); box-shadow: inset 0 1.5px 0 #FFFFFF, inset 0 -4px 8px -5px rgba(14, 154, 163, 0.3), 0 0 0 1px rgba(14, 124, 130, 0.09), 0 10px 18px -12px rgba(14, 124, 130, 0.5); }
:root[data-theme='dark'] .mg-ic { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.mg-ic .ic-art { width: 30px; height: 30px; }
.mg-done { position: absolute; top: 0.9rem; right: 0.9rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #FFFFFF; }
.mg-card h3 { font-size: 15.5px; line-height: 1.3; }
.mg-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 12.5px; color: var(--muted); }
.mg-meta b { color: var(--teal-deep); }
.mg-sum { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-foot { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--teal-deep); }
@media (max-width: 640px) {
  .mg-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .mg-card { padding: 0.8rem; border-radius: 1.1rem; gap: 0.35rem; }
  .mg-ic { width: 42px; height: 42px; border-radius: 13px; }
  .mg-ic .ic-art { width: 26px; height: 26px; }
  .mg-card h3 { font-size: 13.5px; }
  .mg-sum { display: none; }
  .mg-done { top: 0.7rem; right: 0.7rem; width: 22px; height: 22px; }
  .cari { min-height: 46px; margin-bottom: 0.8rem; }
  .cari input { min-height: 44px; }
}
/* Hasil pencarian gabungan (Belajar) */
.cari-hasil { padding: 0.9rem; margin-bottom: 1rem; }
.cari-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.cari-list a { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.6rem; border-radius: 1rem; transition: background-color 300ms var(--spring); }
.cari-list a:hover { background: var(--sand-2); }
.cari-list .mg-ic { width: 42px; height: 42px; border-radius: 13px; margin: 0; flex: none; }
.cari-list .mg-ic .ic-art { width: 26px; height: 26px; }
.cl-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.cl-txt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-txt span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-card[hidden], .bl-panel[hidden] { display: none; }
.acc-out { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.acc-out [data-act="ulang-tur"] .ic { color: var(--teal-deep); }

/* ---------- Konten Premium: pesan "Whoops" ---------- */
.premium-alert { display: flex; align-items: flex-start; gap: 0.8rem; margin: 0 0 1rem; padding: 0.95rem 0.95rem 0.95rem 1.1rem; border-radius: 1.3rem; background: #FFF0EC; color: #7A2414; box-shadow: inset 4px 0 0 #E5533D, 0 0 0 1px rgba(229, 83, 61, 0.18); }
:root[data-theme='dark'] .premium-alert { background: rgba(255, 107, 87, 0.12); color: #FFC3B8; }
.pa-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #E5533D; color: #FFFFFF; font-weight: 800; font-size: 15px; margin-top: 1px; }
.pa-body { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.pa-body b { font-size: 16px; color: #C93C27; }
:root[data-theme='dark'] .pa-body b { color: #FF9182; }
.pa-body > span { font-size: 14.5px; }
.pa-act { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.pa-act .btn { min-height: 40px; padding: 0.25rem 1rem; font-size: 13.5px; }
.pa-x { flex: none; width: 40px; height: 40px; margin: -0.4rem -0.3rem 0 0; display: grid; place-items: center; border-radius: 50%; color: #C93C27; }

/* ---------- Kartu materi: ikon 2D datar, judul kategori – subtopik, gembok Premium ---------- */
.mg-ic.flat, :root[data-theme='dark'] .mg-ic.flat { background: linear-gradient(160deg, #EAFBFB, #D3F4F5); box-shadow: none; }
:root[data-theme='dark'] .mg-ic.flat { background: rgba(70, 224, 230, 0.14); }
.mg-ic.flat .ic-art { filter: none; }
.mg-sub { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-lock { position: absolute; top: 0.85rem; right: 0.85rem; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.55rem; border-radius: 99px; background: #C93C27; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.mg-card.locked .mg-ic { opacity: 0.75; }
@media (max-width: 640px) { .mg-lock { top: 0.65rem; right: 0.6rem; padding: 0.1rem 0.45rem; } .mg-sub { font-size: 12px; } }

/* ---------- Tombol unduh materi ---------- */
.mb-unduh { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1rem; }
.unduh-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.8rem; min-height: 64px; padding: 0.75rem 0.9rem; border-radius: 1.2rem; color: #FFFFFF; transition: transform 400ms var(--spring), box-shadow 400ms var(--spring); }
.unduh-btn::after { content: ''; position: absolute; right: -30px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.unduh-btn:hover { transform: translateY(-2px); }
.unduh-btn:active { transform: scale(0.98); }
.u-pdf { background: linear-gradient(120deg, #0A7F87 0%, #0E9AA3 60%, #22C3CB 100%); box-shadow: 0 14px 26px -16px rgba(10, 127, 135, 0.9); }
.u-tulis { background: linear-gradient(120deg, #C93C27 0%, #E5533D 55%, #FF8A6B 100%); box-shadow: 0 14px 26px -16px rgba(201, 60, 39, 0.9); }
.u-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.u-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; position: relative; z-index: 1; }
.u-txt b { font-size: 15px; }
.u-txt span { font-size: 12.5px; opacity: 0.92; }
.u-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: #0A7F87; position: relative; z-index: 1; }
.u-tulis .u-arrow { color: #C93C27; }
@media (max-width: 640px) { .mb-unduh { grid-template-columns: 1fr; gap: 0.6rem; } .unduh-btn { min-height: 58px; } }

/* ==========================================================
   Editor admin (materi, soal, paket): halaman penuh, kolom utama + panel samping lengket
   ========================================================== */
.ed-page { max-width: 1240px; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.ed-main, .ed-side { display: grid; gap: 1rem; min-width: 0; }
.ed-sec { display: grid; gap: 0.85rem; }
.ed-sec h2 { font-size: 16px; }
.ed-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.ed-sticky { position: sticky; top: 5.5rem; }
.ed-side-act { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ed-item { display: grid; gap: 0.6rem; padding: 0.9rem; border-radius: 1rem; background: var(--sand-2); }
.ed-item + .ed-item { margin-top: 0.7rem; }
.ed-item-head { display: flex; justify-content: space-between; align-items: center; }
.ed-urut { display: inline-flex; gap: 0.15rem; }
.ed-urut .icon-btn { width: 36px; height: 36px; background: var(--field-bg); box-shadow: 0 0 0 1px var(--hair-2); }
.ed-urut .icon-btn[disabled] { opacity: 0.35; }
.ed-table-wrap { overflow-x: auto; border-radius: 0.9rem; box-shadow: 0 0 0 1px var(--hair-2); }
.ed-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ed-table th, .ed-table td { padding: 0.35rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ed-table input, .ed-table textarea { width: 100%; min-height: 40px; padding: 0.45rem 0.6rem; border: 0; border-radius: 0.6rem; background: var(--field-bg); box-shadow: 0 0 0 1px var(--hair-2); font: inherit; font-size: 14px; color: var(--ink); resize: vertical; }
.ed-table th input { font-weight: 700; background: color-mix(in srgb, var(--teal) 10%, var(--field-bg)); }
.ed-tcol { width: 44px; }
.ed-row-act { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ed-opts { display: grid; gap: 0.4rem; }
.ed-opt { display: flex; align-items: center; gap: 0.5rem; }
.ed-opt input[type=radio], .ed-kunci input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; }
.ed-opt input:not([type]) { flex: 1; min-width: 0; min-height: 44px; padding: 0.5rem 0.75rem; border: 0; border-radius: 0.8rem; background: var(--field-bg); box-shadow: 0 0 0 1px var(--hair-2); font: inherit; font-size: 15px; color: var(--ink); }
.ed-opt-h { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); font-weight: 700; font-size: 13px; }
.ed-versi { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; max-height: 320px; overflow-y: auto; }
.ed-versi li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; border-radius: 0.8rem; background: var(--sand-2); }
.ed-versi li div { display: grid; min-width: 0; line-height: 1.3; }
.ed-versi b { font-size: 13.5px; } .ed-versi span { font-size: 12px; color: var(--muted); }
.ed-cek { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ed-cek input { width: 20px; height: 20px; accent-color: var(--teal-deep); }

/* Gambar soal */
.ed-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; }
.ed-imgs:empty { display: none; }
.ed-img { margin: 0; padding: 0.4rem; border-radius: 1rem; background: #FFFFFF; box-shadow: 0 0 0 1px var(--hair-2); display: grid; gap: 0.35rem; }
.ed-img img { width: 100%; height: 130px; object-fit: contain; border-radius: 0.7rem; background: #FFFFFF; }
.ed-img figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #3E5153; padding: 0 0.2rem; }
.ed-drop { display: grid; justify-items: center; gap: 0.3rem; padding: 1.2rem 1rem; border-radius: 1.1rem; border: 2px dashed color-mix(in srgb, var(--teal-deep) 45%, transparent); background: color-mix(in srgb, var(--teal) 6%, transparent); text-align: center; cursor: pointer; transition: background-color 250ms ease, border-color 250ms ease; }
.ed-drop:hover, .ed-drop.over { background: color-mix(in srgb, var(--teal) 14%, transparent); border-color: var(--teal-deep); }
.ed-drop:focus-within { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.ed-drop b { font-size: 15px; } .ed-drop span:not(.ed-drop-ic) { font-size: 12.5px; color: var(--muted); max-width: 30rem; }

/* Pilihan soal */
.ed-opt-row { display: flex; align-items: flex-start; gap: 0.5rem; }
.ed-opt-row + .ed-opt-row { margin-top: 0.45rem; }
.ed-opt-row .input-wrap { flex: 1; min-width: 0; }
.ed-opt-row textarea { min-height: 44px; padding: 0.55rem 0.8rem !important; resize: vertical; }
.ed-kunci { display: flex; align-items: center; gap: 0.35rem; min-height: 44px; cursor: pointer; }
.ed-kunci span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); font-weight: 700; }
.ed-kunci input:checked + span { background: var(--ok); color: #FFFFFF; }
.ed-skor { display: grid; gap: 0.1rem; font-size: 11.5px; color: var(--muted); }
.ed-skor select { min-height: 40px; padding: 0 0.4rem; border-radius: 0.7rem; border: 0; box-shadow: 0 0 0 1px var(--hair-2); background: var(--field-bg); font: inherit; font-size: 15px; color: var(--ink); }
.ed-opt-row .ed-opt-h { margin-top: 0.5rem; }
.ed-preview { gap: 0.6rem; }
.ed-preview .ex-stem { font-size: 15px; }
.ed-preview .ex-opt { cursor: default; }
.ed-preview .ex-opt .chip { margin-left: auto; }

/* Paket */
.ed-komp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.ed-komp div { padding: 0.6rem; border-radius: 0.9rem; background: var(--sand-2); display: grid; text-align: center; }
.ed-komp div.ok { background: var(--ok-soft); color: var(--ok); }
.ed-komp b { font-size: 20px; } .ed-komp span { font-size: 12px; }
.ed-soal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; max-height: 70vh; overflow-y: auto; }
.ed-soal li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.55rem; border-radius: 0.9rem; background: var(--sand-2); }
.ed-soal li.bad { box-shadow: inset 3px 0 0 var(--bad); }
.ed-no { flex: none; width: 30px; text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ed-soal-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ed-soal-txt b { font-size: 12.5px; color: var(--teal-deep); }
.ed-soal-txt span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-hasil { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; max-height: 60vh; overflow-y: auto; }
.ed-hasil li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; border-radius: 0.9rem; background: var(--sand-2); }
.ed-hasil li div { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ed-hasil b { font-size: 12.5px; } .ed-hasil span { font-size: 13px; } .ed-hasil code { font-size: 11.5px; color: var(--muted); }

/* Daftar soal admin: centang & aksi massal */
.adm-bulk { position: sticky; top: 4.5rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.8rem; margin-bottom: 0.6rem; border-radius: 1rem; background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 0 0 1px var(--hair-2); }
.adm-bulk-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 14px; }
.adm-bulk-act[hidden] { display: none; }
.adm-cek { width: 20px; height: 20px; accent-color: var(--teal-deep); }
.adm-stem-row { display: flex; gap: 0.7rem; align-items: flex-start; }
.adm-thumb { flex: none; width: 84px; height: 56px; object-fit: contain; border-radius: 0.6rem; background: #FFFFFF; box-shadow: 0 0 0 1px var(--hair-2); }

@media (max-width: 1023px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-side { order: 0; }
  .ed-sticky { position: static; }
  .ed-side .ed-sticky { order: 2; }
}
@media (max-width: 640px) {
  .ed-komp { grid-template-columns: repeat(2, 1fr); }
  .ed-item { padding: 0.75rem; }
  .adm-bulk { top: 3.8rem; }
}
@media (min-width: 1024px) {
  .ed-sticky { position: static; }
  .ed-side { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; overscroll-behavior: contain; padding: 0 2px 2px; scrollbar-width: thin; }
}
.mb-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem; margin-top: 0.4rem; }
.mb-figs .q-fig { margin: 0; }
.mb-points .q-fig { margin-top: 0.6rem; max-width: 560px; }
.ed-gbox { display: grid; gap: 0.5rem; }
.ed-drop-sm { padding: 0.75rem 0.9rem; grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 0.7rem; }
.ed-drop-sm .ed-drop-ic { grid-row: span 2; }
.ed-label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.ed-gbox .ed-imgs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ed-gbox .ed-img img { height: 100px; }

/* ---------- Akun: pusat akun ---------- */
.ak-hero { position: relative; overflow: hidden; padding: 1.5rem 1.4rem 4.2rem; border-radius: 1.8rem; color: #FFFFFF; background: linear-gradient(135deg, #0A7F87 0%, #10A1AA 55%, #2FD2DA 100%); box-shadow: 0 22px 40px -26px rgba(10, 127, 135, 0.9); }
.ak-deco i { position: absolute; border-radius: 50%; pointer-events: none; }
.ak-deco i:first-child { width: 280px; height: 280px; right: -90px; top: -120px; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%); }
.ak-deco i:last-child { width: 160px; height: 160px; left: -50px; bottom: -80px; background: radial-gradient(circle, rgba(255, 154, 126, 0.45), transparent 70%); }
.ak-top { position: relative; display: flex; align-items: center; gap: 1rem; }
.ak-avatar { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: 0.02em; color: #FFFFFF; background: linear-gradient(140deg, #FF9A7E, #E5533D); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.4); }
.ak-who { min-width: 0; display: grid; line-height: 1.25; }
.ak-who p { font-size: 14px; opacity: 0.9; }
.ak-who h1 { font-size: 1.6rem; margin: 0.1rem 0 0.15rem; color: #FFFFFF; overflow-wrap: anywhere; }
.ak-who span { font-size: 13.5px; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; }
.ak-chips { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ak-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0.2rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); color: #FFFFFF; font-size: 13px; font-weight: 700; transition: background-color 300ms ease; }
.ak-chip:hover { background: rgba(255, 255, 255, 0.28); }
.ak-chip.prem { background: #FFC233; color: #3A2400; box-shadow: none; }
.ak-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin: -3rem 0.8rem 1rem; padding: 0.9rem 0.5rem; text-align: center; }
.ak-stats div { display: grid; gap: 0.1rem; }
.ak-stats div + div { box-shadow: -1px 0 0 var(--hair); }
.ak-stats b { font-size: 1.45rem; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.ak-stats span { font-size: 12px; color: var(--muted); }
.ak-menu { padding: 0.4rem; margin-bottom: 0.9rem; }
.ak-menu ul { list-style: none; margin: 0; padding: 0; }
.ak-menu li + li { box-shadow: 0 -1px 0 var(--hair); }
.ak-row { width: 100%; display: flex; align-items: center; gap: 0.85rem; min-height: 64px; padding: 0.6rem 0.7rem; border-radius: 1rem; text-align: left; color: var(--ink); transition: background-color 300ms var(--spring); }
a.ak-row:hover, button.ak-row:hover { background: var(--sand-2); }
.ak-row.segera { opacity: 0.6; }
.ak-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #DDF5F6); box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(14, 124, 130, 0.09), 0 8px 14px -10px rgba(14, 124, 130, 0.5); }
:root[data-theme='dark'] .ak-ic { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.ak-ic .ic-art { width: 26px; height: 26px; }
.ak-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ak-txt b { font-size: 15px; }
.ak-txt span { font-size: 12.5px; color: var(--muted); }
.ak-caret { color: var(--muted); }
.ak-foot { display: flex; justify-content: space-between; margin: 0.4rem 0.4rem 0.8rem; font-size: 13px; color: var(--muted); }
.ak-keluar .ic { color: var(--bad); }
/* Paket saya */
.ak-plan { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.3rem; border-radius: 1.5rem; background: linear-gradient(135deg, #E6F8F9, #FFFFFF); box-shadow: 0 0 0 1px rgba(14, 124, 130, 0.12); margin-bottom: 0.8rem; }
.ak-plan.prem { background: linear-gradient(135deg, #12292B, #1F4549); color: #F2FAFA; }
.ak-plan div { display: grid; gap: 0.15rem; }
.ak-plan-lbl { font-size: 12.5px; font-weight: 600; opacity: 0.75; }
.ak-plan b { font-size: 1.6rem; }
.ak-plan div > span:last-child { font-size: 13.5px; opacity: 0.85; max-width: 32rem; }
.ak-plan-ic { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 10px 20px -12px rgba(14, 124, 130, 0.6); }
.ak-plan-ic .ic-art { width: 40px; height: 40px; }
.ak-plan-act { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
/* Bantuan */
.ak-faq { padding: 0.4rem 1rem; }
.ak-faq details + details { box-shadow: 0 -1px 0 var(--hair); }
.ak-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; min-height: 56px; cursor: pointer; font-weight: 700; font-size: 15px; }
.ak-faq summary::-webkit-details-marker { display: none; }
.ak-faq summary > [data-icon] { flex: none; color: var(--muted); transition: transform 300ms var(--spring); }
.ak-faq details[open] summary > [data-icon] { transform: rotate(90deg); }
.ak-faq p { padding: 0 0 1rem; color: var(--ink-2); font-size: 14.5px; }
.ak-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
button.ak-row.ak-keluar { cursor: pointer; }
.ak-keluar .ak-txt b { color: var(--bad); }
.ak-ic.bahaya { background: linear-gradient(160deg, #FFFFFF, #FDE6E1); color: var(--bad); }
/* HP: hub akun ringkas — semua menu terlihat tanpa banyak gulir */
@media (max-width: 640px) {
  .akun.page { padding-top: 0.6rem; }
  .ak-hero { padding: 0.85rem 1rem 2.4rem; border-radius: 1.3rem; }
  .ak-deco i:first-child { width: 200px; height: 200px; right: -70px; top: -90px; }
  .ak-top { gap: 0.75rem; }
  .ak-avatar { width: 50px; height: 50px; font-size: 18px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
  .ak-who p { font-size: 12px; }
  .ak-who h1 { font-size: 1.12rem; margin: 0; }
  .ak-who span { font-size: 12px; white-space: nowrap; }
  .ak-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0.4rem; margin-top: 0.7rem; }
  .ak-chips::-webkit-scrollbar { display: none; }
  .ak-chip { flex: none; min-height: 30px; padding: 0.1rem 0.65rem; font-size: 12px; }
  .ak-stats { margin: -1.85rem 0.6rem 0.5rem; padding: 0.45rem 0.3rem; border-radius: 1rem; }
  .ak-stats div { gap: 0; }
  .ak-stats b { font-size: 1.1rem; }
  .ak-stats span { font-size: 11px; }
  .ak-menu { padding: 0.2rem 0.3rem; margin-bottom: 0.6rem; border-radius: 1.1rem; }
  .ak-row { min-height: 44px; gap: 0.7rem; padding: 0.3rem 0.5rem; border-radius: 0.8rem; }
  .ak-ic { width: 34px; height: 34px; border-radius: 11px; }
  .ak-ic .ic-art { width: 21px; height: 21px; }
  .ak-txt b { font-size: 14px; }
  .ak-txt span { display: none; }
  .ak-foot { display: none; }
  .ak-menu { margin-bottom: 0.45rem; }
}
/* Program afiliasi */
.afiliasi h2 { font-size: 1.1rem; }
.af-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.3rem; border-radius: 1.6rem; margin-bottom: 0.9rem; color: #FFFFFF; background: linear-gradient(135deg, #0A7F87 0%, #10A1AA 55%, #2FD2DA 100%); box-shadow: 0 22px 40px -26px rgba(10, 127, 135, 0.9); }
.af-hero-txt { position: relative; flex: 1; min-width: 0; }
.af-hero h2 { color: #FFFFFF; font-size: 1.35rem; margin-bottom: 0.3rem; }
.af-hero p { font-size: 14px; opacity: 0.95; max-width: 34rem; }
.af-hero-ic { position: relative; flex: none; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.45); }
.af-hero-ic .ic-art { width: 52px; height: 52px; }
.af-muat { padding: 1.2rem; margin-bottom: 0.9rem; color: var(--muted); font-size: 14px; }
.af-kode { padding: 1.1rem 1.2rem; margin-bottom: 0.8rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.af-kode-top { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.af-kode-top > div { display: grid; }
.af-lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.af-kode-val { font-size: 1.7rem; letter-spacing: 0.08em; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.af-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.35rem 0.35rem 0.8rem; border-radius: 14px; background: var(--sand-2); box-shadow: inset 0 0 0 1px var(--hair); }
.af-link > [data-icon] { color: var(--muted); flex: none; }
.af-link-val { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.af-share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.af-sh { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 46px; border-radius: 14px; font-weight: 700; font-size: 14px; color: #FFFFFF; transition: transform 300ms var(--spring), filter 300ms ease; }
.af-sh:hover { transform: translateY(-2px); filter: brightness(1.05); }
.af-sh:active { transform: scale(0.98); }
.af-sh.wa { background: #1FA855; }
.af-sh.tg { background: #2A9BD8; }
.af-sh.lain { background: var(--coral); color: #2B0D07; }
.af-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 0.8rem; }
.af-stat > div { display: grid; gap: 0.1rem; padding: 0.8rem 0.6rem; text-align: center; }
.af-stat b { font-size: 1.45rem; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.af-stat .af-komisi b { font-size: 1.05rem; color: var(--coral-deep); padding-top: 0.3rem; }
.af-stat span { font-size: 12px; color: var(--muted); }
.af-riwayat { padding: 1rem 1.2rem; margin-bottom: 0.9rem; }
.af-riwayat ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.af-riwayat li { display: flex; align-items: center; gap: 0.7rem; min-height: 52px; }
.af-riwayat li + li { box-shadow: 0 -1px 0 var(--hair); }
.af-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #FFFFFF; background: linear-gradient(140deg, #FF9A7E, #E5533D); }
.af-r-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.af-r-txt b { font-size: 14.5px; }
.af-r-txt span { font-size: 12.5px; color: var(--muted); }
.af-st { flex: none; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sand-2); color: var(--ink-2); }
.af-st.prem { background: #FFC233; color: #3A2400; }
.af-kosong { color: var(--muted); font-size: 14px; padding: 0.4rem 0 0.2rem; }
.af-cara { padding: 1rem 1.2rem; margin-bottom: 0.9rem; }
.af-cara ol { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.af-cara li { position: relative; display: flex; align-items: flex-start; gap: 0.75rem; }
.af-cara li > span:last-child { display: grid; line-height: 1.35; }
.af-cara li b { font-size: 14.5px; }
.af-cara li > span:last-child > span { font-size: 13.5px; color: var(--ink-2); }
.af-no { position: absolute; left: -4px; top: -4px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #FFC233; color: #3A2400; }
.af-cara-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--teal-deep); background: linear-gradient(160deg, #FFFFFF, #DDF5F6); box-shadow: 0 0 0 1px rgba(14, 124, 130, 0.1); }
@media (max-width: 640px) {
  .af-hero { padding: 1rem; border-radius: 1.3rem; }
  .af-hero h2 { font-size: 1.12rem; }
  .af-hero p { font-size: 13px; }
  .af-hero-ic { width: 56px; height: 56px; border-radius: 18px; }
  .af-hero-ic .ic-art { width: 38px; height: 38px; }
  .af-kode { padding: 0.9rem; }
  .af-kode-val { font-size: 1.4rem; }
  .af-sh { min-height: 44px; font-size: 13px; gap: 0.3rem; }
  .af-share { gap: 0.4rem; }
  .af-stat b { font-size: 1.2rem; }
}
/* Pita "Diajak oleh" di halaman daftar */
.ajak-pita { display: flex; align-items: center; gap: 0.7rem; margin: 1.1rem 0 -0.4rem; padding: 0.65rem 0.8rem; border-radius: 14px; background: linear-gradient(135deg, #E6F8F9, #FFF4EF); box-shadow: inset 0 0 0 1px rgba(14, 124, 130, 0.14); font-size: 14px; color: var(--ink); }
.ajak-pita > [data-icon] { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--teal-deep); box-shadow: 0 0 0 1px rgba(14, 124, 130, 0.14); }
.ajak-pita p { flex: 1; min-width: 0; }
.ajak-pita b { color: var(--teal-deep); }
.plan-coret { margin-right: 0.5rem; font-size: 0.55em; font-weight: 600; opacity: 0.6; }
.plan-diskon { margin: 0.2rem 0 0.4rem; }
/* Program afiliasi: tab, pendaftaran 3 langkah, dashboard, panduan */
.pk-tabs.af-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); margin-bottom: 0.9rem; }
.pk-tabs.af-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.pk-tabs.af-tabs a [data-icon] { flex: none; display: inline-flex; width: 16px; height: 16px; }
.pk-tabs.af-tabs a .ic { width: 16px; height: 16px; opacity: 0.7; }
.af-kunci { display: grid; justify-items: center; gap: 0.6rem; padding: 2rem 1.4rem; text-align: center; }
.af-kunci-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--teal-deep); background: linear-gradient(160deg, #FFFFFF, #DDF5F6); box-shadow: 0 0 0 1px rgba(14, 124, 130, 0.12); }
.af-kunci p { max-width: 28rem; color: var(--ink-2); font-size: 14.5px; }
.af-status { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; margin-bottom: 0.8rem; }
.af-status h2 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.af-status p { font-size: 13.5px; color: var(--ink-2); }
.af-ring { --p: 0%; flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--p), var(--sand-2) 0); }
.af-ring b { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 18px; white-space: nowrap; background: var(--paper, #FFFFFF); font-size: 1.15rem; color: var(--ink); }
.af-ring small { font-size: 0.75em; color: var(--muted); font-weight: 700; }
.st-disetujui .af-ring { background: conic-gradient(#1FA855 100%, transparent 0); }
.st-ditolak .af-ring, .st-dibekukan .af-ring { background: conic-gradient(var(--coral) var(--p), var(--sand-2) 0); }
.af-catatan-adm { display: flex; gap: 0.45rem; margin-top: 0.5rem; padding: 0.55rem 0.7rem; border-radius: 12px; background: var(--coral-soft); color: var(--ink) !important; }
.af-catatan-adm > [data-icon] { flex: none; color: var(--coral-deep); }
.af-meta { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; font-size: 12.5px !important; color: var(--muted) !important; }
.af-step { padding: 1rem 1.1rem; margin-bottom: 0.7rem; }
.af-step-head { display: flex; align-items: center; gap: 0.8rem; }
.af-step-head > div { flex: 1; min-width: 0; }
.af-step-head h3 { font-size: 1.02rem; }
.af-step-no { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.af-step-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--teal-deep); background: var(--sand-2); }
.af-step-ic.ok { color: #FFFFFF; background: linear-gradient(140deg, #2FD2DA, #0A7F87); }
.af-chip { flex: none; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sand-2); color: var(--muted); }
.af-chip.ok { background: #DFF6E7; color: #13733A; }
.af-step-desk { margin: 0.7rem 0 0.8rem; padding-top: 0.7rem; box-shadow: 0 -1px 0 var(--hair); font-size: 13.5px; color: var(--ink-2); }
.af-dl { display: grid; gap: 0.35rem; margin: 0 0 0.8rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--sand-2); }
.af-dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 13.5px; }
.af-dl dt { color: var(--muted); }
.af-dl dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.af-tambah { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--teal-deep); background: #E6F8F9; box-shadow: inset 0 0 0 1px rgba(14, 124, 130, 0.22); transition: background-color 300ms ease, transform 300ms var(--spring); }
.af-tambah:hover { background: #D5F2F4; }
.af-tambah:active { transform: scale(0.98); }
:root[data-theme='dark'] .af-tambah { background: rgba(47, 210, 218, 0.12); color: #7FE6EB; }
.af-ch { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.4rem; }
.af-ch li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.45rem 0.45rem 0.7rem; border-radius: 12px; background: var(--sand-2); }
.af-ch-pl { flex: none; padding: 0.15rem 0.55rem; border-radius: 8px; font-size: 12px; font-weight: 700; color: #FFFFFF; background: var(--teal-deep); }
.af-ch-t { flex: 1; min-width: 0; display: grid; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.af-ch-t small { font-size: 12px; font-weight: 500; color: var(--muted); }
.af-ch-x { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--bad); }
.af-ch-x:hover { background: var(--coral-soft); }
.af-ajukan { display: grid; gap: 0.7rem; padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
.af-setuju { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.af-setuju input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal-deep); }
.af-saldo { font-size: 1.1rem !important; padding-top: 0.3rem; }
.af-cair { padding: 1rem 1.1rem; margin-bottom: 0.8rem; display: grid; gap: 0.7rem; }
.af-cair-top { display: flex; align-items: center; gap: 0.75rem; }
.af-cair-top > div { display: grid; line-height: 1.35; }
.af-cair-top b { font-size: 15px; }
.af-cair-top span { font-size: 12.5px; color: var(--muted); }
.af-cair-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #3A2400; background: #FFC233; }
.af-cair-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0.55rem 0.55rem 0.8rem; border-radius: 12px; background: var(--sand-2); font-size: 13px; }
.af-cair-note { font-size: 12.5px; color: var(--muted); }
.af-angka { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0.9rem 0.4rem; margin-bottom: 0.8rem; text-align: center; }
.af-angka div { display: grid; gap: 0.1rem; }
.af-angka div + div { box-shadow: -1px 0 0 var(--hair); }
.af-angka b { font-size: 1.3rem; color: var(--teal-deep); }
.af-angka span { font-size: 12px; color: var(--muted); }
.af-pd { padding: 0.3rem 0.5rem; margin-bottom: 0.8rem; }
.af-pd details + details { box-shadow: 0 -1px 0 var(--hair); }
.af-pd summary { list-style: none; display: flex; align-items: center; gap: 0.8rem; min-height: 64px; padding: 0.4rem 0.5rem; cursor: pointer; }
.af-pd summary::-webkit-details-marker { display: none; }
.af-pd-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--teal-deep); background: var(--sand-2); }
.af-pd details:nth-child(3) .af-pd-ic { color: var(--coral-deep); background: var(--coral-soft); }
.af-pd-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.af-pd-t b { font-size: 15px; }
.af-pd-t span { font-size: 12.5px; color: var(--muted); }
.af-pd-car { flex: none; color: var(--muted); transition: transform 300ms var(--spring); }
.af-pd details[open] .af-pd-car { transform: rotate(90deg); }
.af-pd ol { margin: 0 0 0.9rem; padding: 0 0.6rem 0 2.6rem; display: grid; gap: 0.45rem; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) {
  .af-status { padding: 0.9rem; gap: 0.8rem; }
  .af-ring { width: 60px; height: 60px; }
  .af-ring b { width: 48px; height: 48px; font-size: 1rem; padding-top: 14px; }
  .af-step { padding: 0.9rem; }
  .af-step-ic { width: 40px; height: 40px; border-radius: 12px; }
  .af-cair-row { flex-wrap: wrap; }
}
/* Aset dari panel admin */
.show-img { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 1.5rem; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5); }
img.ic-img { object-fit: contain; }
.slide.slide-img { padding: 0; aspect-ratio: 3 / 1; min-height: 0; background: var(--sand-2); }
.slide.slide-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Admin: Aset & gambar */
.as-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.as-nav .chip { cursor: pointer; min-height: 36px; }
.as-h { font-size: 1.15rem; margin: 1.6rem 0 0.7rem; scroll-margin-top: 90px; }
.as-h3 { font-size: 0.95rem; margin: 1rem 0 0.5rem; color: var(--muted); }
.as-sub { margin: -0.3rem 0 0.8rem; font-size: 13.5px; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0.8rem; }
.as-slot { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1rem; padding: 0.9rem; align-items: start; }
.as-prev { display: grid; place-items: center; overflow: hidden; border-radius: 0.9rem; background: repeating-conic-gradient(#EEF4F4 0% 25%, #FFFFFF 0% 50%) 0 0 / 16px 16px; box-shadow: inset 0 0 0 1px var(--hair); }
.as-prev img { display: block; width: 100%; height: 100%; object-fit: contain; }
.as-prev > span { padding: 0.8rem; font-size: 12.5px; color: var(--muted); text-align: center; }
.as-prev.r-1 { aspect-ratio: 1; } .as-prev.r-og { aspect-ratio: 1200 / 630; } .as-prev.r-hero { aspect-ratio: 6 / 5; }
.as-prev.r-banner { aspect-ratio: 16 / 5; } .as-prev.r-video { aspect-ratio: 16 / 9; }
.as-prev.r-video img { object-fit: cover; }
.as-info { display: grid; gap: 0.45rem; min-width: 0; }
.as-info p { font-size: 13px; color: var(--ink-2); }
.as-k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.as-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.as-head b { font-size: 15px; }
.as-act { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.as-ganti { cursor: pointer; }
.as-tautan { display: flex; gap: 0.4rem; }
.as-tautan .input-wrap { flex: 1; }
.as-grid-bn { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.as-bn { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.as-lanjut { margin-top: 0.7rem; }
.as-lanjut .btn { max-width: 100%; white-space: normal; }
.as-ikon { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.as-ik { display: grid; justify-items: center; gap: 0.35rem; padding: 0.8rem 0.6rem; text-align: center; }
.as-ik b { font-size: 13px; line-height: 1.25; }
.as-ik-prev { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #DDF5F6); box-shadow: 0 0 0 1px rgba(14, 124, 130, 0.1); }
.as-ik-prev img { width: 48px; height: 48px; object-fit: contain; }
.as-ik .as-act { justify-content: center; }
.as-video { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.as-vd { display: grid; gap: 0.5rem; padding: 0.6rem; }
.as-vd-t { display: grid; gap: 0.1rem; }
.as-vd-t small { font-size: 11.5px; color: var(--muted); }
.as-vd-t b { font-size: 13.5px; line-height: 1.3; }
.as-vd-t .chip { justify-self: start; }
/* pratinjau banner (tab Banner & Aset) */
.bn-prev { overflow: hidden; border-radius: 0.9rem; aspect-ratio: 3 / 1; max-height: 150px; background: var(--sand-2); }
.bn-item .bn-prev { max-width: 360px; margin-bottom: 0.6rem; }
.bn-prev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-kode { --c1: #0E6E74; --c2: #127F86; --c3: #2DCCD3; position: relative; display: flex; align-items: center; padding: 0.8rem 1rem; color: #FFFFFF; background: linear-gradient(100deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%); }
.bn-kode[data-tone='night'] { --c1: #12292B; --c2: #1F4549; --c3: #2B6A70; }
.bn-kode[data-tone='coral'] { --c1: #A8351F; --c2: #C2452E; --c3: #FF6B57; }
.bn-kode[data-tone='sun'] { --c1: #FFC233; --c2: #FFD15C; --c3: #FFE7A3; color: #3A2400; }
.bn-kode > span:last-child { position: relative; display: grid; gap: 0.15rem; max-width: 70%; }
.bn-kode small { justify-self: start; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; background: #FFFFFF; color: #12292B; }
.bn-kode b { font-size: 15px; line-height: 1.2; }
.bn-ic { position: absolute; right: 0.6rem; bottom: 0.2rem; opacity: 0.9; }
/* pilih satu gambar di formulir */
.pg { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.pg-prev { display: grid; place-items: center; aspect-ratio: 3 / 1; overflow: hidden; border-radius: 0.8rem; background: var(--sand-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: 12px; color: var(--muted); }
.pg-prev img { width: 100%; height: 100%; object-fit: cover; }
.pg-act { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pg-act .hint { flex-basis: 100%; }
.pg-pilih { cursor: pointer; }
@media (max-width: 640px) {
  .as-grid, .as-grid.as-grid-bn { grid-template-columns: minmax(0, 1fr); }
  .as-slot { grid-template-columns: minmax(0, 1fr); }
  .as-prev.r-1 { max-width: 140px; }
  .pg { grid-template-columns: minmax(0, 1fr); }
  .as-video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-ikon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Admin: Teks landing */
.as-h-link { margin-left: 0.6rem; font-size: 0.8rem; font-weight: 600; }
.lp-list { display: grid; gap: 0.7rem; }
.lp-sec { padding: 0.2rem 1rem; }
.lp-sec > summary { list-style: none; display: flex; align-items: center; gap: 0.7rem; min-height: 64px; cursor: pointer; }
.lp-sec > summary::-webkit-details-marker { display: none; }
.lp-sec-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.lp-sec-t b { font-size: 15.5px; }
.lp-sec-t span { font-size: 12.5px; color: var(--muted); }
.lp-car { flex: none; color: var(--muted); transition: transform 300ms var(--spring); }
.lp-sec[open] .lp-car { transform: rotate(90deg); }
.lp-form { display: grid; gap: 0.8rem; padding: 0.4rem 0 1rem; box-shadow: 0 -1px 0 var(--hair); padding-top: 1rem; }
.lp-items { display: grid; gap: 0.6rem; }
.lp-item { padding: 0.7rem 0.8rem; border-radius: 1rem; background: var(--sand-2); display: grid; gap: 0.5rem; }
.lp-item-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lp-item-head b { font-size: 13.5px; }
.lp-item-act { display: flex; gap: 0.2rem; }
.lp-item-isi { display: grid; gap: 0.6rem; }
.lp-ikon-row { display: flex; gap: 0.5rem; align-items: center; }
.lp-ikon-row .input-wrap { flex: 1; }
.lp-ikon-prev { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--teal-deep); background: #FFFFFF; box-shadow: 0 0 0 1px var(--hair); }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.lp-tambah { margin-top: 0.1rem; }
/* ---------- Jalur Juara ---------- */
.jl-xp { display: flex; gap: 0.5rem; }
.jl-xp-box { display: grid; justify-items: center; padding: 0.45rem 0.9rem; border-radius: 1rem; background: #FFF4D6; box-shadow: inset 0 0 0 1px rgba(255, 194, 51, 0.5); line-height: 1.15; }
.jl-xp-box b { font-size: 1.15rem; color: #7A4F00; font-variant-numeric: tabular-nums; }
.jl-xp-box span { font-size: 11.5px; font-weight: 600; color: #7A4F00; }
:root[data-theme='dark'] .jl-xp-box { background: rgba(255, 194, 51, 0.14); }
:root[data-theme='dark'] .jl-xp-box b, :root[data-theme='dark'] .jl-xp-box span { color: #FFD15C; }
.jl-intro { margin: -0.3rem 0 0.9rem; font-size: 14px; color: var(--ink-2); max-width: 40rem; }
.pk-tabs.jl-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); }
.jl-peta { display: grid; gap: 1.2rem; padding-bottom: 2rem; }
.jl-bab-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.1rem; border-radius: 1.3rem; color: #FFFFFF; background: linear-gradient(110deg, #0A7F87, #22C3CB); box-shadow: 0 16px 30px -22px rgba(10, 127, 135, 0.9); }
.jl-bab[data-kat='TIU'] .jl-bab-head { background: linear-gradient(110deg, #A8351F, #FF7A5C); box-shadow: 0 16px 30px -22px rgba(168, 53, 31, 0.9); }
.jl-bab[data-kat='TKP'] .jl-bab-head { background: linear-gradient(110deg, #1D7A45, #39B36A); box-shadow: 0 16px 30px -22px rgba(29, 122, 69, 0.9); }
.jl-bab-head > div { flex: 1; min-width: 0; }
.jl-bab-no { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.jl-bab-head h2 { color: #FFFFFF; font-size: 1.15rem; }
.jl-bab-bin { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-weight: 700; font-size: 13px; }
.jl-star-ic { width: 14px; height: 14px; background: #FFC233; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.jl-bin { display: inline-flex; gap: 2px; }
.jl-bin i { width: 15px; height: 15px; background: #D3DDDD; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.jl-bin i.on { background: #FFC233; }
/* layar soal */
body.jl-fokus { overflow: hidden; }
.jl-main { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--sand, #F3F8F7); overflow-y: auto; }
.jl-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 0.8rem; padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.8rem; background: inherit; }
.jl-prog { flex: 1; height: 14px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.jl-prog i { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, #2FD2DA, #0A7F87); transition: width 500ms var(--spring); }
.jl-nyawa { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--coral-deep); font-weight: 800; }
.jl-isi { flex: 1; width: min(680px, 100%); margin: 0 auto; padding: 0.6rem 1.2rem 1.5rem; display: grid; align-content: start; gap: 0.9rem; }
.jl-meta { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.jl-soal { font-size: 1.12rem; font-weight: 600; line-height: 1.5; white-space: pre-line; color: var(--ink); }
.jl-gbr { max-width: 100%; border-radius: 1rem; background: #FFFFFF; }
.jl-opsi { display: grid; gap: 0.55rem; }
.jl-op { display: flex; align-items: center; gap: 0.8rem; width: 100%; min-height: 56px; padding: 0.6rem 0.9rem; border-radius: 1rem; text-align: left; background: var(--field-bg, #FFFFFF);
  box-shadow: inset 0 0 0 2px var(--hair-2), 0 4px 0 var(--hair-2); color: var(--ink); font-size: 15px; transition: transform 150ms var(--spring), box-shadow 150ms var(--spring), background-color 200ms ease; }
.jl-op b { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sand-2); font-size: 14px; }
.jl-op span { flex: 1; }
.jl-op:not(:disabled):hover { box-shadow: inset 0 0 0 2px #2FD2DA, 0 4px 0 #9EE5E9; }
.jl-op:not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 0 0 2px #2FD2DA, 0 1px 0 #9EE5E9; }
.jl-op.on { background: #E6F8F9; box-shadow: inset 0 0 0 2px #22C3CB, 0 4px 0 #22C3CB; }
.jl-op.on b { background: #22C3CB; color: #FFFFFF; }
.jl-op.benar { background: #DFF6E7; box-shadow: inset 0 0 0 2px #1FA855, 0 4px 0 #1FA855; }
.jl-op.benar b { background: #1FA855; color: #FFFFFF; }
.jl-op.salah { background: #FDE6E1; box-shadow: inset 0 0 0 2px #E5533D, 0 4px 0 #E5533D; }
.jl-op.salah b { background: #E5533D; color: #FFFFFF; }
:root[data-theme='dark'] .jl-op.on { background: rgba(34, 195, 203, 0.15); }
:root[data-theme='dark'] .jl-op.benar { background: rgba(31, 168, 85, 0.18); }
:root[data-theme='dark'] .jl-op.salah { background: rgba(229, 83, 61, 0.18); }
.jl-skor { flex: none; font-style: normal; font-weight: 800; font-size: 13px; padding: 0.1rem 0.5rem; border-radius: 8px; background: rgba(0, 0, 0, 0.06); }
.jl-bawah { position: sticky; bottom: 0; display: grid; gap: 0.6rem; width: 100%; padding: 0.9rem max(1.2rem, calc((100% - 680px) / 2 + 1.2rem)) max(1rem, env(safe-area-inset-bottom)); background: var(--sand, #F3F8F7); box-shadow: 0 -1px 0 var(--hair); }
.jl-umpan.ok { background: #DFF6E7; }
.jl-umpan.no { background: #FDE6E1; }
:root[data-theme='dark'] .jl-umpan.ok { background: #12342A; }
:root[data-theme='dark'] .jl-umpan.no { background: #3A1E19; }
.jl-umpan-t b { font-size: 1.05rem; }
.jl-umpan.ok .jl-umpan-t b { color: #13733A; } .jl-umpan.no .jl-umpan-t b { color: #A8351F; }
:root[data-theme='dark'] .jl-umpan.ok .jl-umpan-t b { color: #6EE29A; } :root[data-theme='dark'] .jl-umpan.no .jl-umpan-t b { color: #FF9A84; }
.jl-umpan-t p { margin-top: 0.25rem; font-size: 14px; color: var(--ink-2); max-height: 30vh; overflow-y: auto; }
/* hasil */
.jl-hasil-isi { flex: 1; display: grid; place-content: center; justify-items: center; gap: 0.8rem; padding: 2rem 1.2rem; text-align: center; }
.jl-bintang-besar .jl-bin { gap: 10px; }
.jl-bintang-besar .jl-bin i { width: 64px; height: 64px; }
.jl-bintang-besar .jl-bin i:nth-child(2) { transform: translateY(-14px) scale(1.15); }
.jl-hasil h1 { font-size: 1.9rem; }
.jl-hasil p { color: var(--ink-2); max-width: 26rem; }
.jl-stat { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.jl-stat div { display: grid; padding: 0.7rem; border-radius: 1rem; background: var(--field-bg, #FFFFFF); box-shadow: inset 0 0 0 1px var(--hair); }
.jl-stat b { font-size: 1.3rem; color: var(--teal-deep); }
.jl-stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .jl-xp-box { padding: 0.35rem 0.6rem; }
  .jl-soal { font-size: 1.02rem; }
}
/* ---------- Duel SKD ---------- */
.dl-online i { width: 8px; height: 8px; border-radius: 50%; background: #1FA855; box-shadow: 0 0 0 3px rgba(31, 168, 85, 0.2); }
.pk-tabs.dl-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); }
.pk-tabs.dl-seg4 { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); }
.dl-kat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.dl-kartu { display: grid; align-content: space-between; gap: 0.7rem; min-height: 118px; padding: 0.9rem 1rem; border-radius: 1.2rem; text-align: left; background: var(--field-bg, #FFFFFF);
  box-shadow: inset 0 0 0 2px var(--hair-2), 0 4px 0 var(--hair-2); transition: transform 150ms var(--spring), box-shadow 200ms ease; }
.dl-kartu:hover { transform: translateY(-2px); }
.dl-kartu.on { background: #FFF1EC; box-shadow: inset 0 0 0 2px #FF7A5C, 0 4px 0 #E5533D; }
:root[data-theme='dark'] .dl-kartu.on { background: rgba(255, 122, 92, 0.14); }
.dl-k-t { display: grid; min-width: 0; line-height: 1.25; } .dl-k-t b { font-size: 1.1rem; } .dl-k-t span { font-size: 12px; color: var(--muted); }
.dl-k-r { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; line-height: 1.2; } .dl-k-r b { font-size: 1.2rem; color: var(--coral-deep); font-variant-numeric: tabular-nums; } .dl-k-r span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.dl-mulai { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.dl-mulai > div { flex: 1; min-width: 0; } .dl-mulai p { font-size: 13.5px; color: var(--ink-2); margin-top: 0.2rem; }
.dl-kuota { color: var(--coral-deep) !important; }
.dl-cari { --bg: linear-gradient(135deg, #FF9A7E 0%, #E5533D 100%); color: #FFFFFF; min-height: 52px; padding: 0 1.4rem; font-size: 1rem; box-shadow: 0 6px 0 #A8351F, 0 14px 24px -12px rgba(168, 53, 31, 0.7); }
.dl-cari:active { transform: translateY(4px); box-shadow: 0 2px 0 #A8351F; }
.dl-pr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0.8rem; }
.dl-list { padding: 1rem 1.1rem; } .dl-list h2 { font-size: 1.05rem; margin-bottom: 0.4rem; } .dl-sub { font-size: 12.5px; margin-bottom: 0.4rem; }
.dl-list ol { list-style: none; margin: 0; padding: 0; }
.dl-list li { display: flex; align-items: center; gap: 0.6rem; min-height: 50px; padding: 0.2rem 0.4rem; border-radius: 0.8rem; }
.dl-list li + li { box-shadow: 0 -1px 0 var(--hair); }
.dl-list li.saya { background: #E6F8F9; box-shadow: none; } :root[data-theme='dark'] .dl-list li.saya { background: rgba(47, 210, 218, 0.12); }
.dl-no { flex: none; width: 24px; text-align: center; font-weight: 800; color: var(--muted); }
.dl-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #FFFFFF; background: linear-gradient(140deg, #2FD2DA, #0A7F87); }
.dl-av.bot { background: linear-gradient(140deg, #8A9BA0, #5B6B70); }
.dl-av.liga-emas { background: linear-gradient(140deg, #FFD15C, #F0A400); color: #3A2400; } .dl-av.liga-perak { background: linear-gradient(140deg, #D9E2E5, #9AABB0); color: #22333A; } .dl-av.liga-perunggu { background: linear-gradient(140deg, #E8A87C, #B8693A); }
.dl-nm { flex: 1; min-width: 0; display: grid; font-weight: 700; font-size: 14px; line-height: 1.25; } .dl-nm small { font-weight: 500; font-size: 12px; color: var(--muted); }
.dl-list li > b { font-variant-numeric: tabular-nums; }
.dl-hasil { flex: none; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 12px; font-weight: 800; }
.dl-hasil.h-menang { background: #DFF6E7; color: #13733A; } .dl-hasil.h-kalah { background: #FDE6E1; color: #A8351F; } .dl-hasil.h-seri { background: var(--sand-2); color: var(--ink-2); }
.dl-skr { display: grid; justify-items: end; font-weight: 800; font-variant-numeric: tabular-nums; } .dl-skr small { font-size: 12px; } .dl-skr .naik { color: #13733A; } .dl-skr .turun { color: #A8351F; }
/* arena */
.dl-arena { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--sand, #F3F8F7); overflow-y: auto; }
.dl-cari-layar, .dl-vs-layar, .dl-akhir, .dl-tunggu { flex: 1; display: grid; place-content: center; justify-items: center; gap: 0.9rem; padding: 2rem 1.2rem; text-align: center; }
.dl-cari-layar p { color: var(--ink-2); }
.dl-tombol { display: grid; gap: 0.6rem; justify-items: center; margin-top: 0.6rem; }
.dl-radar { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.dl-radar i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 122, 92, 0.5); animation: dl-radar 2.4s ease-out infinite; }
.dl-radar i:nth-child(2) { animation-delay: 0.8s; } .dl-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes dl-radar { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dl-radar i { animation: none; opacity: 0.4; } }
.dl-av.besar { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 0 0 5px #FFFFFF, 0 14px 26px -12px rgba(0, 0, 0, 0.4); }
.dl-vs-layar { grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1rem; }
.dl-vs-layar > p { grid-column: 1 / -1; color: var(--muted); }
.dl-p { display: grid; justify-items: center; gap: 0.35rem; } .dl-p b { font-size: 1.05rem; } .dl-p > span:last-child { font-size: 12.5px; color: var(--muted); }
.dl-p.kanan .dl-av.besar:not(.bot) { background: linear-gradient(140deg, #FF9A7E, #E5533D); }
.dl-vs { font-size: 2.2rem; font-weight: 900; color: var(--coral-deep); font-style: italic; }
.dl-skor { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: max(0.8rem, env(safe-area-inset-top)) 1.1rem 0.6rem; background: inherit; }
.dl-sk-saya, .dl-sk-lawan { display: flex; align-items: center; gap: 0.5rem; } .dl-skor b { font-size: 1.4rem; font-variant-numeric: tabular-nums; min-width: 3ch; }
.dl-sk-saya b { color: var(--teal-deep); } .dl-sk-lawan b { color: var(--coral-deep); text-align: right; }
.dl-sk-lawan .dl-av:not(.bot) { background: linear-gradient(140deg, #FF9A7E, #E5533D); }
.dl-ronde { display: flex; gap: 5px; } .dl-ronde i { width: 10px; height: 10px; border-radius: 50%; background: var(--hair-2); } .dl-ronde i.lewat { background: var(--teal-deep); } .dl-ronde i.kini { background: #FFC233; transform: scale(1.3); }
.dl-jam { height: 8px; margin: 0 1.1rem; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.dl-jam i { display: block; height: 100%; width: var(--p, 100%); border-radius: 99px; background: linear-gradient(90deg, #2FD2DA, #0A7F87); transition: width 100ms linear; }
.dl-jam i.kritis { background: linear-gradient(90deg, #FF9A7E, #E5533D); }
.dl-status { text-transform: none; letter-spacing: 0; color: var(--coral-deep); }
.dl-info p { font-size: 14px; color: var(--ink-2); } .dl-info.ok { background: #DFF6E7; } .dl-info.no { background: #FDE6E1; }
:root[data-theme='dark'] .dl-info.ok { background: #12342A; } :root[data-theme='dark'] .dl-info.no { background: #3A1E19; }
.dl-pemb { max-height: 22vh; overflow-y: auto; font-size: 13px !important; }
.dl-akhir h1 { font-size: 2rem; }
.dl-akhir-ic { width: 104px; height: 104px; border-radius: 32px; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(140deg, #FFD15C, #F0A400); box-shadow: 0 16px 30px -14px rgba(168, 110, 0, 0.7); }
.dl-akhir.h-kalah .dl-akhir-ic { background: linear-gradient(140deg, #8A9BA0, #5B6B70); box-shadow: none; }
.dl-akhir-skor { font-size: 1.6rem; font-weight: 800; color: var(--muted); } .dl-akhir-skor b { color: var(--teal-deep); }
@media (max-width: 640px) {
  .dl-mulai { flex-direction: column; align-items: stretch; }
  .dl-vs-layar { column-gap: 0.4rem; } .dl-av.besar { width: 64px; height: 64px; font-size: 22px; }
}

/* Jalur Juara v2: gelembung bergambar, jalan bertitik, latar gedung instansi */
.jl-lokasi { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.15rem; font-size: 12px; font-weight: 600; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-chip-prem { flex: none; }
.jl-dunia { position: relative; margin-top: 0.7rem; border-radius: 1.6rem; overflow: hidden; background: linear-gradient(180deg, #E9F9FA 0%, #F7FCFC 45%, #EAF7F1 100%); box-shadow: inset 0 0 0 1px var(--hair); padding-bottom: 1.6rem; }
:root[data-theme='dark'] .jl-dunia { background: linear-gradient(180deg, #10292C 0%, #0C1F21 100%); }
.jl-latar { position: relative; height: 210px; }
.jl-latar-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
:root[data-theme='dark'] .jl-latar { opacity: 0.35; }
.jl-dunia::after { content: ''; position: absolute; left: 0; right: 0; top: 150px; height: 70px; background: linear-gradient(180deg, rgba(247, 252, 252, 0), #F7FCFC); pointer-events: none; }
:root[data-theme='dark'] .jl-dunia::after { background: linear-gradient(180deg, rgba(12, 31, 33, 0), #0C1F21); }
.jl-jalan-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.jl-jalan-dasar { fill: none; stroke: #CFEFF1; stroke-width: 26; stroke-linecap: round; }
.jl-jalan-maju { fill: none; stroke: #7FDDE2; stroke-width: 26; stroke-linecap: round; opacity: 0.85; }
.jl-jalan-titik { fill: none; stroke: #FFFFFF; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 22; }
:root[data-theme='dark'] .jl-jalan-dasar { stroke: #1D3D40; } :root[data-theme='dark'] .jl-jalan-maju { stroke: #1E6B70; }
.jl-jalan { position: relative; z-index: 2; list-style: none; margin: -40px 0 0; padding: 0; display: grid; gap: 1.6rem; justify-items: center; }
.jl-li { display: grid; justify-items: center; gap: 0.55rem; }
.jl-li.pos-0 { transform: translateX(-84px); } .jl-li.pos-1 { transform: translateX(0); } .jl-li.pos-2 { transform: translateX(84px); }
.jl-node { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 7px; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(160deg, #6FE3E8, #18A9B2); box-shadow: 0 9px 0 #0A7F87, 0 18px 26px -12px rgba(7, 90, 96, 0.6); transition: transform 200ms var(--spring), box-shadow 200ms var(--spring); }
.jl-node-in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F2FCFC 60%, #DDF5F6 100%); box-shadow: inset 0 -6px 0 rgba(14, 124, 130, 0.08); }
.jl-node .ic-art, .jl-node img.ic-img { filter: drop-shadow(0 4px 4px rgba(10, 80, 85, 0.18)); }
.jl-node:hover { transform: translateY(-3px); }
.jl-node:active { transform: translateY(6px); box-shadow: 0 3px 0 #0A7F87; }
.jl-node.ujian { width: 118px; height: 118px; background: linear-gradient(160deg, #FFE08A, #F0A400); box-shadow: 0 9px 0 #A86E00, 0 18px 26px -12px rgba(168, 110, 0, 0.6); }
.jl-node.sekarang { background: linear-gradient(160deg, #FFB39E, #E5533D); box-shadow: 0 9px 0 #A8351F, 0 18px 26px -12px rgba(168, 53, 31, 0.6); }
.jl-node.sekarang:active { box-shadow: 0 3px 0 #A8351F; }
.jl-node.st-terkunci, .jl-node.st-premium { background: linear-gradient(160deg, #E6EDED, #C5D2D2); box-shadow: 0 9px 0 #A9B9B9, 0 14px 20px -12px rgba(0, 0, 0, 0.25); }
.jl-node.st-terkunci .jl-node-in, .jl-node.st-premium .jl-node-in { background: #F3F6F6; }
.jl-node.st-terkunci .ic-art, .jl-node.st-premium .ic-art, .jl-node.st-terkunci img, .jl-node.st-premium img { filter: grayscale(1) opacity(0.45); }
:root[data-theme='dark'] .jl-node-in { background: radial-gradient(circle at 35% 30%, #23464A, #142E31); }
:root[data-theme='dark'] .jl-node.st-terkunci, :root[data-theme='dark'] .jl-node.st-premium { background: #2A3B3D; box-shadow: 0 9px 0 #1A2729; }
.jl-node.sekarang::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 5px solid rgba(255, 122, 92, 0.5); animation: jl-denyut 1.6s ease-out infinite; }
@keyframes jl-denyut { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jl-node.sekarang::before { animation: none; } }
.jl-badge { position: absolute; top: -2px; right: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #FFFFFF; box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.3); }
.jl-badge.cek { background: linear-gradient(160deg, #FFD15C, #F0A400); color: #FFFFFF; }
.jl-badge.cek .ic { stroke-width: 2; }
.jl-badge.kunci { background: #8FA3A5; color: #FFFFFF; }
.st-premium .jl-badge.kunci { background: linear-gradient(160deg, #FFD15C, #F0A400); color: #3A2400; }
.jl-mulai { position: absolute; top: -42px; left: 50%; transform: translateX(-50%); padding: 0.3rem 0.85rem; border-radius: 0.8rem; background: #FFFFFF; color: #C2452E; font-weight: 900; font-size: 14px; letter-spacing: 0.02em;
  box-shadow: 0 0 0 2.5px #FF7A5C, 0 6px 0 #FF7A5C; white-space: nowrap; animation: jl-lompat 1.4s ease-in-out infinite; }
.jl-mulai::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: #FFFFFF; border-right: 2.5px solid #FF7A5C; border-bottom: 2.5px solid #FF7A5C; transform: translateX(-50%) rotate(45deg); }
@keyframes jl-lompat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
@media (prefers-reduced-motion: reduce) { .jl-mulai { animation: none; } }
.jl-label { display: grid; justify-items: center; gap: 0.15rem; min-width: 118px; padding: 0.45rem 0.9rem; border-radius: 1rem; background: #FFFFFF; box-shadow: inset 0 0 0 2px #E3ECEC, 0 4px 0 #E3ECEC; text-align: center; line-height: 1.2; }
.jl-label b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.jl-label small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.jl-label.sekarang { box-shadow: inset 0 0 0 2.5px #FF7A5C, 0 4px 0 #FF7A5C; }
:root[data-theme='dark'] .jl-label { background: #142E31; box-shadow: inset 0 0 0 2px #23464A, 0 4px 0 #23464A; }
@media (max-width: 640px) {
  .jl-li.pos-0 { transform: translateX(-70px); } .jl-li.pos-2 { transform: translateX(70px); }
  .jl-node { width: 92px; height: 92px; } .jl-node.ujian { width: 104px; height: 104px; }
  .jl-latar { height: 200px; } .jl-dunia::after { top: 140px; }
}
.pw-sec { margin-top: 1rem; }
.pw-sec h2 { font-size: 1.1rem; }
.pw-sec > p { margin: 0.2rem 0 1rem; font-size: 14px; }
.pw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.pw-form .alert, .pw-form .acc-actions { grid-column: 1 / -1; }
/* Admin: Soal generator */
.gn-lap { padding: 1rem 1.1rem; }
.gn-lap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.gn-lap-head h2 { font-size: 1.05rem; }
.gn-item { padding: 0.8rem 0; display: grid; gap: 0.5rem; }
.gn-item + .gn-item { box-shadow: 0 -1px 0 var(--hair); }
.gn-cat { font-style: italic; color: var(--ink-2); font-size: 14px; }
.gn-id { font-size: 12.5px; }
.gn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 0.7rem; }
.gn-jenis { padding: 0.9rem 1rem; display: grid; gap: 0.4rem; align-content: start; }
.gn-jenis.mati { opacity: 0.65; }
.gn-lv { min-height: 40px; border-radius: 0.7rem; padding: 0 0.6rem; background: var(--field-bg); border: 1px solid var(--hair-2); color: var(--ink); }
.gn-contoh { display: grid; gap: 0.6rem; }
.gn-soal { padding: 0.7rem 0.8rem; border-radius: 0.9rem; background: var(--sand-2); display: grid; gap: 0.45rem; }
.gn-stem { font-weight: 600; white-space: pre-line; font-size: 14px; }
.gn-opsi { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; font-size: 13.5px; }
.gn-opsi li { display: flex; gap: 0.5rem; padding: 0.2rem 0.4rem; border-radius: 0.5rem; }
.gn-opsi li.kunci { background: #DFF6E7; color: #13733A; font-weight: 700; }
:root[data-theme='dark'] .gn-opsi li.kunci { background: #12342A; color: #6EE29A; }
.gn-opsi li span { flex: 1; }
.gn-opsi em { font-style: normal; font-weight: 800; }
.gn-pemb { font-size: 13px; color: var(--ink-2); }
.jl-lapor { display: inline-flex; align-items: center; gap: 0.3rem; justify-self: start; margin-top: 0.3rem; padding: 0.2rem 0; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; }
.jl-lapor:hover { color: var(--coral-deep); }
.dl-bot-tag { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.45rem; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-2); vertical-align: 2px; }
body.jl-fokus .sheet-layer { z-index: 80; }
.cd-kartu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 1rem 1.2rem; }
.cd-kartu > div { flex: 1; min-width: 14rem; } .cd-kartu p { font-size: 13.5px; margin-top: 0.2rem; }
/* ================= Gaya game: Jalur Juara & Duel SKD ================= */
/* tombol tebal 3D */
.jl-btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 54px; padding: 0 1.4rem; border-radius: 1.1rem; font-weight: 900; font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: #FFFFFF; background: linear-gradient(180deg, #3FDCE3 0%, #16A9B2 100%); box-shadow: 0 6px 0 #0A7F87, 0 14px 22px -10px rgba(10, 127, 135, 0.7); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); transition: transform 120ms ease, box-shadow 120ms ease, filter 200ms ease; }
.jl-btn-main:hover:not(:disabled) { filter: brightness(1.05); }
.jl-btn-main:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #0A7F87; }
.jl-btn-main:disabled { background: #DCE6E6; color: #8FA3A5; box-shadow: 0 6px 0 #B9C8C8; text-shadow: none; cursor: not-allowed; }
.jl-btn-main.hijau { background: linear-gradient(180deg, #4BD68C 0%, #1FA855 100%); box-shadow: 0 6px 0 #13733A, 0 14px 22px -10px rgba(19, 115, 58, 0.7); }
.jl-btn-main.hijau:active { box-shadow: 0 1px 0 #13733A; }
.jl-btn-main.coral { background: linear-gradient(180deg, #FF9478 0%, #E5533D 100%); box-shadow: 0 6px 0 #A8351F, 0 14px 22px -10px rgba(168, 53, 31, 0.7); }
.jl-btn-main.coral:active { box-shadow: 0 1px 0 #A8351F; }
.jl-btn-main.loading { opacity: 0.8; pointer-events: none; }
.jl-btn-ghost { width: 100%; min-height: 50px; border-radius: 1.1rem; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--teal-deep); background: var(--field-bg, #FFFFFF); box-shadow: inset 0 0 0 2px var(--hair-2), 0 4px 0 var(--hair-2); }
.jl-btn-ghost:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--hair-2), 0 1px 0 var(--hair-2); }
.jl-btn-ghost.terang { width: auto; padding: 0 1.6rem; color: #FFFFFF; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
/* hero Jalur Juara */
.jl-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.4rem 1.3rem; margin-bottom: 1rem; border-radius: 1.6rem; color: #FFFFFF;
  background: radial-gradient(circle at 85% 0%, rgba(255, 210, 92, 0.55), transparent 45%), linear-gradient(125deg, #0A6A6F 0%, #0FA3AC 55%, #3FDCE3 100%); box-shadow: 0 8px 0 #075A60, 0 22px 36px -18px rgba(7, 90, 96, 0.8); }
.jl-hero-t { position: relative; display: grid; gap: 0.2rem; min-width: 14rem; flex: 1; }
.jl-hero-t p { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #FFE08A; }
.jl-hero h1 { color: #FFFFFF; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }
.jl-hero-t > span { font-size: 13.5px; opacity: 0.95; max-width: 30rem; }
.jl-hero-kilau i { position: absolute; width: 10px; height: 10px; background: #FFE08A; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0.9; animation: jl-kedip 2.4s ease-in-out infinite; }
.jl-hero-kilau i:nth-child(1) { top: 14%; left: 62%; } .jl-hero-kilau i:nth-child(2) { top: 60%; left: 78%; width: 14px; height: 14px; animation-delay: 0.6s; }
.jl-hero-kilau i:nth-child(3) { top: 24%; left: 90%; width: 7px; height: 7px; animation-delay: 1.2s; } .jl-hero-kilau i:nth-child(4) { top: 78%; left: 52%; width: 8px; height: 8px; animation-delay: 1.8s; background: #FFFFFF; }
.jl-hero-kilau i:nth-child(5) { top: 10%; left: 40%; width: 6px; height: 6px; animation-delay: 0.9s; background: #FFFFFF; }
@keyframes jl-kedip { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jl-hero-kilau i { animation: none; } }
.jl-hero .jl-xp { position: relative; }
.jl-hero .jl-xp-box { background: linear-gradient(180deg, #FFE08A, #FFC233); box-shadow: 0 4px 0 #C98A00; padding: 0.5rem 1rem; }
.jl-hero .jl-xp-box b { color: #5A3A00; font-size: 1.3rem; font-weight: 900; } .jl-hero .jl-xp-box span { color: #6B4500; }
/* tab kategori tebal */
.jl-kat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.1rem; }
.jl-kat a { display: grid; place-items: center; min-height: 50px; border-radius: 1rem; font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink-2); background: var(--field-bg, #FFFFFF); box-shadow: inset 0 0 0 2px var(--hair-2), 0 5px 0 var(--hair-2); transition: transform 120ms ease; }
.jl-kat a:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--hair-2), 0 1px 0 var(--hair-2); }
.jl-kat a.on { color: #FFFFFF; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
.jl-kat a.k-twk.on { background: linear-gradient(180deg, #3FDCE3, #16A9B2); box-shadow: 0 5px 0 #0A7F87; }
.jl-kat a.k-tiu.on { background: linear-gradient(180deg, #FF9478, #E5533D); box-shadow: 0 5px 0 #A8351F; }
.jl-kat a.k-tkp.on { background: linear-gradient(180deg, #4BD68C, #1FA855); box-shadow: 0 5px 0 #13733A; }
/* kepala bab lebih ramai */
.jl-bab-head { position: relative; overflow: hidden; box-shadow: 0 6px 0 #075A60, 0 18px 30px -20px rgba(10, 127, 135, 0.9);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 14px, transparent 14px 28px), linear-gradient(110deg, #0A7F87, #22C3CB); }
.jl-bab[data-kat='TIU'] .jl-bab-head { box-shadow: 0 6px 0 #8A2A16, 0 18px 30px -20px rgba(168, 53, 31, 0.9); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 14px, transparent 14px 28px), linear-gradient(110deg, #C2452E, #FF8A6A); }
.jl-bab[data-kat='TKP'] .jl-bab-head { box-shadow: 0 6px 0 #145C33, 0 18px 30px -20px rgba(29, 122, 69, 0.9); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 14px, transparent 14px 28px), linear-gradient(110deg, #1D8A4E, #45C97E); }
.jl-bab-head h2 { font-size: 1.3rem; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); }
.jl-bab-bin { background: linear-gradient(180deg, #FFE08A, #FFC233); color: #5A3A00; box-shadow: 0 3px 0 #C98A00; }
/* dunia & jalan cerah */
.jl-dunia { background: linear-gradient(180deg, #D8F6F8 0%, #F4FCFC 40%, #E8F8EF 100%); box-shadow: inset 0 0 0 2px rgba(14, 124, 130, 0.12); }
.jl-jalan-dasar { stroke: #FFE3A3; stroke-width: 28; }
.jl-jalan-maju { stroke: #FFC233; stroke-width: 28; opacity: 1; }
.jl-jalan-titik { stroke-width: 8; }
:root[data-theme='dark'] .jl-jalan-dasar { stroke: #4A3B12; } :root[data-theme='dark'] .jl-jalan-maju { stroke: #A87C10; }
/* lembar mulai level */
.jl-lembar-layer { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; }
.jl-lembar-back { position: absolute; inset: 0; background: rgba(6, 30, 33, 0.55); opacity: 0; transition: opacity 250ms ease; }
.jl-lembar { position: relative; width: min(460px, 100%); display: grid; justify-items: center; gap: 0.6rem; padding: 1.6rem 1.3rem max(1.3rem, env(safe-area-inset-bottom)); border-radius: 1.8rem 1.8rem 0 0; text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #EAFAFB 100%); transform: translateY(100%); transition: transform 300ms cubic-bezier(.2, .9, .3, 1.15); }
:root[data-theme='dark'] .jl-lembar { background: linear-gradient(180deg, #16343A, #0E2427); }
.jl-lembar-layer.buka .jl-lembar-back { opacity: 1; } .jl-lembar-layer.buka .jl-lembar { transform: none; }
@media (min-width: 641px) { .jl-lembar-layer { align-items: center; } .jl-lembar { border-radius: 1.8rem; } }
.jl-lb-ic { width: 108px; height: 108px; margin-top: -4.4rem; border-radius: 50%; padding: 8px; display: grid; place-items: center; background: linear-gradient(160deg, #FFB39E, #E5533D); box-shadow: 0 8px 0 #A8351F, 0 16px 26px -10px rgba(168, 53, 31, 0.6); }
.jl-lb-ic.ujian { background: linear-gradient(160deg, #FFE08A, #F0A400); box-shadow: 0 8px 0 #A86E00; }
.jl-lb-ic > span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFFFFF, #E9FAFB); }
.jl-lb-sub { margin-top: 0.4rem; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-deep); }
.jl-lembar h2 { font-size: 1.5rem; font-weight: 900; }
.jl-lb-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0.3rem 0 0.6rem; }
.jl-lb-info > span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sand-2); color: var(--ink-2); }
.jl-lb-info [data-icon='heart'] { color: #E5533D; } .jl-lb-info [data-icon='sparkle'] { color: #D99A00; }
/* layar soal */
.jl-main { background: radial-gradient(circle at 100% 0%, rgba(63, 220, 227, 0.18), transparent 40%), radial-gradient(circle at 0% 100%, rgba(255, 194, 51, 0.14), transparent 40%), var(--sand, #F3F8F7); }
.jl-prog { height: 18px; background: #DCEFF0; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.08); }
.jl-prog i { background: linear-gradient(180deg, #6FE3E8, #18A9B2); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.45); }
.jl-nyawa { font-size: 1.15rem; color: #E5533D; } .jl-nyawa .ic { fill: #E5533D; }
.jl-meta { color: #0F8C94; }
.jl-umpan { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 0.8rem; }
.jl-umpan > button { grid-column: 1 / -1; }
.jl-umpan-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: #1FA855; box-shadow: 0 3px 0 #13733A; }
.jl-umpan.no .jl-umpan-ic { background: #E5533D; box-shadow: 0 3px 0 #A8351F; }
.jl-umpan.ok { background: linear-gradient(180deg, #D3F7E2, #BFF0D4); } .jl-umpan.no { background: linear-gradient(180deg, #FFE3DB, #FFD2C6); }
.jl-umpan-t b { font-size: 1.2rem; font-weight: 900; }
/* hasil dengan sinar & konfeti */
.jl-hasil, .dl-arena { isolation: isolate; }
.jl-sinar { position: fixed; inset: -40% -40% auto; height: 140vh; z-index: -1; pointer-events: none; opacity: 0.55;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 194, 51, 0.35) 0 10deg, transparent 10deg 20deg); -webkit-mask: radial-gradient(circle at 50% 50%, #000 0, transparent 60%); mask: radial-gradient(circle at 50% 50%, #000 0, transparent 60%); animation: jl-putar 30s linear infinite; }
.jl-sinar.redup, .jl-hasil.gagal .jl-sinar { background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(143, 163, 165, 0.25) 0 10deg, transparent 10deg 20deg); }
@keyframes jl-putar { to { transform: rotate(360deg); } }
.jl-konfeti { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.jl-konfeti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: jl-jatuh 3.2s linear infinite; }
.jl-konfeti i.c0 { background: #FFC233; } .jl-konfeti i.c1 { background: #22C3CB; } .jl-konfeti i.c2 { background: #FF7A5C; } .jl-konfeti i.c3 { background: #4BD68C; } .jl-konfeti i.c4 { background: #FFFFFF; } .jl-konfeti i.c5 { background: #0A7F87; }
.jl-konfeti i:nth-child(3n) { width: 8px; height: 8px; border-radius: 50%; }
.jl-konfeti i:nth-child(1) { left: 4%; animation-delay: 0s; } .jl-konfeti i:nth-child(2) { left: 10%; animation-delay: 1.1s; } .jl-konfeti i:nth-child(3) { left: 16%; animation-delay: 0.5s; }
.jl-konfeti i:nth-child(4) { left: 22%; animation-delay: 2s; } .jl-konfeti i:nth-child(5) { left: 28%; animation-delay: 0.8s; } .jl-konfeti i:nth-child(6) { left: 34%; animation-delay: 2.6s; }
.jl-konfeti i:nth-child(7) { left: 40%; animation-delay: 1.5s; } .jl-konfeti i:nth-child(8) { left: 46%; animation-delay: 0.2s; } .jl-konfeti i:nth-child(9) { left: 52%; animation-delay: 2.2s; }
.jl-konfeti i:nth-child(10) { left: 58%; animation-delay: 0.9s; } .jl-konfeti i:nth-child(11) { left: 64%; animation-delay: 1.8s; } .jl-konfeti i:nth-child(12) { left: 70%; animation-delay: 0.4s; }
.jl-konfeti i:nth-child(13) { left: 76%; animation-delay: 2.9s; } .jl-konfeti i:nth-child(14) { left: 82%; animation-delay: 1.3s; } .jl-konfeti i:nth-child(15) { left: 88%; animation-delay: 0.6s; }
.jl-konfeti i:nth-child(16) { left: 94%; animation-delay: 2.4s; } .jl-konfeti i:nth-child(17) { left: 31%; animation-delay: 3s; } .jl-konfeti i:nth-child(18) { left: 67%; animation-delay: 2.7s; }
@keyframes jl-jatuh { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(540deg); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .jl-sinar, .jl-konfeti i { animation: none; } .jl-konfeti { display: none; } }
.jl-hasil.lulus .jl-bin i.on { filter: drop-shadow(0 0 14px rgba(255, 194, 51, 0.9)); animation: jl-pop 500ms cubic-bezier(.2, 1.6, .4, 1) backwards; }
.jl-hasil.lulus .jl-bin i:nth-child(2) { animation-delay: 150ms; } .jl-hasil.lulus .jl-bin i:nth-child(3) { animation-delay: 300ms; }
@keyframes jl-pop { from { transform: scale(0); } }
.jl-hasil.lulus .jl-bintang-besar .jl-bin i:nth-child(2) { animation-name: jl-pop2; }
@keyframes jl-pop2 { from { transform: translateY(-14px) scale(0); } to { transform: translateY(-14px) scale(1.15); } }
.jl-hasil h1, .dl-akhir h1 { font-weight: 900; font-size: 2.2rem; }
.jl-hasil.lulus h1, .dl-akhir.h-menang h1 { background: linear-gradient(180deg, #0FA3AC, #0A6A6F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jl-stat div { box-shadow: inset 0 0 0 2px var(--hair), 0 4px 0 var(--hair); }
.jl-stat div:nth-child(2) b { color: #D99A00; }
/* ---------- Duel: arena ---------- */
.dl-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 150px; padding: 1.3rem 1.4rem; margin-bottom: 1rem; border-radius: 1.6rem; color: #FFFFFF;
  background: radial-gradient(circle at 80% 50%, rgba(255, 122, 92, 0.6), transparent 50%), linear-gradient(120deg, #072E32 0%, #0A5F65 55%, #A8351F 100%); box-shadow: 0 8px 0 #051F22, 0 22px 36px -18px rgba(7, 46, 50, 0.9); }
.dl-hero-t { position: relative; z-index: 1; display: grid; gap: 0.2rem; }
.dl-hero-t p { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #FFE08A; }
.dl-hero h1 { color: #FFFFFF; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; font-style: italic; letter-spacing: -0.01em; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.dl-hero-t > span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 13.5px; opacity: 0.95; }
.dl-dot { width: 9px; height: 9px; border-radius: 50%; background: #4BD68C; box-shadow: 0 0 0 3px rgba(75, 214, 140, 0.3); }
.dl-hero-petir { position: absolute; right: -6px; bottom: -14px; opacity: 0.95; transform: rotate(-8deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.dl-hero-petir .ic-art { width: 130px; height: 130px; }
.dl-kartu { color: #FFFFFF; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); background: linear-gradient(160deg, #3FDCE3, #16A9B2); box-shadow: 0 6px 0 #0A7F87; }
.dl-kartu.k-tiu { background: linear-gradient(160deg, #FF9478, #E5533D); box-shadow: 0 6px 0 #A8351F; }
.dl-kartu.k-tkp { background: linear-gradient(160deg, #4BD68C, #1FA855); box-shadow: 0 6px 0 #13733A; }
.dl-kartu.k-campur { background: linear-gradient(160deg, #FFD15C, #F0A400); box-shadow: 0 6px 0 #A86E00; color: #3A2400; text-shadow: none; }
.dl-kartu .dl-k-t span, .dl-kartu .dl-k-r span { color: inherit; opacity: 0.88; }
.dl-kartu .dl-k-r b { color: inherit; font-size: 1.5rem; font-weight: 900; }
.dl-kartu.on { outline: 4px solid #FFFFFF; outline-offset: -4px; transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, 0.25), 0 0 0 3px #FFC233; }
.dl-kartu.k-twk.on, .dl-kartu.k-tiu.on, .dl-kartu.k-tkp.on, .dl-kartu.k-campur.on { background-image: none; }
.dl-kartu.k-twk.on { background: linear-gradient(160deg, #3FDCE3, #16A9B2); } .dl-kartu.k-tiu.on { background: linear-gradient(160deg, #FF9478, #E5533D); }
.dl-kartu.k-tkp.on { background: linear-gradient(160deg, #4BD68C, #1FA855); } .dl-kartu.k-campur.on { background: linear-gradient(160deg, #FFD15C, #F0A400); }
.dl-kartu:active { transform: translateY(4px); }
.dl-mulai .dl-cari { width: auto; min-width: 220px; }
@media (max-width: 640px) { .dl-mulai .dl-cari { width: 100%; } }
.dl-arena { background: radial-gradient(circle at 50% 30%, rgba(63, 220, 227, 0.25), transparent 55%), linear-gradient(180deg, #072E32 0%, #0A4C52 100%); color: #FFFFFF; }
.dl-arena .jl-isi, .dl-arena .dl-skor { color: #FFFFFF; }
.dl-arena .jl-soal { color: #FFFFFF; } .dl-arena .jl-meta { color: #7FE6EB; }
.dl-arena .dl-skor { background: linear-gradient(90deg, rgba(10, 127, 135, 0.6), rgba(168, 53, 31, 0.6)); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }
.dl-arena .dl-sk-saya b { color: #7FE6EB; } .dl-arena .dl-sk-lawan b { color: #FFB39E; } .dl-arena .dl-skor b { font-size: 1.7rem; font-weight: 900; }
.dl-arena .dl-ronde i { background: rgba(255, 255, 255, 0.25); } .dl-arena .dl-ronde i.lewat { background: #7FE6EB; }
.dl-arena .dl-jam { background: rgba(255, 255, 255, 0.15); height: 10px; } .dl-arena .dl-jam i { background: linear-gradient(90deg, #FFE08A, #FFC233); }
.dl-arena .dl-jam i.kritis { background: linear-gradient(90deg, #FF9478, #E5533D); }
.dl-arena .jl-op { background: rgba(255, 255, 255, 0.95); color: #12292B; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.dl-arena .jl-op.on { background: #E6F8F9; box-shadow: inset 0 0 0 3px #3FDCE3, 0 4px 0 #0A7F87; }
.dl-arena .jl-bawah { background: rgba(4, 30, 33, 0.85); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.1); }
.dl-arena .dl-info p { color: rgba(255, 255, 255, 0.9); }
.dl-arena .dl-info.ok { background: linear-gradient(180deg, #13733A, #0E5A2D); } .dl-arena .dl-info.no { background: linear-gradient(180deg, #8A2A16, #6B1F10); }
.dl-arena .jl-lapor { color: rgba(255, 255, 255, 0.75); }
.dl-arena .dl-status { color: #FFE08A; }
.dl-arena .dl-cari-layar p, .dl-arena .dl-cari-layar .dl-sub { color: rgba(255, 255, 255, 0.85); }
.dl-arena .dl-cari-layar h2 { color: #FFFFFF; font-size: 1.6rem; font-weight: 900; }
.dl-arena .dl-radar i { border-color: rgba(127, 230, 235, 0.7); }
.dl-vs-layar { position: relative; overflow: hidden; }
.dl-vs-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, #0A7F87 0 49.5%, #FFC233 49.5% 50.5%, #C2452E 50.5% 100%); }
.dl-vs { font-size: 3.4rem; font-weight: 900; color: #FFE08A; text-shadow: 0 4px 0 #A86E00, 0 0 24px rgba(255, 194, 51, 0.7); animation: dl-vs 700ms cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes dl-vs { from { transform: scale(2.4) rotate(-10deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dl-vs { animation: none; } }
.dl-arena .dl-p b { color: #FFFFFF; font-size: 1.2rem; font-weight: 900; } .dl-arena .dl-p > span:last-child { color: rgba(255, 255, 255, 0.85); }
.dl-arena .dl-vs-layar > p { color: #FFFFFF; font-weight: 700; }
.dl-arena .dl-akhir h1 { color: #FFFFFF; } .dl-arena .dl-akhir.h-menang h1 { background: linear-gradient(180deg, #FFE08A, #FFC233); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-arena .dl-akhir-skor { color: rgba(255, 255, 255, 0.7); } .dl-arena .dl-akhir-skor b { color: #7FE6EB; }
.dl-arena .jl-stat div { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15); } .dl-arena .jl-stat b { color: #FFFFFF; } .dl-arena .jl-stat span { color: rgba(255, 255, 255, 0.75); }
.dl-arena .jl-btn-ghost { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.dl-arena .dl-tunggu p { color: rgba(255, 255, 255, 0.85); }
/* Bawah halaman: ruang lebih supaya tombol terakhir tidak tertutup menu bawah (Safari iPhone dengan toolbar mengecil). */
@media (max-width: 640px) { .view { padding-bottom: calc(9rem + env(safe-area-inset-bottom)); } }
/* Kartu kategori duel: ilustrasi */
.dl-kartu { position: relative; overflow: hidden; }
.dl-k-gbr { position: absolute; right: -10px; top: -8px; width: 96px; height: 96px; pointer-events: none; transform: rotate(8deg); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18)); transition: transform 300ms cubic-bezier(.2, 1.6, .4, 1); }
.dl-k-gbr svg { width: 100%; height: 100%; }
.dl-kartu:hover .dl-k-gbr, .dl-kartu.on .dl-k-gbr { transform: rotate(0deg) scale(1.08); }
.dl-kartu .dl-k-t, .dl-kartu .dl-k-r { position: relative; z-index: 1; }
.dl-kartu .dl-k-t { padding-right: 64px; }
.dl-kartu.k-campur .dl-k-gbr { width: 92px; height: 92px; }
@media (max-width: 640px) { .dl-k-gbr { width: 78px; height: 78px; right: -12px; top: -10px; } .dl-kartu .dl-k-t { padding-right: 46px; } }
/* VS: pintu arena menutup, kilat, VS menghantam; lalu membuka saat soal pertama */
.dl-vs-layar { display: block; padding: 0; }
.dl-vs-layar .dl-vs-bg { display: none; }
.dl-pintu { position: absolute; top: 0; bottom: 0; width: 56%; display: grid; align-items: center; }
.dl-pintu.kiri { left: 0; background: linear-gradient(135deg, #0A6A6F, #22C3CB); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); justify-items: center; padding-right: 10%; animation: dl-tutup-kiri 650ms cubic-bezier(.2, .9, .3, 1.2) both; }
.dl-pintu.kanan { right: 0; background: linear-gradient(135deg, #E5533D, #A8351F); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); justify-items: center; padding-left: 10%; animation: dl-tutup-kanan 650ms cubic-bezier(.2, .9, .3, 1.2) both; }
.dl-pintu::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0 18px, transparent 18px 36px); }
.dl-pintu.kiri::after, .dl-pintu.kanan::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8px; background: #FFC233; box-shadow: 0 0 22px #FFC233; }
.dl-pintu.kiri::after { right: 9%; transform: skewX(-10deg); } .dl-pintu.kanan::after { left: 9%; transform: skewX(-10deg); }
.dl-pintu-isi { position: relative; z-index: 1; animation: dl-muncul 400ms 450ms both; }
@keyframes dl-tutup-kiri { from { transform: translateX(-105%); } }
@keyframes dl-tutup-kanan { from { transform: translateX(105%); } }
@keyframes dl-muncul { from { opacity: 0; transform: scale(0.6); } }
.dl-vs-layar .dl-vs { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); font-size: 4.2rem; animation: dl-hantam 600ms 550ms cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes dl-hantam { from { transform: translate(-50%, -50%) scale(3) rotate(-14deg); opacity: 0; } to { transform: translate(-50%, -50%) scale(1) rotate(-6deg); opacity: 1; } }
.dl-kilat { position: absolute; inset: 0; z-index: 2; background: #FFFFFF; opacity: 0; animation: dl-kilat 450ms 600ms ease-out both; pointer-events: none; }
@keyframes dl-kilat { 0% { opacity: 0; } 15% { opacity: 0.85; } 100% { opacity: 0; } }
.dl-vs-layar { animation: dl-guncang 360ms 650ms both; }
@keyframes dl-guncang { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.dl-vs-teks { position: absolute; left: 0; right: 0; bottom: max(3rem, env(safe-area-inset-bottom)); z-index: 3; text-align: center; color: #FFFFFF; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; animation: dl-kedip-teks 1s 1.1s ease-in-out infinite alternate both; }
@keyframes dl-kedip-teks { from { opacity: 0.4; } to { opacity: 1; } }
.dl-pintu-lapis { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.dl-pintu-lapis .dl-pintu.kiri { animation: dl-buka-kiri 900ms 280ms cubic-bezier(.6, 0, .3, 1) both; }
.dl-pintu-lapis .dl-pintu.kanan { animation: dl-buka-kanan 900ms 280ms cubic-bezier(.6, 0, .3, 1) both; }
.dl-pintu-lapis .dl-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); font-size: 4.2rem; animation: dl-vs-pergi 400ms 150ms both; }
@keyframes dl-buka-kiri { to { transform: translateX(-105%); } }
@keyframes dl-buka-kanan { to { transform: translateX(105%); } }
@keyframes dl-vs-pergi { to { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .dl-pintu, .dl-pintu-isi, .dl-vs-layar, .dl-vs-layar .dl-vs, .dl-kilat, .dl-vs-teks, .dl-pintu-lapis * { animation: none !important; } .dl-pintu-lapis { display: none; } }
/* Papan contoh peringkat (berlabel) */
.pc-label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 0.9rem; font-size: 12.5px; color: var(--ink-2); background: #FFF4D6; box-shadow: inset 0 0 0 1px rgba(255, 194, 51, 0.5); }
:root[data-theme='dark'] .pc-label { background: rgba(255, 194, 51, 0.12); }
.pc-label.kecil { margin-bottom: 0.5rem; padding: 0.4rem 0.6rem; }
.pc-chip { flex: none; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #5A3A00; background: #FFC233; }
.pc-h { margin: 0.4rem 0 0.4rem; font-size: 1rem; }
.pc-mini b { display: grid; line-height: 1.2; } .pc-mini small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pc-dl { list-style: none; margin: 0; padding: 0; }
/* Leaderboard skor */
.lb-wrap { overflow-x: auto; margin: 0 -0.2rem; }
.lb-tabel { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; }
.lb-tabel th { padding: 0.3rem 0.35rem; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lb-tabel th.lb-nama { text-align: left; }
.lb-tabel td { padding: 0.5rem 0.35rem; text-align: center; font-weight: 700; font-size: 14px; background: var(--sand-2); }
.lb-tabel tr td:first-child { border-radius: 0.8rem 0 0 0.8rem; } .lb-tabel tr td:last-child { border-radius: 0 0.8rem 0.8rem 0; }
.lb-tabel td.lb-nama { text-align: left; min-width: 7.5rem; }
.lb-tabel td.lb-nama b { display: block; font-size: 13.5px; line-height: 1.2; white-space: nowrap; }
.lb-tabel td.lb-nama small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.lb-tabel td.ok { color: #13733A; } .lb-tabel td.no { color: #C2452E; }
:root[data-theme='dark'] .lb-tabel td.ok { color: #6EE29A; } :root[data-theme='dark'] .lb-tabel td.no { color: #FF9A84; }
.lb-tabel td.lb-total { font-size: 15px; font-weight: 900; }
.lb-tabel td.lb-total.ok { background: #DFF6E7; } .lb-tabel td.lb-total.no { background: #FDE6E1; }
:root[data-theme='dark'] .lb-tabel td.lb-total.ok { background: #12342A; } :root[data-theme='dark'] .lb-tabel td.lb-total.no { background: #3A1E19; }
.lb-tabel tr.me td { background: #E6F8F9; } .lb-tabel tr.me td.lb-total.ok { background: #DFF6E7; }
.lb-no { width: 2.2rem; }
.lb-rk { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 13px; font-weight: 900; background: #FFFFFF; color: var(--ink-2); box-shadow: 0 0 0 1px var(--hair); }
.lb-rk.rk-1 { background: linear-gradient(160deg, #FFE08A, #F0A400); color: #3A2400; box-shadow: none; } .lb-rk.rk-2 { background: linear-gradient(160deg, #EEF3F4, #B9C6C9); color: #22333A; box-shadow: none; } .lb-rk.rk-3 { background: linear-gradient(160deg, #F2B48A, #C2733F); color: #FFFFFF; box-shadow: none; }
:root[data-theme='dark'] .lb-rk { background: #142E31; }
.lb-catatan { margin-top: 0.5rem; font-size: 11.5px; color: var(--muted); }
.lb-catatan.atas { margin: 0 0 0.5rem; }
@media (max-width: 420px) { .lb-tabel td { padding: 0.45rem 0.2rem; font-size: 13px; } .lb-tabel th { padding: 0.3rem 0.2rem; font-size: 10.5px; } .lb-tabel td.lb-nama { min-width: 6.5rem; } }
/* Ikon tab Leaderboard & Berita di Beranda */
.info-tabs .seg button { gap: 0.5rem; font-weight: 700; }
.info-tabs .it-ic { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; }
.info-tabs .it-ic .ic-art, .info-tabs .it-ic img { width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(10, 80, 85, 0.15)); }
.info-tabs .seg button:not(.on) .it-ic { opacity: 0.75; }
/* Petunjuk pengerjaan sebelum tryout */
.pu-layer { z-index: 85; }
.pu { width: min(560px, 100%); max-height: min(92dvh, 760px); overflow-y: auto; display: grid; gap: 0.9rem; }
.pu-head { display: flex; align-items: center; gap: 0.8rem; }
.pu-ic { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #DDF5F6); box-shadow: 0 0 0 1px rgba(14, 124, 130, 0.1); }
.pu-ic .ic-art { width: 40px; height: 40px; }
.pu-sub { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-deep); }
.pu-head h2 { font-size: 1.25rem; line-height: 1.25; }
.pu-fakta { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0.5rem; }
.pu-fakta span { display: grid; justify-items: center; padding: 0.55rem 0.4rem; border-radius: 0.9rem; background: var(--sand-2); font-size: 12px; color: var(--muted); text-align: center; }
.pu-fakta b { font-size: 1.15rem; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.pu-list { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pu-list b { color: var(--ink); }
.pu-setuju { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 0.9rem; background: #E6F8F9; font-size: 14px; font-weight: 600; cursor: pointer; }
:root[data-theme='dark'] .pu-setuju { background: rgba(47, 210, 218, 0.12); }
.pu-setuju input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal-deep); }
.pu .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pu .sheet-actions { position: sticky; bottom: calc(-1 * max(1rem, env(safe-area-inset-bottom))); margin-bottom: -0.2rem; padding: 0.7rem 0 0.2rem; background: var(--paper, #FFFFFF); box-shadow: 0 -10px 14px -10px rgba(0, 0, 0, 0.12); }

/* ================= Planner belajar ================= */
.page.narrow-plus { max-width: 900px; }
.pl-c-teal { --p1: #3FDCE3; --p2: #0A7F87; --ps: #E1F7F7; --pt: #0A6A6F; }
.pl-c-coral { --p1: #FF9A80; --p2: #E5533D; --ps: #FFE9E3; --pt: #B23A26; }
.pl-c-sun { --p1: #FFD36B; --p2: #E39400; --ps: #FFF3D6; --pt: #8A5A00; }
.pl-c-leaf { --p1: #72E3A4; --p2: #1A9E50; --ps: #E1F7EA; --pt: #13733A; }
.pl-c-sky { --p1: #86C9FF; --p2: #2B78D4; --ps: #E3F0FF; --pt: #1D5AA6; }
.pl-c-rose { --p1: #FFA3C6; --p2: #D9467F; --ps: #FFE6F0; --pt: #A82D5F; }
.pl-c-ocean { --p1: #4FD1DE; --p2: #1D5F8C; --ps: #E0F1F6; --pt: #1D5F8C; }
.pl-c-ink { --p1: #6F878A; --p2: #1E2F31; --ps: #E7EEEE; --pt: #1E2F31; }
:root[data-theme='dark'] [class*='pl-c-'] { --ps: rgba(255, 255, 255, 0.07); --pt: var(--p1); }

/* Pilihan rencana */
.pl-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.5rem; margin-bottom: 0.4rem; scrollbar-width: none; }
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chip { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; min-height: 44px; padding: 0 1rem 0 0.35rem; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair-2); white-space: nowrap; transition: transform 200ms var(--spring); }
.pl-chip:active { transform: scale(0.97); }
.pl-chip-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ps); }
.pl-chip.on { color: #FFFFFF; background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 6px 16px -10px var(--p2); }
.pl-chip.on .pl-chip-ic { background: rgba(255, 255, 255, 0.92); }
.pl-chip.tambah { padding: 0; width: 44px; justify-content: center; color: var(--teal-deep); }

/* Kartu rencana */
.pl-hero { position: relative; overflow: hidden; border-radius: 1.6rem; padding: 1.3rem 1.3rem 1.2rem; color: #FFFFFF; background: linear-gradient(140deg, var(--p1) 0%, var(--p2) 100%); box-shadow: 0 22px 40px -28px var(--p2); display: grid; gap: 1.1rem; margin-bottom: 1rem; }
.pl-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.pl-hero-top { display: flex; gap: 0.9rem; align-items: flex-start; }
.pl-ikon { width: 62px; height: 62px; flex: none; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.45); }
.pl-hero-judul { flex: 1; min-width: 0; }
.pl-sumber { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; background: rgba(255, 255, 255, 0.22); }
.pl-hero h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; margin-top: 0.3rem; color: #FFFFFF; }
.pl-hero-judul p { font-size: 13.5px; opacity: 0.92; margin-top: 0.15rem; }
.pl-edit { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: rgba(255, 255, 255, 0.18); }
.pl-edit:hover { background: rgba(255, 255, 255, 0.3); }
.pl-hero-isi { display: flex; align-items: center; gap: 1.2rem; }
.pl-ring-wrap { position: relative; width: 104px; height: 104px; flex: none; }
.pl-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-width: 10; }
.pl-ring-bg { stroke: rgba(255, 255, 255, 0.25); }
.pl-ring-fg { stroke: #FFFFFF; stroke-linecap: round; transition: stroke-dashoffset 900ms var(--out); }
.pl-ring-isi { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.pl-ring-isi b { font-size: 1.45rem; font-weight: 800; }
.pl-ring-isi small { font-size: 10.5px; opacity: 0.9; }
.pl-stat { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.pl-stat div { padding: 0.65rem 0.7rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.16); }
.pl-stat dt { font-size: 11.5px; font-weight: 700; opacity: 0.9; }
.pl-stat dd { margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-stat dd small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.pl-tunda { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.16); font-size: 13.5px; }
.pl-tunda > span:nth-child(2) { flex: 1; min-width: 160px; }
.pl-tunda .btn { background: #FFFFFF; color: var(--p2); min-height: 40px; }

/* Kosong: rata tengah */
.pl-kosong { display: grid; justify-items: center; text-align: center; gap: 0.8rem; padding: 2.2rem 1.4rem 1.8rem; }
.pl-kosong-art { width: 104px; height: 104px; border-radius: 32px; display: grid; place-items: center; background: linear-gradient(160deg, #FFFFFF, #DDF5F4); box-shadow: 0 0 0 1px rgba(45, 204, 211, 0.3), 0 16px 30px -20px rgba(10, 106, 111, 0.55); }
:root[data-theme='dark'] .pl-kosong-art { background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(45, 204, 211, 0.1)); }
.pl-kosong h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; }
.pl-kosong > p { max-width: 34rem; color: var(--ink-2); }
.pl-pilih-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; width: 100%; margin-top: 0.6rem; }
.pl-pilih-mode.vertikal { grid-template-columns: 1fr; margin-top: 1rem; }
.pl-mode { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.35rem; padding: 1.1rem 0.9rem; border-radius: 1.2rem; text-align: center; background: var(--paper); box-shadow: 0 0 0 1px var(--hair-2); transition: transform 200ms var(--spring), box-shadow 200ms var(--spring); }
.pl-pilih-mode.vertikal .pl-mode { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 0.8rem; }
.pl-pilih-mode.vertikal .pl-mode .pl-mode-ic { grid-row: span 2; }
.pl-mode:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--teal), 0 14px 26px -20px rgba(10, 106, 111, 0.6); }
.pl-mode.utama { box-shadow: 0 0 0 2px var(--teal); }
.pl-mode-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); }
.pl-mode.utama .pl-mode-ic { background: linear-gradient(160deg, #3FDCE3, #0A7F87); color: #FFFFFF; }
.pl-mode b { font-size: 15px; }
.pl-mode span:not(.pl-mode-ic):not([data-icon]) { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pl-mode em { position: absolute; top: -10px; right: 12px; font-style: normal; font-size: 11px; font-weight: 800; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--coral); color: #FFFFFF; }
.pl-cara { list-style: none; counter-reset: cara; padding: 0; margin: 1rem 0 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; text-align: left; }
.pl-cara li { counter-increment: cara; display: grid; gap: 0.2rem; padding: 0.8rem 0.9rem 0.8rem 2.7rem; position: relative; border-radius: 1rem; background: var(--sand-2); font-size: 12.5px; color: var(--ink-2); }
.pl-cara li::before { content: counter(cara); position: absolute; left: 0.8rem; top: 0.8rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #FFFFFF; background: var(--coral); }
.pl-cara b { font-size: 13.5px; color: var(--ink); }

/* Lembar buat/ubah Study Plan — bersih, profesional, tanpa gaya tombol 3D/kapsul berlebihan */
.pl-sheet { width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 1.6rem; }
.pl-sheet .input-wrap, .pl-sheet input[type='text'], .pl-sheet input[type='date'] { border-radius: var(--r-sm); font-size: 1rem; }
.pl-form { display: grid; gap: 1.15rem; margin-top: 1.1rem; }
.pl-form .lbl { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); margin-bottom: 0.45rem; }
.pl-form .opt { font-weight: 500; color: var(--muted); }
.pl-dua { display: grid; gap: 1.1rem; }
.pl-ikon-pilih { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 0.45rem; }
.pl-ikon-pilih button { aspect-ratio: 1; min-height: 46px; border-radius: var(--r-sm); border: 1px solid var(--hair-2); display: grid; place-items: center; background: var(--paper); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.pl-ikon-pilih button:hover { border-color: var(--teal-deep); }
.pl-ikon-pilih button.on { background: var(--teal-soft); border-color: var(--teal-deep); box-shadow: inset 0 0 0 1px var(--teal-deep); }
.pl-warna-pilih { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pl-warna-pilih button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: box-shadow 150ms ease; }
.pl-warna-pilih i { width: 28px; height: 28px; border-radius: 50%; background: var(--p2); transition: transform 150ms ease; }
.pl-warna-pilih button.on { box-shadow: inset 0 0 0 2px var(--p2); }
.pl-warna-pilih button.on i { transform: scale(0.78); }
.pl-seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0.65rem; }
.pl-seg button { min-height: 44px; font-size: 0.875rem; }
.pl-chips-pilih { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pl-hari { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; }
.pl-hari.pl-fokus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-hari button { min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--hair-2); font-weight: 700; font-size: 0.84rem; color: var(--ink-2); background: var(--paper); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.pl-hari button:hover { border-color: var(--teal-deep); color: var(--ink); }
.pl-hari button.on { color: var(--night-text); background: var(--night); border-color: var(--night); }
.pl-cek { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.pl-cek input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal-2); flex: none; }
.pl-hapus { color: var(--bad); }
.pl-prev-stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 1rem 0 0; padding: 0.8rem; border-radius: 1.2rem; color: #FFFFFF; background: linear-gradient(140deg, var(--p1), var(--p2)); }
.pl-prev-stat div { text-align: center; }
.pl-prev-stat dt { font-size: 11.5px; font-weight: 700; opacity: 0.9; }
.pl-prev-stat dd { margin: 0.1rem 0 0; font-size: 1.4rem; font-weight: 800; }
.pl-prev-stat dd small { font-size: 12px; }
.pl-h3 { font-size: 14px; margin: 1.1rem 0 0.5rem; }
.pl-fokus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.pl-fokus-list li { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.7rem; border-radius: 0.9rem; background: var(--sand-2); font-size: 13.5px; }
.pl-fokus-list b { flex: 1; } .pl-fokus-list em { font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.mid-t { color: #B97900; font-weight: 700; }
.pl-contoh { display: grid; gap: 0.5rem; }
.pl-contoh > div { padding: 0.7rem 0.85rem; border-radius: 1rem; box-shadow: 0 0 0 1px var(--hair-2); font-size: 13px; }
.pl-contoh ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: 0.15rem; }
.pl-aksi { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; margin-top: 1.2rem; }

/* Tambah tugas */
.pl-tambah { display: grid; gap: 0.6rem; margin: 0.4rem 0 1rem; }
.pl-jenis { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; }
.pl-jenis::-webkit-scrollbar { display: none; }
.pl-jenis button { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; min-height: 40px; padding: 0 0.85rem; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--sand-2); }
.pl-jenis button.on { color: #FFFFFF; background: var(--ink); }
:root[data-theme='dark'] .pl-jenis button.on { background: #2FD2DA; color: #07181A; }
.pl-tambah-baris { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pl-tambah-baris > .input-wrap { flex: 1 1 200px; }
.pl-tambah-baris > .input-wrap.lvl-sel, .pl-tambah-baris > .pl-jml { flex: 0 0 auto; }
.pl-tambah-baris > [hidden] { display: none; }
.pl-tambah .hint { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--teal-deep); font-weight: 600; }

/* Tugas pintar */
.task-jenis { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--sand-2); color: var(--ink-2); }
.task-jenis.j-drilling { background: #FFF1D6; color: #B36F00; } .task-jenis.j-materi { background: var(--teal-soft); color: var(--teal-deep); }
.task-jenis.j-tryout { background: var(--coral-soft); color: var(--coral-deep); } .task-jenis.j-ulas { background: #E3F0FF; color: #1D5AA6; }
:root[data-theme='dark'] .task-jenis { background: rgba(255, 255, 255, 0.08); }
.task-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; }
.task-auto { font-style: normal; font-size: 11px; font-weight: 800; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); text-decoration: none; display: inline-block; }
.task-mnt { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.task-go { position: relative; isolation: isolate; width: auto; height: 44px; padding: 0 0.8rem; margin: -6px -2px -6px 0; gap: 0.25rem; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800; background: none; }
.task-go::before { content: ''; position: absolute; z-index: -1; inset: 5px 0; border-radius: 999px; background: var(--teal-soft); transition: background-color 200ms; }
.task-go:hover { background: none; } .task-go:hover::before { background: #C9EFEE; }

/* Kalender heatmap */
.cal-d.lv1 { background: var(--sand-2); } .cal-d.lv2 { background: #FFE9C4; } .cal-d.lv3 { background: #C8F0DA; } .cal-d.lv4 { background: #6FD69D; color: #0C4A26; }
:root[data-theme='dark'] .cal-d.lv2 { background: rgba(255, 196, 87, 0.22); } :root[data-theme='dark'] .cal-d.lv3 { background: rgba(57, 196, 127, 0.25); } :root[data-theme='dark'] .cal-d.lv4 { background: rgba(57, 196, 127, 0.55); color: #FFFFFF; }
.cal-d.ujian { box-shadow: inset 0 0 0 2px var(--coral); }
.cal-d.ujian .cal-n { color: var(--coral-deep); font-weight: 800; }
.cal-leg { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.8rem; font-size: 12px; color: var(--muted); }
.cal-leg span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cal-leg i { width: 14px; height: 14px; border-radius: 4px; }
.cal-leg i.lv1 { background: var(--sand-2); } .cal-leg i.lv2 { background: #FFE9C4; } .cal-leg i.lv3 { background: #C8F0DA; } .cal-leg i.lv4 { background: #6FD69D; }
.wk-day ul li { display: flex; gap: 0.3rem; align-items: flex-start; }
.wk-day ul li .ic { flex: none; margin-top: 2px; opacity: 0.7; }

@media (max-width: 767px) {
  .pl-hero { padding: 1.1rem; border-radius: 1.3rem; }
  .pl-hero-isi { gap: 0.8rem; }
  .pl-ring-wrap { width: 92px; height: 92px; }
  .pl-stat { grid-template-columns: 1fr; gap: 0.35rem; }
  .pl-stat div { display: flex; justify-content: space-between; align-items: baseline; padding: 0.4rem 0.7rem; }
  .pl-stat dd { font-size: 1.05rem; margin: 0; }
  .pl-pilih-mode, .pl-cara { grid-template-columns: 1fr; }
  .pl-pilih-mode .pl-mode { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 0.8rem; }
  .pl-pilih-mode .pl-mode .pl-mode-ic { grid-row: span 2; }
  .pl-ikon-pilih { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pl-prev-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-tambah-baris > .input-wrap { flex-basis: 100%; }
  .pl-tambah-baris > .input-wrap.lvl-sel, .pl-tambah-baris > .pl-jml { flex: 1 1 40%; }
  .pl-tambah-baris > .btn { flex: 1 1 100%; }
}

/* Beranda: target + rencana hari ini (kosong = rata tengah) */
.page-head + .sorotan + .hero-card, .sorotan + .hero-card { margin-bottom: 1rem; }
.hc-plan { display: grid; gap: 0.8rem; padding: 1rem; border-radius: 1.3rem; background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair); }
.hc-plan-head { display: flex; align-items: center; gap: 0.7rem; }
.hc-plan-head > div { flex: 1; display: grid; line-height: 1.3; }
.hc-plan-head b { font-size: 15px; } .hc-plan-head > div span { font-size: 12.5px; color: var(--muted); }
.hc-plan-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, #FF9A80, #E5533D); color: #FFFFFF; }
.hc-plan-empty { display: grid; justify-items: center; text-align: center; gap: 0.4rem; padding: 0.8rem 0.5rem 0.4rem; }
.hc-plan-art { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--teal-soft); margin-bottom: 0.2rem; }
.hc-plan-empty b { font-size: 1.05rem; } .hc-plan-empty > span:not(.hc-plan-art) { font-size: 13.5px; color: var(--muted); max-width: 30rem; }
.hc-plan-empty .btn { margin-top: 0.5rem; }
.hc-plan .task-progress { display: none; }
/* Baris tugas di HP: judul + info penuh, tombol Kerjakan di baris kedua */
@media (max-width: 640px) {
  .task { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 0.6rem; row-gap: 0.25rem; align-items: center; }
  .task > .task-check, .task > .task-jenis { grid-row: 1 / span 2; align-self: start; margin-top: 0.15rem; }
  .task > .task-main { grid-column: 3; grid-row: 1; }
  .task > .task-go { grid-column: 3; grid-row: 2; justify-self: start; margin: -6px 0 -6px -0.2rem; }
  .task > .task-star { grid-column: 4; grid-row: 1 / span 2; }
}

/* ===== Planner v2: status, toolbar, saringan, papan, daftar, lembar tugas ===== */
.pl-hero-teks { flex: 1; min-width: 0; display: grid; gap: 0.5rem; }
.pl-desk { font-size: 14px; line-height: 1.5; opacity: 0.95; margin: 0; text-align: left; color: #FFFFFF; }
.pl-desk.kosong { justify-self: start; min-height: 44px; padding: 0 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 600; opacity: 0.9; }
.pl-mini { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 12.5px; font-weight: 700; margin: 0; }
.pl-mini > span { display: inline-flex; align-items: center; gap: 0.3rem; }

.pl-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: -0.2rem 0 1rem; }
.pl-st { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.7rem; align-items: center; padding: 0.85rem 0.9rem; border-radius: 1.2rem; color: #FFFFFF; transition: transform 200ms var(--spring); }
.pl-st:hover { transform: translateY(-2px); } .pl-st:active { transform: scale(0.98); }
.pl-st::after { content: ''; position: absolute; right: -28px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pl-st.st-teal { background: linear-gradient(140deg, #3FDCE3, #0A7F87); } .pl-st.st-sun { background: linear-gradient(140deg, #FFC94D, #E88A00); }
.pl-st.st-coral { background: linear-gradient(140deg, #FF8A70, #D93A2B); } .pl-st.st-leaf { background: linear-gradient(140deg, #5FDB98, #16924A); }
.pl-st-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.24); }
.pl-st b { font-size: 1.5rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pl-st > span:last-child { font-size: 12.5px; font-weight: 700; opacity: 0.95; }

.pl-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pl-views { display: flex; gap: 0.25rem; padding: 4px; border-radius: 999px; background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pl-views::-webkit-scrollbar { display: none; }
.pl-views a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.85rem; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pl-views a.on { color: #FFFFFF; background: linear-gradient(140deg, #3FDCE3, #0A7F87); box-shadow: 0 6px 14px -10px #0A7F87; }
.pl-aksi-bar { display: flex; gap: 0.4rem; }
.pl-ib { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--ink-2); background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair); transition: transform 200ms var(--spring); }
.pl-ib:active { transform: scale(0.95); }
.pl-ib.on { color: #B36F00; background: #FFF1D6; box-shadow: 0 0 0 1.5px #FFC94D; }
.pl-ajaib { color: #FFFFFF; background: linear-gradient(140deg, #9BE7EC, #3FB8E8 60%, #FF9A80); box-shadow: 0 8px 18px -12px #3FB8E8; }
.pl-plus { color: #FFFFFF; background: linear-gradient(140deg, #FF9A80, #E5533D); box-shadow: 0 8px 18px -12px #E5533D; }
.pl-saring { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 0.9rem; }
.pl-cari { flex: 1 1 100%; }
.pl-sel { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.9rem; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair-2); }
.pl-sel select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; padding-right: 0.2rem; cursor: pointer; }
.pl-sel select:focus-visible { outline: none; } .pl-sel:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.pl-sel.on { color: #FFFFFF; background: var(--ink); box-shadow: none; }

.pl-cepat { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.pl-cepat .input-wrap { flex: 1 1 220px; }

/* Baris tugas kaya */
.task-main { flex: 1; min-width: 0; display: grid; gap: 0.25rem; text-align: left; padding: 0.15rem 0; background: none; color: inherit; }
button.task-main { cursor: pointer; border-radius: 0.6rem; }
button.task-main:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.task-main .task-title { display: block; }
.task-tgl { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tm { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.08rem 0.45rem; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--sand-2); font-style: normal; }
.tm-telat { color: #FFFFFF; background: #E5533D; } .tm-proses { color: #8A5A00; background: #FFF1D6; } .tm-auto { color: var(--ok); background: var(--ok-soft); }
.tm-topik.t-TWK { color: #0A6A6F; background: #DDF5F4; } .tm-topik.t-TIU { color: #B23A26; background: #FFE6DF; } .tm-topik.t-TKP { color: #13733A; background: #DDF5E7; } .tm-topik.t-SKD { color: #1D5AA6; background: #E3F0FF; }
.tm-p-tinggi { color: #C2452E; background: #FFE6DF; } .tm-p-rendah { color: var(--muted); }
.tm-label { color: #6B4FA0; background: #F0EAFB; } .tm-mnt { background: none; padding-left: 0; color: var(--muted); }
:root[data-theme='dark'] .tm { background: rgba(255, 255, 255, 0.08); } :root[data-theme='dark'] .tm-telat { background: #E5533D; }
.task.telat { box-shadow: inset 3px 0 0 #E5533D, 0 0 0 1px var(--hair); }
.task.p-tinggi:not(.done):not(.telat) { box-shadow: inset 3px 0 0 #FF9A80, 0 0 0 1px var(--hair); }
.task-star { width: 44px; height: 44px; flex: none; margin: -6px -6px -6px 0; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.task.fav .task-star { color: #F0A500; }
.task-star:hover { background: var(--sand-2); }

/* Papan (kanban) */
.papan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; align-items: start; }
.pp-kol { border-radius: 1.2rem; padding: 0.7rem; background: var(--sand-2); min-height: 160px; transition: box-shadow 150ms; }
.pp-kol.drop { box-shadow: inset 0 0 0 2px var(--teal); }
.pp-kol header { display: flex; align-items: center; gap: 0.45rem; padding: 0.15rem 0.3rem 0.6rem; font-size: 14px; }
.pp-kol header em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--paper); }
.pp-titik { width: 10px; height: 10px; border-radius: 50%; background: #9AA9AB; }
.k-proses .pp-titik { background: #F0A500; } .k-selesai .pp-titik { background: #1FA855; }
.pp-isi { display: grid; gap: 0.5rem; }
.pp-kartu { display: grid; gap: 0.45rem; padding: 0.75rem; border-radius: 1rem; background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 6px 14px -12px rgba(18, 41, 43, 0.4); cursor: grab; }
.pp-kartu.seret { opacity: 0.5; }
.pp-kartu.telat { box-shadow: inset 3px 0 0 #E5533D, 0 0 0 1px var(--hair); }
.pp-kartu.p-tinggi:not(.telat) { box-shadow: inset 3px 0 0 #FF9A80, 0 0 0 1px var(--hair); }
.pp-buka { display: grid; gap: 0.15rem; text-align: left; background: none; color: inherit; padding: 0; cursor: pointer; }
.pp-buka b { font-size: 14px; line-height: 1.35; }
.pp-tgl { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pp-aksi { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pp-aksi button, .pp-go { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 36px; padding: 0 0.75rem; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: var(--sand-2); }
.pp-aksi button.ok { color: #FFFFFF; background: #1FA855; } .pp-go { color: var(--teal-deep); background: var(--teal-soft); }
.k-selesai .pp-kartu b { text-decoration: line-through; color: var(--muted); }
.pp-kosong { font-size: 12.5px; color: var(--muted); text-align: center; padding: 1.2rem 0.5rem; border: 1.5px dashed var(--hair-2); border-radius: 0.9rem; }
.pp-hint { margin-top: 0.7rem; }

/* Daftar */
.dl-grup + .dl-grup { margin-top: 1rem; }
.dl-grup h4 { display: flex; align-items: center; gap: 0.45rem; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.5rem; }
.dl-grup h4 em { font-style: normal; padding: 0 0.45rem; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); }
.dl-grup.telat h4 { color: #D93A2B; }
.pl-kosong-kecil { display: grid; justify-items: center; gap: 0.35rem; text-align: center; padding: 2rem 1rem; color: var(--muted); }
.pl-kosong-kecil b { color: var(--ink); font-size: 1.05rem; }

/* Lembar tugas */
.ts-sheet { width: min(620px, 100%); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
.ts-head { display: flex; align-items: center; gap: 0.6rem; margin: 0.2rem 3rem 0.8rem 0; }
.ts-judul-kecil { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ts-star { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.ts-star[aria-pressed='true'] { color: #F0A500; background: #FFF1D6; }
.ts-jenis { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.2rem; }
.ts-jenis::-webkit-scrollbar { display: none; }
.ts-jenis button { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; min-height: 40px; padding: 0 0.85rem; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--sand-2); }
.ts-jenis button.on { color: #FFFFFF; background: var(--ink); }
:root[data-theme='dark'] .ts-jenis button.on { background: #2FD2DA; color: #07181A; }
.ts-judul { width: 100%; margin: 0.9rem 0 0.4rem; border: 0; background: none; resize: none; overflow: hidden; font: inherit; font-size: clamp(1.35rem, 3.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.ts-judul::placeholder { color: var(--muted); opacity: 0.55; }
.ts-judul:focus { outline: none; }
.ts-khusus { display: grid; gap: 0.5rem; margin: 0.3rem 0; }
.ts-pintar { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 12.5px; font-weight: 700; color: var(--teal-deep); margin: 0.3rem 0; }
.ts-prop { display: grid; gap: 0.15rem; margin: 0.6rem 0 0; padding: 0.4rem 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.ts-prop > div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 0.6rem; padding: 0.35rem 0; }
.ts-prop dt { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ts-prop dd { margin: 0; }
.ts-waktu { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.ts-waktu input { min-height: 44px; padding: 0 0.7rem; border-radius: 0.8rem; border: 0; background: var(--sand-2); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.ts-tambah-jam { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0 0.8rem; border-radius: 0.8rem; font-size: 13.5px; font-weight: 700; color: var(--teal-deep); background: none; }
.ts-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ts-x:hover { background: var(--sand-2); }
.ts-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ts-pill { min-height: 40px; padding: 0 0.85rem; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--sand-2); }
.ts-pill.on { color: #FFFFFF; background: linear-gradient(140deg, #3FDCE3, #0A7F87); }
.ts-pill.pr-tinggi.on { background: linear-gradient(140deg, #FF8A70, #D93A2B); } .ts-pill.pr-rendah.on { background: #7B8B8D; }
.ts-pill.tp-TIU.on { background: linear-gradient(140deg, #FF8A70, #D93A2B); } .ts-pill.tp-TKP.on { background: linear-gradient(140deg, #5FDB98, #16924A); } .ts-pill.tp-SKD.on { background: linear-gradient(140deg, #86C9FF, #2B78D4); }
.ts-label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.ts-lbl { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0 0.2rem 0 0.65rem; min-height: 34px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #6B4FA0; background: #F0EAFB; }
.ts-lbl button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: inherit; }
.ts-label input { flex: 1 1 140px; min-height: 40px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.ts-label input:focus { outline: none; }
.ts-tabs { display: flex; gap: 1.2rem; margin-top: 0.8rem; border-bottom: 1px solid var(--hair-2); }
.ts-tabs button { min-height: 44px; padding: 0; font-weight: 700; font-size: 14.5px; color: var(--muted); background: none; box-shadow: inset 0 -2px 0 transparent; }
.ts-tabs button.on { color: var(--teal-deep); box-shadow: inset 0 -2.5px 0 var(--teal-2); }
.ts-tabs b { font-size: 12px; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); }
.ts-catatan { margin-top: 0.6rem; display: grid; gap: 0.5rem; }
.ts-alat { display: flex; align-items: center; gap: 0.2rem; }
.ts-alat button { min-width: 40px; height: 40px; padding: 0 0.5rem; border-radius: 0.7rem; display: grid; place-items: center; color: var(--ink-2); background: none; font-weight: 700; font-size: 13px; }
.ts-alat button:hover, .ts-alat button.on { background: var(--sand-2); }
.ts-alat-sep { flex: 1; }
.ts-catatan textarea { width: 100%; min-height: 130px; padding: 0.8rem 0.9rem; border-radius: 1rem; border: 0; background: var(--sand-2); font: inherit; font-size: 14.5px; line-height: 1.55; color: var(--ink); resize: vertical; }
.ts-catatan textarea:focus { outline: 2px solid var(--teal); }
.ts-preview { min-height: 130px; padding: 0.8rem 0.9rem; border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 14.5px; line-height: 1.55; }
.ts-preview p + p, .ts-preview ul { margin-top: 0.4rem; } .ts-preview ul { padding-left: 1.2rem; }
.ts-sub { margin-top: 0.7rem; display: grid; gap: 0.5rem; }
.ts-sub-bar { height: 6px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.ts-sub-bar i { display: block; height: 100%; width: var(--p, 0%); background: #1FA855; border-radius: 99px; transition: width 300ms var(--out); }
.ts-sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.ts-sub li { display: flex; align-items: center; gap: 0.5rem; padding: 0.1rem 0.2rem; border-radius: 0.8rem; font-size: 14.5px; }
.ts-sub li > span { flex: 1; }
.ts-sub li.done > span { text-decoration: line-through; color: var(--muted); }
.ts-sub li.done .tc-box { background: var(--ok); box-shadow: none; color: #FFFFFF; }
.ts-kaki { position: sticky; bottom: 0; display: flex; align-items: center; gap: 0.5rem; margin: 1rem -1.8rem 0; padding: 0.9rem 1.8rem calc(0.9rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--hair); }
.ts-kaki .btn { flex: 1; } .ts-kaki .btn:last-child { flex: 1.5; }
.ts-hapus { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #D93A2B; background: #FFE6DF; }

@media (max-width: 767px) {
  .pl-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-bar { flex-direction: column; align-items: stretch; }
  .pl-views a span:last-child { display: none; }
  .pl-views a { padding: 0 0.85rem; flex: 1; justify-content: center; }
  .pl-aksi-bar { justify-content: flex-end; }
  .papan { grid-template-columns: repeat(3, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; }
  .pp-kol { scroll-snap-align: start; }
  .ts-prop > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .ts-kaki { margin: 1rem -1.2rem 0; padding: 0.8rem 1.2rem calc(0.8rem + env(safe-area-inset-bottom)); }
  .pl-cepat .btn { flex: 1; }
}
button.task-main { min-height: 44px; align-content: center; }
.pl-views a { min-height: 44px; }
@media (pointer: coarse) { .ts-pill, .ts-jenis button, .pp-aksi button, .pp-go, .ts-x { min-height: 44px; } .ts-x { min-width: 44px; } }
.pp-lagi { min-height: 44px; border-radius: 0.9rem; font-size: 13px; font-weight: 800; color: var(--teal-deep); background: var(--paper); box-shadow: 0 0 0 1px var(--hair-2); }

/* ================= Analitik Skor (dasbor) =================
   Warna kategori divalidasi (CVD & kontras): terang TWK #0E9AA7 · TIU #E5533D · TKP #3B6FD8;
   gelap #12A0AC · #E95B42 · #6670EA. Teks tidak memakai warna seri; identitas dari penanda di sampingnya. */
.an { position: relative; --twk: #0E9AA7; --tiu: #E5533D; --tkp: #3B6FD8; --total: #0A6A6F; --grid: #E6EEEE; --axis: #8A9A9C; --ref: #5E7072; --track: #EDF3F3; --ring: #FFFFFF;
  --h0: #EEF4F4; --h1: #C3EAEC; --h2: #7FD2D8; --h3: #2CAFB8; --h4: #0B6F78; }
:root[data-theme='dark'] .an { --twk: #12A0AC; --tiu: #E95B42; --tkp: #6670EA; --total: #5FE1E6; --grid: rgba(255, 255, 255, 0.08); --axis: #7E9597; --ref: #A9BDBF; --track: rgba(255, 255, 255, 0.07); --ring: #0F2225;
  --h0: rgba(255, 255, 255, 0.06); --h1: #14444A; --h2: #136B73; --h3: #17A0AA; --h4: #6FE3E8; }
.s-twk { --c: var(--twk); } .s-tiu { --c: var(--tiu); } .s-tkp { --c: var(--tkp); } .s-total { --c: var(--total); }
.an .page-head { align-items: flex-end; }

/* KPI */
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.an-kpi { padding: 1rem 1.05rem 0.95rem; border-radius: 1.3rem; background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 14px 26px -24px rgba(10, 60, 64, 0.5); display: grid; gap: 0.35rem; min-width: 0; }
.an-kpi-top { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.an-kpi-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); }
.an-kpi-nilai { display: flex; align-items: baseline; gap: 0.3rem; min-height: 40px; }
.an-kpi-nilai b { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.an-kpi-nilai small { font-size: 13px; font-weight: 600; color: var(--muted); }
.an-kpi-nilai .spark { margin-left: auto; align-self: center; }
.an-kpi-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 12.5px; color: var(--muted); margin: 0; }
.an-delta { font-size: 12px; font-weight: 800; padding: 0.05rem 0.45rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.an-delta.baik { color: #13733A; background: #DDF5E7; } .an-delta.buruk { color: #B23A26; background: #FFE6DF; }
:root[data-theme='dark'] .an-delta.baik { color: #7BE3A6; background: rgba(57, 196, 127, 0.15); } :root[data-theme='dark'] .an-delta.buruk { color: #FF9A85; background: rgba(229, 83, 61, 0.15); }
.st-ok, .st-warn { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; font-size: 12.5px; }
.st-ok { color: #13733A; } .st-warn { color: #B9452F; }
:root[data-theme='dark'] .st-ok { color: #7BE3A6; } :root[data-theme='dark'] .st-warn { color: #FF9A85; }
.st-ok.sm, .st-warn.sm { font-size: 11.5px; }

/* Fakta ringkas */
.an-fakta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0 0 1rem; padding: 0.4rem; border-radius: 1.2rem; background: var(--ghost-bg); box-shadow: 0 0 0 1px var(--hair); }
.an-fakta div { padding: 0.55rem 0.8rem; min-width: 0; }
.an-fakta div + div { box-shadow: inset 1px 0 0 var(--hair-2); }
.an-fakta dt { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-fakta dd { margin: 0.1rem 0 0; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Kartu & grid */
.an-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.an-kartu { min-width: 0; padding: 1.15rem 1.2rem 1.2rem; border-radius: 1.4rem; background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 18px 34px -30px rgba(10, 60, 64, 0.55); }
.an-tren, .an-catat { grid-column: span 7; } .an-pg, .an-kat { grid-column: span 5; } .an-multi, .an-sub, .an-akt, .an-hist { grid-column: span 12; }
.an-multi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.an-mini-j { display: flex; align-items: center; gap: 0.45rem; font-size: 13.5px; font-weight: 700; margin-bottom: 0.3rem; } .an-mini-j b { margin-left: auto; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.an-akt-isi { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.an-akt-isi .an-akt-ring { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.an-kepala { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.9rem; }
.an-kepala h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.an-kepala p { font-size: 12.5px; color: var(--muted); margin-top: 0.15rem; }
.an-leg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.an-leg > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.g-ref-key { width: 18px; height: 0; border-top: 1.5px solid var(--ref); }
.an-chart { position: relative; width: 100%; min-width: 0; }
.an-kosong { display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 13.5px; }
.an-kosong-kecil { font-size: 12.5px; padding: 0.4rem 0; }

/* Elemen grafik SVG */
.grafik { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.g-grid { stroke: var(--grid); stroke-width: 1; }
.g-ax { fill: var(--axis); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.g-ref { stroke: var(--ref); stroke-width: 1.25; }
.g-ref-t { fill: var(--ref); font-size: 10.5px; font-weight: 700; }
.g-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-area { fill: var(--c); opacity: 0.1; }
.g-dot { fill: var(--c); stroke: var(--ring); stroke-width: 2; transition: r 120ms; }
.g-dot.on { r: 6px; }
.g-val { fill: var(--ink); font-size: 12px; font-weight: 800; }
.g-cross { stroke: var(--axis); stroke-width: 1; }
.spark { display: block; }
.spark .g-dot { stroke-width: 1.5; }
.viz-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 0.15rem; min-width: 150px; max-width: 260px; padding: 0.55rem 0.7rem; border-radius: 0.8rem; background: #12292B; color: #EAF4F4; font-size: 12px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5); }
:root[data-theme='dark'] .viz-tip { background: #E7F3F2; color: #12292B; }
.vt-j { font-weight: 800; font-size: 12.5px; } .vt-d { opacity: 0.75; font-size: 11.5px; }
.vt-baris b { font-size: 15px; } .vt-k { display: flex; gap: 0.6rem; margin-top: 0.15rem; } .vt-k span { display: inline-flex; align-items: center; gap: 0.25rem; }

/* Bullet passing grade */
.bl-list { display: grid; gap: 1.1rem; }
.bl-head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; font-size: 14px; }
.bl-angka { margin-left: auto; font-variant-numeric: tabular-nums; } .bl-angka b { font-size: 1.1rem; } .bl-angka small { color: var(--muted); font-weight: 600; }
.bl-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.bl-track { position: relative; height: 14px; border-radius: 4px; background: var(--track); }
.bl-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--nilai, 0%); border-radius: 0 4px 4px 0; background: var(--c); transition: width 800ms var(--out); }
.bl-pg { position: absolute; left: var(--pg); top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.bl-rata { position: absolute; left: var(--rata); top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--ring); }
.bl-ket { margin-top: 0.45rem; font-size: 12.5px; }

/* Penguasaan per kategori */
.an-meters { display: grid; gap: 1rem; }
.an-meter-head { display: flex; align-items: center; gap: 0.45rem; font-size: 14px; margin-bottom: 0.45rem; }
.an-meter-head .muted { font-size: 12px; } .an-meter-head em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.an-meter-track, .an-sub-bar { height: 10px; border-radius: 4px; background: var(--track); overflow: hidden; }
.an-meter-track i, .an-sub-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--c); border-radius: 0 4px 4px 0; transition: width 800ms var(--out); }
.an-cta { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; padding: 0.8rem 0.9rem; border-radius: 1rem; background: var(--teal-soft); color: var(--teal-deep); }
.an-cta > span:nth-child(2) { flex: 1; display: grid; font-size: 12.5px; } .an-cta b { font-size: 13.5px; color: var(--ink); }

/* Kekuatan subtopik */
.an-subgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.an-subkol h4 { display: flex; align-items: center; gap: 0.45rem; font-size: 14px; margin: 0 0 0.6rem; }
.an-subkol h4 .muted { margin-left: auto; font-size: 12px; font-weight: 600; }
.an-subkol ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.an-subkol li { display: grid; grid-template-columns: minmax(0, 1fr) 56px; grid-template-areas: 'nama pct' 'bar soal'; column-gap: 0.6rem; row-gap: 0.3rem; padding: 0.45rem 0; border-bottom: 1px solid var(--hair); }
.an-sub-nama { grid-area: nama; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 13.5px; font-weight: 700; color: var(--ink); min-height: 28px; }
.an-sub-nama:hover { color: var(--teal-deep); }
.an-sub-bar { grid-area: bar; align-self: center; height: 8px; }
.an-subkol em { grid-area: pct; font-style: normal; font-weight: 800; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.an-subkol small { grid-area: soal; font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }

/* Heatmap aktivitas */
.hm { display: flex; gap: 6px; }
.hm-hari { display: grid; grid-template-rows: 16px repeat(7, 1fr); gap: 3px; font-size: 10.5px; color: var(--axis); padding-top: 0; }
.hm-hari span { display: flex; align-items: center; }
.hm-isi { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hm-bulan, .hm-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.hm-bulan { height: 16px; font-size: 10.5px; color: var(--axis); } .hm-bulan span { white-space: nowrap; overflow: visible; }
.hm-kol { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.hm-sel { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--h0); min-width: 0; }
.hm-sel.kosong { background: none; }
.hm-sel.h1 { background: var(--h1); } .hm-sel.h2 { background: var(--h2); } .hm-sel.h3 { background: var(--h3); } .hm-sel.h4 { background: var(--h4); }
.hm-sel.kini { box-shadow: 0 0 0 1.5px var(--ink); }
.hm-sel[data-hm] { cursor: default; }
.hm-leg { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 0.6rem; font-size: 11px; color: var(--axis); }
.hm-leg .hm-sel { width: 12px; } .hm-leg span:first-child { margin-right: 4px; } .hm-leg span:last-child { margin-left: 4px; }
.an-akt-ring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 1rem 0 0; }
.an-akt-ring div { padding: 0.6rem 0.75rem; border-radius: 0.9rem; background: var(--sand-2); }
.an-akt-ring dt { font-size: 11.5px; color: var(--muted); font-weight: 600; } .an-akt-ring dd { margin: 0.1rem 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Catatan */
.an-insight { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.an-insight li { display: flex; gap: 0.6rem; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.an-insight li .ic { flex: none; margin-top: 2px; color: var(--teal-deep); }
.an-target { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.75rem 0.85rem; border-radius: 1rem; background: var(--sand-2); font-size: 13.5px; }
.an-target .ic { color: var(--coral-deep); flex: none; }

/* Riwayat (tabel) */
.an-tabel { display: grid; }
.an-tr { display: grid; grid-template-columns: minmax(0, 2fr) 0.5fr 0.5fr 0.5fr minmax(90px, 1.1fr) minmax(110px, 0.9fr); align-items: center; gap: 0.8rem; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--hair); font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
a.an-tr:hover { background: var(--sand-2); border-radius: 0.8rem; }
.an-th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0; }
.an-td-judul { display: grid; min-width: 0; } .an-td-judul b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .an-td-judul small { font-size: 11.5px; color: var(--muted); }
.an-seg { display: flex; gap: 2px; height: 10px; }
.an-seg i { display: block; height: 100%; width: var(--w, 0%); background: var(--c); border-radius: 2px; }
.an-seg i:first-child { border-radius: 4px 2px 2px 4px; } .an-seg i:last-child { border-radius: 2px 4px 4px 2px; }
.an-td-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.45rem; justify-content: flex-end; } .an-td-total b { font-size: 1rem; } .an-td-total small { color: var(--muted); }

@media (max-width: 1000px) {
  .an-tren, .an-multi, .an-akt, .an-pg, .an-kat, .an-catat { grid-column: span 12; }
  .an-akt-isi { grid-template-columns: 1fr; gap: 1rem; }
  .an-multi-grid { grid-template-columns: 1fr; }
  .an-subgrid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 767px) {
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .an-kpi { padding: 0.85rem 0.85rem 0.8rem; }
  .an-kpi-nilai { flex-wrap: wrap; } .an-kpi-nilai b { font-size: 1.6rem; } .an-kpi-nilai .spark { display: none; }
  .an-fakta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-fakta div:nth-child(4) { box-shadow: none; } .an-fakta div:nth-child(n + 4) { border-top: 1px solid var(--hair-2); }
  .an-grid { gap: 0.8rem; }
  .an-kartu { padding: 1rem; }
  .an-kepala { flex-direction: column; gap: 0.4rem; }
  .an-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'judul total' 'seg seg'; row-gap: 0.4rem; }
  .an-tr > span:nth-child(2), .an-tr > span:nth-child(3), .an-tr > span:nth-child(4) { display: none; }
  .an-th { display: none; }
  .an-td-judul { grid-area: judul; } .an-seg { grid-area: seg; } .an-td-total { grid-area: total; }
  .an-akt-ring dd { font-size: 0.92rem; }
}
@media (max-width: 767px) { .an-fakta dt { white-space: normal; overflow: visible; line-height: 1.25; } }
.an-target .link { display: inline-flex; align-items: center; min-height: 44px; }
.an-sub-nama { min-height: 44px; }
@media (max-width: 767px) { .an .page-head { align-items: flex-start; } .an .page-head > .chip { display: none; } }

/* ===== Mode HP ringkas (Planner, lembar tugas, Analitik): kecil & padat supaya tidak banyak scroll ===== */
@media (max-width: 767px) {
  /* Planner */
  .pl-page .page-head { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
  .pl-page .page-head h1 { font-size: 1.35rem; }
  .pl-page .page-head .greet-date { font-size: 12px; }
  .pl-page .page-head .btn { min-height: 38px; padding: 0 0.8rem; font-size: 12.5px; gap: 0.3rem; }
  .pl-chips { gap: 0.35rem; margin-bottom: 0.2rem; padding-bottom: 0.35rem; }
  .pl-chip { min-height: 36px; padding: 0 0.75rem 0 0.25rem; font-size: 12.5px; gap: 0.35rem; }
  .pl-chip-ic { width: 28px; height: 28px; } .pl-chip-ic .ic-art, .pl-chip-ic svg { width: 17px; height: 17px; }
  .pl-chip.tambah { width: 36px; }
  .pl-hero { padding: 0.8rem 0.85rem; gap: 0.6rem; border-radius: 1.1rem; margin-bottom: 0.6rem; }
  .pl-hero-top { gap: 0.6rem; }
  .pl-ikon { width: 42px; height: 42px; border-radius: 13px; } .pl-ikon .ic-art, .pl-ikon svg { width: 28px; height: 28px; }
  .pl-sumber { font-size: 11px; padding: 0.1rem 0.45rem; }
  .pl-hero h2 { font-size: 1.05rem; margin-top: 0.15rem; }
  .pl-hero-judul p { font-size: 11.5px; }
  .pl-edit { width: 36px; height: 36px; }
  .pl-hero-isi { gap: 0.7rem; }
  .pl-ring-wrap { width: 66px; height: 66px; }
  .pl-ring circle { stroke-width: 11; }
  .pl-ring-isi b { font-size: 0.95rem; } .pl-ring-isi small { font-size: 10px; letter-spacing: -0.02em; }
  .pl-hero-teks { gap: 0.3rem; }
  .pl-desk { font-size: 12px; } .pl-desk.kosong { min-height: 34px; padding: 0 0.65rem; font-size: 11.5px; }
  .pl-mini { font-size: 11px; gap: 0.2rem 0.6rem; }
  .pl-tunda { padding: 0.45rem 0.45rem 0.45rem 0.65rem; font-size: 12px; } .pl-tunda .btn { min-height: 34px; font-size: 12px; }
  .pl-status { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; margin: 0 0 0.6rem; }
  .pl-st { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 0.45rem 0.5rem; border-radius: 0.85rem; text-align: left; }
  .pl-st-ic { display: none; }
  .pl-st b { font-size: 1.05rem; } .pl-st > span:last-child { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pl-st::after { width: 60px; height: 60px; right: -18px; bottom: -26px; }
  .pl-bar { flex-direction: row; align-items: center; gap: 0.35rem; margin-bottom: 0.45rem; }
  .pl-views { padding: 3px; gap: 0.1rem; flex: 1; min-width: 0; }
  .pl-views a { min-height: 36px; padding: 0 0.45rem; flex: 1; }
  .pl-views a .ic { width: 16px; height: 16px; }
  .pl-aksi-bar { gap: 0.25rem; }
  .pl-ib { width: 36px; height: 36px; border-radius: 11px; } .pl-ib .ic { width: 17px; height: 17px; }
  .pl-saring { gap: 0.3rem; margin-bottom: 0.55rem; }
  .pl-sel { min-height: 34px; padding: 0 0.65rem; font-size: 12px; gap: 0.25rem; }
  .pl-page .sp-card { padding: 0.75rem; }
  .pl-page .week { gap: 0.2rem; margin-bottom: 0.5rem; }
  .pl-page .day { min-height: 40px; padding: 0.3rem 0; font-size: 10.5px; border-radius: 0.7rem; } .pl-page .day b { font-size: 14px; }
  .pl-page .sp-date { font-size: 0.95rem; }
  .pl-cepat { gap: 0.3rem; margin: 0.35rem 0 0.6rem; flex-wrap: nowrap; }
  .pl-cepat .input-wrap { flex: 1 1 auto; min-width: 0; } .pl-cepat .input-wrap input { min-height: 40px; font-size: 14px; }
  .pl-cepat .btn { flex: none; min-height: 40px; padding: 0 0.75rem; font-size: 12.5px; }
  .pl-cepat .btn.ghost { padding: 0; width: 40px; justify-content: center; font-size: 0; gap: 0; }
  .pl-cepat .btn.ghost .ic { width: 18px; height: 18px; }
  .pl-page .tasks { gap: 0.35rem; }
  .pl-page .task, .hc-plan .task { padding: 0.45rem 0.55rem; border-radius: 0.85rem; column-gap: 0.45rem; }
  .pl-page .task-title, .hc-plan .task-title { font-size: 13px; }
  .tm { font-size: 11px; padding: 0.04rem 0.38rem; }
  .task-jenis { width: 26px; height: 26px; border-radius: 8px; }
  .task-go { font-size: 11.5px; }
  .pl-page .task-progress { margin-bottom: 0.4rem; }
  .papan { grid-template-columns: repeat(3, 86%); gap: 0.5rem; }
  .pp-kol { padding: 0.5rem; } .pp-kartu { padding: 0.6rem; gap: 0.35rem; } .pp-buka b { font-size: 13px; }
  .pp-aksi button, .pp-go { min-height: 32px; padding: 0 0.6rem; font-size: 11.5px; }
  .dl-grup h4 { font-size: 11.5px; margin-bottom: 0.35rem; }

  /* Lembar tugas: baris label–nilai berdampingan */
  .ts-sheet { padding: 0.9rem 1rem 0; }
  .ts-head { margin: 0 2.6rem 0.5rem 0; } .ts-judul-kecil { font-size: 11px; }
  .ts-star { width: 36px; height: 36px; }
  .ts-jenis { gap: 0.25rem; } .ts-jenis button { min-height: 32px; padding: 0 0.65rem; font-size: 12px; gap: 0.25rem; }
  .ts-judul { font-size: 1.2rem; margin: 0.55rem 0 0.2rem; }
  .ts-prop { margin-top: 0.3rem; padding: 0.2rem 0; gap: 0; }
  .ts-prop > div { grid-template-columns: 78px minmax(0, 1fr); gap: 0.4rem; padding: 0.22rem 0; }
  .ts-prop dt { font-size: 12px; gap: 0.3rem; } .ts-prop dt .ic { width: 14px; height: 14px; }
  .ts-pills { gap: 0.25rem; }
  .ts-pill { min-height: 32px; padding: 0 0.6rem; font-size: 12px; }
  .ts-waktu input { min-height: 34px; padding: 0 0.5rem; font-size: 13px; border-radius: 0.65rem; }
  .ts-tambah-jam { min-height: 34px; padding: 0 0.4rem; font-size: 12.5px; }
  .ts-label input { min-height: 32px; font-size: 13px; } .ts-lbl { min-height: 28px; font-size: 11.5px; }
  .ts-tabs { margin-top: 0.4rem; gap: 1rem; } .ts-tabs button { min-height: 38px; font-size: 13.5px; }
  .ts-alat button { min-width: 34px; height: 34px; }
  .ts-catatan { margin-top: 0.4rem; gap: 0.35rem; }
  .ts-catatan textarea, .ts-preview { min-height: 84px; padding: 0.6rem 0.7rem; font-size: 13.5px; }
  .ts-sub { margin-top: 0.45rem; } .ts-sub li { font-size: 13.5px; }
  .ts-kaki { margin: 0.7rem -1rem 0; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); }
  .ts-kaki .btn { min-height: 42px; font-size: 14px; }
  .ts-khusus { gap: 0.35rem; } .ts-pintar { font-size: 11.5px; margin: 0.15rem 0; }

  /* Analitik Skor */
  .an .page-head h1 { font-size: 1.35rem; }
  .an-kpis { gap: 0.45rem; margin-bottom: 0.5rem; }
  .an-kpi { padding: 0.65rem 0.7rem; gap: 0.2rem; border-radius: 1rem; }
  .an-kpi-top { font-size: 11.5px; gap: 0.35rem; line-height: 1.25; } .an-kpi-ic { width: 24px; height: 24px; border-radius: 8px; } .an-kpi-ic .ic { width: 14px; height: 14px; }
  .an-kpi-nilai { min-height: 0; } .an-kpi-nilai b { font-size: 1.35rem; } .an-kpi-nilai small { font-size: 11px; }
  .an-kpi-sub { font-size: 11px; }
  .an-fakta { margin-bottom: 0.6rem; padding: 0.2rem; border-radius: 0.9rem; }
  .an-fakta div { padding: 0.35rem 0.5rem; } .an-fakta dt { font-size: 11px; } .an-fakta dd { font-size: 0.88rem; }
  .an-grid { gap: 0.55rem; }
  .an-kartu { padding: 0.8rem 0.8rem 0.85rem; border-radius: 1.1rem; }
  .an-kepala { margin-bottom: 0.5rem; gap: 0.25rem; } .an-kepala h3 { font-size: 0.95rem; } .an-kepala p { font-size: 11px; }
  .an-leg { font-size: 11px; }
  .bl-list { gap: 0.75rem; } .bl-head { font-size: 13px; margin-bottom: 0.35rem; } .bl-angka b { font-size: 0.98rem; } .bl-track { height: 11px; } .bl-ket { font-size: 11.5px; margin-top: 0.3rem; }
  .an-multi-grid { gap: 0.6rem; } .an-mini-j { font-size: 12.5px; margin-bottom: 0.1rem; }
  .an-meters { gap: 0.7rem; } .an-meter-head { font-size: 13px; margin-bottom: 0.3rem; } .an-meter-head em { font-size: 0.95rem; }
  .an-cta { margin-top: 0.7rem; padding: 0.6rem 0.7rem; } .an-cta b { font-size: 12.5px; } .an-cta > span:nth-child(2) { font-size: 11.5px; }
  .an-insight { gap: 0.45rem; } .an-insight li { font-size: 12.5px; } .an-target { margin-top: 0.6rem; padding: 0.55rem 0.7rem; font-size: 12.5px; }
  .an-subgrid { gap: 0.7rem; } .an-subkol h4 { font-size: 13px; margin-bottom: 0.25rem; }
  .an-subkol li { padding: 0.25rem 0; row-gap: 0.15rem; } .an-sub-nama { font-size: 12.5px; min-height: 30px; } .an-subkol em { font-size: 12.5px; } .an-sub-bar { height: 6px; }
  .an-akt-ring { gap: 0.35rem; } .an-akt-ring div { padding: 0.45rem 0.55rem; } .an-akt-ring dt { font-size: 11px; }
  .hm-leg { margin-top: 0.35rem; }
  .an-tr { padding: 0.5rem 0.25rem; font-size: 12.5px; row-gap: 0.3rem; } .an-td-total b { font-size: 0.92rem; }
}
@media (max-width: 767px) {
  .ts-waktu { flex-wrap: nowrap; gap: 0.25rem; }
  .ts-waktu input[type='date'] { flex: 1 1 auto; min-width: 0; }
  .ts-waktu input[type='time'] { flex: 0 1 6.2rem; min-width: 0; }
  .ts-waktu .ts-x { width: 32px; height: 32px; min-height: 32px; min-width: 32px; flex: none; }
}
@media (max-width: 767px) {
  .an-subkol li { grid-template-columns: minmax(0, 1fr) 34% 34px; grid-template-areas: 'nama bar pct'; align-items: center; column-gap: 0.45rem; padding: 0.12rem 0; }
  .an-subkol small { display: none; }
  .an-sub-nama { font-size: 12px; min-height: 32px; gap: 0.1rem 0.35rem; }
  .an-sub-nama .st-warn { font-size: 11px; }
  .an-multi-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.6rem; padding-bottom: 0.3rem; scrollbar-width: none; }
  .an-multi-grid::-webkit-scrollbar { display: none; }
  .an-mini { scroll-snap-align: start; }
}

/* Sorotan di HP: banner pendek memanjang (± 2,4 : 1) */
@media (max-width: 767px) {
  .sorotan { margin-bottom: 0.6rem; }
  .slide { flex-basis: 94%; height: 148px; min-height: 0; padding: 0.8rem 0.95rem; border-radius: 1.1rem; align-items: center; }
  .sl-body { gap: 0.22rem; max-width: 72%; }
  .sl-tag { padding: 0.12rem 0.5rem; font-size: 11px; }
  .sl-title { font-size: 0.98rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sl-text { font-size: 11px; line-height: 1.35; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0.92; }
  .sl-cta { margin-top: 0.2rem; min-height: 28px; padding: 0.2rem 0.4rem 0.2rem 0.7rem; font-size: 11.5px; gap: 0.25rem; }
  .sl-cta .ic { width: 14px; height: 14px; }
  .sl-big { right: 0.6rem; opacity: 0.6; }
  .sl-big .ic { width: 70px; height: 70px; }
  .sl-deco i:nth-child(1) { width: 200px; height: 200px; right: -50px; top: -80px; }
  .sl-deco i:nth-child(2) { width: 120px; height: 120px; right: 10px; top: 0; }
  .slide.slide-img { height: auto; padding: 0; aspect-ratio: 3 / 1; }
  .slide.slide-img img { width: 100%; height: 100%; object-fit: cover; }
  .sr-dots { margin-top: 0; } .sr-dots button { height: 26px; width: 26px; } .sr-dots button::before { width: 6px; height: 6px; } .sr-dots button[aria-selected='true']::before { width: 18px; }
}

/* Kartu "Target kamu" di HP: ringkas, hitung mundur di samping judul */
@media (max-width: 767px) {
  .hero-card { padding: 0.75rem 0.8rem 0.8rem; gap: 0.55rem; border-radius: 1.1rem; }
  .hc-top .label { font-size: 12px; }
  .hc-edit { min-height: 34px; padding: 0.2rem 0.7rem; font-size: 12px; gap: 0.3rem; }
  .hc-edit .ic { width: 14px; height: 14px; }
  .hc-body { flex-direction: row; align-items: center; gap: 0.6rem; }
  .hc-body > div:first-child { flex: 1; min-width: 0; }
  .hc-body h2 { font-size: 1.05rem; line-height: 1.25; }
  .hc-meta { margin-top: 0.3rem; gap: 0.15rem 0.7rem; font-size: 11.5px; }
  .hc-meta .ic { width: 14px; height: 14px; }
  .count { padding: 0.45rem 0.6rem; gap: 0.4rem; border-radius: 0.9rem; }
  .count b { font-size: 22px; } .count b.sm { font-size: 14px; }
  .count span { font-size: 10px; }
  .hc-plan { padding: 0.6rem 0.65rem; gap: 0.5rem; border-radius: 1rem; }
  .hc-plan-head { gap: 0.5rem; } .hc-plan-head b { font-size: 13.5px; } .hc-plan-head > div span { font-size: 11px; }
  .hc-plan-ic { width: 32px; height: 32px; border-radius: 10px; } .hc-plan-ic .ic { width: 18px; height: 18px; }
  .hc-plan-head .link { font-size: 12px; }
  .hc-plan-empty { gap: 0.25rem; padding: 0.3rem 0.3rem 0.1rem; }
  .hc-plan-art { width: 46px; height: 46px; border-radius: 14px; } .hc-plan-art .ic-art, .hc-plan-art svg { width: 30px; height: 30px; }
  .hc-plan-empty b { font-size: 0.92rem; } .hc-plan-empty > span:not(.hc-plan-art) { font-size: 11.5px; }
  .hc-plan-empty .btn { margin-top: 0.25rem; min-height: 36px; padding: 0 0.9rem; font-size: 12.5px; }
}

/* Lupa password */
.lupa-link { justify-self: end; margin: -0.35rem 0 -0.1rem; min-height: 36px; display: inline-flex; align-items: center; font-weight: 700; }
.lupa .auth-main { min-height: 100dvh; display: grid; place-content: center; padding: 1.2rem; }
.lupa .auth-card { width: min(440px, 100%); }
.lupa-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 0.6rem; background: var(--teal-soft); color: var(--teal-deep); }
.lupa-ic.ok { background: var(--ok-soft); color: var(--ok); } .lupa-ic.bad { background: var(--coral-soft); color: var(--coral-deep); }
.lupa-catatan { margin: 0.8rem 0 1rem; padding: 0.7rem 0.85rem; border-radius: 0.9rem; background: var(--sand-2); font-size: 13px; color: var(--ink-2); }
.lupa-bawah { margin-top: 1rem; text-align: center; }
.lupa .auth-card .btn.block { margin-top: 0.4rem; }
@media (max-width: 767px) {
  .lupa .auth-main { place-content: start stretch; padding: 1rem; }
  .lupa .auth-card h1 { font-size: 1.35rem; }
  .lupa .auth-sub { font-size: 13px; }
  .lupa-ic { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 0.4rem; }
}
/* Admin: kotak keluar email */
.adm-kotak summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; cursor: pointer; min-height: 40px; list-style: none; }
.adm-kotak summary::-webkit-details-marker { display: none; }
.adm-kotak .hint { margin: 0.6rem 0; }
.adm-mail { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.35rem; }
.adm-mail li { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0.65rem; border-radius: 0.8rem; background: var(--sand-2); font-size: 13px; }
.adm-mail li > span:first-child { display: grid; min-width: 0; } .adm-mail small { color: var(--muted); font-size: 11.5px; }
.adm-item-act { display: flex; flex-wrap: wrap; gap: 0.4rem; }


/* ===== Audit antislop 002 ===== */
/* #1–3 Kontras: semua teks/ikon putih di atas warna ≥ 4,5:1 (ujung paling terang gradien). */
.pl-c-teal { --p1: #0A7F87; --p2: #075C63; } .pl-c-coral { --p1: #CC4A2E; --p2: #A8351F; }
.pl-c-sun { --p1: #A86400; --p2: #7F4A00; } .pl-c-leaf { --p1: #13803F; --p2: #0E5F2E; }
.pl-c-sky { --p1: #2A6FC9; --p2: #1D4F96; } .pl-c-rose { --p1: #C23A70; --p2: #962756; }
.pl-c-ocean { --p1: #1D6E8C; --p2: #154F66; } .pl-c-ink { --p1: #2B3D40; --p2: #172426; }
:root[data-theme='dark'] [class*='pl-c-'] { --pt: #E7F3F2; }
.pl-views a.on, .ts-pill.on, .pl-ajaib, .pl-mode.utama .pl-mode-ic { background: var(--night); color: var(--night-text); }
.ts-pill.pr-tinggi.on, .ts-pill.tp-TIU.on, .pl-plus, .hc-plan-ic { background: linear-gradient(140deg, #CC4A2E, #A8351F); color: #FFFFFF; }
.ts-pill.tp-TKP.on { background: linear-gradient(140deg, #13803F, #0E5F2E); } .ts-pill.tp-SKD.on { background: linear-gradient(140deg, #2A6FC9, #1D4F96); } .ts-pill.pr-rendah.on { background: #5E7072; }
.tm-telat, :root[data-theme='dark'] .tm-telat { background: #C93C27; }
.pp-aksi button.ok { background: #13803F; }
.pl-tunda .btn { color: #1E2F31; }
/* #7 Kurangi gradien: kotak status jadi kartu netral, warna hanya di penanda, ikon, dan angka. */
.pl-status .pl-st { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 10px 20px -18px rgba(10, 60, 64, 0.45); }
.pl-status .pl-st::after { display: none; }
.pl-status .pl-st::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--st); }
.pl-status .pl-st-ic { background: var(--st-soft); color: var(--st-t); }
.pl-status .pl-st b { color: var(--st-t); }
.pl-status .pl-st > span:last-child { color: var(--ink-2); opacity: 1; }
.st-teal { --st: #16A9B2; --st-soft: #DDF5F4; --st-t: #0A6A6F; } .st-sun { --st: #F0A500; --st-soft: #FFF1D6; --st-t: #8A5A00; }
.st-coral { --st: #E5533D; --st-soft: #FFE6DF; --st-t: #B23A26; } .st-leaf { --st: #1FA855; --st-soft: #DDF5E7; --st-t: #13733A; }
:root[data-theme='dark'] .st-teal { --st-soft: rgba(47, 210, 218, 0.14); --st-t: #5FE1E6; } :root[data-theme='dark'] .st-sun { --st-soft: rgba(255, 196, 87, 0.14); --st-t: #FFC857; }
:root[data-theme='dark'] .st-coral { --st-soft: rgba(229, 83, 61, 0.16); --st-t: #FF9A85; } :root[data-theme='dark'] .st-leaf { --st-soft: rgba(57, 196, 127, 0.15); --st-t: #7BE3A6; }
@media (max-width: 767px) { .pl-status .pl-st { padding-left: 0.7rem; } .pl-status .pl-st::before { top: 8px; bottom: 8px; width: 3px; } }
/* #4 Area sentuh: tampilan tetap kecil, area ketuk diperluas sampai ± 44px dengan pseudo-element. */
.pl-ib, .pl-views a, .pl-chip, .pl-sel, .ts-pill, .ts-jenis button, .ts-star, .ts-x, .pl-edit, .pp-aksi button, .pp-go, .hc-edit, .dr-lbl, .dr-semua, .dr-pill, .an-sub-nama, .sr-dots button, .ts-tambah-jam, .pl-desk.kosong { position: relative; }
@media (max-width: 767px) {
  .pl-ib::after, .pl-views a::after, .pl-chip::after, .pl-sel::after, .ts-pill::after, .ts-jenis button::after, .ts-star::after, .ts-x::after, .pl-edit::after,
  .pp-aksi button::after, .pp-go::after, .hc-edit::after, .dr-lbl::after, .dr-semua::after, .dr-pill::after, .an-sub-nama::after, .sr-dots button::after, .ts-tambah-jam::after, .pl-desk.kosong::after { content: ''; position: absolute; inset: -6px -2px; }
  .sr-dots button::after { inset: -9px -4px; }
}

/* ===== Try Out Akbar: kartu eksklusif (gelap + aksen emas) & hitung mundur ===== */
.akb-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 0.9rem; padding: 1.6rem 1.6rem 1.5rem; margin-bottom: 1rem; border-radius: 1.6rem; color: #F3EFE6;
  background: radial-gradient(120% 90% at 100% 0%, rgba(242, 198, 109, 0.16) 0%, rgba(242, 198, 109, 0) 55%), linear-gradient(160deg, #10282B 0%, #0A1B1D 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 198, 109, 0.35), 0 28px 50px -34px rgba(4, 30, 33, 0.9); }
.akb-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(242, 198, 109, 0.05) 0 1px, transparent 1px 22px); }
.akb-hero-deko { position: absolute; right: -36px; bottom: -40px; z-index: -1; color: rgba(242, 198, 109, 0.12); transform: rotate(-10deg); }
.akb-hero-deko .ic { width: 220px; height: 220px; }
.akb-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ak-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #2A1A00; background: linear-gradient(140deg, #F6D58A, #E2AE45); }
.ak-tier { margin-left: auto; font-size: 12.5px; font-weight: 700; color: #F2C66D; }
.ak-live { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 12.5px; font-weight: 800; color: #FFB4A6; }
.ak-live i { width: 8px; height: 8px; border-radius: 50%; background: #FF6B57; }
@media (prefers-reduced-motion: no-preference) { .ak-live i { animation: titik 1.4s ease-in-out infinite; } }
.akb-hero h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; color: #FFFFFF; max-width: 30rem; }
.akb-hero-desk { font-size: 14px; color: rgba(243, 239, 230, 0.82); max-width: 34rem; margin-top: -0.4rem; }
.ak-cd-label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #F2C66D; margin: 0.2rem 0 -0.4rem; }
.ak-cd { display: flex; align-items: center; gap: 0.4rem; }
.ak-cd-kotak { min-width: 78px; display: grid; justify-items: center; padding: 0.6rem 0.5rem 0.5rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(242, 198, 109, 0.28); }
.ak-cd-kotak b { font-size: 2.2rem; font-weight: 800; line-height: 1; color: #FFFFFF; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ak-cd-kotak span { margin-top: 0.25rem; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(243, 239, 230, 0.7); }
.ak-cd-sep { font-size: 1.6rem; font-weight: 800; color: rgba(242, 198, 109, 0.6); margin-top: -1rem; }
.akb-hero-when { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 13.5px; font-weight: 600; color: rgba(243, 239, 230, 0.9); }
.akb-hero-when .ic { color: #F2C66D; }
.ak-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ak-perks li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #F3EFE6; background: rgba(255, 255, 255, 0.07); }
.ak-perks .ic { color: #F2C66D; }
.akb-hero-aksi { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 50px; padding: 0 1.4rem; border-radius: 999px; font-weight: 800; font-size: 15px; color: #2A1A00; background: linear-gradient(140deg, #F6D58A, #E2AE45); box-shadow: 0 10px 24px -14px rgba(226, 174, 69, 0.9); transition: transform 200ms var(--spring); }
.ak-btn:hover { transform: translateY(-1px); } .ak-btn:active { transform: scale(0.98); }
.ak-btn.ghost { color: #F3EFE6; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(242, 198, 109, 0.4); }
.ak-terdaftar { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-radius: 1rem; font-size: 14px; font-weight: 700; color: #BDF2D1; background: rgba(57, 196, 127, 0.14); }
.akb-hero-skor { font-size: 13.5px; color: rgba(243, 239, 230, 0.9); } .akb-hero-skor b { color: #FFFFFF; font-size: 1.1rem; }
/* Kartu ringkas di Beranda */
.ak-mini { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 0.95rem 1.1rem; border-radius: 1.3rem; color: #F3EFE6;
  background: radial-gradient(90% 120% at 100% 0%, rgba(242, 198, 109, 0.18), rgba(242, 198, 109, 0) 60%), linear-gradient(160deg, #10282B, #0A1B1D); box-shadow: inset 0 0 0 1px rgba(242, 198, 109, 0.35); transition: transform 200ms var(--spring); }
.ak-mini:hover { transform: translateY(-1px); }
.ak-mini-teks { display: grid; gap: 0.25rem; min-width: 0; }
.ak-mini-teks .ak-badge { justify-self: start; }
.ak-mini-teks b { font-size: 1.05rem; color: #FFFFFF; } .ak-mini-teks > span:last-child { font-size: 12.5px; color: rgba(243, 239, 230, 0.8); }
.ak-mini .ak-cd { gap: 0.25rem; flex: none; }
.ak-mini .ak-cd-kotak { min-width: 52px; padding: 0.4rem 0.3rem 0.35rem; border-radius: 0.75rem; }
.ak-mini .ak-cd-kotak b { font-size: 1.35rem; } .ak-mini .ak-cd-kotak span { font-size: 10px; margin-top: 0.15rem; }
.ak-mini .ak-cd-sep { font-size: 1.1rem; margin-top: -0.7rem; }
@media (max-width: 767px) {
  .akb-hero { padding: 1rem 0.95rem 1.05rem; gap: 0.65rem; border-radius: 1.2rem; }
  .akb-hero-deko { right: -40px; bottom: -30px; } .akb-hero-deko .ic { width: 150px; height: 150px; }
  .ak-badge { font-size: 11px; padding: 0.18rem 0.55rem; } .ak-tier { font-size: 11.5px; }
  .akb-hero h2 { font-size: 1.3rem; } .akb-hero-desk { font-size: 12.5px; margin-top: -0.2rem; }
  .ak-cd-label { font-size: 11px; margin-bottom: -0.25rem; }
  .ak-cd { gap: 0.25rem; } .ak-cd-kotak { min-width: 0; flex: 1; padding: 0.5rem 0.2rem 0.4rem; border-radius: 0.8rem; }
  .ak-cd-kotak b { font-size: 1.6rem; } .ak-cd-kotak span { font-size: 10.5px; } .ak-cd-sep { font-size: 1.2rem; margin-top: -0.8rem; }
  .akb-hero-when { font-size: 12px; }
  .ak-perks { gap: 0.3rem; } .ak-perks li { font-size: 11.5px; padding: 0.22rem 0.55rem; }
  .ak-btn { flex: 1 1 100%; min-height: 46px; font-size: 14px; }
  .ak-terdaftar { font-size: 12.5px; padding: 0.55rem 0.75rem; }
  .ak-mini { flex-wrap: wrap; gap: 0.55rem; padding: 0.75rem 0.8rem; margin-bottom: 0.6rem; border-radius: 1.1rem; }
  .ak-mini-teks b { font-size: 0.98rem; } .ak-mini-teks > span:last-child { font-size: 11.5px; }
  .ak-mini .ak-cd { flex: 1 1 100%; } .ak-mini .ak-cd-kotak { flex: 1; min-width: 0; }
  .ak-mini .ak-cd-kotak b { font-size: 1.15rem; } .ak-mini .ak-cd-kotak span { font-size: 10px; }
  .ak-intro { font-size: 13px; }
}
.adm-cek-baris { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 13.5px; color: var(--ink-2); cursor: pointer; padding: 0.3rem 0; }
.adm-cek-baris .adm-cek { flex: none; margin-top: 1px; }
/* Teaser Try Out Akbar "Segera" */
.ak-segera { background: radial-gradient(120% 90% at 100% 0%, rgba(242, 198, 109, 0.1) 0%, rgba(242, 198, 109, 0) 55%), linear-gradient(160deg, #1A2B2D 0%, #111D1F 100%); }
.ak-cd-segera .ak-cd-kotak b { color: rgba(243, 239, 230, 0.45); letter-spacing: 0.05em; }
.ak-push-tanda { margin-left: auto; flex: none; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--sand-2); color: var(--ink-2); }
.ak-push-tanda:empty { display: none; }
.ak-push-tanda.st-aktif { background: var(--ok-soft); color: var(--ok); } .ak-push-tanda.st-diblokir { background: var(--coral-soft); color: var(--coral-deep); }
.ak-pasang { flex: 1 1 100%; font-size: 12.5px; color: rgba(243, 239, 230, 0.85); padding: 0.55rem 0.75rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.07); }
.ak-pasang b { color: #F2C66D; }

/* Akun: ikon garis polos (satu warna, tanpa kotak) */
.ak-ic.polos, :root[data-theme='dark'] .ak-ic.polos { width: 26px; height: 26px; border-radius: 0; background: none; box-shadow: none; color: var(--teal-deep); }
.ak-ic.polos.bahaya { background: none; color: var(--bad); }
.ak-menu .ak-row { min-height: 56px; gap: 0.8rem; }
.ak-row.segera .ak-ic.polos { color: var(--muted); }
@media (max-width: 767px) {
  .ak-menu .ak-row { min-height: 48px; padding: 0.35rem 0.6rem; gap: 0.75rem; }
  .ak-ic.polos { width: 22px; height: 22px; } .ak-ic.polos .ic { width: 20px; height: 20px; }
  .ak-txt b { font-size: 14px; }
}
@media (max-width: 767px) { .akun .ak-hero { padding-bottom: 1rem; } .akun .ak-stats { margin: 0.5rem 0 0.6rem; } }

/* Sidebar web: ikon garis polos; aktif = latar turquoise lembut, tanpa gradien menyala */
.side-ic.polos { width: 24px; height: 24px; border-radius: 0; background: none; box-shadow: none; color: var(--muted); }
.side-ic.polos .ic { width: 20px; height: 20px; }
.side-link:hover .side-ic.polos { color: var(--ink-2); }
.side .side-link.active { color: var(--teal-deep); background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal-2); font-weight: 700; }
.side .side-link.active .side-ic.polos { color: var(--teal-deep); }
:root[data-theme='dark'] .side .side-link.active { color: #5FE1E6; background: rgba(47, 210, 218, 0.12); }
:root[data-theme='dark'] .side .side-link.active .side-ic.polos { color: #5FE1E6; }
.side-link.segera .side-ic.polos, .side-link[aria-label*='segera'] .side-ic.polos { opacity: 0.6; }
.side .side-link .side-ic.polos, .side .side-link.active .side-ic.polos, :root[data-theme='dark'] .side .side-link .side-ic.polos { background: none; box-shadow: none; border-radius: 0; }
:root[data-theme='dark'] .side .side-link .side-ic.polos { color: #8FA5A7; }
:root[data-theme='dark'] .side .side-link.active .side-ic.polos { color: #5FE1E6; }

/* ---------- Circle Pejuang (grup Telegram) ---------- */
.circle .cr-gabung { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem 1rem; padding: 1.1rem 1.2rem; }
.cr-tg { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #229ED9; color: #fff; }
.cr-txt h2 { font-size: 1.08rem; letter-spacing: -0.01em; }
.cr-txt p { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.cr-btn { white-space: nowrap; }
.cr-isi { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.cr-isi li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 0.95rem; }
.cr-isi b { display: block; font-size: 0.93rem; }
.cr-isi small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin-top: 0.15rem; }
.cr-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); }
.cr-aturan { margin-top: 0.9rem; padding: 1rem 1.2rem; }
.cr-aturan h2 { font-size: 0.98rem; }
.cr-aturan ol { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.as-slot.as-link { grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; }
.as-link .as-info { padding: 0.3rem 0.4rem; }
.as-link .as-tautan .input-wrap { min-width: 0; }
.as-link .as-info a.link { word-break: break-all; }
@media (max-width: 760px) { .cr-isi { grid-template-columns: 1fr; gap: 0.5rem; } }
@media (max-width: 640px) {
  .circle .cr-gabung { grid-template-columns: auto 1fr; padding: 0.85rem 0.9rem; gap: 0.6rem 0.75rem; }
  .cr-tg { width: 40px; height: 40px; border-radius: 12px; }
  .cr-txt h2 { font-size: 0.98rem; }
  .cr-txt p { font-size: 0.82rem; }
  .cr-btn { grid-column: 1 / -1; justify-content: center; }
  .cr-isi { margin-top: 0.6rem; }
  .cr-isi li { padding: 0.6rem 0.75rem; gap: 0.6rem; }
  .cr-ic { width: 30px; height: 30px; border-radius: 9px; }
  .cr-isi b { font-size: 0.86rem; }
  .cr-isi small { font-size: 0.76rem; }
  .cr-aturan { margin-top: 0.6rem; padding: 0.8rem 0.9rem; }
  .cr-aturan h2 { font-size: 0.9rem; }
  .cr-aturan ol { font-size: 0.8rem; gap: 0.25rem; }
}

/* ---------- Pilihan tampilan ujian (lembar Petunjuk) ---------- */
.pu-mode { border: 0; margin: 0; padding: 0; min-width: 0; }
.pu-mode legend { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 0.45rem; padding: 0; }
.pu-mode-pil { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pu-m { position: relative; }
.pu-m-pilih { display: grid; width: 100%; padding: 0; border: 2px solid var(--hair-2); border-radius: 1rem; background: var(--paper); overflow: hidden; text-align: left; cursor: pointer; color: inherit; font: inherit; transition: border-color 160ms ease, box-shadow 160ms ease; }
.pu-m-pilih:hover { border-color: color-mix(in srgb, var(--teal) 60%, var(--hair-2)); }
.pu-m.on .pu-m-pilih { border-color: var(--teal-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.pu-m-img { display: block; height: 150px; overflow: hidden; background: var(--sand-2); border-bottom: 1px solid var(--hair); }
.pu-m-img img { display: block; width: 100%; height: auto; }
.pu-m-txt { display: grid; gap: 1px; padding: 0.5rem 0.65rem 0.6rem; }
.pu-m-txt b { font-size: 13.5px; line-height: 1.25; }
.pu-m-txt small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pu-m-cek { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--hair-2); color: transparent; }
.pu-m.on .pu-m-cek { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.pu-m-zoom { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(18, 41, 43, 0.72); color: #fff; cursor: pointer; }
.pu-m-zoom::after { content: ""; position: absolute; inset: -6px; }
.pu-zoom { position: fixed; inset: 0; z-index: 95; background: rgba(9, 21, 23, 0.7); display: grid; place-items: center; padding: 1rem; }
.pu-z-box { width: min(1100px, 100%); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; gap: 0.7rem; background: var(--paper); border-radius: 1.2rem; padding: 0.9rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.pu-z-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.pu-z-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 0.8rem; align-items: start; overflow: auto; min-height: 0; }
.pu-z-img img { width: 100%; height: auto; border-radius: 0.7rem; border: 1px solid var(--hair); display: block; }
.pu-z-aksi { display: flex; justify-content: flex-end; gap: 0.5rem; }
@media (max-width: 640px) {
  .pu-m-img { height: 128px; }
  .pu-zoom { padding: 0.6rem; }
  .pu-z-box { padding: 0.7rem; }
  .pu-z-img { grid-template-columns: 1fr; }
  .pu-z-laptop { display: none !important; }
  .pu-z-aksi .btn { flex: 1; }
}

/* ---------- Tiket tryout: lembar "Buka tryout ini" & beli per tryout ---------- */
.bt-layer { z-index: 85; }
.sheet.bt {
  display: grid; gap: 1rem; padding: 1.15rem 1.25rem 1.35rem;
  max-width: 460px; max-height: calc(100dvh - 2rem); overflow-y: auto;
}
.bt-head { display: flex; align-items: center; gap: 0.75rem; }
.bt-head-tx { min-width: 0; }
.bt-eyebrow {
  margin: 0 0 0.15rem; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-deep);
}
.bt-head h2 {
  margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.022em;
  line-height: 1.22; color: var(--ink);
}
.bt-ic {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 13%, var(--paper)); color: var(--teal-deep);
}
.bt-x { margin-left: auto; align-self: flex-start; flex: none; }

.bt-pakai {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem; border-radius: 1rem;
  background: color-mix(in srgb, var(--teal) 9%, var(--paper));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--teal) 40%, transparent);
}
.bt-pakai-tx { display: grid; gap: 0.15rem; }
.bt-pakai-pill {
  justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 0.15rem;
  background: var(--teal); color: #052628; font-variant-numeric: tabular-nums;
}
.bt-pakai-tx b { font-size: 14.5px; color: var(--ink); }
.bt-pakai-tx small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.bt-pakai-btn { white-space: nowrap; }

.bt-sec {
  display: grid; gap: 0.8rem; padding: 1rem; border-radius: 1.15rem;
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair);
}
.bt-sec-h h3 {
  margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -0.012em; color: var(--ink);
}
.bt-sec-h p {
  margin: 0.2rem 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45;
}

.bt-tiers { display: grid; gap: 0.5rem; }
.bt-tier {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem;
  width: 100%; min-height: 58px; padding: 0.72rem 0.88rem; border-radius: 0.9rem;
  background: var(--sand); border: 1.5px solid transparent; text-align: left;
  cursor: pointer; color: inherit;
  transition: background-color 160ms var(--out), border-color 160ms var(--out), box-shadow 160ms var(--out);
}
.bt-tier:hover { background: var(--sand-2); }
.bt-tier.active {
  background: color-mix(in srgb, var(--teal) 7%, var(--paper));
  border-color: var(--teal);
  box-shadow: 0 2px 10px -4px color-mix(in srgb, var(--teal) 30%, transparent);
}
.bt-radio {
  width: 19px; height: 19px; border-radius: 999px; flex: none;
  border: 1.75px solid var(--muted); display: grid; place-items: center;
  transition: border-color 160ms var(--out), background-color 160ms var(--out);
}
.bt-radio::after {
  content: ''; width: 9px; height: 9px; border-radius: 999px;
  background: var(--teal-deep); transform: scale(0); transition: transform 180ms var(--spring);
}
.bt-tier.active .bt-radio { border-color: var(--teal-deep); }
.bt-tier.active .bt-radio::after { transform: scale(1); }

.bt-tier-info { display: grid; gap: 0.1rem; min-width: 0; }
.bt-tier-name {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.25;
}
.bt-tier-name b { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bt-save {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(229, 83, 61, 0.12); color: #C93B25;
}
:root[data-theme='dark'] .bt-save { background: rgba(255, 118, 96, 0.18); color: #FF9484; }
.bt-tier-sub {
  font-size: 12px; color: var(--muted); line-height: 1.3; font-variant-numeric: tabular-nums;
}

.bt-tier-price {
  display: grid; justify-items: end; gap: 0.05rem; font-variant-numeric: tabular-nums; text-align: right;
}
.bt-tier-price s { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.bt-tier-price b { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }

.bt-pay-btn { min-height: 48px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.bt-prem {
  display: grid; gap: 0.55rem; padding: 1rem 1.05rem; border-radius: 1.15rem;
  background: linear-gradient(135deg, #095C61 0%, #0E7479 100%);
  color: #FFFFFF; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(9, 92, 97, 0.55);
  transition: transform 180ms var(--out), box-shadow 180ms var(--out);
}
.bt-prem:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(9, 92, 97, 0.65); }
.bt-prem:active { transform: scale(0.99); }
.bt-prem-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.bt-prem-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 214, 102, 0.18); color: #FFE08A;
}
.bt-prem-off {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #FFFFFF;
}
.bt-prem-body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.75rem; }
.bt-prem-tx strong {
  display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.25; color: #FFFFFF;
}
.bt-prem-tx p {
  margin: 0.2rem 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(235, 248, 248, 0.84);
}
.bt-prem-price {
  display: grid; justify-items: end; gap: 0.05rem; font-variant-numeric: tabular-nums; text-align: right;
}
.bt-prem-price s { font-size: 12px; color: rgba(235, 248, 248, 0.65); line-height: 1.2; }
.bt-prem-price b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; line-height: 1.15; }

.bt-voucher {
  margin: -0.15rem 0 0; text-align: center; font-size: 12.5px; color: var(--muted);
}
.bt .plan-note, .pt-note { color: var(--muted); font-size: 12.5px; margin: 0; text-align: center; }
/* halaman Paket */
.plan-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.plan-card.premium .chip.gold { background: rgba(255, 200, 87, 0.16); color: #FFD27A; }
.plan-normal { font-size: 12.5px; color: rgba(234, 244, 244, 0.7); }
.pt-sec { margin-top: 1rem; padding: 1.2rem 1.3rem; display: grid; gap: 0.8rem; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.pt-head h2 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.pt-head .muted { font-size: 13.5px; max-width: 62ch; }
.pt-punya { flex: none; text-decoration: none; }
.pt-list { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pt-list .bt-opsi { padding: 0.8rem 0.9rem; }
.pt-bawah { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.pt-bawah .pt-note { text-align: left; }
/* Akun → Paket saya */
.ap-tk-sub { font-size: 13.5px; margin: -0.2rem 0 0.6rem; }
.ap-tk-h { font-size: 13px; margin: 0.4rem 0 0.2rem; color: var(--muted); font-weight: 700; }
.ap-tk-riwayat { margin-top: 0.5rem; font-size: 13.5px; }
.ap-tk-riwayat summary { cursor: pointer; font-weight: 700; padding: 0.4rem 0; min-height: 44px; display: flex; align-items: center; }
.ap-tk-act { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
/* Admin harga */
.adm-harga-dl { display: grid; gap: 0.4rem; margin: 0.2rem 0 0.5rem; font-size: 14px; }
.adm-harga-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 0.6rem; }
.adm-harga-dl dt { color: var(--muted); }
.adm-harga-dl dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) {
  .pt-list { grid-template-columns: 1fr; gap: 0.4rem; }
  .pt-list .bt-opsi { padding: 0.55rem 0.75rem; }
  .pt-sec { padding: 0.9rem; gap: 0.6rem; }
  .pt-head { flex-direction: column; gap: 0.4rem; }
  .pt-bawah .btn { width: 100%; }
  .pt-bawah .pt-note { text-align: center; }
  .sheet.bt { max-height: 92dvh; }
  .bt-pakai { grid-template-columns: 1fr; }
  .adm-harga-dl div { grid-template-columns: 1fr; gap: 0; }
}

/* Paket: kartu "Paket tryout" berbentuk tiket, tombol beli di tiap kartu (di atas paket belajar) */
.pt-sec { margin-top: 0; }
.pk-sub-h { font-size: 1.15rem; margin: 1.4rem 0 0.7rem; }
.tk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; padding-top: 12px; }
.tk-kartu { position: relative; display: flex; flex-direction: column; border-radius: 1.2rem; background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 14px 30px -24px rgba(10, 60, 64, 0.55); transition: transform 220ms var(--out), box-shadow 220ms var(--out); }
.tk-kartu:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--hair-2), 0 20px 36px -22px rgba(10, 60, 64, 0.5); }
.tk-kartu.unggul { box-shadow: 0 0 0 2px #0A7F87, 0 20px 40px -22px rgba(10, 127, 135, 0.55); }
.tk-atas { position: relative; display: grid; justify-items: center; gap: 0.35rem; padding: 1.1rem 0.8rem 0.9rem; border-radius: 1.2rem 1.2rem 0 0; color: var(--teal-deep); background: linear-gradient(160deg, color-mix(in srgb, var(--teal) 14%, var(--paper)), color-mix(in srgb, var(--teal) 6%, var(--paper))); }
.tk-kartu.unggul .tk-atas { color: #fff; background: linear-gradient(150deg, #0A7F87, #0B5E64); }
.tk-tiket { display: flex; height: 18px; align-items: center; }
.tk-tiket i { width: 26px; height: 17px; border-radius: 4px; border: 1.6px solid currentColor; background: var(--paper); margin-left: -12px; position: relative; transform: rotate(-8deg); box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.25); }
.tk-tiket i:first-child { margin-left: 0; }
.tk-tiket i::after { content: ""; position: absolute; top: 2px; bottom: 2px; left: 8px; border-left: 1.4px dashed currentColor; opacity: 0.7; }
.tk-kartu.unggul .tk-tiket i { background: #0B5E64; }
.tk-jml { display: flex; align-items: baseline; gap: 0.35rem; font-size: 14px; font-weight: 700; color: inherit; opacity: 0.95; }
.tk-jml b { font-size: 2.3rem; line-height: 1; letter-spacing: -0.02em; color: inherit; }
.tk-kartu:not(.unggul) .tk-jml b { color: var(--ink); }
.tk-bawah { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.85rem 0.9rem 0.95rem; border-top: 2px dashed var(--hair-2); text-align: center; }
.tk-coret { font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.tk-harga { font-size: 1.45rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tk-per { font-size: 12px; color: var(--muted); }
.tk-hemat { margin-top: 0.35rem; font-size: 11.5px; padding: 2px 9px; }
.tk-hemat.kosong { min-height: 22px; margin-bottom: 0.75rem; }
.tk-hemat { margin-bottom: 0.75rem; }
.tk-beli { margin-top: auto; width: 100%; min-height: 42px; font-size: 14px; }
.tk-kartu:not(.unggul) .tk-beli { color: var(--teal-deep); background: var(--teal-soft); box-shadow: none; }
.tk-pita { position: absolute; z-index: 2; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 800; padding: 3px 11px; border-radius: 99px; background: #B4471F; color: #fff; box-shadow: 0 4px 10px -4px rgba(180, 71, 31, 0.6); }
.pt-sec .pt-note { margin-top: 0.2rem; }
@media (max-width: 640px) {
  .tk-grid { gap: 0.45rem; }
  .tk-kartu { border-radius: 0.95rem; }
  .tk-atas { padding: 0.85rem 0.3rem 0.6rem; gap: 0.25rem; border-radius: 0.95rem 0.95rem 0 0; }
  .tk-tiket { height: 14px; } .tk-tiket i { width: 19px; height: 13px; margin-left: -9px; border-radius: 3px; } .tk-tiket i::after { left: 6px; }
  .tk-jml { font-size: 11.5px; gap: 0.2rem; } .tk-jml b { font-size: 1.6rem; }
  .tk-bawah { padding: 0.55rem 0.35rem 0.6rem; }
  .tk-coret { font-size: 11px; }
  .tk-harga { font-size: 1.02rem; }
  .tk-per { font-size: 11px; }
  .tk-hemat { font-size: 11px; padding: 1px 6px; margin-top: 0.25rem; }
  .tk-beli { margin-top: 0.5rem; min-height: 36px; font-size: 12.5px; padding: 0 0.3rem; }
  .tk-pita { font-size: 11px; padding: 1px 8px; top: -10px; }
  .pk-sub-h { margin: 1.1rem 0 0.55rem; font-size: 1.05rem; }
}


/* ---------- Latar putih bersih untuk semua halaman aplikasi (mode terang) ----------
   Permintaan pemilik (2026-11-23): latar putih seperti aplikasi ujian, tanpa gradasi & bintik. Landing & Masuk/Daftar tidak ikut.
   Identitas merek tetap lewat kartu berwarna dan tombol turquoise. Garis kartu dipertegas sedikit supaya batasnya terlihat. */
:root:not([data-theme='dark'])[data-hal^='/app'] { --sand: #FFFFFF; --hair: rgba(18, 41, 43, 0.1); --ghost-bg: #FFFFFF; --chip-bg: #F3F6F6; }
:root:not([data-theme='dark'])[data-hal^='/app'] body { background: #FFFFFF; }
:root:not([data-theme='dark'])[data-hal^='/app'] body::after,
:root:not([data-theme='dark'])[data-hal^='/app'] .bg-orbs { display: none; }
:root:not([data-theme='dark'])[data-hal^='/app'] .glass { box-shadow: 0 0 0 1px var(--hair), 0 2px 10px -6px rgba(16, 40, 42, 0.12); }
:root:not([data-theme='dark'])[data-hal^='/app'] .cari { box-shadow: 0 0 0 1px #E3E9EA, 0 1px 2px rgba(16, 40, 42, 0.04); }
:root:not([data-theme='dark'])[data-hal^='/app'] .pk-daftar .pkb { box-shadow: 0 0 0 1px #E6ECEC, 0 2px 8px -4px rgba(16, 40, 42, 0.08); }
:root:not([data-theme='dark'])[data-hal^='/app'] .pk-daftar .pkb.premium { box-shadow: 0 0 0 1px #EFD9A6, 0 2px 8px -4px rgba(120, 80, 0, 0.1); }

/* Tipografi: label di atas judul & tag banner memakai huruf biasa, bukan KAPITAL berjarak lebar (pola tipografi generik). */
.pu-sub, .sl-tag, .ts-judul-kecil, .ak-cd-label, .ak-badge, .dl-grup h4, .jl-lb-sub, .jl-hero-t p, .dl-hero-t p { text-transform: none; letter-spacing: 0; }
.pu-sub { font-size: 12.5px; font-weight: 700; }

/* Paket belajar: Gratis & Premium berdampingan di HP (ringkas) */
@media (max-width: 640px) {
  .plans-app { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .plan-card, .plan-card.premium { padding: 0.85rem 0.75rem; border-radius: 1.1rem; gap: 0.25rem; }
  .plan-name { font-size: 13px; }
  .plan-price { font-size: 1.45rem; line-height: 1.1; }
  .plan-coret { display: block; margin: 0 0 1px; font-size: 12px; }
  .plan-chips .chip { font-size: 11px; padding: 0.1rem 0.45rem; min-height: 0; }
  .plan-chips .chip .ic { width: 12px; height: 12px; }
  .plan-normal { font-size: 11px; }
  .plan-sub { font-size: 12px; line-height: 1.35; }
  .plan-card ul { margin: 0.5rem 0 0.7rem; gap: 0.35rem; font-size: 12px; line-height: 1.35; }
  .plan-card li { gap: 0.35rem; }
  .plan-card li .ic { flex: none; width: 14px; height: 14px; margin-top: 1px; }
  .plan-card .btn { min-height: 40px; font-size: 13px; padding: 0 0.5rem; }
  .plan-card .cur { font-size: 11.5px; padding: 0.2rem 0.55rem; }
  .plan-note { font-size: 11px; margin-top: 0.4rem; }
}

/* ================= Dasbor analitik admin ================= */
.adm-body { --viz-1: #16979D; --viz-1-soft: rgba(22, 151, 157, 0.1); --an-grid: #E6ECEC; --an-base: #C9D3D3; }
:root[data-theme='dark'] .adm-body { --viz-1: #1BA6AD; --viz-1-soft: rgba(27, 166, 173, 0.12); --an-grid: rgba(255, 255, 255, 0.07); --an-base: rgba(255, 255, 255, 0.2); }
.adb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.adb-bar p { font-size: 0.8125rem; }
.adb-range { display: inline-flex; gap: 2px; padding: 3px; border-radius: 0.8rem; background: var(--sand-2); }
.adb-range a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.85rem; border-radius: 0.6rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.adb-range a.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 41, 43, 0.12); }
.adb-kpi { padding: 1rem 1.1rem 0.85rem; }
.adb-kpi dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; }
.adb-tile { padding: 0.15rem 0.9rem; border-left: 1px solid var(--hair-2); min-width: 0; }
.adb-tile:first-child { border-left: 0; padding-left: 0; }
.adb-tile dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.adb-tile dd { margin: 0.25rem 0 0.1rem; font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.adb-tile dd small { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.adb-sub, .adb-delta { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.adb-delta b { font-weight: 700; color: var(--ink-2); }
.adb-delta.naik b { color: var(--ok); }
.adb-delta.turun b { color: var(--bad); }
.adb-total { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--hair); font-size: 0.8125rem; color: var(--muted); }
.adb-total b { color: var(--ink); font-weight: 700; }
.adb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0.75rem 0; }
.adb-card { padding: 1rem 1.1rem; min-width: 0; }
.adb-card header { margin-bottom: 0.6rem; }
.adb-card h3 { font-size: 0.9375rem; }
.adb-card header p { font-size: 0.75rem; margin-top: 0.1rem; }
.adb-chart { position: relative; }
.adb-plot { width: 100%; min-height: 150px; }
.adb-svg { display: block; overflow: visible; outline: none; border-radius: 6px; }
.adb-svg:focus-visible { box-shadow: 0 0 0 2px var(--viz-1); }
.adb-svg .adb-gl { stroke: var(--an-grid); stroke-width: 1; }
.adb-svg .adb-base { stroke: var(--an-base); stroke-width: 1; }
.adb-svg .adb-tick { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.adb-svg .adb-bar { fill: var(--viz-1); transition: opacity 150ms; }
.adb-svg:hover .adb-bar:not(.on), .adb-svg:focus .adb-bar:not(.on) { opacity: 0.55; }
.adb-svg .adb-line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adb-svg .adb-area { fill: var(--viz-1-soft); }
.adb-svg .adb-dot { fill: var(--viz-1); stroke: var(--paper); stroke-width: 2; }
.adb-svg .adb-cross { stroke: var(--an-base); stroke-width: 1; }
.adb-tip { position: absolute; top: -6px; left: 0; transform: translateX(var(--x, 0)); display: grid; gap: 1px; padding: 0.35rem 0.6rem; border-radius: 0.6rem; background: var(--ink); color: var(--paper); font-size: 0.75rem; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4); }
.adb-tip b { font-size: 0.8125rem; }
.adb-tip span { opacity: 0.8; }
.adb-tabel { margin-top: 0.4rem; font-size: 0.8125rem; }
.adb-tabel summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.adb-tabel table, .adb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.adb-tabel table { margin-top: 0.3rem; }
.adb-tabel td, .adb-tabel th, .adb-table td, .adb-table th { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--hair); text-align: right; }
.adb-tabel td:first-child, .adb-tabel th:first-child, .adb-table td:first-child, .adb-table th:first-child { text-align: left; padding-left: 0; }
.adb-tabel th, .adb-table th { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.adb-tabel tbody { display: block; max-height: 220px; overflow: auto; }
.adb-tabel thead, .adb-tabel tbody tr { display: table; width: 100%; table-layout: fixed; }
.adb-scroll { overflow-x: auto; }
.adb-table { font-size: 0.875rem; min-width: 420px; }
.adb-hbars { display: grid; gap: 0.55rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }
.adb-hbars li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; font-size: 0.8125rem; }
.adb-hl { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adb-ht { height: 12px; border-radius: 0 4px 4px 0; background: var(--an-grid); }
.adb-hf { display: block; height: 100%; width: var(--p, 0%); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--viz-1); }
.adb-hf[data-pct='0'] { min-width: 0; }
.adb-hv { min-width: 3.6rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.adb-hv small { color: var(--muted); font-size: 0.75rem; }
.adb-kosong { font-size: 0.8125rem; color: var(--muted); padding: 1.2rem 0; }
.adb-h2 { font-size: 1rem; margin: 1.2rem 0 0.6rem; }
@media (max-width: 1100px) { .adb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adb-kpi dl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0.9rem; } .adb-tile:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) {
  .adb-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .adb-kpi { padding: 0.85rem 0.9rem 0.7rem; }
  .adb-kpi dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0.75rem; }
  .adb-tile { padding: 0 0 0 0.7rem; }
  .adb-tile:nth-child(odd) { border-left: 0; padding-left: 0; }
  .adb-tile:nth-child(4) { border-left: 1px solid var(--hair-2); padding-left: 0.7rem; }
  .adb-tile dd { font-size: 1.25rem; }
  .adb-card { padding: 0.85rem 0.9rem; }
  .adb-hbars li { grid-template-columns: 6.2rem minmax(0, 1fr) auto; gap: 0.45rem; }
}

/* Impor naskah soal DOCX di panel admin */
.dx-act-parse { display: flex; justify-content: flex-start; margin: .25rem 0 .75rem; }
.dx-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 .85rem; }
.dx-fix-wrap { display: flex; flex-direction: column; gap: .65rem; margin: .75rem 0; }
.dx-fix-wrap h4 { margin: 0; font-size: .92rem; color: var(--coral-ink, #a8351f); }
.dx-fix { padding: .85rem 1rem; border-radius: 1rem; border: 1px solid rgba(255, 107, 87, .35); background: rgba(255, 107, 87, .06); display: flex; flex-direction: column; gap: .45rem; }
.dx-fix-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dx-err { margin: 0; font-size: .82rem; color: var(--coral-ink, #a8351f); font-weight: 600; }
.dx-stem { margin: 0; font-size: .86rem; color: var(--ink); opacity: .88; }
.dx-tkp { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.dx-tkp label { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 600; }
.dx-tkp input { width: 100%; text-align: center; padding: .4rem .25rem; border-radius: .6rem; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; }
.dx-det { margin: .6rem 0; border: 1px solid var(--line); border-radius: 1rem; padding: .6rem .85rem; }
.dx-det summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.dx-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: .45rem; margin-top: .65rem; }
.dx-row { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem .65rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--card); }
.dx-row.bad { border-color: rgba(255, 107, 87, .45); background: rgba(255, 107, 87, .05); }
.dx-no { min-width: 1.7rem; height: 1.7rem; border-radius: 99px; background: var(--tint); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.dx-thumb { width: 56px; height: 42px; object-fit: contain; border-radius: .4rem; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.dx-body { min-width: 0; flex: 1; }
.dx-meta { font-size: .78rem; color: var(--muted); margin-bottom: .15rem; }
.dx-body p { margin: 0; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-opt { margin: .85rem 0 .25rem; display: flex; flex-direction: column; gap: .65rem; }
.dx-paket-box { padding: .85rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--tint); }

/* Banner Sorotan dengan gambar latar (subjek di kanan, teks tetap terbaca di kiri, ikut nada warna) */
.slide.slide-bg { --bg1: #065D68; --bg2: #0A7B86; --bg3: #29C4CE; --scrim: 6, 93, 104; background: linear-gradient(95deg, var(--bg1) 0%, var(--bg2) 52%, var(--bg3) 100%); color: #FFFFFF; }
.slide.slide-bg[data-tone='sun'] { --bg1: #964F00; --bg2: #C77200; --bg3: #F5A623; --scrim: 140, 72, 0; color: #FFFFFF; }
.slide.slide-bg[data-tone='coral'] { --bg1: #A4301B; --bg2: #CF4930; --bg3: #FF6B57; --scrim: 156, 42, 22; color: #FFFFFF; }
.slide.slide-bg[data-tone='night'] { --bg1: #0C1F22; --bg2: #153D42; --bg3: #1F6269; --scrim: 12, 31, 34; color: #FFFFFF; }
.slide.slide-bg .sl-bg { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: auto; height: 100%; max-width: none; object-fit: cover; object-position: right top; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.slide.slide-bg::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(92deg, rgba(var(--scrim), 0.78) 0%, rgba(var(--scrim), 0.42) 38%, rgba(var(--scrim), 0) 56%); }
.slide.slide-bg .sl-body { max-width: 26rem; }
@media (max-width: 640px) {
  .slide.slide-bg .sl-bg { left: 0; width: 100%; object-position: 82% top; -webkit-mask-image: none; mask-image: none; }
  .slide.slide-bg::after { background: linear-gradient(92deg, rgba(var(--scrim), 0.72) 0%, rgba(var(--scrim), 0.42) 44%, rgba(var(--scrim), 0) 62%); }
  .slide.slide-bg .sl-body { max-width: 60%; }
}

/* Halaman Info CPNS (/app/info-cpns) — selaras dengan hero .ak-hero & sistem desain Cipta CPNS */
.icp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.icp-hero { position: relative; overflow: hidden; padding: 1.55rem 1.5rem 3.4rem; border-radius: var(--r-xl); color: #FFFFFF; background: linear-gradient(135deg, #0A6A6F 0%, #0E8F97 58%, #1BB5BE 100%); box-shadow: 0 20px 38px -24px rgba(10, 106, 111, 0.75); display: grid; gap: 1rem; }
.icp-hero-top { display: grid; gap: 0.4rem; max-width: 60ch; }
.icp-doc { margin: 0; font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); font-variant-numeric: tabular-nums; }
.icp-hero h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; color: #FFFFFF; text-wrap: balance; }
.icp-hero-sub { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); text-wrap: pretty; }
.icp-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.icp-ext { display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38); color: #FFFFFF; font-size: 0.8125rem; font-weight: 700; transition: background-color 200ms var(--out); }
.icp-ext:hover { background: rgba(255, 255, 255, 0.28); }

.icp-strip { position: relative; z-index: 1; margin: -2.4rem 0.9rem 0.2rem; padding: 0.95rem 0.65rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border-radius: var(--r-lg); }
.icp-strip div { display: grid; gap: 0.1rem; padding: 0 0.35rem; }
.icp-strip div + div { box-shadow: -1px 0 0 var(--hair); }
.icp-strip dt { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.icp-strip dd { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.icp-strip span { font-size: 0.78rem; color: var(--ink-2); line-height: 1.35; }

.icp-nav { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; padding: 0.2rem 0.1rem; -webkit-overflow-scrolling: touch; }
.icp-nav::-webkit-scrollbar { display: none; }
.icp-tab { flex: none; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 180ms var(--out), color 180ms var(--out), border-color 180ms var(--out); }
.icp-tab:hover { border-color: var(--teal); color: var(--ink); }
.icp-tab.on { background: var(--night); border-color: var(--night); color: var(--night-text); font-weight: 700; }

.icp-pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.95rem; min-width: 0; }
.icp-card { padding: 1.3rem 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.icp-card-hd { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; }
.icp-card-hd h2 { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.015em; text-wrap: balance; }
.icp-card-hd p { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--muted); }

.icp-kisi { list-style: none; padding: 0; margin: 0; display: grid; }
.icp-kisi li { padding: 0.85rem 0; border-top: 1px solid var(--hair); display: grid; gap: 0.3rem; }
.icp-kisi li:first-child { border-top: 0; padding-top: 0; }
.icp-kisi li:last-child { padding-bottom: 0; }
.icp-kisi-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.icp-kisi-top b { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.icp-kisi p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); max-width: 68ch; text-wrap: pretty; }

.icp-pg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.icp-pg-item { padding: 1rem 1.05rem; border-radius: var(--r-md); background: var(--sand-2); border: 1px solid var(--hair); display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.icp-pg-item h3 { margin: 0; font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.icp-pg-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.icp-pg-pills span { padding: 0.25rem 0.6rem; border-radius: 0.55rem; background: var(--paper); border: 1px solid var(--hair-2); font-size: 0.8125rem; font-weight: 700; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.icp-pg-pills b { color: var(--muted); font-weight: 600; margin-right: 0.15rem; }
.icp-pg-item p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }

.icp-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; align-items: end; }
.icp-span { grid-column: 1 / -1; }
.icp-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; min-width: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.icp-field input, .icp-field select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: 0.6rem 0.85rem; border-radius: var(--r-sm); border: 1px solid var(--hair-2); background: var(--field-bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.icp-field select { text-overflow: ellipsis; }
.icp-calc-act { grid-column: 1 / -1; }
.icp-res { padding: 1rem 1.15rem; border-radius: var(--r-md); display: grid; gap: 0.3rem; font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
.icp-res.ok { background: var(--ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ink); }
.icp-res.ok b { color: var(--ok); }
.icp-res.no { background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 25%, transparent); color: var(--ink); }
.icp-res.no b { color: var(--bad); }

.icp-tl { list-style: none; padding: 0; margin: 0; display: grid; }
.icp-tl li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.75rem; padding-bottom: 1.1rem; }
.icp-tl li:last-child { padding-bottom: 0; }
.icp-tl li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--hair-2); }
.icp-tl-dot { width: 12px; height: 12px; margin: 4px 0 0 4px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--teal-deep); }
.icp-tl li.on .icp-tl-dot { background: var(--coral); border-color: var(--coral); }
.icp-tl-body { display: grid; gap: 0.15rem; }
.icp-tl-tgl { font-size: 0.8125rem; font-weight: 700; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.icp-tl li.on .icp-tl-tgl { color: var(--coral-deep); }
.icp-tl-body b { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.icp-tl-body p { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

.icp-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.icp-bars li { display: grid; gap: 0.3rem; }
.icp-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.875rem; }
.icp-bar-top span { color: var(--ink); font-weight: 600; line-height: 1.35; }
.icp-bar-top b { flex: none; color: var(--teal-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.icp-prog { width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--sand-2); overflow: hidden; appearance: none; }
.icp-prog::-webkit-progress-bar { background: var(--sand-2); border-radius: 999px; }
.icp-prog::-webkit-progress-value { background: var(--teal-deep); border-radius: 999px; }
.icp-prog::-moz-progress-bar { background: var(--teal-deep); border-radius: 999px; }

.icp-rules { list-style: none; padding: 0; margin: 0; display: grid; }
.icp-rules li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0.8rem; padding: 0.95rem 0; border-top: 1px solid var(--hair); align-items: start; }
.icp-rules li:first-child { border-top: 0; padding-top: 0; }
.icp-rules li:last-child { padding-bottom: 0; }
.icp-num { font-size: 1rem; font-weight: 800; color: var(--teal-deep); font-variant-numeric: tabular-nums; line-height: 1.35; }
.icp-rules b { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.icp-rules p { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.icp-cta { padding: 1.35rem 1.45rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.icp-cta h2 { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.015em; }
.icp-cta p { margin: 0; font-size: 0.875rem; color: var(--ink-2); max-width: 52ch; line-height: 1.5; }
.icp-cta-act { display: flex; flex-wrap: wrap; gap: 0.55rem; }

@media (max-width: 720px) {
  .icp-hero { padding: 1.25rem 1.15rem 2.85rem; border-radius: 1.45rem; }
  .icp-strip { margin: -2.1rem 0.55rem 0.1rem; padding: 0.75rem 0.35rem; }
  .icp-strip dd { font-size: 1.15rem; }
  .icp-strip span { font-size: 0.72rem; }
  .icp-card { padding: 1.1rem 1.05rem; }
  .icp-pg-grid, .icp-calc { grid-template-columns: minmax(0, 1fr); }
  .icp-cta-act { width: 100%; }
  .icp-cta-act .btn { flex: 1; justify-content: center; }
}

/* ================= Transaksi saya (responsif, lega di HP) ================= */
.trx-sec { padding: 0.35rem 1.25rem; }
.trx-list { list-style: none; padding: 0; margin: 0; }
.trx-item { display: grid; gap: 0.65rem; padding: 1rem 0; border-top: 1px solid var(--hair); }
.trx-item:first-child { border-top: 0; }
.trx-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.trx-title { display: grid; gap: 0.2rem; min-width: 0; }
.trx-title b { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.trx-meta { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
.trx-harga { flex: none; font-size: 1rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.55rem 0.75rem; }
.trx-ref { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trx-go { min-height: 44px; padding: 0 1.05rem; font-size: 0.875rem; }
@media (max-width: 540px) {
  .trx-sec { padding: 0.25rem 1rem; }
  .trx-foot { flex-direction: column; align-items: stretch; }
  .trx-foot .chip { align-self: flex-start; }
  .trx-go { width: 100%; justify-content: center; }
}

/* ================= Pembayaran native (selaras dengan .sheet & sistem desain Cipta CPNS) ================= */
.byr-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.85rem 1rem; padding: 1.05rem 1.25rem; margin-bottom: 1rem; background: var(--coral-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral-deep) 22%, transparent); }
.byr-banner.byr-err { background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 22%, transparent); }
.byr-banner-info { display: grid; gap: 0.2rem; }
.byr-banner-info .chip { justify-self: start; }
.byr-banner-info b { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.byr-banner-info span:last-child { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.byr-wrap { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 1rem; }
.byr-wrap[hidden] { display: none; }
.byr-backdrop { position: fixed; inset: 0; background: rgba(9, 21, 23, 0.48); }
.byr-dialog { position: relative; z-index: 1; width: min(520px, 100%); max-height: min(90dvh, 760px); display: flex; flex-direction: column; padding: 0; border-radius: var(--r-xl); background: var(--paper); overflow: hidden; outline: none; }
.byr-dialog:focus-visible { box-shadow: 0 0 0 2px var(--teal-deep), var(--shadow-float); }
.byr-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 1.2rem 1.35rem 0.95rem; border-bottom: 1px solid var(--hair); }
.byr-kicker { margin: 0 0 0.2rem; font-size: 0.8125rem; font-weight: 600; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.byr-hd h2 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.byr-x { width: 44px; height: 44px; flex: none; margin: -0.35rem -0.35rem 0 0; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color 240ms var(--spring), color 240ms var(--spring); }
.byr-x:hover { background: var(--hair); color: var(--ink); }

.byr-ringkas { display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; padding: 0.95rem 1.35rem; background: var(--teal-soft); border-bottom: 1px solid var(--hair); }
.byr-ringkas b { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.byr-ringkas span { display: block; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; margin-top: 0.1rem; }
.byr-ringkas-harga { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.byr-ringkas-harga s { display: block; font-size: 0.8125rem; color: var(--muted); }
.byr-ringkas-harga strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--teal-deep); }

.byr-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.35rem; display: grid; gap: 0.85rem; }
.byr-grup-t { margin: 0.2rem 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.byr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.byr-opt { display: flex; align-items: center; gap: 0.65rem; min-height: 52px; padding: 0.55rem 0.75rem; border-radius: var(--r-md); border: 1.5px solid var(--hair-2); background: var(--paper); color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: border-color 180ms var(--out), background-color 180ms var(--out); }
.byr-opt:hover { border-color: var(--teal); }
.byr-opt.on { border-color: var(--teal-deep); background: var(--teal-soft); }
.byr-opt.wide { grid-column: 1 / -1; }
.byr-qris-box { display: grid; justify-items: center; gap: 0.75rem; padding: 1.2rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--hair-2); text-align: center; }
.byr-qris-t { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.byr-qris-img { width: 224px; height: 224px; display: block; border-radius: var(--r-sm); border: 1px solid var(--hair-2); background: #fff; padding: 6px; }
.byr-badge { flex: none; padding: 0.25rem 0.55rem; border-radius: 0.45rem; background: var(--teal-deep); color: #fff; font-size: 0.8125rem; font-weight: 700; }
.byr-badge.lg { padding: 0.35rem 0.65rem; }
.byr-logo { flex: none; width: 74px; height: 30px; padding: 4px 7px; border-radius: 0.5rem; background: #fff; border: 1px solid var(--hair-2); display: block; object-fit: contain; }
.byr-logo.lg { width: 88px; height: 36px; padding: 5px 8px; }
.byr-opt-nama { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.byr-radio { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--hair-2); }
.byr-opt.on .byr-radio { border-color: var(--teal-deep); box-shadow: inset 0 0 0 3px var(--paper); background: var(--teal-deep); }

.byr-ft { padding: 1rem 1.35rem calc(1.15rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); display: grid; gap: 0.7rem; background: var(--paper); }
.byr-ft-split { grid-template-columns: 1fr 1.35fr; }
.byr-aman { margin: 0; display: flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

.byr-meta-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.byr-meta-row > div { flex: 1; min-width: 140px; }
.byr-meta-row b { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.byr-meta-row > div span { font-size: 0.8125rem; color: var(--muted); }
.byr-timer { font-variant-numeric: tabular-nums; white-space: nowrap; }

.byr-kode-box { padding: 0.95rem 1.05rem; border-radius: var(--r-md); background: var(--sand-2); border: 1px solid var(--hair); display: grid; gap: 0.35rem; }
.byr-lbl { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.byr-kode-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.byr-kode { font-family: var(--font); font-size: 1.3125rem; font-weight: 800; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.byr-total { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.byr-salin { min-height: 44px; padding: 0 1rem; font-size: 0.875rem; flex: none; }

.byr-panduan { display: grid; gap: 0.5rem; }
.byr-det { border: 1px solid var(--hair-2); border-radius: var(--r-sm); background: var(--paper); padding: 0.7rem 0.95rem; }
.byr-det summary { font-size: 0.875rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.byr-det summary::after { content: "+"; font-size: 1.1rem; color: var(--muted); }
.byr-det[open] summary::after { content: "−"; }
.byr-det ol { margin: 0.6rem 0 0.15rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.byr-lunas { padding: 1.75rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom)); text-align: center; align-items: center; gap: 0.65rem; }
.byr-lunas-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.byr-lunas h2 { margin: 0.25rem 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.byr-lunas p { margin: 0; font-size: 0.9375rem; line-height: 1.5; max-width: 38ch; }
.byr-ref-kecil { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.byr-lunas-act { width: 100%; display: grid; gap: 0.55rem; margin-top: 0.65rem; }

@media (max-width: 640px) {
  .byr-wrap { padding: 0; align-items: end; }
  .byr-dialog { width: 100%; max-height: 92dvh; border-radius: 1.9rem 1.9rem 0 0; }
  .byr-dialog .sheet-grip { display: block; margin: 0.65rem auto 0; }
  .byr-hd { padding: 0.85rem 1.15rem 0.85rem; }
  .byr-ringkas, .byr-body { padding-left: 1.15rem; padding-right: 1.15rem; }
  .byr-ft { padding-left: 1.15rem; padding-right: 1.15rem; }
  .byr-grid { grid-template-columns: 1fr; }
  .byr-kode { font-size: 1.125rem; }
  .byr-ft-split { grid-template-columns: 1fr; }
}

/* ================= Coret Soal (kanvas cakaran langsung di atas soal) ================= */
.crt-host { position: relative; }
.crt-host.crt-aktif { box-shadow: 0 0 0 2px var(--teal-deep), var(--shadow-soft); }
.crt-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; border-radius: inherit; }
.crt-cv.on { pointer-events: auto; touch-action: none; cursor: crosshair; }

.crt-dock { position: fixed; z-index: 120; right: 1.25rem; bottom: 1.5rem; display: flex; justify-content: flex-end; pointer-events: none; }
.crt-dock > * { pointer-events: auto; }
.crt-fab { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 0.875rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-float); transition: transform 180ms var(--out), border-color 180ms var(--out); }
.crt-fab:hover { border-color: var(--teal-deep); transform: translateY(-1px); }
.crt-fab.has::after { content: ""; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.crt-bar { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.45rem 0.35rem 0.65rem; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--paper); box-shadow: var(--shadow-float); }
.crt-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; position: relative; transition: transform 150ms var(--out); }
.crt-sw::after { content: ""; position: absolute; inset: -8px; } /* area sentuh 44px */
.crt-sw.crt-coral { background: #E5533D; }
.crt-sw.crt-teal { background: #0A7F87; }
.crt-sw.crt-ink { background: var(--ink); }
.crt-sw.on { border-color: var(--paper); box-shadow: 0 0 0 2px var(--teal-deep); transform: scale(1.08); }
.crt-sep { width: 1px; height: 22px; background: var(--hair-2); margin: 0 0.15rem; }
.crt-ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.crt-ic:hover:not(:disabled) { background: var(--sand-2); color: var(--ink); }
.crt-ic.on { background: var(--teal-soft); color: var(--teal-deep); }
.crt-ic:disabled { opacity: 0.35; cursor: not-allowed; }
.crt-done { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.9rem; border-radius: 999px; border: 0; background: var(--night); color: var(--night-text); font-family: var(--font); font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.crt-done:hover { opacity: 0.92; }

@media (max-width: 767px) {
  .crt-dock { right: 0.9rem; bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .crt-dock.on { left: 0.75rem; right: 0.75rem; justify-content: center; }
  .crt-bar { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}

/* ---------- Freemium: kuota Drilling, contoh gratis Bank Materi, & kunci analisis Laporan ---------- */
.kl-quota {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap;
  padding: 0.78rem 1rem; border-radius: 1rem; margin-bottom: 0.9rem;
  background: var(--paper); border: 1px solid var(--hair);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.kl-quota-tx { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.kl-quota-tx b { color: var(--ink); font-weight: 700; }
.kl-quota-dot {
  width: 8px; height: 8px; border-radius: 999px; flex: none;
  background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
.kl-quota-cta {
  flex: none; font-size: 13px; font-weight: 700; color: var(--teal-deep);
  text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--teal-soft); transition: background-color 160ms var(--out), color 160ms var(--out);
}
.kl-quota-cta:hover { background: var(--teal); color: #052628; }
.kl-quota.habis {
  background: color-mix(in srgb, var(--coral) 7%, var(--paper));
  border-color: color-mix(in srgb, var(--coral) 28%, var(--hair));
}
.kl-quota.habis .kl-quota-dot { background: var(--coral); box-shadow: 0 0 0 3px rgba(229, 83, 61, 0.16); }
.kl-quota.habis .kl-quota-cta { background: var(--night); color: var(--night-text); }

.dr-pill.locked {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  color: var(--muted); background: var(--sand); border-style: dashed; opacity: 0.82;
}
.dr-pill.locked:hover { opacity: 1; border-color: var(--teal); color: var(--ink-2); }

.mg-free {
  position: absolute; top: 0.85rem; right: 0.85rem;
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.01em;
  background: var(--teal-soft); color: var(--teal-deep);
}
.mg-lock.inline {
  position: static; display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; flex: none;
  background: color-mix(in srgb, var(--coral) 11%, var(--paper)); color: #B83A25;
}
:root[data-theme='dark'] .mg-lock.inline { background: rgba(255, 118, 96, 0.16); color: #FF9A8A; }
.unduh-btn.is-locked { opacity: 0.82; }
.unduh-btn.is-locked:hover { opacity: 1; }

.an-lock-wrap {
  position: relative; margin-top: 0.5rem; border-radius: 0.9rem; overflow: hidden;
  min-height: 230px; display: grid; place-items: center;
}
.an-lock-blur {
  width: 100%; filter: blur(5.5px); opacity: 0.48; pointer-events: none; user-select: none;
}
.an-lock-card {
  position: absolute; z-index: 2; width: min(360px, calc(100% - 1.5rem));
  display: grid; justify-items: center; text-align: center; gap: 0.45rem;
  padding: 1.35rem 1.25rem; border-radius: 1.15rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hair); box-shadow: var(--shadow-float);
}
.an-lock-ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-deep); margin-bottom: 0.15rem;
}
.an-lock-card h4 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.an-lock-card p { margin: 0 0 0.4rem; font-size: 13px; color: var(--ink-2); line-height: 1.48; }
.an-lock-card p b { color: var(--ink); font-weight: 700; }
.an-lock-card .btn { min-height: 44px; padding: 0 1.25rem; font-size: 14px; }

.an-lock-row {
  display: flex; align-items: center; gap: 0.55rem; margin-top: 0.65rem;
  padding: 0.68rem 0.85rem; border-radius: 0.85rem; text-decoration: none;
  background: var(--sand); border: 1px solid var(--hair); color: var(--ink-2);
  font-size: 13px; transition: border-color 160ms var(--out), background-color 160ms var(--out);
}
.an-lock-row b { color: var(--ink); font-weight: 600; }
.an-lock-row > span:last-child { margin-left: auto; color: var(--muted); }
.an-lock-row:hover { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, var(--paper)); }

@media (max-width: 640px) {
  .kl-quota { padding: 0.72rem 0.85rem; font-size: 13px; }
  .kl-quota-cta { width: 100%; text-align: center; padding: 0.5rem 0.75rem; }
}

.icp-instansi { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.icp-inst {
  display: inline-flex; align-items: center; padding: 0.38rem 0.78rem; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--sand); border: 1px solid var(--hair);
}
.icp-inst-note { margin: 0.85rem 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ================= Halaman modul: video + materi jadi satu ================= */
.mb-kepala { margin-bottom: 0.9rem; }
.mb-kepala .greet-date { margin-bottom: 0.5rem; }
.mb-kat { margin-bottom: 0.45rem; }
.mb-kepala h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; }
.mb-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.mb-meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.mb-meta .ok { color: var(--ok); font-weight: 600; }
.mb-video { margin-bottom: 0.9rem; }
.mb-vframe { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #0B2B2E; box-shadow: 0 0 0 1px var(--hair-2), 0 12px 30px -16px rgba(18, 41, 43, 0.35); }
.mb-vframe video, .mb-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0B2B2E; }
.mb-vnote { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.45rem; font-size: 0.8125rem; color: var(--muted); }
.mb-intinya h2 { display: flex; align-items: center; gap: 0.4rem; }
.mb-intinya ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.35rem; }
.mb-intinya li { font-weight: 600; line-height: 1.4; }
.mb-intinya li::marker { color: var(--teal-deep); }
.mb-acc { display: grid; gap: 0.45rem; }
.mb-acc-i { border-radius: 0.9rem; background: var(--sand-2); }
.mb-acc-i summary { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.55rem 0.75rem; cursor: pointer; list-style: none; }
.mb-acc-i summary::-webkit-details-marker { display: none; }
.mb-acc-i summary b { flex: 1; font-size: 0.9375rem; line-height: 1.3; }
.mb-acc-no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-deep); font-size: 0.8125rem; font-weight: 800; }
.mb-acc-ic { flex: none; color: var(--muted); transition: transform 250ms var(--spring); }
.mb-acc-i[open] .mb-acc-ic { transform: rotate(180deg); }
.mb-acc-isi { padding: 0 0.85rem 0.85rem 2.6rem; }
.mb-acc-isi p { color: var(--ink-2); line-height: 1.6; max-width: 68ch; }
.vd-gratis { position: absolute; right: 0.6rem; top: 0.6rem; background: #FFFFFF; color: #0A6A6F; font-weight: 700; }
@media (max-width: 640px) {
  .mb-kepala h1 { font-size: 1.25rem; }
  .mb-video { margin-left: -0.25rem; margin-right: -0.25rem; }
  .mb-vframe { border-radius: 0.8rem; }
  .mb-acc-isi { padding-left: 0.85rem; }
  .mb-acc-isi p, .mb-lead p { font-size: 0.9375rem; line-height: 1.55; }
}

/* ---------- Alur Belajar ---------- */
.pk-tabs.al-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); margin-bottom: 0.8rem; }
.pk-tabs.al-tabs a { gap: 0.4rem; }
.pk-tabs.al-tabs a span { font-size: 0.75rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.al-pill { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.4rem 0.8rem; padding: 0.8rem 1rem; border-radius: 1.1rem; margin-bottom: 0.7rem; }
.al-pill-txt b { display: block; font-size: 0.9375rem; }
.al-pill-txt small { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.al-pill-pct { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--teal-deep); }
.al-pill-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.al-pill-bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: var(--teal-2); transition: width 600ms var(--spring); }
.al-lanjut { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; border-radius: 1.1rem; margin-bottom: 1.1rem; background: var(--night); color: var(--night-text); transition: transform 300ms var(--spring); }
.al-lanjut:hover { transform: translateY(-2px); }
.al-lanjut small { display: block; font-size: 0.75rem; color: var(--night-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-lanjut b { display: block; font-size: 0.9375rem; line-height: 1.3; }
.al-lanjut-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--coral); color: #2B0D07; }
.al-tuntas { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 1rem; margin-bottom: 1rem; background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; font-size: 0.875rem; }
.al-modul { margin-bottom: 1.3rem; }
.al-modul-head { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; margin-bottom: 0.55rem; }
.al-modul-head small { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.al-modul-head h2 { font-size: 1.0625rem; line-height: 1.25; }
.al-modul-head p { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; }
.al-ring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal-2) var(--p, 0%), var(--sand-2) 0); }
.al-ring b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.al-bab-list { list-style: none; margin: 0; padding: 0; position: relative; }
.al-bab-list::before { content: ''; position: absolute; left: 23px; top: 18px; bottom: 18px; width: 2px; background: var(--hair-2); }
.al-bab { position: relative; }
.al-bab-btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; padding: 0.45rem 0.5rem 0.45rem 0.25rem; min-height: 52px; border-radius: 0.9rem; text-align: start; transition: background-color 300ms var(--spring); }
.al-bab-btn:hover { background: var(--hair); }
.al-node { position: relative; z-index: 1; width: 38px; height: 38px; margin-left: 5px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: 0 0 0 2px var(--hair-2); font-size: 0.6875rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.al-bab.jalan .al-node { box-shadow: 0 0 0 2px var(--teal-2), 0 0 0 6px var(--teal-soft); color: var(--teal-deep); }
.al-bab.tuntas .al-node { background: var(--teal-2); box-shadow: none; color: var(--teal-ink); }
.al-bab.kunci .al-node { background: var(--sand-2); box-shadow: none; }
.al-bab-txt b { display: block; font-size: 0.9375rem; line-height: 1.3; }
.al-bab-txt small { display: block; font-size: 0.75rem; color: var(--muted); }
.al-bab.kunci .al-bab-txt b { color: var(--ink-2); }
.al-caret { color: var(--muted); transition: transform 300ms var(--spring); }
.al-bab-btn[aria-expanded='true'] .al-caret { transform: rotate(180deg); }
.al-lessons { list-style: none; margin: 0.15rem 0 0.5rem 3.4rem; padding: 0.3rem; border-radius: 0.9rem; background: var(--glass); box-shadow: 0 0 0 1px var(--hair); }
.al-lesson { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: center; min-height: 44px; padding: 0.4rem 0.55rem; border-radius: 0.7rem; transition: background-color 300ms var(--spring); }
.al-lesson:hover { background: var(--hair); }
.al-l-ic { color: var(--teal-deep); display: inline-flex; }
.al-lesson.done .al-l-ic { color: var(--ok); }
.al-l-txt { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.al-l-txt small { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--muted); }
.al-lesson.done .al-l-txt { color: var(--ink-2); }
.al-note { font-size: 0.8125rem; margin: 0.4rem 0 1rem; }
.al-posisi { position: fixed; right: 1rem; bottom: calc(5.4rem + env(safe-area-inset-bottom)); z-index: 30; min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.8125rem; box-shadow: var(--shadow-float); }
@media (min-width: 900px) { .al-posisi { bottom: 1.5rem; } }
.al-posisi[hidden] { display: none; }
/* lesson */
.al-ls-head { margin-bottom: 0.9rem; }
.al-ls-top { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem; }
.al-ls-top .greet-date { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-back { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair-2); transition: background-color 300ms var(--spring), transform 300ms var(--spring); }
.al-back:hover { background: var(--hair); }
.al-back:active { transform: scale(0.94); }
.al-ls-bab { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }
.al-ls-bab b { color: var(--teal-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-ls-head .al-pill-bar { margin-bottom: 0.8rem; }
.al-ls-head h1 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; }
.al-bagian p { font-size: 1rem; line-height: 1.65; max-width: 68ch; }
.al-bagian p + p { margin-top: 0.7rem; }
.al-bagian .q-fig { margin-top: 0.8rem; max-width: 560px; }
.al-skor { margin-left: auto; flex: none; min-width: 1.6rem; padding: 0.05rem 0.4rem; border-radius: 99px; background: var(--sand-2); font-size: 0.75rem; font-weight: 700; text-align: center; }
.al-hasil { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; border-radius: 1.1rem; margin-bottom: 1rem; }
.al-hasil-n { font-size: 1.75rem; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.al-ls-end { margin-top: 1.2rem; padding: 0.9rem 1rem; border-radius: 1.2rem; }
.al-ls-end > .muted { font-size: 0.8125rem; margin-bottom: 0.6rem; }
.al-ls-act { display: flex; justify-content: space-between; gap: 0.6rem; }
.al-ls-act .btn:last-child { flex: 1; max-width: 320px; margin-left: auto; }
.al-ls-next { font-size: 0.75rem; margin-top: 0.5rem; text-align: end; }
@media (max-width: 640px) {
  .al-modul-head { gap: 0.65rem; }
  .al-ring { width: 42px; height: 42px; }
  .al-ring b { width: 33px; height: 33px; font-size: 0.625rem; }
  .al-modul-head p { display: none; }
  .al-lessons { margin-left: 2.9rem; }
  .al-bagian p { font-size: 0.9375rem; line-height: 1.55; }
  .al-ls-act .btn:last-child { max-width: none; }
}
