/*
 * STITCH.CSS — v1.0.0
 * The Algorithmic Archive Design System
 * Built from: smespy/design/stitch/
 *
 * Dark-mode native · Responsive · Zero dependencies
 * Class prefix: .st-
 *
 * ─────────────────────────────────────────────────────────
 *  Table of Contents
 * ─────────────────────────────────────────────────────────
 *  1.  Design Tokens
 *  2.  Reset & Base
 *  3.  Keyframes
 *  4.  Background Effects
 *  5.  Typography
 *  6.  Layout — Container & Page
 *  7.  Layout — 12-Column Grid
 *  8.  Layout — Flex Utilities
 *  9.  Navigation — Topbar
 * 10.  Navigation — Sidebar
 * 11.  Navigation — Bottom Nav (Mobile)
 * 12.  Breadcrumb
 * 13.  Tabs
 * 14.  Badge
 * 15.  Status / Dot / Chip
 * 16.  Alert
 * 17.  Button
 * 18.  Card
 * 19.  Panel
 * 20.  KPI
 * 21.  Metric
 * 22.  Progress
 * 23.  Input / Form
 * 24.  Dropdown
 * 25.  Modal
 * 26.  Toast
 * 27.  Accordion
 * 28.  List
 * 29.  Feed
 * 30.  Table
 * 31.  Pagination
 * 32.  Spinner & Skeleton
 * 33.  Empty State
 * 34.  Utilities
 * 35.  Responsive Overrides
 * ─────────────────────────────────────────────────────────
 */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {

  /* ── Surface hierarchy ─────────────────────────────────── */
  --st-surface-lowest:   #0b0e14;
  --st-surface-low:      #181c22;
  --st-surface:          #1c2026;
  --st-surface-high:     #262a31;
  --st-surface-highest:  #31353c;
  --st-surface-bright:   #363940;

  /* ── Background / base ─────────────────────────────────── */
  --st-bg:               #101419;
  --st-bg-dot:           #1c2026;       /* radial-dot grid colour */

  /* ── Primary (mint / teal) ─────────────────────────────── */
  --st-primary:          #d3ffed;       /* light mint — hero text */
  --st-primary-ctr:      #64f0c8;       /* teal — CTAs, active states */
  --st-primary-fixed:    #6ffad1;
  --st-primary-dim:      #4eddb6;
  --st-on-primary:       #00382b;
  --st-on-primary-ctr:   #006b55;
  --st-on-primary-fixed: #002118;

  /* ── Secondary (muted teal-grey) ───────────────────────── */
  --st-secondary:        #adcec2;
  --st-secondary-ctr:    #314f46;
  --st-on-secondary:     #18362e;
  --st-on-secondary-ctr: #9fbfb4;

  /* ── Tertiary (light sage) ─────────────────────────────── */
  --st-tertiary:         #ecf8f4;
  --st-tertiary-ctr:     #cfdbd7;
  --st-on-tertiary:      #283330;
  --st-on-tertiary-ctr:  #55615e;

  /* ── Error / Danger ────────────────────────────────────── */
  --st-error:            #ffb4ab;
  --st-error-ctr:        #93000a;
  --st-on-error:         #690005;
  --st-on-error-ctr:     #ffdad6;

  /* ── Warning (amber — not in Material palette, added) ──── */
  --st-warn:             #ffb84c;
  --st-warn-bg:          rgba(255,184,76,0.10);
  --st-warn-border:      rgba(255,184,76,0.30);

  /* ── Text ──────────────────────────────────────────────── */
  --st-text:             #e0e2eb;       /* on-surface */
  --st-text-dim:         #bbcac3;       /* on-surface-variant */
  --st-text-muted:       #85948d;       /* outline */

  /* ── Borders / outlines ────────────────────────────────── */
  --st-border:           #3c4a44;       /* outline-variant */
  --st-border-15:        rgba(60,74,68,0.15);
  --st-border-30:        rgba(60,74,68,0.30);
  --st-border-bright:    rgba(133,148,141,0.40); /* outline at 40% */

  /* ── Accent alpha helpers ──────────────────────────────── */
  --st-primary-06:       rgba(100,240,200,0.06);
  --st-primary-12:       rgba(100,240,200,0.12);
  --st-primary-20:       rgba(100,240,200,0.20);
  --st-primary-30:       rgba(100,240,200,0.30);

  --st-error-12:         rgba(255,180,171,0.12);
  --st-error-30:         rgba(255,180,171,0.30);

  /* ── Glass / Backdrop ──────────────────────────────────── */
  --st-glass:            rgba(38,42,49,0.60);
  --st-panel:            rgba(24,28,34,0.90);

  /* ── Tint / Glow ───────────────────────────────────────── */
  --st-tint:             #4eddb6;
  --st-glow-sm:          0 0  8px rgba(100,240,200,0.20);
  --st-glow-md:          0 0 20px rgba(100,240,200,0.15);
  --st-glow-lg:          0 0 40px rgba(100,240,200,0.10);

  /* ── Shadow ────────────────────────────────────────────── */
  --st-shadow-sm:        0 2px  8px rgba(0,0,0,0.35);
  --st-shadow-md:        0 4px 16px rgba(0,0,0,0.45);
  --st-shadow-lg:        0 8px 32px rgba(0,0,0,0.55);
  --st-shadow-xl:        0 16px 48px rgba(0,0,0,0.65);

  /* ── Typography ────────────────────────────────────────── */
  --st-font-headline: 'Space Grotesk', sans-serif;
  --st-font-body:     'Inter', sans-serif;
  --st-font-mono:     'Space Grotesk', monospace; /* terminal feel */

  /* Font sizes */
  --st-text-2xs:  0.6875rem;   /* 11px */
  --st-text-xs:   0.75rem;     /* 12px */
  --st-text-sm:   0.8125rem;   /* 13px */
  --st-text-base: 0.875rem;    /* 14px */
  --st-text-md:   0.9375rem;   /* 15px */
  --st-text-lg:   1.0625rem;   /* 17px */
  --st-text-xl:   1.125rem;    /* 18px */
  --st-text-2xl:  1.375rem;    /* 22px */
  --st-text-3xl:  1.75rem;     /* 28px */
  --st-text-4xl:  2.25rem;     /* 36px */
  --st-text-5xl:  3rem;        /* 48px */

  /* Font weights */
  --st-fw-light:    300;
  --st-fw-regular:  400;
  --st-fw-medium:   500;
  --st-fw-semibold: 600;
  --st-fw-bold:     700;

  /* Line heights */
  --st-lh-tight:   1.20;
  --st-lh-snug:    1.35;
  --st-lh-base:    1.50;
  --st-lh-relaxed: 1.70;

  /* Letter spacing */
  --st-ls-tight:   -0.025em;
  --st-ls-normal:  0em;
  --st-ls-wide:    0.05em;
  --st-ls-wider:   0.10em;
  --st-ls-widest:  0.20em;
  --st-ls-caps:    0.12em;

  /* ── Spacing (4px base) ────────────────────────────────── */
  --st-sp-1:   4px;
  --st-sp-2:   8px;
  --st-sp-3:   12px;
  --st-sp-4:   16px;
  --st-sp-5:   20px;
  --st-sp-6:   24px;
  --st-sp-7:   28px;
  --st-sp-8:   32px;
  --st-sp-10:  40px;
  --st-sp-12:  48px;
  --st-sp-16:  64px;
  --st-sp-20:  80px;

  /* ── Border radius (sharp "instrument" feel) ───────────── */
  --st-r-none: 0;
  --st-r-sm:   0.125rem;   /*  2px – default */
  --st-r-md:   0.25rem;    /*  4px */
  --st-r-lg:   0.5rem;     /*  8px */
  --st-r-full: 0.75rem;    /* 12px – NOT pill; design rule */

  /* ── Z-index ───────────────────────────────────────────── */
  --st-z-base:     0;
  --st-z-raised:  10;
  --st-z-sticky:  50;
  --st-z-nav:    100;
  --st-z-dropdown: 200;
  --st-z-overlay:  300;
  --st-z-modal:    400;
  --st-z-toast:    500;

  /* ── Transitions ───────────────────────────────────────── */
  --st-dur-fast:   150ms;
  --st-dur-base:   200ms;
  --st-dur-slow:   300ms;
  --st-ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --st-ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --st-ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Topbar / Sidebar dimensions ───────────────────────── */
  --st-topbar-h:   64px;
  --st-sidebar-w:  256px;

  /* ── Filing Event Colors (FilingEvents enum) ────────────── */
  --fe-1:  149, 68,255;   /* Order — purple              */
  --fe-2:  255,165,  0;   /* News — orange               */
  --fe-3:  255,255,  0;   /* Result — yellow             */
  --fe-4:    0,128,  0;   /* Incorporation — green       */
  --fe-5:    0,  0,255;   /* Subsidiary — blue           */
  --fe-6:  255,  0,  0;   /* Concall — red               */
  --fe-7:  238,130,238;   /* InvestorMeet — violet       */
  --fe-8:    0,255,255;   /* Presentation — cyan         */
  --fe-9:  204,255,229;   /* Transcript — mint           */
  --fe-10: 139,  0,  0;   /* CorporateAction — dark red  */
  --fe-11: 144,238,144;   /* PriceMovement — light green */
  --fe-12:   0,  0,139;   /* BoardMeeting — dark blue    */
  --fe-13: 255,140,  0;   /* TradingWindow — dark orange */
  --fe-14: 255,186,233;   /* Agreements — pastel magenta */
  --fe-15: 186,255,248;   /* CreditRating — pastel teal  */
  --fe-16:   0,  0,  0;   /* Unassigned — transparent    */
  --fe-17:   0,191,255;   /* ResultDate — deep sky blue  */
  --fe-18: 139, 69, 19;   /* MeetingOutcome — saddle brn */
}

/* ── Filing Event Card Tinting ─────────────────────────────
   Apply via:  data-filing-event="{{ isOrder }}"
   Each card gets a coloured left border + subtle bg tint.
   ────────────────────────────────────────────────────────── */
[data-filing-event] {
  transition: border-color var(--st-dur-base) var(--st-ease),
              background-color var(--st-dur-base) var(--st-ease);
}
[data-filing-event="1"]  { border-left: 3px solid rgba(var(--fe-1),  0.80); background-color: rgba(var(--fe-1),  0.12); }
[data-filing-event="2"]  { border-left: 3px solid rgba(var(--fe-2),  0.80); background-color: rgba(var(--fe-2),  0.12); }
[data-filing-event="3"]  { border-left: 3px solid rgba(var(--fe-3),  0.70); background-color: rgba(var(--fe-3),  0.08); }
[data-filing-event="4"]  { border-left: 3px solid rgba(var(--fe-4),  0.80); background-color: rgba(var(--fe-4),  0.12); }
[data-filing-event="5"]  { border-left: 3px solid rgba(var(--fe-5),  0.80); background-color: rgba(var(--fe-5),  0.12); }
[data-filing-event="6"]  { border-left: 3px solid rgba(var(--fe-6),  0.80); background-color: rgba(var(--fe-6),  0.12); }
[data-filing-event="7"]  { border-left: 3px solid rgba(var(--fe-7),  0.80); background-color: rgba(var(--fe-7),  0.12); }
[data-filing-event="8"]  { border-left: 3px solid rgba(var(--fe-8),  0.80); background-color: rgba(var(--fe-8),  0.12); }
[data-filing-event="9"]  { border-left: 3px solid rgba(var(--fe-9),  0.70); background-color: rgba(var(--fe-9),  0.08); }
[data-filing-event="10"] { border-left: 3px solid rgba(var(--fe-10), 0.80); background-color: rgba(var(--fe-10), 0.14); }
[data-filing-event="11"] { border-left: 3px solid rgba(var(--fe-11), 0.70); background-color: rgba(var(--fe-11), 0.10); }
[data-filing-event="12"] { border-left: 3px solid rgba(var(--fe-12), 0.90); background-color: rgba(var(--fe-12), 0.15); }
[data-filing-event="13"] { border-left: 3px solid rgba(var(--fe-13), 0.80); background-color: rgba(var(--fe-13), 0.12); }
[data-filing-event="14"] { border-left: 3px solid rgba(var(--fe-14), 0.70); background-color: rgba(var(--fe-14), 0.10); }
[data-filing-event="15"] { border-left: 3px solid rgba(var(--fe-15), 0.70); background-color: rgba(var(--fe-15), 0.10); }
[data-filing-event="17"] { border-left: 3px solid rgba(var(--fe-17), 0.80); background-color: rgba(var(--fe-17), 0.12); }
[data-filing-event="18"] { border-left: 3px solid rgba(var(--fe-18), 0.80); background-color: rgba(var(--fe-18), 0.14); }
/* 0 and 16 = no tint (transparent / unassigned) */


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: var(--st-text-base);
  line-height: var(--st-lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button  { cursor: pointer; font-family: inherit; background: none; border: none; }
a       { color: inherit; text-decoration: none; }
img, svg{ display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; color: inherit; }
table   { border-collapse: collapse; }
ul, ol  { list-style: none; }

::selection {
  background: var(--st-primary-ctr);
  color: var(--st-on-primary-fixed);
}

/* Custom scrollbar */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--st-border); border-radius: var(--st-r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--st-primary-ctr); }


/* ============================================================
   3. KEYFRAMES
   ============================================================ */
@keyframes st-spin          { to { transform: rotate(360deg); } }
@keyframes st-pulse         { 0%,100%{opacity:1} 50%{opacity:0.25} }
@keyframes st-fade-in       { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
@keyframes st-slide-up      { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes st-slide-right   { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }
@keyframes st-scan          { 0%{top:-2px} 100%{top:100%} }
@keyframes st-shimmer       { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes st-ticker        { from{transform:translateX(0)} to{transform:translateX(-50%)} }


/* ============================================================
   4. BACKGROUND EFFECTS
   ============================================================ */

/* Dot grid — matches stitch templates */
.st-bg-grid {
  background-color: var(--st-bg);
  background-image: radial-gradient(var(--st-bg-dot) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Subtle line grid */
.st-bg-lines {
  background-image:
    linear-gradient(var(--st-primary-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--st-primary-06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Radial glow behind hero area */
.st-bg-radial::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40,120,100,0.12), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(68,204,255,0.05), transparent 40%);
}

/* Scanline overlay */
.st-scanline {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: var(--st-z-toast); opacity: 0.3;
}
.st-scanline::after {
  content: '';
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100,240,200,0.08), transparent);
  animation: st-scan 7s linear infinite;
}

/* Ticker tape */
.st-ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--st-surface-highest);
  border-bottom: 1px solid var(--st-border-15);
  padding: var(--st-sp-2) 0;
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xs);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-dim);
}
.st-ticker__track {
  display: inline-block;
  animation: st-ticker 30s linear infinite;
}
.st-ticker__item { display: inline-block; padding: 0 var(--st-sp-6); }
.st-ticker__item--up   { color: var(--st-primary-ctr); }
.st-ticker__item--down { color: var(--st-error); }

/* Filings page compatibility */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.st-page-filings .animate-marquee {
  animation: marquee 30s linear infinite;
}

.st-page-filings .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.st-page-filings [data-filing-event] {
  transition: border-color var(--st-dur-base) var(--st-ease),
              background-color var(--st-dur-base) var(--st-ease);
}
.st-page-filings [data-filing-event="1"]  { border-left: 3px solid rgba(var(--fe-1),  0.80) !important; background-color: rgba(var(--fe-1),  0.12) !important; }
.st-page-filings [data-filing-event="2"]  { border-left: 3px solid rgba(var(--fe-2),  0.80) !important; background-color: rgba(var(--fe-2),  0.12) !important; }
.st-page-filings [data-filing-event="3"]  { border-left: 3px solid rgba(var(--fe-3),  0.70) !important; background-color: rgba(var(--fe-3),  0.08) !important; }
.st-page-filings [data-filing-event="4"]  { border-left: 3px solid rgba(var(--fe-4),  0.80) !important; background-color: rgba(var(--fe-4),  0.12) !important; }
.st-page-filings [data-filing-event="5"]  { border-left: 3px solid rgba(var(--fe-5),  0.80) !important; background-color: rgba(var(--fe-5),  0.12) !important; }
.st-page-filings [data-filing-event="6"]  { border-left: 3px solid rgba(var(--fe-6),  0.80) !important; background-color: rgba(var(--fe-6),  0.12) !important; }
.st-page-filings [data-filing-event="7"]  { border-left: 3px solid rgba(var(--fe-7),  0.80) !important; background-color: rgba(var(--fe-7),  0.12) !important; }
.st-page-filings [data-filing-event="8"]  { border-left: 3px solid rgba(var(--fe-8),  0.80) !important; background-color: rgba(var(--fe-8),  0.12) !important; }
.st-page-filings [data-filing-event="9"]  { border-left: 3px solid rgba(var(--fe-9),  0.70) !important; background-color: rgba(var(--fe-9),  0.08) !important; }
.st-page-filings [data-filing-event="10"] { border-left: 3px solid rgba(var(--fe-10), 0.80) !important; background-color: rgba(var(--fe-10), 0.14) !important; }
.st-page-filings [data-filing-event="11"] { border-left: 3px solid rgba(var(--fe-11), 0.70) !important; background-color: rgba(var(--fe-11), 0.10) !important; }
.st-page-filings [data-filing-event="12"] { border-left: 3px solid rgba(var(--fe-12), 0.90) !important; background-color: rgba(var(--fe-12), 0.15) !important; }
.st-page-filings [data-filing-event="13"] { border-left: 3px solid rgba(var(--fe-13), 0.80) !important; background-color: rgba(var(--fe-13), 0.12) !important; }
.st-page-filings [data-filing-event="14"] { border-left: 3px solid rgba(var(--fe-14), 0.70) !important; background-color: rgba(var(--fe-14), 0.10) !important; }
.st-page-filings [data-filing-event="15"] { border-left: 3px solid rgba(var(--fe-15), 0.70) !important; background-color: rgba(var(--fe-15), 0.10) !important; }
.st-page-filings [data-filing-event="17"] { border-left: 3px solid rgba(var(--fe-17), 0.80) !important; background-color: rgba(var(--fe-17), 0.12) !important; }
.st-page-filings [data-filing-event="18"] { border-left: 3px solid rgba(var(--fe-18), 0.80) !important; background-color: rgba(var(--fe-18), 0.14) !important; }
.st-page-filings [data-filing-event="0"]  { border-left: 3px solid var(--st-border) !important; }
.st-page-filings [data-filing-event="16"] { border-left: 3px solid var(--st-border) !important; }

/* Tailwind-free utility bridge for filings.html */
.st-page-filings { font-family: var(--st-font-body); color: var(--st-text); }
.st-page-filings .block { display: block; }
.st-page-filings .hidden { display: none; }
.st-page-filings .grid { display: grid; }
.st-page-filings .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.st-page-filings .flex { display: flex; }
.st-page-filings .flex-0 { flex: 0 0 auto; }
.st-page-filings .flex-1 { flex: 1 1 0%; }
.st-page-filings .flex-col { flex-direction: column; }
.st-page-filings .flex-wrap { flex-wrap: wrap; }
.st-page-filings .items-center { align-items: center; }
.st-page-filings .items-start { align-items: flex-start; }
.st-page-filings .justify-between { justify-content: space-between; }
.st-page-filings .justify-center { justify-content: center; }
.st-page-filings .space-y-1 > * + * { margin-top: 0.25rem; }
.st-page-filings .space-y-6 > * + * { margin-top: 1.5rem; }

.st-page-filings .relative { position: relative; }
.st-page-filings .absolute { position: absolute; }
.st-page-filings .sticky { position: sticky; }
.st-page-filings .top-0 { top: 0; }
.st-page-filings .z-50 { z-index: 50; }
.st-page-filings .-inset-0\.5 { inset: -0.125rem; }

.st-page-filings .w-full { width: 100%; }
.st-page-filings .w-2 { width: 0.5rem; }
.st-page-filings .h-16 { height: 4rem; }
.st-page-filings .h-10 { height: 2.5rem; }
.st-page-filings .h-2 { height: 0.5rem; }
.st-page-filings .max-w-full { max-width: 100%; }
.st-page-filings .min-h-screen { min-height: 100vh; }

.st-page-filings .overflow-hidden { overflow: hidden; }
.st-page-filings .whitespace-nowrap { white-space: nowrap; }
.st-page-filings .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-page-filings .pointer-events-none { pointer-events: none; }

.st-page-filings .p-8 { padding: 2rem; }
.st-page-filings .p-6 { padding: 1.5rem; }
.st-page-filings .px-8 { padding-left: 2rem; padding-right: 2rem; }
.st-page-filings .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.st-page-filings .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.st-page-filings .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.st-page-filings .px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.st-page-filings .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.st-page-filings .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.st-page-filings .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.st-page-filings .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.st-page-filings .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.st-page-filings .py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.st-page-filings .pb-6 { padding-bottom: 1.5rem; }
.st-page-filings .pb-1 { padding-bottom: 0.25rem; }

.st-page-filings .mt-1 { margin-top: 0.25rem; }
.st-page-filings .mt-2 { margin-top: 0.5rem; }
.st-page-filings .mt-8 { margin-top: 2rem; }
.st-page-filings .mt-12 { margin-top: 3rem; }
.st-page-filings .mb-1 { margin-bottom: 0.25rem; }
.st-page-filings .mb-2 { margin-bottom: 0.5rem; }
.st-page-filings .mb-3 { margin-bottom: 0.75rem; }
.st-page-filings .mb-4 { margin-bottom: 1rem; }
.st-page-filings .mb-12 { margin-bottom: 3rem; }
.st-page-filings .mb-24 { margin-bottom: 6rem; }
.st-page-filings .mx-auto { margin-left: auto; margin-right: auto; }

.st-page-filings .gap-1 { gap: 0.25rem; }
.st-page-filings .gap-1\.5 { gap: 0.375rem; }
.st-page-filings .gap-2 { gap: 0.5rem; }
.st-page-filings .gap-4 { gap: 1rem; }
.st-page-filings .gap-6 { gap: 1.5rem; }
.st-page-filings .gap-8 { gap: 2rem; }
.st-page-filings .gap-12 { gap: 3rem; }

.st-page-filings .border { border-style: solid; border-width: 1px; }
.st-page-filings .border-b { border-bottom-style: solid; border-bottom-width: 1px; }
.st-page-filings .border-l { border-left-style: solid; border-left-width: 1px; }
.st-page-filings .border-b-2 { border-bottom-width: 2px; }
.st-page-filings .border-l-2 { border-left-width: 2px; }
.st-page-filings .border-l-4 { border-left-width: 4px; }

.st-page-filings .rounded-sm { border-radius: 0.125rem; }
.st-page-filings .rounded-full { border-radius: 9999px; }

.st-page-filings .font-body { font-family: var(--st-font-body); }
.st-page-filings .font-headline { font-family: var(--st-font-headline); }
.st-page-filings .font-label { font-family: var(--st-font-body); }
.st-page-filings .font-mono { font-family: var(--st-font-headline), monospace; }
.st-page-filings .font-light { font-weight: 300; }
.st-page-filings .font-bold { font-weight: 700; }
.st-page-filings .font-extrabold { font-weight: 800; }
.st-page-filings .font-black { font-weight: 900; }

.st-page-filings .text-center { text-align: center; }
.st-page-filings .uppercase { text-transform: uppercase; }
.st-page-filings .leading-snug { line-height: 1.375; }
.st-page-filings .leading-relaxed { line-height: 1.625; }
.st-page-filings .tracking-tight { letter-spacing: -0.025em; }
.st-page-filings .tracking-tighter { letter-spacing: -0.05em; }
.st-page-filings .tracking-wider { letter-spacing: 0.05em; }
.st-page-filings .tracking-widest { letter-spacing: 0.2em; }

.st-page-filings .text-\[9px\] { font-size: 9px; }
.st-page-filings .text-\[10px\] { font-size: 10px; }
.st-page-filings .text-\[11px\] { font-size: 11px; }
.st-page-filings .text-xs { font-size: 0.75rem; line-height: 1rem; }
.st-page-filings .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.st-page-filings .text-base { font-size: 1rem; line-height: 1.5rem; }
.st-page-filings .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.st-page-filings .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.st-page-filings .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.st-page-filings .text-5xl { font-size: 3rem; line-height: 1; }
.st-page-filings .text-6xl { font-size: 3.75rem; line-height: 1; }

.st-page-filings .text-\[\#d3ffed\] { color: #d3ffed; }
.st-page-filings .text-\[\#64f0c8\] { color: #64f0c8; }
.st-page-filings .text-on-surface { color: var(--st-text); }
.st-page-filings .text-on-surface-variant { color: var(--st-text-dim); }
.st-page-filings .text-outline { color: var(--st-text-muted); }
.st-page-filings .text-outline-variant { color: var(--st-border); }
.st-page-filings .text-primary { color: var(--st-primary); }
.st-page-filings .text-primary-container { color: var(--st-primary-ctr); }
.st-page-filings .text-on-primary-fixed { color: var(--st-on-primary-fixed); }
.st-page-filings .text-on-secondary-container { color: var(--st-on-secondary-ctr); }
.st-page-filings .text-error { color: var(--st-error); }
.st-page-filings .text-red-400 { color: #f87171; }
.st-page-filings .text-blue-400 { color: #60a5fa; }
.st-page-filings .text-yellow-400 { color: #facc15; }

.st-page-filings .bg-\[\#101419\] { background-color: #101419; }
.st-page-filings .bg-surface-container-highest { background-color: var(--st-surface-highest); }
.st-page-filings .bg-surface-container-low { background-color: var(--st-surface-low); }
.st-page-filings .bg-surface-container-lowest\/50 { background-color: rgba(11, 14, 20, 0.5); }
.st-page-filings .bg-primary-container { background-color: var(--st-primary-ctr); }
.st-page-filings .bg-secondary-container { background-color: var(--st-secondary-ctr); }

.st-page-filings .bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--st-grad-from, transparent), var(--st-grad-to, transparent));
}
.st-page-filings .from-primary-container\/20 { --st-grad-from: rgba(100, 240, 200, 0.2); }
.st-page-filings .from-error\/10 { --st-grad-from: rgba(255, 180, 171, 0.1); }
.st-page-filings .to-transparent { --st-grad-to: rgba(0, 0, 0, 0); }

.st-page-filings .border-\[\#64f0c8\] { border-color: #64f0c8; }
.st-page-filings .border-primary-container { border-color: var(--st-primary-ctr); }
.st-page-filings .border-outline-variant\/10 { border-color: rgba(60, 74, 68, 0.1); }
.st-page-filings .border-outline-variant\/20 { border-color: rgba(60, 74, 68, 0.2); }
.st-page-filings .border-outline-variant\/30 { border-color: rgba(60, 74, 68, 0.3); }
.st-page-filings .border-outline\/40 { border-color: rgba(133, 148, 141, 0.4); }
.st-page-filings .border-red-900\/40 { border-color: rgba(127, 29, 29, 0.4); }
.st-page-filings .border-blue-900\/40 { border-color: rgba(30, 58, 138, 0.4); }
.st-page-filings .border-yellow-900\/40 { border-color: rgba(113, 63, 18, 0.4); }
.st-page-filings .border-primary-container\/40 { border-color: rgba(100, 240, 200, 0.4); }
.st-page-filings .border-error\/40 { border-color: rgba(255, 180, 171, 0.4); }

.st-page-filings .opacity-0 { opacity: 0; }
.st-page-filings .transition-all { transition-property: all; }
.st-page-filings .transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.st-page-filings .transition-opacity { transition-property: opacity; }
.st-page-filings .duration-200 { transition-duration: 200ms; }
.st-page-filings .duration-300 { transition-duration: 300ms; }
.st-page-filings .duration-500 { transition-duration: 500ms; }

.st-page-filings .animate-pulse { animation: st-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.st-page-filings .group:hover .group-hover\:opacity-100 { opacity: 1; }
.st-page-filings .group:hover .group-hover\:text-primary { color: var(--st-primary); }

.st-page-filings .hover\:text-\[\#64f0c8\]:hover { color: #64f0c8; }
.st-page-filings .hover\:text-on-primary-fixed:hover { color: var(--st-on-primary-fixed); }
.st-page-filings .hover\:bg-primary-container:hover { background-color: var(--st-primary-ctr); }
.st-page-filings .hover\:bg-surface-container-highest:hover { background-color: var(--st-surface-highest); }
.st-page-filings .hover\:bg-red-900\/20:hover { background-color: rgba(127, 29, 29, 0.2); }
.st-page-filings .hover\:bg-blue-900\/20:hover { background-color: rgba(30, 58, 138, 0.2); }
.st-page-filings .hover\:bg-yellow-900\/20:hover { background-color: rgba(113, 63, 18, 0.2); }

.st-page-filings .items-end { align-items: flex-end; }
.st-page-filings .justify-end { justify-content: flex-end; }
.st-page-filings .shrink-0 { flex-shrink: 0; }
.st-page-filings .max-h-72 { max-height: 18rem; }
.st-page-filings .overflow-y-auto { overflow-y: auto; }
.st-page-filings .pr-1 { padding-right: 0.25rem; }
.st-page-filings .mt-3 { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .st-page-filings .md\:flex { display: flex; }
  .st-page-filings .md\:flex-row { flex-direction: row; }
  .st-page-filings .md\:items-end { align-items: flex-end; }
}

@media (min-width: 1024px) {
  .st-page-filings .lg\:ml-0 { margin-left: 0; }
  .st-page-filings .lg\:w-1\/4 { width: 25%; }
  .st-page-filings .lg\:flex-row { flex-direction: row; }
  .st-page-filings .lg\:border-r { border-right-style: solid; border-right-width: 1px; }
  .st-page-filings .lg\:border-b-0 { border-bottom-width: 0; }
  .st-page-filings .lg\:pb-0 { padding-bottom: 0; }
  .st-page-filings .lg\:pr-8 { padding-right: 2rem; }
}


/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */

/* Headlines — Space Grotesk */
.st-h1 { font-family: var(--st-font-headline); font-size: var(--st-text-5xl); font-weight: var(--st-fw-bold); line-height: var(--st-lh-tight); letter-spacing: var(--st-ls-tight); color: var(--st-text); }
.st-h2 { font-family: var(--st-font-headline); font-size: var(--st-text-4xl); font-weight: var(--st-fw-bold); line-height: var(--st-lh-tight); letter-spacing: var(--st-ls-tight); color: var(--st-text); }
.st-h3 { font-family: var(--st-font-headline); font-size: var(--st-text-3xl); font-weight: var(--st-fw-semibold); line-height: var(--st-lh-snug); color: var(--st-text); }
.st-h4 { font-family: var(--st-font-headline); font-size: var(--st-text-2xl); font-weight: var(--st-fw-semibold); line-height: var(--st-lh-snug); color: var(--st-text); }
.st-h5 { font-family: var(--st-font-headline); font-size: var(--st-text-xl);  font-weight: var(--st-fw-medium);   line-height: var(--st-lh-base); color: var(--st-text); }
.st-h6 { font-family: var(--st-font-headline); font-size: var(--st-text-lg);  font-weight: var(--st-fw-medium);   line-height: var(--st-lh-base); color: var(--st-text); }

/* Display — ticker-style hero values */
.st-display { font-family: var(--st-font-headline); font-size: var(--st-text-4xl); font-weight: var(--st-fw-bold); line-height: 1; letter-spacing: var(--st-ls-tight); }
.st-display--accent { color: var(--st-primary); }
.st-display--ctr    { color: var(--st-primary-ctr); }

/* Body — Inter */
.st-body    { font-family: var(--st-font-body); font-size: var(--st-text-md);   line-height: var(--st-lh-base);    color: var(--st-text); }
.st-body-sm { font-family: var(--st-font-body); font-size: var(--st-text-base); line-height: var(--st-lh-base);    color: var(--st-text); }
.st-body-lg { font-family: var(--st-font-body); font-size: var(--st-text-lg);   line-height: var(--st-lh-relaxed); color: var(--st-text); }

/* Labels — uppercase, tracking, dim */
.st-label {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-label--sm     { font-size: 9px; letter-spacing: var(--st-ls-wider); }
.st-label--bright { color: var(--st-text); }
.st-label--dim    { color: var(--st-text-dim); }
.st-label--accent { color: var(--st-primary-ctr); }
.st-label--error  { color: var(--st-error); }
.st-label--warn   { color: var(--st-warn); }

/* Value — data display */
.st-value { font-family: var(--st-font-headline); font-size: var(--st-text-xl); font-weight: var(--st-fw-semibold); color: var(--st-text); line-height: 1; }
.st-value--sm  { font-size: var(--st-text-md); }
.st-value--lg  { font-size: var(--st-text-2xl); font-weight: var(--st-fw-bold); }
.st-value--xl  { font-size: var(--st-text-3xl); font-weight: var(--st-fw-bold); }
.st-value--2xl { font-size: var(--st-text-4xl); font-weight: var(--st-fw-bold); }
.st-value--accent { color: var(--st-primary); }
.st-value--ctr    { color: var(--st-primary-ctr); }
.st-value--up     { color: var(--st-primary-ctr); }
.st-value--down   { color: var(--st-error); }
.st-value--warn   { color: var(--st-warn); }
.st-value--dim    { color: var(--st-text-dim); }

/* Change indicator */
.st-change { font-family: var(--st-font-headline); font-size: var(--st-text-sm); font-weight: var(--st-fw-semibold); display: inline-flex; align-items: center; gap: var(--st-sp-1); white-space: nowrap; }
.st-change--up   { color: var(--st-primary-ctr); }
.st-change--down { color: var(--st-error); }
.st-change--flat { color: var(--st-text-dim); }

/* Code / Terminal */
.st-code { font-family: monospace; font-size: var(--st-text-base); color: var(--st-primary-dim); background: var(--st-surface-lowest); padding: var(--st-sp-3) var(--st-sp-4); display: block; line-height: var(--st-lh-relaxed); }
.st-code--inline { display: inline; padding: 1px var(--st-sp-2); font-size: 0.85em; }


/* ============================================================
   6. LAYOUT — CONTAINER & PAGE
   ============================================================ */
.st-page {
  min-height: 100vh;
  background: var(--st-bg);
  color: var(--st-text);
}

.st-container        { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 var(--st-sp-6); }
.st-container--sm    { max-width: 768px; }
.st-container--md    { max-width: 1024px; }
.st-container--lg    { max-width: 1440px; }
.st-container--fluid { max-width: none; }

/* Main canvas — accounts for sticky topbar + sidebar */
.st-canvas {
  padding: var(--st-sp-8);
  min-height: calc(100vh - var(--st-topbar-h));
  margin-top: var(--st-topbar-h);
}
.st-canvas--sidebar {
  margin-left: var(--st-sidebar-w);
}
/* Extra bottom padding on mobile for bottom-nav */
.st-canvas--mobile-nav {
  padding-bottom: 80px;
}

/* Dashboard 3-column */
.st-dashboard {
  display: grid;
  grid-template-columns: var(--st-sidebar-w) 1fr 340px;
  gap: var(--st-sp-6);
  align-items: start;
}
.st-dashboard--wide     { grid-template-columns: 280px 1fr 380px; }
.st-dashboard--no-left  { grid-template-columns: 1fr 340px; }
.st-dashboard--no-right { grid-template-columns: var(--st-sidebar-w) 1fr; }
.st-dashboard--center   { grid-template-columns: 1fr; }

.st-col { display: flex; flex-direction: column; gap: var(--st-sp-6); }
.st-col--sm { gap: var(--st-sp-3); }
.st-col--lg { gap: var(--st-sp-8); }

/* Auto-fill card grids */
.st-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: var(--st-sp-6); }
.st-grid--sm  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.st-grid--lg  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr)); }
.st-grid--2   { grid-template-columns: repeat(2, 1fr); }
.st-grid--3   { grid-template-columns: repeat(3, 1fr); }
.st-grid--4   { grid-template-columns: repeat(4, 1fr); }

/* Divider */
.st-divider { width: 100%; height: 1px; background: var(--st-border-15); border: none; }
.st-divider--bright { background: var(--st-border-30); }
.st-vr { display: inline-block; width: 1px; height: 1em; background: var(--st-border-15); vertical-align: middle; margin: 0 var(--st-sp-3); }


/* ============================================================
   7. LAYOUT — 12-COLUMN GRID
   ============================================================ */
.st-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--st-sp-5);
}
.st-row--gap-sm { gap: var(--st-sp-3); }
.st-row--gap-lg { gap: var(--st-sp-8); }

.st-col-1  { grid-column: span 1; }
.st-col-2  { grid-column: span 2; }
.st-col-3  { grid-column: span 3; }
.st-col-4  { grid-column: span 4; }
.st-col-5  { grid-column: span 5; }
.st-col-6  { grid-column: span 6; }
.st-col-7  { grid-column: span 7; }
.st-col-8  { grid-column: span 8; }
.st-col-9  { grid-column: span 9; }
.st-col-10 { grid-column: span 10; }
.st-col-11 { grid-column: span 11; }
.st-col-12 { grid-column: span 12; }

.st-col-start-2  { grid-column-start: 2; }
.st-col-start-3  { grid-column-start: 3; }
.st-col-start-4  { grid-column-start: 4; }
.st-col-start-7  { grid-column-start: 7; }


/* ============================================================
   8. LAYOUT — FLEX UTILITIES
   ============================================================ */
.st-flex         { display: flex; }
.st-flex--col    { flex-direction: column; }
.st-flex--wrap   { flex-wrap: wrap; }
.st-flex--center { align-items: center; justify-content: center; }
.st-flex--between{ align-items: center; justify-content: space-between; }
.st-flex--start  { align-items: flex-start; }
.st-flex--end    { align-items: flex-end; }
.st-flex--baseline{ align-items: baseline; }
.st-gap-1 { gap: var(--st-sp-1); }
.st-gap-2 { gap: var(--st-sp-2); }
.st-gap-3 { gap: var(--st-sp-3); }
.st-gap-4 { gap: var(--st-sp-4); }
.st-gap-5 { gap: var(--st-sp-5); }
.st-gap-6 { gap: var(--st-sp-6); }
.st-gap-8 { gap: var(--st-sp-8); }
.st-grow  { flex: 1; min-width: 0; }


/* ============================================================
   9. NAVIGATION — TOPBAR
   ============================================================ */
.st-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--st-topbar-h);
  z-index: var(--st-z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--st-sp-6);
  background: var(--st-bg);
  border-bottom: 1px solid var(--st-border-15);
}

.st-topbar__left  { display: flex; align-items: center; gap: var(--st-sp-8); }
.st-topbar__right { display: flex; align-items: center; gap: var(--st-sp-5); }

.st-brand {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xl);
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-tight);
  text-transform: uppercase;
  color: var(--st-primary);
  white-space: nowrap;
}

/* Top-level nav links */
.st-nav {
  display: flex;
  align-items: center;
  gap: var(--st-sp-6);
}
.st-nav__link {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-sm);
  font-weight: var(--st-fw-medium);
  letter-spacing: var(--st-ls-wider);
  text-transform: uppercase;
  color: var(--st-text-muted);
  transition: color var(--st-dur-base) var(--st-ease);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.st-nav__link:hover { color: var(--st-text); }
.st-nav__link.is-active {
  color: var(--st-primary-ctr);
  border-bottom-color: var(--st-primary-ctr);
}

/* Icon button for topbar actions */
.st-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--st-text-muted);
  transition: color var(--st-dur-base) var(--st-ease);
  border-radius: var(--st-r-sm);
}
.st-icon-btn:hover { color: var(--st-primary); }

/* Avatar */
.st-avatar {
  width: 32px; height: 32px;
  border-radius: var(--st-r-sm);
  background: var(--st-surface-high);
  border: 1px solid var(--st-border-15);
  overflow: hidden;
  flex-shrink: 0;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }


/* ============================================================
   10. NAVIGATION — SIDEBAR
   ============================================================ */
.st-sidebar {
  position: fixed;
  top: var(--st-topbar-h);
  left: 0;
  width: var(--st-sidebar-w);
  height: calc(100vh - var(--st-topbar-h));
  display: flex;
  flex-direction: column;
  background: var(--st-bg);
  border-right: 1px solid var(--st-border-15);
  z-index: var(--st-z-sticky);
  overflow-y: auto;
  padding: var(--st-sp-4) 0;
}

.st-sidebar__node {
  padding: var(--st-sp-3) var(--st-sp-6) var(--st-sp-6);
  display: flex;
  align-items: center;
  gap: var(--st-sp-3);
  margin-bottom: var(--st-sp-4);
}
.st-sidebar__node-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--st-primary-ctr);
  box-shadow: var(--st-glow-sm);
  flex-shrink: 0;
  animation: st-pulse 2s ease-in-out infinite;
}
.st-sidebar__node-name {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-lg);
  font-weight: var(--st-fw-bold);
  color: var(--st-primary-ctr);
}
.st-sidebar__node-status {
  font-size: var(--st-text-xs);
  letter-spacing: var(--st-ls-widest);
  color: rgba(100,240,200,0.50);
  text-transform: uppercase;
}

.st-sidebar__nav { flex: 1; display: flex; flex-direction: column; }

.st-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--st-sp-4);
  padding: var(--st-sp-3) var(--st-sp-6);
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-medium);
  letter-spacing: var(--st-ls-wider);
  text-transform: uppercase;
  color: var(--st-text-muted);
  transition: all var(--st-dur-base) var(--st-ease);
  border-right: 2px solid transparent;
}
.st-sidebar__link:hover {
  background: var(--st-surface-low);
  color: var(--st-text);
}
.st-sidebar__link.is-active {
  background: var(--st-surface-low);
  color: var(--st-primary-ctr);
  border-right-color: var(--st-primary-ctr);
}

.st-sidebar__icon { font-size: var(--st-text-xl); flex-shrink: 0; }

.st-sidebar__footer {
  padding: var(--st-sp-4);
  margin-top: auto;
  border-top: 1px solid var(--st-border-15);
  display: flex;
  flex-direction: column;
  gap: var(--st-sp-2);
}


/* ============================================================
   11. NAVIGATION — BOTTOM NAV (MOBILE)
   ============================================================ */
.st-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  z-index: var(--st-z-nav);
  background: rgba(16,20,25,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--st-border-15);
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--st-sp-4);
}
.st-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--st-sp-1) var(--st-sp-4);
  font-family: var(--st-font-headline);
  font-size: 9px;
  letter-spacing: var(--st-ls-widest);
  text-transform: uppercase;
  color: var(--st-text-muted);
  border-radius: var(--st-r-sm);
  transition: all var(--st-dur-base) var(--st-ease);
}
.st-bottom-nav__item:hover  { color: var(--st-text); }
.st-bottom-nav__item.is-active {
  color: var(--st-primary-ctr);
  background: var(--st-surface-high);
}
.st-bottom-nav__icon { font-size: var(--st-text-2xl); }


/* ============================================================
   12. BREADCRUMB
   ============================================================ */
.st-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--st-sp-3);
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xs);
  letter-spacing: var(--st-ls-widest);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.st-breadcrumb__item { color: var(--st-text-muted); }
.st-breadcrumb__item a {
  color: var(--st-text-muted);
  transition: color var(--st-dur-fast) var(--st-ease);
}
.st-breadcrumb__item a:hover { color: var(--st-text); }
.st-breadcrumb__item.is-active { color: var(--st-primary-ctr); }
.st-breadcrumb__sep { color: var(--st-text-muted); opacity: 0.5; font-size: var(--st-text-xs); }


/* ============================================================
   13. TABS
   ============================================================ */
.st-tabs {
  display: flex;
  align-items: stretch;
  gap: var(--st-sp-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.st-tabs::-webkit-scrollbar { display: none; }

.st-tab {
  display: flex;
  align-items: center;
  gap: var(--st-sp-2);
  padding: var(--st-sp-3) var(--st-sp-6);
  background: var(--st-surface-low);
  color: var(--st-text-dim);
  font-family: var(--st-font-headline);
  font-size: var(--st-text-sm);
  letter-spacing: var(--st-ls-wider);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--st-dur-base) var(--st-ease);
}
.st-tab:hover { background: var(--st-surface-high); color: var(--st-text); }
.st-tab.is-active {
  background: var(--st-surface-high);
  color: var(--st-primary);
  border-bottom-color: var(--st-primary-ctr);
}
.st-tab--sm { padding: var(--st-sp-2) var(--st-sp-4); font-size: var(--st-text-xs); }
.st-tab__icon { font-size: var(--st-text-md); }

/* Tab panels */
.st-tab-panel { display: none; }
.st-tab-panel.is-active { display: block; }


/* ============================================================
   14. BADGE
   ============================================================ */
.st-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--st-sp-2);
  padding: 2px var(--st-sp-2);
  font-family: var(--st-font-body);
  font-size: 9px;
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-wider);
  text-transform: uppercase;
  border-radius: var(--st-r-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Variants */
.st-badge--default   { background: var(--st-surface-highest); color: var(--st-text-dim); }
.st-badge--primary   { background: var(--st-secondary-ctr);   color: var(--st-on-secondary-ctr); }
.st-badge--accent    { background: var(--st-primary-12);       color: var(--st-primary-ctr); border: 1px solid var(--st-primary-20); }
.st-badge--error     { background: var(--st-error-12);         color: var(--st-error);       border: 1px solid var(--st-error-30); }
.st-badge--warn      { background: var(--st-warn-bg);          color: var(--st-warn);         border: 1px solid var(--st-warn-border); }
.st-badge--success   { background: rgba(100,240,200,0.10);     color: var(--st-primary-ctr); border: 1px solid var(--st-primary-20); }
.st-badge--dim       { background: transparent;                 color: var(--st-text-muted);  border: 1px solid var(--st-border-30); }

/* Sizes */
.st-badge--sm { font-size: 8px; padding: 1px var(--st-sp-2); }
.st-badge--lg { font-size: var(--st-text-xs); padding: var(--st-sp-1) var(--st-sp-3); }

/* With dot */
.st-badge__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}


/* ============================================================
   15. STATUS / DOT / CHIP
   ============================================================ */
.st-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.st-dot--sm  { width: 6px;  height: 6px; }
.st-dot--lg  { width: 12px; height: 12px; }
.st-dot--live    { background: var(--st-primary-ctr); box-shadow: var(--st-glow-sm); animation: st-pulse 2s ease-in-out infinite; }
.st-dot--accent  { background: var(--st-primary-ctr); box-shadow: var(--st-glow-sm); }
.st-dot--error   { background: var(--st-error);        box-shadow: 0 0 8px rgba(255,180,171,0.30); }
.st-dot--warn    { background: var(--st-warn);          box-shadow: 0 0 8px rgba(255,184,76,0.30); }
.st-dot--neutral { background: var(--st-text-muted); }
.st-dot--dim     { background: var(--st-surface-highest); }

/* Status chip — compact inline indicator */
.st-status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--st-sp-2);
  padding: var(--st-sp-1) var(--st-sp-4);
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-ls-wider);
  text-transform: uppercase;
  border: 1px solid;
  border-radius: var(--st-r-sm);
  white-space: nowrap;
}
.st-status-chip--live    { color: var(--st-primary-ctr); border-color: var(--st-primary-20); background: var(--st-primary-06); }
.st-status-chip--error   { color: var(--st-error);        border-color: var(--st-error-30);   background: var(--st-error-12); }
.st-status-chip--warn    { color: var(--st-warn);          border-color: var(--st-warn-border); background: var(--st-warn-bg); }
.st-status-chip--neutral { color: var(--st-text-muted);    border-color: var(--st-border-30);  background: transparent; }
.st-status-chip--passive { color: var(--st-text-dim);      border-color: var(--st-border-15);  background: var(--st-surface-highest); }


/* ============================================================
   16. ALERT
   ============================================================ */
.st-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--st-sp-4);
  padding: var(--st-sp-4) var(--st-sp-5);
  border-left: 3px solid var(--st-border);
  background: transparent;
  border-radius: var(--st-r-sm);
  animation: st-fade-in var(--st-dur-slow) var(--st-ease-out);
}
.st-alert--accent  { border-left-color: var(--st-primary-ctr); background: var(--st-primary-06); }
.st-alert--error   { border-left-color: var(--st-error);        background: var(--st-error-12); }
.st-alert--warn    { border-left-color: var(--st-warn);          background: var(--st-warn-bg); }
.st-alert--success { border-left-color: var(--st-primary-ctr); background: rgba(100,240,200,0.06); }
.st-alert--info    { border-left-color: var(--st-secondary);     background: rgba(173,206,194,0.08); }

.st-alert__icon { flex-shrink: 0; font-size: var(--st-text-xl); margin-top: 1px; }
.st-alert--accent  .st-alert__icon { color: var(--st-primary-ctr); }
.st-alert--error   .st-alert__icon { color: var(--st-error); }
.st-alert--warn    .st-alert__icon { color: var(--st-warn); }
.st-alert--success .st-alert__icon { color: var(--st-primary-ctr); }
.st-alert--info    .st-alert__icon { color: var(--st-secondary); }

.st-alert__body   { flex: 1; }
.st-alert__title  {
  display: block;
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  margin-bottom: var(--st-sp-1);
}
.st-alert--accent  .st-alert__title { color: var(--st-primary-ctr); }
.st-alert--error   .st-alert__title { color: var(--st-error); }
.st-alert--warn    .st-alert__title { color: var(--st-warn); }
.st-alert--success .st-alert__title { color: var(--st-primary-ctr); }
.st-alert--info    .st-alert__title { color: var(--st-secondary); }

.st-alert__text { font-family: var(--st-font-body); font-size: var(--st-text-sm); color: var(--st-text-dim); line-height: var(--st-lh-snug); }
.st-alert__close {
  flex-shrink: 0;
  background: none; border: none;
  color: var(--st-text-muted);
  font-size: var(--st-text-md);
  cursor: pointer;
  padding: 0 var(--st-sp-1);
  transition: color var(--st-dur-fast);
  line-height: 1;
}
.st-alert__close:hover { color: var(--st-text); }
.st-alert.is-dismissed { display: none; }


/* ============================================================
   17. BUTTON
   ============================================================ */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st-sp-2);
  padding: var(--st-sp-3) var(--st-sp-6);
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-ls-wide);
  text-transform: uppercase;
  border-radius: var(--st-r-sm);
  border: 1px solid var(--st-border-30);
  background: transparent;
  color: var(--st-text-dim);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--st-dur-base) var(--st-ease);
  user-select: none;
  -webkit-user-select: none;
}
.st-btn:hover { border-color: var(--st-primary-ctr); color: var(--st-text); }
.st-btn:active { transform: scale(0.97); }

/* Primary — gradient fill */
.st-btn--primary {
  background: linear-gradient(135deg, var(--st-primary), var(--st-primary-ctr));
  border-color: transparent;
  color: var(--st-on-primary-fixed);
  font-weight: var(--st-fw-bold);
}
.st-btn--primary:hover {
  opacity: 0.92;
  color: var(--st-on-primary-fixed);
  box-shadow: var(--st-glow-sm);
}

/* Secondary — surface fill */
.st-btn--secondary {
  background: var(--st-surface-high);
  border-color: var(--st-border-15);
  color: var(--st-primary-ctr);
}
.st-btn--secondary:hover { background: var(--st-surface-highest); border-color: var(--st-primary-20); }

/* Ghost — teal outline */
.st-btn--ghost {
  background: transparent;
  border-color: var(--st-primary-20);
  color: var(--st-primary-ctr);
}
.st-btn--ghost:hover { background: var(--st-primary-06); border-color: var(--st-primary-30); }

/* Danger */
.st-btn--danger {
  background: transparent;
  border-color: var(--st-error-30);
  color: var(--st-error);
}
.st-btn--danger:hover { background: var(--st-error-12); }

/* Icon-only square button */
.st-btn--icon {
  width: 40px; height: 40px;
  padding: 0;
  background: var(--st-surface-high);
  border-color: var(--st-border-15);
  color: var(--st-primary-ctr);
}
.st-btn--icon:hover { background: var(--st-surface-highest); border-color: var(--st-primary-20); }

/* Sizes */
.st-btn--sm { padding: var(--st-sp-2) var(--st-sp-4); font-size: var(--st-text-xs); }
.st-btn--lg { padding: var(--st-sp-4) var(--st-sp-8); font-size: var(--st-text-base); }
.st-btn--full { width: 100%; }

/* States */
.st-btn:disabled,
.st-btn.is-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.st-btn.is-loading  { pointer-events: none; opacity: 0.7; }

/* Icons inside buttons */
.st-btn .material-symbols-outlined { font-size: 16px; }

/* Button group */
.st-btn-group { display: flex; }
.st-btn-group .st-btn { border-radius: 0; }
.st-btn-group .st-btn:not(:first-child) { border-left: none; }
.st-btn-group .st-btn:first-child { border-radius: var(--st-r-sm) 0 0 var(--st-r-sm); }
.st-btn-group .st-btn:last-child  { border-radius: 0 var(--st-r-sm) var(--st-r-sm) 0; }


/* ============================================================
   18. CARD
   ============================================================ */
.st-card {
  background: var(--st-surface-low);
  overflow: hidden;
  transition: box-shadow var(--st-dur-slow) var(--st-ease);
}
.st-card:hover { box-shadow: var(--st-shadow-md), var(--st-glow-lg); }

.st-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-4) var(--st-sp-5) var(--st-sp-3);
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border-15);
  gap: var(--st-sp-3);
  flex-wrap: wrap;
}
.st-card__title {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text);
}
.st-card__body   { padding: var(--st-sp-5); }
.st-card__footer {
  padding: var(--st-sp-3) var(--st-sp-5);
  border-top: 1px solid var(--st-border-15);
  background: var(--st-surface-lowest);
}

/* Card with left accent bar */
.st-card--accent   { border-left: 2px solid var(--st-primary-ctr); }
.st-card--error    { border-left: 2px solid var(--st-error); }
.st-card--warn     { border-left: 2px solid var(--st-warn); }
.st-card--no-hover { pointer-events: none; }
.st-card--compact .st-card__body { padding: var(--st-sp-3) var(--st-sp-4); }


/* ============================================================
   19. PANEL
   ============================================================ */
.st-panel {
  padding: var(--st-sp-6);
  background: var(--st-surface);
  position: relative;
  overflow: hidden;
}

/* Panel head — label + actions */
.st-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--st-sp-6);
  padding-bottom: var(--st-sp-3);
  border-bottom: 1px solid var(--st-border-15);
  flex-wrap: wrap;
  gap: var(--st-sp-3);
}
.st-panel__title {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-panel__actions { display: flex; align-items: center; gap: var(--st-sp-3); }

.st-panel--compact { padding: var(--st-sp-4); }
.st-panel--flush   { padding: 0; }
.st-panel--glass {
  background: var(--st-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--st-border-15);
}
.st-panel--glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--st-primary-12), transparent);
  pointer-events: none;
}
.st-panel--high    { background: var(--st-surface-high); }
.st-panel--highest { background: var(--st-surface-highest); }

/* Right-side drawer panel */
.st-drawer {
  position: fixed;
  top: var(--st-topbar-h);
  right: 0;
  width: 320px;
  height: calc(100vh - var(--st-topbar-h));
  background: var(--st-surface-low);
  border-left: 1px solid var(--st-border-15);
  z-index: var(--st-z-overlay);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--st-dur-slow) var(--st-ease);
  overflow-y: auto;
}
.st-drawer.is-open { transform: translateX(0); }
.st-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-5) var(--st-sp-6);
  border-bottom: 1px solid var(--st-border-15);
}
.st-drawer__title {
  font-family: var(--st-font-headline);
  font-weight: var(--st-fw-bold);
  color: var(--st-primary);
  letter-spacing: var(--st-ls-tight);
}
.st-drawer__body { flex: 1; padding: var(--st-sp-6); }
.st-drawer__footer {
  padding: var(--st-sp-4) var(--st-sp-6);
  border-top: 1px solid var(--st-border-15);
}


/* ============================================================
   20. KPI
   ============================================================ */
.st-kpi {
  background: var(--st-surface-low);
  padding: var(--st-sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--st-sp-1);
  border-left: 2px solid transparent;
  transition: border-color var(--st-dur-base) var(--st-ease);
}
.st-kpi:hover { border-left-color: var(--st-primary-ctr); }

.st-kpi__label {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-regular);
  letter-spacing: var(--st-ls-widest);
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-kpi__value {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-3xl);
  font-weight: var(--st-fw-bold);
  color: var(--st-text);
  line-height: 1;
  margin-top: var(--st-sp-1);
}
.st-kpi__sub {
  display: flex;
  align-items: center;
  gap: var(--st-sp-2);
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  color: var(--st-text-dim);
  margin-top: var(--st-sp-2);
}
.st-kpi__bar {
  height: 1px;
  margin-top: var(--st-sp-3);
  background: var(--st-surface-highest);
  overflow: hidden;
}
.st-kpi__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--st-secondary-ctr), var(--st-primary-ctr));
  transition: width 600ms var(--st-ease-out);
}

/* KPI variants */
.st-kpi--active { border-left-color: var(--st-primary-ctr); }
.st-kpi--active .st-kpi__value { color: var(--st-primary); }
.st-kpi--error  .st-kpi__value { color: var(--st-error); }
.st-kpi--warn   .st-kpi__value { color: var(--st-warn); }
.st-kpi--dim    .st-kpi__value { color: var(--st-text-dim); }


/* ============================================================
   21. METRIC
   ============================================================ */
.st-metric { display: flex; flex-direction: column; gap: 2px; }
.st-metric__label {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-regular);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-metric__value {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xl);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text);
  line-height: 1.1;
}
.st-metric__sub {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  color: var(--st-text-dim);
  margin-top: 2px;
}

/* Metric row — key / value pair in a list */
.st-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: var(--st-sp-4);
}
.st-metric-row:last-child { border-bottom: none; }
.st-metric-row__label { font-family: var(--st-font-body); font-size: var(--st-text-sm); color: var(--st-text-dim); flex: 1; }
.st-metric-row__value { font-family: var(--st-font-headline); font-size: var(--st-text-sm); font-weight: var(--st-fw-semibold); color: var(--st-text); }

/* Horizontal bar metric */
.st-hbar { display: flex; flex-direction: column; gap: var(--st-sp-3); }
.st-hbar__row     { display: flex; align-items: center; gap: var(--st-sp-3); }
.st-hbar__label   { font-family: var(--st-font-body); font-size: var(--st-text-xs); color: var(--st-text-dim); width: 72px; flex-shrink: 0; }
.st-hbar__track   { flex: 1; height: 2px; background: var(--st-surface-highest); overflow: hidden; }
.st-hbar__fill    { height: 100%; background: linear-gradient(90deg, var(--st-secondary-ctr), var(--st-primary-ctr)); transition: width 600ms var(--st-ease-out); }
.st-hbar__value   { font-family: var(--st-font-headline); font-size: var(--st-text-xs); font-weight: var(--st-fw-semibold); color: var(--st-primary-ctr); min-width: 36px; text-align: right; }


/* ============================================================
   22. PROGRESS
   ============================================================ */
.st-progress { height: 2px; background: var(--st-surface-highest); overflow: hidden; border-radius: var(--st-r-none); }
.st-progress__bar { height: 100%; background: linear-gradient(90deg, var(--st-secondary-ctr), var(--st-primary-ctr)); transition: width 600ms var(--st-ease-out); }
.st-progress--thick { height: 4px; }
.st-progress--xl    { height: 8px; border-radius: var(--st-r-sm); }
.st-progress--error .st-progress__bar { background: linear-gradient(90deg, var(--st-error-ctr), var(--st-error)); }
.st-progress--warn  .st-progress__bar { background: linear-gradient(90deg, #7a4a00, var(--st-warn)); }

/* Circular / radial progress */
.st-radial {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.st-radial svg { transform: rotate(-90deg); }
.st-radial__track { fill: transparent; stroke: var(--st-surface-highest); }
.st-radial__fill  { fill: transparent; stroke: var(--st-primary-ctr); transition: stroke-dashoffset 600ms var(--st-ease-out); }
.st-radial__label {
  position: absolute;
  font-family: var(--st-font-headline);
  font-weight: var(--st-fw-bold);
  font-size: var(--st-text-xs);
  color: var(--st-primary);
  text-align: center;
  line-height: 1;
}

/* Spark bars */
.st-spark { display: flex; align-items: flex-end; gap: 2px; }
.st-spark__bar {
  flex: 1; min-width: 3px; max-width: 10px;
  background: var(--st-primary-ctr);
  opacity: 0.6;
  transition: opacity var(--st-dur-fast);
}
.st-spark:hover .st-spark__bar { opacity: 0.4; }
.st-spark:hover .st-spark__bar:hover { opacity: 1; }
.st-spark__bar--highlight { background: var(--st-error); opacity: 1; }


/* ============================================================
   23. INPUT / FORM
   ============================================================ */
.st-form       { display: flex; flex-direction: column; gap: var(--st-sp-5); }
.st-form-group { display: flex; flex-direction: column; gap: var(--st-sp-2); }
.st-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-sp-5); }
.st-form-row--3{ grid-template-columns: 1fr 1fr 1fr; }

.st-form-label {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-ls-widest);
  text-transform: uppercase;
  color: var(--st-text-muted);
}
.st-form-label--required::after { content: ' *'; color: var(--st-error); }

.st-input,
.st-select,
.st-textarea {
  display: block;
  width: 100%;
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  color: var(--st-text);
  background: var(--st-surface-lowest);
  border: none;
  border-bottom: 2px solid var(--st-border);
  padding: var(--st-sp-3) var(--st-sp-4);
  outline: none;
  transition: border-color var(--st-dur-base) var(--st-ease);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.st-input::placeholder,
.st-textarea::placeholder { color: rgba(133,148,141,0.50); }
.st-input:focus,
.st-select:focus,
.st-textarea:focus { border-bottom-color: var(--st-primary-ctr); }
.st-input:disabled,
.st-select:disabled,
.st-textarea:disabled { opacity: 0.40; cursor: not-allowed; }
.st-input.is-error  { border-bottom-color: var(--st-error); }
.st-input.is-valid  { border-bottom-color: var(--st-primary-ctr); }
.st-input--sm { padding: var(--st-sp-2) var(--st-sp-3); font-size: var(--st-text-xs); }
.st-input--lg { padding: var(--st-sp-4) var(--st-sp-5); font-size: var(--st-text-md); }

.st-select {
  padding-right: var(--st-sp-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2385948d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--st-sp-3) center;
  cursor: pointer;
}

.st-textarea { min-height: 96px; resize: vertical; line-height: var(--st-lh-base); }

/* Search input */
.st-search {
  display: flex;
  align-items: center;
  background: var(--st-surface-lowest);
  border-bottom: 2px solid var(--st-border);
  transition: border-color var(--st-dur-base) var(--st-ease);
  padding: 0 var(--st-sp-3);
}
.st-search:focus-within { border-bottom-color: var(--st-primary-ctr); }
.st-search__icon  { color: var(--st-text-muted); font-size: var(--st-text-lg); flex-shrink: 0; }
.st-search__input {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: var(--st-font-body); font-size: var(--st-text-sm);
  color: var(--st-text); padding: var(--st-sp-3) var(--st-sp-2);
}
.st-search__input::placeholder { color: rgba(133,148,141,0.40); }

/* Checkbox / Radio */
.st-check { display: flex; align-items: center; gap: var(--st-sp-3); cursor: pointer; }
.st-check__box {
  width: 16px; height: 16px;
  flex-shrink: 0;
  appearance: none; -webkit-appearance: none;
  background: var(--st-surface-lowest);
  border: 1px solid var(--st-border);
  border-radius: var(--st-r-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--st-dur-base) var(--st-ease);
}
.st-check__box[type="radio"] { border-radius: 50%; }
.st-check__box:checked { background: var(--st-primary-ctr); border-color: var(--st-primary-ctr); }
.st-check__box:checked::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-6' stroke='%23002118' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}
.st-check__box[type="radio"]:checked::after {
  background: var(--st-bg);
  margin: 3px;
  border-radius: 50%;
}
.st-check__label { font-family: var(--st-font-body); font-size: var(--st-text-sm); color: var(--st-text-dim); cursor: pointer; }

/* Toggle */
.st-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.st-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-toggle__track {
  width: 44px; height: 24px;
  background: var(--st-surface-high);
  border-radius: var(--st-r-full);
  position: relative;
  transition: background var(--st-dur-base) var(--st-ease);
}
.st-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--st-text-muted);
  border-radius: 50%;
  transition: all var(--st-dur-base) var(--st-ease);
}
.st-toggle input:checked + .st-toggle__track { background: var(--st-primary-ctr); }
.st-toggle input:checked + .st-toggle__track::after { transform: translateX(20px); background: var(--st-on-primary-ctr); }

/* Input group */
.st-input-group { display: flex; }
.st-input-group .st-input { flex: 1; }
.st-input-group .st-input:not(:first-child) { border-left: none; }
.st-input-group__addon {
  display: flex; align-items: center;
  padding: 0 var(--st-sp-3);
  background: var(--st-surface-high);
  border-bottom: 2px solid var(--st-border);
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  color: var(--st-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Feedback messages */
.st-form-hint    { font-family: var(--st-font-body); font-size: var(--st-text-xs); color: var(--st-text-muted); margin-top: var(--st-sp-2); }
.st-form-error   { font-family: var(--st-font-body); font-size: var(--st-text-xs); color: var(--st-error); margin-top: var(--st-sp-2); display: flex; align-items: center; gap: var(--st-sp-2); }
.st-form-success { font-family: var(--st-font-body); font-size: var(--st-text-xs); color: var(--st-primary-ctr); margin-top: var(--st-sp-2); }


/* ============================================================
   24. DROPDOWN
   ============================================================ */
.st-dropdown { position: relative; display: inline-flex; }

.st-dropdown__menu {
  position: absolute;
  top: calc(100% + var(--st-sp-2));
  left: 0;
  min-width: 200px;
  z-index: var(--st-z-dropdown);
  background: var(--st-surface-highest);
  border: 1px solid var(--st-border-15);
  box-shadow: var(--st-shadow-lg), var(--st-glow-lg);
  display: none;
  animation: st-fade-in var(--st-dur-base) var(--st-ease-out);
}
.st-dropdown__menu--right { left: auto; right: 0; }

.st-dropdown.is-open .st-dropdown__menu { display: block; }

.st-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--st-sp-3);
  padding: var(--st-sp-3) var(--st-sp-5);
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  color: var(--st-text-dim);
  cursor: pointer;
  transition: all var(--st-dur-fast) var(--st-ease);
  border-left: 2px solid transparent;
}
.st-dropdown__item:hover  { background: var(--st-primary-06); color: var(--st-text); border-left-color: var(--st-primary-ctr); }
.st-dropdown__item.is-active { color: var(--st-primary-ctr); }
.st-dropdown__divider { height: 1px; background: var(--st-border-15); margin: var(--st-sp-2) 0; }
.st-dropdown__label {
  padding: var(--st-sp-2) var(--st-sp-5);
  font-family: var(--st-font-body);
  font-size: 9px;
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-muted);
}


/* ============================================================
   25. MODAL
   ============================================================ */
.st-overlay {
  position: fixed; inset: 0;
  z-index: var(--st-z-overlay);
  background: rgba(10,14,19,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--st-sp-5);
}
.st-overlay.is-open { display: flex; }

.st-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - var(--st-sp-10));
  display: flex;
  flex-direction: column;
  background: var(--st-surface-low);
  border: 1px solid var(--st-border-15);
  box-shadow: var(--st-shadow-xl), var(--st-glow-lg);
  z-index: var(--st-z-modal);
  animation: st-slide-up var(--st-dur-slow) var(--st-ease-out);
}
.st-modal--sm { max-width: 400px; }
.st-modal--lg { max-width: 720px; }
.st-modal--full { width: 100%; height: 100%; max-height: none; border-radius: 0; }

.st-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-5) var(--st-sp-6);
  border-bottom: 1px solid var(--st-border-15);
  background: var(--st-surface);
  gap: var(--st-sp-4);
  flex-shrink: 0;
}
.st-modal__title {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-md);
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-wide);
  text-transform: uppercase;
  color: var(--st-primary);
}
.st-modal__close {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: none;
  border: 1px solid var(--st-border-15);
  color: var(--st-text-muted);
  font-size: var(--st-text-xl);
  cursor: pointer;
  transition: all var(--st-dur-base) var(--st-ease);
  border-radius: var(--st-r-sm);
  flex-shrink: 0;
  line-height: 1;
}
.st-modal__close:hover { color: var(--st-text); border-color: var(--st-primary-ctr); }
.st-modal__body  { padding: var(--st-sp-6); overflow-y: auto; flex: 1; }
.st-modal__foot  {
  padding: var(--st-sp-4) var(--st-sp-6);
  border-top: 1px solid var(--st-border-15);
  display: flex;
  justify-content: flex-end;
  gap: var(--st-sp-4);
  flex-shrink: 0;
}
/* Terminal-style modal body */
.st-modal__terminal {
  padding: var(--st-sp-4);
  background: var(--st-surface-lowest);
  font-family: monospace;
  font-size: var(--st-text-xs);
  color: var(--st-primary-dim);
  max-height: 160px;
  overflow-y: auto;
  line-height: var(--st-lh-relaxed);
  scrollbar-width: none;
}


/* ============================================================
   26. TOAST
   ============================================================ */
.st-toast-container {
  position: fixed;
  bottom: var(--st-sp-6);
  right: var(--st-sp-6);
  z-index: var(--st-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--st-sp-3);
  pointer-events: none;
}

.st-toast {
  display: flex;
  align-items: center;
  gap: var(--st-sp-4);
  padding: var(--st-sp-4) var(--st-sp-5);
  background: var(--st-surface-highest);
  border: 1px solid var(--st-border-15);
  box-shadow: var(--st-shadow-md), var(--st-glow-lg);
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  color: var(--st-text);
  pointer-events: auto;
  min-width: 280px;
  max-width: 360px;
  animation: st-slide-right var(--st-dur-slow) var(--st-ease-out);
}
.st-toast--accent  { border-left: 3px solid var(--st-primary-ctr); }
.st-toast--error   { border-left: 3px solid var(--st-error); }
.st-toast--warn    { border-left: 3px solid var(--st-warn); }
.st-toast--success { border-left: 3px solid var(--st-primary-ctr); }

.st-toast__icon    { flex-shrink: 0; font-size: var(--st-text-xl); }
.st-toast--accent  .st-toast__icon { color: var(--st-primary-ctr); }
.st-toast--error   .st-toast__icon { color: var(--st-error); }
.st-toast--warn    .st-toast__icon { color: var(--st-warn); }
.st-toast--success .st-toast__icon { color: var(--st-primary-ctr); }

.st-toast__message { flex: 1; line-height: var(--st-lh-snug); }
.st-toast__title   { display: block; font-size: var(--st-text-xs); font-weight: var(--st-fw-bold); letter-spacing: var(--st-ls-caps); text-transform: uppercase; margin-bottom: 2px; }
.st-toast--accent  .st-toast__title { color: var(--st-primary-ctr); }
.st-toast--error   .st-toast__title { color: var(--st-error); }
.st-toast--warn    .st-toast__title { color: var(--st-warn); }
.st-toast--success .st-toast__title { color: var(--st-primary-ctr); }

.st-toast__close {
  flex-shrink: 0;
  background: none; border: none;
  color: var(--st-text-muted);
  font-size: var(--st-text-md);
  cursor: pointer;
  transition: color var(--st-dur-fast);
  line-height: 1;
  padding: 0 var(--st-sp-1);
}
.st-toast__close:hover { color: var(--st-text); }


/* ============================================================
   27. ACCORDION
   ============================================================ */
.st-accordion { display: flex; flex-direction: column; gap: var(--st-sp-2); }

.st-accordion__item {
  background: var(--st-surface-high);
  overflow: hidden;
  transition: background var(--st-dur-fast) var(--st-ease);
}
.st-accordion__item.is-open { background: var(--st-surface-highest); }

.st-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-4) var(--st-sp-5);
  width: 100%;
  background: none; border: none;
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  font-weight: var(--st-fw-medium);
  text-align: left;
  cursor: pointer;
  letter-spacing: var(--st-ls-wide);
  text-transform: uppercase;
  transition: all var(--st-dur-fast) var(--st-ease);
  gap: var(--st-sp-4);
}
.st-accordion__trigger:hover { color: var(--st-primary); }
.st-accordion__item.is-open .st-accordion__trigger { color: var(--st-primary); }

.st-accordion__icon {
  flex-shrink: 0;
  font-size: var(--st-text-xl);
  color: var(--st-text-muted);
  transition: transform var(--st-dur-base) var(--st-ease);
}
.st-accordion__item.is-open .st-accordion__icon { transform: rotate(180deg); color: var(--st-primary-ctr); }

.st-accordion__body {
  display: none;
  padding: var(--st-sp-4) var(--st-sp-5);
  border-top: 1px solid var(--st-border-15);
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  color: var(--st-text-dim);
  line-height: var(--st-lh-relaxed);
}
.st-accordion__item.is-open .st-accordion__body { display: block; animation: st-fade-in var(--st-dur-base) var(--st-ease-out); }

/* Single-open variant is controlled by JS via data-stitch-single */


/* ============================================================
   28. LIST
   ============================================================ */
.st-list { display: flex; flex-direction: column; }

.st-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-4) var(--st-sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--st-font-body);
  font-size: var(--st-text-sm);
  color: var(--st-text-dim);
  gap: var(--st-sp-4);
  transition: background var(--st-dur-fast) var(--st-ease);
}
.st-list__item:last-child { border-bottom: none; }
.st-list__item:hover { background: var(--st-primary-06); }
.st-list__item.is-active {
  background: var(--st-primary-06);
  border-left: 2px solid var(--st-primary-ctr);
  color: var(--st-text);
  padding-left: calc(var(--st-sp-5) - 2px);
}

.st-list__item-left  { display: flex; align-items: center; gap: var(--st-sp-3); flex: 1; min-width: 0; }
.st-list__item-right { display: flex; align-items: center; gap: var(--st-sp-2); flex-shrink: 0; }
.st-list__item-title { font-weight: var(--st-fw-semibold); color: var(--st-text); font-family: var(--st-font-headline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-list__item-sub   { font-size: var(--st-text-xs); color: var(--st-text-muted); }

/* Compact list */
.st-list--compact .st-list__item { padding: var(--st-sp-2) var(--st-sp-4); }


/* ============================================================
   29. FEED
   ============================================================ */
.st-feed { display: flex; flex-direction: column; }

.st-feed-item {
  padding: var(--st-sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-left: 2px solid transparent;
  transition: all var(--st-dur-fast) var(--st-ease);
  animation: st-fade-in var(--st-dur-base) var(--st-ease-out);
}
.st-feed-item:last-child { border-bottom: none; }
.st-feed-item:hover { background: var(--st-primary-06); border-left-color: var(--st-primary-ctr); }

/* Variant borders */
.st-feed-item--accent  { border-left-color: var(--st-primary-ctr); }
.st-feed-item--error   { border-left-color: var(--st-error); }
.st-feed-item--warn    { border-left-color: var(--st-warn); }
.st-feed-item--info    { border-left-color: var(--st-secondary); }

.st-feed-item__source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--st-sp-3);
  margin-bottom: var(--st-sp-2);
}
.st-feed-item__tag {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-bold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-primary-ctr);
}
.st-feed-item--error .st-feed-item__tag   { color: var(--st-error); }
.st-feed-item--warn  .st-feed-item__tag   { color: var(--st-warn); }
.st-feed-item--info  .st-feed-item__tag   { color: var(--st-secondary); }

.st-feed-item__time  { font-family: var(--st-font-body); font-size: var(--st-text-xs); color: var(--st-text-muted); }
.st-feed-item__text  { font-family: var(--st-font-body); font-size: var(--st-text-sm); color: var(--st-text-dim); line-height: var(--st-lh-snug); }
.st-feed-item__ticker {
  font-family: var(--st-font-headline);
  font-weight: var(--st-fw-bold);
  color: var(--st-primary-dim);
}
.st-feed-item__meta  {
  display: flex;
  gap: var(--st-sp-4);
  margin-top: var(--st-sp-3);
  font-family: var(--st-font-body);
  font-size: 9px;
  color: var(--st-text-muted);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
}

/* Terminal-style log feed */
.st-log-item {
  display: flex;
  align-items: flex-start;
  gap: var(--st-sp-3);
  padding: var(--st-sp-2) var(--st-sp-4);
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  line-height: var(--st-lh-relaxed);
  border-left: 2px solid transparent;
}
.st-log-item--highlight { background: var(--st-surface); border-left-color: var(--st-primary-ctr); }
.st-log-item__ts   { color: var(--st-primary-dim); font-weight: var(--st-fw-semibold); white-space: nowrap; flex-shrink: 0; }
.st-log-item__msg  { color: var(--st-text-dim); }
.st-log-item__msg--bright { color: var(--st-text); }


/* ============================================================
   30. TABLE
   ============================================================ */
.st-table-wrap { width: 100%; overflow-x: auto; }

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--st-text-sm);
}

.st-table thead tr {
  border-bottom: 1px solid var(--st-border-15);
  background: var(--st-surface);
}
.st-table th {
  padding: var(--st-sp-4) var(--st-sp-5);
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-semibold);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-dim);
  text-align: left;
  white-space: nowrap;
  user-select: none;
}
.st-table th[data-sort] { cursor: pointer; transition: color var(--st-dur-fast); }
.st-table th[data-sort]:hover  { color: var(--st-text); }
.st-table th.is-sorted  { color: var(--st-primary-ctr); }
.st-table .st-sort-icon { font-size: var(--st-text-xs); margin-left: var(--st-sp-1); opacity: 0.40; }
.st-table th.is-sorted .st-sort-icon { opacity: 1; }
.st-table th.is-sorted-asc  .st-sort-icon::after { content: '▲'; }
.st-table th.is-sorted-desc .st-sort-icon::after { content: '▼'; }

.st-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--st-dur-fast) var(--st-ease);
}
.st-table tbody tr:hover { background: var(--st-primary-06); }
.st-table tbody tr.is-selected { background: var(--st-primary-06); border-left: 2px solid var(--st-primary-ctr); }

.st-table td {
  padding: var(--st-sp-4) var(--st-sp-5);
  font-family: var(--st-font-body);
  color: var(--st-text);
  white-space: nowrap;
}
.st-table .td-num   { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--st-font-headline); }
.st-table .td-dim   { color: var(--st-text-dim); }
.st-table .td-label { font-family: var(--st-font-headline); font-weight: var(--st-fw-semibold); }
.st-table .td-ticker {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-lg);
  font-weight: var(--st-fw-bold);
  color: var(--st-primary-dim);
}

/* Sizes */
.st-table--compact th,
.st-table--compact td { padding: var(--st-sp-2) var(--st-sp-4); }

.st-table--striped tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }

/* Table toolbar */
.st-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-4) var(--st-sp-5) var(--st-sp-3);
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border-15);
  gap: var(--st-sp-4);
  flex-wrap: wrap;
}
.st-table-toolbar__title {
  font-family: var(--st-font-headline);
  font-size: var(--st-text-lg);
  font-weight: var(--st-fw-bold);
  color: var(--st-primary);
}
.st-table-toolbar__actions { display: flex; align-items: center; gap: var(--st-sp-3); }
.st-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-sp-3) var(--st-sp-5);
  border-top: 1px solid var(--st-border-15);
  gap: var(--st-sp-4);
  flex-wrap: wrap;
}
.st-table-footer__info {
  font-family: var(--st-font-body);
  font-size: var(--st-text-xs);
  letter-spacing: var(--st-ls-caps);
  text-transform: uppercase;
  color: var(--st-text-dim);
}


/* ============================================================
   31. PAGINATION
   ============================================================ */
.st-pagination { display: flex; align-items: center; gap: var(--st-sp-1); }

.st-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px; height: 32px;
  padding: 0 var(--st-sp-2);
  background: var(--st-surface-high);
  border: none;
  font-family: var(--st-font-headline);
  font-size: var(--st-text-xs);
  font-weight: var(--st-fw-semibold);
  color: var(--st-text-dim);
  cursor: pointer;
  transition: all var(--st-dur-fast) var(--st-ease);
  white-space: nowrap;
}
.st-page-btn:hover    { background: var(--st-surface-highest); color: var(--st-text); }
.st-page-btn.is-active { background: var(--st-primary-ctr); color: var(--st-on-primary-ctr); font-weight: var(--st-fw-bold); }
.st-page-btn:disabled  { opacity: 0.30; cursor: not-allowed; pointer-events: none; }
.st-page-btn.u-no-pointer { cursor: default; background: transparent; color: var(--st-text-dim); }


/* ============================================================
   32. SPINNER & SKELETON
   ============================================================ */
.st-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--st-border-15);
  border-top-color: var(--st-primary-ctr);
  border-radius: 50%;
  animation: st-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.st-spinner--sm { width: 14px; height: 14px; border-width: 1.5px; }
.st-spinner--lg { width: 32px; height: 32px; border-width: 3px; }
.st-spinner--xl { width: 48px; height: 48px; border-width: 4px; }

.st-skeleton {
  background: linear-gradient(90deg,
    var(--st-surface-high) 25%,
    var(--st-surface-highest) 50%,
    var(--st-surface-high) 75%
  );
  background-size: 200% 100%;
  animation: st-shimmer 1.5s infinite;
  border-radius: var(--st-r-sm);
}
.st-skeleton--text  { height: 11px; width: 80%; margin-bottom: var(--st-sp-2); }
.st-skeleton--title { height: 18px; width: 55%; margin-bottom: var(--st-sp-3); }
.st-skeleton--value { height: 28px; width: 40%; }
.st-skeleton--bar   { height: 3px;  width: 100%; }
.st-skeleton--avatar{ width: 32px;  height: 32px; border-radius: var(--st-r-sm); }


/* ============================================================
   33. EMPTY STATE
   ============================================================ */
.st-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--st-sp-12);
  gap: var(--st-sp-4);
  text-align: center;
}
.st-empty__icon { font-size: 48px; color: var(--st-text-muted); opacity: 0.5; line-height: 1; }
.st-empty__title { font-family: var(--st-font-headline); font-size: var(--st-text-xs); font-weight: var(--st-fw-bold); letter-spacing: var(--st-ls-caps); text-transform: uppercase; color: var(--st-text-dim); }
.st-empty__sub   { font-family: var(--st-font-body); font-size: var(--st-text-sm); color: var(--st-text-muted); max-width: 280px; line-height: var(--st-lh-relaxed); }


/* ============================================================
   34. UTILITIES
   ============================================================ */

/* Display */
.st-d-none        { display: none !important; }
.st-d-block       { display: block !important; }
.st-d-flex        { display: flex !important; }
.st-d-inline-flex { display: inline-flex !important; }
.st-d-grid        { display: grid !important; }

/* Visibility */
.st-visible   { visibility: visible !important; }
.st-invisible { visibility: hidden !important; }

/* Position */
.st-relative { position: relative !important; }
.st-absolute { position: absolute !important; }
.st-fixed    { position: fixed !important; }
.st-sticky   { position: sticky !important; }
.st-inset-0  { inset: 0 !important; }

/* Sizing */
.st-w-full   { width: 100% !important; }
.st-h-full   { height: 100% !important; }
.st-h-screen { height: 100vh !important; }
.st-min-w-0  { min-width: 0 !important; }

/* Overflow */
.st-overflow-hidden  { overflow: hidden !important; }
.st-overflow-auto    { overflow: auto !important; }
.st-overflow-x-auto  { overflow-x: auto !important; }
.st-overflow-y-auto  { overflow-y: auto !important; }
.st-no-scrollbar::-webkit-scrollbar { display: none; }
.st-no-scrollbar { scrollbar-width: none; }

/* Text */
.st-text-left    { text-align: left !important; }
.st-text-center  { text-align: center !important; }
.st-text-right   { text-align: right !important; }
.st-text-upper   { text-transform: uppercase !important; }
.st-text-normal  { text-transform: none !important; }
.st-fw-light     { font-weight: var(--st-fw-light) !important; }
.st-fw-regular   { font-weight: var(--st-fw-regular) !important; }
.st-fw-medium    { font-weight: var(--st-fw-medium) !important; }
.st-fw-semibold  { font-weight: var(--st-fw-semibold) !important; }
.st-fw-bold      { font-weight: var(--st-fw-bold) !important; }
.st-truncate     { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.st-nowrap       { white-space: nowrap !important; }
.st-clamp-1      { display: -webkit-box !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden !important; }
.st-clamp-2      { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important; }

/* Colors */
.st-c-text    { color: var(--st-text) !important; }
.st-c-dim     { color: var(--st-text-dim) !important; }
.st-c-muted   { color: var(--st-text-muted) !important; }
.st-c-primary { color: var(--st-primary) !important; }
.st-c-ctr     { color: var(--st-primary-ctr) !important; }
.st-c-error   { color: var(--st-error) !important; }
.st-c-warn    { color: var(--st-warn) !important; }
.st-c-secondary { color: var(--st-secondary) !important; }

/* Backgrounds */
.st-bg-page     { background: var(--st-bg) !important; }
.st-bg-surface  { background: var(--st-surface) !important; }
.st-bg-low      { background: var(--st-surface-low) !important; }
.st-bg-high     { background: var(--st-surface-high) !important; }
.st-bg-highest  { background: var(--st-surface-highest) !important; }
.st-bg-lowest   { background: var(--st-surface-lowest) !important; }
.st-bg-primary  { background: var(--st-primary-06) !important; }
.st-bg-error    { background: var(--st-error-12) !important; }
.st-bg-warn     { background: var(--st-warn-bg) !important; }

/* Border */
.st-border-none { border: none !important; }
.st-border-b    { border-bottom: 1px solid var(--st-border-15) !important; }
.st-border-t    { border-top: 1px solid var(--st-border-15) !important; }
.st-border-l    { border-left: 1px solid var(--st-border-15) !important; }
.st-border-r    { border-right: 1px solid var(--st-border-15) !important; }
.st-border-ctr  { border-color: var(--st-primary-ctr) !important; }
.st-border-error{ border-color: var(--st-error) !important; }
.st-r-none { border-radius: 0 !important; }
.st-r-sm   { border-radius: var(--st-r-sm) !important; }
.st-r-md   { border-radius: var(--st-r-md) !important; }
.st-r-full { border-radius: var(--st-r-full) !important; }

/* Opacity */
.st-opacity-0   { opacity: 0 !important; }
.st-opacity-25  { opacity: 0.25 !important; }
.st-opacity-50  { opacity: 0.50 !important; }
.st-opacity-75  { opacity: 0.75 !important; }
.st-opacity-100 { opacity: 1 !important; }

/* Glow / shadow */
.st-glow-sm    { box-shadow: var(--st-glow-sm) !important; }
.st-glow-md    { box-shadow: var(--st-glow-md) !important; }
.st-shadow-md  { box-shadow: var(--st-shadow-md) !important; }
.st-shadow-lg  { box-shadow: var(--st-shadow-lg) !important; }

/* Spacing — padding */
.st-p-0  { padding: 0 !important; }
.st-p-3  { padding: var(--st-sp-3) !important; }
.st-p-4  { padding: var(--st-sp-4) !important; }
.st-p-5  { padding: var(--st-sp-5) !important; }
.st-p-6  { padding: var(--st-sp-6) !important; }
.st-p-8  { padding: var(--st-sp-8) !important; }
.st-px-4 { padding-left: var(--st-sp-4) !important; padding-right: var(--st-sp-4) !important; }
.st-px-6 { padding-left: var(--st-sp-6) !important; padding-right: var(--st-sp-6) !important; }
.st-py-3 { padding-top: var(--st-sp-3) !important; padding-bottom: var(--st-sp-3) !important; }
.st-py-4 { padding-top: var(--st-sp-4) !important; padding-bottom: var(--st-sp-4) !important; }
.st-pt-4 { padding-top: var(--st-sp-4) !important; }
.st-pb-4 { padding-bottom: var(--st-sp-4) !important; }

/* Spacing — margin */
.st-m-0     { margin: 0 !important; }
.st-mt-1    { margin-top: var(--st-sp-1) !important; }
.st-mt-2    { margin-top: var(--st-sp-2) !important; }
.st-mt-3    { margin-top: var(--st-sp-3) !important; }
.st-mt-4    { margin-top: var(--st-sp-4) !important; }
.st-mt-5    { margin-top: var(--st-sp-5) !important; }
.st-mt-6    { margin-top: var(--st-sp-6) !important; }
.st-mt-8    { margin-top: var(--st-sp-8) !important; }
.st-mb-3    { margin-bottom: var(--st-sp-3) !important; }
.st-mb-4    { margin-bottom: var(--st-sp-4) !important; }
.st-mb-5    { margin-bottom: var(--st-sp-5) !important; }
.st-mb-6    { margin-bottom: var(--st-sp-6) !important; }
.st-mb-8    { margin-bottom: var(--st-sp-8) !important; }
.st-ml-auto { margin-left: auto !important; }
.st-mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Cursor */
.st-pointer    { cursor: pointer !important; }
.st-no-pointer { pointer-events: none !important; }
.st-no-select  { user-select: none !important; }

/* Z-index */
.st-z-raised   { z-index: var(--st-z-raised) !important; }
.st-z-sticky   { z-index: var(--st-z-sticky) !important; }
.st-z-nav      { z-index: var(--st-z-nav) !important; }
.st-z-dropdown { z-index: var(--st-z-dropdown) !important; }
.st-z-modal    { z-index: var(--st-z-modal) !important; }
.st-z-toast    { z-index: var(--st-z-toast) !important; }

/* Font family */
.st-font-headline { font-family: var(--st-font-headline) !important; }
.st-font-body     { font-family: var(--st-font-body) !important; }

/* Object fit */
.st-cover   { object-fit: cover !important; }
.st-contain { object-fit: contain !important; }

/* Focus ring */
.st-focus-ring:focus-visible { outline: 2px solid var(--st-primary-ctr); outline-offset: 2px; }

/* Grayscale util */
.st-grayscale          { filter: grayscale(1); }
.st-grayscale--hover:hover { filter: grayscale(0); }


/* ============================================================
   35. RESPONSIVE OVERRIDES
   ============================================================ */

/* ─── Tablet ≤ 1200px ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .st-dashboard { grid-template-columns: 1fr 300px; }
  .st-dashboard > .st-col--left { display: none; }
  .st-grid--3, .st-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .st-sidebar { display: none; }
  .st-canvas--sidebar { margin-left: 0; }

  /* 12-col stacking */
  .st-col-3 { grid-column: span 6; }
  .st-col-4 { grid-column: span 6; }
  .st-col-9 { grid-column: span 6; }
  .st-col-8 { grid-column: span 6; }
}

/* ─── Mobile ≤ 768px ───────────────────────────────────────── */
@media (max-width: 768px) {
  .st-canvas          { padding: var(--st-sp-4); }
  .st-canvas--sidebar { margin-left: 0; }
  .st-dashboard { grid-template-columns: 1fr; }
  .st-dashboard > .st-col--right { display: none; }

  .st-grid--2, .st-grid--3, .st-grid--4 { grid-template-columns: 1fr; }

  /* Show bottom nav, hide desktop sidebar nav */
  .st-bottom-nav { display: flex; }
  .st-nav { display: none; }

  /* 12-col: everything spans full or half */
  .st-row { grid-template-columns: 1fr 1fr; }
  .st-col-1, .st-col-2 { grid-column: span 1; }
  .st-col-3, .st-col-4, .st-col-5, .st-col-6 { grid-column: span 2; }
  .st-col-7, .st-col-8, .st-col-9, .st-col-10,
  .st-col-11,.st-col-12 { grid-column: span 2; }

  .st-form-row, .st-form-row--3 { grid-template-columns: 1fr; }

  /* Topbar */
  .st-topbar__right .st-d-hide-mobile { display: none; }

  /* Table horizontal scroll already handled by .st-table-wrap */
  .st-table--compact th,
  .st-table--compact td { padding: var(--st-sp-2) var(--st-sp-3); }

  /* Toast full-width on mobile */
  .st-toast-container { left: var(--st-sp-4); right: var(--st-sp-4); bottom: 80px; }
  .st-toast { min-width: 0; max-width: none; }

  /* Modal full-screen on mobile */
  .st-overlay { padding: 0; align-items: flex-end; }
  .st-modal {
    width: 100%;
    max-height: 92vh;
    border-bottom: none;
    border-radius: var(--st-r-md) var(--st-r-md) 0 0;
  }

  /* Drawer full-width */
  .st-drawer { width: 100%; }
}

/* ─── Small mobile ≤ 480px ─────────────────────────────────── */
@media (max-width: 480px) {
  :root { --st-sidebar-w: 0px; }
  .st-tabs { gap: 0; }
  .st-tab { padding: var(--st-sp-3) var(--st-sp-4); font-size: 9px; }
  .st-kpi { padding: var(--st-sp-4); }
  .st-kpi__value { font-size: var(--st-text-2xl); }
}

/* ─── Filings Page Custom Styles ─────────────────────────────── */

/* Top Header */
.st-filings-header {
  width: 100%;
  height: 64px;
  top: 0;
  position: sticky;
  z-index: 50;
  background: #101419;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(100, 240, 200, 0.1);
}
.st-filings-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.st-filings-brand__title {
  font-family: var(--st-font-headline);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #d3ffed;
}
.st-filings-brand__title span {
  color: var(--st-text);
}
.st-filings-brand__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--st-surface-low);
  border-radius: 4px;
}
.st-filings-brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-primary-container);
  animation: st-pulse 2s infinite;
}
.st-filings-brand__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-primary);
}
.st-filings-nav {
  display: none;
}
@media (min-width: 768px) {
  .st-filings-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    font-family: var(--st-font-headline);
    letter-spacing: -0.02em;
  }
}
.st-filings-nav__link {
  color: #64f0c8;
  border-bottom: 2px solid #64f0c8;
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 0.2s;
}
.st-filings-nav__link:hover {
  color: #64f0c8;
}
.st-filings-status {
  display: flex;
  align-items: center;
  gap: 16px;
}
.st-filings-status__item {
  font-size: 10px;
  font-family: var(--st-font-mono);
  color: var(--st-text-muted);
}

/* Ticker Tape */
.st-ticker-tape {
  width: 100%;
  height: 40px;
  background: var(--st-surface-highest);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  border-left: 4px solid var(--st-primary-container);
  margin-bottom: 48px;
}
.st-ticker-content {
  display: flex;
  animation: st-marquee 20s linear infinite;
  gap: 48px;
  align-items: center;
}
.st-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-ticker-symbol {
  font-family: var(--st-font-headline);
  font-weight: 700;
  color: var(--st-primary-container);
}
.st-ticker-value {
  color: var(--st-text);
}
.st-ticker-change {
  font-size: 10px;
  color: var(--st-primary);
}
.st-ticker-change--negative {
  color: var(--st-error);
}

@keyframes st-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes st-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Page Header */
.st-page-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
@media (min-width: 768px) {
  .st-page-header {
    flex-direction: row;
    align-items: flex-end;
  }
}
.st-page-title {
  font-family: var(--st-font-headline);
  font-size: 48px;
  font-weight: 800;
  color: var(--st-text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.st-page-subtitle {
  color: var(--st-text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* KPI Cards */
.st-kpi-card {
  background: var(--st-surface-low);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.st-kpi-card--border {
  border-left: 1px solid rgba(100, 240, 200, 0.2);
}
.st-kpi-card__label {
  font-size: 10px;
  color: var(--st-text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.st-kpi-card__value {
  font-family: var(--st-font-headline);
  font-size: 36px;
  font-weight: 900;
}
.st-kpi-card__value--primary {
  color: var(--st-primary-container);
}

/* Filing Event Chip — reusable across any filing view */
.filing-event-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 2px;
  line-height: 1;
}

/* BSE exchange badge */
.badge-bse {
  background: #5c2a2a !important;
  color: #ff6b6b !important;
}

/* Filings Search Form */
.filings-search-form {
  overflow: visible;
  padding: var(--st-sp-2) var(--st-sp-3);
}
.filings-search-form__row {
  display: flex;
  align-items: center;
  gap: var(--st-sp-2);
  flex-wrap: nowrap;
}
.filings-search-form__input {
  flex: 1 1 auto;
  min-width: 80px;
}
.filings-search-form .material-symbols-outlined {
  font-size: 16px;
}

/* Events Filter — one item per line, scrollable */
.events-filter-list {
  display: flex;
  flex-direction: column;
  max-height: 55vh;
  overflow-y: auto;
}
.events-filter-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--st-sp-3);
  width: 100%;
  padding: var(--st-sp-3) var(--st-sp-2);
  border-bottom: 1px solid var(--st-border-10);
  cursor: pointer;
  font-size: var(--st-text-sm);
  color: var(--st-text);
  user-select: none;
}
.events-filter-item:last-child { border-bottom: none; }
.events-filter-item:hover { background: var(--st-surface-highest); }
.events-filter-item input[type="checkbox"] { flex-shrink: 0; }
/* Small color swatch — subtle type identifier, not a full colored chip */
.events-filter-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Filing Card */
.st-filing-card {
  position: relative;
  background: var(--st-surface-low);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(100, 240, 200, 0.1);
}
@media (min-width: 1024px) {
  .st-filing-card {
    flex-direction: row;
  }
}
.st-filing-card:last-child {
  border-bottom: none;
}
.st-filing-card--hover:hover {
  background: rgba(100, 240, 200, 0.03);
}

/* Filing Card - Left Panel */
.st-filing-left {
  width: 100%;
}
@media (min-width: 1024px) {
  .st-filing-left {
    width: 25%;
    border-bottom: 1px solid rgba(100, 240, 200, 0.3);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .st-filing-card:last-child .st-filing-left {
    border-bottom: none;
    margin-bottom: 0;
  }
}
.st-filing-left__exchange {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.st-filing-left__badge {
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--st-primary-container);
  color: var(--st-on-primary-fixed);
}
.st-filing-left__badge--bse {
  background: #b56a6a;
  color: #fff;
}
.st-filing-left__code {
  font-size: 10px;
  font-family: var(--st-font-mono);
  color: var(--st-text-muted);
  letter-spacing: 0.1em;
}
.st-filing-left__symbol {
  font-family: var(--st-font-headline);
  font-size: 48px;
  font-weight: 900;
  color: var(--st-text);
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.st-filing-card:hover .st-filing-left__symbol {
  color: var(--st-primary);
}
.st-filing-left__name {
  color: var(--st-text-muted);
  font-size: 12px;
  margin-top: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-filing-left__industry {
  font-size: 10px;
  font-family: var(--st-font-mono);
  color: var(--st-text-muted);
  margin-top: 8px;
  line-height: 1.4;
}
.st-filing-left__listing {
  font-size: 10px;
  font-family: var(--st-font-mono);
  color: var(--st-text-muted);
  margin-top: 4px;
}
.st-filing-left__meta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-filing-left__meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-family: var(--st-font-mono);
  color: var(--st-text-muted);
  text-transform: uppercase;
}

/* Filing Card - Right Panel */
.st-filing-right {
  flex: 1;
}
.st-filing-subject {
  font-family: var(--st-font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--st-text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.st-filing-datetime {
  font-size: 12px;
  font-family: var(--st-font-mono);
  color: var(--st-text-muted);
  margin-bottom: 16px;
}
.st-filing-meeting {
  font-family: var(--st-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--st-error);
  display: block;
  margin-bottom: 16px;
}
.st-filing-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.st-filing-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(100, 240, 200, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--st-text);
  transition: all 0.2s;
}
.st-filing-download:hover {
  background: rgba(100, 240, 200, 0.1);
  border-color: var(--st-primary);
}
.st-filing-download__icon {
  font-size: 18px;
}
.st-filing-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* AI Summary Section */
.st-filing-ai {
  background: rgba(100, 240, 200, 0.05);
  padding: 24px;
  border-left: 2px solid rgba(100, 240, 200, 0.4);
}
.st-filing-ai--error {
  border-left-color: rgba(255, 95, 95, 0.4);
}
.st-filing-ai__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.st-filing-ai__icon {
  font-size: 18px;
  color: var(--st-primary-container);
}
.st-filing-ai--error .st-filing-ai__icon {
  color: var(--st-error);
}
.st-filing-ai__label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-primary-container);
}
.st-filing-ai--error .st-filing-ai__label {
  color: var(--st-error);
}
.st-filing-ai__summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--st-text-dim);
}

/* Description Section */
.st-filing-desc {
  background: rgba(100, 240, 200, 0.02);
  padding: 24px;
  border-left: 2px solid rgba(100, 240, 200, 0.2);
}
.st-filing-desc__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--st-text-dim);
}

/* Tags */
.st-filing-tags-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.st-filing-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.st-tag {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--st-secondary-container);
  color: var(--st-on-secondary-container);
}
/* Hidden status chip — reusable across any filing view */
.filing-hidden-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ff9f9f;
  background: rgba(255, 95, 95, 0.12);
  padding: 2px 6px;
  border-radius: 2px;
}

.st-hidden-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ff9f9f;
  background: rgba(255, 95, 95, 0.12);
  padding: 4px 8px;
  border-radius: 2px;
}
.st-hidden-chip__icon {
  font-size: 14px;
}
.st-hidden-chip--end {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Accordion */
.st-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--st-text-muted);
  font-size: 14px;
  font-family: var(--st-font-mono);
}
.st-accordion-trigger__icon {
  font-size: 14px;
}

/* Pagination */
.st-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  margin-bottom: 96px;
  font-family: var(--st-font-mono);
  font-size: 12px;
}
.st-pagination__link {
  padding: 8px 12px;
  background: var(--st-surface-highest);
  color: var(--st-text);
  text-decoration: none;
  transition: all 0.2s;
}
.st-pagination__link:hover {
  background: var(--st-primary-container);
  color: var(--st-on-primary-fixed);
}
.st-pagination__link--disabled {
  color: var(--st-text-muted);
  pointer-events: none;
}
.st-pagination__current {
  padding: 8px 12px;
  background: var(--st-primary-container);
  color: var(--st-on-primary-fixed);
  font-weight: 900;
}

/* Body text utilities */
.st-body-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--st-text-dim);
}
.st-body-xs {
  font-size: 10px;
}
.st-body-sm {
  font-size: 14px;
}
.st-body-lg {
  font-size: 18px;
}

/* Font utilities */
.st-font-headline {
  font-family: var(--st-font-headline);
}
.st-font-mono {
  font-family: var(--st-font-mono);
}

/* Text utilities */
.st-text-primary {
  color: var(--st-primary);
}
.st-text-error {
  color: var(--st-error);
}
.st-text-muted {
  color: var(--st-text-muted);
}
.st-text-dim {
  color: var(--st-text-dim);
}

/* Background utilities */
.st-bg-surface {
  background: var(--st-surface);
}
.st-bg-surface-low {
  background: var(--st-surface-low);
}
.st-bg-surface-highest {
  background: var(--st-surface-highest);
}
.st-bg-primary {
  background: var(--st-primary-container);
}

/* Spacing utilities */
.st-mt-1 { margin-top: 4px; }
.st-mt-2 { margin-top: 8px; }
.st-mt-3 { margin-top: 12px; }
.st-mt-4 { margin-top: 16px; }
.st-mt-8 { margin-top: 32px; }
.st-mb-2 { margin-bottom: 8px; }
.st-mb-4 { margin-bottom: 16px; }
.st-mb-12 { margin-bottom: 48px; }
.st-mr-2 { margin-right: 8px; }
.st-mr-4 { margin-right: 16px; }
.st-ml-2 { margin-left: 8px; }
.st-ml-4 { margin-left: 16px; }

.st-p-2 { padding: 8px; }
.st-p-4 { padding: 16px; }
.st-p-6 { padding: 24px; }
.st-p-8 { padding: 32px; }

.st-gap-1 { gap: 4px; }
.st-gap-2 { gap: 8px; }
.st-gap-4 { gap: 16px; }
.st-gap-6 { gap: 24px; }
.st-gap-8 { gap: 32px; }
.st-gap-12 { gap: 48px; }

/* Flex utilities */
.st-flex { display: flex; }
.st-flex--col { flex-direction: column; }
.st-flex--wrap { flex-wrap: wrap; }
.st-items-center { align-items: center; }
.st-items-start { align-items: flex-start; }
.st-justify-between { justify-content: space-between; }
.st-justify-end { justify-content: flex-end; }
.st-justify-center { justify-content: center; }
.st-flex-1 { flex: 1; }
.st-flex-shrink-0 { flex-shrink: 0; }

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

/* Display utilities */
.st-block { display: block; }
.st-inline { display: inline; }
.st-inline-flex { display: inline-flex; }
.st-hidden { display: none; }

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

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

/* Text utilities */
.st-text-center { text-align: center; }
.st-text-left { text-align: left; }
.st-text-right { text-align: right; }
.st-text-upper { text-transform: uppercase; }
.st-text-lower { text-transform: lowercase; }
.st-text-cap { text-transform: capitalize; }
.st-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Border utilities */
.st-border { border: 1px solid var(--st-border); }
.st-border-b { border-bottom: 1px solid var(--st-border); }
.st-border-t { border-top: 1px solid var(--st-border); }
.st-border-l { border-left: 1px solid var(--st-border); }
.st-border-r { border-right: 1px solid var(--st-border); }

/* Rounded utilities */
.st-rounded-sm { border-radius: 2px; }
.st-rounded { border-radius: 4px; }
.st-rounded-md { border-radius: 8px; }
.st-rounded-full { border-radius: 9999px; }

/* Cursor utilities */
.st-pointer { cursor: pointer; }

/* Group hover utility */
.st-group:hover .st-group-hover\:opacity-100 {
  opacity: 1;
}

/* ─── Filings Page — Hidden Accordion / Card ────────────────── */
/* Accordion must be full-width so hidden cards match visible card width */
.st-page-filings .hidden-accordion { width: 100%; }
.st-page-filings .hidden-accordion .st-accordion__item { overflow: visible; }
/* Cover both the base rule and the .is-open combined rule — both set padding */
.st-page-filings .hidden-accordion .st-accordion__body,
.st-page-filings .hidden-accordion .st-accordion__item.is-open .st-accordion__body {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.st-page-filings .hidden-card { margin-bottom: 3rem; }
.st-page-filings .hidden-card:last-child { margin-bottom: 0; }

/* ─── Filings Page — Mobile overrides ≤ 1024px ─────────────── */
@media (max-width: 1024px) {
  /* Search form: take full row width */
  #filings-kpis .filings-search-form {
    flex-basis: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  /* Search input stretches, buttons stay fixed size */
  #filings-kpis .filings-search-form__input {
    flex: 1 1 auto !important;
    min-width: 80px !important;
  }
  #filings-kpis .filings-search-form__row .st-btn {
    flex-shrink: 0 !important;
  }
  /* Advanced search modal — full width, compact */
  #advanced-search-modal.st-overlay {
    padding: 8px !important;
    align-items: center !important;
  }
  #advanced-search-modal .st-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
  #advanced-search-modal .st-modal__head {
    padding: 12px 16px !important;
  }
  #advanced-search-modal .st-modal__title {
    font-size: 16px !important;
  }
  #advanced-search-modal .st-modal__body {
    padding: 12px 16px !important;
  }
  /* Stack date row vertically on mobile so inputs aren't too narrow */
  #advanced-search-modal .st-form-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  #advanced-search-modal .st-modal__body .st-form-group {
    margin-bottom: 8px !important;
  }
  #advanced-search-modal .st-modal__body .st-form-label {
    font-size: 12px !important;
  }
  #advanced-search-modal .st-modal__body .st-input {
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
  #advanced-search-modal .st-modal__foot {
    padding: 10px 16px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
  #advanced-search-modal .st-modal__foot .st-btn {
    flex: 1 1 auto !important;
    min-width: 70px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  /* Ensure advanced search trigger is always tappable */
  [data-stitch-modal-open="advanced-search-modal"] {
    display: inline-flex !important;
    min-width: 44px !important;
    min-height: 44px !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
  }
/* ============================================================
   IMPROVED DARK-MODE CHIPS / TAGS / BADGES
   ============================================================ */

/* Filing Event Chip — main colored left-border style */
.filing-event-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  line-height: 1;
  background: var(--st-surface-high);
  color: var(--st-text);
  border-left: 3px solid;
}

/* Hidden chip (the red "Hidden" label) */
.st-hidden-chip,
.filing-hidden-chip {
  background: rgba(255, 95, 95, 0.12);
  color: #ff9f9f;
  border: 1px solid rgba(255, 95, 95, 0.25);
}

/* General tags (used in AI summary, etc.) */
.st-tag {
  background: var(--st-surface-highest);
  color: var(--st-text-dim);
  border: 1px solid var(--st-border-30);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* BSE badge */
.badge-bse {
  background: #2c1f1f !important;
  color: #ff9a9a !important;
  border: 1px solid #5c2a2a;
}

/* Make all chips feel native to dark mode */
.filing-event-chip,
.st-tag,
.st-hidden-chip,
.filing-hidden-chip,
.badge-bse {
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}  
  
}
