/* Script by ZE153260_Zefriansyah */
:root {
  --font-sans: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --panel-soft: #f7faff;
  --text: #122133;
  --text-soft: #3a4a5c;
  --muted: #72839a;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --primary: #1684d5;
  --primary-strong: #0d6fb9;
  --green: #3ab54a;
  --lime: #d5df24;
  --danger: #d85050;
  --warning: #f0a53a;
  --shadow: 0 16px 46px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.05);
  --radius: 22px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --sidebar-width: 272px;
  --max-public: 1220px;
}

html[data-theme="dark"] {
  --bg: #0b1320;
  --bg-soft: #121d2c;
  --panel: rgba(18, 29, 44, 0.88);
  --panel-strong: #152235;
  --panel-soft: #1a2b42;
  --text: #eff6ff;
  --text-soft: #ced8e8;
  --muted: #9db0c7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.25);
}

body.app-shell:not(.mobile-shell-active) {
  background: #f7f8fa;
}

html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) {
  background: #0f1722;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(22,132,213,.08), transparent 22%),
    radial-gradient(circle at top right, rgba(58,181,74,.06), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }

.public-shell, .app-shell, .installer-shell { min-height: 100vh; }
.public-page-wrap {
  max-width: var(--max-public);
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.public-page-wrap.narrow { max-width: 980px; }
.public-page-wrap.full-height { min-height: 100vh; display: grid; align-items: center; }

.cloud-card, .panel-card, .hero-card, .auth-card, .installer-card, .stat-card, .option-card, .profile-mini, .topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(140%) blur(12px);
}
.hero-card.centered { text-align: center; }
.glassless { backdrop-filter: none; background: var(--panel-strong); }

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
}
.eyebrow.light { color: rgba(255,255,255,.86); }
.muted { color: var(--muted); }
.muted.light { color: rgba(255,255,255,.86); }
.large { font-size: 1.05rem; line-height: 1.8; }
.small { font-size: .86rem; }
.top-space { margin-top: 22px; }
.center { text-align: center; }
.danger-text { color: var(--danger); }
.is-hidden { display: none !important; }
.hidden { display: none !important; }
[hidden]{display:none!important;}

.app-shell { display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: rgba(255,255,255,.84);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 12px 0 28px rgba(17, 24, 39, 0.05);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 40;
}
html[data-theme="dark"] .sidebar {
  background: rgba(10, 18, 29, .92);
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar-close, .menu-toggle {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.sidebar-close { display: none; }
.menu-toggle { display: none; }
.brand-block, .brand-inline, .profile-mini { display: flex; align-items: center; gap: 14px; }
.brand-block strong, .brand-inline strong { display: block; font-size: .98rem; }
.brand-block small, .brand-inline small, .profile-mini small { display: block; color: var(--muted); }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-logo.small { width: 40px; height: 40px; }
.brand-logo.big { width: 64px; height: 64px; }
.on-image strong, .on-image small { color: #fff; }

.menu-list { display: grid; gap: 8px; overflow: auto; padding-right: 4px; }
.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  transition: .2s ease;
}
.menu-link:hover, .menu-link.active {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.1));
  color: var(--text);
  transform: translateX(2px);
}
.menu-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: rgba(22,132,213,.1);
  color: var(--primary);
  font-size: .92rem;
  flex: 0 0 auto;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, .45);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 35;
}
body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 18px;
}
.topbar {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar h1 { margin: 0; font-size: clamp(1.5rem, 2vw, 1.8rem); }
.topbar-subtitle { margin: 4px 0 0; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-mini { padding: 8px 10px; }
.avatar, .avatar-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
}
.avatar {
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: #fff;
  font-weight: 700;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 4;
}
.public-nav.slim { border-radius: 18px; }
.nav-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.public-nav a,
.nav-actions .btn {
  position: relative;
  z-index: 5;
}

.dashboard-intro, .landing-hero, .about-hero, .hero-card, .installer-card {
  padding: 26px;
}
.dashboard-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 24px;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.hero-glow::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(22,132,213,.18) 0%, rgba(58,181,74,.14) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.landing-copy { display: grid; align-content: center; gap: 10px; position: relative; z-index: 1; }
.landing-copy h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.14; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.hero-actions.compact { margin-top: 0; }
.hero-actions.center { justify-content: center; }
.landing-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; position: relative; z-index: 1; }
.metric-tile {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,249,255,.88));
  border: 1px solid rgba(22,132,213,.12);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .metric-tile {
  background: linear-gradient(180deg, rgba(21,34,53,.94), rgba(18,29,44,.84));
}
.metric-tile.focus {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.12));
}
.metric-tile.wide { grid-column: 1 / -1; }
.metric-tile span { color: var(--muted); font-size: .9rem; }
.metric-tile strong { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.metric-tile small { color: var(--muted); }

.option-card {
  padding: 26px;
  display: grid;
  gap: 12px;
  transition: .25s ease;
}
.option-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.option-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22,132,213,.16), rgba(58,181,74,.12));
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.1fr .95fr;
  gap: 22px;
  align-items: center;
}
.about-copy h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.about-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}
.about-image { width: 100%; height: 100%; object-fit: cover; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pill-row.dense .pill { font-size: .86rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text-soft);
}
.pill-primary {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.12));
  color: var(--text);
}
.section-card { padding: 22px; }
.section-card h3 { margin-top: 0; }

.prayer-strip {
  position: relative;
  z-index: 6;
}

.prayer-strip-public {
  max-width: var(--max-public);
  margin: 0 auto 16px;
  padding: 0 24px;
}

.prayer-strip-app {
  margin-bottom: -4px;
}

.prayer-strip-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: none;
}

html[data-theme="dark"] .prayer-strip-inner {
  background: rgba(21,34,53,.96);
}

.prayer-strip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 112px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22,132,213,.1);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prayer-strip-text {
  min-width: 0;
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .prayer-strip-public {
    padding: 0 16px;
  }

  .prayer-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .prayer-strip-badge {
    min-width: 0;
  }
}

@media (min-width: 961px) {
  body.app-shell:not(.mobile-shell-active) {
    background: #f7f8fa;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) {
    background: #0f1722;
  }

  body.app-shell:not(.mobile-shell-active) .sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    box-shadow: none;
    padding: 16px 14px;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .sidebar {
    background: #162131;
    border-right-color: rgba(255, 255, 255, 0.08);
  }

  body.app-shell:not(.mobile-shell-active) .brand-block,
  body.app-shell:not(.mobile-shell-active) .profile-mini {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body.app-shell:not(.mobile-shell-active) .menu-link {
    padding: 10px 12px;
    border-radius: 12px;
  }

  body.app-shell:not(.mobile-shell-active) .menu-link:hover,
  body.app-shell:not(.mobile-shell-active) .menu-link.active {
    background: #f1f5f9;
    color: var(--text);
    transform: none;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .menu-link:hover,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .menu-link.active {
    background: #1d2a3c;
  }

  body.app-shell:not(.mobile-shell-active) .menu-icon {
    background: #eef4f8;
    border-radius: 10px;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .menu-icon {
    background: #223147;
  }

  body.app-shell:not(.mobile-shell-active) .main-content {
    gap: 14px;
    padding: 18px 22px 24px;
  }

  body.app-shell:not(.mobile-shell-active) .topbar,
  body.app-shell:not(.mobile-shell-active) .cloud-card,
  body.app-shell:not(.mobile-shell-active) .panel-card,
  body.app-shell:not(.mobile-shell-active) .hero-card,
  body.app-shell:not(.mobile-shell-active) .stat-card,
  body.app-shell:not(.mobile-shell-active) .option-card,
  body.app-shell:not(.mobile-shell-active) .profile-mini,
  body.app-shell:not(.mobile-shell-active) .table-wrap,
  body.app-shell:not(.mobile-shell-active) .tp-table-shell,
  body.app-shell:not(.mobile-shell-active) .metric-tile,
  body.app-shell:not(.mobile-shell-active) .info-callout,
  body.app-shell:not(.mobile-shell-active) .list-item.cardish {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: none;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .topbar,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .cloud-card,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .panel-card,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .hero-card,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .stat-card,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .option-card,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .profile-mini,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .table-wrap,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .tp-table-shell,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .metric-tile,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .info-callout,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .list-item.cardish {
    background: #162131;
    border-color: rgba(255, 255, 255, 0.08);
  }

  body.app-shell:not(.mobile-shell-active) .topbar {
    padding: 14px 16px;
  }

  body.app-shell:not(.mobile-shell-active) .dashboard-intro,
  body.app-shell:not(.mobile-shell-active) .landing-hero,
  body.app-shell:not(.mobile-shell-active) .about-hero,
  body.app-shell:not(.mobile-shell-active) .hero-card,
  body.app-shell:not(.mobile-shell-active) .installer-card {
    padding: 20px;
  }

  body.app-shell:not(.mobile-shell-active) .dashboard-intro,
  body.app-shell:not(.mobile-shell-active) .landing-hero,
  body.app-shell:not(.mobile-shell-active) .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body.app-shell:not(.mobile-shell-active) .hero-glow::after,
  body.app-shell:not(.mobile-shell-active) .loading-card.premium::before,
  body.app-shell:not(.mobile-shell-active) .loading-card.premium::after {
    display: none;
  }

  body.app-shell:not(.mobile-shell-active) .metric-tile.focus,
  body.app-shell:not(.mobile-shell-active) .menu-link:hover .menu-icon,
  body.app-shell:not(.mobile-shell-active) .menu-link.active .menu-icon {
    background: #e9f3fb;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .metric-tile.focus,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .menu-link:hover .menu-icon,
  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .menu-link.active .menu-icon {
    background: #22384f;
  }

  body.app-shell:not(.mobile-shell-active) .tp-data-table thead th {
    background: #ffffff;
  }

  html[data-theme="dark"] body.app-shell:not(.mobile-shell-active) .tp-data-table thead th {
    background: #162131;
  }

  body.app-shell:not(.mobile-shell-active) .card-grid,
  body.app-shell:not(.mobile-shell-active) .stats-grid,
  body.app-shell:not(.mobile-shell-active) .dashboard-grid,
  body.app-shell:not(.mobile-shell-active) .summary-grid {
    gap: 14px;
  }

  body.app-shell:not(.mobile-shell-active) .section-head {
    margin-bottom: 10px;
  }
}

.login-shell {
  min-height: calc(100vh - 48px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.login-shell.pro {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: var(--panel-strong);
}
.login-visual {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 640px;
}
.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,16,30,.74), rgba(22,132,213,.58), rgba(58,181,74,.34));
}
.login-visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: space-between;
  gap: 16px;
  color: #fff;
  padding: 34px;
}
.login-visual-content h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.14; }
.login-panel {
  padding: 24px;
  display: grid;
  align-items: center;
}
.auth-card { width: min(560px, 100%); padding: 28px; }
.auth-head.compact { margin-bottom: 18px; }
.auth-head h2 { margin: 0 0 8px; font-size: 1.9rem; }
.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
  color: var(--muted);
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}
.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--panel-strong);
}
.stack-actions { display: grid; gap: 12px; }
.login-hints { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login-hints.multi { flex-wrap: wrap; }

.grid-form { display: grid; gap: 14px; }
.grid-form.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { position: relative; display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.checkbox { display: flex; align-items: center; }
label { color: var(--text-soft); font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(22,132,213,.55);
  box-shadow: 0 0 0 4px rgba(22,132,213,.08);
}
input[readonly] { background: rgba(128,128,128,.08); }

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  transition: .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn.disabled, .btn[aria-disabled="true"] { pointer-events: none; opacity: .62; box-shadow: none; }
.btn.full { width: 100%; }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn.soft {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.12));
  color: var(--primary-strong);
}
.btn.danger {
  background: linear-gradient(135deg, #d85050, #b13232);
  color: #fff;
}
.btn.small { padding: 9px 12px; font-size: .84rem; border-radius: 12px; min-height: 38px; }

.alert, .toast {
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.alert.success, .toast-success { background: rgba(58,181,74,.12); color: #1f7d2c; border-color: rgba(58,181,74,.28); }
.alert.warning, .toast-warning { background: rgba(240,165,58,.12); color: #9a6106; border-color: rgba(240,165,58,.26); }
.alert.danger, .toast-danger { background: rgba(216,80,80,.12); color: #a62d2d; border-color: rgba(216,80,80,.26); }
.alert.info, .toast-info { background: rgba(22,132,213,.12); color: #0d6fb9; border-color: rgba(22,132,213,.26); }
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  max-width: 380px;
  box-shadow: var(--shadow-soft);
}

.card-grid, .stat-grid, .filter-row, .action-row, .section-head, .wizard-steps, .wizard-nav, .contact-actions, .preview-grid {
  display: flex;
  gap: 16px;
}
.card-grid, .stat-grid, .preview-grid { flex-wrap: wrap; }
.card-grid > * { flex: 1 1 280px; }
.card-grid.two > * { flex-basis: calc(50% - 8px); }
.card-grid.three > * { flex-basis: calc(33.333% - 11px); }
.card-grid.four > * { flex-basis: calc(25% - 12px); }
.preview-grid.three > * { flex: 1 1 180px; }

.stat-grid > * { flex: 1 1 180px; }
.stat-grid.four > * { flex-basis: calc(25% - 12px); }
.stat-grid.six > * { flex-basis: calc(16.66% - 14px); }
.stat-card {
  padding: 18px 18px;
  display: grid;
  gap: 8px;
  min-height: 132px;
}
.stat-card.kpi { border-radius: 20px; }
.stat-card.focus {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.12));
}
.stat-card span { color: var(--muted); font-size: .9rem; }
.stat-card strong { font-size: clamp(1.55rem, 2vw, 2.1rem); letter-spacing: -.02em; }
.stat-card small { color: var(--muted); }

.section-head { justify-content: space-between; align-items: flex-start; margin-bottom: 16px; row-gap: 12px; }
.section-head h2, .section-head h3 { margin: 0; }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(247,250,255,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="dark"] .table-wrap { background: rgba(255,255,255,.02); }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-soft);
  color: var(--text-soft);
}
thead th:first-child { border-top-left-radius: 16px; }
thead th:last-child { border-top-right-radius: 16px; }
tbody tr:nth-child(even) td { background: rgba(247,250,255,.62); }
tbody tr:last-child td { border-bottom: 0; }
html[data-theme="dark"] tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.small-table table { min-width: 360px; }
.detail-cell { max-width: 360px; word-break: break-word; }
.inline-form { display: inline; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.badge.success { background: rgba(58,181,74,.12); color: #1f7d2c; }
.badge.warning { background: rgba(240,165,58,.12); color: #9a6106; }
.badge.danger { background: rgba(216,80,80,.12); color: #a62d2d; }
.badge.muted, .badge.info { background: rgba(22,132,213,.12); color: #0d6fb9; }

.list-stack { display: grid; gap: 12px; }
.list-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.list-item.cardish { background: var(--panel-soft); }
.warning-block { border-left: 6px solid var(--warning); }
.warning-item { background: rgba(240,165,58,.09); padding: 14px; border-radius: 14px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.mini-kpi { display: grid; gap: 6px; }
.mini-kpi span { color: var(--muted); }
.mini-kpi strong { font-size: 1.2rem; }

.native-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 230px;
  padding: 18px 4px 8px;
}
.native-chart.compact { min-height: 190px; }
.chart-bar {
  flex: 1;
  min-width: 56px;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
}
.chart-bar button {
  all: unset;
  width: 100%;
  min-height: 30px;
  height: var(--bar-height, 52px);
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, rgba(22,132,213,.95), rgba(58,181,74,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  cursor: pointer;
  transition: .2s ease;
}
.chart-bar button:hover { transform: scaleY(1.02); opacity: .95; }
.chart-bar.active button { box-shadow: 0 0 0 4px rgba(213,223,36,.22); }
.chart-label, .chart-value {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  font-size: .78rem;
}
.chart-label {
  bottom: -44px;
  color: var(--muted);
  line-height: 1.3;
}
.chart-value {
  bottom: calc(var(--bar-height, 52px) + 8px);
  color: var(--text);
  font-weight: 700;
}
.chart-card { padding: 20px; overflow: hidden; }
.coverage-card { display: grid; align-content: start; }
.active-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; min-height: 8px; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.filter-pill button {
  all: unset;
  cursor: pointer;
  font-weight: 700;
  color: var(--danger);
}

.progress-donut {
  --value: 0;
  width: 170px;
  height: 170px;
  margin: 12px auto 16px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--value) * 1%), rgba(58,181,74,.9) calc(var(--value) * 1%), rgba(22,132,213,.12) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.progress-donut.large { width: 210px; height: 210px; }
.progress-donut::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--panel-strong);
}
.progress-donut span {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
}

.filter-row { flex-wrap: wrap; align-items: center; }
.filter-row > * { flex: 1 1 220px; }
.map-canvas {
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,132,213,.08), rgba(58,181,74,.06));
}

.wizard-steps { margin-bottom: 20px; flex-wrap: wrap; }
.step {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 999px;
}
.step.active { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; border-color: transparent; }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; }
.wizard-nav { justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
.worker-entry-card {
  background: linear-gradient(180deg, rgba(22,132,213,.06), rgba(58,181,74,.05));
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.review-grid { display: grid; gap: 12px; }
.review-box { min-height: 180px; }

.preview-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.branding-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-soft);
}
.branding-preview span {
  display: block;
  padding: 10px 12px;
  font-size: .84rem;
  color: var(--muted);
}
.branding-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.about-page .cloud-card, .form-page .cloud-card { padding: 22px; }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 24, .36);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 80;
}
.loading-overlay.hidden { display: none; }
.loading-card {
  width: min(420px, calc(100vw - 48px));
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
html[data-theme="dark"] .loading-card { background: rgba(18,29,44,.96); }
.loading-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(22,132,213,.12);
  overflow: hidden;
}
.loading-bar span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--green));
  animation: progressSlide 1.2s linear infinite;
}
@keyframes progressSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

.version-chip {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: .72rem;
  color: var(--muted);
  opacity: .9;
  z-index: 20;
}

.installer-shell { display: grid; place-items: center; padding: 24px; }
.installer-card { width: min(1080px, 100%); }
.installer-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 20px; }
.install-steps { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.install-step {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.requirement-list { display: grid; gap: 12px; }
.requirement-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.requirement-item strong { display: block; }

@media (max-width: 1180px) {
  .card-grid.four > *, .card-grid.three > * { flex-basis: calc(50% - 8px); }
  .stat-grid.six > * { flex-basis: calc(33.333% - 12px); }
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close, .menu-toggle { display: grid; }
  .main-content { margin-left: 0; }
  .landing-hero, .about-hero, .login-shell.pro, .installer-grid { grid-template-columns: 1fr; }
  .preview-grid.three { grid-template-columns: 1fr; }
  .public-nav, .topbar, .dashboard-intro, .contact-card { flex-direction: column; align-items: stretch; }
  .topbar-actions { justify-content: space-between; }
  .grid-form.two-col { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (max-width: 760px) {
  .public-page-wrap, .main-content { padding: 16px; }
  .landing-copy h1, .login-visual-content h1 { font-size: 1.9rem; }
  .landing-metrics { grid-template-columns: 1fr; }
  .stat-grid.four > *, .stat-grid.six > *, .card-grid.two > *, .card-grid.three > *, .card-grid.four > * { flex-basis: 100%; }
  .metric-tile.wide { grid-column: auto; }
  .auth-card, .dashboard-intro, .landing-hero, .about-hero, .cloud-card, .panel-card, .topbar { padding: 18px; }
  .native-chart { gap: 8px; }
  .chart-label { font-size: .7rem; }
  .login-visual { min-height: 300px; }
  .progress-donut.large { width: 180px; height: 180px; }
}

/* Production installer refinements */
.option-card input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 0 6px;
  accent-color: var(--primary);
}
.option-card p { margin: 6px 0 0; }
.login-panel { display: grid; align-items: center; padding: 28px; background: linear-gradient(180deg, rgba(247,250,255,.86), rgba(255,255,255,.96)); }
html[data-theme="dark"] .login-panel { background: linear-gradient(180deg, rgba(18,29,44,.86), rgba(21,34,53,.96)); }
.dashboard-filter-table tbody tr { transition: opacity .18s ease; }
#dashboardFilterState:empty { display: none; }
#dashboardFilterState { align-items: center; }
.requirement-item .badge { flex: 0 0 auto; }
@media (max-width: 760px) {
  .login-panel { padding: 0; background: transparent; }
}

/* User management refinement - Script by ZE153260_Zefriansyah */
.user-page-grid {
  align-items: start;
}
.user-form-panel,
.user-table-panel {
  overflow: hidden;
}
.compact-head {
  align-items: flex-start;
  gap: 14px;
}
.user-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.field-span-6 { grid-column: span 6; }
.field-span-12 { grid-column: 1 / -1; }
.form-actions-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.user-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.user-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}
.user-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-soft);
  color: var(--text-soft);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.user-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.user-table tbody tr:hover {
  background: rgba(22,132,213,.03);
}
.user-table tbody tr:last-child td {
  border-bottom: 0;
}
.stack-lines {
  display: grid;
  gap: 4px;
}
.stack-lines.compact {
  gap: 2px;
}
.table-user-name strong {
  font-size: .98rem;
}
.table-user-name span,
.stack-lines span {
  color: var(--muted);
  font-size: .9rem;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22,132,213,.10);
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
}
.col-actions {
  width: 230px;
}
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.compact-actions .btn,
.compact-actions form {
  margin: 0;
}
.user-form-panel .btn.primary {
  min-width: 160px;
}
@media (max-width: 1180px) {
  .user-page-grid {
    grid-template-columns: 1fr;
  }
  .sticky-card {
    position: static;
  }
}
@media (max-width: 760px) {
  .user-form-grid {
    grid-template-columns: 1fr;
  }
  .field-span-6,
  .field-span-12 {
    grid-column: 1 / -1;
  }
  .compact-head {
    flex-direction: column;
  }
  .form-actions-row {
    justify-content: stretch;
  }
  .form-actions-row .btn {
    width: 100%;
  }
}

/* Donation premium simplification patch v2.8.0 */
.donx-shell {
  display: grid;
  gap: 18px;
}
.donx-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.donx-header h3,
.donx-chart-card h4,
.donx-shell h3 {
  margin: 0;
  font-size: 1.18rem;
}
.donx-header-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22,132,213,.10), rgba(58,181,74,.08));
  border: 1px solid rgba(22,132,213,.14);
  min-width: 220px;
}
.donx-header-icon,
.donx-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(22,132,213,.08);
}
.donx-header-icon svg,
.donx-stat-icon svg,
.donx-pill svg,
.donx-search svg,
.donx-icon-btn svg {
  width: 18px;
  height: 18px;
}
.donx-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.donx-stat {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,249,255,.82));
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.donx-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.09);
}
.donx-stat-value {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.1;
}
.donx-stat-label {
  margin-top: 4px;
  font-weight: 700;
}
.donx-stat small,
.donx-header-badge small { color: var(--muted); }
.donx-stat.tone-blue { border-color: rgba(22,132,213,.16); }
.donx-stat.tone-amber { border-color: rgba(240,165,58,.18); }
.donx-stat.tone-green { border-color: rgba(58,181,74,.18); }
.donx-stat.tone-purple { border-color: rgba(109,88,255,.16); }
.donx-stat.tone-slate { border-color: rgba(100,116,139,.18); }
.donx-grid {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 16px;
}
.donx-chart-card,
.donx-table-card,
.donx-create {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(247,250,255,.78));
  padding: 18px;
}
.section-head.compact {
  margin-bottom: 14px;
}
.section-head.compact h3,
.section-head.compact h4 {
  margin: 0;
}
.donx-progress {
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  display: flex;
}
.donx-progress span { display: block; height: 100%; }
.donx-progress-paid {
  background: linear-gradient(90deg, rgba(58,181,74,.98), rgba(91,212,114,.96));
}
.donx-progress-unpaid {
  background: linear-gradient(90deg, rgba(240,165,58,.96), rgba(251,191,36,.96));
}
.donx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: .92rem;
}
.donx-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.donx-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.donx-legend .is-paid { background: var(--green); }
.donx-legend .is-unpaid { background: var(--warning); }
.donx-legend .is-priority { background: var(--danger); }
.donx-bars {
  display: grid;
  gap: 12px;
}
.donx-bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 1.4fr 40px;
  gap: 10px;
  align-items: center;
}
.donx-bar-label {
  font-size: .9rem;
  color: var(--text-soft);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.donx-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.donx-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(22,132,213,.98), rgba(58,181,74,.9));
}
.donx-toolbar {
  display: grid;
  gap: 14px;
}
.donx-view-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.donx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255,255,255,.75);
  transition: .18s ease;
}
.donx-pill.active,
.donx-pill:hover {
  color: var(--text);
  border-color: rgba(22,132,213,.2);
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.08));
}
.donx-toolbar-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.donx-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
}
.donx-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
}
.donx-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
}
.donx-table-wrap table {
  min-width: 920px;
}
.donx-primary-cell {
  display: grid;
  gap: 4px;
}
.donx-primary-cell strong {
  font-size: .95rem;
}
.donx-primary-cell small {
  color: var(--muted);
}
.donx-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.donx-sort-link span {
  color: var(--muted);
  font-size: .82rem;
}
.donx-sort-link.active {
  color: var(--primary);
}
.donx-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.donx-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,.84);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
button.donx-icon-btn {
  padding: 0;
}
.donx-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(22,132,213,.24);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}
.donx-icon-btn.tone-whatsapp { color: #0f9d58; }
.donx-icon-btn.tone-success { color: #1f9d55; }
.donx-icon-btn.tone-warning { color: #d97706; }
html[data-theme="dark"] .donx-stat,
html[data-theme="dark"] .donx-chart-card,
html[data-theme="dark"] .donx-table-card,
html[data-theme="dark"] .donx-create,
html[data-theme="dark"] .donx-pill,
html[data-theme="dark"] .donx-search,
html[data-theme="dark"] .donx-icon-btn,
html[data-theme="dark"] .donx-header-badge {
  background: rgba(18, 29, 44, 0.88);
}
html[data-theme="dark"] .donx-header-icon,
html[data-theme="dark"] .donx-stat-icon {
  background: rgba(255,255,255,.06);
}
@media (max-width: 1080px) {
  .donx-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .donx-header,
  .donx-toolbar-form {
    flex-direction: column;
    align-items: stretch;
  }
  .donx-view-switch {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .donx-bar-row {
    grid-template-columns: 1fr;
  }
}


/* UI Stabilization Patch 2.9.0 by ZE153260_ZEF */
.tpui-svg,
.tpui-inline-icon,
.menu-icon svg,
.topbar-icon-btn svg,
.tpui-action-icon svg,
.tpui-notification-item svg,
.donx-icon-btn svg,
.donx-header-icon svg,
.donx-stat-icon svg,
.donx-pill svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}
.tpui-inline-icon { display: inline-flex; align-items: center; justify-content: center; }
.menu-link { position: relative; }
.menu-label { flex: 1 1 auto; min-width: 0; }
.menu-badge,
.topbar-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(239, 68, 68, .22);
}
.menu-badge { margin-left: auto; }
.topbar-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  position: relative;
  transition: .2s ease;
}
.topbar-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(22,132,213,.26);
}
.topbar-icon-btn.has-badge .topbar-badge {
  position: absolute;
  top: -5px;
  right: -5px;
}
.tpui-bell-wrap { position: relative; }
.tpui-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: 72vh;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px) saturate(140%);
  z-index: 90;
}
html[data-theme="dark"] .tpui-notification-panel { background: rgba(18,29,44,.96); }
.tpui-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.tpui-notification-head strong { display: block; }
.tpui-notification-head small { color: var(--muted); }
.tpui-notification-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 0;
}
.tpui-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: .82rem;
}
.tpui-notification-body {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
  max-height: calc(72vh - 96px);
  overflow: auto;
}
.tpui-notification-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.tpui-notification-item.is-unread { border-color: rgba(22,132,213,.22); }
.tpui-notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(22,132,213,.12);
}
.tpui-notification-meta { color: var(--muted); font-size: .78rem; }
.tpui-notification-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}
.loading-card.premium {
  min-width: min(420px, calc(100vw - 42px));
  padding: 26px 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 30px 60px rgba(15, 23, 42, .22);
}
html[data-theme="dark"] .loading-card.premium { background: rgba(18,29,44,.96); }
.loading-orbit {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  position: relative;
}
.loading-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  animation: tpui-spin 1.2s linear infinite;
}
.loading-orbit span:nth-child(2) { inset: 8px; border-top-color: var(--green); animation-duration: 1.8s; }
.loading-orbit span:nth-child(3) { inset: 16px; border-top-color: var(--warning); animation-duration: 2.4s; }
.loading-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.loading-steps i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(22,132,213,.28);
  animation: tpui-pulse 1s infinite ease-in-out;
}
.loading-steps i:nth-child(2) { animation-delay: .16s; }
.loading-steps i:nth-child(3) { animation-delay: .32s; }
@keyframes tpui-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tpui-pulse { 0%,100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(10,18,29,.94);
  color: #fff;
  font-size: .74rem;
  white-space: nowrap;
  z-index: 70;
  pointer-events: none;
}
.col-actions,
.compact-actions { white-space: nowrap; }
.compact-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tpui-action-btn,
.compact-actions .btn,
.col-actions .btn,
.inline-form .btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
}
.tpui-action-btn {
  display: inline-grid;
  place-items: center;
}
.tpui-action-btn .tpui-action-icon,
.compact-actions .btn .tpui-action-icon,
.col-actions .btn .tpui-action-icon,
.inline-form .btn .tpui-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tpui-action-btn .tpui-action-text,
.compact-actions .btn .tpui-action-text,
.col-actions .btn .tpui-action-text,
.inline-form .btn .tpui-action-text { display: none; }
.tpui-button-icon,
.tpui-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.tpui-button-label,
.tpui-action-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpui-auto-iconize { min-width: 0; }
.tpui-auto-iconize .tpui-button-label { white-space: nowrap; }
.table-wrap,
.donx-table-wrap {
  overflow: auto;
}
.tpui-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: .84rem;
}
.tpui-table-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tpui-table-pager button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
}
.tpui-table-pager button.active { background: linear-gradient(135deg, rgba(22,132,213,.14), rgba(58,181,74,.12)); border-color: rgba(22,132,213,.22); }
.tpui-sortable {
  cursor: pointer;
  user-select: none;
}
.tpui-sortable::after {
  content: '↕';
  margin-left: 6px;
  color: var(--muted);
  font-size: .74rem;
}
.tpui-sortable.asc::after { content: '↑'; color: var(--primary); }
.tpui-sortable.desc::after { content: '↓'; color: var(--primary); }
.tpui-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tpui-status-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  max-width: 320px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10,18,29,.96);
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: .18s ease;
  z-index: 40;
}
.tpui-status-wrap:hover .tpui-status-pop,
.tpui-status-wrap:focus-within .tpui-status-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.tpui-map-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.tpui-map-panel,
.tpui-drawer-card {
  min-height: 240px;
}
.tpui-map-drawer {
  display: grid;
  gap: 16px;
}
.tpui-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tpui-map-filters > * { flex: 1 1 180px; }
.tpui-map-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}
.tpui-map-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  cursor: pointer;
}
.tpui-map-item.active { border-color: rgba(22,132,213,.22); background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.08)); }
.tpui-map-item h4 { margin: 0 0 6px; font-size: .98rem; }
.tpui-map-item p { margin: 0; color: var(--muted); font-size: .85rem; }
.tpui-location-search {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.tpui-location-results {
  display: grid;
  gap: 8px;
}
.tpui-location-results button {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
}
.tpui-location-map {
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tpui-helper-text { color: var(--muted); font-size: .84rem; }
.tpui-worker-details summary {
  cursor: pointer;
  list-style: none;
}
.tpui-worker-details summary::-webkit-details-marker { display: none; }
@media (max-width: 1080px) {
  .tpui-map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-actions { justify-content: space-between; }
  .profile-mini span { display: none; }
}
@media (max-width: 720px) {
  .tpui-notification-panel { right: -8px; }
  .tpui-table-tools { flex-direction: column; align-items: flex-start; }
}


/* Final Hotfix 2.9.1 by ZE153260_ZEF */
.cloud-card, .panel-card, .topbar { overflow: visible; }
.topbar, .topbar-actions, .tpui-bell-wrap { position: relative; z-index: 20; }
.main-content { overflow: visible; }
.tpui-notification-panel { z-index: 9999; }
.topbar-left, .topbar-left > div, .profile-mini, .menu-link, .user-card-title-wrap, .approval-card, .approval-card-head, .approval-meta-grid strong, .table-wrap td, .table-wrap th { min-width: 0; }
.topbar-left h1, .topbar-subtitle, .menu-label, .profile-mini strong, .profile-mini small, .approval-card strong, .user-card-title-wrap strong, .user-card-title-wrap span, .approval-meta-grid strong { overflow-wrap: anywhere; word-break: break-word; }
.icon-svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.icon-svg.tiny { width: 14px; height: 14px; }
.summary-chip-row, .wrap-row { display: flex; gap: 10px; flex-wrap: wrap; }
.summary-chip, .settings-chip, .quick-chip { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background: var(--panel-soft); border:1px solid var(--line); color: var(--text-soft); }
.users-admin-grid, .settings-grid-modern { display:grid; grid-template-columns:minmax(320px, 430px) minmax(0, 1fr); gap:20px; align-items:start; }
.user-form-grid-modern, .settings-modern-form { display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:14px; }
.user-card-grid-modern { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }
.user-card-modern, .approval-card, .pricing-preview-card, .worker-select-summary, .payment-code-box, .tracking-card, .approval-hero-card { background: var(--panel-soft); border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow: var(--shadow-soft); }
.user-card-modern.is-suspended { opacity:.8; }
.user-card-top, .approval-card-head, .pricing-preview-head, .tracking-head, .section-head.split-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.user-card-avatar, .impersonation-icon { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg, var(--primary), var(--green)); }
.user-card-title-wrap { display:grid; gap:4px; flex:1; }
.user-card-meta-grid, .approval-meta-grid, .pricing-meta-grid, .tracking-summary-grid, .worker-meta-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.user-card-meta-grid span, .approval-meta-grid span, .pricing-meta-grid span, .tracking-summary-item span { display:block; font-size:.78rem; color:var(--muted); margin-bottom:4px; }
.user-card-actions, .approval-actions, .hero-actions.compact, .action-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.input-with-icon { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:14px; padding:0 12px; background: var(--panel-strong); }
.input-with-icon input { border:none; background:transparent; padding-left:0; }
.input-with-icon span { color: var(--muted); display:inline-flex; }
.input-with-icon input:focus { outline:none; }
.pricing-preview-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.pricing-amount-stack { display:grid; gap:4px; margin:12px 0; }
.price-before { color: var(--muted); text-decoration: line-through; }
.price-after { font-size:1.2rem; }
.branding-preview-grid-modern { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.branding-preview.modern { border:1px solid var(--line); border-radius:18px; padding:14px; background:var(--panel-soft); display:grid; gap:10px; }
.branding-preview.modern img { width:100%; height:180px; object-fit:cover; border-radius:14px; }
.approval-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:start; }
.approval-column { min-height: 320px; }
.approval-list { display:grid; gap:14px; }
.approval-actions .btn { min-width: 38px; }
.impersonation-banner { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border:1px solid rgba(22,132,213,.18); border-radius:18px; background: linear-gradient(135deg, rgba(22,132,213,.08), rgba(58,181,74,.08)); }
.impersonation-copy { display:flex; gap:14px; align-items:center; }
.impersonation-copy p { margin:4px 0 0; color: var(--muted); }
.worker-select-summary, .pricing-callout-box, .info-callout.compact, .worker-status-alert, .payment-callout, .admin-workflow-panel, .timeline-block, .donation-request-card .cloud-card, .donation-request-card .panel-card { background: var(--panel-soft); }
.dashboard-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; }
.workflow-admin-grid, .card-grid.two.workflow-admin-grid { align-items:start; }
.tracking-card-stack, .timeline-list { display:grid; gap:14px; }
.timeline-item { display:grid; grid-template-columns:18px 1fr; gap:12px; }
.timeline-marker { width:18px; height:18px; border-radius:50%; background:linear-gradient(135deg, rgba(22,132,213,.24), rgba(58,181,74,.24)); border:1px solid rgba(22,132,213,.3); margin-top:3px; }
.payment-code-box { display:grid; gap:8px; }
.payment-code-box code { font-size:1.05rem; padding:10px 12px; background:#0f172a; color:#fff; border-radius:12px; }
.progress-step-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.progress-step-card { border:1px solid var(--line); border-radius:16px; padding:14px; background:var(--panel-strong); }
.progress-step-card .step-dot { width:12px; height:12px; border-radius:999px; background:#d9e4f0; margin-bottom:10px; }
.progress-step-card.is-done .step-dot { background:var(--green); }
.progress-step-card.is-active .step-dot { background:var(--primary); box-shadow:0 0 0 6px rgba(22,132,213,.12); }
.modern-donation-form .field.full { grid-column:1/-1; }
.tpui-action-btn, .inline-form .btn, .compact-actions .btn, .col-actions .btn, .approval-actions .btn, .user-card-actions .btn { min-width:38px; width:38px; height:38px; padding:0; display:inline-grid; place-items:center; border-radius:12px; }
.tpui-action-btn svg, .approval-actions .btn svg, .user-card-actions .btn svg { width:16px; height:16px; }
.donx-actions, .approval-actions, .user-card-actions { justify-content:flex-end; }
@media (max-width: 1280px) {
  .dashboard-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .approval-board { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .users-admin-grid, .settings-grid-modern, .approval-board, .branding-preview-grid-modern, .dashboard-stats, .progress-step-grid, .user-card-meta-grid, .approval-meta-grid, .pricing-meta-grid, .tracking-summary-grid { grid-template-columns: 1fr; }
  .topbar { overflow: visible; }
  .topbar-actions { justify-content:flex-start; }
  .tpui-notification-panel { right: 0; left: auto; width: min(360px, calc(100vw - 28px)); }
}
@media (max-width: 640px) {
  .user-form-grid-modern, .settings-modern-form { grid-template-columns: 1fr; }
  .field-span-4, .field-span-6, .field-span-12 { grid-column: auto !important; }
  .impersonation-banner, .section-head.split-head, .user-card-top, .approval-card-head { flex-direction: column; align-items: stretch; }
}

/* v2.9.2 visual hotfix */
.topbar, .topbar-actions, .tpui-bell-wrap, .cloud-card, .panel-card { overflow: visible; }
[data-tooltip]::after {
  bottom: calc(100% + 10px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  z-index: 10050;
  pointer-events: none;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after { transform: translateX(-50%) translateY(0); }
.tpui-notification-panel {
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 23, 48, .26);
}
.tpui-notification-body { max-height: min(52vh, 420px); overflow: auto; }
.tpui-notification-item { text-decoration: none; color: inherit; }
.tpui-notification-item strong { display: block; margin-bottom: 4px; }
.tpui-notification-item p { margin: 0 0 4px; color: var(--text); }
.payment-bank-brand {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .04em;
  margin-right: 10px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.payment-bank-brand b { font-weight: 800; }
.payment-bank-brand-blue { background: linear-gradient(135deg,#0e74cf,#1f95ff); }
.payment-bank-brand-red { background: linear-gradient(135deg,#d33842,#ff6a57); }
.payment-bank-brand-green { background: linear-gradient(135deg,#21935d,#42c576); }
.payment-bank-brand-gold { background: linear-gradient(135deg,#c48d16,#efb24c); }
.payment-bank-brand-sky { background: linear-gradient(135deg,#007bbd,#5cc9ff); }
.payment-bank-brand-violet { background: linear-gradient(135deg,#5d52cc,#8e79ff); }
.payment-bank-brand-emerald { background: linear-gradient(135deg,#0d9070,#2ed39c); }
.payment-accordion-item summary { display: flex; align-items: center; gap: 8px; }
.users-panel-switcher .btn.active {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.10));
  border-color: rgba(22,132,213,.22);
}
.user-form-grid-modern small.muted { display: block; margin-top: 6px; }
.user-card-meta-grid strong { word-break: break-word; font-size: 1rem; line-height: 1.35; }
.user-card-title-wrap strong { word-break: break-word; }
.user-card-actions { align-items: center; }
.user-card-modern { min-height: 100%; }
.compact-actions { gap: 8px; }
.payment-history-table-wrap td .compact-actions,
.table-wrap td .compact-actions { justify-content: flex-start; }
.approval-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: start; }
.approval-list { display: grid; gap: 14px; }
.approval-card {
  padding: 16px; border-radius: 18px; border: 1px solid rgba(22,132,213,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,253,.98));
}
.approval-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.approval-card-head strong { font-size: 1rem; line-height: 1.35; }
.approval-meta-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.approval-meta-grid span { display:block; font-size:.78rem; color:var(--muted); margin-bottom:4px; }
.approval-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.approval-actions .tpui-action-btn { width:40px; height:40px; }
.payment-focus-card .card-grid { align-items: stretch; }
@media (max-width: 1180px) {
  .approval-board { grid-template-columns: 1fr; }
}

body.app-shell .section-head > div > p.muted.small,
body.app-shell .section-head > div > p.muted,
body.app-shell .tp-modal-head > div > p.muted.small,
body.app-shell .topbar-subtitle {
  display: none;
}

.payment-confirm-page-shell .payment-highlight-card:first-child p.muted.small:last-of-type,
.payment-confirm-page-shell .payment-highlight-card.soft-accent p.muted.small:last-of-type {
  display: none;
}

.progress-step-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.territory-district-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.territory-district-option {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.territory-district-option input {
  margin: 0 0 2px;
}

.territory-district-option small {
  color: var(--muted);
  line-height: 1.45;
}

.territory-district-option.is-conflict {
  border-color: rgba(216, 80, 80, 0.24);
  background: rgba(216, 80, 80, 0.06);
}

.territory-wa-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
}

.tp-donor-payment-popup {
  position: fixed;
  inset: 0;
  z-index: 10055;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.tp-donor-payment-popup.hidden {
  display: none !important;
}

.tp-donor-payment-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 28, .44);
  backdrop-filter: blur(8px);
}

.tp-donor-payment-popup__card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  overflow: auto;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.tp-donor-payment-popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tp-donor-payment-popup__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
}

.tp-donor-payment-popup__list {
  display: grid;
  gap: 10px;
}

.tp-donor-payment-popup__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.96));
}

.tp-donor-payment-popup__copy {
  display: grid;
  gap: 4px;
}

.tp-donor-payment-popup__copy span,
.tp-donor-payment-popup__copy small {
  color: var(--muted);
}

.payment-history-table-wrap .badge.warning,
.compact-actions .badge.warning,
.compact-actions .badge.success {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 980px) {
  .progress-step-grid {
    grid-template-columns: 1fr;
  }

  .territory-district-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .users-admin-grid { grid-template-columns: 1fr; }
}


/* v2.9.3 modal, spacing, tooltip, layout hotfix */
.users-admin-grid.users-grid-list { grid-template-columns: minmax(0, 1fr); }
.users-admin-grid.users-grid-list .user-list-panel-modern { grid-column: 1 / -1; }
.users-admin-grid.users-grid-form { grid-template-columns: minmax(0, 1fr); }
.users-admin-grid.users-grid-form .user-form-panel-modern { grid-column: 1 / -1; max-width: 980px; }
.user-card-grid-modern { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.user-card-modern, .approval-card { overflow: visible; }
.user-card-actions, .approval-actions, .compact-actions, .action-row { overflow: visible; }
.table-wrap { margin-top: 14px; overflow: auto; }
.table-wrap table { min-width: 100%; }
.table-wrap th, .table-wrap td { padding: 16px 16px; line-height: 1.45; }
.table-wrap tbody tr:hover td { background: rgba(22,132,213,.035); }
.panel-card > .table-wrap:first-of-type { margin-top: 18px; }
.payment-history-table-wrap table { min-width: 980px; }
.payment-history-table-wrap .compact-actions { flex-wrap: nowrap; }
.payment-history-table-wrap .tpui-action-btn { flex: 0 0 auto; }
body.modal-open { overflow: hidden; }
.tp-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10040; }
.tp-modal.hidden { display: none !important; }
.tp-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 18, 33, .44); backdrop-filter: blur(8px); }
.tp-modal-card { position: relative; z-index: 1; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 28px 68px rgba(10, 20, 34, .28); padding: 22px; }
.tp-modal-lg { width: min(1020px, calc(100vw - 32px)); }
.tp-modal-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tp-modal-close { width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-soft); font-size: 22px; line-height: 1; }
.payment-method-hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.payment-highlight-card { min-height: 100%; }
.payment-stepper { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-stepper span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-soft); font-size: .9rem; }
.payment-stepper .done { border-color: rgba(58,181,74,.24); color: var(--green); }
.payment-stepper .active { border-color: rgba(22,132,213,.24); color: var(--primary); }
.payment-method-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-accordion { display: grid; gap: 18px; }
.payment-accordion-group { border: 1px solid var(--line); border-radius: 18px; background: var(--panel-soft); padding: 14px; }
.payment-accordion-group-title { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.payment-accordion-item { border-top: 1px solid rgba(148,163,184,.18); padding-top: 10px; margin-top: 10px; }
.payment-accordion-item:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.payment-accordion-item summary { list-style: none; cursor: pointer; font-weight: 700; }
.payment-accordion-item summary::-webkit-details-marker { display: none; }
.payment-method-steps { margin: 12px 0 0 0; padding-left: 18px; display: grid; gap: 8px; }
.qris-instruction-box { border: 1px solid rgba(22,132,213,.14); }
.payment-confirm-summary { margin-bottom: 6px; }
.payment-success-modal .payment-success-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-success-modal .payment-success-steps span { display: inline-flex; padding: 10px 12px; border-radius: 999px; background: rgba(58,181,74,.12); color: var(--green); font-weight: 700; }
.tp-tooltip-portal { position: fixed; left: 0; top: 0; z-index: 10060; max-width: min(240px, calc(100vw - 16px)); padding: 8px 10px; border-radius: 10px; background: rgba(11, 19, 33, .96); color: #fff; font-size: .78rem; line-height: 1.35; box-shadow: 0 12px 28px rgba(0,0,0,.22); pointer-events: none; }
[data-tooltip]::after, [data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { display: none !important; content: none !important; }
@media (max-width: 980px) {
  .payment-method-hero-grid { grid-template-columns: 1fr; }
}

/* v2.9.4 layout, table, tooltip, payment confirm hotfix */
.users-modern-shell,
.user-form-shell,
.user-table-shell,
.worker-form-shell,
.worker-table-shell,
.payment-confirm-page-shell,
.payment-history-hero,
.payment-focus-card,
.donation-request-card {
  margin-left: 0;
  margin-right: 0;
}
.users-modern-shell .section-head,
.user-form-shell .section-head,
.user-table-shell .section-head,
.worker-form-shell .section-head,
.worker-table-shell .section-head,
.payment-confirm-page-shell .section-head,
.payment-history-hero .section-head,
.payment-focus-card .section-head {
  gap: 18px;
}
.user-form-shell,
.user-table-shell,
.worker-form-shell,
.worker-table-shell,
.payment-confirm-page-shell {
  padding: 26px;
}
.tp-data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.tp-data-table thead th {
  position: sticky;
  top: 0;
  background: var(--panel-strong);
  z-index: 1;
}
.tp-data-table th,
.tp-data-table td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.tp-data-table tbody tr:last-child td { border-bottom: 0; }
.tp-data-table tbody tr:hover td { background: rgba(22,132,213,.035); }
.table-cell-stack { display: grid; gap: 4px; min-width: 0; }
.table-cell-stack strong,
.table-cell-stack small,
.tp-data-table td,
.tp-data-table th { overflow-wrap: anywhere; }
.text-center { text-align: center; }
.table-actions-center { justify-content: center; }
.table-wrap {
  margin-top: 16px;
  padding: 4px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.54), rgba(248,251,255,.82));
  border: 1px solid rgba(148,163,184,.14);
}
html[data-theme="dark"] .table-wrap { background: rgba(15,23,42,.38); }
.table-wrap table { background: transparent; }
.user-table-shell .table-wrap,
.worker-table-shell .table-wrap,
.payment-history-table-wrap,
.payment-confirm-page-shell .table-wrap { overflow-x: auto; }
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  max-width: 220px;
  min-width: 94px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  font-size: .78rem;
  padding: 8px 11px;
  box-shadow: 0 14px 34px rgba(6, 23, 48, .22);
}
.tpui-notification-panel {
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  width: min(390px, calc(100vw - 24px));
}
.tpui-notification-head .btn { white-space: nowrap; }
.tpui-notification-empty { min-height: 120px; display: grid; place-items: center; text-align: center; }
.user-form-grid-modern { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.user-form-grid-modern .field { min-width: 0; }
.user-table-shell .badge,
.worker-table-shell .badge { white-space: nowrap; }
.worker-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payment-confirm-page-shell form { max-width: 920px; }
.payment-confirm-page-shell .field.full { grid-column: 1 / -1; }
.payment-confirm-page-shell .payment-method-hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payment-method-hero-grid .cardish { min-height: 100%; }
@media (max-width: 1100px) {
  .payment-confirm-page-shell .payment-method-hero-grid,
  .payment-method-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .worker-form-grid,
  .user-form-grid-modern { grid-template-columns: 1fr; }
  .field-span-4,
  .field-span-6,
  .field-span-12 { grid-column: auto !important; }
  .tpui-notification-panel { width: min(360px, calc(100vw - 22px)); }
}

/* v2.9.5 users analytics */
.icon-svg,.tpui-svg{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:0 0 18px}
.tpui-material-icon.material-symbols-rounded{font-family:"Material Symbols Rounded";font-weight:400;font-style:normal;font-size:18px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}
.tpui-material-icon.tiny{font-size:16px}
.menu-icon .tpui-material-icon,.topbar-icon-btn .tpui-material-icon,.home-stat-icon .tpui-material-icon,.home-donor-group-icon .tpui-material-icon{font-size:20px}
.tpui-action-btn .tpui-material-icon,.approval-actions .btn .tpui-material-icon,.user-card-actions .btn .tpui-material-icon,.compact-actions .btn .tpui-material-icon,.inline-form .btn .tpui-material-icon{font-size:16px}
.settings-chip .tpui-material-icon,.summary-chip-row .tpui-material-icon,.tpui-mini-pill .tpui-material-icon{font-size:18px}
.users-hero-shell,.users-toolbar-shell,.user-table-shell,.user-form-shell{margin-top:18px}
.users-delta-pill{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:18px;background:rgba(22,132,213,.08);border:1px solid rgba(22,132,213,.12);min-width:180px}
.users-delta-pill.is-down{background:rgba(211,76,76,.08);border-color:rgba(211,76,76,.12)}
.users-delta-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#fff;color:#1684d5;box-shadow:0 8px 18px rgba(11,32,73,.08)}
.users-delta-pill.is-down .users-delta-icon{color:#d34c4c}
.users-delta-pill strong{display:block;font-size:1.05rem;color:#12213d}
.users-delta-pill small{color:#6c7c98}
.users-analytics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.users-analytic-card{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:22px;border:1px solid rgba(16,33,61,.08);background:linear-gradient(180deg,#fff,#f8fbff);text-decoration:none;color:inherit;box-shadow:0 14px 32px rgba(24,55,94,.05);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.users-analytic-card:hover{transform:translateY(-2px);box-shadow:0 20px 38px rgba(24,55,94,.09);border-color:rgba(22,132,213,.22)}
.users-analytic-card.is-active{border-color:#1684d5;background:linear-gradient(180deg,#f9fcff,#eef6ff)}
.users-analytic-icon{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#1c86d9,#39b56a);display:grid;place-items:center;color:#fff;box-shadow:0 12px 28px rgba(22,132,213,.22)}
.users-analytic-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.users-analytic-copy span{font-size:.92rem;color:#58708f;font-weight:600}
.users-analytic-copy strong{font-size:1.65rem;line-height:1;color:#12213d}
.users-analytic-copy small{font-size:.82rem;color:#7b8aa4;white-space:normal}
.users-toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.users-filter-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.users-search-box{position:relative;min-width:320px;max-width:520px;flex:1 1 360px}
.users-search-box input{padding-left:44px!important}
.users-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#7283a0;display:grid;place-items:center}
.table-cell-stack{display:flex;flex-direction:column;gap:4px}
.table-actions-center{justify-content:center}
.tp-data-table th,.tp-data-table td{vertical-align:middle}
@media (max-width: 1180px){.users-analytics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width: 900px){.users-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.users-search-box{min-width:100%;max-width:none;flex-basis:100%}}
@media (max-width: 640px){.users-analytics-grid{grid-template-columns:1fr}.users-delta-pill{width:100%}}

/* v2.10 feature upgrade */
.tpui-location-autocomplete-panel{position:absolute;z-index:25;left:0;right:0;top:calc(100% + 6px);display:grid;gap:4px;padding:8px;border-radius:16px;background:rgba(255,255,255,.98);border:1px solid rgba(18,33,61,.08);box-shadow:0 18px 38px rgba(17,35,62,.12);max-height:260px;overflow:auto}
.tpui-location-autocomplete-panel.hidden{display:none}
.tpui-location-autocomplete-panel[data-state="loading"]{opacity:.92}
.tpui-location-autocomplete-empty{padding:10px 12px;border-radius:12px;background:rgba(12,20,36,.03);color:#6b7a92;font-size:.82rem}
.tpui-location-autocomplete-item small{display:block;font-size:.76rem;color:#6b7a92}
.tpui-location-master-hint{display:block;margin-top:6px;font-size:.76rem;color:#6b7a92}
.tpui-location-autocomplete-item{display:grid;gap:3px;padding:10px 12px;border:none;border-radius:12px;background:transparent;text-align:left;cursor:pointer}
.tpui-location-autocomplete-item:hover,.tpui-location-autocomplete-item:focus-visible{background:rgba(22,132,213,.08);outline:none}
.tpui-location-autocomplete-item strong{font-size:.92rem;color:#12213d}
.tpui-location-autocomplete-item span{font-size:.78rem;color:#6b7a92}
.dashboard-delta{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:700;background:rgba(22,132,213,.08);color:#1c74b8;border:1px solid rgba(22,132,213,.14)}
.dashboard-delta.is-down{background:rgba(211,76,76,.08);color:#c44747;border-color:rgba(211,76,76,.14)}
.dashboard-delta.is-flat{background:rgba(18,33,61,.06);color:#4f617d;border-color:rgba(18,33,61,.10)}
.corporate-leaderboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.corporate-card{position:relative;display:flex;align-items:flex-start;gap:14px;padding:18px;border-radius:24px;border:1px solid rgba(18,33,61,.08);background:linear-gradient(180deg,#fff,#f7fbff);box-shadow:0 18px 40px rgba(18,33,61,.06)}
.corporate-rank{position:absolute;top:12px;right:12px;padding:5px 10px;border-radius:999px;background:rgba(22,132,213,.1);color:#1684d5;font-size:.76rem;font-weight:800}
.corporate-logo-wrap{width:68px;height:68px;flex:0 0 68px;border-radius:20px;overflow:hidden;background:#fff;border:1px solid rgba(18,33,61,.08);display:grid;place-items:center;box-shadow:0 10px 24px rgba(18,33,61,.06)}
.corporate-logo-wrap img{width:100%;height:100%;object-fit:cover}
.corporate-logo-wrap.is-empty span{font-size:1.5rem;font-weight:800;color:#1684d5}
.corporate-copy{display:grid;gap:4px;min-width:0}
.corporate-copy h4{margin:0;font-size:1rem;color:#12213d}
.corporate-copy p,.corporate-copy small{margin:0}
.corporate-copy strong{font-size:1.05rem;color:#12213d}
.public-masjid-qr-shell{display:grid;place-items:center;padding:16px;border-radius:22px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid rgba(18,33,61,.08)}
.public-masjid-qr-shell img{max-width:100%;height:auto;display:block}
.mini-upload-preview{display:grid;place-items:center;padding:14px;border-radius:22px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px dashed rgba(22,132,213,.24);min-height:180px}
.mini-upload-preview img{max-width:100%;max-height:320px;border-radius:18px;display:block;object-fit:cover}
.mini-upload-preview.is-empty{color:#7b8aa4}
.maintenance-page-shell{display:grid;place-items:center;min-height:100vh;padding:28px}
.maintenance-stage{display:grid;grid-template-columns:minmax(280px,420px) minmax(280px,520px);gap:28px;align-items:center;overflow:hidden}
.maintenance-visual{position:relative;min-height:360px;border-radius:28px;background:linear-gradient(180deg,#ebf5ff,#dbeeff 56%,#f8fbff 100%);border:1px solid rgba(22,132,213,.12);overflow:hidden}
.maintenance-sky{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.9),transparent 34%),radial-gradient(circle at 70% 12%,rgba(255,255,255,.82),transparent 28%)}
.maintenance-ground{position:absolute;left:0;right:0;bottom:0;height:88px;background:linear-gradient(180deg,#6cbc7a,#4aa35a)}
.maintenance-mosque{position:absolute;left:50%;bottom:88px;transform:translateX(-50%);width:190px;height:150px}
.maintenance-mosque .dome{position:absolute;left:42px;top:16px;width:106px;height:86px;border-radius:106px 106px 0 0;background:#1684d5;box-shadow:inset 0 -10px 0 rgba(255,255,255,.18)}
.maintenance-mosque .tower{position:absolute;bottom:0;width:28px;height:118px;border-radius:18px 18px 0 0;background:#0f5f9e}
.maintenance-mosque .tower.left{left:16px}.maintenance-mosque .tower.right{right:16px}
.maintenance-mosque .door{position:absolute;left:64px;bottom:0;width:62px;height:82px;border-radius:18px 18px 0 0;background:#0f2442;border:6px solid rgba(255,255,255,.24)}
.maintenance-worker{position:absolute;bottom:86px;width:64px;height:118px;animation:maintenance-bob 2.8s ease-in-out infinite}
.maintenance-worker .head{position:absolute;left:20px;top:8px;width:24px;height:24px;border-radius:50%;background:#f6c08c}
.maintenance-worker .body{position:absolute;left:12px;top:30px;width:40px;height:54px;border-radius:18px;background:#ffb347}
.maintenance-worker .tool{position:absolute;right:0;bottom:6px;width:8px;height:50px;border-radius:8px;background:#5d6d7e;transform:rotate(14deg)}
.maintenance-worker.worker-a{left:28px}.maintenance-worker.worker-b{right:32px;animation-delay:.3s}.maintenance-worker.worker-c{left:120px;bottom:98px;transform:scale(.88);animation-delay:.6s}
.spark{position:absolute;width:10px;height:10px;border-radius:50%;background:#ffd166;box-shadow:0 0 14px rgba(255,209,102,.82);animation:maintenance-spark 1.9s linear infinite}
.spark-a{left:118px;bottom:210px}.spark-b{left:86px;bottom:180px;animation-delay:.55s}.spark-c{right:92px;bottom:188px;animation-delay:1.05s}
.maintenance-copy{display:grid;gap:12px}
.maintenance-copy h1{margin:0;font-size:clamp(2rem,3vw,3rem);line-height:1.05;color:#12213d}
.maintenance-countdown{display:inline-grid;gap:4px;padding:14px 18px;border-radius:18px;background:rgba(22,132,213,.08);border:1px solid rgba(22,132,213,.14);width:max-content;max-width:100%}
.maintenance-countdown span{font-size:1.55rem;font-weight:800;color:#1684d5;letter-spacing:.04em}
.tpui-map-popup .btn{display:inline-flex;margin-top:8px}
@keyframes maintenance-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes maintenance-spark{0%{transform:translateY(0) scale(.6);opacity:0}20%{opacity:1}100%{transform:translateY(-24px) scale(1.05);opacity:0}}
@media (max-width: 900px){.maintenance-stage{grid-template-columns:1fr}.maintenance-visual{min-height:300px}.corporate-leaderboard-grid{grid-template-columns:1fr}.dashboard-delta{width:max-content;max-width:100%}}
.public-share-card{overflow:hidden}
.public-share-preview{padding:16px 18px;border-radius:20px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid rgba(18,33,61,.08)}
.public-share-preview pre{margin:10px 0 0;white-space:pre-wrap;word-break:break-word;font:inherit;line-height:1.7;color:#334866}
.public-share-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.public-share-grid .btn{justify-content:center}


.copy-hint{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(64,120,192,.08);color:#4b6789;font-size:.82rem;font-weight:700}
.copy-field-grid{display:grid;gap:12px}
.copy-field-item{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid rgba(102,132,173,.16);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(245,249,255,.94));box-shadow:0 12px 28px rgba(27,63,112,.06)}
.copy-field-meta{display:grid;gap:4px;min-width:0;flex:1}
.copy-field-meta span{font-size:.8rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#7486a3}
.copy-field-value{font-size:1rem;line-height:1.45;color:#12213d;word-break:break-word}
.btn-copy-field{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:84px;padding:9px 12px;border-radius:999px;border:1px solid rgba(59,112,182,.18);background:#fff;color:#305b95;font-size:.82rem;font-weight:800;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease;box-shadow:0 10px 24px rgba(31,76,138,.08)}
.btn-copy-field:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(31,76,138,.13);background:#f4f8ff}
.btn-copy-field.copied{background:#e9fff2;color:#18794e;border-color:rgba(24,121,78,.22)}
@media (max-width: 720px){
  .copy-field-item{flex-direction:column;align-items:stretch}
  .btn-copy-field{width:100%}
  .copy-hint{width:100%;justify-content:center}
}


/* v2.10.8 settings layout and table presentation refresh */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  accent-color: var(--primary);
  box-shadow: none;
  display: inline-block;
  vertical-align: middle;
}
input[type="radio"] { border-radius: 999px; }
label > input[type="checkbox"]:first-child,
label > input[type="radio"]:first-child {
  margin-right: 10px;
}
.field-toggle,
.field-toggle label,
label.inline-check,
label.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
label.toggle-label,
.field-toggle label {
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}
.section-head.split-head > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.section-head.split-head > :last-child {
  flex: 0 0 auto;
}
.settings-grid-modern {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.settings-card-modern {
  min-width: 0;
}
.settings-card-modern .section-head {
  margin-bottom: 20px;
}
.settings-card-modern .eyebrow {
  margin-bottom: 6px;
}
.settings-card-modern h3 {
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.32rem);
  line-height: 1.3;
}
.settings-card-modern .muted.small {
  display: block;
  line-height: 1.55;
  max-width: 72ch;
}
.settings-modern-form {
  gap: 16px;
}
.settings-modern-form .field {
  align-content: start;
}
.settings-modern-form input,
.settings-modern-form select,
.settings-modern-form textarea,
.settings-modern-form .input-with-icon {
  min-height: 48px;
}
.settings-modern-form textarea {
  min-height: 112px;
  resize: vertical;
}
.settings-modern-form .input-with-icon input {
  min-height: 0;
}
.settings-modern-form .form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 8px;
  margin-top: 2px;
}
.settings-modern-form .form-actions-row .btn {
  min-height: 46px;
  padding-inline: 18px;
  white-space: nowrap;
}
.settings-modern-form .info-callout.compact {
  padding: 16px 18px;
  border-radius: 16px;
  gap: 6px;
}
.settings-modern-form .info-callout.compact p,
.settings-modern-form .info-callout.compact strong {
  margin: 0;
  overflow-wrap: anywhere;
}
.settings-modern-form .info-callout.compact code {
  word-break: break-word;
}
.settings-modern-form .field-span-3 input,
.settings-modern-form .field-span-3 select {
  min-width: 0;
}
.table-wrap,
.user-table-wrap,
.payment-history-table-wrap,
.donx-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table,
.user-table,
.tp-data-table,
.donx-table-wrap table,
.payment-history-table-wrap table {
  table-layout: auto;
}
.table-wrap th,
.table-wrap td,
.user-table thead th,
.user-table tbody td,
.tp-data-table th,
.tp-data-table td,
.donx-table-wrap th,
.donx-table-wrap td {
  font-size: clamp(0.82rem, 0.79rem + 0.14vw, 0.95rem);
  line-height: 1.45;
  vertical-align: top;
}
.table-wrap th,
.user-table thead th,
.tp-data-table thead th,
.donx-table-wrap thead th {
  white-space: nowrap;
}
.table-wrap td,
.user-table tbody td,
.tp-data-table td,
.donx-table-wrap td {
  overflow-wrap: anywhere;
  word-break: normal;
}
.table-wrap td .badge,
.tp-data-table td .badge,
.user-table td .badge,
.donx-table-wrap td .badge {
  max-width: 100%;
}
.table-wrap td:last-child,
.tp-data-table td:last-child,
.user-table tbody td:last-child {
  vertical-align: middle;
}
.table-wrap td .tpui-auto-iconize,
.payment-history-table-wrap .tpui-auto-iconize,
.donx-table-wrap .tpui-auto-iconize {
  max-width: 100%;
}
.tpui-table-tools {
  margin-top: 10px;
  padding: 8px 4px 0;
}
.tpui-table-tools > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tpui-table-pager button {
  min-width: 38px;
  min-height: 36px;
  font-weight: 700;
}
@media (max-width: 1280px) {
  .settings-grid-modern {
    grid-template-columns: 1fr;
  }
  .table-wrap td .tpui-auto-iconize,
  .payment-history-table-wrap .tpui-auto-iconize,
  .donx-table-wrap .tpui-auto-iconize {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
  }
  .table-wrap td .tpui-auto-iconize .tpui-button-label,
  .payment-history-table-wrap .tpui-auto-iconize .tpui-button-label,
  .donx-table-wrap .tpui-auto-iconize .tpui-button-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .settings-modern-form .form-actions-row .btn {
    width: 100%;
  }
  .section-head,
  .users-toolbar-row,
  .dashboard-intro,
  .topbar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .compact-actions,
  .table-actions-center {
    justify-content: flex-start;
  }
  .table-wrap th,
  .table-wrap td,
  .user-table thead th,
  .user-table tbody td,
  .tp-data-table th,
  .tp-data-table td,
  .donx-table-wrap th,
  .donx-table-wrap td {
    font-size: 0.85rem;
    padding: 14px 14px;
  }
}

.stats-inline-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.mini-stat{padding:12px 14px;border:1px solid rgba(15,117,200,.12);border-radius:16px;background:#f8fbff}.mini-stat span{display:block;font-size:.76rem;color:#71829f;margin-bottom:4px}.mini-stat strong{font-size:1.15rem;color:#10213f}.inline-actions-wrap{display:flex;gap:10px;flex-wrap:wrap}.top-space-sm{margin-top:14px}.compact-table-wrap .table th,.compact-table-wrap .table td{font-size:.84rem;padding:10px 10px;vertical-align:top}.cell-wrap{max-width:240px;white-space:normal;word-break:break-word}.log-console{background:#0d1527;color:#dce7ff;border-radius:18px;padding:14px;max-height:340px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;line-height:1.55}.log-line{padding:6px 0;border-bottom:1px dashed rgba(220,231,255,.12)}.log-line:last-child{border-bottom:0}.log-line code{color:#8ed0ff;background:rgba(255,255,255,.08);padding:2px 6px;border-radius:8px}.badge.pending,.badge.failed,.badge.killed,.badge.processing,.badge.sent{display:inline-flex;align-items:center;justify-content:center;min-width:82px}

/* Marketing module */
.marketing-shell { display: grid; gap: 18px; }
.marketing-bs .nav { display: flex; gap: 10px; flex-wrap: wrap; }
.marketing-submenu {
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(246,250,255,.96), rgba(241,247,255,.96));
  border: 1px solid rgba(15,117,200,.12);
}
.marketing-submenu .nav-link {
  border: 1px solid rgba(15,117,200,.10);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--text-strong);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15,117,200,.06);
}
.marketing-submenu .nav-link.active {
  background: linear-gradient(135deg,#1684d5,#1f9cea);
  color: #fff;
  border-color: transparent;
}
.marketing-hero-shell { overflow: visible; }
.marketing-sticky-shell { position: sticky; top: 14px; z-index: 8; }
.marketing-tab-panel { display: grid; gap: 18px; }
.marketing-runner-box {
  min-width: min(100%, 360px);
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(15,117,200,.16);
  background: linear-gradient(180deg, rgba(240,248,255,.92), rgba(248,251,255,.98));
}
.marketing-runner-box strong { color: var(--text-strong); }
.marketing-runner-box code,
.break-code {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: .82rem;
  line-height: 1.55;
  color: #0f3d63;
  background: rgba(255,255,255,.76);
  border: 1px dashed rgba(15,117,200,.18);
  border-radius: 14px;
  padding: 10px 12px;
}
.marketing-chart-grid,
.marketing-rate-grid { align-items: stretch; }
.marketing-donut-card { text-align: center; }
.marketing-donut-card .progress-donut { margin: 10px auto 14px; }
.marketing-dual-donut {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.marketing-dual-donut-item {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.marketing-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
}
.marketing-form-card,
.marketing-preview-card { overflow: visible; }
.marketing-grid-tight { gap: 14px; }
.marketing-image-preview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,117,200,.12);
  background: rgba(248,251,255,.92);
}
.marketing-image-preview img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(15,117,200,.12);
}
.marketing-editor-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.marketing-editor-source {
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid rgba(15,117,200,.12);
  padding: 14px 16px;
  background: #fff;
  color: var(--text-strong);
}
.marketing-editor-source.marketing-editor-fallback {
  font-family: inherit;
  line-height: 1.7;
}
.tox.tox-tinymce {
  border-radius: 20px !important;
  border: 1px solid rgba(15,117,200,.12) !important;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15,117,200,.08);
}
.tox .tox-editor-header {
  background: linear-gradient(180deg, rgba(247,251,255,.98), rgba(241,247,255,.98)) !important;
  border-bottom: 1px solid rgba(15,117,200,.12) !important;
}
.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-toolbar-overlord {
  background: transparent !important;
}
.tox .tox-statusbar {
  border-top: 1px solid rgba(15,117,200,.10) !important;
}
.marketing-recipient-selector {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15,117,200,.12);
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(243,248,255,.98));
}
.marketing-recipient-selector.is-soft-hidden { opacity: .55; }
.marketing-recipient-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.marketing-recipient-toolbar input { flex: 1 1 280px; }
.marketing-recipient-grid {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}
.marketing-recipient-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,117,200,.10);
  background: #fff;
}
.marketing-recipient-item input { margin-top: 3px; }
.marketing-recipient-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.marketing-recipient-copy strong,
.marketing-recipient-copy small { overflow-wrap: anywhere; }
.marketing-preview-column {
  display: grid;
  gap: 18px;
  align-items: start;
}
.marketing-sample-list .list-item { padding: 12px 14px; }
.marketing-email-frame-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15,117,200,.12);
  background: #f3f7fb;
}
.marketing-email-frame {
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #fff;
}
.marketing-preview-card-shell {
  padding: 18px;
  min-height: 640px;
  background: linear-gradient(180deg, #eef5ff, #f7fbff);
}
.marketing-telegram-phone {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 28px;
  background: #e6eff9;
  border: 10px solid #10213f;
  box-shadow: 0 16px 36px rgba(16,33,63,.18);
  overflow: hidden;
}
.marketing-telegram-topbar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1684d5, #0f75c8);
  color: #fff;
}
.marketing-telegram-topbar span {
  font-weight: 700;
  letter-spacing: .02em;
}
.marketing-telegram-topbar small { color: rgba(255,255,255,.84); }
.marketing-telegram-chat {
  padding: 18px;
  background: linear-gradient(180deg, #dfeaf8, #f1f7ff);
  min-height: 520px;
}
.marketing-telegram-bubble {
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  color: #10213f;
  line-height: 1.75;
  box-shadow: 0 12px 24px rgba(16,33,63,.10);
  white-space: normal;
  overflow-wrap: anywhere;
}
.marketing-telegram-hero {
  margin-bottom: 14px;
}
.marketing-telegram-hero img {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.marketing-inline-number {
  max-width: 120px;
  min-height: 44px;
}
.marketing-segment-extra.is-hidden,
.marketing-recipient-item.is-hidden,
.is-hidden { display: none !important; }
.marketing-unsubscribe-card {
  max-width: 680px;
  margin: 0 auto;
}
.marketing-unsubscribe-card .info-callout { text-align: left; }
html[data-theme="dark"] .marketing-submenu,
html[data-theme="dark"] .marketing-runner-box,
html[data-theme="dark"] .marketing-recipient-selector,
html[data-theme="dark"] .marketing-image-preview,
html[data-theme="dark"] .marketing-email-frame-wrap,
html[data-theme="dark"] .marketing-preview-card-shell,
html[data-theme="dark"] .marketing-editor-source,
html[data-theme="dark"] .marketing-recipient-item {
  background: rgba(15,23,42,.64);
}
html[data-theme="dark"] .marketing-submenu .nav-link,
html[data-theme="dark"] .marketing-runner-box code,
html[data-theme="dark"] .break-code,
html[data-theme="dark"] .marketing-editor-source,
html[data-theme="dark"] .marketing-recipient-item,
html[data-theme="dark"] .marketing-telegram-bubble {
  background: rgba(15,23,42,.82);
  color: #e7eef7;
}
html[data-theme="dark"] .marketing-telegram-chat {
  background: linear-gradient(180deg, rgba(9,14,26,.92), rgba(15,23,42,.92));
}
html[data-theme="dark"] .marketing-telegram-phone {
  border-color: #0b1222;
}
html[data-theme="dark"] .tox.tox-tinymce {
  border-color: rgba(96,165,250,.18) !important;
}
@media (max-width: 1180px) {
  .marketing-composer-grid {
    grid-template-columns: 1fr;
  }
  .marketing-email-frame,
  .marketing-preview-card-shell {
    min-height: 640px;
  }
}
@media (max-width: 760px) {
  .marketing-sticky-shell {
    position: static;
  }
  .marketing-runner-box {
    min-width: 0;
  }
  .marketing-submenu .nav-link {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
  .marketing-image-preview {
    grid-template-columns: 1fr;
  }
  .marketing-image-preview img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
  .marketing-editor-source {
    min-height: 320px;
  }
  .marketing-email-frame,
  .marketing-preview-card-shell,
  .marketing-telegram-chat {
    min-height: 520px;
  }
  .marketing-dual-donut {
    grid-template-columns: 1fr;
  }
}

/* v2.12.2 shared field span completion */
.field-span-3 { grid-column: span 3; }
.field-span-4 { grid-column: span 4; }
.field-span-8 { grid-column: span 8; }

/* v2.12.2 marketing sidebar submenu + composer spacing refresh */
.menu-item {
  position: relative;
  display: grid;
  gap: 8px;
}
.menu-parent-row {
  position: relative;
}
.menu-item.has-submenu .menu-parent-link {
  padding-right: 56px;
}
.menu-expand-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15,117,200,.10);
  background: rgba(255,255,255,.86);
  color: var(--text-soft);
  display: inline-grid;
  place-items: center;
  transition: .18s ease;
}
.menu-expand-btn:hover,
.menu-item.is-open .menu-expand-btn,
.menu-item.has-submenu:hover .menu-expand-btn,
.menu-item.has-submenu:focus-within .menu-expand-btn {
  background: rgba(22,132,213,.10);
  color: var(--text);
  border-color: rgba(15,117,200,.18);
}
.menu-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  margin-top: -3px;
}
.menu-item.is-open .menu-caret,
.menu-item.has-submenu:hover .menu-caret,
.menu-item.has-submenu:focus-within .menu-caret {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.menu-submenu {
  display: none;
  gap: 8px;
  margin: -2px 0 4px 22px;
  padding: 2px 0 2px 16px;
  border-left: 1px dashed rgba(22,132,213,.18);
}
.menu-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-soft);
  text-decoration: none;
  transition: .18s ease;
  min-width: 0;
}
.menu-sublink:hover,
.menu-sublink.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(22,132,213,.10), rgba(58,181,74,.08));
}
.menu-subicon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(22,132,213,.10);
  color: var(--primary);
}
.menu-sublink span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 981px) {
  .menu-item.has-submenu:hover .menu-submenu,
  .menu-item.has-submenu:focus-within .menu-submenu,
  .menu-item.has-submenu.is-open .menu-submenu,
  .menu-item.has-submenu.is-current .menu-submenu {
    display: grid;
  }
}
@media (max-width: 980px) {
  .menu-submenu {
    margin-left: 14px;
    padding-left: 12px;
  }
  .menu-item.has-submenu.is-open .menu-submenu,
  .menu-item.has-submenu.is-current .menu-submenu {
    display: grid;
  }
}

.marketing-shell {
  display: grid;
  gap: 20px;
}
.marketing-hero-head {
  align-items: flex-start;
}
.marketing-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.marketing-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,117,200,.12);
  color: var(--text-soft);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15,117,200,.06);
}
.marketing-context-pill.is-current {
  background: linear-gradient(135deg, rgba(22,132,213,.12), rgba(58,181,74,.10));
  color: var(--text-strong);
}
.marketing-hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,117,200,.12);
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(242,247,255,.98));
  color: var(--text-soft);
}
.marketing-composer-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(340px, .92fr);
  gap: 22px;
}
.marketing-card-head {
  margin-bottom: 18px;
}
.marketing-head-badges {
  justify-content: flex-end;
  align-items: center;
}
.marketing-form-card,
.marketing-preview-card {
  overflow: visible;
}
.marketing-composer-form {
  gap: 18px;
}
.marketing-form-section {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15,117,200,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98));
  box-shadow: 0 16px 32px rgba(15,117,200,.05);
}
.marketing-form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.marketing-form-section-head h4 {
  margin: 4px 0 0;
  font-size: 1.06rem;
  color: var(--text-strong);
}
.marketing-form-section-head .muted.small {
  margin-top: 4px;
  max-width: 76ch;
}
.marketing-section-tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(22,132,213,.10);
  border: 1px solid rgba(15,117,200,.14);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.marketing-fields-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.marketing-form-section .field {
  min-width: 0;
}
.marketing-form-section .field label {
  display: block;
  margin-bottom: 6px;
}
.marketing-inline-callout {
  background: linear-gradient(180deg, rgba(236,247,255,.98), rgba(247,251,255,.98));
}
.marketing-editor-note {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(15,117,200,.16);
  background: rgba(247,251,255,.94);
}
.marketing-editor-source {
  min-height: 380px;
}
.tox.tox-tinymce {
  box-shadow: 0 18px 38px rgba(15,117,200,.08);
}
.tox .tox-editor-header {
  padding: 6px 6px 0 !important;
}
.tox .tox-toolbar__group {
  flex-wrap: nowrap !important;
}
.marketing-recipient-selector {
  padding: 18px 20px;
}
.marketing-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15,117,200,.12);
  background: linear-gradient(135deg, rgba(246,250,255,.98), rgba(240,248,255,.98));
  box-shadow: 0 16px 30px rgba(15,117,200,.05);
}
.marketing-form-actions-copy {
  display: grid;
  gap: 4px;
  max-width: 560px;
}
.marketing-form-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.marketing-form-actions-buttons .btn {
  min-height: 48px;
  padding-inline: 18px;
}
.marketing-preview-column {
  display: grid;
  gap: 18px;
  align-items: start;
}
.marketing-preview-sticky {
  position: sticky;
  top: 102px;
}
.marketing-preview-samples {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,117,200,.12);
  background: linear-gradient(180deg, rgba(248,251,255,.98), rgba(243,248,255,.98));
}
.marketing-preview-samples-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.marketing-sample-list {
  max-height: 290px;
  overflow: auto;
  padding-right: 4px;
}
.marketing-email-frame {
  min-height: 580px;
}
.marketing-preview-card-shell {
  min-height: 580px;
}
html[data-theme="dark"] .menu-expand-btn,
html[data-theme="dark"] .marketing-context-pill,
html[data-theme="dark"] .marketing-hero-note,
html[data-theme="dark"] .marketing-form-section,
html[data-theme="dark"] .marketing-preview-samples,
html[data-theme="dark"] .marketing-form-actions {
  background: rgba(15,23,42,.82);
}
html[data-theme="dark"] .menu-sublink:hover,
html[data-theme="dark"] .menu-sublink.active {
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(34,197,94,.14));
}
html[data-theme="dark"] .menu-expand-btn {
  border-color: rgba(96,165,250,.16);
}
html[data-theme="dark"] .menu-submenu {
  border-left-color: rgba(96,165,250,.18);
}
@media (max-width: 1280px) {
  .marketing-composer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .marketing-preview-sticky {
    position: static;
  }
}
@media (max-width: 760px) {
  .marketing-context-pill,
  .marketing-hero-note {
    width: 100%;
  }
  .marketing-form-section,
  .marketing-form-actions,
  .marketing-recipient-selector {
    padding: 16px;
  }
  .marketing-form-section-head,
  .marketing-form-actions,
  .marketing-preview-samples-head {
    flex-direction: column;
    align-items: stretch;
  }
  .marketing-fields-grid {
    grid-template-columns: 1fr;
  }
  .marketing-fields-grid .field-span-3,
  .marketing-fields-grid .field-span-4,
  .marketing-fields-grid .field-span-6,
  .marketing-fields-grid .field-span-8,
  .marketing-fields-grid .field-span-12 {
    grid-column: auto !important;
  }
  .marketing-form-actions-buttons {
    justify-content: stretch;
  }
  .marketing-form-actions-buttons .btn {
    width: 100%;
  }
  .marketing-email-frame,
  .marketing-preview-card-shell {
    min-height: 500px;
  }
}


/* v2.12.3 marketing non-freeze + pause controls */
.marketing-hero-shell,
.marketing-preview-card,
.marketing-preview-sticky,
.marketing-sticky-shell {
  position: static !important;
  top: auto !important;
}
.marketing-composer-grid { align-items: start; }
.marketing-form-card,
.marketing-preview-card { min-width: 0; }
.marketing-pause-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 20px;
  padding: 16px 18px;
}
.marketing-pause-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.marketing-pause-note {
  font-size: .9rem;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22,132,213,.08);
}
.marketing-live-summary { display: grid; gap: 8px; }
.marketing-live-summary small {
  color: var(--text-soft);
  display: block;
  line-height: 1.6;
}
.marketing-queue-banner {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,193,7,.14);
  border: 1px solid rgba(255,193,7,.28);
  color: var(--text-strong);
}
.is-disabled-soft,
.btn.is-disabled-soft {
  opacity: .56;
  pointer-events: none;
  filter: grayscale(.15);
}
@media (max-width: 1080px) {
  .marketing-preview-column { order: 2; }
  .marketing-form-card { order: 1; }
}
@media (max-width: 720px) {
  .marketing-pause-actions { flex-direction: column; align-items: stretch; }
}


/* v2.12.5 worker photo upload */
.worker-photo-preview-box{min-height:220px}
.worker-list-identity{display:flex;align-items:center;gap:14px;min-width:0}
.worker-photo-thumb{width:48px;height:48px;border-radius:16px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#1684d5,#39b56a);color:#fff;font-weight:800;flex:0 0 48px;box-shadow:0 10px 24px rgba(24,55,94,.12)}
.worker-photo-thumb.is-empty{border:1px solid rgba(22,132,213,.16)}
.worker-draft-item{display:flex;align-items:center;gap:14px}
.worker-profile-hero{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr);align-items:center;gap:22px}
.worker-profile-copy{display:grid;gap:14px;min-width:0}
.worker-profile-media{display:grid;justify-items:center}
.worker-profile-photo{width:min(100%,220px);aspect-ratio:1/1;border-radius:30px;object-fit:cover;background:linear-gradient(180deg,#fff,#f4f9ff);border:1px solid rgba(18,33,61,.08);box-shadow:0 18px 40px rgba(18,33,61,.10);display:block}
.worker-profile-photo.placeholder{display:grid;place-items:center;color:#fff;font-size:3.6rem;font-weight:800;background:linear-gradient(135deg,#1684d5,#39b56a)}
@media (max-width: 860px){.worker-profile-hero{grid-template-columns:1fr}.worker-profile-media{justify-items:flex-start}.worker-profile-photo{width:min(100%,180px)}.worker-list-identity{align-items:flex-start}}
.worker-photo-hidden-input{display:none!important}
.worker-photo-trigger-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.worker-photo-picker-sheet,.worker-camera-modal{position:fixed;inset:0;background:rgba(12,22,41,.56);backdrop-filter:blur(3px);display:grid;place-items:center;padding:18px;z-index:1200}.worker-photo-picker-sheet[hidden],.worker-camera-modal[hidden]{display:none!important}
.worker-photo-picker-card,.worker-camera-dialog{width:min(100%,480px);background:#fff;border-radius:24px;border:1px solid rgba(18,33,61,.08);box-shadow:0 30px 80px rgba(12,22,41,.22);padding:20px;display:grid;gap:16px}
.worker-photo-picker-head{display:grid;gap:6px}
.worker-photo-picker-actions{display:grid;gap:10px}
.worker-camera-video{width:100%;max-height:min(70vh,420px);border-radius:22px;background:#0f172a;display:block;object-fit:cover}
@media (max-width: 640px){.worker-photo-picker-card,.worker-camera-dialog{padding:16px;border-radius:20px}.worker-camera-video{max-height:58vh}}

/* v2.14.0 mobile shell + settings submenu */
.main-content-inner{display:grid;gap:18px;min-width:0}
.settings-submenu-shell{padding:22px}
.settings-subnav-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.settings-subnav-link{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:20px;border:1px solid rgba(22,132,213,.12);background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(246,250,255,.94));color:var(--text);box-shadow:0 10px 24px rgba(15,117,200,.06);transition:.2s ease}
.settings-subnav-link:hover,.settings-subnav-link.active{transform:translateY(-1px);border-color:rgba(22,132,213,.24);background:linear-gradient(135deg,rgba(22,132,213,.12),rgba(116,126,255,.12))}
.settings-subnav-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;background:rgba(22,132,213,.10);color:var(--primary)}
.settings-subnav-copy{display:grid;gap:4px;min-width:0}
.settings-subnav-copy strong{font-size:.96rem}
.settings-subnav-copy small{color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.settings-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-status-card,.settings-spotlight-card{padding:16px 18px;border-radius:20px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(245,249,255,.94));box-shadow:var(--shadow-soft);display:grid;gap:6px}
.settings-status-card span{font-size:.8rem;color:var(--muted)}
.settings-status-card strong,.settings-spotlight-card strong{font-size:1rem;color:var(--text)}
.settings-status-card small{color:var(--muted);line-height:1.5}
.settings-spotlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.settings-spotlight-card p{margin:0;line-height:1.6}

body.mobile-shell-active{background:linear-gradient(180deg,#f4f6ff 0%,#f7f9ff 42%,#fbfcff 100%)}
body.mobile-shell-active .sidebar{transform:translateX(-110%);transition:transform .25s ease;width:min(88vw,320px);border-right:0;border-radius:0 28px 28px 0;box-shadow:18px 0 40px rgba(35,48,88,.18)}
body.mobile-shell-active.sidebar-open .sidebar{transform:translateX(0)}
body.mobile-shell-active .sidebar-close,
body.mobile-shell-active .menu-toggle{display:grid}
body.mobile-shell-active .main-content{width:100%;max-width:none;margin-left:0;padding:14px 12px 112px;justify-content:flex-start}
body.mobile-shell-active .mobile-main-content-inner{width:100%;max-width:none;margin:0;gap:14px}
body.mobile-shell-active .topbar{width:100%;display:grid;gap:14px;padding:18px 16px 16px;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(244,247,255,.96));border:1px solid rgba(118,126,255,.12);box-shadow:0 18px 36px rgba(68,82,132,.10)}
body.mobile-shell-active .topbar-left{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;width:100%}
body.mobile-shell-active .topbar-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:10px;width:100%}
body.mobile-shell-active .topbar-actions > *{flex:0 0 auto}
body.mobile-shell-active .profile-mini{padding:0;border:none;background:transparent;box-shadow:none}
body.mobile-shell-active .profile-mini span{display:none}
body.mobile-shell-active .mobile-topbar-summary{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.mobile-summary-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(118,126,255,.09);border:1px solid rgba(118,126,255,.12);color:#28345f;font-size:.8rem;font-weight:700}
body.mobile-shell-active .cloud-card,
body.mobile-shell-active .panel-card,
body.mobile-shell-active .stat-card,
body.mobile-shell-active .option-card,
body.mobile-shell-active .hero-card{border-radius:28px;box-shadow:0 18px 42px rgba(44,60,102,.10)}
body.mobile-shell-active .card-grid.two > *,
body.mobile-shell-active .card-grid.three > *,
body.mobile-shell-active .card-grid.four > *{flex-basis:100%}
body.mobile-shell-active .stat-grid.six > *,
body.mobile-shell-active .stat-grid.four > *{flex-basis:calc(50% - 8px)}
body.mobile-shell-active .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
body.mobile-shell-active .table-wrap{border-radius:22px}
body.mobile-shell-active table{min-width:640px}
body.mobile-shell-active .tpui-notification-panel{position:fixed;top:88px;left:50%;right:auto;transform:translateX(-50%);width:min(420px,calc(100vw - 20px))}
body.mobile-shell-active .version-chip{display:none}

.mobile-bottom-nav{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);width:min(calc(100vw - 22px),560px);padding:10px 10px 12px;border-radius:28px;background:rgba(255,255,255,.92);border:1px solid rgba(118,126,255,.14);box-shadow:0 24px 56px rgba(52,64,104,.18);backdrop-filter:blur(18px) saturate(140%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;z-index:60}
.mobile-bottom-nav__item{position:relative;display:grid;justify-items:center;align-content:center;gap:6px;min-height:62px;padding:8px 4px;border-radius:22px;color:var(--muted);transition:.2s ease}
.mobile-bottom-nav__item.active{background:rgba(118,126,255,.10);color:#24325c}
.mobile-bottom-nav__item.featured{transform:translateY(-16px);padding-top:14px;padding-bottom:14px;background:linear-gradient(135deg,#6f74ff,#3f8eff);color:#fff;box-shadow:0 16px 28px rgba(78,96,214,.28)}
.mobile-bottom-nav__item.featured.active{background:linear-gradient(135deg,#5c63ff,#2e86ff)}
.mobile-bottom-nav__icon{display:grid;place-items:center}
.mobile-bottom-nav__label{font-size:.72rem;font-weight:700;line-height:1.2;text-align:center}
.mobile-bottom-nav__badge{position:absolute;top:6px;right:10px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f24d6b;color:#fff;font-size:.68rem;font-weight:800;display:inline-grid;place-items:center}
.menu-toggle,
.sidebar-close{font-size:0;line-height:1}
.menu-toggle::before,
.sidebar-close::before{font-size:20px;line-height:1;color:currentColor}
.menu-toggle::before{content:"\2630"}
.sidebar-close::before{content:"\00D7"}

.toggle-field{display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:16px; border:1px solid var(--line); background:var(--panel-soft); color:var(--text); font-weight:600}
.toggle-field input{width:18px; height:18px; accent-color:var(--brand)}
.break-all{word-break:break-word; overflow-wrap:anywhere}
.android-admin-hero{background:
  radial-gradient(circle at top right, rgba(15,139,141,.14), transparent 34%),
  radial-gradient(circle at bottom left, rgba(197,162,69,.12), transparent 36%),
  var(--panel)}
.android-admin-hero .settings-chip svg{opacity:.9}

@media (max-width: 980px){
  .settings-status-list,
  .settings-spotlight-grid{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .settings-submenu-shell{padding:18px}
  .settings-subnav-grid{display:flex;overflow:auto;padding-bottom:4px;scroll-snap-type:x proximity}
  .settings-subnav-link{min-width:240px;scroll-snap-align:start}
  body.mobile-shell-active .main-content{padding:12px 10px 104px}
  body.mobile-shell-active .dashboard-stats{grid-template-columns:1fr}
  body.mobile-shell-active .stat-grid.six > *,
  body.mobile-shell-active .stat-grid.four > *{flex-basis:100%}
  body.mobile-shell-active .topbar{padding:16px 14px 14px;border-radius:24px}
  body.mobile-shell-active .topbar-actions{justify-content:flex-start}
  body.mobile-shell-active .mobile-topbar-summary{display:grid;grid-template-columns:1fr;gap:8px}
  .mobile-summary-pill{width:100%;justify-content:flex-start}
  .mobile-bottom-nav{width:calc(100vw - 18px);gap:6px;padding:10px 8px 12px}
  .mobile-bottom-nav__item{min-height:58px}
  .mobile-bottom-nav__item.featured{transform:translateY(-12px)}
  .mobile-bottom-nav__label{font-size:.68rem}
}

/* v2.15.3 home news refresh */
.home-immersive-wrap{padding-top:18px}
.home-split-shell{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:0;border-radius:28px;overflow:hidden;border:1px solid rgba(15,23,42,.08);background:#fff;min-height:720px}
.home-side-panel{background:linear-gradient(180deg,#445900 0%,#415500 100%);color:#fff;padding:24px 26px 22px;display:flex;flex-direction:column;gap:26px}
.home-side-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.home-brand-inline strong,.home-brand-inline small{color:#fff}
.home-brand-inline .brand-logo.small{width:42px;height:42px}
.home-cta-btn{background:#dff9a6;border-color:#dff9a6;color:#253000;font-weight:700}
.home-cta-btn:hover{background:#f0ffd0;color:#253000}
.home-side-copy{display:grid;gap:14px;margin-top:20px}
.home-side-copy h1{margin:0;font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.06;letter-spacing:-.04em;color:#fff}
.home-side-copy p{margin:0;color:rgba(255,255,255,.82);font-size:1rem;line-height:1.7}
.home-mini-stats{margin-top:auto;display:grid;gap:14px}
.home-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-mini-kicker{font-size:.86rem;font-weight:700;color:rgba(255,255,255,.9)}
.home-mini-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.home-mini-actions a,.home-side-footer a{font-size:.82rem;color:rgba(255,255,255,.86)}
.home-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-stat-card{background:#6b950d;border-radius:16px;padding:16px 14px;display:grid;gap:8px;align-content:start;min-height:132px}
.home-stat-card.wide{grid-column:1/-1;grid-template-columns:auto 1fr;align-items:center;column-gap:14px;min-height:110px}
.home-stat-icon{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.16);display:grid;place-items:center;color:#fff}
.home-stat-card strong{font-size:1.15rem;line-height:1.2;color:#fff}
.home-stat-card span{font-size:.88rem;font-weight:700;color:#fff}
.home-stat-card small{font-size:.78rem;color:rgba(255,255,255,.76)}
.home-side-footer{display:flex;gap:14px;flex-wrap:wrap;padding-top:8px}
.home-main-panel{padding:22px 28px 26px;display:grid;gap:26px;background:#fff}
.home-news-showcase{position:relative;display:grid;gap:16px}
.home-news-track{position:relative;min-height:500px}
.home-news-slide{display:none;gap:18px}
.home-news-slide.is-active{display:grid}
.home-news-media{position:relative;border-radius:28px;overflow:hidden;min-height:380px;background:#eef2f5}
.home-news-media img{width:100%;height:100%;min-height:380px;object-fit:cover}
.home-news-badge{position:absolute;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(199,255,123,.92);color:#314101;font-size:.88rem;font-weight:700;box-shadow:0 18px 36px rgba(31,41,18,.12)}
.home-news-badge .tpui-material-icon{font-size:18px}
.home-news-badge.badge-left{top:24px;left:24px}
.home-news-badge.badge-right{top:24px;right:24px}
.home-news-badge.badge-bottom{bottom:24px;left:50%;transform:translateX(-50%);max-width:min(92%,540px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-news-copy{text-align:center;display:grid;gap:10px;justify-items:center;padding:0 18px}
.home-news-copy h2{margin:0;font-size:2rem;line-height:1.1;max-width:720px;letter-spacing:-.03em}
.home-news-copy p{margin:0;color:#536273;font-size:1rem;max-width:780px}
.home-news-dots{display:flex;justify-content:center;gap:10px}
.home-news-dot{width:11px;height:11px;border:none;border-radius:999px;background:#d3dce5;padding:0;box-shadow:none}
.home-news-dot.is-active{background:#5c7f0a;transform:scale(1.15)}
.home-donor-stage{display:grid;gap:18px}
.home-donor-intro{display:grid;gap:8px;justify-items:center;text-align:center}
.home-donor-intro h3{margin:0;font-size:1.7rem;letter-spacing:-.03em}
.home-donor-intro p{margin:0;max-width:780px}
.home-donor-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-donor-group{border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:18px;background:#fbfcfe;display:grid;gap:16px}
.home-donor-group-head{display:flex;align-items:center;gap:12px}
.home-donor-group-head h4{margin:0;font-size:1.1rem}
.home-donor-group-head .eyebrow{margin:0 0 4px}
.home-donor-group-icon{width:44px;height:44px;border-radius:14px;background:#eef5dc;color:#58750b;display:grid;place-items:center}
.home-donor-list{display:grid;gap:12px}
.home-donor-item{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(15,23,42,.07)}
.home-donor-item:first-child{border-top:none;padding-top:0}
.home-donor-rank{font-size:.78rem;font-weight:800;color:#78911d}
.home-donor-logo{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(15,23,42,.08)}
.home-donor-logo img{width:100%;height:100%;object-fit:cover}
.home-donor-logo.is-empty span{font-weight:800;color:#58750b}
.home-donor-copy{display:grid;gap:3px;min-width:0}
.home-donor-copy strong{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-donor-copy small{color:#6d7b8f}
.home-donor-value{font-size:.88rem;font-weight:800;color:#40551a;text-align:right}
.news-admin-hero{background:linear-gradient(135deg,rgba(88,117,11,.14),rgba(22,132,213,.08))}
.news-admin-thumb{border-radius:18px;overflow:hidden;border:1px solid rgba(15,23,42,.08);max-width:320px}
.news-admin-thumb img{width:100%;height:180px;object-fit:cover}
.news-admin-item{gap:12px}
.news-admin-item-head{display:flex;justify-content:space-between;gap:12px}

@media (max-width: 1120px){
  .home-split-shell{grid-template-columns:1fr}
  .home-side-panel{min-height:auto}
  .home-donor-groups{grid-template-columns:1fr}
}

@media (max-width: 760px){
  .home-immersive-wrap{padding-top:10px}
  .home-split-shell{border-radius:22px}
  .home-side-panel{padding:18px}
  .home-side-top{align-items:flex-start;flex-direction:column}
  .home-stat-grid{grid-template-columns:1fr}
  .home-stat-card.wide{grid-column:auto;grid-template-columns:1fr}
  .home-main-panel{padding:18px}
  .home-news-track{min-height:auto}
  .home-news-media,.home-news-media img{min-height:260px}
  .home-news-badge{font-size:.76rem;padding:8px 12px}
  .home-news-badge.badge-left,.home-news-badge.badge-right{top:14px}
  .home-news-badge.badge-left{left:14px}
  .home-news-badge.badge-right{right:14px}
  .home-news-badge.badge-bottom{bottom:14px}
  .home-news-copy h2{font-size:1.45rem}
  .home-donor-item{grid-template-columns:auto 1fr;align-items:flex-start}
  .home-donor-rank{grid-row:1/span 2}
  .home-donor-logo{grid-column:1}
  .home-donor-copy{grid-column:2}
  .home-donor-value{grid-column:2;text-align:left}
}
