/* =============================================================================
   PropIntel Enterprise — Google Material Design 3 (M3) Standard Flat & Light
   Flat & Clean Light Surfaces with Glassmorphism & Subtle Glow on Key Action Elements
   100% Self-Contained Static CSS (Zero Supply-Chain Risk / No External JS)
   ============================================================================= */

:root {
  /* ── Google Material Design 3 Standard Light Theme Tokens ── */
  --md-sys-color-background: #F0F4F9;
  --md-sys-color-surface: #FFFFFF;
  --md-sys-color-surface-dim: #E8EEF6;
  --md-sys-color-surface-container-low: #F8FAFC;
  --md-sys-color-surface-container: #F3F6FC;
  --md-sys-color-surface-container-high: #EBF0F8;
  --md-sys-color-surface-bright: #FFFFFF;

  --md-sys-color-primary: #30247E;
  --md-sys-color-primary-container: #EEEDFE;
  --md-sys-color-on-primary-container: #1E1554;

  --md-sys-color-secondary: #DD52A9;
  --md-sys-color-secondary-container: #FBEAF4;
  --md-sys-color-on-secondary-container: #B83285;

  /* Brand Palette (Marketing Lab / PropIntel Standard) */
  --purple: #30247E;
  --purple-dark: #1E1554;
  --purple-soft: #EEEDFE;
  --purple-light: #AFA9EC;
  --indigo: #30247E;

  --pink: #DD52A9;
  --pink-dark: #B83285;
  --pink-soft: #FBEAF4;
  --pink-light: #F4C0D1;
  --pink-tint: #FBE9F3;

  --ink: #1F1F1F;
  --text: #1F1F1F;
  --text-muted: #5F6368;
  --muted: #5F6368;

  --cream: #FFFFF9;
  --surface: #FFFFFF;
  --white: #FFFFFF;
  --panel: #F8FAFC;
  --bg: #F0F4F9;
  --line: #E8ECF2;

  /* Semantic Status Colors (M3 Light Tonal) */
  --success: #059669;
  --success-text: #065F46;
  --success-bg: #ECFDF5;
  --warning: #D97706;
  --warning-text: #92400E;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-text: #991B1B;
  --danger-bg: #FEF2F2;
  --info: #2563EB;
  --info-text: #1E40AF;
  --info-bg: #EFF6FF;

  /* SaaS Theme Aliases */
  --theme-bg: var(--md-sys-color-background);
  --theme-surface: var(--md-sys-color-surface);
  --theme-surface-alt: var(--md-sys-color-surface-container-low);
  --theme-border: var(--line);
  --theme-border-subtle: #EDF2F7;
  --theme-text: var(--ink);
  --theme-text-secondary: var(--text-muted);
  --theme-scrollbar: #CBD5E1;
  --theme-scrollbar-hover: #94A3B8;

  --brand-pink: #DD52A9;
  --brand-pink-rgb: 221, 82, 169;
  --brand-indigo: #30247E;
  --brand-indigo-rgb: 48, 36, 126;

  /* Typography - Single Unified Font Family (Strictly zero robotic monospace) */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-raleway: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Nixtio Structure with Preserved PropIntel Indigo / Lavender / Pink Brand Tint */
  --ui-shell-bg: #EEF2FA;
  --ui-canvas-bg: #F7F9FD;
  --ui-surface-0: #FFFFFF;
  --ui-surface-1: #F3F6FC;
  --ui-surface-2: #E8EEF8;
  --ui-border-subtle: rgba(48, 36, 126, 0.06);
  --ui-border: rgba(48, 36, 126, 0.10);
  --ui-border-strong: rgba(48, 36, 126, 0.18);
  --ui-text-primary: #14122B;
  --ui-text-secondary: #475569;
  --ui-text-tertiary: #64748B;
  --ui-text-muted: #94A3B8;
  --nix-obsidian: #1B1542;
  --nix-obsidian-soft: #292062;
  --nix-champagne: #A5B4FC;

  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-space-8: 32px;
  --ui-content-max: 1680px;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 44px -12px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, button, input, select, textarea,
.font-sans, .font-display, .font-raleway, .font-mono,
code, pre, kbd, samp,
h1, h2, h3, h4, h5, h6, p, span, a, div, td, th, label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

code, pre, kbd, samp, .font-mono, .kpi .value, .tabular-nums {
  font-variant-numeric: tabular-nums;
}

html, body {
  background: var(--ui-shell-bg);
  color: var(--ui-text-primary);
  font-size: 14px;
  line-height: 1.5;
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Strictly neutralize all drop-shadow utility classes */
.shadow-sm, .shadow-md, .shadow-lg, .shadow-2xl, .shadow-xs,
.shadow-purple\/20, .shadow-brand-pink\/30,
[class*="shadow-"] {
  box-shadow: none !important;
}

/* =============================================================================
   M3 STANDARD LIGHT HARMONIZATION FOR UTILITY CLASSES
   ============================================================================= */
.theme-bg { background: transparent !important; }
.bg-\[\#F0F4F9\] { background: rgba(240, 244, 249, 0.72) !important; }
.theme-surface, .bg-white { background: #FFFFFF !important; }
.theme-surface-alt, .bg-panel, .bg-neutral-50, .bg-slate-50, .bg-brand-surface-alt, .bg-brand-surface-alt\/40, .bg-brand-surface-alt\/20, .bg-brand-surface-alt\/50, .bg-brand-surface-alt\/70, .bg-brand-surface\/40, .bg-brand-surface\/70, .bg-black\/20 {
  background: #FFFFFF !important;
}
.bg-\[\#F3F6FC\] { background: #F3F6FC !important; }
.bg-\[\#30247E\], .bg-purple { background: #30247E !important; }
.bg-\[\#E2E0FA\] { background: #E2E0FA !important; }
.bg-slate-200 { background: #E2E8F0 !important; }
.bg-purple-soft, .bg-purple-soft\/80, .bg-purple-soft\/60, .bg-purple-soft\/40, .bg-purple-soft\/30, .bg-purple-soft\/20, .bg-\[\#EEEDFE\] {
  background: #EEEDFE !important;
}
.theme-border, .border-line, .border-\[\#E8ECF2\], .border-\[\#EDF1F7\], .border-\[\#E2E8F0\], .border-slate-100, .border-slate-200\/60, .border-slate-200\/70, .border-gray-700\/30, .border-gray-700\/40, .border-gray-700\/50 {
  border-color: #E8ECF2 !important;
}
.border-purple-light, .border-purple-light\/80, .border-purple-light\/70, .border-purple-light\/60, .border-purple-light\/50, .border-purple-light\/40 {
  border-color: #E2E0FA !important;
}
.theme-text, .text-ink, .text-slate-900, .text-slate-800, .text-slate-700, .text-\[\#1F1F1F\] { color: #1F1F1F !important; }
.theme-text-secondary, .text-text-muted, .text-slate-600, .text-slate-500, .text-\[\#5F6368\] { color: #5F6368 !important; }
.text-slate-400 { color: #7C8698 !important; }
.text-slate-300 { color: #CBD5E1 !important; }
.text-purple, .text-brand-indigo, .text-\[\#30247E\], .text-indigo-900, .text-purple-300 { color: #30247E !important; }
.text-purple\/80 { color: rgba(48, 36, 126, 0.85) !important; }
.text-purple\/60 { color: rgba(48, 36, 126, 0.70) !important; }
.text-pink, .text-brand-pink, .text-\[\#DD52A9\] { color: #DD52A9 !important; }
.text-emerald-400, .text-emerald-600, .text-emerald-700 { color: #059669 !important; }
.text-blue-400, .text-sky-400 { color: #2563EB !important; }
.text-amber-400 { color: #D97706 !important; }
.text-\[\#0077b5\] { color: #0077B5 !important; }
.hover\:text-\[\#30247E\]:hover, .hover\:text-purple:hover, .hover\:text-indigo-900:hover { color: #30247E !important; }
.hover\:text-\[\#1F1F1F\]:hover, .hover\:text-slate-900:hover, .hover\:text-ink:hover { color: #1F1F1F !important; }

.p-1\.5 { padding: 0.375rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pt-3\.5 { padding-top: 0.875rem; }
.pb-5 { padding-bottom: 1.25rem; }
.gap-5 { gap: 1.25rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-3 { row-gap: 0.75rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.self-start { align-self: flex-start; }
.w-56 { width: 14rem; }

/* Backdrop reset - clean light */
.m3-universe-backdrop, .deco, .hatch {
  display: none !important;
}

/* =============================================================================
   TYPOGRAPHICAL SIGNATURES & M3 HEADINGS (NO AI UNDERLINE STRIPES)
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #1F1F1F;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

h1::after {
  display: none !important;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0 0.85rem;
}

.section-title-wrapper::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E8ECF2;
}

/* M3 Section Number Badge */
.section-num {
  background: #EEEDFE;
  color: #30247E;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================================================
   CUSTOM AUTO-HIDE SCROLLBAR (Transparent at rest, reveals on hover/scroll)
   ============================================================================= */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover,
*.is-scrolling {
  scrollbar-color: rgba(48, 36, 126, 0.24) transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background-color 0.22s ease;
}
*:hover::-webkit-scrollbar-thumb,
*.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(48, 36, 126, 0.22);
}
*:hover::-webkit-scrollbar-thumb:hover,
*.is-scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(48, 36, 126, 0.40);
}
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
.custom-scrollbar:hover::-webkit-scrollbar-thumb,
.custom-scrollbar.is-scrolling::-webkit-scrollbar-thumb { background: rgba(48, 36, 126, 0.24); }
.custom-scrollbar:hover::-webkit-scrollbar-thumb:hover,
.custom-scrollbar.is-scrolling::-webkit-scrollbar-thumb:hover { background: rgba(48, 36, 126, 0.42); }

/* =============================================================================
   LIQUID GLASS + M3 CONTAINERS, WORKSPACE CANVAS & BENTO PANELS
   ============================================================================= */
.m3-app-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--ui-shell-bg);
}

.sidebar {
  width: 88px;
  min-width: 88px;
  height: 100%;
  background: var(--ui-shell-bg);
  border-right: none;
}

.m3-main-canvas {
  background: var(--ui-canvas-bg);
  border: 1px solid var(--ui-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  border-radius: 20px;
  margin: 8px 8px 8px 0;
  height: calc(100vh - 16px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
}

/* Sticky Top App Bar inside Elevated Workspace Canvas */
.ui-top-appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -28px 24px;
  padding: 12px 28px;
  min-height: 60px;
  background: rgba(250, 251, 253, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.ui-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ui-breadcrumb-root {
  font-size: 12px;
  font-weight: 600;
  color: var(--ui-text-tertiary);
  white-space: nowrap;
}

.ui-breadcrumb-sep {
  color: #CBD5E1;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.ui-cmdk-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
  min-width: 240px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  color: var(--ui-text-tertiary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.ui-cmdk-trigger:hover {
  border-color: var(--ui-border-strong);
  color: var(--ui-text-primary);
  background: #FFFFFF;
}

.ui-cmdk-kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-secondary);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.m3-hero-bento-grid,
.m3-bento-grid-7-5,
.m3-bento-grid-5-7,
.m3-bento-grid-4-8,
.m3-bento-grid-6-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .m3-hero-bento-grid,
  .m3-bento-grid-7-5 {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .m3-bento-grid-5-7 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .m3-bento-grid-4-8 {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
  .m3-bento-grid-6-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.m3-bento-subgrid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .m3-bento-subgrid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.m3-bento-subgrid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .m3-bento-subgrid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Enterprise Horizontal Underline Tab Bar */
.b2-tab-bar,
.m3-segmented-bar,
.lg-hitl-nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--ui-border) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  max-width: 100%;
}

.b2-tab-btn,
.m3-segmented-bar .dossier-tab-btn,
.m3-segmented-bar .seq-btn-flat,
.lg-hitl-nav-pill {
  flex: 0 0 auto;
  padding: 9px 14px !important;
  min-height: 36px !important;
  height: auto !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin-bottom: -1px !important;
  background: transparent !important;
  color: var(--ui-text-tertiary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lg-hitl-nav-pill {
  padding: 8px 12px !important;
  font-size: 12px !important;
}

.b2-tab-btn:hover,
.m3-segmented-bar .dossier-tab-btn:hover,
.m3-segmented-bar .seq-btn-flat:hover,
.lg-hitl-nav-pill:hover {
  background: transparent !important;
  color: var(--ui-text-primary) !important;
}

.b2-tab-btn.active,
.m3-segmented-bar .dossier-tab-btn.active,
.m3-segmented-bar .seq-btn-flat.m3-seg-active,
.lg-hitl-nav-pill.is-active {
  background: transparent !important;
  color: #30247E !important;
  border-bottom: 2px solid #30247E !important;
  font-weight: 700 !important;
}

.m3-omnibox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 14px !important;
  padding: 5px 6px 5px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.m3-omnibox:focus-within {
  border-color: #30247E !important;
  box-shadow: 0 0 0 3px rgba(48, 36, 126, 0.08) !important;
}

.m3-omnibox input {
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  font-size: 0.88rem !important;
  color: var(--ui-text-primary) !important;
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  outline: none !important;
}

.m3-stat-mini-card {
  background: var(--ui-surface-1) !important;
  border: 1px solid var(--ui-border-subtle) !important;
  box-shadow: none;
  border-radius: 14px !important;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.m3-stat-mini-card:hover {
  border-color: #C7D2FE !important;
  background: #FFFFFF !important;
}

.m3-bento-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--ui-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.16s ease;
}

/* Flush edge-to-edge table & header layout inside overflow-hidden cards */
.m3-bento-card.overflow-hidden,
.crm-panel.overflow-hidden {
  padding: 0 !important;
}

.m3-bento-card-tonal {
  background: linear-gradient(160deg, #F6F8FF 0%, #FDF8FC 100%);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #E2E6F5;
  box-shadow: 0 1px 2px rgba(48, 36, 126, 0.03);
  transition: border-color 0.16s ease;
}

.crm-panel, .panel {
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  transition: var(--transition);
  position: relative;
}

.crm-panel:hover, .panel:hover {
  border-color: var(--ui-border-strong) !important;
}

.report-header-banner {
  background: #F8FAFC !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 18px;
  padding: 1.35rem 1.6rem;
  box-shadow: none !important;
  position: relative;
}

/* =============================================================================
   KEY ACTION ELEMENTS: GLASSMORPHISM & GLOWY EFFECT ON BUTTONS
   "only apply the glassmorphism to key element like Buttons. same for glowy effect."
   ============================================================================= */
.btn, .crm-btn, .cockpit-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: var(--transition);
  line-height: 1.1;
  box-sizing: border-box;
}

.btn:hover, .crm-btn:hover, .cockpit-btn:hover {
  transform: translateY(-1px);
}
.btn:active, .crm-btn:active, .cockpit-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Primary / Action Glassmorphic Button with Radiant Glow */
.btn.btn-primary, .crm-btn-primary, .cockpit-btn-primary {
  background: linear-gradient(135deg, rgba(48, 36, 126, 0.94) 0%, rgba(79, 70, 229, 0.92) 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 14px rgba(48, 36, 126, 0.30),
    0 0 10px rgba(79, 70, 229, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn.btn-primary:hover, .crm-btn-primary:hover, .cockpit-btn-primary:hover {
  box-shadow:
    0 6px 20px rgba(48, 36, 126, 0.45),
    0 0 16px rgba(79, 70, 229, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  color: #FFFFFF !important;
}

/* Accent Pink Glassmorphic Button with Vibrant Glow */
.btn.btn-secondary, .crm-btn-accent, .cockpit-btn-pink {
  background: linear-gradient(135deg, rgba(221, 82, 169, 0.94) 0%, rgba(184, 50, 133, 0.92) 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 14px rgba(221, 82, 169, 0.35),
    0 0 10px rgba(221, 82, 169, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.50) !important;
}
.btn.btn-secondary:hover, .crm-btn-accent:hover, .cockpit-btn-pink:hover {
  box-shadow:
    0 6px 22px rgba(221, 82, 169, 0.52),
    0 0 18px rgba(221, 82, 169, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
  color: #FFFFFF !important;
}

/* Secondary Tonal M3 Button (e.g., Voir l'étude active, Copier, Mémo, ZIP) */
.btn.btn-outline, .crm-btn-secondary {
  background: #EEEDFE !important;
  color: #30247E !important;
  border: 1px solid #D6D2FA !important;
  font-weight: 600;
  padding: 0.45rem 1rem;
  min-height: 34px;
}
.btn.btn-outline:hover, .crm-btn-secondary:hover {
  background: #E2DDFC !important;
  border-color: #30247E !important;
  color: #1E1554 !important;
}

/* Ghost / Outlined M3 Button */
.btn.btn-ghost, .crm-btn-ghost, .cockpit-btn-ghost {
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #DCE3EE;
  padding: 0.4rem 0.95rem;
  min-height: 34px;
}
.btn.btn-ghost:hover, .crm-btn-ghost:hover, .cockpit-btn-ghost:hover {
  background: #F3F6FC;
  color: #1F1F1F;
  border-color: #CBD5E1;
}

/* Table Action Button (e.g. Pitcher / Fiche) with Glassmorphism + Glow */
.table-action-btn, button.pitcher-btn {
  background: linear-gradient(135deg, rgba(48, 36, 126, 0.88), rgba(79, 70, 229, 0.88)) !important;
  color: #FFFFFF !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 2px 8px rgba(48, 36, 126, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.table-action-btn:hover, button.pitcher-btn:hover {
  box-shadow: 0 4px 14px rgba(48, 36, 126, 0.45), 0 0 10px rgba(79, 70, 229, 0.35) !important;
}

/* Strict Row Element Height Uniformity */
.cockpit-btn.h-7, .crm-btn.h-7, .pill.h-7, .badge.h-7 {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 0.75rem !important;
  font-size: 11px !important;
  box-sizing: border-box !important;
}

.cockpit-btn.h-8, .crm-btn.h-8, .pill.h-8, .badge.h-8, .pilot-chip.h-8,
.pilot-command-bar .cockpit-btn, .pilot-command-bar .pilot-search-box {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 0.9rem !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}

.cockpit-btn.h-9, .crm-btn.h-9, .pill.h-9, .badge.h-9 {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 1.05rem !important;
  font-size: 12.5px !important;
  box-sizing: border-box !important;
}

/* =============================================================================
   AVATARS & PROFILE CIRCLES (Strict 1:1 Geometric Circles)
   ============================================================================= */
.profile-circle,
.user-avatar-circle,
.agent-avatar-circle,
.poi-avatar-circle,
.avatar-circle {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #30247E 0%, #DD52A9 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
}

.user-profile-circle,
.user-avatar-circle {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.agent-avatar-circle,
.agent-card-tile .agent-avatar-circle,
.agent-card-tile div.rounded-full {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 4px auto !important;
}

.poi-avatar-circle {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.avatar-circle.w-7,
span.avatar-circle,
td span.rounded-full {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

div.rounded-full.w-9.h-9, div.rounded-full.h-9.w-9,
span.rounded-full.w-9.h-9, span.rounded-full.h-9.w-9 {
  width: 36px !important; min-width: 36px !important; max-width: 36px !important;
  height: 36px !important; min-height: 36px !important; max-height: 36px !important;
  aspect-ratio: 1 / 1 !important; border-radius: 50% !important; flex-shrink: 0 !important;
}

div.rounded-full.w-8.h-8, div.rounded-full.h-8.w-8,
span.rounded-full.w-8.h-8, span.rounded-full.h-8.w-8 {
  width: 32px !important; min-width: 32px !important; max-width: 32px !important;
  height: 32px !important; min-height: 32px !important; max-height: 32px !important;
  aspect-ratio: 1 / 1 !important; border-radius: 50% !important; flex-shrink: 0 !important;
}

div.rounded-full.w-10.h-10, div.rounded-full.h-10.w-10,
span.rounded-full.w-10.h-10, span.rounded-full.h-10.w-10 {
  width: 40px !important; min-width: 40px !important; max-width: 40px !important;
  height: 40px !important; min-height: 40px !important; max-height: 40px !important;
  aspect-ratio: 1 / 1 !important; border-radius: 50% !important; flex-shrink: 0 !important;
}

/* Login Emblem */
.m3-login-emblem-orb {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #30247E 0%, #DD52A9 100%);
  box-shadow: none !important;
  border: 2px solid #FFFFFF;
}

/* =============================================================================
   M3 TONAL CHIPS, BADGES & PILLS (Flat & Clean Light Design)
   ============================================================================= */
.badge, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 24px;
  box-sizing: border-box;
  padding: 0 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Emerald : Live & Verified (with subtle glow on live indicator) */
.badge-green, .pill-emerald, .badge-live {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border-color: #A7F3D0 !important;
}
.badge-green .pill-dot, .pill-emerald .pill-dot {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Primary Purple : Base & Mission */
.badge-blue, .badge-db, .pill-purple, .pill-sky, .badge-purple {
  background: #EEEDFE !important;
  color: #30247E !important;
  border-color: #D6D2FA !important;
}
.pill-purple .pill-dot, .pill-sky .pill-dot {
  background: #30247E;
}

/* Tertiary Pink : Action & Prospection */
.badge-pink, .pill-pink {
  background: #FBEAF4 !important;
  color: #B83285 !important;
  border-color: #F4C0D1 !important;
}
.badge-pink .pill-dot, .pill-pink .pill-dot {
  background: #DD52A9;
}

/* Amber : Running & Warning */
.badge-yellow, .pill-amber, .badge-amber {
  background: #FFFBEB !important;
  color: #92400E !important;
  border-color: #FDE68A !important;
}
.badge-yellow .pill-dot, .pill-amber .pill-dot {
  background: #F59E0B;
}

/* Coral Red : Alert */
.badge-red, .pill-red {
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border-color: #FECACA !important;
}
.badge-red .pill-dot, .pill-red .pill-dot {
  background: #EF4444;
}

/* Neutral Slate */
.badge-gray, .pill-zinc {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: #E2E8F0 !important;
}
.badge-gray .pill-dot, .pill-zinc .pill-dot { background: #94A3B8; }

/* =============================================================================
   M3 STANDARD FLAT LIGHT CARDS (PROJECT CARDS & AGENT TILES)
   ============================================================================= */
.project-card {
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 18px;
  padding: 18px 20px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025) !important;
  position: relative;
}

.project-card:hover {
  background: #FFFFFF !important;
  border-color: #A5B4FC !important;
  box-shadow: 0 8px 20px -8px rgba(48, 36, 126, 0.10) !important;
  transform: translateY(-2px);
}

.project-card.running {
  background: #FFFAFD !important;
  border-color: #F4C0D1 !important;
}

/* Mini Agent Grid & Flat Tiles */
.agent-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

@media (min-width: 640px) {
  .agent-grid-mini { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .agent-grid-mini {
    grid-template-columns: repeat(9, 1fr);
    gap: 0.6rem;
  }
}

.agent-card-tile {
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 16px;
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  box-shadow: none !important;
}

.agent-card-tile:hover {
  background: #F8FAFF !important;
  border-color: #C7D2FE !important;
  transform: translateY(-1px);
}

.agent-card-tile.active {
  border-color: #C7D2FE !important;
}

.agent-card-tile.running {
  border-color: #DD52A9 !important;
  background: #FDF2F8 !important;
}

/* =============================================================================
   WIZARD OPTIONS, INTEL FEED & M3 ASSIST CHIPS
   ============================================================================= */
.wizard-option-card {
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 1.15rem;
  background: #F8FAFC;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
}

.wizard-option-card:hover {
  border-color: #30247E;
  background: #F5F7FF;
}

.wizard-option-card.selected {
  border-color: #DD52A9;
  background: #FDF2F8;
  box-shadow: 0 0 0 1.5px #DD52A9;
}

.intel-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid var(--ui-border-subtle);
  transition: var(--transition);
}

.intel-feed-item:hover {
  border-color: #C7D2FE;
  background: #F8FAFF;
}

.pilot-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #F8FAFC;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  margin-bottom: 1rem;
  box-shadow: none !important;
}

.pilot-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.pilot-chip, .m3-assist-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ui-text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.pilot-chip:hover, .m3-assist-chip:hover {
  background: #EEEDFE;
  color: #30247E;
  border-color: #C7D2FE;
}
.pilot-chip.active, .m3-assist-chip.active {
  background: #EEEDFE;
  color: #30247E;
  border-color: #30247E;
  font-weight: 700;
}

/* =============================================================================
   ENTERPRISE COMPACT NAVIGATION RAIL (88px)
   ============================================================================= */
.sidebar {
  width: 88px;
  min-width: 88px;
  box-shadow: none !important;
}

.ui-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.ui-brand-mark:hover {
  border-color: #C7D2FE;
  transform: translateY(-1px);
}

.m3-fab-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #DD52A9 0%, #B83285 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 14px rgba(221, 82, 169, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: var(--transition);
  cursor: pointer;
}

.m3-fab-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(221, 82, 169, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ui-nav-divider {
  width: 36px;
  height: 1px;
  background: #DCE3EE;
  margin: 8px auto;
  list-style: none;
}

.sidebar .nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 5px 4px;
  border-radius: 12px;
  color: var(--ui-text-secondary);
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar .nav-link .nav-icon {
  width: 50px;
  height: 30px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--ui-text-secondary);
}

.sidebar .nav-link:hover .nav-icon {
  background: #E6ECF5;
  color: var(--ui-text-primary);
}

.sidebar .nav-link .nav-label {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: var(--ui-text-secondary);
  opacity: 1 !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap;
}

.sidebar .nav-link.active .nav-icon {
  background: #EEEDFE !important;
  color: #30247E !important;
  box-shadow: inset 0 0 0 1px rgba(48, 36, 126, 0.14);
}

.sidebar .nav-link.active .nav-label {
  color: #30247E !important;
  font-weight: 700;
}

.sidebar .nav-link .active-indicator {
  display: none !important;
}

.sidebar .bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--ui-text-secondary);
  border-radius: 12px;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar .bottom-link:hover {
  background: #E6ECF5 !important;
  color: var(--ui-text-primary) !important;
}

/* =============================================================================
   LAYOUT, VIEWS & TRANSITIONS
   ============================================================================= */
.view-panel {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--ui-content-max);
  margin-left: auto;
  margin-right: auto;
  animation: m3FadeIn 0.18s ease-out;
}

#view-concierge,
#view-project-activity {
  max-width: none;
}

.view-panel.active {
  display: flex !important;
}

@keyframes m3FadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   ENTERPRISE PRECISION DATA TABLES (STICKY HEADERS & TABULAR NUMS)
   ============================================================================= */
.crm-table {
  width: 100%;
  text-align: left;
  font-size: 0.8125rem;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.crm-table thead tr {
  color: var(--ui-text-tertiary);
  background: var(--ui-surface-1);
}

.crm-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-surface-1);
  color: var(--ui-text-tertiary);
  white-space: nowrap;
}

.crm-table tbody tr {
  color: var(--ui-text-primary);
  background: #FFFFFF;
  transition: background-color 120ms ease;
}

.crm-table tbody tr:hover {
  background: #F8FAFF !important;
}

.crm-table td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--ui-surface-2);
}

.crm-table tbody tr:last-child td {
  border-bottom: none;
}

.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}
.sortable-th:hover { color: #30247E; }

/* =============================================================================
   ENTERPRISE FORM FIELDS & INPUTS
   ============================================================================= */
.modern-form-input, .modern-form-textarea, .modern-form-select,
#headerFilterInput, #homeProjectSearchInput, #memProjectSearchInput {
  appearance: none;
  -webkit-appearance: none;
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  color: var(--ui-text-primary) !important;
  transition: var(--transition);
  font-size: 0.825rem;
  line-height: 1.35;
  font-family: inherit;
  box-sizing: border-box;
}

#headerFilterInput, #homeProjectSearchInput {
  border-radius: var(--radius-pill) !important;
  padding-left: 2.25rem !important;
  background-color: #FFFFFF !important;
  border-color: var(--ui-border) !important;
}

.modern-form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%235F6368' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.25em 1.25em !important;
  padding-right: 2.5rem !important;
}

.modern-form-input:focus, .modern-form-textarea:focus, .modern-form-select:focus,
#headerFilterInput:focus, #homeProjectSearchInput:focus, #memProjectSearchInput:focus {
  outline: none !important;
  border-color: #30247E !important;
  box-shadow: 0 0 0 3px rgba(48, 36, 126, 0.10) !important;
  background-color: #FFFFFF !important;
}

.modern-form-input::placeholder,
#headerFilterInput::placeholder,
#homeProjectSearchInput::placeholder,
#memProjectSearchInput::placeholder {
  color: var(--ui-text-muted) !important;
}

/* =============================================================================
   ENTERPRISE MODALS & DIALOGS (LAYERED ELEVATION + SMOOTH ENTRANCE)
   ============================================================================= */
.crm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.crm-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.crm-modal-card {
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 20px;
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.06) !important;
  max-width: 48rem;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ui-text-primary);
  position: relative;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-modal-backdrop.open .crm-modal-card {
  transform: translateY(0) scale(1);
}

.ui-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--ui-border);
  background: #FFFFFF;
  color: var(--ui-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.ui-modal-close:hover {
  background: var(--ui-surface-2);
  color: var(--ui-text-primary);
  border-color: var(--ui-border-strong);
}

/* =============================================================================
   M3 TOAST NOTIFICATIONS
   ============================================================================= */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 24rem;
  width: calc(100vw - 2.5rem);
}

.toast-item {
  pointer-events: auto;
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: none !important;
  color: #1F1F1F;
  font-size: 0.85rem;
  animation: toastSlideIn 0.25s ease-out forwards;
  transition: all 0.2s ease;
  overflow: hidden;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =============================================================================
   AUTOCOMPLETE, SEGMENTED CONTROLS & STEPPERS
   ============================================================================= */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #DCE3EE;
  border-radius: 16px;
  box-shadow: none !important;
  z-index: 1000;
  max-height: 18rem;
  overflow-y: auto;
  display: none;
}

.autocomplete-dropdown.open { display: block; }

.autocomplete-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.15s ease;
  color: #1F1F1F;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background: #F3F6FC;
  color: #30247E;
}

.segmented-sales-nav {
  display: inline-flex;
  background: #F3F6FC;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid #E8ECF2;
  gap: 0.25rem;
  overflow-x: auto;
  max-width: 100%;
}

.segmented-nav-btn {
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: #5F6368;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.segmented-nav-btn:hover {
  color: #1F1F1F;
  background: #E8EEF6;
}

.segmented-nav-btn.active {
  color: #30247E;
  background: #EEEDFE;
  font-weight: 700;
}

/* Cadence Stepper */
.cadence-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stepper-step {
  background: #FFFFFF;
  border: 1px solid #E8ECF2;
  border-radius: 16px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.stepper-step:hover {
  border-color: #30247E;
  transform: translateY(-1px);
}

.stepper-step.active {
  background: #EEEDFE;
  border-color: #30247E;
}

.stepper-icon {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #30247E;
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1F1F1F;
  margin-top: 2px;
}

/* =============================================================================
   M3 STANDARD LIGHT KPI CARDS (NO TOP COLORED STRIPE)
   ============================================================================= */
.kpi-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.kpi {
  background: #F8FAFC !important;
  border: 1px solid #EDF1F7 !important;
  border-radius: 24px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
  transition: var(--transition);
}

.kpi:hover {
  background: #F3F6FC !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.kpi::before {
  display: none !important;
}

.kpi .label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: #5F6368;
  margin-bottom: 6px;
  display: block;
}

.kpi .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #1F1F1F;
  line-height: 1.15;
}

/* =============================================================================
   LEAFLET MAP CONTAINER
   ============================================================================= */
#cadastreMap {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  z-index: 10;
  background: #F8FAFC;
  border: 1px solid #E8ECF2;
}
.leaflet-container {
  background: #F8FAFC !important;
  font-family: var(--font-sans) !important;
}

/* =============================================================================
   COMPACT M3 PROJECT SWITCHER PILLS
   ============================================================================= */
.mission-selector-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.mission-select-card {
  flex: 0 0 auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  box-shadow: none !important;
}

.mission-select-card:hover {
  background: #F3F6FC;
  border-color: #CBD5E1;
}

.mission-select-card.active {
  border-color: #30247E !important;
  background: #EEEDFE !important;
  color: #30247E !important;
  font-weight: 700;
}

.mission-select-card.active-global {
  border-color: #DD52A9 !important;
  background: #FBEAF4 !important;
  color: #B83285 !important;
  font-weight: 700;
}

.mission-select-card .card-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F1F1F;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-select-card.active .card-title {
  color: #30247E;
  font-weight: 700;
}

/* B2 Underline Tab Active State (canonical override) */
.dossier-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: #5F6368 !important;
  font-weight: 500 !important;
}

.dossier-tab-btn:hover {
  background: transparent !important;
  color: #1F1F1F !important;
}

.dossier-tab-btn.active,
.m3-seg-active {
  background: transparent !important;
  color: #5B4CE6 !important;
  border-bottom: 2px solid #5B4CE6 !important;
  font-weight: 700 !important;
}

/* M3 Login Surface Card */
.m3-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #F0F4F9 !important;
}

.m3-login-card {
  background: #FFFFFF !important;
  border-radius: 28px !important;
  border: 1px solid #E2E8F0 !important;
  padding: 40px !important;
  width: 100%;
  max-width: 420px;
  box-shadow: none !important;
}

.m3-login-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #EEEDFE;
  color: #30247E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .m3-app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
    margin: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 22px;
  }
  .sidebar { width: 72px; min-width: 72px; }
  .m3-main-canvas { margin: 0; padding: 18px; border-radius: 0; }
}

/* =============================================================================
   M3 FLAT & LIGHT — WORKFLOW V2 WORKBENCH (SÉQUENCES 21J, HITL & CHAUDS < 60s)
   Zero Card Drop-Shadows • Tabular Nums • Explicit CSS Grids (No Missing CDN)
   ============================================================================= */
.m3-bento-grid-8-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .m3-bento-grid-8-4 {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

.m3-kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .m3-kpi-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .m3-kpi-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.m3-nav-hot-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #DD52A9;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 2px solid #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.seq-guardrail-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 10px 16px;
}

.seq-window-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.seq-window-pill.is-open {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.seq-window-pill.is-closed {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.seq-guardrail-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
}

.seq-card {
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: none !important;
  font-variant-numeric: tabular-nums;
}

.seq-pipeline-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  border-left: 3px solid #C7D2FE;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.seq-pipeline-card:hover {
  border-color: #A5B4FC;
  border-left-color: #30247E;
  background: #FCFDFE;
}
.seq-pipeline-card.is-hot {
  border-color: #FDA4AF;
  border-left-color: #DD52A9;
  background: #FFFDFD;
}

.seq-kpi-pill {
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.seq-kpi-pill:hover {
  border-color: #A5B4FC;
  background: #F8FAFF;
}
.seq-kpi-pill.is-hot-kpi {
  background: #FDF2F8;
  border-color: #FBCFE8;
}

.seq-hot-banner {
  background: #FDF2F8;
  border: 1px solid #F4C0D1;
  border-radius: 18px;
  padding: 18px 20px;
}

.seq-hot-item {
  background: #FFFFFF;
  border: 1px solid #FBCFE8;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seq-badge-fit {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #C7D2FE;
  background: #EEF2FF;
  color: #30247E;
}
.seq-badge-fit.fit-a,
.seq-badge-fit.fit-A {
  background: #30247E;
  border-color: #30247E;
  color: #FFFFFF;
}
.seq-badge-fit.fit-b,
.seq-badge-fit.fit-B {
  background: #EEEDFE;
  border-color: #AFA9EC;
  color: #30247E;
}
.seq-badge-fit.fit-c,
.seq-badge-fit.fit-C {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

.seq-badge-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
}
.seq-badge-state.is-detecte,
.seq-badge-state.is-audite,
.seq-badge-state.state-DETECTE,
.seq-badge-state.state-AUDITE {
  background: #EEEDFE;
  border-color: #C7D2FE;
  color: #30247E;
}
.seq-badge-state.is-valide,
.seq-badge-state.is-en_sequence,
.seq-badge-state.state-VALIDE,
.seq-badge-state.state-EN_SEQUENCE {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}
.seq-badge-state.is-engage,
.seq-badge-state.state-ENGAGE {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #B45309;
}
.seq-badge-state.is-chaud,
.seq-badge-state.state-CHAUD {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
}
.seq-badge-state.is-transmis,
.seq-badge-state.is-rdv_gagne,
.seq-badge-state.state-TRANSMIS,
.seq-badge-state.state-RDV_GAGNE {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.seq-badge-state.is-nurturing,
.seq-badge-state.state-NURTURING {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #4B5563;
}
.seq-badge-state.is-exclu,
.seq-badge-state.is-rdv_perdu,
.seq-badge-state.state-EXCLU,
.seq-badge-state.state-RDV_PERDU {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

.seq-cadence-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .seq-cadence-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.seq-step-chip {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.seq-step-chip.is-done,
.seq-step-chip.is-sent {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.seq-step-chip.is-current {
  background: #EEEDFE;
  border-color: #30247E;
  color: #1E1554;
}
.seq-step-chip.is-upcoming {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #334155;
}
.seq-step-chip.is-skipped {
  background: #F8FAFC;
  border-style: dashed;
  border-color: #CBD5E1;
  color: #94A3B8;
}
.seq-step-chip.is-frozen {
  background: #FDF2F8;
  border-color: #FBCFE8;
  color: #9D174D;
}

.seq-health-bar {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: hidden;
  margin-top: 6px;
}
.seq-health-fill {
  height: 100%;
  border-radius: 9999px;
}
.seq-health-fill.is-ok { background: #059669; }
.seq-health-fill.is-warn { background: #D97706; }
.seq-health-fill.is-danger { background: #DC2626; }

.seq-sim-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
}
.seq-sim-details summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  user-select: none;
  list-style: none;
}
.seq-sim-details summary:hover {
  color: #30247E;
}

.seq-mode-select {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
}

.seq-btn-primary {
  background: linear-gradient(135deg, rgba(48, 36, 126, 0.92), rgba(79, 70, 229, 0.90));
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.seq-btn-primary:hover { opacity: 0.95; }

.seq-btn-pink {
  background: linear-gradient(135deg, rgba(221, 82, 169, 0.94), rgba(184, 50, 133, 0.92));
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.seq-btn-pink:hover { opacity: 0.95; }

.seq-btn-flat {
  background: #F8FAFC;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.seq-btn-flat:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #30247E;
}
.seq-btn-flat.m3-seg-active {
  background: #30247E;
  border-color: #30247E;
  color: #FFFFFF;
}

/* M3 Flat Light Status Helpers & Cross-View V2 Banners */
.m3-status-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.m3-status-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.m3-status-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.m3-surface-subtle {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #1E293B;
}
.m3-home-hot-banner {
  background: rgba(255, 241, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #FECDD3;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none;
}
.cockpit-btn.hidden,
.crm-btn.hidden,
.m3-bento-card.hidden,
.m3-bento-card-tonal.hidden,
.m3-home-hot-banner.hidden,
.seq-hot-banner.hidden,
.lg-flow-canvas.hidden {
  display: none !important;
}
.m3-stat-mini-card .badge {
  max-width: 100%;
  height: auto !important;
  min-height: 24px;
  padding: 4px 10px;
  white-space: normal;
  line-height: 1.3;
  text-align: left;
  border-radius: 10px;
}
#contactsTable th,
#contactsTable td {
  padding: 12px 16px;
}
body.m3-login-shell {
  background:
    radial-gradient(960px 560px at 15% 10%, rgba(224, 231, 255, 0.55) 0%, transparent 56%),
    radial-gradient(860px 520px at 88% 14%, rgba(252, 231, 243, 0.45) 0%, transparent 54%),
    #F3F5FA !important;
}
.m3-login-card {
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 22px !important;
  box-shadow:
    0 20px 44px -12px rgba(15, 23, 42, 0.10),
    0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
.m3-dossier-v2-banner {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

/* Sequence Inspector Drawer (Enterprise Master-Detail Slide-Over) */
.seq-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 950;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.seq-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.seq-drawer-panel {
  width: min(740px, 95vw);
  height: 100%;
  background: #FFFFFF;
  border-left: 1px solid var(--ui-border);
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.seq-drawer-backdrop.open .seq-drawer-panel {
  transform: translateX(0);
}
.seq-drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--ui-surface-1);
}
.seq-drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.seq-drawer-section {
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  padding: 16px 18px;
}
.seq-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #30247E;
  margin-bottom: 10px;
}
.seq-log-item {
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--ui-surface-1);
  font-size: 12px;
}
.seq-proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.seq-kpi-pill {
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.seq-kpi-pill:hover {
  border-color: #A5B4FC;
  box-shadow: 0 2px 6px rgba(48, 36, 126, 0.06);
}

.seq-kpi-pill.is-active-filter {
  border-color: #30247E;
  background: #F5F4FF;
  box-shadow: 0 0 0 2px rgba(48, 36, 126, 0.14);
}

.seq-settings-drawer {
  background: #ffffff;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.seq-settings-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 1024px) {
  .seq-settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.m3-metric-inline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.m3-copy-chip {
  font-size: 11px;
  color: #30247E;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 2px 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.m3-copy-chip:hover {
  background: #EEEDFE;
  border-color: #C7D2FE;
}

.m3-contact-row-clickable {
  cursor: pointer;
}
.m3-contact-row-clickable:hover td:first-child {
  box-shadow: inset 3px 0 0 #30247E;
}

/* =============================================================================
   LIQUID GLASS STUDIO: SELF-BUILDING AGENT NODE CANVAS + A2UI HITL PANEL
   Flat semantic DOM, frosted translucency, Dribbble DAG aesthetics + Gemini prompt bar
   ============================================================================= */
.lg-studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 16px rgba(30, 41, 59, 0.05);
}

.lg-studio-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9999px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.55);
  gap: 3px;
}

.lg-studio-switch-btn {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lg-studio-switch-btn.is-active {
  background: #FFFFFF;
  color: #30247E;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.lg-studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 640px;
}

@media (min-width: 1180px) {
  .lg-studio-workspace {
    grid-template-columns: minmax(0, 0.95fr) minmax(470px, 1.15fr);
  }
}

.lg-canvas-stage {
  position: relative;
  height: 660px;
  min-height: 580px;
  border-radius: 26px;
  background:
    radial-gradient(rgba(100, 116, 139, 0.24) 1.1px, transparent 1.1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(242, 246, 255, 0.64));
  background-size: 20px 20px, 100% 100%;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 8px 28px rgba(30, 41, 59, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lg-flow-canvas {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 580px;
  cursor: grab;
  overflow: hidden;
  user-select: none;
}

.lg-flow-canvas.is-panning {
  cursor: grabbing;
}

.lg-flow-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 1860px;
  height: 600px;
  transform-origin: 0 0;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.lg-flow-edges {
  position: absolute;
  inset: 0;
  width: 1860px;
  height: 600px;
  pointer-events: none;
  overflow: visible;
}

.lg-edge-path {
  fill: none;
  stroke: rgba(99, 102, 241, 0.55);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke 0.2s ease;
}

.lg-edge-path.is-flowing {
  stroke: #4F46E5;
  stroke-dasharray: 7 5;
  animation: lgEdgeFlow 0.9s linear infinite;
}

.lg-edge-path.is-loop {
  stroke: #DD52A9;
  stroke-dasharray: 5 5;
}

@keyframes lgEdgeFlow {
  to {
    stroke-dashoffset: -24;
  }
}

.lg-flow-nodes {
  position: absolute;
  inset: 0;
}

@keyframes lgNodeMaterialize {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lg-agent-node {
  position: absolute;
  width: 246px;
  min-height: 124px;
  padding: 14px 16px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 6px 20px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.lg-agent-node.is-entering {
  animation: lgNodeMaterialize 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.lg-agent-node:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.45);
}

.lg-agent-node.is-running {
  border-color: rgba(79, 70, 229, 0.72);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16), 0 8px 24px rgba(48, 36, 126, 0.12);
}

.lg-agent-node.is-completed {
  border-color: rgba(16, 185, 129, 0.42);
}

.lg-node-tag {
  position: absolute;
  top: -11px;
  left: 14px;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.lg-node-tag.is-green { background: #DCFCE7; color: #166534; }
.lg-node-tag.is-indigo { background: #E0E7FF; color: #312E81; }
.lg-node-tag.is-amber { background: #FEF3C7; color: #92400E; }
.lg-node-tag.is-pink { background: #FCE7F3; color: #9D174D; }
.lg-node-tag.is-blue { background: #DBEAFE; color: #1E40AF; }

.lg-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-node-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lg-node-icon svg { width: 15px; height: 15px; }
.lg-node-icon.is-green { background: #ECFDF5; color: #059669; }
.lg-node-icon.is-indigo { background: #EEEDFE; color: #30247E; }
.lg-node-icon.is-amber { background: #FFFBEB; color: #D97706; }
.lg-node-icon.is-pink { background: #FDF2F8; color: #DB2777; }
.lg-node-icon.is-blue { background: #EFF6FF; color: #2563EB; }

.lg-node-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-node-dots {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 1px;
}

.lg-node-body {
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
  background: rgba(241, 245, 249, 0.72);
  border-radius: 10px;
  padding: 7px 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lg-node-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lg-node-status {
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.lg-agent-node.is-running .lg-node-status {
  background: #EEEDFE;
  color: #30247E;
  border-color: #C7D2FE;
}

.lg-agent-node.is-completed .lg-node-status {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.lg-node-metric {
  color: #64748B;
}

.lg-node-port {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #6366F1;
  transform: translateY(-50%);
}
.lg-node-port.is-in { left: -5px; }
.lg-node-port.is-out { right: -5px; }

.lg-canvas-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lg-hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.lg-canvas-toolbar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.lg-toolbar-btn {
  padding: 5px 10px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.lg-toolbar-btn:hover {
  background: #EEEDFE;
  color: #30247E;
}

.lg-toolbar-btn.is-dark {
  background: #1F1F1F;
  color: #FFFFFF;
  padding: 6px 13px;
  white-space: nowrap;
}

/* Right HITL Interaction Panel (Google A2UI + Gemini Frosted Glass) */
.lg-hitl-panel {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 30px rgba(48, 36, 126, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 660px;
}

/* HITL Nav Tabs inherit B2 Underline Bar (.b2-tab-bar / .lg-hitl-nav-pills) */

.lg-a2ui-map-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(248, 250, 252, 0.95);
  display: flex;
  flex-direction: column;
}

.lg-a2ui-map-head,
.lg-a2ui-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  font-size: 11px;
  color: #475569;
  background: rgba(255, 255, 255, 0.88);
}

.lg-a2ui-map-head {
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.lg-a2ui-map-foot {
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.lg-a2ui-map-title {
  font-weight: 700;
  color: #0F172A;
}

.lg-a2ui-map-ref {
  font-weight: 700;
  color: #30247E;
  background: #EEEDFE;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.lg-a2ui-map-canvas {
  width: 100%;
  min-height: 180px;
  z-index: 5;
}

.lg-hitl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.lg-a2ui-surface {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.lg-a2ui-col { display: flex; flex-direction: column; gap: 10px; }
.lg-a2ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.lg-a2ui-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lg-a2ui-card.is-indigo {
  border-color: rgba(165, 180, 252, 0.85);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(238, 237, 254, 0.55));
}

.lg-a2ui-card.is-pink {
  border-color: rgba(244, 114, 182, 0.65);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(251, 234, 244, 0.65));
}

.lg-a2ui-card.is-warning {
  border-color: rgba(252, 211, 77, 0.85);
  background: rgba(255, 251, 235, 0.85);
}

.lg-a2ui-text.is-h2 { font-size: 14px; font-weight: 800; color: #0F172A; line-height: 1.3; }
.lg-a2ui-text.is-h3 { font-size: 13px; font-weight: 700; color: #0F172A; line-height: 1.3; }
.lg-a2ui-text.is-body { font-size: 12px; color: #334155; }
.lg-a2ui-text.is-caption { font-size: 11.5px; color: #64748B; }

.lg-a2ui-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  width: fit-content;
}
.lg-a2ui-badge.is-indigo { background: #EEEDFE; color: #30247E; }
.lg-a2ui-badge.is-pink { background: #FCE7F3; color: #9D174D; }
.lg-a2ui-badge.is-emerald { background: #ECFDF5; color: #065F46; }
.lg-a2ui-badge.is-neutral { background: #F1F5F9; color: #334155; }

.lg-a2ui-banner {
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.lg-a2ui-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.lg-a2ui-metric {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
}

.lg-a2ui-metric-label { font-size: 10px; color: #64748B; font-weight: 600; }
.lg-a2ui-metric-value { font-size: 12px; font-weight: 800; color: #0F172A; font-variant-numeric: tabular-nums; margin-top: 2px; }

.lg-a2ui-field-label { font-size: 11px; font-weight: 700; color: #475569; display: block; margin-bottom: 4px; }

.lg-a2ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-a2ui-chip {
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  cursor: pointer;
}
.lg-a2ui-chip.is-selected {
  background: #30247E;
  color: #FFFFFF;
  border-color: #30247E;
}

.lg-a2ui-field {
  width: 100%;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  color: #0F172A;
  outline: none;
}

.lg-a2ui-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.lg-a2ui-btn {
  padding: 7px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.lg-a2ui-btn:hover { transform: translateY(-1px); }
.lg-a2ui-btn.is-primary { background: linear-gradient(135deg, #30247E, #4F46E5); color: #FFFFFF; border-color: transparent; }
.lg-a2ui-btn.is-pink { background: linear-gradient(135deg, #DD52A9, #B83285); color: #FFFFFF; border-color: transparent; }
.lg-a2ui-btn.is-emerald { background: #059669; color: #FFFFFF; border-color: transparent; }
.lg-a2ui-btn.is-tonal { background: #EEEDFE; color: #30247E; border-color: #C7D2FE; }
.lg-a2ui-btn.is-danger { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }

.lg-gemini-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(199, 210, 254, 0.85);
  box-shadow: 0 2px 10px rgba(48, 36, 126, 0.06);
}

.lg-gemini-composer input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: #0F172A;
  outline: none;
}

.lg-gemini-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #FFFFFF;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#contactsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
#contactsTable th,
#contactsTable td {
  padding: 12px 16px;
}

/* =============================================================================
   LIQUID GLASS STUDY CONTEXT BAR & SEARCHABLE SWITCHER (ÉTUDE IMMOBILIÈRE)
   ============================================================================= */
.lg-dossier-bar {
  position: relative;
  z-index: 30;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lg-dossier-bar-left,
.lg-dossier-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lg-dossier-divider {
  width: 1px;
  height: 20px;
  background: rgba(203, 213, 225, 0.8);
  flex-shrink: 0;
}

.lg-study-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lg-study-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  max-width: min(460px, 46vw);
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #1F1F1F;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
}

.lg-study-trigger:hover,
.lg-study-trigger.is-open {
  background: #FFFFFF;
  border-color: rgba(48, 36, 126, 0.35);
}

.lg-study-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #30247E;
  flex-shrink: 0;
}

.lg-study-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1F1F1F;
  font-weight: 700;
}

.lg-study-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #30247E;
  background: #EEEDFE;
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.lg-study-chevron {
  flex-shrink: 0;
  color: #64748B;
  transition: transform 0.2s ease;
}

.lg-study-trigger.is-open .lg-study-chevron {
  transform: rotate(180deg);
  color: #30247E;
}

.lg-study-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}

.lg-study-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.lg-study-step-btn:hover {
  background: #FFFFFF;
  color: #30247E;
}

.lg-study-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(440px, 82vw);
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 22px 48px rgba(48, 36, 126, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06) !important;
  z-index: 60;
}

.lg-study-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

.lg-study-count {
  font-variant-numeric: tabular-nums;
  color: #30247E;
}

.lg-study-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.8rem;
  color: #1F1F1F;
  outline: none;
}

.lg-study-search:focus {
  border-color: #30247E;
  background: #FFFFFF;
}

.lg-study-list {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}

.lg-study-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.lg-study-option:hover {
  background: rgba(241, 245, 249, 0.9);
}

.lg-study-option.is-active {
  background: #EEEDFE;
  border-color: rgba(48, 36, 126, 0.18);
}

.lg-study-option-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #CBD5E1;
  flex-shrink: 0;
}

.lg-study-option.is-active .lg-study-option-dot {
  background: #30247E;
}

.lg-study-option-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F1F1F;
}

.lg-study-option.is-active .lg-study-option-title {
  color: #30247E;
  font-weight: 700;
}

.lg-study-option-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  font-variant-numeric: tabular-nums;
}

.lg-study-option.is-active .lg-study-option-meta {
  color: #30247E;
}

/* =============================================================================
   AGENT NODE SOLICITATION PILL & LIQUID GLASS REFLEXIVE INSPECTOR MODAL
   ============================================================================= */
.lg-node-foot-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lg-node-calls {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(48, 36, 126, 0.08);
  color: #30247E;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lg-agent-modal-card {
  max-width: 58rem;
  max-height: 88vh;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 28px;
  box-shadow:
    0 28px 64px rgba(48, 36, 126, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  padding: 0;
}

.lg-agent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(135deg, rgba(244, 247, 254, 0.85), rgba(253, 242, 248, 0.65));
}

.lg-agent-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #30247E;
  background: #EEEDFE;
  border-radius: 999px;
  padding: 2px 10px;
}

.lg-agent-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lg-agent-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lg-agent-kpi {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lg-agent-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
}

.lg-agent-kpi-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1F1F1F;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lg-agent-section {
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 14px 16px;
}

.lg-agent-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lg-agent-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #30247E;
}

.lg-agent-reflexive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-agent-reflexive-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 10px 12px;
}

.lg-agent-step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #EEEDFE;
  color: #30247E;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.lg-agent-step-stage {
  font-size: 0.74rem;
  font-weight: 700;
  color: #30247E;
}

.lg-agent-step-thought {
  font-size: 0.8rem;
  color: #1F1F1F;
  margin: 2px 0 4px;
  line-height: 1.45;
}

.lg-agent-step-evidence {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 999px;
}

.lg-agent-io-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lg-agent-io-card {
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-agent-io-card.is-handoff {
  background: rgba(244, 243, 255, 0.55);
  border-color: rgba(199, 210, 254, 0.85);
}

.lg-agent-io-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-agent-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lg-agent-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 2px 8px;
  border-radius: 999px;
}

.lg-agent-io-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-agent-io-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 8px 10px;
}

.lg-agent-io-label {
  font-size: 0.69rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}

.lg-agent-io-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1F1F1F;
  word-break: break-word;
}

.lg-agent-invocations {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-agent-inv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  padding: 6px 10px;
}

.lg-agent-inv-seq {
  font-weight: 800;
  color: #30247E;
  font-variant-numeric: tabular-nums;
}

.lg-agent-inv-time {
  color: #64748B;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.lg-agent-inv-act {
  color: #1F1F1F;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lg-agent-json-details {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.75);
}

.lg-agent-json-summary {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

/* =============================================================================
   DEFAULT CONCIERGE CHAT UI (OVERALL STATE-AWARE RAG + GOOGLE A2UI v0.9)
   ============================================================================= */
.lg-concierge-shell {
  position: relative;
  width: 100%;
  height: calc(100vh - 128px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
}

.lg-concierge-shell.is-empty {
  justify-content: center;
  align-items: center;
}

.lg-concierge-shell.is-empty .lg-concierge-messages {
  display: none;
}

.lg-concierge-shell.is-empty #conciergeNewChatBtn {
  opacity: 0;
  pointer-events: none;
}

.lg-concierge-shell:not(.is-empty) .lg-concierge-hero,
.lg-concierge-shell:not(.is-empty) .lg-concierge-empty-chips {
  display: none;
}

.lg-concierge-floating-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.lg-float-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(48, 36, 126, 0.08) !important;
  color: #1F1F1F;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease, background-color 0.15s ease;
}

.lg-float-pill:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.lg-float-pill.is-action {
  color: #30247E;
  font-weight: 700;
}

.lg-concierge-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10B981;
  flex-shrink: 0;
}

.lg-concierge-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  padding: 0 16px;
}

.lg-concierge-hero-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEEDFE 0%, #FCE7F3 100%);
  color: #30247E;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(48, 36, 126, 0.08) !important;
  margin-bottom: 14px;
}

.lg-concierge-hero-title {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(125deg, #1F1F1F 0%, #30247E 55%, #B83285 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.lg-concierge-hero-sub {
  font-size: 0.92rem;
  color: #5F6368;
  margin-top: 8px;
  line-height: 1.5;
}

.lg-concierge-messages {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 54px max(12px, calc((100% - 780px) / 2)) 110px;
}

.lg-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 92%;
}

.lg-chat-row.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.lg-chat-row.is-agent {
  align-self: flex-start;
  width: 100%;
  max-width: 780px;
}

.lg-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  background: linear-gradient(135deg, #30247E, #6366F1);
  color: #FFFFFF;
}

.lg-chat-row.is-user .lg-chat-avatar {
  background: linear-gradient(135deg, #DD52A9, #B83285);
}

.lg-chat-bubble {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 22px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-chat-row.is-user .lg-chat-bubble {
  flex: 0 1 auto;
  background: linear-gradient(135deg, #30247E, #4338CA);
  border-color: transparent;
  color: #FFFFFF;
}

.lg-chat-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #1F1F1F;
  margin: 0;
}

.lg-chat-row.is-user .lg-chat-text {
  color: #FFFFFF;
}

.lg-chat-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lg-chat-source-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #30247E;
  background: #EEEDFE;
  border-radius: 999px;
  padding: 2px 9px;
}

.lg-chat-a2ui-mount {
  width: 100%;
}

.lg-chat-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
  padding-top: 4px;
}

.lg-concierge-composer-dock {
  width: min(740px, 100%);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lg-concierge-shell:not(.is-empty) .lg-concierge-composer-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 16px));
  margin-top: 0;
  z-index: 30;
}

.lg-concierge-composer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 14px 36px rgba(48, 36, 126, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.lg-composer-plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #30247E;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lg-composer-plus-btn:hover {
  background: #EEEDFE;
  border-color: #C7D2FE;
}

.lg-concierge-composer input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #0F172A;
  outline: none;
}

.lg-concierge-empty-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
}

.lg-concierge-chip {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #30247E;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(199, 210, 254, 0.9);
  cursor: pointer;
  transition: var(--transition);
}

.lg-concierge-chip:hover {
  background: #30247E;
  color: #FFFFFF;
  border-color: #30247E;
}

@media (max-width: 767px) {
  .m3-app-shell {
    display: flex;
    flex-direction: column;
    margin: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 22px;
  }
  .sidebar {
    order: 2;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    height: 62px !important;
    width: 100% !important;
    min-width: 100% !important;
    flex-shrink: 0;
    flex-direction: row !important;
    padding: 4px 8px !important;
    border-right: none !important;
    border-top: 1px solid rgba(226, 232, 246, 0.9) !important;
    background: rgba(244, 247, 253, 0.72) !important;
    z-index: 20 !important;
  }
  .sidebar > a,
  .sidebar .m3-fab-btn,
  .sidebar > div.mt-auto {
    display: none !important;
  }
  .sidebar nav {
    overflow: visible !important;
    padding: 0 !important;
  }
  .sidebar nav ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    margin: 0 !important;
  }
  .sidebar nav ul > li {
    margin-top: 0 !important;
  }
  .sidebar .nav-link {
    padding: 4px 2px !important;
    gap: 2px !important;
  }
  .sidebar .nav-link .nav-icon {
    width: 38px !important;
    height: 26px !important;
  }
  .sidebar .nav-link .nav-label {
    font-size: 9.5px !important;
  }
  .lg-concierge-shell {
    height: calc(100vh - 148px);
    min-height: 420px;
    padding: 0;
  }
  .lg-concierge-shell:not(.is-empty) .lg-concierge-composer-dock {
    bottom: 4px;
    width: 100%;
  }
  .lg-concierge-messages {
    padding: 50px 0 92px;
  }
  .lg-chat-row.is-agent {
    max-width: 100%;
  }
  .m3-main-canvas {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 14px !important;
  }
  .m3-omnibox {
    flex-wrap: nowrap !important;
    border-radius: 9999px !important;
    padding: 4px 4px 4px 12px !important;
    gap: 6px !important;
  }
  .m3-omnibox button {
    width: auto !important;
    padding: 0 14px !important;
    height: 36px !important;
    white-space: nowrap;
  }
  .lg-studio-bar {
    border-radius: 20px !important;
    padding: 12px 14px !important;
  }
  .lg-dossier-bar {
    border-radius: 20px;
    padding: 10px 12px;
    align-items: stretch;
  }
  .lg-dossier-bar-left,
  .lg-dossier-bar-right {
    width: 100%;
    flex-wrap: wrap;
  }
  .lg-dossier-divider {
    display: none;
  }
  .lg-study-switcher {
    width: 100%;
  }
  .lg-study-trigger {
    flex: 1 1 auto;
    max-width: none;
  }
  .lg-study-menu {
    width: 100%;
    left: 0;
    right: 0;
  }
  .lg-canvas-stage {
    height: 460px;
    min-height: 440px;
  }
  .lg-canvas-hud-top {
    flex-wrap: wrap;
    gap: 6px;
  }
  .lg-canvas-toolbar {
    max-width: calc(100% - 16px);
    overflow-x: auto;
    white-space: nowrap;
  }
  .lg-hitl-panel {
    max-height: none;
  }
  #toast-container {
    bottom: 78px;
    right: 14px;
    width: calc(100vw - 28px);
  }
  .lg-agent-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg-agent-io-grid {
    grid-template-columns: 1fr;
  }
  .lg-agent-modal-header,
  .lg-agent-modal-body {
    padding: 14px 16px;
  }
}

/* =========================================================================
   SETTINGS MULTI-VERTICAL, TOOLS INVENTORY & LANGSMITH BADGES
   ========================================================================= */
.lg-header-settings-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #E2E8F0;
  color: #30247E;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.lg-header-settings-btn:hover {
  background: rgba(91, 76, 230, 0.08);
  border-color: #5B4CE6;
}
.lg-llm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #30247E;
  background: rgba(91, 76, 230, 0.09);
  border: 1px solid rgba(91, 76, 230, 0.22);
}
.lg-settings-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.lg-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}
.lg-preset-card {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #E2E8F0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.lg-preset-card:hover {
  border-color: #94A3B8;
}
.lg-preset-card.is-active {
  border-color: #5B4CE6;
  background: linear-gradient(135deg, rgba(91, 76, 230, 0.08), rgba(221, 82, 169, 0.05));
  box-shadow: 0 4px 14px rgba(91, 76, 230, 0.12);
}
.lg-settings-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}
.lg-settings-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E2E8F0;
}
.lg-settings-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}
.lg-settings-input {
  width: 100%;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
}
.lg-tool-toggle-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #64748B;
}
.lg-tool-toggle-pill.is-on {
  border-color: rgba(91, 76, 230, 0.35);
  background: rgba(91, 76, 230, 0.09);
  color: #30247E;
}
.lg-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.lg-tool-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #E2E8F0;
}
.lg-tool-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.lg-tool-badge.is-live {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.lg-tool-badge.is-paused {
  background: rgba(245, 158, 11, 0.16);
  color: #B45309;
}
.lg-tool-badge.is-missing {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

/* =========================================================================
   ENTERPRISE COMMAND PALETTE (CMD/CTRL+K), EMPTY STATES & LIST BARS
   ========================================================================= */
.ui-cmdk-card {
  max-width: 38rem;
  width: 100%;
  background: #FFFFFF !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 18px;
  box-shadow:
    0 28px 56px -12px rgba(15, 23, 42, 0.22),
    0 4px 14px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-modal-backdrop.open .ui-cmdk-card {
  transform: translateY(0) scale(1);
}

.ui-cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-border);
  background: #FFFFFF;
}

.ui-cmdk-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text-primary);
  outline: none !important;
}

.ui-cmdk-input::placeholder {
  color: var(--ui-text-muted);
}

.ui-cmdk-results {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ui-cmdk-group-label {
  padding: 8px 10px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ui-text-tertiary);
}

.ui-cmdk-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ui-text-primary);
  transition: background-color 0.1s ease, color 0.1s ease;
}

.ui-cmdk-item:hover,
.ui-cmdk-item.is-selected {
  background: #F3F4FF;
  color: #30247E;
}

.ui-cmdk-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ui-cmdk-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border);
  color: var(--ui-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

.ui-cmdk-item:hover .ui-cmdk-icon,
.ui-cmdk-item.is-selected .ui-cmdk-icon {
  background: #EEEDFE;
  border-color: #C7D2FE;
  color: #30247E;
}

.ui-cmdk-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-cmdk-sub {
  font-size: 11px;
  color: var(--ui-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-cmdk-meta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ui-text-tertiary);
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border);
  padding: 2px 8px;
  border-radius: 6px;
}

.ui-cmdk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--ui-border);
  background: var(--ui-surface-1);
  font-size: 11px;
  color: var(--ui-text-tertiary);
}

.ui-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  gap: 8px;
}

.ui-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ui-surface-1);
  border: 1px solid var(--ui-border);
  color: #30247E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.ui-breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ui-surface-2);
}

.ui-breakdown-row:last-child {
  border-bottom: none;
}

.ui-breakdown-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--ui-surface-2);
  overflow: hidden;
}

.ui-breakdown-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #30247E 0%, #6366F1 100%);
}

@media (max-width: 767px) {
  .m3-app-shell {
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
  .ui-top-appbar {
    margin: -14px -14px 16px !important;
    padding: 10px 14px !important;
  }
  .ui-cmdk-trigger {
    min-width: 0;
    padding: 0 10px;
  }
  .ui-cmdk-trigger-label {
    display: none;
  }
  .sidebar .ui-nav-divider,
  .sidebar .ui-nav-secondary-item {
    display: none !important;
  }
}

/* =========================================================================
   NIXTIO SPATIAL LAYOUT, PADDING, MARGINS & CARD ARCHITECTURE
   (Preserves Original PropIntel Light Indigo / Lavender / Pink Tint)
   ========================================================================= */
.m3-main-canvas {
  background:
    radial-gradient(1000px 480px at 8% -6%, rgba(196, 219, 255, 0.42) 0%, transparent 56%),
    radial-gradient(880px 420px at 94% -2%, rgba(246, 212, 239, 0.34) 0%, transparent 54%),
    radial-gradient(860px 440px at 52% 106%, rgba(219, 216, 255, 0.34) 0%, transparent 58%),
    var(--ui-canvas-bg) !important;
  border-radius: 24px;
  border: 1px solid rgba(48, 36, 126, 0.08);
  padding: 0 32px 32px;
  box-shadow: 0 2px 14px rgba(48, 36, 126, 0.04);
}

.ui-top-appbar {
  margin: 0 -32px 26px;
  padding: 14px 32px;
  background: rgba(247, 249, 253, 0.84);
  border-bottom: 1px solid rgba(48, 36, 126, 0.075);
}

.view-panel {
  gap: 1.5rem;
}

.m3-hero-bento-grid,
.m3-bento-grid-7-5,
.m3-bento-grid-5-7,
.m3-bento-grid-4-8,
.m3-bento-grid-6-6 {
  gap: 20px;
}

.m3-bento-subgrid-2,
.m3-bento-subgrid-3 {
  gap: 14px;
}

.ui-cmdk-trigger {
  border-radius: 9999px;
  padding: 0 10px 0 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(48, 36, 126, 0.10);
  box-shadow: 0 1px 3px rgba(48, 36, 126, 0.03);
}

.ui-cmdk-trigger:hover {
  border-color: rgba(48, 36, 126, 0.24);
  box-shadow: 0 3px 10px rgba(48, 36, 126, 0.06);
}

.ui-cmdk-kbd {
  border-radius: 9999px;
  padding: 2px 8px;
  background: #EEEDFE;
  border: 1px solid rgba(48, 36, 126, 0.12);
  color: #30247E;
}

/* Light Tinted Brand Emblem & Active Rail Pill */
.ui-brand-mark {
  background: #FFFFFF !important;
  border: 1px solid rgba(48, 36, 126, 0.10) !important;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(48, 36, 126, 0.06);
}

.sidebar .nav-link:hover .nav-icon {
  background: rgba(48, 36, 126, 0.07);
  color: #30247E;
}

.sidebar .nav-link.active .nav-icon {
  background: #EEEDFE !important;
  color: #30247E !important;
  box-shadow: inset 0 0 0 1px rgba(48, 36, 126, 0.14) !important;
}

.sidebar .nav-link.active .nav-label {
  color: #30247E !important;
  font-weight: 700;
}

.ui-nav-divider {
  background: rgba(48, 36, 126, 0.10);
}

/* Nixtio Floating Pill Tab Geometry (Cool Light Tint) */
.b2-tab-bar,
.m3-segmented-bar,
.lg-hitl-nav-pills {
  background: #EAEFF9 !important;
  border: 1px solid rgba(48, 36, 126, 0.06) !important;
  border-radius: 9999px !important;
  padding: 4px !important;
  gap: 4px !important;
  width: fit-content;
}

.b2-tab-btn,
.m3-segmented-bar .dossier-tab-btn,
.m3-segmented-bar .seq-btn-flat,
.lg-hitl-nav-pill {
  padding: 7px 16px !important;
  min-height: 32px !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 9999px !important;
  margin-bottom: 0 !important;
  color: #5F6368 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.b2-tab-btn:hover,
.m3-segmented-bar .dossier-tab-btn:hover,
.m3-segmented-bar .seq-btn-flat:hover,
.lg-hitl-nav-pill:hover {
  color: #30247E !important;
  background: rgba(255, 255, 255, 0.60) !important;
}

.b2-tab-btn.active,
.m3-segmented-bar .dossier-tab-btn.active,
.m3-segmented-bar .seq-btn-flat.m3-seg-active,
.lg-hitl-nav-pill.is-active {
  background: #FFFFFF !important;
  color: #30247E !important;
  border-bottom: none !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(48, 36, 126, 0.08), 0 0 0 1px rgba(48, 36, 126, 0.05) !important;
}

/* Nixtio Sculpted Card Padding, Radii & Breathing Room (Light Tint) */
.m3-bento-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(48, 36, 126, 0.08);
  box-shadow: 0 2px 10px rgba(48, 36, 126, 0.025), 0 12px 28px -16px rgba(48, 36, 126, 0.06);
}

.m3-bento-card-tonal {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 237, 254, 0.58) 60%, rgba(251, 234, 244, 0.48) 100%);
  border-radius: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(48, 36, 126, 0.09);
  box-shadow: 0 2px 10px rgba(48, 36, 126, 0.025), 0 12px 28px -16px rgba(48, 36, 126, 0.06);
}

.m3-stat-mini-card {
  background: #F6F8FD !important;
  border: 1px solid rgba(48, 36, 126, 0.07) !important;
  border-radius: 16px !important;
  padding: 16px 18px;
}

.m3-stat-mini-card:hover {
  background: #FFFFFF !important;
  border-color: rgba(48, 36, 126, 0.22) !important;
  box-shadow: 0 6px 18px -10px rgba(48, 36, 126, 0.14);
}

.m3-omnibox {
  border-radius: 9999px !important;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(48, 36, 126, 0.13) !important;
  box-shadow: 0 4px 14px rgba(48, 36, 126, 0.04);
}

.m3-omnibox:focus-within {
  border-color: #30247E !important;
  box-shadow: 0 0 0 3px rgba(48, 36, 126, 0.10) !important;
}

/* Project Cards, Tables & Pipeline Rows (Generous Padding & Margins) */
.project-card {
  border-radius: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(48, 36, 126, 0.08) !important;
  box-shadow: 0 2px 8px rgba(48, 36, 126, 0.025) !important;
}

.project-card:hover {
  border-color: rgba(48, 36, 126, 0.24) !important;
  box-shadow: 0 14px 30px -14px rgba(48, 36, 126, 0.14) !important;
}

.m3-metric-inline-row {
  background: #F3F6FC;
  border-color: rgba(48, 36, 126, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.crm-table thead tr,
.crm-table th {
  background: #F3F6FC;
  color: #5F6368;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(48, 36, 126, 0.08);
}

.crm-table td {
  padding: 14px 18px;
}

.crm-table tbody tr:hover {
  background: #F8FAFF !important;
}

.m3-contact-row-clickable:hover td:first-child {
  box-shadow: inset 3px 0 0 #30247E;
}

.seq-kpi-pill {
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(48, 36, 126, 0.08);
  box-shadow: 0 2px 8px rgba(48, 36, 126, 0.025);
}

.seq-kpi-pill.is-active-filter {
  border-color: #30247E;
  background: #EEEDFE;
  box-shadow: 0 0 0 2px rgba(48, 36, 126, 0.14);
}

.seq-pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 1024px) {
  .seq-pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1760px) {
  .seq-pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.seq-pipeline-grid > .seq-card {
  grid-column: 1 / -1;
}

.seq-pipeline-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(48, 36, 126, 0.08);
  border-left: 3px solid #C7D2FE;
  box-shadow: 0 2px 8px rgba(48, 36, 126, 0.025) !important;
}

.seq-card-meta-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  background: #F4F6FB;
  border: 1px solid rgba(48, 36, 126, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.seq-pipeline-card:hover {
  border-color: rgba(48, 36, 126, 0.22);
  border-left-color: #30247E;
  background: #FFFFFF;
}

/* Modals, Slide-Over Drawer & Login Surface (Light Brand Tint) */
.crm-modal-backdrop,
.seq-drawer-backdrop {
  background: rgba(20, 18, 43, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.crm-modal-card,
.ui-cmdk-card {
  border-radius: 24px;
  border: 1px solid rgba(48, 36, 126, 0.10) !important;
  box-shadow: 0 28px 60px -16px rgba(48, 36, 126, 0.22) !important;
}

.ui-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #F3F6FC;
  border: 1px solid rgba(48, 36, 126, 0.10);
}

.ui-modal-close:hover {
  background: #EEEDFE;
  color: #30247E;
  border-color: #C7D2FE;
}

body.m3-login-shell {
  background:
    radial-gradient(1100px 640px at 14% 12%, rgba(196, 219, 255, 0.65) 0%, transparent 56%),
    radial-gradient(960px 640px at 88% 16%, rgba(246, 212, 239, 0.55) 0%, transparent 54%),
    radial-gradient(960px 640px at 50% 96%, rgba(219, 216, 255, 0.58) 0%, transparent 58%),
    #EDF2FA !important;
}

.m3-login-card {
  border-radius: 26px !important;
  border: 1px solid rgba(48, 36, 126, 0.10) !important;
  box-shadow: 0 24px 56px -18px rgba(48, 36, 126, 0.12) !important;
}

.m3-login-logo {
  background: #EEEDFE !important;
  color: #30247E !important;
  border-color: #D6D2FA !important;
}

#archiveSearchInput {
  padding-left: 2.25rem !important;
}

#homeProjectSearchInput {
  height: 38px !important;
  border-radius: 9999px !important;
  padding-left: 2.1rem !important;
  box-sizing: border-box;
}

.b2-tab-bar {
  height: 38px !important;
  padding: 3px !important;
  align-items: center !important;
  box-sizing: border-box;
}

.b2-tab-btn {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 767px) {
  .m3-omnibox {
    flex-wrap: nowrap !important;
    border-radius: 9999px !important;
    padding: 4px 4px 4px 12px !important;
  }
  .m3-bento-card,
  .m3-bento-card-tonal {
    padding: 18px 16px;
  }
}

/* =========================================================================
   SOBER STANDARDIZED COLOR SYSTEM (Preserves Cool Light PropIntel Tint)
   Zero neon glows, unified sans-serif, restrained executive hierarchy
   ========================================================================= */
.m3-main-canvas {
  background:
    radial-gradient(960px 440px at 8% -6%, rgba(196, 219, 255, 0.28) 0%, transparent 56%),
    radial-gradient(840px 380px at 94% -2%, rgba(246, 212, 239, 0.20) 0%, transparent 54%),
    radial-gradient(840px 420px at 52% 106%, rgba(219, 216, 255, 0.22) 0%, transparent 58%),
    var(--ui-canvas-bg) !important;
}

.btn.btn-primary,
.crm-btn-primary,
.cockpit-btn-primary,
.seq-btn-primary {
  background: #30247E !important;
  color: #FFFFFF !important;
  border: 1px solid #281E6B !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 2px rgba(48, 36, 126, 0.14) !important;
}
.btn.btn-primary:hover,
.crm-btn-primary:hover,
.cockpit-btn-primary:hover,
.seq-btn-primary:hover {
  background: #251B66 !important;
  border-color: #1E1554 !important;
  box-shadow: 0 3px 8px rgba(48, 36, 126, 0.18) !important;
  color: #FFFFFF !important;
}

.btn.btn-secondary,
.crm-btn-accent,
.cockpit-btn-pink,
.seq-btn-pink {
  background: #B83B86 !important;
  color: #FFFFFF !important;
  border: 1px solid #A23275 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 2px rgba(184, 59, 134, 0.16) !important;
}
.cockpit-btn-ghost,
.btn.btn-outline,
.crm-btn-secondary,
.seq-btn-flat {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.btn.btn-secondary:hover,
.crm-btn-accent:hover,
.cockpit-btn-pink:hover,
.seq-btn-pink:hover {
  background: #9F3073 !important;
  border-color: #8C2864 !important;
  box-shadow: 0 3px 8px rgba(184, 59, 134, 0.20) !important;
  color: #FFFFFF !important;
}

.m3-fab-btn {
  background: #30247E !important;
  color: #FFFFFF !important;
  border: 1px solid #261C68 !important;
  box-shadow: 0 2px 6px rgba(48, 36, 126, 0.16) !important;
}
.m3-fab-btn:hover {
  background: #251B66 !important;
  box-shadow: 0 4px 12px rgba(48, 36, 126, 0.22) !important;
}

/* Mensa-inspired subtle vertical active indicator on rail & inner-container alignment */
@media (min-width: 768px) {
  .sidebar {
    margin: 8px 0 !important;
    height: calc(100vh - 16px) !important;
    padding: 12px 0 14px !important;
  }
}
.sidebar .nav-link {
  position: relative;
}
.sidebar .nav-link.active::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 9999px;
  background: #30247E;
}
@media (max-width: 767px) {
  .sidebar .nav-link.active::before {
    display: none;
  }
}

/* =========================================================================
   STRUCTURED RICH TOOLTIP POPOVER (Mensa Standard)
   ========================================================================= */
.ui-tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 1px solid rgba(48, 36, 126, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ui-tip-trigger:hover,
.ui-tip-trigger:focus-visible {
  background: #EEEDFE;
  border-color: rgba(48, 36, 126, 0.36);
  color: #30247E;
  outline: none;
}

.ui-tip-popover {
  position: fixed;
  z-index: 9999;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #FFFFFF;
  border: 1px solid rgba(48, 36, 126, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.05);
  color: #475569;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.ui-tip-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ui-tip-caret {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-left: 1px solid rgba(48, 36, 126, 0.12);
  border-top: 1px solid rgba(48, 36, 126, 0.12);
  transform: rotate(45deg);
  top: -6px;
  left: 50%;
  margin-left: -5px;
}
.ui-tip-popover.is-above .ui-tip-caret {
  top: auto;
  bottom: -6px;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(48, 36, 126, 0.12);
  border-bottom: 1px solid rgba(48, 36, 126, 0.12);
}
.ui-tip-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #30247E;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ui-tip-desc {
  color: #475569;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}
.ui-tip-divider {
  height: 1px;
  background: #E8EDF5;
  margin: 12px 0;
}
.ui-tip-dashed {
  height: 0;
  border-top: 1px dashed #DCE3EE;
  margin: 10px 0;
}
.ui-tip-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.48;
  color: #475569;
}
.ui-tip-row-icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #30247E;
}
.ui-tip-row-icon.is-muted {
  color: #64748B;
}
.ui-tip-usage-label {
  font-weight: 700;
  color: #30247E;
}
.ui-tip-source-label {
  font-weight: 700;
  color: #1E293B;
}

/* =========================================================================
   CUSTOM SEARCHABLE DROPDOWN (Replaces Horizontal Scrollable Pill Lists)
   ========================================================================= */
.ui-dropdown {
  position: relative;
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
}
.ui-dropdown.is-compact {
  min-width: 148px;
}
.ui-dropdown.is-full {
  width: 100%;
  min-width: 0;
}
.ui-dropdown-trigger {
  width: 100%;
  min-height: 36px;
  padding: 6px 12px 6px 14px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid rgba(48, 36, 126, 0.14);
  color: #1E293B;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  text-align: left;
}
.ui-dropdown-trigger:hover {
  border-color: rgba(48, 36, 126, 0.30);
  background: #FAFBFD;
}
.ui-dropdown.is-open .ui-dropdown-trigger {
  border-color: #30247E;
  box-shadow: 0 0 0 3px rgba(48, 36, 126, 0.10);
}
.ui-dropdown-trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-dropdown-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #30247E;
  flex-shrink: 0;
}
.ui-dropdown-chevron {
  width: 14px;
  height: 14px;
  color: #64748B;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.ui-dropdown.is-open .ui-dropdown-chevron {
  transform: rotate(180deg);
  color: #30247E;
}
.ui-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(380px, calc(100vw - 32px));
  background: #FFFFFF;
  border: 1px solid rgba(48, 36, 126, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 6px;
  z-index: 80;
  display: none;
}
.ui-dropdown.is-right .ui-dropdown-menu {
  left: auto;
  right: 0;
}
.ui-dropdown.is-open .ui-dropdown-menu {
  display: block;
}
.ui-dropdown-search-wrap {
  padding: 4px 4px 6px;
  border-bottom: 1px solid #EEF2F7;
  margin-bottom: 4px;
}
.ui-dropdown-search {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 12px;
  color: #0F172A;
  outline: none;
}
.ui-dropdown-search:focus {
  border-color: #30247E;
  background: #FFFFFF;
}
.ui-dropdown-list {
  max-height: 256px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ui-dropdown-option {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #334155;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.ui-dropdown-option:hover {
  background: #F4F6FB;
  color: #0F172A;
}
.ui-dropdown-option.is-selected {
  background: #EEEDFE;
  color: #30247E;
  font-weight: 700;
}
.ui-dropdown-option-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-dropdown-check {
  width: 14px;
  height: 14px;
  color: #30247E;
  flex-shrink: 0;
}
.ui-dropdown-empty {
  padding: 12px 10px;
  font-size: 12px;
  color: #64748B;
  text-align: center;
}

/* =========================================================================
   COMPACT HIERARCHICAL SIDEBAR (Mensa Pattern — Aligned with Inner Canvas)
   ========================================================================= */
@media (min-width: 768px) {
  .m3-app-shell {
    grid-template-columns: 244px minmax(0, 1fr) !important;
    transition: grid-template-columns 0.2s ease;
  }
  .m3-app-shell.is-sidebar-collapsed {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  .sidebar.sb-hierarchical {
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 8px 8px !important;
    height: calc(100vh - 16px) !important;
    padding: 14px 12px 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    background: transparent !important;
    overflow: hidden;
  }
  .sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 4px;
    flex-shrink: 0;
  }
  .sb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
  }
  .sb-brand-circle {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid rgba(48, 36, 126, 0.12);
    color: #30247E;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(48, 36, 126, 0.05);
  }
  .sb-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .sb-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.14s ease, color 0.14s ease;
  }
  .sb-collapse-btn:hover {
    background: rgba(48, 36, 126, 0.08);
    color: #30247E;
  }
  .sb-search-btn {
    width: 100%;
    height: 36px;
    padding: 0 8px 0 12px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid rgba(48, 36, 126, 0.10);
    box-shadow: 0 1px 2px rgba(48, 36, 126, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .sb-search-btn:hover {
    border-color: rgba(48, 36, 126, 0.24);
  }
  .sb-search-placeholder {
    font-size: 12.5px;
    color: #64748B;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sb-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
  }
  .sb-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .sb-group-toggle {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
  }
  .sb-group-toggle:hover {
    background: rgba(48, 36, 126, 0.05);
    color: #0F172A;
  }
  .sb-group-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  .sb-group-icon {
    width: 16px;
    height: 16px;
    color: #64748B;
    flex-shrink: 0;
  }
  .sb-group-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sb-chevron {
    width: 13px;
    height: 13px;
    color: #94A3B8;
    flex-shrink: 0;
    transition: transform 0.16s ease;
  }
  .sb-group.is-collapsed .sb-chevron {
    transform: rotate(-90deg);
  }
  .sb-group.is-collapsed .sb-group-list {
    display: none;
  }
  .sb-group-list {
    list-style: none;
    margin: 2px 0 4px 15px;
    padding: 0 0 0 11px;
    border-left: 1px solid rgba(48, 36, 126, 0.11);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .sidebar.sb-hierarchical .sb-group-list .nav-link {
    width: 100%;
    min-height: 33px;
    padding: 5px 10px 5px 12px !important;
    border-radius: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left;
    background: transparent;
    color: #475569;
    font-size: 12.5px;
    font-weight: 500;
    transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
  }
  .sidebar.sb-hierarchical .sb-group-list .nav-link .nav-icon {
    display: none !important;
  }
  .sidebar.sb-hierarchical .sb-group-list .nav-link .nav-label {
    font-size: 12.5px !important;
    font-weight: inherit !important;
    color: inherit !important;
    text-align: left !important;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidebar.sb-hierarchical .sb-group-list .nav-link:hover {
    background: rgba(48, 36, 126, 0.06) !important;
    color: #0F172A !important;
  }
  .sidebar.sb-hierarchical .sb-group-list .nav-link.active {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    padding-left: 16px !important;
    box-shadow: 0 2px 6px rgba(48, 36, 126, 0.08), 0 0 0 1px rgba(48, 36, 126, 0.06) !important;
  }
  .sidebar.sb-hierarchical .sb-group-list .nav-link.active::before {
    left: 7px !important;
    width: 3px !important;
    height: 15px !important;
    background: #30247E !important;
  }
  .sb-pill-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #E9EBF5;
    color: #30247E;
    flex-shrink: 0;
  }
  .sb-footer {
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(48, 36, 126, 0.09);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .sidebar.sb-hierarchical .sb-footer-link {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
  }
  .sidebar.sb-hierarchical .sb-footer-link .nav-icon {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748B !important;
  }
  .sidebar.sb-hierarchical .sb-footer-link .nav-label {
    font-size: 12.5px !important;
    font-weight: inherit !important;
    color: inherit !important;
  }
  .sidebar.sb-hierarchical .sb-footer-link:hover {
    background: rgba(48, 36, 126, 0.06) !important;
    color: #0F172A !important;
  }
  .sidebar.sb-hierarchical .sb-footer-link.active {
    background: #FFFFFF !important;
    color: #30247E !important;
    box-shadow: 0 1px 4px rgba(48, 36, 126, 0.08), 0 0 0 1px rgba(48, 36, 126, 0.06) !important;
  }
  .sidebar.sb-hierarchical .sb-footer-link.active::before {
    display: none;
  }
  .sidebar.sb-hierarchical .sb-logout-link:hover {
    color: #B83B86 !important;
  }

  /* Collapsed Rail State (68px) */
  .m3-app-shell.is-sidebar-collapsed .sb-brand-name,
  .m3-app-shell.is-sidebar-collapsed .sb-search-placeholder,
  .m3-app-shell.is-sidebar-collapsed .sb-search-btn .ui-cmdk-kbd,
  .m3-app-shell.is-sidebar-collapsed .sb-group-toggle,
  .m3-app-shell.is-sidebar-collapsed .sb-pill-badge,
  .m3-app-shell.is-sidebar-collapsed .sidebar.sb-hierarchical .nav-label {
    display: none !important;
  }
  .m3-app-shell.is-sidebar-collapsed .sb-header {
    flex-direction: column;
    gap: 6px;
  }
  .m3-app-shell.is-sidebar-collapsed .sb-search-btn {
    justify-content: center;
    padding: 0;
    width: 38px;
    margin: 0 auto;
  }
  .m3-app-shell.is-sidebar-collapsed .sb-group-list {
    margin: 0;
    padding: 0;
    border-left: none;
    display: flex !important;
    align-items: center;
  }
  .m3-app-shell.is-sidebar-collapsed .sidebar.sb-hierarchical .sb-group-list .nav-link,
  .m3-app-shell.is-sidebar-collapsed .sidebar.sb-hierarchical .sb-footer-link {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    justify-content: center !important;
    margin: 0 auto;
  }
  .m3-app-shell.is-sidebar-collapsed .sidebar.sb-hierarchical .sb-group-list .nav-link .nav-icon {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .m3-app-shell.is-sidebar-collapsed .sidebar.sb-hierarchical .sb-group-list .nav-link.active::before {
    display: none;
  }
}

/* Mobile Bottom Nav Compatibility for Hierarchical Sidebar */
@media (max-width: 767px) {
  .sb-header,
  .sb-search-btn,
  .sb-group-toggle,
  .sb-pill-badge,
  .sb-footer {
    display: none !important;
  }
  .sidebar.sb-hierarchical .sb-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    width: 100%;
    overflow: hidden;
  }
  .sidebar.sb-hierarchical .sb-group,
  .sidebar.sb-hierarchical .sb-group-list {
    display: contents !important;
  }
  .sidebar.sb-hierarchical .sb-group.ui-nav-secondary-item,
  .sidebar.sb-hierarchical .sb-group-list li.ui-nav-secondary-item {
    display: none !important;
  }
  .sidebar.sb-hierarchical .nav-label {
    font-size: 10px !important;
  }
}

/* =========================================================================
   VISUAL CONCIERGE AI CHAT & A2UI CARDS (Structured, Executive, Zero Raw MD)
   ========================================================================= */
.lg-chat-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(48, 36, 126, 0.07);
}
.lg-chat-meta-bar .lg-chat-sources {
  margin-bottom: 0 !important;
}
.lg-llm-tag {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  background: #F4F6FB;
  border: 1px solid rgba(48, 36, 126, 0.08);
  border-radius: 9999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.lg-chat-rich {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-chat-rich .lg-chat-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: #1E293B;
}
.lg-chat-rich strong {
  color: #0F172A;
  font-weight: 700;
}
.lg-chat-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 767px) {
  .lg-chat-sections-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.lg-chat-section-card {
  background: #F6F8FD;
  border: 1px solid rgba(48, 36, 126, 0.08);
  border-left: 3px solid #30247E;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-chat-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #30247E;
  letter-spacing: -0.01em;
}
.lg-chat-section-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
}
.lg-chat-section-list,
.lg-chat-bullets {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.48;
  color: #334155;
}
.lg-chat-outro {
  margin: 0;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
}
.lg-chat-a2ui-mount .lg-a2ui-card {
  border-radius: 18px !important;
  border: 1px solid rgba(48, 36, 126, 0.10) !important;
  background: #FFFFFF !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 10px rgba(48, 36, 126, 0.03) !important;
}
.lg-chat-a2ui-mount .lg-a2ui-metric {
  background: #F6F8FD !important;
  border: 1px solid rgba(48, 36, 126, 0.07) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}
.lg-chat-a2ui-mount .lg-a2ui-metric-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748B !important;
}
.lg-chat-a2ui-mount .lg-a2ui-metric-value {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #30247E !important;
  margin-top: 2px;
}
.lg-a2ui-btn.is-success {
  background: #0F766E !important;
  border-color: #0D645D !important;
  color: #FFFFFF !important;
}
.lg-a2ui-btn.is-primary {
  background: #30247E !important;
  border-color: #261C68 !important;
  color: #FFFFFF !important;
}
.lg-a2ui-btn.is-emerald {
  background: #0F766E !important;
  border-color: #0D645D !important;
  color: #FFFFFF !important;
}

/* Rich A2UI v0.9 Components: Metric Sublabels, ProgressBars, EntityList, StatusStrip */
.lg-a2ui-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.lg-a2ui-metric-sub {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}
.lg-a2ui-metric.is-pink .lg-a2ui-metric-value {
  color: #B83B86 !important;
}
.lg-a2ui-metric.is-emerald .lg-a2ui-metric-value {
  color: #0F766E !important;
}
.lg-a2ui-section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-a2ui-section-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.01em;
}
.lg-a2ui-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 767px) {
  .lg-a2ui-progress-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.lg-a2ui-progress-card {
  background: #F6F8FD;
  border: 1px solid rgba(48, 36, 126, 0.07);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lg-a2ui-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.lg-a2ui-progress-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.lg-a2ui-progress-stat {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}
.lg-a2ui-progress-track {
  height: 6px;
  border-radius: 9999px;
  background: #E2E7F4;
  overflow: hidden;
}
.lg-a2ui-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.35s ease;
}
.lg-a2ui-progress-fill.is-indigo { background: #30247E; }
.lg-a2ui-progress-fill.is-emerald { background: #0F766E; }
.lg-a2ui-progress-fill.is-pink { background: #B83B86; }
.lg-a2ui-progress-foot {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 500;
}
.lg-a2ui-entity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-a2ui-entity-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  background: #FAFBFD;
  border: 1px solid rgba(48, 36, 126, 0.08);
  text-align: left;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.lg-a2ui-entity-row.is-clickable {
  cursor: pointer;
}
.lg-a2ui-entity-row.is-clickable:hover {
  background: #FFFFFF;
  border-color: rgba(48, 36, 126, 0.24);
}
.lg-a2ui-entity-main {
  min-width: 0;
  flex: 1;
}
.lg-a2ui-entity-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-a2ui-entity-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-a2ui-entity-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lg-a2ui-entity-metric {
  font-size: 11px;
  font-weight: 700;
  color: #30247E;
}
.lg-a2ui-entity-arrow {
  font-size: 12px;
  color: #94A3B8;
}
.lg-a2ui-entity-row.is-clickable:hover .lg-a2ui-entity-arrow {
  color: #30247E;
}
.lg-a2ui-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lg-a2ui-status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: #F6F8FD;
  border: 1px solid rgba(48, 36, 126, 0.08);
  font-size: 11.5px;
  color: #475569;
}
.lg-a2ui-status-val {
  color: #0F172A;
  font-weight: 700;
}
.lg-a2ui-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.lg-a2ui-status-dot.is-ok { background: #10B981; }
.lg-a2ui-status-dot.is-indigo { background: #30247E; }
.lg-a2ui-status-dot.is-warn { background: #D97706; }
.lg-a2ui-status-dot.is-neutral { background: #94A3B8; }

/* =========================================================================
   STANDARDIZED SETTINGS UI (Aligned with Bento Cards, 3-Col Grids & Dropdowns)
   ========================================================================= */
#view-settings .lg-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
#view-settings .lg-settings-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(48, 36, 126, 0.08);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(48, 36, 126, 0.025), 0 12px 28px -16px rgba(48, 36, 126, 0.05);
}
#view-settings .lg-preset-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(48, 36, 126, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
}
#view-settings .lg-preset-card:hover {
  border-color: rgba(48, 36, 126, 0.24);
}
#view-settings .lg-preset-card.is-active {
  border-color: #30247E;
  background: #F4F3FE;
  box-shadow: 0 0 0 2px rgba(48, 36, 126, 0.12);
}
#view-settings .lg-settings-input {
  border-radius: 12px;
  border: 1px solid rgba(48, 36, 126, 0.13);
  padding: 8px 12px;
  font-size: 12.5px;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#view-settings .lg-settings-input:focus {
  border-color: #30247E;
  box-shadow: 0 0 0 3px rgba(48, 36, 126, 0.09);
  outline: none;
}
#view-settings #toolsInventorySearch {
  height: 38px;
  border-radius: 9999px;
  padding: 0 16px;
  max-width: 300px;
}
#view-settings .lg-tool-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(48, 36, 126, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
}
#view-settings .grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#view-settings .grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 767px) {
  #view-settings .grid-cols-3,
  #view-settings .grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
   STANDARDIZED SYSTÈME VIEWS (Gouvernance, Agents, Sources & Mémoire)
   ========================================================================= */
.sys-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1023px) {
  .sys-kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .sys-kpi-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sys-pill-search {
  height: 38px !important;
  width: 240px;
  padding: 0 14px 0 34px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(48, 36, 126, 0.13) !important;
  background: #FFFFFF !important;
  font-size: 12.5px !important;
  color: #0F172A !important;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sys-pill-search:focus {
  border-color: #30247E !important;
  box-shadow: 0 0 0 3px rgba(48, 36, 126, 0.09) !important;
}
#view-governance .m3-bento-card.overflow-hidden {
  overflow: visible !important;
}
#view-governance .m3-bento-card.overflow-hidden .overflow-x-auto {
  overflow: visible !important;
}
