/**
 * MAIN ENTRY POINT
 * Imports unified design system only
 */

/**
 * UNIFIED NUKE DESIGN SYSTEM
 * Single source of truth for all styling
 * Date: October 21, 2025
 */

/* ================================================
   DESIGN PRINCIPLES
   ================================================
   - Font sizes: 8px-11px only (strict)
   - Colors: Moderate contrast (no pure black/white)
   - Spacing: 4px base unit
   - Borders: 2px solid
   - Transitions: 0.12s
   - Font: Arial, monospace for numbers
   ================================================ */

/* Default (no data-theme) behaves like light */

:root {
  /* User text scaling (accessibility) */
  --font-scale: 1;
  --fs-8: calc(8px * var(--font-scale));
  --fs-9: calc(9px * var(--font-scale));
  --fs-10: calc(10px * var(--font-scale));
  --fs-11: calc(11px * var(--font-scale));
  --fs-12: calc(12px * var(--font-scale));

  /* Background Colors - Moderate, not extreme */
  --bg: #f5f5f5;           /* Light grey, NOT white */
  --surface: #ebebeb;       /* Card backgrounds */
  --surface-hover: #e0e0e0;
  --surface-glass: rgba(235, 235, 235, 0.95);
  
  /* Border Colors */
  --border: #bdbdbd;        /* Medium grey */
  --border-focus: #2a2a2a;  /* Dark grey, not blue */
  
  /* Text Colors - Dark grey, NOT black */
  --text: #2a2a2a;          /* Dark grey, readable */
  --text-secondary: #666666;
  --text-disabled: #999999;
  
  /* Accent Colors */
  --accent: #2a2a2a;
  --accent-dim: rgba(42, 42, 42, 0.08);
  --accent-bright: #000000;
  --accent-alt: #2a2a2a;
  
  /* Status Colors */
  --success: #16825d;
  --success-dim: rgba(22, 130, 93, 0.1);
  --warning: #b05a00;
  --warning-dim: rgba(176, 90, 0, 0.1);
  --error: #d13438;
  --error-dim: rgba(209, 52, 56, 0.1);
  
  /* Spacing System (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  
  /* Typography */
  --font-family: Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Border Radius */
  --radius: 4px;
  
  /* Transitions */
  --transition: 0.12s ease;
}

/* ================================================
   THEME TOKENS (LIGHT / DARK)
   ================================================ */

:root[data-theme="light"] {
  --bg: #f5f5f5;
  --surface: #ebebeb;
  --surface-hover: #e0e0e0;
  --surface-glass: rgba(235, 235, 235, 0.95);

  --border: #bdbdbd;
  --border-focus: #2a2a2a;

  --text: #2a2a2a;
  --text-secondary: #666666;
  --text-disabled: #999999;

  --accent: #2a2a2a;
  --accent-dim: rgba(42, 42, 42, 0.08);
  --accent-bright: #000000;
  --accent-alt: #2a2a2a;

  /* Heatmap tokens (GitHub-style activity grid) */
  --heat-0: #ebedf0;
  --heat-1: #d9f99d;
  --heat-2: #a7f3d0;
  --heat-3: #34d399;
  --heat-4: #059669;
  --heat-5: #047857;
  --heat-6: #065f46;
  --heat-border: rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] {
  --bg: #1e1e1e;
  --surface: #252526;
  --surface-hover: #2d2d30;
  --surface-glass: rgba(37, 37, 38, 0.92);

  --border: #3e3e42;
  --border-focus: #cccccc;

  --text: #cccccc;
  --text-secondary: #858585;
  --text-disabled: #656565;

  --accent: #cccccc;
  --accent-dim: rgba(204, 204, 204, 0.12);
  --accent-bright: #ffffff;
  --accent-alt: #cccccc;

  /* Heatmap tokens (muted for dark mode) */
  --heat-0: #2d2d30;
  --heat-1: rgba(22, 130, 93, 0.18);
  --heat-2: rgba(22, 130, 93, 0.30);
  --heat-3: rgba(22, 130, 93, 0.44);
  --heat-4: rgba(22, 130, 93, 0.62);
  --heat-5: rgba(22, 130, 93, 0.78);
  --heat-6: rgba(22, 130, 93, 0.92);
  --heat-border: rgba(255, 255, 255, 0.10);
}

/* ================================================
   CONTRAST PROFILES
   ================================================ */

/* Greyscale: keep everything neutral, reduce status emphasis */

:root[data-contrast="greyscale"] {
  --accent: var(--text);
  --accent-alt: var(--text-secondary);
  --accent-dim: rgba(0, 0, 0, 0.08);
  --border-focus: var(--text);

  --success: var(--text);
  --warning: var(--text);
  --error: var(--text);

  --success-dim: rgba(0, 0, 0, 0.06);
  --warning-dim: rgba(0, 0, 0, 0.06);
  --error-dim: rgba(0, 0, 0, 0.06);
}

/* High contrast: optional accessibility mode */

:root[data-theme="light"][data-contrast="high"] {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-hover: #e6e6e6;

  --border: #111111;
  --border-focus: #111111;

  --text: #000000;
  --text-secondary: #111111;
  --text-disabled: #3a3a3a;

  --accent: #000000;
  --accent-alt: #ffd100; /* optional callout */
  --accent-dim: rgba(0, 0, 0, 0.12);
  --accent-bright: #000000;
}

:root[data-theme="dark"][data-contrast="high"] {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-hover: #1a1a1a;

  --border: #f5f5f5;
  --border-focus: #ffd100;

  --text: #ffffff;
  --text-secondary: #f5f5f5;
  --text-disabled: #c9c9c9;

  --accent: #ffd100;
  --accent-alt: #ffffff;
  --accent-dim: rgba(255, 209, 0, 0.16);
  --accent-bright: #ffd100;
}

/* ================================================
   AUTOMOTIVE ACCENT COLORWAYS (accent-only by default)
   ================================================ */

:root[data-accent="neutral"] {
  --accent: #2a2a2a;
  --accent-alt: #2a2a2a;
  --accent-dim: rgba(42, 42, 42, 0.08);
  --border-focus: var(--accent);
}

/* Gulf: orange primary, blue secondary */

:root[data-accent="gulf"] {
  --accent: #ff5f00;
  --accent-alt: #9dd9f3;
  --accent-dim: rgba(255, 95, 0, 0.12);
  --border-focus: var(--accent);
}

/* Martini: deep blue primary, red secondary */

:root[data-accent="martini"] {
  --accent: #012169; /* navy */
  --accent-alt: #da291c; /* red */
  --accent-dim: rgba(1, 33, 105, 0.12);
  --border-focus: var(--accent);
}

/* Ricard: blue primary, yellow secondary */

:root[data-accent="ricard"] {
  --accent: #0033a0;
  --accent-alt: #ffcd00;
  --accent-dim: rgba(0, 51, 160, 0.12);
  --border-focus: var(--accent);
}

/* Ferrari Rosso Corsa */

:root[data-accent="rosso"] {
  --accent: #e4002b; /* Pantone example: 185 C */
  --accent-alt: #ffd100; /* yellow callout */
  --accent-dim: rgba(228, 0, 43, 0.12);
  --border-focus: var(--accent);
}

/* British Racing Green */

:root[data-accent="brg"] {
  --accent: #00573f; /* Pantone example: 343 C */
  --accent-alt: #ffef00;
  --accent-dim: rgba(0, 87, 63, 0.12);
  --border-focus: var(--accent);
}

/* John Player Special: gold highlight */

:root[data-accent="jps"] {
  --accent: #b9975b; /* gold */
  --accent-alt: #111111;
  --accent-dim: rgba(185, 151, 91, 0.14);
  --border-focus: var(--accent);
}

/* Jägermeister: orange */

:root[data-accent="jaeger"] {
  --accent: #fe5000; /* Pantone example: 021 C */
  --accent-alt: #111111;
  --accent-dim: rgba(254, 80, 0, 0.12);
  --border-focus: var(--accent);
}

/* Alitalia: green primary, red secondary */

:root[data-accent="alitalia"] {
  --accent: #009a44; /* Pantone example: 348 C */
  --accent-alt: #c8102e; /* Pantone example: 186 C */
  --accent-dim: rgba(0, 154, 68, 0.12);
  --border-focus: var(--accent);
}

/* BMW M: light blue primary, red secondary */

:root[data-accent="bmw-m"] {
  --accent: #00a3e0; /* Pantone example: 299 C */
  --accent-alt: #c8102e; /* Pantone example: 186 C */
  --accent-dim: rgba(0, 163, 224, 0.12);
  --border-focus: var(--accent);
}

/* McLaren papaya */

:root[data-accent="papaya"] {
  --accent: #ff5f1f;
  --accent-alt: #111111;
  --accent-dim: rgba(255, 95, 31, 0.12);
  --border-focus: var(--accent);
}

/* ================================================
   AMERICANA ACCENT COLORWAYS
   ================================================ */

/* Stars & Stripes: navy primary, red secondary */

:root[data-accent="americana"] {
  --accent: #0a2342; /* Pantone example: 282 C */
  --accent-alt: #c8102e; /* Pantone example: 186 C */
  --accent-dim: rgba(10, 35, 66, 0.12);
  --border-focus: var(--accent);
}

/* Route 66: teal primary, sand secondary */

:root[data-accent="route-66"] {
  --accent: #005f73; /* Pantone example: 3035 C */
  --accent-alt: #d4a373; /* Pantone example: 4655 C */
  --accent-dim: rgba(0, 95, 115, 0.12);
  --border-focus: var(--accent);
}

/* Denim: deep indigo primary, canvas secondary */

:root[data-accent="denim"] {
  --accent: #1b2a41; /* Pantone example: 2965 C */
  --accent-alt: #d6c9b4; /* Pantone example: 7534 C */
  --accent-dim: rgba(27, 42, 65, 0.12);
  --border-focus: var(--accent);
}

/* Desert Sun: warm orange primary */

:root[data-accent="desert"] {
  --accent: #c95a00; /* Pantone example: 7576 C */
  --accent-alt: #7b4b2a; /* Pantone example: 7554 C */
  --accent-dim: rgba(201, 90, 0, 0.12);
  --border-focus: var(--accent);
}

/* ================================================
   CAMO + MOPAR + FLAMES (accent-only)
   ================================================ */

/* Camo: olive drab */

:root[data-accent="camo-od"] {
  --accent: #4b5320;
  --accent-alt: #2a2a2a;
  --accent-dim: rgba(75, 83, 32, 0.14);
  --border-focus: var(--accent);
}

/* Camo: blaze hunting */

:root[data-accent="camo-blaze"] {
  --accent: #fe5000;
  --accent-alt: #111111;
  --accent-dim: rgba(254, 80, 0, 0.12);
  --border-focus: var(--accent);
}

/* Camo: snow / hi-vis */

:root[data-accent="camo-snow"] {
  --accent: #f4f4f4;
  --accent-alt: #44d62c;
  --accent-dim: rgba(244, 244, 244, 0.16);
  --border-focus: var(--accent-alt);
}

/* Mopar: Plum Crazy */

:root[data-accent="mopar-plum"] {
  --accent: #5b2c83;
  --accent-alt: #111111;
  --accent-dim: rgba(91, 44, 131, 0.14);
  --border-focus: var(--accent);
}

/* Mopar: Sublime */

:root[data-accent="mopar-sublime"] {
  --accent: #44d62c;
  --accent-alt: #111111;
  --accent-dim: rgba(68, 214, 44, 0.16);
  --border-focus: var(--accent);
}

/* Mopar: Hemi Orange */

:root[data-accent="mopar-hemi"] {
  --accent: #ff5f00;
  --accent-alt: #111111;
  --accent-dim: rgba(255, 95, 0, 0.12);
  --border-focus: var(--accent);
}

/* Mopar: B5 Blue */

:root[data-accent="mopar-b5"] {
  --accent: #00a3e0;
  --accent-alt: #111111;
  --accent-dim: rgba(0, 163, 224, 0.12);
  --border-focus: var(--accent);
}

/* Flames: heat */

:root[data-accent="flames-heat"] {
  --accent: #ff5f00;
  --accent-alt: #fe5000;
  --accent-dim: rgba(255, 95, 0, 0.12);
  --border-focus: var(--accent);
}

/* Flames: blue */

:root[data-accent="flames-blue"] {
  --accent: #0085ca;
  --accent-alt: #00a3e0;
  --accent-dim: rgba(0, 133, 202, 0.12);
  --border-focus: var(--accent);
}

/* ================================================
   TYPOGRAPHY SYSTEM
   ================================================ */

body {
  font-family: var(--font-family);
  font-size: var(--fs-10);
  line-height: 1.3;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Font Sizes (STRICT - no others allowed) */

.text-8  { font-size: var(--fs-8); }

.text-9  { font-size: var(--fs-9); }

.text-10 { font-size: var(--fs-10); }

.text-11 { font-size: var(--fs-11); }

.text-12 { font-size: var(--fs-12); }

/* Rare */

/* ================================================
   BUTTON SYSTEM
   ================================================ */

.btn-utility {
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 4px 8px;
  font-size: var(--fs-9);
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}

.btn-utility:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-utility.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.btn-primary {
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  font-size: var(--fs-10);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}

.btn-primary:hover {
  background: var(--text);
  color: var(--surface);
}

/* ================================================
   CARD SYSTEM
   ================================================ */

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 12px;
  border-bottom: 2px solid var(--border);
  font-size: var(--fs-10);
  font-weight: 700;
}

.card-body {
  padding: 12px;
}

/* ================================================
   INPUT SYSTEM
   ================================================ */

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 8px;
  font-size: var(--fs-10);
  font-family: var(--font-family);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Range / slider (opt-in via class so we don't unintentionally restyle other controls) */

.nuke-range {
  width: 100%;
  height: 16px; /* gives room for the thumb; track is styled separately */
  padding: 0;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

/* Use accent colorway so it updates when data-accent changes */

.nuke-range-accent {
  accent-color: var(--accent);
}

.nuke-range-accent:focus {
  outline: none;
}

/* WebKit */

.nuke-range-accent::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nuke-range-accent::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--border);
  margin-top: -5px; /* centers thumb on 4px track */
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.nuke-range-accent:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px var(--accent-dim), 0 0 0 4px rgba(0, 0, 0, 0.06);
}

/* Firefox */

.nuke-range-accent::-moz-range-track {
  height: 4px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nuke-range-accent::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.nuke-range-accent::-moz-focus-outer {
  border: 0;
}

/* ================================================
   LAYOUT SYSTEM
   ================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
}

.section {
  margin-bottom: var(--space-4);
}

/* ================================================
   UTILITIES
   ================================================ */

.text-center { text-align: center; }

.text-right { text-align: right; }

.text-left { text-align: left; }

.font-bold { font-weight: 700; }

.font-semibold { font-weight: 600; }

.font-normal { font-weight: 400; }

.uppercase { text-transform: uppercase; }

/**
 * COMPREHENSIVE HEADER FIX
 * Fixes sticky positioning, dropdown overlap, mobile responsive issues
 */

/* ============================================================================
   HEADER WRAPPER - Clean sticky positioning
   ============================================================================ */

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000; /* Above content, below modals */
  background: var(--surface);
  /* Keep the bottom edge subtle in dark mode */
  border-bottom: 1px solid var(--border);
  width: 100%;
}

/* In light mode, a slightly stronger header edge matches the rest of the Win95 frame */

:root[data-theme="light"] .header-wrapper {
  border-bottom-width: 2px;
}

.header-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px;
  display: grid;
  align-items: center;
  /* 8% n-zero | 2% spacer | (remaining, ~80%) agent | 2% spacer | >=8% capsule (can grow) */
  grid-template-columns: 8% 2% minmax(0, 1fr) 2% minmax(8%, max-content);
  height: 40px;
  box-sizing: border-box;
}

/* ============================================================================
   3-COLUMN HEADER LAYOUT (with fixed proportional spacers)
   Target: 8% n-zero, 2% space, 80% agent input, 2% space, 8% capsule
   Notes:
   - n-zero dropdown is a popup, so opening it should not affect layout.
   - capsule can expand; when it does, it steals space from the agent input.
   ============================================================================ */

.header-slot-left {
  min-width: 72px;
  display: flex;
  align-items: center;
}

.header-spacer {
  min-width: 6px;
}

.header-slot-center {
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-slot-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

/* ============================================================================
   HEADER LEFT - Logo + Nav
   ============================================================================ */

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: visible; /* allow dropdown to render outside header */
}

.logo {
  flex-shrink: 0;
}

.logo-text {
  padding: 4px 8px;
  background: var(--surface);
  border: 2px outset var(--border);
  font-size: 9pt;
  font-weight: bold;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  padding: 4px 8px;
  font-size: 9pt;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 1;
}

.nav-link:hover {
  background: var(--surface-hover);
  border: 1px solid var(--border);
}

.nav-link.active {
  background: var(--surface-hover);
  border: 2px inset var(--border);
  font-weight: bold;
}

/* ============================================================================
   HEADER RIGHT - Search + Upload + Profile
   ============================================================================ */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
  max-width: none;
}

/* ============================================================================
   DROPDOWN MENU - Fixed positioning, no overlap
   ============================================================================ */

.profile-dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: transparent;
}

.profile-dropdown-menu {
  position: fixed !important;
  /* Will be positioned by JS */
  min-width: 180px;
  max-width: 220px;
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2) !important;
  z-index: 10001 !important;
  overflow: hidden;
}

.profile-dropdown-menu button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  font-size: 9pt;
  cursor: pointer;
  transition: background 0.1s;
}

.profile-dropdown-menu button:last-child {
  border-bottom: none;
}

.profile-dropdown-menu button:hover {
  background: var(--surface-hover);
}

/* ============================================================================
   MOBILE RESPONSIVE - REMOVED
   ============================================================================ */

/* ============================================================================
   Z-INDEX HIERARCHY (from highest to lowest)
   ============================================================================ */

/* 10001 - Profile dropdown menu */

/* 10000 - Profile dropdown backdrop */

/* 2000 - Navigation dropdown menu */

/* 1000 - Sticky header */

/* 200 - Upload status bar */

/* 100 - Page content */

/* 1 - Base content */

/* ============================================================================
   NAVIGATION DROPDOWN FIXES
   ============================================================================ */

/* Ensure navigation dropdown links are clickable and have proper hover states */

[data-n-zero-menu] .nav-link {
  cursor: pointer !important;
  transition: background-color 0.1s ease !important;
}

[data-n-zero-menu] .nav-link:hover {
  background: var(--surface-hover) !important;
  border-color: transparent !important;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
 */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

h1 { font-size: 11px; font-weight: 700; }

h2 { font-size: 10px; font-weight: 700; }

h3 { font-size: 10px; font-weight: 600; }

.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

.-bottom-1 {
  bottom: -0.25rem;
}

.-left-10 {
  left: -2.5rem;
}

.-right-1 {
  right: -0.25rem;
}

.-top-1 {
  top: -0.25rem;
}

.-top-12 {
  top: -3rem;
}

.-top-2 {
  top: -0.5rem;
}

.bottom-0 {
  bottom: 0px;
}

.bottom-2 {
  bottom: 0.5rem;
}

.bottom-4 {
  bottom: 1rem;
}

.bottom-6 {
  bottom: 1.5rem;
}

.left-0 {
  left: 0px;
}

.left-1\/2 {
  left: 50%;
}

.left-2 {
  left: 0.5rem;
}

.left-3 {
  left: 0.75rem;
}

.left-4 {
  left: 1rem;
}

.left-5 {
  left: 1.25rem;
}

.left-6 {
  left: 1.5rem;
}

.right-0 {
  right: 0px;
}

.right-1 {
  right: 0.25rem;
}

.right-2 {
  right: 0.5rem;
}

.right-3 {
  right: 0.75rem;
}

.right-4 {
  right: 1rem;
}

.right-6 {
  right: 1.5rem;
}

.top-0 {
  top: 0px;
}

.top-1 {
  top: 0.25rem;
}

.top-1\/2 {
  top: 50%;
}

.top-2 {
  top: 0.5rem;
}

.top-20 {
  top: 5rem;
}

.top-3 {
  top: 0.75rem;
}

.top-4 {
  top: 1rem;
}

.top-\[110px\] {
  top: 110px;
}

.top-full {
  top: 100%;
}

.isolate {
  isolation: isolate;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-\[101\] {
  z-index: 101;
}

.z-\[9999\] {
  z-index: 9999;
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.m-1 {
  margin: 0.25rem;
}

.m-3 {
  margin: 0.75rem;
}

.m-4 {
  margin: 1rem;
}

.m-6 {
  margin: 1.5rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.-mb-px {
  margin-bottom: -1px;
}

.-ml-0\.5 {
  margin-left: -0.125rem;
}

.-ml-1 {
  margin-left: -0.25rem;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.me-1 {
  margin-inline-end: 0.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-10 {
  margin-left: 2.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-5 {
  margin-left: 1.25rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

.ml-8 {
  margin-left: 2rem;
}

.ml-auto {
  margin-left: auto;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-1\.5 {
  margin-right: 0.375rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-1\.5 {
  margin-top: 0.375rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-auto {
  margin-top: auto;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

.list-item {
  display: list-item;
}

.hidden {
  display: none;
}

.aspect-\[4\/3\] {
  aspect-ratio: 4/3;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.h-0\.5 {
  height: 0.125rem;
}

.h-1 {
  height: 0.25rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-16 {
  height: 4rem;
}

.h-2 {
  height: 0.5rem;
}

.h-2\.5 {
  height: 0.625rem;
}

.h-20 {
  height: 5rem;
}

.h-24 {
  height: 6rem;
}

.h-3 {
  height: 0.75rem;
}

.h-32 {
  height: 8rem;
}

.h-36 {
  height: 9rem;
}

.h-4 {
  height: 1rem;
}

.h-48 {
  height: 12rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-64 {
  height: 16rem;
}

.h-8 {
  height: 2rem;
}

.h-96 {
  height: 24rem;
}

.h-\[120px\] {
  height: 120px;
}

.h-\[18px\] {
  height: 18px;
}

.h-full {
  height: 100%;
}

.h-px {
  height: 1px;
}

.h-screen {
  height: 100vh;
}

.max-h-32 {
  max-height: 8rem;
}

.max-h-40 {
  max-height: 10rem;
}

.max-h-48 {
  max-height: 12rem;
}

.max-h-56 {
  max-height: 14rem;
}

.max-h-60 {
  max-height: 15rem;
}

.max-h-64 {
  max-height: 16rem;
}

.max-h-72 {
  max-height: 18rem;
}

.max-h-80 {
  max-height: 20rem;
}

.max-h-96 {
  max-height: 24rem;
}

.max-h-\[60vh\] {
  max-height: 60vh;
}

.max-h-\[80vh\] {
  max-height: 80vh;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

.max-h-\[calc\(100vh-10rem\)\] {
  max-height: calc(100vh - 10rem);
}

.max-h-\[calc\(90vh-120px\)\] {
  max-height: calc(90vh - 120px);
}

.max-h-full {
  max-height: 100%;
}

.max-h-screen {
  max-height: 100vh;
}

.min-h-\[400px\] {
  min-height: 400px;
}

.min-h-\[50vh\] {
  min-height: 50vh;
}

.min-h-\[80px\] {
  min-height: 80px;
}

.min-h-screen {
  min-height: 100vh;
}

.w-0 {
  width: 0px;
}

.w-0\.5 {
  width: 0.125rem;
}

.w-1\.5 {
  width: 0.375rem;
}

.w-1\/2 {
  width: 50%;
}

.w-1\/3 {
  width: 33.333333%;
}

.w-1\/4 {
  width: 25%;
}

.w-10 {
  width: 2.5rem;
}

.w-11\/12 {
  width: 91.666667%;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-2 {
  width: 0.5rem;
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.w-3 {
  width: 0.75rem;
}

.w-3\/4 {
  width: 75%;
}

.w-32 {
  width: 8rem;
}

.w-4 {
  width: 1rem;
}

.w-4\/6 {
  width: 66.666667%;
}

.w-48 {
  width: 12rem;
}

.w-5 {
  width: 1.25rem;
}

.w-5\/6 {
  width: 83.333333%;
}

.w-6 {
  width: 1.5rem;
}

.w-64 {
  width: 16rem;
}

.w-8 {
  width: 2rem;
}

.w-80 {
  width: 20rem;
}

.w-96 {
  width: 24rem;
}

.w-\[1px\] {
  width: 1px;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.min-w-\[18px\] {
  min-width: 18px;
}

.min-w-\[8rem\] {
  min-width: 8rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-\[11rem\] {
  max-width: 11rem;
}

.max-w-\[12rem\] {
  max-width: 12rem;
}

.max-w-\[80\%\] {
  max-width: 80%;
}

.max-w-full {
  max-width: 100%;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xs {
  max-width: 20rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.shrink {
  flex-shrink: 1;
}

.shrink-0 {
  flex-shrink: 0;
}

.flex-grow {
  flex-grow: 1;
}

.grow {
  flex-grow: 1;
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-2 {
  --tw-translate-y: -0.5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-full {
  --tw-translate-y: -100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.rotate-180 {
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-95 {
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes pulse {

  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.cursor-crosshair {
  cursor: crosshair;
}

.cursor-default {
  cursor: default;
}

.cursor-move {
  cursor: move;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.resize-none {
  resize: none;
}

.resize {
  resize: both;
}

.list-inside {
  list-style-position: inside;
}

.list-disc {
  list-style-type: disc;
}

.appearance-none {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

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

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

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

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

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}

.gap-y-3 {
  row-gap: 0.75rem;
}

.gap-y-6 {
  row-gap: 1.5rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem * var(--tw-space-x-reverse));
  margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(2px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(2px * var(--tw-divide-y-reverse));
}

.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-divide-opacity, 1));
}

.self-center {
  align-self: center;
}

.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.break-all {
  word-break: break-all;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-sm {
  border-radius: 0.125rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-r-lg {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.rounded-t-lg {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0px;
}

.border-2 {
  border-width: 2px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-l-2 {
  border-left-width: 2px;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-r {
  border-right-width: 1px;
}

.border-r-2 {
  border-right-width: 2px;
}

.border-t {
  border-top-width: 1px;
}

.border-t-2 {
  border-top-width: 2px;
}

.border-dashed {
  border-style: dashed;
}

.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}

.border-blue-300 {
  --tw-border-opacity: 1;
  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));
}

.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}

.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}

.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}

.border-gray-500 {
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}

.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.border-gray-800 {
  --tw-border-opacity: 1;
  border-color: rgb(31 41 55 / var(--tw-border-opacity, 1));
}

.border-gray-900 {
  --tw-border-opacity: 1;
  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}

.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}

.border-green-300 {
  --tw-border-opacity: 1;
  border-color: rgb(134 239 172 / var(--tw-border-opacity, 1));
}

.border-green-400 {
  --tw-border-opacity: 1;
  border-color: rgb(74 222 128 / var(--tw-border-opacity, 1));
}

.border-green-500 {
  --tw-border-opacity: 1;
  border-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
}

.border-green-600 {
  --tw-border-opacity: 1;
  border-color: rgb(22 163 74 / var(--tw-border-opacity, 1));
}

.border-green-700 {
  --tw-border-opacity: 1;
  border-color: rgb(21 128 61 / var(--tw-border-opacity, 1));
}

.border-green-700\/50 {
  border-color: rgb(21 128 61 / 0.5);
}

.border-indigo-500 {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}

.border-indigo-600 {
  --tw-border-opacity: 1;
  border-color: rgb(79 70 229 / var(--tw-border-opacity, 1));
}

.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}

.border-purple-200 {
  --tw-border-opacity: 1;
  border-color: rgb(233 213 255 / var(--tw-border-opacity, 1));
}

.border-purple-600 {
  --tw-border-opacity: 1;
  border-color: rgb(147 51 234 / var(--tw-border-opacity, 1));
}

.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}

.border-red-300 {
  --tw-border-opacity: 1;
  border-color: rgb(252 165 165 / var(--tw-border-opacity, 1));
}

.border-red-400 {
  --tw-border-opacity: 1;
  border-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}

.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-red-600 {
  --tw-border-opacity: 1;
  border-color: rgb(220 38 38 / var(--tw-border-opacity, 1));
}

.border-red-600\/50 {
  border-color: rgb(220 38 38 / 0.5);
}

.border-teal-600 {
  --tw-border-opacity: 1;
  border-color: rgb(13 148 136 / var(--tw-border-opacity, 1));
}

.border-transparent {
  border-color: transparent;
}

.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}

.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2);
}

.border-white\/30 {
  border-color: rgb(255 255 255 / 0.3);
}

.border-white\/5 {
  border-color: rgb(255 255 255 / 0.05);
}

.border-yellow-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 249 195 / var(--tw-border-opacity, 1));
}

.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));
}

.border-yellow-300 {
  --tw-border-opacity: 1;
  border-color: rgb(253 224 71 / var(--tw-border-opacity, 1));
}

.border-yellow-400 {
  --tw-border-opacity: 1;
  border-color: rgb(250 204 21 / var(--tw-border-opacity, 1));
}

.border-yellow-500 {
  --tw-border-opacity: 1;
  border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}

.border-yellow-600 {
  --tw-border-opacity: 1;
  border-color: rgb(202 138 4 / var(--tw-border-opacity, 1));
}

.border-yellow-700 {
  --tw-border-opacity: 1;
  border-color: rgb(161 98 7 / var(--tw-border-opacity, 1));
}

.border-l-gray-300 {
  --tw-border-opacity: 1;
  border-left-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-l-orange-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(249 115 22 / var(--tw-border-opacity, 1));
}

.border-l-red-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-l-yellow-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}

.border-t-transparent {
  border-top-color: transparent;
}

.bg-\[\#0a0a0a\] {
  --tw-bg-opacity: 1;
  background-color: rgb(10 10 10 / var(--tw-bg-opacity, 1));
}

.bg-\[\#111\] {
  --tw-bg-opacity: 1;
  background-color: rgb(17 17 17 / var(--tw-bg-opacity, 1));
}

.bg-\[\#1a1a1a\] {
  --tw-bg-opacity: 1;
  background-color: rgb(26 26 26 / var(--tw-bg-opacity, 1));
}

.bg-\[\#2a2a2a\] {
  --tw-bg-opacity: 1;
  background-color: rgb(42 42 42 / var(--tw-bg-opacity, 1));
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}

.bg-black\/70 {
  background-color: rgb(0 0 0 / 0.7);
}

.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

.bg-blue-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}

.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}

.bg-blue-500\/10 {
  background-color: rgb(59 130 246 / 0.1);
}

.bg-blue-500\/80 {
  background-color: rgb(59 130 246 / 0.8);
}

.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-blue-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(30 58 138 / var(--tw-bg-opacity, 1));
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}

.bg-gray-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.bg-gray-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}

.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}

.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}

.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.bg-green-500\/80 {
  background-color: rgb(34 197 94 / 0.8);
}

.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}

.bg-green-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.bg-green-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 83 45 / var(--tw-bg-opacity, 1));
}

.bg-green-900\/30 {
  background-color: rgb(20 83 45 / 0.3);
}

.bg-green-900\/50 {
  background-color: rgb(20 83 45 / 0.5);
}

.bg-indigo-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}

.bg-indigo-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1));
}

.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}

.bg-indigo-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}

.bg-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}

.bg-orange-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}

.bg-orange-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}

.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}

.bg-purple-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1));
}

.bg-purple-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1));
}

.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}

.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}

.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

.bg-red-500\/80 {
  background-color: rgb(239 68 68 / 0.8);
}

.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}

.bg-teal-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(204 251 241 / var(--tw-bg-opacity, 1));
}

.bg-teal-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 184 166 / var(--tw-bg-opacity, 1));
}

.bg-transparent {
  background-color: transparent;
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-white\/20 {
  background-color: rgb(255 255 255 / 0.2);
}

.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}

.bg-white\/90 {
  background-color: rgb(255 255 255 / 0.9);
}

.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}

.bg-yellow-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 204 21 / var(--tw-bg-opacity, 1));
}

.bg-yellow-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
}

.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}

.bg-yellow-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}

.bg-yellow-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(113 63 18 / var(--tw-bg-opacity, 1));
}

.bg-yellow-900\/50 {
  background-color: rgb(113 63 18 / 0.5);
}

.bg-opacity-0 {
  --tw-bg-opacity: 0;
}

.bg-opacity-10 {
  --tw-bg-opacity: 0.1;
}

.bg-opacity-40 {
  --tw-bg-opacity: 0.4;
}

.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}

.bg-opacity-70 {
  --tw-bg-opacity: 0.7;
}

.bg-opacity-75 {
  --tw-bg-opacity: 0.75;
}

.bg-opacity-80 {
  --tw-bg-opacity: 0.8;
}

.bg-opacity-90 {
  --tw-bg-opacity: 0.9;
}

.bg-opacity-95 {
  --tw-bg-opacity: 0.95;
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-black {
  --tw-gradient-from: #000 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-600 {
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-gray-300 {
  --tw-gradient-from: #d1d5db var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(209 213 219 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-gray-400 {
  --tw-gradient-from: #9ca3af var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(156 163 175 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-orange-500 {
  --tw-gradient-from: #f97316 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(249 115 22 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-purple-600 {
  --tw-gradient-from: #9333ea var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-yellow-400 {
  --tw-gradient-from: #facc15 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(250 204 21 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-blue-700 {
  --tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);
}

.to-gray-500 {
  --tw-gradient-to: #6b7280 var(--tw-gradient-to-position);
}

.to-gray-600 {
  --tw-gradient-to: #4b5563 var(--tw-gradient-to-position);
}

.to-indigo-50 {
  --tw-gradient-to: #eef2ff var(--tw-gradient-to-position);
}

.to-purple-700 {
  --tw-gradient-to: #7e22ce var(--tw-gradient-to-position);
}

.to-red-500 {
  --tw-gradient-to: #ef4444 var(--tw-gradient-to-position);
}

.to-transparent {
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
}

.to-yellow-600 {
  --tw-gradient-to: #ca8a04 var(--tw-gradient-to-position);
}

.bg-cover {
  background-size: cover;
}

.bg-center {
  background-position: center;
}

.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}

.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-16 {
  padding-left: 4rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-8 {
  padding-left: 2rem;
}

.pl-9 {
  padding-left: 2.25rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-5 {
  padding-top: 1.25rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-\[10pt\] {
  font-size: 10pt;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[8pt\] {
  font-size: 8pt;
}

.text-\[8px\] {
  font-size: 8px;
}

.text-\[9px\] {
  font-size: 9px;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.italic {
  font-style: italic;
}

.ordinal {
  --tw-ordinal: ordinal;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}

.leading-none {
  line-height: 1;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}

.text-blue-100 {
  --tw-text-opacity: 1;
  color: rgb(219 234 254 / var(--tw-text-opacity, 1));
}

.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}

.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}

.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}

.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}

.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.text-green-300 {
  --tw-text-opacity: 1;
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}

.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}

.text-green-500 {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}

.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}

.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}

.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.text-green-900 {
  --tw-text-opacity: 1;
  color: rgb(20 83 45 / var(--tw-text-opacity, 1));
}

.text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}

.text-indigo-700 {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / var(--tw-text-opacity, 1));
}

.text-indigo-800 {
  --tw-text-opacity: 1;
  color: rgb(55 48 163 / var(--tw-text-opacity, 1));
}

.text-orange-500 {
  --tw-text-opacity: 1;
  color: rgb(249 115 22 / var(--tw-text-opacity, 1));
}

.text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}

.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}

.text-orange-800 {
  --tw-text-opacity: 1;
  color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}

.text-purple-100 {
  --tw-text-opacity: 1;
  color: rgb(243 232 255 / var(--tw-text-opacity, 1));
}

.text-purple-500 {
  --tw-text-opacity: 1;
  color: rgb(168 85 247 / var(--tw-text-opacity, 1));
}

.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / var(--tw-text-opacity, 1));
}

.text-purple-800 {
  --tw-text-opacity: 1;
  color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}

.text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / var(--tw-text-opacity, 1));
}

.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.text-teal-800 {
  --tw-text-opacity: 1;
  color: rgb(17 94 89 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-white\/40 {
  color: rgb(255 255 255 / 0.4);
}

.text-white\/50 {
  color: rgb(255 255 255 / 0.5);
}

.text-white\/60 {
  color: rgb(255 255 255 / 0.6);
}

.text-yellow-300 {
  --tw-text-opacity: 1;
  color: rgb(253 224 71 / var(--tw-text-opacity, 1));
}

.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}

.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}

.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / var(--tw-text-opacity, 1));
}

.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}

.text-yellow-900 {
  --tw-text-opacity: 1;
  color: rgb(113 63 18 / var(--tw-text-opacity, 1));
}

.underline {
  text-decoration-line: underline;
}

.line-through {
  text-decoration-line: line-through;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-80 {
  opacity: 0.8;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.outline {
  outline-style: solid;
}

.ring-1 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-2 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-4 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-blue-300 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity, 1));
}

.ring-blue-500 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.ring-gray-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1));
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-150 {
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.\[meme\:Title\] {
  meme: Title;
}

html, body, #root {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

/* Ensure the "very back" never stays white in dark mode (or after partial CSS loads). */

html, body, #root {
  background: var(--bg);
}

/* Layout shells should not paint white behind cards */

.app-layout,
.main-content {
  background: var(--bg);
}

/* Override Tailwind headings to use our font sizes */

/* ============================================================================
   DARK MODE COMPAT: Tailwind light utility remaps
   Many components still use Tailwind light tokens (bg-white, text-gray-900, etc.).
   In dark mode, remap the most common ones to our theme variables.
   ============================================================================
*/

:root[data-theme="dark"] .bg-white { background-color: var(--surface) !important; }

:root[data-theme="dark"] .bg-gray-50 { background-color: var(--bg) !important; }

:root[data-theme="dark"] .bg-gray-100 { background-color: var(--surface) !important; }

:root[data-theme="dark"] .bg-gray-200 { background-color: var(--surface-hover) !important; }

:root[data-theme="dark"] .text-gray-900 { color: var(--text) !important; }

:root[data-theme="dark"] .text-gray-800 { color: var(--text) !important; }

:root[data-theme="dark"] .text-gray-700 { color: var(--text) !important; }

:root[data-theme="dark"] .text-gray-600 { color: var(--text-secondary) !important; }

:root[data-theme="dark"] .text-gray-500 { color: var(--text-secondary) !important; }

:root[data-theme="dark"] .border-gray-200 { border-color: var(--border) !important; }

:root[data-theme="dark"] .border-gray-300 { border-color: var(--border) !important; }

:root[data-theme="dark"] .border-gray-400 { border-color: var(--border) !important; }

:root[data-theme="dark"] .border-b { border-bottom-color: var(--border) !important; }

.placeholder\:text-white\/40::-moz-placeholder {
  color: rgb(255 255 255 / 0.4);
}

.placeholder\:text-white\/40::placeholder {
  color: rgb(255 255 255 / 0.4);
}

.last\:border-0:last-child {
  border-width: 0px;
}

.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}

.hover\:translate-y-\[-2px\]:hover {
  --tw-translate-y: -2px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-110:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:border-blue-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));
}

.hover\:border-blue-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.hover\:border-blue-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.hover\:border-gray-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.hover\:border-gray-600:hover {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.hover\:border-red-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.hover\:border-white:hover {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.hover\:bg-blue-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-500\/20:hover {
  background-color: rgb(59 130 246 / 0.2);
}

.hover\:bg-blue-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-400:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(187 247 208 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.hover\:bg-indigo-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(67 56 202 / var(--tw-bg-opacity, 1));
}

.hover\:bg-orange-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 215 170 / var(--tw-bg-opacity, 1));
}

.hover\:bg-purple-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 202 202 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-600\/10:hover {
  background-color: rgb(220 38 38 / 0.1);
}

.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}

.hover\:bg-white\/10:hover {
  background-color: rgb(255 255 255 / 0.1);
}

.hover\:bg-white\/30:hover {
  background-color: rgb(255 255 255 / 0.3);
}

.hover\:bg-white\/5:hover {
  background-color: rgb(255 255 255 / 0.05);
}

.hover\:bg-white\/90:hover {
  background-color: rgb(255 255 255 / 0.9);
}

.hover\:bg-yellow-500:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}

.hover\:bg-yellow-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(161 98 7 / var(--tw-bg-opacity, 1));
}

.hover\:bg-opacity-100:hover {
  --tw-bg-opacity: 1;
}

.hover\:bg-opacity-75:hover {
  --tw-bg-opacity: 0.75;
}

.hover\:bg-opacity-90:hover {
  --tw-bg-opacity: 0.9;
}

.hover\:text-blue-500:hover {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.hover\:text-blue-700:hover {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}

.hover\:text-blue-800:hover {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.hover\:text-blue-900:hover {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-300:hover {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-600:hover {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-700:hover {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-800:hover {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-900:hover {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.hover\:text-green-700:hover {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}

.hover\:text-green-900:hover {
  --tw-text-opacity: 1;
  color: rgb(20 83 45 / var(--tw-text-opacity, 1));
}

.hover\:text-red-600:hover {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.hover\:text-red-800:hover {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.hover\:opacity-75:hover {
  opacity: 0.75;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

.hover\:shadow-\[0_0_0_3px_rgba\(255\2c 255\2c 255\2c 0\.2\)\]:hover {
  --tw-shadow: 0 0 0 3px rgba(255,255,255,0.2);
  --tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-sm:hover {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:ring-2:hover {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.hover\:ring-blue-300:hover {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity, 1));
}

.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.focus\:border-gray-900:focus {
  --tw-border-opacity: 1;
  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}

.focus\:border-indigo-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

.focus\:border-white:focus {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.focus\:bg-gray-50:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.focus\:shadow-\[0_0_0_3px_rgba\(255\2c 255\2c 255\2c 0\.1\)\]:focus {
  --tw-shadow: 0 0 0 3px rgba(255,255,255,0.1);
  --tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.focus\:ring-gray-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1));
}

.focus\:ring-green-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity, 1));
}

.focus\:ring-indigo-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:bg-gray-100:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-300:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}

.disabled\:bg-gray-400:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.disabled\:text-gray-400:disabled {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.disabled\:text-gray-500:disabled {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.disabled\:opacity-30:disabled {
  opacity: 0.3;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}

.group:hover .group-hover\:bg-opacity-30 {
  --tw-bg-opacity: 0.3;
}

.group:hover .group-hover\:text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}

.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}

.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}

.data-\[disabled\]\:opacity-50[data-disabled] {
  opacity: 0.5;
}

@media (min-width: 640px) {

  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .sm\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .sm\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .sm\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .sm\:mt-0 {
    margin-top: 0px;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:grid {
    display: grid;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sm\:gap-4 {
    gap: 1rem;
  }

  .sm\:px-0 {
    padding-left: 0px;
    padding-right: 0px;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

@media (min-width: 768px) {

  .md\:left-auto {
    left: auto;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:w-\[45vw\] {
    width: 45vw;
  }

  .md\:min-w-\[420px\] {
    min-width: 420px;
  }

  .md\:max-w-\[760px\] {
    max-width: 760px;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:w-5\/12 {
    width: 41.666667%;
  }

  .lg\:w-7\/12 {
    width: 58.333333%;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:border-b-0 {
    border-bottom-width: 0px;
  }

  .lg\:border-r {
    border-right-width: 1px;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {

  .xl\:w-4\/12 {
    width: 33.333333%;
  }

  .xl\:w-8\/12 {
    width: 66.666667%;
  }

  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/**
 * Nuke Design System
 * 
 * Based on Windows 95 / macOS 10 aesthetic:
 * - Arial font family
 * - 10px and 12px font sizes only
 * - Light grey and white backgrounds
 * - Black text
 * - Tight spacing, minimal padding
 * - Classic UI patterns
 */

/* Color Palette */
:root {
  /* User text scaling (accessibility) */
  --font-scale: 1;
  /* Background Colors - Light grey and white only */
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;
  
  /* Text Colors - Black only */
  --text: #000000;
  --text-muted: #424242;
  --text-secondary: #424242;
  --text-disabled: #757575;
  
  /* Border Colors - Light greys */
  --border-light: #e0e0e0;
  --border-medium: #bdbdbd;
  --border-dark: #9e9e9e;
  --border: var(--border-medium);
  --border-focus: var(--primary);
  
  /* Shadow Colors - Subtle */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  
  /* Compact Spacing System - Minimal padding */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-8: 24px;
  --space-10: 32px;
  --space-12: 40px;
  
  /* Upload Status Colors */
  --upload-blue: #2563eb;
  --upload-blue-light: #dbeafe;
  --upload-green: #16a34a;
  --upload-green-light: #dcfce7;
  --upload-red: #dc2626;
  --upload-red-light: #fef2f2;
  
  /* Profile-specific colors */
  --primary: #2a2a2a;
  --success: #28a745;
  --warning: #b05a00;
  --error: #d13438;

  /* Unified token aliases (for compatibility with newer theme system) */
  --bg: var(--grey-100);
  --surface: var(--grey-200);
  --surface-hover: var(--grey-300);
  --surface-glass: rgba(235, 235, 235, 0.95);
  --accent: var(--primary);
  --accent-alt: var(--primary);
  --accent-dim: rgba(42, 42, 42, 0.08);
  --accent-bright: #000000;
  
  /* Border Radius - Classic */
  --radius: 0px;
  --radius-sm: 0px;
  
  /* Typography - Arial, 8pt text */
  --font-family: Arial, sans-serif;
  --font-size-small: calc(8pt * var(--font-scale));
  --font-size: calc(8pt * var(--font-scale));

  /* Line Heights - Tight */
  --leading-tight: 1.1;
  --leading-normal: 1.2;
}

/* ================================================
   THEME TOKENS (LIGHT / DARK) + CONTRAST + ACCENTS
   This file is imported in many legacy components.
   It MUST respect data-theme/data-accent/data-contrast.
   ================================================ */

:root[data-theme="light"] {
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;

  --text: #000000;
  --text-muted: #424242;
  --text-secondary: #424242;
  --text-disabled: #757575;

  --border-light: #e0e0e0;
  --border-medium: #bdbdbd;
  --border-dark: #9e9e9e;
  --border: var(--border-medium);

  --bg: #f5f5f5;
  --surface: #ebebeb;
  --surface-hover: #e0e0e0;
  --surface-glass: rgba(235, 235, 235, 0.95);

  /* Heatmap tokens (GitHub-style activity grid) */
  --heat-0: #ebedf0;
  --heat-1: #d9f99d;
  --heat-2: #a7f3d0;
  --heat-3: #34d399;
  --heat-4: #059669;
  --heat-5: #047857;
  --heat-6: #065f46;
  --heat-border: rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] {
  /* Dark-mode greys are mapped so common usages (grey-200 backgrounds, etc.) stay readable */
  --white: #121212;
  --grey-50: #1e1e1e;
  --grey-100: #1e1e1e;
  --grey-200: #252526;
  --grey-300: #2d2d30;
  --grey-400: #3e3e42;
  --grey-500: #5a5a5a;
  --grey-600: #858585;
  --grey-700: #cccccc;
  --grey-800: #e6e6e6;
  --grey-900: #ffffff;

  --text: #cccccc;
  --text-muted: #858585;
  --text-secondary: #858585;
  --text-disabled: #656565;

  --border-light: #3e3e42;
  --border-medium: #3e3e42;
  --border-dark: #5a5a5a;
  --border: var(--border-medium);

  --bg: #1e1e1e;
  --surface: #252526;
  --surface-hover: #2d2d30;
  --surface-glass: rgba(37, 37, 38, 0.92);

  /* Heatmap tokens (muted for dark mode) */
  --heat-0: #2d2d30;
  --heat-1: rgba(22, 130, 93, 0.18);
  --heat-2: rgba(22, 130, 93, 0.30);
  --heat-3: rgba(22, 130, 93, 0.44);
  --heat-4: rgba(22, 130, 93, 0.62);
  --heat-5: rgba(22, 130, 93, 0.78);
  --heat-6: rgba(22, 130, 93, 0.92);
  --heat-border: rgba(255, 255, 255, 0.10);
}

/* Search Highlighting */
mark {
  background-color: #fef08a;
  color: #000;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: 600;
}

/* Greyscale / High contrast profiles */
:root[data-contrast="greyscale"] {
  --primary: var(--text);
  --accent: var(--text);
  --accent-alt: var(--text-secondary);
  --border-focus: var(--text);
}

:root[data-theme="light"][data-contrast="high"] {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-hover: #e6e6e6;

  --text: #000000;
  --text-muted: #111111;
  --text-secondary: #111111;
  --text-disabled: #3a3a3a;

  --border-light: #111111;
  --border-medium: #111111;
  --border-dark: #111111;
  --border: #111111;
}

:root[data-theme="dark"][data-contrast="high"] {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-hover: #1a1a1a;

  --text: #ffffff;
  --text-muted: #f5f5f5;
  --text-secondary: #f5f5f5;
  --text-disabled: #c9c9c9;

  --border-light: #f5f5f5;
  --border-medium: #f5f5f5;
  --border-dark: #f5f5f5;
  --border: #f5f5f5;
}

/* Automotive accent colorways */
:root[data-accent="neutral"] {
  --primary: #2a2a2a;
  --accent: #2a2a2a;
  --accent-alt: #2a2a2a;
  --accent-dim: rgba(42, 42, 42, 0.08);
  --border-focus: var(--accent);
}

:root[data-accent="gulf"] {
  --primary: #ff5f00;
  --accent: #ff5f00;
  --accent-alt: #9dd9f3;
  --accent-dim: rgba(255, 95, 0, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="martini"] {
  --primary: #012169;
  --accent: #012169;
  --accent-alt: #da291c;
  --accent-dim: rgba(1, 33, 105, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="ricard"] {
  --primary: #0033a0;
  --accent: #0033a0;
  --accent-alt: #ffcd00;
  --accent-dim: rgba(0, 51, 160, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="rosso"] {
  --primary: #e4002b;
  --accent: #e4002b;
  --accent-alt: #ffd100;
  --accent-dim: rgba(228, 0, 43, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="brg"] {
  --primary: #00573f;
  --accent: #00573f;
  --accent-alt: #ffef00;
  --accent-dim: rgba(0, 87, 63, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="jps"] {
  --primary: #b9975b;
  --accent: #b9975b;
  --accent-alt: #111111;
  --accent-dim: rgba(185, 151, 91, 0.14);
  --border-focus: var(--accent);
}

:root[data-accent="jaeger"] {
  --primary: #fe5000;
  --accent: #fe5000;
  --accent-alt: #111111;
  --accent-dim: rgba(254, 80, 0, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="alitalia"] {
  --primary: #009a44;
  --accent: #009a44;
  --accent-alt: #c8102e;
  --accent-dim: rgba(0, 154, 68, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="bmw-m"] {
  --primary: #00a3e0;
  --accent: #00a3e0;
  --accent-alt: #c8102e;
  --accent-dim: rgba(0, 163, 224, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="papaya"] {
  --primary: #ff5f1f;
  --accent: #ff5f1f;
  --accent-alt: #111111;
  --accent-dim: rgba(255, 95, 31, 0.12);
  --border-focus: var(--accent);
}

/* Americana colorways */
:root[data-accent="americana"] {
  --primary: #0a2342;
  --accent: #0a2342; /* Pantone example: 282 C */
  --accent-alt: #c8102e; /* Pantone example: 186 C */
  --accent-dim: rgba(10, 35, 66, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="route-66"] {
  --primary: #005f73;
  --accent: #005f73; /* Pantone example: 3035 C */
  --accent-alt: #d4a373; /* Pantone example: 4655 C */
  --accent-dim: rgba(0, 95, 115, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="denim"] {
  --primary: #1b2a41;
  --accent: #1b2a41; /* Pantone example: 2965 C */
  --accent-alt: #d6c9b4; /* Pantone example: 7534 C */
  --accent-dim: rgba(27, 42, 65, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="desert"] {
  --primary: #c95a00;
  --accent: #c95a00; /* Pantone example: 7576 C */
  --accent-alt: #7b4b2a; /* Pantone example: 7554 C */
  --accent-dim: rgba(201, 90, 0, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="camo-od"] {
  --primary: #4b5320;
  --accent: #4b5320;
  --accent-alt: #2a2a2a;
  --accent-dim: rgba(75, 83, 32, 0.14);
  --border-focus: var(--accent);
}

:root[data-accent="camo-blaze"] {
  --primary: #fe5000;
  --accent: #fe5000;
  --accent-alt: #111111;
  --accent-dim: rgba(254, 80, 0, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="camo-snow"] {
  --primary: #f4f4f4;
  --accent: #f4f4f4;
  --accent-alt: #44d62c;
  --accent-dim: rgba(244, 244, 244, 0.16);
  --border-focus: var(--accent-alt);
}

:root[data-accent="mopar-plum"] {
  --primary: #5b2c83;
  --accent: #5b2c83;
  --accent-alt: #111111;
  --accent-dim: rgba(91, 44, 131, 0.14);
  --border-focus: var(--accent);
}

:root[data-accent="mopar-sublime"] {
  --primary: #44d62c;
  --accent: #44d62c;
  --accent-alt: #111111;
  --accent-dim: rgba(68, 214, 44, 0.16);
  --border-focus: var(--accent);
}

:root[data-accent="mopar-hemi"] {
  --primary: #ff5f00;
  --accent: #ff5f00;
  --accent-alt: #111111;
  --accent-dim: rgba(255, 95, 0, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="mopar-b5"] {
  --primary: #00a3e0;
  --accent: #00a3e0;
  --accent-alt: #111111;
  --accent-dim: rgba(0, 163, 224, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="flames-heat"] {
  --primary: #ff5f00;
  --accent: #ff5f00;
  --accent-alt: #fe5000;
  --accent-dim: rgba(255, 95, 0, 0.12);
  --border-focus: var(--accent);
}

:root[data-accent="flames-blue"] {
  --primary: #0085ca;
  --accent: #0085ca;
  --accent-alt: #00a3e0;
  --accent-dim: rgba(0, 133, 202, 0.12);
  --border-focus: var(--accent);
}

/* Windows 95 theme override */
.win95 {
  --radius: 0;
  --radius-sm: 0;
}

/* Only apply the "lighter greys" Win95 palette in LIGHT mode */
:root[data-theme="light"] .win95 {
  /* Lighter greys for a softer, light-accent Win95 look */
  --grey-100: #fafafa;
  --grey-200: #f2f2f2;
  --grey-300: #e8e8e8;
  /* Lighten border tones while keeping text dark */
  --border-light: #e9e9e9;
  --border-medium: #d6d6d6;
  --border-dark: #c4c4c4;
}

/* Win95 “3D” bevel borders are LIGHT-mode only; in dark mode they create bright white strokes */
:root[data-theme="light"] .win95 .button {
  background: var(--grey-200);
  border-width: 2px;
  border-style: solid;
  border-color: #ffffff #c9c9c9 #c9c9c9 #ffffff;
  box-shadow: none;
  color: var(--text);
}

:root[data-theme="light"] .win95 .button:active {
  border-color: #c9c9c9 #ffffff #ffffff #c9c9c9;
}

:root[data-theme="light"] .win95 .card {
  border-width: 2px;
  border-style: solid;
  border-color: #ffffff #cfcfcf #cfcfcf #ffffff;
  box-shadow: none;
}

:root[data-theme="light"] .win95 .header-wrapper {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

:root[data-theme="light"] .win95 .logo-text {
  background: var(--grey-200);
  border: 2px solid;
  border-color: #ffffff #cfcfcf #cfcfcf #ffffff;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--leading-normal);
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

/* Respect iOS safe-area to avoid content under notches/home bar */
@supports (padding-top: constant(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Typography - single base size */
.text { font-size: var(--font-size); }
.text-small { font-size: var(--font-size); }

/* Headings - same size as body, bold for hierarchy */
.heading-1 { font-size: var(--font-size); font-weight: bold; }
.heading-2 { font-size: var(--font-size); font-weight: bold; }
.heading-3 { font-size: var(--font-size); font-weight: bold; }

/* Font weights */
.font-normal { font-weight: normal; }
.font-bold { font-weight: bold; }

/* Text colors */
.text-primary { color: var(--text); }
.text-muted { color: var(--text-muted); }

/* Tight Spacing */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  background: var(--white);
}
.container.compact { /* one-pager layout: 5px side padding */
  padding: 0 5px;
  max-width: 100%;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
}

.main {
  flex: 1;
  padding: var(--space-8) 0;
  background: var(--white);
}

.section {
  margin-bottom: var(--space-8);
}

.section:last-child {
  margin-bottom: 0;
}

/* Navigation - Classic Style */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  color: var(--text);
  text-decoration: none;
  font-size: var(--font-size);
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.nav-item:hover {
  background: var(--grey-200);
  border-color: var(--border-medium);
}

.nav-item.active {
  background: var(--grey-300);
  border-color: var(--border-dark);
}

/* Buttons - Classic Windows 95 Style */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: normal;
  line-height: var(--leading-tight);
  border: 2px outset var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  background: var(--surface-hover);
  color: var(--text);
  box-shadow: var(--shadow-inset);
}

.button:hover {
  background: var(--surface-hover);
  border-color: var(--border-dark);
}

.button:active {
  border-style: inset;
  box-shadow: var(--shadow-inset);
}

.button:focus {
  outline: 1px dotted var(--text);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button-primary {
  background: var(--surface-hover);
  border-color: var(--border-medium);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border-light);
}

.button-small {
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size);
}

/* Cards - Classic Style */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background: var(--grey-50);
  font-weight: bold;
  font-size: var(--font-size);
}

.card-body {
  padding: var(--space-4);
}

.card-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-light);
  background: var(--grey-50);
}

/* Forms - Classic Style */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--font-size);
  font-weight: normal;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.form-input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--white);
  border: 1px inset var(--border-light);
  border-radius: var(--radius);
}

.form-input:focus {
  outline: 1px dotted var(--text);
  border-color: var(--border-dark);
}

.form-select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-2) center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  padding-right: var(--space-8);
}

/* Tables - Classic Style */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size);
  border: 1px solid var(--border-light);
}

.table th {
  text-align: left;
  font-weight: bold;
  color: var(--text);
  padding: var(--space-2);
  border: 1px solid var(--border-light);
  background: var(--grey-200);
}

.table td {
  padding: var(--space-2);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.table tr:nth-child(even) {
  background: var(--grey-50);
}

.table tr:hover {
  background: var(--grey-100);
}

/* Badges - Classic Style */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-small);
  font-weight: normal;
  border-radius: var(--radius-sm);
  line-height: var(--leading-tight);
  border: 1px solid var(--border-light);
}

.badge-primary {
  background: var(--grey-200);
  color: var(--text);
}

.badge-success {
  background: var(--grey-100);
  color: var(--text);
  border-color: var(--border-medium);
}

.badge-warning {
  background: var(--grey-200);
  color: var(--text);
  border-color: var(--border-dark);
}

.badge-error {
  background: var(--grey-300);
  color: var(--text);
  border-color: var(--border-dark);
}

/* Alerts - Classic Style */
.alert {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-4);
  font-size: var(--font-size);
  background: var(--white);
}

.alert-info {
  border-color: var(--border-medium);
  background: var(--grey-50);
}

.alert-success {
  border-color: var(--border-medium);
  background: var(--grey-50);
}

.alert-warning {
  border-color: var(--border-dark);
  background: var(--grey-100);
}

.alert-error {
  border-color: var(--border-dark);
  background: var(--grey-200);
}

/* Grid - Tight spacing */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }


/* Flexbox - Tight spacing */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Vehicle Cards */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Vehicle Library (Photos-style panes) */
.vehicle-library-layout {
  display: flex;
  min-height: calc(100vh - 120px);
  background: var(--grey-100);
  border: 1px solid var(--border-light);
}

.vehicle-library-sidebar {
  width: 280px;
  flex: 0 0 280px;
  background: var(--grey-50);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.vehicle-library-sidebar-collapsed {
  width: 0;
  flex: 0 0 0;
  min-width: 0;
  overflow: hidden;
}

.vehicle-library-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--grey-100);
}

.vehicle-library-toolbar {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  background: var(--grey-50);
}

.vehicle-library-toolbar-left {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-width: 0;
}

.vehicle-library-toolbar-right {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex: 0 0 auto;
}

.vehicle-library-scroll {
  overflow: auto;
  padding: var(--space-3);
}

.vehicle-library-sidebar-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.vehicle-library-sidebar-scroll {
  overflow: auto;
  padding: var(--space-3);
}

.vehicle-sidebar-section {
  border: 1px solid var(--border-light);
  background: var(--white);
  margin-bottom: var(--space-3);
}

.vehicle-sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size);
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  background: var(--grey-50);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.vehicle-sidebar-section-body {
  padding: var(--space-3);
}

.vehicle-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  background: var(--white);
  cursor: pointer;
  font-size: var(--font-size);
  font-weight: 600;
  transition: all 0.12s ease;
}

.vehicle-sidebar-item:hover {
  background: var(--grey-100);
}

.vehicle-sidebar-item-active {
  border: 2px solid var(--primary);
  background: rgba(0, 123, 255, 0.08);
}

.vehicle-sidebar-item + .vehicle-sidebar-item {
  margin-top: var(--space-2);
}

.vehicle-sidebar-mini {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: 600;
}


.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  min-height: 200px;
}

.vehicle-card:hover {
  box-shadow: var(--shadow);
}

.vehicle-thumbnail {
  height: 120px;
  overflow: hidden;
  background: var(--background-light);
  border-bottom: 1px solid var(--border-light);
}

.vehicle-thumbnail-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.vehicle-thumbnail-link:hover {
  opacity: 0.9;
}

.vehicle-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  background: var(--grey-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: normal;
}

.metric-value {
  font-size: var(--font-size-small);
  font-weight: bold;
  color: var(--text);
}

.vehicle-image {
  width: 100%;
  height: 100px;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-bottom: 1px solid var(--border-light);
}

.vehicle-content {
  padding: var(--space-4);
}

.vehicle-title {
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.vehicle-info {
  padding: var(--space-2);
  flex: 1;
}

.vehicle-title {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 var(--space-2) 0;
  line-height: 1.3;
  color: var(--text);
}

.vehicle-details {
  margin-bottom: var(--space-4);
}

.vehicle-detail {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: var(--font-size-small);
  color: var(--text);
}

.vehicle-actions {
  display: flex;
  gap: var(--space-2);
}

/* Status Indicators - Classic Style */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-small);
  font-weight: normal;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.status-online {
  color: var(--text);
}

.status-online .status-dot {
  background: var(--text);
}

.status-offline {
  color: var(--text-muted);
}

.status-offline .status-dot {
  background: var(--text-muted);
}

.status-warning {
  color: var(--text);
}

.status-warning .status-dot {
  background: var(--text);
  border-color: var(--border-dark);
}

.status-error {
  color: var(--text);
}

.status-error .status-dot {
  background: var(--text);
  border-color: var(--border-dark);
}

/* ===== APP LAYOUT ===== */
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grey-100);
}

.main {
  flex: 1;
  padding-bottom: var(--space-12);
}

.app-footer {
  background: var(--grey-200);
  border-top: 1px solid var(--border-light);
  padding: var(--space-4) var(--space-8);
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin-top: auto;
}

/* .app-header removed - using .header-content directly instead */

/* Fix sticky header positioning when GlobalUploadStatus is present */
.global-upload-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200; /* Higher than app-header */
  height: auto;
  min-height: 40px;
}

/* Add class-based approach for when upload status is active */
.has-upload-status .header-wrapper {
  top: 60px;
}

/* Adjust main content padding when upload status is active */
.has-upload-status .main-content {
  padding: 120px 0 var(--space-4) 0; /* Height of upload status + header + buffer */
}

/* Also ensure content container has proper spacing */
.content-container {
  padding-top: 0;
}

/* REMOVED - now in header-fix.css */
/* .header-wrapper, .header-content, .header-left moved to header-fix.css for clean separation */

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  font-size: var(--font-size);
}

.logo-text {
  padding: var(--space-1) var(--space-2);
  background: var(--grey-300);
  border: 1px outset var(--grey-300);
}

.main-nav {
  display: flex;
  gap: var(--space-4);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border: 1px solid transparent;
  font-size: var(--font-size);
}

.nav-link:hover {
  background: var(--grey-100);
  border: 1px inset var(--grey-300);
}

.nav-link.active {
  background: var(--grey-300);
  border: 1px inset var(--grey-600);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--grey-700);
}

.main-nav.collapsed .nav-link {
  display: none;
}

.main-nav.collapsed .nav-link.active {
  display: inline-block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-right: 5px; /* ensure min inset from right edge */
  flex: 0 0 auto;
  min-width: 0;
  flex-shrink: 0;
}

/* Mobile Navigation Styles */
.mobile-menu-button {
  background: var(--grey-200);
  border: 1px outset var(--border-light);
  padding: var(--space-2);
  cursor: pointer;
  font-size: 18px;
  min-height: 44px;
  min-width: 44px;
  display: none;
}

.mobile-menu-button:active {
  border: 1px inset var(--border-light);
}

.mobile-nav {
  background: var(--grey-100);
  border-top: 1px solid var(--border-light);
  padding: var(--space-2) 0;
  display: none;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover {
  background: var(--grey-200);
}

.mobile-nav-link.active {
  background: var(--grey-300);
  font-weight: bold;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Profile Bubble */
.profile-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-200);
  border: 2px solid var(--grey-300);
  text-decoration: none;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative; /* ensure child image can absolutely fill circle */
  line-height: 0; /* remove inline text baseline gap */
}

.profile-bubble:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.profile-image {
  position: absolute; /* overlay to center regardless of text nodes */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  border-radius: 50%;
  display: block;
}

.profile-initials {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
}

/* Page Header */
.page-header {
  background: var(--grey-50);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-3) 0;
}

.page-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.back-button {
  font-size: var(--font-size-small);
  padding: var(--space-1) var(--space-2);
}

.page-title-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 var(--space-1);
  color: var(--text-muted);
}

.page-title {
  font-size: var(--font-size);
  font-weight: bold;
  margin: 0;
  color: var(--text);
}

.page-header-right {
  display: flex;
  gap: var(--space-2);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 0 0 var(--space-4) 0; /* Flush with header on top */
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: rgba(0, 0, 0, 0.12) 0px -2px 4px;
  }

  .mobile-bottom-nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9pt;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    background: transparent;
  }

  .mobile-bottom-nav-item.active {
    color: var(--text);
    font-weight: bold;
  }

  .main-content {
    padding-bottom: calc(var(--space-4) + 56px);
  }

  .app-footer {
    padding-bottom: calc(var(--space-4) + 56px);
  }
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px; /* slight side padding */
}

/* Vehicle price header breaks out of container padding */
.vehicle-price-header {
  margin-left: calc(-1 * 5px) !important;
  margin-right: calc(-1 * 5px) !important;
  width: calc(100% + 10px) !important;
  max-width: none !important;
}

/* Odometer badge (vehicle header) */
.odometer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.odometer-badge__k {
  font-weight: 800;
  font-size: 10px;
  color: var(--text);
  opacity: 0.9;
}

.odometer-badge__digits {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.odometer-badge__digit {
  width: 10px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: #0b0f14;
  color: #e5e7eb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.odometer-badge--mechanical .odometer-badge__digit {
  background: linear-gradient(180deg, #0b0f14 0%, #111827 100%);
}

.odometer-badge--digital .odometer-badge__digit {
  background: #05070a;
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.10);
}

.odometer-badge__unit {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 9px;
  margin-left: 1px;
}

.odometer-badge__note {
  margin-left: 4px;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Ensure no top padding under compact layout */
.compact .main {
  padding-top: 0;
}

/* Loading States */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: var(--space-3);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Modals - Classic Style */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--white);
  border: 2px outset var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background: var(--grey-100);
}

.modal-title {
  font-size: var(--font-size);
  font-weight: bold;
  margin: 0;
  color: var(--text);
}

.modal-body {
  padding: var(--space-4);
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-light);
  background: var(--grey-50);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* Upload Zone - Classic Style */
.upload-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  background: var(--grey-50);
  transition: all 0.1s ease;
}

.upload-zone:hover {
  border-color: var(--border-dark);
  background: var(--grey-100);
}

.upload-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* Spinner - Classic Style */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Image Details Panel - Classic Style */
.image-details-panel {
  background: var(--white);
  border: 2px inset var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 100%;
  margin-top: var(--space-4);
}

.image-details-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background: var(--grey-100);
}

.image-details-loading {
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.image-details-content {
  padding: var(--space-6);
}

.image-details-empty {
  padding: var(--space-6);
  text-align: center;
}

.image-details-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--border-light);
  background: var(--grey-50);
  text-align: center;
}

/* Detail Sections */
.detail-section {
  margin-bottom: var(--space-4);
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--text);
  margin: 0 0 var(--space-2) 0;
  padding: var(--space-1) var(--space-2);
  background: var(--grey-200);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item-full {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.detail-label {
  font-size: var(--font-size-small);
  font-weight: bold;
  color: var(--text);
  flex-shrink: 0;
}

.detail-value {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  text-align: right;
  word-break: break-word;
}

.detail-item-full .detail-value {
  text-align: left;
}

/* Related Tasks */
.related-tasks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.related-task-item {
  padding: var(--space-2);
  background: var(--grey-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

/* Social Features */
.social-stats {
  display: flex;
  gap: var(--space-4);
  justify-content: space-around;
  padding: var(--space-2);
  background: var(--grey-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.social-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.social-stat-number {
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--text);
}

.social-stat-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.social-action-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: background-color 0.1s ease;
}

.social-action-button:hover {
  background: var(--grey-100);
}

.social-action-button.liked {
  background: var(--grey-200);
}

.social-action-button.liked .social-stat-number {
  color: var(--text);
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 200px;
  overflow-y: auto;
}

.comment-item {
  padding: var(--space-2);
  background: var(--grey-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-1);
}

.comment-text {
  color: var(--text);
  line-height: var(--leading-normal);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.comment-input {
  width: 100%;
  padding: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  border: 1px inset var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  resize: vertical;
  min-height: 60px;
}

.comment-input:focus {
  outline: 1px dotted var(--text);
  border-color: var(--border-dark);
}

/* Comment Popup */
.comment-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
}

.comment-popup {
  position: absolute;
  width: 320px;
  max-height: 400px;
  background: var(--grey-100);
  border: 2px outset var(--border-light);
  border-radius: var(--radius);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: all;
  display: flex;
  flex-direction: column;
}

.comment-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2);
  border-bottom: 1px inset var(--border-light);
  background: var(--grey-200);
}

.comment-popup-title {
  font-size: var(--font-size-small);
  font-weight: bold;
  color: var(--text);
  margin: 0;
}

.comment-popup-close {
  background: var(--grey-200);
  border: 1px outset var(--border-light);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
}

.comment-popup-close:hover {
  background: var(--grey-300);
}

.comment-popup-close:active {
  border: 1px inset var(--border-light);
}

.comment-popup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.comment-popup-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  gap: var(--space-2);
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2);
  min-height: 0;
}

.comment-form {
  border-top: 1px inset var(--border-light);
  padding: var(--space-2);
  background: var(--grey-50);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-2);
}

/* ===== Compact Layout (lean UI for dense forms) ===== */
.compact .card {
  box-shadow: none;
  border: 1px solid var(--border-light);
  border-radius: 0;
}
.compact .card-header {
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.compact .card-body {
  padding: var(--space-3);
}
.compact .form-group {
  margin-bottom: var(--space-2);
}
.compact .form-label {
  margin-bottom: 2px;
}
.compact .form-input,
.compact select.form-input,
.compact textarea.form-input {
  padding: 4px 6px;
  min-height: 26px;
  border: 1px solid var(--border-medium);
  border-radius: 0;
  box-shadow: none;
}
.compact .form-input[type="file"] {
  padding: 2px 4px;
}
.compact .button {
  padding: 4px 8px;
  min-height: 26px;
  border: 1px solid var(--border-medium);
  background: var(--grey-100);
  box-shadow: none;
}
.compact .button-small {
  padding: 2px 6px;
  min-height: 22px;
}
.compact .heading-1 { font-size: var(--font-size); }
.compact .heading-3 { font-size: var(--font-size); }

/* Ultra-compact buttons for dense toolbars and filters */
.compact .button,
.compact .button-primary,
.compact .button-secondary,
.compact .button-danger {
  padding: 1px 4px;
  min-height: 16px;
  line-height: 1;
}

/* Normalize danger button style (keep flat, not chunky) */
.button-danger {
  background: var(--grey-100);
  border: 1px solid var(--border-medium);
}

/* Actions row compactness */
.compact .vehicle-actions .button {
  padding: 1px 4px;
  min-height: 16px;
}

/* Inline field (input + button) */
.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: center;
}

/* Two-column group on wide screens */
.two-col {
  display: grid;
  gap: var(--space-2);
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.compact .section {
  margin-bottom: var(--space-4);
}

/* Vehicle Profile Two Column Layout */
.vehicle-profile-two-column {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-4);
}

/* Vehicle Profile: collapsible left-column cards */
.vehicle-profile-left-column .card .card-header {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.vehicle-profile-left-column .card.is-collapsed .card-body {
  display: none;
}

.vehicle-profile-left-column .card.is-collapsed .card-header {
  border-bottom: none;
}

@media (max-width: 768px) {
  .vehicle-profile-two-column {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
}

/* Sticky scrollable comments container */
.comments-scroll-container {
  /* Webkit scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.comments-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.comments-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.comments-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.comments-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--border-dark);
}

/* Smooth scrolling for comments */
.comments-scroll-container {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Commentable elements */
.commentable {
  position: relative;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.commentable:hover {
  background: var(--grey-100);
  border: 1px dashed var(--border-dark);
}

.commentable::after {
  content: '💬';
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 10px;
  opacity: 0.3;
  transition: opacity 0.2s ease;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.commentable:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.commentable.has-comments::after {
  opacity: 1;
  background: var(--grey-200);
}

/* Vehicle Results */
.results-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--grey-50);
  border: 1px inset var(--border-light);
  border-radius: var(--radius);
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.result-item.primary-result {
  padding: var(--space-2);
  background: var(--white);
  border: 1px inset var(--border-light);
  border-radius: var(--radius-sm);
}

.result-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: normal;
}

.result-value {
  font-size: var(--font-size);
  color: var(--text);
  font-weight: bold;
}

.result-value.price {
  font-size: 18px;
  color: var(--text);
}

.result-source {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.result-stats {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-2);
  background: var(--grey-100);
  border: 1px inset var(--border-light);
  border-radius: var(--radius-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-number {
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--text);
}

.stat-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

/* Aggregated Comments */
.comments-aggregated {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.comments-loading,
.comments-empty {
  text-align: center;
  padding: var(--space-4);
  color: var(--text-muted);
}

.comments-loading .spinner {
  margin: 0 auto var(--space-2);
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.aggregated-comment {
  padding: var(--space-3);
  background: var(--grey-50);
  border: 1px inset var(--border-light);
  border-radius: var(--radius);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--border-light);
}

.comment-type-icon {
  font-size: 14px;
}

.comment-target {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: bold;
}

.comment-date {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin-left: auto;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.comment-author-section {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.avatar-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
}

.comment-author {
  font-size: var(--font-size-small);
  font-weight: bold;
}

.comment-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--text);
}

.comment-text {
  font-size: var(--font-size-small);
  color: var(--text);
  line-height: var(--leading-normal);
}

/* Market Pulse */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.pulse-metric {
  background: var(--grey-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  padding: var(--space-3);
  text-align: center;
}

.metric-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: normal;
  margin-bottom: var(--space-2);
}

.metric-value {
  font-size: var(--font-size-base);
  font-weight: bold;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.metric-change {
  font-size: var(--font-size-small);
  font-weight: normal;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-400);
}

.pulse-indicator.live {
  background: #22c55e;
  animation: pulse 2s infinite;
}

.pulse-indicator.offline {
  background: var(--grey-400);
}

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

/* Commenting Guide */
.commenting-guide {
  background: var(--grey-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.commenting-guide-collapsed {
  margin-bottom: var(--space-2);
}

.commenting-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.commenting-guide-header h4 {
  margin: 0;
  font-size: var(--font-size);
  color: var(--text);
}

.commenting-guide-close {
  background: var(--grey-200);
  border: 1px outset var(--border-light);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
}

.commenting-guide-close:hover {
  background: var(--grey-300);
}

.commenting-guide-close:active {
  border: 1px inset var(--border-light);
}

.commenting-guide-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.commenting-guide-example {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--white);
  border: 1px inset var(--border-light);
  border-radius: var(--radius-sm);
}

.commentable.demo {
  background: var(--grey-100);
  border: 1px dashed var(--border-dark);
}

.commentable.demo::after {
  opacity: 1;
  animation: pulse 2s infinite;
}

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


/* Animations - Minimal */
.fade-in {
  animation: fade-in 0.1s ease;
}

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



/* Profile Page Styles */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.profile-content {
  width: 100%;
  max-width: 100%;
}

.avatar-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: var(--text-muted);
}

.profile-info {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.verified-badge {
  background: var(--success);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-small);
  font-weight: bold;
}

.profile-bio {
  color: var(--text);
  margin: var(--space-3) 0;
  font-style: italic;
}

.profile-link {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin: var(--space-2) 0;
}

.profile-link:hover {
  text-decoration: underline;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.achievement-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.achievement-content {
  flex: 1;
}

.achievement-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.points-badge {
  background: var(--success);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: 0px;
  font-size: var(--font-size-small);
  font-weight: bold;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.activity-item {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-input {
  padding: var(--space-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-small);
  font-family: var(--font-family);
  font-size: var(--font-size);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.form-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}


/* Vehicle Interaction Panel Styles */
.tab-nav {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 2px;
}

.tab-button {
  padding: 6px 8px;
  font-size: 8px;
  font-family: Arial, sans-serif;
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  color: #424242;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab-button.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tab-button:hover:not(.active) {
  color: #000000;
}

.badge {
  background: #e0e0e0;
  color: #000000;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: normal;
}

.interaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.interaction-option {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.interaction-option:hover {
  border-color: #bdbdbd;
  background: #fafafa;
}

.interaction-icon {
  width: 20px;
  height: 20px;
  color: #424242;
}

.interaction-label {
  font-size: 8px;
  font-family: Arial, sans-serif;
  color: #000000;
  font-weight: normal;
}

.interaction-description {
  font-size: 9px;
  font-family: Arial, sans-serif;
  color: #424242;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 24px 12px;
}

.empty-icon {
  width: 32px;
  height: 32px;
  color: #bdbdbd;
  margin: 0 auto 8px;
}

.request-list,
.session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-card,
.session-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 12px;
}

.request-header,
.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.request-user,
.session-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.user-avatar,
.session-status {
  flex-shrink: 0;
}

.avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initial {
  font-size: 10px;
  font-family: Arial, sans-serif;
  color: #424242;
}

.request-title,
.session-title {
  font-size: 8px;
  font-family: Arial, sans-serif;
  color: #000000;
  margin-bottom: 2px;
}

.request-subtitle,
.session-subtitle {
  font-size: 8px;
  font-family: Arial, sans-serif;
  color: #424242;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 9px;
  font-family: Arial, sans-serif;
  color: #424242;
}

.status-icon {
  width: 10px;
  height: 10px;
}

.request-message,
.session-description {
  font-size: 10px;
  font-family: Arial, sans-serif;
  color: #000000;
  margin-bottom: 8px;
  background: #fafafa;
  padding: 6px;
  border-radius: 2px;
}

.request-details,
.session-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-family: Arial, sans-serif;
  color: #424242;
  margin-bottom: 8px;
}

.details-left {
  display: flex;
  gap: 8px;
}

.request-actions {
  display: flex;
  gap: 4px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bdbdbd;
}

.status-indicator.live {
  background: #ff4444;
  animation: pulse 2s infinite;
}

.status-indicator.completed {
  background: #44aa44;
}

.session-date {
  text-align: right;
}

.date {
  font-size: 10px;
  font-family: Arial, sans-serif;
  color: #000000;
}

.time {
  font-size: 9px;
  font-family: Arial, sans-serif;
  color: #424242;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #ff4444;
  font-size: 9px;
  font-family: Arial, sans-serif;
  font-weight: normal;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  animation: pulse 2s infinite;
}

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

.button-success {
  background: #44aa44;
  color: #ffffff;
  border: 1px solid #44aa44;
}

.button-success:hover {
  background: #339933;
  border-color: #339933;
}

.button-danger {
  background: #cc4444;
  color: #ffffff;
  border: 1px solid #cc4444;
}

.button-danger:hover {
  background: #bb3333;
  border-color: #bb3333;
}

/* Global Upload Status Styles */
.global-upload-status {
  font-family: var(--font-family);
  font-size: 10px;
  z-index: 1000;
}

.global-upload-progress {
  height: 2px;
  background: var(--grey-200);
  border-radius: 0;
  overflow: hidden;
}

.global-upload-progress-bar {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 0;
}

.global-upload-progress-bar.uploading {
  background: var(--upload-blue);
}

.global-upload-progress-bar.completed {
  background: var(--upload-green);
}

.global-upload-progress-bar.error {
  background: var(--upload-red);
}

/* Ensure main content doesn't get hidden behind fixed upload bar */
body {
  padding-top: 0;
}

.layout {
  position: relative;
}

.main {
  position: relative;
}

/* Input with clear button for URL fields */
.input-with-button {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-button input {
  flex: 1;
  padding-right: 2.5rem; /* Space for clear button */
}

.btn-clear-input {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
  z-index: 10;
}

.btn-clear-input:hover {
  background-color: var(--grey-100);
  color: var(--text);
}

.btn-clear-input:active {
  background-color: var(--grey-200);
}

/* Compact Vehicle Card Styles */
.vehicle-card-compact {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.vehicle-card-compact:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.vehicle-thumbnail-link {
  position: relative;
  display: block;
  height: 80px; /* Reduced height */
}

.live-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 2px;
}

.live-dot {
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

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

.vehicle-info-compact {
  padding: var(--space-2);
  flex: 1;
}

.vehicle-title-compact {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 var(--space-1) 0;
  line-height: 1.2;
}

.vehicle-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.owner-link {
  font-size: 9px;
  color: var(--text-muted);
  text-decoration: none;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.price-display {
  font-size: 9px;
  font-weight: 600;
  color: var(--text);
}

.vehicle-metrics-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
}

.hype-meter {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
  margin-right: var(--space-1);
}

.hype-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ff6b35, #ff0000);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.hype-text {
  position: absolute;
  right: -14px;
  top: -6px;
  font-size: 8px;
}

.date-compact {
  font-size: 8px;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-badges {
  display: flex;
  gap: 2px;
}

.status-sale,
.status-verified {
  font-size: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.status-sale {
  background: var(--success-color, #28a745);
  color: white;
}

.status-verified {
  background: var(--primary-color, #007bff);
  color: white;
}

/* Windows 95 Style Controls for Vehicle Page */
.vehicle-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  flex: 1;
}

.search-sort-controls {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

/* Windows 95 Button Styling */
.button-win95 {
  background: var(--grey-200);
  border: 2px outset var(--grey-200);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 8pt;
  font-weight: normal;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1.1;
  min-height: 20px;
  white-space: nowrap;
  transition: none;
}

.button-win95:hover {
  background: var(--grey-300);
  border-color: var(--grey-300);
}

.button-win95:active,
.button-win95-pressed {
  background: var(--grey-400);
  border: 2px inset var(--grey-200);
  transform: none;
}

/* Windows 95 Input Styling */
.input-win95 {
  background: var(--white);
  border: 2px inset var(--grey-200);
  font-family: Arial, sans-serif;
  font-size: 8pt;
  padding: 2px 4px;
  min-height: 16px;
  width: 120px;
}

.input-win95:focus {
  outline: none;
  background: var(--white);
}

/* Windows 95 Select Button */
.sort-button {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-width: 100px;
}

.select-win95 {
  background: transparent;
  border: none;
  font-family: Arial, sans-serif;
  font-size: 8pt;
  padding: 2px 16px 2px 4px;
  cursor: pointer;
  width: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
}

.sort-button::after {
  content: '▼';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6pt;
  color: var(--text);
  pointer-events: none;
}

/* Mobile Menu Button (hidden on desktop) */
.mobile-menu-button {
  display: none;
  background: var(--grey-200);
  border: 2px solid var(--border-light);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: 18px;
  min-height: 44px;
  min-width: 44px;
}

.mobile-menu-button:hover {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #0ea5e922;
}

/* Mobile Navigation Menu (hidden by default) */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 2px solid var(--border-light);
  padding: var(--space-2);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--grey-100);
  border-left: 3px solid #0ea5e9;
  padding-left: calc(var(--space-4) - 3px);
}


/* Auction pulse dot (live/ending) */
@keyframes auctionPulseDot {
  0% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(1); opacity: 0.65; }
}

.auction-live-dot {
  animation: auctionPulseDot 1.1s ease-in-out infinite;
}

/* Auction urgency pulse (bid + price) */
@keyframes auctionUrgencyPulse {
  0% {
    box-shadow: 0 0 0 rgba(220, 38, 38, 0.0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: 0 0 0 rgba(220, 38, 38, 0.0);
    transform: translateY(0);
  }
}

.auction-cta-pulse {
  animation: auctionUrgencyPulse var(--auction-pulse-ms, 3800ms) ease-in-out infinite;
}

.auction-price-pulse {
  animation: auctionUrgencyPulse var(--auction-pulse-ms, 3800ms) ease-in-out infinite;
  border-radius: 3px;
  padding: 1px 3px;
}

@media (prefers-reduced-motion: reduce) {
  .auction-cta-pulse,
  .auction-price-pulse,
  .auction-live-dot {
    animation: none !important;
  }
}

/* Receipt "open" dots (no emoji; intended for live auction day receipts) */
@keyframes receiptDotBlink {
  0% { opacity: 0.25; }
  30% { opacity: 0.25; }
  60% { opacity: 1; }
  100% { opacity: 0.25; }
}

.receipt-open-dots {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 2px;
}

.receipt-open-dot {
  animation: receiptDotBlink 1.2s linear infinite;
}

.receipt-open-dot:nth-child(2) { animation-delay: 0.15s; }
.receipt-open-dot:nth-child(3) { animation-delay: 0.3s; }
  
  /* REMOVED - header-wrapper now defined in header-fix.css with proper z-index: 1000 */
  /* Old conflicting rule removed - was forcing z-index: 100 !important */
  
  /* Upload components should be above everything */
  .fixed.inset-0[style*="z-index: 9999"],
  .fixed.inset-0[class*="z-[9999]"] {
    z-index: 10000 !important;
  }

  /* Fix button sizing on mobile - prevent explosion */
  .button,
  button {
    width: auto !important;
    max-width: 100% !important;
    padding: var(--space-2) var(--space-3) !important;
    font-size: 7pt !important;
    min-width: auto !important;
    min-height: 32px !important;
  }
  
  /* Specific fixes for inline buttons that shouldn't expand */
  .card-header button,
  [style*="justifyContent: 'space-between'"] button,
  [style*='justifyContent:"space-between"'] button {
    padding: 2px 6px !important;
    font-size: 7pt !important;
    min-width: auto !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }
  
  /* Mobile menu button exception */
  .mobile-menu-button {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  /* Timeline Heatmap - keep original horizontal scroll on mobile */
  .timeline-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* FORCE single column layout for vehicle profile on mobile */
  .section [style*="gridTemplateColumns: '320px 1fr'"],
  .section [style*='gridTemplateColumns:"320px 1fr"'],
  .section [style*="grid-template-columns: 320px 1fr"],
  .section > div[style*="grid-template-columns"],
  [style*="display: grid"][style*="gap: var(--space-4)"][style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  /* Stack all content vertically */
  .vehicle-profile-layout,
  .section > div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Image gallery at bottom */
  .section > div > div:last-child {
    order: 999;
  }

  /* Price badge smaller on mobile */
  .price-badge,
  .price-display {
    font-size: 14px !important;
    padding: var(--space-2) var(--space-3) !important;
  }

  /* Vehicle header info more compact */
  .vehicle-header {
    padding: var(--space-2) !important;
  }

  .vehicle-title {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

/* ============================================
   CURSOR IDE DESIGN PATTERNS
   Premium interactive polish
   ============================================ */

/* Pattern 1: Thick Borders on Interactive Elements */
.button,
.form-input,
.card,
button {
  border: 2px solid var(--border-light);
  transition: all 0.12s ease;
}

/* Pattern 2: Interactive Feedback */
.button:hover,
.form-input:hover,
button:hover {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #0ea5e922;
}

/* Pattern 3: Focus Ring with Halo */
.button:focus-visible,
.form-input:focus-visible,
button:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #0ea5e922;
}

/* Pattern 4: Hover Lift Effect */
.card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #0ea5e922;
  transform: translateY(-2px);
}

/* Pattern 5: Smooth Transitions Everywhere */
* {
  transition: all 0.12s ease;
}

/* Admin Navigation Hover States */
.admin-nav-inactive:hover {
  background-color: var(--grey-50) !important;
  color: var(--text) !important;
}

.admin-nav-active {
  background-color: var(--grey-100) !important;
  color: var(--text) !important;
}

/* Year quick buttons - hide when container is too narrow */
@media (max-width: 900px) {
  .year-quick-buttons {
    display: none !important;
  }
}

/* Vehicle Header Badges - Responsive hiding */
/* Priority order: 1 = org icons (always visible), 2 = odometer, 3 = location, 4 = meme drop, 5 = owner badge */

/* Hide priority 5 (owner badge) on smaller screens */
@media (max-width: 1200px) {
  .vehicle-header-badges .badge-priority-5 {
    display: none !important;
  }
}

/* Hide priority 4 (meme drop) on medium screens */
@media (max-width: 1000px) {
  .vehicle-header-badges .badge-priority-4 {
    display: none !important;
  }
}

/* Hide priority 3 (location) on smaller screens */
@media (max-width: 800px) {
  .vehicle-header-badges .badge-priority-3 {
    display: none !important;
  }
}

/* Keep priority 2 (odometer) and priority 1 (org icons) visible as long as possible */
/* Only hide odometer on very small screens */
@media (max-width: 600px) {
  .vehicle-header-badges .badge-priority-2 {
    display: none !important;
  }
}

