/**
 * LIMBIC PRO - Design Tokens
 * Central color, typography, spacing, and effect variables
 * Updated: 2026-05-30
 */

/* ============================================================================
   ROOT TOKENS - DARK THEME (DEFAULT)
   ============================================================================ */
:root {
  /* Typography */
  --type-font-family: 'Plus Jakarta Sans', sans-serif;
  --type-weight-normal: 600;
  --type-weight-bold: 900;

  /* Colors - Semantic */
  --color-primary: #00ff88;
  --color-accent: #38bdf8;
  --color-text-inverse: #020617;

  /* Colors - Background */
  --color-bg-main: #020617;
  --color-bg-surface: rgba(255, 255, 255, 0.045);
  --color-bg-surface-strong: rgba(15, 23, 42, 0.92);
  --color-bg-input: rgba(255, 255, 255, 0.055);
  --color-modal-bg: rgba(2, 6, 23, 0.96);

  /* Colors - Text */
  --color-text-head: #ffffff;
  --color-text-body: rgba(248, 250, 252, 0.94);
  --color-text-muted: rgba(226, 232, 240, 0.68);

  /* Colors - Borders & Interactions */
  --color-border: rgba(255, 255, 255, 0.11);
  --color-hover: rgba(255, 255, 255, 0.11);

  /* Shape - Border Radius */
  --shape-radius-sm: 0.75rem;
  --shape-radius-md: 1.15rem;
  --shape-radius-lg: 1.7rem;
  --shape-radius-button: 999px;
  --shape-radius-modal: 2.35rem;

  /* Effects */
  --effect-modal-blur: 12px;
  --effect-shadow: 0 12px 40px rgba(2, 6, 23, 0.18);
  --effect-overlay-opacity: 0.68;
  --focus-backdrop-blur: var(--effect-modal-blur);

  /* Motion */
  --motion-factor: 1;

  /* Scrollbar */
  --limbic-scroll-track: rgba(2, 6, 23, 0.55);
  --limbic-scroll-thumb: linear-gradient(180deg, rgba(0, 255, 136, 0.78), rgba(56, 189, 248, 0.56));
  --limbic-scroll-thumb-soft: rgba(0, 255, 136, 0.48);

  /* Layout - Control Scale */
  --layout-control-scale: 1;

  /* Modal Sizing */
  --modal-width-standard: min(780px, calc(100vw - 1rem));
  --modal-width-wide: min(1180px, calc(100vw - 1rem));
  --modal-content-max: min(88dvh, 760px);
  --modal-body-max: min(58dvh, 455px);
  --modal-viewport-gap: 1rem;
  --modal-scrollbar-size: 8px;
  --modal-pad-scale: 1;
  --modal-gap-scale: 1;
}

/* ============================================================================
   LIGHT THEME OVERRIDES
   ============================================================================ */
html.light,
html.light.visual-theme-ready {
  /* Attio-inspired light palette */
  --color-bg-main: #F9FAFB;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-strong: #FFFFFF;
  --color-bg-input: #FFFFFF;
  --color-modal-bg: #FFFFFF;
  --color-text-head: #111827;
  --color-text-body: #374151;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;

  /* Shape - Light theme uses smaller radius */
  --shape-radius-sm: 8px;
  --shape-radius-md: 8px;
  --shape-radius-lg: 8px;
  --shape-radius-button: 8px;
  --shape-radius-modal: 8px;

  /* Effects - Light theme has minimal blur */
  --effect-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --effect-modal-blur: 0px;
  --modal-content-max: 85vh;
}

/* ============================================================================
   DENSITY MODIFIERS
   ============================================================================ */
html[data-density="compact"] {
  --layout-control-scale: 0.86;
}

html[data-density="spacious"] {
  --layout-control-scale: 1.08;
}

/* ============================================================================
   MOTION PREFERENCES
   ============================================================================ */
html[data-motion="reduced"] {
  --motion-factor: 0.35;
}

html[data-motion="off"] {
  --motion-factor: 0;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ============================================================================
   UTILITY TOKEN SCALES (semantic naming)
   ============================================================================ */
:root {
  /* Spacing Scale (8px base) */
  --space-0: 0;
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */

  /* Z-Index Stack */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 2000;
  --z-modal: 2100;
  --z-popover: 2200;
  --z-tooltip: 2300;
  --z-notification: 2400;

  /* Border Width */
  --border-thin: 1px;
  --border-thick: 2px;

  /* Transition Duration */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Easing Functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/**
 * LIMBIC PRO - Scrollbar Styles
 * Consistent scrollbar styling across the app
 */

/* ============================================================================
   DEFAULT SCROLLBAR (HTML, BODY)
   ============================================================================ */

html,
body {
  scrollbar-width: thin;
  scrollbar-color: var(--limbic-scroll-thumb-soft) var(--limbic-scroll-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.92),
    rgba(15, 23, 42, 0.72)
  );
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 2px solid rgba(2, 6, 23, 0.92);
  border-radius: 999px;
  background: var(--limbic-scroll-thumb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 0 18px rgba(0, 255, 136, 0.22);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(0, 255, 136, 0.95),
    rgba(125, 211, 252, 0.72)
  );
}

/* ============================================================================
   SCROLLABLE CONTAINER STYLES
   ============================================================================ */

.limbic-scrollbar,
.workspace-main,
.notification-feed,
.notification-side-panel,
.swal2-popup.crm-popup .swal2-html-container,
.search-results-main,
.search-insight-rail,
.search-expanded-results,
.search-result-card.expanded,
.search-hover-list,
.search-typeahead-shell,
.search-typeahead-list,
.email-sidebar,
.email-reader,
.email-list,
.calendar-sidebar,
.calendar-main,
.app-center-side-scroll,
.app-center-available-list,
.ai-store-main,
.ai-app-detail-scroll,
.admin-scroll,
.admin-list,
.admin-list-scroll,
.status-cockpit-nav,
.status-service-table {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.42) rgba(255, 255, 255, 0.035);
}

/* ============================================================================
   CUSTOM SCROLLBAR FOR CONTAINERS (WEBKIT)
   ============================================================================ */

.limbic-scrollbar::-webkit-scrollbar,
.workspace-main::-webkit-scrollbar,
.notification-feed::-webkit-scrollbar,
.notification-side-panel::-webkit-scrollbar,
.swal2-popup.crm-popup .swal2-html-container::-webkit-scrollbar,
.search-results-main::-webkit-scrollbar,
.search-insight-rail::-webkit-scrollbar,
.search-expanded-results::-webkit-scrollbar,
.search-result-card.expanded::-webkit-scrollbar,
.search-hover-list::-webkit-scrollbar,
.search-typeahead-shell::-webkit-scrollbar,
.search-typeahead-list::-webkit-scrollbar,
.email-sidebar::-webkit-scrollbar,
.email-reader::-webkit-scrollbar,
.email-list::-webkit-scrollbar,
.calendar-sidebar::-webkit-scrollbar,
.calendar-main::-webkit-scrollbar,
.app-center-side-scroll::-webkit-scrollbar,
.app-center-available-list::-webkit-scrollbar,
.ai-store-main::-webkit-scrollbar,
.ai-app-detail-scroll::-webkit-scrollbar,
.admin-scroll::-webkit-scrollbar,
.admin-list::-webkit-scrollbar,
.admin-list-scroll::-webkit-scrollbar,
.status-cockpit-nav::-webkit-scrollbar,
.status-service-table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.limbic-scrollbar::-webkit-scrollbar-track,
.workspace-main::-webkit-scrollbar-track,
.notification-feed::-webkit-scrollbar-track,
.notification-side-panel::-webkit-scrollbar-track,
.swal2-popup.crm-popup .swal2-html-container::-webkit-scrollbar-track,
.search-results-main::-webkit-scrollbar-track,
.search-insight-rail::-webkit-scrollbar-track,
.search-expanded-results::-webkit-scrollbar-track,
.search-result-card.expanded::-webkit-scrollbar-track,
.search-hover-list::-webkit-scrollbar-track,
.search-typeahead-shell::-webkit-scrollbar-track,
.search-typeahead-list::-webkit-scrollbar-track,
.email-sidebar::-webkit-scrollbar-track,
.email-reader::-webkit-scrollbar-track,
.email-list::-webkit-scrollbar-track,
.calendar-sidebar::-webkit-scrollbar-track,
.calendar-main::-webkit-scrollbar-track,
.app-center-side-scroll::-webkit-scrollbar-track,
.app-center-available-list::-webkit-scrollbar-track,
.ai-store-main::-webkit-scrollbar-track,
.ai-app-detail-scroll::-webkit-scrollbar-track,
.admin-scroll::-webkit-scrollbar-track,
.admin-list::-webkit-scrollbar-track,
.admin-list-scroll::-webkit-scrollbar-track,
.status-cockpit-nav::-webkit-scrollbar-track,
.status-service-table::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
}

.limbic-scrollbar::-webkit-scrollbar-thumb,
.workspace-main::-webkit-scrollbar-thumb,
.notification-feed::-webkit-scrollbar-thumb,
.notification-side-panel::-webkit-scrollbar-thumb,
.swal2-popup.crm-popup .swal2-html-container::-webkit-scrollbar-thumb,
.search-results-main::-webkit-scrollbar-thumb,
.search-insight-rail::-webkit-scrollbar-thumb,
.search-expanded-results::-webkit-scrollbar-thumb,
.search-result-card.expanded::-webkit-scrollbar-thumb,
.search-hover-list::-webkit-scrollbar-thumb,
.search-typeahead-shell::-webkit-scrollbar-thumb,
.search-typeahead-list::-webkit-scrollbar-thumb,
.email-sidebar::-webkit-scrollbar-thumb,
.email-reader::-webkit-scrollbar-thumb,
.email-list::-webkit-scrollbar-thumb,
.calendar-sidebar::-webkit-scrollbar-thumb,
.calendar-main::-webkit-scrollbar-thumb,
.app-center-side-scroll::-webkit-scrollbar-thumb,
.app-center-available-list::-webkit-scrollbar-thumb,
.ai-store-main::-webkit-scrollbar-thumb,
.ai-app-detail-scroll::-webkit-scrollbar-thumb,
.admin-scroll::-webkit-scrollbar-thumb,
.admin-list::-webkit-scrollbar-thumb,
.admin-list-scroll::-webkit-scrollbar-thumb,
.status-cockpit-nav::-webkit-scrollbar-thumb,
.status-service-table::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 6, 23, 0.82);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(0, 255, 136, 0.64),
    rgba(56, 189, 248, 0.48)
  );
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.16);
}

/* ============================================================================
   LIGHT THEME SCROLLBARS
   ============================================================================ */

html.light,
html.light body {
  scrollbar-color: rgba(209, 213, 219, 0.6) rgba(243, 244, 246, 0.95);
}

html.light ::-webkit-scrollbar-track {
  background: #f3f4f6;
}

html.light ::-webkit-scrollbar-thumb {
  background: rgba(209, 213, 219, 0.6);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

html.light ::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

/* ============================================================================
   HIDDEN SCROLLBARS (For specific layouts)
   ============================================================================ */

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ============================================================================
   SCROLLBAR GUTTER (Prevent layout shift)
   ============================================================================ */

.scrollbar-gutter-stable {
  scrollbar-gutter: stable;
}

/**
 * LIMBIC PRO — Button Components
 * Attio-aligned: clean geometry, no glow, no forced uppercase
 */

/* ============================================================================
   BASE — only .limbic-button is styled globally; no wildcard on <button>
   ============================================================================ */
.limbic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.25rem;
    padding: .44rem 1rem;
    border-radius: var(--shape-radius-button);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, .08);
    color: var(--color-text-body);
    font-family: var(--type-font-family);
    font-size: .8rem;
    font-weight: var(--type-weight-ui, 600);
    letter-spacing: 0;
    cursor: pointer;
    transition:
        background-color var(--motion-fast),
        border-color var(--motion-fast),
        color var(--motion-fast),
        box-shadow var(--motion-fast);
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

/* ============================================================================
   VARIANTS — dark-first (default)
   ============================================================================ */

.limbic-button--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: 0 0 16px rgba(0, 255, 136, .2);
}
.limbic-button--primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--color-primary) 88%, #fff);
    box-shadow: 0 0 20px rgba(0, 255, 136, .28);
}

.limbic-button--secondary {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .12);
    color: var(--color-text-body);
}
.limbic-button--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
    color: var(--color-text-head);
}

.limbic-button--tertiary {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-muted);
}
.limbic-button--tertiary:hover:not(:disabled) {
    background: rgba(255, 255, 255, .07);
    color: var(--color-text-body);
}

.limbic-button--danger {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .3);
    color: #fca5a5;
}
.limbic-button--danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, .18);
    border-color: rgba(239, 68, 68, .5);
    color: #fff;
}

/* ============================================================================
   SIZES
   ============================================================================ */
.limbic-button--xs {
    min-height: 1.6rem;
    padding: .2rem .5rem;
    font-size: .7rem;
    gap: .3rem;
}
.limbic-button--sm {
    min-height: 1.9rem;
    padding: .3rem .72rem;
    font-size: .75rem;
}
.limbic-button--lg {
    min-height: 2.75rem;
    padding: .6rem 1.5rem;
    font-size: .9rem;
}
.limbic-button--full { width: 100%; }

/* ============================================================================
   ICON-ONLY
   ============================================================================ */
.limbic-button--icon {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border-radius: var(--shape-radius-button);
}
.limbic-button--icon.limbic-button--sm {
    width: 1.9rem;
    min-width: 1.9rem;
    height: 1.9rem;
    min-height: 1.9rem;
}
.limbic-button i { font-size: 1em; line-height: 1; }
.limbic-button i:only-child { margin: 0; }

/* ============================================================================
   STATES
   ============================================================================ */
.limbic-button:disabled,
.limbic-button[aria-disabled="true"] {
    opacity: .44;
    cursor: not-allowed;
    pointer-events: none;
}
.limbic-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.limbic-button.loading { pointer-events: none; opacity: .7; }
.limbic-button.loading::after {
    content: '';
    display: inline-block;
    width: .9rem;
    height: .9rem;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: limbic-btn-spin .55s linear infinite;
    margin-left: .3rem;
}
@keyframes limbic-btn-spin { to { transform: rotate(360deg); } }

/* Modal close button */
.limbic-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
    border-radius: var(--shape-radius-button);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--motion-fast), color var(--motion-fast);
}
.limbic-modal-close:hover { background: rgba(239, 68, 68, .14); color: #fca5a5; }

/* Magalu-specific aliases */
.limbic-button.magalu-action {
    min-height: 2rem;
    padding: .42rem .65rem;
    font-size: .72rem;
    font-weight: 800;
    gap: .3rem;
}
.limbic-button.magalu-tab {
    min-height: 2rem;
    font-size: .74rem;
    font-weight: 800;
}
.limbic-button.magalu-tab.active {
    background: rgba(0, 255, 136, .1);
    border-color: rgba(0, 255, 136, .3);
    color: var(--color-primary);
}
.limbic-button.magalu-step {
    min-height: 2.2rem;
    font-size: .62rem;
    font-weight: 800;
    padding: .44rem .55rem;
    gap: .4rem;
    border-radius: 8px;
}
.limbic-button.magalu-step.active { border-color: #0086ff; color: #0086ff; }
.limbic-button.magalu-step.done  { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.limbic-button.magalu-action[disabled] { opacity: .48; cursor: not-allowed; transform: none !important; }

/* ============================================================================
   LIGHT THEME — Attio style: flat, clean, no glow
   ============================================================================ */
html.light .limbic-button {
    background: #ffffff;
    border-color: #d0d5dd;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
html.light .limbic-button:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #c4ccd6;
    color: #101828;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

html.light .limbic-button--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 99, 255, .2);
}
html.light .limbic-button--primary:hover:not(:disabled) {
    background: #0050d9;
    border-color: #0050d9;
    box-shadow: 0 2px 6px rgba(15, 99, 255, .28);
}

html.light .limbic-button--secondary {
    background: #ffffff;
    border-color: #d0d5dd;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
html.light .limbic-button--secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #c4ccd6;
}

html.light .limbic-button--tertiary {
    background: transparent;
    border-color: transparent;
    color: #667085;
    box-shadow: none;
}
html.light .limbic-button--tertiary:hover:not(:disabled) {
    background: #f2f4f7;
    color: #344054;
}

html.light .limbic-button--danger {
    background: #fff1f3;
    border-color: #fda29b;
    color: #b42318;
    box-shadow: none;
}
html.light .limbic-button--danger:hover:not(:disabled) {
    background: #fee4e2;
    border-color: #f97066;
}

html.light .limbic-modal-close {
    background: #f2f4f7;
    border-color: #e4e7ec;
    color: #667085;
    box-shadow: none;
}
html.light .limbic-modal-close:hover { background: #fee4e2; color: #b42318; border-color: #fda29b; }

html.light .limbic-button.magalu-step.done {
    border-color: #abefc6;
    color: #067647;
    background: #ecfdf3;
}

/**
 * LIMBIC PRO — Modal & Dialog Components
 * Attio-aligned: clean geometry, no pseudo-badge, proper light/dark
 */

/* ============================================================================
   BACKDROP
   ============================================================================ */
.limbic-modal-backdrop,
.swal2-container.swal2-backdrop-show {
    background: color-mix(
        in srgb,
        var(--color-bg-main) calc(var(--effect-overlay-opacity, .68) * 100%),
        transparent
    ) !important;
    backdrop-filter: blur(var(--focus-backdrop-blur, 6px)) saturate(1.05);
    -webkit-backdrop-filter: blur(var(--focus-backdrop-blur, 6px)) saturate(1.05);
    z-index: var(--z-modal, 990);
}

/* ============================================================================
   NATIVE LIMBIC MODAL
   ============================================================================ */
.limbic-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal, 990);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: var(--shape-radius-modal);
    border: 1px solid var(--color-border);
    background: var(--color-modal-bg);
    box-shadow: var(--effect-shadow-strong);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    width: var(--modal-width-standard);
}
.limbic-modal.limbic-modal--wide { width: var(--modal-width-wide); }

/* ============================================================================
   SWEETALERT2 — crm-popup base
   ============================================================================ */
.swal2-popup.crm-popup {
    position: relative !important;
    padding: clamp(1.25rem, 2vw, 1.75rem) !important;
    border-radius: var(--shape-radius-modal) !important;
    border: 1px solid var(--color-border) !important;
    background: var(--color-modal-bg, rgba(15, 23, 42, .98)) !important;
    box-shadow:
        0 32px 120px rgba(0, 0, 0, .48),
        inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    max-height: var(--modal-content-max) !important;
    overflow: hidden !important;
    width: var(--modal-width-standard) !important;
}
.swal2-popup.crm-popup.crm-popup--wide {
    width: var(--modal-width-wide) !important;
}

/* ============================================================================
   MODAL SECTIONS
   ============================================================================ */
.limbic-modal-header,
.swal2-popup.crm-popup .swal2-title {
    margin: 0 !important;
    padding: 0 3rem 0 0 !important;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
    line-height: 1.1 !important;
    font-weight: var(--type-weight-bold, 900) !important;
    color: var(--color-text-head) !important;
}

.limbic-modal-body,
.swal2-popup.crm-popup .swal2-html-container {
    margin: .9rem 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: var(--modal-body-max) !important;
    padding-right: .25rem !important;
}

.limbic-modal-footer,
.swal2-popup.crm-popup .swal2-actions {
    display: flex !important;
    gap: .55rem !important;
    margin-top: .9rem !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}

/* ============================================================================
   CLOSE BUTTON
   ============================================================================ */
.swal2-popup.crm-popup .swal2-close {
    top: .9rem !important;
    right: .9rem !important;
    position: absolute !important;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--shape-radius-button) !important;
    border: 1px solid var(--color-border) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: var(--color-text-muted) !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition:
        background var(--motion-fast),
        color var(--motion-fast),
        border-color var(--motion-fast) !important;
    box-shadow: none !important;
}
.swal2-popup.crm-popup .swal2-close:hover {
    background: rgba(239, 68, 68, .14) !important;
    border-color: rgba(239, 68, 68, .3) !important;
    color: #fca5a5 !important;
}

/* ============================================================================
   MODAL ACTION BUTTONS
   ============================================================================ */
.swal2-popup.crm-popup .swal2-confirm,
.swal2-popup.crm-popup .swal2-deny,
.swal2-popup.crm-popup .swal2-cancel {
    border-radius: var(--shape-radius-button) !important;
    padding: .6rem 1.1rem !important;
    font-size: .78rem !important;
    font-weight: var(--type-weight-ui, 600) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    border: 1px solid var(--color-border) !important;
    transition:
        background var(--motion-fast),
        border-color var(--motion-fast),
        color var(--motion-fast) !important;
    min-height: 2.25rem !important;
}
.swal2-popup.crm-popup .swal2-confirm {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}
.swal2-popup.crm-popup .swal2-confirm:hover {
    filter: brightness(1.08) !important;
}
.swal2-popup.crm-popup .swal2-deny {
    background: rgba(255, 255, 255, .08) !important;
    color: var(--color-text-body) !important;
    border-color: var(--color-border) !important;
}
.swal2-popup.crm-popup .swal2-deny:hover {
    background: rgba(255, 255, 255, .14) !important;
}
.swal2-popup.crm-popup .swal2-cancel {
    background: transparent !important;
    color: var(--color-text-muted) !important;
    border-color: transparent !important;
}
.swal2-popup.crm-popup .swal2-cancel:hover {
    background: rgba(255, 255, 255, .07) !important;
    color: var(--color-text-body) !important;
}

/* ============================================================================
   ADMIN MODAL
   ============================================================================ */
.swal2-popup.admin-popup {
    width: min(1180px, calc(100vw - 1.5rem)) !important;
    padding: 1rem !important;
    border-radius: var(--shape-radius-modal) !important;
}
.swal2-popup.admin-popup .swal2-title {
    padding: 0 3rem 0 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
.swal2-popup.admin-popup .swal2-close {
    top: .75rem !important;
    right: .75rem !important;
}
.swal2-popup.admin-popup .swal2-html-container {
    max-height: min(82dvh, 800px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 .15rem 0 0 !important;
}

/* ============================================================================
   LIGHT THEME — Attio Dense
   ============================================================================ */
html.light .limbic-modal,
html.light .swal2-popup.crm-popup {
    background: #ffffff !important;
    border-color: #e4e7ec !important;
    box-shadow:
        0 4px 6px rgba(16, 24, 40, .05),
        0 12px 40px rgba(16, 24, 40, .10) !important;
}

html.light .swal2-popup.crm-popup .swal2-title {
    color: #111827 !important;
}
html.light .swal2-popup.crm-popup .swal2-html-container {
    color: #374151 !important;
}
html.light .swal2-popup.crm-popup .swal2-close {
    background: #f2f4f7 !important;
    border-color: #e4e7ec !important;
    color: #667085 !important;
}
html.light .swal2-popup.crm-popup .swal2-close:hover {
    background: #fee4e2 !important;
    border-color: #fda29b !important;
    color: #b42318 !important;
}
html.light .swal2-popup.crm-popup .swal2-confirm {
    background: var(--color-primary, #0f63ff) !important;
    border-color: var(--color-primary, #0f63ff) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 99, 255, .2) !important;
}
html.light .swal2-popup.crm-popup .swal2-confirm:hover {
    background: #0050d9 !important;
    border-color: #0050d9 !important;
}
html.light .swal2-popup.crm-popup .swal2-deny {
    background: #ffffff !important;
    color: #344054 !important;
    border-color: #d0d5dd !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
}
html.light .swal2-popup.crm-popup .swal2-deny:hover {
    background: #f9fafb !important;
    border-color: #c4ccd6 !important;
}
html.light .swal2-popup.crm-popup .swal2-cancel {
    color: #667085 !important;
}
html.light .swal2-popup.crm-popup .swal2-cancel:hover {
    background: #f2f4f7 !important;
    color: #344054 !important;
}

html.light .swal2-popup.admin-popup {
    background: #ffffff !important;
    border-color: #e4e7ec !important;
}

/**
 * LIMBIC PRO - Card Components
 * Standardized card pattern with consistent styling and states
 */

/* ============================================================================
   BASE CARD
   ============================================================================ */

.limbic-card {
  position: relative;
  border-radius: var(--shape-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 136, 0.07), transparent 30%),
    rgba(255, 255, 255, 0.045);
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: all var(--duration-normal) var(--ease-in-out);
}

/* ============================================================================
   CARD VARIANTS
   ============================================================================ */

/* Elevated - Subtle lift on hover */
.limbic-card.limbic-card--elevated:hover {
  border-color: rgba(0, 255, 136, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 136, 0.12), transparent 30%),
    rgba(0, 255, 136, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Compact - Reduced padding */
.limbic-card.limbic-card--compact {
  padding: 0.72rem;
  border-radius: var(--shape-radius-sm);
}

/* Section - Larger card for main content */
.limbic-card.limbic-card--section {
  padding: 1.25rem;
  border-radius: var(--shape-radius-lg);
}

.limbic-card.limbic-card--action {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--shape-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 136, 0.06), transparent 30%), rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-in-out);
}

.limbic-card.limbic-card--action:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 136, 0.12), transparent 30%), rgba(255, 255, 255, 0.08);
}

.limbic-card.limbic-card--action i {
  width: 2.3rem;
  height: 2.3rem;
  min-width: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shape-radius-md);
  background: rgba(0, 255, 136, 0.12);
  color: var(--color-primary);
}

.limbic-card.limbic-card--action span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.limbic-card.limbic-card--action b {
  font-weight: var(--type-weight-bold);
}

.limbic-card.limbic-card--action small {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ============================================================================
   CARD INTERNAL STRUCTURE
   ============================================================================ */

.limbic-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.limbic-card-header-title {
  font-size: 0.95rem;
  font-weight: var(--type-weight-bold);
  color: var(--color-text-head);
  line-height: 1.2;
  margin: 0;
}

.limbic-card-header-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.3;
}

.limbic-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.limbic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================================
   CARD WITH ICON/IMAGE
   ============================================================================ */

.limbic-card-icon {
  width: 2.8rem;
  height: 2.8rem;
  min-width: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shape-radius-md);
  background: rgba(0, 255, 136, 0.15);
  color: var(--color-primary);
  font-size: 1.35rem;
}

.limbic-card-with-icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

/* ============================================================================
   METRIC CARD (For dashboards/analytics)
   ============================================================================ */

.limbic-card.limbic-card--metric {
  text-align: center;
  padding: 1.15rem 0.9rem;
}

.limbic-card-metric-value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--type-weight-bold);
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0.35rem 0;
}

.limbic-card-metric-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.limbic-card-metric-change {
  font-size: 0.68rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.limbic-card-metric-change.positive {
  color: #86efac;
}

.limbic-card-metric-change.negative {
  color: #fca5a5;
}

.limbic-card.limbic-card--metric.magalu-metric {
  background: rgba(255, 255, 255, 0.065);
}

.limbic-card.limbic-card--metric.magalu-metric b {
  display: block;
  font-size: 0.76rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.limbic-card.magalu-source-tile {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.56rem;
}

.limbic-card.magalu-source-tile span {
  display: block;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.limbic-card.magalu-source-tile b {
  display: block;
  margin-top: 0.24rem;
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.limbic-card.magalu-source-tile small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.28;
  font-weight: 800;
}

.limbic-card.limbic-card--compact.magalu-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.38rem;
  margin: 0;
}

  gap: 0.85rem;
}

.limbic-card-grid.limbic-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.limbic-card-grid.limbic-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.limbic-card-grid.limbic-card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .limbic-card-grid.limbic-card-grid--4,
  .limbic-card-grid.limbic-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .limbic-card-grid.limbic-card-grid--4,
  .limbic-card-grid.limbic-card-grid--3,
  .limbic-card-grid.limbic-card-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   CARD STATUS INDICATORS
   ============================================================================ */

.limbic-card-status {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.limbic-card-status.status-warning {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.limbic-card-status.status-error {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.limbic-card-status.status-idle {
  background: #94a3b8;
  box-shadow: none;
}

/* ============================================================================
   LIGHT THEME ADJUSTMENTS
   ============================================================================ */

html.light .limbic-card {
  border-color: var(--color-border);
  background: var(--color-bg-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.light .limbic-card.limbic-card--elevated:hover {
  background: var(--color-bg-surface);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.light .limbic-card-header,
html.light .limbic-card-footer {
  border-color: var(--color-border);
}

html.light .limbic-card-header-title {
  color: #111827;
}

html.light .limbic-card-header-subtitle {
  color: #6b7280;
}

/**
 * LIMBIC PRO - Input Components
 * Standardized form inputs, text fields, and interactive elements
 */

/* ============================================================================
   BASE INPUT STYLES
   ============================================================================ */

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='search'],
input[type='tel'],
input[type='url'],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--shape-radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-input);
  color: var(--color-text-body);
  font-family: var(--type-font-family);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all var(--duration-normal) var(--ease-in-out);
}

input::placeholder,
textarea::placeholder {
  color: rgba(226, 232, 240, .42);
  font-weight: 400;
}

/* ============================================================================
   INPUT FOCUS STATE
   ============================================================================ */

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-input);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================================
   INPUT LABEL
   ============================================================================ */

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: var(--type-weight-bold);
  color: var(--color-text-head);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

label.required::after {
  content: ' *';
  color: #ef4444;
}

/* ============================================================================
   INPUT GROUP (Label + Input)
   ============================================================================ */

.limbic-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.limbic-input-group.limbic-input-group--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.limbic-input-group.limbic-input-group--inline label {
  margin-bottom: 0;
  min-width: 120px;
  flex: 0 0 auto;
}

/* ============================================================================
   INPUT ERROR STATE
   ============================================================================ */

input:invalid,
textarea:invalid,
select:invalid,
input.error,
textarea.error,
select.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus,
input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.limbic-input-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 500;
}

.limbic-input-error i {
  font-size: 0.9rem;
}

/* ============================================================================
   INPUT SUCCESS STATE
   ============================================================================ */

input.success,
textarea.success,
select.success {
  border-color: #86efac;
  background: rgba(34, 197, 94, 0.05);
}

input.success:focus,
textarea.success:focus,
select.success:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================================================
   TEXTAREA SPECIFIC
   ============================================================================ */

textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 400px;
}

textarea:disabled {
  resize: none;
}

/* ============================================================================
   SELECT/DROPDOWN
   ============================================================================ */

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300ff88' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
html.light select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

/* ============================================================================
   INPUT DISABLED STATE
   ============================================================================ */

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================================
   FILE INPUT
   ============================================================================ */

input[type='file'] {
  display: none;
}

.limbic-file-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px dashed rgba(0, 255, 136, 0.38);
  border-radius: var(--shape-radius-md);
  background: rgba(0, 255, 136, 0.05);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-in-out);
}

.limbic-file-input:hover {
  border-color: var(--color-primary);
  background: rgba(0, 255, 136, 0.1);
}

.limbic-file-input.active {
  border-color: var(--color-primary);
  background: rgba(0, 255, 136, 0.15);
}

/* ============================================================================
   CHECKBOX & RADIO (CUSTOM)
   ============================================================================ */

input[type='checkbox'],
input[type='radio'] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--shape-radius-sm);
  background: var(--color-bg-input);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-in-out);
}

input[type='radio'] {
  border-radius: 50%;
}

input[type='checkbox']:checked,
input[type='radio']:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

input[type='checkbox']:checked::after {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-inverse);
  font-size: 0.8rem;
  font-weight: 950;
}

input[type='checkbox']:focus,
input[type='radio']:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================================
   LIGHT THEME ADJUSTMENTS
   ============================================================================ */

html.light input[type='text'],
html.light input[type='email'],
html.light input[type='password'],
html.light input[type='number'],
html.light input[type='search'],
html.light input[type='tel'],
html.light input[type='url'],
html.light textarea,
html.light select {
  border-color: var(--color-border);
  background: var(--color-bg-surface);
  color: #111827;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #9ca3af;
}

html.light label {
  color: #111827;
}

html.light input:focus,
html.light textarea:focus,
html.light select:focus {
  border-color: var(--color-primary, #0f63ff);
  box-shadow: 0 0 0 3px rgba(15, 99, 255, .12);
  background: var(--color-bg-surface);
}

/**
 * LIMBIC PRO - Badge Components
 * Labels, tags, status indicators, and badges
 */

/* ============================================================================
   BASE BADGE
   ============================================================================ */

.limbic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.68rem;
  font-weight: var(--type-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-in-out);
}

/* ============================================================================
   BADGE TYPES/COLORS
   ============================================================================ */

/* Primary - Green/Neon */
.limbic-badge.limbic-badge--primary {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
}

.limbic-badge.limbic-badge--primary:hover {
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.15);
}

/* Success - Green */
.limbic-badge.limbic-badge--success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

/* Warning - Orange */
.limbic-badge.limbic-badge--warning {
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.1);
  color: #fdba74;
}

/* Danger - Red */
.limbic-badge.limbic-badge--danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

/* Info - Blue */
.limbic-badge.limbic-badge--info {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
}

/* Neutral - Gray */
.limbic-badge.limbic-badge--neutral {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

/* ============================================================================
   BADGE SIZES
   ============================================================================ */

.limbic-badge.limbic-badge--sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.58rem;
}

.limbic-badge.limbic-badge--lg {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
}

/* ============================================================================
   BADGE WITH ICON
   ============================================================================ */

.limbic-badge i {
  font-size: 0.9em;
  line-height: 1;
}

.limbic-badge i:first-child {
  margin-right: -0.2rem;
}

/* ============================================================================
   DOT BADGE (Circular Status)
   ============================================================================ */

.limbic-badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.limbic-badge-dot::before {
  content: '';
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* ============================================================================
   PILL/TAG BADGE
   ============================================================================ */

.limbic-badge.limbic-badge--pill {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.limbic-badge.limbic-badge--pill.close-able {
  padding-right: 0.4rem;
}

.limbic-badge.limbic-badge--pill .close-btn {
  margin-left: 0.35rem;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.limbic-badge.limbic-badge--pill .close-btn:hover {
  opacity: 1;
}

/* ============================================================================
   NUMERIC BADGE (Counter)
   ============================================================================ */

.limbic-badge-numeric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 0.7rem;
  font-weight: var(--type-weight-bold);
  line-height: 1;
}

/* ============================================================================
   INLINE BADGE (Contextual)
   ============================================================================ */

.limbic-badge-inline {
  display: inline;
  padding: 0.1rem 0.4rem;
  margin: 0 0.2rem;
  border-radius: var(--shape-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  font-size: inherit;
  letter-spacing: inherit;
}

/* ============================================================================
   STATUS BADGE (Large, visual)
   ============================================================================ */

.limbic-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: var(--shape-radius-md);
  border: 1px solid;
  font-size: 0.82rem;
  font-weight: 600;
}

.limbic-badge-status::before {
  content: '';
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: currentColor;
}

.limbic-badge-status.active {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.limbic-badge-status.inactive {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.05);
  color: #cbd5e1;
}

.limbic-badge-status.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* ============================================================================
   LIGHT THEME ADJUSTMENTS
   ============================================================================ */

html.light .limbic-badge {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.05);
  color: #374151;
}

html.light .limbic-badge.limbic-badge--primary {
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.08);
  color: #059669;
}

html.light .limbic-badge.limbic-badge--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

html.light .limbic-badge.limbic-badge--warning {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.08);
  color: #b45309;
}

html.light .limbic-badge.limbic-badge--danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

html.light .limbic-badge.limbic-badge--info {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #0369a1;
}

html.light .limbic-badge-numeric {
  background: var(--color-primary);
  color: #020617;
}

/**
 * LIMBIC PRO - Animations & Effects
 * Reusable animations and visual effects
 */

/* ============================================================================
   FADE ANIMATIONS
   ============================================================================ */

@keyframes limbic-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes limbic-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.limbic-fade-in {
  animation: limbic-fade-in var(--duration-normal) var(--ease-out) both;
}

.limbic-fade-out {
  animation: limbic-fade-out var(--duration-normal) var(--ease-in) both;
}

/* ============================================================================
   SLIDE ANIMATIONS
   ============================================================================ */

@keyframes limbic-slide-in-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes limbic-slide-in-down {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes limbic-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes limbic-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.limbic-slide-in-up {
  animation: limbic-slide-in-up var(--duration-normal) var(--ease-out) both;
}

.limbic-slide-in-down {
  animation: limbic-slide-in-down var(--duration-normal) var(--ease-out) both;
}

.limbic-slide-in-left {
  animation: limbic-slide-in-left var(--duration-normal) var(--ease-out) both;
}

.limbic-slide-in-right {
  animation: limbic-slide-in-right var(--duration-normal) var(--ease-out) both;
}

/* ============================================================================
   SCALE ANIMATIONS
   ============================================================================ */

@keyframes limbic-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes limbic-scale-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.limbic-scale-in {
  animation: limbic-scale-in var(--duration-normal) var(--ease-smooth) both;
}

.limbic-scale-out {
  animation: limbic-scale-out var(--duration-normal) var(--ease-smooth) both;
}

/* ============================================================================
   PULSE & BREATHING ANIMATIONS
   ============================================================================ */

@keyframes limbic-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes limbic-pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes limbic-breathe {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.limbic-pulse {
  animation: limbic-pulse 2s ease-in-out infinite;
}

.limbic-pulse-scale {
  animation: limbic-pulse-scale 2s ease-in-out infinite;
}

.limbic-breathe {
  animation: limbic-breathe 3s ease-in-out infinite;
}

/* ============================================================================
   LOADING ANIMATIONS
   ============================================================================ */

@keyframes limbic-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes limbic-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes limbic-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

.limbic-spin {
  animation: limbic-spin 0.6s linear infinite;
}

.limbic-spin-reverse {
  animation: limbic-spin-reverse 0.8s linear infinite;
}

.limbic-bounce {
  animation: limbic-bounce 1s ease-in-out infinite;
}

/* ============================================================================
   SHIMMER/SKELETON ANIMATIONS
   ============================================================================ */

@keyframes limbic-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.limbic-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 1000px 100%;
  animation: limbic-shimmer 1.5s infinite;
  border-radius: var(--shape-radius-sm);
}

/* ============================================================================
   GLOW EFFECTS
   ============================================================================ */

.limbic-glow {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.limbic-glow-accent {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.limbic-glow-pulse {
  animation: limbic-glow-pulse 2s ease-in-out infinite;
}

@keyframes limbic-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.3);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 255, 136, 0.6);
  }
}

/* ============================================================================
   GRADIENT ANIMATIONS
   ============================================================================ */

.limbic-gradient-shift {
  background: linear-gradient(
    45deg,
    #00ff88,
    #38bdf8,
    #00ff88
  );
  background-size: 200% 200%;
  animation: limbic-gradient-shift 3s ease infinite;
}

@keyframes limbic-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================================================
   STAGGER ANIMATION HELPER
   ============================================================================ */

.limbic-stagger > * {
  animation: limbic-slide-in-up var(--duration-normal) var(--ease-out) both;
}

.limbic-stagger > :nth-child(1) {
  animation-delay: 0ms;
}
.limbic-stagger > :nth-child(2) {
  animation-delay: 50ms;
}
.limbic-stagger > :nth-child(3) {
  animation-delay: 100ms;
}
.limbic-stagger > :nth-child(4) {
  animation-delay: 150ms;
}
.limbic-stagger > :nth-child(5) {
  animation-delay: 200ms;
}
.limbic-stagger > :nth-child(n+6) {
  animation-delay: 250ms;
}

/* ============================================================================
   MOTION PREFERENCES
   ============================================================================ */

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

  .limbic-spin,
  .limbic-pulse,
  .limbic-breathe,
  .limbic-bounce,
  .limbic-skeleton,
  .limbic-glow-pulse,
  .limbic-gradient-shift {
    animation: none;
  }
}

/* ============================================================================
   RESPONSIVE ANIMATION SCALE
   ============================================================================ */

html[data-motion='off'] .limbic-spin,
html[data-motion='off'] .limbic-pulse,
html[data-motion='off'] .limbic-breathe {
  animation: none;
}

html[data-motion='reduced'] .limbic-spin {
  animation-duration: 1.2s;
}

html[data-motion='reduced'] .limbic-pulse {
  animation-duration: 4s;
}

/**
 * LIMBIC PRO - Main CSS Entrypoint
 * Imports all design tokens, components, and utilities
 * Generated: 2026-05-30
 */

/* ============================================================================
   DESIGN SYSTEM - TOKENS & VARIABLES
   ============================================================================ */
/* ============================================================================
   COMPONENTS
   ============================================================================ */
/* ============================================================================
   UTILITIES & EFFECTS
   ============================================================================ */
/* ============================================================================
   LEGACY CRM COMPATIBILITY
   ============================================================================ */

.glass {
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 136, 0.07), transparent 30%), rgba(255, 255, 255, 0.045);
  border-radius: var(--shape-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
}

html.light .glass,
.light .glass {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e4e7ec !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 16px rgba(16, 24, 40, .06) !important;
  backdrop-filter: none !important;
}

.modal-blur {
  background: rgba(0, 0, 0, var(--effect-overlay-opacity));
  backdrop-filter: blur(var(--effect-modal-blur)) saturate(1.05);
  -webkit-backdrop-filter: blur(var(--effect-modal-blur)) saturate(1.05);
}

.bg-neon {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-text-inverse) !important;
}

.text-neon {
  color: var(--color-primary) !important;
}

.hover\:bg-neon:hover {
  background: #28ff99 !important;
  color: var(--color-text-inverse) !important;
}

.soft-transition {
  transition: all var(--duration-normal) var(--ease-in-out);
}

.analytics-action,
.filter-chip,
.stage-expand-btn,
.calendar-quick-btn,
.config-mini-btn,
.notification-action-btn,
.crm-modal-action,
.crm-modal-action-btn,
.email-pill-btn,
.magalu-action,
.limbic-button.magalu-action,
.app-center-btn,
.mobile-menu-action,
.mobile-bottom-action,
.decision-action,
.cockpit-mini-btn,
.integration-secondary-action,
.cinematic-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-body);
  font-size: 0.78rem;
  font-weight: var(--type-weight-bold);
  text-transform: uppercase;
  transition: all var(--duration-normal) var(--ease-in-out);
}

.analytics-action:hover,
.filter-chip:hover,
.stage-expand-btn:hover,
.calendar-quick-btn:hover,
.config-mini-btn:hover,
.notification-action-btn:hover,
.crm-modal-action:hover,
.crm-modal-action-btn:hover,
.email-pill-btn:hover,
.magalu-action:hover,
.limbic-button.magalu-action:hover,
.app-center-btn:hover,
.mobile-menu-action:hover,
.mobile-bottom-action:hover,
.decision-action:hover,
.cockpit-mini-btn:hover,
.integration-secondary-action:hover,
.cinematic-control:hover {
  background: rgba(0, 255, 136, 0.12);
  color: var(--color-primary);
  border-color: rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.filter-chip.active,
.analytics-action.active,
.stage-expand-btn.active {
  background: var(--color-primary) !important;
  color: var(--color-text-inverse) !important;
  border-color: var(--color-primary) !important;
}

.config-action-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--shape-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--duration-normal) var(--ease-in-out);
  cursor: pointer;
}

.config-action-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.config-card {
  border-radius: var(--shape-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
}

.config-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.config-card-kicker {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: var(--color-primary);
  font-size: 0.7rem;
}

.config-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: var(--type-weight-bold);
}

.config-card-copy,
.config-modal-subtitle {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.status-pill,
.system-status-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: var(--shape-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.status-pill b,
.system-status-pill b {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.status-pill p,
.system-status-pill p,
.status-pill small,
.system-status-pill small {
  margin: 0;
  color: var(--color-text-body);
}

.notification-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.45rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.limbic-badge-numeric.notification-badge {
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
}

/* ============================================================================
   BASE UTILITIES (Quick access classes)
   ============================================================================ */

/* Visibility */
.hidden {
  display: none !important;
  visibility: hidden !important;
}

.visible {
  display: block !important;
  visibility: visible !important;
}

.invisible {
  visibility: hidden !important;
  pointer-events: none;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: var(--type-weight-bold); }
.font-normal { font-weight: var(--type-weight-normal); }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Pointer */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Border */
.border { border: var(--border-thin) solid var(--color-border); }
.border-none { border: none; }
.rounded { border-radius: var(--shape-radius-md); }
.rounded-lg { border-radius: var(--shape-radius-lg); }
.rounded-full { border-radius: 999px; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: var(--effect-shadow); }
.shadow-lg { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

/* Colors */
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.bg-primary { background: var(--color-primary); }

/* Transitions */
.transition { transition: all var(--duration-normal) var(--ease-in-out); }
.transition-colors { transition: background-color, color, border-color var(--duration-fast) var(--ease-in-out); }

/* ============================================================================
   LIGHT THEME — Attio Dense overrides for shared action buttons
   ============================================================================ */
html.light .analytics-action,
html.light .filter-chip,
html.light .stage-expand-btn,
html.light .calendar-quick-btn,
html.light .config-mini-btn,
html.light .notification-action-btn,
html.light .crm-modal-action,
html.light .crm-modal-action-btn,
html.light .email-pill-btn,
html.light .magalu-action,
html.light .limbic-button.magalu-action,
html.light .app-center-btn,
html.light .mobile-menu-action,
html.light .mobile-bottom-action,
html.light .decision-action,
html.light .cockpit-mini-btn,
html.light .integration-secondary-action,
html.light .cinematic-control {
  border-radius: 6px !important;
  border-color: #d0d5dd !important;
  background: #ffffff !important;
  color: #344054 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html.light .analytics-action:hover,
html.light .filter-chip:hover,
html.light .stage-expand-btn:hover,
html.light .calendar-quick-btn:hover,
html.light .config-mini-btn:hover,
html.light .notification-action-btn:hover,
html.light .crm-modal-action:hover,
html.light .crm-modal-action-btn:hover,
html.light .email-pill-btn:hover,
html.light .magalu-action:hover,
html.light .limbic-button.magalu-action:hover,
html.light .app-center-btn:hover,
html.light .mobile-menu-action:hover,
html.light .mobile-bottom-action:hover,
html.light .decision-action:hover,
html.light .cockpit-mini-btn:hover,
html.light .integration-secondary-action:hover,
html.light .cinematic-control:hover {
  background: #f9fafb !important;
  border-color: #c4ccd6 !important;
  color: #101828 !important;
  transform: none !important;
}
html.light .filter-chip.active,
html.light .analytics-action.active,
html.light .stage-expand-btn.active {
  background: var(--color-primary, #0f63ff) !important;
  color: #ffffff !important;
  border-color: var(--color-primary, #0f63ff) !important;
  box-shadow: 0 1px 2px rgba(15, 99, 255, .2) !important;
}

/* Config cards */
html.light .config-action-card {
  border-color: #e4e7ec;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
html.light .config-action-card:hover {
  background: #f9fafb;
  border-color: #c4ccd6;
  transform: none;
}
html.light .config-card {
  border-color: #e4e7ec;
  background: #ffffff;
}
html.light .config-card-kicker { color: var(--color-primary, #0f63ff); }
html.light .config-card-title  { color: #111827; }
html.light .config-card-copy,
html.light .config-modal-subtitle { color: #6b7280; }

/* Status pills */
html.light .status-pill,
html.light .system-status-pill {
  border-color: #e4e7ec;
  background: #f9fafb;
}
html.light .status-pill b,
html.light .system-status-pill b { color: #374151; }
html.light .status-pill p,
html.light .system-status-pill p,
html.light .status-pill small,
html.light .system-status-pill small { color: #6b7280; }
