/*
 * ACELERE DARK CLEAN — executive client portal, mobile first.
 * Visual presentation only. Do not change Meta APIs, tenant isolation,
 * customers, financial definitions, periods, auth or PDF generation.
 *
 * Brand: black #0B0F0C, green surfaces #173A27,
 * active green #54D980, white #F6FBF7.
 */
html.acelere-dark {
  color-scheme: dark;
  --ac-bg: #0b0f0c;
  --ac-bg-soft: #101610;
  --ac-panel: #141c16;
  --ac-card: #17231a;
  --ac-kpi: #173a27;
  --ac-kpi-line: #27543a;
  --ac-line: #263328;
  --ac-ink: #f4f9f5;
  --ac-secondary: #ccd8cf;
  --ac-muted: #a3b5a6;
  --ac-dim: #829486;
  --ac-green: #54d980;
  --ac-green-bright: #6ae697;
  --ac-danger: #e88f97;
  background: var(--ac-bg);
}
html.acelere-dark body {
  background: var(--ac-bg) !important;
  color: var(--ac-ink);
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html.acelere-dark * { -webkit-tap-highlight-color: transparent; }
html.acelere-dark button,
html.acelere-dark input,
html.acelere-dark textarea,
html.acelere-dark select { font-family: inherit; }
html.acelere-dark :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 2px solid var(--ac-green-bright) !important;
  outline-offset: 3px;
}
html.acelere-dark ::selection { color: #031008; background: var(--ac-green); }
html.acelere-dark ::-webkit-scrollbar-track { background: #0b100d; }
html.acelere-dark ::-webkit-scrollbar-thumb { background: #38483b; }
/* No wallpaper, fake glass, glow, decorative animated pills or lifted cards. */
html.acelere-dark #ambientBackdrop,
html.acelere-dark .glass-shine::before { display: none !important; }
html.acelere-dark .glass-panel,
html.acelere-dark .glass-card {
  background: var(--ac-panel) !important;
  border: 1px solid var(--ac-line) !important;
  box-shadow: none !important;
  border-radius: 13px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  transition: border-color .15s ease !important;
}
html.acelere-dark .glass-card:hover {
  border-color: #35503b !important;
  box-shadow: none !important;
  transform: none !important;
}
html.acelere-dark .glass-pill {
  background: #1b281e !important;
  color: var(--ac-secondary) !important;
  border: 1px solid #2b3a2e !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.acelere-dark .glass-input {
  background: #111a14 !important;
  color: var(--ac-ink) !important;
  border: 1px solid #354639 !important;
  border-radius: 9px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
html.acelere-dark .glass-input::placeholder { color: #889a8c !important; }
html.acelere-dark .glass-input:focus {
  border-color: var(--ac-green) !important;
  box-shadow: 0 0 0 2px rgba(84,217,128,.12) !important;
}
html.acelere-dark .glass-btn-primary {
  background: var(--ac-green) !important;
  color: #08160e !important;
  border: 1px solid var(--ac-green) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}
html.acelere-dark .glass-btn-primary:hover {
  background: var(--ac-green-bright) !important;
  border-color: var(--ac-green-bright) !important;
  transform: none !important;
  box-shadow: none !important;
}
html.acelere-dark .glass-btn-secondary {
  background: #1b261e !important;
  color: var(--ac-ink) !important;
  border: 1px solid #354637 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}
html.acelere-dark .glass-btn-secondary:hover {
  background: #233226 !important;
  border-color: #456349 !important;
  transform: none !important;
  box-shadow: none !important;
}
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) .text-white { color: var(--ac-ink) !important; }
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) .text-slate-300 { color: var(--ac-secondary) !important; }
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) .text-slate-400 { color: var(--ac-muted) !important; }
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) .text-slate-500 { color: var(--ac-dim) !important; }
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) :is(.text-acelere-300,.text-acelere-400,.text-emerald-300,.text-emerald-400) {
  color: var(--ac-green) !important;
}
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) .text-blue-400 { color: #b0dbbc !important; }
html.acelere-dark :is(#appShell,#loginView,#clientModal,#metaModal) .text-rose-400 { color: var(--ac-danger) !important; }
html.acelere-dark #appShell [class*="border-white/"] { border-color: var(--ac-line) !important; }
html.acelere-dark #appShell [class*="bg-white/"] { background-color: #1a251c !important; }
html.acelere-dark #appShell [class*="bg-black/"] { background-color: #101711 !important; }
html.acelere-dark #appShell :is(.bg-gradient-to-r,.bg-gradient-to-b) { background-image: none !important; }
html.acelere-dark #appShell .font-black { font-weight: 700 !important; }
html.acelere-dark #appShell .font-mono { font-family: Inter, sans-serif !important; font-variant-numeric: tabular-nums; }
html.acelere-dark #appShell .animate-ping,
html.acelere-dark #appShell .animate-pulse { animation: none !important; }
/* Shell — wide desktop and restrained navigation */
html.acelere-dark #appShell { min-width: 0; background: var(--ac-bg); }
html.acelere-dark #appShell > header {
  background: #101612 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ac-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html.acelere-dark #appShell > header > div { max-width: 1380px !important; }
html.acelere-dark #appShell > header .site-logo {
  height: 34px !important;
  max-width: 154px;
  filter: none !important;
}
html.acelere-dark #appShell > header [class*="drop-shadow"] { filter: none !important; }
html.acelere-dark #appShell > main {
  width: 100%;
  max-width: 1380px !important;
  min-width: 0;
  padding-top: 28px;
  padding-bottom: 52px;
}
html.acelere-dark #freshnessIndicator { font-size: 11px !important; padding: 7px 10px !important; }
html.acelere-dark #customDateBanner { background: #111a14 !important; border-radius: 0 !important; }
html.acelere-dark #periodSelector,
html.acelere-dark #periodSelectorMobile { min-height: 42px; }
html.acelere-dark .ac-eyebrow {
  color: #8ca491;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 650;
  margin-bottom: 7px;
}
html.acelere-dark #adminOverviewTitle {
  font-size: clamp(22px,2.3vw,28px);
  letter-spacing: -.03em;
  color: var(--ac-ink);
}
html.acelere-dark #adminPeriodLabel { color: var(--ac-muted) !important; }
/* Four original KPIs — no ROI, ROAS, revenue or new sources. */
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px !important;
}
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) > .glass-card {
  background: var(--ac-kpi) !important;
  border: 1px solid var(--ac-kpi-line) !important;
  border-radius: 13px !important;
  min-width: 0;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px !important;
  gap: 16px !important;
}
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) > .glass-card:hover { border-color: #37744b !important; }
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) .uppercase {
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #badbc2 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.4;
}
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) :is(svg,i) { display: none !important; }
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) .glass-pill,
html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) .pt-0\.5 { display: none !important; }
html.acelere-dark :is(#clientSpend,#clientLeads,#clientCpl,#clientImpressions,#adminTotalSpend,#adminTotalLeads,#adminAvgCpl,#adminTotalClients) {
  font-size: clamp(25px,2.45vw,34px) !important;
  font-weight: 730 !important;
  color: #f8fcf9 !important;
  line-height: 1.13;
  letter-spacing: -.042em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  max-width: 100%;
}
/* Customer account identity: only logo, company and contextual selector. */
html.acelere-dark #clientView {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px !important;
}
html.acelere-dark #clientView.hidden { display: none !important; }
html.acelere-dark #clientView > * { min-width: 0; }
html.acelere-dark #clientView > .glass-panel:first-child {
  background: #111a14 !important;
  border-radius: 13px !important;
  padding: 18px 22px !important;
}
html.acelere-dark #clientView > .glass-panel:first-child > [class*="absolute"] { display: none !important; }
html.acelere-dark #clientView [aria-label="Logomarca do cliente"] {
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0;
  padding: 7px !important;
  background: #1d2f22 !important;
  border: 1px solid #32533b !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html.acelere-dark #clientBrandFallback { color: var(--ac-green) !important; }
html.acelere-dark #clientBrandLogo { max-height: 100%; }
html.acelere-dark #clientPortalName {
  color: var(--ac-ink) !important;
  font-size: clamp(21px,2.6vw,29px) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
html.acelere-dark #clientPortalSelect { min-height: 42px; }
/* Main chart: no icons, gradients or dense copy. */
html.acelere-dark #clientTrendSection {
  display: grid;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 0;
  min-width: 0;
}
html.acelere-dark #clientTrendSection > .glass-card {
  background: var(--ac-panel) !important;
  border: 1px solid var(--ac-line) !important;
  padding: 23px !important;
  width: 100%;
  min-width: 0;
}
html.acelere-dark #clientTrendSection h3 {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: var(--ac-ink) !important;
}
html.acelere-dark #clientTrendSection h3 svg { display: none !important; }
html.acelere-dark #clientTrendSection canvas { max-width: 100% !important; touch-action: pan-y; }
/* Campaigns remain the same data, with responsive presentation. */
html.acelere-dark #clientView .glass-card { min-width: 0; }
html.acelere-dark #clientView .glass-card h3 {
  color: var(--ac-ink) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.4;
}
html.acelere-dark #clientView .glass-card h3 svg { display: none !important; }
html.acelere-dark #clientView table { border-collapse: separate; border-spacing: 0; }
html.acelere-dark #clientView thead { background: #19251c !important; color: #a9bcaf !important; }
html.acelere-dark #clientView th {
  padding: 13px 12px !important;
  font-size: 11px;
  letter-spacing: .015em;
  text-transform: none;
  font-weight: 650;
}
html.acelere-dark #clientView td { color: #d3e2d6 !important; padding: 12px !important; }
html.acelere-dark #clientView #campaignsBody td:first-child { font-weight: 650; color: #f4faf6 !important; }
html.acelere-dark #clientView tbody tr:hover { background: #1b2a20 !important; }
/* Optional detail disclosure keeps existing calculations and queries accessible.
   Closed by default; secondary analytics never compete with the four KPIs. */
html.acelere-dark #clientAdvancedDetails {
  border: 1px solid var(--ac-line);
  background: #111811;
  border-radius: 13px;
  color: var(--ac-ink);
  overflow: clip;
}
html.acelere-dark #clientAdvancedDetails > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
html.acelere-dark #clientAdvancedDetails > summary::-webkit-details-marker { display: none; }
html.acelere-dark #clientAdvancedDetails > summary:hover { background: #1a261c; }
html.acelere-dark #clientAdvancedDetails .ac-details-help {
  color: #849989;
  font-weight: 450;
  font-size: 12px;
  margin-left: auto;
}
html.acelere-dark #clientAdvancedDetails .ac-details-chevron {
  font-size: 21px;
  color: var(--ac-green);
  line-height: 1;
  transform-origin: center;
  transition: transform .15s;
}
html.acelere-dark #clientAdvancedDetails[open] .ac-details-chevron { transform: rotate(180deg); }
html.acelere-dark #clientAdvancedDetails .ac-details-content {
  border-top: 1px solid var(--ac-line);
  padding: 18px;
}
html.acelere-dark #clientAdvancedDetails .glass-card,
html.acelere-dark #clientAdvancedDetails .glass-panel {
  background: #17231a !important;
  box-shadow: none !important;
}
html.acelere-dark #clientAdvancedDetails .glass-pill { background: #1b2b20 !important; }
html.acelere-dark #clientAdvancedDetails #cityMap { border-color: var(--ac-line) !important; box-shadow: none !important; border-radius: 10px !important; }
/* Admin client directory: compact, not a marketing landing page. */
html.acelere-dark #adminClientDirectoryCount { color: #edf7ef !important; font-weight: 650; font-size: 13px; }
html.acelere-dark #clientsGrid .glass-card {
  background: #151f17 !important;
  padding: 19px !important;
  gap: 12px !important;
  min-width: 0;
}
html.acelere-dark #clientsGrid h3 { color: var(--ac-ink) !important; font-size: 15px !important; }
html.acelere-dark #clientsGrid h3:hover { color: var(--ac-green) !important; }
html.acelere-dark #clientsGrid [id^="clientMenu-"] {
  background: #17241a !important;
  border: 1px solid #35483a !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.38) !important;
}
html.acelere-dark #clientsGrid [id^="clientMenu-"] button { color: #edf6ee !important; }
html.acelere-dark #clientsGrid [id^="clientMenu-"] button:hover { background: #25362a !important; }
html.acelere-dark #searchInput { min-height: 46px; }
/* Authentication and modal controls stay functional and dark. */
html.acelere-dark #loginView { background: #0b0f0c !important; }
html.acelere-dark #loginView > div { max-width: 420px; }
html.acelere-dark #loginView img[src="/logo.png"] { filter: none !important; }
html.acelere-dark #loginView .glass-panel { background: #131b15 !important; border-radius: 14px !important; box-shadow: none !important; }
html.acelere-dark #loginView h1 { font-size: 25px !important; font-weight: 700 !important; letter-spacing: -.025em; }
html.acelere-dark #loginView :is(#loginUser,#loginPass,#loginBtn) { min-height: 47px; }
html.acelere-dark #clientModal,
html.acelere-dark #metaModal { background: rgba(0,0,0,.75) !important; backdrop-filter: none !important; }
html.acelere-dark #clientModal > .glass-panel,
html.acelere-dark #metaModal > .glass-panel { background: #141d16 !important; border-color: #304433 !important; box-shadow: 0 12px 50px rgba(0,0,0,.38) !important; }
html.acelere-dark #clientModal .glass-input { min-height: 44px; }
html.acelere-dark #clientModal textarea { min-height: 86px; }
html.acelere-dark #clientModal input[type="file"] { color: #afc3b3 !important; }
html.acelere-dark #clientModal #saveClientSubmitBtn { min-height: 47px; }
html.acelere-dark #mobileDrawer {
  background: #131c15 !important;
  border-left: 1px solid #304034 !important;
  box-shadow: -16px 0 38px rgba(0,0,0,.32) !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}
html.acelere-dark #mobileDrawerOverlay { background: rgba(0,0,0,.7) !important; backdrop-filter: none !important; }
html.acelere-dark #mobileDrawer button {
  min-height: 46px;
  border-radius: 9px !important;
  padding-block: 11px !important;
  font-size: 13px !important;
}
html.acelere-dark #mobileDrawer button:hover { background: #233629 !important; }
html.acelere-dark #mobileDrawer #drawerLogout { color: var(--ac-danger) !important; }
html.acelere-dark #appShell footer {
  background: #101712 !important;
  border: 0 !important;
  border-top: 1px solid var(--ac-line) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html.acelere-dark #appShell footer img[src="/logo.png"] { filter: none !important; }
html.acelere-dark .leaflet-container { background: #172319 !important; border-radius: 10px !important; }
html.acelere-dark .leaflet-tile { filter: grayscale(.65) brightness(.65) saturate(.7); }
html.acelere-dark .leaflet-control-attribution { display: block !important; background: rgba(15,25,16,.9) !important; font-size: 9px; }
html.acelere-dark #toastContainer > * { max-width: 100%; overflow-wrap: anywhere; }
@media(min-width: 1024px) {
  html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(min-width:768px) and (max-width:1023px) {
  html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
  html.acelere-dark #appShell > header > div {
    height: 64px !important;
    padding-inline: 13px !important;
    gap: 9px !important;
  }
  html.acelere-dark #appShell > header .site-logo { height: 27px !important; max-width: 125px !important; }
  html.acelere-dark #periodSelectorMobile { max-width: 115px !important; font-size: 12px; }
  html.acelere-dark #mobileMenuBtn { min-width: 44px; min-height: 44px; }
  html.acelere-dark #appShell > main { padding: 17px 13px 44px !important; max-width: 100% !important; }
  html.acelere-dark #clientView { gap: 12px !important; }
  html.acelere-dark #adminView { gap: 14px !important; }
  html.acelere-dark :is(#adminView,#clientView) .glass-card { border-radius: 11px !important; }
  html.acelere-dark #clientView > .glass-panel:first-child { padding: 15px !important; border-radius: 11px !important; }
  html.acelere-dark #clientView > .glass-panel:first-child > .relative { align-items: center; gap: 9px; }
  html.acelere-dark #clientView [aria-label="Logomarca do cliente"] { width: 50px !important; height: 50px !important; min-width: 50px !important; padding: 6px !important; }
  html.acelere-dark #clientPortalName { font-size: clamp(19px,5.5vw,24px) !important; }
  html.acelere-dark #clientPortalSelect { min-height: 43px; max-width: 100%; }
  html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) { gap: 9px !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) > .glass-card {
    min-height: 120px;
    padding: 15px 13px !important;
    gap: 16px !important;
    border-radius: 11px !important;
  }
  html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) .uppercase {
    font-size: 11px !important;
    line-height: 1.3;
  }
  html.acelere-dark :is(#clientSpend,#clientLeads,#clientCpl,#clientImpressions,#adminTotalSpend,#adminTotalLeads,#adminAvgCpl,#adminTotalClients) {
    font-size: clamp(19px,5vw,25px) !important;
  }
  html.acelere-dark #clientTrendSection > .glass-card { padding: 17px !important; }
  html.acelere-dark #clientTrendSection .h-56 { height: 202px !important; }
  html.acelere-dark #clientView > .glass-card { padding: 17px !important; }
  html.acelere-dark #clientView table:has(#campaignsBody) { min-width: 0 !important; width: 100%; table-layout: fixed; display: block; }
  html.acelere-dark #clientView table:has(#campaignsBody) thead { display: none !important; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody {
    display: flex; flex-direction: column; gap: 9px; width: 100%; min-width: 0;
  }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody tr {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px 8px;
    padding: 13px;
    border: 1px solid #304334;
    background: #1a281e !important;
    border-radius: 9px;
    min-width: 0; width: 100%;
  }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td {
    display: flex; flex-direction: column; gap: 3px;
    padding: 0 !important; min-width: 0;
    font-size: 12px; overflow-wrap: anywhere;
  }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:first-child { grid-column: 1 / -1; font-size: 13px; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:not(:first-child)::before {
    font-size: 10px; font-weight: 620; color: #a3b5a6;
  }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:nth-child(2)::before { content: "Status"; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:nth-child(3)::before { content: "Investimento"; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:nth-child(4)::before { content: "Conversas"; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:nth-child(5)::before { content: "CPL"; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td:nth-child(6)::before { content: "CTR"; }
  html.acelere-dark #clientView table:has(#campaignsBody) tbody td[colspan] { grid-column: 1/-1; }
  html.acelere-dark #clientAdvancedDetails > summary { padding: 14px 15px; min-height: 49px; }
  html.acelere-dark #clientAdvancedDetails .ac-details-help { display: none; }
  html.acelere-dark #clientAdvancedDetails .ac-details-chevron { margin-left: auto; }
  html.acelere-dark #clientAdvancedDetails .ac-details-content { padding: 13px; }
  html.acelere-dark #clientAdvancedDetails .grid.grid-cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html.acelere-dark #clientAdvancedDetails .glass-card { padding: 14px !important; }
  html.acelere-dark #clientAdvancedDetails #cityMap { height: 220px !important; }
  html.acelere-dark #clientAdvancedDetails .overflow-x-auto { max-width: 100%; }
  html.acelere-dark #clientsGrid { grid-template-columns: minmax(0,1fr) !important; gap: 11px !important; }
  html.acelere-dark #clientsGrid .glass-card { padding: 17px !important; }
  html.acelere-dark #adminView > .flex:first-child { align-items: stretch; }
  html.acelere-dark #adminView > .flex:first-child button { min-height: 44px; }
  html.acelere-dark #clientModal,
  html.acelere-dark #metaModal { padding: 0 !important; align-items: stretch !important; }
  html.acelere-dark #clientModal > .glass-panel,
  html.acelere-dark #metaModal > .glass-panel {
    width: 100% !important; max-width: 100% !important;
    height: 100dvh; max-height: 100dvh !important;
    padding-bottom: env(safe-area-inset-bottom,10px);
    margin: 0 !important; border-radius: 0 !important;
    overflow-y: auto !important;
  }
  html.acelere-dark #clientModal .grid.grid-cols-2 { grid-template-columns: minmax(0,1fr) !important; }
  html.acelere-dark #clientModal .glass-input { font-size: 16px !important; min-height: 46px; }
  html.acelere-dark #clientModal #saveClientSubmitBtn { min-height: 48px; }
  html.acelere-dark #toastContainer {
    left: 12px !important; right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom,0px)) !important; max-width: none !important;
  }
}
@media(max-width:370px) {
  html.acelere-dark #appShell > main { padding-inline: 10px !important; }
  html.acelere-dark #appShell > header .site-logo { max-width: 99px !important; height: 24px !important; }
  html.acelere-dark #periodSelectorMobile { max-width: 105px !important; font-size: 11px !important; }
  html.acelere-dark :is(#clientKpiGrid,#adminKpiGrid) > .glass-card { padding: 13px 10px !important; }
  html.acelere-dark :is(#clientSpend,#clientLeads,#clientCpl,#clientImpressions,#adminTotalSpend,#adminTotalLeads,#adminAvgCpl,#adminTotalClients) {
    font-size: 18px !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  html.acelere-dark *,
  html.acelere-dark *::before,
  html.acelere-dark *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* PDF canvas intentionally NOT restyled; PDF files retain their approved export presentation. */
