/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/colors_and_type.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   Nexstack Design System — Colors & Type
   Sharp & editorial. Bold type, tight grids. B&W with functional red.
   ========================================================================== */

/* Geist — modern geometric sans, loaded from Google Fonts.
   The @import is fine for HTML files that import this CSS directly.
   For maximum performance, individual HTML entrypoints can ALSO add:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   FLAGGED: If you have licensed Geist files, drop TTF/WOFF2 in fonts/ and
   replace the @import below with @font-face blocks pointing at them. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   COLOR TOKENS — Light theme (default)
   ========================================================================== */
:root {
  /* Surfaces — paper to ink */
  --bg-0: #FFFFFF;          /* page */
  --bg-1: #FAFAFA;          /* subtle surface (sidebar, rail) */
  --bg-2: #F4F4F4;          /* hover, muted fills */
  --bg-3: #EBEBEB;          /* pressed, stronger muted */

  /* Foreground — ink */
  --fg-0: #0A0A0A;          /* primary text, near-black */
  --fg-1: #262626;          /* secondary text */
  --fg-2: #525252;          /* tertiary, meta */
  --fg-3: #A3A3A3;          /* disabled, placeholder */
  --fg-4: #D4D4D4;          /* faintest text */

  /* Borders */
  --border-0: #E5E5E5;      /* default hairline */
  --border-1: #D4D4D4;      /* stronger */
  --border-2: #A3A3A3;      /* focus-adjacent */

  /* Brand / functional RED — #FF3B30 family */
  --red-50:  #FFF1F0;
  --red-100: #FFDEDB;
  --red-200: #FFB8B2;
  --red-300: #FF8B82;
  --red-400: #FF5C50;
  --red-500: #FF3B30;       /* PRIMARY */
  --red-600: #E5291F;
  --red-700: #B31D15;
  --red-800: #80140F;
  --red-900: #4D0C08;

  /* Semantic — we lean on greys + red. Other semantics are muted. */
  --success: #0A7A3B;
  --success-bg: #E8F5EC;
  --warning: #8A5A00;
  --warning-bg: #FFF4D6;
  --danger: var(--red-600);
  --danger-bg: var(--red-50);
  --info: #1F4FA3;
  --info-bg: #E8EEF9;

  /* Status colors — used in kanban/tasks. Deliberately flat. */
  --status-backlog: #A3A3A3;
  --status-todo: #525252;
  --status-progress: #1F4FA3;
  --status-review: #8A5A00;
  --status-done: #0A7A3B;
  --status-blocked: var(--red-500);

  /* Priority */
  --priority-urgent: var(--red-500);
  --priority-high: var(--red-700);
  --priority-medium: #525252;
  --priority-low: #A3A3A3;

  /* AI accent — red-shifted, distinguishes agent surfaces subtly */
  --ai-tint: #FFF1F0;
  --ai-border: var(--red-200);
  --ai-fg: var(--red-700);

  /* Shadows — editorial means almost none. Hairlines do the work. */
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 3px rgba(255, 59, 48, 0.25);

  /* Radius — subtle 4px */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Spacing scale — 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Type family */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: 'Geist', ui-sans-serif, system-ui, sans-serif;

  /* Type scale — editorial: big jumps between display and body */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 44px;
  --text-5xl: 64px;
  --text-6xl: 88px;

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;

  /* Tracking */
  --track-tight: -0.03em;
  --track-snug: -0.015em;
  --track-normal: 0;
  --track-wide: 0.04em;
  --track-caps: 0.08em;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-med: 200ms;
  --dur-slow: 320ms;
}

/* ==========================================================================
   COLOR TOKENS — Dark theme
   ========================================================================== */
:root[data-theme="dark"],
.theme-dark {
  --bg-0: #0A0A0A;
  --bg-1: #121212;
  --bg-2: #1C1C1C;
  --bg-3: #262626;

  --fg-0: #FAFAFA;
  --fg-1: #E5E5E5;
  --fg-2: #A3A3A3;
  --fg-3: #737373;
  --fg-4: #404040;

  --border-0: #262626;
  --border-1: #333333;
  --border-2: #525252;

  /* Red stays the same — it's the anchor */
  --red-50:  #2A0908;
  --red-100: #4D0C08;
  --red-200: #80140F;
  --red-300: #B31D15;
  --red-400: #E5291F;
  --red-500: #FF3B30;
  --red-600: #FF5C50;
  --red-700: #FF8B82;
  --red-800: #FFB8B2;
  --red-900: #FFDEDB;

  --success: #2ECC71;
  --success-bg: #0D2A18;
  --warning: #E5A83B;
  --warning-bg: #2A1F08;
  --danger: var(--red-500);
  --danger-bg: #2A0908;
  --info: #5B8DEF;
  --info-bg: #0D1A2A;

  --status-backlog: #737373;
  --status-todo: #A3A3A3;
  --status-progress: #5B8DEF;
  --status-review: #E5A83B;
  --status-done: #2ECC71;
  --status-blocked: var(--red-500);

  --priority-urgent: var(--red-500);
  --priority-high: var(--red-400);
  --priority-medium: #A3A3A3;
  --priority-low: #737373;

  --ai-tint: #1A0807;
  --ai-border: #4D0C08;
  --ai-fg: #FF8B82;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-focus: 0 0 0 3px rgba(255, 59, 48, 0.4);
}

/* ==========================================================================
   BASE ELEMENTS
   ========================================================================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   SEMANTIC TYPE — use these classes directly
   ========================================================================== */

/* Display — hero, marketing, big statements. Editorial. */
.t-display {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-tight);
  font-weight: var(--weight-black);
  color: var(--fg-0);
}

.t-display-sm {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-tight);
  font-weight: var(--weight-bold);
  color: var(--fg-0);
}

/* Headings */
.t-h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-snug);
  font-weight: var(--weight-bold);
  color: var(--fg-0);
}

.t-h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-snug);
  font-weight: var(--weight-semibold);
  color: var(--fg-0);
}

.t-h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-snug);
  font-weight: var(--weight-semibold);
  color: var(--fg-0);
}

.t-h4 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  font-weight: var(--weight-semibold);
  color: var(--fg-0);
}

/* Body */
.t-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  color: var(--fg-0);
}

.t-body-lg {
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  color: var(--fg-0);
}

.t-body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-1);
}

/* Labels & meta */
.t-label {
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: var(--weight-medium);
  color: var(--fg-0);
}

.t-meta {
  font-size: var(--text-xs);
  line-height: 1;
  color: var(--fg-2);
  font-weight: var(--weight-regular);
}

/* Eyebrow / kicker — newspaper section marker. Crucial editorial motif. */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--fg-2);
}

/* Monospace — code, IDs, timestamps */
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-1);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.t-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-2);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs);
  color: var(--fg-0);
}

/* Quote — for testimonials, highlights */
.t-quote {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--track-snug);
  font-weight: var(--weight-medium);
  color: var(--fg-0);
  font-style: italic;
}

/* ==========================================================================
   UTILITY — text colors
   ========================================================================== */
.fg-0 { color: var(--fg-0); }
.fg-1 { color: var(--fg-1); }
.fg-2 { color: var(--fg-2); }
.fg-3 { color: var(--fg-3); }
.fg-red { color: var(--red-500); }
.fg-danger { color: var(--danger); }

/* ==========================================================================
   LINKS
   ========================================================================== */
a {
  color: var(--fg-0);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--red-500); }
a.link-red { color: var(--red-600); text-decoration: none; }
a.link-red:hover { text-decoration: underline; }

/* ==========================================================================
   FOCUS
   ========================================================================== */
*:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/green-override.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   Everygreen ERP — Green recolor on top of Taskimoo (Nexstack) tokens
   We map --red-* tokens to a forest-green palette. Everything else stays.
   ========================================================================== */

:root {
  /* Evergreen palette — replaces Taskimoo red as functional accent */
  --red-50:  #F0FDF4;
  --red-100: #DCFCE7;
  --red-200: #BBF7D0;
  --red-300: #86EFAC;
  --red-400: #4ADE80;
  --red-500: #15803D;   /* PRIMARY — forest green */
  --red-600: #14532D;
  --red-700: #0F3D22;
  --red-800: #08291A;
  --red-900: #051F12;

  /* Pull semantic danger back to a true red so blocked/destructive still reads as red */
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --status-blocked: #DC2626;
  --priority-urgent: #DC2626;
  --priority-high: #B91C1C;

  /* AI surface — keep tinted but lean green */
  --ai-tint: #F0FDF4;
  --ai-border: #BBF7D0;
  --ai-fg: #14532D;

  --shadow-focus: 0 0 0 3px rgba(21, 128, 61, 0.22);
}

:root[data-theme="dark"],
.theme-dark {
  --red-50:  #052012;
  --red-100: #08291A;
  --red-200: #0F3D22;
  --red-300: #14532D;
  --red-400: #15803D;
  --red-500: #22C55E;   /* lifted for dark */
  --red-600: #4ADE80;
  --red-700: #86EFAC;
  --red-800: #BBF7D0;
  --red-900: #DCFCE7;

  --danger: #EF4444;
  --danger-bg: #2A0808;
  --status-blocked: #EF4444;
  --priority-urgent: #EF4444;
  --priority-high: #F87171;

  --ai-tint: #052012;
  --ai-border: #14532D;
  --ai-fg: #86EFAC;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/erp-kit.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   Everygreen ERP — Application kit
   Layered ON TOP of colors_and_type.css + green-override.css
   ========================================================================== */

html, body {
  background: var(--bg-1);
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  min-height: 100vh;
  font-feature-settings: 'ss01', 'cv11', 'tnum';
}

#root { min-height: 100vh; }

/* ──────────────────────────────────────────────────────────────────
   APP SHELL
   ────────────────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────────────
   SIDEBAR — single column with expandable sections
   ────────────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border-0);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-header {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--border-0);
  margin-bottom: 8px;
}
/* Section header (collapsible) */
.nav-section {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin-top: 8px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-section:hover { color: var(--fg-1); background: var(--bg-2); }
.nav-section .chev {
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.nav-section.open .chev { transform: rotate(90deg); }
.nav-section .ct {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--fg-3);
  background: var(--bg-0);
  padding: 0 5px;
  border-radius: 3px;
}
.nav-section.has-alert .ct { background: var(--alert-50, #FEF2F2); color: var(--danger); }

/* Nav item */
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--fg-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.sidebar-item.top-level { padding-left: 8px; }
.sidebar-item:hover { background: var(--bg-2); color: var(--fg-0); }
.sidebar-item.active {
  background: var(--bg-0);
  color: var(--fg-0);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--red-500);
}
.sidebar-item.muted { color: var(--fg-2); }
.sidebar-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  background: var(--bg-0);
  padding: 1px 5px;
  border-radius: 3px;
}
.sidebar-item.active .count { background: var(--red-50); color: var(--red-700); }
.sidebar-item .count.alert { background: var(--alert-50, #FEF2F2); color: var(--danger); font-weight: 600; }
.sidebar-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.sidebar-group {
  display: flex; flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

/* AI pill */
.ai-pill {
  margin-top: 10px;
  padding: 10px 10px 10px 12px;
  background: var(--ai-tint);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--ai-fg);
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
}
.ai-pill .hdr { display: flex; align-items: center; gap: 6px; font-weight: 600; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.ai-pill .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); animation: pulse 2s var(--ease-in-out) infinite; }
.ai-pill .body { line-height: 1.4; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-0);
  display: flex; flex-direction: column; gap: 1px;
}

/* ===== RAIL ===== */
.rail {
  background: var(--bg-0);
  border-right: 1px solid var(--border-0);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
}
.rail-logo {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-0);
  width: 100%;
  display: flex; justify-content: center;
}
.rail-logo .sidebar-logo {
  width: 28px; height: 28px;
}
.rail-items { display: flex; flex-direction: column; gap: 4px; flex: 1 1; width: 100%; align-items: center; }
.rail-item {
  position: relative;
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border: none;
  background: transparent;
}
.rail-item:hover { background: var(--bg-1); color: var(--fg-0); }
.rail-item.active {
  background: var(--bg-1);
  color: var(--fg-0);
  box-shadow: inset 2px 0 0 var(--red-500);
}
.rail-item svg { width: 18px; height: 18px; }
.rail-label {
  font-size: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  font-weight: 500;
}
.rail-badge {
  position: absolute;
  top: 4px; right: 6px;
  min-width: 14px; height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: var(--fg-0);
  color: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.rail-badge.alert { background: var(--danger); color: #fff; }
.rail-foot {
  padding-top: 10px;
  border-top: 1px solid var(--border-0);
  width: 100%;
  display: flex; justify-content: center;
}
.rail-item.user { width: 32px; height: 32px; }

/* ===== DRAWER ===== */
.drawer {
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-0);
  cursor: pointer;
}
.drawer-header:hover { background: var(--bg-2); }
.drawer-header .org-mark {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--red-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.drawer-header .org-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.drawer-header .org-meta { font-size: 10px; color: var(--fg-3); font-family: var(--font-mono); }
.drawer-header svg { color: var(--fg-3); }

.drawer-body { flex: 1 1; overflow-y: auto; padding: 8px; }
.drawer-section {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 14px 8px 5px;
  font-weight: 500;
}
.drawer-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--fg-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.drawer-item span:not(.count) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1; min-width: 0; }
.drawer-item:hover { background: var(--bg-2); color: var(--fg-0); }
.drawer-item.active {
  background: var(--bg-0);
  color: var(--fg-0);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--red-500);
}
.drawer-item.muted { color: var(--fg-2); }
.drawer-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.drawer-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  background: var(--bg-0);
  padding: 1px 5px;
  border-radius: 3px;
}
.drawer-item.active .count { background: var(--red-50); color: var(--red-700); }
.drawer-item .count.alert { background: var(--alert-50, #FEF2F2); color: var(--danger); }

.drawer-foot { padding: 8px; border-top: 1px solid var(--border-0); }

/* ──────────────────────────────────────────────────────────────────
   SIDEBAR
   ────────────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border-0);
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* Only the nav list scrolls; header + footer stay pinned so all items
   are always reachable regardless of how many sections are expanded. */
.sidebar-nav {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -4px;
  padding: 0 4px;
}
/* Nothing inside the nav may compress — if content is taller than the
   viewport the nav scrolls; items must never be crushed/clipped. */
.sidebar-nav > * { flex-shrink: 0; }
.sidebar-header {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 6px 14px;
  border-bottom: 1px solid var(--border-0);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.sidebar-logo {
  width: 26px; height: 26px;
  background: var(--fg-0);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.sidebar-logo::before {
  content: ''; position: absolute; top: 6px; left: 6px;
  width: 14px; height: 3px; background: var(--red-500);
}
.sidebar-logo::after {
  content: ''; position: absolute; top: 12px; left: 6px;
  width: 10px; height: 3px; background: #fff;
  box-shadow: 0 6px 0 -4px #fff, 0 6px 0 #fff;
}
.sidebar-brand {
  font-weight: 700; letter-spacing: -0.02em; font-size: 14px;
}
.sidebar-brand .dot { color: var(--red-500); }

.org-switcher {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border-0);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.org-switcher:hover { background: var(--bg-2); }
.org-switcher .org-mark {
  width: 18px; height: 18px; border-radius: 3px;
  background: var(--red-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}
.org-switcher .org-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.org-switcher .org-meta { color: var(--fg-3); font-family: var(--font-mono); font-size: 10px; margin-left: auto; }

.sidebar-section {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 14px 8px 4px;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-section .ct { margin-left: auto; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--fg-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.sidebar-item:hover { background: var(--bg-2); color: var(--fg-0); }
.sidebar-item.active {
  background: var(--bg-0);
  color: var(--fg-0);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--red-500);
}
.sidebar-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}
.sidebar-item .count.alert { color: var(--danger); font-weight: 600; }
.sidebar-item i[data-lucide] { width: 15px; height: 15px; color: var(--fg-2); flex-shrink: 0; }
.sidebar-item.active i[data-lucide] { color: var(--red-500); }
.sidebar-item.muted { color: var(--fg-2); }
.sidebar-item.muted i[data-lucide] { color: var(--fg-3); }

.sidebar-footer {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-0);
  display: flex; flex-direction: column; gap: 2px;
  flex-shrink: 0;
}

/* AI assistant pill in sidebar */
.ai-pill {
  margin-top: 10px;
  padding: 10px 10px 10px 12px;
  background: var(--ai-tint);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--ai-fg);
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.ai-pill:hover { background: var(--red-100); }
.ai-pill .hdr { display: flex; align-items: center; gap: 6px; font-weight: 600; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.ai-pill .hdr .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); animation: pulse 2s var(--ease-in-out) infinite; }
.ai-pill .body { line-height: 1.4; color: var(--ai-fg); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ──────────────────────────────────────────────────────────────────
   MAIN + TOPBAR
   ────────────────────────────────────────────────────────────────── */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100vh; background: var(--bg-0); }
/* Content scrolls here so the sidebar + topbar stay fixed to the viewport */
.main-scroll { flex: 1 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }

.topbar {
  height: 52px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-0);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 16px;
  background: var(--bg-0);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--fg-2);
  font-family: var(--font-mono);
}
.breadcrumb .sep { color: var(--fg-4); }
.breadcrumb .current { color: var(--fg-0); font-weight: 500; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-1); border: 1px solid var(--border-0);
  border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12px;
  color: var(--fg-2); min-width: 320px;
  cursor: text;
}
.search:hover { border-color: var(--border-1); }
.search i[data-lucide] { width: 14px; height: 14px; }
.search .kbd { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); border: 1px solid var(--border-0); padding: 1px 5px; border-radius: 3px; background: var(--bg-0); }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--fg-1);
  border: none;
  background: transparent;
  position: relative;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn i[data-lucide] { width: 16px; height: 16px; }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-500);
}

/* ──────────────────────────────────────────────────────────────────
   PAGE STRUCTURE
   ────────────────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--border-0);
  gap: 16px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  font-family: var(--font-display);
}
.page-header .meta {
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  margin-top: 6px;
  display: flex; align-items: center; gap: 8px;
}
.page-header .meta .sep { color: var(--fg-4); }
.page-header-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Sub-tabs under the page header — sticks to the top of the .main-scroll
   scroll container (the topbar lives outside the scroller). */
.tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-0);
  background: var(--bg-0);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px 11px;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 6px;
  font-weight: 500;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab:hover { color: var(--fg-0); }
.tab.active { color: var(--fg-0); border-bottom-color: var(--fg-0); }
.tab .ct { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }

/* ──────────────────────────────────────────────────────────────────
   BUTTONS / CHIPS / CONTROLS
   ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: transparent;
  color: var(--fg-0);
  white-space: nowrap;
  line-height: 1;
  height: 30px;
}
.btn i[data-lucide] { width: 14px; height: 14px; }
.btn-primary { background: var(--fg-0); color: var(--bg-0); }
.btn-primary:hover { opacity: 0.92; }
.btn-red, .btn-green { background: var(--red-500); color: #fff; }
.btn-red:hover, .btn-green:hover { background: var(--red-600); }
.btn-secondary { background: var(--bg-0); color: var(--fg-0); border-color: var(--border-1); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-ghost { color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-2); color: var(--fg-0); }
.btn-sm { padding: 4px 8px; font-size: 11.5px; height: 26px; }
.btn-icon { padding: 6px; height: 30px; width: 30px; justify-content: center; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--border-0); background: var(--bg-1); color: var(--fg-1);
  line-height: 1.3;
  white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.chip-green { background: var(--red-50); color: var(--red-700); border-color: var(--red-200); }
.chip-red { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.chip-amber { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.chip-blue { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.chip-mono { font-family: var(--font-mono); font-size: 10.5px; }
.chip-square { border-radius: var(--radius-xs); }

[data-theme="dark"] .chip-red { background: #2A0808; color: #FCA5A5; border-color: #4D0D0D; }
[data-theme="dark"] .chip-amber { background: #2A1F08; color: #FCD34D; border-color: #4D3508; }
[data-theme="dark"] .chip-blue { background: #0D1A2A; color: #93C5FD; border-color: #1E3A5F; }

/* Status badge with dot */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--fg-1);
}
.status .dot { width: 6px; height: 6px; border-radius: 50%; }
.status.ok .dot { background: var(--red-500); }
.status.warn .dot { background: #F59E0B; }
.status.bad .dot { background: var(--danger); }
.status.neutral .dot { background: var(--fg-3); }

/* Segmented toggle (toolbar-segment) */
.toolbar-segment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-1);
  border-radius: 6px;
  background: var(--bg-1);
  white-space: nowrap;
  flex-shrink: 0;
}
.toolbar-segment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.toolbar-segment button:hover { color: var(--fg-0); }
.toolbar-segment button.on {
  background: var(--bg-0);
  color: var(--fg-0);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  border: 1px solid var(--border-0);
}

/* Avatar */
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600;
  background: var(--bg-2);
  color: var(--fg-1);
  flex-shrink: 0;
  font-family: var(--font-sans);
  border: 1px solid var(--border-0);
}
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.avatar.ai {
  background: var(--fg-0);
  color: var(--red-500);
  border-color: var(--fg-0);
}
.stack { display: flex; }
.stack .avatar { margin-left: -8px; border: 2px solid var(--bg-0); }
.stack .avatar:first-child { margin-left: 0; }

/* Inputs */
.input {
  padding: 6px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--bg-0);
  color: var(--fg-0);
  height: 30px;
  line-height: 1;
}
.input:focus { outline: none; border-color: var(--red-500); box-shadow: var(--shadow-focus); }
.input::placeholder { color: var(--fg-3); }

/* ──────────────────────────────────────────────────────────────────
   TOOLBAR (filter row above tables)
   ────────────────────────────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border-0);
  background: var(--bg-0);
  flex-wrap: wrap;
}
.toolbar .spacer { flex: 1 1; }
.toolbar .input { height: 28px; font-size: 12px; min-width: 200px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--fg-1);
  background: var(--bg-0);
  cursor: pointer;
  height: 28px;
}
.filter-chip:hover { background: var(--bg-2); }
.filter-chip .lbl { color: var(--fg-3); }
.filter-chip i[data-lucide] { width: 12px; height: 12px; color: var(--fg-3); }
.filter-chip.has-value { border-color: var(--fg-0); }
.filter-chip.has-value .lbl { color: var(--fg-2); }

/* ──────────────────────────────────────────────────────────────────
   TABLES — the workhorse
   ────────────────────────────────────────────────────────────────── */
.table-wrap {
  border-top: 0;
  background: var(--bg-0);
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.tbl thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  font-weight: 500;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-0);
  background: var(--bg-1);
  white-space: nowrap;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
.tbl thead th.num, .tbl tbody td.num { text-align: right; }
.tbl tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-0);
  color: var(--fg-0);
  vertical-align: middle;
  white-space: nowrap;
}
.tbl tbody tr { cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.tbl tbody tr:hover { background: var(--bg-1); }
.tbl tbody tr.selected { background: var(--red-50); }
.tbl .mono { font-family: var(--font-mono); font-size: 12px; }
.tbl .muted { color: var(--fg-2); }
.tbl .title-cell { font-weight: 500; }
.tbl .sub { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); }
.tbl .checkbox { width: 32px; }
.tbl .actions { width: 1%; }

/* Bar in cell */
.cell-bar { width: 80px; height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; display: inline-block; vertical-align: middle; }
.cell-bar > div { height: 100%; background: var(--fg-0); }
.cell-bar > div.low { background: var(--danger); }
.cell-bar > div.med { background: #F59E0B; }
.cell-bar > div.ok { background: var(--red-500); }

/* ──────────────────────────────────────────────────────────────────
   KPI / STAT CARDS
   ────────────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 12px;
  gap: 12px;
  padding: 16px 24px;
}
.kpi {
  background: var(--bg-0);
  border: 1px solid var(--border-0);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.kpi .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 6px;
}
.kpi .label i[data-lucide] { width: 12px; height: 12px; }
.kpi .n {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  line-height: 1.05;
}
.kpi .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 4px;
}
.kpi .delta.up { color: var(--red-700); }
.kpi .delta.down { color: var(--danger); }
.kpi .spark {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 60px; height: 22px;
  opacity: 0.85;
}
.kpi.accent { border-color: var(--red-500); }
.kpi.accent .n { color: var(--red-600); }

/* ──────────────────────────────────────────────────────────────────
   WIDGETS / CARDS / PANELS
   ────────────────────────────────────────────────────────────────── */
.widget {
  background: var(--bg-0);
  border: 1px solid var(--border-0);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-0);
}
.widget-header h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.widget-header .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
}
.widget-header .actions { display: flex; gap: 4px; }
.widget-body { padding: 12px 14px; flex: 1 1; }
.widget-body.flush { padding: 0; }
.widget-footer { padding: 8px 14px; border-top: 1px solid var(--border-0); font-size: 11.5px; color: var(--fg-2); display: flex; justify-content: space-between; }

/* ──────────────────────────────────────────────────────────────────
   DASHBOARD GRID
   ────────────────────────────────────────────────────────────────── */
.dash {
  padding: 16px 24px 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 12px;
  gap: 12px;
}
.dash .span-3 { grid-column: span 3; }
.dash .span-4 { grid-column: span 4; }
.dash .span-5 { grid-column: span 5; }
.dash .span-6 { grid-column: span 6; }
.dash .span-7 { grid-column: span 7; }
.dash .span-8 { grid-column: span 8; }
.dash .span-12 { grid-column: span 12; }

@media (max-width: 1100px) {
  .dash .span-4, .dash .span-3 { grid-column: span 6; }
  .dash .span-7, .dash .span-8, .dash .span-5 { grid-column: span 12; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ──────────────────────────────────────────────────────────────────
   AI PANELS (functional, woven into views)
   ────────────────────────────────────────────────────────────────── */
.ai-panel {
  background: var(--ai-tint);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ai-panel-hdr {
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ai-border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ai-fg);
  font-weight: 600;
}
.ai-panel-hdr .star {
  width: 16px; height: 16px;
  background: var(--fg-0);
  color: var(--red-500);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.ai-panel-body { padding: 12px 14px; font-size: 13px; color: var(--fg-0); line-height: 1.45; }
.ai-suggestion {
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--ai-border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.ai-suggestion:hover { border-color: var(--red-400); }
.ai-suggestion .ico { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--red-600); }
.ai-suggestion .body { flex: 1 1; line-height: 1.4; }
.ai-suggestion .body .h { font-weight: 600; }
.ai-suggestion .body .m { color: var(--fg-2); font-size: 11.5px; margin-top: 2px; }
.ai-suggestion .act { font-family: var(--font-mono); font-size: 10.5px; color: var(--red-600); text-transform: uppercase; letter-spacing: 0.06em; }

/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/erp-kit-screens.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ──────────────────────────────────────────────────────────────────
   STOCK LIST / CARDS / PRODUCT
   ────────────────────────────────────────────────────────────────── */
.product-thumb {
  width: 36px; height: 36px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-3);
  flex-shrink: 0;
  overflow: hidden;
  background-image:
    linear-gradient(45deg, var(--bg-3) 25%, transparent 25%),
    linear-gradient(-45deg, var(--bg-3) 25%, transparent 25%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px;
}
.product-thumb.green { background: var(--red-100); background-image: none; }
.product-thumb.amber { background: #FFFBEB; background-image: none; }
.product-thumb.gray { background: var(--bg-2); background-image: none; }

/* ──────────────────────────────────────────────────────────────────
   KANBAN BOARD (for sales/orders pipeline)
   ────────────────────────────────────────────────────────────────── */
.pipeline {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  overflow-x: auto;
  flex: 1 1;
}
.col {
  flex: 0 0 280px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.col-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 8px;
}
.col-hdr .title { font-size: 12.5px; font-weight: 600; }
.col-hdr .ct { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }
.col-hdr .dot { width: 8px; height: 8px; border-radius: 50%; }
.col-hdr .amt { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); }

.deal-card {
  background: var(--bg-0);
  border: 1px solid var(--border-0);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.deal-card:hover { border-color: var(--border-1); box-shadow: var(--shadow-sm); }
.deal-card .id { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); }
.deal-card .ttl { font-size: 13px; font-weight: 500; line-height: 1.35; }
.deal-card .amt { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; }
.deal-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ──────────────────────────────────────────────────────────────────
   SECTION DIVIDER (newspaper editorial)
   ────────────────────────────────────────────────────────────────── */
.editorial-section {
  padding: 22px 24px 10px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--border-0);
}
.editorial-section .eyebrow { margin: 0; }
.editorial-section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.editorial-section .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

/* ──────────────────────────────────────────────────────────────────
   CHARTS — minimal SVG containers
   ────────────────────────────────────────────────────────────────── */
.chart-area { padding: 14px; }
.chart-legend { display: flex; gap: 12px; padding: 0 14px 12px; font-size: 11px; color: var(--fg-2); font-family: var(--font-mono); }
.chart-legend .lg { display: flex; align-items: center; gap: 6px; }
.chart-legend .lg .sq { width: 10px; height: 10px; border-radius: 2px; }

/* ──────────────────────────────────────────────────────────────────
   TWEAKS toolbar
   ────────────────────────────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 30px;
}
.theme-toggle button {
  background: var(--bg-0);
  color: var(--fg-2);
  border: none;
  padding: 0 10px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.theme-toggle button i[data-lucide] { width: 13px; height: 13px; }
.theme-toggle button.on { background: var(--fg-0); color: var(--bg-0); }

/* ──────────────────────────────────────────────────────────────────
   SCROLLBARS
   ────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 5px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* ──────────────────────────────────────────────────────────────────
   FORM-LIKE detail rail
   ────────────────────────────────────────────────────────────────── */
.detail-rail {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border-0);
  background: var(--bg-1);
  padding: 16px 18px;
  gap: 14px;
  width: 320px;
  min-width: 320px;
}
.field {
  display: flex; flex-direction: column; gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-0);
}
.field:last-child { border-bottom: none; }
.field .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.field .value { font-size: 13px; color: var(--fg-0); }

/* Notes */
.note-card {
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-0);
  border-radius: var(--radius-sm);
  display: flex; gap: 8px;
}

/* Generic content area scroll */
.content-scroll { overflow-y: auto; }

/* selection of items */
input[type="checkbox"] {
  accent-color: var(--red-500);
}

/* ──────────────────────────────────────────────────────────────────
   WIZARD layout (customer onboarding, etc.)
   ────────────────────────────────────────────────────────────────── */
.wizard {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1 1;
  min-height: 0;
}
.wizard-nav {
  background: var(--bg-1);
  border-right: 1px solid var(--border-0);
  padding: 16px 10px;
  overflow-y: auto;
}
.wizard-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--fg-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.wizard-step:hover { background: var(--bg-2); }
.wizard-step.active { background: var(--bg-0); font-weight: 600; box-shadow: inset 2px 0 0 var(--red-500); }
.wizard-step.done { color: var(--fg-2); }
.wizard-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--fg-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.wizard-step.active .num { background: var(--red-500); color: #fff; }
.wizard-step.done .num { background: var(--red-700); color: #fff; }
.wizard-step .req {
  margin-left: auto; font-size: 9px;
  font-family: var(--font-mono);
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.wizard-step.done .req { color: var(--red-700); }

.wizard-body {
  overflow-y: auto;
  background: var(--bg-0);
}
.wizard-body-inner {
  max-width: 880px;
  padding: 24px 32px 24px;
}
.wizard-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-family: var(--font-display);
}
.wizard-section-desc {
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 20px;
  line-height: 1.5;
}
.wizard-footer {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  background: var(--bg-0);
  border-top: 1px solid var(--border-0);
  gap: 12px;
}
.wizard-footer .progress {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
}

/* Form */
.form-grid { display: grid; grid-gap: 16px; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
}
.form-row label .req { color: var(--danger); margin-left: 2px; }
.form-row .input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--bg-0);
  color: var(--fg-0);
  height: 32px;
}
.form-row select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px;
}
.form-row textarea { height: auto; min-height: 64px; resize: vertical; line-height: 1.4; padding-top: 8px; padding-bottom: 8px; }
.form-row .hint {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 2px;
}

.form-section {
  border: 1px solid var(--border-0);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  background: var(--bg-0);
}
.form-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.form-section-hdr h4 { margin: 0; font-size: 13px; font-weight: 600; }

/* ──────────────────────────────────────────────────────────────────
   DOCUMENT (quotation / SO / invoice)
   ────────────────────────────────────────────────────────────────── */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  flex: 1 1;
  min-height: 0;
}
.doc-main { padding: 24px 28px 24px; overflow-y: auto; background: var(--bg-0); min-width: 0; }
.doc-rail { border-left: 1px solid var(--border-0); background: var(--bg-1); padding: 18px; overflow-y: auto; }

/* Narrow windows (13–14" laptops, split screens): rail stacks under the document
   so the main column never gets crushed below its content. */
@media (max-width: 1280px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-rail {
    border-left: none;
    border-top: 1px solid var(--border-0);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 14px;
    gap: 14px;
    align-items: start;
  }
}

.doc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 32px;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-0);
  margin-bottom: 20px;
}
.doc-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.doc-meta-value { font-size: 13px; color: var(--fg-0); }
.doc-meta-value.big { font-size: 22px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.02em; }

.doc-lines {
  overflow-x: auto;
  border: 1px solid var(--border-0);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.doc-add-line {
  padding: 10px 12px;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-1);
  border-top: 1px solid var(--border-0);
  font-size: 12.5px;
  color: var(--fg-2);
  cursor: text;
}
.doc-add-line:hover { background: var(--bg-2); color: var(--fg-0); }

.doc-totals {
  margin-top: 16px;
  margin-left: auto;
  max-width: 360px;
  border: 1px solid var(--border-0);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--bg-1);
}
.doc-totals .row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}
.doc-totals .row.grand {
  border-top: 1px solid var(--border-1);
  margin-top: 6px; padding-top: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  font-family: var(--font-display);
}
.doc-totals .lbl { color: var(--fg-2); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-totals .val { font-family: var(--font-mono); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.doc-totals .row.grand .lbl { font-family: var(--font-display); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--fg-0); font-weight: 600; }
.doc-totals .row.grand .val { font-family: var(--font-display); font-size: 22px; }

/* PDF preview chrome */
.pdf-frame {
  background: var(--bg-1);
  padding: 32px;
  display: flex;
  justify-content: center;
}
.pdf-sheet {
  background: #fff;
  width: 100%;
  max-width: 720px;
  min-height: 1018px;
  border: 1px solid var(--border-0);
  box-shadow: var(--shadow-md);
  padding: 56px 60px;
  color: #111;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
}
.pdf-sheet h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.pdf-sheet h2 { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #525252; margin: 0 0 6px; font-weight: 500; }
.pdf-sheet .pdf-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pdf-sheet .pdf-table th { text-align: left; padding: 8px 6px; border-bottom: 1px solid #111; font-size: 9.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.pdf-sheet .pdf-table td { padding: 8px 6px; border-bottom: 1px solid #E5E5E5; }
.pdf-sheet .pdf-table .num { text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* ──────────────────────────────────────────────────────────────────
   APPROVAL queue & check pills
   ────────────────────────────────────────────────────────────────── */
.approval-card {
  border: 1px solid var(--border-0);
  border-radius: var(--radius-md);
  background: var(--bg-0);
  overflow: hidden;
  margin-bottom: 12px;
}
.approval-card.urgent { border-color: var(--danger); }
.approval-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-0);
}
.approval-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-0);
}
.approval-check {
  padding: 12px 16px;
  border-right: 1px solid var(--border-0);
  display: flex; flex-direction: column; gap: 4px;
}
.approval-check:last-child { border-right: none; }
.approval-check .label {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 6px;
}
.approval-check .label .ind { width: 8px; height: 8px; border-radius: 50%; }
.approval-check.pass .label .ind { background: #22C55E; }
.approval-check.warn .label .ind { background: #F59E0B; }
.approval-check.fail .label .ind { background: var(--danger); }
.approval-check .detail { font-size: 12px; color: var(--fg-1); line-height: 1.4; }

/* ──────────────────────────────────────────────────────────────────
   PICK list progress
   ────────────────────────────────────────────────────────────────── */
.pick-progress {
  display: flex; align-items: center; gap: 8px;
}
.pick-progress .bar { width: 80px; height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.pick-progress .bar > div { height: 100%; background: var(--red-500); }
.pick-progress .text { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); }

/* search dropdown for customer/product pickers */
.combo {
  position: relative;
}
.combo-input {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  cursor: text;
  font-size: 13px;
}
.combo-input i[data-lucide] { color: var(--fg-3); }
.combo-input.has-value { border-color: var(--fg-0); }
.combo-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
}
.combo-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-0);
  font-size: 12.5px;
}
.combo-result:last-child { border-bottom: none; }
.combo-result:hover { background: var(--bg-2); }
.combo-result .sub { color: var(--fg-3); font-size: 11px; font-family: var(--font-mono); }

/* ─────────────────────────────────────────────────────────────────
   COLLAPSIBLE SIDEBAR — icon rail mode + flyout menus
   ───────────────────────────────────────────────────────────────── */
.app { transition: grid-template-columns 0.22s var(--ease-out, ease); }
.app.nav-collapsed { grid-template-columns: 64px 1fr; }

.nav-toggle {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-0);
  background: var(--bg-0);
  color: var(--fg-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle:hover { color: var(--fg-0); background: var(--bg-2); border-color: var(--border-1); }

.sidebar.collapsed {
  padding: 14px 8px 12px;
  align-items: center;
}
.sidebar.collapsed .sidebar-header {
  border-bottom: none;
  padding: 2px 0 8px;
  margin-bottom: 0;
  justify-content: center;
}
.sidebar.collapsed .nav-toggle { margin: 0 auto 10px; }
.sidebar.collapsed .sidebar-footer {
  border-top: 1px solid var(--border-0);
  padding-top: 8px;
  width: 100%;
}

.sidebar-rail {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1 1; min-height: 0;
  overflow-y: auto;
  width: 100%;
}
.sidebar-rail > * { flex-shrink: 0; }

.rail-icon {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  cursor: pointer;
  transition: background var(--dur-fast, 0.12s) ease, color var(--dur-fast, 0.12s) ease;
}
.rail-icon:hover { background: var(--bg-2); color: var(--fg-0); }
.rail-icon.active {
  background: var(--bg-0);
  color: var(--red-700);
  box-shadow: inset 0 0 0 1px var(--border-1);
}
.rail-icon i[data-lucide], .rail-icon svg { width: 17px; height: 17px; }
.rail-icon .dot-alert {
  position: absolute; top: 7px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg-1);
}
.rail-sep { width: 26px; height: 1px; background: var(--border-0); margin: 5px 0; }

.nav-flyout {
  position: fixed;
  z-index: 1000;
  width: 236px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-0);
  border: 1px solid var(--border-0);
  border-radius: 10px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.16);
  padding: 6px;
}
.nav-flyout .fly-hdr {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 8px 5px;
}
.nav-flyout .sidebar-item { padding: 6px 8px; border-radius: 6px; }

/* ─────────────────────────────────────────────────────────────────
   SIDEBAR REFINEMENT — green-tinted surface + staggered reveal
   ───────────────────────────────────────────────────────────────── */
:root {
  --nav-surface: #F3F6F3;   /* faint evergreen-tinted neutral, replaces flat grey */
  --nav-hover:   #E9F0EA;
  --nav-active:  #FFFFFF;
}
:root[data-theme="dark"], .theme-dark {
  --nav-surface: #0E140F;
  --nav-hover:   #18241B;
  --nav-active:  #0A0A0A;
}

.sidebar { background: var(--nav-surface); }

/* Section headers — stronger: darker ink, more weight, a touch larger so the
   nav reads as a real menu instead of faint grey labels. */
.nav-section {
  color: var(--fg-1);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.nav-section .chev { color: var(--red-500); }
.nav-section.open { color: var(--fg-0); }

/* Item labels a step darker for clearer contrast on the tinted surface */
.sidebar-item { color: var(--fg-1); font-weight: 500; }
.sidebar-item.muted { color: var(--fg-2); font-weight: 400; }

/* Section headers + items pick up the warmer hover tint */
.nav-section:hover { background: var(--nav-hover); color: var(--fg-0); }
.sidebar-item:hover { background: var(--nav-hover); }
.sidebar-item.active { background: var(--nav-active); }

/* Chip backgrounds sit on the active (white) surface so they stay legible */
.nav-section .ct,
.sidebar-item .count { background: var(--nav-active); }

/* Section chevron eases open */
.nav-section .chev { transition: transform 0.24s var(--ease-out, cubic-bezier(.2,.7,.2,1)); }

/* Staggered "append" reveal — items cascade in after a small delay when a
   section opens (the group re-mounts on toggle, so this replays each time). */
@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-7px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sidebar-group .sidebar-item {
  animation: navItemIn 0.30s var(--ease-out, cubic-bezier(.2,.7,.2,1)) both;
}
.sidebar-group .sidebar-item:nth-child(1)  { animation-delay: 0.06s; }
.sidebar-group .sidebar-item:nth-child(2)  { animation-delay: 0.10s; }
.sidebar-group .sidebar-item:nth-child(3)  { animation-delay: 0.14s; }
.sidebar-group .sidebar-item:nth-child(4)  { animation-delay: 0.18s; }
.sidebar-group .sidebar-item:nth-child(5)  { animation-delay: 0.22s; }
.sidebar-group .sidebar-item:nth-child(6)  { animation-delay: 0.26s; }
.sidebar-group .sidebar-item:nth-child(7)  { animation-delay: 0.30s; }
.sidebar-group .sidebar-item:nth-child(8)  { animation-delay: 0.34s; }
.sidebar-group .sidebar-item:nth-child(9)  { animation-delay: 0.38s; }
.sidebar-group .sidebar-item:nth-child(10) { animation-delay: 0.42s; }
.sidebar-group .sidebar-item:nth-child(11) { animation-delay: 0.46s; }
.sidebar-group .sidebar-item:nth-child(12) { animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  .sidebar-group .sidebar-item { animation: none; }
}


