/* Hafaluma UI v3. Lapisan penyelaras, dimuat sesudah style.css dan learning-paths.css.
   Isi: satu nilai warna/teks/gerak, ikon baru, keadaan fokus dan tekan yang seragam.
   Sumber nilai: sistem desain Hafaluma (tokens.json). Hapus berkas ini untuk kembali ke tampilan lama. */

:root {
  /* satu hijau, sama dengan simbol Hafaluma */
  --primary: #075c42;
  --primary-dark: #043d2c;
  --primary-soft: #e1eee4;
  --status-mumtaz: #075c42;
  --approved-text: #075c42;
  --icon-active: #075c42;
  /* teks dan ikon yang lolos kontras (teks 4,5:1, ikon 3:1) */
  --text-muted: #5a6b5f;
  --text-light: #5f7165;
  --icon-inactive: #76867b;
  --border: #e4e7da;
  /* gerak lembut, satu kurva */
  --t-fast: 0.14s cubic-bezier(0.2, 0, 0, 1);
  --t: 0.22s cubic-bezier(0.2, 0, 0, 1);
  --t-slow: 0.32s cubic-bezier(0.2, 0, 0, 1);
  --hf-press: 0.97;
}

/* ---------- Ikon ---------- */
.hf-icon { vertical-align: middle; }
.hf-icon--fill { display: none; }
.tabbar-btn .hf-icon--fill, .hf-admin-mobile-nav .hf-icon--fill, .hf-workspace-nav .hf-icon--fill { display: none; }
.tabbar-btn.active .hf-icon--line, .hf-admin-mobile-nav [aria-current=page] .hf-icon--line { display: none; }
.tabbar-btn.active .hf-icon--fill, .hf-admin-mobile-nav [aria-current=page] .hf-icon--fill { display: block; }
.tabbar-btn.active svg { transform: none; }
.tabbar-btn svg { transition: color var(--t-fast); }
.tabbar-btn { transition: background-color var(--t-fast), transform 90ms cubic-bezier(0.2, 0, 0, 1); }
.hf-mobile-tabbar .tabbar-btn:not(.active) { color: var(--text-muted); }
.tabbar-btn.active { background: var(--primary-soft); }
.tabbar-btn.active > span:not(.tab-icon) { color: var(--primary); font-weight: 700; }

/* ---------- Fokus yang selalu terlihat ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Tekan yang terasa, tanpa menggeser tata letak ---------- */
:where(.btn-primary, .btn-secondary, .btn-danger, .btn-add, .quick-action-btn, .dropdown-item, .profile-menu-item,
  .hf-admin-button, .fab-action, .fab, .btn-manage-btn, .modal-close, .hf-admin-icon-button):active {
  transform: scale(var(--hf-press));
}
:where(.btn-primary, .btn-secondary, .btn-danger, .btn-add, .quick-action-btn, .dropdown-item, .profile-menu-item,
  .hf-admin-button, .fab-action, .fab, .btn-manage-btn, .modal-close, .hf-admin-icon-button) {
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform 90ms cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :where(.btn-primary, .btn-secondary, .btn-danger, .btn-add, .quick-action-btn, .dropdown-item, .profile-menu-item,
    .hf-admin-button, .fab-action, .fab, .btn-manage-btn, .modal-close, .hf-admin-icon-button, .tabbar-btn):active { transform: none; }
}

/* ============================================================
   DESAIN v7 (ronde 3) — bahasa visual: Inter, hijau profesional, kaca ala iOS
   Hanya lapisan visual: tidak mengubah markup logika, data, atau perilaku.
   Selektor diawali "html body" agar menang atas aturan lama di style.css.
   ROLLBACK: hapus seluruh blok "DESAIN v7" ini (sampai akhir berkas) lalu rilis ulang.
   ============================================================ */

/* ---------- Latar halaman: mesh hijau-krem lembut ---------- */
body:not(.login-page) {
  background:
    radial-gradient(circle at 15% 0%, #DDEFE3 0, transparent 45%),
    radial-gradient(circle at 100% 30%, #F6EBC9 0, transparent 40%),
    #F7F5EC;
  background-attachment: fixed;
}

/* ---------- Kaca: header dan tab bawah ---------- */
html body .topbar {
  background: rgba(255, 255, 255, .62) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .75) !important;
}
html body .tabbar {
  background: rgba(255, 255, 255, .66) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  border-top: 1px solid rgba(255, 255, 255, .85) !important;
  box-shadow: 0 -6px 20px rgba(4, 61, 44, .08) !important;
}
html body .tabbar-btn { border-radius: 14px; }
html body .tabbar-btn::before, html body .tabbar-btn::after { display: none !important; }
html body .tabbar-btn.active { background: #E1F0E7 !important; }

/* ---------- Beranda siswa ---------- */
html body .student-heading .greeting h1 { font-weight: 800; font-size: 24px; line-height: 1.2; color: #075C42; letter-spacing: -.3px; }
html body .student-heading .greeting p { font-size: 14px; color: #4F6358; margin-top: 3px; }
/* ---------- Kartu ---------- */
html body :is(.stat-card, .chart-card, .progress-card, .hafalan-latest, .target-card, .peta-card, .student-profile-card) {
  background: #fff;
  border: 1px solid rgba(227, 224, 210, .9);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
}
html body .stat-card { padding: 14px; }
html body .chart-card { padding: 16px; }
html body .stat-card-icon { width: 40px; height: 40px; border-radius: 12px; background: #E1F0E7; color: #075C42; }


/* ---------- Kartu statistik: ikon di atas, angka besar, label di bawah (sesuai mockup) ---------- */
html body .stat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
html body .stat-card-header { display: contents; }
html body .stat-card-icon { order: 1; margin-bottom: 10px; }
html body .stat-card-value { order: 2; font-size: 30px; line-height: 1; }
html body .stat-card-label { order: 3; margin-top: 4px; }
html body .stat-card-trend { order: 4; }
html body .student-stat-streak { display: grid !important; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center; grid-column: 1 / -1; }
html body .student-stat-streak .stat-card-icon { grid-area: 1 / 1 / 3 / 2; margin: 0; }
html body .student-stat-streak .stat-card-label { grid-area: 1 / 2 / 2 / 3; margin: 0; text-align: left; }
html body .student-stat-streak .stat-card-trend { grid-area: 2 / 2 / 3 / 3; text-align: left; }
html body .student-stat-streak .stat-card-value { grid-area: 1 / 3 / 3 / 4; justify-self: end; }

/* ---------- Tombol utama dan tombol Catat ---------- */
html body .btn-primary { border-radius: 14px; background: #075C42; box-shadow: 0 4px 0 #043D2C; min-height: 48px; font-weight: 700; }
html body .btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body .btn-primary:disabled { box-shadow: none; }
html body .fab-main {
  height: 50px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, rgba(11, 110, 80, .92), rgba(4, 61, 44, .94));
  box-shadow: 0 10px 24px rgba(4, 61, 44, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---------- Hafalan / Muroja'ah ---------- */
html body .hafalan-page-heading h2, html body .mur-page-heading h2 { font-size: 22px; font-weight: 700; color: var(--hf-ink); }
html body .hafalan-page-heading p, html body .mur-page-heading p { font-size: 14px; color: #5D7064; }
html body #hfMemorizationProgress { overflow: hidden; }
html body #hfMemorizationProgress .progress-card-header {
  margin: -16px -16px 14px !important; padding: 18px; border-radius: 20px 20px 0 0 !important;
  background: linear-gradient(150deg, #12875F 0%, #075C42 55%, #043D2C 100%); color: #fff;
}
html body #hfMemorizationProgress .progress-card-header h3 { color: #fff; font-weight: 800; font-size: 18px; }
html body #hfMemorizationProgress .progress-card-header p { color: #CFE9DB; }
html body :is(.hf-progress-track, .progress-track) { height: 10px; background: #E3EEE6; border-radius: 10px; }
html body .progress-fill { background: linear-gradient(90deg, #2F9E72, #075C42); }
html body .hafalan-filter { min-height: 36px; border-radius: 8px; font-weight: 600; }
html body .hf-rank-cta {
  border-color: #C98F0F; border-radius: 14px; color: #4A3000;
  background: linear-gradient(180deg, #FFE27A, #F2B92F); box-shadow: 0 3px 0 #B5800C;
}

/* ---------- Mahkota (5/10/15/20/25/30 juz): terpusat di atas avatar ---------- */
.hf-learn-crown { transform: translate(-50%, -75%); }
.hf-avatar-anchor:has(> .hf-profile-avatar) { --hf-crown-width: 50px; }
.hf-avatar-anchor:has(> #siswaAvatar), .hf-learn-avatar { --hf-crown-width: 42px; }
.hf-header-avatar { --hf-crown-width: 32px; }
.student-profile-view .profile-overview-layout > .profile-identity:has(.hf-learn-crown) { padding-block-start: 26px; }
@media (max-width: 720px) {
  .hf-avatar-anchor:has(> #siswaAvatar) { --hf-crown-width: 35px; }
  .hf-header-avatar { --hf-crown-width: 26px; }
}

/* ---------- Login: satu lockup (simbol + Hafaluma), tagline rapat di bawah huruf H ---------- */
.brand-page .login-brand .hf-lockup { display: flex; align-items: center; gap: 15px; margin: 0 0 22px; position: relative; z-index: 1; }
.brand-page .login-brand .hf-lockup .hf-brand__symbol { width: 102px; height: 102px; margin: 0; flex: none; }
.brand-page .login-brand .hf-lockup .hf-brand__emblem { border-radius: 0; filter: none; }
.brand-page .login-brand .hf-lockup .brand-identity { gap: 0; align-items: flex-start; }
.brand-page .login-brand .hf-lockup .login-wordmark { width: 245px; max-width: none; }
.brand-page .login-brand .hf-lockup .brand-tagline {
  margin: 2px 0 0 1px; font-size: 15px; font-weight: 500; line-height: 1.2;
  letter-spacing: .03em; word-spacing: .12em; white-space: nowrap; opacity: .92;
}
@media (max-width: 720px) {
  .brand-page .login-brand .hf-lockup { gap: 11px; margin-bottom: 18px; }
  .brand-page .login-brand .hf-lockup .hf-brand__symbol { width: 76px; height: 76px; }
  .brand-page .login-brand .hf-lockup .login-wordmark { width: 182px; }
  .brand-page .login-brand .hf-lockup .brand-tagline { font-size: 11px; margin-top: 2px; }
}
@media (max-width: 360px) {
  .brand-page .login-brand .hf-lockup .hf-brand__symbol { width: 62px; height: 62px; }
  .brand-page .login-brand .hf-lockup .login-wordmark { width: 150px; }
  .brand-page .login-brand .hf-lockup .brand-tagline { font-size: 9.5px; }
}
@media (prefers-reduced-transparency: reduce) {
  html body .topbar { background: #FBFAF4 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body .tabbar { background: #FBFAF4 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ===== DESAIN v8: Peringkat ===== */
html body .hf-learn-card {
  background: #fff;
  border: 1px solid rgba(227, 224, 210, .9);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
}
html body .hf-learn-button { border-radius: 12px; font-weight: 600; }
html body .hf-learn-ranking li { column-gap: 12px; }
html body .hf-rank-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
html body .hf-learn-self {
  position: sticky;
  bottom: 84px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
html body .hf-learn-self strong {
  background: #075C42; color: #fff; border-radius: 12px; padding: 8px 14px; font-size: 20px;
}
html body .hf-learn-card.hf-rank-season {
  background: linear-gradient(150deg, #12875F, #075C42 50%, #043D2C);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(4, 61, 44, .35), 0 4px 0 #022B1F;
}
html body:has([data-tab-content="ranked"]:not([hidden])) #fabContainer { display: none; }

/* ===== DESAIN v8: Login ===== */
html body .btn-toggle-pw[aria-pressed="false"] .icon-eye-closed { display: none !important; }
html body .btn-toggle-pw[aria-pressed="true"] .icon-eye-open { display: none !important; }
html body #loginForm .btn-primary { width: 100%; }
html body.login-page .login-container { background: #F7F5EC; }
html body.login-page .login-form-panel input { background: #fff; border: 1px solid #E3E0D2; border-radius: 12px; }
html body.login-page .login-form-panel input:focus { border-color: #075C42; box-shadow: 0 0 0 3px rgba(7, 92, 66, .15); }

/* ===== DESAIN v8: Lupa password (dialog pemulihan) ===== */
html body dialog.hf-recovery { background: #F7F5EC; border: 1px solid rgba(227, 224, 210, .9); border-radius: 24px; box-shadow: 0 24px 60px rgba(4, 61, 44, .28); padding: 22px 20px; }
html body dialog.hf-recovery::backdrop { background: rgba(4, 61, 44, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body dialog.hf-recovery h2 { font-size: 24px; font-weight: 800; color: #075C42; letter-spacing: -.02em; }
html body dialog.hf-recovery header .hf-admin-button { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 12px; background: #E1F0E7; color: #075C42; font-weight: 700; }
html body dialog.hf-recovery label { font-size: 14px; font-weight: 600; color: #2E4A3C; }
html body dialog.hf-recovery input { min-height: 48px; background: #fff; border: 1px solid #E3E0D2; border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--hf-ink); box-sizing: border-box; width: 100%; }
html body dialog.hf-recovery input:focus { outline: 0; border-color: #075C42; box-shadow: 0 0 0 3px rgba(7, 92, 66, .15); }
html body dialog.hf-recovery .btn-primary { width: 100%; }
html body dialog.hf-recovery .btn-primary:disabled { opacity: .45; }
html body dialog.hf-recovery details { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(227, 224, 210, .9); }
html body dialog.hf-recovery summary { font-size: 14px; font-weight: 600; color: #075C42; cursor: pointer; }
html body dialog.hf-recovery details { margin-top: 10px; padding: 0; background: transparent; border: 0; border-radius: 0; }
html body dialog.hf-recovery summary { display: block; width: fit-content; margin: 0 auto; padding: 6px 4px; font-size: 13px; font-weight: 600; color: #5D7064; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
html body dialog.hf-recovery summary::-webkit-details-marker { display: none; }
html body dialog.hf-recovery details[open] summary { color: #075C42; }
html body dialog.hf-recovery details p { margin: 6px 0 0; padding: 0 0 0 12px; border-left: 3px solid #E7B22B; font-size: 12.5px; line-height: 1.55; color: #5D7064; }

/* ===== DESAIN v8: latar halaman login ===== */
html body.login-page { background: radial-gradient(circle at 15% 0%, #DDEFE3 0, transparent 45%), radial-gradient(circle at 100% 30%, #F6EBC9 0, transparent 40%), #F7F5EC; background-attachment: fixed; }
html body.login-page .login-container { box-shadow: 0 18px 44px rgba(4, 61, 44, .16); }

/* ===== DESAIN v8: login layar lebar (laptop) — panel hijau penuh + form krem ===== */
@media (min-width: 900px) {
  html body.login-page { padding: 0; display: block; background: #FBF8EF; }
  html body.login-page .login-container { max-width: none; width: 100%; min-height: 100vh; border-radius: 0; box-shadow: none; grid-template-columns: 1.15fr 1fr; background: #FBF8EF; }
  html body.login-page .login-brand { padding: 64px clamp(48px, 7vw, 112px); }
  html body.login-page .login-brand > * { max-width: 520px; }
  html body.login-page .login-form-panel { padding: 64px 40px; align-items: center; }
  html body.login-page .login-form-panel > * { width: 100%; max-width: 380px; }
}

/* ===== DESAIN v8: login HP — panel hijau menempel tepi, sudut bawah membulat ===== */
@media (max-width: 899px) {
  html body.login-page { padding: 0 !important; display: block; background: #F7F5EC; }
  html body.login-page .login-container { width: 100% !important; max-width: none !important; min-height: 100dvh !important; border-radius: 0 !important; box-shadow: none !important; background: #F7F5EC; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 1fr; }
  html body.login-page .login-brand { border-radius: 0 0 28px 28px !important; padding: 24px 22px 20px !important; }
  html body.login-page .login-brand .brand-desc { font-size: 13px; line-height: 1.55; margin: 14px 0 14px !important; }
  html body.login-page .login-brand .brand-quote { padding: 12px 14px; border-radius: 14px; }
  html body.login-page .login-brand .brand-quote * { font-size: 12.5px; }
  html body.login-page .login-form-panel { padding: 18px 22px 14px !important; display: flex; flex-direction: column; }
  html body.login-page .login-form-panel .login-footer-ultra { margin-top: auto; padding-top: 10px; }
}

/* ===== DESAIN v8: Beranda Siswa — kartu muroja'ah beruntun ===== */
html body .stat-card.student-stat-streak { grid-template-columns: 44px minmax(0, 1fr) auto !important; column-gap: 12px !important; align-items: center; }
html body .stat-card.student-stat-streak .stat-card-trend { padding-left: 0 !important; }

/* ============================================================
   DESAIN v8 — Beranda Siswa: latar tenang selaras header, kartu pencapaian/target
   kembali ke tampilan awal (dengan kilau), kotak statistik hidup, ikon tidak berputar
   ============================================================ */
html body:not(.login-page) { background: #F3F2EC !important; }
html body .topbar {
  background: rgba(250, 249, 242, .9) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important; backdrop-filter: blur(18px) saturate(160%) !important;
  border-bottom: 1px solid rgba(4, 61, 44, .10) !important; box-shadow: none !important;
}
/* animasi ikon dimatikan (tidak berputar / membalik / berdenyut) */
html body [class*="icon-anim-"], html body [class*="icon-anim-"] * { animation: none !important; }

/* "Lihat selengkapnya": pil kecil yang tidak mencolok */
html body #achievementCard .hf-achievement-juz {
  display: grid; place-items: center; margin: 8px auto 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; max-width: 100%;
}
html body #achievementCard .hf-juz-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(120, 78, 0, .22);
  font-size: 13px; font-weight: 700; color: #075C42;
}
html body #achievementCard .hf-juz-more::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
html body #achievementCard .hf-juz-chips { display: none; max-width: 100%; margin: 0; text-align: center; line-height: 1.5; white-space: normal; }
html body #achievementCard .hf-achievement-juz[aria-expanded="true"] .hf-juz-more { display: none; }
html body #achievementCard .hf-achievement-juz[aria-expanded="true"] .hf-juz-chips { display: inline-block; }

/* target: teks rapi, rata tengah */
html body .card-stack .monthly-target-empty { text-align: center; font-size: 14px; font-weight: 600; color: #F3F7EE; }
html body .card-stack .monthly-target-status { text-align: center; font-size: 12.5px; line-height: 1.5; color: #D7E5DA; }

/* kotak statistik: kartu bercahaya tipis + ikon gradien bertumpu ala Duolingo */
html body .stat-card {
  position: relative; overflow: hidden; padding: 16px !important; border-radius: 20px !important;
  border: 1px solid rgba(7, 92, 66, .10) !important;
  background: radial-gradient(120px 90px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #fff !important;
}
html body .stat-card:has(.icon-anim-refresh) { background: radial-gradient(120px 90px at 100% 0, rgba(240, 180, 41, .22), transparent 70%), #fff !important; border-color: rgba(201, 138, 18, .18) !important; }
html body .stat-card.student-stat-streak { background: radial-gradient(160px 90px at 100% 0, rgba(244, 121, 56, .20), transparent 70%), #fff !important; border-color: rgba(228, 87, 46, .18) !important; }
html body .stat-card-icon {
  width: 46px !important; height: 46px !important; border-radius: 15px !important; margin-bottom: 12px !important;
  display: flex; align-items: center; justify-content: center; color: #fff !important;
  background: linear-gradient(160deg, #2F9E72, #075C42) !important; box-shadow: 0 4px 0 #043D2C, 0 8px 14px rgba(7, 92, 66, .25);
}
html body .stat-card:has(.icon-anim-refresh) .stat-card-icon { background: linear-gradient(160deg, #F7CB4A, #D99512) !important; box-shadow: 0 4px 0 #A87008, 0 8px 14px rgba(201, 138, 18, .28); }
html body .stat-card.student-stat-streak .stat-card-icon { background: linear-gradient(160deg, #FF9A4D, #E4572E) !important; box-shadow: 0 4px 0 #B83A18, 0 8px 14px rgba(228, 87, 46, .28); margin: 0 !important; }
html body .stat-card-icon svg { width: 26px !important; height: 26px !important; stroke-width: 1.9; }
html body .stat-card-value { font-size: 32px !important; line-height: 1 !important; font-weight: 800 !important; color: var(--hf-ink) !important; letter-spacing: -.5px; }
html body .stat-card:has(.icon-anim-refresh) .stat-card-value { color: #8A5B07 !important; }
html body .stat-card-value .unit { font-size: 14px; font-weight: 700; color: #5D7064; margin-left: 4px; }
html body .stat-card-label { font-size: 15px !important; font-weight: 800 !important; color: var(--hf-ink) !important; margin-top: 6px !important; }
html body .stat-card-trend { font-size: 12.5px !important; color: var(--hf-muted) !important; font-weight: 600 !important; margin-top: 2px; }
html body .stat-card.student-stat-streak { grid-template-columns: 46px minmax(0, 1fr) auto !important; column-gap: 12px !important; padding: 14px 16px !important; }
html body .stat-card.student-stat-streak .stat-card-trend { padding-left: 0 !important; }
html body .stat-card.student-stat-streak .stat-card-label { margin-top: 0 !important; }
html body .stat-card.student-stat-streak .stat-card-value { color: #B83A18 !important; }

/* ===== DESAIN v8: sapaan, kotak statistik ringkas, header beraksen, tab bawah melayang ===== */
html body .student-heading .greeting h1 { color: #075C42 !important; }
html body .student-heading .greeting p { color: #5D7064 !important; }
html body .stat-card:not(.student-stat-streak) {
  display: grid !important; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "icon value" "label label" "trend trend";
  column-gap: 12px; row-gap: 0; align-items: center; align-content: start;
}
html body .stat-card:not(.student-stat-streak) .stat-card-icon { grid-area: icon; margin: 0 !important; }
html body .stat-card:not(.student-stat-streak) .stat-card-value { grid-area: value; justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 32px !important; }
html body .stat-card:not(.student-stat-streak) .stat-card-value .unit { margin-left: 0; font-size: 12px; line-height: 1; }
html body .stat-card:not(.student-stat-streak) .stat-card-label { grid-area: label; margin-top: 12px !important; }
html body .stat-card:not(.student-stat-streak) .stat-card-trend { grid-area: trend; }

html body .topbar { background: rgba(255, 255, 255, .95) !important; border-bottom: 0 !important; box-shadow: 0 6px 20px rgba(4, 61, 44, .10) !important; }
html body .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #075C42, #2F9E72 55%, #E7B22B); }
html body .tabbar {
  left: 12px !important; right: 12px !important; bottom: 10px !important; width: auto !important; border-radius: 26px !important;
  background: rgba(255, 255, 255, .95) !important; border: 1px solid rgba(4, 61, 44, .08) !important;
  box-shadow: 0 12px 32px rgba(4, 61, 44, .20) !important; padding: 6px !important;
}
html body .fab-container { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
html body.student-dashboard-page { padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important; }

/* ===== DESAIN v8: menu Catat — ikon gradien seragam ===== */
html body.student-input-page .fab-action {
  background: #fff; border: 1px solid rgba(7, 92, 66, .10); border-radius: 20px; min-height: 68px; padding: 10px 16px 10px 12px;
  box-shadow: 0 10px 26px rgba(4, 61, 44, .16);
}
html body.student-input-page .fab-action-icon {
  width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; color: #fff;
  background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C;
}
html body.student-input-page #fabMurojaah .fab-action-icon { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008; }
html body.student-input-page #fabTilawah .fab-action-icon { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 4px 0 #0A4852; }
html body.student-input-page .fab-action-icon svg { width: 26px !important; height: 26px !important; stroke-width: 1.9; }
html body.student-input-page .fab-action strong { font-size: 15px; font-weight: 800; color: var(--hf-ink); }
html body.student-input-page .fab-action small { font-size: 12px; font-weight: 500; color: #5D7064; }

/* ===== DESAIN v8: jendela Pencapaian (badge) dan jendela modal umum ===== */
html body .modal { z-index: 10100 !important; background: rgba(4, 61, 44, .42) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .modal-content { background: #F7F5EC !important; border: 1px solid rgba(255, 255, 255, .7) !important; border-radius: 28px !important; box-shadow: 0 28px 70px rgba(4, 61, 44, .32) !important; }
html body .modal-header h2 { font-size: 21px; font-weight: 800; color: #075C42; letter-spacing: -.3px; }
html body .modal-header h2 svg { width: 36px !important; height: 36px !important; padding: 7px; border-radius: 12px; color: #fff !important; background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 3px 0 #A87008; box-sizing: border-box; }
html body .modal-desc { font-size: 13px; font-weight: 600; color: #5D7064; }
html body .modal-close { width: 38px !important; height: 38px !important; border-radius: 50% !important; background: #E1F0E7 !important; color: #075C42 !important; border: 0 !important; display: grid !important; place-items: center; }
html body .hf-badge-section > h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #075C42; }
html body .hf-badge-section > h3 span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: #075C42; color: #fff; font-size: 12px; font-weight: 800; }
html body .hf-badge-card { background: #fff !important; border: 1px solid rgba(7, 92, 66, .10) !important; border-radius: 22px !important; box-shadow: 0 6px 16px rgba(4, 61, 44, .07); }
html body .hf-badge-card.is-earned { background: radial-gradient(130px 100px at 50% 0, rgba(240, 180, 41, .20), transparent 72%), #fff !important; border-color: rgba(201, 138, 18, .22) !important; }
html body .hf-badge-card h3 { font-size: 14px; font-weight: 800; color: #075C42; }
html body .hf-badge-card p { font-size: 12px; color: #5D7064; }
html body .hf-badge-state { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: #E1F0E7; color: #075C42; font-size: 12px; font-weight: 800; }
html body .hf-badge-card.is-locked .hf-badge-state { background: #F3F2EC; color: #4F6358; }
html body .hf-badge-rule summary { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin: 0 auto; padding: 5px 12px; border-radius: 999px; background: #F3F2EC; font-size: 12px; font-weight: 700; color: #4F6358; list-style: none; cursor: pointer; }
html body .hf-badge-rule summary::-webkit-details-marker { display: none; }
html body .hf-badge-rule summary::after { content: ""; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
html body .hf-badge-rule[open] summary::after { transform: rotate(225deg) translateY(-2px); }
html body .hf-badge-locked > summary { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--hf-ink); list-style: none; cursor: pointer; padding: 6px 0; }
html body .hf-badge-locked > summary::-webkit-details-marker { display: none; }
html body .hf-badge-locked > summary span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: #E3E0D2; color: #4F6358; font-size: 12px; font-weight: 800; }
html body .hf-badge-locked > summary::before { content: ""; width: 7px; height: 7px; border-right: 2.5px solid #075C42; border-bottom: 2.5px solid #075C42; transform: rotate(-45deg); transition: transform .2s; margin: 0 4px 0 2px; }
html body .hf-badge-locked[open] > summary::before { transform: rotate(45deg); }
html body .hf-badge-meter { height: 8px !important; margin: 8px 4px 6px !important; border-radius: 8px !important; background: #E3EEE6 !important; overflow: hidden; }
html body .hf-badge-meter span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2F9E72, #075C42) !important; }

/* ===== DESAIN v8: menu foto profil ===== */
html body .student-profile-dropdown { min-width: 210px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 12px 32px rgba(4, 61, 44, .16), 0 0 0 1px rgba(7, 92, 66, .07); display: flex; flex-direction: column; gap: 0; }
html body .student-profile-dropdown[hidden] { display: none; }
html body .student-profile-dropdown .profile-menu-head { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 9px; margin-bottom: 4px; border-bottom: 1px solid rgba(7, 92, 66, .10); }
html body .student-profile-dropdown .profile-menu-head strong { font-size: 14px; font-weight: 800; color: #075C42; line-height: 1.25; }
html body .student-profile-dropdown .profile-menu-head span { font-size: 12px; font-weight: 600; color: #6F8176; }
html body .student-profile-dropdown .profile-menu-item, html body .student-profile-dropdown .btn-logout { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px; border: 0; border-radius: 11px; background: transparent; box-shadow: none; font-size: 14px; font-weight: 700; color: var(--hf-ink); text-align: left; }
html body .student-profile-dropdown .profile-menu-item:hover, html body .student-profile-dropdown .profile-menu-item:focus-visible { background: rgba(7, 92, 66, .08); }
html body .student-profile-dropdown svg { display: none !important; }
html body .student-profile-dropdown .btn-logout { margin-top: 0; color: #C2410C; }
html body .student-profile-dropdown .btn-logout:hover { background: rgba(228, 87, 46, .10); }

/* ===== DESAIN v8: halaman Profil siswa ===== */
html body #studentProfileBack, html body #hfRankBack, html body .profile-back-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(7, 92, 66, .10); box-shadow: 0 4px 12px rgba(4, 61, 44, .08); font-weight: 700; color: #075C42; }
html body #studentProfileTitle { font-size: 26px; font-weight: 800; color: #075C42; letter-spacing: -.4px; }
html body .student-profile-card.profile-identity { background: linear-gradient(150deg, #12875F 0%, #075C42 52%, #043D2C 100%) !important; border: 0 !important; border-radius: 26px !important; box-shadow: 0 12px 26px rgba(4, 61, 44, .30), 0 4px 0 #022B1F !important; color: #fff; position: relative; overflow: visible; }
html body .profile-identity .hf-profile-avatar { background: #E1F0E7; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
html body .profile-identity .hf-profile-name { font-size: 21px; font-weight: 800; color: #fff !important; }
html body .profile-identity .hf-profile-username { color: rgba(255, 255, 255, .78) !important; font-size: 14px; font-weight: 600; }
html body .profile-identity .profile-role-label { display: inline-flex; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(160deg, #F7CB4A, #D99512); color: #4A3000 !important; font-size: 12px; font-weight: 800; box-shadow: 0 3px 0 #A87008; }
html body .hf-milestone-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(160deg, #FBEFC8, #F3D679); box-shadow: inset 0 0 0 1px rgba(201, 138, 18, .25); }
html body .hf-milestone-art .hf-learn-crown { position: static !important; transform: none !important; left: auto; top: auto; width: 52px !important; }
html body .hf-learn-card.hf-milestone { background: radial-gradient(180px 120px at 100% 0, rgba(240, 180, 41, .20), transparent 70%), #fff !important; border: 1px solid rgba(201, 138, 18, .20) !important; }
html body .hf-milestone p { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #8A5A00; }
html body .hf-milestone h3 { font-size: 22px; font-weight: 800; color: #075C42; }
html body .hf-rank-stats > div { background: #EAF4EE; border-radius: 14px; }
html body .hf-rank-stats dd { font-size: 22px; font-weight: 800; color: var(--hf-ink); }
html body .hf-profile-rank .hf-learn-button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 46px; margin-top: 12px; border-radius: 14px; background: #075C42; color: #fff; font-weight: 700; border: 0; box-shadow: 0 4px 0 #043D2C; }
html body .hf-learn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 3px 0 #043D2C; }
html body .hf-learn-icon svg { width: 22px; height: 22px; }
html body .profile-account-info .hf-profile-field { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ECEAE0; }
html body .profile-account-info dt { font-size: 13px; font-weight: 600; color: #5D7064; }
html body .profile-account-info dd { font-size: 14px; font-weight: 700; color: var(--hf-ink); text-align: right; }
html body .student-profile-card h3 { font-size: 16px; font-weight: 800; color: #075C42; }

/* ===== DESAIN v8: dialog Ganti password (siswa) ===== */
html body dialog.student-password-dialog { background: #F7F5EC; border: 1px solid rgba(227, 224, 210, .9); border-radius: 24px; box-shadow: 0 24px 60px rgba(4, 61, 44, .28); padding: 22px 20px; }
html body dialog.student-password-dialog::backdrop { background: rgba(4, 61, 44, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body dialog.student-password-dialog h2 { font-size: 24px; font-weight: 800; color: #075C42; letter-spacing: -.02em; }
html body dialog.student-password-dialog label { font-size: 14px; font-weight: 600; color: #2E4A3C; }
html body dialog.student-password-dialog input:not([type=checkbox]) { min-height: 48px; background: #fff; border: 1px solid #E3E0D2; border-radius: 12px; padding: 0 14px; font-size: 16px; box-sizing: border-box; width: 100%; }
html body dialog.student-password-dialog input:not([type=checkbox]):focus { outline: 0; border-color: #075C42; box-shadow: 0 0 0 3px rgba(7, 92, 66, .15); }
html body dialog.student-password-dialog input[type=checkbox] { accent-color: #075C42; width: 18px; height: 18px; }
html body dialog.student-password-dialog .btn-secondary { min-height: 48px; border-radius: 14px; background: #fff; border: 1px solid #E3E0D2; color: var(--hf-ink); font-weight: 700; }
html body dialog.student-password-dialog .btn-primary { min-height: 48px; }

/* Profil siswa: kartu identitas — beri ruang agar foto, mahkota & segel tidak keluar kartu */
html body .student-profile-view .profile-overview-layout > .profile-identity { padding: 34px 20px 20px !important; gap: 16px !important; overflow: visible; }
html body .student-profile-view .profile-identity > .hf-avatar-anchor { margin-inline-start: 4px; }
html body .student-profile-view .profile-identity > div:not(.hf-avatar-anchor) { flex: 1; min-width: 0; }

/* Pilih badge & kartu badge di profil */
html body .student-profile-view .profile-badge-count { display: inline-flex; align-items: center; margin: 4px 0 6px; padding: 5px 12px; border-radius: 999px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 13px; font-weight: 800; }
html body .student-profile-view .profile-badge-section-title { font-size: 14px; font-weight: 800; color: #075C42; margin: 14px 0 10px; }
html body .student-profile-view .profile-badge-option { border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); padding: 12px 14px; transition: transform .12s ease, border-color .12s ease; }
html body .student-profile-view .profile-badge-option:active { transform: scale(.985); }
html body .student-profile-view .profile-badge-option.is-selected { background: linear-gradient(135deg, #F1F8EE, #E5F2E8); border-color: #12875F; box-shadow: 0 6px 18px rgba(7, 92, 66, .14); }
html body .student-profile-view .profile-badge-option-copy strong { font-size: 15px; font-weight: 800; color: #075C42; }
html body .student-profile-view .profile-badge-mark { width: 28px; height: 28px; min-width: 28px; flex-basis: 28px; border: 2px solid #D8D5C4; background: #fff; color: transparent; }
html body .student-profile-view .is-selected .profile-badge-mark { background: linear-gradient(160deg, #12875F, #075C42); border-color: #075C42; color: #fff; box-shadow: 0 2px 0 #043D2C; }
html body .student-profile-view .profile-badge-save-area { border-top: 0; }
html body .student-profile-view .profile-badge-save-area > .btn-primary { min-height: 50px; border-radius: 14px; font-weight: 800; }
html body .student-profile-view .profile-badge-locked { border: 1px solid rgba(227, 224, 210, .9); border-radius: 18px; background: #fff; padding: 0 16px; box-shadow: 0 6px 18px rgba(4, 61, 44, .06); }
html body .student-profile-view .profile-badge-locked > summary { font-weight: 800; color: var(--hf-ink); }
html body .student-profile-view .profile-setting-row { border-top: 1px solid rgba(7, 92, 66, .10); font-weight: 800; color: var(--hf-ink); }
html body .student-profile-view .profile-badge-previews .profile-badge-preview { font-weight: 700; color: var(--hf-ink); }

/* ===== Tab Hafalan (Siswa) ===== */
html body #hafalanTab .hf-hafalan-heading { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
html body #hafalanTab .hf-hafalan-heading > div:first-child { flex: 1 1 100%; }
html body #hafalanTab .hf-hafalan-heading h2 { font-size: 28px; font-weight: 800; color: #075C42; letter-spacing: -.01em; margin: 0 0 2px; }
html body #hafalanTab .hf-hafalan-heading p { margin: 0; color: #5D7064; font-size: 14px; }
html body #hafalanTab #hfRankCard { flex: 1 1 100%; justify-content: center; min-height: 46px; border-radius: 999px; background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008, 0 10px 20px rgba(217, 149, 18, .25); color: #4A3000; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
html body #hafalanTab #hfMemorizationProgress { border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); overflow: hidden; }
html body #hafalanTab #hfMemorizationProgress .progress-card-header { border-radius: 0; background: linear-gradient(150deg, #12875F, #075C42 52%, #043D2C); }
html body #hafalanTab .hf-progress-overview strong { font-weight: 800; color: #075C42; }
html body #hafalanTab .hf-progress-track { height: 10px; background: #E3EEE6; border-radius: 999px; }
html body #hafalanTab .hf-progress-track > span { border-radius: 999px; background: linear-gradient(90deg, #12875F, #075C42); }
html body #hafalanTab .hf-progress-more .hf-progress-track > span { background: linear-gradient(90deg, #F7CB4A, #D99512); }
html body #hafalanTab .hf-progress-more .hf-juz-heading span { color: #A87008; font-weight: 800; }
html body #hafalanTab .hf-juz-heading strong { color: #075C42; font-weight: 800; }
html body #hafalanTab .hf-progress-more > summary { font-weight: 800; color: #075C42; }
html body #hafalanTab .hafalan-latest { border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); }
html body #hafalanTab .hafalan-latest-icon { width: 44px !important; height: 44px !important; padding: 11px; box-sizing: border-box; border-radius: 14px; background: #E3F1E8; color: #075C42; flex-shrink: 0; }
html body #hafalanTab .hafalan-latest-copy strong { color: #075C42; font-weight: 800; }
html body #hafalanTab #hafalanAddButton { min-height: 48px; border-radius: 14px; font-weight: 800; }
html body #hafalanTab .hafalan-history-heading h3 { font-weight: 800; color: #075C42; }
html body #hafalanTab .riwayat-count-badge { background: rgba(7, 92, 66, .09); color: #075C42; font-weight: 800; }
html body #hafalanTab .hafalan-search-box input { border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(4, 61, 44, .05); }
html body #hafalanTab .hafalan-filter { border-radius: 999px; background: #fff; color: #075C42; border: 1px solid rgba(227, 224, 210, .95); font-weight: 700; }
html body #hafalanTab .hafalan-filter.is-active { background: #075C42; color: #fff; border-color: #075C42; box-shadow: 0 3px 0 #043D2C; }
html body #hafalanTab .history-item { border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); }
html body #hafalanTab .history-title { color: #075C42; font-weight: 800; }
html body #hafalanTab .history-date { background: #F3F2EC; }
html body #hafalanTab .riwayat-toggle { border-radius: 14px; font-weight: 800; }

/* ===== Jendela Tambah Hafalan / alur setoran (hf-learning-shell) ===== */
html body .hf-learning-shell { background: rgba(4, 61, 44, .42); }
html body .hf-learning-panel { background: #F3F2EC; border-radius: 26px; box-shadow: 0 24px 60px rgba(4, 61, 44, .28); }
html body .hf-learning-head { background: #fff; border-bottom: 1px solid rgba(7, 92, 66, .10); }
html body .hf-learning-brand { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #12875F; font-size: 11px; }
html body .hf-learning-head h2 { font-size: 22px; font-weight: 800; color: #075C42; }
html body .hf-icon-button { background: #F3F2EC; border: 1px solid rgba(227, 224, 210, .95); color: #075C42; box-shadow: 0 3px 0 rgba(7, 92, 66, .10); }
html body .hf-step-caption, html body .hf-learning-state { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 13px; font-weight: 800; margin: 0 0 14px; }
html body .hf-learning-help { color: #5D7064; font-size: 14px; }
html body .hf-juz-grid { gap: 10px; }
html body .hf-juz-grid button { min-height: 56px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 16px; background: #fff; color: var(--hf-ink); font-weight: 800; box-shadow: 0 4px 0 rgba(7, 92, 66, .10); transition: transform .1s ease, box-shadow .1s ease; }
html body .hf-juz-grid button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(7, 92, 66, .10); }
html body .hf-surah-list > button { border: 1px solid rgba(227, 224, 210, .95); border-radius: 18px; background: #fff; box-shadow: 0 6px 16px rgba(4, 61, 44, .07); color: var(--hf-ink); }
html body .hf-surah-list > button strong { font-weight: 800; font-size: 16px; }
html body .hf-surah-list [aria-pressed=true], html body .hf-grade-grid [aria-pressed=true] { background: linear-gradient(135deg, #F1F8EE, #E5F2E8); border-color: #12875F; }
html body .hf-range-fields input, html body .hf-setoran-field textarea, html body .hf-grade-select { border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(4, 61, 44, .05); font-size: 16px; }
html body .hf-range-fields input:focus, html body .hf-setoran-field textarea:focus { border-color: #12875F; outline: 0; box-shadow: 0 0 0 3px rgba(18, 135, 95, .18); }
html body .hf-setoran-summary { background: rgba(7, 92, 66, .08); border: 0; border-radius: 14px; color: #075C42; font-weight: 700; }
html body .hf-learning-actions { background: #fff; border-top: 1px solid rgba(7, 92, 66, .10); gap: 12px; }
html body .hf-primary { min-height: 48px; border-radius: 14px; background: #075C42; border: 0; box-shadow: 0 4px 0 #043D2C; font-weight: 800; }
html body .hf-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body .hf-secondary { min-height: 48px; border-radius: 14px; background: #fff; border: 1px solid rgba(227, 224, 210, .95); color: #075C42; font-weight: 800; box-shadow: 0 3px 0 rgba(7, 92, 66, .10); }
html body .hf-review-item, html body .hf-range-list li { border: 1px solid rgba(227, 224, 210, .95); border-radius: 18px; box-shadow: 0 6px 16px rgba(4, 61, 44, .07); }
@media (max-width: 600px) { html body .hf-learning-shell { background: #F3F2EC; } html body .hf-learning-panel { border-radius: 0; box-shadow: none; } }
html body .hf-learning-form { flex: 1 1 auto; }
html body .hf-learning-body { flex: 1 1 auto; }
html body .hf-grade-select { font-size: 15px; font-weight: 700; color: var(--hf-ink); }

/* Dialog Pilih penilaian */
html body dialog.hf-grade-dialog { border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(4, 61, 44, .30); padding: 20px; }
html body dialog.hf-grade-dialog::backdrop { background: rgba(4, 61, 44, .45); }
html body .hf-grade-dialog-head h3 { font-size: 20px; font-weight: 800; color: #075C42; }
html body .hf-grade-close { background-color: #F3F2EC; border: 1px solid rgba(227, 224, 210, .95); box-shadow: 0 3px 0 rgba(7, 92, 66, .10); }
html body .hf-grade-note { color: #5D7064; font-size: 13px; }
html body .hf-grade-choices > button { border: 1px solid rgba(227, 224, 210, .95); border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(7, 92, 66, .10); }
html body .hf-grade-choices > button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(7, 92, 66, .10); }
html body .hf-grade-choices > button[aria-pressed=true] { background: linear-gradient(135deg, #F1F8EE, #E5F2E8); border-color: #12875F; }

/* Tombol kembali ke atas */
html body .back-to-top { right: 20px; width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(160deg, #2F9E72, #075C42); color: #fff; border: 0; box-shadow: 0 4px 0 #043D2C, 0 8px 14px rgba(7, 92, 66, .25); }
html body .back-to-top:hover { background: linear-gradient(160deg, #2F9E72, #075C42); transform: translateY(-1px); box-shadow: 0 5px 0 #043D2C, 0 10px 16px rgba(7, 92, 66, .28); }
html body .back-to-top:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body .back-to-top svg { width: 20px !important; height: 20px !important; stroke-width: 2.4; }

/* Peringkat: kartu sembunyikan profil -> saklar ringkas */
html body .hf-learn-card:has(.hf-learn-check) { padding: 12px 14px; border-radius: 18px; }
html body .hf-learn-check { align-items: center; gap: 12px; flex-direction: row; }
html body .hf-learn-check input { order: 2; appearance: none; -webkit-appearance: none; width: 46px; height: 28px; flex: 0 0 46px; margin: 0; border-radius: 999px; background: #D8D5C4; position: relative; cursor: pointer; transition: background .18s ease; }
html body .hf-learn-check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(4, 61, 44, .25); transition: transform .18s ease; }
html body .hf-learn-check input:checked { background: linear-gradient(160deg, #2F9E72, #075C42); }
html body .hf-learn-check input:checked::after { transform: translateX(18px); }
html body .hf-learn-check input:disabled { opacity: .5; cursor: default; }
html body .hf-learn-check > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body .hf-learn-check strong { font-size: 14px; font-weight: 800; color: #075C42; }
html body .hf-learn-check small { font-size: 12px; line-height: 1.4; color: #5D7064; }

/* Kartu Terakhir disetujui */
html body #hafalanTab .hafalan-latest { background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .20), transparent 70%), #fff; position: relative; overflow: hidden; }
html body #hafalanTab .hafalan-latest-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; text-align: left; }
html body #hafalanTab .hafalan-latest-icon { width: 48px !important; height: 48px !important; padding: 12px; border-radius: 15px; background: linear-gradient(160deg, #2F9E72, #075C42); color: #fff; box-shadow: 0 4px 0 #043D2C, 0 8px 14px rgba(7, 92, 66, .25); }
html body #hafalanTab .hafalan-latest-copy { flex: 1; min-width: 0; }
html body #hafalanTab .hafalan-latest-cta { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border-radius: 12px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 14px; font-weight: 800; }
html body #hafalanTab .hafalan-latest-cta svg { width: 16px; height: 16px; }
html body #hafalanTab .hafalan-latest-open:disabled .hafalan-latest-cta { display: none; }

/* Logo di jendela Tambah Hafalan */
html body .hf-learning-brand { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
html body .hf-learning-brand-mark { width: 22px; height: 22px; display: block; }
html body .hf-learning-brand-word { height: 16px; width: auto; display: block; }

/* Judul penting: satu hijau merek yang sama di semua tab */
html body :is(.riwayat-section-title, .riwayat-section-title h3, .badge-highlight-title) { color: #075C42 !important; }
html body .student-heading .greeting h1 { color: #075C42 !important; }
html body #hafalanTab #hafalanAddButton { margin-top: 10px; }

/* Judul jendela Tambah Hafalan: nama sekolah + by Hafaluma (tanpa logo sekolah) */
html body .hf-learning-brand:has(.hf-learning-school) { flex-direction: column; align-items: flex-start; gap: 1px; margin: 0 0 6px; }
html body .hf-learning-school { font-size: 13px; font-weight: 700; color: #075C42; line-height: 1.25; }
html body .hf-learning-by { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: #5D7064; line-height: 1.2; }
html body .hf-learning-by img { width: 12px; height: 12px; display: block; }

/* ===== Tab Muroja'ah (Siswa) ===== */
html body #murojaahTab .mur-page-heading h2 { font-size: 28px; font-weight: 800; color: #075C42; letter-spacing: -.01em; margin: 0 0 2px; }
html body #murojaahTab .mur-page-heading p { margin: 0; color: #5D7064; font-size: 14px; }
html body #murojaahTab .hf-plan-heading h3 { font-size: 17px; font-weight: 800; color: #075C42; }
html body #murojaahTab .hf-plan-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .18), transparent 70%), #fff; }
html body #murojaahTab .hf-plan-sabqi { background: radial-gradient(170px 110px at 100% 0, rgba(240, 180, 41, .24), transparent 70%), #fff; border-color: rgba(201, 138, 18, .20); }
html body #murojaahTab .hf-plan-card h3 { font-size: 17px; font-weight: 800; color: #075C42; margin: 0; }
html body #murojaahTab .hf-plan-kicker { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: #5D7064; }
html body #murojaahTab .hf-plan-card ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
html body #murojaahTab .hf-plan-card li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(7, 92, 66, .06); font-size: 13px; color: #5D7064; }
html body #murojaahTab .hf-plan-card li strong { color: #075C42; font-weight: 800; font-size: 14px; }
html body #murojaahTab .hf-plan-manual { width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 14px; background: rgba(7, 92, 66, .10); color: #075C42; font-size: 14px; font-weight: 800; }
html body #murojaahTab .hf-plan-sabqi button { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: #075C42; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 4px 0 #043D2C; }
html body #murojaahTab .hf-plan-sabqi button:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body #murojaahTab .peta-card h3, html body #murojaahTab .target-card h3 { font-weight: 800; color: #075C42; }
html body #murojaahTab .chip { border-radius: 999px; background: #fff; color: #075C42; border: 1px solid rgba(227, 224, 210, .95); font-weight: 700; }
html body #murojaahTab .chip.active { background: #075C42; color: #fff; border-color: #075C42; box-shadow: 0 3px 0 #043D2C; }
html body #murojaahTab .search-box input, html body #murojaahTab .mur-history-search input { border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(4, 61, 44, .05); }
html body #murojaahTab .hf-grade-legend summary { font-weight: 800; }
html body #murojaahTab .mur-compact-item { border-bottom: 1px solid rgba(7, 92, 66, .08); }
html body #murojaahTab .mur-compact-name { color: #075C42; font-weight: 800; }
html body #murojaahTab .mur-compact-meta, html body #murojaahTab .mur-compact-date { color: #5D7064; }
html body #murojaahTab .hf-grade-unknown { background: #F3F2EC; color: #5D7064; border: 1px solid rgba(227, 224, 210, .95); border-radius: 999px; }
html body #murojaahTab #petaRetry, html body #murojaahTab .mur-history-controls button.hf-grade-select { border-radius: 14px; }
html body #murojaahTab .history-item { border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); }
html body #murojaahTab .history-title { color: #075C42; font-weight: 800; }
html body #murojaahTab .riwayat-toggle { border-radius: 14px; font-weight: 800; }
html body .hf-grade-grid button { min-height: 52px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 rgba(7, 92, 66, .10); }
html body .hf-grade-grid button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(7, 92, 66, .10); }
html body .hf-review-item > strong { color: #075C42; font-weight: 800; }
html body .hf-discard-card { border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(4, 61, 44, .30); }
html body .hf-discard-card h3 { font-weight: 800; color: #075C42; }
html body .hf-discard-actions .hf-discard-button { border-radius: 14px; font-weight: 800; background: #FDEDE6; border-color: transparent; color: #C2410C; }

/* Tombol kembali ke atas (Siswa): di kanan, tepat di atas tombol Catat dengan jarak aman; tersembunyi saat menu Catat terbuka */
html body.student-dashboard-page .back-to-top { right: 20px !important; left: auto !important; bottom: calc(168px + env(safe-area-inset-bottom)) !important; }
html body.student-dashboard-page:has(#fabMain.open) .back-to-top { opacity: 0; pointer-events: none; }
html body.student-dashboard-page.student-profile-open .back-to-top { bottom: calc(24px + env(safe-area-inset-bottom)) !important; }

/* Muroja'ah: kartu Manzili & Sabqi */
html body #murojaahTab .hf-plan-heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html body #murojaahTab .hf-plan-grid { gap: 14px; }
html body #murojaahTab .hf-plan-card { padding: 18px 16px 16px; }
html body #murojaahTab .hf-plan-card > * { position: relative; z-index: 1; }
html body #murojaahTab .hf-plan-card::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 120px; height: 120px; z-index: 0; opacity: .07; pointer-events: none; background-repeat: no-repeat; background-size: contain; }
html body #murojaahTab .hf-plan-manzili::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075C42' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E"); }
html body #murojaahTab .hf-plan-sabqi::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A87008' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3Cpath d='M19 16l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z'/%3E%3C/svg%3E"); }
html body #murojaahTab .hf-plan-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
html body #murojaahTab .hf-plan-card-head::before { content: ""; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; background-repeat: no-repeat; background-position: center; background-size: 26px; }
html body #murojaahTab .hf-plan-manzili .hf-plan-card-head::before { background-color: #12875F; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E"), linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C, 0 8px 14px rgba(7, 92, 66, .25); }
html body #murojaahTab .hf-plan-sabqi .hf-plan-card-head::before { background-color: #D99512; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3Cpath d='M19 16l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z'/%3E%3C/svg%3E"), linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008, 0 8px 14px rgba(201, 138, 18, .28); }
html body #murojaahTab .hf-plan-volume { margin-left: auto; background: rgba(7, 92, 66, .10); color: #075C42; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
html body #murojaahTab .hf-plan-card h3 { font-size: 18px; }
html body #murojaahTab .hf-plan-kicker { font-size: 13px; font-weight: 600; }
html body #murojaahTab .hf-plan-card .hf-learning-help { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(7, 92, 66, .06); color: #5D7064; font-size: 13px; line-height: 1.5; }
html body #murojaahTab .hf-plan-card > button { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: #075C42; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 4px 0 #043D2C; }
html body #murojaahTab .hf-plan-card > button:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body #murojaahTab .hf-plan-card-head > div { flex: 1; min-width: 0; text-align: left; }
html body #murojaahTab .hf-plan-card-head h3, html body #murojaahTab .hf-plan-kicker { text-align: left; }

/* Muroja'ah: Sabqi di atas, Manzili di bawah */
html body #murojaahTab .hf-plan-sabqi { order: -1; }

/* Menu Catat terbuka: latar belakang di-blur sampai ditutup */
html body:has(#fabMain.open)::before { content: ""; position: fixed; inset: 0; z-index: 8000; background: rgba(4, 61, 44, .30); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: hf-fab-veil .18s ease-out; }
html body:has(#fabMain.open) .fab-container { z-index: 8100; }
@keyframes hf-fab-veil { from { opacity: 0; } to { opacity: 1; } }

/* Riwayat: tanggal di pojok kanan, turun ke bawah hanya jika layar tidak cukup */
html body #hafalanTab .history-item-header, html body #murojaahTab .history-item-header { flex-direction: row !important; flex-wrap: wrap; align-items: flex-start !important; justify-content: space-between; gap: 4px 8px !important; }
html body #hafalanTab .history-title, html body #murojaahTab .history-title { flex: 1 1 auto; min-width: 0; font-size: 14.5px; }
html body #hafalanTab .history-date, html body #murojaahTab .history-date { margin-left: auto; flex: 0 0 auto; font-size: 11px; padding: 3px 9px; background: rgba(7, 92, 66, .08); color: #5D7064; font-weight: 700; }
html body .hf-learn-history li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
html body .hf-learn-history li > strong { flex: 1 1 auto; min-width: 0; }
html body .hf-learn-history li > .hf-hist-date { margin-left: auto; flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: rgba(7, 92, 66, .08); color: #5D7064; font-size: 11px; font-weight: 700; }
html body .hf-learn-history li > .hf-hist-source, html body .hf-learn-history li > p { flex: 1 1 100%; }

/* ===== Tab Tilawah (Siswa) ===== */
html body :is(#hfStudentTilawah, #hfDetailTilawah) { display: grid; gap: 14px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-card { margin: 0; padding: 18px; position: relative; overflow: hidden; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #075C42; letter-spacing: -.01em; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .20), transparent 70%), #fff; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header .hf-learn-icon { grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 4px 0 #043D2C; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header .hf-learn-icon svg { width: 28px; height: 28px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header > p { margin: 0; font-size: 12px; font-weight: 700; color: #5D7064; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header h2 { margin: 2px 0 6px; font-size: 22px; line-height: 1.15; font-weight: 800; color: #075C42; letter-spacing: -.02em; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header > p:nth-of-type(2) { justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 12px; font-weight: 700; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-reading-progress { background: radial-gradient(170px 110px at 100% 0, rgba(240, 180, 41, .22), transparent 70%), #fff; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-count { margin-bottom: 10px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-count strong { font-size: 20px; font-weight: 800; color: #075C42; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-count span { padding: 3px 10px; border-radius: 999px; background: rgba(201, 138, 18, .14); color: #8A5B07; font-size: 12px; font-weight: 800; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress progress { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 0 0 12px; border: 0; border-radius: 999px; background: #ECE9DA; overflow: hidden; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress progress::-webkit-progress-bar { background: #ECE9DA; border-radius: 999px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #2F9E72, #075C42); border-radius: 999px; min-width: 12px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress progress::-moz-progress-bar { background: linear-gradient(90deg, #2F9E72, #075C42); border-radius: 999px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress > p { margin: 0 0 4px; font-size: 13px; line-height: 1.45; color: #5D7064; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress > p:last-child { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(7, 92, 66, .07); color: #075C42; font-weight: 700; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail > .hf-tilawah-level { margin: 0 0 12px 16px; padding: 12px 12px 10px 26px; border: 1px solid rgba(227, 224, 210, .9); border-radius: 16px; background: #FBFAF4; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail > .hf-tilawah-level.is-current { border-color: rgba(47, 158, 114, .35); background: radial-gradient(150px 90px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #EEF6EF; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-tilawah-level:not(:last-child)::before { border-left: 3px solid #D5E5D6; border-radius: 2px; left: -2px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-tilawah-level-icon { left: -16px; top: 8px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: #DDEBDD; color: #075C42; font-size: 13px; font-weight: 800; box-shadow: 0 3px 0 #C3D8C4; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-tilawah-level.is-current .hf-tilawah-level-icon { background: linear-gradient(160deg, #2F9E72, #075C42); color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail > li > strong { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; color: #075C42; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail ol li { min-height: 38px; padding: 6px 4px; font-size: 14px; color: var(--hf-ink); }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .trail-dot { width: 22px; height: 22px; border: 2px solid #C3D3C6; background: #fff; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .here .trail-dot, html body :is(#hfStudentTilawah, #hfDetailTilawah) .done .trail-dot { background: #075C42; border-color: #075C42; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .here .trail-dot::after { background: #F7CB4A; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail li.here { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(4, 61, 44, .08); align-items: start; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail li.here .trail-dot { margin-top: 2px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail li.here > div { font-weight: 800; color: #075C42; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail li.here small { margin-top: 2px; font-size: 12px; font-weight: 700; color: #5D7064; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail .here .btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 10px; border: 0; border-radius: 14px; background: #075C42; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 4px 0 #043D2C; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-learn-trail .here .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-card:last-child > p { margin: 0; font-size: 13.5px; color: #5D7064; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) > .hf-learn-card { margin: 0; padding: 18px; background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #fff; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .hf-learn-card h3, html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #075C42; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: #075C42; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 4px 0 #043D2C; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .hf-learn-button { min-height: 44px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; color: #075C42; font-weight: 700; box-shadow: 0 3px 0 #DAD7C6; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .hf-learn-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #DAD7C6; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .hf-learn-button[aria-pressed="true"] { background: #075C42; border-color: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) [data-reading-pick], html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) [data-reading-back] { width: 100%; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .hf-learn-form > p { margin: 10px 0; font-size: 13px; font-weight: 700; color: #5D7064; }
html body :is(#hfStudentTilawahEditor, #hfDetailTilawah [data-tilawah-editor]) .hf-juz-grid { gap: 10px; margin-bottom: 14px; }

/* Halaman Catat Tilawah (wizard) + tombol di kartu progres */
html body .hf-tilawah-next { display: grid; gap: 2px; margin: 14px 0; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(47, 158, 114, .30); background: radial-gradient(150px 90px at 100% 0, rgba(47, 158, 114, .18), transparent 70%), #EEF6EF; }
html body .hf-tilawah-next small { font-size: 12px; font-weight: 700; color: #5D7064; }
html body .hf-tilawah-next strong { font-size: 22px; font-weight: 800; line-height: 1.2; color: #075C42; letter-spacing: -.02em; }
html body .hf-tilawah-next span { font-size: 13px; font-weight: 700; color: #5D7064; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress > .btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0 0 14px; border: 0; border-radius: 14px; background: #075C42; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 4px 0 #043D2C; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-reading-progress > .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) .hf-tilawah-pending { display: inline-flex; margin-top: 8px; }
html body #hf-learning-tilawah .hf-setoran-field input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; box-shadow: 0 3px 10px rgba(4, 61, 44, .05); }
html body #hf-learning-tilawah .hf-setoran-field input:focus { border-color: #12875F; outline: 0; box-shadow: 0 0 0 3px rgba(18, 135, 95, .18); }

/* Tilawah: blok "berikutnya", aturan progres, tanda riwayat */
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header .hf-learn-next { grid-column: 1 / -1; margin: 14px 0 0; padding: 10px 14px; border: 0; border-radius: 14px; background: rgba(7, 92, 66, .08); display: grid; gap: 2px; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header .hf-learn-next strong { font-size: 12px; font-weight: 700; color: #5D7064; }
html body :is(#hfStudentTilawah, #hfDetailTilawah) > .hf-learn-header .hf-learn-next p { margin: 0; font-size: 15px; font-weight: 800; color: #075C42; }
html body .hf-learn-history .hf-hist-flag { color: #8A5B07; font-weight: 700; }
html body .hf-tl-rule { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
html body .hf-tl-rule[data-counted="true"] { background: rgba(7, 92, 66, .09); color: #075C42; }
html body .hf-tl-rule[data-counted="false"] { background: rgba(201, 138, 18, .13); color: #7A5206; }

/* Kartu Tilawah di Dashboard */
html body .hf-dash-tilawah { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 10px; align-items: center; width: 100%; margin: 0 0 14px; padding: 16px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid rgba(14, 102, 116, .18); border-radius: 20px; background: radial-gradient(170px 100px at 100% 0, rgba(53, 169, 184, .22), transparent 70%), #fff; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
html body .hf-dash-tilawah[hidden] { display: none; }
html body .hf-dash-tilawah:active { transform: scale(.985); }
html body .hf-dash-tilawah:focus-visible { outline: 3px solid rgba(14, 102, 116, .35); outline-offset: 2px; }
html body .hf-dash-tl-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 4px 0 #0A4852; }
html body .hf-dash-tl-icon svg { width: 24px; height: 24px; }
html body .hf-dash-tl-main { display: grid; gap: 2px; min-width: 0; }
html body .hf-dash-tl-main strong { font-size: 15px; font-weight: 800; line-height: 1.25; color: #075C42; }
html body .hf-dash-tl-main small { font-size: 12.5px; line-height: 1.35; color: #5D7064; font-weight: 600; }
html body .hf-dash-tl-side { display: grid; justify-items: end; line-height: 1.1; }
html body .hf-dash-tl-side b { font-size: 24px; font-weight: 800; color: #0E6674; letter-spacing: -.02em; }
html body .hf-dash-tl-side small { font-size: 11px; font-weight: 700; color: #5D7064; }
html body .hf-dash-tl-bar { grid-column: 1 / -1; display: block; height: 10px; border-radius: 999px; background: #E6EEE9; overflow: hidden; }
html body .hf-dash-tl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #35A9B8, #0E6674); }
html body .hf-dash-tl-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: #5D7064; }
html body .hf-dash-tl-cta { margin-left: auto; font-size: 12.5px; font-weight: 800; color: #0E6674; white-space: nowrap; }
html body .hf-dash-tilawah > .hf-dash-tl-cta { grid-column: 3; }

/* Kartu statistik dashboard yang bisa diklik */
html body .stat-card[data-go-tab] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
html body .stat-card[data-go-tab]:active { transform: scale(.985); }
html body .stat-card[data-go-tab]:focus-visible { outline: 3px solid rgba(7, 92, 66, .30); outline-offset: 2px; }

/* Pop up konfirmasi (uiConfirm): Keluar akun, hapus, buang perubahan */
html body .ui-modal-backdrop { background: rgba(4, 61, 44, .30); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html body .ui-modal-card { max-width: 360px; padding: 28px 22px 22px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #fff; box-shadow: 0 24px 60px rgba(4, 61, 44, .30); }
html body .ui-modal-card.ui-modal-danger { background: radial-gradient(170px 110px at 100% 0, rgba(244, 121, 56, .18), transparent 70%), #fff; }
html body .ui-modal-icon { width: 56px; height: 56px; margin-bottom: 16px; border-radius: 18px; color: #fff; }
html body .ui-modal-icon.question { background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C; }
html body .ui-modal-icon.danger { background: linear-gradient(160deg, #F47938, #D9421C); box-shadow: 0 4px 0 #A8300F; }
html body .ui-modal-icon svg { width: 26px; height: 26px; }
html body .ui-modal-title { margin-bottom: 8px; font-size: 18px; font-weight: 800; color: #075C42; letter-spacing: -.01em; }
html body .ui-modal-message { margin-bottom: 22px; font-size: 14px; line-height: 1.55; color: #5D7064; }
html body .ui-modal-input { border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(4, 61, 44, .05); }
html body .ui-modal-input:focus { border-color: #12875F; box-shadow: 0 0 0 3px rgba(18, 135, 95, .18); }
html body .ui-modal-actions { gap: 12px; }
html body .ui-modal-btn { min-height: 48px; padding: 12px 14px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 700; transition: transform .1s ease, box-shadow .1s ease; }
html body .ui-modal-btn.cancel { border: 1px solid rgba(227, 224, 210, .95); background: #fff; color: #075C42; box-shadow: 0 3px 0 #DAD7C6; }
html body .ui-modal-btn.confirm { background: #075C42; color: #fff; box-shadow: 0 4px 0 #043D2C; }
html body .ui-modal-btn.confirm.danger { background: #D9531E; box-shadow: 0 4px 0 #9A3412; }
html body .ui-modal-btn.cancel:hover, html body .ui-modal-btn.confirm:hover, html body .ui-modal-btn.confirm.danger:hover { filter: none; transform: none; }
html body .ui-modal-btn.cancel:hover { background: #FBFAF4; }
html body .ui-modal-btn:active { transform: translateY(3px); }
html body .ui-modal-btn.cancel:active { box-shadow: 0 0 0 #DAD7C6; }
html body .ui-modal-btn.confirm:active { box-shadow: 0 1px 0 #043D2C; }
html body .ui-modal-btn.confirm.danger:active { box-shadow: 0 1px 0 #9A3412; }
@media (max-width: 480px) { html body .ui-modal-card { padding: 26px 18px 18px; border-radius: 24px; } html body .ui-modal-btn { padding: 12px 10px; font-size: 14.5px; } }

/* ===== DESAIN v8: Siswa di layar laptop ===== */
@media (min-width: 1024px) {
  html body.student-dashboard-page .tabbar { left: 50% !important; right: auto !important; width: min(560px, calc(100% - 48px)) !important; transform: translateX(-50%); }
  html body .student-stats.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body .stat-card.student-stat-streak { grid-column: auto !important; }
  html body #hafalanTab:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 20px; align-items: start; }
  html body #hafalanTab > * { grid-column: 1 / -1; }
  html body #hafalanTab > #hfMemorizationProgress { grid-column: 1; grid-row: 2; margin: 0; }
  html body #hafalanTab > .hafalan-latest { grid-column: 2; grid-row: 2; margin: 0; }
  html body #murojaahTab .hf-plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) !important; align-items: stretch !important; }
  html body :is(#hfStudentTilawah, #hfDetailTilawah) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  html body [data-tab-content="ranked"]:not([hidden]) { max-width: 880px; margin-inline: auto; }
}
@media (min-width: 1024px) {
  html body #hafalanTab .hf-hafalan-heading { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; }
  html body #hafalanTab .hf-hafalan-heading > div:first-child { flex: 1 1 auto; }
  html body #hafalanTab .hf-rank-cta { width: auto !important; flex: 0 0 auto !important; padding-inline: 24px !important; }
}


/* ===== Pengajar (guru.html): bahasa desain baru ===== */
/* kartu statistik: ikon bertumpu, angka besar, label, keterangan */
html body.teacher-dashboard-page .teacher-stats-grid { gap: 12px; }
html body.teacher-dashboard-page .teacher-stat {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 0; width: 100%;
  position: relative; overflow: hidden; padding: 16px !important; border-radius: 20px !important; text-align: left; cursor: pointer;
  border: 1px solid rgba(7, 92, 66, .10) !important; box-shadow: 0 6px 18px rgba(4, 61, 44, .07) !important;
  background: radial-gradient(120px 90px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #fff !important;
}
html body.teacher-dashboard-page .teacher-pending-stat {
  background: radial-gradient(120px 90px at 100% 0, rgba(240, 180, 41, .24), transparent 70%), #fff !important; border-color: rgba(201, 138, 18, .20) !important;
}
html body.teacher-dashboard-page .teacher-stat .stat-card-header { display: contents !important; }
html body.teacher-dashboard-page .teacher-stat .stat-card-header > svg {
  order: 1; box-sizing: border-box; width: 46px !important; height: 46px !important; padding: 12px; margin-bottom: 12px; border-radius: 15px; color: #fff !important; flex: none;
  background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C, 0 8px 14px rgba(7, 92, 66, .25);
}
html body.teacher-dashboard-page .teacher-pending-stat .stat-card-header > svg { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008, 0 8px 14px rgba(201, 138, 18, .25); }
html body.teacher-dashboard-page .teacher-stat .stat-card-value { order: 2; margin: 0; font-size: 30px; line-height: 1; font-weight: 800; color: var(--hf-ink); }
html body.teacher-dashboard-page .teacher-stat .stat-card-label { order: 3; margin-top: 6px; font-size: 12px; font-weight: 600; color: #5D7064; line-height: 1.35; }
html body.teacher-dashboard-page .teacher-stat .stat-card-trend { order: 4; margin-top: 4px; font-size: 12px; color: #6F8176; }
html body.teacher-dashboard-page .teacher-total-records { margin: 14px 2px; font-size: 13px; color: #5D7064; }
html body.teacher-dashboard-page .teacher-text-button { color: #075C42; font-weight: 700; font-size: 12px !important; line-height: 1.2; text-decoration: none; min-height: 0 !important; padding: 6px 12px !important; border-radius: 999px; background: rgba(7, 92, 66, .08); flex: none; align-self: flex-start; }

/* panel "Perlu diperiksa" */
html body.teacher-dashboard-page .teacher-review-panel {
  padding: 18px; border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(170px 110px at 100% 0, rgba(240, 180, 41, .16), transparent 70%), #fff;
}
html body.teacher-dashboard-page .teacher-review-panel h2 { font-size: 16px; font-weight: 800; color: #075C42; letter-spacing: -.01em; }
html body.teacher-dashboard-page .teacher-review-message { font-size: 13px; color: #5D7064; }
html body.teacher-dashboard-page .teacher-review-row { border-color: rgba(227, 224, 210, .9); }
html body.teacher-dashboard-page .teacher-review-more {
  border: 0; border-radius: 14px; background: linear-gradient(160deg, #F7CB4A, #D99512); color: #3B2600; font-weight: 800; box-shadow: 0 4px 0 #A87008; padding: 0 16px;
}
html body.teacher-dashboard-page .teacher-review-more:active { transform: translateY(2px); box-shadow: 0 2px 0 #A87008; }

/* aksi cepat */
html body.teacher-dashboard-page .quick-action-btn {
  min-height: 62px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(227, 224, 210, .9); background: #fff; box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
}
html body.teacher-dashboard-page .quick-action-btn .quick-action-icon {
  width: 38px; height: 38px; min-width: 38px; flex-basis: 38px; border-radius: 12px; color: #fff;
  background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 3px 0 #0A4852;
}
html body.teacher-dashboard-page .quick-action-btn:nth-child(odd) .quick-action-icon { background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 3px 0 #043D2C; }
html body.teacher-dashboard-page .quick-action-icon > svg { width: 20px; height: 20px; color: #fff; }
html body.teacher-dashboard-page .quick-action-text strong { font-size: 13.5px; font-weight: 800; color: var(--hf-ink); }
html body.teacher-dashboard-page .quick-action-btn:active { transform: translateY(2px); }

/* tab Siswa */
html body.teacher-dashboard-page .section-header h2 { font-size: 22px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.02em; }
html body.teacher-dashboard-page .teacher-roster-modes { padding: 4px; border-radius: 16px; background: #E7EFE9; gap: 4px; }
html body.teacher-dashboard-page .teacher-roster-modes button { border-radius: 12px; font-weight: 700; color: #5D7064; }
html body.teacher-dashboard-page .teacher-roster-modes button[aria-pressed="true"] { background: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body.teacher-dashboard-page .teacher-search-wrap input { border-radius: 14px; border: 1px solid rgba(227, 224, 210, .95); background: #fff; box-shadow: 0 2px 8px rgba(4, 61, 44, .05); }
html body.teacher-dashboard-page .teacher-filter { border-radius: 999px; font-weight: 700; background: #fff; border-color: rgba(227, 224, 210, .95); }
html body.teacher-dashboard-page .teacher-filter.is-active { background: #075C42; border-color: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body.teacher-dashboard-page .siswa-card {
  border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(150px 100px at 100% 0, rgba(47, 158, 114, .12), transparent 70%), #fff;
}
html body.teacher-dashboard-page .siswa-card.has-pending { border-color: rgba(201, 138, 18, .35); background: radial-gradient(150px 100px at 100% 0, rgba(240, 180, 41, .22), transparent 70%), #fff; }

/* tab Tilawah (daftar siswa) */
html body #hfTeacherTilawah > .hf-learn-card { margin: 0; padding: 18px; border-radius: 20px; background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #fff; }
html body #hfTeacherTilawah > .hf-learn-card h2 { font-size: 20px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.02em; }
html body #hfTeacherTilawah > .hf-learn-card > p { font-size: 13.5px; color: #5D7064; }
html body #hfTeacherTilawah input[type="search"] { border-radius: 14px; border: 1px solid rgba(227, 224, 210, .95); background: #fff; padding: 12px 14px; }
html body #hfTeacherTilawah .hf-learn-history { display: grid; gap: 8px; margin-top: 14px; }
html body #hfTeacherTilawah .hf-learn-history li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 12px 14px; border: 1px solid rgba(227, 224, 210, .9); border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(4, 61, 44, .05);
}
html body #hfTeacherTilawah .hf-learn-link { text-decoration: none; color: var(--hf-ink); font-weight: 800; flex: 1 1 auto; min-width: 0; }
html body #hfTeacherTilawah .hf-learn-history li:hover { border-color: rgba(7, 92, 66, .28); }
html body #hfTeacherTilawah .hf-learn-history small { flex: 0 1 auto; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(240, 180, 41, .18); color: #8A5B07; text-align: right; }
html body #hfTeacherTilawah .hf-learn-history li[data-placed] small { background: rgba(7, 92, 66, .10); color: #075C42; }
html body #hfTeacherTilawah .hf-learn-history li[data-placed] small { flex: 1 1 100%; text-align: left; border-radius: 12px; }
html body #hfDetailTilawah .hf-learn-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
html body #hfDetailTilawah .hf-learn-tools .hf-learn-button { min-height: 44px; padding: 0 16px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; color: #075C42; font-weight: 700; box-shadow: 0 3px 0 #DAD7C6; }
html body #hfDetailTilawah .hf-learn-tools .hf-learn-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #DAD7C6; }

/* Dialog Pengajar: target bulanan, unduh raport, target di detail siswa */
html body :is(dialog.bulk-target-dialog, dialog.detail-target-dialog) {
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 28px; background: #fff; box-shadow: 0 28px 70px rgba(4, 61, 44, .32);
}
html body :is(dialog.bulk-target-dialog, dialog.detail-target-dialog)::backdrop { background: rgba(4, 61, 44, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .bulk-target-head { padding: 18px 20px; border-bottom: 1px solid rgba(227, 224, 210, .9); }
html body .bulk-target-head h2 { font-size: 19px; font-weight: 800; color: #075C42; letter-spacing: -.01em; }
html body .bulk-target-head > button { width: 40px; height: 40px; min-width: 40px; border: 0; border-radius: 50%; background: #E1F0E7; color: #075C42; }
html body .bulk-target-field { color: #075C42; font-weight: 700; }
html body .bulk-target-field :is(input, select) { min-height: 48px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; }
html body .bulk-target-field :is(input, select):focus { border-color: #12875F; outline: 0; box-shadow: 0 0 0 3px rgba(18, 135, 95, .18); }
html body .bulk-target-section-head h3 { font-size: 16px; font-weight: 800; color: #075C42; }
html body .bulk-target-section-head > span { padding: 3px 10px; border-radius: 999px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 12px; font-weight: 800; }
html body .bulk-target-selection-tools button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 12px; background: #fff; color: #075C42; font-weight: 700; box-shadow: 0 3px 0 #DAD7C6; }
html body .bulk-target-selection-tools button:active { transform: translateY(2px); box-shadow: 0 1px 0 #DAD7C6; }
html body .bulk-target-students { border: 1px solid rgba(227, 224, 210, .95); border-radius: 16px; background: #FBFAF4; }
html body :is(dialog.bulk-target-dialog, dialog.detail-target-dialog) .btn-primary { width: 100%; min-height: 48px; border: 0; color: #fff; font-weight: 800; }
html body :is(dialog.bulk-target-dialog, dialog.detail-target-dialog) .btn-primary:disabled { background: #8FB5A5; box-shadow: none; opacity: 1; }
html body :is(dialog.bulk-target-dialog, dialog.detail-target-dialog) .btn-secondary { min-height: 48px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; color: var(--hf-ink); font-weight: 700; box-shadow: 0 3px 0 #DAD7C6; }
html body :is(dialog.bulk-target-dialog, dialog.detail-target-dialog) .btn-secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 #DAD7C6; }
html body .bulk-target-head { background: #fff; }
html body .bulk-target-students { background: #fff; }

/* Pengajar: laptop */
@media (min-width: 1024px) {
  html body.teacher-dashboard-page .tabbar { left: 50% !important; right: auto !important; width: min(520px, calc(100% - 48px)) !important; transform: translateX(-50%); }
  html body.teacher-dashboard-page [data-tab-content="dashboard"]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; align-items: start; }
  html body.teacher-dashboard-page [data-tab-content="dashboard"] > * { grid-column: 1 / -1; min-width: 0; }
  html body.teacher-dashboard-page [data-tab-content="dashboard"] > .teacher-stats-grid { grid-column: 1; grid-row: 2; }
  html body.teacher-dashboard-page [data-tab-content="dashboard"] > .teacher-total-records { grid-column: 1; grid-row: 3; margin: 0 2px; }
  html body.teacher-dashboard-page [data-tab-content="dashboard"] > .teacher-review-panel { grid-column: 2; grid-row: 2 / span 2; margin: 0; align-self: stretch; }
  html body.teacher-dashboard-page .teacher-dashboard-top { align-items: center; }
  html body.teacher-dashboard-page .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html body #hfTeacherTilawah .hf-learn-history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #hfTeacherTilawah > .hf-learn-card { max-width: 980px; margin-inline: auto; }
}

/* Pengajar: kartu penempatan Tilawah dan hafalan awal di dashboard */
html body.teacher-dashboard-page .teacher-setup { display: grid; gap: 14px; margin: 16px 0; }
html body.teacher-dashboard-page .teacher-setup-card {
  padding: 16px; border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(170px 110px at 100% 0, rgba(53, 169, 184, .16), transparent 70%), #fff;
}
html body.teacher-dashboard-page .teacher-setup-card[data-setup="hafalan"] { background: radial-gradient(170px 110px at 100% 0, rgba(240, 180, 41, .20), transparent 70%), #fff; }
html body.teacher-dashboard-page .teacher-setup-card > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; }
html body.teacher-dashboard-page .teacher-setup-card h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.01em; }
html body.teacher-dashboard-page .teacher-setup-card header p { margin: 2px 0 0; font-size: 12.5px; color: #5D7064; line-height: 1.4; }
html body.teacher-dashboard-page .teacher-setup-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; }
html body.teacher-dashboard-page .teacher-setup-icon svg { width: 23px; height: 23px; }
html body.teacher-dashboard-page .teacher-setup-icon[data-tone="teal"] { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 4px 0 #0A4852; }
html body.teacher-dashboard-page .teacher-setup-icon[data-tone="gold"] { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008; }
html body.teacher-dashboard-page .teacher-setup-count { min-width: 30px; padding: 5px 10px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 800; background: rgba(14, 102, 116, .12); color: #0E6674; }
html body.teacher-dashboard-page .teacher-setup-card[data-setup="hafalan"] .teacher-setup-count { background: rgba(201, 138, 18, .16); color: #8A5B07; }
html body.teacher-dashboard-page .teacher-setup-modes { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: #E7EFE9; }
html body.teacher-dashboard-page .teacher-setup-modes[hidden] { display: none; }
html body.teacher-dashboard-page .teacher-setup-modes button { flex: 1 1 0; min-height: 34px; border: 0; border-radius: 10px; background: transparent; color: #5D7064; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
html body.teacher-dashboard-page .teacher-setup-modes button[aria-pressed="true"] { background: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body.teacher-dashboard-page .teacher-setup-group { margin-bottom: 8px; border: 1px solid rgba(227, 224, 210, .9); border-radius: 16px; background: #FBFAF4; overflow: hidden; }
html body.teacher-dashboard-page .teacher-setup-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
html body.teacher-dashboard-page .teacher-setup-group > summary::-webkit-details-marker { display: none; }
html body.teacher-dashboard-page .teacher-setup-group > summary strong { font-size: 14px; font-weight: 800; color: #075C42; }
html body.teacher-dashboard-page .teacher-setup-group > summary span { padding: 3px 10px; border-radius: 999px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 12px; font-weight: 700; }
html body.teacher-dashboard-page .teacher-setup-group[open] > summary { border-bottom: 1px solid rgba(227, 224, 210, .9); }
html body.teacher-dashboard-page .teacher-setup-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; color: inherit; text-decoration: none; border-top: 1px solid rgba(227, 224, 210, .7); background: #fff; }
html body.teacher-dashboard-page .teacher-setup-group > .teacher-setup-row:first-of-type { border-top: 0; }
html body.teacher-dashboard-page .teacher-setup > .teacher-setup-card > .teacher-setup-body > .teacher-setup-row { border: 1px solid rgba(227, 224, 210, .9); border-radius: 16px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(4, 61, 44, .05); }
html body.teacher-dashboard-page .teacher-setup-row:hover { background: #F4F8F2; }
html body.teacher-dashboard-page .teacher-setup-avatar { display: grid; width: 38px; height: 38px; }
html body.teacher-dashboard-page .teacher-setup-avatar > * { max-width: 38px; max-height: 38px; }
html body.teacher-dashboard-page .teacher-setup-name { min-width: 0; display: grid; }
html body.teacher-dashboard-page .teacher-setup-name strong { font-size: 14px; font-weight: 800; color: var(--hf-ink); overflow-wrap: anywhere; }
html body.teacher-dashboard-page .teacher-setup-name small { font-size: 12px; color: #6F8176; }
html body.teacher-dashboard-page .teacher-setup-chip { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; background: rgba(244, 121, 56, .14); color: #B0441A; }
html body.teacher-dashboard-page .teacher-setup-chip[data-tone="gold"] { background: rgba(201, 138, 18, .16); color: #8A5B07; }
html body.teacher-dashboard-page .teacher-setup-row > svg { width: 16px; height: 16px; color: #8AA394; }
html body.teacher-dashboard-page .teacher-setup-more { width: 100%; min-height: 42px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; color: #075C42; font: inherit; font-weight: 700; box-shadow: 0 3px 0 #DAD7C6; cursor: pointer; }
html body.teacher-dashboard-page .teacher-setup-more:active { transform: translateY(2px); box-shadow: 0 1px 0 #DAD7C6; }
html body.teacher-dashboard-page .teacher-setup-empty { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(7, 92, 66, .06); color: #5D7064; font-size: 13px; line-height: 1.5; }
html body.teacher-dashboard-page .teacher-setup-empty.is-done { color: #075C42; font-weight: 700; }
html body.teacher-dashboard-page .teacher-setup-row:has(.teacher-setup-chip) { grid-template-columns: auto minmax(0, 1fr) auto auto; }
@media (max-width: 420px) {
  html body.teacher-dashboard-page .teacher-setup-row:has(.teacher-setup-chip) { grid-template-columns: auto minmax(0, 1fr) auto; }
  html body.teacher-dashboard-page .teacher-setup-row:has(.teacher-setup-chip) > svg { display: none; }
}
@media (min-width: 1024px) {
  html body.teacher-dashboard-page .teacher-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  html body.teacher-dashboard-page .tabbar { width: min(380px, calc(100% - 48px)) !important; }
}

/* Pengajar: menu profil bergaya kaca, sama seperti siswa */
html body.teacher-dashboard-page .profile-dropdown-menu {
  min-width: 220px; width: auto; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 12px 32px rgba(4, 61, 44, .16), 0 0 0 1px rgba(7, 92, 66, .07);
}
html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px; border: 0; border-radius: 11px;
  background: transparent; box-shadow: none; font-size: 14px; font-weight: 700; color: var(--hf-ink); text-align: left;
}
html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-item:hover, html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-item:focus-visible { background: rgba(7, 92, 66, .08); }
html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-item.danger { color: #C2410C; }
html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-item.danger:hover { background: rgba(228, 87, 46, .10); }
html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-item svg { display: none !important; }
html body.teacher-dashboard-page .profile-dropdown-menu .dropdown-divider { height: 1px; margin: 4px 6px; background: rgba(7, 92, 66, .10); }
html body.teacher-dashboard-page #hfAccountMenuIdentity { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 9px; margin-bottom: 4px; border-bottom: 1px solid rgba(7, 92, 66, .10); }
html body.teacher-dashboard-page #hfAccountMenuIdentity strong { font-size: 14px; font-weight: 800; color: #075C42; line-height: 1.25; }
html body.teacher-dashboard-page #hfAccountMenuIdentity span { font-size: 12px; font-weight: 600; color: #6F8176; }

/* Banner peninjauan (Pengajar / Admin / Pengelola membuka detail) */
html body #hfReviewContext {
  position: sticky; top: 6px; z-index: 920; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  width: calc(100% - 24px); max-width: 1144px; margin: 8px auto 4px; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid rgba(7, 92, 66, .12); border-radius: 20px;
  background: radial-gradient(220px 120px at 100% 0, rgba(240, 180, 41, .20), transparent 70%), radial-gradient(220px 120px at 0 0, rgba(47, 158, 114, .14), transparent 70%), rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 18px rgba(4, 61, 44, .08); color: var(--hf-ink); line-height: 1.3;
}
html body #hfReviewContext .hf-review-back {
  grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; width: auto; height: 42px; padding: 0; border-radius: 14px;
  background: #075C42; color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; box-shadow: 0 4px 0 #043D2C;
}
html body #hfReviewContext .hf-review-back:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body #hfReviewContext .hf-review-back svg { width: 20px; height: 20px; }
html body #hfReviewContext .hf-review-back span { display: none; }
html body #hfReviewContext .hf-review-main { grid-column: 2; grid-row: 1; min-width: 0; display: grid; gap: 1px; }
html body #hfReviewContext .hf-review-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5D7064; }
html body #hfReviewContext .hf-review-subject { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--hf-ink); overflow-wrap: anywhere; }
html body #hfReviewContext .hf-review-main nav { display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-size: 12px; color: #6F8176; }
html body #hfReviewContext .hf-review-main nav a { color: #075C42; font-weight: 700; text-decoration: none; }
html body #hfReviewContext .hf-review-main nav a:hover { text-decoration: underline; }
html body #hfReviewContext .hf-review-actor { grid-column: 3; grid-row: 1; display: grid; justify-items: end; gap: 1px; margin: 0; padding: 6px 12px; border-radius: 14px; background: rgba(7, 92, 66, .08); font-size: 12px; }
html body #hfReviewContext .hf-review-actor small { font-size: 10.5px; font-weight: 700; color: #5D7064; }
html body #hfReviewContext .hf-review-actor strong { font-size: 13px; font-weight: 800; color: #075C42; }
html body #hfReviewContext .hf-review-actor em { font-size: 11px; font-style: normal; font-weight: 700; color: #8A5B07; }
html body #hfReviewContext .hf-review-actions { grid-column: 1 / -1; grid-row: 2; max-width: none; justify-content: flex-start; }
html body #hfReviewContext .hf-review-actions details { border-radius: 14px; background: rgba(255, 255, 255, .7); padding: 6px 10px; }
@media (min-width: 680px) {
  html body #hfReviewContext .hf-review-back { padding: 0 16px; }
  html body #hfReviewContext .hf-review-back span { display: inline; }
  html body #hfReviewContext { padding: 12px 16px; }
}
@media (max-width: 420px) {
  html body #hfReviewContext .hf-review-actor { padding: 5px 9px; }
  html body #hfReviewContext .hf-review-subject { font-size: 16px; }
}

/* Detail siswa: tombol dan menu pengaturan */
html body.teacher-detail-page .hf-student-settings > summary {
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; color: #075C42; box-shadow: 0 3px 0 #DAD7C6;
}
html body.teacher-detail-page .hf-student-settings[open] > summary { background: #E1F0E7; border-color: rgba(7, 92, 66, .25); }
html body.teacher-detail-page .hf-settings-menu {
  width: 268px; max-height: min(72dvh, 480px); padding: 8px; border-radius: 20px; gap: 2px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 16px 40px rgba(4, 61, 44, .20), 0 0 0 1px rgba(7, 92, 66, .07);
}
html body.teacher-detail-page .hf-settings-menu .btn-manage-btn {
  min-height: 48px; padding: 6px 10px; border-radius: 14px; gap: 12px; background: transparent; box-shadow: none; font-size: 14px; font-weight: 700; color: var(--hf-ink);
}
html body.teacher-detail-page .hf-settings-menu .btn-manage-btn:hover, html body.teacher-detail-page .hf-settings-menu .btn-manage-btn:focus-visible { background: rgba(7, 92, 66, .08); }
html body.teacher-detail-page .hf-settings-menu .btn-manage-btn:disabled { opacity: .5; }
html body.teacher-detail-page .hf-settings-menu .btn-manage-btn > svg {
  box-sizing: border-box; width: 34px; height: 34px; padding: 7px; flex: 0 0 34px; border-radius: 11px; color: #fff;
  background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 3px 0 #043D2C;
}
html body.teacher-detail-page .hf-settings-menu #juzBtn > svg { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 3px 0 #A87008; }
html body.teacher-detail-page .hf-settings-menu #focusBtn > svg { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 3px 0 #0A4852; }
html body.teacher-detail-page .hf-settings-menu #scheduleBtn > svg { background: linear-gradient(160deg, #F58A55, #D9421C); box-shadow: 0 3px 0 #A5300F; }
html body.teacher-detail-page .hf-settings-menu #detailTargetOpen > svg { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 3px 0 #A87008; }
html body.teacher-detail-page .hf-settings-menu #raportBtn > svg { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 3px 0 #0A4852; }
html body.teacher-detail-page .hf-settings-menu #waBtn > svg { background: linear-gradient(160deg, #3FBF6B, #1F8A47); box-shadow: 0 3px 0 #146333; }

/* Pengajar: kartu dashboard ringkas (Tilawah + hafalan awal) yang membuka halaman penuh */
html body.teacher-dashboard-page .teacher-setup { display: grid; gap: 12px; margin: 16px 0; }
html body.teacher-dashboard-page button.teacher-setup-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
  text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid rgba(227, 224, 210, .9); border-radius: 20px;
  box-shadow: 0 6px 18px rgba(4, 61, 44, .07), 0 3px 0 #E3E0D2; transition: transform .08s, box-shadow .08s;
}
html body.teacher-dashboard-page button.teacher-setup-card:active { transform: translateY(2px); box-shadow: 0 4px 12px rgba(4, 61, 44, .06), 0 1px 0 #E3E0D2; }
html body.teacher-dashboard-page button.teacher-setup-card:focus-visible { outline: 3px solid rgba(18, 135, 95, .35); outline-offset: 2px; }
html body.teacher-dashboard-page .teacher-setup-copy { min-width: 0; display: grid; gap: 2px; }
html body.teacher-dashboard-page .teacher-setup-copy strong { font-size: 15.5px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.01em; }
html body.teacher-dashboard-page .teacher-setup-copy small { font-size: 12.5px; line-height: 1.4; color: #5D7064; }
html body.teacher-dashboard-page .teacher-setup-chevron { width: 18px; height: 18px; color: #8AA394; }
html body.teacher-dashboard-page .teacher-setup-card[data-state="done"] .teacher-setup-copy small { color: #075C42; font-weight: 600; }
html body.teacher-dashboard-page .teacher-setup-card[data-state="done"] .teacher-setup-icon { filter: saturate(.55); opacity: .85; }
@media (max-width: 380px) { html body.teacher-dashboard-page button.teacher-setup-card { grid-template-columns: auto minmax(0, 1fr) auto; } html body.teacher-dashboard-page .teacher-setup-chevron { display: none; } }

/* Halaman penuh penempatan Tilawah / hafalan awal */
html body dialog.setup-dialog { width: min(760px, calc(100vw - 24px)); height: min(780px, calc(100dvh - 24px)); max-height: none; }
html body dialog.setup-dialog[open] { display: flex; flex-direction: column; }
html body dialog.setup-dialog .bulk-target-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body dialog.setup-dialog .setup-head-copy { min-width: 0; }
html body dialog.setup-dialog .setup-head-copy p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: #5D7064; }
html body dialog.setup-dialog .setup-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 18px; background: #FBFAF4; }
html body dialog.setup-dialog .bulk-target-status:empty { display: none; }
html body dialog.setup-dialog .bulk-target-status { margin: 0 0 12px; }
html body dialog.setup-dialog .setup-modes { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: #E7EFE9; }
html body dialog.setup-dialog .setup-modes button { flex: 1 1 0; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #5D7064; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: none; }
html body dialog.setup-dialog .setup-modes button[aria-pressed="true"] { background: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body dialog.setup-dialog .setup-search input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 14px; background: #fff; font: inherit; }
html body dialog.setup-dialog .setup-search input:focus { border-color: #12875F; outline: 0; box-shadow: 0 0 0 3px rgba(18, 135, 95, .18); }
html body dialog.setup-dialog .setup-tools { display: flex; gap: 8px; margin: 10px 0 12px; }
html body dialog.setup-dialog .setup-tools button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(227, 224, 210, .95); border-radius: 12px; background: #fff; color: #075C42; font: inherit; font-size: 13.5px; font-weight: 700; box-shadow: 0 3px 0 #DAD7C6; cursor: pointer; }
html body dialog.setup-dialog .setup-tools button:active { transform: translateY(2px); box-shadow: 0 1px 0 #DAD7C6; }
html body dialog.setup-dialog .setup-group { margin-bottom: 12px; border: 1px solid rgba(227, 224, 210, .9); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(4, 61, 44, .04); }
html body dialog.setup-dialog .setup-group > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: #F1F6EF; border-bottom: 1px solid rgba(227, 224, 210, .9); }
html body dialog.setup-dialog .setup-group > header strong, html body dialog.setup-dialog .setup-group-check { font-size: 14.5px; font-weight: 800; color: #075C42; }
html body dialog.setup-dialog .setup-group-check { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
html body dialog.setup-dialog .setup-group > header small { padding: 3px 10px; border-radius: 999px; background: rgba(7, 92, 66, .09); color: #075C42; font-size: 12px; font-weight: 700; white-space: nowrap; }
html body dialog.setup-dialog .setup-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid rgba(227, 224, 210, .7); color: inherit; text-decoration: none; cursor: pointer; }
html body dialog.setup-dialog .setup-group > header + .setup-row, html body dialog.setup-dialog .setup-group.is-flat > .setup-row:first-child { border-top: 0; }
html body dialog.setup-dialog .setup-row.is-link { grid-template-columns: auto minmax(0, 1fr) auto auto; }
html body dialog.setup-dialog .setup-row:has(input:checked) { background: #EAF4EE; }
html body dialog.setup-dialog .setup-row:hover { background: #F4F8F2; }
html body dialog.setup-dialog input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #075C42; cursor: pointer; }
html body dialog.setup-dialog .setup-avatar { display: grid; width: 38px; height: 38px; }
html body dialog.setup-dialog .setup-avatar > * { max-width: 38px; max-height: 38px; }
html body dialog.setup-dialog .setup-name { min-width: 0; display: grid; }
html body dialog.setup-dialog .setup-name strong { font-size: 14px; font-weight: 800; color: var(--hf-ink); overflow-wrap: anywhere; }
html body dialog.setup-dialog .setup-name small { font-size: 12px; color: #6F8176; }
html body dialog.setup-dialog .setup-chip { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; background: rgba(244, 121, 56, .14); color: #B0441A; }
html body dialog.setup-dialog .setup-chip[data-tone="gold"] { background: rgba(201, 138, 18, .16); color: #8A5B07; }
html body dialog.setup-dialog .setup-row > svg { width: 16px; height: 16px; color: #8AA394; }
html body dialog.setup-dialog .setup-empty { margin: 0; padding: 14px 16px; border-radius: 16px; background: rgba(7, 92, 66, .06); color: #5D7064; font-size: 13.5px; line-height: 1.55; }
html body dialog.setup-dialog .setup-empty.is-done { color: #075C42; font-weight: 700; }
html body dialog.setup-dialog .setup-footer { flex: 0 0 auto; display: grid; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(227, 224, 210, .9); background: #fff; }
html body dialog.setup-dialog .setup-selected { font-size: 13px; font-weight: 800; color: #075C42; }
html body dialog.setup-dialog .setup-selected[hidden] { display: none; }
html body dialog.setup-dialog .setup-footer-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
html body dialog.setup-dialog .setup-footer-actions [hidden] { display: none; }
html body dialog.setup-dialog .setup-note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #4F6358; }
html body dialog.setup-dialog .setup-who { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
html body dialog.setup-dialog .setup-who span { padding: 4px 10px; border-radius: 999px; background: #E1F0E7; color: #075C42; font-size: 12px; font-weight: 700; }
html body dialog.setup-dialog .setup-who .is-more { background: #F2EFE3; color: #6F6A4F; }
html body dialog.setup-dialog #setupFormView .bulk-target-field { display: grid; gap: 6px; margin-bottom: 12px; }
html body dialog.setup-dialog .setup-summary { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(227, 224, 210, .95); color: var(--hf-ink); font-size: 13.5px; line-height: 1.5; }
html body dialog.setup-dialog .setup-help { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: #6F8176; }
html body dialog.setup-dialog .setup-choice { display: grid; gap: 10px; margin-bottom: 14px; }
html body dialog.setup-dialog .setup-choice button { display: grid; gap: 3px; padding: 13px 15px; text-align: left; font: inherit; border: 1.5px solid rgba(227, 224, 210, .95); border-radius: 16px; background: #fff; color: var(--hf-ink); cursor: pointer; box-shadow: 0 3px 0 #DAD7C6; }
html body dialog.setup-dialog .setup-choice button strong { font-size: 14px; font-weight: 800; }
html body dialog.setup-dialog .setup-choice button small { font-size: 12.5px; color: #5D7064; }
html body dialog.setup-dialog .setup-choice button[aria-pressed="true"] { border-color: #075C42; background: #EAF4EE; box-shadow: 0 3px 0 #075C42; }
html body dialog.setup-dialog .setup-juz { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
html body dialog.setup-dialog .setup-juz button { min-height: 44px; border: 1.5px solid rgba(227, 224, 210, .95); border-radius: 12px; background: #fff; color: #075C42; font: inherit; font-size: 14px; font-weight: 800; box-shadow: 0 3px 0 #DAD7C6; cursor: pointer; }
html body dialog.setup-dialog .setup-juz button[aria-pressed="true"] { background: #075C42; border-color: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body dialog.setup-dialog .setup-confirm { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(227, 224, 210, .95); font-size: 13.5px; line-height: 1.5; color: var(--hf-ink); cursor: pointer; }
html body dialog.setup-dialog .setup-progress { height: 10px; margin: 0 0 12px; border-radius: 999px; background: #E1EBE4; overflow: hidden; }
html body dialog.setup-dialog .setup-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12875F, #075C42); transition: width .25s; }
html body dialog.setup-dialog .setup-note .is-bad { color: #B0261A; font-weight: 800; }
html body dialog.setup-dialog .setup-results { border: 1px solid rgba(227, 224, 210, .9); border-radius: 18px; background: #fff; overflow: hidden; }
html body dialog.setup-dialog .setup-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid rgba(227, 224, 210, .7); }
html body dialog.setup-dialog .setup-result:first-child { border-top: 0; }
html body dialog.setup-dialog .setup-result strong { display: block; font-size: 14px; font-weight: 800; color: var(--hf-ink); }
html body dialog.setup-dialog .setup-result small { display: block; font-size: 12.5px; color: #5D7064; }
html body dialog.setup-dialog .setup-result-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 800; background: #EFEDE0; color: #6F6A4F; }
html body dialog.setup-dialog .setup-result[data-state="ok"] .setup-result-mark { background: #D7EEDF; color: #075C42; }
html body dialog.setup-dialog .setup-result[data-state="error"] .setup-result-mark { background: #FBE0DC; color: #B0261A; }
html body dialog.setup-dialog .setup-result[data-state="error"] small { color: #B0261A; }
@media (max-width: 600px) {
  html body dialog.setup-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  html body dialog.setup-dialog .setup-body { padding: 12px 14px 16px; }
  html body dialog.setup-dialog .setup-footer { padding-left: 14px; padding-right: 14px; }
  html body dialog.setup-dialog .setup-juz { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Pengajar: daftar siswa lebih hidup (kartu siswa, kartu kelas dan kelompok) */
html body.teacher-dashboard-page :is(.teacher-student-card, .teacher-roster-card) {
  --t1: #2F9E72; --t2: #075C42; --edge: #043D2C; --soft: rgba(47, 158, 114, .16); --ink: #075C42;
}
html body.teacher-dashboard-page :is(.teacher-student-card, .teacher-roster-card)[data-tone="teal"] { --t1: #35A9B8; --t2: #0E6674; --edge: #0A4852; --soft: rgba(53, 169, 184, .18); --ink: #0E6674; }
html body.teacher-dashboard-page :is(.teacher-student-card, .teacher-roster-card)[data-tone="gold"] { --t1: #F7CB4A; --t2: #D99512; --edge: #A87008; --soft: rgba(240, 180, 41, .24); --ink: #8A5B07; }
html body.teacher-dashboard-page :is(.teacher-student-card, .teacher-roster-card)[data-tone="coral"] { --t1: #F58A5B; --t2: #E4572E; --edge: #A93A1A; --soft: rgba(244, 121, 56, .18); --ink: #B0441A; }

@keyframes ts-rise { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ts-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 114, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47, 158, 114, 0); } }

html body.teacher-dashboard-page .teacher-student-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 14px; overflow: hidden; border: 1px solid rgba(227, 224, 210, .9); border-radius: 24px;
  background: radial-gradient(190px 130px at 100% 0, var(--soft), transparent 72%), radial-gradient(120px 90px at 0 100%, var(--soft), transparent 75%), #fff;
  box-shadow: 0 8px 22px rgba(4, 61, 44, .08), 0 3px 0 rgba(227, 224, 210, .95); transition: transform .12s, box-shadow .12s;
}
html body.teacher-dashboard-page .teacher-student-card:active { transform: translateY(2px); box-shadow: 0 4px 12px rgba(4, 61, 44, .07), 0 1px 0 rgba(227, 224, 210, .95); }
html body.teacher-dashboard-page .teacher-student-card.has-pending { border-color: rgba(228, 87, 46, .28); }
html body.teacher-dashboard-page .teacher-student-card > .hf-avatar-anchor { position: relative; flex: 0 0 auto; width: 60px; height: 60px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: linear-gradient(145deg, var(--t1), var(--t2)); box-shadow: 0 3px 0 var(--edge); }
html body.teacher-dashboard-page .teacher-student-card > .hf-avatar-anchor > .hf-role-avatar { width: 100%; height: 100%; border-radius: 50%; background: #fff; }
html body.teacher-dashboard-page .teacher-student-card.is-online > .hf-avatar-anchor::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; background: #2FBF71; border: 3px solid #fff; box-sizing: border-box; animation: ts-pulse 1.8s ease-out infinite; }
html body.teacher-dashboard-page .teacher-student-card .hf-student-card-link { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; flex: 1; }
html body.teacher-dashboard-page .teacher-student-card .ts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
html body.teacher-dashboard-page .teacher-student-card .teacher-student-copy { gap: 1px; }
html body.teacher-dashboard-page .teacher-student-card .teacher-student-name { font-size: 16.5px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
html body.teacher-dashboard-page .teacher-student-card .teacher-student-username { font-size: 12.5px; font-weight: 600; color: #6F8176; }
html body.teacher-dashboard-page .teacher-student-card .teacher-student-arrow { flex: 0 0 auto; width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 50%; background: var(--soft); color: var(--ink); margin-top: 2px; }
html body.teacher-dashboard-page .teacher-student-card .teacher-pending-badge { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; background: linear-gradient(160deg, #F58A5B, #E4572E); color: #fff; font-size: 11.5px; font-weight: 800; box-shadow: 0 3px 0 #A93A1A; white-space: nowrap; }
html body.teacher-dashboard-page .teacher-student-card .ts-status { display: block; font-size: 12px; line-height: 1.4; }
html body.teacher-dashboard-page .teacher-student-card .ts-status .teacher-online-status { margin: 0; }
html body.teacher-dashboard-page .teacher-student-card .ts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body.teacher-dashboard-page .teacher-student-card .ts-chip { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(7, 92, 66, .07); color: #5D7064; }
html body.teacher-dashboard-page .teacher-student-card .ts-chip.is-class { background: linear-gradient(160deg, var(--t1), var(--t2)); color: #fff; box-shadow: 0 2px 0 var(--edge); }
html body.teacher-dashboard-page .teacher-student-card .ts-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html body.teacher-dashboard-page .teacher-student-card .ts-stat { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(227, 224, 210, .8); font-size: 12px; font-weight: 600; color: #5D7064; white-space: nowrap; }
html body.teacher-dashboard-page .teacher-student-card .ts-stat svg { flex: 0 0 auto; width: 20px; height: 20px; padding: 3px; box-sizing: border-box; border-radius: 8px; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); }
html body.teacher-dashboard-page .teacher-student-card .ts-stat[data-kind="murojaah"] svg { background: linear-gradient(160deg, #35A9B8, #0E6674); }
html body.teacher-dashboard-page .teacher-student-card .ts-stat b { font-size: 15px; font-weight: 800; color: var(--hf-ink); }

/* kartu kelas / kelompok */
html body.teacher-dashboard-page .teacher-roster-cards { grid-template-columns: 1fr; gap: 12px; }
html body.teacher-dashboard-page .teacher-roster-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 16px; overflow: hidden; text-align: left;
  border: 1px solid rgba(227, 224, 210, .9); border-radius: 24px; cursor: pointer; color: inherit; font: inherit;
  background: radial-gradient(200px 140px at 100% 0, var(--soft), transparent 72%), radial-gradient(130px 100px at 0 100%, var(--soft), transparent 75%), #fff;
  box-shadow: 0 8px 22px rgba(4, 61, 44, .08), 0 3px 0 rgba(227, 224, 210, .95); transition: transform .12s, box-shadow .12s;
}
html body.teacher-dashboard-page .teacher-roster-card:active { transform: translateY(2px); box-shadow: 0 4px 12px rgba(4, 61, 44, .07), 0 1px 0 rgba(227, 224, 210, .95); }
html body.teacher-dashboard-page .teacher-roster-card:focus-visible { outline: 3px solid rgba(18, 135, 95, .35); outline-offset: 2px; }
html body.teacher-dashboard-page .trc-badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(160deg, var(--t1), var(--t2)); box-shadow: 0 4px 0 var(--edge); }
html body.teacher-dashboard-page .trc-main { min-width: 0; display: grid; gap: 2px; }
html body.teacher-dashboard-page .trc-main strong { font-size: 17px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.015em; overflow-wrap: anywhere; }
html body.teacher-dashboard-page .trc-main small { margin: 0; font-size: 12.5px; color: #5D7064; }
html body.teacher-dashboard-page .trc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 7px; }
html body.teacher-dashboard-page .trc-stack { display: inline-flex; }
html body.teacher-dashboard-page .trc-bubble { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); }
html body.teacher-dashboard-page .trc-bubble:first-child { margin-left: 0; }
html body.teacher-dashboard-page .trc-bubble[data-tone="teal"] { background: linear-gradient(160deg, #35A9B8, #0E6674); }
html body.teacher-dashboard-page .trc-bubble[data-tone="gold"] { background: linear-gradient(160deg, #F7CB4A, #D99512); }
html body.teacher-dashboard-page .trc-bubble[data-tone="coral"] { background: linear-gradient(160deg, #F58A5B, #E4572E); }
html body.teacher-dashboard-page .trc-bubble.is-more { background: #E7EFE9; color: #5D7064; width: auto; min-width: 26px; padding: 0 6px; }
html body.teacher-dashboard-page .trc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(47, 158, 114, .14); color: #075C42; }
html body.teacher-dashboard-page .trc-pill i { width: 7px; height: 7px; border-radius: 50%; background: #2FBF71; animation: ts-pulse 1.8s ease-out infinite; }
html body.teacher-dashboard-page .trc-pill.is-waiting { background: rgba(244, 121, 56, .16); color: #B0441A; }
html body.teacher-dashboard-page .trc-arrow { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 50%; background: var(--soft); color: var(--ink); }

/* muncul bergantian saat pertama tampil */
@media (prefers-reduced-motion: no-preference) {
  html body.teacher-dashboard-page .is-fresh > :is(.teacher-student-card, .teacher-roster-card) { animation: ts-rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@media (prefers-reduced-motion: reduce) {
  html body.teacher-dashboard-page .teacher-student-card.is-online > .hf-avatar-anchor::after, html body.teacher-dashboard-page .trc-pill i { animation: none; }
}
@media (max-width: 360px) { html body.teacher-dashboard-page .teacher-student-card .ts-stats { grid-template-columns: 1fr; } }
@media (min-width: 700px) { html body.teacher-dashboard-page .teacher-roster-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html body.teacher-dashboard-page .teacher-roster-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Pengajar: ruang kelas / kelompok (saat satu kelas atau kelompok dibuka) */
html body.teacher-dashboard-page :is(.teacher-room-hero, #siswaList.is-room) { --t1: #2F9E72; --t2: #075C42; --edge: #043D2C; --soft: rgba(47, 158, 114, .16); --ink: #075C42; }
html body.teacher-dashboard-page :is(.teacher-room-hero, #siswaList.is-room)[data-tone="teal"] { --t1: #35A9B8; --t2: #0E6674; --edge: #0A4852; --soft: rgba(53, 169, 184, .18); --ink: #0E6674; }
html body.teacher-dashboard-page :is(.teacher-room-hero, #siswaList.is-room)[data-tone="gold"] { --t1: #E9B22E; --t2: #B87A0C; --edge: #8A5707; --soft: rgba(240, 180, 41, .24); --ink: #8A5B07; }
html body.teacher-dashboard-page :is(.teacher-room-hero, #siswaList.is-room)[data-tone="coral"] { --t1: #F58A5B; --t2: #D9481F; --edge: #A93A1A; --soft: rgba(244, 121, 56, .18); --ink: #B0441A; }

@keyframes ts-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes room-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 8px); } }

html body.teacher-dashboard-page .teacher-room-hero {
  position: relative; display: grid; gap: 14px; margin: 0 0 14px; padding: 14px 16px 16px; overflow: hidden; border-radius: 28px; color: #fff;
  background: radial-gradient(220px 160px at 100% 0, rgba(255, 255, 255, .30), transparent 70%), radial-gradient(190px 140px at 0 100%, rgba(255, 255, 255, .14), transparent 72%), linear-gradient(150deg, var(--t1), var(--t2));
  box-shadow: 0 12px 28px rgba(4, 61, 44, .20), 0 4px 0 var(--edge);
}
html body.teacher-dashboard-page .teacher-room-hero[hidden] { display: none; }
html body.teacher-dashboard-page .teacher-room-hero::before, html body.teacher-dashboard-page .teacher-room-hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); pointer-events: none; animation: room-drift 9s ease-in-out infinite; }
html body.teacher-dashboard-page .teacher-room-hero::before { width: 150px; height: 150px; right: -40px; top: -36px; }
html body.teacher-dashboard-page .teacher-room-hero::after { width: 90px; height: 90px; right: 50px; bottom: -34px; animation-delay: -4s; }
html body.teacher-dashboard-page .teacher-room-hero > * { position: relative; z-index: 1; }
html body.teacher-dashboard-page .teacher-room-hero #teacherRosterBack { justify-self: start; min-height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font: inherit; font-size: 13px; font-weight: 800; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; text-decoration: none; }
html body.teacher-dashboard-page .teacher-room-hero #teacherRosterBack:active { transform: translateY(1px); }
html body.teacher-dashboard-page .room-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
html body.teacher-dashboard-page .room-badge { display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; border-radius: 21px; background: #fff; color: var(--t2); font-size: 23px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 5px 0 rgba(0, 0, 0, .2); }
html body.teacher-dashboard-page .room-title { min-width: 0; }
html body.teacher-dashboard-page .room-kind { margin: 0 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
html body.teacher-dashboard-page .teacher-room-hero h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
html body.teacher-dashboard-page .room-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html body.teacher-dashboard-page .room-stat { display: grid; gap: 1px; justify-items: center; padding: 9px 4px; border-radius: 16px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .22); text-align: center; }
html body.teacher-dashboard-page .room-stat b { font-size: 21px; font-weight: 800; line-height: 1.1; }
html body.teacher-dashboard-page .room-stat small { font-size: 11px; font-weight: 700; opacity: .92; }
html body.teacher-dashboard-page .room-stat.is-live b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #7CF0A8; vertical-align: middle; animation: ts-pulse 1.8s ease-out infinite; }
html body.teacher-dashboard-page .room-stat.is-alert { background: #fff; color: #B0441A; border-color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .16); }

/* lantai ruang: siswa sebagai kartu avatar */
html body.teacher-dashboard-page #siswaList.is-room {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 28px; border: 1.5px dashed rgba(7, 92, 66, .16);
  background: radial-gradient(circle at 1px 1px, rgba(7, 92, 66, .11) 1.3px, transparent 1.6px) 0 0 / 18px 18px, linear-gradient(180deg, var(--soft), rgba(255, 255, 255, .5));
}
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-card { flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px 12px; text-align: center; border-radius: 22px; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-card > .hf-avatar-anchor { width: 78px; height: 78px; padding: 4px; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-card.is-online > .hf-avatar-anchor { animation: ts-bob 2.8s ease-in-out infinite; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-card.is-online > .hf-avatar-anchor::after { width: 17px; height: 17px; right: 1px; bottom: 1px; }
html body.teacher-dashboard-page #siswaList.is-room .hf-student-card-link { align-items: center; width: 100%; gap: 7px; }
html body.teacher-dashboard-page #siswaList.is-room .ts-head { flex-direction: column; align-items: center; width: 100%; gap: 0; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-copy { align-items: center; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-name { font-size: 15.5px; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-arrow { display: none; }
html body.teacher-dashboard-page #siswaList.is-room .teacher-pending-badge { position: absolute; top: 10px; right: 10px; padding: 3px 9px; font-size: 10.5px; z-index: 2; }
html body.teacher-dashboard-page #siswaList.is-room .ts-status { display: flex; justify-content: center; }
html body.teacher-dashboard-page #siswaList.is-room .ts-status .teacher-online-status { justify-content: center; text-align: center; font-size: 11.5px; }
html body.teacher-dashboard-page #siswaList.is-room .ts-chips { justify-content: center; }
html body.teacher-dashboard-page #siswaList.is-room .ts-stats { grid-template-columns: 1fr; width: 100%; gap: 6px; }
html body.teacher-dashboard-page #siswaList.is-room .ts-stat { padding: 6px 9px; }
html body.teacher-dashboard-page #siswaList.is-room .ts-stat .ts-label { order: 1; flex: 1; text-align: left; }
html body.teacher-dashboard-page #siswaList.is-room .ts-stat b { order: 2; }
@media (min-width: 700px) { html body.teacher-dashboard-page #siswaList.is-room { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html body.teacher-dashboard-page #siswaList.is-room { grid-template-columns: repeat(4, minmax(0, 1fr)); } html body.teacher-dashboard-page .teacher-room-hero { padding: 18px 22px 20px; } html body.teacher-dashboard-page .room-stats { max-width: 560px; } }
@media (prefers-reduced-motion: reduce) {
  html body.teacher-dashboard-page .teacher-room-hero::before, html body.teacher-dashboard-page .teacher-room-hero::after, html body.teacher-dashboard-page #siswaList.is-room .teacher-student-card.is-online > .hf-avatar-anchor { animation: none; }
}
html body.teacher-dashboard-page #siswaList.is-room .teacher-student-card > .hf-avatar-anchor { align-self: center; margin-inline: auto; }

/* ===== Detail siswa (akun Pengajar): banner, kartu identitas, pilih bulan ===== */
html body.teacher-detail-page #hfReviewContext {
  display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important; margin: 0 0 12px !important;
  border-radius: 20px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(7, 92, 66, .12);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 6px 18px rgba(4, 61, 44, .08);
}
html body.teacher-detail-page #hfReviewContext .hf-review-back {
  flex: 0 0 auto; width: 40px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; border-radius: 14px;
  display: grid; place-items: center; background: #E6F2EA !important; color: #075C42 !important; border: 1px solid rgba(7, 92, 66, .16) !important;
  box-shadow: 0 3px 0 rgba(7, 92, 66, .22) !important;
}
html body.teacher-detail-page #hfReviewContext .hf-review-back:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(7, 92, 66, .22) !important; }
html body.teacher-detail-page #hfReviewContext .hf-review-back span { display: none !important; }
html body.teacher-detail-page #hfReviewContext .hf-review-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 0; }
html body.teacher-detail-page #hfReviewContext .hf-review-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .08em; color: #5D7064; }
html body.teacher-detail-page #hfReviewContext .hf-review-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5A91B; box-shadow: 0 0 0 3px rgba(229, 169, 27, .22); }
html body.teacher-detail-page #hfReviewContext .hf-review-subject { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.teacher-detail-page #hfReviewContext .hf-review-main nav { display: none !important; }
html body.teacher-detail-page #hfReviewContext .hf-review-actor {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0; padding: 6px 12px !important; border-radius: 999px; background: #FFF4D4; border: 1px solid rgba(217, 149, 18, .35);
}
html body.teacher-detail-page #hfReviewContext .hf-review-actor small { display: none; }
html body.teacher-detail-page #hfReviewContext .hf-review-actor strong { font-size: 12px; color: #8A5B07; }

/* kartu identitas siswa */
html body.teacher-detail-page main .siswa-info-card {
  position: relative; overflow: visible !important; display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: center !important; gap: 4px 14px !important;
  padding: 18px 16px !important; margin: 0 0 12px !important; border: 0 !important; border-radius: 26px !important; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(247, 203, 74, .28), transparent 52%), radial-gradient(90% 120% at 0% 100%, rgba(53, 169, 184, .30), transparent 55%), linear-gradient(150deg, #0B7A57, #075C42 55%, #043D2C) !important;
  box-shadow: 0 8px 0 #032E21, 0 18px 30px rgba(4, 61, 44, .22) !important;
}
html body.teacher-detail-page main .siswa-info-card .hf-avatar-anchor { grid-column: 1; grid-row: 1 / span 3; width: 68px; height: 68px; flex: 0 0 68px; }
html body.teacher-detail-page main .siswa-info-card #siswaAvatar { width: 68px !important; height: 68px !important; min-width: 68px !important; flex: 0 0 68px; background: #fff; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 6px 14px rgba(0, 0, 0, .22); }
html body.teacher-detail-page main .siswa-info-card .siswa-info-text { display: contents; }
html body.teacher-detail-page main .siswa-info-card .siswa-info-text h1 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 1.28rem; font-weight: 800; line-height: 1.2; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
html body.teacher-detail-page main .siswa-info-card .siswa-info-username { grid-column: 2; grid-row: 2; justify-self: start; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #E4F4EA; font-size: .76rem; font-weight: 700; }
html body.teacher-detail-page main .siswa-info-card .detail-presence { grid-column: 2; grid-row: 3; justify-self: start; align-items: center; margin-top: 3px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #2E4A3C; font-size: .72rem; font-weight: 700; }
html body.teacher-detail-page main .siswa-info-card .detail-presence #siswaOnlineText { font-weight: 700; color: #2E4A3C; }
html body.teacher-detail-page main .siswa-info-card .siswa-info-hp { grid-column: 2 / -1; margin: 4px 0 0; color: #E4F4EA; }
html body.teacher-detail-page main .siswa-info-card .siswa-actions { grid-column: 3; grid-row: 1 / span 3; align-self: start; justify-self: end; }
html body.teacher-detail-page .hf-student-settings > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 16px;
  background: #fff; color: #075C42; border: 0; font-weight: 800; font-size: 13px; box-shadow: 0 4px 0 #BCD6C6; list-style: none; cursor: pointer;
}
html body.teacher-detail-page .hf-student-settings > summary:active { transform: translateY(3px); box-shadow: 0 1px 0 #BCD6C6; }
html body.teacher-detail-page .hf-student-settings[open] > summary { background: #F7CB4A; color: #5A3B00; border: 0; box-shadow: 0 4px 0 #C98F0F; }
html body.teacher-detail-page .hf-student-settings > summary > span { display: none; }
html body.teacher-detail-page .hf-student-settings[open] .hf-settings-menu { z-index: 60; }
@media (min-width: 681px) {
  html body.teacher-detail-page main .siswa-info-card { padding: 22px 24px !important; gap: 6px 18px !important; }
  html body.teacher-detail-page main .siswa-info-card .hf-avatar-anchor, html body.teacher-detail-page main .siswa-info-card #siswaAvatar { width: 84px !important; height: 84px !important; min-width: 84px !important; flex-basis: 84px; }
  html body.teacher-detail-page main .siswa-info-card .siswa-info-text h1 { font-size: 1.6rem; }
  html body.teacher-detail-page .hf-student-settings > summary > span { display: inline; }
}

/* pilih bulan ringkasan */
html body.teacher-detail-page main .detail-month-row {
  position: relative; display: flex !important; align-items: center; justify-content: space-between; flex-wrap: nowrap !important; gap: 10px; margin: 0 0 16px !important; padding: 8px 8px 8px 14px !important;
  border-radius: 20px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(7, 92, 66, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 16px rgba(4, 61, 44, .07);
}
html body.teacher-detail-page main .detail-month-row .month-selector-label {
  display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; font-weight: 800; color: #2E4A3C; white-space: nowrap;
}
html body.teacher-detail-page main .detail-month-row .month-selector-label::before {
  content: ""; width: 32px; height: 32px; border-radius: 11px; flex: 0 0 32px; box-shadow: 0 3px 0 #0E6674;
  background: #35A9B8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='3'/%3E%3Cpath d='M4 10.5h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / 18px no-repeat;
}
html body.teacher-detail-page main .detail-month-row #detailMonthSelect {
  appearance: none; -webkit-appearance: none; flex: 0 1 auto; min-width: 0; max-width: 58%; height: 44px; padding: 0 38px 0 16px; border: 0; border-radius: 15px; cursor: pointer;
  background: #E6F2EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075C42' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  color: #075C42; font: 800 14px/1 Inter, system-ui, sans-serif; box-shadow: 0 3px 0 #BCD6C6;
}
html body.teacher-detail-page main .detail-month-row #detailMonthSelect:focus-visible { outline: 3px solid rgba(53, 169, 184, .5); outline-offset: 2px; }
html body.teacher-detail-page main .detail-month-row .teacher-text-button { flex: 1 1 100%; text-align: left; }
html body.teacher-detail-page header.topbar > #hfReviewContext { box-sizing: border-box; width: auto !important; max-width: 1120px; margin: 8px 18px 12px !important; }
@media (min-width: 681px) { html body.teacher-detail-page header.topbar > #hfReviewContext { margin: 10px auto 14px !important; width: calc(100% - 48px) !important; } }
@media (min-width: 681px) {
  html body.teacher-detail-page header.topbar > #hfReviewContext { max-width: none; width: min(1144px, calc(100% - 36px)) !important; margin: 10px auto 14px !important; }
  html body.teacher-detail-page main .hf-student-settings > summary { width: auto !important; min-width: 46px; padding: 0 16px !important; }
  html body.teacher-detail-page main .hf-student-settings > summary > span { display: inline !important; white-space: nowrap; }
}

/* Detail siswa: satu bar atas saja (seperti aplikasi profesional); banner dobel disembunyikan untuk akun Pengajar */
html body.teacher-detail-page #hfReviewContext[data-signature^="Pengajar|"] { display: none !important; }
html body.teacher-detail-page .topbar .logo .hf-brand { display: none; }
html body.teacher-detail-page .topbar .logo { gap: 10px; }
html body.teacher-detail-page .topbar .logo-text { display: inline-block !important; font-size: 17px; font-weight: 800; color: var(--hf-ink); letter-spacing: -.01em; }
@media (max-width: 380px) { html body.teacher-detail-page .topbar .user-info .user-role { display: none; } }

/* Menu Catat (pengajar) — sama dengan akun Siswa */
html body.teacher-detail-page .fab-action { background: #fff; border: 1px solid rgba(7, 92, 66, .10); border-radius: 20px; min-height: 68px; padding: 10px 16px 10px 12px; box-shadow: 0 10px 26px rgba(4, 61, 44, .16); }
html body.teacher-detail-page .fab-action-icon { width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C; }
html body.teacher-detail-page #guruFabMurojaah .fab-action-icon { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008; }
html body.teacher-detail-page #guruFabTilawah .fab-action-icon { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 4px 0 #0A4852; }
html body.teacher-detail-page .fab-action-icon svg { width: 26px !important; height: 26px !important; stroke-width: 1.9; }
html body.teacher-detail-page .fab-action strong { font-size: 15px; font-weight: 800; color: var(--hf-ink); }
html body.teacher-detail-page .fab-action small { font-size: 12px; font-weight: 500; color: #5D7064; }
html body:has(#guruFabMain.open)::before { content: ""; position: fixed; inset: 0; z-index: 8000; background: rgba(4, 61, 44, .30); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: hf-fab-veil .2s ease both; }
html body:has(#guruFabMain.open) .fab-container { z-index: 8100; }

/* Foto profil di kartu identitas: bulat, ukuran tetap, selaras dengan avatar lain */
html body.teacher-detail-page main .siswa-info-card .hf-avatar-anchor { width: 72px !important; height: 72px !important; min-width: 72px; flex: 0 0 72px; aspect-ratio: 1; }
html body.teacher-detail-page main .siswa-info-card #siswaAvatar {
  width: 72px !important; height: 72px !important; min-width: 72px !important; max-width: 72px; aspect-ratio: 1 / 1; border-radius: 50% !important; padding: 8px; box-sizing: border-box;
  background: #E2EDDC; color: #075C42; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 8px 16px rgba(0, 0, 0, .22);
}
html body.teacher-detail-page main .siswa-info-card #siswaAvatar svg { width: 100%; height: 100%; }
@media (min-width: 681px) { html body.teacher-detail-page main .siswa-info-card .hf-avatar-anchor, html body.teacher-detail-page main .siswa-info-card #siswaAvatar { width: 88px !important; height: 88px !important; min-width: 88px !important; max-width: 88px; flex-basis: 88px; } }
html body.teacher-detail-page main .siswa-info-card .detail-presence { grid-column: 2 / -1; white-space: nowrap; font-size: .7rem; max-width: 100%; }
html body.teacher-detail-page main .siswa-info-card .detail-presence #siswaOnlineText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.teacher-detail-page main .siswa-info-card .siswa-actions { grid-row: 1 / span 2; }
/* Perbaikan avatar lonjong: aturan lama masih mengunci max-width/max-height/min-height 48px */
html body.teacher-detail-page main .siswa-info-card > .hf-avatar-anchor { --seal-art: 22px; --seal-hit: 32px; --seal-overlap: -6px; width: 72px !important; height: 72px !important; min-width: 72px !important; max-width: 72px !important; min-height: 72px !important; max-height: 72px !important; flex: 0 0 72px !important; }
html body.teacher-detail-page main .siswa-info-card #siswaAvatar { --hf-avatar-size: 72px !important; width: 72px !important; height: 72px !important; min-width: 72px !important; max-width: 72px !important; min-height: 72px !important; max-height: 72px !important; flex: 0 0 72px !important; aspect-ratio: 1 / 1; }
html body.teacher-detail-page main .siswa-info-card #siswaAvatar svg { width: 100% !important; height: 100% !important; }
@media (min-width: 681px) {
  html body.teacher-detail-page main .siswa-info-card > .hf-avatar-anchor { width: 88px !important; height: 88px !important; min-width: 88px !important; max-width: 88px !important; min-height: 88px !important; max-height: 88px !important; flex-basis: 88px !important; }
  html body.teacher-detail-page main .siswa-info-card #siswaAvatar { --hf-avatar-size: 88px !important; width: 88px !important; height: 88px !important; min-width: 88px !important; max-width: 88px !important; min-height: 88px !important; max-height: 88px !important; flex-basis: 88px !important; }
}

/* ===== Dashboard pengajar: kartu Jadwal muroja'ah & Sabqi/Manzili + dialognya ===== */
html body.teacher-dashboard-page .teacher-setup-icon[data-tone="coral"] { background: linear-gradient(160deg, #F58A55, #D9421C); box-shadow: 0 4px 0 #A8300F; }
html body.teacher-dashboard-page .teacher-setup-icon[data-tone="green"] { background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C; }
html body.teacher-dashboard-page .teacher-setup-card[data-setup="fokus"] .teacher-setup-count { background: rgba(217, 66, 28, .14); color: #A8300F; }
html body.teacher-dashboard-page .teacher-setup-card[data-state="tool"] .teacher-setup-copy small { color: #5D7064; }
html body dialog.setup-dialog .setup-subhead { margin: 14px 0 8px; font-size: 13px; font-weight: 800; color: var(--hf-ink); letter-spacing: .01em; }
html body dialog.setup-dialog .setup-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
html body dialog.setup-dialog .setup-days button { min-height: 44px; padding: 0 6px; border: 1.5px solid rgba(227, 224, 210, .95); border-radius: 12px; background: #fff; color: #075C42; font: inherit; font-size: 13.5px; font-weight: 800; box-shadow: 0 3px 0 #DAD7C6; cursor: pointer; }
html body dialog.setup-dialog .setup-days button[aria-pressed="true"] { background: #075C42; border-color: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body dialog.setup-dialog .setup-help.is-bad { color: #B3341A; font-weight: 700; }
html body dialog.setup-dialog .setup-row.is-focus { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px 6px 4px; cursor: default; }
html body dialog.setup-dialog .setup-focus-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px 7px 10px; border: 0; border-radius: 14px; background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; min-width: 0; }
html body dialog.setup-dialog .setup-focus-main:hover { background: #EAF4EE; }
html body dialog.setup-dialog .setup-dismiss { min-height: 34px; padding: 0 12px; border: 1.5px solid rgba(227, 224, 210, .95); border-radius: 999px; background: #fff; color: #5D7064; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
html body dialog.setup-dialog .setup-dismiss:hover { background: #F4F8F2; color: #075C42; }
@media (max-width: 420px) { html body dialog.setup-dialog .setup-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } html body dialog.setup-dialog .setup-focus-main { grid-template-columns: auto minmax(0, 1fr); } html body dialog.setup-dialog .setup-focus-main .setup-chip { grid-column: 2; justify-self: start; } }

/* ===== Header & menu profil pengajar (senada dengan siswa) ===== */
html body.hf-staff-teacher .topbar .hf-staff-header-name { display: none !important; }
html body.hf-staff-teacher .topbar #profileTrigger:has(#hfStaffAvatar) { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; gap: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 50% !important; justify-content: center; }
html body.hf-staff-teacher .topbar #profileTrigger:focus-visible { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 2px; }
html body.hf-staff-teacher #profileDropdownMenu { min-width: 220px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 12px 32px rgba(4, 61, 44, .16), 0 0 0 1px rgba(7, 92, 66, .07); }
html body.hf-staff-teacher #profileDropdownMenu .hf-account-menu-identity { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 9px; margin-bottom: 4px; border-bottom: 1px solid rgba(7, 92, 66, .10); }
html body.hf-staff-teacher #profileDropdownMenu .hf-account-menu-identity strong { font-size: 14px; font-weight: 800; color: #075C42; line-height: 1.25; }
html body.hf-staff-teacher #profileDropdownMenu .hf-account-menu-identity span { font-size: 12px; font-weight: 700; color: #6F8176; }
html body.hf-staff-teacher #profileDropdownMenu .hf-account-menu-identity small { font-size: 12px; font-weight: 600; color: #4F6358; line-height: 1.35; }
html body.hf-staff-teacher #profileDropdownMenu .dropdown-item, html body.hf-staff-teacher #profileDropdownMenu #logoutBtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 12px; border: 0; border-radius: 11px; background: transparent; box-shadow: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--hf-ink); text-align: left; }
html body.hf-staff-teacher #profileDropdownMenu .dropdown-item:hover, html body.hf-staff-teacher #profileDropdownMenu .dropdown-item:focus-visible { background: rgba(7, 92, 66, .08); }
html body.hf-staff-teacher #profileDropdownMenu .dropdown-item svg, html body.hf-staff-teacher #profileDropdownMenu .dropdown-divider, html body.hf-staff-teacher #profileDropdownMenu hr { display: none !important; }
html body.hf-staff-teacher #profileDropdownMenu #logoutBtn, html body.hf-staff-teacher #profileDropdownMenu .danger { color: #C2410C; }
html body.hf-staff-teacher #profileDropdownMenu #logoutBtn:hover { background: rgba(228, 87, 46, .10); }

/* Halaman Profil pengajar / admin / pengelola */
html body .hf-staff-profile { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-inline: auto; padding-bottom: 24px; }
html body .hf-staff-profile > h2 { margin: 4px 2px 0; font-size: 22px; font-weight: 800; color: var(--hf-ink); }
html body .hf-staff-profile .student-profile-card { margin: 0; }
html body .hf-staff-profile .profile-identity .hf-profile-name { margin: 0; font-size: 20px; font-weight: 800; color: #fff; }
html body .hf-staff-profile .profile-identity .hf-profile-username { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
html body .hf-staff-profile .hf-staff-security-card, html body .hf-staff-profile .profile-contact-card { padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(7, 92, 66, .10); box-shadow: 0 6px 20px rgba(4, 61, 44, .07); }
html body .hf-staff-profile .hf-staff-security-card h3, html body .hf-staff-profile .profile-contact-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #075C42; }
html body .hf-staff-profile .profile-contact-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #4F6358; }
html body .hf-staff-profile .profile-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 2px; border: 0; border-top: 1px solid rgba(7, 92, 66, .10); background: transparent; text-align: left; font: inherit; color: var(--hf-ink); cursor: pointer; }
html body .hf-staff-profile .profile-setting-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body .hf-staff-profile .profile-setting-row strong { font-size: 14.5px; font-weight: 800; }
html body .hf-staff-profile .profile-setting-row small { font-size: 12.5px; font-weight: 500; color: #6F8176; }
html body .hf-staff-profile .profile-setting-row::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid #8A9A91; border-top: 2px solid #8A9A91; transform: rotate(45deg); }
html body .hf-staff-profile .profile-setting-row:hover { background: rgba(7, 92, 66, .05); }
html body .hf-staff-profile ~ .hf-platform-security, html body .hf-platform-security { max-width: 640px; margin-inline: auto; }
html body.hf-staff-teacher #profileDropdownMenu { background: rgba(255, 255, 255, .97); }
html body .hf-staff-profile { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 681px) { html body .hf-staff-profile { padding-bottom: 32px; } }

/* Foto profil pengajar: gambar sendiri, bahasa desain sama dengan siswa */
html body .hf-teacher-avatar { --hf-t-size: 44px; display: inline-flex; align-items: center; justify-content: center; width: var(--hf-t-size); height: var(--hf-t-size); min-width: var(--hf-t-size); max-width: var(--hf-t-size); min-height: var(--hf-t-size); max-height: var(--hf-t-size); flex: 0 0 var(--hf-t-size); padding: 0; margin: 0; border: 0; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #fbf1cf 0%, #f3e2a6 100%); color: #075C42; box-shadow: inset 0 0 0 2px rgba(201, 171, 88, .55); }
html body .hf-teacher-avatar > svg { display: block; width: 100%; height: 100%; max-width: none; min-width: 0; margin: 0; fill: none; stroke: currentColor; stroke-width: 2; }
html body .hf-teacher-avatar-lg { --hf-t-size: 80px; box-shadow: inset 0 0 0 3px rgba(201, 171, 88, .7), 0 6px 14px rgba(0, 0, 0, .18); }
@media (max-width: 680px) { html body .hf-teacher-avatar-lg { --hf-t-size: 72px; } }
html body.hf-staff-teacher .topbar #hfStaffAvatar.hf-teacher-avatar { margin: 0 !important; outline: 0 !important; }
html body.hf-staff-teacher .topbar-inner > .topbar-user, html body.hf-staff-teacher .topbar-inner:has(.hf-header-school) > .topbar-user:has(.hf-staff-header-name), html body.hf-staff-teacher .topbar-inner:has(.hf-header-school) > .topbar-user { margin-left: auto !important; flex: 0 0 44px !important; width: 44px !important; min-width: 44px !important; max-width: 44px !important; justify-content: flex-end !important; }
html body.hf-staff-teacher .topbar-inner > .logo { flex: 1 1 0; min-width: 0; }

/* Halaman Profil: tombol kembali ringkas */
html body .hf-staff-profile > .profile-back-button { align-self: flex-start; width: auto; max-width: max-content; }

/* Keamanan akun: dua kartu berwarna */
html body .hf-staff-security h3, html body .hf-staff-help h3 { margin: 0; font-size: 16px; font-weight: 800; color: #075C42; }
html body .hf-staff-security > h3 { margin: 2px 2px 10px; }
html body .hf-security-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 681px) { html body .hf-security-tiles { grid-template-columns: 1fr 1fr; } }
html body .hf-security-tile { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "icon copy" "go go"; gap: 10px 12px; align-items: center; padding: 14px; border: 1px solid rgba(7, 92, 66, .10); border-radius: 22px; background: #fff; text-align: left; font: inherit; color: var(--hf-ink); cursor: pointer; box-shadow: 0 4px 0 rgba(7, 92, 66, .10), 0 10px 22px rgba(4, 61, 44, .06); transition: transform .12s, box-shadow .12s; overflow: hidden; }
html body .hf-security-tile::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 120px; height: 120px; border-radius: 50%; transform: translate(40%, -45%); opacity: .5; background: radial-gradient(circle, var(--tile-soft) 0%, transparent 70%); pointer-events: none; }
html body .hf-security-tile[data-tone="teal"] { --tile-main: #1B9E8A; --tile-edge: #12776A; --tile-soft: #cdeee8; }
html body .hf-security-tile[data-tone="gold"] { --tile-main: #F0A91A; --tile-edge: #B97A06; --tile-soft: #fdebc2; }
html body .hf-security-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(7, 92, 66, .10), 0 4px 10px rgba(4, 61, 44, .06); }
html body .hf-security-tile:focus-visible { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 2px; }
html body .hf-security-icon { grid-area: icon; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: var(--tile-main); box-shadow: 0 4px 0 var(--tile-edge); }
html body .hf-security-icon svg { width: 24px; height: 24px; }
html body .hf-security-copy { grid-area: copy; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html body .hf-security-copy strong { font-size: 15.5px; font-weight: 800; }
html body .hf-security-copy small { font-size: 12.5px; font-weight: 500; line-height: 1.4; color: #5D7064; }
html body .hf-security-go { grid-area: go; justify-self: stretch; text-align: center; padding: 9px 14px; border-radius: 13px; font-size: 13.5px; font-weight: 800; color: #fff; background: var(--tile-main); box-shadow: 0 3px 0 var(--tile-edge); }

/* Perlu memperbarui data */
html body .hf-staff-help { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, #fffaf0 0%, #fff 55%); border: 1px solid rgba(201, 171, 88, .35); box-shadow: 0 8px 22px rgba(4, 61, 44, .07); }
html body .hf-help-head { display: flex; gap: 12px; align-items: flex-start; }
html body .hf-help-icon { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: #F0A91A; box-shadow: 0 3px 0 #B97A06; }
html body .hf-help-icon svg { width: 22px; height: 22px; }
html body .hf-help-head p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: #4F6358; }
html body .hf-help-cols { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 521px) { html body .hf-help-cols { grid-template-columns: 1.2fr 1fr; } }
html body .hf-help-col { padding: 12px 14px; border-radius: 16px; background: rgba(7, 92, 66, .06); }
html body .hf-help-col.is-self { background: rgba(27, 158, 138, .10); }
html body .hf-help-col h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: #075C42; }
html body .hf-help-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
html body .hf-help-col li { position: relative; padding-left: 16px; font-size: 13px; font-weight: 600; color: var(--hf-ink); }
html body .hf-help-col li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: #1B9E8A; }
html body .hf-help-col.is-admin li::before { background: #F0A91A; }
html body .hf-help-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html body .hf-help-steps li { counter-increment: step; display: flex; align-items: baseline; gap: 6px; padding-left: 34px; position: relative; font-size: 13.5px; color: #4F6358; line-height: 1.45; }
html body .hf-help-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #075C42; }
html body .hf-help-steps li b { color: var(--hf-ink); font-weight: 800; }
html body .hf-teacher-avatar > svg { width: 100% !important; height: 100% !important; min-width: 100% !important; max-width: none !important; max-height: none !important; }
html body .hf-security-tile { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "icon copy go"; }
html body .hf-security-go { justify-self: end; padding: 8px 16px; }
@media (min-width: 681px) { html body .hf-security-tile { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "icon copy" "go go"; } html body .hf-security-go { justify-self: stretch; } }
html body .hf-help-steps li { display: block; min-height: 24px; }
html body .hf-help-steps li b { margin-right: 4px; }
html body .hf-staff-profile { padding-bottom: 8px; }

/* Perlu memperbarui data: ringkas, buka bila diketuk (biru, beda dari kuning) */
html body details.hf-staff-help { --help-main: #3E7BD9; --help-edge: #2B5CAA; --help-soft: #e3eefc; display: block; padding: 0; gap: 0; background: #fff; border: 1px solid rgba(62, 123, 217, .22); border-radius: 22px; box-shadow: 0 4px 0 rgba(43, 92, 170, .10), 0 10px 22px rgba(4, 61, 44, .06); overflow: hidden; }
html body details.hf-staff-help > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html body details.hf-staff-help > summary::-webkit-details-marker { display: none; }
html body details.hf-staff-help > summary:focus-visible { outline: 3px solid rgba(62, 123, 217, .4); outline-offset: -3px; border-radius: 22px; }
html body details.hf-staff-help .hf-help-icon { background: var(--help-main); box-shadow: 0 3px 0 var(--help-edge); flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; }
html body details.hf-staff-help .hf-help-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
html body details.hf-staff-help .hf-help-copy strong { font-size: 15.5px; font-weight: 800; color: var(--hf-ink); }
html body details.hf-staff-help .hf-help-copy small { font-size: 12.5px; font-weight: 600; color: var(--help-edge); }
html body details.hf-staff-help .hf-help-chevron { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--help-soft); position: relative; transition: transform .2s; }
html body details.hf-staff-help .hf-help-chevron::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2.5px solid var(--help-main); border-bottom: 2.5px solid var(--help-main); transform: translate(-50%, -70%) rotate(45deg); }
html body details.hf-staff-help[open] .hf-help-chevron { transform: rotate(180deg); }
html body details.hf-staff-help[open] > summary { border-bottom: 1px solid rgba(62, 123, 217, .14); }
html body details.hf-staff-help .hf-help-body { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: linear-gradient(180deg, #f6faff 0%, #fff 60%); }
html body details.hf-staff-help .hf-help-body > p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #4F6358; }
html body details.hf-staff-help .hf-help-col.is-admin { background: var(--help-soft); }
html body details.hf-staff-help .hf-help-col.is-admin li::before { background: var(--help-main); }
html body details.hf-staff-help .hf-help-col.is-self { background: rgba(27, 158, 138, .10); }
html body details.hf-staff-help .hf-help-steps li::before { background: var(--help-main); }

/* Dialog Ganti username & Ganti password (desain baru) */
html body .hf-sec-dialog, html body .hf-sec-modal .modal-content { --sec-main: #1B9E8A; --sec-edge: #12776A; --sec-soft: #dff3ef; border: 1px solid rgba(255, 255, 255, .8) !important; border-radius: 28px !important; background: #F7F5EC !important; box-shadow: 0 28px 70px rgba(4, 61, 44, .32) !important; color: var(--hf-ink); padding: 20px !important; }
html body .hf-sec-modal[data-tone="gold"] .modal-content { --sec-main: #F0A91A; --sec-edge: #B97A06; --sec-soft: #fdf0cf; }
html body .hf-sec-dialog::backdrop { background: rgba(4, 61, 44, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .hf-sec-dialog form { display: flex; flex-direction: column; gap: 14px; }
html body .hf-sec-dialog header, html body .hf-sec-modal .modal-header { display: flex; align-items: center; gap: 12px; padding: 0 !important; margin: 0 0 4px; border: 0 !important; background: transparent !important; }
html body .hf-sec-badge { flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: var(--sec-main); box-shadow: 0 4px 0 var(--sec-edge); }
html body .hf-sec-badge svg { width: 24px; height: 24px; }
html body .hf-sec-title { flex: 1; min-width: 0; }
html body .hf-sec-title h2 { margin: 0 !important; font-size: 19px !important; font-weight: 800; color: var(--hf-ink); display: block !important; }
html body .hf-sec-title p { margin: 2px 0 0 !important; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: #5D7064; }
html body .hf-sec-dialog .hf-admin-icon-button, html body .hf-sec-modal .modal-close { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(7, 92, 66, .08); color: #075C42; font-size: 22px; line-height: 1; cursor: pointer; }
html body .hf-sec-dialog .hf-admin-icon-button:hover, html body .hf-sec-modal .modal-close:hover { background: rgba(7, 92, 66, .16); }
html body .hf-sec-modal .modal-body { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 0 !important; }
html body .hf-sec-modal .form-group { margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
html body .hf-sec-dialog .hf-admin-field, html body .hf-sec-modal .form-group label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: #075C42; }
html body .hf-sec-dialog input, html body .hf-sec-modal input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1.5px solid rgba(7, 92, 66, .16); border-radius: 15px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--hf-ink); box-shadow: inset 0 2px 0 rgba(7, 92, 66, .04); transition: border-color .15s, box-shadow .15s; }
html body .hf-sec-dialog input:focus, html body .hf-sec-modal input:focus { outline: 0; border-color: var(--sec-main); box-shadow: 0 0 0 4px var(--sec-soft); }
html body .hf-sec-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
html body .hf-sec-rules li { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #075C42; background: var(--sec-soft); }
html body .hf-sec-dialog [role="status"]:empty { display: none; }
html body .hf-sec-dialog [role="status"] { margin: 0; padding: 10px 12px; border-radius: 13px; font-size: 13px; font-weight: 600; color: var(--hf-ink); background: rgba(7, 92, 66, .07); }
html body .hf-sec-modal .login-error { margin: 0; padding: 10px 12px; border-radius: 13px; font-size: 13px; font-weight: 600; color: #9A3412; background: rgba(228, 87, 46, .10); border: 0; }
html body .hf-sec-modal .modal-footer { display: flex; gap: 10px; padding: 16px 0 0 !important; margin: 0; border: 0 !important; background: transparent !important; }
html body .hf-sec-submit, html body .hf-sec-cancel { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 15px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform .1s, box-shadow .1s; }
html body .hf-sec-submit { flex: 1; color: #fff; background: var(--sec-main); box-shadow: 0 4px 0 var(--sec-edge); }
html body .hf-sec-dialog .hf-sec-submit { width: 100%; margin-top: 2px; }
html body .hf-sec-submit:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--sec-edge); }
html body .hf-sec-submit:disabled { opacity: .6; cursor: default; }
html body .hf-sec-cancel { flex: 0 0 auto; color: #075C42; background: rgba(7, 92, 66, .09); box-shadow: 0 4px 0 rgba(7, 92, 66, .12); }
html body .hf-sec-cancel:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(7, 92, 66, .12); }
html body .hf-sec-modal .modal-footer { flex-direction: row !important; align-items: stretch; }
html body .hf-sec-modal .modal-footer .hf-sec-cancel { order: 1; flex: 0 0 auto; }
html body .hf-sec-modal .modal-footer .hf-sec-submit { order: 2; flex: 1; }
html body .hf-sec-modal .modal-body { padding-top: 16px !important; }

/* Tanggal hari ini di header pengajar */
html body.hf-staff-teacher .hf-header-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; margin-left: auto; margin-right: 10px; padding: 0 2px; line-height: 1.2; text-align: right; white-space: nowrap; }
html body.hf-staff-teacher .hf-header-date strong { font-size: 13px; font-weight: 800; color: #075C42; }
html body.hf-staff-teacher .hf-header-date span { font-size: 11.5px; font-weight: 600; color: #6F8176; }
html body.hf-staff-teacher .hf-header-date.is-hidden { display: none; }
html body.hf-staff-teacher .hf-header-date ~ .topbar-user { margin-left: 0 !important; }
html body.hf-staff-teacher .topbar-inner > .logo { flex: 1 1 0; min-width: 0; }
@media (min-width: 681px) { html body.hf-staff-teacher .hf-header-date strong { font-size: 14px; } html body.hf-staff-teacher .hf-header-date span { font-size: 12.5px; } html body.hf-staff-teacher .hf-header-date { margin-right: 14px; } }
html body.hf-staff-teacher .hf-header-date { position: relative; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
html body.hf-staff-teacher .hf-header-date:focus-visible { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 2px; }
html body.hf-staff-teacher .hf-header-date-tip { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 120; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: min(230px, 70vw); padding: 10px 12px; border-radius: 14px; text-align: left; white-space: normal; background: rgba(255, 255, 255, .97); border: 1px solid rgba(7, 92, 66, .12); box-shadow: 0 12px 30px rgba(4, 61, 44, .18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
html body.hf-staff-teacher .hf-header-date-tip::before { content: ''; position: absolute; top: -6px; right: 22px; width: 10px; height: 10px; background: #fff; border-left: 1px solid rgba(7, 92, 66, .12); border-top: 1px solid rgba(7, 92, 66, .12); transform: rotate(45deg); }
html body.hf-staff-teacher .hf-header-date-tip small { font-size: 11px; font-weight: 700; color: #6F8176; }
html body.hf-staff-teacher .hf-header-date-tip b { font-size: 15px; font-weight: 800; color: #075C42; }
html body.hf-staff-teacher .hf-header-date-tip em { margin-top: 2px; font-size: 11px; font-style: normal; font-weight: 500; line-height: 1.4; color: #6F8176; }
html body.hf-staff-teacher .hf-header-date:hover .hf-header-date-tip, html body.hf-staff-teacher .hf-header-date:focus-visible .hf-header-date-tip, html body.hf-staff-teacher .hf-header-date.is-open .hf-header-date-tip { opacity: 1; visibility: visible; transform: none; }

/* ============================================================
   TAMPILAN LAPTOP (>=1100px) — Pengajar & Siswa: sidebar kiri + susunan 2 zona
   ============================================================ */
@media (min-width: 1100px) {
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) { --hf-side: 236px; --hf-top: 80px; padding-left: var(--hf-side); }

  /* Header selebar layar, sidebar di bawahnya */
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) .topbar { margin-left: calc(-1 * var(--hf-side)); width: calc(100% + var(--hf-side)); }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) .topbar-inner { max-width: none !important; padding-inline: 28px !important; }

  /* Sidebar */
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) { position: fixed !important; inset: var(--hf-top) auto 0 0 !important; width: var(--hf-side) !important; height: auto !important; max-width: none !important; margin: 0 !important; padding: 22px 14px !important; transform: none !important; border: 0 !important; border-right: 1px solid rgba(7, 92, 66, .10) !important; border-radius: 0 !important; background: rgba(255, 255, 255, .72) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: none !important; overflow-y: auto; z-index: 60; display: block !important; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar)::before { content: 'Menu'; display: block; margin: 0 8px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6F8176; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-inner { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 6px !important; width: 100% !important; max-width: none !important; height: auto !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn { position: relative; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; flex: 0 0 auto !important; width: 100% !important; height: 48px !important; min-height: 48px !important; padding: 0 14px !important; border: 0 !important; border-radius: 14px !important; background: transparent !important; box-shadow: none !important; color: #4F6358 !important; text-align: left; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn::before, html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn::after { display: none !important; content: none !important; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn > span:not(.tab-icon) { font-size: 14.5px !important; font-weight: 700 !important; color: inherit !important; line-height: 1.2; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn svg { width: 22px !important; height: 22px !important; flex: 0 0 22px; margin: 0 !important; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn:hover { background: rgba(7, 92, 66, .07) !important; color: var(--hf-ink) !important; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn.active { background: #E0EDE5 !important; color: #075C42 !important; box-shadow: inset 4px 0 0 #075C42 !important; }
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) .tabbar-btn.active > span:not(.tab-icon) { color: #075C42 !important; font-weight: 800 !important; }

  /* Isi halaman */
  html body.teacher-dashboard-page:not(.hf-management-workspace):not(.hf-platform-mode) #hfTeacherMain { width: 100% !important; max-width: 1280px !important; margin: 0 auto !important; padding: 28px 32px 56px !important; box-sizing: border-box; }
}

@media (min-width: 1100px) {
  /* Dashboard pengajar: kolom kiri (ringkasan + tugas), kolom kanan (perlu diperiksa + aksi cepat) */
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"]:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr) !important; grid-auto-flow: row; gap: 18px 24px !important; align-items: start; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > * { grid-column: auto; grid-row: auto; margin: 0 !important; min-width: 0; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > .teacher-dashboard-top { grid-column: 1 / -1 !important; grid-row: 1 !important; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > .teacher-stats-grid { grid-column: 1 !important; grid-row: 2 !important; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > .teacher-total-records { grid-column: 1 !important; grid-row: 3 !important; margin-top: -6px !important; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > .teacher-setup { grid-column: 1 !important; grid-row: 4 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > .teacher-review-panel { grid-column: 2 !important; grid-row: 2 / span 2 !important; align-self: stretch; min-height: 0; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] > .quick-actions { grid-column: 2 !important; grid-row: 4 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-self: start; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="dashboard"] .teacher-stats-grid { gap: 16px; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-dashboard-top .greeting h1 { font-size: 30px; }
}

@media (min-width: 1100px) {
  /* Daftar siswa: bilah alat satu baris */
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools { display: grid !important; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: center; gap: 12px 16px; margin: 0 0 6px; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > * { margin: 0 !important; min-width: 0; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-roster-modes { grid-column: 1; grid-row: 1; width: 320px; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-search-wrap { grid-column: 2; grid-row: 1; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-filter-line { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 12px; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-room-hero, html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-roster-cards, html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > #teacherStudentResults, html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-no-results { grid-column: 1 / -1; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-room-hero { grid-row: 2; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-roster-cards { grid-row: 3; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > #teacherStudentResults { grid-row: 4; }
  html body.teacher-dashboard-page #hfTeacherMain .teacher-list-tools > .teacher-no-results { grid-row: 5; }
  html body.teacher-dashboard-page #hfTeacherMain [data-tab-content="siswa"] .section-header h2 { font-size: 28px; }
  html body.teacher-dashboard-page #hfTeacherMain .siswa-grid { gap: 16px !important; }
}
@media (min-width: 1500px) {
  html body.teacher-dashboard-page #hfTeacherMain .siswa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1100px) {
  /* Detail siswa (pengajar): isi dua panel */
  html body.teacher-detail-page > main.container { width: 100% !important; max-width: 1280px !important; margin: 0 auto !important; padding: 28px 32px 56px !important; box-sizing: border-box; }
  html body.teacher-detail-page main.container > .tab-content:not([hidden]):not(.student-profile-view):not(#hafalanTab):not(#murojaahTab):has(> #hfDetailRanking) { display: grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 24px; align-items: start; }
  html body.teacher-detail-page main.container > .tab-content > #studentCardStack { grid-column: 1; grid-row: 1; margin: 0 !important; }
  html body.teacher-detail-page main.container > .tab-content > #hfDetailRanking { grid-column: 2; grid-row: 1; margin: 0 !important; }
  html body.teacher-detail-page main.container > .tab-content > .student-stats, html body.teacher-detail-page main.container > .tab-content > #badgeHighlight, html body.teacher-detail-page main.container > .tab-content > .chart-card { grid-column: 1 / -1; margin: 0 !important; }
  html body.teacher-detail-page main.container > .tab-content > .student-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 16px; }
}
@media (min-width: 1100px) { html body.teacher-dashboard-page #hfTeacherMain .teacher-filter-line > * { white-space: nowrap; } html body.teacher-dashboard-page #hfTeacherMain .teacher-filter-line .teacher-text-button { align-self: center; } }

/* ============================================================
   Kartu pencapaian & target (Siswa + Detail Siswa): selaras desain baru
   ============================================================ */
html body .card-stack .stack-card { border-radius: 24px; }
html body .card-stack .stack-achievement { border: 1px solid rgba(201, 171, 88, .38); color: var(--hf-ink); background: radial-gradient(120% 95% at 90% -5%, rgba(250, 204, 21, .30) 0%, rgba(250, 204, 21, 0) 55%), radial-gradient(90% 80% at 0% 105%, rgba(27, 158, 138, .13) 0%, rgba(27, 158, 138, 0) 60%), #FFFEFA; }
html body .card-stack .stack-target { border: 0; color: #fff; background: linear-gradient(150deg, #12875F 0%, #075C42 55%, #043D2C 100%); }
html body .card-stack[data-active="achievement"] .stack-achievement, html body .card-stack[data-active="target"] .stack-target { box-shadow: 0 4px 0 rgba(185, 122, 6, .22), 0 16px 30px -14px rgba(4, 61, 44, .30); }
html body .card-stack[data-active="target"] .stack-target { box-shadow: 0 4px 0 #032E21, 0 16px 30px -14px rgba(4, 61, 44, .40); }
html body .card-stack[data-active="achievement"] .stack-target, html body .card-stack[data-active="target"] .stack-achievement { box-shadow: 0 8px 16px -10px rgba(4, 61, 44, .35); }
html body .stack-target .stack-peek-button { color: #FFE9A8; font-weight: 700; }
html body .stack-achievement .stack-peek-button { color: #075C42; font-weight: 700; }
html body .card-stack .achievement-card { background: transparent; }
html body .card-stack .achievement-card::before { display: none; }
html body #achievementCard .ach-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(160deg, #FFF8DE 0%, #F8E3A0 100%); box-shadow: inset 0 0 0 3px rgba(201, 171, 88, .65), 0 5px 0 rgba(185, 122, 6, .30); filter: none; animation: none; }
html body #achievementCard .ach-icon svg { width: 42px; height: 42px; }
html body #achievementCard .ach-title { color: #075C42; font-size: 1.5rem; text-shadow: none; }
html body #achievementCard .ach-subtitle { color: #4F6358; font-weight: 600; }
html body #achievementCard .ach-spark { color: #E8B83A; opacity: .55; }

@media (min-width: 1100px) {
  /* Siswa: isi halaman + header selebar layar */
  html body.student-dashboard-page > main { width: 100% !important; max-width: 1280px !important; margin: 0 auto !important; padding: 28px 32px 56px !important; box-sizing: border-box; }
  html body.student-dashboard-page .topbar-inner { max-width: none !important; }
  /* Beranda siswa: dua kolom */
  html body.student-dashboard-page > main > .tab-content:not([hidden]):has(> #studentCardStack) { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 24px; align-items: start; }
  html body.student-dashboard-page > main > .tab-content > * { min-width: 0; margin: 0 !important; }
  html body.student-dashboard-page > main > .tab-content > .student-heading { grid-column: 1 / -1; grid-row: 1; }
  html body.student-dashboard-page > main > .tab-content > #studentCardStack { grid-column: 1; grid-row: 2; }
  html body.student-dashboard-page > main > .tab-content > .student-stats { grid-column: 2; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; align-self: stretch; }
  html body.student-dashboard-page > main > .tab-content > #hfDashTilawah { grid-column: 1; grid-row: 3; }
  html body.student-dashboard-page > main > .tab-content > .chart-card { grid-column: 2; grid-row: 3; }
  html body.student-dashboard-page > main > .tab-content > #badgeHighlight { grid-column: 1 / -1; grid-row: 4; }
}
@media (min-width: 1100px) { html body.student-dashboard-page .student-stats > .stat-card.student-stat-streak { grid-column: 1 / -1 !important; } }

/* Kartu pencapaian: emas hangat yang lebih pekat (tidak pucat), senada tombol 3D & target hijau */
html body .card-stack .stack-achievement {
  border: 1px solid rgba(176, 118, 6, .35);
  color: var(--hf-ink);
  background:
    radial-gradient(90% 70% at 88% -10%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(155deg, #FFE488 0%, #FBCB45 52%, #F2AE24 100%);
}
html body .card-stack[data-active="achievement"] .stack-achievement { box-shadow: 0 5px 0 #C98A0B, 0 18px 30px -14px rgba(150, 92, 0, .50); }
html body #achievementCard .ach-icon { background: linear-gradient(160deg, #FFFDF0 0%, #FFEDB0 100%); }
html body #achievementCard .ach-title { color: var(--hf-ink); }
html body #achievementCard .ach-subtitle { color: #5B4300; font-weight: 700; }
html body #achievementCard .ach-spark { color: #FFF6D2; opacity: .9; }
html body .stack-achievement .stack-peek-button { color: #4A3000; }

/* Header: tanpa garis warna-warni. Kaca tipis; garis halus + bayangan lembut baru muncul saat halaman digulir */
html body .topbar {
  background: rgba(255, 255, 255, .84) !important;
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent !important; box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
html body .topbar::after { content: none !important; display: none !important; }
html body.hf-scrolled .topbar {
  background: rgba(255, 255, 255, .92) !important;
  border-bottom-color: rgba(4, 61, 44, .07) !important; box-shadow: 0 8px 22px -12px rgba(4, 61, 44, .22) !important;
}

/* Kotak tanggal hanya untuk pengajar; admin sekolah dan pengelola tidak memakainya */
html body:not(.hf-staff-teacher) .hf-header-date { display: none !important; }

/* Banner peninjauan berada di bawah header dan ikut menggulir pergi; hanya header yang menempel */
html body .topbar:has(+ #hfReviewContext) { position: sticky !important; top: 0 !important; z-index: 100 !important; }
html body #hfReviewContext { position: static !important; }

/* ===== DESAIN v8: Admin Sekolah — dashboard, tombol, kartu, tab bawah ===== */
html body.hf-management-workspace .hf-role-greeting { margin: 4px 0 14px; }
html body.hf-management-workspace .hf-role-greeting h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #075C42; margin: 0 0 6px; }
html body.hf-management-workspace .hf-role-greeting p { color: #5D7064; font-size: 14px; line-height: 1.55; }
html body.hf-management-workspace .hf-admin-page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--hf-ink); line-height: 1.2; }
html body.hf-management-workspace .hf-admin-page-head p { color: #5D7064; font-size: 13.5px; }

/* tombol: putih bergaris, tombol utama hijau bertumpu */
html body.hf-management-workspace .hf-admin-button {
  min-height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 700; font-size: 13.5px; color: #075C42;
  background: #fff; border: 1px solid rgba(7, 92, 66, .16); box-shadow: 0 2px 0 rgba(7, 92, 66, .10);
  transition: transform .08s ease, box-shadow .08s ease;
}
html body.hf-management-workspace .hf-admin-button:active { transform: translateY(2px); box-shadow: none; }
html body.hf-management-workspace .hf-admin-button.is-primary {
  border: 0; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C;
}
html body.hf-management-workspace .hf-admin-button.is-primary:active { box-shadow: 0 2px 0 #043D2C; }
html body.hf-management-workspace .hf-admin-button.is-danger, html body.hf-management-workspace .hf-admin-button[data-danger] { color: #B3261E; border-color: rgba(179, 38, 30, .25); box-shadow: 0 2px 0 rgba(179, 38, 30, .12); }
html body.hf-management-workspace .hf-admin-page-head .hf-admin-actions { gap: 10px; }

/* kotak statistik: ikon bertumpu, angka besar, label */
html body.hf-management-workspace .hf-admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 14px; }
html body.hf-management-workspace .hf-admin-stats > button {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; min-height: 0; padding: 16px; position: relative; overflow: hidden;
  border-radius: 20px; text-align: left; border: 1px solid rgba(7, 92, 66, .10); box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(120px 90px at 100% 0, rgba(47, 158, 114, .16), transparent 70%), #fff;
}
html body.hf-management-workspace .hf-admin-stats > button:nth-child(3) { background: radial-gradient(120px 90px at 100% 0, rgba(240, 180, 41, .24), transparent 70%), #fff; border-color: rgba(201, 138, 18, .20); }
html body.hf-management-workspace .hf-admin-stats > button:nth-child(2) { background: radial-gradient(120px 90px at 100% 0, rgba(53, 169, 184, .20), transparent 70%), #fff; }
html body.hf-management-workspace .hf-admin-stats > button > svg {
  box-sizing: border-box; width: 46px !important; height: 46px !important; flex: none; padding: 12px; margin-bottom: 12px; border-radius: 15px; color: #fff !important;
  background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C, 0 8px 14px rgba(7, 92, 66, .25);
}
html body.hf-management-workspace .hf-admin-stats > button:nth-child(2) > svg { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 4px 0 #0A4852, 0 8px 14px rgba(14, 102, 116, .25); }
html body.hf-management-workspace .hf-admin-stats > button:nth-child(3) > svg { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008, 0 8px 14px rgba(201, 138, 18, .25); }
html body.hf-management-workspace .hf-admin-stats > button > span { display: flex; flex-direction: column; align-items: flex-start; }
html body.hf-management-workspace .hf-admin-stats strong { font-size: 30px; line-height: 1; font-weight: 800; color: var(--hf-ink); }
html body.hf-management-workspace .hf-admin-stats small { margin-top: 6px; font-size: 12px; font-weight: 600; color: #5D7064; }
html body.hf-management-workspace .hf-admin-stats > button:active { transform: translateY(2px); }

/* peringatan: kartu emas lembut */
html body.hf-management-workspace .hf-admin-callout {
  padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(201, 138, 18, .30); margin: 0 0 14px;
  background: radial-gradient(170px 110px at 100% 0, rgba(240, 180, 41, .22), transparent 70%), #fffdf6; box-shadow: 0 6px 18px rgba(4, 61, 44, .06);
}
html body.hf-management-workspace .hf-admin-callout strong { font-size: 15px; font-weight: 800; color: #075C42; }
html body.hf-management-workspace .hf-admin-callout p { font-size: 13px; color: #5D7064; margin: 6px 0 12px; }
html body.hf-management-workspace .hf-admin-callout .hf-admin-button {
  border: 0; background: linear-gradient(160deg, #F7CB4A, #D99512); color: #3B2600; font-weight: 800; box-shadow: 0 4px 0 #A87008;
}

/* kartu daftar */
html body.hf-management-workspace .hf-admin-card {
  padding: 18px; border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); margin-bottom: 14px; box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .10), transparent 70%), #fff;
}
html body.hf-management-workspace .hf-admin-card > header h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #075C42; margin: 0; }
html body.hf-management-workspace .hf-admin-card > header .hf-admin-button { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 12px; }
html body.hf-management-workspace .hf-admin-list-row { border-color: rgba(227, 224, 210, .9); gap: 12px; }
html body.hf-management-workspace .hf-admin-row-icon {
  display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; border-radius: 13px; color: #fff;
  background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 3px 0 #043D2C;
}
html body.hf-management-workspace .hf-admin-row-icon svg { width: 20px; height: 20px; color: #fff; }
html body.hf-management-workspace .hf-admin-list-row strong { color: var(--hf-ink); font-weight: 800; }
html body.hf-management-workspace .hf-admin-list-row small { color: #5D7064; }
html body.hf-management-workspace .hf-admin-count { padding: 4px 10px; border-radius: 999px; background: rgba(7, 92, 66, .08); color: #075C42; font-size: 12px; font-weight: 700; white-space: nowrap; }
html body.hf-management-workspace .hf-admin-number { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: rgba(7, 92, 66, .08); color: #075C42; font-size: 11.5px; font-weight: 700; }
html body.hf-management-workspace .hf-admin-list-row > .hf-admin-button[aria-label] { width: 40px; min-width: 40px; padding: 0; border-radius: 12px; display: grid; place-items: center; }

/* menu "Lainnya" (HP) */
html body .hf-mobile-more { border-radius: 26px 26px 0 0; background: #F7F5EA; border: 0; box-shadow: 0 -12px 40px rgba(4, 61, 44, .22); }
html body .hf-mobile-more h2 { font-size: 20px; font-weight: 800; color: var(--hf-ink); }
html body .hf-mobile-more [data-more-close] { border: 0; border-radius: 14px; background: #fff; color: #075C42; box-shadow: 0 3px 0 rgba(7, 92, 66, .14); min-width: 44px; min-height: 44px; }
html body .hf-mobile-more #hfMobileMoreLinks { display: grid; gap: 8px; }
html body .hf-mobile-more #hfMobileMoreLinks > button {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px 8px 10px; border-radius: 18px; border: 1px solid rgba(227, 224, 210, .9);
  background: #fff; box-shadow: 0 4px 12px rgba(4, 61, 44, .06); font-weight: 700; color: var(--hf-ink); text-align: left;
}
html body .hf-mobile-more #hfMobileMoreLinks > button > svg {
  box-sizing: border-box; width: 38px !important; height: 38px !important; flex: none; padding: 9px; border-radius: 12px; color: #fff !important;
  background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 3px 0 #043D2C;
}
html body .hf-mobile-more #hfMobileMoreLinks > button:nth-child(3n+2) > svg { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 3px 0 #0A4852; }
html body .hf-mobile-more #hfMobileMoreLinks > button:nth-child(3n) > svg { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 3px 0 #A87008; }
html body .hf-mobile-more #hfMobileMoreLinks > button[aria-current="page"] { border-color: #075C42; background: #EAF4EE; }
html body .hf-mobile-more #hfMobileMoreLinks > button:active { transform: translateY(2px); }

@media (min-width: 1100px) {
  html body.hf-management-workspace .hf-admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
html body.hf-management-workspace .hf-admin-stats > button > svg { flex: 0 0 46px !important; min-height: 46px; max-height: 46px; }

/* ===== DESAIN v8: Admin Sekolah — statistik ringkas, kartu aksi cepat, tombol Tambah, profil ===== */
html body.hf-management-workspace .hf-admin-stats { gap: 10px; margin: 6px 0 12px; }
html body.hf-management-workspace .hf-admin-stats > button { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; min-height: 0; }
html body.hf-management-workspace .hf-admin-stats > button > svg { flex: 0 0 42px !important; width: 42px !important; height: 42px !important; min-height: 42px; max-height: 42px; margin: 0 !important; padding: 10px; border-radius: 14px; }
html body.hf-management-workspace .hf-admin-stats > button > span { min-width: 0; }
html body.hf-management-workspace .hf-admin-stats strong { font-size: 24px; }
html body.hf-management-workspace .hf-admin-stats small { margin-top: 3px; font-size: 12px; }

/* kartu aksi cepat: Cadangan & pemulihan, Permintaan reset password */
html body.hf-management-workspace .hf-admin-quick { display: grid; gap: 10px; margin: 0 0 14px; }
html body.hf-management-workspace .hf-admin-quick-card {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px 10px 12px; border-radius: 18px; text-align: left;
  background: #fff; border: 1px solid rgba(227, 224, 210, .9); box-shadow: 0 6px 18px rgba(4, 61, 44, .07); color: var(--hf-ink);
}
html body.hf-management-workspace .hf-admin-quick-card > svg {
  box-sizing: border-box; flex: 0 0 42px !important; width: 42px !important; height: 42px !important; padding: 10px; border-radius: 14px; color: #fff !important;
  background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 3px 0 #A87008;
}
html body.hf-management-workspace .hf-admin-quick-card.is-reset > svg { background: linear-gradient(160deg, #35A9B8, #0E6674); box-shadow: 0 3px 0 #0A4852; }
html body.hf-management-workspace .hf-quick-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
html body.hf-management-workspace .hf-quick-copy strong { font-size: 14.5px; font-weight: 800; color: var(--hf-ink); line-height: 1.25; }
html body.hf-management-workspace .hf-quick-copy small { font-size: 12.5px; font-weight: 500; color: #5D7064; line-height: 1.35; }
html body.hf-management-workspace .hf-admin-quick-card::after { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid #8A9A91; border-top: 2px solid #8A9A91; transform: rotate(45deg); }
@media (min-width: 900px) { html body.hf-management-workspace .hf-admin-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tombol Tambah mengambang (sama dengan Catat di akun Siswa) */
html body.hf-management-workspace .hf-admin-fab { right: 16px !important; bottom: calc(100px + env(safe-area-inset-bottom)) !important; z-index: 85 !important; }
@media (min-width: 681px) { html body.hf-management-workspace .hf-admin-fab { right: 28px !important; bottom: 28px !important; } }
html body .hf-admin-fab .fab-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 104px; height: 50px; padding: 0 18px; border-radius: 25px; color: #fff; }
html body .hf-admin-fab .fab-main.open { transform: none; }
html body .hf-admin-fab .fab-main > svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .2s ease; }
html body .hf-admin-fab .fab-main.open > svg { transform: rotate(45deg); }
html body .hf-admin-fab .input-fab-label { font-size: .87rem; font-weight: 700; line-height: 1.3; }
html body .hf-admin-fab .fab-menu[hidden] { display: none; }
html body .hf-admin-fab .fab-action { background: #fff; border: 1px solid rgba(7, 92, 66, .10); border-radius: 20px; min-height: 68px; padding: 10px 16px 10px 12px; box-shadow: 0 10px 26px rgba(4, 61, 44, .16); gap: 12px; text-align: left; }
html body .hf-admin-fab .fab-action-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); box-shadow: 0 4px 0 #043D2C; }
html body .hf-admin-fab .fab-action:nth-child(2) .fab-action-icon { background: linear-gradient(160deg, #F7CB4A, #D99512); box-shadow: 0 4px 0 #A87008; }
html body .hf-admin-fab .fab-action-icon svg { width: 26px !important; height: 26px !important; stroke-width: 1.9; }
html body .hf-admin-fab .input-action-copy { display: flex; flex-direction: column; gap: 2px; }
html body .hf-admin-fab .fab-action strong { font-size: 15px; font-weight: 800; color: var(--hf-ink); }
html body .hf-admin-fab .fab-action small { font-size: 12px; font-weight: 500; color: #5D7064; }
html body:has(#hfAdminFab .fab-main.open)::before { content: ""; position: fixed; inset: 0; z-index: 8000; background: rgba(4, 61, 44, .30); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: hf-fab-veil .18s ease-out; }
html body:has(#hfAdminFab .fab-main.open) .hf-admin-fab { z-index: 8100 !important; }

/* Profil staf: kartu identitas dibuat ulang — foto bulat sempurna, terpusat */
html body .hf-staff-profile .student-profile-card.profile-identity {
  display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 20px 22px !important;
  background: radial-gradient(220px 140px at 100% 0, rgba(240, 180, 41, .20), transparent 70%), linear-gradient(150deg, #12875F 0%, #075C42 52%, #043D2C 100%) !important;
}
html body .hf-staff-profile .profile-identity > .hf-avatar-anchor {
  display: grid !important; place-items: center; box-sizing: border-box; width: 100px !important; height: 100px !important; min-width: 100px !important; max-width: 100px; flex: 0 0 100px !important;
  aspect-ratio: 1 / 1; padding: 0 !important; margin: 0 0 10px !important; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .28), 0 10px 22px rgba(0, 0, 0, .25);
}
html body .hf-staff-profile .profile-identity .hf-teacher-avatar-lg { --hf-t-size: 92px; box-shadow: inset 0 0 0 3px rgba(201, 171, 88, .75); }
html body .hf-staff-profile .profile-identity > div:not(.hf-avatar-anchor) { flex: none !important; width: 100%; min-width: 0; }
html body .hf-staff-profile .profile-identity .hf-profile-name { font-size: 22px; }
html body .hf-staff-profile .profile-identity .profile-role-label { margin-top: 10px; }

/* ===== DESAIN v8: Admin Sekolah — halaman Siswa, Pengajar, Kelompok, Kelas ===== */
html body.hf-management-workspace .hf-admin-page-head { flex-direction: column; align-items: flex-start; gap: 10px; margin: 2px 0 14px; }
html body.hf-management-workspace .hf-admin-page-head .hf-admin-actions { width: auto; max-width: 100%; }
html body.hf-management-workspace .hf-admin-page-head .hf-admin-actions > * { flex: 0 0 auto; }
@media (min-width: 681px) { html body.hf-management-workspace .hf-admin-page-head { flex-direction: row; align-items: center; justify-content: space-between; } }

/* pencarian, filter, kolom isian */
html body.hf-management-workspace .hf-admin-search { min-height: 48px; border-radius: 16px; border: 1px solid rgba(227, 224, 210, .95); background: #fff; box-shadow: 0 2px 8px rgba(4, 61, 44, .05); padding: 0 14px; }
html body.hf-management-workspace .hf-admin-search svg { color: #075C42; width: 20px; height: 20px; flex: 0 0 20px; }
html body.hf-management-workspace .hf-admin-search input { font-size: 14px; color: var(--hf-ink); }
html body.hf-management-workspace .hf-admin-field { font-size: 12px; font-weight: 700; color: #075C42; gap: 6px; }
html body.hf-management-workspace .hf-admin-field select, html body.hf-management-workspace .hf-admin-field input {
  height: 46px; min-height: 46px; border-radius: 14px; border: 1px solid rgba(227, 224, 210, .95); background-color: #fff; color: var(--hf-ink); font-weight: 600; box-shadow: 0 2px 8px rgba(4, 61, 44, .05);
}
html body.hf-management-workspace .hf-admin-field select, html body.hf-management-workspace .hf-admin-board-toolbar select, html body.hf-management-workspace .hf-admin-context select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23075C42' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px !important;
}
html body.hf-management-workspace .hf-admin-filter-grid { gap: 10px; margin-top: 10px; }
html body.hf-management-workspace .hf-admin-filter-grid > .hf-admin-field { margin-bottom: 0; }
@media (max-width: 640px) {
  html body.hf-management-workspace .hf-admin-filter-grid > .hf-admin-field:last-child { flex-direction: column; align-items: stretch; gap: 6px; }
  html body.hf-management-workspace .hf-admin-filter-grid > .hf-admin-field:last-child select { width: 100%; flex: none; }
  html body.hf-management-workspace .hf-admin-filter-grid .hf-admin-field select { font-size: 14px; }
}
html body.hf-management-workspace .hf-admin-help { color: #5D7064; }

/* kotak centang */
html body.hf-management-workspace input[type="checkbox"].hf-admin-roster-check,
html body.hf-management-workspace .hf-admin-board-member > input[type="checkbox"],
html body.hf-management-workspace .hf-admin-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px !important; height: 24px !important; min-width: 24px; min-height: 24px; margin: 0; padding: 0 !important;
  border: 2px solid #B6C8BD; border-radius: 8px; background: #fff; cursor: pointer; display: inline-grid; place-items: center; transition: background .12s, border-color .12s;
}
html body.hf-management-workspace input[type="checkbox"].hf-admin-roster-check:checked,
html body.hf-management-workspace .hf-admin-board-member > input[type="checkbox"]:checked,
html body.hf-management-workspace .hf-admin-check input[type="checkbox"]:checked {
  border-color: #075C42; background: #075C42 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* baris tindakan massal */
html body.hf-management-workspace .hf-admin-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
html body.hf-management-workspace .hf-admin-bulkbar[data-empty="true"] > .hf-admin-button:not([data-pick-visible]):not([data-pick-clear]) { display: none; }
html body.hf-management-workspace .hf-admin-bulkbar > span[role="status"] { flex: 1 1 100%; font-size: 13px; font-weight: 800; color: #075C42; }
html body.hf-management-workspace .hf-admin-bulkbar .hf-admin-button { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 999px; flex: 0 0 auto; }

/* pilihan Siswa / Pengajar */
html body.hf-management-workspace .hf-admin-board-toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }
html body.hf-management-workspace .hf-admin-board-toolbar .hf-admin-field { margin: 0; }
html body.hf-management-workspace .hf-admin-segment { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #E7EFE9; width: 100%; max-width: 360px; }
html body.hf-management-workspace .hf-admin-segment button { flex: 1; min-height: 40px; border: 0; border-radius: 12px; background: transparent; color: #5D7064; font-weight: 700; font-size: 14px; cursor: pointer; }
html body.hf-management-workspace .hf-admin-segment button[aria-pressed="true"] { background: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
@media (min-width: 681px) { html body.hf-management-workspace .hf-admin-board-toolbar { grid-template-columns: auto minmax(0, 1fr) 200px; align-items: center; } }

/* kartu kelompok pada papan */
html body.hf-management-workspace .hf-admin-board { display: grid; gap: 14px; }
@media (min-width: 900px) { html body.hf-management-workspace .hf-admin-board { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
html body.hf-management-workspace .hf-admin-board-card {
  padding: 16px; border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .10), transparent 70%), #fff;
}
html body.hf-management-workspace .hf-admin-board-card > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
html body.hf-management-workspace .hf-admin-board-card > header > div { flex: 1 1 100%; min-width: 0; }
html body.hf-management-workspace .hf-admin-board-card > header h2 { font-size: 17px; font-weight: 800; color: #075C42; margin: 0; }
html body.hf-management-workspace .hf-admin-board-card > header small { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(7, 92, 66, .08); color: #075C42; font-size: 12px; font-weight: 700; }
html body.hf-management-workspace .hf-admin-board-card > header .hf-admin-button { flex: 1 1 auto; min-height: 38px; padding: 0 12px; font-size: 12.5px; border-radius: 12px; }
html body.hf-management-workspace .hf-admin-board-members { display: grid; gap: 8px; margin: 10px 0; }
html body.hf-management-workspace .hf-admin-board-member { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F5F8F4; border: 1px solid rgba(7, 92, 66, .08); }
html body.hf-management-workspace .hf-admin-member-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.hf-management-workspace .hf-admin-member-copy strong { font-size: 14px; font-weight: 800; color: var(--hf-ink); }
html body.hf-management-workspace .hf-admin-member-copy small { font-size: 12px; color: #5D7064; }
html body.hf-management-workspace .hf-admin-drag-handle { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #6F8176; display: grid; place-items: center; cursor: grab; flex: 0 0 36px; }
html body.hf-management-workspace .hf-admin-board-card > .hf-admin-button { width: 100%; }
html body.hf-management-workspace .hf-admin-board-card .hf-admin-empty { padding: 14px 6px; text-align: center; border: 1.5px dashed rgba(7, 92, 66, .22); border-radius: 14px; }

/* pagination */
html body.hf-management-workspace .hf-admin-pagination { gap: 10px; font-size: 13px; font-weight: 700; color: #075C42; }
html body.hf-management-workspace .hf-admin-pagination .hf-admin-button { min-height: 40px; border-radius: 999px; }

/* baris daftar (Kelas, Pengajar) */
html body.hf-management-workspace .hf-admin-list-row > .hf-admin-button { min-height: 38px; padding: 0 12px; font-size: 12.5px; border-radius: 12px; }
html body.hf-management-workspace .hf-admin-list-row:has(> .hf-admin-button + .hf-admin-button) { flex-wrap: wrap; }
html body.hf-management-workspace .hf-admin-list-row:has(> .hf-admin-button + .hf-admin-button) > div { flex: 1 1 calc(100% - 60px); }

/* menu Kelola data + panduan */
html body.hf-management-workspace details.hf-management-menu > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(7, 92, 66, .16); box-shadow: 0 2px 0 rgba(7, 92, 66, .10); color: #075C42; font-weight: 700; font-size: 13.5px; cursor: pointer; list-style: none; }
html body.hf-management-workspace details.hf-admin-help > summary { font-size: 13px; font-weight: 700; color: #075C42; min-height: 36px; display: flex; align-items: center; cursor: pointer; }
html body.hf-management-workspace .hf-admin-list-row:has(> .hf-admin-button + .hf-admin-button) > .hf-admin-button { flex: 1 1 calc(50% - 6px); }
@media (min-width: 681px) { html body.hf-management-workspace .hf-admin-list-row:has(> .hf-admin-button + .hf-admin-button) { flex-wrap: nowrap; } html body.hf-management-workspace .hf-admin-list-row:has(> .hf-admin-button + .hf-admin-button) > div { flex: 1 1 auto; } html body.hf-management-workspace .hf-admin-list-row:has(> .hf-admin-button + .hf-admin-button) > .hf-admin-button { flex: 0 0 auto; } }
html body.hf-management-workspace details.hf-admin-help > summary { justify-content: space-between; list-style: none; padding: 0 4px; }
html body.hf-management-workspace details.hf-admin-help > summary::-webkit-details-marker { display: none; }
html body.hf-management-workspace details.hf-admin-help > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #8A9A91; border-bottom: 2px solid #8A9A91; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
html body.hf-management-workspace details.hf-admin-help[open] > summary::after { transform: rotate(-135deg); }

/* Pengaturan sekolah */
html body.hf-management-workspace .hf-school-identity-card, html body.hf-management-workspace .hf-school-setting-section {
  padding: 18px; border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); margin-bottom: 14px; box-shadow: 0 6px 18px rgba(4, 61, 44, .07);
  background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .10), transparent 70%), #fff;
}
html body.hf-management-workspace .hf-school-identity-card { background: radial-gradient(200px 120px at 100% 0, rgba(240, 180, 41, .20), transparent 70%), #fff; }
html body.hf-management-workspace .hf-school-identity-card h2 { font-size: 18px; font-weight: 800; color: #075C42; margin: 0 0 4px; }
html body.hf-management-workspace .hf-school-identity-card p { font-size: 13px; color: #5D7064; line-height: 1.5; }
html body.hf-management-workspace .hf-school-identity-card small { color: #6F8176; font-size: 12px; }
html body.hf-management-workspace .hf-school-logo-preview { border-radius: 20px; border: 1px solid rgba(7, 92, 66, .12); background: #F3F7F2; box-shadow: inset 0 0 0 4px #fff, 0 4px 12px rgba(4, 61, 44, .08); color: #075C42; }
html body.hf-management-workspace .hf-school-setting-section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
html body.hf-management-workspace .hf-school-setting-section > header h2 { font-size: 17px; font-weight: 800; color: #075C42; margin: 0; }
html body.hf-management-workspace .hf-school-setting-section > header .hf-admin-button { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 12.5px; }
html body.hf-management-workspace .hf-school-setting-section > header .hf-admin-button:disabled { opacity: .45; box-shadow: none; }
html body.hf-management-workspace .hf-school-setting-section dl { margin: 0; }
html body.hf-management-workspace .hf-school-setting-section dl > div { padding: 10px 0; border-top: 1px solid rgba(227, 224, 210, .9); }
html body.hf-management-workspace .hf-school-setting-section dl > div:first-child { border-top: 0; }
html body.hf-management-workspace .hf-school-setting-section dt { font-size: 12px; font-weight: 700; color: #6F8176; margin: 0 0 2px; }
html body.hf-management-workspace .hf-school-setting-section dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--hf-ink); overflow-wrap: anywhere; }

/* Cadangan & pemulihan (alur kerja admin) */
html body.hf-management-workspace .hf-workflow-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--hf-ink); line-height: 1.2; margin: 0; }
html body.hf-management-workspace .hf-workflow-head p { font-size: 13.5px; color: #5D7064; margin-top: 6px; }
html body.hf-management-workspace .hf-workflow-head ~ p > strong { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(7, 92, 66, .08); color: #075C42; font-size: 12.5px; font-weight: 800; }
html body.hf-management-workspace .hf-workflow-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #E7EFE9; margin: 12px 0 14px; }
html body.hf-management-workspace .hf-workflow-tabs .hf-admin-button { flex: 1 1 0; min-height: 40px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; box-shadow: none; color: #5D7064; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
html body.hf-management-workspace .hf-workflow-tabs .hf-admin-button[aria-current="page"] { background: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body.hf-management-workspace .hf-workflow-form {
  padding: 18px; border-radius: 20px; border: 1px solid rgba(227, 224, 210, .9); box-shadow: 0 6px 18px rgba(4, 61, 44, .07); margin-bottom: 14px;
  background: radial-gradient(170px 110px at 100% 0, rgba(47, 158, 114, .10), transparent 70%), #fff;
}
html body.hf-management-workspace .hf-workflow-form > label, html body.hf-management-workspace .hf-workflow-form label:not(:has(input[type="checkbox"], input[type="radio"])) { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: #075C42; margin: 0 0 12px; }
html body.hf-management-workspace .hf-workflow-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(227, 224, 210, .95); background-color: #fff; color: var(--hf-ink); font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 2px 8px rgba(4, 61, 44, .05);
}
html body.hf-management-workspace .hf-workflow-form select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23075C42' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px !important;
}
html body.hf-management-workspace .hf-workflow-form textarea { padding: 12px 14px; min-height: 90px; }
html body.hf-management-workspace .hf-workflow-form input[type="checkbox"], html body.hf-management-workspace .hf-workflow-form input[type="radio"] { accent-color: #075C42; width: 20px; height: 20px; flex: 0 0 20px; }
html body.hf-management-workspace .hf-workflow-form > .hf-admin-button.is-primary, html body.hf-management-workspace .hf-workflow-form button[type="submit"] { width: 100%; min-height: 48px; margin-top: 6px; }
html body.hf-management-workspace .hf-workflow-status:not(:empty) { padding: 12px 14px; border-radius: 14px; background: #EAF4EE; color: #075C42; font-size: 13px; font-weight: 600; }
html body.hf-management-workspace .hf-workflow-result { padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(201, 138, 18, .30); background: radial-gradient(170px 110px at 100% 0, rgba(240, 180, 41, .20), transparent 70%), #fffdf6; color: #5D7064; font-size: 13px; }
html body.hf-management-workspace .hf-workflow-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
html body.hf-management-workspace .hf-platform-backups > article { padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(227, 224, 210, .9); background: #fff; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); margin-bottom: 10px; }
html body.hf-management-workspace .hf-workflow-tabs { flex-wrap: nowrap; }
html body.hf-management-workspace .hf-workflow-tabs .hf-admin-button { white-space: normal; text-align: center; line-height: 1.2; font-size: 12px; min-width: 0; }

/* Foto profil admin: cakram hijau tua + emas, beda dari pengajar (krem) */
html body .hf-teacher-avatar.hf-staff-admin-avatar { background: radial-gradient(90px 70px at 30% 15%, #2FA77A 0%, #0E7050 45%, #043D2C 100%); color: #F7CB4A; box-shadow: inset 0 0 0 2px rgba(247, 203, 74, .85); }
html body .hf-teacher-avatar-lg.hf-staff-admin-avatar { box-shadow: inset 0 0 0 3px rgba(247, 203, 74, .9), 0 6px 14px rgba(0, 0, 0, .18); }
html body .hf-staff-admin-avatar > svg { stroke: none; }

/* Edit profil admin — pratinjau foto langsung */
html body .hf-profile-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2px 0 6px; }
html body .hf-profile-preview .hf-teacher-avatar { --hf-t-size: 96px; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; overflow: hidden; }
html body .hf-profile-preview small { color: #5D7064; font-size: 12.5px; font-weight: 600; }

/* Panel Edit profil & formulir platform — pesan galat jelas, tidak tertutup menu bawah */
html body.hf-management-workspace #hfPlatformPanel { padding-bottom: 120px; }
html body.hf-management-workspace #hfPlatformStatus:empty { display: none; }
html body.hf-management-workspace #hfPlatformStatus { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.45; outline: none; background: #EEF6F1; color: #075C42; border: 1px solid #CFE6D9; }
html body.hf-management-workspace #hfPlatformStatus.is-error { background: #FDECEA; color: #A3261C; border-color: #F3B8B2; box-shadow: none; }

/* Muat ulang otomatis — tirai singkat */
#hfAutoReloadVeil { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(244,241,228,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #075C42; font: 700 15px/1.3 Inter, system-ui, sans-serif; }
#hfAutoReloadVeil .hf-reload-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #CFE6D9; border-top-color: #075C42; animation: hfReloadSpin .8s linear infinite; }
@keyframes hfReloadSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #hfAutoReloadVeil .hf-reload-spin { animation-duration: 2s; } }

/* Pengelola — avatar emas di atas hijau malam (beda dari Admin & Guru) */
html body .hf-teacher-avatar.hf-staff-owner-avatar { background: radial-gradient(90px 70px at 30% 15%, #34463F 0%, #16241F 55%, #0A1511 100%); box-shadow: inset 0 0 0 2px rgba(247, 203, 74, .95); }
html body .hf-teacher-avatar-lg.hf-staff-owner-avatar { box-shadow: inset 0 0 0 3px rgba(247, 203, 74, .95), 0 6px 14px rgba(0, 0, 0, .2); }
html body .hf-staff-owner-avatar > svg { filter: sepia(.85) saturate(1.5) hue-rotate(-6deg) brightness(.86) contrast(1.05); }

/* Pengelola — beranda Sekolah */
html body.hf-management-workspace .hf-owner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body.hf-management-workspace .hf-owner-stats > button:nth-child(3) { grid-column: 1 / -1; }
html body.hf-management-workspace .hf-owner-stats > button[aria-pressed="true"] { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 1px; }
html body.hf-management-workspace .hf-platform-school-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { html body.hf-management-workspace .hf-platform-school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html body.hf-management-workspace .hf-platform-school > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body.hf-management-workspace .hf-owner-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; padding: 0; }
html body.hf-management-workspace .hf-owner-chips li { padding: 6px 12px; border-radius: 999px; background: #EEF6F1; border: 1px solid #D6E8DD; color: #4F6358; font-size: 13px; font-weight: 600; }
html body.hf-management-workspace .hf-owner-chips li b { color: var(--hf-ink); font-weight: 800; }
html body.hf-management-workspace .hf-owner-service { margin: 0 0 12px; color: #6F8176; font-size: 13px; font-weight: 600; }

/* Pengelola — header satu baris (logo · tanggal · foto) seperti Admin */
html body.hf-staff-teacher .topbar-inner:has(.hf-header-platform) { display: flex !important; align-items: center; gap: 0; }
html body.hf-staff-teacher .topbar-inner:has(.hf-header-platform) > .logo { flex: 1 1 auto; min-width: 0; max-width: none !important; }
html body.hf-staff-teacher .topbar-inner:has(.hf-header-platform) > .topbar-user { flex: 0 0 44px; width: 44px; min-width: 44px; max-width: 44px !important; }
html body.hf-staff-teacher .topbar-inner:has(.hf-header-platform) .hf-owner-header-caption { display: none !important; }

/* Pemulihan akun — susunan filter & daftar akun */
html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) { grid-template-columns: 1fr 1fr; }
html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) > label:has([name=access_school]) { grid-row: 1 !important; grid-column: 1 / -1 !important; }
html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) > label:has([name=account_search]) { grid-row: 2 !important; grid-column: 1 / -1 !important; }
html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) > label:has([name=account_kind]) { grid-row: 3 !important; grid-column: 1 !important; }
html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) > label:has([name=account_filter]) { grid-row: 3 !important; grid-column: 2 !important; }
@media (min-width: 900px) {
  html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) { grid-template-columns: 1.1fr 1.4fr .8fr .8fr; }
  html body.hf-management-workspace .hf-platform-tools:has([name=access_school]) > label { grid-row: 1 !important; grid-column: auto !important; }
}
html body.hf-management-workspace .hf-platform-accounts { padding: 4px 16px; border-radius: 22px; background: #fff; border: 1px solid rgba(7, 92, 66, .10); box-shadow: 0 8px 22px rgba(4, 61, 44, .06); }
html body.hf-management-workspace .hf-platform-account-row { padding: 16px 0; border-bottom: 1px solid #E7EFEA; align-items: flex-start; }
html body.hf-management-workspace .hf-platform-account-row:last-child { border-bottom: 0; }
html body.hf-management-workspace .hf-platform-account-row > input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 7px; border: 2px solid #9DBFAE; background: #fff; display: grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
html body.hf-management-workspace .hf-platform-account-row > input[type="checkbox"]:checked { background: #075C42; border-color: #075C42; }
html body.hf-management-workspace .hf-platform-account-row > input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
html body.hf-management-workspace .hf-platform-account-row > input[type="checkbox"]:disabled { opacity: .35; cursor: not-allowed; }
html body.hf-management-workspace .hf-platform-account-row strong { font-size: 15px; font-weight: 800; color: var(--hf-ink); }
html body.hf-management-workspace .hf-platform-account-row small { color: #5D7064; font-weight: 600; }
html body.hf-management-workspace .hf-platform-account-row .hf-platform-pill { margin-top: 8px; }
html body.hf-management-workspace .hf-management-primary-actions { gap: 10px; }
html body.hf-management-workspace .hf-management-context { border-radius: 20px; background: #fff; border: 1px solid rgba(7, 92, 66, .10); box-shadow: 0 8px 22px rgba(4, 61, 44, .06); }

/* Cadangan & pemulihan (Pengelola) — pemilih sekolah */
html body.hf-management-workspace #hfPlatformContent .hf-workflow-head + label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 12px; font-weight: 700; color: #075C42; }
html body.hf-management-workspace #hfPlatformContent .hf-workflow-head + label select {
  height: 46px; min-height: 46px; width: 100%; border-radius: 14px; border: 1px solid rgba(227, 224, 210, .95); color: var(--hf-ink); font: 600 14px/1.2 Inter, system-ui, sans-serif; box-shadow: 0 2px 8px rgba(4, 61, 44, .05);
  appearance: none; -webkit-appearance: none; padding: 0 36px 0 14px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23075C42' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
@media (min-width: 900px) {
  html body.hf-management-workspace .hf-owner-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body.hf-management-workspace .hf-owner-stats > button:nth-child(3) { grid-column: auto; }
}

/* Pengelola meninjau/mengelola sekolah — bilah konteks ringkas satu baris */
html body #hfReviewContext.is-owner-school { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); max-width: 1160px; margin: 10px auto 0; padding: 8px 10px 8px 8px; border: 1px solid rgba(7, 92, 66, .12); border-left-width: 1px; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(4, 61, 44, .07); }
html body #hfReviewContext.is-owner-school .hf-owner-back { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 15px; background: linear-gradient(180deg, #0B7552, #075C42); color: #fff; font-size: 13.5px; font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #043D2C; transition: transform .12s, box-shadow .12s; }
html body #hfReviewContext.is-owner-school .hf-owner-back:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
html body #hfReviewContext.is-owner-school .hf-owner-back svg { width: 20px; height: 20px; }
html body #hfReviewContext.is-owner-school .hf-owner-school-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html body #hfReviewContext.is-owner-school .hf-owner-school-id small { font-size: 11px; font-weight: 700; color: #6F8176; letter-spacing: .02em; }
html body #hfReviewContext.is-owner-school .hf-owner-school-id strong { font-size: 15px; font-weight: 800; color: var(--hf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #hfReviewContext.is-owner-school .hf-owner-mode { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: #FFF3D4; border: 1px solid #F0D58A; color: #8A5B07; font-size: 12px; font-weight: 800; }
@media (max-width: 520px) {
  html body #hfReviewContext.is-owner-school { gap: 8px; padding: 7px; }
  html body #hfReviewContext.is-owner-school .hf-owner-back { padding: 0 12px; }
  html body #hfReviewContext.is-owner-school .hf-owner-back span { display: none; }
  html body #hfReviewContext.is-owner-school .hf-owner-mode { padding: 5px 10px; font-size: 11px; }
}

/* Navigasi samping saat meninjau sekolah */
html body .hf-workspace-sidebar .hf-nav-school { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 0 0 10px; border-radius: 16px; background: #EEF6F1; border: 1px solid #D6E8DD; }
html body .hf-workspace-sidebar .hf-nav-school small { font-size: 11px; font-weight: 700; color: #5D7064; }
html body .hf-workspace-sidebar .hf-nav-school strong { font-size: 14px; font-weight: 800; color: var(--hf-ink); overflow-wrap: anywhere; }
html body .hf-workspace-sidebar .hf-nav-back { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 14px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(7, 92, 66, .18); background: #fff; color: #075C42; font-weight: 800; font-size: 13.5px; box-shadow: 0 3px 0 rgba(7, 92, 66, .12); cursor: pointer; }
html body .hf-workspace-sidebar .hf-nav-back svg { width: 20px; height: 20px; }
html body .hf-workspace-sidebar .hf-nav-group { margin: 14px 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6F8176; }

/* Detail sekolah (Pengelola) */
html body.hf-management-workspace .hf-owner-school-head { margin: 4px 0 6px; }
html body.hf-management-workspace .hf-owner-school-head h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--hf-ink); overflow-wrap: anywhere; }
html body.hf-management-workspace .hf-owner-school-head .hf-school-list-identity { flex-wrap: wrap; gap: 10px 12px; }
html body.hf-management-workspace .hf-owner-school-head .hf-owner-service { margin: 6px 0 0; }
html body.hf-management-workspace .hf-owner-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat { grid-column: auto !important; align-items: center; padding: 14px 8px; cursor: default; text-align: center; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat > svg { width: 40px !important; height: 40px !important; padding: 10px; margin: 0 0 8px; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat > span { align-items: center; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat strong { font-size: 24px; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat:active { transform: none; }
html body.hf-management-workspace .hf-owner-actions-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { html body.hf-management-workspace .hf-owner-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html body.hf-management-workspace .hf-platform-danger { margin-top: 22px; padding: 16px 18px; border-radius: 20px; background: #FFF6F4; border: 1px solid #F3C9C2; }
html body.hf-management-workspace .hf-platform-danger h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #8E2A1D; }
html body.hf-management-workspace .hf-platform-danger p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #6E4A44; }
html body.hf-management-workspace .hf-platform-danger .hf-admin-button:not(.is-primary) { border-color: #E3A79E; color: #A3261C; box-shadow: 0 3px 0 #E8B9B2; }

/* Tempat sampah: pemberitahuan penghapusan total & daftar struktur */
.hf-trash-notice{margin:0 0 16px;padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#fff8e6,#fff1c9);border:1px solid #f0d58a;color:#5b4308;box-shadow:0 6px 18px rgba(176,128,18,.12)}
.hf-trash-notice-head{display:flex;gap:12px;align-items:flex-start}
.hf-trash-notice-head>svg{flex:none;width:24px;height:24px;color:#b07d0a;margin-top:2px}
.hf-trash-notice-head strong{display:block;font-size:15px;line-height:1.3}
.hf-trash-notice-head small{display:block;margin-top:2px;font-size:13px;opacity:.85;line-height:1.4}
.hf-trash-notice ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
.hf-trash-notice li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.7);font-size:13px}
.hf-trash-notice li span{display:flex;flex-direction:column;min-width:0;font-weight:600}
.hf-trash-notice li span small{font-weight:500;opacity:.7}
.hf-trash-notice li b{flex:none;color:#a4310f;font-size:12px;text-align:right}
.hf-trash-notice li.is-more{justify-content:center;font-weight:600;opacity:.8}
.hf-platform-trash-structures{margin-top:16px}
.hf-platform-trash-structures h3{margin:0 0 8px;font-size:15px}
.hf-platform-pill.is-purged{background:#f1e4e1;color:#8a2a14}
.hf-platform-account-row small{display:block}
@media(max-width:560px){.hf-trash-notice li{flex-direction:column;align-items:flex-start;gap:2px}.hf-trash-notice li b{text-align:left}}

/* Tinjau sekolah (Pengelola): banner ikut alur halaman, tidak menimpa header */
html body .topbar:has(+ #hfReviewContext.is-owner-school) { position: relative !important; top: auto !important; }
html body #hfReviewContext.is-owner-school { position: relative !important; top: auto !important; z-index: auto !important; margin: 14px auto 0 !important; }
html body:has(#hfReviewContext.is-owner-school) #hfWorkspaceContext { display: none !important; }
html body .hf-workspace-sidebar #hfWorkspaceNav > .hf-nav-group:first-child { margin-top: 4px; }
.hf-owner-expired { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #fff8e6, #fff1c9); border: 1px solid #f0d58a; color: #5b4308; }
.hf-owner-expired > svg { flex: none; width: 26px; height: 26px; color: #b07d0a; }
.hf-owner-expired > div { flex: 1 1 auto; min-width: 0; }
.hf-owner-expired strong { display: block; font-size: 15px; }
.hf-owner-expired p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; opacity: .9; }
@media (max-width: 640px) { .hf-owner-expired { flex-wrap: wrap; } .hf-owner-expired .hf-admin-button { width: 100%; } }

/* ===== Umpan balik Hafaluma: popup sukses, notifikasi, verifikasi ===== */
.hf-success-layer { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 20px; pointer-events: none; opacity: 0; visibility: hidden; background: rgba(4, 61, 44, .10); transition: opacity .22s ease, visibility .22s; }
.hf-success-layer.is-on { opacity: 1; visibility: visible; }
.hf-success-card { position: relative; display: flex; align-items: center; gap: 16px; width: min(400px, 100%); padding: 20px 22px; border-radius: 26px; background: linear-gradient(180deg, #fff, #F6FBF8); border: 1px solid rgba(7, 92, 66, .14); box-shadow: 0 24px 60px rgba(4, 61, 44, .22), 0 2px 0 rgba(255, 255, 255, .8) inset; pointer-events: auto; transform: translateY(14px) scale(.94); transition: transform .32s cubic-bezier(.2, 1.3, .4, 1); }
.hf-success-layer.is-on .hf-success-card { transform: none; }
.hf-success-check { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #2F9E72, #075C42); box-shadow: 0 6px 0 #043D2C, 0 10px 20px rgba(7, 92, 66, .3); }
.hf-success-check svg { width: 40px; height: 40px; }
.hf-success-check .c { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2.5; }
.hf-success-check .t { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.hf-success-layer.is-on .hf-success-check .t { animation: hfCheckDraw .5s .15s ease forwards; }
@keyframes hfCheckDraw { to { stroke-dashoffset: 0; } }
.hf-success-copy { flex: 1 1 auto; min-width: 0; }
.hf-success-copy strong { display: block; font-size: 17px; font-weight: 800; color: var(--hf-ink); line-height: 1.25; }
.hf-success-copy p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: #4F6358; overflow-wrap: anywhere; }
.hf-success-close { flex: none; align-self: flex-start; width: 32px; height: 32px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: #6F8176; font-size: 22px; line-height: 1; cursor: pointer; }
.hf-success-close:hover { background: rgba(7, 92, 66, .08); }
@media (prefers-reduced-motion: reduce) { .hf-success-card, .hf-success-layer { transition: none; } .hf-success-layer.is-on .hf-success-check .t { animation: none; stroke-dashoffset: 0; } }

/* Notifikasi (toast) */
html body .toast-container { top: 84px; right: 20px; left: auto; gap: 10px; max-width: 380px; width: calc(100% - 40px); z-index: 10040; }
html body .toast-container .toast { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(7, 92, 66, .12); border-left: 1px solid rgba(7, 92, 66, .12); box-shadow: 0 14px 34px rgba(4, 61, 44, .16); opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .25s ease, transform .3s cubic-bezier(.2, 1, .4, 1); }
html body .toast-container .toast.show { opacity: 1; transform: none; }
html body .toast-container .toast .toast-icon { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2F9E72, #075C42); box-shadow: 0 3px 0 #043D2C; }
html body .toast-container .toast-error .toast-icon { background: linear-gradient(180deg, #E5614F, #C0392B); box-shadow: 0 3px 0 #8E2518; }
html body .toast-container .toast-warning .toast-icon { background: linear-gradient(180deg, #F0B429, #D98E04); box-shadow: 0 3px 0 #9A6402; }
html body .toast-container .toast-info .toast-icon { background: linear-gradient(180deg, #3AA6B9, #1D7C8E); box-shadow: 0 3px 0 #135866; }
html body .toast-container .toast .toast-content { padding: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hf-ink); overflow-wrap: anywhere; }
@media (max-width: 720px) { html body .toast-container { top: 72px; right: 12px; left: 12px; width: auto; max-width: none; } }

/* Notifikasi badge: satu kartu ringkas */
html body .toast-container .toast.hf-badge-toast { cursor: pointer; align-items: center; padding: 12px 38px 12px 14px; background: linear-gradient(135deg, #FFF8E4, #FFFFFF 70%); border-color: #F0D58A; box-shadow: 0 16px 38px rgba(176, 128, 18, .22); }
.hf-badge-stack { flex: none; display: flex; align-items: center; padding-left: 12px; }
.hf-badge-stack .hf-badge-art { width: 46px; height: 46px; margin-left: -14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(4, 61, 44, .2); }
.hf-badge-more { margin-left: -12px; min-width: 38px; height: 38px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; background: #075C42; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.hf-badge-toast .toast-content { display: flex; flex-direction: column; gap: 1px; }
.hf-badge-toast .toast-content strong { font-size: 14px; font-weight: 800; color: var(--hf-ink); }
.hf-badge-toast .toast-content span { font-size: 13px; font-weight: 600; color: #2E4A3C; }
.hf-badge-toast .toast-content small { font-size: 12px; font-weight: 500; color: #6F8176; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-badge-toast .toast-content em { margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 800; color: #A56F00; }
.hf-badge-toast-close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #8A7A4B; font-size: 20px; line-height: 1; cursor: pointer; }
.hf-badge-toast-close:hover { background: rgba(165, 111, 0, .12); }
html body .toast-container .toast.hf-badge-toast { position: relative; }

/* Dialog verifikasi identitas */
.hf-verify-layer { position: fixed; inset: 0; z-index: 10060; display: grid; place-items: center; padding: 20px; background: rgba(4, 31, 24, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: hfVerifyFade .2s ease; }
@keyframes hfVerifyFade { from { opacity: 0; } to { opacity: 1; } }
.hf-verify-card { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; gap: 12px; padding: 24px 22px 20px; border-radius: 28px; background: linear-gradient(180deg, #fff, #F7FBF9); border: 1px solid rgba(7, 92, 66, .14); box-shadow: 0 30px 70px rgba(4, 61, 44, .35); box-sizing: border-box; animation: hfVerifyPop .32s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes hfVerifyPop { from { transform: translateY(16px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.hf-verify-icon { justify-self: center; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(180deg, #0B7552, #075C42); box-shadow: 0 5px 0 #043D2C, 0 12px 22px rgba(7, 92, 66, .3); }
.hf-verify-icon svg { width: 32px; height: 32px; }
.hf-verify-card h2 { margin: 6px 0 0; text-align: center; font-size: 21px; font-weight: 800; color: var(--hf-ink); }
.hf-verify-lead { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: #4F6358; }
.hf-verify-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #2E4A3C; }
.hf-verify-card input { width: 100%; min-height: 48px; padding: 0 14px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid #D5E2DA; background: #fff; font: inherit; font-size: 16px; color: var(--hf-ink); }
.hf-verify-card input[name=code] { letter-spacing: .3em; text-align: center; font-weight: 800; font-size: 20px; }
.hf-verify-card input:focus { outline: 0; border-color: #2F9E72; box-shadow: 0 0 0 4px rgba(47, 158, 114, .18); }
.hf-verify-card details { font-size: 13px; color: #4F6358; }
.hf-verify-card summary { cursor: pointer; font-weight: 700; color: #075C42; margin-bottom: 8px; }
.hf-verify-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FDEDEA; border: 1px solid #F2B8AE; color: #9B2C1B; font-size: 13px; font-weight: 600; }
.hf-verify-error[hidden] { display: none; }
.hf-verify-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 4px; }
.hf-verify-actions button { min-height: 48px; border-radius: 15px; border: 0; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.hf-verify-cancel { background: #EEF3EF; color: #2E4A3C; }
.hf-verify-submit { color: #fff; background: linear-gradient(180deg, #0B7552, #075C42); box-shadow: 0 4px 0 #043D2C; }
.hf-verify-submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #043D2C; }
.hf-verify-submit:disabled { opacity: .7; cursor: progress; }
body.hf-verify-open { overflow: hidden; }

/* Header: pilih sekolah tidak diperlukan saat meninjau satu sekolah (nama sudah ada di banner) */
html body:has(#hfReviewContext.is-owner-school) #hfWorkspaceHeaderTools { display: none !important; }

/* Catatan inline (galat) lebih rapi */
.hf-admin-notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.4; background: #EEF6F1; border: 1px solid #CFE3D7; color: #075C42; }
.hf-admin-notice.is-error { background: #FDEDEA; border-color: #F2B8AE; color: #9B2C1B; }

/* Halaman Tempat sampah */
.hf-trash-section { margin: 0 0 16px; padding: 16px; }
.hf-trash-section h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--hf-ink); }
.hf-trash-help { margin-top: 8px; }
.hf-trash-section .hf-platform-account-row small { display: block; }

/* Cek visual 1 Des 2026: FAB disembunyikan saat form terbuka, jarak panel Layanan sekolah, kartu statistik rata kiri */
body.hf-admin-form-open .hf-admin-fab,
body:has(#hfPlatform.has-panel) #hfOwnerFab { display: none !important; }
#hfPlatformPanelBody > .hf-admin-actions { margin-bottom: 22px; }
#hfPlatformService + .hf-admin-card { margin-top: 22px; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat { text-align: left; }
html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat > span { align-items: flex-start; }
/* Tab Tilawah (detail siswa & siswa): jarak kartu terakhir ke footer */
#hfDetailTilawah,
#hfStudentTilawah { padding-bottom: 24px; }
/* Form tilawah (Catat/Atur tahap) terbuka: sembunyikan tombol melayang agar tidak menutupi isian */
body:has(.tab-content:not([hidden]) form.hf-learn-form) .fab-container,
body:has(.tab-content:not([hidden]) form.hf-learn-form) .back-to-top { display: none !important; }

/* Tempat sampah: baris tanpa checkbox, nama di atas & tombol di bawah; pemilih sekolah sebagai kartu */
html body #hfPlatformContent .hf-trash-section .hf-platform-account-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; padding: 14px 0; }
html body #hfPlatformContent .hf-trash-section .hf-platform-account-row > div:first-child { min-width: 0; }
html body #hfPlatformContent .hf-trash-section .hf-platform-account-row strong { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
html body #hfPlatformContent .hf-trash-section .hf-platform-account-row small { margin-top: 3px; font-size: 12.5px; }
html body #hfPlatformContent .hf-trash-section .hf-platform-row-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; grid-column: auto; justify-content: stretch; }
html body #hfPlatformContent .hf-trash-section .hf-platform-row-actions .hf-admin-button { width: 100%; min-height: 42px; font-size: 14px; }
@media (min-width: 900px) {
  html body #hfPlatformContent .hf-trash-section .hf-platform-account-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  html body #hfPlatformContent .hf-trash-section .hf-platform-row-actions { grid-template-columns: repeat(2, auto); }
}
html body #hfPlatformContent .hf-trash-section + .hf-platform-tools { display: block; margin: 0 0 16px; padding: 16px; background: #fff; border: 1px solid #E3ECE6; border-radius: 22px; box-shadow: 0 8px 22px rgba(4, 61, 44, .06); }
html body #hfPlatformContent .hf-trash-section + .hf-platform-tools .hf-admin-field,
html body #hfPlatformContent .hf-trash-section .hf-platform-tools .hf-admin-field { display: grid; gap: 8px; width: 100%; max-width: none; margin: 0; }
html body #hfPlatformContent .hf-trash-section + .hf-platform-tools select,
html body #hfPlatformContent .hf-trash-section .hf-platform-tools select { width: 100%; max-width: none; }
html body #hfPlatformContent .hf-trash-section .hf-platform-tools { display: block; margin: 0 0 12px; }
html body #hfPlatformContent .hf-trash-section .hf-admin-empty { margin: 4px 0 0; padding: 14px 16px; background: #F4F8F5; border: 1px dashed #D5E3DA; border-radius: 14px; color: #5D7064; font-size: 14px; }

/* Bilah konteks sekolah (Pengelola): ringkas seperti breadcrumb, menggantikan banner besar */
html body #hfReviewContext.is-owner-school { gap: 10px; min-height: 0; padding: 6px 12px 6px 6px; border: 1px solid rgba(7, 92, 66, .10); border-radius: 16px; background: rgba(255, 255, 255, .82); box-shadow: 0 2px 10px rgba(4, 61, 44, .05); }
html body #hfReviewContext.is-owner-school .hf-owner-back { min-height: 36px; padding: 0 12px 0 9px; gap: 6px; border-radius: 11px; background: #EEF5F1; border: 1px solid rgba(7, 92, 66, .14); color: #075C42; font-size: 13px; font-weight: 800; box-shadow: none; transform: none; }
html body #hfReviewContext.is-owner-school .hf-owner-back:hover { background: #E2EFE8; }
html body #hfReviewContext.is-owner-school .hf-owner-back:active { transform: none; box-shadow: none; background: #D7E9DF; }
html body #hfReviewContext.is-owner-school .hf-owner-back svg { width: 17px; height: 17px; }
html body #hfReviewContext.is-owner-school .hf-owner-back span { display: inline; }
html body #hfReviewContext.is-owner-school .hf-owner-sep { flex: 0 0 auto; color: #A9BDB2; font-weight: 600; }
html body #hfReviewContext.is-owner-school .hf-owner-school-id { flex-direction: row; align-items: center; }
html body #hfReviewContext.is-owner-school .hf-owner-school-id strong { font-size: 14px; }
html body #hfReviewContext.is-owner-school .hf-owner-mode { margin-left: auto; padding: 4px 10px; font-size: 11.5px; font-weight: 800; }
@media (max-width: 600px) {
  html body #hfReviewContext.is-owner-school .hf-owner-sep,
  html body #hfReviewContext.is-owner-school .hf-owner-school-id { display: none; }
}

/* ===== Header & navigasi bawah gaya kaca (semua akun) =====
   Header menempel di atas dengan blur; bilah konteks (mode kelola / administrasi) menempel tepat di bawahnya
   sebagai baris kedua header; navigasi bawah berupa kaca bening; tepi atas & bawah layar memudar halus. */
html body .topbar {
  position: sticky !important; top: 0 !important; z-index: 120 !important;
  background: rgba(248, 247, 242, .74) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important; backdrop-filter: saturate(180%) blur(20px) !important;
}
html body.hf-scrolled .topbar { background: rgba(248, 247, 242, .82) !important; }
/* Pudar halus di bawah header (hanya bila tidak ada bilah konteks) */
html body .topbar:not(:has(+ #hfReviewContext))::after {
  content: "" !important; display: block !important; position: absolute; left: 0; right: 0; top: 100%; bottom: auto; height: 16px;
  background: linear-gradient(180deg, rgba(243, 242, 236, .75), rgba(243, 242, 236, 0)) !important; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
html body.hf-scrolled .topbar:not(:has(+ #hfReviewContext))::after { opacity: 1; }
html body .topbar:has(+ #hfReviewContext),
html body.hf-scrolled .topbar:has(+ #hfReviewContext) { box-shadow: none !important; border-bottom: 0 !important; }

/* Bilah konteks menempel di bawah header, selebar layar, menyatu dengan header */
html body > #hfReviewContext,
html body > #hfReviewContext.is-owner-school {
  position: sticky !important; top: var(--hf-topbar-h, 64px) !important; z-index: 115 !important;
  width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important;
  border: 0 !important; border-bottom: 1px solid rgba(4, 61, 44, .06) !important;
  padding: 6px max(16px, calc((100% - 1160px) / 2)) 8px !important;
  background: rgba(248, 247, 242, .74) !important; box-shadow: none !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important; backdrop-filter: saturate(180%) blur(20px) !important;
}
html body.hf-scrolled > #hfReviewContext { background: rgba(248, 247, 242, .82) !important; box-shadow: 0 10px 24px -16px rgba(4, 61, 44, .30) !important; }
html body > #hfReviewContext::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 242, 236, .75), rgba(243, 242, 236, 0)); opacity: 0; transition: opacity .2s ease;
}
html body.hf-scrolled > #hfReviewContext::after { opacity: 1; }
/* Ruang di atas konten agar tidak terlalu rapat dengan bilah */
html body > #hfReviewContext + * { margin-top: 14px; }

/* Navigasi bawah (ponsel & tablet): kaca bening dengan blur + tepi bawah layar memudar */
@media (max-width: 1099px) {
  html body nav.tabbar {
    background: rgba(255, 255, 255, .70) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important; backdrop-filter: saturate(180%) blur(22px) !important;
    border: 1px solid rgba(255, 255, 255, .75) !important;
    box-shadow: 0 14px 34px -10px rgba(4, 61, 44, .28), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
  }
  html body:has(> nav.tabbar)::after {
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: 890; pointer-events: none;
    background: linear-gradient(180deg, rgba(243, 242, 236, 0) 0%, rgba(243, 242, 236, .72) 55%, rgba(243, 242, 236, .92) 100%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  html body .topbar, html body.hf-scrolled .topbar, html body .topbar:has(+ #hfReviewContext), html body > #hfReviewContext, html body.hf-scrolled > #hfReviewContext, html body > #hfReviewContext.is-owner-school { background: #F8F7F2 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body nav.tabbar { background: #FFFFFF !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
/* Header tetap menempel juga di mode sekolah Pengelola (menimpa aturan lama yang membuatnya ikut tergulir) */
html body .topbar:has(+ #hfReviewContext),
html body .topbar:has(+ #hfReviewContext.is-owner-school) { position: sticky !important; top: 0 !important; z-index: 120 !important; }
/* Kartu statistik 3 kolom di layar sempit: ikon di atas, teks di bawah agar label tidak terpotong */
@media (max-width: 480px) {
  html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat > svg { width: 36px; height: 36px; }
  html body.hf-management-workspace .hf-owner-stats-3 > .hf-owner-stat > span { min-width: 0; }
}
/* Menu samping (laptop) menempel di bawah header + bilah konteks, tidak tertutup header */
@media (min-width: 1100px) {
  html body #hfWorkspaceSidebar { top: var(--hf-sticky-h, 64px) !important; max-height: calc(100vh - var(--hf-sticky-h, 64px)) !important; overflow-y: auto; }
}

/* Bilah peninjauan (mis. admin meninjau pengajar): satu baris ringkas, profil sebagai panel tarik-turun */
html body > #hfReviewContext:not(.is-owner-school) { display: flex !important; align-items: center; gap: 10px; flex-wrap: nowrap; min-height: 0; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-back { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 38px; padding: 0 !important; border-radius: 12px; background: #EEF5F1 !important; border: 1px solid rgba(7, 92, 66, .14) !important; color: #075C42 !important; box-shadow: none !important; transform: none !important; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-back span { display: none !important; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-back svg { width: 18px; height: 18px; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 0; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-label { font-size: 10.5px; letter-spacing: .06em; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-subject { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-main nav { display: none !important; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actor { flex: 0 0 auto; display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #FFF3D4; border: 1px solid #F0D58A; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actor small { display: none; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actor strong { font-size: 11.5px; color: #8A5B07; white-space: nowrap; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions { flex: 0 0 auto; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions details { padding: 0; background: none; border-radius: 0; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid rgba(7, 92, 66, .14); font-size: 12.5px; font-weight: 800; color: #075C42; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions summary::-webkit-details-marker { display: none; }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions details[open] summary { background: #E2EFE8; }
html body > #hfReviewContext .hf-review-profile-panel { position: absolute; left: max(16px, calc((100% - 1160px) / 2)); right: max(16px, calc((100% - 1160px) / 2)); top: calc(100% + 8px); z-index: 2; max-height: min(70vh, 520px); overflow-y: auto; display: grid; gap: 10px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid rgba(7, 92, 66, .10); box-shadow: 0 18px 40px -12px rgba(4, 61, 44, .30); }
@media (min-width: 700px) { html body > #hfReviewContext .hf-review-profile-panel { left: auto; width: 380px; } }
@media (max-width: 380px) { html body > #hfReviewContext:not(.is-owner-school) .hf-review-actor { display: none; } }
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions,
html body > #hfReviewContext:not(.is-owner-school) .hf-review-actions details { position: static !important; }
/* Detail siswa: header sudah punya tombol kembali, jadi tombol kembali di bilah peninjauan disembunyikan */
html body.teacher-detail-page > #hfReviewContext .hf-review-back { display: none !important; }
/* Laptop: menu samping pengajar/siswa mulai di bawah header + bilah peninjauan (bila ada) */
@media (min-width: 1100px) {
  html body:is(.teacher-dashboard-page, .teacher-detail-page, .student-dashboard-page):not(.hf-management-workspace):not(.hf-platform-mode) > nav.tabbar:not(.hf-mobile-tabbar) { top: var(--hf-sticky-h, var(--hf-top)) !important; }
}

/* ===== Admin › Siswa: kartu bergaya kartu siswa pengajar ===== */
html body #hfAdminStudentList:has(.hf-admin-student-card) { display: grid !important; grid-template-columns: 1fr; gap: 14px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
@media (min-width: 760px) { html body #hfAdminStudentList:has(.hf-admin-student-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1500px) { html body #hfAdminStudentList:has(.hf-admin-student-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body.teacher-dashboard-page .hf-admin-student-card { animation: none; }
html body.teacher-dashboard-page .hf-admin-student-card > button.hf-student-card-link { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 0; box-shadow: none; }
html body.teacher-dashboard-page .hf-admin-student-card > button.hf-student-card-link:focus-visible { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 4px; border-radius: 12px; }
html body.teacher-dashboard-page .hf-admin-student-card .ts-head { padding-right: 34px; }
html body.teacher-dashboard-page .hf-admin-student-card .hf-admin-card-check { position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0; width: 24px; height: 24px; accent-color: #075C42; cursor: pointer; }
html body.teacher-dashboard-page .hf-admin-student-card:has(.hf-admin-card-check:checked) { border-color: rgba(7, 92, 66, .55); box-shadow: 0 0 0 2px rgba(7, 92, 66, .25), 0 8px 22px rgba(4, 61, 44, .08); }
html body.teacher-dashboard-page .hf-admin-student-card .hf-admin-card-teacher { display: flex; align-items: center; gap: 6px; color: #5D7064; font-weight: 600; }
html body.teacher-dashboard-page .hf-admin-student-card .hf-admin-card-teacher svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ink, #075C42); }
html body.teacher-dashboard-page .hf-admin-student-card .hf-admin-card-teacher span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.teacher-dashboard-page .hf-admin-student-card .ts-chip.is-number { background: #FFF7E0; color: #8A5B07; }
html body.teacher-dashboard-page .hf-admin-student-card .ts-chip.is-missing { background: rgba(228, 87, 46, .10); color: #B0441A; }
html body.teacher-dashboard-page .hf-admin-student-card > .hf-avatar-anchor > .hf-role-avatar { width: 100% !important; height: 100% !important; min-width: 0 !important; border-radius: 50% !important; background: #fff !important; overflow: hidden; }
html body.teacher-dashboard-page .hf-admin-student-card > .hf-avatar-anchor > .hf-role-avatar > svg { width: 100% !important; height: 100% !important; }
/* Bilah aksi saat ada pilihan (siswa/pengajar): kartu ringkas */
html body .hf-admin-bulkbar:has([data-pick-clear]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(7, 92, 66, .22); box-shadow: 0 8px 22px -10px rgba(4, 61, 44, .25); }
html body .hf-admin-bulkbar:has([data-pick-clear]) > [role="status"] { flex: 1 1 100%; font-size: 14px; font-weight: 800; color: var(--hf-ink); }
html body .hf-admin-bulkbar:has([data-pick-clear]) .hf-admin-button { min-height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
html body .hf-admin-bulkbar:has([data-pick-clear]) :is([data-admin-remove], [data-admin-permanent]) { color: #B42318; border-color: rgba(180, 35, 24, .25); background: #FFF6F5; }

/* ===== Admin › Kelas, Pengajar, Kelompok: kartu bergaya akun pengajar ===== */
html body .hf-admin-card.hf-admin-card-grid { display: grid !important; grid-template-columns: 1fr; gap: 14px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
@media (min-width: 760px) { html body .hf-admin-card.hf-admin-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1500px) { html body .hf-admin-card.hf-admin-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* kartu kelas */
html body.teacher-dashboard-page .hf-admin-room-card { cursor: default; grid-template-columns: auto minmax(0, 1fr); }
html body.teacher-dashboard-page .hf-admin-room-card:active { transform: none; }
html body .hf-admin-room-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
html body .hf-admin-room-actions > :is(.hf-admin-button, a.hf-admin-button) { flex: 1 1 0; min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 12px; background: rgba(255, 255, 255, .85); justify-content: center; }
html body .hf-admin-room-actions > details { flex: 0 0 auto; position: relative; }
/* kartu pengajar */
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions { margin-top: 2px; }
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions details > summary { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 12px; }
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions details > div { right: 0; left: auto; }
html body.teacher-dashboard-page .hf-admin-teacher-card { overflow: visible; }
/* kartu kelompok (papan seret-taruh) */
html body.teacher-dashboard-page .hf-admin-board-card.hf-admin-board-room[data-tone="green"] { --t1: #2F9E72; --t2: #075C42; --edge: #043D2C; --soft: rgba(47, 158, 114, .14); --ink: #075C42; }
html body.teacher-dashboard-page .hf-admin-board-card.hf-admin-board-room[data-tone="teal"] { --t1: #35A9B8; --t2: #0E6674; --edge: #0A4852; --soft: rgba(53, 169, 184, .18); --ink: #0E6674; }
html body.teacher-dashboard-page .hf-admin-board-card.hf-admin-board-room[data-tone="gold"] { --t1: #F7CB4A; --t2: #D99512; --edge: #A87008; --soft: rgba(240, 180, 41, .24); --ink: #8A5B07; }
html body.teacher-dashboard-page .hf-admin-board-card.hf-admin-board-room[data-tone="coral"] { --t1: #F58A5B; --t2: #E4572E; --edge: #A93A1A; --soft: rgba(244, 121, 56, .18); --ink: #B0441A; }
html body.teacher-dashboard-page .hf-admin-board-card.hf-admin-board-room { border: 1px solid rgba(227, 224, 210, .9) !important; border-radius: 24px !important; background: radial-gradient(200px 140px at 100% 0, var(--soft), transparent 72%), #fff !important; box-shadow: 0 8px 22px rgba(4, 61, 44, .08), 0 3px 0 rgba(227, 224, 210, .95) !important; }
html body.teacher-dashboard-page .hf-admin-board-room > header { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
html body.teacher-dashboard-page .hf-admin-board-room > header .trc-badge { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; }
html body.teacher-dashboard-page .hf-admin-board-room > header h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--hf-ink); }
html body.teacher-dashboard-page .hf-admin-board-room > header small { display: inline-block; margin-top: 3px; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 11.5px; font-weight: 800; }
html body.teacher-dashboard-page .hf-admin-board-room > header > .hf-admin-button { grid-column: 1 / -1; min-height: 36px; font-size: 13px; border-radius: 12px; }
html body.teacher-dashboard-page .hf-admin-board-room > header:has(> .hf-admin-button ~ .hf-admin-button) { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
html body.teacher-dashboard-page .hf-admin-board-room > header:has(> .hf-admin-button ~ .hf-admin-button) > div { grid-column: 2 / -1; }
html body.teacher-dashboard-page .hf-admin-board-room > header:has(> .hf-admin-button ~ .hf-admin-button) > .hf-admin-button:first-of-type { grid-column: 1 / 3; }
html body.teacher-dashboard-page .hf-admin-board-room > header:has(> .hf-admin-button ~ .hf-admin-button) > .hf-admin-button:last-of-type { grid-column: 3; }
html body.teacher-dashboard-page .hf-admin-student-card > .hf-avatar-anchor > .hf-role-avatar > svg { flex: 1 1 auto !important; min-width: 0 !important; }
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions { flex-wrap: nowrap; align-items: center; }
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions details { position: relative; }
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions details > summary { width: 38px; justify-content: center; padding: 0; background: rgba(255, 255, 255, .85); border: 1px solid rgba(7, 92, 66, .14); }
html body.teacher-dashboard-page .hf-admin-teacher-card .hf-admin-room-actions details > div { position: absolute !important; top: calc(100% + 6px); right: 0; left: auto; z-index: 20; min-width: 190px; display: grid !important; grid-template-columns: 1fr !important; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(7, 92, 66, .12); box-shadow: 0 14px 30px -10px rgba(4, 61, 44, .30) !important; }
html body.teacher-dashboard-page .hf-admin-teacher-card:has(details[open]) { z-index: 5; }

/* ===== Baris item tanpa kotak centang (Tempat sampah, Pemulihan, Cadangan, dll.) =====
   Grid lama menyisakan kolom 22px untuk kotak centang; tanpa kotak centang nama terhimpit. */
html body .hf-platform-account-row:not(:has(> input)) { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px !important; min-height: 0 !important; }
html body .hf-platform-account-row:not(:has(> input)) > div:first-child { min-width: 0; }
html body .hf-platform-account-row:not(:has(> input)) strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
html body .hf-platform-account-row:not(:has(> input)) small { display: block; margin-top: 3px; }
html body .hf-platform-account-row:not(:has(> input)) > .hf-platform-row-actions { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; grid-column: auto !important; justify-content: stretch; }
html body .hf-platform-account-row:not(:has(> input)) > .hf-platform-row-actions :is(.hf-admin-button, button, a) { width: 100%; min-height: 40px; justify-content: center; }
@media (min-width: 900px) {
  html body .hf-platform-account-row:not(:has(> input)) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center !important; gap: 16px !important; }
  html body .hf-platform-account-row:not(:has(> input)) > .hf-platform-row-actions { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: auto; }
}
/* Baris dengan kotak centang + menu ⋯ (Pemulihan akun, dll.): menu di kanan baris yang sama, isinya mengambang */
html body .hf-platform-account-row:has(> input):has(> .hf-platform-row-actions > details:only-child) { display: grid !important; grid-template-columns: 22px minmax(0, 1fr) auto !important; align-items: center !important; position: relative; }
html body .hf-platform-account-row:has(> input) > .hf-platform-row-actions:has(> details:only-child) { grid-column: 3 !important; grid-row: 1 !important; justify-content: flex-end; }
html body .hf-platform-account-row:has(> input) > .hf-platform-row-actions > details:only-child { position: static; width: auto !important; }
html body .hf-platform-account-row:has(> input) > .hf-platform-row-actions > details:only-child > summary { width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; border-radius: 12px; }
html body .hf-platform-account-row:has(> input) > .hf-platform-row-actions > details:only-child > div { position: absolute !important; top: calc(100% - 6px); right: 0; left: auto; z-index: 20; min-width: 210px; display: grid !important; grid-template-columns: 1fr !important; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(7, 92, 66, .12); box-shadow: 0 14px 30px -10px rgba(4, 61, 44, .30) !important; }
html body .hf-platform-account-row:has(> input):has(details[open]) { z-index: 5; }

/* Akun di Tempat sampah / Berkas pemulihan */
html body .hf-purged-row .hf-purged-left { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: #FFF3D4; color: #8A5B07; font-weight: 800; font-size: 11.5px; }
html body .hf-recovery-files > .hf-admin-help { margin: 4px 0 6px; }
html body .hf-recovery-files .hf-recovery-subhead { margin: 18px 0 2px; font-size: 15px; font-weight: 800; color: var(--hf-ink); }

/* ===== Kartu akun bersama (Pemulihan akun, Tempat sampah, Berkas pemulihan, Ringkasan) ===== */
/* Wadah daftar: kartu di atas latar halaman, bukan di dalam kotak putih */
html body :is(.hf-platform-accounts, .hf-recovery-files, .hf-trash-section):has(.hf-account-card),
html body .hf-admin-card:has(> .hf-admin-student-card):not(.hf-admin-card-grid):not(#hfAdminStudentList) {
  display: grid !important; grid-template-columns: 1fr; gap: 14px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
@media (min-width: 760px) {
  html body :is(.hf-platform-accounts, .hf-recovery-files, .hf-trash-section):has(.hf-account-card),
  html body .hf-admin-card:has(> .hf-admin-student-card):not(.hf-admin-card-grid):not(#hfAdminStudentList) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
html body :is(.hf-platform-accounts, .hf-recovery-files, .hf-trash-section):has(.hf-account-card) > :not(.hf-account-card),
html body .hf-admin-card:has(> .hf-admin-student-card):not(.hf-admin-card-grid):not(#hfAdminStudentList) > :not(.hf-admin-student-card) { grid-column: 1 / -1; }
html body .hf-recovery-files:has(.hf-account-card) > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Kartu akun: menu ⋯ / Kelola mengambang, tidak terpotong */
html body.teacher-dashboard-page .hf-account-card:not(.is-purged) { overflow: visible; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions { flex-wrap: nowrap; align-items: center; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions > small { flex: 1 1 auto; font-weight: 700; color: #5D7064; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions details { position: relative; margin-left: auto; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions details > summary { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(7, 92, 66, .14); font-weight: 800; color: #075C42; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions details > div { position: absolute !important; top: calc(100% + 6px); right: 0; left: auto; z-index: 20; min-width: 210px; display: grid !important; grid-template-columns: 1fr !important; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(7, 92, 66, .12); box-shadow: 0 14px 30px -10px rgba(4, 61, 44, .30) !important; }
html body.teacher-dashboard-page .hf-account-card:has(details[open]) { z-index: 6; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-card-check:disabled { display: none; }
html body.teacher-dashboard-page .hf-account-card .hf-platform-pill { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
html body .hf-account-note:empty { display: none; }
html body .hf-account-note small { display: block; font-size: 12px; color: #5D7064; }
html body.teacher-dashboard-page .hf-account-card .ts-chip.is-deleted { background: #FEE4E2; color: #B42318; }
html body.teacher-dashboard-page .hf-account-card .ts-chip.is-left { background: #FFF3D4; color: #8A5B07; }

/* Keadaan: dihapus sementara */
html body.teacher-dashboard-page .hf-account-card.is-trash { border: 1.5px dashed rgba(217, 149, 18, .6) !important; background: radial-gradient(200px 140px at 100% 0, rgba(240, 180, 41, .16), transparent 72%), #FFFCF2 !important; }
html body.teacher-dashboard-page .hf-account-card.is-trash > .hf-avatar-anchor { filter: grayscale(.6); opacity: .85; }
/* Keadaan: dibekukan */
html body.teacher-dashboard-page .hf-account-card.is-frozen { border-color: rgba(53, 169, 184, .55) !important; }
/* Keadaan: dihapus permanen (Tempat sampah) */
html body.teacher-dashboard-page .hf-account-card.is-purged {
  --t1: #BDB7B2; --t2: #8F8984; --edge: #6E6965;
  border: 1.5px dashed rgba(180, 35, 24, .45) !important;
  background: radial-gradient(220px 150px at 100% 0, rgba(228, 87, 46, .12), transparent 72%), #FFF7F5 !important;
  box-shadow: 0 6px 18px rgba(180, 35, 24, .08) !important;
}
html body.teacher-dashboard-page .hf-account-card.is-purged > .hf-avatar-anchor { filter: grayscale(1); opacity: .7; }
html body.teacher-dashboard-page .hf-account-card.is-purged .teacher-student-name { color: #7A3E36; }
html body.teacher-dashboard-page .hf-account-card.is-purged::after {
  content: "Dihapus"; position: absolute; top: 14px; right: -34px; transform: rotate(35deg); padding: 3px 38px;
  background: #D92D20; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(180, 35, 24, .3);
}
html body.teacher-dashboard-page .hf-account-card.is-purged .ts-head { padding-right: 46px; }

/* Kelompok: gelembung inisial anggota */
html body.teacher-dashboard-page .hf-admin-board-member { display: flex; align-items: center; gap: 10px; }
html body.teacher-dashboard-page .hf-admin-board-member .hf-member-bubble { flex: 0 0 auto; width: 34px; height: 34px; margin: 0; border: 0; font-size: 13px; box-shadow: 0 2px 0 rgba(4, 61, 44, .18); }
html body.teacher-dashboard-page .hf-admin-board-member .hf-admin-member-copy { flex: 1 1 auto; min-width: 0; }
html body.teacher-dashboard-page .hf-account-card.is-purged .hf-admin-room-actions { flex-wrap: wrap; }
html body.teacher-dashboard-page .hf-account-card.is-purged .hf-admin-room-actions > .hf-admin-button { flex: 1 1 auto; white-space: nowrap; font-size: 12.5px; padding: 0 12px; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions:has(> details:only-child) { position: absolute; right: 14px; bottom: 14px; margin: 0; }
html body.teacher-dashboard-page .hf-account-card:has(.hf-admin-room-actions > details:only-child) .ts-chips { padding-right: 52px; min-height: 38px; align-items: center; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions > details:only-child > summary { width: 40px; padding: 0; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions:has(> details:only-child) { display: flex; justify-content: flex-end; width: auto; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions > details:only-child { margin-left: 0; width: 40px !important; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions > details:only-child { min-width: 0 !important; max-width: 40px !important; flex: 0 0 40px !important; }
/* Ringkasan › Daftar siswa: kartu langsung di atas latar, tanpa kotak putih ganda */
html body .hf-admin-card:has(> #hfAdminOverviewStudents > .hf-admin-student-card) { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body .hf-admin-card:has(> #hfAdminOverviewStudents > .hf-admin-student-card) > header { margin-bottom: 12px; }
html body #hfAdminOverviewStudents:has(> .hf-admin-student-card) { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { html body #hfAdminOverviewStudents:has(> .hf-admin-student-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* Kartu admin: efek sorot halus (menimpa .siswa-card:hover lama yang memberi tepi hijau) */
html body.teacher-dashboard-page .hf-admin-student-card:hover { border-color: rgba(227, 224, 210, .9); transform: none; box-shadow: 0 12px 26px -8px rgba(4, 61, 44, .16), 0 3px 0 rgba(227, 224, 210, .95); }
html body.teacher-dashboard-page .hf-admin-student-card:is(.is-trash, .is-purged, .is-frozen):hover { transform: none; }
@media (hover: hover) { html body.teacher-dashboard-page .hf-admin-student-card { transition: box-shadow .18s ease; } }

/* ===== Kelas & Kelompok: kartu ringkas, buka-tutup daftar siswa ===== */
html body.teacher-dashboard-page .hf-admin-room-card { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; align-items: stretch; }
html body .hf-room-head { appearance: none; -webkit-appearance: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; box-shadow: none; min-height: 0; }
html body .hf-room-head:focus-visible { outline: 3px solid rgba(7, 92, 66, .3); outline-offset: 4px; border-radius: 16px; }
html body .hf-room-head .trc-main { display: grid; gap: 2px; min-width: 0; }
html body .hf-room-head .trc-main strong { font-size: 17px; font-weight: 800; color: var(--hf-ink); overflow-wrap: anywhere; }
html body .hf-room-head .trc-main small { font-size: 12.5px; color: #5D7064; }
html body .hf-room-count { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--soft, rgba(7, 92, 66, .1)); color: var(--ink, #075C42); font-size: 11.5px; font-weight: 800; }
html body .hf-room-count:empty { display: none; }
html body .hf-room-chevron { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft, rgba(7, 92, 66, .1)); color: var(--ink, #075C42); transition: transform .2s ease; }
html body .hf-room-chevron svg { width: 18px; height: 18px; transform: rotate(90deg); }
html body .is-open > .hf-room-head .hf-room-chevron,
html body .is-open > header > .hf-room-head .hf-room-chevron { transform: rotate(180deg); }
html body .hf-admin-room-card:not(.is-open) > .hf-room-body { display: none; }
html body .hf-admin-room-card > .hf-room-body { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
html body .hf-class-member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(227, 224, 210, .9); }
html body .hf-class-member .hf-admin-member-copy { display: grid; min-width: 0; }
html body .hf-class-member strong { font-size: 14px; color: var(--hf-ink); }
html body .hf-class-member small { font-size: 12px; color: #5D7064; }
html body .hf-member-bubble { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; margin: 0 !important; border: 0 !important; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #2F9E72, #075C42); }
html body .hf-member-bubble[data-tone="teal"] { background: linear-gradient(160deg, #35A9B8, #0E6674); }
html body .hf-member-bubble[data-tone="gold"] { background: linear-gradient(160deg, #F7CB4A, #D99512); }
html body .hf-member-bubble[data-tone="coral"] { background: linear-gradient(160deg, #F58A5B, #E4572E); }
/* kartu kelompok */
html body.teacher-dashboard-page .hf-admin-board-room > header { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: center; }
html body.teacher-dashboard-page .hf-admin-board-room > header > .hf-room-head { grid-column: 1 / -1 !important; }
html body.teacher-dashboard-page .hf-admin-board-room > header > .hf-admin-button { grid-column: auto !important; }
html body.teacher-dashboard-page .hf-admin-board-room > header > .hf-admin-button:only-of-type { grid-column: 1 / -1 !important; }
html body.teacher-dashboard-page .hf-admin-board-room:not(.is-open) > :is(.hf-admin-board-members, .hf-admin-button) { display: none !important; }
html body.teacher-dashboard-page .hf-admin-board-room > .hf-admin-help { margin: 6px 0 0; }
/* avatar pengajar di papan (mode Pengajar) */
html body .hf-admin-board-member > .hf-member-avatar { flex: 0 0 auto; width: 36px; height: 36px; padding: 2px; border-radius: 50%; background: linear-gradient(145deg, #2F9E72, #075C42); box-sizing: border-box; }
html body .hf-admin-board-member > .hf-member-avatar > * { width: 100% !important; height: 100% !important; border-radius: 50%; background: #fff; overflow: hidden; }

/* Avatar ilustrasi pengajar/admin di dalam kartu */
html body.teacher-dashboard-page .hf-admin-student-card > .hf-avatar-anchor > .hf-teacher-avatar { width: 100% !important; height: 100% !important; min-width: 0 !important; border-radius: 50% !important; overflow: hidden; background: #fff; }
html body.teacher-dashboard-page .hf-admin-student-card > .hf-avatar-anchor > .hf-teacher-avatar > svg { width: 100% !important; height: 100% !important; flex: 1 1 auto !important; }

/* ===== Pemulihan akun: panduan, filter pil, keterangan tindakan ===== */
html body .hf-account-guide { margin: 0 0 16px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid rgba(7, 92, 66, .12); box-shadow: 0 8px 22px -14px rgba(4, 61, 44, .25); }
html body .hf-account-guide > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--hf-ink); }
html body .hf-account-guide > summary::-webkit-details-marker { display: none; }
html body .hf-account-guide > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid #075C42; border-bottom: 2.5px solid #075C42; transform: rotate(45deg); transition: transform .2s; }
html body .hf-account-guide[open] > summary::after { transform: rotate(-135deg); }
html body .hf-guide-badge { padding: 3px 10px; border-radius: 999px; background: #E1F0E7; color: #075C42; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
html body .hf-guide-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
@media (min-width: 900px) { html body .hf-guide-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html body .hf-guide-steps li { counter-increment: step; position: relative; display: grid; gap: 4px; padding: 12px 14px 12px 46px; border-radius: 16px; border: 1.5px solid var(--g-line); background: var(--g-bg); }
html body .hf-guide-steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g-ink); color: #fff; font-size: 12px; font-weight: 800; }
html body .hf-guide-steps b { font-size: 14.5px; color: var(--hf-ink); }
html body .hf-guide-steps span { font-size: 12.5px; line-height: 1.45; color: #4F6358; }
html body .hf-guide-steps em { justify-self: start; margin-top: 2px; padding: 2px 9px; border-radius: 999px; background: #fff; color: var(--g-ink); font-size: 11.5px; font-style: normal; font-weight: 800; }
html body .hf-guide-steps .is-frozen { --g-bg: #EEF8FA; --g-line: rgba(53, 169, 184, .35); --g-ink: #0E6674; }
html body .hf-guide-steps .is-trash { --g-bg: #FFFAEB; --g-line: rgba(217, 149, 18, .4); --g-ink: #A87008; }
html body .hf-guide-steps .is-purged { --g-bg: #FFF4F2; --g-line: rgba(217, 45, 32, .35); --g-ink: #B42318; }
html body .hf-guide-steps .is-erased { --g-bg: #F4F4F3; --g-line: rgba(110, 105, 101, .3); --g-ink: #57534E; }
html body .hf-guide-note { margin: 10px 2px 0; font-size: 12.5px; color: #5D7064; }
html body .hf-filter-chips { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
html body .hf-filter-chips::-webkit-scrollbar { display: none; }
html body .hf-filter-chip { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(7, 92, 66, .16); background: #fff; color: #2E4A3C; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
html body .hf-filter-chip.is-active { background: linear-gradient(180deg, #0B7552, #075C42); border-color: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
html body .hf-filter-chip.f-frozen:not(.is-active) { color: #0E6674; }
html body .hf-filter-chip.f-trash:not(.is-active) { color: #A87008; }
html body .hf-filter-chip.f-purged:not(.is-active) { color: #B42318; }
html body .hf-visually-hidden-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
html body .hf-account-card .hf-action-item { display: grid !important; gap: 2px; text-align: left; justify-items: start; padding: 9px 12px !important; min-height: 0 !important; height: auto !important; white-space: normal; }
html body .hf-account-card .hf-action-item strong { font-size: 13.5px; font-weight: 800; }
html body .hf-account-card .hf-action-item small { font-size: 11.5px; font-weight: 600; color: #5D7064; line-height: 1.35; }
html body .hf-account-card .hf-action-item:is(.is-perm, .is-purge) { background: #FFF6F5 !important; border-color: rgba(180, 35, 24, .22) !important; }
html body .hf-account-card .hf-action-item:is(.is-perm, .is-purge) strong { color: #B42318; }
html body .hf-account-card .hf-action-item.is-trash strong { color: #A87008; }
html body .hf-account-card .hf-action-item:is(.is-freeze, .is-unfreeze) strong { color: #0E6674; }
html body.teacher-dashboard-page .hf-account-card .hf-admin-room-actions details > div { min-width: 250px; }
html body.teacher-dashboard-page .hf-admin-board-room > header .hf-room-head .trc-main small { justify-self: start; }
html body.teacher-dashboard-page .hf-class-member .hf-member-bubble, html body.teacher-dashboard-page .hf-admin-board-member .hf-member-bubble { width: 34px !important; height: 34px !important; font-size: 13px !important; }

/* Kartu yang menu-nya mengambang (overflow: visible): garis hijau atas .siswa-card tetap ada,
   tetapi digambar selebar kartu dengan sudut mewarisi kartu sehingga terpotong rapi mengikuti lengkungnya. */
html body.teacher-dashboard-page :is(.hf-account-card, .hf-admin-teacher-card)::before { top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-light)) top left / 100% 3px no-repeat; pointer-events: none; }

/* ===== Filter pil yang dapat digulir (komponen bersama area admin) ===== */
html body .hf-chip-source { display: none !important; }
html body .hf-chip-filter { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; margin: 0 0 12px; }
html body .hf-chip-filter[hidden] { display: none !important; }
html body .hf-chip-filter-label { font-size: 12.5px; font-weight: 800; color: #075C42; }
html body .hf-chip-filter .hf-filter-chips { margin: 0; padding: 2px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
html body .hf-chip-filter .hf-filter-chip { scroll-snap-align: start; white-space: nowrap; }
html body .hf-chip-filter .hf-filter-chips.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
html body .hf-chip-filter .hf-filter-chips.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
html body .hf-chip-filter .hf-filter-chips.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
html body .hf-filter-chip:hover:not(.is-active) { border-color: rgba(7, 92, 66, .35); background: #F4FAF6; }
html body .hf-filter-chip:focus-visible { outline: 3px solid rgba(7, 92, 66, .3); outline-offset: 2px; }

/* ===== Halaman login: lockup logo seimbang (lambang setinggi blok teks) ===== */
html body.login-page .login-brand .hf-lockup { display: flex; align-items: center; gap: 18px; margin: 0 0 30px; }
html body.login-page .login-brand .hf-lockup .hf-brand__symbol { width: 74px; height: 74px; margin: 0; flex: none; display: grid; place-items: center; }
html body.login-page .login-brand .hf-lockup .hf-brand__emblem { width: 100%; height: 100%; display: block; border-radius: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); }
html body.login-page .login-brand .hf-lockup .brand-identity { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-width: 0; }
html body.login-page .login-brand .hf-lockup h1 { margin: 0; line-height: 0; }
html body.login-page .login-brand .hf-lockup .login-wordmark { display: block; width: 238px; max-width: 100%; height: auto; }
html body.login-page .login-brand .hf-lockup .brand-tagline { margin: 10px 0 0 2px; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .015em; color: #FAF7EE; opacity: .86; white-space: nowrap; }
@media (max-width: 760px) {
  html body.login-page .login-brand { padding-top: calc(34px + env(safe-area-inset-top, 0px)) !important; }
  html body.login-page .login-brand .hf-lockup { gap: 13px; margin: 0 0 22px; }
  html body.login-page .login-brand .hf-lockup .hf-brand__symbol { width: 56px; height: 56px; }
  html body.login-page .login-brand .hf-lockup .login-wordmark { width: 176px; }
  html body.login-page .login-brand .hf-lockup .brand-tagline { margin-top: 7px; font-size: 12.5px; line-height: 16px; }
}
@media (max-width: 360px) {
  html body.login-page .login-brand .hf-lockup { gap: 11px; }
  html body.login-page .login-brand .hf-lockup .hf-brand__symbol { width: 50px; height: 50px; }
  html body.login-page .login-brand .hf-lockup .login-wordmark { width: 150px; }
  html body.login-page .login-brand .hf-lockup .brand-tagline { margin-top: 6px; font-size: 11.5px; line-height: 15px; }
}

/* ===== Halaman login: animasi (logo masuk bertahap, latar bernapas, respons form) ===== */
/* Latar: pola bintang delapan bergaris emas + cahaya emas lembut */
html body.login-page .login-brand { isolation: isolate; }
html body.login-page .login-brand > * { position: relative; z-index: 1; }
html body.login-page .login-brand::before {
  content: ""; position: absolute; inset: -72px; top: -72px; right: -72px; width: auto; height: auto; border-radius: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23F0B429' stroke-width='1.1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 0L22 22M72 0L50 22M0 72L22 50M72 72L50 50'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 72px 72px repeat;
  opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 70% 30%, #000 10%, transparent 75%);
}
html body.login-page .login-brand::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; font-size: 0;
  left: auto; bottom: auto; right: -12%; top: -18%; width: 70%; aspect-ratio: 1; height: auto; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, .22) 0%, rgba(240, 180, 41, .08) 38%, transparent 68%);
}

/* Logo masuk bertahap: lambang -> tulisan -> tagline -> deskripsi -> kutipan */
@keyframes hfLoginEmblemIn { from { opacity: 0; transform: scale(.82) rotate(-8deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes hfLoginRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hfLoginSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes hfLoginDrift { from { background-position: 0 0; } to { background-position: 72px 72px; } }
@keyframes hfLoginGlow { 0% { transform: translate(0, 0) scale(1); opacity: .85; } 50% { transform: translate(-14%, 10%) scale(1.12); opacity: 1; } 100% { transform: translate(-26%, 22%) scale(.95); opacity: .75; } }
@keyframes hfLoginShake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes hfLoginFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes hfLoginPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html body.login-page .login-brand { animation: none; }
  html body.login-page .login-brand::before { animation: hfLoginDrift 40s linear infinite; }
  html body.login-page .login-brand::after { animation: hfLoginGlow 18s ease-in-out infinite alternate; }
  html body.login-page .login-brand .hf-lockup .hf-brand__symbol { animation: hfLoginEmblemIn .7s cubic-bezier(.22, 1, .36, 1) both; }
  html body.login-page .login-brand .hf-lockup h1 { animation: hfLoginSlide .55s cubic-bezier(.22, 1, .36, 1) .18s both; }
  html body.login-page .login-brand .hf-lockup .brand-tagline { animation: hfLoginRise .5s ease-out .34s both; }
  html body.login-page .login-brand .brand-desc { animation: hfLoginRise .5s ease-out .46s both; }
  html body.login-page .login-brand .brand-quote { animation: hfLoginRise .5s ease-out .56s both; }
  html body.login-page .login-error.is-shake { animation: hfLoginFade .18s ease-out, hfLoginShake .42s ease-in-out .05s; }
  html body.login-page .btn-toggle-pw svg { animation: hfLoginPop .2s ease-out; }
}

/* Respons form */
html body.login-page .login-form-panel .form-group label { transition: color .2s ease; }
html body.login-page .login-form-panel .form-group:focus-within label { color: #075C42; }
html body.login-page .login-form-panel input { transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease; }
html body.login-page .login-form-panel input:hover:not(:focus) { border-color: #C9C4AE; }
html body.login-page .login-form-panel input:focus { border-color: #075C42; background: #fff; box-shadow: 0 0 0 4px rgba(7, 92, 66, .12), 0 6px 18px -10px rgba(7, 92, 66, .45); outline: none; }
html body.login-page #loginBtn { display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease; }
html body.login-page #loginBtn:hover:not(:disabled) { background: #0B6B4D; }
html body.login-page #loginBtn .btn-spinner { order: -1; }
html body.login-page #loginBtn.is-loading { cursor: progress; opacity: 1; background: #0B6B4D; box-shadow: 0 4px 0 #043D2C; }
html body.login-page .login-error { border-radius: 12px; }

/* ===== Halaman login: panel terang — kartu form (A), suasana latar (B), cahaya kursor (C) ===== */
/* B. Suasana: cahaya hijau & emas samar di sudut + pola bintang delapan yang sangat pudar */
html body.login-page .login-form-panel {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(231, 178, 43, .16), transparent 70%),
    radial-gradient(ellipse 65% 50% at 0% 100%, rgba(7, 92, 66, .11), transparent 70%),
    transparent;
}
html body.login-page .login-form-panel > * { position: relative; z-index: 1; }
html body.login-page .login-form-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23075C42' stroke-width='1.1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 0L22 22M72 0L50 22M0 72L22 50M72 72L50 50'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 72px 72px repeat;
  opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 100% 0%, #000, transparent 75%), radial-gradient(ellipse 55% 45% at 0% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 45% at 100% 0%, #000, transparent 75%), radial-gradient(ellipse 55% 45% at 0% 100%, #000, transparent 75%);
}
/* C. Cahaya mengikuti kursor (diaktifkan skrip hanya di perangkat bermouse) */
html body.login-page .login-form-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--hf-mx, 50%) var(--hf-my, 50%), rgba(7, 92, 66, .10), rgba(231, 178, 43, .08) 40%, transparent 70%);
  opacity: var(--hf-spot, 0); transition: opacity .45s ease;
}

/* A. Kartu form */
html body.login-page .hf-login-card {
  position: relative; box-sizing: border-box;
  padding: 34px 32px 18px; border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(227, 224, 210, .95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -22px rgba(4, 61, 44, .35), 0 4px 12px -6px rgba(4, 61, 44, .12);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
html body.login-page .hf-login-card:focus-within {
  border-color: rgba(7, 92, 66, .35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 4px rgba(7, 92, 66, .07), 0 22px 46px -22px rgba(4, 61, 44, .45), 0 4px 12px -6px rgba(4, 61, 44, .14);
}
/* garis aksen emas-hijau di atas kartu */
html body.login-page .hf-login-card > .login-header::before {
  content: ""; display: block; width: 44px; height: 4px; margin: 0 0 16px; border-radius: 999px;
  background: linear-gradient(90deg, #075C42, #E7B22B);
}
html body.login-page .hf-login-card .login-header { margin-bottom: 22px; }
html body.login-page .hf-login-card .hf-recovery-link { margin: 10px auto 0; }
/* C. Tepi kartu menyala di sisi yang dekat kursor */
html body.login-page .hf-login-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--hf-cx, 50%) var(--hf-cy, 0%), rgba(7, 92, 66, .7), rgba(231, 178, 43, .55) 40%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--hf-spot, 0); transition: opacity .45s ease;
}
/* saat mengetik, cahaya kursor diredupkan */
html body.login-page .login-form-panel:has(.hf-login-card:focus-within)::after { opacity: calc(var(--hf-spot, 0) * .4); }

@media (min-width: 900px) {
  html body.login-page .login-form-panel > .hf-login-card { max-width: 420px; }
}
@media (max-width: 899px) {
  html body.login-page .login-form-panel { padding: 18px 16px 14px !important; }
  html body.login-page .hf-login-card { padding: 22px 18px 10px; border-radius: 22px; }
  html body.login-page .hf-login-card > .login-header::before { margin-bottom: 12px; }
  html body.login-page .hf-login-card .login-header { margin-bottom: 16px; }
}
@media (max-width: 360px) {
  html body.login-page .hf-login-card { padding: 20px 14px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  html body.login-page .hf-login-card { animation: hfLoginRise .55s cubic-bezier(.22, 1, .36, 1) .15s both; }
}
@media (prefers-reduced-motion: reduce) {
  html body.login-page .login-form-panel::after, html body.login-page .hf-login-card::before { display: none; }
}

/* ===== Palet teks Hafaluma (satu sumber untuk semua akun) =====
   Judul & angka #075C42 (lewat --hf-ink) · Teks isi #2E4A3C · Sekunder #4F6358 · Redup #5D7064 · Halus #6F8176 · Aksen #075C42 */
:root {
  --hf-ink: #075C42;
  --hf-text: #2E4A3C;
  --hf-text-2: #4F6358;
  --hf-muted: #5D7064;
  --hf-subtle: #6F8176;
  --text: var(--hf-text);
  --text-secondary: var(--hf-text-2);
  --text-muted: var(--hf-muted);
  --text-light: var(--hf-subtle);
  --primary-light: #0B7552;
  --icon-inactive: var(--hf-subtle);
}
html body { color: var(--hf-text); }
/* Elemen yang tanpa aturan warna jatuh ke hitam bawaan browser: arahkan ke palet */
:where(button, input, select, textarea, option, dialog, legend, summary) { color: var(--hf-text); }
:where(h1, h2, h3, h4, h5, h6) { color: var(--hf-ink); }
:where(a) { color: var(--primary); }
:where(input, textarea)::placeholder { color: #8A9990; opacity: 1; }
:where(th) { color: var(--hf-text-2); }

/* ===== Siswa: skala tipografi seragam (menggantikan ukuran campuran dari aturan lama) =====
   Judul halaman 28/800 · Judul bagian 17/800 · Tombol buka-tutup 13/700 · Label 13/600 redup · Penghitung pil 11.5/800 */
html body.student-dashboard-page :is(#hafalanTab, #murojaahTab .mur-page-heading, #studentProfileOverview) > h2,
html body.student-dashboard-page .mur-page-heading h2,
html body.student-dashboard-page #studentProfileOverview h2 { font-size: 28px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
html body.student-dashboard-page :is(.chart-header, .peta-card-header, .target-card-header, .hf-plan-card-head, .hf-plan-heading, .riwayat-section-title, .hf-learn-section-head) h3,
html body.student-dashboard-page :is(.hf-learn-card:not(.hf-milestone), .student-profile-card) > h3 { font-size: 17px !important; font-weight: 800 !important; line-height: 1.3 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
/* tombol buka-tutup (details) */
html body.student-dashboard-page :is(.hf-progress-more, .hf-plan-more, .mur-peta-help, .hf-grade-legend, .hf-progress-method, .hf-plan-help) > summary { display: flex !important; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px !important; font-weight: 700 !important; color: var(--primary) !important; }
html body.student-dashboard-page :is(.hf-progress-more, .hf-plan-more, .mur-peta-help, .hf-grade-legend, .hf-progress-method, .hf-plan-help) > summary::-webkit-details-marker { display: none; }
html body.student-dashboard-page :is(.hf-progress-more, .hf-plan-more, .mur-peta-help, .hf-grade-legend, .hf-progress-method, .hf-plan-help) > summary::marker { content: ""; }
html body.student-dashboard-page :is(.hf-progress-more, .hf-plan-more, .mur-peta-help, .hf-grade-legend, .hf-progress-method, .hf-plan-help) > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 0 1px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
html body.student-dashboard-page :is(.hf-progress-more, .hf-plan-more, .mur-peta-help, .hf-grade-legend, .hf-progress-method, .hf-plan-help)[open] > summary::before { transform: rotate(45deg); }
/* penghitung pil di judul bagian */
html body.student-dashboard-page :is(.riwayat-count-badge, .mur-mobile-count) { padding: 3px 10px !important; border-radius: 999px !important; background: rgba(7, 92, 66, .09) !important; color: var(--primary) !important; font-size: 11.5px !important; font-weight: 800 !important; }
/* label dan nilai pada daftar informasi */
html body.student-dashboard-page :is(.hf-rank-stats, .profile-account-info) dt { font-size: 13px !important; font-weight: 600 !important; color: var(--hf-muted) !important; }
html body.student-dashboard-page .profile-account-info dd { font-weight: 700 !important; color: var(--hf-text) !important; }
/* materi jalur belajar: teks isi, bukan judul */
html body.student-dashboard-page .hf-tilawah-level ol li > div { color: var(--hf-text) !important; font-weight: 500; }
/* judul dialog siswa */
html body.student-dashboard-page :is(dialog, #modalBadge, #studentBadgePicker) h2 { font-size: 22px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
/* kotak cari lama (.search-box): ikon emoji 🔍 diganti ikon garis, bentuk sama dengan kotak cari Riwayat */
html body .search-box::before { content: "" !important; width: 18px; height: 18px; left: 15px !important; opacity: 1 !important; font-size: 0 !important; background-color: var(--hf-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .search-box input { min-height: 48px; padding-left: 44px !important; border: 1px solid rgba(227, 224, 210, .95) !important; border-radius: 14px !important; background: #fff !important; box-shadow: 0 3px 10px rgba(4, 61, 44, .05); font-size: 15px !important; color: var(--hf-text) !important; }
html body .search-box input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(7, 92, 66, .12) !important; }
/* pil Juz di Peta Surat: satu baris yang dapat digulir, seperti filter lain */
html body.student-dashboard-page #petaChips { display: flex !important; flex-wrap: nowrap !important; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-left: -2px; margin-right: -2px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
html body.student-dashboard-page #petaChips::-webkit-scrollbar { display: none; }
html body.student-dashboard-page #petaChips > * { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }

/* ===== Pengajar & umum: sisa gaya lama =====
   Username memakai Inter (bukan huruf mesin ketik); angka tabel tetap rata dengan tabular-nums */
html body :is(.siswa-username, .siswa-info-username, .info-value.mono, .cell-number, .backup-size) { font-family: inherit !important; font-variant-numeric: tabular-nums; letter-spacing: 0; }
html body .siswa-info-username { font-weight: 600 !important; }
/* sapaan beranda sama di semua akun */
html body .greeting h1 { font-size: 24px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
/* judul halaman tab pengajar = judul halaman siswa */
html body.teacher-dashboard-page .tab-content > .section-header h2 { font-size: 28px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
html body.teacher-dashboard-page #teacherPendingHeading { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
/* angka kartu mengikuti warna ikonnya (Hafalan menunggu = emas) */
html body .stat-card.teacher-pending-stat .stat-card-value { color: #8A5B07 !important; }
/* dialog pengajar: judul dan daftar siswa sama dengan dialog lain */
html body :is(.bulk-target-dialog, .detail-target-dialog) :is(#bulkTargetTitle, #setupTitle, .bulk-target-head h2) { font-size: 22px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
html body :is(.bulk-target-dialog, .detail-target-dialog) :is(.bulk-target-help, #setupSubtitle) { font-size: 13px !important; line-height: 1.5; color: var(--hf-muted) !important; }
html body #bulkTargetDialog label > span > strong,
html body .setup-row .setup-name > strong { font-size: 14px !important; font-weight: 800 !important; color: var(--hf-ink) !important; }
html body #bulkTargetDialog label > span > small,
html body .setup-row .setup-name > small { font-size: 12px !important; font-weight: 500 !important; color: var(--hf-muted) !important; }
html body :is(.bulk-target-dialog, .detail-target-dialog) input:not([type=checkbox]):not([type=radio]) { font-weight: 500 !important; color: var(--hf-text) !important; }
html body :is(input, textarea)::placeholder { font-weight: 400; }

/* ===== Admin & Pengelola: skala tipografi seragam dengan akun siswa/pengajar ===== */
html body .hf-admin-page-head h1 { font-size: 28px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
html body .hf-role-greeting h2 { font-size: 24px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
html body :is(.hf-admin-card, .hf-school-setting-section) > header h2,
html body .hf-admin-board-card > header h2,
html body :is(.hf-trash-section, .hf-platform-trash-structures) > h3,
html body #hfAdminTilawah .hf-learn-card > h2 { font-size: 17px !important; font-weight: 800 !important; line-height: 1.3 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
/* angka ringkasan mengikuti warna ikonnya: Pengajar teal, Kelompok emas */
html body .hf-admin-stats > :nth-child(2) strong { color: #0E6674 !important; }
html body .hf-admin-stats > :nth-child(3) strong { color: #8A5B07 !important; }

/* ===== Pil filter: satu gaya teks di semua akun (yang aktif tetap hijau penuh) ===== */
html body :is(.hf-filter-chip, .teacher-filter, .hafalan-filters > button, #petaChips > button) { font-size: 13px !important; font-weight: 700 !important; }
html body .hf-filter-chip:not(.is-active):not(.f-frozen):not(.f-trash):not(.f-purged),
html body .teacher-filter[aria-pressed="false"],
html body .hafalan-filters > button:not(.active):not([aria-pressed="true"]),
html body #petaChips > button:not(.active):not([aria-pressed="true"]) { color: var(--primary) !important; }

/* ===== Pengelola: sisa gaya lama ===== */
html body .hf-workflow-head h1 { font-size: 28px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
html body .hf-platform-audit > summary { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
/* dialog lama (.modal): judul dan daftar seragam dengan dialog baru */
html body .modal-header h2 { font-size: 22px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.01em; color: var(--hf-ink) !important; }
html body .modal-header .modal-desc { font-size: 13px !important; font-weight: 500 !important; color: var(--hf-muted) !important; }
html body .backup-list-title > span:first-child, html body .backup-list-title > :is(h3, strong) { font-size: 15px !important; font-weight: 800 !important; color: var(--hf-ink) !important; }
html body .backup-item-date { font-weight: 800 !important; color: var(--hf-ink) !important; }
html body .backup-type { color: #8A5B07 !important; }
html body .backup-type.auto, html body .backup-type.is-auto { color: var(--primary) !important; }
/* layar "memeriksa akses": tombol Keluar bergaya Hafaluma, bukan tombol polos browser */
html body .hf-access-message { display: grid; justify-items: center; gap: 14px; text-align: center; }
html body .hf-access-message p { margin: 0; font-size: 15px; font-weight: 600; color: var(--hf-muted); }
html body .hf-access-message [data-access-logout] { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(7, 92, 66, .18); background: #fff; color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 rgba(4, 61, 44, .12); }
html body .hf-access-message [data-access-logout]:hover { background: #F4FAF6; }
html body .hf-owner-school-head h1 { font-size: 28px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.02em; color: var(--hf-ink) !important; }
html body .hf-platform-danger > h3 { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -.01em; }
/* kartu gangguan server di beranda Pengelola: bentuk sama dengan kartu Tempat sampah, warna merah lembut */
html body .hf-error-notice { background: #FFF4F2 !important; border-color: rgba(180, 35, 24, .25) !important; }
html body .hf-error-notice .hf-trash-notice-head strong { color: #B42318 !important; }
html body .hf-error-notice li b { flex: none; font-size: 11.5px; font-weight: 700; color: var(--hf-muted); }
html body .hf-error-notice li span { overflow-wrap: anywhere; }
html body .hf-error-notice { color: #6E4A44 !important; }
html body .hf-error-notice .hf-trash-notice-head > svg { color: #B42318 !important; }

/* Status izin orang tua di kartu siswa (Admin Sekolah) */
html body .ts-chip.is-consent{background:#E6F4EC !important;color:#075C42 !important;border-color:#BFE3CF !important;}

/* Tautan Bantuan di menu profil (berupa <a>, disamakan dengan item tombol) */
html body a.dropdown-item[data-help-link], html body a.profile-menu-item[data-help-link] { text-decoration: none; box-sizing: border-box; cursor: pointer; }

/* ===== Badge di header siswa: tanpa garis kemajuan, ukuran lebih besar (Des 2026) ===== */
html body .hf-header-badge-line { display: none !important; }
html body .hf-header-badges { min-height: 48px; max-width: none; padding: 5px 10px; gap: 0; border-radius: 16px; transition: background-color .18s ease, transform .18s ease; }
html body .hf-header-badges:hover { background: rgba(7, 92, 66, .07); }
html body .hf-header-badges:active { transform: scale(.97); }
html body .hf-header-badges:focus-visible { outline: 2px solid rgba(7, 92, 66, .45); outline-offset: 2px; }
html body .hf-header-badge-art { gap: 6px; align-items: center; }
html body .hf-header-badge-art .hf-badge-art { width: 46px !important; height: 46px !important; filter: drop-shadow(0 2px 3px rgba(28, 62, 24, .18)); }
html body .hf-header-badge-empty { font-size: 12.5px; font-weight: 600; }
@media (max-width: 600px) {
  html body.student-dashboard-page .hf-header-badges { min-width: 0; max-width: 100%; min-height: 44px; padding: 4px 6px; }
  html body.student-dashboard-page .hf-header-badge-art { gap: 4px; }
  html body.student-dashboard-page .hf-header-badge-art .hf-badge-art { width: 34px !important; height: 34px !important; }
}
@media (max-width: 380px) {
  html body.student-dashboard-page .hf-header-badges { padding: 4px 2px; }
  html body.student-dashboard-page .hf-header-badge-art { gap: 2px; }
  html body.student-dashboard-page .hf-header-badge-art .hf-badge-art { width: 30px !important; height: 30px !important; }
}
@media (prefers-reduced-motion: reduce) { html body .hf-header-badges { transition: none; } }

/* ===== Badge header di HP: satu badge unggulan + angka pencapaian (Des 2026) ===== */
html body .hf-header-badge-count { display: none; }
@media (max-width: 600px) {
  html body.student-dashboard-page .hf-header-badges { flex-direction: row; align-items: center; gap: 5px; min-height: 36px; padding: 3px 10px 3px 4px !important; border-radius: 999px; background: #EAF4EE; border: 1px solid #D5E8DC; }
  html body.student-dashboard-page .hf-header-badges:hover { background: #E0EFE6; }
  html body.student-dashboard-page .hf-header-badge-art .hf-badge-art { width: 28px !important; height: 28px !important; }
  html body.student-dashboard-page .hf-header-badge-art .hf-badge-art:nth-child(n+2) { display: none; }
  html body.student-dashboard-page .hf-header-badge-empty { display: none; }
  html body.student-dashboard-page .hf-header-badge-count { display: inline; font-size: 13px; line-height: 1; font-weight: 700; color: #075C42; font-variant-numeric: tabular-nums; white-space: nowrap; }
}

@media (max-width: 600px) { html body.student-dashboard-page .hf-header-badges:has(.hf-header-badge-empty) { padding: 3px 12px !important; } }

/* ===== Profil siswa: urutan badge pilihan (seret atau tombol panah) ===== */
.profile-badge-order-box { margin: 14px 0 18px; padding: 14px; background: #F4F8F5; border: 1px solid #DDEBE2; border-radius: 18px; }
.profile-badge-order-box .profile-badge-section-title { margin: 0 0 2px; }
.profile-badge-order-box > .profile-muted { margin: 0 0 10px; font-size: 13px; }
.profile-badge-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.profile-badge-order-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E3E9E2; border-radius: 14px; padding: 8px 8px 8px 4px; box-shadow: 0 2px 0 #E3E9E2; transition: transform .16s ease, box-shadow .16s ease; position: relative; }
.profile-badge-order.is-sorting .profile-badge-order-item:not(.is-dragging) { transition: transform .16s ease; }
.profile-badge-order-item.is-dragging { transition: none; z-index: 2; box-shadow: 0 12px 26px rgba(4, 61, 44, .18); border-color: #9CCBB2; cursor: grabbing; }
.profile-badge-order-item.is-primary { border-color: #BFDCCB; background: #FBFDFB; }
.profile-badge-handle { flex: none; width: 34px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #8AA095; border-radius: 10px; cursor: grab; touch-action: none; }
.profile-badge-handle svg { width: 18px; height: 18px; }
.profile-badge-handle:hover { background: #EEF5F0; color: #075C42; }
.profile-badge-handle:focus-visible, .profile-badge-order-moves button:focus-visible { outline: 2px solid rgba(7, 92, 66, .45); outline-offset: 1px; }
.profile-badge-handle:disabled { cursor: default; opacity: .4; }
.profile-badge-order-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #EAF4EE; color: #075C42; }
.profile-badge-order-item.is-primary .profile-badge-order-num { background: #E7B22B; color: #043D2C; box-shadow: 0 2px 0 #C98A0B; }
.profile-badge-order-item .hf-badge-art { flex: none; width: 44px; height: 44px; margin: 0; object-fit: contain; }
.profile-badge-order-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-badge-order-copy strong { font-size: 14px; color: #075C42; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-badge-order-copy small { font-size: 12px; color: #5D7064; line-height: 1.35; }
.profile-badge-order-moves { flex: none; display: flex; gap: 4px; }
.profile-badge-order-moves button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #E3E9E2; background: #fff; color: #075C42; border-radius: 10px; cursor: pointer; }
.profile-badge-order-moves button svg { width: 16px; height: 16px; }
.profile-badge-order-moves button:hover:not(:disabled) { background: #EEF5F0; }
.profile-badge-order-moves button:disabled { opacity: .35; cursor: default; }
@media (max-width: 380px) { .profile-badge-order-item .hf-badge-art { width: 36px; height: 36px; } .profile-badge-order-moves button { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .profile-badge-order-item, .profile-badge-order.is-sorting .profile-badge-order-item { transition: none; } }

/* ===== Login: animasi masuk lebih ringkas dan serempak (Des 2026) ===== */
@media (prefers-reduced-motion: no-preference) {
  html body.login-page .login-brand .hf-lockup .hf-brand__symbol { animation: hfLoginEmblemIn .5s cubic-bezier(.22, 1, .36, 1) both; }
  html body.login-page .login-brand .hf-lockup h1 { animation: hfLoginSlide .42s cubic-bezier(.22, 1, .36, 1) .06s both; }
  html body.login-page .login-brand .hf-lockup .brand-tagline { animation: hfLoginRise .4s cubic-bezier(.22, 1, .36, 1) .12s both; }
  html body.login-page .login-brand .brand-desc { animation: hfLoginRise .4s cubic-bezier(.22, 1, .36, 1) .16s both; }
  html body.login-page .login-brand .brand-quote { animation: hfLoginRise .4s cubic-bezier(.22, 1, .36, 1) .2s both; }
  html body.login-page .hf-login-card { animation: hfLoginRise .45s cubic-bezier(.22, 1, .36, 1) .1s both; }
}
@keyframes hfLoginEmblemIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }

/* ===== Pembukaan aplikasi terpasang: tulisan keluar dari balik lambang setelah logo mendarat ===== */
@keyframes hfLaunchWord { from { opacity: 0; transform: translateX(-42px); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes hfLaunchTag { from { opacity: 0; transform: translateX(-30px); } to { opacity: .86; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.hf-launched body.login-page .login-brand .hf-lockup .brand-identity { overflow: hidden; padding: 2px 4px 2px 0; margin: -2px -4px -2px 0; }
  html.hf-launched body.login-page .login-brand .hf-lockup h1 { animation: hfLaunchWord .52s cubic-bezier(.22, 1, .36, 1) calc(var(--hf-hold, 0s) + var(--hf-fly, 0s) - .04s) both; }
  html.hf-launched body.login-page .login-brand .hf-lockup .brand-tagline { animation: hfLaunchTag .5s cubic-bezier(.22, 1, .36, 1) calc(var(--hf-hold, 0s) + var(--hf-fly, 0s) + .06s) both; }
  html.hf-launched body.login-page .login-brand .brand-desc { animation: hfLoginRise .42s cubic-bezier(.22, 1, .36, 1) calc(var(--hf-hold, 0s) + var(--hf-fly, 0s) + .1s) both; }
  html.hf-launched body.login-page .login-brand .brand-quote { animation: hfLoginRise .42s cubic-bezier(.22, 1, .36, 1) calc(var(--hf-hold, 0s) + var(--hf-fly, 0s) + .16s) both; }
  html.hf-launched body.login-page .hf-login-card { animation: hfLoginRise .5s cubic-bezier(.22, 1, .36, 1) calc(var(--hf-hold, 0s) + var(--hf-fly, 0s) * .62) both; }
}

/* ===== Kartu izin notifikasi (wajib, satu tombol) ===== */
.hf-notify-ask { position: fixed; inset: 0; z-index: 3000; background: rgba(4, 30, 21, .42); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: hfNotifyFade .2s ease-out; }
.hf-notify-ask-card { width: min(380px, 100%); background: #fff; border-radius: 24px; padding: 26px 22px 22px; text-align: center; box-shadow: 0 24px 60px rgba(4, 40, 28, .28); outline: none; animation: hfNotifyRise .26s cubic-bezier(.22, 1, .36, 1); }
.hf-notify-ask-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, #0E7A55, #075C42); color: #fff; box-shadow: 0 4px 0 #043D2C; }
.hf-notify-ask-icon svg { width: 28px; height: 28px; }
.hf-notify-ask-card h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: #075C42; }
.hf-notify-ask-card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: #2E4A3C; }
.hf-notify-ask-card .hf-notify-ask-hint { font-size: 13px; color: #5D7064; margin-bottom: 18px; }
.hf-notify-ask-btn { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: #075C42; color: #fff; font: 800 15.5px 'Inter', system-ui, sans-serif; box-shadow: 0 4px 0 #043D2C; cursor: pointer; }
.hf-notify-ask-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #043D2C; }
.hf-notify-ask-btn:disabled { opacity: .75; cursor: default; }
.hf-notify-ask-btn:focus-visible { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 3px; }
@keyframes hfNotifyFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hfNotifyRise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hf-notify-ask, .hf-notify-ask-card { animation: none; } }

/* ===== Pesan (pesan-v1): tanda di foto profil, item menu, dan panel kotak masuk ===== */
.hf-msg-host { position: relative; }
.hf-msg-badge { position: absolute; top: -4px; left: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #D0402B; color: #fff; font: 800 11px/19px 'Inter', system-ui, sans-serif; text-align: center; border: 2px solid #F7F6F1; box-shadow: 0 2px 6px rgba(208, 64, 43, .35); pointer-events: none; z-index: 6; }
.hf-msg-menu { display: flex; align-items: center; gap: 10px; }
.hf-msg-menu > svg { width: 18px; height: 18px; flex: none; }
.hf-msg-menu-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D0402B; color: #fff; font: 800 11.5px/20px 'Inter', system-ui, sans-serif; text-align: center; }
body.hf-msg-open { overflow: hidden; }
.hf-msg-layer { position: fixed; inset: 0; z-index: 2600; background: rgba(4, 30, 21, .42); display: flex; align-items: center; justify-content: center; animation: hfMsgFade .18s ease-out; }
.hf-msg-layer[hidden] { display: none; }
.hf-msg-sheet { width: min(560px, 100%); height: min(760px, 100%); background: #F7F6F1; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 40, 28, .28); outline: none; animation: hfMsgRise .24s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 600px) { .hf-msg-sheet { height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); } }
.hf-msg-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid #E8EDE8; background: #F7F6F1; }
.hf-msg-head h2 { flex: 1; margin: 0; font: 800 19px 'Inter', system-ui, sans-serif; color: #075C42; }
.hf-msg-icon-btn { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #EAF0EB; color: #075C42; font-size: 24px; line-height: 1; cursor: pointer; }
.hf-msg-body { flex: 1; overflow: auto; padding: 12px 14px 22px; -webkit-overflow-scrolling: touch; }
.hf-msg-tabs { display: flex; gap: 4px; background: #EBF0EC; border-radius: 14px; padding: 4px; margin-bottom: 10px; }
.hf-msg-tabs button { flex: 1; border: 0; background: transparent; border-radius: 10px; padding: 9px 8px; font: 700 14px 'Inter', system-ui, sans-serif; color: #5D7064; cursor: pointer; }
.hf-msg-tabs button[aria-selected="true"] { background: #fff; color: #075C42; box-shadow: 0 1px 4px rgba(0, 0, 0, .07); }
.hf-msg-tabs b { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; border-radius: 999px; background: #D0402B; color: #fff; font-size: 11px; padding: 0 5px; margin-left: 4px; }
.hf-msg-compose { width: 100%; border: 1px dashed #A9CDB8; background: #fff; color: #075C42; border-radius: 14px; padding: 11px; font: 800 14.5px 'Inter', system-ui, sans-serif; cursor: pointer; margin-bottom: 10px; }
.hf-msg-list { display: grid; gap: 8px; }
.hf-msg-row, .hf-msg-sent { width: 100%; text-align: left; border: 1px solid #E3E9E2; background: #fff; border-radius: 16px; padding: 12px; cursor: pointer; font: inherit; color: inherit; display: grid; gap: 4px; }
.hf-msg-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.hf-msg-row:hover, .hf-msg-sent:hover { border-color: #BFDCCB; }
.hf-msg-row.is-unread { background: #F4FAF6; border-color: #CFE5D8; }
.hf-msg-ava { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font: 800 14px 'Inter', system-ui, sans-serif; background: #075C42; font-size: 15px; }
.hf-msg-ava.r-admin { background: #0E6674; }
.hf-msg-row-main { min-width: 0; display: grid; gap: 2px; }
.hf-msg-row-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 12.5px; color: #5D7064; }
.hf-msg-row-top b { color: #1F3A2E; font-weight: 700; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-msg-row-top.small { font-size: 12px; }
.hf-msg-row-title { font-size: 14.5px; color: #1F3A2E; line-height: 1.3; }
.hf-msg-row.is-unread .hf-msg-row-title { font-weight: 800; }
.hf-msg-row.is-unread .hf-msg-row-top::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #1F9D6A; flex: none; align-self: center; }
.hf-msg-row-snip { font-size: 13px; color: #5D7064; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-msg-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hf-msg-row-tags:empty { display: none; }
.hf-msg-pin { display: inline-block; font-size: 11px; font-weight: 800; color: #8A5B07; background: #FFF4D6; border-radius: 6px; padding: 2px 7px; }
.hf-msg-replied { font-size: 11.5px; font-weight: 700; color: #075C42; background: #EAF4EE; border-radius: 6px; padding: 2px 7px; }
.hf-msg-pill { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 800; color: #075C42; background: #EAF4EE; border-radius: 999px; padding: 3px 9px; }
.hf-msg-pill.off { color: #8B5149; background: #FBEAE6; }
.hf-msg-bar { height: 6px; border-radius: 4px; background: #E3E9E2; overflow: hidden; }
.hf-msg-bar i { display: block; height: 100%; background: #1F9D6A; border-radius: inherit; }
.hf-msg-empty { display: grid; justify-items: center; gap: 6px; text-align: center; color: #5D7064; padding: 40px 16px; }
.hf-msg-empty span { width: 54px; height: 54px; border-radius: 16px; background: #EAF4EE; color: #075C42; display: grid; place-items: center; }
.hf-msg-empty span svg { width: 26px; height: 26px; }
.hf-msg-empty b { color: #1F3A2E; font-size: 15.5px; }
.hf-msg-error { background: #FDECEA; border: 1px solid #F3C4BC; color: #8B2D1E; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.hf-msg-read { background: #fff; border: 1px solid #E3E9E2; border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.hf-msg-read h3 { margin: 0; font: 800 20px/1.25 'Inter', system-ui, sans-serif; color: #075C42; }
.hf-msg-read .hf-msg-pin { justify-self: start; }
.hf-msg-meta { margin: 0; font-size: 12.5px; color: #5D7064; }
.hf-msg-text { font-size: 15px; line-height: 1.6; color: #2E4A3C; overflow-wrap: anywhere; }
.hf-msg-text a { color: #0E6674; font-weight: 700; }
.hf-msg-replies { display: grid; gap: 8px; margin-top: 4px; }
.hf-msg-reply { width: 100%; text-align: left; border: 1.5px solid #CFE2D6; background: #fff; color: #075C42; border-radius: 14px; padding: 12px 14px; font: 700 14.5px 'Inter', system-ui, sans-serif; cursor: pointer; }
.hf-msg-reply[aria-pressed="true"] { background: #075C42; color: #fff; border-color: #075C42; box-shadow: 0 3px 0 #043D2C; }
.hf-msg-reply:disabled { opacity: .7; }
.hf-msg-note { margin: 0; font-size: 12.5px; color: #5D7064; }
.hf-msg-actions { display: flex; gap: 14px; justify-content: flex-end; border-top: 1px solid #EEF2EE; padding-top: 10px; }
.hf-msg-actions.wrap { flex-wrap: wrap; justify-content: flex-start; gap: 8px; border: 0; padding: 0; }
.hf-msg-link { border: 0; background: none; color: #0E6674; font: 700 13.5px 'Inter', system-ui, sans-serif; cursor: pointer; padding: 4px 0; }
.hf-msg-link.danger, .hf-msg-btn.danger { color: #B3402C; }
.hf-msg-btn { border: 0; border-radius: 12px; padding: 10px 14px; font: 800 14px 'Inter', system-ui, sans-serif; cursor: pointer; background: #075C42; color: #fff; box-shadow: 0 3px 0 #043D2C; }
.hf-msg-btn.ghost { background: #fff; color: #075C42; border: 1px solid #DCE5DD; box-shadow: 0 2px 0 #E3E9E2; }
.hf-msg-btn.wide { width: 100%; min-height: 50px; font-size: 15px; }
.hf-msg-btn:disabled { opacity: .65; cursor: default; }
.hf-msg-stats { display: flex; gap: 16px; font-size: 13.5px; color: #5D7064; }
.hf-msg-stats b { color: #075C42; font-size: 16px; }
.hf-msg-sub { margin: 6px 0 0; font: 800 14px 'Inter', system-ui, sans-serif; color: #1F3A2E; }
.hf-msg-people { list-style: none; margin: 0; padding: 0; display: grid; }
.hf-msg-people li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #EEF2EE; font-size: 14px; }
.hf-msg-people em { font-style: normal; font-size: 12.5px; color: #9AA69F; font-weight: 700; white-space: nowrap; }
.hf-msg-people em.seen { color: #5D7064; }
.hf-msg-people em.ok { color: #075C42; }
.hf-msg-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #2E4A3C; margin: 0 0 10px; }
.hf-msg-check input { width: 18px; height: 18px; accent-color: #075C42; }
.hf-msg-form { display: grid; gap: 14px; }
.hf-msg-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.hf-msg-form legend, .hf-msg-field { font-size: 12.5px; font-weight: 800; color: #5D7064; letter-spacing: .01em; }
.hf-msg-form legend { margin-bottom: 8px; }
.hf-msg-field { display: grid; gap: 6px; }
.hf-msg-input { width: 100%; border: 1px solid #DCE5DD; border-radius: 12px; padding: 11px 12px; font: 500 15px 'Inter', system-ui, sans-serif; color: #1F3A2E; background: #fff; }
.hf-msg-input:focus { outline: 3px solid rgba(7, 92, 66, .2); border-color: #7FB79A; }
textarea.hf-msg-input { resize: vertical; min-height: 110px; line-height: 1.5; }
.hf-msg-counter { justify-self: end; font-weight: 600; }
.hf-msg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-msg-chip { border: 1px solid #DCE5DD; background: #fff; color: #2E4A3C; border-radius: 999px; padding: 7px 12px; font: 700 13px 'Inter', system-ui, sans-serif; cursor: pointer; }
.hf-msg-chip.small { font-size: 12.5px; padding: 6px 10px; }
.hf-msg-chip[aria-pressed="true"] { background: #075C42; color: #fff; border-color: #075C42; }
.hf-msg-token { display: inline-flex; align-items: center; gap: 4px; background: #EAF4EE; color: #075C42; border-radius: 999px; padding: 5px 6px 5px 11px; font: 700 13px 'Inter', system-ui, sans-serif; }
.hf-msg-token button { border: 0; background: rgba(7, 92, 66, .12); color: #075C42; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.hf-msg-people-pick { display: grid; gap: 4px; border: 1px solid #E3E9E2; border-radius: 12px; padding: 4px; background: #fff; }
.hf-msg-person { display: flex; justify-content: space-between; gap: 8px; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; text-align: left; cursor: pointer; font: inherit; color: #1F3A2E; }
.hf-msg-person:hover { background: #EEF3EF; }
.hf-msg-person small { color: #5D7064; }
.hf-msg-person:disabled { opacity: .45; cursor: default; }
.hf-msg-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-msg-iconpick { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #DCE5DD; background: #fff; font-size: 19px; cursor: pointer; color: #5D7064; }
.hf-msg-iconpick[aria-pressed="true"] { border-color: #075C42; background: #EAF4EE; box-shadow: 0 0 0 2px rgba(7, 92, 66, .2); }
.hf-msg-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid #E3E9E2; border-radius: 14px; padding: 11px 13px; cursor: pointer; }
.hf-msg-switch b { display: block; font-size: 14.5px; color: #1F3A2E; }
.hf-msg-switch small { display: block; font-size: 12.5px; color: #5D7064; }
.hf-msg-switch input { width: 22px; height: 22px; accent-color: #075C42; flex: none; }
.hf-msg-inline { display: flex; gap: 8px; }
.hf-msg-inline .hf-msg-input { flex: 1; min-width: 0; }
.hf-msg-row:focus-visible, .hf-msg-sent:focus-visible, .hf-msg-reply:focus-visible, .hf-msg-chip:focus-visible, .hf-msg-btn:focus-visible, .hf-msg-icon-btn:focus-visible, .hf-msg-tabs button:focus-visible, .hf-msg-iconpick:focus-visible { outline: 3px solid rgba(7, 92, 66, .35); outline-offset: 2px; }
@keyframes hfMsgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hfMsgRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hf-msg-layer, .hf-msg-sheet { animation: none; } }

/* ===== Perbaikan Pesan: panel di atas menu laptop (z-index menu hingga 99999) dan judul panjang tidak meluber ===== */
.hf-msg-layer { z-index: 100000; }
.hf-notify-ask { z-index: 100001; }
.hf-msg-sheet { overflow-wrap: anywhere; word-break: break-word; }
.hf-msg-sent { grid-template-columns: minmax(0, 1fr); }
.hf-msg-row-top b { flex: 1 1 auto; min-width: 0; }
.hf-msg-row-top > span { flex: none; }
.hf-msg-row-title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.hf-msg-read h3, .hf-msg-read .hf-msg-meta, .hf-msg-people li span, .hf-msg-token, .hf-msg-chip, .hf-msg-pill, .hf-msg-reply { overflow-wrap: anywhere; min-width: 0; }
.hf-msg-people li span { flex: 1 1 auto; }
.hf-msg-token { max-width: 100%; }
.hf-msg-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Poster (poster-v1): layar penuh saat aplikasi dibuka + pratinjau di formulir ===== */
.hf-poster-layer { position: fixed; inset: 0; z-index: 100002; background: rgba(3, 20, 14, .78); display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px)); animation: hfMsgFade .22s ease-out; }
.hf-poster-layer.is-out { opacity: 0; transition: opacity .2s ease; }
.hf-poster-box { width: min(380px, 100%); display: grid; gap: 12px; justify-items: center; outline: none; animation: hfPosterPop .34s cubic-bezier(.22, 1, .36, 1); }
.hf-poster { margin: 0; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; position: relative; color: #fff; padding: 22px 20px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); overflow-wrap: anywhere; }
.hf-poster.theme-hijau { background: radial-gradient(120% 80% at 85% 0%, #1f8a62 0%, transparent 55%), linear-gradient(160deg, #0B5A41, #043D2C); }
.hf-poster.theme-emas { background: radial-gradient(120% 80% at 85% 0%, #FFE08A 0%, transparent 55%), linear-gradient(160deg, #E7B22B, #B07A07); color: #2B1D02; }
.hf-poster.theme-teal { background: radial-gradient(120% 80% at 85% 0%, #2aa3b3 0%, transparent 55%), linear-gradient(160deg, #0E6674, #073940); }
.hf-poster-mark { position: absolute; right: -30px; top: 36px; width: 170px; opacity: .12; }
.hf-poster-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32); padding: 4px 10px; border-radius: 999px; position: relative; }
.hf-poster h3 { margin: auto 0 8px; font: 800 28px/1.12 'Inter', system-ui, sans-serif; letter-spacing: -.01em; position: relative; }
.hf-poster-when { font-size: 14px; font-weight: 700; position: relative; }
.hf-poster.theme-hijau .hf-poster-when, .hf-poster.theme-teal .hf-poster-when { color: #FFE29A; }
.hf-poster p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; opacity: .9; position: relative; }
.hf-poster-from { margin-top: 14px; font-size: 12px; opacity: .78; position: relative; }
.hf-poster-img { padding: 0; background: #0B1B14; }
.hf-poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-poster-cta { width: 100%; border: 0; border-radius: 14px; padding: 13px; font: 800 15px 'Inter', system-ui, sans-serif; cursor: pointer; background: #E7B22B; color: #043D2C; box-shadow: 0 3px 0 #C98A0B; text-align: center; display: block; }
.hf-poster-close { border: 0; background: transparent; color: #fff; font: 700 15px 'Inter', system-ui, sans-serif; padding: 8px 18px; cursor: pointer; opacity: .92; }
.hf-poster-close:focus-visible, .hf-poster-cta:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.hf-poster-preview { width: min(260px, 100%); display: grid; gap: 8px; }
.hf-poster-preview .hf-poster { padding: 16px 14px; border-radius: 16px; }
.hf-poster-preview .hf-poster h3 { font-size: 20px; }
.hf-poster-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; background: #fff; border: 1px solid #E3E9E2; border-radius: 16px; padding: 10px; }
.hf-poster-thumb { width: 96px; }
.hf-poster-thumb .hf-poster { padding: 8px 7px; border-radius: 10px; box-shadow: none; }
.hf-poster-thumb .hf-poster h3 { font-size: 10px; margin-bottom: 2px; }
.hf-poster-thumb .hf-poster-tag, .hf-poster-thumb .hf-poster p, .hf-poster-thumb .hf-poster-from, .hf-poster-thumb .hf-poster-when { display: none; }
.hf-poster-info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.hf-poster-info b { color: #1F3A2E; font-size: 14.5px; overflow-wrap: anywhere; }
.hf-poster-info .hf-msg-pill { justify-self: start; }
.hf-poster-info small { color: #5D7064; font-size: 12.5px; }
.hf-poster-info .hf-msg-actions { margin-top: 4px; }
.hf-poster-info .hf-msg-btn { padding: 7px 11px; font-size: 12.5px; }
@keyframes hfPosterPop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hf-poster-layer, .hf-poster-box { animation: none; } }

/* ===== Pengaturan Notifikasi Pengelola (panel Pesan → tab Notifikasi) ===== */
.hf-nf fieldset { display: grid; gap: 10px; }
.hf-nf-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hf-nf-summary div { background: #F3F8F4; border: 1px solid #DCE9DF; border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.hf-nf-summary b { font-size: 20px; color: #075C42; }
.hf-nf-summary small { font-size: 12px; color: #5D7064; }
.hf-nf-card { background: #fff; border: 1px solid #E3E9E2; border-radius: 16px; padding: 12px; display: grid; gap: 10px; min-width: 0; }
.hf-nf-card.is-off { background: #F7F8F6; }
.hf-nf-card.is-off .hf-msg-field, .hf-nf-card.is-off .hf-nf-days { opacity: .6; }
.hf-nf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hf-nf-card-head .hf-msg-check { margin: 0; }
.hf-nf-card-head > b { color: #1F3A2E; font-size: 14.5px; }
.hf-nf-days .hf-msg-chip { min-width: 44px; justify-content: center; }
.hf-nf code { font: 700 11.5px ui-monospace, Consolas, monospace; background: #EEF3EF; color: #075C42; border-radius: 6px; padding: 1px 5px; }
.hf-nf .hf-msg-actions { justify-content: flex-end; }

/* ===== Laporan orang tua: jendela tautan (pengajar/admin), aturan setoran kelas, tur siswa ===== */
.hf-gd-layer, .hf-tour { position: fixed; inset: 0; z-index: 100001; background: rgba(3, 20, 14, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); animation: hfMsgFade .2s ease-out; }
.hf-gd-box { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hf-gd-box header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 8px; position: sticky; top: 0; background: #fff; }
.hf-gd-box h2 { margin: 0; font: 800 18px 'Inter', system-ui, sans-serif; color: #043D2C; }
.hf-gd-x { border: 0; background: #EEF3EF; color: #075C42; width: 36px; height: 36px; border-radius: 12px; font-size: 22px; line-height: 1; cursor: pointer; }
.hf-gd-body { padding: 4px 18px 18px; display: grid; gap: 12px; }
.hf-gd-note { margin: 0; font-size: 13.5px; color: #5D7064; }
.hf-gd-error { margin: 0; color: #B3402C; background: #FBEAE6; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.hf-gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hf-gd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 1px solid #E3E9E2; border-radius: 14px; padding: 10px 12px; }
.hf-gd-row > div:first-child { min-width: 0; flex: 1 1 180px; }
.hf-gd-row b { display: block; color: #1F3A2E; font-size: 14.5px; overflow-wrap: anywhere; }
.hf-gd-row small { color: #5D7064; font-size: 12.5px; }
.hf-gd-row.is-off { background: #F7F8F6; } .hf-gd-row.is-off small { color: #8B5149; }
.hf-gd-acts, .hf-gd-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-gd-foot { justify-content: flex-end; }
.hf-gd-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 9px 14px; font: 700 13.5px 'Inter', system-ui, sans-serif; background: #075C42; color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #043D2C; }
.hf-gd-btn.ghost { background: #fff; color: #075C42; border: 1px solid #DCE5DD; box-shadow: 0 2px 0 #E3E9E2; }
.hf-gd-btn.danger { color: #B3402C; }
.hf-gd-btn:focus-visible, .hf-gd-x:focus-visible { outline: 3px solid #E7B22B; outline-offset: 2px; }
.hf-class-rules { display: grid; gap: 10px; margin-top: 16px; }
.hf-class-rules header h2 { margin: 0; }
.hf-class-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #E3E9E2; padding-top: 10px; cursor: pointer; }
.hf-class-rule span { display: grid; min-width: 0; } .hf-class-rule small span { display: inline; }
.hf-class-rule small { color: #5D7064; }
.hf-class-rule input { width: 44px; height: 24px; accent-color: #075C42; flex: none; }
.hf-fab-note { margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; background: #FCF3D9; color: #4A3A0E; font-size: 12.5px; max-width: 260px; }
.hf-tour-card { width: min(360px, 100%); background: #fff; border-radius: 24px; padding: 24px 22px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: hfPosterPop .3s cubic-bezier(.22, 1, .36, 1); }
.hf-tour-card h2 { margin: 4px 0 0; font: 800 20px/1.25 'Inter', system-ui, sans-serif; color: #043D2C; }
.hf-tour-card p { margin: 0; color: #2E4A3C; font-size: 15px; line-height: 1.5; }
.hf-tour-dots { display: flex; gap: 6px; margin: 4px 0; } .hf-tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: #DCE5DD; } .hf-tour-dots i.on { background: #075C42; width: 22px; border-radius: 999px; }
.hf-tour-acts { display: flex; gap: 8px; width: 100%; } .hf-tour-acts .hf-gd-btn { flex: 1; padding: 12px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .hf-gd-layer, .hf-tour, .hf-tour-card { animation: none; } }
