/**
 * Doctors My Agency — Design System v4.0
 * Light theme default · Dark theme toggle · Teal/mint healthcare · Mobile-first
 * Applies to ALL dashboard pages (clinic + admin) via dashboard-bootstrap.js
 */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap");

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Light (default)
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Canonical ClinicOS / Doctors My Agency design tokens.
     Every shell (--sa-*, --doc-*, --cos-*, --c-*) aliases these. */

  --ds-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ds-font-display: Montserrat, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ds-primary:        #14967F;
  --ds-primary-hover:  #0E7A68;
  --ds-primary-fill:   #0E7A68; /* AA vs white ~5.3:1 — do not fill with #14967F */
  --ds-on-primary:     #FFFFFF;
  --ds-link:           #0B6456;
  --ds-primary-active: #0B6456;
  --ds-primary-soft:   rgba(20, 150, 127, 0.10);
  --ds-primary-glow:   rgba(20, 150, 127, 0.22);
  --ds-secondary:      #191919;
  --ds-accent:         #FAD069;
  --ds-mint:           #E8F6F2;
  --ds-mint-deep:      #DDF3ED;
  --ds-aqua:           #F2FBFA;
  --ds-yellow-soft:    #FFF7DC;

  --ds-success: #16A34A;
  --ds-warning: #D97706;
  --ds-danger:  #DC2626;
  --ds-info:    #2563EB;

  --ds-bg:         #F7F8FA;
  --ds-bg-clinic:  #F7F8FA;
  --ds-bg-2:       #EEF8F5;
  --ds-surface:    #FFFFFF;
  --ds-surface-2:  #FAFAFA;
  --ds-surface-section: #EEF0F3;
  --ds-surface-hover:   #F3F4F6;
  --ds-elevated:   #FFFFFF;

  --ds-text:       #191919;
  --ds-text-2:     #2A2A2A;
  --ds-text-3:     #3F3F3F;
  --ds-muted:      #666666;
  --ds-faint:      #8A8A8A;

  --ds-border:     #E5E7EB;
  --ds-border-2:   #D4D4D8;

  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-8: 32px;
  --ds-space-10: 40px;
  --ds-space-12: 48px;
  --ds-space-16: 64px;

  --ds-r-control: 10px;
  --ds-r-badge:   8px;
  --ds-r-card:    16px;
  --ds-r-card-sm: 14px;
  --ds-r-modal:   20px;
  --ds-r-feature: 20px;
  --ds-r-hero:    24px;
  --ds-r-sheet:   20px;
  --ds-r-nav:     18px;
  --ds-r-pill:    9999px;

  --ds-grad-primary: linear-gradient(135deg, #14967F 0%, #0B6456 100%);
  --ds-grad-mint:    linear-gradient(135deg, #E8F6F2 0%, #FFFFFF 100%);
  --ds-grad-accent:  linear-gradient(135deg, #FFF7DC 0%, #FAD069 100%);
  --ds-grad-hero:    linear-gradient(135deg, #0B6456 0%, #14967F 55%, #7ACFBD 100%);

  --ds-h-ctrl:   44px;
  --ds-h-ctrl-sm: 40px;
  --ds-h-header: 64px;
  --ds-sidebar:  240px;
  --ds-nav: #0B6456;
  --ds-nav-text: #FFFFFF;
  --ds-nav-muted: rgba(255, 255, 255, 0.72);
  --ds-nav-faint: rgba(255, 255, 255, 0.52);
  --ds-nav-hover: rgba(20, 150, 127, 0.16);
  --ds-nav-active: rgba(20, 150, 127, 0.28);
  --ds-content:  1440px;
  --ds-clinic-content: 1520px;
  --ds-measure: 40rem;
  --ds-measure-wide: 48rem;

  --ds-shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --ds-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
  --ds-shadow-md: 0 2px 8px rgba(15,23,42,.07), 0 12px 28px rgba(15,23,42,.08);
  --ds-ease: 150ms ease;
  --ds-ease-move: 180ms ease;
  --ds-focus: 0 0 0 3px rgba(20, 150, 127, 0.28);

  --ds-z-nav: 40;
  --ds-z-drawer: 50;
  --ds-z-modal: 60;
  --ds-z-toast: 70;

  --ds-bp-sm: 480px;
  --ds-bp-md: 768px;
  --ds-bp-lg: 1024px;
  --ds-bp-xl: 1280px;

  --ds-title: 1.375rem;
  --text-display: 1.875rem;
  --text-title: 1.25rem;
  --text-subtitle: 1rem;
  --text-kpi: 1.875rem;
  --ds-h-display: 1.875rem;
  --ds-section: 1.0625rem;
  --ds-card-title: 0.9375rem;
  --ds-body: 0.9375rem;
  --ds-label: 0.75rem;
  --ds-caption: 0.75rem;

  /* Legacy aliases — do not invent new names on pages */
  --c-blue:        var(--ds-primary);
  --c-blue-h:      var(--ds-primary-hover);
  --c-blue-soft:   var(--ds-primary-soft);
  --c-blue-glow:   var(--ds-primary-glow);
  --c-orange:      var(--ds-primary);
  --c-orange-h:    var(--ds-primary-hover);
  --c-orange-soft: var(--ds-primary-soft);
  --c-green:       var(--ds-success);
  --c-green-soft:  rgba(21,128,61,.10);
  --c-red:         var(--ds-danger);
  --c-red-soft:    rgba(185,28,28,.10);
  --c-amber:       var(--ds-warning);
  --c-amber-soft:  rgba(180,83,9,.10);
  --c-purple:      #7C3AED;
  --c-purple-soft: rgba(124,58,237,.10);

  --bg:            var(--ds-bg);
  --bg-2:          var(--ds-bg-2);
  --surface:       var(--ds-surface);
  --surface-2:     var(--ds-surface-2);
  --surface-3:     #F1F5F9;

  --sidebar-bg:    #0B6456;
  --sidebar-w:     var(--ds-sidebar);
  --sidebar-text:  rgba(255,255,255,.72);
  --sidebar-hover: rgba(20,150,127,.16);
  --sidebar-act:   rgba(20,150,127,.28);

  --text-1:    var(--ds-text);
  --text-2:    var(--ds-text-2);
  --text-3:    var(--ds-text-3);
  --muted:     var(--ds-muted);
  --faint:     var(--ds-faint);
  --placeholder: var(--ds-faint);

  --border:    var(--ds-border);
  --border-2:  var(--ds-border-2);

  --shadow-xs: var(--ds-shadow-xs);
  --shadow-sm: var(--ds-shadow-sm);
  --shadow-md: var(--ds-shadow-md);
  --shadow-lg: 0 4px 16px rgba(15,23,42,.08), 0 28px 56px rgba(15,23,42,.10);

  --r-xs:   var(--ds-r-control);
  --r-sm:   var(--ds-r-control);
  --r-md:   var(--ds-r-card);
  --r-lg:   var(--ds-r-modal);
  --r-xl:   var(--ds-r-modal);
  --r-2xl:  var(--ds-r-modal);
  --r-full: var(--ds-r-pill);

  --topbar-h:      var(--ds-h-header);
  --content-max:   var(--ds-content);
  --page-pad:      var(--ds-space-6);
  --gap:           var(--ds-space-5);

  --f-xs:   0.75rem;
  --f-sm:   0.8125rem;
  --f-base: var(--ds-body);
  --f-md:   1rem;
  --f-lg:   1.125rem;
  --f-xl:   var(--ds-title);
  --f-2xl:  1.75rem;
  --f-3xl:  2.25rem;

  --cos-font: var(--ds-font);
  --cos-primary: var(--ds-primary);
  --cos-primary-h: var(--ds-primary-hover);
  --cos-primary-a: var(--ds-primary-active);
  --cos-primary-soft: var(--ds-primary-soft);
  --cos-accent: var(--ds-accent);
  --cos-success: var(--ds-success);
  --cos-warning: var(--ds-warning);
  --cos-danger: var(--ds-danger);
  --cos-info: var(--ds-info);
  --cos-bg: var(--ds-bg);
  --cos-surface: var(--ds-surface);
  --cos-surface-2: var(--ds-surface-2);
  --cos-border: var(--ds-border);
  --cos-text: var(--ds-text);
  --cos-text-2: var(--ds-text-3);
  --cos-muted: var(--ds-muted);
  --cos-r: var(--ds-r-control);
  --cos-r-card: var(--ds-r-card);
  --cos-r-modal: var(--ds-r-modal);
  --cos-r-pill: var(--ds-r-pill);
  --cos-space-1: var(--ds-space-1);
  --cos-space-2: var(--ds-space-2);
  --cos-space-3: var(--ds-space-3);
  --cos-space-4: var(--ds-space-4);
  --cos-space-5: var(--ds-space-5);
  --cos-space-6: var(--ds-space-6);
  --cos-space-8: var(--ds-space-8);
  --cos-h-ctrl: var(--ds-h-ctrl);
  --cos-h-header: var(--ds-h-header);
  --cos-sidebar: var(--ds-sidebar);
  --cos-ease: var(--ds-ease);
  --cos-z-nav: var(--ds-z-nav);
  --cos-z-drawer: var(--ds-z-drawer);
  --cos-z-modal: var(--ds-z-modal);
  --cos-focus: var(--ds-focus);

  --sa-orange: var(--ds-primary);
  --sa-orange-dark: var(--ds-primary-hover);
  --sa-orange-soft: var(--ds-primary-soft);
  --sa-orange-border: rgba(20, 150, 127, 0.28);
  --sa-sidebar-w: var(--ds-sidebar);
  --sa-content-max: var(--ds-content);
  --sa-topbar-h: var(--ds-h-header);
  --sa-space-1: var(--ds-space-1);
  --sa-space-2: var(--ds-space-2);
  --sa-space-3: var(--ds-space-3);
  --sa-space-4: var(--ds-space-4);
  --sa-space-5: var(--ds-space-6);
  --sa-space-6: var(--ds-space-8);
  --sa-sidebar-bg: var(--ds-nav);
  --sa-sidebar-border: rgba(255, 255, 255, 0.10);
  --sa-sidebar-text: #ffffff;
  --sa-sidebar-muted: #CBD5E1;
  --sa-main-bg: var(--ds-bg);
  --sa-card-bg: var(--ds-surface);
  --sa-input-bg: var(--ds-surface-2);
  --sa-input-border: var(--ds-border-2);
  --sa-text: var(--ds-text);
  --sa-muted: var(--ds-muted);
  --sa-border: var(--ds-border);
  --sa-shadow: var(--ds-shadow-sm);
  --sa-shadow-sm: var(--ds-shadow-xs);
  --sa-radius: var(--ds-r-card);
  --sa-radius-sm: var(--ds-r-control);

  --doc-blue: var(--ds-primary);
  --doc-blue-h: var(--ds-primary-hover);
  --doc-blue-soft: var(--ds-primary-soft);
  --doc-orange: var(--ds-primary);
  --doc-sidebar: var(--ds-nav);
  --doc-sidebar-border: rgba(255, 255, 255, 0.12);
  --doc-sidebar-w: var(--ds-sidebar);
  --doc-topbar-h: var(--ds-h-header);
  --doc-bg: var(--ds-bg);
  --doc-surface: var(--ds-surface);
  --doc-surface-2: var(--ds-surface-2);
  --doc-text: var(--ds-text);
  --doc-muted: var(--ds-muted);
  --doc-border: var(--ds-border);
  --doc-border-2: var(--ds-border-2);
  --doc-shadow: var(--ds-shadow-sm);
  --doc-wa: var(--ds-success);
}

/* ═══════════════════════════════════════════════════════════
   DARK THEME — html[data-theme="dark"]
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] {
  color-scheme: dark;
  --ds-primary:        #3DB8A3;
  --ds-primary-hover:  #5CC9B8;
  --ds-primary-active: #14967F;
  --ds-primary-fill:   #0E7A68;
  --ds-on-primary:     #FFFFFF;
  --ds-link:           #5CC9B8;
  --ds-primary-soft:   rgba(61, 184, 163, 0.16);
  --ds-primary-glow:   rgba(61, 184, 163, 0.28);
  --ds-bg:             #0B1220;
  --ds-bg-clinic:      #0B1220;
  --ds-bg-2:           #121C2A;
  --ds-surface:        #12202C;
  --ds-surface-2:      #182830;
  --ds-surface-section:#0F1A24;
  --ds-surface-hover:  #1A2A36;
  --ds-elevated:       #1A2C38;
  --ds-text:           #F1F5F9;
  --ds-text-2:         #E2E8F0;
  --ds-text-3:         #CBD5E1;
  --ds-muted:          #94A3B8;
  --ds-faint:          #64748B;
  --ds-border:         rgba(148, 163, 184, 0.14);
  --ds-border-2:       rgba(148, 163, 184, 0.26);
  --ds-mint:           rgba(14, 122, 104, 0.18);
  --ds-mint-deep:      rgba(14, 122, 104, 0.28);
  --ds-aqua:           #0A1518;
  --ds-yellow-soft:    rgba(250, 208, 105, 0.12);
  --ds-nav:            #0B6456;
  --ds-nav-text:       #FFFFFF;
  --ds-nav-muted:      rgba(255, 255, 255, 0.72);
  --ds-nav-faint:      rgba(255, 255, 255, 0.52);
  --ds-nav-hover:      rgba(20, 150, 127, 0.16);
  --ds-nav-active:     rgba(20, 150, 127, 0.28);
  --ds-shadow-xs:      0 0 0 1px var(--ds-border);
  --ds-shadow-sm:      0 0 0 1px var(--ds-border);
  --ds-shadow-md:      0 0 0 1px var(--ds-border-2);
  --ds-focus:          0 0 0 3px rgba(61, 184, 163, 0.35);
  --ds-grad-primary:   linear-gradient(135deg, #0E7A68 0%, #0B6456 100%);
  --bg:            var(--ds-bg);
  --bg-2:          var(--ds-bg-2);
  --surface:       var(--ds-surface);
  --surface-2:     var(--ds-surface-2);
  --surface-3:     var(--ds-surface-hover);
  --sidebar-bg:    var(--ds-nav);
  --text-1:        var(--ds-text);
  --text-2:        var(--ds-text-2);
  --text-3:        var(--ds-text-3);
  --muted:         var(--ds-muted);
  --faint:         var(--ds-faint);
  --placeholder:   var(--ds-faint);
  --border:        var(--ds-border);
  --border-2:      var(--ds-border-2);
  --sidebar-text:  var(--ds-nav-muted);
  --sidebar-hover: var(--ds-nav-hover);
  --sidebar-act:   var(--ds-nav-active);
  --doc-bg:        var(--ds-bg);
  --doc-surface:   var(--ds-surface);
  --doc-surface-2: var(--ds-surface-2);
  --doc-text:      var(--ds-text);
  --doc-muted:     var(--ds-muted);
  --doc-border:    var(--ds-border);
  --doc-border-2:  var(--ds-border-2);
  --doc-sidebar:   var(--ds-nav);
  --sa-main-bg:    var(--ds-bg);
  --sa-card-bg:    var(--ds-surface);
  --sa-text:       var(--ds-text);
  --sa-muted:      var(--ds-muted);
  --sa-sidebar-bg: var(--ds-nav);
  --sa-input-bg:   var(--ds-surface-2);
  --sa-input-border: var(--ds-border-2);
  --cos-bg:        var(--ds-bg);
  --cos-surface:   var(--ds-surface);
  --cos-text:      var(--ds-text);
  --cos-muted:     var(--ds-muted);
  --cos-border:    var(--ds-border);
}

/* ═══════════════════════════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

/* Scoped to Next.js pages that DO have body.min-h-screen */
body.min-h-screen,
body.bg-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--f-base);
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.56;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Safe image/media constraint — no wildcard, no SVG blowup */
img, video { max-width: 100%; height: auto; }
/* REMOVED: * { max-width: 100%; } — this caused SVG illustrations to fill viewport */

/* Clinic static shell — token overrides */
html.doc-static {
  --sidebar-bg:    var(--ds-nav);
  --sidebar-text:  var(--ds-nav-muted);
  --sidebar-hover: var(--ds-nav-hover);
  --sidebar-act:   var(--ds-nav-active);
  --sidebar-w:     var(--ds-sidebar);
}
/* No wildcard max-width override needed — doc-static has its own layout */

/* ═══════════════════════════════════════════════════════════
   2. SIDEBAR — scoped to Next.js (body.min-h-screen) only.
      Doc-static pages use .doc-sidebar in dashboard-doctor-shell.css.
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen aside,
body.min-h-screen div[class*="w-64"][class*="bg-"],
body.min-h-screen div[class*="w-56"][class*="bg-"],
body.min-h-screen nav[class*="sidebar"] {
  background: var(--sidebar-bg) !important;
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Brand */
body.min-h-screen aside > div:first-child,
body.min-h-screen aside [class*="brand"],
body.min-h-screen aside [class*="logo-wrap"] {
  padding: 20px 18px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  flex-shrink: 0 !important;
}

body.min-h-screen aside [class*="font-bold"][class*="text-white"],
body.min-h-screen aside strong,
body.min-h-screen aside .dma-brand-name {
  color: #F8FBFF !important;
  font-family: 'Montserrat', var(--ds-font), sans-serif !important;
  font-weight: 800 !important;
  font-size: .95rem !important;
  letter-spacing: -.01em !important;
}

body.min-h-screen aside small,
body.min-h-screen aside span[class*="text-xs"],
body.min-h-screen aside [class*="text-muted"],
body.min-h-screen aside [class*="text-slate"],
body.min-h-screen aside [class*="text-gray"] {
  color: var(--sidebar-text) !important;
  font-size: .72rem !important;
}

/* Nav section label */
body.min-h-screen aside nav [class*="uppercase"],
body.min-h-screen aside nav [class*="section-label"],
body.min-h-screen aside .dma-nav-section {
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  padding: 14px 16px 4px !important;
  display: block !important;
}

/* Nav links */
body.min-h-screen aside a,
body.min-h-screen aside nav a,
body.min-h-screen aside [class*="nav-item"] {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  margin: 1px 6px !important;
  border-radius: var(--r-md) !important;
  color: var(--sidebar-text) !important;
  font-size: var(--f-sm) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-left: 2px solid transparent !important;
  transition: background .13s, color .13s !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body.min-h-screen aside a:hover,
body.min-h-screen aside nav a:hover {
  background: var(--sidebar-hover) !important;
  color: #FFFFFF !important;
}

/* Active */
body.min-h-screen aside a[class*="bg-"],
body.min-h-screen aside a[class*="active"],
body.min-h-screen aside a[aria-current="page"],
body.min-h-screen aside a[class*="text-brand"],
body.min-h-screen aside a[class*="text-white"][class*="bg-"] {
  background: var(--sidebar-act) !important;
  color: #FFFFFF !important;
  border-left-color: var(--c-blue) !important;
  font-weight: 700 !important;
}

body.min-h-screen aside a svg,
body.min-h-screen aside nav a svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  opacity: .9 !important;
}

/* Sidebar footer */
body.min-h-screen aside > div:last-child,
body.min-h-screen aside [class*="border-t"] {
  border-top: 1px solid rgba(255,255,255,.06) !important;
  padding: 14px 16px !important;
  flex-shrink: 0 !important;
}

body.min-h-screen aside > div:last-child [class*="font-"],
body.min-h-screen aside [class*="border-t"] strong {
  color: #E8EEF8 !important;
  font-size: .85rem !important;
}

/* Avatar */
body.min-h-screen aside [class*="rounded-full"][class*="bg-brand"],
body.min-h-screen aside [class*="rounded-full"][class*="bg-blue"],
body.min-h-screen aside [class*="rounded-full"][class*="bg-orange"],
body.min-h-screen aside .dma-avatar {
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-h)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border: none !important;
  flex-shrink: 0 !important;
}

/* WhatsApp green dot */
body.min-h-screen aside a [class*="wa-dot"],
body.min-h-screen aside a [class*="text-green"] {
  color: #4ADE80 !important;
  font-size: .65rem !important;
  font-weight: 900 !important;
  width: 16px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   3. TOPBAR
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen header:not(aside *):not(main *),
body.min-h-screen [class*="topbar"]:not(aside *):not(main *) {
  height: var(--topbar-h) !important;
  min-height: var(--topbar-h) !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 1.5rem !important;
  gap: 1rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  box-shadow: 0 1px 0 var(--border) !important;
}

/* Bell / icon buttons in topbar */
body.min-h-screen header button {
  width: 36px !important;
  height: 36px !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: background .14s, border-color .14s !important;
}

body.min-h-screen header button:hover {
  background: var(--c-blue-soft) !important;
  border-color: var(--c-blue) !important;
  color: var(--c-blue) !important;
}

/* ═══════════════════════════════════════════════════════════
   4. MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main.flex-1,
body.min-h-screen main[class*="flex-1"] {
  background: var(--bg) !important;
  padding: var(--page-pad) !important;
  overflow-x: hidden !important;
}

body.min-h-screen main > .p-6,
body.min-h-screen main > .p-4,
body.min-h-screen main > [class*="space-y"],
body.min-h-screen main.flex-1 > div,
body.min-h-screen main > div[class*="p-"] {
  max-width: var(--content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   5. PAGE HEADERS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main h1 {
  font-family: 'Montserrat', var(--ds-font), sans-serif !important;
  font-size: var(--f-xl) !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
  color: var(--text-1) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
  position: relative !important;
  padding-bottom: 2px !important;
}

body.min-h-screen main h1::after {
  content: "" !important;
  display: block !important;
  width: 32px !important;
  height: 3px !important;
  border-radius: 2px !important;
  margin-top: 8px !important;
  background: linear-gradient(90deg, var(--c-blue), var(--c-blue-h)) !important;
}

body.min-h-screen main h2 {
  font-family: 'Montserrat', var(--ds-font), sans-serif !important;
  font-size: var(--f-base) !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  letter-spacing: -.01em !important;
  margin: 0 !important;
}

body.min-h-screen main h3 {
  font-size: var(--f-sm) !important;
  font-weight: 700 !important;
  color: var(--text-2) !important;
  margin: 0 !important;
}

body.min-h-screen main p[class*="text-muted"],
body.min-h-screen main p.text-muted {
  color: var(--muted) !important;
  font-size: var(--f-sm) !important;
}

/* ═══════════════════════════════════════════════════════════
   6. CARDS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main .card,
body.min-h-screen main [class*="rounded-card"],
body.min-h-screen main [class*="shadow-card"],
body.min-h-screen main [class*="shadow-modal"] {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden !important;
  transition: box-shadow .2s, transform .2s, border-color .2s !important;
}

body.min-h-screen main .card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--surface) !important;
  min-height: 52px !important;
}

body.min-h-screen main .card-body {
  padding: 1.125rem 1.25rem 1.375rem !important;
}

@media (hover: hover) {
  body.min-h-screen main .card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(37,99,235,.25) !important;
  }
}

/* KPI stat cards — colored top borders */
body.min-h-screen main [class*="grid-cols-4"] > .card:nth-child(1),
body.min-h-screen main [class*="lg:grid-cols-4"] > .card:nth-child(1) { border-top: 3px solid var(--c-blue) !important; }
body.min-h-screen main [class*="grid-cols-4"] > .card:nth-child(2),
body.min-h-screen main [class*="lg:grid-cols-4"] > .card:nth-child(2) { border-top: 3px solid var(--c-green) !important; }
body.min-h-screen main [class*="grid-cols-4"] > .card:nth-child(3),
body.min-h-screen main [class*="lg:grid-cols-4"] > .card:nth-child(3) { border-top: 3px solid var(--c-orange) !important; }
body.min-h-screen main [class*="grid-cols-4"] > .card:nth-child(4),
body.min-h-screen main [class*="lg:grid-cols-4"] > .card:nth-child(4) { border-top: 3px solid var(--c-red) !important; }

/* Stat numbers */
body.min-h-screen main .card-body [class*="text-2xl"],
body.min-h-screen main .card-body [class*="text-3xl"],
body.min-h-screen main .card-body [class*="text-4xl"] {
  font-family: 'Montserrat', var(--ds-font), sans-serif !important;
  font-weight: 800 !important;
  color: var(--text-1) !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
}

body.min-h-screen main .card-body [class*="text-xs"],
body.min-h-screen main .card-body [class*="uppercase"] {
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}

/* ═══════════════════════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════════════════════ */

/* Primary — teal, 10px, 44px, no gradient */
body.min-h-screen main button[class*="bg-brand"],
body.min-h-screen main a[class*="bg-brand"],
body.min-h-screen main button[class*="bg-blue"],
.dma-btn-primary, .ds-btn-primary {
  background: #14967F !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: var(--f-sm) !important;
  padding: 0 20px !important;
  height: 44px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: none !important;
  transition: background .15s, transform .15s, box-shadow .15s !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

body.min-h-screen main button[class*="bg-brand"]:hover,
body.min-h-screen main a[class*="bg-brand"]:hover {
  opacity: .92 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px var(--c-blue-glow) !important;
}

/* Orange accent buttons */
body.min-h-screen main button[class*="bg-orange"],
.dma-btn-accent {
  background: #FAD069 !important;
  color: #191919 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}

/* Ghost / outline */
body.min-h-screen main button[class*="border-brand"],
body.min-h-screen main a[class*="border-brand"],
body.min-h-screen main button.rounded-btn:not([class*="bg-brand"]):not([class*="bg-red"]) {
  background: var(--surface) !important;
  color: var(--c-blue) !important;
  border: 1.5px solid rgba(37,99,235,.45) !important;
  border-radius: var(--r-md) !important;
  font-weight: 700 !important;
  font-size: var(--f-sm) !important;
  padding: 0 18px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  transition: background .14s !important;
  text-decoration: none !important;
}

body.min-h-screen main button[class*="border-brand"]:hover {
  background: var(--c-blue-soft) !important;
}

/* Danger */
body.min-h-screen main button[class*="bg-red"] {
  background: var(--c-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r-md) !important;
  height: 40px !important;
  padding: 0 18px !important;
}

/* Secondary ghost */
body.min-h-screen main button[class*="bg-subtle"],
body.min-h-screen main button.rounded-btn[class*="bg-slate"],
body.min-h-screen main button.rounded-btn[class*="bg-gray"] {
  background: var(--surface-3) !important;
  color: var(--text-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  height: 40px !important;
  padding: 0 16px !important;
  font-weight: 600 !important;
  font-size: var(--f-sm) !important;
  cursor: pointer !important;
}

/* ═══════════════════════════════════════════════════════════
   8. FORM CONTROLS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main input[type="text"],
body.min-h-screen main input[type="search"],
body.min-h-screen main input[type="email"],
body.min-h-screen main input[type="tel"],
body.min-h-screen main input[type="number"],
body.min-h-screen main input[type="password"],
body.min-h-screen main input[type="url"],
body.min-h-screen main textarea,
body.min-h-screen main select,
body.min-h-screen main .input {
  background: var(--surface) !important;
  border: 1.5px solid var(--border-2) !important;
  border-radius: var(--r-md) !important;
  color: var(--text-1) !important;
  font-size: var(--f-sm) !important;
  font-family: inherit !important;
  padding: 10px 14px !important;
  height: 42px !important;
  width: 100% !important;
  transition: border-color .15s, box-shadow .15s !important;
  outline: none !important;
  -webkit-appearance: none !important;
}

body.min-h-screen main textarea {
  height: auto !important;
  min-height: 100px !important;
  resize: vertical !important;
}

body.min-h-screen main input:focus,
body.min-h-screen main textarea:focus,
body.min-h-screen main select:focus {
  border-color: var(--c-blue) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.14) !important;
}

body.min-h-screen main label {
  font-size: var(--f-xs) !important;
  font-weight: 700 !important;
  color: var(--text-2) !important;
  letter-spacing: .02em !important;
  display: block !important;
  margin-bottom: 5px !important;
}

/* ═══════════════════════════════════════════════════════════
   9. FILTER PILLS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main [class*="flex-wrap"] > button[class*="rounded-full"],
body.min-h-screen main [class*="flex-wrap"] > button[class*="rounded-btn"],
body.min-h-screen main .dma-filter-row button {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: var(--r-full) !important;
  font-size: var(--f-xs) !important;
  font-weight: 700 !important;
  border: 1.5px solid var(--border-2) !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: background .13s, border-color .13s, color .13s !important;
}

body.min-h-screen main [class*="flex-wrap"] > button[class*="bg-brand"],
body.min-h-screen main .dma-filter-row button[class*="bg-brand"],
body.min-h-screen main .dma-filter-row button.active {
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-h)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px var(--c-blue-glow) !important;
}

body.min-h-screen main .dma-filter-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .5rem !important;
  padding: .875rem 1rem !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-xs) !important;
}

/* ═══════════════════════════════════════════════════════════
   10. SETTINGS TABS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main .dma-settings-tabs,
body.min-h-screen main [class*="border-b"][class*="flex"]:has(> button:nth-child(2)) {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  border-bottom: 2px solid var(--border) !important;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  gap: 0 !important;
}

body.min-h-screen main .dma-settings-tabs::-webkit-scrollbar { display: none !important; }

body.min-h-screen main .dma-settings-tabs button,
body.min-h-screen main [class*="border-b"]:has(> button:nth-child(2)) > button {
  flex-shrink: 0 !important;
  padding: 10px 18px !important;
  font-size: var(--f-sm) !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: color .14s, border-color .14s !important;
}

body.min-h-screen main .dma-settings-tabs button.dma-tab-active,
body.min-h-screen main .dma-settings-tabs button[class*="text-brand"],
body.min-h-screen main [class*="border-b"]:has(> button:nth-child(2)) > button[class*="text-brand"],
body.min-h-screen main [class*="border-b"]:has(> button:nth-child(2)) > button[class*="border-brand"] {
  color: var(--c-blue) !important;
  -webkit-text-fill-color: var(--c-blue) !important;
  border-bottom-color: var(--c-blue) !important;
}

/* ═══════════════════════════════════════════════════════════
   11. TABLES
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main div:has(> table),
body.min-h-screen main .dma-table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
}

body.min-h-screen main table {
  width: 100% !important;
  min-width: 580px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  background: transparent !important;
}

body.min-h-screen main table thead th {
  padding: 11px 16px !important;
  font-size: .67rem !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  background: var(--surface-2) !important;
  white-space: nowrap !important;
  border-bottom: 1px solid var(--border) !important;
}

body.min-h-screen main table thead th:first-child { border-radius: var(--r-lg) 0 0 0 !important; }
body.min-h-screen main table thead th:last-child  { border-radius: 0 var(--r-lg) 0 0 !important; }

body.min-h-screen main table tbody td {
  padding: 13px 16px !important;
  font-size: var(--f-sm) !important;
  color: var(--text-2) !important;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: middle !important;
}

body.min-h-screen main table tbody tr:last-child td { border-bottom: none !important; }

body.min-h-screen main table tbody tr:hover td {
  background: rgba(37,99,235,.03) !important;
}

/* Badge pills */
body.min-h-screen main [class*="badge"],
body.min-h-screen main span[class*="rounded-full"][class*="text-xs"][class*="font-"] {
  font-size: .67rem !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: var(--r-full) !important;
  letter-spacing: .02em !important;
  display: inline-block !important;
}

/* ═══════════════════════════════════════════════════════════
   12. TOGGLE SWITCHES
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main button[role="switch"],
body.min-h-screen main button[aria-checked] {
  width: 46px !important;
  height: 26px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  border-radius: var(--r-full) !important;
  padding: 3px !important;
  position: relative !important;
  cursor: pointer !important;
  border: none !important;
  flex-shrink: 0 !important;
}

body.min-h-screen main button[aria-checked="false"] { background: var(--border-2) !important; }
body.min-h-screen main button[aria-checked="true"]  { background: var(--c-blue) !important; }

body.min-h-screen main button[role="switch"] span,
body.min-h-screen main button[aria-checked] span {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
  transition: transform .2s !important;
}

body.min-h-screen main button[aria-checked="false"] span { transform: translateX(0) !important; }
body.min-h-screen main button[aria-checked="true"]  span { transform: translateX(20px) !important; }

/* ═══════════════════════════════════════════════════════════
   13. QUICK ACTION TILES
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main .dma-quick-actions,
body.min-h-screen main .card-body [class*="grid-cols-3"]:has(> button[class*="flex-col"]),
body.min-h-screen main .card-body [class*="grid-cols-2"]:has(> button[class*="flex-col"]) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .75rem !important;
}

body.min-h-screen main .dma-quick-actions button,
body.min-h-screen main .card-body [class*="grid-cols-3"] button[class*="flex-col"],
body.min-h-screen main .card-body [class*="grid-cols-2"] button[class*="flex-col"] {
  width: 100% !important;
  max-width: none !important;
  min-height: 96px !important;
  height: auto !important;
  padding: .875rem .625rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  background: var(--surface-2) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  font-size: .73rem !important;
  font-weight: 700 !important;
  color: var(--text-1) !important;
  -webkit-text-fill-color: var(--text-1) !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s !important;
}

body.min-h-screen main .dma-quick-actions button svg,
body.min-h-screen main .card-body [class*="grid-cols-3"] button[class*="flex-col"] svg {
  width: 24px !important;
  height: 24px !important;
  padding: 7px !important;
  border-radius: var(--r-sm) !important;
  background: var(--c-blue-soft) !important;
  color: var(--c-blue) !important;
  box-sizing: content-box !important;
  flex-shrink: 0 !important;
}

@media (hover: hover) {
  body.min-h-screen main .dma-quick-actions button:hover,
  body.min-h-screen main .card-body [class*="grid-cols-3"] button[class*="flex-col"]:hover {
    background: var(--c-blue-soft) !important;
    border-color: var(--c-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px var(--c-blue-glow) !important;
    color: var(--c-blue-h) !important;
    -webkit-text-fill-color: var(--c-blue-h) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   14. EMPTY STATES
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main [class*="flex-col"][class*="items-center"][class*="justify-center"] svg {
  color: var(--faint) !important;
  width: 44px !important;
  height: 44px !important;
}

body.min-h-screen main [class*="flex-col"][class*="items-center"][class*="justify-center"] p,
body.min-h-screen main .dma-table-empty td {
  font-size: var(--f-sm) !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  text-align: center !important;
}

/* ═══════════════════════════════════════════════════════════
   15. DAILY BRIEF BANNER
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main [class*="border-l-4"][class*="border-l-brand"],
body.min-h-screen main [class*="border-l-brand"],
body.min-h-screen main .dma-brief-banner {
  border-left: 4px solid var(--c-blue) !important;
  background: linear-gradient(90deg, rgba(37,99,235,.06) 0%, transparent 100%) !important;
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  padding: 14px 18px !important;
}

/* Greeting text */
body.min-h-screen main [class*="text-2xl"][class*="font-bold"]:first-of-type {
  font-family: 'Montserrat', var(--ds-font), sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
}

/* ═══════════════════════════════════════════════════════════
   16. BILLING / PLAN CARDS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main [class*="popular"],
body.min-h-screen main [class*="badge-popular"] {
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-h)) !important;
  color: #fff !important;
  font-size: .67rem !important;
  font-weight: 800 !important;
  padding: 3px 10px !important;
  border-radius: var(--r-full) !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

body.min-h-screen main [class*="text-4xl"][class*="font-bold"],
body.min-h-screen main [class*="text-3xl"][class*="font-extrabold"] {
  font-family: 'Montserrat', var(--ds-font), sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
}

/* ═══════════════════════════════════════════════════════════
   17. MODALS
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen [class*="dialog"],
body.min-h-screen [role="dialog"],
body.min-h-screen [class*="modal"] {
  border-radius: var(--r-xl) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  background: var(--surface) !important;
  max-width: 560px !important;
  width: calc(100% - 2rem) !important;
}

body.min-h-screen .fixed.inset-0[class*="bg-black"],
body.min-h-screen [class*="backdrop"],
body.min-h-screen [class*="overlay"] {
  background: rgba(2,6,23,.6) !important;
  backdrop-filter: blur(4px) !important;
}

/* ═══════════════════════════════════════════════════════════
   18. SCROLLBARS
   ═══════════════════════════════════════════════════════════ */
/* Scoped scrollbar — only doc-static and Next.js main areas, not every element */
.doc-main, .doc-sidebar, body.min-h-screen main, body.min-h-screen aside {
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ═══════════════════════════════════════════════════════════
   19. SKELETON / LOADING
   ═══════════════════════════════════════════════════════════ */
body.min-h-screen main .skeleton,
body.min-h-screen main [class*="skeleton"] {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%) !important;
  background-size: 200% 100% !important;
  animation: ds-shimmer 1.5s infinite !important;
  border-radius: var(--r-sm) !important;
}

@keyframes ds-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   20. FOCUS (Accessibility)
   ═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--c-blue) !important;
  outline-offset: 2px !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none !important; }

/* ═══════════════════════════════════════════════════════════
   21. DARK THEME OVERRIDES
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] body.min-h-screen main .card,
html[data-theme="dark"] body.min-h-screen main [class*="rounded-card"] {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] body.min-h-screen main input,
html[data-theme="dark"] body.min-h-screen main textarea,
html[data-theme="dark"] body.min-h-screen main select {
  background: var(--surface-2) !important;
  border-color: var(--border-2) !important;
  color: var(--text-1) !important;
}

html[data-theme="dark"] body.min-h-screen main .dma-filter-row {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] body.min-h-screen main table thead th {
  background: var(--surface-2) !important;
}

html[data-theme="dark"] body.min-h-screen main button[class*="bg-subtle"],
html[data-theme="dark"] body.min-h-screen main button.rounded-btn[class*="bg-slate"] {
  background: var(--surface-3) !important;
  color: var(--text-2) !important;
  border-color: var(--border) !important;
}

/* Dark status colours — keep them BRIGHT */
html[data-theme="dark"] .text-green-600,
html[data-theme="dark"] [class*="text-green"] { color: #4ADE80 !important; }
html[data-theme="dark"] .text-red-600,
html[data-theme="dark"] [class*="text-red"]   { color: #F87171 !important; }
html[data-theme="dark"] [class*="text-blue"]  { color: #60A5FA !important; }
html[data-theme="dark"] [class*="text-amber"] { color: #FBBF24 !important; }
html[data-theme="dark"] [class*="text-yellow"] { color: #FDE047 !important; }

/* ═══════════════════════════════════════════════════════════
   22. THEME TOGGLE BUTTON (global, auto-injected by bootstrap)
   ═══════════════════════════════════════════════════════════ */
#dma-theme-toggle {
  position: fixed !important;
  bottom: 80px !important;
  right: 16px !important;
  z-index: 500 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--border-2) !important;
  box-shadow: var(--shadow-md) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-2) !important;
  font-size: 1.2rem !important;
  transition: background .2s, box-shadow .2s !important;
}

#dma-theme-toggle:hover {
  background: var(--c-blue-soft) !important;
  border-color: var(--c-blue) !important;
  color: var(--c-blue) !important;
}

@media (min-width: 769px) {
  #dma-theme-toggle {
    bottom: 24px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   23. MOBILE — Bottom Navigation Bar
   ═══════════════════════════════════════════════════════════ */
#dma-mobile-nav {
  display: none !important;
}

@media (max-width: 768px) {
  /* Hide Next.js sidebar on mobile (doc-static sidebar handled by dashboard-doctor-shell.css) */
  body.min-h-screen aside,
  body.min-h-screen div[class*="w-64"][class*="bg-"],
  body.min-h-screen div[class*="w-56"][class*="bg-"],
  body.min-h-screen nav[class*="sidebar"] {
    display: none !important;
  }

  /* Full width content */
  body.min-h-screen main.flex-1,
  body.min-h-screen main[class*="flex-1"] {
    margin-left: 0 !important;
    padding: .875rem .875rem 80px !important;
  }

  /* Topbar on mobile */
  body.min-h-screen header:not(aside *) {
    padding: 0 1rem !important;
  }

  /* Page headings smaller */
  body.min-h-screen main h1 {
    font-size: 1.25rem !important;
  }

  /* Stat grid 2-col on mobile */
  body.min-h-screen main [class*="grid-cols-4"],
  body.min-h-screen main [class*="lg:grid-cols-4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .625rem !important;
  }

  /* Two-col section grids → single column */
  body.min-h-screen main [class*="lg:grid-cols-2"],
  body.min-h-screen main [class*="lg:grid-cols-3"] {
    grid-template-columns: 1fr !important;
    gap: .75rem !important;
  }

  /* Quick actions — 3 across even on mobile */
  body.min-h-screen main .dma-quick-actions,
  body.min-h-screen main .card-body [class*="grid-cols-3"]:has(> button[class*="flex-col"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .5rem !important;
  }

  body.min-h-screen main .dma-quick-actions button,
  body.min-h-screen main .card-body [class*="grid-cols-3"] button[class*="flex-col"] {
    min-height: 80px !important;
    padding: .625rem .375rem !important;
    font-size: .67rem !important;
  }

  body.min-h-screen main .dma-quick-actions button svg,
  body.min-h-screen main .card-body button[class*="flex-col"] svg {
    width: 20px !important; height: 20px !important; padding: 5px !important;
  }

  /* Filter pills horizontal scroll — NO wrapping */
  body.min-h-screen main .dma-filter-row,
  body.min-h-screen main [class*="flex-wrap"] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  body.min-h-screen main .dma-filter-row::-webkit-scrollbar { display: none !important; }

  /* Card padding tighter */
  body.min-h-screen main .card-body { padding: .875rem !important; }
  body.min-h-screen main .card-header { padding: .875rem !important; }

  /* CTA buttons compact */
  body.min-h-screen main button[class*="bg-brand"],
  body.min-h-screen main a[class*="bg-brand"] {
    height: 38px !important;
    padding: 0 14px !important;
    font-size: .75rem !important;
  }

  /* Messages split — vertical on mobile */
  body.min-h-screen main [class*="lg:grid-cols-3"] > div:first-child {
    height: 200px !important;
    overflow-y: auto !important;
  }

  /* Table → card stack on mobile */
  body.min-h-screen main div:has(> table) {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  body.min-h-screen main table,
  body.min-h-screen main table thead,
  body.min-h-screen main table tbody,
  body.min-h-screen main table tr,
  body.min-h-screen main table th,
  body.min-h-screen main table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.min-h-screen main table thead { display: none !important; }

  body.min-h-screen main table tbody tr {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
    margin-bottom: .75rem !important;
    box-shadow: var(--shadow-xs) !important;
  }

  body.min-h-screen main table tbody td {
    border-bottom: 1px solid var(--border) !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
    font-size: var(--f-sm) !important;
  }

  body.min-h-screen main table tbody td:last-child { border-bottom: none !important; }

  body.min-h-screen main table tbody td::before {
    content: attr(data-label) !important;
    font-size: .67rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: var(--muted) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    text-align: left !important;
  }

  /* Show bottom nav on mobile */
  #dma-mobile-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: var(--sidebar-bg) !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    height: 64px !important;
    align-items: stretch !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,.35) !important;
    padding: 0 !important;
  }

  #dma-mobile-nav a {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #64748B !important;
    text-decoration: none !important;
    font-size: .6rem !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    padding: 6px 2px !important;
    border-top: 2px solid transparent !important;
    transition: color .14s, border-color .14s !important;
  }

  #dma-mobile-nav a svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }

  #dma-mobile-nav a.active,
  #dma-mobile-nav a[aria-current="page"] {
    color: var(--c-blue) !important;
    border-top-color: var(--c-blue) !important;
  }

  /* Theme toggle — above bottom nav on mobile */
  #dma-theme-toggle {
    bottom: 74px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   24. TABLET (769px – 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --sidebar-w: 210px;
    --page-pad: 1.25rem;
  }

  body.min-h-screen main [class*="grid-cols-4"],
  body.min-h-screen main [class*="lg:grid-cols-4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.min-h-screen main [class*="lg:grid-cols-3"] {
    grid-template-columns: 240px minmax(0, 1fr) !important;
  }

  body.min-h-screen main [class*="lg:grid-cols-2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   25. CANONICAL COMPONENT SYSTEM
   Source of truth for buttons, forms, tables, drawers, states.
   Page CSS should consume these classes — not invent new radii.
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.superadmin-app,
html.doc-static body {
  font-family: var(--ds-font);
  font-size: var(--ds-body);
  color: var(--ds-text);
  background: var(--ds-bg);
  line-height: 1.5;
}

.ds-page-header,
.dma-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-5);
}
.ds-page-header h1,
.dma-head h1,
.sa-content-card > h1 {
  margin: 0;
  font-size: var(--ds-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ds-text);
}
.ds-page-header p,
.dma-head p,
.sa-subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--ds-muted);
  font-weight: 500;
  line-height: 1.45;
}
.ds-page-actions,
.dma-head-actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); }

.ds-btn,
.dma-btn,
.sa-btn-primary,
.sa-btn-outline,
.sa-btn-secondary,
.sa-btn-ghost,
button.dma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  height: var(--ds-h-ctrl);
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--ds-surface);
  color: var(--ds-text);
  transition: background var(--ds-ease), border-color var(--ds-ease), color var(--ds-ease), box-shadow var(--ds-ease), transform var(--ds-ease);
}
.ds-btn:hover:not(:disabled),
.dma-btn:hover:not(:disabled),
.sa-btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.ds-btn:active:not(:disabled),
.dma-btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.ds-btn:focus-visible,
.dma-btn:focus-visible,
.sa-btn-primary:focus-visible,
.sa-btn-outline:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus);
}
.ds-btn:disabled,
.dma-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ds-btn-primary,
.dma-btn-primary,
.sa-btn-primary {
  background: var(--ds-primary);
  color: #fff;
  border-color: var(--ds-primary);
}
.ds-btn-primary:hover:not(:disabled),
.dma-btn-primary:hover:not(:disabled),
.sa-btn-primary:hover:not(:disabled) { background: var(--ds-primary-hover); border-color: var(--ds-primary-hover); }

.ds-btn-secondary,
.dma-btn-secondary,
.sa-btn-secondary {
  background: var(--ds-surface-2);
  color: var(--ds-text);
  border-color: var(--ds-border);
}

.ds-btn-outline,
.dma-btn-ghost,
.sa-btn-outline,
.sa-btn-ghost {
  background: transparent;
  color: var(--ds-text-2);
  border-color: var(--ds-border-2);
}
.ds-btn-outline:hover:not(:disabled),
.dma-btn-ghost:hover:not(:disabled) { background: var(--ds-surface-2); }

.ds-btn-danger { background: var(--ds-danger); color: #fff; border-color: var(--ds-danger); }
.ds-btn-success { background: var(--ds-success); color: #fff; border-color: var(--ds-success); }
.ds-btn-ghost {
  background: transparent;
  color: var(--ds-text-2);
  border-color: transparent;
}
.ds-btn-ghost:hover:not(:disabled) { background: var(--ds-primary-soft); color: var(--ds-primary-active); }
.ds-btn-icon {
  width: var(--ds-h-ctrl);
  min-width: var(--ds-h-ctrl);
  padding: 0;
}
.ds-btn.is-loading,
.dma-btn.is-loading {
  pointer-events: none;
  opacity: 0.72;
  position: relative;
}
.ds-btn-sm, .dma-btn-sm { height: var(--ds-h-ctrl-sm); padding: 0 var(--ds-space-3); font-size: 0.8125rem; }

.dma-field input,
.dma-field select,
.dma-field textarea,
.sa-plan-panel select,
.cos-input,
.ds-input,
.audit-bar input,
.audit-bar select {
  height: var(--ds-h-ctrl);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-control);
  padding: 0 var(--ds-space-3);
  font: inherit;
  font-size: 0.875rem;
  background: var(--ds-surface);
  color: var(--ds-text);
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--ds-ease), box-shadow var(--ds-ease), background var(--ds-ease);
}
.dma-field input:hover,
.dma-field select:hover,
.cos-input:hover,
.ds-input:hover {
  border-color: var(--ds-border-2);
}
.dma-field input:focus,
.dma-field select:focus,
.dma-field textarea:focus,
.cos-input:focus,
.ds-input:focus {
  outline: none;
  border-color: var(--ds-primary);
  box-shadow: var(--ds-focus);
}
.dma-field input:disabled,
.dma-field select:disabled,
.dma-field textarea:disabled,
.cos-input:disabled,
.ds-input:disabled {
  opacity: 0.55;
  background: var(--ds-surface-section);
  cursor: not-allowed;
}
.dma-field.is-error input,
.dma-field.is-error select,
.dma-field.is-error textarea,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--ds-danger);
}
.dma-field.is-success input,
.dma-field.is-success select,
.dma-field.is-success textarea {
  border-color: var(--ds-success);
}
.dma-field input::placeholder,
.cos-input::placeholder,
.ds-input::placeholder,
textarea::placeholder {
  color: var(--ds-faint);
  opacity: 1;
}
.dma-field textarea,
.cos-input.area { height: auto; padding: var(--ds-space-3); min-height: 96px; resize: vertical; }
.dma-field label,
.cos-label,
.ds-label {
  display: block;
  font-size: var(--ds-label);
  font-weight: 600;
  color: var(--ds-text-3);
  margin-bottom: var(--ds-space-1);
}
.cos-hint, .dma-hint { font-size: var(--ds-caption); color: var(--ds-muted); line-height: 1.5; margin: 0 0 var(--ds-space-3); }

.dma-panel,
.sa-content-card,
.sa-section-card,
.ds-card {
  border-radius: var(--ds-r-card);
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
.sa-content-card { padding: var(--ds-space-6); box-shadow: var(--ds-shadow-xs); }

.ds-badge,
.dma-chip,
.badge-pill,
.sa-badge-ok,
.sa-badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--ds-r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sa-badge-ok, .ds-badge-ok { background: rgba(21,128,61,.12); color: var(--ds-success); }
.sa-badge-warn, .ds-badge-warn { background: rgba(180,83,9,.12); color: var(--ds-warning); }
.ds-badge-off { background: var(--ds-surface-2); color: var(--ds-muted); }
.ds-badge-danger { background: rgba(185,28,28,.12); color: var(--ds-danger); }

.dma-tabs, .ds-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: var(--ds-space-4);
  padding: 4px;
  background: #EEF0F3;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
}
.dma-tabs::-webkit-scrollbar, .ds-tabs::-webkit-scrollbar { display: none; }
.dma-tabs button, .ds-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 var(--ds-space-3);
  border: 0;
  background: transparent;
  color: var(--ds-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--ds-ease), color var(--ds-ease), box-shadow var(--ds-ease);
}
.dma-tabs button:hover, .ds-tabs button:hover { color: var(--ds-text); background: rgba(255,255,255,0.65); }
.dma-tabs button:focus-visible, .ds-tabs button:focus-visible { box-shadow: var(--ds-focus); }
.dma-tabs button.active, .ds-tabs button.active {
  background: var(--ds-surface);
  color: var(--ds-primary-active);
  box-shadow: var(--ds-shadow-xs);
  font-weight: 700;
}

.cos-drawer, .ds-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--ds-z-drawer);
  pointer-events: none;
}
.cos-drawer.open, .ds-drawer.open { pointer-events: auto; }
.cos-drawer-bg, .ds-drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity var(--ds-ease);
}
.cos-drawer.open .cos-drawer-bg,
.ds-drawer.open .ds-drawer-bg { opacity: 1; }
.cos-drawer-panel, .ds-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(480px, 100%);
  background: var(--ds-surface);
  border-radius: var(--ds-r-modal) 0 0 var(--ds-r-modal);
  transform: translateX(100%);
  transition: transform var(--ds-ease-move);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--ds-shadow-md);
}
.cos-drawer.open .cos-drawer-panel,
.ds-drawer.open .ds-drawer-panel { transform: translateX(0); }
.cos-drawer-h, .ds-drawer-h {
  min-height: var(--ds-h-header);
  padding: 0 var(--ds-space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
}
.cos-drawer-b, .ds-drawer-b { flex: 1; overflow: auto; padding: var(--ds-space-4); }
@media (max-width: 768px) {
  .cos-drawer-panel, .ds-drawer-panel {
    width: 100%;
    border-radius: var(--ds-r-modal) var(--ds-r-modal) 0 0;
    top: auto;
    bottom: 0;
    height: min(92vh, 100%);
    transform: translateY(100%);
  }
  .cos-drawer.open .cos-drawer-panel,
  .ds-drawer.open .ds-drawer-panel { transform: translateY(0); }
}

.dma-table, .ds-table, .sa-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  display: table;
}
.dma-table th, .ds-table th, .sa-data-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-surface-2);
  font-weight: 700;
  white-space: nowrap;
}
.dma-table td, .ds-table td, .sa-data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--ds-border);
  font-size: 0.875rem;
  vertical-align: middle;
  color: var(--ds-text-2);
}
.dma-table tbody tr, .ds-table tbody tr, .sa-data-table tbody tr {
  transition: background var(--ds-ease);
}
.dma-table tbody tr:hover, .ds-table tbody tr:hover, .sa-data-table tbody tr:hover {
  background: var(--ds-surface-2);
}
.ds-table-wrap, .sa-table-wrap, .dma-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  background: var(--ds-surface);
}

.ds-empty, .dma-empty, .ds-error, .ds-loading {
  padding: var(--ds-space-8) var(--ds-space-4);
  text-align: center;
  color: var(--ds-muted);
}
.ds-error { color: var(--ds-danger); background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--ds-r-card); }

.ds-kpis, .cos-kpis, .dma-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
}
@media (max-width: 1024px) { .ds-kpis, .cos-kpis, .dma-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ds-kpis, .cos-kpis { grid-template-columns: 1fr; } }

.ds-kpi, .dma-kpi {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  min-height: 0;
}
.ds-kpi label, .dma-kpi label { display: block; font-size: var(--ds-label); font-weight: 600; color: var(--ds-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ds-kpi strong, .dma-kpi strong { display: block; font-size: 1.25rem; font-weight: 700; color: var(--ds-text); line-height: 1.2; }

.dma-inbox {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 140px);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  overflow: hidden;
  background: var(--ds-surface);
}
@media (max-width: 900px) {
  .dma-inbox { grid-template-columns: 1fr; min-height: calc(100vh - 112px); }
  .dma-inbox:not(.thread-open) .dma-thread { display: none; }
  .dma-inbox.thread-open .dma-inbox-list { display: none; }
}

.dma-bubble { border-radius: var(--ds-r-modal); padding: 8px 12px; max-width: 80%; }
.cos-status-failed { color: var(--ds-danger); }
.cos-ai { color: var(--ds-accent); font-weight: 600; }

.cos-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(247,248,250,0), #fff 28%);
  border-top: 1px solid var(--ds-border);
}

.ds-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--ds-z-toast);
  min-width: 240px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #191919;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--ds-border);
  border-left: 4px solid var(--ds-primary);
  box-shadow: var(--ds-shadow-md);
}
.ds-toast.ok { border-left-color: var(--ds-success); }
.ds-toast.err { border-left-color: var(--ds-danger); }
.ds-toast.warn { border-left-color: var(--ds-accent); }
@media (max-width: 768px) {
  .ds-toast { left: 16px; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

.ds-clinic-cards { display: none; }
.ds-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-4);
  align-items: center;
}
.ds-toolbar .ds-search { flex: 1 1 220px; min-width: 0; max-width: 360px; }
.ds-toolbar select { max-width: 180px; }

.ds-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-4);
  font-size: 0.8125rem;
  color: var(--ds-muted);
}

.ds-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-actions .ds-btn { height: 32px; padding: 0 10px; }

@media (max-width: 768px) {
  .ds-desktop-table { display: none; }
  .ds-clinic-cards { display: grid; gap: var(--ds-space-3); }
  .ds-clinic-card {
    display: grid;
    gap: 8px;
    padding: var(--ds-space-4);
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-r-card);
  }
  .ds-clinic-card h3 { margin: 0; font-size: 1rem; }
  .ds-clinic-meta { font-size: 0.8125rem; color: var(--ds-muted); }
  .ds-clinic-metrics { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.8125rem; }
  .sa-btn-primary, .sa-btn-outline, .sa-btn-secondary { width: auto; min-width: 44px; }
  .ds-toolbar .ds-search, .ds-toolbar select { max-width: none; flex: 1 1 100%; }
}

@media (min-width: 769px) {
  .ds-clinic-cards { display: none; }
}

html.sa-static .sa-layout { display: flex; min-height: 100vh; }
html.sa-static .sa-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--ds-sidebar);
  padding: var(--ds-space-6);
  max-width: none;
}
html.sa-static .sa-main-inner,
html.sa-static .sa-content-card {
  max-width: var(--ds-content);
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  html.sa-static .sa-main { margin-left: 0; padding: calc(var(--ds-h-header) + 12px) 12px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   26. PHASE 2 — WORKSPACE UX
   ═══════════════════════════════════════════════════════════ */

html.sa-static .sa-content-card { padding: 20px; }
html.sa-static .sa-main { padding: 20px; }
html.sa-static .sa-sidebar nav { padding: 8px 10px 16px; overflow-y: auto; }

.sa-nav-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  padding: 14px 12px 6px;
  font-weight: 700;
}
.sa-sidebar nav a {
  transition: background var(--ds-ease), color var(--ds-ease), border-color var(--ds-ease);
}
.sa-sidebar nav a.active {
  background: rgba(29, 78, 216, 0.22);
  color: #fff;
  border-left-color: var(--ds-primary);
}

html.sa-static input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=button]):not([type=submit]),
html.sa-static select,
html.sa-static textarea,
html.doc-static input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=button]):not([type=submit]),
html.doc-static select,
html.doc-static textarea,
.portal-page .field input,
.portal-page .field select,
.portal-page .field textarea {
  height: var(--ds-h-ctrl);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-control);
  padding: 0 12px;
  font: inherit;
  font-size: 0.875rem;
  background: var(--ds-surface);
  color: var(--ds-text);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  max-width: 100%;
}
html.sa-static textarea,
html.doc-static textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
html.sa-static select,
html.doc-static select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748B' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
html.sa-static input[type=checkbox],
html.sa-static input[type=radio],
html.doc-static input[type=checkbox],
html.doc-static input[type=radio] {
  width: 18px;
  height: 18px;
  accent-color: var(--ds-primary);
  flex-shrink: 0;
}
html.sa-static input[type=time],
html.doc-static input[type=time],
html.sa-static input[type=date],
html.doc-static input[type=date],
html.sa-static input[type=datetime-local],
html.doc-static input[type=datetime-local] {
  min-width: 0;
}

.ds-hours-row {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.ds-hours-row strong { font-size: 0.8125rem; text-transform: capitalize; }
.ds-hours-row label { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; white-space: nowrap; }
.ds-tx-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 120px auto;
  gap: 8px;
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .ds-hours-row { grid-template-columns: 1fr 1fr; }
  .ds-hours-row strong { grid-column: 1 / -1; }
  .ds-tx-row { grid-template-columns: 1fr 1fr; }
  .ds-tx-row .ds-btn { grid-column: 1 / -1; }
}

.ds-ops-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.ds-ops-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.ds-section {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  padding: 16px;
  min-height: 0;
}
.ds-section-muted { background: var(--ds-surface-2); }
.ds-section h2 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
@media (max-width: 1024px) {
  .ds-ops-grid, .ds-ops-grid-3 { grid-template-columns: 1fr; }
}

.ds-drawer-panel { width: min(520px, 100%); }
.ds-drawer.wide .ds-drawer-panel { width: min(560px, 100%); }
.ds-drawer-sub { margin: 2px 0 0; font-size: 0.75rem; color: var(--ds-muted); font-weight: 500; }
.ds-drawer-tabs {
  padding: 8px 12px;
  margin: 0 0 8px;
  flex-shrink: 0;
  background: var(--ds-surface-section);
  border: 0;
  border-bottom: 1px solid var(--ds-border);
  border-radius: 0;
}
.ds-drawer-f {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
  flex-shrink: 0;
}
.ds-kv dt { color: var(--ds-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.ds-kv dd { margin: 0 0 10px; font-size: 0.875rem; }

.ds-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: var(--ds-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.ds-modal-wrap.open { pointer-events: auto; }
.ds-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.4);
  opacity: 0;
  transition: opacity var(--ds-ease);
}
.ds-modal-wrap.open .ds-modal-bg { opacity: 1; }
.ds-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: hidden;
  background: var(--ds-surface);
  border-radius: var(--ds-r-modal);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  transform: scale(0.98);
  opacity: 0;
  transition: transform var(--ds-ease-move), opacity var(--ds-ease);
  display: flex;
  flex-direction: column;
}
.ds-modal-wrap.open .ds-modal { transform: scale(1); opacity: 1; }
.ds-modal-b { padding: 16px 20px; overflow: auto; min-height: 0; flex: 1; }

.ds-skel {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ds-surface-2), #EEF2F7, var(--ds-surface-2));
  background-size: 200% 100%;
  animation: ds-skel 1.2s ease infinite;
  margin-bottom: 10px;
}
.ds-skel:nth-child(2) { width: 80%; }
.ds-skel:nth-child(3) { width: 60%; }
@keyframes ds-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.ds-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 8px 0 0;
}
.ds-bar {
  flex: 1;
  min-width: 8px;
  background: var(--ds-primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.88;
  transition: height var(--ds-ease);
}
.ds-bar-label { font-size: 0.65rem; color: var(--ds-muted); text-align: center; margin-top: 4px; }

.ds-log {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.ds-log.open { max-height: 360px; overflow: auto; }

.int-grid { display: grid; gap: 12px; }
.int-card {
  background: var(--ds-surface-2);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  padding: 16px;
}
.int-field { margin-bottom: 12px; }
.int-field .guide { font-size: 0.75rem; color: var(--ds-muted); margin-top: 4px; }
.int-status { margin-left: 8px; }

.dma-inbox-item { padding: 12px; border-bottom: 1px solid var(--ds-border); cursor: pointer; transition: background var(--ds-ease); }
.dma-inbox-item:hover, .dma-inbox-item.on { background: var(--ds-surface-2); }
.dma-inbox-item.on { border-left: 3px solid var(--ds-primary); }

html.sa-static .ds-table tbody tr,
html.doc-static .dma-table tbody tr { cursor: pointer; }
html.sa-static .ds-table tbody tr:hover td { background: var(--ds-primary-soft); }

.ds-work-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .ds-skel { animation: none; }
}

.ds-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ds-filters button {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ds-ease), color var(--ds-ease), border-color var(--ds-ease), transform 80ms ease;
}
.ds-filters button:hover { border-color: var(--ds-primary); }
.ds-filters button.active, .ds-filters button.on {
  background: var(--ds-primary);
  color: #fff;
  border-color: var(--ds-primary);
}
.ds-filters button:active { transform: scale(0.97); }
.ds-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 12px;
}
.dma-inbox-item.unread .name { font-weight: 800; }
.dma-inbox-item.unread::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-primary);
  margin-right: 6px;
  vertical-align: middle;
}
.ds-empty-panel {
  padding: 32px 16px;
  text-align: center;
  color: var(--ds-muted);
  background: var(--ds-surface-2);
  border: 1px dashed var(--ds-border);
  border-radius: var(--ds-r-card);
}
.ds-empty-panel strong { display: block; color: var(--ds-text); margin-bottom: 4px; }

@media (max-width: 768px) {
  .ds-drawer-panel {
    width: 100% !important;
    height: min(94vh, 100%);
  }
}

/* ═══════════════════════════════════════════════════════════
   PHASE 3 — CLINIC OPERATIONS WORKSPACE
   Layered surfaces, readable measure, tabs, motion, nav.
   Scoped to html.doc-static so Superadmin is unchanged.
   ═══════════════════════════════════════════════════════════ */
html.doc-static {
  --ds-surface-section: var(--ds-surface-2, #243044);
  --ds-surface-hover: rgba(255, 255, 255, 0.06);
  --doc-sidebar: #141C2B;
}

html.doc-static body {
  background: var(--ds-bg);
}

html.doc-static .doc-main {
  background: var(--ds-bg);
}

html.doc-static .doc-main > #doc-page,
html.doc-static .doc-main > .dma-wa-root,
html.doc-static .doc-main > .dma-clinic-canvas,
html.doc-static .doc-main#doc-page {
  max-width: var(--ds-clinic-content);
  margin: 0 auto;
  width: 100%;
}

.ds-prose,
.dma-prose,
html.doc-static .dma-head p,
html.doc-static .dma-hint,
html.doc-static .cos-hint {
  max-width: var(--ds-measure);
  line-height: 1.55;
}

html.doc-static .dma-head {
  margin-bottom: var(--ds-space-5);
  padding-bottom: var(--ds-space-4);
  border-bottom: 0;
  gap: 16px;
}

html.doc-static .dma-head h1 {
  font-family: var(--ds-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ds-text);
}

html.doc-static .dma-head h1::after { display: none; }

html.doc-static .dma-head p {
  font-size: 0.9375rem;
  color: var(--ds-muted);
  margin-top: 6px;
  max-width: var(--ds-measure);
}

/* Sections — visual grouping without heavy borders */
.dma-section,
.ds-section {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  margin-bottom: var(--ds-space-4);
  overflow: hidden;
  box-shadow: var(--ds-shadow-xs);
}

.dma-section-muted,
.ds-section-muted {
  background: #FAFBFC;
}

.dma-section-h,
.ds-section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: 12px 16px 8px;
}

.dma-section-h h2,
.ds-section-h h2 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-faint);
}

.dma-section-h p,
.ds-section-h p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--ds-muted);
  max-width: var(--ds-measure);
}

.dma-section-b,
.ds-section-b {
  padding: 8px 20px 20px;
}

html.doc-static .dma-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow-xs);
}

html.doc-static .dma-panel-h {
  background: var(--ds-surface-section);
}

html.doc-static .dma-kpi {
  background: var(--ds-surface);
  padding: 12px 14px;
}

html.doc-static .dma-kpi strong {
  font-size: 1.25rem;
}

html.doc-static .dma-kpis {
  gap: 12px;
  margin-bottom: var(--ds-space-4);
}

/* Tabs — workspace navigation, not flat underlines */
html.doc-static .dma-tabs,
html.doc-static .ds-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: var(--ds-space-4);
  border-bottom: 0;
}

html.doc-static .dma-tabs::-webkit-scrollbar,
html.doc-static .ds-tabs::-webkit-scrollbar { display: none; }

html.doc-static .dma-tabs button,
html.doc-static .ds-tabs button {
  flex: 0 0 auto;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  margin: 0;
  border-radius: 999px;
  background: #1C2638;
  color: #B4C2D6;
  font-weight: 650;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 0;
  transition: background var(--ds-ease), color var(--ds-ease), box-shadow var(--ds-ease);
}

html.doc-static .dma-tabs button:hover,
html.doc-static .ds-tabs button:hover {
  color: var(--ds-text);
  background: var(--ds-surface);
}

html.doc-static .dma-tabs button:focus-visible,
html.doc-static .ds-tabs button:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus);
}

html.doc-static .dma-tabs button.active,
html.doc-static .ds-tabs button.active {
  background: linear-gradient(135deg, #0E7A68 0%, #0B6456 100%);
  color: #fff;
  font-weight: 750;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(14, 122, 104, 0.28);
}
  border-bottom-color: transparent;
}

/* Buttons — 44px / 10px */
html.doc-static .dma-btn {
  height: var(--ds-h-ctrl);
  padding: 0 20px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 650;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background var(--ds-ease), border-color var(--ds-ease), color var(--ds-ease), box-shadow var(--ds-ease), transform 80ms ease;
}

html.doc-static .dma-btn-primary {
  background: var(--ds-primary);
  color: #fff;
  border-color: var(--ds-primary);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(20, 150, 127, 0.22);
}

html.doc-static .dma-btn-accent {
  background: #FAD069;
  color: #191919;
  border-color: #FAD069;
  border-radius: 10px;
}

html.doc-static .dma-btn-danger {
  background: #fff;
  color: #B42318;
  border-color: #F5C2C0;
}

html.doc-static .dma-btn-primary:hover:not(:disabled) {
  background: var(--ds-primary-hover);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 150, 127, 0.18);
}

html.doc-static .dma-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  background: var(--ds-primary-active);
}

html.doc-static .dma-btn-ghost {
  background: var(--ds-surface);
  color: var(--ds-text-2);
  border-color: var(--ds-border-2);
  box-shadow: none;
}

html.doc-static .dma-btn-ghost:hover:not(:disabled) {
  background: var(--ds-surface-hover);
  border-color: var(--ds-primary);
  color: var(--ds-primary);
  transform: none;
}

html.doc-static .dma-btn-sm {
  height: var(--ds-h-ctrl-sm);
  padding: 0 10px;
  font-size: 0.75rem;
  border-radius: var(--ds-r-control);
}
html.doc-static .dma-btn-primary.dma-btn-sm,
html.doc-static .dma-btn-accent.dma-btn-sm {
  border-radius: 10px;
}

html.doc-static .dma-btn:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus);
}

html.doc-static .dma-btn:disabled {
  opacity: 0.45;
}

/* Forms — canonical 40px / 5px */
html.doc-static .dma-field input,
html.doc-static .dma-field textarea,
html.doc-static .dma-field select,
html.doc-static .dma-search,
html.doc-static .dma-status-sel,
html.doc-static .cos-input,
html.doc-static input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
html.doc-static select,
html.doc-static textarea {
  height: var(--ds-h-ctrl);
  border-radius: var(--ds-r-control);
  border: 1px solid var(--ds-border-2);
  background: var(--ds-surface);
  padding: 0 12px;
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
}

html.doc-static textarea,
html.doc-static .dma-field textarea,
html.doc-static .cos-input.area {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.5;
}

html.doc-static .dma-field input:hover,
html.doc-static .dma-field select:hover,
html.doc-static .dma-search:hover,
html.doc-static .cos-input:hover {
  border-color: var(--ds-border-2);
  background: var(--ds-surface-hover);
}

html.doc-static .dma-field input:focus,
html.doc-static .dma-field textarea:focus,
html.doc-static .dma-field select:focus,
html.doc-static .dma-search:focus,
html.doc-static .cos-input:focus {
  outline: none;
  border-color: var(--ds-primary);
  box-shadow: var(--ds-focus);
  background: var(--ds-surface);
}

html.doc-static .ds-hours-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-control);
  margin-bottom: 8px;
}

html.doc-static .ds-hours-row strong {
  font-size: 0.8125rem;
  text-transform: capitalize;
}

html.doc-static .ds-tx-row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

html.doc-static .dma-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ds-surface-section);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  margin-bottom: var(--ds-space-4);
  font-size: 0.75rem;
  color: var(--ds-muted);
}

html.doc-static .dma-status-bar .dma-chip { margin: 0; }

/* Inbox 3-pane — conversations | thread | patient */
html.doc-static .dma-inbox {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 260px);
  gap: 12px;
  min-height: min(640px, calc(100vh - 180px));
  align-items: stretch;
  border: 0;
  background: transparent;
  overflow: visible;
}

html.doc-static .dma-inbox-list,
html.doc-static .dma-inbox .dma-thread,
html.doc-static .dma-inbox-ctx {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  min-width: 0;
  min-height: 0;
}

html.doc-static .dma-inbox-ctx {
  background: var(--ds-surface-section);
  padding: 14px;
}

@media (max-width: 1100px) {
  html.doc-static .dma-inbox {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  html.doc-static .dma-inbox-ctx { display: none; }
  html.doc-static .dma-inbox.ctx-open .dma-inbox-ctx { display: block; }
}

@media (max-width: 768px) {
  html.doc-static .dma-inbox {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 160px);
  }
  html.doc-static .dma-inbox .dma-thread { display: none; }
  html.doc-static .dma-inbox .dma-inbox-ctx { display: none; }
  html.doc-static .dma-inbox.thread-open .dma-inbox-list { display: none; }
  html.doc-static .dma-inbox.thread-open .dma-thread { display: flex; }
}

html.doc-static .dma-inbox-item {
  transition: background var(--ds-ease);
}

html.doc-static .dma-inbox-item:hover {
  background: var(--ds-surface-hover);
}

html.doc-static .dma-row-item.unread .name { font-weight: 800; }

html.doc-static .dma-appt,
html.doc-static .dma-row-item {
  transition: background var(--ds-ease);
}

html.doc-static .dma-appt:hover,
html.doc-static a.dma-row-item:hover {
  background: var(--ds-surface-hover);
}

html.doc-static .dma-table tbody tr:hover td {
  background: var(--ds-primary-soft);
}

/* Bottom navigation — mobile only */
.dma-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .dma-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--ds-z-nav);
    height: 56px;
    padding: 0 4px env(safe-area-inset-bottom, 0);
    background: var(--ds-surface);
    border-top: 1px solid var(--ds-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    justify-content: space-around;
    align-items: stretch;
  }
  html.doc-static .doc-main {
    padding-bottom: 80px;
  }
  body.doc-nav-open .dma-bottom-nav { display: none; }
}

.dma-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ds-muted);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 0;
}

.dma-bottom-nav a svg,
.dma-bottom-nav button svg { width: 18px; height: 18px; }
.dma-bottom-nav a.on { color: var(--ds-primary); }
.dma-bottom-nav a:focus-visible,
.dma-bottom-nav button:focus-visible { box-shadow: var(--ds-focus); border-radius: 6px; }
.dma-bottom-nav button.dma-bottom-more {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ds-muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 0;
  min-height: 44px;
}

/* Motion */
html.doc-static .dma-panel,
html.doc-static .dma-section,
html.doc-static .dma-kpi,
html.doc-static .lead-card {
  transition: box-shadow var(--ds-ease), transform var(--ds-ease), border-color var(--ds-ease);
}

html.doc-static .dma-panel:hover,
html.doc-static .lead-card:hover {
  box-shadow: var(--ds-shadow-sm);
}

html.doc-static .ds-drawer-panel,
html.doc-static .ds-modal {
  animation: ds-rise 180ms ease;
}

@keyframes ds-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.doc-static *,
  html.doc-static *::before,
  html.doc-static *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Leads / broadcasts workspace (canonical, no page-local CSS files) */
html.doc-static .leads-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--ds-space-4);
}
@media (max-width: 1024px) {
  html.doc-static .leads-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  html.doc-static .leads-pipeline { grid-template-columns: 1fr; }
}

html.doc-static .pipeline-col {
  background: var(--ds-surface-section);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.doc-static .pipeline-col-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
}

html.doc-static .pipeline-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.doc-static .pipeline-badge {
  font-size: 0.67rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--ds-r-pill);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}

html.doc-static .pipeline-col-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.doc-static .lead-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-control);
  padding: 10px 12px;
  cursor: pointer;
}

html.doc-static .lead-card:hover {
  border-color: var(--ds-primary);
}

html.doc-static .lead-card-name { font-size: 0.8125rem; font-weight: 700; }
html.doc-static .lead-card-phone { font-size: 0.72rem; color: var(--ds-muted); margin: 2px 0 6px; }
html.doc-static .lead-card-footer { display: flex; justify-content: space-between; gap: 8px; }
html.doc-static .lead-card-treatment {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--ds-r-pill);
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
}
html.doc-static .lead-card-time { font-size: 0.67rem; color: var(--ds-faint); }

html.doc-static .leads-table-section,
html.doc-static .bc-history-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  overflow: hidden;
}

html.doc-static .search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ds-surface-section);
  border-bottom: 1px solid var(--ds-border);
}

html.doc-static .bc-history-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ds-border);
  cursor: pointer;
}
html.doc-static .bc-history-item:hover { background: var(--ds-surface-hover); }
html.doc-static .bc-history-item:last-child { border-bottom: 0; }

html.doc-static .dma-notice {
  background: var(--ds-primary-soft);
  border: 1px solid rgba(20, 150, 127, 0.18);
  border-radius: var(--ds-r-card);
  padding: 10px 14px;
  margin-bottom: var(--ds-space-4);
  font-size: 0.8125rem;
  color: var(--ds-text-2);
  max-width: var(--ds-measure-wide);
}

html.doc-static .dma-pt-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.doc-static .dma-pt-identity .dma-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

html.doc-static .dma-ai-chat {
  background: #ECE5DD;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  min-height: 320px;
  max-height: 480px;
  overflow: auto;
  padding: 12px;
}

@media (max-width: 640px) {
  html.doc-static .ds-hours-row,
  html.doc-static .ds-tx-row {
    grid-template-columns: 1fr;
  }
  html.doc-static .dma-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   ROLE WORKSPACES — owner / reception / nurse / manager / platform
   ═══════════════════════════════════════════════════════════ */
.ds-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--ds-r-pill);
  background: var(--ds-mint, rgba(20,150,127,.10));
  color: var(--ds-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dma-head-kicker { margin-bottom: 8px; }
.dma-head-page { align-items: flex-end; }
.dma-clinic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--ds-r-pill);
  border: 1px solid var(--ds-border);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ds-text);
}
.dma-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.dma-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.dma-kpi {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  padding: 16px 18px;
  min-height: 92px;
  box-shadow: var(--ds-shadow-xs);
}
.dma-kpi span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-muted);
  margin-bottom: 8px;
}
.dma-kpi strong {
  display: block;
  font-family: var(--ds-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ds-text);
}
.dma-kpi em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--ds-muted);
}
.dma-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 20px;
}
.dma-hero-panel {
  background: linear-gradient(165deg, #FFFFFF 0%, #EEF8F5 100%);
  border: 1px solid var(--ds-border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--ds-shadow-sm);
  min-height: 220px;
}
.dma-hero-panel h2 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
}
.dma-hero-panel p { margin: 0; color: var(--ds-muted); font-size: 0.875rem; max-width: 36rem; }
.dma-comp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.8125rem;
}
.dma-comp-bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #EFEFEF;
  overflow: hidden;
}
.dma-comp-bar > i {
  display: block;
  height: 100%;
  background: var(--ds-primary);
  border-radius: 99px;
}
.dma-timeline { display: flex; flex-direction: column; gap: 0; }
.dma-tl {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--ds-border);
}
.dma-tl:last-child { border-bottom: 0; }
.dma-tl time { font-weight: 700; font-size: 0.8125rem; color: var(--ds-text); }
.dma-tl .who { font-weight: 650; }
.dma-tl .meta { font-size: 0.75rem; color: var(--ds-muted); }
.dma-next-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--ds-shadow-sm);
  margin-bottom: 16px;
}
.dma-next-card .dma-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ds-primary-soft); color: var(--ds-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; flex-shrink: 0;
}
.dma-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.dma-person-card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-r-card);
  padding: 16px;
  box-shadow: var(--ds-shadow-xs);
}
.dma-person-card .dma-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ds-mint); color: var(--ds-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 10px;
}
.dma-alert-list { display: flex; flex-direction: column; gap: 8px; }
.dma-alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF8E8;
  border: 1px solid rgba(250, 208, 105, 0.7);
  font-size: 0.875rem;
  color: var(--ds-text);
}
.dma-view-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--ds-surface-section);
  border-radius: var(--ds-r-pill);
  border: 1px solid var(--ds-border);
  gap: 2px;
}
.dma-view-toggle button {
  height: 32px; padding: 0 14px; border: 0; background: transparent;
  border-radius: var(--ds-r-pill); font: inherit; font-size: 0.8125rem;
  font-weight: 650; color: var(--ds-muted); cursor: pointer;
}
.dma-view-toggle button.on {
  background: #fff; color: var(--ds-text); box-shadow: var(--ds-shadow-xs);
}
@media (max-width: 900px) {
  .dma-hero { grid-template-columns: 1fr; }
  .dma-kpis { grid-template-columns: 1fr 1fr; }
  .dma-tl { grid-template-columns: 64px 1fr; }
  .dma-tl .st { grid-column: 2; }
}
@media (max-width: 560px) {
  .dma-kpis { grid-template-columns: 1fr; }
  .dma-next-card { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   PHASE 2 INNER PRODUCT
   ═══════════════════════════════════════════════════════════ */
.cos-skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #EEE 0%, #F7F7F8 50%, #EEE 100%); background-size: 200% 100%; animation: cos-shimmer 1.2s ease-in-out infinite; margin: 8px 0; }
.cos-skel.lg { height: 88px; }
@keyframes cos-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.cos-empty {
  text-align: center; padding: 48px 24px;
  background: linear-gradient(165deg, #FFFFFF 0%, #EEF8F5 100%);
  border: 1px solid var(--ds-border); border-radius: 20px;
}
.cos-empty h2 { margin: 8px 0 6px; font-size: 1.25rem; }
.cos-empty p { margin: 0 0 16px; color: var(--ds-muted); max-width: 28rem; margin-left: auto; margin-right: auto; }

.cos-unavail {
  background: #fff; border: 1px dashed #D4D4D8; border-radius: 20px;
  padding: 28px 24px; color: var(--ds-text);
}
.cos-unavail .ds-pill { margin-bottom: 10px; }
.cos-unavail h2 { margin: 0 0 8px; font-size: 1.125rem; }
.cos-unavail p { margin: 0 0 16px; color: var(--ds-muted); max-width: 36rem; }

.cos-filterbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px;
}
.cos-filterbar .dma-search, .cos-filterbar select, .cos-filterbar input[type="date"] {
  height: 44px; border-radius: 10px; border: 1px solid var(--ds-border);
  background: #fff; padding: 0 14px; font: inherit; min-width: 0;
}

.cos-appt-card {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 12px;
  align-items: start; background: #fff; border: 1px solid var(--ds-border);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--ds-shadow-xs);
}
.cos-appt-card .when { font-weight: 800; font-size: 0.9rem; }
.cos-appt-card .who { font-weight: 700; }
.cos-appt-card .meta { font-size: 0.75rem; color: var(--ds-muted); margin-top: 4px; }
.cos-appt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cos-appt-list { display: flex; flex-direction: column; gap: 10px; }

.cos-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cos-cal-day {
  min-height: 92px; background: #fff; border: 1px solid var(--ds-border);
  border-radius: 12px; padding: 8px; overflow: hidden;
}
.cos-cal-day.is-out { background: #FAFAFA; color: var(--ds-muted); }
.cos-cal-day.is-today { border-color: var(--ds-primary); background: var(--ds-mint); }
.cos-cal-day h4 { margin: 0 0 6px; font-size: 0.75rem; }
.cos-cal-chip {
  display: block; font-size: 0.68rem; padding: 3px 6px; border-radius: 6px;
  background: var(--ds-primary-soft); color: var(--ds-primary); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab;
}
.cos-week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 4px; }
.cos-week-col { min-height: 420px; background: #fff; border: 1px solid var(--ds-border); border-radius: 12px; padding: 8px; }
.cos-day-rail { display: flex; flex-direction: column; gap: 8px; }

.cos-wait { display: flex; flex-direction: column; gap: 8px; }
.cos-wait-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--ds-border); border-radius: 16px; padding: 14px 16px;
}

.cos-profile-hero {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(165deg, #FFFFFF 0%, #EEF8F5 100%);
  border: 1px solid var(--ds-border); border-radius: 24px; padding: 22px 24px;
  margin-bottom: 16px; box-shadow: var(--ds-shadow-sm);
}
.cos-profile-hero .dma-avatar { width: 72px; height: 72px; border-radius: 50%; font-size: 1.4rem; }

.cos-wizard { max-width: none; }
.cos-stepper { margin: 0 0 20px; }
.cos-stepper-meta {
  font-size: 0.8125rem; font-weight: 700; color: var(--ds-text); margin-bottom: 8px;
}
.cos-stepper-bar {
  height: 6px; border-radius: 999px; background: #EEF0F3; overflow: hidden;
}
.cos-stepper-bar i {
  display: block; height: 100%; border-radius: 999px; background: var(--ds-primary);
  transition: width 180ms ease;
}
.cos-pick-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: min(320px, 42vh); overflow: auto; margin: 4px 0 12px;
}
.cos-slot-wrap {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px;
}
.cos-pick-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  box-sizing: border-box; min-width: 0;
  min-height: 56px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--ds-border); border-radius: 12px;
  background: #fff; color: inherit; font: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.cos-pick-item:hover, .cos-pick-item.on {
  border-color: var(--ds-primary); background: var(--ds-aqua);
}
.cos-pick-item .dma-avatar { width: 40px; height: 40px; flex-shrink: 0; }
.cos-pick-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cos-pick-copy strong {
  font-size: 0.875rem; font-weight: 700; color: var(--ds-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cos-pick-copy span {
  font-size: 0.75rem; color: var(--ds-muted); word-break: break-all; line-height: 1.35;
}

.cos-vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cos-timeline-med { border-left: 2px solid var(--ds-primary); padding-left: 16px; margin: 8px 0; }
.cos-timeline-med article { margin: 0 0 16px; position: relative; }
.cos-timeline-med article:before {
  content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ds-primary);
}

.cos-pt-cards { display: none; }
.cos-pt-table { display: block; overflow-x: auto; }

.cos-slot {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--ds-border); background: #fff; font: inherit; font-size: 0.8125rem;
  cursor: pointer; margin: 0;
}
.cos-slot.on { background: var(--ds-primary); color: #fff; border-color: var(--ds-primary); }
.cos-slot:disabled { opacity: 0.4; cursor: not-allowed; }

.dma-btn-primary svg.arrow { margin-left: 6px; transition: transform .15s ease; }
.dma-btn-primary:hover svg.arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .cos-cal, .cos-week { display: none !important; }
  .cos-agenda { display: block !important; }
  .cos-appt-card { grid-template-columns: 1fr; }
  .cos-vitals { grid-template-columns: 1fr 1fr; }
  .cos-wait-row { grid-template-columns: 1fr; }
  .cos-pt-table { display: none; }
  .cos-pt-cards { display: flex; flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  .cos-vitals { grid-template-columns: 1fr; }
  html.doc-static, html.doc-static body, html.doc-static .doc-main { overflow-x: hidden; }
}

@media print {
  .doc-sidebar, .doc-topbar, .dma-bottom-nav, .dma-head-actions, .cos-filterbar { display: none !important; }
  .doc-main { padding: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   PHASE 3 — PREMIUM INNER CONSISTENCY
   ═══════════════════════════════════════════════════════════ */
.cos-card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 18px;
  box-shadow: var(--ds-shadow-xs);
}
.cos-card--feature {
  padding: 22px 24px;
  background: linear-gradient(165deg, #FFFFFF 0%, #EEF8F5 58%, #FFF8E8 140%);
  border-radius: 24px;
  box-shadow: var(--ds-shadow-sm);
}
.cos-card--kpi { padding: 16px 18px; }
.cos-card--kpi span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ds-muted); }
.cos-card--kpi strong { display: block; font-size: 1.5rem; letter-spacing: -0.03em; margin-top: 6px; }
.cos-card--kpi em { display: block; font-style: normal; font-size: 0.75rem; color: var(--ds-muted); margin-top: 4px; }
.cos-card--profile { padding: 0; overflow: hidden; }
.cos-card--timeline { padding: 8px 4px 8px 0; background: transparent; box-shadow: none; border: 0; }
.cos-card--appt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.cos-card--status { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.cos-card--data { padding: 16px 18px; }
.cos-card--action { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cos-card--alert { padding: 12px 14px; background: #FFF8E8; border-color: rgba(250, 208, 105, 0.7); }

.cos-ops-hero h2 { margin: 8px 0 4px; font-size: 1.5rem; letter-spacing: -0.03em; }
.cos-ops-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cos-ops-metrics div { background: rgba(255,255,255,.72); border: 1px solid rgba(20,150,127,.12); border-radius: 14px; padding: 12px; }
.cos-ops-metrics span { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ds-muted); }
.cos-ops-metrics strong { font-size: 1.35rem; letter-spacing: -0.03em; }

.cos-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.cos-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.cos-empty { position: relative; }
.cos-empty-mark {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--ds-mint); color: var(--ds-primary);
  display: flex; align-items: center; justify-content: center;
}
.cos-empty[data-kind="appointments"] .cos-empty-mark { background: #EEF8F5; }
.cos-empty[data-kind="clinical"] .cos-empty-mark { background: #FFF8E8; color: #8A6A12; }

.cos-filter-hint {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px dashed var(--ds-border); background: #FAFAFA;
  font-size: 0.72rem; color: var(--ds-muted); max-width: 100%;
}
.cos-filter-toggle { display: none; }
.cos-filter-sheet-bg { display: none; }

.cos-appt-card { grid-template-columns: auto 1fr auto; }
.cos-appt-card .cos-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ds-mint); color: var(--ds-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
}
.cos-appt-card .when { font-variant-numeric: tabular-nums; min-width: 52px; }
.cos-appt-card .cos-appt-actions { grid-column: 1 / -1; }

.cos-drawer-sec { margin: 0 0 18px; }
.cos-drawer-sec h3 { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-muted); }
.cos-drawer-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }

.cos-consult { padding-bottom: 96px; }
.cos-consult-bar {
  position: fixed; left: var(--ds-sidebar, 240px); right: 0; bottom: 0; z-index: 12;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ds-border);
  box-shadow: 0 -8px 24px rgba(25,25,25,.06);
}
.cos-consult .dma-section {
  margin-bottom: 16px;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 0;
}
.cos-consult .dma-section-h { padding: 0 0 8px; border-bottom: 0; }
.cos-consult .dma-section-b { padding: 0; }

.cos-vitals-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cos-rx-row { display: grid; grid-template-columns: 1.4fr .7fr .7fr .8fr .7fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ds-border); }

.cos-tl-item { margin: 0 0 12px; }
.cos-tl-item summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; }
.cos-tl-item summary::-webkit-details-marker { display: none; }
.cos-tl-item .cos-tl-body { margin: 8px 0 0 28px; color: var(--ds-muted); font-size: 0.875rem; }

.cos-report-hero { padding: 24px; margin-bottom: 14px; }
.cos-report-hero strong { font-size: 2.25rem; letter-spacing: -0.04em; display: block; }

.cos-settings { display: flex; flex-direction: column; gap: 24px; align-items: stretch; width: 100%; }
.cos-settings-body { width: 100%; max-width: none; }
.cos-settings-body .dma-section { max-width: none; }
.cos-settings-nav {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  position: static; padding: 4px; background: #EEF0F3; border: 1px solid var(--ds-border);
  border-radius: 12px;
}
.cos-settings-nav button {
  text-align: center; height: 44px; padding: 0 16px; border: 0; background: transparent;
  border-radius: 10px; font: inherit; font-size: 0.8125rem; font-weight: 650; color: var(--ds-muted); cursor: pointer;
  white-space: nowrap; flex: 0 0 auto;
}
.cos-settings-nav button.active { background: #fff; color: var(--ds-primary-active); box-shadow: 0 1px 3px rgba(15,23,42,.08); font-weight: 750; }
.cos-settings-back { display: none !important; }

.doc-nav-more summary {
  list-style: none; cursor: pointer;
}
.doc-nav-more summary::-webkit-details-marker { display: none; }
.doc-nav-more .doc-nav-more-items { display: flex; flex-direction: column; }
.doc-nav-close { display: none; }

.cos-skel-page .cos-skel.lg { height: 140px; }

html.doc-static .dma-btn:focus-visible,
html.doc-static a:focus-visible,
html.doc-static button:focus-visible,
html.doc-static input:focus-visible,
html.doc-static select:focus-visible,
html.doc-static textarea:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 900px) {
  .cos-ops-metrics, .cos-kpi-row { grid-template-columns: 1fr 1fr; }
  .cos-settings { grid-template-columns: 1fr; }
  .cos-settings-nav { position: static; }
  .cos-settings.is-pane .cos-settings-nav { display: flex; }
  .cos-settings.is-list .cos-settings-body { display: block; }
  .cos-settings-back { display: none !important; }
  .cos-rx-row { grid-template-columns: 1fr 1fr; }
  .cos-vitals-now { grid-template-columns: 1fr 1fr; }
  .cos-filter-toggle { display: inline-flex; }
  .cos-filterbar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: #fff; border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(25,25,25,.12); margin: 0;
  }
  .cos-filterbar.is-open { display: flex; }
  .cos-filter-sheet-bg.is-open {
    display: block; position: fixed; inset: 0; z-index: 59; background: rgba(25,25,25,.35);
  }
  .doc-nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 0 12px; height: 44px; padding: 0 12px;
    border: 1px solid var(--ds-border-2); border-radius: 10px;
    background: #fff; color: var(--ds-text); font-weight: 650; cursor: pointer;
  }
  html.doc-static .dma-modal-bg,
  html.doc-static .ds-modal-wrap {
    padding: 0; align-items: flex-end; justify-content: stretch;
  }
  html.doc-static .dma-modal,
  html.doc-static .ds-modal {
    width: 100%; max-width: none; max-height: 92vh; height: auto;
    border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(25,25,25,.12);
  }
  html.doc-static .dma-modal-h,
  html.doc-static .dma-modal-h h3 {
    font-family: inherit;
  }
  .dma-head-page { flex-direction: column; align-items: stretch; gap: 10px; }
  .dma-head-page .dma-prose { display: none; }
  .dma-head-actions { width: 100%; justify-content: flex-start; }
  .dma-head-actions .dma-btn-ghost { display: none; }
  .cos-consult-bar { left: 0; bottom: 64px; }
  .ds-drawer-panel, .cos-drawer-panel {
    width: 100% !important; height: 100% !important; top: 0 !important; bottom: 0 !important;
    border-radius: 0 !important; transform: translateY(100%);
  }
  .ds-drawer.open .ds-drawer-panel, .cos-drawer.open .cos-drawer-panel { transform: translateY(0); }
}

@media (min-width: 390px) and (max-width: 900px) {
  .dma-head-page .dma-prose { display: block; font-size: 0.875rem; }
}

@media (max-width: 560px) {
  .cos-ops-metrics, .cos-kpi-row { grid-template-columns: 1fr; }
  .cos-card--appt, .cos-appt-card { grid-template-columns: 1fr; }
  .cos-vitals-now { grid-template-columns: 1fr; }
  .cos-quick-actions .dma-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

.dma-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cos-save-state { font-size: 0.75rem; font-weight: 650; color: var(--ds-muted); margin-right: auto; min-height: 1.2em; }

/* ═══════════════════════════════════════════════════════════
   FOUR WORLDS — public / auth / clinic / patient
   Extends tokens. Does not replace clinic components.
   ═══════════════════════════════════════════════════════════ */

html.dma-world-public {
  --ds-bg: #141C2B;
  --ds-nav: transparent;
  background: #141C2B;
}
html.dma-world-public body {
  margin: 0;
  font-family: var(--ds-font);
  color: #E8EEF8;
  background: #141C2B;
  -webkit-font-smoothing: antialiased;
}

.dma-pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.dma-pub-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 12px 0;
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 251, 250, 0.92);
  backdrop-filter: blur(10px);
}
.dma-pub-logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ds-text); font-weight: 800;
  font-family: var(--ds-font-display);
  flex-wrap: nowrap; white-space: nowrap;
}
.dma-pub-logo .dma-pub-wordmark,
.dma-pub-logo span:not(.mark) { white-space: nowrap; flex-shrink: 0; }
.dma-pub-logo span.mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ds-primary); color: #fff;
  display: grid; place-items: center; font-size: 0.75rem; letter-spacing: 0.04em;
}
.dma-pub-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dma-pub-links a, .dma-pub-links button.dma-pub-drop {
  appearance: none; border: 0; background: transparent; font: inherit; cursor: pointer;
  color: var(--ds-text-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  padding: 8px 12px; border-radius: 999px;
}
.dma-pub-links a:hover, .dma-pub-links button.dma-pub-drop:hover { background: var(--ds-mint); color: var(--ds-primary-active); }
.dma-pub-cta { display: flex; align-items: center; gap: 8px; }
.dma-pub-menu { display: none; }
.dma-pub-dd { position: relative; }
.dma-pub-dd-list {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--ds-border); border-radius: 16px;
  padding: 8px; box-shadow: 0 16px 40px rgba(25,25,25,.08); z-index: 40;
}
.dma-pub-dd.is-open > .dma-pub-dd-list { display: block; }
.dma-pub-dd-list a { display: block; border-radius: 10px; }
.dma-h3 {
  font-family: var(--ds-font-display); font-size: 1.25rem; letter-spacing: -0.03em;
  margin: 28px 0 12px; font-weight: 700;
}
.dma-cta-band {
  margin: 56px auto 0; padding: 48px 40px; border-radius: 28px;
  background: linear-gradient(165deg, #0B6456 0%, #14967F 55%, #0E7A68 100%);
  color: #fff;
}
.dma-cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.dma-cta-band p { color: rgba(255,255,255,.85); max-width: 36rem; line-height: 1.55; }
.dma-btn-accent {
  background: var(--ds-accent); color: #191919; border-color: var(--ds-accent);
}
.dma-btn-on-dark { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.dma-pub-copy { text-align: center; color: var(--ds-muted); font-size: 0.8125rem; padding: 0 24px 40px; }

.dma-h-display {
  font-family: var(--ds-font-display);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.22;
  color: var(--ds-text);
  margin: 0;
}
.dma-pub-hero { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.dma-pub-hero .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ds-primary); margin-bottom: 16px;
}
.dma-pub-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.dma-pub-hero .lede { font-size: 1.125rem; line-height: 1.55; color: var(--ds-text-3); max-width: 36rem; margin: 18px 0 28px; }
.dma-pub-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dma-stage {
  position: relative; min-height: 420px;
  background: linear-gradient(160deg, var(--ds-primary) 0%, #0B6456 100%);
  border-radius: 28px; padding: 22px; color: #fff; overflow: hidden;
}
.dma-stage::after {
  content: ""; position: absolute; inset: auto -20% -30% 20%; height: 60%;
  background: radial-gradient(circle, rgba(250,208,105,.35), transparent 70%); pointer-events: none;
}
.dma-stage-card {
  position: relative; background: #fff; color: var(--ds-text); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 16px 40px rgba(11, 100, 86, 0.28);
}
.dma-stage-card h4 { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 800; }
.dma-stage-card p { margin: 0; font-size: 0.75rem; color: var(--ds-muted); }
.dma-stage-card.pos-a { width: 58%; }
.dma-stage-card.pos-b { width: 42%; margin: -28px 0 0 auto; }
.dma-stage-card.pos-c { width: 48%; margin-top: 14px; }
.dma-stage-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ds-mint); color: var(--ds-primary-active); font-size: 0.6875rem; font-weight: 800; border-radius: 999px; padding: 4px 8px; }

.dma-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 0 48px; }
.dma-proof article {
  background: #fff; border: 1px solid var(--ds-border); border-radius: 18px; padding: 18px 20px;
}
.dma-proof strong { display: block; font-family: var(--ds-font-display); font-size: 1.75rem; letter-spacing: -0.04em; }
.dma-proof span { color: var(--ds-muted); font-size: 0.8125rem; font-weight: 650; }

.dma-editorial { padding-top: 72px; padding-bottom: 72px; }
.dma-editorial h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }
.dma-pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.dma-pain article {
  background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--ds-border);
}
.dma-pain h3 { margin: 0 0 8px; font-size: 1.125rem; }
.dma-pain p { margin: 0; color: var(--ds-text-3); }

.dma-product-shot {
  position: relative; background: var(--ds-primary); border-radius: 28px; padding: 28px; color: #fff; min-height: 360px;
}
.dma-float {
  position: absolute; background: #fff; color: var(--ds-text); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,.16); font-size: 0.8125rem; font-weight: 700;
}
.dma-float b { display: block; font-size: 0.6875rem; color: var(--ds-muted); font-weight: 650; }

.dma-acc { border-top: 1px solid var(--ds-border); }
.dma-acc details { border-bottom: 1px solid var(--ds-border); }
.dma-acc summary {
  list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 750; font-size: 1.125rem;
  display: flex; justify-content: space-between; align-items: center;
}
.dma-acc summary::-webkit-details-marker { display: none; }
.dma-acc summary::after { content: "+"; color: var(--ds-primary); font-size: 1.4rem; font-weight: 400; }
.dma-acc details[open] summary::after { content: "–"; }
.dma-acc .dma-acc-body { padding: 0 0 18px; color: var(--ds-text-3); display: flex; flex-wrap: wrap; gap: 8px; }
.dma-chip { background: var(--ds-mint); color: var(--ds-primary-active); border-radius: 999px; padding: 6px 10px; font-size: 0.8125rem; font-weight: 650; }

.dma-convo { background: #fff; border-radius: 24px; padding: 24px; border: 1px solid var(--ds-border); max-width: 520px; }
.dma-bubble { border-radius: 16px; padding: 12px 14px; margin: 8px 0; max-width: 86%; font-size: 0.9375rem; }
.dma-bubble.in { background: var(--ds-mint); }
.dma-bubble.out { background: var(--ds-text); color: #fff; margin-left: auto; }
.dma-convo-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.dma-omni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dma-omni article { background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--ds-border); }
.dma-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dma-flow span {
  background: #fff; border: 1px solid var(--ds-border); border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 0.8125rem;
}
.dma-flow i { color: var(--ds-primary); font-style: normal; font-weight: 800; }

.dma-pub-foot {
  margin-top: 72px; padding: 40px 0 32px; border-top: 1px solid var(--ds-border);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; color: var(--ds-text-3); font-size: 0.875rem;
}
.dma-pub-foot a { color: inherit; text-decoration: none; }
.dma-pub-foot a:hover { color: var(--ds-primary); }
.dma-pub-foot strong { display: block; color: var(--ds-text); margin-bottom: 10px; }

/* Auth split — light form on teal brand. Scoped so dashboard radii stay untouched. */
html.dma-world-auth {
  --dma-auth-r: 10px;
  color-scheme: light;
  background: var(--ds-aqua);
}
html.dma-world-auth[data-theme="dark"] {
  color-scheme: light;
}
html.dma-world-auth body,
html.dma-world-auth body.portal-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ds-font);
  color: var(--ds-text);
  background: var(--ds-aqua);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.dma-auth {
  display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100vh;
}
html.dma-world-auth .dma-auth {
  background: #fff;
}
.dma-auth-visual {
  background: linear-gradient(165deg, var(--ds-primary) 0%, #0B6456 72%, #084f44 100%);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px;
}
html.dma-world-auth .dma-auth-visual .dma-pub-logo { color: #fff; }
html.dma-world-auth .dma-auth-visual .dma-pub-logo span.mark {
  background: rgba(255,255,255,.18); color: #fff; border-radius: var(--dma-auth-r);
}
html.dma-world-auth .dma-auth-visual .dma-pub-logo:hover { opacity: 0.88; }
html.dma-world-auth .dma-auth-visual .dma-pub-logo:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.45); border-radius: var(--dma-auth-r);
}
.dma-auth-visual h1 {
  font-family: var(--ds-font-display); font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 12px; color: #fff;
}
html.dma-world-auth .dma-auth-visual p {
  margin: 0; color: rgba(255,255,255,.88); max-width: 28rem; line-height: 1.55; font-size: 1rem;
}
.dma-auth-preview {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--dma-auth-r, 10px); padding: 16px 18px; backdrop-filter: blur(8px); color: #fff;
}
html.dma-world-auth .dma-auth-preview strong { display: block; font-size: 0.9375rem; }
html.dma-world-auth .dma-auth-preview p {
  margin: 8px 0 0; font-size: .875rem; color: rgba(255,255,255,.85); max-width: none;
}
.dma-auth-form {
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
  max-width: 460px; margin: 0 auto; width: 100%; color: var(--ds-text); background: #fff;
}
.dma-auth-form h2 {
  font-family: var(--ds-font-display); font-size: 1.75rem; letter-spacing: -0.03em;
  margin: 0 0 8px; color: var(--ds-text); font-weight: 700;
}
.dma-auth-simple { grid-template-columns: 1fr; background: var(--ds-aqua); }
.dma-auth-simple .dma-auth-form {
  margin: 8vh auto; background: #fff; border-radius: var(--dma-auth-r, 10px);
  box-shadow: 0 16px 48px rgba(25,25,25,.06); border: 1px solid var(--ds-border);
}
.dma-verify-mark {
  width: 64px; height: 64px; border-radius: var(--dma-auth-r, 10px); margin: 28px auto 12px;
  background: var(--ds-mint); color: var(--ds-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.dma-alert-ok { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; padding: 12px 14px; border-radius: 10px; }
html.dma-world-auth .portal-page { background: var(--ds-aqua); color: var(--ds-text); }
html.dma-world-auth .form-card {
  background: transparent !important;
  color: var(--ds-text);
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: none;
  margin: 0;
}
html.dma-world-auth .btn.btn-primary,
html.dma-world-auth .dma-auth-form .btn.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; padding: 12px 20px;
  background: var(--ds-primary); border: 1px solid var(--ds-primary); color: #fff;
  border-radius: var(--dma-auth-r); font: inherit; font-weight: 700; font-size: 0.9375rem;
  cursor: pointer; text-decoration: none; white-space: normal;
  transition: background var(--ds-ease), border-color var(--ds-ease), box-shadow var(--ds-ease), transform var(--ds-ease);
}
html.dma-world-auth .btn.btn-primary:hover,
html.dma-world-auth .dma-auth-form .dma-btn-primary:hover:not(:disabled) {
  background: var(--ds-primary-hover); border-color: var(--ds-primary-hover);
}
html.dma-world-auth .btn.btn-primary:active,
html.dma-world-auth .dma-auth-form .dma-btn-primary:active:not(:disabled) {
  background: var(--ds-primary-active); border-color: var(--ds-primary-active); transform: translateY(1px);
}
html.dma-world-auth .dma-auth-form .dma-hint { color: var(--ds-muted); }
html.dma-world-auth .dma-auth-form a { color: var(--ds-primary); font-weight: 650; text-decoration: none; }
html.dma-world-auth .dma-auth-form a:hover { color: var(--ds-primary-hover); text-decoration: underline; }
html.dma-world-auth .dma-auth-form a:focus-visible,
html.dma-world-auth .dma-auth-form button:focus-visible,
html.dma-world-auth .dma-auth-form input:focus-visible,
html.dma-world-auth .dma-auth-form select:focus-visible {
  outline: none; box-shadow: var(--ds-focus);
}
html.dma-world-auth .dma-steps { color: var(--ds-muted); flex-wrap: wrap; }
html.dma-world-auth .dma-steps b { color: var(--ds-primary); }

html.dma-world-auth .dma-auth-roles,
html.dma-world-auth .dma-auth-form > .dma-pub-actions {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 20px;
  padding: 4px; width: fit-content; max-width: 100%;
  background: var(--ds-mint); border: 1px solid rgba(20,150,127,.18);
  border-radius: var(--dma-auth-r);
}
html.dma-world-auth .dma-auth-roles .dma-chip,
html.dma-world-auth .dma-auth-form > .dma-pub-actions .dma-chip {
  height: 40px; min-height: 40px; min-width: 88px; padding: 0 16px;
  border-radius: var(--dma-auth-r); text-transform: none; letter-spacing: 0;
  font-size: 0.8125rem; font-weight: 700; text-decoration: none;
  justify-content: center; background: transparent; color: var(--ds-text-3);
  border: 0; cursor: pointer; transition: background var(--ds-ease), color var(--ds-ease);
}
html.dma-world-auth .dma-auth-roles .dma-chip.is-active,
html.dma-world-auth .dma-auth-form > .dma-pub-actions span.dma-chip {
  background: var(--ds-primary); color: #fff;
}
html.dma-world-auth .dma-auth-roles a.dma-chip:hover,
html.dma-world-auth .dma-auth-form > .dma-pub-actions a.dma-chip:hover {
  background: #fff; color: var(--ds-primary-active); text-decoration: none;
}
html.dma-world-auth .dma-auth-roles a.dma-chip:focus-visible,
html.dma-world-auth .dma-auth-form > .dma-pub-actions a.dma-chip:focus-visible {
  box-shadow: var(--ds-focus);
}

html.dma-world-auth .dma-field label,
html.dma-world-auth .field label {
  color: var(--ds-text-2) !important; font-size: 0.8125rem; font-weight: 650;
  text-transform: none; letter-spacing: 0; margin-bottom: 6px;
}
html.dma-world-auth .dma-field input:not([type="checkbox"]):not([type="radio"]),
html.dma-world-auth .dma-field select,
html.dma-world-auth .dma-field textarea,
html.dma-world-auth .field input:not([type="checkbox"]):not([type="radio"]),
html.dma-world-auth .field select {
  height: 44px; min-height: 44px; border: 1px solid var(--ds-border) !important;
  border-radius: var(--dma-auth-r); background: #fff !important; color: var(--ds-text) !important;
  width: 100%; max-width: 100%; padding: 0 12px; font: inherit; font-size: 0.9375rem;
  appearance: none; -webkit-appearance: none;
  transition: border-color var(--ds-ease), box-shadow var(--ds-ease);
}
html.dma-world-auth .dma-field input:not([type="checkbox"]):hover,
html.dma-world-auth .field input:not([type="checkbox"]):hover,
html.dma-world-auth .dma-field select:hover,
html.dma-world-auth .field select:hover {
  border-color: var(--ds-border-2);
}
html.dma-world-auth .dma-field input:not([type="checkbox"]):focus,
html.dma-world-auth .field input:not([type="checkbox"]):focus,
html.dma-world-auth .dma-field select:focus,
html.dma-world-auth .field select:focus {
  outline: none; border-color: var(--ds-primary); box-shadow: var(--ds-focus);
}
html.dma-world-auth .dma-field input::placeholder,
html.dma-world-auth .field input::placeholder {
  color: var(--ds-faint); opacity: 1;
}
html.dma-world-auth .dma-field input[type="checkbox"],
html.dma-world-auth .dma-auth-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-width: 20px; min-height: 20px;
  margin: 0; padding: 0; flex-shrink: 0;
  border: 1.5px solid var(--ds-border-2); border-radius: 6px;
  background: #fff; cursor: pointer;
  transition: background var(--ds-ease), border-color var(--ds-ease), box-shadow var(--ds-ease);
}
html.dma-world-auth .dma-field input[type="checkbox"]:hover,
html.dma-world-auth .dma-auth-check input[type="checkbox"]:hover {
  border-color: var(--ds-primary);
}
html.dma-world-auth .dma-field input[type="checkbox"]:checked,
html.dma-world-auth .dma-auth-check input[type="checkbox"]:checked {
  background: var(--ds-primary); border-color: var(--ds-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
html.dma-world-auth .dma-field input[type="checkbox"]:focus-visible,
html.dma-world-auth .dma-auth-check input[type="checkbox"]:focus-visible {
  outline: none; box-shadow: var(--ds-focus);
}
html.dma-world-auth .dma-auth-row {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
html.dma-world-auth .dma-auth-check {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin: 0; font-weight: 600; font-size: 0.875rem;
  color: var(--ds-text-2); cursor: pointer; white-space: nowrap;
}
html.dma-world-auth .dma-auth-form .dma-btn-primary {
  width: 100%; min-height: 44px; height: auto; border-radius: var(--dma-auth-r);
  white-space: normal; padding: 12px 20px;
}
html.dma-world-auth .dma-auth-rule {
  height: 1px; border: 0; margin: 20px 0 16px; background: var(--ds-border);
}
html.dma-world-auth .alert {
  padding: 12px 14px; border-radius: var(--dma-auth-r); font-size: 0.875rem; margin-bottom: 16px;
}
html.dma-world-auth .alert-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
}
html.dma-world-auth .alert-error a { color: #B91C1C; }
html.dma-world-auth .dma-alert {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: var(--dma-auth-r);
}
html.dma-world-auth .password-wrap { position: relative; display: block; }
html.dma-world-auth .password-wrap input { padding-right: 48px; }
html.dma-world-auth .password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: var(--dma-auth-r);
  background: var(--ds-mint); color: var(--ds-muted); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: color var(--ds-ease), background var(--ds-ease);
}
html.dma-world-auth .password-toggle:hover,
html.dma-world-auth .password-toggle:focus {
  color: var(--ds-primary-active); background: var(--ds-mint-deep);
  transform: translateY(-50%);
}
html.dma-world-auth .password-toggle:focus-visible {
  outline: none; box-shadow: var(--ds-focus);
}
html.dma-world-auth .field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
html.dma-world-auth .field-row-2 .field { margin-bottom: 0; }

@media (max-width: 480px) {
  html.dma-world-auth .field-row-2 { grid-template-columns: 1fr; }
  html.dma-world-auth .dma-auth-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  html.dma-world-auth .dma-auth-check { white-space: normal; }
}

.dma-wait-card {
  background: var(--ds-off, #F4F4F5); border-radius: 14px; padding: 12px; margin-bottom: 10px;
}
.dma-wait-card-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.dma-wait-card .cos-appt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.dma-clinical-stack { display: grid; gap: 12px; }
@media (max-width: 720px) {
  .dma-table-wrap { overflow-x: auto; }
}
.dma-steps { display: flex; gap: 8px; margin: 0 0 24px; font-size: 0.75rem; font-weight: 700; color: var(--ds-muted); }
.dma-steps b { color: var(--ds-primary); }

html.dma-world-patient body {
  margin: 0; min-height: 100vh; font-family: var(--ds-font); color: var(--ds-text);
  background: var(--ds-aqua);
}
.dma-pt {
  max-width: 720px; margin: 0 auto; padding: 24px 16px 80px;
}
.dma-pt-head {
  background: linear-gradient(135deg, var(--ds-primary), #0E7A68);
  color: #fff; border-radius: 20px; padding: 20px; display: flex; gap: 14px; align-items: center; margin-bottom: 16px;
}
.dma-pt-times { display: flex; flex-wrap: wrap; gap: 8px; }
.dma-pt-times button {
  height: 44px; min-width: 92px; border-radius: 10px; border: 1px solid var(--ds-border-2);
  background: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.dma-pt-times button[aria-pressed="true"] { background: var(--ds-primary); color: #fff; border-color: var(--ds-primary); }

.dma-wait-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dma-wait-col { background: #fff; border-radius: 16px; padding: 12px; min-height: 180px; border: 1px solid var(--ds-border); }
.dma-wait-col h3 { margin: 0 0 10px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ds-muted); }
.dma-wait-col.called { background: var(--ds-mint); border-color: var(--ds-primary); box-shadow: inset 0 0 0 1px var(--ds-accent); }
.dma-wait-tabs { display: none; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.dma-wait-tabs button {
  height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ds-border);
  background: #fff; font: inherit; font-weight: 650; cursor: pointer; color: var(--ds-text);
}
.dma-wait-tabs button[aria-selected="true"] { background: var(--ds-mint); color: var(--ds-primary-active); border-color: transparent; }
@media (max-width: 1024px) {
  .dma-wait-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .dma-wait-tabs { display: flex; }
  .dma-wait-board { grid-template-columns: 1fr; }
  .dma-wait-col { display: none; }
  .dma-wait-board[data-wait-show="WAITING"] .dma-wait-col[data-col="WAITING"],
  .dma-wait-board[data-wait-show="CALLED"] .dma-wait-col[data-col="CALLED"],
  .dma-wait-board[data-wait-show="IN_PROGRESS"] .dma-wait-col[data-col="IN_PROGRESS"],
  .dma-wait-board[data-wait-show="COMPLETED"] .dma-wait-col[data-col="COMPLETED"] { display: block; }
}
.dma-called-flag {
  display: inline-block; background: var(--ds-accent); color: #191919;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 999px; margin-top: 6px;
}

.ds-empty {
  text-align: left; background: #fff; border: 1px solid var(--ds-border); border-radius: 18px; padding: 28px;
}
.ds-empty h2 { margin: 0 0 8px; font-size: 1.25rem; }
.ds-empty p { margin: 0 0 16px; color: var(--ds-text-3); }

.ds-cmd {
  position: fixed; inset: 12vh 0 auto; z-index: 80; display: none;
}
.ds-cmd.open { display: block; }
.ds-cmd-bg { position: fixed; inset: 0; background: rgba(25,25,25,.35); }
.ds-cmd-panel {
  position: relative; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--ds-border);
}
.ds-cmd-panel input {
  width: 100%; height: 52px; border: 0; border-bottom: 1px solid var(--ds-border);
  padding: 0 16px; font: inherit; font-size: 1rem; outline: none;
}
.ds-cmd-list { max-height: 320px; overflow: auto; }
.ds-cmd-list a, .ds-cmd-list button {
  display: flex; width: 100%; text-align: left; gap: 10px; padding: 10px 16px;
  border: 0; background: #fff; font: inherit; cursor: pointer; text-decoration: none; color: inherit;
}
.ds-cmd-list a:hover, .ds-cmd-list button:hover { background: var(--ds-mint); }

.doc-topbar-search {
  flex: 1; max-width: 360px; height: 44px; border-radius: 10px; border: 1px solid var(--ds-border);
  background: #fff; padding: 0 14px; font: inherit; font-size: 0.875rem;
}

@media (max-width: 960px) {
  .dma-pub-hero, .dma-auth, .dma-proof, .dma-pain, .dma-omni, .dma-pub-foot, .dma-wait-board {
    grid-template-columns: 1fr;
  }
  .dma-float { position: static; margin-top: 8px; }
  .dma-auth-visual { display: none; }
}
@media (max-width: 960px) {
  html.dma-world-auth .dma-auth { grid-template-columns: 1fr; min-height: 100vh; background: #fff; }
  html.dma-world-auth .dma-auth-visual {
    display: flex; min-height: 0; padding: 22px 20px 20px; gap: 12px;
  }
  html.dma-world-auth .dma-auth-visual h1 {
    font-size: clamp(1.45rem, 6.6vw, 1.9rem); margin: 0 0 8px; overflow-wrap: break-word;
  }
  html.dma-world-auth .dma-auth-visual p { font-size: 0.9375rem; }
  html.dma-world-auth .dma-auth-preview { display: none; }
  html.dma-world-auth .dma-auth-form {
    padding: 28px 20px 40px; max-width: 100%; overflow-x: hidden;
  }
  html.dma-world-auth .dma-auth-roles,
  html.dma-world-auth .dma-auth-form > .dma-pub-actions { width: 100%; }
  html.dma-world-auth .dma-auth-roles .dma-chip,
  html.dma-world-auth .dma-auth-form > .dma-pub-actions .dma-chip { flex: 1; min-height: 44px; height: 44px; }
  html.dma-world-auth .dma-auth-row {
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
  html.dma-world-auth .dma-auth-row > a { margin-left: 30px; }
  html.dma-world-auth .field-row-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html.dma-world-auth .dma-auth-form .dma-btn,
  html.dma-world-auth .dma-auth-form .btn,
  html.dma-world-auth .dma-auth-roles .dma-chip,
  html.dma-world-auth .password-toggle {
    transition: none;
  }
  html.dma-world-auth .dma-auth-form .dma-btn:hover,
  html.dma-world-auth .dma-auth-form .btn:hover {
    transform: none;
  }
}
html.dma-world-public .dma-pub-menu { display: none !important; }
html.dma-world-public .dma-pub-menu-brand { display: none; }
@media (max-width: 1120px) {
  html.dma-world-public .dma-pub-nav {
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }
  html.dma-world-public .dma-pub-nav > .dma-pub-logo { display: none; }
  html.dma-world-public .dma-pub-links { display: none; order: 3; }
  html.dma-world-public .dma-pub-menu {
    display: inline-flex !important;
    order: 1;
    margin-left: 0;
    margin-right: 0;
    flex: 0 0 auto;
    align-items: center; justify-content: center; gap: 0;
    width: 44px; min-width: 44px; min-height: 44px; padding: 0;
    border: 1px solid var(--ds-border); background: #fff;
    border-radius: 10px; font: inherit; font-weight: 700; font-size: 0.8125rem;
    color: var(--ds-text); cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  }
  html.dma-world-public .dma-pub-menu-label { display: none; }
  html.dma-world-public .dma-pub-cta {
    order: 2;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }
  html.dma-world-public .dma-pub-cta .dma-btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.8125rem;
  }
  html.dma-world-public .dma-pub-menu:hover {
    background: var(--ds-mint); color: var(--ds-primary-active); border-color: rgba(20,150,127,0.28);
  }
  html.dma-world-public .dma-pub-menu:active { background: #D1FAE5; }
  html.dma-world-public .dma-pub-menu:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--ds-primary-glow);
  }
  html.dma-world-public .dma-pub-burger {
    position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 1px;
  }
  html.dma-world-public .dma-pub-burger::before,
  html.dma-world-public .dma-pub-burger::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 2px;
    background: currentColor; border-radius: 1px; transition: transform 160ms ease, top 160ms ease;
  }
  html.dma-world-public .dma-pub-burger::before { top: -5px; }
  html.dma-world-public .dma-pub-burger::after { top: 5px; }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-burger { background: transparent; }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-burger::before { top: 0; transform: rotate(45deg); }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-burger::after { top: 0; transform: rotate(-45deg); }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links {
    display: flex; flex-direction: column; flex-wrap: nowrap;
    align-items: stretch; justify-content: flex-start; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-radius: 0 0 10px 10px; padding: 10px 16px 14px;
    border: 1px solid var(--ds-border); border-top: 1px solid rgba(20, 150, 127, 0.12);
    z-index: 30;
    box-shadow: 0 18px 40px rgba(11, 100, 86, 0.16);
    max-height: min(78vh, 640px); overflow: auto;
    animation: dma-pub-menu-in 180ms ease;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links > li {
    width: 100%; display: block;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-menu-brand {
    display: block;
    padding: 2px 0 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(20, 150, 127, 0.12);
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-menu-brand .dma-pub-logo {
    display: inline-flex; align-items: center; gap: 10px;
    white-space: nowrap; color: #191919; font-weight: 800;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links a,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop {
    display: flex; width: 100%; box-sizing: border-box;
    align-items: center; justify-content: flex-start;
    text-align: left; min-height: 44px; padding: 10px 12px;
    border-radius: 10px; font-size: 0.9375rem; font-weight: 650;
    color: #191919; background: transparent;
    transition: background 160ms ease, color 160ms ease, transform 80ms ease;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links a:hover,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:hover {
    background: var(--ds-mint); color: var(--ds-primary-active);
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links a:active,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:active {
    background: #D1FAE5; color: #0B6456; transform: scale(0.985);
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links a:focus-visible,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--ds-primary-glow);
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-drop::after {
    content: ""; margin-left: auto; width: 7px; height: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform 160ms ease; flex-shrink: 0;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-dd.is-open > .dma-pub-drop {
    background: var(--ds-mint); color: var(--ds-primary-active);
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-dd.is-open > .dma-pub-drop::after {
    transform: rotate(-135deg); margin-top: 3px;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-dd-list {
    position: static; box-shadow: none; border: 0; padding: 0 0 6px 8px; min-width: 0;
    display: none; animation: dma-pub-menu-in 160ms ease;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-dd.is-open > .dma-pub-dd-list {
    display: block;
  }
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-dd-list a {
    font-size: 0.875rem; color: #555; min-height: 40px; font-weight: 600;
  }
  html.dma-world-public.dma-pub-menu-open {
    overflow-x: clip;
    overflow-y: hidden;
  }
}
@keyframes dma-pub-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM EXPERIENCE — depth, motion, command center, mobile app
   ═══════════════════════════════════════════════════════════ */
.ds-page-enter { animation: ds-enter 180ms ease; }
@keyframes ds-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-page-enter { animation: none; }
}

.ds-command { display: grid; gap: 20px; }
.ds-status-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-status-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border-radius: 8px; background: #fff; border: 1px solid var(--ds-border);
  font-size: 0.8125rem; font-weight: 650; color: var(--ds-text);
}
.ds-status-chip.is-on { background: var(--ds-mint); border-color: transparent; color: var(--ds-primary-active); }
.ds-status-chip.is-off { background: var(--ds-yellow-soft); border-color: transparent; }

.ds-work-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.ds-work-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--ds-grad-mint); border: 1px solid var(--ds-border);
  border-radius: 16px; padding: 18px 20px; min-height: 96px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.ds-work-tile span { display: block; font-size: 0.75rem; font-weight: 700; color: var(--ds-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.ds-work-tile strong { display: block; margin-top: 8px; font-size: 1.5rem; letter-spacing: -0.03em; }
.ds-work-tile:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-sm); }
.ds-work-tile--called { background: var(--ds-grad-accent); }
.ds-metric { display: block; font-size: 1.5rem; letter-spacing: -0.03em; }
.ds-attn-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--ds-border);
}
.ds-attn-row:last-child { border-bottom: 0; }

.dma-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.dma-field label { font-size: 0.8125rem; font-weight: 650; color: var(--ds-text); }
.dma-field .dma-hint { margin-top: 0; }

html.doc-static .dma-btn:active:not(:disabled) { transform: translateY(1px); }
html.doc-static .cos-card:hover, html.doc-static .dma-section:hover { box-shadow: var(--ds-shadow-xs); }

.ds-card-list { display: none; gap: 10px; }
.ds-entity-card {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--ds-border); border-radius: 16px; padding: 16px;
  font: inherit; cursor: pointer; color: inherit;
}
.ds-entity-card:hover { border-color: var(--ds-primary); }

@media (max-width: 768px) {
  .ds-work-grid { grid-template-columns: 1fr 1fr; }
  .dma-table--patients { display: none; }
  .ds-card-list { display: grid; }
  .dma-bottom-nav {
    height: 64px;
    border-radius: 18px 18px 0 0;
    padding-top: 6px;
  }
  .cos-drawer-panel, .ds-drawer-panel {
    top: auto; bottom: 0; height: min(92vh, 100%);
    width: 100% !important; max-width: none;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  .cos-drawer.open .cos-drawer-panel,
  .ds-drawer.open .ds-drawer-panel { transform: translateY(0); }
}
@media (max-width: 480px) {
  .ds-work-grid { grid-template-columns: 1fr; }
}

.dma-pub-hero {
  position: relative;
}
.dma-pub-hero::before {
  content: ""; position: absolute; inset: -40px -8% auto;
  height: 420px; z-index: -1; pointer-events: none;
  background: var(--ds-grad-hero); opacity: 0.12; filter: blur(8px);
  border-radius: 10px;
}
.dma-pub-links a, .dma-pub-links button.dma-pub-drop { border-radius: 10px; }
.cos-ops-hero {
  background: var(--ds-grad-hero); color: #fff; border: 0;
}
.cos-ops-hero .ds-pill { background: rgba(255,255,255,.16); color: #fff; }
.cos-ops-hero h2, .cos-ops-hero p, .cos-ops-hero span { color: #fff; }

html.doc-static .doc-main {
  background: var(--ds-bg);
  padding: 20px 32px 48px;
}

.ds-c-panel[hidden] { display: none !important; }
.ds-c-panel { animation: ds-enter 180ms ease; }
@media (prefers-reduced-motion: reduce) {
  .ds-c-panel { animation: none; }
}
.dma-status-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 16px; max-width: var(--ds-measure-wide);
}
.dma-hero-visual { position: relative; min-height: 360px; }
.dma-product-shot--wide { min-height: 280px; margin-top: 24px; }
.dma-before-after article h3 { color: var(--ds-primary-active); }
@media (max-width: 900px) {
  .dma-hero-visual { min-height: 280px; }
}
.ds-workspace-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 16px;
  margin: 0 0 8px;
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ds-workspace-tabs::-webkit-scrollbar { display: none; }
.ds-workspace-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #1C2638;
  color: #B4C2D6;
  font-weight: 650;
  font-size: 0.8125rem;
  text-decoration: none;
}
.ds-workspace-tabs a:hover { background: #243044; color: #F8FBFF; }
.ds-workspace-tabs a.on {
  background: linear-gradient(135deg, #0E7A68 0%, #0B6456 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(14, 122, 104, 0.28);
  font-weight: 750;
}
.ds-workspace-tabs a:focus-visible { box-shadow: var(--ds-focus); outline: none; }

html.doc-static .dma-table td,
html.doc-static .ds-table td,
html.doc-static .dma-table th,
html.doc-static .ds-table th {
  padding: 12px 16px;
}
html.doc-static .dma-table-wrap,
html.doc-static .ds-table-wrap {
  width: 100%;
}
.ds-empty-panel,
.dma-empty,
.cos-empty {
  max-width: 420px;
  margin: 24px auto;
  padding: 28px 20px;
  text-align: center;
  min-height: 0;
}
.dma-grid-2, .ds-work-grid, .dma-kpis, .cos-kpi-row {
  gap: 16px;
}
@media (max-width: 768px) {
  html.doc-static .doc-main { padding: 16px 16px 96px; }
  .ds-workspace-tabs { margin: 12px 16px 0; }
}

html.doc-static .dma-modal-bg,
.dma-modal-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: var(--ds-z-modal, 60);
}
html.doc-static .dma-modal,
.dma-modal {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
}
html.doc-static .dma-modal-h,
.dma-modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
}
html.doc-static .dma-modal-h h3,
.dma-modal-h h3 {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 1.125rem;
  font-weight: 750;
  color: var(--ds-text);
}
html.doc-static .dma-modal-b,
.dma-modal-b {
  padding: 16px 20px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
html.doc-static .dma-modal-f,
.dma-modal-f {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
  flex-shrink: 0;
}
html.doc-static .dma-modal-h .dma-btn,
html.doc-static .ds-drawer-h .ds-btn,
html.doc-static .ds-modal-h .ds-btn {
  min-height: 44px;
  border-radius: 10px;
}

html.doc-static .dma-modal--wizard {
  width: min(520px, calc(100vw - 32px));
}
html.doc-static button.dma-row-item,
html.doc-static a.dma-row-item {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  cursor: pointer;
}
html.doc-static .ds-modal .ds-drawer-h,
html.doc-static .ds-modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
}
html.doc-static .ds-modal .ds-drawer-f,
html.doc-static .ds-modal-f {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  html.doc-static .dma-modal-bg,
  html.doc-static .ds-modal-wrap {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }
  html.doc-static .dma-modal,
  html.doc-static .dma-modal--wizard,
  html.doc-static .ds-modal {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    height: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(25, 25, 25, 0.12);
  }
}

.cos-pt-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 16px; }
.cos-pt-toolbar .dma-search { flex: 1; min-width: 220px; }
.cos-pt-toolbar .dma-tabs { margin: 0; }
a.cos-card--kpi { text-decoration: none; color: inherit; }
.cos-queue-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--ds-border); border-radius: 12px;
  background: #fff; margin: 0 0 8px; text-decoration: none; color: inherit;
}
.cos-queue-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  background: var(--ds-aqua); color: var(--ds-primary-active);
}
.dma-ui-frame {
  display: grid; grid-template-columns: 132px 1fr; min-height: 380px;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 100, 86, 0.22);
  border: 1px solid rgba(255,255,255,.35);
}
.dma-ui-frame--wide { min-height: 320px; margin-top: 28px; }
.dma-ui-nav {
  background: #0B6456; color: rgba(255,255,255,.78); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 8px; font-size: 0.72rem; font-weight: 650;
}
.dma-ui-nav b { color: #fff; font-size: 0.8125rem; margin-bottom: 8px; }
.dma-ui-nav span { padding: 6px 8px; border-radius: 8px; }
.dma-ui-nav span.on { background: rgba(255,255,255,.14); color: #fff; }
.dma-ui-main { padding: 16px 18px; background: #F7F8FA; }
.dma-ui-main header { font-weight: 750; margin-bottom: 12px; color: #191919; font-size: 0.875rem; }
.dma-ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.dma-ui-kpis div {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 10px;
  font-size: 0.68rem; color: #666;
}
.dma-ui-kpis i { display: block; height: 8px; width: 42%; margin-top: 8px; border-radius: 999px; background: #D1FAE5; }
.dma-ui-rows { display: flex; flex-direction: column; gap: 6px; }
.dma-ui-rows div {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 10px; font-size: 0.75rem;
}
.dma-ui-rows time { font-weight: 750; color: #0B6456; width: 44px; }
.dma-ui-rows em { margin-left: auto; font-style: normal; color: #14967F; font-weight: 700; font-size: 0.68rem; }
.dma-ui-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.dma-pain { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ds-hours-row {
  display: grid; grid-template-columns: 120px 72px 1fr auto 1fr auto; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--ds-border);
}
.ds-hours-state {
  font-size: 0.8125rem; font-weight: 750;
  color: var(--ds-primary-active);
}
.ds-hours-row.is-closed .ds-hours-state { color: var(--ds-muted); }
.ds-hours-row.is-closed input[type="time"] { visibility: hidden; }

html.doc-static .dma-grid-2.ds-dash-split {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
}
html.doc-static .cos-consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}
html.doc-static .cos-consult-grid .dma-section { margin: 0 0 12px; }
@media (max-width: 900px) {
  html.doc-static .cos-consult-grid { grid-template-columns: 1fr; }
}
html.doc-static .cos-quick-actions .dma-btn { justify-content: center; width: 100%; }
html.doc-static .cos-loc-card {
  max-width: 560px; padding: 20px;
}
html.doc-static .cos-loc-card h2 { margin: 8px 0 6px; font-size: 1.25rem; }
html.doc-static .cos-cal-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px;
}
html.doc-static .cos-cal-toolbar .dma-tabs { margin: 0; }
html.doc-static .cos-cal-chip { cursor: pointer; }
html.doc-static .cos-wait-queue { display: flex; flex-direction: column; gap: 8px; }
html.doc-static .dma-table--patients td { vertical-align: middle; }

.dma-pub-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.dma-pub-split .lede { max-width: 36rem; }
.dma-tools, .dma-flow {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px;
}
.dma-tools span, .dma-flow span {
  background: #fff; border: 1px solid var(--ds-border); border-radius: 12px;
  padding: 10px 14px; font-weight: 700; font-size: 0.875rem;
}
.dma-tools i, .dma-flow i { color: var(--ds-primary); font-style: normal; font-weight: 800; }
.dma-shot {
  background: linear-gradient(165deg, #0B6456 0%, #14967F 70%);
  border-radius: 24px; padding: 16px; color: #fff;
  box-shadow: 0 24px 60px rgba(11, 100, 86, 0.22);
}
.dma-shot-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 12px; opacity: 0.92;
}
.dma-shot-h span { font-weight: 600; opacity: 0.8; }
.dma-shot-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 10px; }
.dma-shot .dma-ui-kpis, .dma-shot .dma-ui-rows, .dma-shot .dma-ui-week, .dma-shot .dma-ui-drawer, .dma-shot .dma-convo {
  background: #F7F8FA; color: #191919; border-radius: 14px; padding: 12px;
}
.dma-shot h4 { margin: 0 0 8px; font-size: 0.72rem; font-weight: 800; color: #0B6456; }
.dma-shot--hero { min-height: 340px; }
.dma-ui-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dma-ui-week div {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 6px;
  font-size: 0.68rem; min-height: 92px;
}
.dma-ui-week h5 { margin: 0 0 6px; font-size: 0.68rem; color: #666; }
.dma-ui-week span { display: block; background: #D1FAE5; color: #0B6456; border-radius: 6px; padding: 3px 5px; margin-top: 4px; font-weight: 700; }
.dma-ui-week .on { border-color: #14967F; box-shadow: 0 0 0 2px rgba(20,150,127,.2); }
.dma-ui-drawer { background: #fff !important; border: 1px solid #E5E7EB; }
.dma-ui-drawer strong { display: block; margin-bottom: 4px; }
.dma-ui-drawer p { margin: 0 0 10px; font-size: 0.75rem; color: #666; }
.dma-shot-inbox { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 8px; }
.dma-convo--compact { max-width: none; padding: 12px; }
.dma-ui-bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; margin-top: 12px; padding: 8px 10px; background: #fff; border-radius: 12px; }
.dma-ui-bars i { display: block; flex: 1; border-radius: 6px 6px 0 0; background: #14967F; opacity: 0.85; }
.dma-omni { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .dma-pub-hero { grid-template-columns: 1fr; }
  .dma-pub-split { grid-template-columns: 1fr; }
  .dma-ui-frame { grid-template-columns: 1fr; }
  .dma-ui-nav { flex-direction: row; flex-wrap: wrap; }
  .dma-ui-split, .dma-shot-split, .dma-shot-inbox, .dma-shot-inbox3, .dma-consult-mock { grid-template-columns: 1fr; }
  .ds-hours-row { grid-template-columns: 1fr 1fr; }
  .dma-omni { grid-template-columns: 1fr 1fr; }
  html.doc-static .dma-grid-2.ds-dash-split { grid-template-columns: 1fr; }
  html.doc-static .cos-quick-actions { grid-template-columns: 1fr; }
  html.dma-world-public .dma-pub-journey { grid-template-columns: 1fr; }
  html.dma-world-public .dma-shot-ctx { display: none; }
  html.dma-world-public .dma-pub-split--app > .dma-shot { order: 2; }
  html.dma-world-public .dma-shot-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Landing polish — scoped; does not restyle the clinic app */
html.dma-world-public {
  --dma-pub-r: 10px;
  --dma-pub-wrap: 1240px;
  --dma-pub-gutter: 32px;
}
#dma-public-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 28, 43, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
html.dma-world-public .dma-pub-wrap,
html.dma-world-public #dma-public-header .dma-pub-wrap,
html.dma-world-public .dma-pub-hero-band .dma-pub-wrap,
html.dma-world-public .dma-pub-close .dma-pub-wrap,
html.dma-world-public .dma-pub-foot-wrap .dma-pub-wrap {
  width: 100%;
  max-width: var(--dma-pub-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--dma-pub-gutter);
  padding-right: var(--dma-pub-gutter);
  box-sizing: border-box;
}
html.dma-world-public .dma-pub-logo,
html.dma-world-public .dma-pub-logo .dma-pub-wordmark,
html.dma-world-public .dma-pub-logo span:not(.mark) {
  white-space: nowrap;
  flex-wrap: nowrap;
}
html.dma-world-public .dma-pub-nav {
  position: relative; background: transparent; backdrop-filter: none;
  flex-wrap: nowrap; min-height: 64px; padding: 8px 0; gap: 12px;
}
html.dma-world-public .dma-pub-logo,
html.dma-world-public .dma-pub-cta { flex-shrink: 0; }
html.dma-world-public .dma-pub-logo { transition: opacity 160ms ease; }
html.dma-world-public .dma-pub-logo:hover { opacity: 0.82; }
html.dma-world-public .dma-pub-links a:hover,
html.dma-world-public .dma-pub-links button.dma-pub-drop:hover {
  background: var(--ds-mint);
  color: var(--ds-primary-active);
}
html.dma-world-public .dma-pub-links {
  flex: 1 1 auto; justify-content: center; flex-wrap: nowrap; min-width: 0; gap: 2px;
}
html.dma-world-public .dma-pub-links li { flex-shrink: 0; }
html.dma-world-public .dma-pub-links a,
html.dma-world-public .dma-pub-links button.dma-pub-drop {
  white-space: nowrap;
  border-radius: var(--dma-pub-r);
  padding: 8px 10px;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: background 160ms ease, color 160ms ease;
}
html.dma-world-public .dma-pub-logo span.mark,
html.dma-world-public .dma-btn,
html.dma-world-public .dma-shot,
html.dma-world-public .dma-cta-band,
html.dma-world-public .dma-omni article,
html.dma-world-public .dma-tools span,
html.dma-world-public .dma-flow span,
html.dma-world-public .dma-chip,
html.dma-world-public .dma-dd-list,
html.dma-world-public .dma-pub-dd-list,
html.dma-world-public .dma-shot-body,
html.dma-world-public .dma-ui-rows div,
html.dma-world-public .dma-ui-kpis div,
html.dma-world-public .dma-ui-week div,
html.dma-world-public .dma-ui-drawer,
html.dma-world-public .dma-convo,
html.dma-world-public .dma-bubble,
html.dma-world-public .dma-ui-bars,
html.dma-world-public .dma-shot-reply,
html.dma-world-public .dma-shot-bar,
html.dma-world-public .dma-pub-photo {
  border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-btn,
html.dma-world-public .dma-pub-cta .dma-btn,
html.dma-world-public a.dma-btn {
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
html.dma-world-public .dma-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 100, 86, 0.16);
}
html.dma-world-public .dma-btn-ghost:hover {
  background: var(--ds-mint);
  color: var(--ds-primary-active);
}
html.dma-world-public a:focus-visible,
html.dma-world-public button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ds-primary-glow);
}
html.dma-world-public .dma-editorial { padding-top: 48px; padding-bottom: 48px; }
html.dma-world-public .dma-editorial .lede { margin: 12px 0 0; color: var(--ds-text-3); line-height: 1.55; }
html.dma-world-public .dma-pub-split { gap: 36px; }
html.dma-world-public .dma-pub-split--app { grid-template-columns: 1.15fr 0.85fr; }
html.dma-world-public .dma-pub-problem .dma-tools {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}
html.dma-world-public .dma-pub-problem .dma-tools span { padding: 8px 12px; font-size: 0.8125rem; }
html.dma-world-public .dma-pub-problem .dma-tools i { display: none; }
html.dma-world-public .dma-pub-journey {
  display: grid; grid-template-columns: minmax(12rem, 0.7fr) 1fr; gap: 24px; align-items: center;
}
html.dma-world-public .dma-pub-journey .dma-flow { margin-top: 0; }
html.dma-world-public .dma-omni { gap: 12px; margin-top: 24px; }
html.dma-world-public .dma-omni article {
  padding: 18px; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
html.dma-world-public .dma-omni article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 100, 86, 0.1);
  border-color: rgba(20, 150, 127, 0.28);
}
html.dma-world-public .dma-cta-band {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 44px 48px 48px;
  border-radius: var(--dma-pub-r);
  background: linear-gradient(165deg, #1AA58C 0%, #14967F 48%, #0E7A68 100%);
  transition: box-shadow 180ms ease;
}
html.dma-world-public .dma-cta-band h2 { margin: 0; }
html.dma-world-public .dma-cta-band p { margin: 14px 0 0; max-width: 36rem; }
html.dma-world-public .dma-cta-band .dma-pub-actions { margin-top: 24px; gap: 12px; }
html.dma-world-public .dma-cta-band .dma-btn {
  min-height: 44px;
  height: auto;
  padding: 12px 22px;
  border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-cta-band .dma-btn-accent:hover { background: #f6d98a; }
html.dma-world-public .dma-cta-band .dma-btn-on-dark:hover {
  background: rgba(255,255,255,0.1); color: #fff;
}
html.dma-world-public .dma-pub-close {
  background: #0B6456;
  margin-top: 56px;
  padding: 36px 0 0;
}
html.dma-world-public .dma-pub-close .dma-pub-foot-wrap {
  background: transparent;
  margin-top: 0;
  padding: 28px 0 32px;
}

html.dma-world-public .dma-shot {
  padding: 12px; border-radius: var(--dma-pub-r);
  box-shadow: 0 18px 40px rgba(11, 100, 86, 0.2);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
html.dma-world-public .dma-shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(11, 100, 86, 0.26);
}
html.dma-world-public .dma-shot-h { margin-bottom: 10px; }
html.dma-world-public .dma-shot-body {
  background: #F7F8FA; color: #191919; padding: 12px;
}
html.dma-world-public .dma-shot .dma-ui-kpis,
html.dma-world-public .dma-shot .dma-ui-rows,
html.dma-world-public .dma-shot .dma-ui-week,
html.dma-world-public .dma-shot .dma-ui-drawer,
html.dma-world-public .dma-shot .dma-convo {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r); padding: 10px;
}
html.dma-world-public .dma-ui-kpis strong {
  display: block; margin-top: 6px; font-size: 1.15rem; color: #191919; letter-spacing: -0.03em;
}
html.dma-world-public .dma-ui-rows div {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
html.dma-world-public .dma-ui-rows span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
html.dma-world-public .dma-shot-list > div { align-items: flex-start; flex-wrap: wrap; }
html.dma-world-public .dma-shot-list > div span { flex: 1; font-weight: 750; }
html.dma-world-public .dma-shot-list > div small { flex: 1 0 100%; padding-left: 0; }
html.dma-world-public .dma-ui-rows .on,
html.dma-world-public .dma-ui-week .on { border-color: #14967F; background: #F2FBFA; }
html.dma-world-public .dma-ui-week span { border-radius: var(--dma-pub-r); }
html.dma-world-public .dma-shot-cal-nav {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 0.68rem; font-weight: 700;
}
html.dma-world-public .dma-shot-cal-nav span {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r); padding: 5px 8px; color: #666;
}
html.dma-world-public .dma-shot-cal-nav span.on { background: #0B6456; color: #fff; border-color: #0B6456; }
html.dma-world-public .dma-shot-cal-nav em { margin-left: auto; font-style: normal; color: #0B6456; }
html.dma-world-public .dma-shot-tabs { display: flex; gap: 6px; margin: 8px 0 10px; font-size: 0.65rem; font-weight: 700; }
html.dma-world-public .dma-shot-tabs span {
  border-radius: var(--dma-pub-r); padding: 4px 8px; background: #F7F8FA; color: #666;
}
html.dma-world-public .dma-shot-tabs span.on { background: #0B6456; color: #fff; }
html.dma-world-public .dma-chip {
  font-size: 0.65rem; letter-spacing: 0.02em; text-transform: none;
}
html.dma-world-public .dma-shot-inbox3 {
  display: grid; grid-template-columns: minmax(148px, 0.7fr) minmax(0, 1.45fr) minmax(132px, 0.78fr); gap: 8px; min-height: 280px;
  background: #F7F8FA;
}
html.dma-world-public .dma-shot-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: #D1FAE5; color: #0B6456;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.02em;
}
html.dma-world-public .dma-shot-search {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r);
  padding: 7px 10px; font-size: 0.68rem; color: #888; margin-bottom: 8px;
}
html.dma-world-public .dma-shot-id {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
html.dma-world-public .dma-shot-id strong { margin: 0; font-size: 0.78rem; }
html.dma-world-public .dma-shot-pt-list > div { align-items: center; }
html.dma-world-public .dma-shot-pt-list > div span:not(.dma-shot-av) { flex: 1; font-weight: 750; }
html.dma-world-public .dma-shot-inbox-list {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r);
  overflow: hidden; display: flex; flex-direction: column;
}
html.dma-world-public .dma-shot-inbox-item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px; align-items: start;
  padding: 9px 10px; border-bottom: 1px solid #E5E7EB;
  background: #fff; border-radius: 0;
}
html.dma-world-public .dma-shot-inbox-item:last-child { border-bottom: 0; }
html.dma-world-public .dma-shot-inbox-item strong {
  display: block; font-size: 0.72rem; font-weight: 750; color: #191919;
}
html.dma-world-public .dma-shot-inbox-item small {
  display: block; margin-top: 2px; font-size: 0.62rem; color: #666;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.dma-world-public .dma-shot-inbox-item time {
  font-size: 0.58rem; font-weight: 650; color: #888; width: auto;
}
html.dma-world-public .dma-shot-inbox-item.on {
  background: #F2FBFA; box-shadow: inset 3px 0 0 #14967F;
}
html.dma-world-public .dma-shot-inbox-item.unread strong { font-weight: 800; }
html.dma-world-public .dma-shot-inbox-item.unread strong::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #14967F; margin-right: 5px; vertical-align: middle;
}
html.dma-world-public .dma-shot-thread {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r);
  padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
html.dma-world-public .dma-shot-thread-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: #191919;
  padding: 8px 10px; margin: 0;
  border-bottom: 1px solid #E5E7EB; background: #F8FAFC;
}
html.dma-world-public .dma-shot-thread-h div { flex: 1; min-width: 0; }
html.dma-world-public .dma-shot-thread-h em {
  display: block; font-style: normal; color: #666; font-weight: 600; font-size: 0.62rem;
}
html.dma-world-public .dma-shot-takeover {
  font-size: 0.62rem; font-weight: 750; color: #0B6456;
  border: 1px solid #E5E7EB; background: #fff;
  border-radius: var(--dma-pub-r); padding: 4px 8px; white-space: nowrap;
}
html.dma-world-public .dma-shot-thread-m {
  flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px;
  min-height: 148px;
}
html.dma-world-public .dma-shot-msg {
  display: flex; flex-direction: column; align-items: flex-start; max-width: 92%;
}
html.dma-world-public .dma-shot-msg.out { align-items: flex-end; align-self: flex-end; }
html.dma-world-public .dma-shot-msg .dma-bubble {
  margin: 0; max-width: 100%;
}
html.dma-world-public .dma-shot .dma-bubble.out { margin-left: 0; }
html.dma-world-public .dma-meta { font-size: 0.62rem; color: #888; margin: 0 0 8px; }
html.dma-world-public .dma-shot-msg .dma-meta {
  margin: 3px 0 0; width: auto; text-align: inherit;
}
html.dma-world-public .dma-shot .dma-bubble {
  font-size: 0.72rem; padding: 8px 10px;
}
html.dma-world-public .dma-shot .dma-bubble.in {
  background: #F2FBFA; color: #191919; border: 1px solid #E5E7EB;
}
html.dma-world-public .dma-shot .dma-bubble.out {
  background: #14967F; color: #fff; margin-left: 0;
}
html.dma-world-public .dma-shot-msg.out .dma-bubble.out { margin-left: 0; }
html.dma-world-public .dma-shot-reply {
  margin-top: auto; display: flex; gap: 8px; align-items: center;
  background: #fff; border-top: 1px solid #E5E7EB;
  padding: 8px 10px; font-size: 0.68rem; color: #888;
}
html.dma-world-public .dma-shot-reply span {
  flex: 1; background: #F7F8FA; border: 1px solid #E5E7EB;
  border-radius: var(--dma-pub-r); padding: 7px 10px;
}
html.dma-world-public .dma-shot-reply em {
  font-style: normal; font-weight: 750; color: #fff; background: #14967F;
  padding: 7px 12px; border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-shot-actions { display: flex; gap: 6px; margin-top: 8px; }
html.dma-world-public .dma-shot-actions span {
  border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r); padding: 5px 8px; font-size: 0.65rem; font-weight: 700;
}
html.dma-world-public .dma-shot-ctx .dma-hint { font-size: 0.62rem; color: #888; margin: 0 0 8px; }
html.dma-world-public .dma-consult-mock {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 8px;
}
html.dma-world-public .dma-consult-mock h4 { margin: 0 0 8px; font-size: 0.78rem; color: #0B6456; }
html.dma-world-public .dma-shot-field {
  background: #fff; border: 1px solid #E5E7EB; border-radius: var(--dma-pub-r);
  padding: 8px 10px; margin-bottom: 6px;
}
html.dma-world-public .dma-shot-field label {
  display: block; font-size: 0.62rem; font-weight: 750; color: #0B6456; margin-bottom: 4px;
}
html.dma-world-public .dma-shot-field span,
html.dma-world-public .dma-shot-field em {
  display: block; min-height: 18px; font-size: 0.68rem; color: #888; font-style: normal;
}
html.dma-world-public .dma-shot-field em { color: #14967F; font-weight: 750; }
html.dma-world-public .dma-shot-vitals {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-height: 0;
}
html.dma-world-public .dma-shot-vitals span {
  min-height: 28px; background: #F7F8FA; border-radius: var(--dma-pub-r);
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 750; color: #666;
}
html.dma-world-public .dma-shot-bar {
  grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; align-items: center;
  background: #fff; border: 1px solid #E5E7EB; padding: 8px 10px; font-size: 0.68rem; font-weight: 700;
}
html.dma-world-public .dma-shot-bar span { color: #666; }
html.dma-world-public .dma-shot-bar em {
  font-style: normal; background: #14967F; color: #fff; padding: 6px 10px; border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-ui-bars { border-radius: var(--dma-pub-r); }
html.dma-world-public .dma-ui-bars i { border-radius: 10px 10px 0 0; }

.dma-pub-foot-wrap {
  margin-top: 28px;
  background: #05070A;
  color: rgba(255,255,255,.82);
  padding: 36px 0 28px;
}
html.dma-world-public .dma-pub-foot {
  margin: 0; padding: 0 0 28px; border: 0;
  display: grid;
  grid-template-columns: minmax(13rem, 1.45fr) repeat(3, minmax(7.5rem, 1fr));
  gap: 32px 40px;
  align-items: start;
  font-size: 0.875rem; color: rgba(255,255,255,.78);
}
html.dma-world-public .dma-pub-foot-brand { min-width: 0; }
html.dma-world-public .dma-pub-foot-col { min-width: 0; }
html.dma-world-public .dma-pub-foot .dma-pub-logo {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  color: #fff;
  white-space: nowrap;
  padding: 0;
}
html.dma-world-public .dma-pub-foot .dma-pub-logo span { white-space: nowrap; }
html.dma-world-public .dma-pub-foot .dma-pub-logo span.mark { flex-shrink: 0; }
html.dma-world-public .dma-pub-foot .dma-pub-logo:hover { opacity: 0.9; }
html.dma-world-public .dma-pub-foot p { margin: 12px 0 0; max-width: 28rem; line-height: 1.55; color: rgba(255,255,255,.72); }
html.dma-world-public .dma-pub-foot-tag {
  margin: 14px 0 0; font-weight: 650; color: #fff; max-width: 28rem;
}
html.dma-world-public .dma-pub-foot-blurb {
  margin: 10px 0 0; max-width: 28rem; color: rgba(255,255,255,.72);
}
html.dma-world-public .dma-pub-foot-facts {
  list-style: none; margin: 14px 0 0; padding: 0; max-width: 28rem;
  display: grid; gap: 8px;
}
html.dma-world-public .dma-pub-foot-facts li {
  position: relative; padding-left: 16px;
  color: rgba(255,255,255,.7); font-size: 0.875rem; line-height: 1.45;
}
html.dma-world-public .dma-pub-foot-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: #66FCF1;
}
html.dma-world-public .dma-pub-foot strong {
  color: #fff; margin-bottom: 12px; font-size: 0.8125rem; letter-spacing: 0.02em;
}
html.dma-world-public .dma-pub-foot a:not(.dma-pub-logo) {
  display: block; color: rgba(255,255,255,.78); text-decoration: none; padding: 6px 0;
  line-height: 1.45; transition: color 160ms ease;
}
html.dma-world-public .dma-pub-foot a:hover { color: #fff; }
html.dma-world-public .dma-pub-copy {
  text-align: center; color: rgba(255,255,255,.55); font-size: 0.75rem;
  padding: 20px 0 0; margin: 0; width: 100%; max-width: none;
  border-top: 1px solid rgba(255,255,255,.12);
  box-sizing: border-box;
}

html.dma-world-public .dma-pub-hero > div:first-child {
  animation: dma-pub-enter 500ms ease;
  max-width: 42rem;
}
html.dma-world-public .dma-pub-hero {
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 56px;
  justify-items: stretch;
}
html.dma-world-public .dma-pub-hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  letter-spacing: -0.05em;
  line-height: 1.18;
  font-weight: 700;
}
html.dma-world-public .dma-pub-hero .lede {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 38rem;
  color: #555;
}
html.dma-world-public .dma-hero-visual {
  position: relative;
  min-height: 0;
  width: 100%;
  padding: 0 8px 22px;
}
html.dma-world-public .dma-hero-visual::before,
html.dma-world-public .dma-hero-visual::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 20px;
  bottom: -16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(20, 150, 127, 0.12);
  box-shadow: 0 28px 64px rgba(11, 100, 86, 0.14);
  z-index: 0;
  pointer-events: none;
}
html.dma-world-public .dma-hero-visual::after {
  left: 3.5%;
  right: 3.5%;
  top: 10px;
  bottom: -8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(11, 100, 86, 0.1);
}
html.dma-world-public .dma-hero-visual .dma-shot {
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 56px rgba(11, 100, 86, 0.22);
}
html.dma-world-public .dma-hero-visual .dma-shot:hover {
  transform: none;
  box-shadow: 0 24px 56px rgba(11, 100, 86, 0.22);
}
html.dma-world-public .dma-pub-photo {
  box-shadow: 0 16px 36px rgba(11, 100, 86, 0.12);
}
html.dma-world-public .dma-pub-problem .dma-tools span,
html.dma-world-public .dma-flow span {
  border-radius: 999px;
}
html.dma-world-public {
  overflow-x: clip;
}
html.dma-world-public .dma-pub-hero::before {
  inset: -48px 0 auto;
  left: 0;
  right: 0;
}
html.dma-world-public .dma-hero-visual {
  animation: dma-pub-enter 560ms ease;
}
html.dma-world-public .dma-pub-pre {
  opacity: 0; transform: translateY(12px);
}
html.dma-world-public .dma-pub-in {
  opacity: 1; transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}
@keyframes dma-pub-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.dma-world-public .dma-pub-hero > div:first-child,
  html.dma-world-public .dma-hero-visual,
  html.dma-world-public .dma-pub-pre,
  html.dma-world-public .dma-pub-in,
  html.dma-world-public .dma-shot,
  html.dma-world-public .dma-btn,
  html.dma-world-public .dma-omni article {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
@media (max-width: 1100px) {
  html.dma-world-public .dma-shot-inbox3 { grid-template-columns: 0.85fr 1.15fr; }
  html.dma-world-public .dma-shot-ctx { display: none; }
}
@media (max-width: 720px) {
  html.dma-world-public { --dma-pub-gutter: 24px; }
  html.dma-world-public .dma-omni { grid-template-columns: 1fr; }
  html.dma-world-public .dma-pub-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 10px;
    padding: 0 0 24px;
  }
  html.dma-world-public .dma-pub-foot-brand { grid-column: 1 / -1; }
  html.dma-world-public .dma-pub-foot-col { min-width: 0; }
  html.dma-world-public .dma-pub-foot strong {
    font-size: 0.72rem;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
  }
  html.dma-world-public .dma-pub-foot a:not(.dma-pub-logo) {
    font-size: 0.72rem;
    padding: 4px 0;
    overflow-wrap: break-word;
  }
  html.dma-world-public .dma-pub-foot-wrap { padding: 24px 0 24px; }
  html.dma-world-public .dma-pub-close { margin-top: 40px; padding-top: 24px; }
  html.dma-world-public .dma-pub-close .dma-pub-foot-wrap { padding: 24px 0 28px; }
}

html.dma-world-public .dma-pub-photo {
  margin: 0;
  border-radius: var(--dma-pub-r);
  overflow: hidden;
  background: #E7EEF0;
  min-height: 220px;
}
html.dma-world-public .dma-pub-photo img {
  display: block; width: 100%; height: auto;
  object-fit: cover; object-position: center;
  aspect-ratio: 4 / 3;
  transition: transform 480ms ease;
}
html.dma-world-public .dma-pub-photo:hover img { transform: scale(1.03); }
html.dma-world-public .dma-pub-whatsapp .dma-pub-photo img {
  object-position: center 14%;
}
html.dma-world-public .dma-shot-cal-compact { display: none; }
html.dma-world-public .dma-pub-dock { display: none; }

@media (max-width: 1120px) {
  html.dma-world-public .dma-pub-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(20, 150, 127, 0.14);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  html.dma-world-public .dma-pub-dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 48px; padding: 6px 2px;
    text-decoration: none; color: #666;
    font-size: 0.62rem; font-weight: 750; letter-spacing: -0.01em;
    border-radius: 10px; transition: background 160ms ease, color 160ms ease;
  }
  html.dma-world-public .dma-pub-dock a:hover,
  html.dma-world-public .dma-pub-dock a:focus-visible {
    color: #0B6456; background: var(--ds-mint);
  }
  html.dma-world-public body { padding-bottom: 72px; }
}

@media (max-width: 900px) {
  html.dma-world-public .dma-editorial { padding-top: 32px; padding-bottom: 32px; }
  html.dma-world-public .dma-pub-split,
  html.dma-world-public .dma-pub-split--app { grid-template-columns: 1fr; }
  html.dma-world-public .dma-shot--desktop { display: none; }
  html.dma-world-public .dma-pub-photo--mobile { display: block; }
  html.dma-world-public .dma-shot-wide-only { display: none !important; }
  html.dma-world-public .dma-shot-cal-compact { display: flex; }
  html.dma-world-public .dma-shot--hero { min-height: 0; }
  html.dma-world-public .dma-shot--compact-mobile .dma-shot-split { grid-template-columns: 1fr; }
  html.dma-world-public .dma-pub-whatsapp > div:last-child,
  html.dma-world-public .dma-pub-consult > div:last-child { order: -1; }
  html.dma-world-public .dma-pub-split--app > .dma-shot { order: 2; }
  html.dma-world-public .dma-pub-split--app > .dma-pub-photo,
  html.dma-world-public .dma-pub-split--app > .dma-pub-photo--mobile { order: 2; }
  html.dma-world-public .dma-pub-split--app > div { order: 1; }
  html.dma-world-public .dma-omni { grid-template-columns: 1fr 1fr; gap: 10px; }
  html.dma-world-public .dma-pub-journey {
    grid-template-columns: 1fr; gap: 14px;
  }
  html.dma-world-public .dma-pub-journey .dma-flow {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0;
  }
  html.dma-world-public .dma-flow span { padding: 7px 10px; font-size: 0.75rem; }
  html.dma-world-public .dma-flow i { font-size: 0.75rem; }
  html.dma-world-public .dma-pub-photo img { aspect-ratio: 16 / 10; }
  html.dma-world-public .dma-cta-band {
    width: 100%;
    padding: 32px 24px;
    margin: 0;
  }
}

@media (max-width: 720px) {
  html.dma-world-public .dma-omni { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  html.dma-world-public { --dma-pub-gutter: 20px; }
  html.dma-world-public .dma-omni { grid-template-columns: 1fr; }
  html.dma-world-public .dma-pub-hero { padding-top: 28px; padding-bottom: 40px; gap: 24px; }
  html.dma-world-public .dma-pub-hero h1 { font-size: clamp(2.05rem, 10.5vw, 2.85rem); }
  html.dma-world-public .dma-pub-hero .lede { font-size: 1rem; margin: 14px 0 22px; }
  html.dma-world-public .dma-pub-actions { flex-wrap: wrap; }
  html.dma-world-public .dma-pub-actions .dma-btn { flex: 1 1 auto; justify-content: center; }
  html.dma-world-public .dma-hero-visual { padding: 0 0 16px; }
  html.dma-world-public .dma-hero-visual::before { left: 12px; right: 12px; bottom: -10px; }
  html.dma-world-public .dma-hero-visual::after { left: 5px; right: 5px; bottom: -5px; }
  html.dma-world-public .dma-pub-nav { gap: 6px; min-height: 56px; }
  html.dma-world-public .dma-pub-logo { font-size: 0.92rem; gap: 6px; }
  html.dma-world-public .dma-pub-logo span.mark { width: 28px; height: 28px; font-size: 0.65rem; }
  html.dma-world-public .dma-pub-cta { gap: 6px; min-width: 0; }
  html.dma-world-public .dma-pub-cta .dma-btn {
    min-height: 40px; padding: 0 8px; font-size: 0.75rem;
  }
  html.dma-world-public .dma-pub-menu {
    width: 44px; min-width: 44px; min-height: 44px; padding: 0;
  }
  html.dma-world-public .dma-cta-band {
    width: 100%;
    padding: 28px 24px;
  }
  html.dma-world-public .dma-cta-band .dma-btn { min-height: 44px; }
}

@media (max-width: 360px) {
  html.dma-world-public .dma-pub-nav { gap: 4px; }
  html.dma-world-public .dma-pub-logo { font-size: 0.78rem; gap: 5px; }
  html.dma-world-public .dma-pub-logo span.mark { width: 24px; height: 24px; font-size: 0.58rem; }
  html.dma-world-public .dma-pub-cta { gap: 4px; min-width: 0; }
  html.dma-world-public .dma-pub-cta .dma-btn {
    min-height: 40px; padding: 0 7px; font-size: 0.7rem;
  }
  html.dma-world-public .dma-pub-menu {
    width: 44px; min-width: 44px; min-height: 44px; padding: 0;
  }
  html.dma-world-public .dma-cta-band {
    width: 100%;
    padding: 28px 20px;
    margin: 0;
  }
  html.dma-world-public .dma-pub-foot { padding: 0 0 20px; }
}

html.dma-world-public .dma-pub-photo--mobile { display: none; }
html.dma-world-public .dma-editorial > .eyebrow,
html.dma-world-public .dma-editorial .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-primary);
  margin-bottom: 10px;
}
html.dma-world-public .dma-pain article {
  border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-acc .dma-acc-body {
  display: block;
  line-height: 1.55;
  max-width: 62ch;
}
html.dma-world-public .dma-pub-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
html.dma-world-public .dma-pub-plans article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html.dma-world-public .dma-pub-plans .dma-btn { align-self: flex-start; margin-top: auto; }
html.dma-world-public .dma-editorial .dma-pub-actions { margin-top: 24px; }
html.dma-world-public .dma-editorial .dma-flow { margin-top: 20px; }

/* Public DMA OS — landing and helping pages share this dark chrome. */
html.dma-world-public.dma-pub-home {
  --dma-lp-bg: #141C2B;
  --dma-lp-card: rgba(255, 255, 255, 0.05);
  --dma-lp-line: rgba(255, 255, 255, 0.08);
  --dma-lp-blue: #2565FC;
  --dma-lp-blue-2: #3B6BFC;
  --dma-lp-muted: #B4C2D6;
  --dma-lp-text: #F8FBFF;
  --ds-bg: #141C2B;
  scroll-behavior: smooth;
  background: #141C2B;
  color: #F8FBFF;
}
html.dma-world-public.dma-pub-home body {
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(37, 101, 252, 0.18), transparent 58%),
    radial-gradient(720px 420px at 10% 20%, rgba(124, 58, 237, 0.12), transparent 55%),
    #141C2B;
  color: #F8FBFF;
  font-family: var(--ds-font), "Plus Jakarta Sans", var(--ds-font);
}
html.dma-world-public.dma-pub-home .dma-h-display {
  font-family: Montserrat, var(--ds-font-display);
  font-weight: 800;
  color: #F8FBFF;
  letter-spacing: -0.04em;
}
html.dma-world-public.dma-pub-home .lede { color: var(--dma-lp-muted); }
html.dma-world-public.dma-pub-home #dma-public-header {
  background: rgba(20, 28, 43, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 80;
}
html.dma-world-public.dma-pub-home .dma-pub-logo { color: #fff; }
html.dma-world-public.dma-pub-home .dma-pub-logo span.mark {
  background: linear-gradient(135deg, #2565FC, #7C3AED);
  border-radius: 10px;
}
html.dma-world-public.dma-pub-home .dma-pub-links a,
html.dma-world-public.dma-pub-home .dma-pub-links button.dma-pub-drop {
  color: rgba(226, 232, 240, 0.78);
}
html.dma-world-public.dma-pub-home .dma-pub-links a:hover,
html.dma-world-public.dma-pub-home .dma-pub-links button.dma-pub-drop:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-pub-dd-list {
  background: #1C2638;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
html.dma-world-public.dma-pub-home .dma-pub-dd-list a { color: #E8EEF8; }
html.dma-world-public.dma-pub-home .dma-pub-dd-list a:hover {
  background: rgba(37, 101, 252, 0.16);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-pub-cta .dma-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
html.dma-world-public.dma-pub-home .dma-pub-cta .dma-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-btn-primary,
html.dma-world-public.dma-pub-home .dma-lp-glow {
  background: linear-gradient(90deg, #276AFC 0%, #2563EB 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 0 30px rgba(37, 117, 252, 0.4);
}
html.dma-world-public.dma-pub-home .dma-btn-primary:hover,
html.dma-world-public.dma-pub-home .dma-lp-glow:hover {
  background: linear-gradient(90deg, #3B7BFF 0%, #2563EB 100%) !important;
  box-shadow: 0 0 40px rgba(37, 117, 252, 0.6);
  color: #fff !important;
}
html.dma-world-public.dma-pub-home .dma-btn-on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
html.dma-world-public.dma-pub-home .dma-btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-editorial[id],
html.dma-world-public.dma-pub-home #workspace,
html.dma-world-public.dma-pub-home .dma-lp-anchor {
  scroll-margin-top: 84px;
}
html.dma-world-public.dma-pub-home .dma-lp-anchor { display: block; height: 0; }
html.dma-world-public.dma-pub-home .dma-editorial h2 { max-width: 22ch; }
html.dma-world-public.dma-pub-home .dma-lp-head { text-align: center; margin: 0 auto 40px; }
html.dma-world-public.dma-pub-home .dma-lp-head .dma-h-display,
html.dma-world-public.dma-pub-home .dma-lp-head .lede { margin-left: auto; margin-right: auto; }
html.dma-world-public.dma-pub-home .dma-lp-head .lede { max-width: 40rem; }
html.dma-world-public.dma-pub-home .dma-lp-grad {
  background: linear-gradient(90deg, #2575FC, #66FCF1, #7C3AED, #93B4FF, #2575FC);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: dma-lp-grad-shift 8s linear infinite;
}
html.dma-world-public.dma-pub-home .dma-lp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 20px;
  border-radius: 999px;
  background: var(--dma-lp-card);
  border: 1px solid rgba(37, 101, 252, 0.3);
  color: #93B4FF;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
}
html.dma-world-public.dma-pub-home .dma-lp-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: #2565FC;
}
html.dma-world-public.dma-pub-home .dma-lp-hero {
  position: relative;
  min-height: 0;
  display: flex; align-items: center;
  padding: 40px 0 56px;
  overflow: hidden;
}
html.dma-world-public.dma-pub-home .dma-lp-hero-blobs {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
html.dma-world-public.dma-pub-home .dma-lp-blob {
  position: absolute; border-radius: 50%; filter: blur(40px);
  opacity: 0.7;
}
html.dma-world-public.dma-pub-home .dma-lp-blob-a {
  width: 420px; height: 420px; right: 8%; top: -8%;
  background: radial-gradient(circle, rgba(37,101,252,0.45), transparent 68%);
  animation: dma-lp-blob-a 14s ease-in-out infinite alternate;
}
html.dma-world-public.dma-pub-home .dma-lp-blob-b {
  width: 280px; height: 280px; left: -8%; bottom: 8%;
  background: radial-gradient(circle, rgba(102,252,241,0.22), transparent 68%);
  animation: dma-lp-blob-b 18s ease-in-out infinite alternate;
}
html.dma-world-public.dma-pub-home .dma-lp-blob-c {
  width: 280px; height: 280px; right: 28%; bottom: 12%;
  background: radial-gradient(circle, rgba(124,58,237,0.28), transparent 68%);
  animation: dma-lp-blob-c 16s ease-in-out infinite alternate;
}
html.dma-world-public.dma-pub-home .dma-lp-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px; align-items: center; width: 100%;
}
html.dma-world-public.dma-pub-home .dma-lp-hero-copy { text-align: left; min-width: 0; }
html.dma-world-public.dma-pub-home .dma-lp-hero-inner { text-align: center; }
html.dma-world-public.dma-pub-home .dma-lp-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  line-height: 1.18;
  margin: 0 0 20px;
  max-width: 14ch;
}
html.dma-world-public.dma-pub-home .dma-lp-hero .lede {
  max-width: 34rem; margin: 0 0 28px; font-size: 1.125rem; line-height: 1.6;
}
html.dma-world-public.dma-pub-home .dma-lp-hero .dma-pub-actions {
  justify-content: flex-start; margin-bottom: 36px;
}
html.dma-world-public.dma-pub-home .dma-lp-hero .dma-btn {
  min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-lp-kicker {
  margin: 0 0 12px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
html.dma-world-public.dma-pub-home .dma-lp-chips {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
html.dma-world-public.dma-pub-home .dma-lp-chips li {
  padding: 6px 16px; border-radius: 999px;
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  color: rgba(255,255,255,0.7); font-size: 0.875rem;
}
html.dma-world-public.dma-pub-home .dma-lp-note {
  margin: 18px 0 0; max-width: 36rem;
  color: var(--dma-lp-muted); font-size: 0.9375rem; line-height: 1.55;
}
html.dma-world-public.dma-pub-home .dma-lp-section { padding-top: 72px; padding-bottom: 72px; }
html.dma-world-public.dma-pub-home .dma-lp-grid3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
html.dma-world-public.dma-pub-home .dma-lp-card {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  border-radius: 10px;
  padding: 28px 24px;
  min-width: 0;
}
html.dma-world-public.dma-pub-home .dma-lp-card h3 {
  margin: 0 0 10px; color: #fff; font-size: 1.125rem; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-lp-card p,
html.dma-world-public.dma-pub-home .dma-lp-card .lede {
  margin: 0; color: rgba(255,255,255,0.6); line-height: 1.6; font-size: 0.9375rem;
}
html.dma-world-public.dma-pub-home .dma-lp-card .eyebrow {
  display: block; margin-bottom: 10px; color: #93B4FF;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
html.dma-world-public.dma-pub-home .dma-lp-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(37,101,252,0.2), rgba(124,58,237,0.2));
  color: #7AA2FF;
}
html.dma-world-public.dma-pub-home .dma-lp-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch;
}
html.dma-world-public.dma-pub-home .dma-pub-photo {
  margin: 0; min-height: 0; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--dma-lp-line);
}
html.dma-world-public.dma-pub-home .dma-pub-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
}
html.dma-world-public.dma-pub-home .dma-lp-tablist {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px;
}
html.dma-world-public.dma-pub-home .dma-lp-tablist button,
html.dma-world-public.dma-pub-home .dma-lp-role-nav button {
  appearance: none; border: 1px solid transparent; background: transparent;
  color: rgba(255,255,255,0.55); font: inherit; font-weight: 650;
  padding: 12px 10px; border-radius: 12px; cursor: pointer; text-align: left;
}
html.dma-world-public.dma-pub-home .dma-lp-tablist button[aria-pressed="true"],
html.dma-world-public.dma-pub-home .dma-lp-role-nav button[aria-pressed="true"] {
  background: rgba(37, 101, 252, 0.15);
  border-color: rgba(37, 101, 252, 0.3);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-lp-tablist button:hover,
html.dma-world-public.dma-pub-home .dma-lp-role-nav button:hover {
  background: rgba(255,255,255,0.05); color: #fff;
}
html.dma-world-public.dma-pub-home .dma-lp-visit-copy h3 { color: #fff; margin: 0 0 8px; }
html.dma-world-public.dma-pub-home .dma-lp-roles {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px;
}
html.dma-world-public.dma-pub-home .dma-lp-role-nav {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
}
html.dma-world-public.dma-pub-home .dma-lp-role-nav button { width: 100%; }
html.dma-world-public.dma-pub-home .dma-lp-pad { padding: 36px 32px; }
html.dma-world-public.dma-pub-home .dma-lp-contact { text-align: center; }
html.dma-world-public.dma-pub-home .dma-lp-contact .dma-h-display,
html.dma-world-public.dma-pub-home .dma-lp-contact .lede { margin-left: auto; margin-right: auto; }
html.dma-world-public.dma-pub-home .dma-lp-contact .dma-pub-actions { justify-content: center; margin-top: 24px; }

html.dma-world-public.dma-pub-home .dma-pub-plans { gap: 20px; }
html.dma-world-public.dma-pub-home .dma-plan {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  color: #fff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  position: relative;
}
html.dma-world-public.dma-pub-home .dma-plan h3 { color: #fff; }
html.dma-world-public.dma-pub-home .dma-plan-price { color: #fff; font-size: 2.25rem; }
html.dma-world-public.dma-pub-home .dma-plan-price span {
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.4); margin-left: 4px;
}
html.dma-world-public.dma-pub-home .dma-plan > p:not(.dma-plan-price) { color: rgba(255,255,255,0.55); }
html.dma-world-public.dma-pub-home .dma-plan ul {
  list-style: none; margin: 8px 0 16px; padding: 16px 0 0;
  border-top: 1px solid var(--dma-lp-line);
  display: grid; gap: 10px;
}
html.dma-world-public.dma-pub-home .dma-plan li {
  position: relative; padding-left: 22px;
  color: rgba(255,255,255,0.75); font-size: 0.9rem;
}
html.dma-world-public.dma-pub-home .dma-plan li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 8px; height: 8px; border-radius: 50%;
  background: #66FCF1;
}
html.dma-world-public.dma-pub-home .dma-plan--starter,
html.dma-world-public.dma-pub-home .dma-plan--enterprise { background: var(--dma-lp-card); }
html.dma-world-public.dma-pub-home .dma-plan--pro {
  background: rgba(37, 101, 252, 0.12);
  border: 1px solid rgba(37, 101, 252, 0.45);
  box-shadow: 0 0 40px rgba(37, 117, 252, 0.18);
}
html.dma-world-public.dma-pub-home .dma-plan-badge {
  position: absolute; top: 16px; right: 16px;
  margin: 0; padding: 4px 10px; border-radius: 999px;
  background: #2565FC; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
}
html.dma-world-public.dma-pub-home .dma-stepper {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  box-shadow: none;
  justify-content: center;
}
html.dma-world-public.dma-pub-home .dma-stepper li {
  background: rgba(37, 101, 252, 0.12);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-stepper li::before { background: #2565FC; }
html.dma-world-public.dma-pub-home .dma-stepper li:not(:last-child)::after { background: #2565FC; }
html.dma-world-public.dma-pub-home #patient-experience .dma-pub-actions {
  justify-content: center; margin-top: 24px;
}

html.dma-world-public.dma-pub-home .dma-faq-shell {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  border-radius: 16px;
  padding: 12px 28px 20px;
  max-width: 48rem;
  margin: 0 auto;
}
html.dma-world-public.dma-pub-home .dma-faq-cat {
  background: transparent; color: #93B4FF; padding: 16px 0 4px; margin: 8px 0 0;
}
html.dma-world-public.dma-pub-home .dma-faq-list { gap: 0; }
html.dma-world-public.dma-pub-home .dma-faq {
  background: transparent; border: 0; border-bottom: 1px solid var(--dma-lp-line);
  border-radius: 0; box-shadow: none;
}
html.dma-world-public.dma-pub-home .dma-faq.is-open {
  background: transparent; border-color: var(--dma-lp-line); box-shadow: none;
}
html.dma-world-public.dma-pub-home .dma-faq-q { color: #fff; font-size: 0.95rem; font-weight: 600; }
html.dma-world-public.dma-pub-home .dma-faq-q:hover { background: transparent; color: #93B4FF; }
html.dma-world-public.dma-pub-home .dma-faq-chevron { background: rgba(255,255,255,0.06); }
html.dma-world-public.dma-pub-home .dma-faq-chevron::before { border-color: #93B4FF; }
html.dma-world-public.dma-pub-home .dma-faq.is-open .dma-faq-chevron { background: #2565FC; }
html.dma-world-public.dma-pub-home .dma-faq-a p { color: var(--dma-lp-muted); }

html.dma-world-public.dma-pub-home .dma-pub-pills a {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--dma-lp-line);
  box-shadow: none;
}
html.dma-world-public.dma-pub-home .dma-pub-pills a:hover {
  background: rgba(37, 101, 252, 0.2);
  color: #fff;
}

html.dma-world-public.dma-pub-home .dma-pub-close {
  background: #05070A;
  padding-top: 8px;
}
html.dma-world-public.dma-pub-home .dma-cta-band {
  margin: 24px auto 0;
  background: linear-gradient(135deg, rgba(37,101,252,0.22), rgba(124,58,237,0.18));
  border: 1px solid rgba(37, 101, 252, 0.28);
  border-radius: 24px;
  padding: 48px 40px;
}
html.dma-world-public.dma-pub-home .dma-cta-band h2 { color: #fff; }
html.dma-world-public.dma-pub-home .dma-cta-band p { color: rgba(255,255,255,0.7); }
html.dma-world-public.dma-pub-home .dma-cta-band .dma-pub-actions { margin-top: 24px; }
html.dma-world-public.dma-pub-home .dma-cta-band .dma-btn { margin: 0; min-height: 48px; padding: 12px 22px; border-radius: 14px; }
html.dma-world-public.dma-pub-home .dma-pub-foot-wrap {
  background: #05070A;
  margin-top: 0;
  padding: 48px 0 28px;
}
html.dma-world-public.dma-pub-home .dma-pub-copy { color: rgba(255,255,255,0.4); }

html.dma-world-public.dma-pub-home .dma-pub-dock {
  background: rgba(20, 28, 43, 0.94);
  border-color: rgba(255,255,255,0.08);
}
html.dma-world-public.dma-pub-home .dma-pub-dock a {
  color: rgba(255,255,255,0.7);
  background: transparent;
}
html.dma-world-public.dma-pub-home .dma-pub-dock a svg {
  color: inherit;
  stroke: currentColor;
}
html.dma-world-public.dma-pub-home .dma-pub-dock a:hover,
html.dma-world-public.dma-pub-home .dma-pub-dock a:focus-visible,
html.dma-world-public.dma-pub-home .dma-pub-dock a:active,
html.dma-world-public.dma-pub-home .dma-pub-dock a[aria-current="page"] {
  color: #F8FBFF;
  background: rgba(37, 101, 252, 0.22);
}
html.dma-world-public.dma-pub-home .dma-pub-dock a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 101, 252, 0.45);
}

@media (max-width: 1120px) {
  html.dma-world-public.dma-pub-home .dma-pub-menu {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
  }
  html.dma-world-public.dma-pub-home .dma-pub-burger,
  html.dma-world-public.dma-pub-home .dma-pub-burger::before,
  html.dma-world-public.dma-pub-home .dma-pub-burger::after { background: #fff; }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links {
    left: 0;
    right: auto;
    width: min(300px, calc(100vw - 32px));
    max-width: 320px;
    margin-top: 8px;
    padding: 10px 8px 12px;
    border-radius: 10px;
    background: #1C2638;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand {
    border-bottom-color: rgba(255,255,255,0.12);
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand .dma-pub-logo,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand .dma-pub-logo span {
    color: #FFFFFF !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop {
    color: #E8EEF8 !important;
    background: transparent;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a:hover,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:hover {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a:active,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:active {
    background: rgba(37,101,252,0.2);
    color: #FFFFFF !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd.is-open > .dma-pub-drop {
    background: rgba(37,101,252,0.16);
    color: #FFFFFF !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-drop::after {
    border-color: currentColor;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a:focus-visible,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,101,252,0.45);
    background: rgba(255,255,255,0.08);
    color: #FFFFFF !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a {
    color: rgba(226,232,240,0.72) !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a:hover,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a:active {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.08);
  }
}

html.dma-world-public .dma-btn-soft {
  background: #DDF3ED;
  color: #0B6456;
  border-color: transparent;
}
html.dma-world-public .dma-btn-soft:hover {
  background: #c5ebe1;
  color: #0B6456;
}
html.dma-world-public .dma-pub-tint {
  background: #E8F6F2;
  border-radius: var(--dma-pub-r);
  padding: 32px 28px;
}
html.dma-world-public .dma-pub-tint .dma-h-display { max-width: 22ch; }
html.dma-world-public .dma-pub-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
html.dma-world-public .dma-pub-pills a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--dma-pub-r);
  background: #fff; color: #0B6456;
  font-weight: 750; font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(11, 100, 86, 0.08);
}
html.dma-world-public .dma-pub-pills a:hover {
  background: #FAD069; color: #191919;
}
html.dma-world-public .dma-pub-pills a:focus-visible {
  outline: none; box-shadow: 0 0 0 3px var(--ds-primary-glow);
}

html.dma-world-public .dma-pub-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 28px;
}
html.dma-world-public .dma-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  border-radius: var(--dma-pub-r);
  border: 0;
  min-width: 0;
}
html.dma-world-public .dma-plan h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: inherit;
}
html.dma-world-public .dma-plan-price {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
html.dma-world-public .dma-plan > p:not(.dma-plan-price) {
  margin: 0 0 8px;
  color: inherit;
  opacity: 0.88;
  line-height: 1.5;
  flex: 1;
}
html.dma-world-public .dma-plan .dma-btn {
  align-self: stretch;
  justify-content: center;
  margin-top: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-plan--starter {
  background: #FFF7DC;
  color: #191919;
}
html.dma-world-public .dma-plan--pro {
  background: #E8F6F2;
  color: #191919;
  box-shadow: 0 18px 40px rgba(11, 100, 86, 0.18);
  border: 2px solid #FAD069;
  padding-top: 30px;
}
html.dma-world-public .dma-plan--enterprise {
  background: #DDF3ED;
  color: #191919;
}

html.dma-world-public .dma-stepper {
  list-style: none;
  counter-reset: dma-step;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
  margin: 20px 0 0;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--dma-pub-r);
  box-shadow: 0 8px 24px rgba(11, 100, 86, 0.08);
}
html.dma-world-public .dma-stepper li {
  counter-increment: dma-step;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E8F6F2;
  color: #0B6456;
  font-weight: 750;
  font-size: 0.8125rem;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
}
html.dma-world-public .dma-stepper li::before {
  content: counter(dma-step);
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: #14967F; color: #fff;
  font-size: 0.68rem; font-weight: 800;
  display: grid; place-items: center;
}
html.dma-world-public .dma-stepper li:not(:last-child)::after {
  content: "";
  width: 14px; height: 2px;
  background: #14967F;
  opacity: 0.35;
  margin-left: 4px;
  margin-right: -6px;
}

html.dma-world-public .dma-faq-cat {
  display: inline-flex;
  align-items: center;
  margin: 28px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #E8F6F2;
  color: #0B6456;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html.dma-world-public .dma-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.dma-world-public .dma-faq {
  background: #fff;
  border-radius: var(--dma-pub-r);
  border: 1px solid rgba(20, 150, 127, 0.14);
  overflow: hidden;
}
html.dma-world-public .dma-faq.is-open {
  background: #F2FBFA;
  border-color: rgba(20, 150, 127, 0.28);
  box-shadow: inset 4px 0 0 #14967F;
}
html.dma-world-public .dma-faq-q {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  min-height: 56px;
  padding: 14px 16px 14px 18px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #191919;
  font: inherit;
  font-weight: 750;
  font-size: 1.0625rem;
  cursor: pointer;
  border-radius: var(--dma-pub-r);
}
html.dma-world-public .dma-faq-q:hover {
  background: #E8F6F2;
}
html.dma-world-public .dma-faq-q:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ds-primary-glow);
}
html.dma-world-public .dma-faq-chevron {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--dma-pub-r);
  background: #E8F6F2;
  position: relative;
  transition: background 160ms ease, transform 160ms ease;
}
html.dma-world-public .dma-faq-chevron::before {
  content: "";
  position: absolute;
  left: 11px; top: 13px;
  width: 10px; height: 10px;
  border-right: 2px solid #0B6456;
  border-bottom: 2px solid #0B6456;
  transform: rotate(45deg);
  transform-origin: center;
}
html.dma-world-public .dma-faq.is-open .dma-faq-chevron {
  background: #14967F;
}
html.dma-world-public .dma-faq.is-open .dma-faq-chevron::before {
  border-color: #fff;
  transform: rotate(225deg);
  top: 11px;
}
html.dma-world-public .dma-faq-a {
  padding: 0 18px 20px 18px;
}
html.dma-world-public .dma-faq-a p {
  margin: 0;
  color: #3F3F3F;
  line-height: 1.6;
  max-width: 62ch;
}

html.dma-world-public.dma-pub-home .dma-pain article:nth-child(odd),
html.dma-world-public.dma-pub-home .dma-pain article:nth-child(even),
html.dma-world-public.dma-pub-home .dma-omni article:nth-child(odd),
html.dma-world-public.dma-pub-home .dma-omni article:nth-child(even) {
  background: var(--dma-lp-card);
  border-color: var(--dma-lp-line);
  color: #fff;
}

@media (max-width: 900px) {
  html.dma-world-public .dma-pub-plans { grid-template-columns: 1fr; }
  html.dma-world-public .dma-plan--pro {
    transform: none;
  }
  html.dma-world-public .dma-pub-tint { padding: 24px 20px; }
  html.dma-world-public.dma-pub-home { --dma-pub-gutter: 20px; }
  html.dma-world-public.dma-pub-home .dma-lp-section { padding-top: 48px; padding-bottom: 48px; }
  html.dma-world-public.dma-pub-home .dma-lp-hero {
    min-height: 0;
    align-items: flex-start;
    padding: 20px 0 24px;
    overflow: hidden;
  }
  html.dma-world-public.dma-pub-home .dma-lp-grid3,
  html.dma-world-public.dma-pub-home .dma-lp-split,
  html.dma-world-public.dma-pub-home .dma-lp-roles { grid-template-columns: 1fr; }
  html.dma-world-public.dma-pub-home .dma-lp-tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.dma-world-public.dma-pub-home .dma-cta-band { padding: 32px 22px; }
  html.dma-world-public.dma-pub-home .dma-faq-shell { padding: 8px 16px 16px; }
  html.dma-world-public.dma-pub-home .dma-lp-pad { padding: 24px 20px; }
}
@media (max-width: 1120px) {
  html.dma-world-public.dma-pub-home .dma-editorial[id],
  html.dma-world-public.dma-pub-home #workspace {
    scroll-margin-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.dma-world-public.dma-pub-home { scroll-behavior: auto; }
  html.dma-world-public .dma-pub-photo img,
  html.dma-world-public .dma-pub-photo:hover img,
  html.dma-world-public .dma-pub-burger::before,
  html.dma-world-public .dma-pub-burger::after,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-dd-list,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links a,
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop,
  html.dma-world-public .dma-faq-chevron,
  html.dma-world-public .dma-faq-chevron::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  html.dma-world-public .dma-faq.is-open .dma-faq-chevron::before {
    transform: rotate(225deg) !important;
  }
}

/* Home dark cards must follow the shared light public rules so they win. */
html.dma-world-public.dma-pub-home .dma-pub-plans { gap: 20px; }
html.dma-world-public.dma-pub-home .dma-plan {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  color: #fff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  position: relative;
}
html.dma-world-public.dma-pub-home .dma-plan h3 { color: #fff; }
html.dma-world-public.dma-pub-home .dma-plan-price { color: #fff; font-size: 2.25rem; }
html.dma-world-public.dma-pub-home .dma-plan-price span {
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.4); margin-left: 4px;
}
html.dma-world-public.dma-pub-home .dma-plan > p:not(.dma-plan-price) { color: rgba(255,255,255,0.55); opacity: 1; }
html.dma-world-public.dma-pub-home .dma-plan ul {
  list-style: none; margin: 8px 0 16px; padding: 16px 0 0;
  border-top: 1px solid var(--dma-lp-line);
  display: grid; gap: 10px;
}
html.dma-world-public.dma-pub-home .dma-plan li {
  position: relative; padding-left: 22px;
  color: rgba(255,255,255,0.75); font-size: 0.9rem;
}
html.dma-world-public.dma-pub-home .dma-plan li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 8px; height: 8px; border-radius: 50%;
  background: #66FCF1;
}
html.dma-world-public.dma-pub-home .dma-plan--starter,
html.dma-world-public.dma-pub-home .dma-plan--enterprise {
  background: var(--dma-lp-card);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-plan--pro {
  background: rgba(37, 101, 252, 0.12);
  border: 1px solid rgba(37, 101, 252, 0.45);
  box-shadow: 0 0 40px rgba(37, 117, 252, 0.18);
  color: #fff;
  padding-top: 28px;
}
html.dma-world-public.dma-pub-home .dma-stepper {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  box-shadow: none;
  justify-content: center;
}
html.dma-world-public.dma-pub-home .dma-stepper li {
  background: rgba(37, 101, 252, 0.12);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-stepper li::before { background: #2565FC; }
html.dma-world-public.dma-pub-home .dma-stepper li:not(:last-child)::after { background: #2565FC; }
html.dma-world-public.dma-pub-home .dma-faq-shell {
  background: var(--dma-lp-card);
  border: 1px solid var(--dma-lp-line);
  border-radius: 16px;
  padding: 12px 28px 20px;
  max-width: 48rem;
  margin: 0 auto;
}
html.dma-world-public.dma-pub-home .dma-faq-cat {
  background: transparent; color: #93B4FF; padding: 16px 0 4px; margin: 8px 0 0;
}
html.dma-world-public.dma-pub-home .dma-faq-list { gap: 0; }
html.dma-world-public.dma-pub-home .dma-faq {
  background: transparent; border: 0; border-bottom: 1px solid var(--dma-lp-line);
  border-radius: 0; box-shadow: none;
}
html.dma-world-public.dma-pub-home .dma-faq.is-open {
  background: transparent; border-color: var(--dma-lp-line); box-shadow: none;
}
html.dma-world-public.dma-pub-home .dma-faq-q { color: #fff; font-size: 0.95rem; font-weight: 600; }
html.dma-world-public.dma-pub-home .dma-faq-q:hover { background: transparent; color: #93B4FF; }
html.dma-world-public.dma-pub-home .dma-faq-chevron { background: rgba(255,255,255,0.06); }
html.dma-world-public.dma-pub-home .dma-faq-chevron::before { border-color: #93B4FF; }
html.dma-world-public.dma-pub-home .dma-faq.is-open .dma-faq-chevron { background: #2565FC; }
html.dma-world-public.dma-pub-home .dma-faq-a p { color: var(--dma-lp-muted); }
html.dma-world-public.dma-pub-home .dma-pub-pills a {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--dma-lp-line);
  box-shadow: none;
}
html.dma-world-public.dma-pub-home .dma-pub-pills a:hover {
  background: rgba(37, 101, 252, 0.2);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-cta-band {
  margin: 24px auto 0;
  background: linear-gradient(135deg, rgba(37,101,252,0.22), rgba(124,58,237,0.18));
  border: 1px solid rgba(37, 101, 252, 0.28);
  border-radius: 24px;
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-pub-foot-wrap { background: #05070A; }

/* ═══════════════════════════════════════════════════════════
   APP-WIDE: Montserrat headings only · dark glass chrome
   Landing mobile menu contrast · compact toolbars · button tabs
   ═══════════════════════════════════════════════════════════ */

html.dma-world-public h1,
html.dma-world-public h2,
html.dma-world-public h3,
html.dma-world-public .dma-h-display,
html.dma-world-public .dma-h3,
html.dma-world-public .dma-pub-logo,
html.dma-world-auth h1,
html.dma-world-auth h2,
html.dma-world-auth h3,
html.dma-world-auth .dma-auth-form h2,
html.dma-world-auth .dma-auth-visual h1,
html.dma-world-auth .dma-pub-logo,
html.doc-static h1,
html.doc-static h2,
html.doc-static h3,
html.doc-static .doc-topbar h1,
html.doc-static .doc-brand strong,
html.doc-static .dma-head h1,
html.doc-static .ds-work-header h1,
html.doc-static .ds-section h2,
html.doc-static .dma-modal-h h3,
html.sa-static h1,
html.sa-static h2,
html.sa-static h3,
html.sa-static .sa-brand-text strong,
html.sa-static .sa-mobile-brand strong,
html.sa-static .ds-work-header h1,
html.sa-static .sa-content-card h1 {
  font-family: Montserrat, var(--ds-font-display) !important;
}

html.dma-world-public p,
html.dma-world-public a,
html.dma-world-public button,
html.dma-world-public label,
html.dma-world-public td,
html.dma-world-public th,
html.dma-world-public li,
html.dma-world-public input,
html.dma-world-public select,
html.dma-world-public textarea,
html.dma-world-auth p,
html.dma-world-auth a,
html.dma-world-auth button,
html.dma-world-auth label,
html.dma-world-auth input,
html.dma-world-auth select,
html.doc-static p,
html.doc-static a,
html.doc-static button,
html.doc-static label,
html.doc-static td,
html.doc-static th,
html.doc-static input,
html.doc-static select,
html.doc-static .doc-nav a,
html.sa-static p,
html.sa-static a,
html.sa-static button,
html.sa-static label,
html.sa-static td,
html.sa-static th,
html.sa-static input,
html.sa-static select,
html.sa-static .sa-sidebar nav a {
  font-family: var(--ds-font);
}

@media (max-width: 1120px) {
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links {
    left: 0 !important;
    right: auto !important;
    width: min(300px, calc(100vw - 32px)) !important;
    max-width: 320px !important;
    margin-top: 8px;
    padding: 10px 8px 12px;
    border-radius: 10px !important;
    background: #1C2638 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #E8EEF8 !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links li,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links span,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand * {
    color: #E8EEF8 !important;
    -webkit-text-fill-color: #E8EEF8 !important;
    opacity: 1 !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand .dma-pub-logo,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-menu-brand .dma-pub-logo span {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a:hover,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:hover {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: rgba(255,255,255,0.08) !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a:active,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:active {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: rgba(37,101,252,0.22) !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links a:focus-visible,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-links button.dma-pub-drop:focus-visible {
    outline: none;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: rgba(255,255,255,0.08) !important;
    box-shadow: 0 0 0 3px rgba(37,101,252,0.45) !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-drop::after {
    border-color: currentColor !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a {
    color: rgba(255,255,255,0.72) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.72) !important;
  }
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a:hover,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a:active,
  html.dma-world-public.dma-pub-home .dma-pub-nav.is-open .dma-pub-dd-list a:focus-visible {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: rgba(255,255,255,0.08) !important;
  }
}

html.doc-static[data-theme="dark"],
html.sa-static[data-theme="dark"],
/* auth stays light */
html.dma-world-public {
  --ds-bg: #141C2B;
  --ds-bg-2: #1A2334;
  --ds-surface: #1C2638;
  --ds-surface-2: #243044;
  --ds-surface-section: #1C2638;
  --ds-surface-hover: rgba(255,255,255,0.06);
  --ds-elevated: #2A3850;
  --ds-text: #F8FBFF;
  --ds-text-2: #E8EEF8;
  --ds-text-3: #D0DBEC;
  --ds-muted: #B4C2D6;
  --ds-faint: #B4C2D6;
  --ds-border: rgba(255,255,255,0.08);
  --ds-border-2: rgba(255,255,255,0.14);
  --ds-aqua: #141C2B;
  --ds-mint: rgba(14, 122, 104,0.12);
  --ds-mint-deep: rgba(14, 122, 104,0.18);
  --ds-nav: #0B6456;
  --ds-nav-text: #F8FBFF;
  --ds-nav-muted: #B4C2D6;
  --ds-primary: #0E7A68;
  --ds-primary-hover: #0B6456;
  --ds-primary-active: #0B6456;
  --ds-primary-soft: rgba(14, 122, 104,0.16);
  --ds-primary-glow: rgba(14, 122, 104,0.28);
  --ds-focus: 0 0 0 3px rgba(14, 122, 104,0.35);
  --ds-grad-primary: linear-gradient(90deg, #0B6456 0%, #0E7A68 100%);
  --bg: #141C2B;
  --bg-2: #1A2334;
  --surface: #1C2638;
  --surface-2: #243044;
  --text-1: #F8FBFF;
  --text-2: #E8EEF8;
  --muted: #B4C2D6;
  --placeholder: #B4C2D6;
  --border: rgba(255,255,255,0.08);
  --doc-bg: #141C2B;
  --doc-surface: #1C2638;
  --doc-surface-2: #243044;
  --doc-text: #F8FBFF;
  --doc-muted: #B4C2D6;
  --doc-border: rgba(255,255,255,0.08);
  --doc-sidebar: #0B6456;
  --sa-main-bg: #141C2B;
  --sa-card-bg: #1C2638;
  --sa-text: #F8FBFF;
  --sa-muted: #B4C2D6;
  --sa-sidebar-bg: #0B6456;
  --sa-input-bg: #243044;
  --sa-input-border: rgba(255,255,255,0.14);
  color-scheme: dark;
  background: #141C2B;
}
html.dma-world-public {
  --ds-nav: transparent;
}

html.doc-static[data-theme="dark"],
html.doc-static[data-theme="dark"] body,
html.sa-static[data-theme="dark"],
html.sa-static[data-theme="dark"] body,
/* auth stays light */
html.__ds-skip-auth body,
html.__ds-skip-auth body.portal-page {
  background: #141C2B !important;
  color: #F8FBFF !important;
}

html.doc-static[data-theme="dark"] .doc-layout,
html.doc-static[data-theme="dark"] .doc-main-wrap,
html.doc-static[data-theme="dark"] .doc-main,
html.doc-static[data-theme="dark"] .doc-page,
html.sa-static[data-theme="dark"] .sa-layout,
html.sa-static[data-theme="dark"] .sa-main,
html.sa-static[data-theme="dark"] .sa-main-inner {
  background: #141C2B !important;
  color: #F8FBFF !important;
}

html.doc-static[data-theme="dark"] .doc-sidebar,
html.doc-static[data-theme="dark"] .doc-sidebar-backdrop,
html.sa-static[data-theme="dark"] .sa-sidebar {
  background: #0B6456 !important;
  color: #F8FBFF !important;
  border-color: rgba(255,255,255,0.12) !important;
}

html.doc-static[data-theme="dark"] .doc-nav a,
html.doc-static[data-theme="dark"] .doc-sidebar .doc-nav a,
html.sa-static[data-theme="dark"] .sa-sidebar nav a {
  color: #E8EEF8 !important;
}
html.doc-static[data-theme="dark"] .doc-nav a:hover,
html.sa-static[data-theme="dark"] .sa-sidebar nav a:hover {
  color: #FFFFFF !important;
  background: rgba(255,255,255,0.08) !important;
}
html.doc-static[data-theme="dark"] .doc-nav a.active,
html.doc-static[data-theme="dark"] .doc-nav a[aria-current="page"],
html.sa-static[data-theme="dark"] .sa-sidebar nav a.active {
  color: #FFFFFF !important;
  background: rgba(14, 122, 104,0.22) !important;
}
html.doc-static[data-theme="dark"] .doc-nav-section,
html.sa-static[data-theme="dark"] .sa-nav-label {
  color: #B4C2D6 !important;
}
html.doc-static[data-theme="dark"] .doc-brand strong,
html.sa-static[data-theme="dark"] .sa-brand-text strong,
html.sa-static[data-theme="dark"] .sa-mobile-brand strong {
  color: #FFFFFF !important;
}
html.doc-static[data-theme="dark"] .doc-brand span,
html.sa-static[data-theme="dark"] .sa-brand-text span,
html.sa-static[data-theme="dark"] .sa-mobile-brand span {
  color: #B4C2D6 !important;
}

html.doc-static[data-theme="dark"] .doc-topbar,
html.sa-static[data-theme="dark"] .sa-mobile-bar {
  background: rgba(28, 38, 56,0.94) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #F8FBFF !important;
}
html.doc-static[data-theme="dark"] .doc-topbar h1,
html.doc-static[data-theme="dark"] .doc-topbar-actions,
html.doc-static[data-theme="dark"] .doc-topbar-actions a,
html.doc-static[data-theme="dark"] .doc-user-name {
  color: #F8FBFF !important;
}

html.doc-static[data-theme="dark"] .ds-section,
html.doc-static[data-theme="dark"] .ds-card,
html.doc-static[data-theme="dark"] .dma-card,
html.doc-static[data-theme="dark"] .doc-card,
html.sa-static[data-theme="dark"] .ds-section,
html.sa-static[data-theme="dark"] .sa-content-card,
html.sa-static[data-theme="dark"] .ds-card {
  background: #1C2638 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #F8FBFF !important;
  box-shadow: none !important;
}

html.doc-static[data-theme="dark"] h1, html.doc-static[data-theme="dark"] h2, html.doc-static[data-theme="dark"] h3,
html.sa-static[data-theme="dark"] h1, html.sa-static[data-theme="dark"] h2, html.sa-static[data-theme="dark"] h3,
html.__ds-skip-auth h1, html.__ds-skip-auth h2, html.__ds-skip-auth h3 {
  color: #FFFFFF !important;
}

html.doc-static[data-theme="dark"] p, html.doc-static[data-theme="dark"] .ds-muted, html.doc-static[data-theme="dark"] .sa-subtitle,
html.sa-static[data-theme="dark"] p, html.sa-static[data-theme="dark"] .sa-subtitle, html.sa-static[data-theme="dark"] .ds-muted {
  color: #B4C2D6;
}

html.doc-static[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.doc-static[data-theme="dark"] select,
html.doc-static[data-theme="dark"] textarea,
html.sa-static[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.sa-static[data-theme="dark"] select,
html.sa-static[data-theme="dark"] textarea,
html.__ds-skip-auth input:not([type="checkbox"]):not([type="radio"]),
html.__ds-skip-auth select,
html.__ds-skip-auth textarea,
html.doc-static[data-theme="dark"] .ds-search,
html.sa-static[data-theme="dark"] .ds-search {
  background: #243044 !important;
  color: #F8FBFF !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  -webkit-text-fill-color: #F8FBFF !important;
}
html.doc-static[data-theme="dark"] input::placeholder,
html.doc-static[data-theme="dark"] textarea::placeholder,
html.sa-static[data-theme="dark"] input::placeholder,
html.sa-static[data-theme="dark"] textarea::placeholder,
html.__ds-skip-auth input::placeholder,
html.doc-static[data-theme="dark"] .ds-search::placeholder {
  color: #B4C2D6 !important;
  -webkit-text-fill-color: #B4C2D6 !important;
  opacity: 1 !important;
}
html.doc-static[data-theme="dark"] option,
html.sa-static[data-theme="dark"] option,
html.dma-world-auth option {
  background: #1C2638;
  color: #F8FBFF;
}
html.doc-static[data-theme="dark"] select,
html.sa-static[data-theme="dark"] select {
  color: #E8EEF8 !important;
}

html.doc-static[data-theme="dark"] .dma-table,
html.doc-static[data-theme="dark"] .ds-table,
html.sa-static[data-theme="dark"] table,
html.doc-static[data-theme="dark"] th, html.doc-static[data-theme="dark"] td,
html.sa-static[data-theme="dark"] th, html.sa-static[data-theme="dark"] td {
  color: #E8EEF8 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
html.doc-static[data-theme="dark"] thead th,
html.sa-static[data-theme="dark"] thead th {
  color: #B4C2D6 !important;
  background: rgba(255,255,255,0.03) !important;
}

html.doc-static[data-theme="dark"] .dma-btn-primary,
html.doc-static[data-theme="dark"] .ds-btn-primary,
html.sa-static[data-theme="dark"] .dma-btn-primary,
html.sa-static[data-theme="dark"] .ds-btn-primary,
html.sa-static[data-theme="dark"] .sa-btn-primary,
html.__ds-skip-auth .dma-btn-primary,
html.__ds-skip-auth .btn.btn-primary {
  background: linear-gradient(90deg, #0B6456 0%, #0E7A68 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 20px rgba(14, 122, 104,0.28) !important;
}
html.doc-static[data-theme="dark"] .dma-btn-ghost,
html.doc-static[data-theme="dark"] .ds-btn-secondary,
html.doc-static[data-theme="dark"] .ds-btn-outline,
html.sa-static[data-theme="dark"] .ds-btn-secondary,
html.sa-static[data-theme="dark"] .sa-btn-outline {
  background: rgba(255,255,255,0.04) !important;
  color: #E8EEF8 !important;
  border-color: rgba(255,255,255,0.14) !important;
}

html.dma-world-auth .dma-auth {
  background: #141C2B !important;
}
html.dma-world-auth .dma-auth-visual {
  background: linear-gradient(165deg, #1C2638 0%, #141C2B 72%) !important;
  color: #fff !important;
  border-right: 1px solid rgba(255,255,255,0.08);
}
html.dma-world-auth .dma-auth-form,
html.dma-world-auth .dma-auth-simple .dma-auth-form,
html.dma-world-auth .form-card {
  background: #1C2638 !important;
  color: #F8FBFF !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
}
html.dma-world-auth .dma-auth-form h2,
html.dma-world-auth .dma-auth-visual h1 {
  color: #FFFFFF !important;
}
html.dma-world-auth .dma-auth-form .dma-hint,
html.dma-world-auth .dma-auth-visual p,
html.dma-world-auth .dma-steps {
  color: #B4C2D6 !important;
}
html.dma-world-auth .dma-auth-form a { color: #93B4FF !important; }
html.dma-world-auth .dma-chip {
  background: rgba(255,255,255,0.06) !important;
  color: #E8EEF8 !important;
  border-color: rgba(255,255,255,0.12) !important;
}
html.dma-world-auth .dma-chip.is-active {
  background: rgba(14, 122, 104,0.22) !important;
  color: #FFFFFF !important;
  border-color: rgba(14, 122, 104,0.45) !important;
}
html.dma-world-auth .dma-field label,
html.dma-world-auth .field label {
  color: #E8EEF8 !important;
}

html.doc-static[data-theme="dark"] .ds-workspace-tabs,
html.sa-static[data-theme="dark"] .ds-workspace-tabs {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 14px !important;
  overflow-x: auto;
  flex-wrap: nowrap;
}
html.doc-static[data-theme="dark"] .ds-workspace-tabs a,
html.sa-static[data-theme="dark"] .ds-workspace-tabs a {
  color: #E8EEF8 !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 10px !important;
  min-height: 40px !important;
  font-family: var(--ds-font) !important;
  font-weight: 650;
}
html.doc-static[data-theme="dark"] .ds-workspace-tabs a:hover,
html.sa-static[data-theme="dark"] .ds-workspace-tabs a:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #FFFFFF !important;
}
html.doc-static[data-theme="dark"] .ds-workspace-tabs a.on,
html.sa-static[data-theme="dark"] .ds-workspace-tabs a.on {
  background: linear-gradient(90deg, #0B6456, #0E7A68) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px rgba(14, 122, 104,0.35) !important;
}

html.doc-static[data-theme="dark"] .dma-settings-tabs,
html.doc-static[data-theme="dark"] [data-dma-tabs],
html.sa-static[data-theme="dark"] .dma-settings-tabs {
  background: transparent !important;
  border: 0 !important;
  gap: 6px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
}
html.doc-static[data-theme="dark"] .dma-settings-tabs button,
html.doc-static[data-theme="dark"] [data-dma-tabs] button,
html.sa-static[data-theme="dark"] .dma-settings-tabs button {
  color: #E8EEF8 !important;
  -webkit-text-fill-color: #E8EEF8 !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 10px !important;
  min-height: 40px !important;
  margin: 0 !important;
}
html.doc-static[data-theme="dark"] .dma-settings-tabs button.dma-tab-active,
html.doc-static[data-theme="dark"] .dma-settings-tabs button[class*="text-brand"],
html.doc-static[data-theme="dark"] [data-dma-tabs] button.is-active,
html.doc-static[data-theme="dark"] [data-dma-tabs] button[aria-selected="true"] {
  background: linear-gradient(90deg, #0B6456, #0E7A68) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  border-color: transparent !important;
}

html.doc-static[data-theme="dark"] .ds-toolbar,
html.sa-static[data-theme="dark"] .ds-toolbar,
html.doc-static[data-theme="dark"] .ds-work-header,
html.sa-static[data-theme="dark"] .ds-work-header {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto;
}
html.doc-static[data-theme="dark"] .ds-toolbar .ds-search,
html.doc-static[data-theme="dark"] .ds-toolbar input[type="search"],
html.doc-static[data-theme="dark"] .ds-toolbar input[type="text"],
html.sa-static[data-theme="dark"] .ds-toolbar .ds-search,
html.sa-static[data-theme="dark"] .ds-toolbar input[type="search"] {
  flex: 0 1 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  min-width: 140px !important;
}
html.doc-static[data-theme="dark"] .ds-toolbar select,
html.sa-static[data-theme="dark"] .ds-toolbar select {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 160px !important;
  min-width: 112px !important;
}
html.doc-static[data-theme="dark"] .ds-toolbar .dma-btn,
html.doc-static[data-theme="dark"] .ds-toolbar .ds-btn,
html.doc-static[data-theme="dark"] .ds-toolbar button,
html.sa-static[data-theme="dark"] .ds-toolbar .ds-btn,
html.sa-static[data-theme="dark"] .ds-toolbar button,
html.doc-static[data-theme="dark"] .ds-work-header .dma-btn,
html.doc-static[data-theme="dark"] .ds-work-header .ds-btn,
html.sa-static[data-theme="dark"] .ds-work-header .ds-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}
@media (max-width: 768px) {
  html.doc-static[data-theme="dark"] .ds-toolbar .ds-search,
  html.doc-static[data-theme="dark"] .ds-toolbar select,
  html.sa-static[data-theme="dark"] .ds-toolbar .ds-search,
  html.sa-static[data-theme="dark"] .ds-toolbar select {
    flex: 0 0 auto !important;
    max-width: 180px !important;
    width: auto !important;
  }
}

html.doc-static[data-theme="dark"] .doc-menu-btn span,
html.sa-static[data-theme="dark"] .sa-menu-btn span {
  background: #E8EEF8 !important;
}

html.dma-world-auth .dma-field input:not([type="checkbox"]):not([type="radio"]),
html.dma-world-auth .dma-field select,
html.dma-world-auth .dma-field textarea,
html.dma-world-auth .field input:not([type="checkbox"]):not([type="radio"]),
html.dma-world-auth .field select,
html.dma-world-auth .dma-auth-form input:not([type="checkbox"]):not([type="radio"]),
html.dma-world-auth .form-card input:not([type="checkbox"]):not([type="radio"]) {
  background: #243044 !important;
  color: #F8FBFF !important;
  -webkit-text-fill-color: #F8FBFF !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: none !important;
}
html.dma-world-auth .dma-field input::placeholder,
html.dma-world-auth .field input::placeholder,
html.dma-world-auth .dma-auth-form input::placeholder {
  color: #B4C2D6 !important;
  -webkit-text-fill-color: #B4C2D6 !important;
  opacity: 1 !important;
}
html.__ds-skip-auth input:-webkit-autofill,
html.__ds-skip-auth input:-webkit-autofill:hover,
html.__ds-skip-auth input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #243044 inset !important;
  -webkit-text-fill-color: #F8FBFF !important;
  caret-color: #F8FBFF;
}

html.doc-static[data-theme="dark"] .cos-empty,
html.doc-static[data-theme="dark"] .cos-unavail,
html.doc-static[data-theme="dark"] .dma-empty,
html.doc-static[data-theme="dark"] .ds-empty,
html.doc-static[data-theme="dark"] .ds-empty-panel {
  background: #1C2638 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #F8FBFF !important;
}
html.doc-static[data-theme="dark"] .cos-empty h2,
html.doc-static[data-theme="dark"] .cos-unavail h2,
html.doc-static[data-theme="dark"] .dma-empty strong {
  color: #FFFFFF !important;
  font-family: Montserrat, var(--ds-font-display) !important;
}
html.doc-static[data-theme="dark"] .cos-empty p,
html.doc-static[data-theme="dark"] .cos-unavail p,
html.doc-static[data-theme="dark"] .dma-empty p {
  color: #B4C2D6 !important;
}
html.doc-static[data-theme="dark"] .cos-filterbar,
html.doc-static[data-theme="dark"] .ds-toolbar,
html.doc-static[data-theme="dark"] .cos-filterbar {
  flex-wrap: nowrap !important;
  overflow-x: auto;
}
html.doc-static[data-theme="dark"] .cos-filterbar .dma-search,
html.doc-static[data-theme="dark"] .cos-filterbar input[type="search"],
html.doc-static[data-theme="dark"] .cos-filterbar input[type="text"] {
  background: #243044 !important;
  color: #F8FBFF !important;
  border-color: rgba(255,255,255,0.14) !important;
  flex: 0 1 220px !important;
  max-width: 280px !important;
  width: 220px !important;
}
html.doc-static[data-theme="dark"] .cos-filterbar select,
html.doc-static[data-theme="dark"] .cos-appt-card,
html.doc-static[data-theme="dark"] .cos-cal-day {
  background: #1C2638 !important;
  color: #E8EEF8 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
html.doc-static[data-theme="dark"] .ds-pill,
html.doc-static[data-theme="dark"] .dma-chip:not(.is-active):not(.dma-chip-green):not(.dma-chip-red):not(.dma-chip-amber) {
  background: rgba(255,255,255,0.06) !important;
  color: #E8EEF8 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
html.sa-static[data-theme="dark"] .sa-sidebar,
html.sa-static[data-theme="dark"] aside.sa-sidebar {
  background: #141C2B !important;
}

html.doc-static[data-theme="dark"] .dma-tabs,
html.doc-static[data-theme="dark"] .ds-tabs,
html.sa-static[data-theme="dark"] .dma-tabs,
html.sa-static[data-theme="dark"] .ds-tabs {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
html.doc-static[data-theme="dark"] .dma-tabs button,
html.doc-static[data-theme="dark"] .ds-tabs button {
  color: #E8EEF8 !important;
  background: transparent !important;
  font-family: var(--ds-font) !important;
}
html.doc-static[data-theme="dark"] .dma-tabs button.active,
html.doc-static[data-theme="dark"] .ds-tabs button.active {
  background: linear-gradient(90deg, #0B6456, #0E7A68) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(14, 122, 104,0.28) !important;
}
html.doc-static[data-theme="dark"] .cos-pt-toolbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto;
}
html.doc-static[data-theme="dark"] .cos-pt-toolbar .dma-search {
  flex: 0 1 220px !important;
  max-width: 240px !important;
  width: 220px !important;
  background: #243044 !important;
  color: #F8FBFF !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
html.doc-static[data-theme="dark"] .cos-pt-toolbar .dma-tabs {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Heading line-height — Montserrat titles only; body copy unchanged */
html.dma-world-public h1,
html.dma-world-public h2,
html.dma-world-public h3,
html.dma-world-public .dma-h-display,
html.dma-world-public .dma-h3,
html.__ds-skip-auth h1,
html.__ds-skip-auth h2,
html.__ds-skip-auth h3,
html.dma-world-auth .dma-auth-form h2,
html.dma-world-auth .dma-auth-visual h1,
html.doc-static[data-theme="dark"] h1,
html.doc-static[data-theme="dark"] h2,
html.doc-static[data-theme="dark"] h3,
html.doc-static[data-theme="dark"] .doc-topbar h1,
html.doc-static[data-theme="dark"] .dma-head h1,
html.doc-static[data-theme="dark"] .ds-work-header h1,
html.doc-static[data-theme="dark"] .ds-section h2,
html.doc-static[data-theme="dark"] .dma-modal-h h3,
html.sa-static[data-theme="dark"] h1,
html.sa-static[data-theme="dark"] h2,
html.sa-static[data-theme="dark"] h3,
html.sa-static[data-theme="dark"] .ds-work-header h1,
html.sa-static[data-theme="dark"] .sa-content-card h1 {
  line-height: 1.22 !important;
}

/* FAQ: one glass card, hairline rows, no category headings */
html.dma-world-public .dma-faq-cat { display: none !important; }
html.dma-world-public .dma-faq-shell {
  background: #fff;
  border: 1px solid rgba(20, 150, 127, 0.16);
  border-radius: 16px;
  padding: 4px 18px 8px;
  max-width: 48rem;
}
html.dma-world-public .dma-faq-list { gap: 0; }
html.dma-world-public .dma-faq {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  box-shadow: none;
}
html.dma-world-public .dma-faq:last-child { border-bottom: 0; }
html.dma-world-public .dma-faq.is-open {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}
html.dma-world-public .dma-faq-q {
  min-height: 48px;
  padding: 12px 4px 12px 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--ds-font), var(--ds-font) !important;
  color: #191919;
}
html.dma-world-public .dma-faq-q:hover { background: transparent; color: #0B6456; }
html.dma-world-public .dma-faq-chevron {
  width: 28px; height: 28px; background: rgba(11, 100, 86, 0.08);
}
html.dma-world-public.dma-pub-home .dma-faq-shell {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dma-lp-line);
  padding: 4px 22px 8px;
}
html.dma-world-public.dma-pub-home .dma-faq-q {
  color: #fff; font-size: 0.9rem; font-weight: 600;
}
html.dma-world-public.dma-pub-home .dma-faq-q:hover { color: #93B4FF; background: transparent; }
html.dma-world-public.dma-pub-home .dma-faq {
  border-bottom-color: var(--dma-lp-line);
}
html.dma-world-public.dma-pub-home .dma-faq-a { padding: 0 2px 14px; }
html.dma-world-public.dma-pub-home .dma-faq-a p { color: var(--dma-lp-muted); font-size: 0.875rem; }

/* Hero product cards — beside/below the dashboard, never covering it */
html.dma-world-public.dma-pub-home .dma-lp-hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
}
html.dma-world-public.dma-pub-home .dma-lp-hero-stage > .dma-os-hero-frame {
  width: 100%;
}
html.dma-world-public.dma-pub-home .dma-lp-hero-extras {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
html.dma-world-public.dma-pub-home .dma-lp-float {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: auto;
  max-width: none;
  inset: auto;
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  color: #E8EEF8;
  pointer-events: none;
  min-width: 0;
  animation: none;
}
html.dma-world-public.dma-pub-home .dma-lp-float-chat {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 14px 16px 16px;
}
html.dma-world-public.dma-pub-home .dma-lp-chat-toast {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px;
  padding: 6px 12px; border-radius: 10px;
  background: rgba(16, 24, 42, 0.95);
  border: 1px solid rgba(14, 122, 104,0.35);
  color: #93B4FF; font-size: 0.72rem; font-weight: 650;
}
html.dma-world-public.dma-pub-home .dma-lp-chat-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
html.dma-world-public.dma-pub-home .dma-lp-chat-meta strong {
  font-family: Montserrat, var(--ds-font-display); font-size: 0.9rem; color: #fff;
}
html.dma-world-public.dma-pub-home .dma-lp-chat-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  color: #34D399; font-size: 0.72rem; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-lp-chat-meta span i {
  width: 7px; height: 7px; border-radius: 50%; background: #34D399;
}
html.dma-world-public.dma-pub-home .dma-lp-chat-meta em {
  grid-column: 2; font-style: normal; color: #A8B6CC; font-size: 0.68rem; text-align: right;
}
html.dma-world-public.dma-pub-home .dma-lp-chat-log { display: grid; gap: 8px; margin-top: 12px; }
html.dma-world-public.dma-pub-home .dma-lp-msg {
  margin: 0; max-width: 92%; padding: 10px 12px; border-radius: 14px;
  font-size: 0.8125rem; line-height: 1.45;
}
html.dma-world-public.dma-pub-home .dma-lp-msg-in {
  background: rgba(255,255,255,0.07); color: #E8EEF8;
}
html.dma-world-public.dma-pub-home .dma-lp-msg-out {
  margin-left: auto;
  background: linear-gradient(135deg, #2565FC, #0B6456);
  color: #fff;
}
html.dma-world-public.dma-pub-home .dma-lp-float-wa {
  grid-column: 2;
  grid-row: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  width: auto;
}
html.dma-world-public.dma-pub-home .dma-lp-wa-ico {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: #25D366;
}
html.dma-world-public.dma-pub-home .dma-lp-float-wa strong {
  display: block; font-size: 0.8125rem; color: #fff;
}
html.dma-world-public.dma-pub-home .dma-lp-float-wa p {
  margin: 2px 0 0; font-size: 0.72rem; color: #A8B6CC; line-height: 1.35;
}
html.dma-world-public.dma-pub-home .dma-lp-float-appt {
  grid-column: 2;
  grid-row: 2;
  padding: 14px 16px;
  width: auto;
  display: block;
}
html.dma-world-public.dma-pub-home .dma-lp-float-appt > span {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #A8B6CC; margin-bottom: 6px;
}
html.dma-world-public.dma-pub-home .dma-lp-appt-row strong {
  display: block; font-family: Montserrat, var(--ds-font-display);
  font-size: 1.65rem; color: #fff; letter-spacing: -0.03em; margin-bottom: 8px;
}
html.dma-world-public.dma-pub-home .dma-lp-appt-row ul {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 4px;
}
html.dma-world-public.dma-pub-home .dma-lp-appt-row li {
  font-size: 0.75rem; color: #34D399; font-weight: 650;
}
html.dma-world-public.dma-pub-home .dma-lp-appt-row li.is-pending { color: #F59E0B; }

html.dma-world-public.dma-pub-home .dma-lp-grid3-tight {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
html.dma-world-public.dma-pub-home .dma-lp-grid3-tight .dma-lp-card { padding: 16px 18px; }
html.dma-world-public.dma-pub-home .dma-lp-grid4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
html.dma-world-public.dma-pub-home .dma-lp-pain .dma-lp-card {
  padding: 22px 20px;
}
html.dma-world-public.dma-pub-home .dma-lp-contact-grid {
  text-align: left;
  margin: 28px 0 8px;
}
html.dma-world-public.dma-pub-home .dma-lp-contact-grid .dma-lp-card {
  background: rgba(255,255,255,0.04);
}

@keyframes dma-lp-grad-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes dma-lp-blob-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.12); }
}
@keyframes dma-lp-blob-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(36px, -24px) scale(1.08); }
}
@keyframes dma-lp-blob-c {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, -36px); }
}
@keyframes dma-lp-float-y {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  html.dma-world-public.dma-pub-home { --dma-pub-gutter: 20px; }
  html.dma-world-public.dma-pub-home .dma-lp-hero-grid { grid-template-columns: 1fr; }
  html.dma-world-public.dma-pub-home .dma-lp-hero-grid { gap: 16px; align-items: start; }
  html.dma-world-public.dma-pub-home .dma-lp-hero {
    min-height: 0 !important;
    align-items: flex-start;
    padding: 20px 0 24px;
    overflow: hidden;
  }
  html.dma-world-public.dma-pub-home .dma-lp-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
    max-width: none;
    margin-bottom: 12px;
  }
  html.dma-world-public.dma-pub-home .dma-lp-hero .lede {
    margin-bottom: 16px;
    font-size: 1rem;
  }
  html.dma-world-public.dma-pub-home .dma-lp-hero .dma-pub-actions { margin-bottom: 18px; }
  html.dma-world-public.dma-pub-home .dma-lp-note { margin-top: 12px; }
  html.dma-world-public.dma-pub-home .dma-lp-hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0 !important;
    height: auto;
    max-width: none;
    margin: 8px 0 0;
    width: 100%;
    padding-bottom: 0;
  }
  html.dma-world-public.dma-pub-home .dma-lp-hero-extras {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  html.dma-world-public.dma-pub-home .dma-lp-float {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none;
    inset: auto;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  html.dma-world-public.dma-pub-home .dma-lp-float-chat {
    padding: 12px 14px;
  }
  html.dma-world-public.dma-pub-home .dma-lp-chat-toast {
    margin: 0 0 8px;
    font-size: 0.68rem;
  }
  html.dma-world-public.dma-pub-home .dma-lp-chat-meta strong { font-size: 0.82rem; }
  html.dma-world-public.dma-pub-home .dma-lp-msg {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  html.dma-world-public.dma-pub-home .dma-lp-float-wa {
    padding: 10px 12px;
  }
  html.dma-world-public.dma-pub-home .dma-lp-float-appt {
    padding: 12px 14px;
  }
  html.dma-world-public.dma-pub-home .dma-lp-appt-row strong {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.dma-world-public.dma-pub-home .dma-lp-grad,
  html.dma-world-public.dma-pub-home .dma-lp-blob,
  html.dma-world-public.dma-pub-home .dma-lp-float {
    animation: none !important;
  }
  html.dma-world-public.dma-pub-home .dma-lp-grad {
    background-size: 100% auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   CLINIC + ADMIN INNER OS — dark glass surfaces
   Chrome is already navy. This forces leftover light cards,
   tables, calendar, inbox, modals, analytics, settings, and
   WhatsApp panels onto the same dark family as landing/auth.
   ═══════════════════════════════════════════════════════════ */
html.doc-static[data-theme="dark"] .dma-section,
html.doc-static[data-theme="dark"] .dma-section-muted,
html.doc-static[data-theme="dark"] .ds-section-muted,
html.doc-static[data-theme="dark"] .dma-panel,
html.doc-static[data-theme="dark"] .dma-kpi,
html.doc-static[data-theme="dark"] .cos-card,
html.doc-static[data-theme="dark"] .cos-card--kpi,
html.doc-static[data-theme="dark"] .cos-card--feature,
html.doc-static[data-theme="dark"] .cos-card--data,
html.doc-static[data-theme="dark"] .cos-card--action,
html.doc-static[data-theme="dark"] .cos-card--status,
html.doc-static[data-theme="dark"] .cos-card--appt,
html.doc-static[data-theme="dark"] .cos-card--profile,
html.doc-static[data-theme="dark"] .dma-hero-panel,
html.doc-static[data-theme="dark"] .dma-next-card,
html.doc-static[data-theme="dark"] .dma-person-card,
html.doc-static[data-theme="dark"] .dma-alert,
html.doc-static[data-theme="dark"] .cos-card--alert,
html.doc-static[data-theme="dark"] .cos-unavail,
html.doc-static[data-theme="dark"] .cos-appt-card,
html.doc-static[data-theme="dark"] .cos-cal-day,
html.doc-static[data-theme="dark"] .cos-cal-day.is-out,
html.doc-static[data-theme="dark"] .cos-week-col,
html.doc-static[data-theme="dark"] .cos-wait-row,
html.doc-static[data-theme="dark"] .cos-queue-row,
html.doc-static[data-theme="dark"] .cos-profile-hero,
html.doc-static[data-theme="dark"] .cos-ops-metrics div,
html.doc-static[data-theme="dark"] .dma-inbox-list,
html.doc-static[data-theme="dark"] .dma-inbox .dma-thread,
html.doc-static[data-theme="dark"] .dma-inbox-ctx,
html.doc-static[data-theme="dark"] .dma-thread,
html.doc-static[data-theme="dark"] .dma-thread-h,
html.doc-static[data-theme="dark"] .dma-thread-c,
html.doc-static[data-theme="dark"] .dma-row-item,
html.doc-static[data-theme="dark"] button.dma-row-item,
html.doc-static[data-theme="dark"] a.dma-row-item,
html.doc-static[data-theme="dark"] .dma-modal,
html.doc-static[data-theme="dark"] .dma-modal-f,
html.doc-static[data-theme="dark"] .ds-modal,
html.doc-static[data-theme="dark"] .ds-modal-f,
html.doc-static[data-theme="dark"] .ds-drawer-panel,
html.doc-static[data-theme="dark"] .dma-ui-drawer,
html.doc-static[data-theme="dark"] .cos-pick-item,
html.doc-static[data-theme="dark"] .cos-slot,
html.doc-static[data-theme="dark"] .cos-filter-hint,
html.doc-static[data-theme="dark"] .cos-filterbar .dma-search,
html.doc-static[data-theme="dark"] .dma-wait-col,
html.doc-static[data-theme="dark"] .dma-convo,
html.doc-static[data-theme="dark"] .dma-omni article,
html.doc-static[data-theme="dark"] .ds-hours-row,
html.doc-static[data-theme="dark"] .cos-settings-body .dma-section,
html.doc-static[data-theme="dark"] .cos-consult-bar,
html.doc-static[data-theme="dark"] .dma-ui-bars,
html.doc-static[data-theme="dark"] .dma-home-wa {
  background: #1C2638 !important;
  background-image: none !important;
  color: #F8FBFF !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

html.doc-static[data-theme="dark"] .cos-card--kpi span,
html.doc-static[data-theme="dark"] .cos-card--kpi em,
html.doc-static[data-theme="dark"] .dma-kpi span,
html.doc-static[data-theme="dark"] .dma-kpi label,
html.doc-static[data-theme="dark"] .dma-kpi em,
html.doc-static[data-theme="dark"] .dma-kpi .sub,
html.doc-static[data-theme="dark"] .dma-section-h h2,
html.doc-static[data-theme="dark"] .ds-section-h h2,
html.doc-static[data-theme="dark"] .dma-section-h p,
html.doc-static[data-theme="dark"] .dma-hint,
html.doc-static[data-theme="dark"] .cos-hint,
html.doc-static[data-theme="dark"] .dma-prose,
html.doc-static[data-theme="dark"] .cos-appt-card .meta,
html.doc-static[data-theme="dark"] .dma-row-item .sub,
html.doc-static[data-theme="dark"] .dma-row-item .meta,
html.doc-static[data-theme="dark"] .dma-inbox-item .sub,
html.doc-static[data-theme="dark"] .cos-pick-copy span,
html.doc-static[data-theme="dark"] .cos-filter-hint,
html.doc-static[data-theme="dark"] .cos-week-col,
html.doc-static[data-theme="dark"] .cos-cal-day h4,
html.doc-static[data-theme="dark"] .dma-person-card .dma-hint,
html.doc-static[data-theme="dark"] .dma-thread-h,
html.doc-static[data-theme="dark"] .cos-stepper-meta,
html.doc-static[data-theme="dark"] .dma-modal-h,
html.doc-static[data-theme="dark"] .cos-label,
html.doc-static[data-theme="dark"] .dma-field label,
html.doc-static[data-theme="dark"] .cos-drawer-sec h3 {
  color: #D0DBEC !important;
  -webkit-text-fill-color: #D0DBEC !important;
  opacity: 1 !important;
}

html.doc-static[data-theme="dark"] .cos-card--kpi strong,
html.doc-static[data-theme="dark"] .dma-kpi strong,
html.doc-static[data-theme="dark"] .dma-row-item .name,
html.doc-static[data-theme="dark"] .dma-inbox-item .name,
html.doc-static[data-theme="dark"] .cos-pick-copy strong,
html.doc-static[data-theme="dark"] .dma-person-card strong,
html.doc-static[data-theme="dark"] .cos-appt-card .who,
html.doc-static[data-theme="dark"] .cos-appt-card .when,
html.doc-static[data-theme="dark"] .dma-modal-h h3,
html.doc-static[data-theme="dark"] .cos-week-col,
html.doc-static[data-theme="dark"] .cos-cal-day,
html.doc-static[data-theme="dark"] .dma-home-wa strong {
  color: #F8FBFF !important;
  -webkit-text-fill-color: #F8FBFF !important;
  opacity: 1 !important;
}

html.doc-static[data-theme="dark"] .cos-card--alert,
html.doc-static[data-theme="dark"] .dma-alert {
  background: rgba(250, 208, 105, 0.10) !important;
  border-color: rgba(250, 208, 105, 0.28) !important;
  color: #F8FBFF !important;
}

html.doc-static[data-theme="dark"] .cos-skel,
html.doc-static[data-theme="dark"] .dma-ui-bars {
  background: linear-gradient(90deg, #243044 0%, #1A2236 50%, #243044 100%) !important;
  background-size: 200% 100% !important;
}

html.doc-static[data-theme="dark"] .cos-cal-day.is-today {
  background: rgba(14, 122, 104, 0.16) !important;
  border-color: #0E7A68 !important;
}

html.doc-static[data-theme="dark"] .dma-inbox-item,
html.doc-static[data-theme="dark"] .dma-inbox-item .name,
html.doc-static[data-theme="dark"] .dma-inbox-item .sub {
  color: #E8EEF8 !important;
}
html.doc-static[data-theme="dark"] .dma-inbox-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}
html.doc-static[data-theme="dark"] .dma-inbox-item.on {
  background: rgba(14, 122, 104, 0.16) !important;
  border-left-color: #0E7A68 !important;
}

html.doc-static[data-theme="dark"] .dma-bubble.in {
  background: #1A2236 !important;
  color: #F8FBFF !important;
}
html.doc-static[data-theme="dark"] .dma-bubble.out {
  background: linear-gradient(135deg, #14967F, #0B6456) !important;
  color: #fff !important;
}

html.doc-static[data-theme="dark"] .dma-modal-bg,
html.doc-static[data-theme="dark"] .ds-modal-wrap {
  background: rgba(20, 28, 43, 0.72) !important;
}
html.doc-static[data-theme="dark"] .dma-modal,
html.doc-static[data-theme="dark"] .dma-modal--wizard,
html.doc-static[data-theme="dark"] .ds-modal {
  background: #1C2638 !important;
  color: #F8FBFF !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}
html.doc-static[data-theme="dark"] .cos-pick-item {
  background: #243044 !important;
  color: #F8FBFF !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}
html.doc-static[data-theme="dark"] .cos-pick-item .cos-pick-copy strong,
html.doc-static[data-theme="dark"] .cos-pick-item .cos-pick-copy span {
  color: #E8EEF8 !important;
  -webkit-text-fill-color: #E8EEF8 !important;
  opacity: 1 !important;
}
html.doc-static[data-theme="dark"] .cos-pick-item:hover,
html.doc-static[data-theme="dark"] .cos-pick-item.on {
  background: rgba(14, 122, 104, 0.18) !important;
  border-color: #0E7A68 !important;
}
html.doc-static[data-theme="dark"] .cos-pick-item.on .cos-pick-copy strong,
html.doc-static[data-theme="dark"] .cos-pick-item.on .cos-pick-copy span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html.doc-static[data-theme="dark"] .cos-stepper-meta,
html.doc-static[data-theme="dark"] .dma-modal-h button,
html.doc-static[data-theme="dark"] .dma-modal-h .dma-btn-ghost {
  color: #D0DBEC !important;
  opacity: 1 !important;
}

html.doc-static[data-theme="dark"] .cos-filterbar,
html.doc-static[data-theme="dark"] .cos-pt-toolbar,
html.doc-static[data-theme="dark"] .dma-status-bar {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 6px 8px !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
html.doc-static[data-theme="dark"] .cos-filter-hint {
  background: #243044 !important;
  color: #D0DBEC !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  height: 40px !important;
}

html.doc-static[data-theme="dark"] .cos-settings-nav {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.doc-static[data-theme="dark"] .cos-settings-nav button {
  color: #E8EEF8 !important;
}
html.doc-static[data-theme="dark"] .cos-settings-nav button.active {
  background: linear-gradient(90deg, #0B6456, #0E7A68) !important;
  color: #FFFFFF !important;
}

html.doc-static[data-theme="dark"] .dma-view-toggle {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.doc-static[data-theme="dark"] .dma-view-toggle button.on {
  background: #243044 !important;
  color: #F8FBFF !important;
}

html.doc-static[data-theme="dark"] .dma-panel-h,
html.doc-static[data-theme="dark"] .dma-section-muted,
html.doc-static[data-theme="dark"] .ds-section-muted {
  background: #243044 !important;
}

html.doc-static[data-theme="dark"] .dma-person-card .dma-avatar,
html.doc-static[data-theme="dark"] .cos-empty-mark,
html.doc-static[data-theme="dark"] .cos-appt-card .cos-avatar {
  background: rgba(20, 150, 127, 0.22) !important;
  color: #7ACFBD !important;
}

html.doc-static[data-theme="dark"] a.cos-card--kpi:hover,
html.doc-static[data-theme="dark"] .cos-card--kpi:hover,
html.doc-static[data-theme="dark"] .dma-kpi:hover {
  border-color: rgba(14, 122, 104, 0.45) !important;
  background: #243044 !important;
}

html.doc-static[data-theme="dark"] .dma-home-wa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin: 0 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(37, 211, 102, 0.28) !important;
  background: linear-gradient(165deg, #1C2638 0%, #0E1A18 100%) !important;
}
html.doc-static[data-theme="dark"] .dma-home-wa-copy {
  min-width: 0;
  max-width: 40rem;
}
html.doc-static[data-theme="dark"] .dma-home-wa-copy strong {
  display: block;
  font-family: Montserrat, var(--ds-font-display), sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF !important;
  margin-bottom: 4px;
}
html.doc-static[data-theme="dark"] .dma-home-wa-copy p {
  margin: 0;
  color: #D0DBEC !important;
  font-size: 0.875rem;
  line-height: 1.5;
}
html.doc-static[data-theme="dark"] .dma-home-wa--on {
  border-color: rgba(74, 222, 128, 0.35) !important;
}
html.doc-static[data-theme="dark"] .dma-btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: transparent !important;
}

html.doc-static[data-theme="dark"] .dma-wa-panel,
html.doc-static[data-theme="dark"] .dma-wa-stat,
html.doc-static[data-theme="dark"] .dma-wa-quick__item,
html.doc-static[data-theme="dark"] .dma-wa-settings-teaser,
html.doc-static[data-theme="dark"] .dma-wa-phone-badge,
html.doc-static[data-theme="dark"] .dma-wa-log,
html.doc-static[data-theme="dark"] .dma-wa-log th,
html.doc-static[data-theme="dark"] .dma-wa-log td {
  background: #1C2638 !important;
  color: #E8EEF8 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.doc-static[data-theme="dark"] .dma-wa-panel h2,
html.doc-static[data-theme="dark"] .dma-wa-stat__val,
html.doc-static[data-theme="dark"] .dma-wa-quick__item strong,
html.doc-static[data-theme="dark"] .dma-wa-phone-number {
  color: #F8FBFF !important;
  -webkit-text-fill-color: #F8FBFF !important;
}
html.doc-static[data-theme="dark"] .dma-wa-panel p,
html.doc-static[data-theme="dark"] .dma-wa-stat__lbl,
html.doc-static[data-theme="dark"] .dma-wa-stat__sub,
html.doc-static[data-theme="dark"] .dma-wa-muted,
html.doc-static[data-theme="dark"] .dma-wa-quick__item span,
html.doc-static[data-theme="dark"] .dma-wa-log-preview,
html.doc-static[data-theme="dark"] .dma-wa-phone-meta {
  color: #D0DBEC !important;
  -webkit-text-fill-color: #D0DBEC !important;
}
html.doc-static[data-theme="dark"] .dma-wa-quick__item {
  background: #243044 !important;
}
html.doc-static[data-theme="dark"] .dma-wa-btn--ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #E8EEF8 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.sa-static[data-theme="dark"] .sa-content-card,
html.sa-static[data-theme="dark"] .ds-section,
html.sa-static[data-theme="dark"] .ds-section-muted,
html.sa-static[data-theme="dark"] .sa-table-wrap,
html.sa-static[data-theme="dark"] .sa-data-table,
html.sa-static[data-theme="dark"] .ds-kpis > *,
html.sa-static[data-theme="dark"] .ds-kpi,
html.sa-static[data-theme="dark"] table,
html.sa-static[data-theme="dark"] thead th,
html.sa-static[data-theme="dark"] tbody td,
html.sa-static[data-theme="dark"] .int-card,
html.sa-static[data-theme="dark"] .sa-main-inner {
  background: #1C2638 !important;
  color: #F8FBFF !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
html.sa-static[data-theme="dark"] thead th {
  background: #243044 !important;
  color: #D0DBEC !important;
}
html.sa-static[data-theme="dark"] tbody tr:hover td,
html.sa-static[data-theme="dark"] .sa-data-table tbody tr:hover td {
  background: rgba(14, 122, 104, 0.12) !important;
}
html.sa-static[data-theme="dark"] .sa-subtitle,
html.sa-static[data-theme="dark"] .ds-muted {
  color: #B4C2D6 !important;
}
html.sa-static[data-theme="dark"] .sa-main {
  background: #141C2B !important;
  padding: 20px 24px 40px !important;
}
html.sa-static[data-theme="dark"] .ds-work-header {
  gap: 12px !important;
  margin-bottom: 16px !important;
}
html.sa-static[data-theme="dark"] .ds-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
html.sa-static[data-theme="dark"] .sa-clinic-btn-suspend {
  background: transparent !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
}

html.doc-static[data-theme="dark"] .dma-comp-bar {
  background: rgba(255, 255, 255, 0.08) !important;
}
html.doc-static[data-theme="dark"] .dma-comp-row,
html.doc-static[data-theme="dark"] .dma-comp-row strong {
  color: #E8EEF8 !important;
}

@media (max-width: 768px) {
  html.doc-static[data-theme="dark"] .dma-home-wa {
    padding: 14px;
  }
  html.doc-static[data-theme="dark"] .cos-filterbar,
  html.doc-static[data-theme="dark"] .cos-pt-toolbar {
    flex-wrap: wrap !important;
  }
}

/* Helping + legal public pages */
html.dma-world-public.dma-pub-page .dma-pub-page-main {
  padding: 8px 0 40px;
}
html.dma-world-public.dma-pub-page .dma-pub-page-main > .dma-editorial {
  padding-top: 28px;
  padding-bottom: 36px;
}
html.dma-world-public.dma-pub-home .dma-pain article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dma-lp-line);
  color: #E8EEF8;
}
html.dma-world-public.dma-pub-home .dma-pain h3 { color: #fff; }
html.dma-world-public.dma-pub-home .dma-pain p { color: var(--dma-lp-muted); }
html.dma-world-public.dma-pub-page .legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px var(--dma-pub-gutter, 24px) 72px;
}
html.dma-world-public.dma-pub-page .legal-wrap h1 {
  font-family: Montserrat, var(--ds-font-display);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
html.dma-world-public.dma-pub-page .legal-wrap h2 {
  font-family: Montserrat, var(--ds-font-display);
  font-weight: 700;
  color: #fff;
}
html.dma-world-public.dma-pub-page .legal-meta,
html.dma-world-public.dma-pub-page .legal-section p,
html.dma-world-public.dma-pub-page .legal-section li {
  color: #B4C2D6;
}
html.dma-world-public.dma-pub-page .legal-section a,
html.dma-world-public.dma-pub-page .legal-toc a,
html.dma-world-public.dma-pub-page .contact-card a,
html.dma-world-public.dma-pub-page .legal-back {
  color: #93B4FF;
}
html.dma-world-public.dma-pub-page .legal-toc,
html.dma-world-public.dma-pub-page .contact-card,
html.dma-world-public.dma-pub-page .legal-highlight,
html.dma-world-public.dma-pub-page .form-card,
html.dma-world-public.dma-pub-page .step-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
html.dma-world-public.dma-pub-page .dma-lp-split { margin-bottom: 28px; }
html.dma-world-public.dma-pub-page .dma-faq-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
}

/* DMA logos — white on dark, black on light, insignia as mark */
.dma-pub-logo--img { gap: 0; }
.dma-logo-white,
.dma-logo-black {
  display: block;
  height: 34px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
  object-position: left center;
}
.dma-logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.dma-pub-logo--lockup { gap: 10px; }
html.dma-world-public.dma-pub-home .dma-pub-nav .dma-logo-white {
  height: 32px;
  max-width: 168px;
}
html.dma-world-public.dma-pub-home .dma-pub-foot .dma-logo-white {
  height: 40px;
  max-width: 210px;
}
html.dma-world-auth .dma-auth-visual .dma-logo-white {
  height: 40px;
  max-width: 220px;
}
html.dma-world-auth .dma-auth-simple .dma-logo-white {
  height: 36px;
  max-width: 190px;
}
@media (max-width: 1120px) {
  html.dma-world-public .dma-pub-nav.is-open .dma-pub-menu-brand .dma-logo-white {
    height: 30px;
    max-width: 160px;
  }
}

/* Dark OS — readable danger/status (never pale bar + light text) */
html.doc-static[data-theme="dark"] .ds-error,
html.doc-static[data-theme="dark"] .dma-wa-error,
html.doc-static[data-theme="dark"] .alert-error,
html.sa-static[data-theme="dark"] .ds-error,
html.sa-static[data-theme="dark"] .alert-error,
html.dma-world-auth .alert-error,
html.dma-world-auth .dma-alert {
  background: rgba(127, 29, 29, 0.72) !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
  color: #FECACA !important;
  -webkit-text-fill-color: #FECACA !important;
}
html.doc-static[data-theme="dark"] .ds-error a,
html.sa-static[data-theme="dark"] .ds-error a,
html.dma-world-auth .alert-error a,
html.doc-static[data-theme="dark"] .dma-wa-error {
  color: #FECACA !important;
  -webkit-text-fill-color: #FECACA !important;
}
html.doc-static[data-theme="dark"] .ds-toast,
html.sa-static[data-theme="dark"] .ds-toast {
  background: #1C2638 !important;
  color: #F8FBFF !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html.doc-static[data-theme="dark"] .ds-toast.err,
html.sa-static[data-theme="dark"] .ds-toast.err,
html.doc-static[data-theme="dark"] .dma-toast.err {
  background: rgba(127, 29, 29, 0.92) !important;
  color: #FEE2E2 !important;
  border-left-color: #F87171 !important;
}
html.doc-static[data-theme="dark"] .ds-toast.ok,
html.sa-static[data-theme="dark"] .ds-toast.ok {
  background: rgba(22, 101, 52, 0.92) !important;
  color: #DCFCE7 !important;
}
html.doc-static[data-theme="dark"] .cos-savebar {
  background: linear-gradient(180deg, transparent, #141C2B 28%) !important;
}
html.doc-static[data-theme="dark"] .dma-view-toggle button.on {
  background: #243044 !important;
  color: #F8FBFF !important;
}
html.doc-static[data-theme="dark"] .ds-toolbar {
  gap: 8px;
  margin-bottom: 12px;
}
html.doc-static[data-theme="dark"] .doc-plan-card ~ .doc-plan-card {
  display: none !important;
}
html.doc-static[data-theme="dark"] .doc-logout {
  background: #1C2638 !important;
  color: #E8EEF8 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html.doc-static[data-theme="dark"] .dma-tabs button:hover,
html.doc-static[data-theme="dark"] .ds-tabs button:hover {
  background: #243044 !important;
  color: #F8FBFF !important;
}

/* ═══════════════════════════════════════════════════════════
   LANDING PRODUCT OS — dark clinic compositions (home only)
   ═══════════════════════════════════════════════════════════ */
.dma-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ds-primary-fill, #0E7A68);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.dma-skip:focus {
  left: 12px;
}
html.dma-world-public.dma-pub-home .dma-os-frame {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  background: #1C2638;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 22px 56px rgba(0,0,0,0.35);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
html.dma-world-public.dma-pub-home .dma-os-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.42);
}
html.dma-world-public.dma-pub-home .dma-os-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  background: #141C2B;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #B4C2D6;
  font-size: 0.68rem;
  font-weight: 600;
}
html.dma-world-public.dma-pub-home .dma-os-side strong {
  color: #F8FBFF;
  font-family: Montserrat, var(--ds-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}
html.dma-world-public.dma-pub-home .dma-os-side span {
  padding: 7px 8px;
  border-radius: 10px;
}
html.dma-world-public.dma-pub-home .dma-os-side span.on {
  background: rgba(37,101,252,0.22);
  color: #F8FBFF;
}
html.dma-world-public.dma-pub-home .dma-os-main {
  min-width: 0;
  padding: 12px 14px 14px;
  background: #1A2334;
}
html.dma-world-public.dma-pub-home .dma-os-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
html.dma-world-public.dma-pub-home .dma-os-top b {
  color: #F8FBFF;
  font-size: 0.82rem;
  font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-top em {
  font-style: normal;
  color: #B4C2D6;
  font-size: 0.68rem;
}
html.dma-world-public.dma-pub-home .dma-os-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
html.dma-world-public.dma-pub-home .dma-os-kpis div,
html.dma-world-public.dma-pub-home .dma-os-panel {
  background: #1C2638;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}
html.dma-world-public.dma-pub-home .dma-os-kpis span {
  display: block;
  color: #B4C2D6;
  font-size: 0.62rem;
  font-weight: 650;
}
html.dma-world-public.dma-pub-home .dma-os-kpis strong {
  display: block;
  margin-top: 4px;
  color: #F8FBFF;
  font-family: Montserrat, var(--ds-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
html.dma-world-public.dma-pub-home .dma-os-kpis em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: #B4C2D6;
  font-size: 0.62rem;
  line-height: 1.35;
}
html.dma-world-public.dma-pub-home .dma-os-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
html.dma-world-public.dma-pub-home .dma-os-panel h3,
html.dma-world-public.dma-pub-home .dma-os-panel h4 {
  margin: 0 0 6px;
  color: #F8FBFF;
  font-size: 0.72rem;
  font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-empty,
html.dma-world-public.dma-pub-home .dma-os-hint,
html.dma-world-public.dma-pub-home .dma-os-panel p {
  margin: 0;
  color: #B4C2D6;
  font-size: 0.72rem;
  line-height: 1.45;
}
html.dma-world-public.dma-pub-home .dma-os-activity { margin-top: 8px; }
html.dma-world-public.dma-pub-home .dma-os-search {
  background: #243044;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  color: #B4C2D6;
  font-size: 0.72rem;
  margin-bottom: 8px;
}
html.dma-world-public.dma-pub-home .dma-os-cal-nav {
  display: flex; gap: 6px; margin-bottom: 10px;
}
html.dma-world-public.dma-pub-home .dma-os-cal-nav span {
  padding: 5px 10px; border-radius: 10px;
  background: #243044; color: #B4C2D6; font-size: 0.68rem; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-cal-nav span.on {
  background: #2563EB; color: #fff;
}
html.dma-world-public.dma-pub-home .dma-os-week {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
}
html.dma-world-public.dma-pub-home .dma-os-week > div {
  background: #1C2638; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px; min-height: 88px;
}
html.dma-world-public.dma-pub-home .dma-os-week > div.on {
  border-color: rgba(37,101,252,0.45);
}
html.dma-world-public.dma-pub-home .dma-os-consult-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

html.dma-world-public.dma-pub-home .dma-os-hero-frame {
  width: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
  margin: 12px 56px 48px 12px;
}
html.dma-world-public.dma-pub-home .dma-os-hero-frame .dma-os-kpis {
  grid-template-columns: 1fr 1fr;
}

html.dma-world-public.dma-pub-home [hidden] {
  display: none !important;
}
html.dma-world-public.dma-pub-home .dma-os-rows {
  display: grid; gap: 6px;
}
html.dma-world-public.dma-pub-home .dma-os-rows > div {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 6px 8px;
  background: #243044;
  border-radius: 10px;
}
html.dma-world-public.dma-pub-home .dma-os-rows time {
  flex: 0 0 42px;
  color: #93B4FF;
  font-size: 0.68rem;
  font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-rows span {
  min-width: 0;
  color: #F8FBFF;
  font-size: 0.72rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dma-world-public.dma-pub-home .dma-os-rows em {
  margin-left: auto;
  font-style: normal;
  color: #34D399;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}
html.dma-world-public.dma-pub-home .dma-os-rows em.pend { color: #FBBF24; }
html.dma-world-public.dma-pub-home .dma-lp-hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  height: auto;
  min-height: 0;
  padding-bottom: 0;
  overflow: visible;
}
html.dma-world-public.dma-pub-home .dma-lp-float-chat {
  padding: 14px 16px 16px;
}
html.dma-world-public.dma-pub-home .dma-lp-float-wa {
  padding: 12px 14px;
}
html.dma-world-public.dma-pub-home .dma-lp-float-appt {
  padding: 14px 16px;
  display: block;
}
html.dma-world-public.dma-pub-home .dma-lp-float-appt .dma-lp-appt-row strong {
  font-size: 1.05rem;
}

html.dma-world-public.dma-pub-home .dma-os-showcase { margin-top: 8px; }
html.dma-world-public.dma-pub-home .dma-os-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
html.dma-world-public.dma-pub-home .dma-os-labels button {
  appearance: none;
  min-height: 44px;
  border: 1px solid var(--dma-lp-line);
  background: var(--dma-lp-card);
  color: #B4C2D6;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
html.dma-world-public.dma-pub-home .dma-os-labels button:hover {
  color: #F8FBFF;
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
html.dma-world-public.dma-pub-home .dma-os-labels button[aria-pressed="true"] {
  color: #F8FBFF;
  background: rgba(37,101,252,0.22);
  border-color: rgba(37,101,252,0.4);
}
html.dma-world-public.dma-pub-home .dma-os-labels button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,117,252,0.35);
}
html.dma-world-public.dma-pub-home .dma-os-stage { min-width: 0; }

html.dma-world-public.dma-pub-home .dma-lp-midcta { padding-top: 8px; padding-bottom: 8px; }
html.dma-world-public.dma-pub-home .dma-cta-band--mid {
  margin: 0;
  padding: 36px 32px;
}
html.dma-world-public.dma-pub-home .dma-lp-section-cta {
  justify-content: center;
  margin-top: 28px;
}
html.dma-world-public.dma-pub-home .dma-lp-pain .dma-lp-card h3 { font-size: 1rem; }
html.dma-world-public.dma-pub-home .dma-lp-pain .dma-lp-card p { padding: 0; }
html.dma-world-public.dma-pub-home .dma-lp-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
html.dma-world-public.dma-pub-home .dma-lp-trust .dma-lp-card:nth-child(4),
html.dma-world-public.dma-pub-home .dma-lp-trust .dma-lp-card:nth-child(5) {
  grid-column: span 1;
}

html.dma-world-public.dma-pub-home .dma-os-wa {
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1.3fr) minmax(160px, 0.8fr);
  gap: 10px;
  margin-top: 24px;
}
html.dma-world-public.dma-pub-home .dma-os-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(37,101,252,0.22); color: #93B4FF;
  font-size: 0.58rem; font-weight: 800;
}
html.dma-world-public.dma-pub-home .dma-os-wa-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 10px;
}
html.dma-world-public.dma-pub-home .dma-os-wa-item.on {
  background: rgba(37,101,252,0.16);
}
html.dma-world-public.dma-pub-home .dma-os-wa-item strong {
  display: block; color: #F8FBFF; font-size: 0.78rem;
}
html.dma-world-public.dma-pub-home .dma-os-wa-item small {
  display: block; color: #B4C2D6; font-size: 0.68rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.dma-world-public.dma-pub-home .dma-os-wa-item time {
  color: #B4C2D6; font-size: 0.62rem;
}
html.dma-world-public.dma-pub-home .dma-os-wa-thread header,
html.dma-world-public.dma-pub-home .dma-os-pt-draw header,
html.dma-world-public.dma-pub-home .dma-os-ai-h,
html.dma-world-public.dma-pub-home .dma-os-consult-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
html.dma-world-public.dma-pub-home .dma-os-wa-thread header strong,
html.dma-world-public.dma-pub-home .dma-os-pt-draw header strong,
html.dma-world-public.dma-pub-home .dma-os-ai-h strong,
html.dma-world-public.dma-pub-home .dma-os-consult-h strong {
  display: block; color: #F8FBFF; font-size: 0.88rem;
}
html.dma-world-public.dma-pub-home .dma-os-wa-thread header em,
html.dma-world-public.dma-pub-home .dma-os-pt-draw header em,
html.dma-world-public.dma-pub-home .dma-os-consult-h em {
  display: block; font-style: normal; color: #B4C2D6; font-size: 0.68rem;
}
html.dma-world-public.dma-pub-home .dma-os-wa-thread .dma-lp-msg { margin-top: 8px; }
html.dma-world-public.dma-pub-home .dma-os-wa-compose {
  margin-top: 12px;
  background: #243044;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 12px;
  color: #B4C2D6;
  font-size: 0.75rem;
}
html.dma-world-public.dma-pub-home .dma-os-wa-ctx ul,
html.dma-world-public.dma-pub-home .dma-os-result {
  list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px;
}
html.dma-world-public.dma-pub-home .dma-os-wa-ctx li,
html.dma-world-public.dma-pub-home .dma-os-result li {
  position: relative; padding-left: 16px; color: #B4C2D6; font-size: 0.78rem;
}
html.dma-world-public.dma-pub-home .dma-os-wa-ctx li::before,
html.dma-world-public.dma-pub-home .dma-os-result li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px; border-radius: 50%; background: #2563EB;
}

html.dma-world-public.dma-pub-home .dma-os-ai {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
html.dma-world-public.dma-pub-home .dma-os-chip {
  display: inline-flex; align-items: center;
  padding: 4px 8px; border-radius: 10px;
  background: rgba(245,158,11,0.16); color: #FBBF24;
  font-size: 0.62rem; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-chip-wait {
  background: rgba(245,158,11,0.16); color: #FBBF24;
}
html.dma-world-public.dma-pub-home .dma-os-ai-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0 0 12px; padding: 0;
}
html.dma-world-public.dma-pub-home .dma-os-ai-tabs li {
  padding: 6px 10px; border-radius: 10px;
  background: #243044; color: #B4C2D6; font-size: 0.68rem; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-ai-tabs li.on {
  background: rgba(37,101,252,0.22); color: #F8FBFF;
}
html.dma-world-public.dma-pub-home .dma-os-fields {
  display: grid; gap: 8px; margin: 0;
}
html.dma-world-public.dma-pub-home .dma-os-fields div {
  display: grid; gap: 2px;
}
html.dma-world-public.dma-pub-home .dma-os-fields dt {
  color: #B4C2D6; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
html.dma-world-public.dma-pub-home .dma-os-fields dd {
  margin: 0; color: #F8FBFF; font-size: 0.8125rem;
}

html.dma-world-public.dma-pub-home .dma-os-patients {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 20px;
}
html.dma-world-public.dma-pub-home .dma-os-pt-row {
  appearance: none; width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 8px;
  color: inherit;
  cursor: pointer;
  min-height: 48px;
}
html.dma-world-public.dma-pub-home .dma-os-pt-row .dma-os-av { grid-row: 1 / span 2; }
html.dma-world-public.dma-pub-home .dma-os-pt-row span:not(.dma-os-av) {
  color: #F8FBFF; font-size: 0.8125rem; font-weight: 700;
}
html.dma-world-public.dma-pub-home .dma-os-pt-row small { color: #B4C2D6; font-size: 0.68rem; }
html.dma-world-public.dma-pub-home .dma-os-pt-row.on,
html.dma-world-public.dma-pub-home .dma-os-pt-row:hover {
  background: rgba(37,101,252,0.16);
}
html.dma-world-public.dma-pub-home .dma-os-pt-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,117,252,0.35);
}

html.dma-world-public.dma-pub-home .dma-os-consult {
  background: #1C2638;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
html.dma-world-public.dma-pub-home .dma-os-consult-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html.dma-world-public.dma-pub-home .dma-os-analytics { margin-top: 8px; display: grid; gap: 10px; }

html.dma-world-public.dma-pub-home .dma-lp-split-copy { grid-template-columns: minmax(0, 38rem); margin-bottom: 8px; }
html.dma-world-public.dma-pub-home .dma-btn {
  min-height: 44px;
  border-radius: 10px;
}
html.dma-world-public.dma-pub-home .dma-pub-links a:focus-visible,
html.dma-world-public.dma-pub-home .dma-pub-links button.dma-pub-drop:focus-visible,
html.dma-world-public.dma-pub-home .dma-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,117,252,0.45);
}
html.dma-world-public.dma-pub-home .dma-pub-links a:active,
html.dma-world-public.dma-pub-home .dma-pub-links button.dma-pub-drop:active {
  background: rgba(37,101,252,0.22);
  color: #fff;
}

.dma-lp-demo {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #1C2638;
  color: #F8FBFF;
  padding: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.dma-lp-demo::backdrop { background: rgba(8, 12, 20, 0.72); }
.dma-lp-demo-inner { padding: 20px; }
.dma-lp-demo-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.dma-lp-demo-h h2 {
  margin: 0;
  font-family: Montserrat, var(--ds-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FBFF;
}
.dma-lp-demo-x {
  appearance: none;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #F8FBFF;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dma-lp-demo-x:hover { background: rgba(255,255,255,0.1); }
.dma-lp-demo-x:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,117,252,0.45);
}
.dma-lp-demo-screen {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 280px;
  background: #141C2B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.dma-lp-demo-screen p {
  margin: 0;
  max-width: 28rem;
  color: #B4C2D6;
  line-height: 1.5;
}
.dma-lp-demo-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(37,101,252,0.28);
  position: relative;
}
.dma-lp-demo-play::after {
  content: "";
  position: absolute;
  left: 26px; top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #F8FBFF;
}

@media (max-width: 1280px) {
  html.dma-world-public { --dma-pub-gutter: 24px; }
}
@media (max-width: 1024px) {
  html.dma-world-public.dma-pub-home .dma-os-wa {
    grid-template-columns: 1fr;
  }
  html.dma-world-public.dma-pub-home .dma-os-wa-list,
  html.dma-world-public.dma-pub-home .dma-os-wa-ctx { display: none; }
  html.dma-world-public.dma-pub-home .dma-os-ai,
  html.dma-world-public.dma-pub-home .dma-os-patients,
  html.dma-world-public.dma-pub-home .dma-os-consult-grid,
  html.dma-world-public.dma-pub-home .dma-os-consult-mini,
  html.dma-world-public.dma-pub-home .dma-os-split,
  html.dma-world-public.dma-pub-home .dma-lp-trust { grid-template-columns: 1fr; }
  html.dma-world-public.dma-pub-home .dma-os-kpis,
  html.dma-world-public.dma-pub-home .dma-os-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.dma-world-public.dma-pub-home .dma-os-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.dma-world-public.dma-pub-home .dma-os-frame { grid-template-columns: 1fr; }
  html.dma-world-public.dma-pub-home .dma-os-hero-frame .dma-os-side { display: none; }
  html.dma-world-public.dma-pub-home .dma-os-side {
    flex-direction: row; flex-wrap: wrap; border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  html.dma-world-public.dma-pub-home .dma-os-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  html.dma-world-public.dma-pub-home .dma-lp-hero-stage { padding-bottom: 0; max-width: none; }
  html.dma-world-public.dma-pub-home .dma-lp-float-appt { display: block; }
  html.dma-world-public.dma-pub-home .dma-os-hero-frame { order: -1; margin: 0; }
}
@media (max-width: 560px) {
  html.dma-world-public.dma-pub-home .dma-lp-grid4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  html.dma-world-public { --dma-pub-gutter: 20px; }
  html.dma-world-public.dma-pub-home .dma-os-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.dma-world-public.dma-pub-home .dma-os-week { grid-template-columns: 1fr 1fr; }
  html.dma-world-public.dma-pub-home .dma-cta-band--mid { padding: 28px 20px; }
  html.dma-world-public.dma-pub-home .dma-os-patients {
    grid-template-columns: 1fr;
  }
  html.dma-world-public.dma-pub-home .dma-os-pt-draw {
    min-height: 0;
  }
}
@media (max-width: 360px) {
  html.dma-world-public.dma-pub-home,
  html.dma-world-public.dma-pub-home body { overflow-x: hidden; }
  html.dma-world-public.dma-pub-home .dma-lp-chips li { padding: 6px 12px; font-size: 0.8125rem; }
  html.dma-world-public.dma-pub-home .dma-os-frame,
  html.dma-world-public.dma-pub-home .dma-lp-float { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html.dma-world-public.dma-pub-home .dma-os-frame,
  html.dma-world-public.dma-pub-home .dma-os-labels button,
  html.dma-world-public.dma-pub-home .dma-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Landing gutters — sections, cards, and chrome stay off the viewport edge */
html.dma-world-public.dma-pub-home .dma-lp-hero {
  overflow-x: hidden;
}
html.dma-world-public.dma-pub-home .dma-cta-band,
html.dma-world-public.dma-pub-home .dma-cta-band--mid {
  margin-left: 0;
  margin-right: 0;
}
html.dma-world-public.dma-pub-home .dma-lp-grid3,
html.dma-world-public.dma-pub-home .dma-lp-grid3-tight {
  gap: 16px;
}

/* Clinic + admin inherited gutters (pages pick these up without per-route edits) */
html.doc-static .doc-main {
  padding: 24px 24px 48px !important;
  box-sizing: border-box;
}
html.doc-static .doc-topbar {
  padding-left: 24px;
  padding-right: 24px;
}
html.doc-static .doc-main .cos-kpi-row,
html.doc-static .doc-main .dma-kpis,
html.doc-static .doc-main .ds-kpis,
html.doc-static .doc-main .dma-grid-2,
html.doc-static .doc-main .ds-work-grid,
html.doc-static .doc-main .cos-quick-actions {
  gap: 16px;
}
html.doc-static .doc-main .dma-section + .dma-section,
html.doc-static .doc-main .ds-section + .ds-section,
html.doc-static .doc-main .dma-panel + .dma-panel,
html.doc-static .doc-main .cos-card + .cos-card:not(.cos-card--kpi) {
  margin-top: 16px;
}
html.sa-static .sa-main {
  padding: 24px 24px 48px !important;
  box-sizing: border-box;
}
html.sa-static .sa-main .ds-kpis,
html.sa-static .sa-main .ds-ops-grid,
html.sa-static .sa-main .ds-ops-grid-3,
html.sa-static .sa-main .dma-quick-row {
  gap: 16px;
}
html.sa-static .sa-content-card + .sa-content-card,
html.sa-static .ds-section + .ds-section,
html.sa-static .int-card + .int-card {
  margin-top: 16px;
}
@media (max-width: 1024px) {
  html.doc-static .doc-main {
    padding: 16px 16px 96px !important;
  }
  html.doc-static .doc-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  html.sa-static .sa-main {
    padding: calc(var(--sa-topbar-h, 56px) + 16px) 16px 32px !important;
  }
}









/* ═══════════════════════════════════════════════════════════
   PHASE 1 TOKEN LOCK — AA teal fills, type, pills, reduced motion
   ═══════════════════════════════════════════════════════════ */
:root {
  --ds-primary-fill: #0E7A68;
  --ds-on-primary: #FFFFFF;
  --ds-link: #0B6456;
}
a { color: var(--ds-link, var(--ds-primary-active)); }
.ds-num, .ds-kpi, .dma-kpi strong, [data-kpi] {
  font-family: var(--ds-font);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
h1, h2, h3, .ds-h-display, .dma-h-display, .doc-topbar h1, .ds-work-header h1 {
  font-family: var(--ds-font-display);
}
body, button, input, select, textarea {
  font-family: var(--ds-font);
  font-size: max(14px, var(--ds-body));
}
.ds-hint, .dma-hint, small, .ds-caption {
  font-size: max(12px, var(--ds-caption));
}
.ds-btn-primary,
.dma-btn-primary,
.sa-btn-primary {
  background: var(--ds-primary-fill) !important;
  color: var(--ds-on-primary) !important;
  -webkit-text-fill-color: var(--ds-on-primary) !important;
  border-color: var(--ds-primary-fill) !important;
  box-shadow: none !important;
  background-image: none !important;
}
.ds-btn-primary:hover:not(:disabled),
.dma-btn-primary:hover:not(:disabled),
.sa-btn-primary:hover:not(:disabled) {
  background: var(--ds-primary-active) !important;
  border-color: var(--ds-primary-active) !important;
}
.ds-pill-ok { background: rgba(21, 128, 61, 0.12); color: #15803D; }
.ds-pill-warn { background: rgba(180, 83, 9, 0.12); color: #B45309; }
.ds-pill-danger { background: rgba(220, 38, 38, 0.12); color: #B91C1C; }
.ds-pill-info { background: var(--ds-primary-soft); color: var(--ds-primary-active); }
.ds-pill-neutral { background: var(--ds-surface-2); color: var(--ds-muted); }
html[data-theme="dark"] .ds-pill-ok { color: #4ADE80; background: rgba(21,128,61,.2); }
html[data-theme="dark"] .ds-pill-warn { color: #FBBF24; background: rgba(180,83,9,.2); }
html[data-theme="dark"] .ds-pill-danger { color: #F87171; background: rgba(220,38,38,.2); }
html[data-theme="dark"] .ds-pill-info { color: var(--ds-primary); }
.ds-empty, .ds-error, .ds-loading { text-align: center; padding: var(--ds-space-8) var(--ds-space-4); }
.ds-empty h2, .ds-error h2 { font-family: var(--ds-font-display); font-size: var(--text-title); margin: 0 0 8px; }
.ds-empty p, .ds-error p { color: var(--ds-muted); margin: 0; }
.ds-skel { height: 12px; border-radius: 8px; background: linear-gradient(90deg, var(--ds-surface-2), var(--ds-surface-hover), var(--ds-surface-2)); background-size: 200% 100%; animation: ds-skel 1.2s ease infinite; }
@keyframes ds-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ds-skel { animation: none; }
}
html.dma-world-auth { color-scheme: light; }
html.dma-world-auth[data-theme="dark"] { color-scheme: light; }

/* ═══════════════════════════════════════════════════════════
   App OS — landing navy, in-page preview, visible cards, pill tabs
   ═══════════════════════════════════════════════════════════ */
html.doc-static,
html.sa-static {
  --ds-bg: #141C2B;
  --ds-surface: #1C2638;
  --ds-surface-2: #243044;
  --ds-text: #F8FBFF;
  --ds-muted: #B4C2D6;
  --ds-nav: #141C2B;
  background: #141C2B;
  color-scheme: dark;
}
html.doc-static body,
html.sa-static body,
html.sa-static .sa-main,
html.sa-static .sa-main-inner,
html.sa-static .sa-content-card {
  background: #141C2B !important;
  color: #F8FBFF !important;
}
html.doc-static .doc-sidebar,
html.sa-static .sa-sidebar {
  background: #141C2B !important;
}

html.doc-static .dma-head,
html.doc-static .ds-page-header,
html.sa-static .ds-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
}
html.doc-static .dma-kpi,
html.doc-static .cos-kpi,
html.doc-static .dma-panel,
html.doc-static .dma-section,
html.doc-static .ds-section,
html.doc-static .ds-card,
html.doc-static .dma-table-wrap,
html.doc-static .ds-table-wrap,
html.sa-static .ds-table-wrap,
html.sa-static .sa-content-card > .ds-table-wrap,
html.doc-static .dma-empty,
html.doc-static .ds-empty-panel {
  background: #1C2638 !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 16px !important;
  color: #F8FBFF;
}
html.doc-static .dma-kpi {
  background-image: linear-gradient(180deg, rgba(14, 122, 104, 0.12), transparent 70%);
}
html.doc-static input.ds-input,
html.doc-static input.dma-input,
html.doc-static textarea,
html.doc-static select,
html.sa-static .ds-input,
html.sa-static input, html.sa-static select, html.sa-static textarea {
  background: #0F1724 !important;
  color: #F8FBFF !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}
html.doc-static .dma-btn-primary,
html.doc-static .ds-btn-primary,
html.sa-static .ds-btn-primary {
  background: linear-gradient(135deg, #0E7A68 0%, #0B6456 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}

@media (min-width: 1024px) {
  html.doc-static .ds-drawer,
  html.sa-static .ds-drawer,
  html.doc-static .cos-drawer,
  html.sa-static .cos-drawer {
    position: fixed;
    top: var(--ds-h-header, 64px);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(400px, 36vw);
    height: auto;
    inset: var(--ds-h-header, 64px) 0 0 auto;
    z-index: 35;
    pointer-events: none;
  }
  html.doc-static .ds-drawer.open,
  html.sa-static .ds-drawer.open,
  html.doc-static .cos-drawer.open,
  html.sa-static .cos-drawer.open { pointer-events: none; }
  html.doc-static .ds-drawer-bg,
  html.sa-static .ds-drawer-bg,
  html.doc-static .cos-drawer-bg,
  html.sa-static .cos-drawer-bg { display: none !important; }
  html.doc-static .ds-drawer-panel,
  html.sa-static .ds-drawer-panel,
  html.doc-static .cos-drawer-panel,
  html.sa-static .cos-drawer-panel {
    pointer-events: auto;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    transform: none !important;
    border-radius: 0 !important;
    background: #1C2638 !important;
    color: #F8FBFF !important;
    border-left: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: none !important;
  }
  body.ds-drawer-open .doc-main-wrap {
    padding-right: min(400px, 36vw);
    box-sizing: border-box;
  }
  body.ds-drawer-open .sa-main {
    padding-right: min(400px, 36vw);
    box-sizing: border-box;
  }
}
html.doc-static .ds-drawer-h,
html.sa-static .ds-drawer-h,
html.doc-static .ds-drawer-b,
html.sa-static .ds-drawer-b,
html.doc-static .ds-drawer-f,
html.sa-static .ds-drawer-f {
  background: #1C2638;
  color: #F8FBFF;
}
html.doc-static .ds-drawer-h strong,
html.sa-static .ds-drawer-h strong { color: #F8FBFF; }

/* ═══════════════════════════════════════════════════════════
   Page stack — blocks never share edges
   ═══════════════════════════════════════════════════════════ */
html.doc-static .doc-main,
html.sa-static .sa-main-inner,
html.sa-static .sa-content-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-5, 20px);
}

html.doc-static .doc-main > .dma-head,
html.doc-static .doc-main > .ds-page-header,
html.doc-static .doc-main > .ds-workspace-tabs,
html.doc-static .doc-main > .dma-tabs,
html.doc-static .doc-main > .ds-tabs,
html.doc-static .doc-main > .dma-status-bar,
html.doc-static .doc-main > .ds-status-strip,
html.doc-static .doc-main > .dma-kpis,
html.doc-static .doc-main > .ds-kpis,
html.doc-static .doc-main > .dma-section,
html.doc-static .doc-main > .ds-section,
html.doc-static .doc-main > .dma-panel {
  margin-top: 0;
  margin-bottom: 0;
}

html.doc-static .dma-head,
html.doc-static .ds-page-header,
html.sa-static .ds-page-header {
  margin: 0;
}

html.doc-static .ds-workspace-tabs {
  padding: 0;
  margin: 0;
}

html.doc-static .dma-status-bar,
html.doc-static .ds-status-strip,
html.doc-static .dma-tabs,
html.doc-static .ds-tabs {
  margin: 0;
}

html.doc-static .dma-kpis,
html.doc-static .ds-kpis {
  margin: 0;
}

html.doc-static .doc-main > [id$="-body"]:not(tbody),
html.doc-static .doc-main > [id$="-clinic"],
html.doc-static #ai-body,
html.doc-static #home-clinic,
html.doc-static #an-body,
html.doc-static #rv-body,
html.doc-static #st-body,
html.doc-static #bl-body,
html.doc-static #ap-body,
html.doc-static #cal-body,
html.doc-static #w-body,
html.doc-static #pt-body:not(tbody),
html.doc-static #lab-body,
html.doc-static #rm-body,
html.doc-static #tele-body,
html.doc-static #inv-body,
html.doc-static #doc-body,
html.doc-static #lv-body,
html.doc-static #loc-body,
html.doc-static #pay-body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-5, 20px);
}

html.doc-static .dma-section,
html.doc-static .ds-section,
html.doc-static .dma-panel {
  margin-bottom: 0;
}

html.doc-static .dma-section + .dma-section,
html.doc-static .ds-section + .ds-section,
html.doc-static .dma-panel + .dma-panel {
  margin-top: 0;
}

html.doc-static .dma-section-h,
html.doc-static .ds-section-h {
  padding: 16px 20px 12px;
}

html.doc-static .dma-section-b,
html.doc-static .ds-section-b {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 20px 20px;
}

html.doc-static .cos-consult .dma-section-b {
  display: block;
  gap: 0;
  padding: 0;
}

html.doc-static .dma-section-b > .dma-field,
html.doc-static .ds-section-b > .dma-field {
  margin-bottom: 0;
}

html.doc-static .dma-row {
  gap: 16px;
  margin: 0;
}

html.doc-static .dma-section .dma-table-wrap,
html.doc-static .dma-section .ds-table-wrap,
html.doc-static .dma-panel .dma-table-wrap,
html.doc-static .ds-section .ds-table-wrap,
html.sa-static .sa-content-card .sa-table-wrap,
html.sa-static .sa-content-card .ds-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.doc-static .ds-toolbar,
html.doc-static .cos-filterbar,
html.doc-static .dma-filters,
html.doc-static .ds-work-header {
  margin: 0;
}

html.sa-static .sa-content-card > .ds-page-header,
html.sa-static .sa-content-card > .ds-toolbar,
html.sa-static .sa-content-card > .ds-kpis,
html.sa-static .sa-content-card > .ds-section {
  margin: 0;
}

html.doc-static .dma-inbox {
  gap: 16px;
}

@media (max-width: 1024px) {
  html.doc-static .doc-main,
  html.sa-static .sa-main-inner,
  html.sa-static .sa-content-wrap {
    gap: 16px;
  }
}

html.doc-static .ds-modal,
html.doc-static .dma-modal,
html.sa-static .ds-modal {
  background: var(--ds-surface) !important;
  color: var(--ds-text) !important;
  border: 1px solid rgba(148, 163, 184, 0.16);
}
html.doc-static .ds-modal .ds-drawer-h,
html.doc-static .ds-modal .ds-drawer-f,
html.doc-static .ds-modal .ds-modal-b,
html.doc-static .dma-modal-h,
html.doc-static .dma-modal-b,
html.doc-static .dma-modal-f,
html.doc-static .ds-modal-f,
html.sa-static .ds-modal .ds-drawer-h,
html.sa-static .ds-modal .ds-drawer-f,
html.sa-static .ds-modal .ds-modal-b {
  background: var(--ds-surface) !important;
  color: var(--ds-text) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}
html.doc-static .ds-modal .ds-drawer-h strong,
html.doc-static .ds-modal .ds-modal-b,
html.doc-static .ds-modal .ds-modal-b label,
html.sa-static .ds-modal .ds-drawer-h strong {
  color: var(--ds-text) !important;
}
html.doc-static button.dma-row-item,
html.doc-static a.dma-row-item {
  background: var(--ds-surface) !important;
  color: var(--ds-text) !important;
}
