/* ── Fonts ─────────────────────────────────────────────────────────────────── */
/* geist-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* geist-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* geist-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-vietnamese-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* geist-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* geist-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-mono-cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* geist-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-mono-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* geist-mono-symbols2-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-mono-symbols2-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
}
/* geist-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-mono-vietnamese-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* geist-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* geist-mono-latin-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ── Global design tokens ─────────────────────────────────────────────────────
   The shell owns :root — all MFEs rendered inside it inherit these variables
   via CSS cascade without needing their own import.
   ──────────────────────────────────────────────────────────────────────────── */
/* ============================================================
   LATTICE DESIGN SYSTEM — TOKENS
   Primary  : #FF8600 (Orange)
   Neutrals : Warm Espresso & Cream — "Espresso & Cream" palette
   ============================================================

   Light theme (reference):
     --bg        #FAF7F5   --surface   #FFFFFF
     --surface2  #FAF7F5   --surface3  #F1ECE7
     --text      #2D211A   --muted     #6B5A4E
     --border    #ECE3DC

   Dark theme (reference):
     --bg        #1A1310   --surface   #281E19
     --surface2  #221813   --surface3  #33271F
     --text      #F7F2EE   --muted     #B8A99E
     --border    #3A2C24

   Brand:          #FF8600
   Brand-fg:       #1A1310  (espresso on orange — WCAG AA)
   Brand-text:     #C2410C  light / #FF9A2E dark
   ============================================================ */
:root {
  /* Native controls (date picker popup, scrollbars, etc.) can't be styled
     with regular CSS — this tells the browser which built-in palette to
     render them in, so the calendar popup matches the active theme instead
     of always rendering white. */
  color-scheme: light;

  /* ── TYPOGRAPHY SCALE ────────────────────────────────────
     Centralised font-size tokens — use these everywhere.
     No hardcoded rem values in component CSS.
     ─────────────── px ref ──────────────────────────────── */
  --text-2xs:   0.625rem;    /*  10px — section labels, timestamps  */
  --text-xs:    0.6875rem;   /*  11px — meta labels, badge text     */
  --text-sm:    0.75rem;     /*  12px — captions, helper/error text */
  --text-base:  0.8125rem;   /*  13px — nav items, secondary UI     */
  --text-md:    0.875rem;    /*  14px — body text, inputs, buttons  */
  --text-lg:    1rem;        /*  16px — card titles, section titles */
  --text-xl:    1.125rem;    /*  18px — sub-headings                */
  --text-2xl:   1.5rem;      /*  24px — page section headings       */
  --text-3xl:   2rem;        /*  32px — hero / page titles          */

  /* ── FONT WEIGHTS ────────────────────────────────────────*/
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* ── LINE HEIGHTS ────────────────────────────────────────*/
  --leading-tight:   1.25;
  --leading-snug:    1.375;
  --leading-normal:  1.5;
  --leading-relaxed: 1.625;


  /* ── TYPOGRAPHY ─────────────────────────────────────────*/
  --font-sans:    'Geist Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ── BRAND ───────────────────────────────────────────────*/
  --color-primary:            #FF8600;
  --color-primary-dark:       #E67800;
  --color-primary-darker:     #CC6A00;
  --color-primary-medium:     #FFB45E;
  --color-primary-light:      #FFF0D6;
  --color-primary-alpha:      rgba(255, 134, 0, 0.12);

  /* Brand-foreground: espresso on orange — WCAG AA contrast */
  --color-brand-foreground:   #1A1310;
  --color-brand-soft:         color-mix(in oklab, #FF8600 14%, transparent);
  --color-brand-text:         #C2410C;   /* orange-700 — readable brand text in light */

  /* ── SEMANTIC — exact reference values ───────────────────*/
  --color-success:              #10B981;
  --color-success-foreground:   #FFFFFF;
  --color-success-light:        color-mix(in oklab, #10B981 14%, transparent);
  --color-warning:              #EAB308;
  --color-warning-foreground:   #2D211A;
  --color-warning-soft:         color-mix(in oklab, #EAB308 16%, transparent);
  --color-warning-light:        color-mix(in oklab, #EAB308 16%, transparent);
  --color-danger:               #DC2626;
  --color-danger-foreground:    #FFFFFF;
  --color-danger-light:         color-mix(in oklab, #DC2626 14%, transparent);
  --color-info:                 #2563EB;
  --color-info-light:           #DBEAFE;

  /* ── AI FEATURE SURFACE & GRADIENT (light) ──────────────*/
  --color-ai-surface:            #F6F0FC;
  --color-ai-surface-foreground: #2D211A;
  --ai-ring: #B8A6FF;
  --ai-gradient: linear-gradient(135deg, #FF8600 0%, #DCCFFF 50%, #A5DBFF 100%);
  --ai-gradient-soft: linear-gradient(
    135deg,
    color-mix(in oklab, #FF8600 14%, transparent) 0%,
    color-mix(in oklab, #DCCFFF 40%, transparent) 50%,
    color-mix(in oklab, #A5DBFF 40%, transparent) 100%
  );
  --ai-gradient-text: linear-gradient(135deg, #C2410C 0%, #7C3AED 50%, #0284C7 100%);

  /* ── WARM ESPRESSO NEUTRALS — light theme ────────────────*/
  --color-white:           #FFFFFF;
  --color-neutral-50:      #FAF7F5;   /* bg */
  --color-neutral-100:     #FAF7F5;   /* surface-2 (same as bg) */
  --color-neutral-200:     #F1ECE7;   /* surface-3 */
  --color-neutral-300:     #ECE3DC;   /* border */
  --color-neutral-400:     #B8A99E;
  --color-neutral-500:     #6B5A4E;   /* muted */
  --color-neutral-700:     #4B3A2E;
  --color-neutral-900:     #2D211A;   /* text / foreground */

  /* ── SURFACES ────────────────────────────────────────────*/
  --color-surface:         #FFFFFF;
  --color-surface-2:       #FAF7F5;
  --color-surface-3:       #F1ECE7;
  --color-bg:              #FAF7F5;

  /* ── BORDERS ─────────────────────────────────────────────*/
  --color-border:          #ECE3DC;
  --color-border-strong:   #B8A99E;

  /* ── TEXT ────────────────────────────────────────────────*/
  --color-text:            #2D211A;
  --color-text-muted:      #6B5A4E;
  --color-text-disabled:   #B8A99E;
  --color-text-inverse:    #FFFFFF;

  /* ── INTERACTION ─────────────────────────────────────────*/
  --color-focus-ring:      rgba(255, 134, 0, 0.25);

  --shadow-xs: 0 1px 2px   rgba(26, 19, 16, 0.04);
  --shadow-sm: 0 2px 6px   rgba(26, 19, 16, 0.06);
  --shadow-md: 0 6px 16px  rgba(26, 19, 16, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 19, 16, 0.10);

  /* Elegant card shadow from reference */
  --shadow-elegant: 0 4px 6px -1px rgba(26,19,16,.07), 0 2px 4px -2px rgba(26,19,16,.05);

  /* ── RADIUS — matches reference: --radius=0.75rem ────────*/
  --radius-xs: 4px;
  --radius-sm: 8px;    /* calc(0.75rem - 4px) */
  --radius-md: 10px;   /* calc(0.75rem - 2px) */
  --radius-lg: 12px;   /* 0.75rem */
  --radius-xl: 16px;   /* calc(0.75rem + 4px) */
  --radius-2xl: 20px;

  /* ── TRANSITIONS ─────────────────────────────────────────*/
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;

  /* ── PIPELINE STAGE COLORS ───────────────────────────────*/
  --color-stage-prospecting:    #6366F1;
  --color-stage-qualification:  #8B5CF6;
  --color-stage-needs-analysis: #3B82F6;
  --color-stage-value-prop:     #0EA5E9;
  --color-stage-decision:       #14B8A6;
  --color-stage-proposal:       #F59E0B;
  --color-stage-negotiation:    #F97316;
  --color-stage-won:            var(--color-success);
  --color-stage-lost:           var(--color-danger);

  /* ── CHART SERIES — matches reference, identical in light/dark ──*/
  --chart-1: #FF8600;
  --chart-2: #0D9488;
  --chart-3: #0284C7;
  --chart-4: #7C3AED;
  --chart-5: #10B981;
  --chart-6: #D97706;
  --chart-7: #C2410C;
  --chart-8: #6366F1;

  /* ── COMPONENT TOKENS ────────────────────────────────────*/

  /* Topbar */
  --topbar-bg:             var(--color-surface);
  --topbar-border:         var(--color-border);
  --topbar-height:         64px;

  /* Sidebar */
  --sidebar-bg:            var(--color-surface);
  --sidebar-border:        var(--color-border);
  --sidebar-width:         240px;
  --sidebar-item-hover:    var(--color-surface-2);
  --sidebar-active-bg:     var(--color-brand-soft);
  --sidebar-active-text:   var(--color-brand-text);
  --sidebar-active-border: var(--color-primary);

  /* Card */
  --card-bg:               var(--color-surface);
  --card-border:           var(--color-border);
  --card-shadow:           var(--shadow-elegant);
  --card-radius:           var(--radius-lg);

  /* Button */
  --btn-primary-bg:        var(--color-primary);
  --btn-primary-hover:     var(--color-primary-dark);
  --btn-primary-text:      #1A1310;   /* espresso on orange — WCAG AA */
  --btn-secondary-bg:      var(--color-surface-3);
  --btn-secondary-border:  var(--color-border);
  --btn-secondary-text:    var(--color-text);

  /* Input — deliberately distinct from --color-border/-surface-2 so fields
     read as crisp cutouts against a card, not a flat wash the same tone
     as the page background. */
  --input-bg:              var(--color-surface);
  --input-border:          #D9CCC0;
  --input-focus-border:    var(--color-primary);
  --input-focus-ring:      var(--color-primary);
  --input-placeholder:     var(--color-text-disabled);

  /* Badge */
  --badge-bg:              var(--color-primary-alpha);
  --badge-text:            var(--color-brand-text);

  /* Table */
  --table-header-color:    var(--color-text-muted);
  --table-border:          var(--color-border);

  /* Gradients */
  --gradient-surface:      linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  --gradient-hero:         linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
  --gradient-bar:          linear-gradient(180deg, #FFB45E, #FF8600);
}
/* ============================================================
   DARK THEME  [data-theme="dark"]
   ============================================================ */
[data-theme='dark'] {
  color-scheme: dark;

  /* Neutrals — warm espresso dark */
  --color-neutral-50:      #1A1310;
  --color-neutral-100:     #221813;
  --color-neutral-200:     #33271F;
  --color-neutral-300:     #3A2C24;
  --color-neutral-400:     #8A7A70;
  --color-neutral-500:     #B8A99E;
  --color-neutral-700:     #D4C9C0;
  --color-neutral-900:     #F7F2EE;

  /* Surfaces */
  --color-surface:         #281E19;
  --color-surface-2:       #221813;
  --color-surface-3:       #33271F;
  --color-bg:              #1A1310;
  --color-white:           #281E19;

  /* Borders */
  --color-border:          #3A2C24;
  --color-border-strong:   #8A7A70;

  /* Text */
  --color-text:            #F7F2EE;
  --color-text-muted:      #B8A99E;
  --color-text-disabled:   #8A7A70;
  --color-text-inverse:    #1A1310;

  /* Brand — dark mode adjustments */
  --color-brand-text:      #FF9A2E;
  --color-primary-dark:    #FF9A2E;
  --color-primary-light:   rgba(255, 134, 0, 0.16);
  --color-primary-medium:  rgba(255, 134, 0, 0.32);
  --color-primary-alpha:   rgba(255, 134, 0, 0.18);
  --color-brand-soft:      color-mix(in oklab, #FF8600 18%, transparent);

  /* Badge text in dark */
  --badge-text:            var(--color-brand-text);

  /* Semantic — brightened for dark, matches reference .dark */
  --color-success:              #10B981;
  --color-success-foreground:   #1A1310;
  --color-success-light:        color-mix(in oklab, #10B981 16%, transparent);
  --color-warning:              #EAB308;
  --color-warning-foreground:   #1A1310;
  --color-warning-soft:         color-mix(in oklab, #EAB308 20%, transparent);
  --color-warning-light:        color-mix(in oklab, #EAB308 20%, transparent);
  --color-danger:               #DC2626;
  --color-danger-foreground:    #FFFFFF;
  --color-danger-light:         color-mix(in oklab, #DC2626 16%, transparent);
  --color-info:                 #60A5FA;
  --color-info-light:           #0F213F;

  /* Shadows — deeper on dark */
  --shadow-xs: 0 1px 2px   rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 2px 6px   rgba(0, 0, 0, 0.30);
  --shadow-md: 0 8px 16px  rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.50);
  --shadow-elegant: 0 4px 6px -1px rgba(0,0,0,.28), 0 2px 4px -2px rgba(0,0,0,.20);

  /* AI feature surface & gradient (dark) */
  --color-ai-surface:            #1D2026;
  --color-ai-surface-foreground: #F7F2EE;
  --ai-ring: #B8A6FF;
  --ai-gradient: linear-gradient(135deg, #FF8600 0%, #B8A6FF 50%, #6FB7FF 100%);
  --ai-gradient-soft: linear-gradient(
    135deg,
    color-mix(in oklab, #FF8600 20%, transparent) 0%,
    color-mix(in oklab, #B8A6FF 28%, transparent) 50%,
    color-mix(in oklab, #6FB7FF 28%, transparent) 100%
  );
  --ai-gradient-text: linear-gradient(135deg, #FF9A2E 0%, #C9B8FF 50%, #8FC9FF 100%);

  /* Input override — same rationale as light: distinct from page/card wash */
  --input-bg:              var(--color-surface);
  --input-border:          #5A483C;

  /* Gradients */
  --gradient-surface:      linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  --gradient-hero:         linear-gradient(135deg, var(--color-surface-2), var(--color-surface));
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  background: var(--color-neutral-50);
  color: var(--color-neutral-900);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
/* ── Sonner toast skin ────────────────────────────────────────────────────── */
@keyframes toast-fade-in {
  0%   { opacity: 0; filter: blur(2px); }
  100% { opacity: 1; filter: blur(0); }
}
@keyframes bell-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0   color-mix(in oklab, var(--color-primary) 55%, transparent); }
  50%  { transform: scale(1.18); box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-primary)  0%, transparent); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0   transparent; }
}
.animate-bell-pulse {
  animation: bell-pulse 700ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .animate-bell-pulse { animation: none !important; }
}
@keyframes toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
/*
 * Sonner never opts its toasts into pointer events — its only such rule is
 * `[data-sonner-toast][data-visible='false'] { pointer-events: none }` — so a
 * toast inherits whatever <body> has. A modal Radix dialog sets
 * `pointer-events: none` on <body>, which left the close button inert while a
 * Sheet/Dialog was open: the toast could only ever time out. Same fix as the
 * notification banner (see AppNotificationBanner.module.css). The hidden-toast
 * rule above still wins on specificity (0,2,0 vs 0,1,0), so dismissed toasts
 * stay non-interactive while they animate out.
 */
[data-sonner-toast] {
  pointer-events: auto;
}
[data-sonner-toast][data-styled="true"].lattice-toast {
  width: var(--width);
  max-width: calc(100vw - 2rem);
  background: color-mix(in oklab, var(--color-surface) 90%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  color: var(--color-neutral-900);
  border: 1px solid color-mix(in oklab, var(--color-border) 80%, transparent);
  border-radius: var(--radius-lg, 12px);
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in oklab, var(--color-neutral-900) 4%, transparent);
  padding: 1rem;
  padding-right: 3rem;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}
@supports (backdrop-filter: blur(1px)) {
  [data-sonner-toast][data-styled="true"].lattice-toast {
    background: color-mix(in oklab, var(--color-surface) 75%, transparent);
  }
}
[data-sonner-toast][data-styled="true"].lattice-toast > * {
  animation: toast-fade-in 240ms ease-out both;
}
[data-sonner-toast][data-styled="true"].lattice-toast [data-title] {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-neutral-900);
}
[data-sonner-toast][data-styled="true"].lattice-toast [data-description] {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-neutral-500);
  margin-top: 0.125rem;
}
[data-sonner-toast][data-styled="true"].lattice-toast [data-content] {
  min-width: 0;
  flex: 1 1 auto;
}
[data-sonner-toast][data-styled="true"].lattice-toast [data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  margin: 0;
  border-radius: var(--radius-md, 8px);
  flex-shrink: 0;
}
[data-sonner-toast][data-styled="true"].lattice-toast [data-icon] svg {
  height: 18px;
  width: 18px;
  margin: 0;
}
[data-sonner-toast][data-styled="true"].lattice-toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-neutral-500);
  opacity: 0.55;
  transform-origin: left center;
  animation: toast-progress 4500ms linear forwards;
  pointer-events: none;
}
.lattice-toast:hover::after,
.lattice-toast:focus-within::after {
  animation-play-state: paused;
}
[data-sonner-toast][data-styled="true"] [data-close-button].lattice-toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  left: auto;
  transform: none;
  height: 2rem;
  width: 2rem;
  padding: 0;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-neutral-900);
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}
[data-sonner-toast][data-styled="true"] [data-close-button].lattice-toast-close::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
[data-sonner-toast][data-styled="true"] [data-close-button].lattice-toast-close:hover {
  background: var(--color-surface-3);
  border-color: var(--color-border-strong);
  color: var(--color-neutral-900);
}
[data-theme='dark'] [data-sonner-toast][data-styled="true"] [data-close-button].lattice-toast-close:hover {
  background: color-mix(in oklab, var(--color-primary) 20%, var(--color-surface));
  border-color: color-mix(in oklab, var(--color-primary) 45%, var(--color-border));
  color: var(--color-brand-foreground);
}
[data-sonner-toast][data-styled="true"] [data-close-button].lattice-toast-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-neutral-50),
    0 0 0 4px var(--color-primary);
}
[data-sonner-toast][data-styled="true"] [data-close-button].lattice-toast-close svg {
  height: 14px;
  width: 14px;
  stroke-width: 2.25;
  opacity: 1;
  color: currentColor;
}
/* ── Toast variants ──────────────────────────────────────────────────────── */
[data-sonner-toast][data-type="success"].lattice-toast {
  border-color: color-mix(in oklab, var(--color-success) 30%, var(--color-border));
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in oklab, var(--color-success) 18%, transparent),
    0 24px 60px -24px color-mix(in oklab, var(--color-success) 45%, transparent);
}
[data-sonner-toast][data-type="success"].lattice-toast::after {
  background: var(--color-success);
  opacity: 0.85;
}
[data-sonner-toast][data-type="success"] .lattice-toast-icon {
  background: color-mix(in oklab, var(--color-success) 14%, transparent);
  color: var(--color-success);
}
[data-sonner-toast][data-type="info"].lattice-toast {
  border-color: color-mix(in oklab, var(--color-primary) 32%, var(--color-border));
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in oklab, var(--color-primary) 22%, transparent),
    0 24px 60px -24px color-mix(in oklab, var(--color-primary) 50%, transparent);
}
[data-sonner-toast][data-type="info"].lattice-toast::after {
  background: var(--color-primary);
  opacity: 0.85;
}
[data-sonner-toast][data-type="info"] .lattice-toast-icon {
  background: color-mix(in oklab, var(--color-primary) 16%, transparent);
  color: var(--color-primary);
}
[data-sonner-toast][data-type="warning"].lattice-toast {
  border-color: color-mix(in oklab, var(--color-warning) 32%, var(--color-border));
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in oklab, var(--color-warning) 22%, transparent),
    0 24px 60px -24px color-mix(in oklab, var(--color-warning) 45%, transparent);
}
[data-sonner-toast][data-type="warning"].lattice-toast::after {
  background: var(--color-warning);
  opacity: 0.9;
}
[data-sonner-toast][data-type="warning"] .lattice-toast-icon {
  background: color-mix(in oklab, var(--color-warning) 18%, transparent);
  color: var(--color-warning);
}
[data-sonner-toast][data-type="error"].lattice-toast {
  border-color: color-mix(in oklab, var(--color-danger) 32%, var(--color-border));
  box-shadow:
    0 18px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in oklab, var(--color-danger) 24%, transparent),
    0 24px 60px -24px color-mix(in oklab, var(--color-danger) 50%, transparent);
}
[data-sonner-toast][data-type="error"].lattice-toast::after {
  background: var(--color-danger);
  opacity: 0.9;
}
[data-sonner-toast][data-type="error"] .lattice-toast-icon {
  background: color-mix(in oklab, var(--color-danger) 16%, transparent);
  color: var(--color-danger);
}
[data-sonner-toast] .lattice-toast-action {
  height: 28px;
  border-radius: var(--radius-md, 8px);
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-brand-foreground);
  border: none;
  cursor: pointer;
}
[data-sonner-toast] .lattice-toast-action:hover {
  background: var(--color-primary-dark, var(--color-primary));
}
[data-sonner-toast] .lattice-toast-cancel {
  height: 28px;
  border-radius: var(--radius-md, 8px);
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-surface-2);
  color: var(--color-neutral-900);
  border: none;
  cursor: pointer;
}
[data-sonner-toast] .lattice-toast-cancel:hover {
  background: var(--color-surface-3);
}
@media (prefers-reduced-motion: reduce) {
  [data-sonner-toast][data-styled="true"].lattice-toast > *,
  .lattice-toast::after {
    animation: none !important;
  }

  [data-sonner-toast][data-styled="true"].lattice-toast > * {
    opacity: 1 !important;
    filter: none !important;
  }

  .lattice-toast::after {
    transform: scaleX(0) !important;
  }
}


/*# sourceMappingURL=styles.css.map*/