/* ==========================================================================
   CLINED UNIFIED DESIGN SYSTEM v1
   Satu sistem desain konsisten untuk seluruh 42 tampilan aplikasi & admin:
   - Palet warna tunggal (Light & Dark slate-emerald, tanpa konflik tema)
   - Tipografi tunggal (Plus Jakarta Sans + rounded fallback, tabular-nums)
   - Geometri kartu, tombol, input, tab, chip, header, & modal yang seragam
   - Perbaikan bug tata letak (header 5 ikon, .answer.wrong light mode,
     form profil mobile, dan sinkronisasi dark mode)
   ========================================================================== */

:root {
  /* Core Surfaces (Light) */
  --bg: #f6f8f6;
  --card: #ffffff;
  --solid: #ffffff;
  --surface: #edf2ee;
  --surface-2: #f3f7f4;
  --text: #1c282e;
  --ink: #1c282e;
  --muted: #5d6e75;
  --muted-2: #5d6e75;
  --line: #dbe4de;
  --line-d: #c3d1c8;
  --border-strong: #c8d5cd;

  /* Brand & Semantic Palette */
  --brand: #58cc02;
  --brand-dark: #46a302;
  --brand-soft: rgba(88, 204, 2, .13);
  --green: #58cc02;
  --green-dark: #46a302;
  --clined-green: #58cc02;
  --clined-green-dark: #46a302;
  --duo-green: #58cc02;
  --duo-green-dark: #46a302;

  --sky: #1cb0f6;
  --sky-dark: #1690cb;
  --sky-soft: rgba(28, 176, 246, .13);
  --sky-text: #0b7bb3;
  --blue: #1cb0f6;
  --clined-blue: #1cb0f6;
  --duo-blue: #1cb0f6;

  --med: #0d9488;
  --med2: #14b8a6;
  --med-dark: #0f766e;
  --med-soft: rgba(13, 148, 136, .13);
  --clinical: #e9f8f5;

  --warn: #ff9600;
  --warn-dark: #d97c00;
  --warn-soft: rgba(255, 150, 0, .14);
  --warn-text: #b86600;
  --orange: #ff9600;
  --yellow: #ffc800;

  --danger: #ff4b4b;
  --danger-dark: #d93636;
  --danger-soft: rgba(255, 75, 75, .12);
  --danger-text: #c92a2a;
  --red: #ff4b4b;

  --ok-text: #2f7d00;

  /* Legacy alias alignment */
  --clined-ink: var(--text);
  --clined-muted: var(--muted);
  --clined-border: var(--line);
  --clined-surface: var(--card);
  --clined-soft: var(--surface);
  --clined-shadow: var(--line-d);

  /* Typography */
  --clined-font: "Plus Jakarta Sans", "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --clined-body-size: 14px;
  --clined-body-leading: 1.5;

  /* Unified Radius & Depth Scale */
  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;
  --clined-radius-xl: 22px;
  --clined-radius-lg: 18px;
  --clined-radius-md: 14px;
  --clined-radius-sm: 10px;
  --radius: 18px;
  --depth: 0 2px 10px rgba(20, 32, 26, .045);
  --shadow: 0 2px 10px rgba(20, 32, 26, .045);
  --shadow-soft: 0 2px 8px rgba(20, 32, 26, .04);

  /* Motion */
  --ease-ui: cubic-bezier(.22, 1, .36, 1);
}

:root.dark {
  /* Core Surfaces (Unified Deep Slate-Emerald — overrides polish.css & #1c1c1e) */
  --bg: #0f1513;
  --card: #17201d;
  --solid: #1b2622;
  --surface: #202c28;
  --surface-2: #263530;
  --text: #edf5f1;
  --ink: #edf5f1;
  --muted: #9eb0a7;
  --muted-2: #9eb0a7;
  --line: #2c3c35;
  --line-d: #0a100e;
  --border-strong: #374a42;

  /* Sync polish.css private variables so dark mode is 100% uniform */
  --p-card: #17201d;
  --p-surface: #202c28;
  --p-line: #2c3c35;
  --p-line-d: #0a100e;
  --p-text: #edf5f1;
  --p-muted: #9eb0a7;
  --p-blue: #6fd0ff;
  --p-purple: #6fd0ff;

  --brand-soft: rgba(88, 204, 2, .16);
  --sky-soft: rgba(28, 176, 246, .16);
  --sky-text: #6fd0ff;
  --med-soft: rgba(20, 184, 166, .16);
  --clinical: #132c29;
  --warn-soft: rgba(255, 150, 0, .16);
  --warn-text: #fbbf24;
  --danger-soft: rgba(255, 75, 75, .16);
  --danger-text: #ff8a8a;
  --ok-text: #86ef60;

  --clined-border: var(--line);
  --clined-surface: var(--card);
  --clined-soft: var(--surface);
  --clined-shadow: var(--line-d);

  --depth: 0 4px 16px rgba(0, 0, 0, .28);
  --shadow: 0 4px 16px rgba(0, 0, 0, .28);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, .22);
}

/* ───────── 1. Base Typography & Document Defaults ───────── */
html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--clined-font) !important;
  font-size: var(--clined-body-size);
  line-height: var(--clined-body-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font-family: var(--clined-font) !important;
}

b, strong, .stat b, .cd-kpi b, .ins-kpi b, .us-kpis b, .ia-kpi b, .ap-stats b,
.timer-clock, .xp-total b, .result-score .big, .ml-score {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid rgba(28, 176, 246, .45) !important;
  outline-offset: 2px;
}

/* ───────── 2. App Top Header (Fixes 5-icon wrap bug!) ───────── */
html body .header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 8px 0 11px !important;
  min-height: 58px;
  background: transparent !important;
  border-bottom: 2px solid var(--line) !important;
  margin-bottom: 12px !important;
}

html body .header .brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 10px !important;
}

html body .header .brand h1 {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  color: var(--text) !important;
}

html body .header .brand p {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  margin-top: 2px !important;
  max-width: none !important;
}

html body .header .icon-btn {
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  display: inline-grid !important;
  place-items: center !important;
  transition: transform .12s var(--ease-ui), border-color .15s ease, background-color .15s ease !important;
}

html body .header .icon-btn:active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

@media (hover: hover) {
  html body .header .icon-btn:hover {
    border-color: var(--sky) !important;
    background: var(--surface) !important;
  }
}

@media (max-width: 400px) {
  html body .header { gap: 4px !important; }
  html body .header .brand .logo.logo-image { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; }
  html body .header .icon-btn {
    flex: 0 0 33px !important;
    width: 33px !important;
    min-width: 33px !important;
    max-width: 33px !important;
    height: 33px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
}

/* ───────── 3. Unified Tactile Cards & Containers ───────── */
html body .card,
html body .nested-card,
html body .account-auth-card,
html body .admin-content-workspace,
html body .account-data-tools,
html body .duo-learning-map,
html body .soc-card,
html body .ap {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--depth) !important;
}

html body .cd-panel,
html body .sp-block,
html body .weakness-radar-wrap,
html body .radar-dashboard-block,
html body .ub-deck,
html body .ub-q,
html body .ub-save,
html body .ub-practice,
html body .ia-card,
html body .gl-card,
html body .ins-item,
html body .clinical-quest-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: var(--r-lg) !important;
  box-shadow: none !important;
}

/* Preserve special colored hero/completed/suspect states */
html body .duel-hero,
html body .clinical-quest-card.quest-completed,
html body .ia-card.is-suspect,
html body .ml-item.mastered {
  box-shadow: var(--depth) !important;
}

html body .ia-card.is-suspect {
  border-color: rgba(255, 75, 75, .55) !important;
  background: linear-gradient(180deg, rgba(255, 75, 75, .07), transparent 85%), var(--card) !important;
}

/* Kill hardcoded #1c1c1e dark-mode tile drift from home-ergonomic & content-ergonomic */
:root.dark html body #home .home-quick-tile,
:root.dark #home .home-quick-tile,
:root.dark html body #home button.duo-reward-item.duo-cal,
:root.dark #adminContentWorkspace .admin-content-tabs,
:root.dark #adminContentWorkspace .admin-uab-result-count,
:root.dark #userBankPage .ub-editor-actions,
:root.dark #userBankPage .ub-save .ub-actions:last-of-type {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

:root.dark #adminContentWorkspace .admin-content-tabs {
  background: var(--surface) !important;
}

/* Consistent Page Headers & Eyebrows */
html body .exam-page-header,
html body .materials-page-header {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px !important;
}

html body .exam-page-header h2,
html body .materials-page-header h2,
html body .account-page-view .account-header h2 {
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
  margin: 2px 0 0 !important;
}

html body .exam-page-header p,
html body .materials-page-header p {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  line-height: 1.45 !important;
  margin: 4px 0 0 !important;
}

html body .eyebrow,
html body .account-auth-kicker,
html body .quest-kicker,
html body .study-kicker {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--med) !important;
}

:root.dark html body .eyebrow,
:root.dark html body .account-auth-kicker,
:root.dark html body .quest-kicker,
:root.dark html body .study-kicker {
  color: var(--sky-text) !important;
}

html body .section-title,
html body .cd-panel h3,
html body .soc-card h3,
html body .sp-h,
html body .admin-content-intro b {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  color: var(--text) !important;
}

/* ───────── 4. Unified Button System (Single Tactile 3D Lip) ───────── */
html body button.primary,
html body .account-action.account-save {
  min-height: 48px !important;
  padding: 11px 18px !important;
  border-radius: var(--r-md) !important;
  border: 2px solid var(--brand-dark) !important;
  border-bottom-width: 4px !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.005em !important;
  box-shadow: none !important;
  transition: transform .1s var(--ease-ui), filter .15s ease, border-bottom-width .1s ease !important;
}

html body button.primary:not(:disabled):active,
html body .account-action.account-save:not(:disabled):active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

@media (hover: hover) {
  html body button.primary:not(:disabled):hover,
  html body .account-action.account-save:not(:disabled):hover {
    filter: brightness(1.04);
  }
}

html body button.secondary,
html body .account-action:not(.account-save):not(.material-delete-action),
html body .account-security-btn:not(.danger) {
  min-height: 46px !important;
  padding: 10px 15px !important;
  border-radius: var(--r-md) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: transform .1s var(--ease-ui), border-color .15s ease, background-color .15s ease !important;
}

html body button.secondary:not(:disabled):active,
html body .account-action:not(.account-save):not(:disabled):active,
html body .account-security-btn:not(:disabled):active {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

@media (hover: hover) {
  html body button.secondary:not(:disabled):hover,
  html body .account-action:not(.account-save):not(.material-delete-action):not(:disabled):hover,
  html body .account-security-btn:not(.danger):not(:disabled):hover {
    border-color: var(--sky) !important;
    background: var(--surface) !important;
  }
}

html body button.secondary.small-btn {
  min-height: 40px !important;
  padding: 8px 13px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
}

html body button.secondary.clined-compact-action {
  min-height: 36px !important;
  padding: 6px 11px !important;
  font-size: 12.5px !important;
  border-radius: 11px !important;
  border-bottom-width: 3px !important;
  width: auto !important;
}

/* Unified Back Buttons across all views */
html body .back,
html body .back-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: fit-content !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border-radius: 12px !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 3px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: transform .1s var(--ease-ui), border-color .15s ease, background-color .15s ease !important;
}

html body .back:active,
html body .back-link:active {
  transform: translateY(1.5px) !important;
  border-bottom-width: 1.5px !important;
}

@media (hover: hover) {
  html body .back:hover,
  html body .back-link:hover {
    border-color: var(--sky) !important;
    background: var(--surface) !important;
  }
}

/* ───────── 5. Unified Form Controls (Inputs, Selects, Textareas) ───────── */
html body input[type="text"],
html body input[type="password"],
html body input[type="email"],
html body input[type="url"],
html body input[type="search"],
html body input[type="number"],
html body input[type="date"],
html body input[type="time"],
html body input[type="datetime-local"],
html body select,
html body textarea {
  min-height: 46px;
  border-radius: var(--r-md) !important;
  border: 2px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

html body input:focus,
html body select:focus,
html body textarea:focus {
  outline: none !important;
  border-color: var(--sky) !important;
  background: var(--card) !important;
  box-shadow: 0 0 0 3px var(--sky-soft) !important;
}

html body input::placeholder,
html body textarea::placeholder {
  color: var(--muted) !important;
  opacity: .8;
  font-weight: 600;
}

/* Fix Home Search Bar inside unified wrapper */
html body .home-question-search {
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 18px !important;
  background: var(--card) !important;
  box-shadow: none !important;
}
html body .home-question-search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 42px !important;
}
html body .home-question-search:focus-within {
  border-color: var(--sky) !important;
  box-shadow: 0 0 0 3px var(--sky-soft) !important;
}

/* Fix mobile account form oversized labels/inputs from style.css:1752 */
html body .account-form label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--muted) !important;
  margin-bottom: 4px !important;
}
html body .account-form .account-profile-fields input {
  min-height: 46px !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  border-radius: var(--r-md) !important;
}

/* ───────── 6. Quiz Answer Readability Bug Fix (Light & Dark Mode) ───────── */
html body .answer {
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 16px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.48 !important;
  touch-action: manipulation;
}

html body .answer:active:not(:disabled) {
  transform: translateY(2px) !important;
  border-bottom-width: 2px !important;
}

html body .answer-letter {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--line) !important;
}

html body .answer.correct {
  background: rgba(88, 204, 2, .14) !important;
  border-color: var(--brand) !important;
  border-bottom-color: var(--brand-dark) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html body .answer.correct .answer-letter {
  background: var(--brand) !important;
  border-color: var(--brand-dark) !important;
  color: #ffffff !important;
}

/* CRITICAL FIX: previously #3b2022 dark brown in light mode! */
html body .answer.wrong {
  background: #fff1f2 !important;
  border-color: var(--danger) !important;
  border-bottom-color: var(--danger-dark) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html body .answer.wrong .answer-letter {
  background: var(--danger) !important;
  border-color: var(--danger-dark) !important;
  color: #ffffff !important;
}

:root.dark html body .answer.correct {
  background: rgba(88, 204, 2, .18) !important;
  border-color: #58cc02 !important;
  color: #f0fdf4 !important;
}
:root.dark html body .answer.wrong {
  background: #3a1c20 !important;
  border-color: #ff5b5b !important;
  border-bottom-color: #c83232 !important;
  color: #ffe4e6 !important;
}

/* ───────── 7. Unified Tabs, Chips & Modals ───────── */
html body .admin-panel-tab.selected {
  background: var(--sky) !important;
  border-color: var(--sky-dark) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

:root.dark html body .admin-panel-tab.selected {
  background: var(--sky) !important;
  border-color: var(--sky-dark) !important;
  color: #ffffff !important;
}

html body .account-modal-card,
html body .cdlg-card,
html body .upi-image-zoom-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 24px !important;
}

html body .account-modal-backdrop,
html body .cdlg-layer {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ───────── 8. Floating Bottom Navigation Harmonization ───────── */
html body .floating-dashboard-nav {
  background: rgba(255, 255, 255, .94) !important;
  border: 2px solid var(--line) !important;
  border-bottom-width: 4px !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 20, .13) !important;
}

:root.dark html body .floating-dashboard-nav {
  background: rgba(23, 32, 29, .95) !important;
  border-color: var(--line) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45) !important;
}

html body .floating-dashboard-nav .floating-nav-item {
  color: var(--muted) !important;
  font-family: var(--clined-font) !important;
  font-weight: 800 !important;
}

/* Harmonized icon accents (no purple clash on dark!) */
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="home"] { --nav-icon-color: #1cb0f6 !important; }
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="dashboard"] { --nav-icon-color: #ff9600 !important; }
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="uab"] { --nav-icon-color: #58cc02 !important; }
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="chat"] { --nav-icon-color: #0d9488 !important; }
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="account"] { --nav-icon-color: #ff4b4b !important; }

html body .floating-dashboard-nav .floating-nav-slider {
  background: var(--brand-soft) !important;
  border: 2px solid rgba(88, 204, 2, .45) !important;
  box-shadow: none !important;
  border-radius: 16px !important;
  transition: left 160ms cubic-bezier(.22, 1, .36, 1), transform 160ms cubic-bezier(.22, 1, .36, 1), width 160ms cubic-bezier(.22, 1, .36, 1) !important;
}

:root.dark html body .floating-dashboard-nav .floating-nav-slider {
  background: rgba(88, 204, 2, .16) !important;
  border-color: rgba(88, 204, 2, .42) !important;
  box-shadow: none !important;
}

html body .floating-dashboard-nav .floating-nav-item.active span:last-child {
  color: var(--text) !important;
}
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="account"] .floating-nav-icon {
  border: 0 !important;
  border-radius: 0 !important;
}
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="account"] .floating-nav-icon::before,
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="account"] .floating-nav-icon::after {
  content: none !important;
  display: none !important;
}
html body .floating-dashboard-nav .floating-nav-img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain;
  display: block;
  opacity: .9;
  transition: opacity .18s ease;
}
html body .floating-dashboard-nav .floating-nav-item.active .floating-nav-img {
  opacity: 1;
}
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="chat"],
html body .floating-dashboard-nav .floating-nav-item[data-floating-nav="chat"] .floating-nav-icon {
  position: relative !important;
  overflow: visible !important;
}
html body .floating-dashboard-nav .floating-nav-badge {
  position: absolute !important;
  top: -5px !important;
  right: -8px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4.5px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff5b5b 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  font-style: normal !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.45) !important;
  pointer-events: none !important;
  z-index: 5 !important;
  animation: clinedNavBadgePop 0.28s cubic-bezier(.22, 1.4, .36, 1) both;
}
:root.dark html body .floating-dashboard-nav .floating-nav-badge {
  border-color: #17201d !important;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.55) !important;
}
html body .floating-dashboard-nav .floating-nav-badge[hidden] {
  display: none !important;
}
@keyframes clinedNavBadgePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Home quick tile Mini Games icon: clinical emerald/teal accent */
html body #home #miniGamesBtn .home-materials-icon {
  background: var(--med-soft) !important;
}

/* Navigasi soal (#headerNavBtn) hanya tampil saat halaman #quiz aktif */
body.home-context #headerNavBtn,
body:not(.quiz-context) #headerNavBtn,
body:not(:has(#quiz.view.active)) #headerNavBtn {
  display: none !important;
}

/* Clean custom scrollbars on desktop */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line-d); border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
}

/* ───────── 9. Achievements Page & Unlock Notification Banner ───────── */
.ach-summary {
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-soft), var(--sky-soft));
  border: 2px solid var(--line);
  display: grid;
  gap: 10px;
}
.ach-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ach-summary-top b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
}
.ach-summary-top small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.ach-summary-pct {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ach-summary-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--card);
  border: 1.5px solid var(--line);
  overflow: hidden;
}
.ach-summary-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  transition: width .35s var(--ease-ui);
}

.ach-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ach-tabs::-webkit-scrollbar { display: none; }
.ach-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 99px;
  border: 2px solid var(--line);
  border-bottom-width: 3px;
  background: var(--card);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.ach-tab.on {
  background: var(--sky);
  border-color: var(--sky-dark);
  color: #ffffff;
}

.ach-grid {
  display: grid;
  gap: 8px;
}
@media (min-width: 680px) {
  .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html body .achievement-item.unlocked {
  background: var(--brand-soft) !important;
  border-color: rgba(88, 204, 2, .45) !important;
  opacity: 1 !important;
}
html body .achievement-item.locked {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  opacity: .84 !important;
}
.ach-item-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.ach-item-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.ach-item-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sky);
}
.ach-item-prog span {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Celebratory Top-Sliding Achievement Banner */
.ach-notify-banner {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate(-50%, -150%);
  opacity: 0;
  z-index: 2147483050;
  width: min(92vw, 430px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 18px;
  border: 2px solid var(--brand);
  border-bottom-width: 4px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(10, 22, 16, .28);
  text-align: left;
  cursor: pointer;
  transition: transform .34s cubic-bezier(.2, .95, .3, 1.1), opacity .22s ease;
}
.ach-notify-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.ach-notify-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  border: 1.5px solid rgba(88, 204, 2, .4);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.ach-notify-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.ach-notify-body small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--ok-text);
}
.ach-notify-body b {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ach-notify-body span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ach-notify-go {
  font-size: 12px;
  font-weight: 800;
  color: var(--sky-text);
  white-space: nowrap;
}

/* ── Profile Photo & User Avatars ────────────────────────────────────────── */
.account-avatar.has-photo {
  padding: 0;
  background: var(--surface-2, #f1f5f9);
  border: 2px solid var(--sky, #1cb0f6);
}
.account-avatar-img,
.soc-av-img,
.ap-av-img,
.qc-av-img,
.lb-av-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.account-profile-hero {
  padding-top: 28px;
}
.account-avatar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.account-banner-section .account-avatar-actions {
  margin-top: 6px;
}
.account-change-avatar {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(28, 176, 246, 0.1) !important;
  border: 1.5px solid rgba(28, 176, 246, 0.38) !important;
  color: #0284c7 !important;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  cursor: pointer;
}
:root.dark .account-change-avatar,
body.dark .account-change-avatar {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}
.account-remove-avatar {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border, #e2e8f0);
  color: var(--danger, #e11d48);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.account-remove-avatar:hover {
  background: rgba(225, 29, 72, 0.08);
}
.lb-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--sky, #1cb0f6), var(--indigo, #6366f1));
}
.lb-av-sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

/* ── Interactive Avatar Crop Modal with 3x3 Grid ─────────────────────────── */
.avatar-crop-card {
  max-width: 360px;
}
.avatar-crop-stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 12px auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  border: 2px solid var(--border, #e2e8f0);
}
.avatar-crop-stage:active {
  cursor: grabbing;
}
.avatar-crop-stage img {
  position: relative;
  max-width: none;
  max-height: none;
  pointer-events: none;
  will-change: transform;
}
.avatar-crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.avatar-crop-mask::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.56);
}
.avatar-crop-grid {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.avatar-crop-grid .grid-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}
.avatar-crop-grid .grid-v.v1 { left: 33.333%; }
.avatar-crop-grid .grid-v.v2 { left: 66.666%; }
.avatar-crop-grid .grid-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}
.avatar-crop-grid .grid-h.h1 { top: 33.333%; }
.avatar-crop-grid .grid-h.h2 { top: 66.666%; }
.avatar-crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
}
.avatar-crop-zoom-row input[type="range"] {
  flex: 1;
  accent-color: var(--sky, #1cb0f6);
}
.avatar-crop-zoom-row b {
  min-width: 38px;
  text-align: right;
  font-size: 12.5px;
  color: var(--sky-text, #0284c7);
}
.avatar-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.account-action.account-cancel {
  background: var(--surface-2, #f1f5f9);
  color: var(--text, #0f172a);
  border: 1.5px solid var(--border, #cbd5e1);
}

/* ── Discord-style Chat Nameplate Banner ─────────────────────────────────── */
.chat-row,
.chat-head,
.account-banner-preview {
  position: relative;
  overflow: hidden;
}
.chat-row > *:not(.chat-row-bg),
.chat-head > *:not(.chat-row-bg),
.account-banner-preview > *:not(.chat-row-bg) {
  position: relative;
  z-index: 1;
}
.chat-row-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.82) 45%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.82) 45%, rgba(0,0,0,1) 100%);
}
.chat-row.has-banner,
.account-banner-preview.has-banner {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}
.chat-row.has-banner::before,
.account-banner-preview.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(11, 15, 28, 0.92) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}
.chat-row.has-banner .chat-who small,
.chat-row.has-banner .chat-meta time,
.chat-row.has-banner .chat-wait,
.account-banner-preview.has-banner .account-banner-mini-txt small {
  color: rgba(241, 245, 249, 0.85) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}
.chat-row.has-banner .chat-who b:not([data-name-color]),
.account-banner-preview.has-banner .account-banner-mini-txt b:not([data-name-color]) {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}
.chat-row.has-banner .chat-badge.b-admin {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fde68a !important;
}
.chat-row.has-banner .chat-badge.b-helper {
  background: rgba(56, 189, 248, 0.24) !important;
  color: #bae6fd !important;
}
.chat-row.has-banner .chat-badge.b-mentor {
  background: rgba(52, 211, 153, 0.24) !important;
  color: #a7f3d0 !important;
}
.chat-head.has-banner {
  background: #0f172a !important;
}
.chat-head.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(11, 15, 28, 0.90) 0%, rgba(15, 23, 42, 0.62) 52%, rgba(15, 23, 42, 0.20) 100%);
  pointer-events: none;
}
.account-banner-section {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.account-banner-preview {
  min-height: 68px;
  border-radius: 14px;
  border: 2px solid var(--border, #dbe4de);
  background: var(--surface, #edf2ee);
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
}
.account-banner-preview-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.account-banner-mini-av {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1cb0f6, #6366f1);
  overflow: hidden;
}
.account-banner-mini-av.has-deco {
  overflow: visible;
}
.account-banner-mini-av > img:not(.avatar-deco-img) {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.account-banner-mini-txt {
  display: grid;
  min-width: 0;
}
.account-banner-mini-txt b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-banner-mini-txt small {
  font-size: 12px;
  opacity: 0.78;
}
.avatar-crop-stage.is-banner {
  width: 300px;
  height: 84px;
  border-radius: 14px;
}
.avatar-crop-stage.is-banner .avatar-crop-mask {
  display: none;
}
.avatar-crop-stage.is-banner .avatar-crop-grid {
  inset: 0;
  border-radius: 14px;
}

/* ── Discord-style Glowing Gradient Display Name Colors ──────────────────── */
[data-name-color] {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  font-weight: 800;
}
[data-name-color="amber"] {
  background: linear-gradient(90deg, #f59e0b 0%, #fde68a 50%, #d97706 100%);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.55));
}
[data-name-color="gold"] {
  background: linear-gradient(90deg, #eab308 0%, #fef08a 50%, #ca8a04 100%);
  filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.62));
}
[data-name-color="sakura"] {
  background: linear-gradient(90deg, #ec4899 0%, #fbcfe8 50%, #db2777 100%);
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.6));
}
[data-name-color="cyber"] {
  background: linear-gradient(90deg, #06b6d4 0%, #a5f3fc 50%, #3b82f6 100%);
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.65));
}
[data-name-color="crimson"] {
  background: linear-gradient(90deg, #f43f5e 0%, #fda4af 50%, #e11d48 100%);
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.6));
}
[data-name-color="emerald"] {
  background: linear-gradient(90deg, #10b981 0%, #a7f3d0 50%, #059669 100%);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.58));
}
[data-name-color="violet"] {
  background: linear-gradient(90deg, #a855f7 0%, #e9d5ff 50%, #7c3aed 100%);
  filter: drop-shadow(0 0 7px rgba(192, 132, 252, 0.62));
}
[data-name-color="sunset"] {
  background: linear-gradient(90deg, #f97316 0%, #fed7aa 50%, #ef4444 100%);
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.6));
}
[data-name-color="ice"] {
  background: linear-gradient(90deg, #3b82f6 0%, #bae6fd 50%, #6366f1 100%);
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.62));
}
[data-name-color="hologram"] {
  background: linear-gradient(90deg, #f472b6 0%, #fbbf24 25%, #34d399 50%, #38bdf8 75%, #c084fc 100%);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.65));
}
body.dark [data-name-color="amber"],   html.dark [data-name-color="amber"],   .has-banner [data-name-color="amber"],   .banner-shop-preview-txt [data-name-color="amber"]   { background: linear-gradient(90deg, #fbbf24 0%, #fef3c7 50%, #f59e0b 100%); }
body.dark [data-name-color="gold"],    html.dark [data-name-color="gold"],    .has-banner [data-name-color="gold"],    .banner-shop-preview-txt [data-name-color="gold"]    { background: linear-gradient(90deg, #fde047 0%, #fef9c3 50%, #facc15 100%); }
body.dark [data-name-color="sakura"],  html.dark [data-name-color="sakura"],  .has-banner [data-name-color="sakura"],  .banner-shop-preview-txt [data-name-color="sakura"]  { background: linear-gradient(90deg, #f472b6 0%, #fce7f3 50%, #ec4899 100%); }
body.dark [data-name-color="cyber"],   html.dark [data-name-color="cyber"],   .has-banner [data-name-color="cyber"],   .banner-shop-preview-txt [data-name-color="cyber"]   { background: linear-gradient(90deg, #22d3ee 0%, #cffafe 50%, #60a5fa 100%); }
body.dark [data-name-color="crimson"], html.dark [data-name-color="crimson"], .has-banner [data-name-color="crimson"], .banner-shop-preview-txt [data-name-color="crimson"] { background: linear-gradient(90deg, #fb7185 0%, #ffe4e6 50%, #f43f5e 100%); }
body.dark [data-name-color="emerald"], html.dark [data-name-color="emerald"], .has-banner [data-name-color="emerald"], .banner-shop-preview-txt [data-name-color="emerald"] { background: linear-gradient(90deg, #34d399 0%, #d1fae5 50%, #10b981 100%); }
body.dark [data-name-color="violet"],  html.dark [data-name-color="violet"],  .has-banner [data-name-color="violet"],  .banner-shop-preview-txt [data-name-color="violet"]  { background: linear-gradient(90deg, #c084fc 0%, #f3e8ff 50%, #a855f7 100%); }
body.dark [data-name-color="sunset"],  html.dark [data-name-color="sunset"],  .has-banner [data-name-color="sunset"],  .banner-shop-preview-txt [data-name-color="sunset"]  { background: linear-gradient(90deg, #fb923c 0%, #ffedd5 50%, #f87171 100%); }
body.dark [data-name-color="ice"],     html.dark [data-name-color="ice"],     .has-banner [data-name-color="ice"],     .banner-shop-preview-txt [data-name-color="ice"]     { background: linear-gradient(90deg, #60a5fa 0%, #e0f2fe 50%, #818cf8 100%); }

/* ── Discord-style Avatar Decoration Overlay ─────────────────────────────── */
.soc-av,
.lb-av,
.qc-av,
.ap-av,
.account-avatar {
  position: relative;
}
.avatar-deco-img {
  position: absolute;
  inset: -19%;
  width: 138%;
  height: 138%;
  max-width: none !important;
  pointer-events: none;
  z-index: 2;
  display: block;
}
.account-avatar.has-deco {
  overflow: visible !important;
}

/* ── Home Clinical Progress Profile Showcase ─────────────────────────────── */
.home-profile-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: -2px 0 12px;
  border-radius: 16px;
  border: 1.5px solid var(--line, #dbe4de);
  background: var(--surface, #f8fafc);
}
.home-profile-strip > *:not(.chat-row-bg) {
  position: relative;
  z-index: 1;
}
.home-profile-strip.has-banner {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}
.home-profile-strip.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(11, 15, 28, 0.92) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}
.home-profile-strip .soc-av {
  width: 44px;
  height: 44px;
  font-size: 16px;
  flex-shrink: 0;
}
.home-profile-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 1px;
}
.home-profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.home-profile-info b {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-profile-strip.has-banner .home-profile-info b:not([data-name-color]) {
  color: #fff;
}
.home-profile-info small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
}
.home-profile-strip.has-banner .home-profile-info small {
  color: rgba(241, 245, 249, 0.85);
  opacity: 1;
}
.home-profile-av-btn {
  cursor: pointer;
}
.home-profile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.home-profile-edit {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Leaderboard Nameplates ──────────────────────────────────────────────── */
.leaderboard-row,
.lb-teaser-row,
.duel-lb-row {
  position: relative;
  overflow: hidden;
}
.leaderboard-row > *:not(.chat-row-bg),
.lb-teaser-row > *:not(.chat-row-bg),
.duel-lb-row > *:not(.chat-row-bg) {
  position: relative;
  z-index: 1;
}
.leaderboard-row.has-banner,
.lb-teaser-row.has-banner,
.duel-lb-row.has-banner {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}
.leaderboard-row.has-banner::before,
.lb-teaser-row.has-banner::before,
.duel-lb-row.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(11, 15, 28, 0.92) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}
.leaderboard-row.has-banner .lb-user small,
.leaderboard-row.has-banner .lb-rank,
.leaderboard-row.has-banner .lb-xp,
.lb-teaser-row.has-banner .lb-teaser-xp,
.duel-lb-row.has-banner .duel-lb-meta,
.duel-lb-row.has-banner .duel-lb-wins,
.duel-lb-row.has-banner .duel-lb-rank {
  color: rgba(241, 245, 249, 0.88) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}
.leaderboard-row.has-banner .lb-user b:not([data-name-color]),
.lb-teaser-row.has-banner .lb-teaser-name:not([data-name-color]),
.duel-lb-row.has-banner .duel-lb-name:not([data-name-color]) {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
}

/* ── Exclusive 100K All-Time XP Badge ────────────────────────────────────── */
.chat-badge.b-xp100k {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #3f2200;
  background: linear-gradient(120deg, #fde68a 0%, #fbbf24 38%, #f59e0b 65%, #fef08a 100%);
  background-size: 200% 100%;
  border: 1px solid rgba(217, 119, 6, 0.55);
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: xp100k-shimmer 4s ease-in-out infinite;
  vertical-align: middle;
}
.chat-badge.b-xp100k.compact {
  font-size: 9.5px;
  padding: 1px 6px;
}
.has-banner .chat-badge.b-xp100k,
:root.dark .chat-badge.b-xp100k,
body.dark .chat-badge.b-xp100k {
  color: #fef3c7 !important;
  background: linear-gradient(120deg, rgba(180, 83, 9, 0.92) 0%, rgba(217, 119, 6, 0.95) 45%, rgba(245, 158, 11, 0.9) 75%, rgba(180, 83, 9, 0.92) 100%) !important;
  background-size: 200% 100% !important;
  border-color: rgba(253, 224, 71, 0.72) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(254, 240, 138, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
@keyframes xp100k-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-badge.b-xp100k { animation: none; }
}

/* ── Block Champion Badges (Admin-assigned per Blok) ─────────────────────── */
.chat-badge.b-champ {
  --cb-bg: linear-gradient(135deg, #fef3c7, #fde68a);
  --cb-bd: rgba(217, 119, 6, 0.5);
  --cb-fg: #78350f;
  --cb-dark-bg: linear-gradient(135deg, rgba(180, 83, 9, 0.88), rgba(217, 119, 6, 0.92));
  --cb-dark-fg: #fef3c7;
  --cb-dark-bd: rgba(251, 191, 36, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.015em;
  color: var(--cb-fg);
  background: var(--cb-bg);
  border: 1.25px solid var(--cb-bd);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  vertical-align: middle;
}
.chat-badge.b-champ.compact {
  font-size: 9.5px;
  padding: 1px 6px;
}
.has-banner .chat-badge.b-champ,
:root.dark .chat-badge.b-champ,
body.dark .chat-badge.b-champ {
  color: var(--cb-dark-fg) !important;
  background: var(--cb-dark-bg) !important;
  border-color: var(--cb-dark-bd) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.chat-badge.b-champ.champ-emerald { --cb-bg: linear-gradient(135deg,#d1fae5,#a7f3d0); --cb-bd: rgba(16,185,129,.5); --cb-fg: #065f46; --cb-dark-bg: linear-gradient(135deg,#047857,#059669); --cb-dark-fg: #ecfdf5; --cb-dark-bd: rgba(110,231,183,.65); }
.chat-badge.b-champ.champ-indigo  { --cb-bg: linear-gradient(135deg,#e0e7ff,#c7d2fe); --cb-bd: rgba(99,102,241,.5); --cb-fg: #312e81; --cb-dark-bg: linear-gradient(135deg,#4338ca,#4f46e5); --cb-dark-fg: #eef2ff; --cb-dark-bd: rgba(165,180,252,.65); }
.chat-badge.b-champ.champ-sky     { --cb-bg: linear-gradient(135deg,#e0f2fe,#bae6fd); --cb-bd: rgba(14,165,233,.5); --cb-fg: #0c4a6e; --cb-dark-bg: linear-gradient(135deg,#0369a1,#0284c7); --cb-dark-fg: #f0f9ff; --cb-dark-bd: rgba(125,211,252,.65); }
.chat-badge.b-champ.champ-lime    { --cb-bg: linear-gradient(135deg,#ecfccb,#d9f99d); --cb-bd: rgba(132,204,22,.5); --cb-fg: #365314; --cb-dark-bg: linear-gradient(135deg,#4d7c0f,#65a30d); --cb-dark-fg: #f7fee7; --cb-dark-bd: rgba(190,242,100,.65); }
.chat-badge.b-champ.champ-teal    { --cb-bg: linear-gradient(135deg,#ccfbf1,#99f6e4); --cb-bd: rgba(20,184,166,.5); --cb-fg: #115e59; --cb-dark-bg: linear-gradient(135deg,#0f766e,#0d9488); --cb-dark-fg: #f0fdfa; --cb-dark-bd: rgba(94,234,212,.65); }
.chat-badge.b-champ.champ-amber   { --cb-bg: linear-gradient(135deg,#fef3c7,#fcd34d); --cb-bd: rgba(245,158,11,.55); --cb-fg: #78350f; --cb-dark-bg: linear-gradient(135deg,#b45309,#d97706); --cb-dark-fg: #fffbeb; --cb-dark-bd: rgba(252,211,77,.65); }
.chat-badge.b-champ.champ-slate   { --cb-bg: linear-gradient(135deg,#e2e8f0,#cbd5e1); --cb-bd: rgba(100,116,139,.5); --cb-fg: #1e293b; --cb-dark-bg: linear-gradient(135deg,#334155,#475569); --cb-dark-fg: #f8fafc; --cb-dark-bd: rgba(148,163,184,.65); }
.chat-badge.b-champ.champ-cyan    { --cb-bg: linear-gradient(135deg,#cffafe,#a5f3fc); --cb-bd: rgba(6,182,212,.5); --cb-fg: #155e75; --cb-dark-bg: linear-gradient(135deg,#0e7490,#0891b2); --cb-dark-fg: #ecfeff; --cb-dark-bd: rgba(103,232,249,.65); }
.chat-badge.b-champ.champ-crimson { --cb-bg: linear-gradient(135deg,#ffe4e6,#fecdd3); --cb-bd: rgba(225,29,72,.52); --cb-fg: #881337; --cb-dark-bg: linear-gradient(135deg,#be123c,#e11d48); --cb-dark-fg: #fff1f2; --cb-dark-bd: rgba(253,164,175,.7); }
.chat-badge.b-champ.champ-ruby    { --cb-bg: linear-gradient(135deg,#fee2e2,#fecaca); --cb-bd: rgba(220,38,38,.52); --cb-fg: #7f1d1d; --cb-dark-bg: linear-gradient(135deg,#b91c1c,#dc2626); --cb-dark-fg: #fef2f2; --cb-dark-bd: rgba(252,165,165,.7); }
.chat-badge.b-champ.champ-jade    { --cb-bg: linear-gradient(135deg,#dcfce7,#bbf7d0); --cb-bd: rgba(22,163,74,.5); --cb-fg: #14532d; --cb-dark-bg: linear-gradient(135deg,#15803d,#16a34a); --cb-dark-fg: #f0fdf4; --cb-dark-bd: rgba(134,239,172,.65); }
.chat-badge.b-champ.champ-bronze  { --cb-bg: linear-gradient(135deg,#ffedd5,#fed7aa); --cb-bd: rgba(234,88,12,.5); --cb-fg: #7c2d12; --cb-dark-bg: linear-gradient(135deg,#9a3412,#c2410c); --cb-dark-fg: #fff7ed; --cb-dark-bd: rgba(253,186,116,.65); }
.chat-badge.b-champ.champ-cobalt  { --cb-bg: linear-gradient(135deg,#dbeafe,#bfdbfe); --cb-bd: rgba(37,99,235,.5); --cb-fg: #1e3a8a; --cb-dark-bg: linear-gradient(135deg,#1d4ed8,#2563eb); --cb-dark-fg: #eff6ff; --cb-dark-bd: rgba(147,197,253,.65); }
.chat-badge.b-champ.champ-sun     { --cb-bg: linear-gradient(135deg,#fef9c3,#fde047); --cb-bd: rgba(202,138,4,.55); --cb-fg: #713f12; --cb-dark-bg: linear-gradient(135deg,#a16207,#ca8a04); --cb-dark-fg: #fefce8; --cb-dark-bd: rgba(253,224,71,.7); }
.chat-badge.b-champ.champ-rose    { --cb-bg: linear-gradient(135deg,#fce7f3,#fbcfe8); --cb-bd: rgba(219,39,119,.5); --cb-fg: #831843; --cb-dark-bg: linear-gradient(135deg,#be185d,#db2777); --cb-dark-fg: #fdf2f8; --cb-dark-bd: rgba(249,168,212,.68); }
.chat-badge.b-champ.champ-violet  { --cb-bg: linear-gradient(135deg,#ede9fe,#ddd6fe); --cb-bd: rgba(124,58,237,.52); --cb-fg: #4c1d95; --cb-dark-bg: linear-gradient(135deg,#6d28d9,#7c3aed); --cb-dark-fg: #f5f3ff; --cb-dark-bd: rgba(196,181,253,.7); }
.chat-badge.b-champ.champ-aqua    { --cb-bg: linear-gradient(135deg,#cffafe,#bae6fd); --cb-bd: rgba(2,132,199,.5); --cb-fg: #0c4a6e; --cb-dark-bg: linear-gradient(135deg,#0284c7,#0891b2); --cb-dark-fg: #f0f9ff; --cb-dark-bd: rgba(125,211,252,.68); }
.chat-badge.b-champ.champ-forest  { --cb-bg: linear-gradient(135deg,#d1fae5,#bbf7d0); --cb-bd: rgba(5,150,105,.52); --cb-fg: #064e3b; --cb-dark-bg: linear-gradient(135deg,#065f46,#047857); --cb-dark-fg: #ecfdf5; --cb-dark-bd: rgba(110,231,183,.65); }
.chat-badge.b-champ.champ-warm    { --cb-bg: linear-gradient(135deg,#fef3c7,#a7f3d0); --cb-bd: rgba(13,148,136,.5); --cb-fg: #134e4a; --cb-dark-bg: linear-gradient(135deg,#0f766e,#b45309); --cb-dark-fg: #fefce8; --cb-dark-bd: rgba(253,230,138,.68); }
.chat-badge.b-champ.champ-gold    { --cb-bg: linear-gradient(135deg,#fef08a,#f59e0b); --cb-bd: rgba(180,83,9,.6); --cb-fg: #451a03; --cb-dark-bg: linear-gradient(135deg,#b45309,#eab308); --cb-dark-fg: #fefce8; --cb-dark-bd: rgba(254,240,138,.78); }
.chat-badge.b-champ.champ-more    { --cb-bg: linear-gradient(135deg,#f1f5f9,#e2e8f0); --cb-bd: rgba(100,116,139,.45); --cb-fg: #334155; --cb-dark-bg: rgba(51,65,85,.9); --cb-dark-fg: #e2e8f0; --cb-dark-bd: rgba(148,163,184,.55); }


/* ── Header Live IV Drip Study Timer Pill ────────────────────────────────── */
html body .header .hdr-iv-pill {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 11px 0 9px !important;
  border-radius: 999px !important;
  border: 2px solid color-mix(in srgb, var(--iv-fluid, #14b8a6) 45%, var(--line, #dbe4de)) !important;
  border-bottom-width: 3px !important;
  background: var(--card, #ffffff) !important;
  color: var(--text, #1a2822) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--iv-fluid, #14b8a6) 18%, transparent) !important;
  transition: transform 0.14s var(--ease-ui), border-color 0.2s ease, box-shadow 0.2s ease !important;
}
html body .header .hdr-iv-pill[hidden] {
  display: none !important;
}
html body .header .hdr-iv-pill:active {
  transform: translateY(1px) scale(0.98) !important;
}
:root.dark html body .header .hdr-iv-pill,
:root.dark .header .hdr-iv-pill {
  background: #14211c !important;
  color: #edf5f1 !important;
}
.hdr-iv-pill[data-fluid="nacl"] { --iv-fluid: #1cb0f6; }
.hdr-iv-pill[data-fluid="blood"] { --iv-fluid: #f43f5e; }
.hdr-iv-pill[data-fluid="vita"] { --iv-fluid: #58cc02; }
.hdr-iv-pill[data-phase="rest"] { --iv-fluid: #10b981; }
.hdr-iv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #5d7067);
}
:root.dark .hdr-iv-icon { color: #b7cbc1; }
.hdr-iv-time {
  letter-spacing: -0.02em;
  line-height: 1;
}
.hdr-iv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iv-fluid, #14b8a6);
  box-shadow: 0 0 8px var(--iv-fluid, #14b8a6);
  flex: none;
}
.hdr-iv-pill[data-state="running"] .hdr-iv-dot {
  animation: hdr-iv-pulse 1.4s ease-in-out infinite;
}
.hdr-iv-pill[data-state="running"] .hdr-iv-drop {
  animation: hdr-iv-drip 1.35s cubic-bezier(0.45, 0, 0.85, 0.65) infinite;
}
.hdr-iv-pill[data-state="paused"] .hdr-iv-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.65);
  animation: none;
}
.hdr-iv-pill[data-state="paused"] .hdr-iv-drop {
  opacity: 0.35;
  animation: none;
}
@keyframes hdr-iv-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.75); opacity: 0.45; }
}
@keyframes hdr-iv-drip {
  0% { transform: translateY(-2.5px) scale(0.75); opacity: 0; }
  25% { opacity: 1; transform: translateY(-1px) scale(1); }
  85% { opacity: 1; transform: translateY(2.2px) scale(0.95); }
  100% { opacity: 0; transform: translateY(3.4px) scale(0.6); }
}
@media (max-width: 460px) {
  body.iv-timer-active .header .brand p { display: none !important; }
  html body .header .hdr-iv-pill {
    height: 33px !important;
    padding: 0 8px 0 7px !important;
    gap: 5px !important;
    font-size: 12px !important;
  }
}

/* ── IV Drip Study Timer Page ────────────────────────────────────────────── */
.iv-timer-card {
  --iv-fluid-hi: #7dd3fc;
  --iv-fluid-top: #1cb0f6;
  --iv-fluid-bot: #0d9488;
  --iv-accent-soft: rgba(28, 176, 246, 0.14);
}
.iv-timer-card[data-fluid="blood"] {
  --iv-fluid-hi: #fda4af;
  --iv-fluid-top: #fb7185;
  --iv-fluid-bot: #e11d48;
  --iv-accent-soft: rgba(244, 63, 94, 0.14);
}
.iv-timer-card[data-fluid="vita"] {
  --iv-fluid-hi: #bef264;
  --iv-fluid-top: #58cc02;
  --iv-fluid-bot: #15803d;
  --iv-accent-soft: rgba(88, 204, 2, 0.15);
}
.iv-timer-card[data-phase="rest"] {
  --iv-fluid-hi: #6ee7b7;
  --iv-fluid-top: #10b981;
  --iv-fluid-bot: #047857;
  --iv-accent-soft: rgba(16, 185, 129, 0.16);
}
.iv-timer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--line, #dbe4de);
  background: var(--card, #ffffff);
}
.iv-seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface, #edf3ef);
  border: 1.5px solid var(--line, #dbe4de);
  flex: 1 1 200px;
}
.iv-seg-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #5d7067);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.iv-seg-btn.active {
  background: var(--card, #ffffff);
  color: var(--text, #1a2822);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}
:root.dark .iv-seg-btn.active {
  background: #273731;
  color: #f4faf6;
}
.iv-fluid-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.iv-fluid-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line, #dbe4de);
  background: var(--surface, #f2f7f4);
  color: var(--muted, #5d7067);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.iv-fluid-chip.active {
  border-color: var(--iv-fluid-top);
  background: var(--iv-accent-soft);
  color: var(--text, #1a2822);
}
.iv-fdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.iv-fdot.nacl { background: linear-gradient(135deg, #38bdf8, #0d9488); }
.iv-fdot.blood { background: linear-gradient(135deg, #fb7185, #e11d48); }
.iv-fdot.vita { background: linear-gradient(135deg, #84cc16, #16a34a); }

.iv-stage {
  position: relative;
  padding: 20px 20px 22px !important;
  background: radial-gradient(75% 65% at 50% 34%, var(--iv-accent-soft), transparent 72%), var(--surface, #f2f7f4) !important;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.iv-status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.iv-stage .timer-mode-label {
  margin-bottom: 0 !important;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--iv-accent-soft);
  color: var(--iv-fluid-bot) !important;
}
:root.dark .iv-stage .timer-mode-label {
  color: var(--iv-fluid-hi) !important;
}
.iv-ml-pill {
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line, #dbe4de);
  background: var(--card, #ffffff);
  color: var(--muted, #5d7067);
}
.iv-bag-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 4px 0 2px;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.09));
}
:root.dark .iv-bag-wrap {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.42));
}
.iv-frame-stroke { stroke: #64748b; }
.iv-frame-fill { fill: #64748b; }
.iv-bag-bg { fill: rgba(255, 255, 255, 0.78); }
.iv-chamber-bg { fill: rgba(255, 255, 255, 0.65); }
.iv-ticks line { stroke: rgba(15, 23, 42, 0.28); }
:root.dark .iv-frame-stroke { stroke: #94b4a8; }
:root.dark .iv-frame-fill { fill: #94b4a8; }
:root.dark .iv-bag-bg { fill: rgba(15, 24, 21, 0.75); }
:root.dark .iv-chamber-bg { fill: rgba(15, 24, 21, 0.65); }
:root.dark .iv-ticks line { stroke: rgba(255, 255, 255, 0.42); }

.iv-liquid-group {
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.iv-wave-front {
  animation: iv-wave-slide 3.4s linear infinite;
  animation-play-state: paused;
}
.iv-wave-back {
  animation: iv-wave-slide-rev 4.8s linear infinite;
  animation-play-state: paused;
}
.iv-timer-card[data-state="running"] .iv-wave-front,
.iv-timer-card[data-state="running"] .iv-wave-back {
  animation-play-state: running;
}
@keyframes iv-wave-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-140px); }
}
@keyframes iv-wave-slide-rev {
  0% { transform: translateX(-140px); }
  100% { transform: translateX(0); }
}

.iv-drop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center top;
}
.iv-timer-card[data-state="running"] .iv-drop {
  animation: iv-drop-fall 1.35s cubic-bezier(0.42, 0, 0.85, 0.68) infinite;
}
.iv-timer-card[data-state="paused"] .iv-drop {
  opacity: 0.7;
  transform: translateY(2px) scale(0.85);
}
@keyframes iv-drop-fall {
  0% { transform: translateY(-2px) scale(0.35); opacity: 0; }
  22% { transform: translateY(1px) scale(1); opacity: 1; }
  78% { transform: translateY(20px) scale(0.95); opacity: 1; }
  92% { transform: translateY(24px) scale(1.25, 0.45); opacity: 0.4; }
  100% { transform: translateY(25px) scale(0.2); opacity: 0; }
}

.iv-bubble {
  opacity: 0;
}
.iv-timer-card[data-state="running"] .iv-bubble.b1 {
  animation: iv-bubble-rise 3.1s ease-in infinite;
}
.iv-timer-card[data-state="running"] .iv-bubble.b2 {
  animation: iv-bubble-rise 4s ease-in 1.1s infinite;
}
.iv-timer-card[data-state="running"] .iv-bubble.b3 {
  animation: iv-bubble-rise 3.6s ease-in 2s infinite;
}
@keyframes iv-bubble-rise {
  0% { transform: translateY(10px) scale(0.5); opacity: 0; }
  25% { opacity: 0.55; }
  85% { opacity: 0.35; }
  100% { transform: translateY(-84px) scale(1.1); opacity: 0; }
}

.iv-stage .timer-clock {
  font-size: 56px !important;
  letter-spacing: -2px !important;
  margin-bottom: 2px !important;
  font-variant-numeric: tabular-nums !important;
}
.iv-context-line {
  font-size: 13px;
  font-weight: 800;
  color: var(--iv-fluid-bot);
  margin-bottom: 2px;
}
:root.dark .iv-context-line {
  color: var(--iv-fluid-hi);
}
@media (prefers-reduced-motion: reduce) {
  .hdr-iv-pill .hdr-iv-dot,
  .hdr-iv-pill .hdr-iv-drop,
  .iv-wave-front,
  .iv-wave-back,
  .iv-drop,
  .iv-bubble {
    animation: none !important;
  }
}

/* ── Admin Leaderboard Visibility Toggle (ON / OFF) ── */
.admin-lb-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
  border-radius: 15px;
  border: 2px solid rgba(13, 148, 136, 0.32);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(28, 176, 246, 0.08));
}
.admin-lb-toggle-box[hidden] {
  display: none !important;
}
:root.dark .admin-lb-toggle-box,
body.dark .admin-lb-toggle-box {
  border-color: rgba(45, 212, 191, 0.3);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(14, 165, 233, 0.12));
}
.alb-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.alb-info b {
  font-size: 13px;
  font-weight: 900;
  color: var(--text, #1f2a23);
}
.alb-info small {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted, #5c6d63);
}
.admin-lb-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 78px;
  height: 36px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  background: var(--card, #ffffff);
  color: var(--muted, #475569);
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
:root.dark .admin-lb-switch,
body.dark .admin-lb-switch {
  background: #0f172a;
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}
.admin-lb-switch .alb-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.18s ease, background 0.18s ease;
}
.admin-lb-switch.on {
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  border-color: #0f766e;
  color: #ffffff;
}
.admin-lb-switch.on .alb-knob {
  background: #ffffff;
  transform: translateX(3px);
}
.admin-lb-switch:disabled {
  opacity: 0.6;
  cursor: progress;
}

