:root {
  --mobile-tap-target: 44px;
  --mobile-padding: 16px;
  --mobile-gap: 12px;
  --mobile-header-height: 48px;
  --mobile-nav-height: 56px;
  --mobile-safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  .mobile-hidden {
    display: none !important;
  }

  .mobile-visible {
    display: block !important;
  }

  .touch-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

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

@media screen and (min-width: 769px) {
  .desktop-hidden {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --mobile-padding: 12px;
    --mobile-gap: 8px;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .mobile-landscape-compact {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
  
  .mobile-landscape-compact .mobile-header {
    height: 36px;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .touch-only {
    display: block;
  }
  
  .hover-only {
    display: none;
  }
  
  button, 
  [role="button"],
  input[type="submit"],
  input[type="button"] {
    min-height: var(--mobile-tap-target);
    min-width: var(--mobile-tap-target);
  }
  
  a {
    min-height: var(--mobile-tap-target);
    display: inline-flex;
    align-items: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  .touch-only {
    display: none;
  }
  
  .hover-only {
    display: block;
  }
}

.mobile-btn {
  min-height: var(--mobile-tap-target);
  min-width: var(--mobile-tap-target);
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.mobile-btn:active {
  transform: scale(0.96);
}

.mobile-btn-primary {
  background-color: hsl(var(--foreground));
  color: hsl(var(--accent-foreground)));
}

.mobile-btn-secondary {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.mobile-input {
  width: 100%;
  min-height: var(--mobile-tap-target);
  padding: var(--space-6) var(--space-8);
  font-size: 16px;
  border-radius: 2px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.mobile-input:focus {
  outline: none;
  border-color: hsl(var(--foreground));
}

.mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: hsl(var(--background));
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-panel.active {
  transform: translateX(0);
}

.mobile-panel-header {
  position: sticky;
  top: 0;
  height: var(--mobile-header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--mobile-padding);
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  z-index: 10;
}

.mobile-panel-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--mobile-padding);
  padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-area-bottom) + var(--mobile-padding));
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--mobile-nav-height) + var(--mobile-safe-area-bottom));
  padding-bottom: var(--mobile-safe-area-bottom);
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  min-height: var(--mobile-tap-target);
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.mobile-nav-item.active {
  color: hsl(var(--foreground));
}

.mobile-nav-item:active {
  background-color: color-mix(in srgb, hsl(var(--foreground)) 12%, transparent);
}

.mobile-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.pull-to-refresh {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
  transition: transform 0.2s ease;
}

.pull-to-refresh.visible {
  transform: translateX(-50%) translateY(60px);
}

.pull-to-refresh.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: translateX(-50%) translateY(60px) rotate(0deg); }
  to { transform: translateX(-50%) translateY(60px) rotate(360deg); }
}

.swipe-indicator {
  position: absolute;
  bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-area-bottom) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
}

.swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: hsl(var(--muted-foreground));
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.swipe-dot.active {
  background-color: hsl(var(--foreground));
  transform: scale(1.3);
}

.mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background-color: hsl(var(--card));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-handle {
  width: 36px;
  height: 4px;
  background-color: hsl(var(--border));
  border-radius: 2px;
  margin: var(--space-4) auto;
}

.mobile-drawer-content {
  max-height: calc(80vh - 20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 55;
}

.mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.mobile-context-menu {
  position: fixed;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: var(--space-4) 0;
  min-width: 160px;
  z-index: 70;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-context-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  min-height: var(--mobile-tap-target);
  color: hsl(var(--foreground));
  font-size: 14px;
  cursor: pointer;
}

.mobile-context-menu-item:active {
  background-color: color-mix(in srgb, hsl(var(--foreground)) 12%, transparent);
}

.mobile-context-menu-item.danger {
  color: hsl(var(--negative));
}

@media screen and (max-width: 768px) {
  .responsive-grid {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-gap);
  }

  .responsive-grid > * {
    width: 100% !important;
  }

  .responsive-hide-sidebar {
    display: none !important;
  }

  .responsive-stack {
    flex-direction: column !important;
  }

  .responsive-full-width {
    width: 100% !important;
    max-width: 100% !important;
  }

  .responsive-text-sm {
    font-size: 12px !important;
  }

  .responsive-p-compact {
    padding: var(--mobile-padding) !important;
  }

  .responsive-gap-sm {
    gap: var(--space-4) !important;
  }

  .mobile-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--mobile-gap);
  }

  .mobile-flex-col {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-gap);
  }

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

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

  .mobile-overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-overflow-x-auto::-webkit-scrollbar {
    display: none;
  }

  .mobile-snap-x {
    scroll-snap-type: x mandatory;
  }

  .mobile-snap-center {
    scroll-snap-align: center;
  }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .mobile-portrait-col {
    flex-direction: column !important;
  }

  .mobile-portrait-full {
    width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .mobile-landscape-row {
    flex-direction: row !important;
  }

  .mobile-landscape-half {
    width: 50% !important;
  }

  .mobile-landscape-compact-header {
    height: 36px !important;
    padding: 0 var(--space-4) !important;
  }
}

.virtual-keyboard-active {
  position: fixed;
  bottom: 0;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }

  .mobile-panel-content {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + var(--mobile-padding));
  }
}

.widget-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.widget-table-container::-webkit-scrollbar {
  display: none;
}

.widget-select {
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  font-size: 11px;
  border-radius: 2px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
  touch-action: manipulation;
}

.widget-button {
  min-height: 32px;
  min-width: 32px;
  padding: var(--space-2) var(--space-5);
  font-size: 11px;
  border-radius: 2px;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.widget-button:active {
  transform: scale(0.96);
}

.widget-input {
  min-height: 32px;
  padding: var(--space-2) var(--space-4);
  font-size: 11px;
  border-radius: 2px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  outline: none;
}

.widget-input:focus {
  border-color: hsl(var(--foreground));
}

.widget-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
}

.widget-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.widget-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.widget-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media screen and (max-width: 768px) {
  .widget-select {
    min-height: 40px;
    padding: var(--space-4) var(--space-6);
    font-size: 12px;
  }

  .widget-button {
    min-height: 40px;
    min-width: 40px;
    padding: var(--space-5) var(--space-7);
    font-size: 12px;
  }

  .widget-input {
    min-height: 40px;
    padding: var(--space-5) var(--space-6);
    font-size: 14px;
  }

  .widget-filter-row {
    padding: var(--space-6);
    gap: var(--space-5);
  }

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

  .widget-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .widget-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .widget-grid-2,
  .widget-grid-3,
  .widget-grid-4 {
    grid-template-columns: 1fr;
  }
}
/* ── Instrument Header Bar ────────────────────────────────────────────── */
/* Two-row header: Row 1 = name + buttons, Row 2 = ticker/price/stats    */

.ih-bar {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-9) var(--space-3);
  background: hsl(var(--card))));
  border-bottom: 1px solid hsl(var(--border))));
  flex-shrink: 0;
}

/* ── Row 1: Name + Actions ─────────────────────────────────────────── */

.ih-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-2);
}

.ih-name-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.ih-name {
  font-size: 16px;
  font-weight: 700;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ih-flag {
  font-size: 14px;
  line-height: 1;
}

.ih-exchange-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px var(--space-3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: hsl(var(--primary)) / 0.08));
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Row 2: Ticker + Price + Info Blocks ────────────────────────────── */

.ih-row-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.ih-price-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.ih-ticker {
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--foreground))));
  letter-spacing: 0.04em;
}

.ih-price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
  border-radius: 2px;
  padding: 1px 3px;
}

.ih-currency {
  font-size: 10px;
  font-weight: 500;
  color: hsl(var(--muted-foreground))));
  text-transform: uppercase;
}

.ih-change {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground))));
}
.ih-change--up { color: hsl(var(--positive)); }
.ih-change--down { color: hsl(var(--negative)); }

/* Separator between info blocks */
.ih-sep {
  width: 1px;
  height: 28px;
  background: hsl(var(--border))));
  flex-shrink: 0;
}

/* Info blocks (e.g. Earnings, Sector, Industry) */
.ih-info-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.ih-info-value {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.ih-info-label {
  font-size: 9px;
  font-weight: 500;
  color: hsl(var(--muted-foreground))));
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

/* Stat blocks (Mkt Cap, P/E, Volume) */
.ih-stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.ih-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.ih-stat-label {
  font-size: 9px;
  font-weight: 500;
  color: hsl(var(--muted-foreground))));
  letter-spacing: 0.02em;
}

.ih-stat-value--up { color: hsl(var(--positive)); }
.ih-stat-value--down { color: hsl(var(--negative)); }

/* ── Quick Actions ───────────────────────────────────────────────────── */

.ih-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.ih-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border))));
  border-radius: 2px;
  color: hsl(var(--foreground))));
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.ih-action-btn:hover {
  background: hsl(var(--accent)));
  color: hsl(var(--foreground));
}

.ih-action-btn--accent {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: hsl(var(--primary))));
}

.ih-action-btn--accent:hover {
  background: rgba(255, 255, 255, 0.12);
  color: hsl(var(--primary))));
}

.ih-extended-hours {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 1px;
}
.ih-extended-hours__label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 0 var(--space-2);
  line-height: 14px;
}
.ih-extended-hours__price {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: hsl(var(--foreground));
}
.ih-extended-hours__pct {
  font-size: 11px;
  font-family: var(--font-mono);
  color: hsl(var(--muted-foreground));
}
.ih-extended-hours__pct--up  { color: hsl(var(--positive)); }
.ih-extended-hours__pct--down { color: hsl(var(--negative)); }
/* ============================================================
   copilot.css — dibsTERMINAL Copilot UI (Terminal-inspired rebuild)
   ============================================================
   Modular CSS with three-section layout: Header / Body / Footer
   All new classes use dt-ai-* prefix.
   Legacy classes preserved at bottom for kept sub-components.
   ============================================================ */

/* ==========================================================
   Section 1: Design Tokens (CSS Custom Properties)
   ----------------------------------------------------------
   Every --ai-* color/surface token is a 1:1 alias to the
   shadcn HSL system in globals.css. They exist purely as a
   namespaced abstraction layer so this file stays readable
   *and* so a future Copilot re-skin (different brand tint,
   custom panel surfaces) can be applied centrally without
   touching every rule.
   Layout/typography/spacing tokens (--ai-fs-*, --ai-sp-*,
   --ai-header-h, --ai-shadow-*) are Copilot-specific and
   intentionally don't map to shadcn equivalents.
   ========================================================== */
:root {
  /* Layout */
  --ai-panel-min-w: 360px;
  --ai-panel-max-w: 900px;
  --ai-panel-default-w: 440px;
  --ai-header-h: 48px;
  --ai-footer-max-h: 280px;
  --ai-radius: 4px;
  --ai-radius-sm: 2px;
  --ai-radius-xs: 2px;

  /* Surfaces — inherit from terminal theme (navy panel hierarchy) */
  --ai-bg: hsl(var(--card));
  --ai-bg-elevated: hsl(var(--card));
  --ai-bg-hover: hsl(var(--accent));
  --ai-bg-active: hsl(var(--accent));
  --ai-bg-input: hsl(var(--input));
  --ai-bg-user-msg: hsl(var(--card));
  --ai-bg-assistant-msg: transparent;
  --ai-bg-code: hsl(var(--card));
  --ai-bg-card: hsl(var(--card));
  --ai-bg-overlay: rgba(0,0,0,0.6);
  --ai-bg-badge: hsl(var(--card));

  /* Borders — inherit from terminal theme */
  --ai-border: hsl(var(--border));
  --ai-border-light: hsl(var(--border));
  --ai-border-focus: hsl(var(--ring));
  --ai-border-error: hsl(var(--negative));

  /* Text — inherit from terminal theme */
  --ai-text: hsl(var(--foreground));
  --ai-text-secondary: hsl(var(--foreground));
  --ai-text-tertiary: hsl(var(--muted-foreground));
  --ai-text-link: hsl(var(--brand));
  --ai-text-success: hsl(var(--positive));
  --ai-text-warning: hsl(var(--chart-8));
  --ai-text-error: hsl(var(--negative));

  /* Accent — inherits from terminal theme accent */
  --ai-accent: hsl(var(--brand));
  --ai-accent-hover: hsl(var(--brand) / 0.85);
  --ai-accent-subtle: hsl(var(--brand) / 0.12);

  /* Shadows — subtle depth to match terminal */
  --ai-shadow-sm: 0 2px 10px hsl(0 0% 0% / 0.40);
  --ai-shadow-md: 2px 4px 15px hsl(0 0% 0% / 0.60);
  --ai-shadow-lg: 0 2px 10px hsl(0 0% 0% / 0.80);

  /* Focus glow — match terminal */
  --ai-focus-ring: 0 0 0 2px hsl(var(--brand) / 0.14);

  /* Typography — inherit from terminal theme */
  --ai-font: var(--font-sans);
  --ai-font-mono: var(--font-mono);
  --ai-fs-xs: 11px;
  --ai-fs-sm: 12px;
  --ai-fs-base: 14px;
  --ai-fs-md: 15px;
  --ai-fs-lg: 16px;
  --ai-fs-xl: 18px;
  --ai-lh: 1.5;

  /* Spacing — inherit from terminal theme */
  --ai-sp-xs: 4px;
  --ai-sp-sm: 8px;
  --ai-sp-md: 12px;
  --ai-sp-lg: 16px;
  --ai-sp-xl: 24px;

  /* Transitions — match terminal */
  --ai-transition: 140ms ease;
  --ai-transition-slow: 320ms ease;
}

/* ==========================================================
   Section 2: Panel Shell (DibsAIPanel)
   ========================================================== */
.dt-ai-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--ai-bg);
  border-left: 1px solid var(--ai-border);
  font-family: var(--ai-font);
  font-size: var(--ai-fs-base);
  color: var(--ai-text);
  overflow: hidden;
  contain: layout style;
}

.dt-ai-panel--expanded {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: 100vw !important;
  max-width: none;
  height: 100dvh;
  border-left: none;
  border-radius: 2px;
  box-shadow: none;
}

/* Resize handle */
.dt-ai-panel__resize-handle {
  position: absolute;
  top: 0;
  left: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
  background: transparent;
  transition: background var(--ai-transition);
}
.dt-ai-panel__resize-handle:hover,
.dt-ai-panel__resize-handle--active {
  background: var(--ai-accent);
}

/* ==========================================================
   Section 3: Header
   ========================================================== */
.dt-ai-header {
  display: flex;
  align-items: center;
  height: var(--ai-header-h);
  min-height: var(--ai-header-h);
  padding: 0 var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border);
  background: var(--ai-bg);
  gap: var(--ai-sp-sm);
  flex-shrink: 0;
  z-index: 5;
  position: relative;
}
.dt-ai-header__title {
  flex: 1;
  min-width: 0;
  font-size: var(--ai-fs-md);
  font-weight: 600;
  color: var(--ai-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: var(--ai-sp-sm);
}
.dt-ai-header__title-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ai-radius-xs);
  color: var(--ai-text);
  font-size: var(--ai-fs-md);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  width: 100%;
  outline: none;
  transition: border-color var(--ai-transition);
}
.dt-ai-header__title-input:focus {
  border-color: var(--ai-border-focus);
  background: var(--ai-bg-input);
}
.dt-ai-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
.dt-ai-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--ai-radius-sm);
  background: transparent;
  color: var(--ai-text-secondary);
  cursor: pointer;
  transition: all var(--ai-transition);
  padding: 0;
}
.dt-ai-header__btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-header__btn--active {
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
}
.dt-ai-header__btn svg {
  width: 18px;
  height: 18px;
}
.dt-ai-header__agent-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--ai-radius-sm);
  font-size: var(--ai-fs-xs);
  font-weight: 500;
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
  white-space: nowrap;
}

/* ==========================================================
   Section 4: Body (Chat Area)
   ========================================================== */
.dt-ai-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--ai-sp-md) var(--ai-sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-xs);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.dt-ai-body::-webkit-scrollbar {
  width: 6px;
}
.dt-ai-body::-webkit-scrollbar-track {
  background: transparent;
}
.dt-ai-body::-webkit-scrollbar-thumb {
  background: var(--ai-border);
  border-radius: 2px;
}
.dt-ai-body::-webkit-scrollbar-thumb:hover {
  background: var(--ai-text-tertiary);
}

/* Loading state */
.dt-ai-body__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-sm);
}
.dt-ai-body__loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ai-border);
  border-top-color: var(--ai-accent);
  border-radius: 50%; /* functional: spinner */
  animation: dt-ai-spin 0.6s linear infinite;
  margin-right: var(--ai-sp-sm);
}

/* ==========================================================
   Section 5: Empty State
   ========================================================== */
.dt-ai-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: var(--ai-sp-xl);
  text-align: center;
  gap: var(--ai-sp-lg);
}
.dt-ai-empty__icon {
  width: 48px;
  height: 48px;
  color: var(--ai-text-tertiary);
  opacity: 0.6;
}
.dt-ai-empty__title {
  font-size: var(--ai-fs-lg);
  font-weight: 600;
  color: var(--ai-text);
  margin: 0;
}
.dt-ai-empty__subtitle {
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  max-width: 280px;
  line-height: var(--ai-lh);
  margin: 0;
}
.dt-ai-empty__prompts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ai-sp-sm);
  width: 100%;
  max-width: 360px;
  margin-top: var(--ai-sp-sm);
}
.dt-ai-empty__prompt {
  display: flex;
  align-items: flex-start;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-elevated);
  cursor: pointer;
  text-align: left;
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  line-height: var(--ai-lh);
  transition: all var(--ai-transition);
}
.dt-ai-empty__prompt:hover {
  border-color: var(--ai-accent);
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-empty__prompt-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--ai-accent);
}

/* ==========================================================
   Section 6: Messages
   ========================================================== */
.dt-ai-msg {
  display: flex;
  gap: var(--ai-sp-md);
  padding: var(--ai-sp-md) 0;
  position: relative;
  animation: dt-ai-fadeIn 200ms ease;
}
.dt-ai-msg--user {
  flex-direction: row-reverse;
}
.dt-ai-msg--assistant {
  flex-direction: row;
}

/* Avatar */
.dt-ai-msg__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--ai-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ai-fs-xs);
  font-weight: 600;
}
.dt-ai-msg__avatar--user {
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
}
.dt-ai-msg__avatar--assistant {
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
}
.dt-ai-msg__avatar svg {
  width: 16px;
  height: 16px;
}

/* Message Content */
.dt-ai-msg__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-xs);
}
.dt-ai-msg__bubble {
  padding: var(--ai-sp-md) var(--ai-sp-lg);
  border-radius: var(--ai-radius);
  line-height: var(--ai-lh);
  font-size: var(--ai-fs-base);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dt-ai-msg__bubble--user {
  background: var(--ai-bg-user-msg);
  border: 1px solid var(--ai-border-light);
  border-radius: var(--ai-radius) var(--ai-radius-xs) var(--ai-radius) var(--ai-radius);
  max-width: 85%;
  margin-left: auto;
}
.dt-ai-msg__bubble--assistant {
  background: var(--ai-bg-assistant-msg);
  max-width: 100%;
}

/* Message meta */
.dt-ai-msg__meta {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  padding: 0 var(--space-1);
}
.dt-ai-msg__meta--user {
  justify-content: flex-end;
}
.dt-ai-msg__timestamp {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
}

/* Action bar (copy, thumbs, regenerate) */
.dt-ai-msg__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--ai-transition);
  margin-top: var(--ai-sp-xs);
}
.dt-ai-msg:hover .dt-ai-msg__actions,
.dt-ai-msg__actions--visible {
  opacity: 1;
}
.dt-ai-msg__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  transition: all var(--ai-transition);
  padding: 0;
}
.dt-ai-msg__action-btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-msg__action-btn--active {
  color: var(--ai-accent);
}
.dt-ai-msg__action-btn--positive:hover {
  color: var(--ai-text-success);
}
.dt-ai-msg__action-btn--negative:hover {
  color: var(--ai-text-error);
}
.dt-ai-msg__action-btn svg {
  width: 14px;
  height: 14px;
}

/* Error message */
.dt-ai-msg__error {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-radius: var(--ai-radius-sm);
  background: color-mix(in srgb, hsl(var(--negative)) 10%, transparent);
  border: 1px solid color-mix(in srgb, hsl(var(--negative)) 20%, transparent);
  color: var(--ai-text-error);
  font-size: var(--ai-fs-sm);
}

/* ==========================================================
   Section 7: Streaming / Typing Indicator
   ========================================================== */
.dt-ai-streaming {
  display: flex;
  gap: var(--ai-sp-md);
  padding: var(--ai-sp-md) 0;
}
.dt-ai-streaming__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ai-accent);
  animation: dt-ai-blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}
.dt-ai-streaming__thinking {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-sm);
  font-style: italic;
  padding: var(--ai-sp-sm) 0;
}
.dt-ai-streaming__dots {
  display: inline-flex;
  gap: 3px;
}
.dt-ai-streaming__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ai-text-secondary);
  animation: dt-ai-bounce 1.4s ease-in-out infinite;
}
.dt-ai-streaming__dot:nth-child(2) { animation-delay: 0.16s; }
.dt-ai-streaming__dot:nth-child(3) { animation-delay: 0.32s; }

/* ==========================================================
   Section 8: Citations (terminal-style)
   ========================================================== */
.dt-ai-citations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ai-sp-xs);
  margin-top: var(--ai-sp-sm);
}
.dt-ai-citation {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--ai-radius-sm);
  font-size: var(--ai-fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ai-transition);
  text-decoration: none;
  border: 1px solid transparent;
}
.dt-ai-citation--widget {
  background: color-mix(in srgb, hsl(var(--brand)) 12%, transparent);
  color: var(--ai-accent);
  border-color: color-mix(in srgb, hsl(var(--brand)) 20%, transparent);
}
.dt-ai-citation--widget:hover {
  background: color-mix(in srgb, hsl(var(--brand)) 20%, transparent);
}
.dt-ai-citation--document {
  background: color-mix(in srgb, hsl(var(--positive)) 12%, transparent);
  color: var(--ai-text-success);
  border-color: color-mix(in srgb, hsl(var(--positive)) 20%, transparent);
}
.dt-ai-citation--document:hover {
  background: color-mix(in srgb, hsl(var(--positive)) 20%, transparent);
}
.dt-ai-citation--web {
  background: color-mix(in srgb, hsl(var(--chart-8)) 12%, transparent);
  color: var(--ai-text-warning);
  border-color: color-mix(in srgb, hsl(var(--chart-8)) 20%, transparent);
}
.dt-ai-citation--web:hover {
  background: color-mix(in srgb, hsl(var(--chart-8)) 20%, transparent);
}
.dt-ai-citation__icon {
  width: 12px;
  height: 12px;
}
.dt-ai-citation__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: var(--ai-radius-sm);
  font-size: 10px;
  font-weight: 600;
  background: var(--ai-bg-badge);
  color: var(--ai-text-secondary);
  vertical-align: super;
  cursor: pointer;
  margin: 0 1px;
}

/* ==========================================================
   Section 9: Follow-up Suggestions
   ========================================================== */
.dt-ai-followups {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) 0;
}
.dt-ai-followup {
  display: inline-flex;
  align-items: center;
  gap: var(--ai-sp-xs);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-elevated);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-sm);
  cursor: pointer;
  transition: all var(--ai-transition);
  line-height: 1.3;
}
.dt-ai-followup:hover {
  border-color: var(--ai-accent);
  color: var(--ai-text);
  background: var(--ai-bg-hover);
}
.dt-ai-followup svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================
   Section 10: Footer
   ========================================================== */
.dt-ai-footer {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ai-border);
  background: var(--ai-bg);
  flex-shrink: 0;
  z-index: 5;
}

/* ==========================================================
   Section 11: Context Bar
   ========================================================== */
.dt-ai-context {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
  overflow-x: auto;
  flex-shrink: 0;
}
.dt-ai-context:empty {
  display: none;
}
.dt-ai-context::-webkit-scrollbar {
  height: 3px;
}
.dt-ai-context__label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}
.dt-ai-context__scope {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.dt-ai-context__scope-label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
}
.dt-ai-context__scope-select {
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border-light);
  border-radius: var(--ai-radius-sm);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  padding: 4px 8px;
  min-width: 110px;
}
.dt-ai-context__scope-select:focus {
  outline: none;
  border-color: var(--ai-accent);
}
.dt-ai-context__chips {
  display: flex;
  gap: var(--ai-sp-xs);
  flex-wrap: nowrap;
  overflow-x: auto;
}
.dt-ai-context__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--ai-radius-sm);
  font-size: var(--ai-fs-xs);
  background: var(--ai-bg-badge);
  color: var(--ai-text-secondary);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--ai-border-light);
}
.dt-ai-context__chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: none;
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  padding: 0;
  border-radius: var(--ai-radius-sm);
  flex-shrink: 0;
  transition: all var(--ai-transition);
}
.dt-ai-context__chip-close:hover {
  background: var(--ai-bg-active);
  color: var(--ai-text);
}
.dt-ai-context__chip--mention {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.3);
  color: var(--ai-accent);
}
.dt-ai-context__chip--memory {
  background: rgba(14,165,233,0.1);
  border-color: rgba(14,165,233,0.25);
}
.dt-ai-context__chip--memory-pinned {
  background: rgba(250,204,21,0.12);
  border-color: rgba(250,204,21,0.3);
  color: var(--ai-text);
}
.dt-ai-context__clear {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  padding: var(--space-1) var(--space-2);
  flex-shrink: 0;
}
.dt-ai-context__clear:hover {
  color: var(--ai-text-error);
}

/* ==========================================================
   Section 12: Input Area
   ========================================================== */
.dt-ai-input {
  display: flex;
  flex-direction: column;
  padding: var(--ai-sp-md);
  gap: var(--ai-sp-sm);
}
.dt-ai-input__wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--ai-sp-sm);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-input);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  transition: border-color var(--ai-transition);
}
.dt-ai-input__wrapper:focus-within {
  border-color: var(--ai-border-focus);
}
.dt-ai-input__wrapper--error {
  border-color: var(--ai-border-error);
}
.dt-ai-input__textarea {
  flex: 1;
  min-height: 20px;
  max-height: 150px;
  border: none;
  background: transparent;
  color: var(--ai-text);
  font-family: var(--ai-font);
  font-size: var(--ai-fs-base);
  line-height: var(--ai-lh);
  resize: none;
  outline: none;
  padding: var(--ai-sp-xs) 0;
}
.dt-ai-input__textarea::-moz-placeholder {
  color: var(--ai-text-tertiary);
}
.dt-ai-input__textarea::placeholder {
  color: var(--ai-text-tertiary);
}
.dt-ai-input__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
  padding-bottom: var(--ai-sp-xs);
}
.dt-ai-input__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--ai-radius-sm);
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  transition: all var(--ai-transition);
  padding: 0;
}
.dt-ai-input__btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-input__btn--send {
  width: 30px;
  height: 30px;
  background: var(--ai-accent);
  color: hsl(var(--brand-foreground));
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.dt-ai-input__btn--send:hover {
  background: var(--ai-accent-hover);
  color: hsl(var(--brand-foreground));
}
.dt-ai-input__btn--send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dt-ai-input__btn--stop {
  width: 30px;
  height: 30px;
  background: var(--ai-text-error);
  color: hsl(var(--brand-foreground));
  border-radius: 999px;
}
.dt-ai-input__btn--stop:hover {
  opacity: 0.85;
}
.dt-ai-input__btn svg {
  width: 16px;
  height: 16px;
}
.dt-ai-input__char-count {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-align: right;
  padding-right: var(--space-1);
}

/* Slash Command Palette */
.dt-ai-input__palette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: var(--space-2);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
}
.dt-ai-input__palette-item {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  cursor: pointer;
  transition: background var(--ai-transition);
}
.dt-ai-input__palette-item:hover,
.dt-ai-input__palette-item--active {
  background: var(--ai-bg-hover);
}
.dt-ai-input__palette-cmd {
  font-weight: 600;
  font-size: var(--ai-fs-sm);
  color: var(--ai-accent);
}
.dt-ai-input__palette-desc {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
}

/* Mention Dropdown */
.dt-ai-input__mentions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: var(--space-2);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
}
.dt-ai-input__mention-item {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  cursor: pointer;
  font-size: var(--ai-fs-sm);
  color: var(--ai-text);
  transition: background var(--ai-transition);
}
.dt-ai-input__mention-item:hover,
.dt-ai-input__mention-item--active {
  background: var(--ai-bg-hover);
}

/* File drop zone */
.dt-ai-input__dropzone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ai-bg-overlay);
  border: 2px dashed var(--ai-accent);
  border-radius: var(--ai-radius);
  color: var(--ai-accent);
  font-size: var(--ai-fs-sm);
  font-weight: 500;
  z-index: 25;
  pointer-events: none;
}

/* ==========================================================
   Section 13: Model Selector
   ========================================================== */
.dt-ai-model-selector {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: 0 var(--ai-sp-md) var(--ai-sp-sm);
}
.dt-ai-model-selector__select {
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  color: var(--ai-text);
  font-size: var(--ai-fs-xs);
  padding: var(--space-2) var(--space-4);
  outline: none;
  cursor: pointer;
  max-width: 140px;
  transition: border-color var(--ai-transition);
}
.dt-ai-model-selector__select:focus {
  border-color: var(--ai-border-focus);
}
.dt-ai-model-selector__select option {
  background: var(--ai-bg-elevated);
  color: var(--ai-text);
}
.dt-ai-model-selector__label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
}
.dt-ai-model-selector__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: var(--ai-fs-xs);
  font-weight: 500;
  border-radius: var(--ai-radius-sm);
  border: 1px solid var(--ai-border);
  background: var(--ai-bg-elevated);
  color: var(--ai-text-tertiary);
  cursor: pointer;
  transition: background var(--ai-transition), color var(--ai-transition), border-color var(--ai-transition);
  white-space: nowrap;
  line-height: 1;
}
.dt-ai-model-selector__toggle:hover {
  border-color: var(--ai-border-focus);
  color: var(--ai-text);
}
.dt-ai-model-selector__toggle--active {
  background: var(--ai-accent-subtle);
  border-color: var(--ai-accent);
  color: var(--ai-accent);
}

/* ==========================================================
   Section 14: History View
   ========================================================== */
.dt-ai-history {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--ai-bg);
  z-index: 50;
  animation: dt-ai-slideIn 200ms ease;
}
.dt-ai-history__header {
  display: flex;
  align-items: center;
  height: var(--ai-header-h);
  padding: 0 var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border);
  gap: var(--ai-sp-sm);
}
.dt-ai-history__title {
  flex: 1;
  font-size: var(--ai-fs-md);
  font-weight: 600;
}
.dt-ai-history__search {
  display: flex;
  align-items: center;
  margin: 0 var(--ai-sp-md);
  padding: var(--ai-sp-sm);
}
.dt-ai-history__search-input {
  width: 100%;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  outline: none;
}
.dt-ai-history__search-input:focus {
  border-color: var(--ai-border-focus);
}
.dt-ai-history__list {
  flex: 1;
  overflow-y: auto;
  padding: var(--ai-sp-sm);
}
.dt-ai-history__group {
  margin-bottom: var(--ai-sp-md);
}
.dt-ai-history__group-label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--ai-sp-xs) var(--ai-sp-sm);
  margin-bottom: var(--ai-sp-xs);
}
.dt-ai-history__item {
  display: flex;
  align-items: center;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-radius: var(--ai-radius-sm);
  cursor: pointer;
  transition: background var(--ai-transition);
  gap: var(--ai-sp-sm);
}
.dt-ai-history__item:hover {
  background: var(--ai-bg-hover);
}
.dt-ai-history__item--active {
  background: var(--ai-accent-subtle);
}
.dt-ai-history__item-title {
  flex: 1;
  font-size: var(--ai-fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-ai-history__item-date {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  flex-shrink: 0;
}
.dt-ai-history__item-actions {
  display: flex;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--ai-transition);
}
.dt-ai-history__item:hover .dt-ai-history__item-actions {
  opacity: 1;
}
.dt-ai-history__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--ai-sp-xl);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-sm);
}

/* ==========================================================
   Section 15: Scroll Anchor / Scroll-to-Bottom Button
   ========================================================== */
.dt-copilot-scroll-btn {
  position: sticky;
  bottom: var(--ai-sp-sm);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-elevated);
  color: var(--ai-text-secondary);
  cursor: pointer;
  box-shadow: var(--ai-shadow-sm);
  transition: all var(--ai-transition);
  z-index: 10;
}
.dt-copilot-scroll-btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
  border-color: var(--ai-accent);
}

/* ==========================================================
   Section 16: Error Banner
   ========================================================== */
.dt-ai-error-banner {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  background: rgba(199, 80, 80,0.1);
  border-bottom: 1px solid rgba(199, 80, 80,0.2);
  color: var(--ai-text-error);
  font-size: var(--ai-fs-sm);
}
.dt-ai-error-banner__text {
  flex: 1;
}
.dt-ai-error-banner__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--ai-text-error);
  cursor: pointer;
  border-radius: var(--ai-radius-xs);
  padding: 0;
}
.dt-ai-error-banner__close:hover {
  background: rgba(199, 80, 80,0.15);
}

/* ==========================================================
   Section 17: Queue Status Indicator
   ========================================================== */
.dt-ai-queue {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-xs);
  padding: var(--ai-sp-xs) var(--ai-sp-md);
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
  background: var(--ai-bg-elevated);
  border-bottom: 1px solid var(--ai-border-light);
}
.dt-ai-queue__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-text-warning);
  animation: dt-ai-pulse 2s ease-in-out infinite;
}

/* ==========================================================
   Section 18: Animations
   ========================================================== */
@keyframes dt-ai-spin {
  to { transform: rotate(360deg); }
}
@keyframes dt-ai-blink {
  50% { opacity: 0; }
}
@keyframes dt-ai-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
@keyframes dt-ai-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dt-ai-slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes dt-ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================
   Section 19: Utility Classes
   ========================================================== */
.dt-ai-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.dt-ai-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-ai-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-ai-visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ==========================================================
   Section 20: LEGACY — Tool Activity (CopilotToolActivity)
   ========================================================== */
.dt-ai-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ai-sp-xs);
  margin-bottom: var(--ai-sp-sm);
}
.dt-ai-panel__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-5);
  border-radius: var(--ai-radius-sm);
  font-size: var(--ai-fs-xs);
  background: var(--ai-bg-badge);
  color: var(--ai-text-secondary);
  border: 1px solid var(--ai-border-light);
  cursor: default;
  transition: all var(--ai-transition);
}
.dt-ai-panel__chip:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-panel__activity {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

/* ---------- OpenBB-style reasoning accordion ---------- */
.dt-ai-reasoning {
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-elevated);
  margin: 0;
  overflow: hidden;
}
.dt-ai-reasoning__header {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--ai-transition);
}
.dt-ai-reasoning__header:hover:not(:disabled) {
  background: var(--ai-bg-hover);
}
.dt-ai-reasoning__header:disabled {
  cursor: default;
}
.dt-ai-reasoning__header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-text-secondary);
  flex-shrink: 0;
}
.dt-ai-reasoning__header-label {
  flex: 1;
  min-width: 0;
  letter-spacing: -0.005em;
}
.dt-ai-reasoning__header-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-text-tertiary);
  flex-shrink: 0;
  transition: color var(--ai-transition);
}
.dt-ai-reasoning:not(.dt-ai-reasoning--collapsed) .dt-ai-reasoning__header {
  border-bottom: 1px solid var(--ai-border);
}
.dt-ai-panel__activity-progress {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-xs);
}
.dt-ai-panel__activity-progress__label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
}
.dt-ai-panel__activity-progress__bar {
  height: 4px;
  background: var(--ai-bg-active);
  border-radius: 2px;
  overflow: hidden;
}
.dt-ai-panel__activity-progress__fill {
  height: 100%;
  background: var(--ai-accent);
  border-radius: 2px;
  transition: width var(--ai-transition-slow);
}
.dt-ai-panel__activity-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
}
.dt-ai-reasoning .dt-ai-panel__activity-step-wrapper + .dt-ai-panel__activity-step-wrapper .dt-ai-panel__activity-step {
  border-top: 1px solid color-mix(in srgb, var(--ai-border) 55%, transparent);
}
.dt-ai-panel__activity-step {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: 8px 12px 8px 28px;
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  position: relative;
}
.dt-ai-panel__activity-step::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--ai-border) 70%, transparent);
}
.dt-ai-reasoning .dt-ai-panel__activity-step-wrapper:first-child .dt-ai-panel__activity-step::before {
  top: 6px;
}
.dt-ai-reasoning .dt-ai-panel__activity-step-wrapper:last-child .dt-ai-panel__activity-step::before {
  bottom: 6px;
}
.dt-ai-panel__activity-step--completed {
  color: var(--ai-text-success);
}
.dt-ai-panel__activity-step--running {
  color: var(--ai-accent);
}
.dt-ai-panel__activity-step--error,
.dt-ai-panel__activity-step--failed {
  color: var(--ai-text-error);
}
.dt-ai-panel__activity-step--pending {
  color: var(--ai-text-tertiary);
}
.dt-ai-panel__activity-step__indicator {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-text-tertiary);
  z-index: 1;
  flex-shrink: 0;
}
.dt-ai-panel__activity-step--completed .dt-ai-panel__activity-step__indicator {
  background: var(--ai-bg-elevated);
  border-color: color-mix(in srgb, var(--ai-text-success) 60%, var(--ai-border));
  color: var(--ai-text-success);
}
.dt-ai-panel__activity-step--running .dt-ai-panel__activity-step__indicator {
  background: var(--ai-accent);
  border-color: var(--ai-accent);
  animation: dt-ai-pulse 1.5s ease-in-out infinite;
}
.dt-ai-panel__activity-step--error .dt-ai-panel__activity-step__indicator,
.dt-ai-panel__activity-step--failed .dt-ai-panel__activity-step__indicator {
  background: var(--ai-text-error);
  border-color: var(--ai-text-error);
  color: #fff;
}
.dt-ai-panel__activity-step--pending .dt-ai-panel__activity-step__indicator {
  background: var(--ai-bg-elevated);
  border-color: var(--ai-border);
}
.dt-ai-panel__activity-step__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ai-text);
}
.dt-ai-panel__activity-step--completed .dt-ai-panel__activity-step__label,
.dt-ai-panel__activity-step--error .dt-ai-panel__activity-step__label,
.dt-ai-panel__activity-step--failed .dt-ai-panel__activity-step__label,
.dt-ai-panel__activity-step--pending .dt-ai-panel__activity-step__label {
  color: var(--ai-text);
}
.dt-ai-panel__activity-elapsed {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  margin-left: auto;
  padding-left: var(--ai-sp-sm);
}

/* Activity summary row (collapsed mode) */
.dt-ai-panel__activity-summary {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-xs);
  padding: 2px var(--ai-sp-sm);
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: color var(--ai-transition), background var(--ai-transition);
  text-align: left;
  width: 100%;
}
.dt-ai-panel__activity-summary:hover {
  color: var(--ai-text-secondary);
  background: var(--ai-bg-hover);
}
.dt-ai-panel__activity-summary__icon {
  display: flex;
  align-items: center;
  color: var(--ai-text-tertiary);
  flex-shrink: 0;
}
.dt-ai-panel__activity-summary__label {
  flex: 1;
}
/* Step wrapper for expandable details */
.dt-ai-panel__activity-step-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dt-ai-panel__activity-step--expandable {
  cursor: pointer;
  transition: background var(--ai-transition);
}
.dt-ai-panel__activity-step--expandable:hover {
  background: var(--ai-bg-hover);
}
.dt-ai-reasoning .dt-ai-panel__activity-step:not(.dt-ai-panel__activity-step--expandable) {
  cursor: default;
}
.dt-ai-panel__activity-step__chevron {
  display: flex;
  align-items: center;
  color: var(--ai-text-tertiary);
  margin-left: auto;
  flex-shrink: 0;
}
/* Always show a right chevron on reasoning rows (even non-expandable) for consistent look */
.dt-ai-reasoning .dt-ai-panel__activity-step:not(.dt-ai-panel__activity-step--expandable)::after {
  content: '';
  display: inline-block;
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ai-text-tertiary);
  border-top: 1.5px solid var(--ai-text-tertiary);
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
}
.dt-ai-panel__activity-step-details {
  margin: 0 12px 8px 28px;
  padding: 8px 10px;
  background: var(--ai-bg);
  border: 1px solid var(--ai-border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-xs);
}
.dt-ai-panel__activity-step-args {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-ai-panel__activity-step-arg {
  display: flex;
  align-items: baseline;
  gap: var(--ai-sp-sm);
  font-size: var(--ai-fs-xs);
}
.dt-ai-panel__activity-step-arg__key {
  color: var(--ai-text-tertiary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  flex-shrink: 0;
  font-size: 10px;
}
.dt-ai-panel__activity-step-arg__value {
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  word-break: break-word;
}
.dt-ai-panel__activity-step-preview {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
  padding: var(--ai-sp-xs) 0;
  border-top: 1px solid var(--ai-border);
  margin-top: 2px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 80px;
  overflow-y: auto;
}

/* ==========================================================
   Section 21: Thinking Shimmer Indicator (ChatGPT / Cursor style)
   A bright band travels across the label text itself via
   background-clip: text. No dot, no bar, no container card —
   just the animated text, per user request.
   ========================================================== */
@keyframes dt-thinking-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dt-thinking-shimmer {
  display: inline-block;
  margin: var(--space-2) 0;
  font-size: var(--ai-fs-sm);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
  white-space: nowrap;
  /* Base is a dimmed foreground (~40% alpha) so the text reads as
     "thinking / muted"; a near-opaque bright stop sweeps across the
     glyphs as the animated band. Hardcoded rgba so the contrast isn't
     collapsed by themes where primary and secondary text tokens are
     both pure #FFFFFF. */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.38) 30%,
    rgba(255, 255, 255, 1.00) 50%,
    rgba(255, 255, 255, 0.38) 70%,
    rgba(255, 255, 255, 0.38) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: dt-thinking-shine 2.2s linear infinite;
  /* Safari (older) sometimes drops the clip unless the element is a
     block-level paint root. `isolation` forces a stacking context. */
  isolation: isolate;
}

/* Light theme: flip the band to black tones so we keep contrast on a
   white page. The `html.light` root is how globals.css toggles palettes. */
html.light .dt-thinking-shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.35) 30%,
    rgba(0, 0, 0, 0.95) 50%,
    rgba(0, 0, 0, 0.35) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Respect user motion preference — pause the band but keep the muted
   label visible so screen readers and hover states stay intact. */
@media (prefers-reduced-motion: reduce) {
  .dt-thinking-shimmer {
    animation: none;
    color: rgba(255, 255, 255, 0.55);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.55);
    background: none;
  }
  html.light .dt-thinking-shimmer {
    color: rgba(0, 0, 0, 0.55);
    -webkit-text-fill-color: rgba(0, 0, 0, 0.55);
    background: none;
  }
}

/* Row container — keeps the shimmer aligned with message padding and
   ensures the AnimatePresence crossfade between labels doesn't shift
   adjacent content. */
.dt-copilot-thinking-row {
  display: flex;
  align-items: center;
  min-height: calc(var(--ai-fs-sm) * 1.3);
  padding: var(--space-1) 0;
}

/* Static variant (post-completion "Reasoned" pill) — identical gradient
   palette but the band stops moving so the label reads as finished. */
.dt-thinking-shimmer--static {
  animation: none;
  color: var(--ai-text-secondary);
  -webkit-text-fill-color: var(--ai-text-secondary);
}

/* Legacy classes kept hidden so any un-migrated caller silently collapses
   instead of rendering the old dot/bar combo alongside the new text. */
.dt-reasoning-shimmer,
.dt-reasoning-shimmer--active {
  display: none !important;
}
.dt-ai-generation-timer {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ai-text-tertiary);
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* ==========================================================
   Section 22: LEGACY — Thinking (CopilotThinking, completed state)
   ========================================================== */
.dt-copilot-thinking {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) 0;
}
.dt-copilot-thinking__header {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  background: none;
  border: none;
  padding: 0;
}
.dt-copilot-thinking__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-text-tertiary);
}
.dt-copilot-thinking__toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--ai-transition);
}
.dt-copilot-thinking__raw-toggle {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
}
.dt-copilot-thinking__raw-toggle:hover {
  color: var(--ai-text-secondary);
}
.dt-copilot-thinking__raw-content {
  font-family: var(--ai-font-mono);
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
  background: var(--ai-bg-code);
  padding: var(--ai-sp-sm);
  border-radius: var(--ai-radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* ==========================================================
   Section 23: LEGACY — Artifact Window (CopilotArtifactWindow)
   ========================================================== */
.dt-ai-artifact-window {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-elevated);
  overflow: hidden;
  margin: var(--ai-sp-sm) 0;
}
.dt-ai-artifact-window--collapsed .dt-ai-artifact-window__body {
  display: none;
}
.dt-ai-artifact-window__header {
  display: flex;
  align-items: center;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
  gap: var(--ai-sp-sm);
}
.dt-ai-artifact-window__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.dt-ai-artifact-window__type {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dt-ai-artifact-window__title {
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  color: var(--ai-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-ai-artifact-window__controls {
  display: flex;
  gap: var(--space-1);
}
.dt-ai-artifact-window__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-secondary);
  cursor: pointer;
  transition: all var(--ai-transition);
}
.dt-ai-artifact-window__toggle:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-artifact-window__body {
  padding: var(--ai-sp-md);
  overflow: auto;
  max-height: 400px;
}
.dt-ai-artifact-window__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-elevated);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all var(--ai-transition);
}
.dt-ai-artifact-window__btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
  border-color: var(--ai-accent);
}

/* ==========================================================
   Section 24: LEGACY — Cards (Visualization, Table, Dashboard)
   ========================================================== */
.dt-copilot-card {
  overflow: hidden;
  margin: var(--ai-sp-sm) 0;
}
.dt-copilot-card--visualization {
  min-height: 200px;
}
.dt-copilot-card--table {
  overflow-x: auto;
}
.dt-copilot-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--ai-sp-sm) 0;
  gap: var(--ai-sp-sm);
  font-size: var(--ai-fs-sm);
  font-weight: 600;
}
.dt-copilot-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex-shrink: 0;
}
.dt-copilot-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 28px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-secondary);
  cursor: pointer;
  transition: all var(--ai-transition);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}
.dt-copilot-card__action:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-copilot-card__body {
  padding: var(--ai-sp-md);
}
.dt-copilot-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-top: 1px solid var(--ai-border-light);
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
}
.dt-copilot-viz-card {
  position: relative;
}
.dt-copilot-viz-card--expanded {
  position: fixed;
  inset: var(--space-13);
  z-index: 1100;
  margin: 0;
  max-height: none;
}

/* Table-specific */
.dt-copilot-table-filter {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  font-size: var(--ai-fs-xs);
}
.dt-copilot-table-row {
  display: flex;
  align-items: center;
  padding: var(--ai-sp-xs) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
  font-size: var(--ai-fs-xs);
}
.dt-copilot-table-row:hover {
  background: var(--ai-bg-hover);
}
.dt-copilot-table-showmore {
  display: flex;
  justify-content: center;
  padding: var(--ai-sp-sm);
  font-size: var(--ai-fs-xs);
  color: var(--ai-accent);
  cursor: pointer;
}
.dt-copilot-table-showmore:hover {
  color: var(--ai-accent-hover);
}

/* ---------- OpenBB-style data table ---------- */
.dt-copilot-card--table {
  overflow: hidden;
}
.dt-copilot-card--table-expanded {
  position: fixed;
  inset: 48px;
  z-index: 1100;
  margin: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.dt-copilot-card__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px;
}
.dt-copilot-card__caption-title {
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  color: var(--ai-text);
}
.dt-copilot-card__caption-subtitle {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
}
.dt-copilot-card__summary {
  padding: 0 0 6px;
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
  line-height: 1.5;
}
.dt-copilot-card__body--flush {
  padding: 0;
}
.dt-copilot-dtable__scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 360px;
}
.dt-copilot-card--table-expanded .dt-copilot-dtable__scroll {
  max-height: none;
  flex: 1;
}
.dt-copilot-dtable {
  width: 100%;
  border-collapse: collapse;
  min-width: 440px;
  font-size: var(--ai-fs-sm);
}
.dt-copilot-dtable__th {
  position: sticky;
  top: 0;
  background: var(--ai-bg-elevated);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ai-border);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ai-text-secondary);
  white-space: nowrap;
  z-index: 1;
}
.dt-copilot-dtable__th--right {
  text-align: right;
}
.dt-copilot-dtable__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  width: 100%;
  justify-content: flex-start;
}
.dt-copilot-dtable__th--right .dt-copilot-dtable__sort-btn {
  justify-content: flex-end;
}
.dt-copilot-dtable__sort-btn:hover {
  color: var(--ai-text);
}
.dt-copilot-dtable__th-label {
  font-family: var(--ai-font);
}
.dt-copilot-dtable__sort-hint {
  opacity: 0.3;
}
.dt-copilot-dtable__row {
  transition: background var(--ai-transition);
}
.dt-copilot-dtable__row:not(:last-child) .dt-copilot-dtable__td {
  border-bottom: 1px solid color-mix(in srgb, var(--ai-border) 60%, transparent);
}
.dt-copilot-dtable__row:hover {
  background: var(--ai-bg-hover);
}
.dt-copilot-dtable__td {
  padding: 8px 12px;
  font-size: var(--ai-fs-sm);
  color: var(--ai-text);
  white-space: nowrap;
  vertical-align: middle;
}
.dt-copilot-dtable__td--right {
  text-align: right;
}
.dt-copilot-dtable__td--num {
  font-variant-numeric: tabular-nums;
  font-family: var(--ai-font-mono);
  font-size: 12px;
}
/* Table toolbar (bottom action row) */
.dt-copilot-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  min-height: 32px;
}
.dt-copilot-card__toolbar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
}
.dt-copilot-card__toolbar-chip {
  padding: 2px 6px;
  border: 1px solid var(--ai-border);
  border-radius: 2px;
  background: var(--ai-bg);
  color: var(--ai-text-secondary);
  text-transform: none;
  letter-spacing: normal;
  font-size: 10px;
}
.dt-copilot-card__toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.dt-copilot-card__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  transition: background var(--ai-transition), color var(--ai-transition);
}
.dt-copilot-card__icon-btn:hover:not(:disabled) {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-copilot-card__icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dt-spin {
  animation: dt-ai-spin 1s linear infinite;
}
@keyframes dt-ai-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dashboard card */
.dt-copilot-dashboard-card {
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-card);
  overflow: hidden;
}

/* Candlestick panel */
.dt-copilot-candlestick-panel {
  width: 100%;
  min-height: 300px;
}

/* ==========================================================
   Section 25: LEGACY — Markdown (MarkdownText)
   ========================================================== */
.dt-ai-md {
  font-size: var(--ai-fs-base);
  line-height: 1.6;
  color: var(--ai-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dt-ai-md > :first-child { margin-top: 0; }
.dt-ai-md > :last-child { margin-bottom: 0; }
.dt-ai-md__h1 {
  font-size: var(--ai-fs-lg);
  font-weight: 700;
  margin: var(--ai-sp-lg) 0 var(--ai-sp-sm);
  color: var(--ai-text);
  border-bottom: 1px solid var(--ai-border-light);
  padding-bottom: var(--ai-sp-xs);
}
.dt-ai-md__h2 {
  font-size: var(--ai-fs-md);
  font-weight: 600;
  margin: var(--ai-sp-md) 0 var(--ai-sp-xs);
  color: var(--ai-text);
}
.dt-ai-md__h3 {
  font-size: var(--ai-fs-base);
  font-weight: 600;
  margin: var(--ai-sp-sm) 0 var(--ai-sp-xs);
  color: var(--ai-text);
}
.dt-ai-md__p {
  margin: var(--ai-sp-xs) 0 var(--ai-sp-sm);
  line-height: 1.6;
}
.dt-ai-md__ul,
.dt-ai-md__ol {
  margin: var(--ai-sp-xs) 0 var(--ai-sp-sm);
  padding-left: var(--ai-sp-lg);
}
.dt-ai-md__ul li,
.dt-ai-md__ol li {
  margin-bottom: var(--space-1);
  line-height: 1.6;
}
.dt-ai-md__hr {
  border: none;
  border-top: 1px solid var(--ai-border-light);
  margin: var(--ai-sp-lg) 0;
}
.dt-ai-md__link {
  color: var(--ai-text-link);
  text-decoration: none;
  transition: color var(--ai-transition);
}
.dt-ai-md__link:hover {
  color: var(--ai-accent-hover);
  text-decoration: underline;
}
.dt-ai-md__blockquote {
  border-left: 3px solid var(--ai-accent);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  margin: var(--ai-sp-sm) 0;
  color: var(--ai-text-secondary);
  background: var(--ai-bg-elevated);
  border-radius: 0 var(--ai-radius-sm) var(--ai-radius-sm) 0;
}
.dt-ai-md__code-inline {
  font-family: var(--ai-font-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  background: var(--ai-bg-code);
  border-radius: 2px;
  color: var(--ai-accent);
}
.dt-ai-md__code-block {
  position: relative;
  margin: var(--ai-sp-sm) 0;
  border-radius: var(--ai-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ai-border-light);
}
.dt-ai-md__code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ai-sp-xs) var(--ai-sp-md);
  background: var(--ai-bg-active);
  border-bottom: 1px solid var(--ai-border-light);
}
.dt-ai-md__code-lang {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dt-ai-md__code-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all var(--ai-transition);
}
.dt-ai-md__code-copy:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-md__code-copy--done {
  color: var(--ai-text-success);
}
.dt-ai-md__code-block pre {
  margin: 0;
  padding: var(--ai-sp-md);
  background: var(--ai-bg-code);
  overflow-x: auto;
  font-family: var(--ai-font-mono);
  font-size: var(--ai-fs-sm);
  line-height: 1.6;
}
.dt-ai-md__code-block code {
  font-family: var(--ai-font-mono);
  font-size: var(--ai-fs-sm);
}
.dt-ai-md__ticker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 1px var(--space-3);
  border-radius: var(--ai-radius-sm);
  font-size: var(--ai-fs-xs);
  font-weight: 600;
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
  cursor: pointer;
  text-decoration: none;
}
.dt-ai-md__ticker:hover {
  background: color-mix(in srgb, hsl(var(--brand)) 25%, transparent);
}
.dt-ai-md__cite-ref {
  display: inline;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--ai-accent);
  cursor: default;
  vertical-align: super;
  line-height: 1;
  opacity: 0.85;
}
.dt-ai-md__cite-ref:hover {
  opacity: 1;
  text-decoration: underline;
}
.dt-ai-md__table-wrap {
  overflow-x: auto;
  margin: var(--ai-sp-sm) 0;
  border: 1px solid var(--ai-border-light);
  border-radius: var(--ai-radius-sm);
}
.dt-ai-md__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ai-fs-sm);
}
.dt-ai-md__th {
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
  background: var(--ai-bg-active);
  border-bottom: 1px solid var(--ai-border);
  white-space: nowrap;
}
.dt-ai-md__td {
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
  font-size: var(--ai-fs-sm);
}

/* ==========================================================
   Section 26: LEGACY — Generic Input / Select classes
   ========================================================== */
.dt-input {
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  font-family: var(--ai-font);
  outline: none;
  transition: border-color var(--ai-transition);
}
.dt-input:focus {
  border-color: var(--ai-border-focus);
}
.dt-select {
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  font-family: var(--ai-font);
  cursor: pointer;
  outline: none;
  transition: border-color var(--ai-transition);
}
.dt-select:focus {
  border-color: var(--ai-border-focus);
}

/* ==========================================================
   Section 27: LEGACY — Copilot memo surface
   ========================================================== */
/* Uses .dt-ai-panel__chip, .dt-input, .dt-select — already defined above */

/* ==========================================================
   Section 28: Responsive & Full-Screen Adjustments
   ========================================================== */
@media (max-width: 480px) {
  .dt-ai-empty__prompts {
    grid-template-columns: 1fr;
  }
  .dt-ai-msg-bubble-user {
    max-width: 95%;
  }
  .dt-ai-header {
    padding: 0 var(--ai-sp-sm);
  }
  .dt-ai-input {
    padding: var(--ai-sp-sm);
  }
}

/* Full-screen mode adjustments */
.dt-ai-panel--expanded .dt-ai-body {
  max-width: min(1040px, calc(100vw - 96px));
  margin: 0 auto;
  width: 100%;
}
.dt-ai-panel--expanded .dt-ai-footer {
  max-width: min(1040px, calc(100vw - 96px));
  margin: 0 auto;
  width: 100%;
}
.dt-ai-panel--expanded .dt-ai-msg-bubble-user {
  max-width: 70%;
}

/* ==========================================================
   Section 29: Sidebar / Panel Wrapper (for RightRail integration)
   ========================================================== */
.dt-ai-panel-wrapper {
  position: relative;
  height: 100%;
  display: flex;
}

/* ==========================================================
   Section 30: Print Styles
   ========================================================== */
@media print {
  .dt-ai-header,
  .dt-ai-footer,
  .dt-ai-msg-actions,
  .dt-ai-panel__resize-handle {
    display: none !important;
  }
  .dt-ai-panel {
    border: none;
    background: #fff;
    color: #000;
  }
  .dt-ai-msg-bubble-user {
    background: hsl(var(--brand) / 0.08);
    border: none;
  }
}


/* ==========================================================
   Section 31: Sidebar (CopilotSidebar)
   ========================================================== */
.dt-ai-sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.dt-ai-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
}
.dt-ai-sidebar__title {
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  color: var(--ai-text);
}
.dt-ai-sidebar__new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-secondary);
  cursor: pointer;
  transition: all var(--ai-transition);
}
.dt-ai-sidebar__new-btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-sidebar__search {
  padding: var(--ai-sp-sm) var(--ai-sp-md);
}
.dt-ai-sidebar__search-input {
  width: 100%;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  outline: none;
  transition: border-color var(--ai-transition);
}
.dt-ai-sidebar__search-input:focus {
  border-color: var(--ai-border-focus);
}
.dt-ai-sidebar__list {
  flex: 1;
  overflow-y: auto;
  padding: var(--ai-sp-xs) var(--ai-sp-sm);
}
.dt-ai-sidebar__loading,
.dt-ai-sidebar__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ai-sp-xl);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-sm);
}
.dt-ai-sidebar__group {
  margin-bottom: var(--ai-sp-sm);
}
.dt-ai-sidebar__group-label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--ai-sp-xs) var(--ai-sp-sm);
  margin-bottom: var(--space-1);
}
.dt-ai-sidebar__item {
  display: flex;
  align-items: center;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-radius: var(--ai-radius-sm);
  cursor: pointer;
  transition: background var(--ai-transition);
  gap: var(--ai-sp-sm);
  min-height: 32px;
}
.dt-ai-sidebar__item:hover {
  background: var(--ai-bg-hover);
}
.dt-ai-sidebar__item--active {
  background: var(--ai-accent-subtle);
}
.dt-ai-sidebar__item-title {
  flex: 1;
  font-size: var(--ai-fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ai-text);
}
.dt-ai-sidebar__item-actions {
  display: flex;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--ai-transition);
  flex-shrink: 0;
}
.dt-ai-sidebar__item:hover .dt-ai-sidebar__item-actions {
  opacity: 1;
}
.dt-ai-sidebar__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  transition: all var(--ai-transition);
  padding: 0;
}
.dt-ai-sidebar__action-btn:hover {
  background: var(--ai-bg-active);
  color: var(--ai-text);
}
.dt-ai-sidebar__action-btn--delete:hover {
  color: var(--ai-text-error);
}
.dt-ai-sidebar__rename-input {
  flex: 1;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--ai-border-focus);
  border-radius: var(--ai-radius-xs);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  outline: none;
}

/* ==========================================================
   Section 32: LEGACY Old message row classes
   ========================================================== */
.dt-ai-msg-row {
  display: flex;
  gap: var(--ai-sp-md);
  padding: var(--ai-sp-sm) 0;
  position: relative;
}
.dt-ai-msg-row--user {
  justify-content: flex-end;
  padding: var(--ai-sp-xs) 0;
}
.dt-ai-msg-row--assistant {
  flex-direction: row;
  align-items: flex-start;
}

/* ── User bubble ── */
.dt-ai-msg-bubble-user {
  /* Let the bubble shrink to fit its text instead of always taking 85%
     of the panel width. Short prompts like "MSFT price?" should render
     as a tight chat bubble, not a full-width block. */
  max-width: 80%;
  width: -moz-fit-content;
  width: fit-content;
  background: color-mix(in srgb, hsl(var(--brand)) 18%, #0d0d12);
  border: 1px solid color-mix(in srgb, hsl(var(--brand)) 22%, transparent);
  border-radius: 10px 10px 2px 10px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: hsl(var(--foreground));
  line-height: 1.4;
  font-size: 13px;
}

/* ── Assistant brand label ── */
.dt-ai-msg-brand {
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--brand));
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.dt-ai-msg-bubble-user__text {
  font-size: var(--ai-fs-base);
  line-height: var(--ai-lh);
  color: var(--ai-text);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.dt-ai-msg-bubble-user__footer {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--ai-transition);
}
.dt-ai-msg-bubble-user:hover .dt-ai-msg-bubble-user__footer {
  opacity: 1;
}

/* ── Avatar ── */
.dt-ai-msg-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ai-fs-xs);
  font-weight: 600;
  margin-top: var(--space-1);
  border: 1px solid color-mix(in srgb, var(--ai-accent) 25%, transparent);
}
.dt-ai-msg-avatar--user {
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
}
.dt-ai-msg-avatar--assistant {
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
}
.dt-ai-msg-avatar__assistant-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Assistant body ── */
.dt-ai-msg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dt-ai-msg-meta {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
}
.dt-ai-msg-role {
  font-weight: 600;
  color: var(--ai-text-secondary);
}
.dt-ai-msg-time {
  font-size: 10px;
  color: var(--ai-text-tertiary);
}
.dt-ai-msg-edited {
  font-size: 10px;
  color: var(--ai-text-tertiary);
  font-style: italic;
}
.dt-ai-msg-content {
  line-height: var(--ai-lh);
  font-size: var(--ai-fs-base);
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-top: var(--ai-sp-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Action bar ── */
.dt-ai-msg-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.55;
  transition: opacity var(--ai-transition);
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}
.dt-ai-msg-actions__sep {
  width: 1px;
  height: 16px;
  background: var(--ai-border);
  margin: 0 4px;
  flex: 0 0 auto;
}
.dt-ai-msg-row:hover .dt-ai-msg-actions,
.dt-ai-msg-actions:focus-within {
  opacity: 1;
}
.dt-ai-msg-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  transition: all var(--ai-transition);
  padding: 0;
}
.dt-ai-msg-action-btn:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-ai-msg-action-btn--active { color: var(--ai-accent); }
.dt-ai-msg-action-btn--success { color: var(--ai-text-success); }
.dt-ai-msg-action-btn--active { color: var(--ai-accent); opacity: 1; }

/* ==========================================================
   Section 33: LEGACY Message edit mode
   ========================================================== */
.dt-copilot-msg-edit {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
}
.dt-copilot-msg-edit__textarea {
  width: 100%;
  min-height: 40px;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-border-focus);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-family: var(--ai-font);
  font-size: var(--ai-fs-base);
  line-height: var(--ai-lh);
  resize: none;
  outline: none;
}
.dt-copilot-msg-edit__actions {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
}
.dt-copilot-msg-edit__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--ai-radius-sm);
  font-size: var(--ai-fs-xs);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--ai-border);
  transition: all var(--ai-transition);
}
.dt-copilot-msg-edit__btn--save {
  background: var(--ai-accent);
  color: hsl(var(--foreground));
  border-color: var(--ai-accent);
}
.dt-copilot-msg-edit__btn--save:hover { background: var(--ai-accent-hover); }
.dt-copilot-msg-edit__btn--cancel {
  background: transparent;
  color: var(--ai-text-secondary);
}
.dt-copilot-msg-edit__btn--cancel:hover { background: var(--ai-bg-hover); }

/* ==========================================================
   Section 34: LEGACY Follow-ups
   ========================================================== */
.dt-copilot-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.dt-copilot-followups--input {
  padding: var(--space-3) var(--space-5) var(--space-1);
  gap: var(--space-3);
  border-top: 1px solid hsl(var(--border));
}
.dt-copilot-followup-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ai-sp-xs);
  padding: var(--space-2) var(--space-5);
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
  line-height: 1.4;
  font-family: var(--font-sans);
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.dt-copilot-followup-chip:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.dt-copilot-followup-chip:active {
  background: hsl(var(--accent));
  border-color: hsl(var(--border));
}

/* ==========================================================
   Section 35: LEGACY Empty State
   ========================================================== */
.dt-copilot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: var(--ai-sp-xl);
  text-align: center;
  gap: var(--ai-sp-md);
}
.dt-copilot-empty__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--ai-accent);
  color: #fff;
  flex-shrink: 0;
}
.dt-copilot-empty__eyebrow {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dt-copilot-empty__title {
  font-size: var(--ai-fs-lg);
  font-weight: 600;
  color: var(--ai-text);
  margin: 0;
}
.dt-copilot-empty__subtitle {
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  max-width: 300px;
  line-height: var(--ai-lh);
  margin: 0;
}
.dt-copilot-empty__text {
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  margin: 0;
}
.dt-copilot-empty__upgrade-btn {
  padding: var(--ai-sp-sm) var(--ai-sp-lg);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-accent);
  color: hsl(var(--foreground));
  font-size: var(--ai-fs-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--ai-transition);
}
.dt-copilot-empty__upgrade-btn:hover { background: var(--ai-accent-hover); }
.dt-copilot-empty__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin-top: 4px;
}
.dt-copilot-empty__card {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  background: hsl(var(--card));
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  color: hsl(var(--foreground));
  line-height: 1.45;
  transition: all 140ms ease;
  font-family: var(--font-sans);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.dt-copilot-empty__card:hover {
  background: hsl(var(--accent));
  border-color: var(--ai-accent);
  color: hsl(var(--foreground));
}
.dt-copilot-empty__card:active {
  background: hsl(var(--accent));
}
.dt-copilot-empty__card-label {
  flex: 1;
}

/* Skills badges */
.dt-copilot-empty__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 360px;
  margin-top: var(--ai-sp-xs);
}
.dt-copilot-empty__skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.dt-copilot-empty__skill-badge svg {
  color: var(--ai-accent);
}
.dt-copilot-empty__app-hint {
  font-size: 12px;
  color: var(--ai-accent);
  margin-top: 4px;
  font-weight: 500;
}

/* ==========================================================
   Section 36: LEGACY Panel header and misc classes
   ========================================================== */
.dt-ai-panel--open:not(.dt-ai-panel--expanded) {
  display: flex;
  position: fixed;
  top: 0;
  right: var(--right-rail-width, 56px);
  bottom: 0;
  z-index: 115;
  max-width: calc(100vw - var(--right-rail-width, 56px));
  height: 100dvh;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  border-left: 1px solid hsl(var(--border));
}
.dt-ai-panel__main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.dt-ai-panel__header {
  display: flex;
  align-items: center;
  height: var(--ai-header-h);
  min-height: var(--ai-header-h);
  padding: 0 var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border);
  background: var(--ai-bg);
  gap: var(--ai-sp-sm);
  flex-shrink: 0;
}
.dt-ai-panel__title {
  flex: 1;
  min-width: 0;
}
.dt-ai-panel__title-copy {
  display: flex;
  align-items: center;
}
.dt-ai-panel__title-text {
  font-size: var(--ai-fs-md);
  font-weight: 600;
  color: var(--ai-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.dt-ai-panel__title-input {
  background: transparent;
  border: 1px solid var(--ai-border-focus);
  border-radius: var(--ai-radius-xs);
  color: var(--ai-text);
  font-size: var(--ai-fs-md);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  width: 100%;
  outline: none;
}
.dt-ai-panel__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
.dt-ai-panel__messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--ai-sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-md);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.dt-ai-panel__messages::-webkit-scrollbar { width: 6px; }
.dt-ai-panel__messages::-webkit-scrollbar-track { background: transparent; }
.dt-ai-panel__messages::-webkit-scrollbar-thumb {
  background: var(--ai-border);
  border-radius: 2px;
}
.dt-ai-panel__error {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  background: rgba(199, 80, 80,0.1);
  border-bottom: 1px solid rgba(199, 80, 80,0.2);
  color: var(--ai-text-error);
  font-size: var(--ai-fs-sm);
}
.dt-ai-panel__error button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ai-text-error);
  cursor: pointer;
  padding: var(--space-1);
}
.dt-ai-panel__error-retry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid rgba(199, 80, 80,0.3);
  border-radius: var(--ai-radius-xs);
  color: var(--ai-text-error);
  font-size: var(--ai-fs-xs);
  padding: var(--space-1) var(--space-4);
  cursor: pointer;
  transition: all var(--ai-transition);
}
.dt-ai-panel__error-retry:hover {
  background: rgba(199, 80, 80,0.15);
}
.dt-ai-panel__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ai-accent);
  animation: dt-ai-blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}
.dt-ai-panel__thinking {
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-sm);
  font-style: italic;
}

/* ==========================================================
   Section 37: LEGACY Copilot skeleton
   ========================================================== */
.dt-copilot-skeleton {
  padding: var(--ai-sp-md);
}

/* ==========================================================
   Section 38: CopilotInput — OpenBB card-style input
   ========================================================== */
.dt-ai-panel__input-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-5);
  background: var(--ai-bg);
  flex-shrink: 0;
  /* No top border — spacing creates visual separation */
}

/* ── Input card (terminal-style, replaces shadcn card) ── */
.dt-ai-input__card {
  position: relative;
  background: var(--ai-bg-input);
  border: 1px solid var(--ai-border);
  border-radius: 4px;
  padding: 10px 10px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--ai-transition), box-shadow var(--ai-transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.dt-ai-input__card:focus-within {
  border-color: var(--ai-border-focus);
}

/* Textarea inside the card */
.dt-ai-input__textarea {
  width: 100%;
  min-height: 36px;
  max-height: 200px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 0;
  margin: 0;
  font-family: var(--ai-font);
  font-size: var(--ai-fs-base);
  line-height: var(--ai-lh);
  color: var(--ai-text);
  caret-color: var(--ai-accent);
  overflow-y: hidden;
}
.dt-ai-input__textarea::-moz-placeholder {
  color: var(--ai-text-tertiary);
}
.dt-ai-input__textarea::placeholder {
  color: var(--ai-text-tertiary);
}
.dt-ai-input__textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── OpenBB-style info strip (above textarea) ── */
.dt-ai-input__info-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px 6px;
  border-bottom: 1px solid var(--ai-border);
  margin-bottom: 2px;
}
.dt-ai-input__info-icon {
  color: var(--ai-text-tertiary);
  flex-shrink: 0;
}
.dt-ai-input__info-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--ai-border);
  flex-shrink: 0;
  margin: 0 1px;
}
.dt-ai-input__info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--ai-bg-badge);
  color: var(--ai-text-secondary);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--ai-border);
}
.dt-ai-input__info-label {
  font-size: 11px;
  color: var(--ai-text-tertiary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ── Agent label in brand bar ── */
.dt-ai-input__agent-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ai-text-tertiary);
  white-space: nowrap;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color var(--ai-transition);
  cursor: default;
}

/* Bottom action bar */
.dt-ai-input__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 2px;
}
.dt-ai-input__actions-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Active state for icon-only action buttons (e.g. widget picker open) */
.dt-ai-input__btn--active {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}

/* Toggle-active state for Data/Search icon buttons */
.dt-ai-input__btn--toggle-active {
  color: var(--ai-accent);
  background: var(--ai-accent-subtle);
}
.dt-ai-input__btn--toggle-active:hover {
  opacity: 0.85;
}

/* Send button — empty state (no input text) */
.dt-ai-input__btn--send-empty {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Thin vertical separator between icon buttons and toggle pills */
.dt-ai-input__sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--ai-border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Search / Data toggle pills */
.dt-ai-input__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-tertiary);
  font-size: var(--ai-fs-xs);
  font-family: var(--ai-font);
  cursor: pointer;
  transition: all var(--ai-transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.dt-ai-input__toggle:hover:not(:disabled) {
  background: var(--ai-bg-hover);
  color: var(--ai-text-secondary);
  border-color: var(--ai-border-light);
}
.dt-ai-input__toggle--active {
  background: var(--ai-accent-subtle);
  border-color: var(--ai-accent);
  color: var(--ai-accent);
}
.dt-ai-input__toggle--active:hover:not(:disabled) {
  background: var(--ai-accent-subtle);
  opacity: 0.9;
}
.dt-ai-input__toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Error hint below textarea */
.dt-ai-input__error-hint {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-error);
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Char count modifier states */
.dt-ai-input__char-count--warn {
  color: var(--ai-text-warning);
}
.dt-ai-input__char-count--danger {
  color: var(--ai-text-error);
}

/* The main card: floating, round, elevated */
.dt-ai-panel__input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ai-border);
  border-radius: 14px;
  background: var(--ai-bg-elevated);
  transition: border-color var(--ai-transition), box-shadow var(--ai-transition);
  overflow: visible;
}
.dt-ai-panel__input-wrap:hover {
  border-color: var(--ai-text-tertiary);
}
.dt-ai-panel__input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--ai-accent) 40%, var(--ai-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-accent) 8%, transparent);
}

/* Top section: "@ Add context" badge row */
.dt-ai-panel__input-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) 0;
  flex-wrap: wrap;
}

/* Textarea row inside the card */
.dt-ai-panel__textarea-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-2);
}

.dt-ai-panel__textarea {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 38px;
  max-height: 160px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ai-text);
  font-family: var(--ai-font);
  font-size: var(--ai-fs-base);
  line-height: var(--ai-lh);
  resize: none;
  outline: none;
  padding: var(--space-3) var(--space-4) var(--space-2);
  transition: background var(--ai-transition);
}
.dt-ai-panel__textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dt-ai-panel__textarea::-moz-placeholder {
  color: var(--ai-text-tertiary);
}
.dt-ai-panel__textarea::placeholder {
  color: var(--ai-text-tertiary);
}

/* Bottom action bar inside the card */
.dt-ai-panel__input-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--ai-border) 60%, transparent);
}
.dt-ai-panel__input-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

/* Send / Stop buttons — circular, OpenBB style */
.dt-ai-panel__send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;              /* circular */
  background: var(--ai-accent);
  color: #fff;
  cursor: pointer;
  transition: all var(--ai-transition);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ai-accent) 35%, transparent);
}
.dt-ai-panel__send-btn:hover:not(:disabled) {
  background: var(--ai-accent-hover);
  transform: scale(1.06);
}
.dt-ai-panel__send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.dt-ai-panel__stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;              /* circular */
  background: var(--ai-text-error);
  color: #fff;
  cursor: pointer;
  transition: all var(--ai-transition);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}
.dt-ai-panel__stop-btn:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

/* ==========================================================
   Section 39: CopilotInput — Context chips
   ========================================================== */
.dt-copilot-context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ai-sp-xs);
  padding: var(--ai-sp-sm) var(--ai-sp-md) 0;
}
.dt-copilot-context-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: 2px;
  font-size: var(--ai-fs-xs);
  background: hsl(var(--card));
  color: var(--ai-text-secondary);
  border: 1px solid hsl(var(--border));
  white-space: nowrap;
  max-width: 200px;
}
.dt-copilot-context-chip--button {
  cursor: pointer;
  font: inherit;
  transition: all var(--ai-transition);
}
.dt-copilot-context-chip--button:hover {
  background: var(--ai-bg-hover);
  border-color: var(--ai-accent);
}
.dt-copilot-context-chip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.dt-copilot-context-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: var(--ai-radius-sm);
  color: var(--ai-text-tertiary);
  transition: color var(--ai-transition);
  flex-shrink: 0;
}
.dt-copilot-context-chip--button:hover .dt-copilot-context-chip__remove {
  color: var(--ai-text-error);
}

/* ==========================================================
   Section 40: CopilotInput — Mention/Slash dropdowns
   ========================================================== */
.dt-copilot-mention-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: var(--space-2);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
}
/* @mention inline chips inside the input card */
.dt-copilot-mention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ai-sp-xs);
  padding: var(--ai-sp-xs) 0 var(--ai-sp-xs);
}
.dt-copilot-mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--ai-accent) 25%, transparent);
}
.dt-copilot-mention-chip__label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.dt-copilot-mention-chip__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1px;
  border-radius: 50%;
  color: var(--ai-accent);
  opacity: 0.7;
  transition: opacity var(--ai-transition);
  line-height: 1;
}
.dt-copilot-mention-chip__remove:hover {
  opacity: 1;
}
.dt-copilot-mention-item {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: var(--ai-fs-sm);
  color: var(--ai-text);
  font-family: var(--ai-font);
  transition: background var(--ai-transition);
}
.dt-copilot-mention-item:hover,
.dt-copilot-mention-item--active {
  background: var(--ai-bg-hover);
}
.dt-copilot-mention-symbol {
  font-weight: 600;
  color: var(--ai-accent);
  font-size: var(--ai-fs-sm);
  white-space: nowrap;
}
.dt-copilot-mention-name {
  flex: 1;
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-copilot-mention-type {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
}

/* ==========================================================
   Section 41: CopilotInput — Footer, char count, hints
   ========================================================== */
.dt-copilot-input-footer {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
  min-width: 0;
  padding: 0;
}
.dt-copilot-input-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  row-gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
}
.dt-copilot-input-meta {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  flex-wrap: wrap;
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  line-height: 1.35;
}
.dt-copilot-input-status {
  color: var(--ai-text-tertiary);
  font-size: var(--ai-fs-xs);
}
.dt-copilot-input-status--error {
  color: var(--ai-text-error);
}
.dt-copilot-char-count {
  font-variant-numeric: tabular-nums;
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
}
.dt-copilot-char-count--warn {
  color: var(--ai-text-error);
  font-weight: 600;
}
.dt-copilot-newline-hint {
  opacity: 0.5;
  font-size: var(--ai-fs-xs);
}

/* ==========================================================
   Section 42: CopilotInput — Control selects
   ========================================================== */
.dt-copilot-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.dt-copilot-control__label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
}
.dt-copilot-control__select {
  font-size: var(--ai-fs-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--ai-radius-xs);
  border: 1px solid var(--ai-border);
  background: var(--ai-bg-elevated);
  color: var(--ai-text);
  cursor: pointer;
  outline: none;
}

/* ==========================================================
   Section 43: CopilotInput — Attachment picker
   ========================================================== */
.dt-copilot-attachment-picker {
  position: relative;
}
.dt-copilot-attachment-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 28px;
  padding: 3px var(--space-4);
  border-radius: 2px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all 140ms ease;
  font-family: var(--font-sans);
  font-weight: 600;
}
.dt-copilot-attachment-picker__trigger:hover:not(:disabled) {
  background: hsl(var(--accent));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.dt-copilot-attachment-picker__trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ==========================================================
   Section 44: CopilotInput — URL picker
   ========================================================== */
.dt-copilot-url-picker {
  position: relative;
}
.dt-copilot-url-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 28px;
  padding: 3px var(--space-4);
  border-radius: 2px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all 140ms ease;
  font-family: var(--font-sans);
  font-weight: 600;
}
.dt-copilot-url-picker__trigger:hover:not(:disabled),
.dt-copilot-url-picker__trigger--active {
  background: hsl(var(--accent));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.dt-copilot-url-picker__trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dt-copilot-url-picker__menu {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: var(--space-3);
  width: min(320px, calc(100vw - var(--right-rail-width, 56px) - 28px));
  max-width: calc(100vw - var(--right-rail-width, 56px) - 28px);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow-md);
  z-index: 30;
  padding: var(--ai-sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
}
.dt-copilot-url-picker__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ai-sp-sm);
}
.dt-copilot-url-picker__title {
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  color: var(--ai-text);
}
.dt-copilot-url-picker__subtitle {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  line-height: var(--ai-lh);
  margin-top: var(--space-1);
}
.dt-copilot-url-picker__clear {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-error);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
}
.dt-copilot-url-picker__controls {
  display: flex;
  gap: var(--ai-sp-sm);
}
.dt-copilot-url-picker__input {
  flex: 1;
  padding: var(--ai-sp-sm);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-input);
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  outline: none;
}
.dt-copilot-url-picker__input:focus {
  border-color: var(--ai-border-focus);
}
.dt-copilot-url-picker__add {
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: 1px solid var(--ai-accent);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-accent);
  color: hsl(var(--foreground));
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ai-transition);
}
.dt-copilot-url-picker__add:hover {
  background: var(--ai-accent-hover);
}
.dt-copilot-url-picker__error {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-error);
}
.dt-copilot-url-picker__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-height: 150px;
  overflow-y: auto;
}
.dt-copilot-url-picker__item {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm);
  border-radius: var(--ai-radius-sm);
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--ai-font);
  transition: background var(--ai-transition);
  width: 100%;
}
.dt-copilot-url-picker__item:hover {
  background: var(--ai-bg-hover);
}
.dt-copilot-url-picker__item-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dt-copilot-url-picker__item-label {
  font-size: var(--ai-fs-sm);
  color: var(--ai-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-copilot-url-picker__item-url {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-copilot-url-picker__item-remove {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-error);
  white-space: nowrap;
  flex-shrink: 0;
}
.dt-copilot-url-picker__empty {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-align: center;
  padding: var(--ai-sp-sm);
}

/* ==========================================================
   Section 45: CopilotInput — Widget picker
   ========================================================== */
.dt-copilot-widget-picker {
  position: relative;
}
.dt-copilot-widget-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-4);
  border-radius: var(--ai-radius-sm);
  border: 1px solid var(--ai-border);
  background: var(--ai-bg-elevated);
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all var(--ai-transition);
  font-family: var(--ai-font);
}
.dt-copilot-widget-picker__trigger:hover:not(:disabled),
.dt-copilot-widget-picker__trigger--active {
  border-color: var(--ai-accent);
  color: var(--ai-text);
}
.dt-copilot-widget-picker__trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dt-copilot-widget-picker__menu {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: var(--space-3);
  width: min(320px, calc(100vw - var(--right-rail-width, 56px) - 28px));
  max-width: calc(100vw - var(--right-rail-width, 56px) - 28px);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow-md);
  z-index: 30;
  padding: var(--ai-sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
}
.dt-copilot-widget-picker__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ai-sp-sm);
}
.dt-copilot-widget-picker__title {
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  color: var(--ai-text);
}
.dt-copilot-widget-picker__subtitle {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  line-height: var(--ai-lh);
  margin-top: var(--space-1);
}
.dt-copilot-widget-picker__clear {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-error);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
}
.dt-copilot-widget-picker__list {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-xs);
  max-height: 200px;
  overflow-y: auto;
}
.dt-copilot-widget-picker__item {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--ai-font);
  transition: all var(--ai-transition);
  width: 100%;
}
.dt-copilot-widget-picker__item:hover {
  border-color: var(--ai-accent);
  background: var(--ai-bg-hover);
}
.dt-copilot-widget-picker__item--selected {
  border-color: var(--ai-accent);
  background: var(--ai-accent-subtle);
}
.dt-copilot-widget-picker__checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  flex-shrink: 0;
  color: transparent;
  transition: all var(--ai-transition);
}
.dt-copilot-widget-picker__item--selected .dt-copilot-widget-picker__checkbox {
  background: var(--ai-accent);
  border-color: var(--ai-accent);
  color: hsl(var(--foreground));
}
.dt-copilot-widget-picker__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dt-copilot-widget-picker__item-title {
  font-size: var(--ai-fs-sm);
  color: var(--ai-text);
  font-weight: 500;
}
.dt-copilot-widget-picker__item-description {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
}
.dt-copilot-widget-picker__item-meta {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
}
.dt-copilot-widget-picker__badge {
  font-size: var(--ai-fs-xs);
  padding: 1px var(--space-3);
  border-radius: var(--ai-radius-sm);
  background: var(--ai-bg-badge);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}
.dt-copilot-widget-picker__item--selected .dt-copilot-widget-picker__badge {
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
}


/* ==========================================================
   Section 46: CopilotPromptTemplates
   ========================================================== */
.dt-copilot-templates {
  position: relative;
}
.dt-copilot-templates__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 28px;
  padding: 3px var(--space-4);
  border-radius: 2px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all 140ms ease;
  font-family: var(--font-sans);
  font-weight: 600;
}
.dt-copilot-templates__trigger:hover:not(:disabled),
.dt-copilot-templates__trigger--active {
  background: hsl(var(--accent));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.dt-copilot-templates__panel {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: var(--space-3);
  width: min(320px, calc(100vw - var(--right-rail-width, 56px) - 28px));
  max-height: 360px;
  max-width: calc(100vw - var(--right-rail-width, 56px) - 28px);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  box-shadow: var(--ai-shadow-md);
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 720px) {
  .dt-ai-panel--open:not(.dt-ai-panel--expanded) {
    right: 0;
    max-width: 100vw;
    width: 100vw !important;
  }

  .dt-ai-header {
    padding-left: var(--ai-sp-sm);
    padding-right: var(--ai-sp-sm);
  }

  .dt-ai-panel--expanded .dt-ai-body,
  .dt-ai-panel--expanded .dt-ai-footer {
    max-width: calc(100vw - 24px);
  }
}
.dt-copilot-templates__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
}
.dt-copilot-templates__title {
  font-size: var(--ai-fs-sm);
  font-weight: 600;
  color: var(--ai-text);
}
.dt-copilot-templates__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  padding: 0;
}
.dt-copilot-templates__close:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.dt-copilot-templates__search {
  width: 100%;
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  border: none;
  border-bottom: 1px solid var(--ai-border-light);
  background: transparent;
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  outline: none;
}
.dt-copilot-templates__search::-moz-placeholder {
  color: var(--ai-text-tertiary);
}
.dt-copilot-templates__search::placeholder {
  color: var(--ai-text-tertiary);
}
.dt-copilot-templates__categories {
  display: flex;
  gap: var(--ai-sp-xs);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  overflow-x: auto;
  flex-shrink: 0;
}
.dt-copilot-templates__category-pill {
  padding: var(--space-1) var(--space-5);
  border-radius: var(--ai-radius-sm);
  border: 1px solid var(--ai-border);
  background: transparent;
  color: var(--ai-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ai-transition);
  font-family: var(--ai-font);
}
.dt-copilot-templates__category-pill:hover {
  border-color: var(--ai-accent);
}
.dt-copilot-templates__category-pill--active {
  background: var(--ai-accent-subtle);
  border-color: var(--ai-accent);
  color: var(--ai-accent);
}
.dt-copilot-templates__list {
  flex: 1;
  overflow-y: auto;
  padding: var(--ai-sp-sm);
}
.dt-copilot-templates__category {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--ai-sp-xs) var(--ai-sp-sm);
  margin-top: var(--ai-sp-sm);
}
.dt-copilot-templates__category:first-child {
  margin-top: 0;
}
.dt-copilot-templates__item {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm);
  border-radius: var(--ai-radius-sm);
  border: none;
  background: transparent;
  color: var(--ai-text);
  font-size: var(--ai-fs-sm);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--ai-font);
  transition: background var(--ai-transition);
}
.dt-copilot-templates__item:hover {
  background: var(--ai-bg-hover);
}
.dt-copilot-templates__item-icon {
  color: var(--ai-accent);
  flex-shrink: 0;
}
.dt-copilot-templates__item-label {
  flex: 1;
}
.dt-copilot-templates__item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: var(--ai-radius-xs);
  background: transparent;
  color: var(--ai-text-tertiary);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: all var(--ai-transition);
  flex-shrink: 0;
}
.dt-copilot-templates__item:hover .dt-copilot-templates__item-remove {
  opacity: 1;
}
.dt-copilot-templates__item-remove:hover {
  color: var(--ai-text-error);
}
.dt-copilot-templates__empty {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  text-align: center;
  padding: var(--ai-sp-lg);
}

/* ==========================================================
   Section 47: Copilot skeleton
   ========================================================== */
.dt-copilot-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-md);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  margin: var(--ai-sp-sm) 0;
}
.dt-copilot-skeleton__line {
  height: 12px;
  background: var(--ai-bg-active);
  border-radius: var(--ai-radius-xs);
  animation: dt-ai-pulse 1.5s ease-in-out infinite;
}
.dt-copilot-skeleton__line--short {
  width: 60%;
}
.dt-copilot-skeleton__line--medium {
  width: 80%;
}
.dt-copilot-skeleton-bar {
  background: var(--ai-bg-active);
  animation: dt-ai-pulse 1.5s ease-in-out infinite;
}

/* ==========================================================
   Section 48a: Inline Chart / Table wrappers
   ========================================================== */
.dt-copilot-inline-viz {
  margin: var(--ai-sp-sm) 0;
}
.dt-copilot-inline-viz--expanded {
  margin: var(--ai-sp-md) calc(-1 * var(--ai-sp-md));
}
.dt-copilot-inline-table {
  margin: var(--ai-sp-sm) 0;
}
.dt-copilot-inline-table--expanded {
  margin: var(--ai-sp-md) calc(-1 * var(--ai-sp-md));
}

/* ==========================================================
   Section 48: CopilotCitations
   All visual rules now live next to the React component in
   CopilotCitations.jsx (inline <style>) so the design stays in
   one place. The legacy global rules that lived here previously
   (pill toggle, chip-row list, link-tinted headline) overrode the
   new inline styles via !important and have been removed.
   ========================================================== */

/* Legacy pill (kept for compatibility) */
.dt-copilot-citation-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ai-transition);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--ai-text-link) 25%, transparent);
  background: color-mix(in srgb, var(--ai-text-link) 14%, transparent);
  color: var(--ai-text-link);
}
.dt-copilot-citation-chip:hover {
  border-color: var(--ai-text-link);
}

/* ── Date separator ── */
.dt-ai-date-separator {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-xs) var(--ai-sp-lg);
  margin: var(--ai-sp-xs) 0;
}
.dt-ai-date-separator::before,
.dt-ai-date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ai-border-light);
}
.dt-ai-date-separator__label {
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-tertiary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Drag & drop overlay ── */
.dt-ai-panel__input-area--dragover {
  outline: 2px dashed var(--ai-accent);
  outline-offset: -2px;
  background: rgba(74,144,217,0.06);
  border-radius: var(--ai-radius);
}

/* ── Character counter danger state ── */
.dt-copilot-char-count--danger {
  color: hsl(var(--negative)) !important;
  font-weight: 600;
}

/* ── Touch/mobile: always show actions ── */
@media (hover: none), (pointer: coarse) {
  .dt-ai-msg-actions {
    opacity: 1 !important;
  }
  .dt-ai-msg-bubble-user__footer .dt-ai-msg-action-btn {
    opacity: 1 !important;
  }
}

/* ── Edit button always visible (subtle, stronger on hover) ── */
.dt-ai-msg-bubble-user__footer .dt-ai-msg-action-btn {
  opacity: 0.4;
  transition: opacity var(--ai-transition);
}
.dt-ai-msg-bubble-user:hover .dt-ai-msg-bubble-user__footer .dt-ai-msg-action-btn,
.dt-ai-msg-bubble-user__footer .dt-ai-msg-action-btn:focus-visible {
  opacity: 1;
}

/* ── Side view panels (prompts, agents) ── */
.dt-ai-panel__side-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 12px;
}

/* ── KaTeX math rendering (OpenBB-parity LaTeX output) ── */
.dt-ai-md .katex {
  color: hsl(var(--foreground));
  font-size: 1em;
}
.dt-ai-md .katex-display {
  margin: 0.65em 0;
  padding: 0.4em 0.6em;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 6px;
  overflow-x: auto;
}
.dt-ai-md .katex .frac-line,
.dt-ai-md .katex .sqrt-line,
.dt-ai-md .katex .overline-line,
.dt-ai-md .katex .underline-line {
  border-color: hsl(var(--foreground));
}
@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.45"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}
/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* geist-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-latin-wght-normal-Dm3htQBi.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* geist-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-cyrillic-wght-normal-BZdD_g9V.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-latin-ext-wght-normal-b6lpi8_2.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-mono-latin-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-latin-wght-normal-Cjtb1TV-.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}*, ::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.19 | 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: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif; /* 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: Geist Mono, JetBrains Mono, SFMono-Regular, Menlo, Consolas, 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;
}
  :root {
    /* ── shadcn/ui core tokens — Mira preset (Neutral, dark) ──
       Pure-neutral grays · White primary · Subtle card elevation · 0.5rem radius    */

    /* ── Surface stack — clear visual hierarchy via lift.
       Workspace sits low, cards float ~7pt above, popovers float higher
       still. Elevation is now perceptual — the border still delineates
       but it no longer carries the entire hierarchy. */
    /* OpenBB-inspired near-black workspace: pulled deep so the lifted cards
       read as the only "surface" in the chrome. Sidebar drops below workspace
       so the rail feels recessed. Tiny warm bias (s=4%) keeps it from looking
       icy. Brand stays action-blue, used only on active surfaces. */
    --background: 240 4% 5%;             /* #0C0C0E — workspace */
    /* All text/icon foreground is pixel-matched to OpenBB Workspace (#D0D3DB,
       a quiet silver-blue grey) rather than near-white. This is the
       single global text tone for headings, body, buttons, symbols, and
       table cells across the terminal. */
    --foreground: 224 13% 84%;           /* #D0D3DB — pixel-matched to OpenBB */

    --card: 240 7% 9%;                   /* #151518 — pixel-matched to OpenBB Workspace */
    --card-foreground: 224 13% 84%;

    --popover: 240 4% 13%;               /* #1F1F22 — popovers float above cards */
    --popover-foreground: 224 13% 84%;

    /* Primary — neutral non-brand CTA fill (Cancel etc.). Near-white. */
    --primary: 0 0% 98%;                 /* #FAFAFA */
    --primary-foreground: 0 0% 9%;       /* #171717 */

    /* Secondary — subtle bump for inputs, secondary surfaces */
    --secondary: 240 4% 13%;             /* #1F1F22 — sits at popover level */
    --secondary-foreground: 224 13% 84%;

    /* Text hierarchy */
    --foreground-secondary: 220 8% 72%;   /* #B0B3BB — body labels, sub-text */

    /* Muted — subtitle/disabled surfaces */
    --muted: 240 4% 13%;                 /* #1F1F22 */
    --muted-foreground: 218 9% 56%;      /* #828690 — captions / table column headers */

    /* Accent — neutral hover fill (shadcn convention; NOT brand). */
    --accent: 240 4% 16%;                /* #262629 */
    --accent-foreground: 224 13% 84%;

    /* Hover — subtle brand-tinted hover so interactive elements share a
       coherent affordance signal. */
    --hover: 218 97% 53% / 0.08;         /* brand @ 8% — quiet, never competes with active */
    --hover-foreground: 0 0% 98%;

    --destructive: 0 68% 55%;            /* #CD3D3D — OpenBB balanced red, not muddy */
    --destructive-foreground: 0 0% 98%;

    /* ── Brand — action-blue. Used restrained: active tab text + bottom-border,
       sidebar active icon, primary CTA fill, focus ring, hyperlinks. Hover/
       selected states use the grey shelf, not brand tint. */
    --brand: 218 97% 53%;                /* #1268FB — action-blue */
    --brand-foreground: 0 0% 100%;
    --brand-soft: 218 97% 53% / 0.12;    /* tinted active-tab background */
    --brand-mid: 218 97% 53% / 0.24;     /* hover on brand-tinted surfaces */
    --brand-strong: 218 97% 60%;         /* hover on brand-filled chips */

    /* Borders — quiet hairlines, just enough to crisp the card edge. */
    --border: 240 4% 14%;                /* #222226 — hairline on #18181B card */
    --input: 240 4% 14%;
    --ring: 218 97% 53%;                 /* brand ring — focus visibility */

    --radius: 0.25rem;                   /* 4px */

    /* ── Sidebar tokens — pixel-matched to OpenBB Workspace sidebar (#151518),
       measured via Digital Color Meter. Workspace stays deeper at #0C0C0E so
       the sidebar reads as a lifted chrome rail above it. */
    --sidebar-background: 240 7% 9%;     /* #151518 — pixel-matched to OpenBB */
    --sidebar-foreground: 224 13% 84%;   /* #D0D3DB — pixel-matched to OpenBB */
    --sidebar-primary: 218 97% 60%;      /* #3681FB — brand-lighter; tints active icon only */
    --sidebar-primary-foreground: 224 13% 84%;
    --sidebar-accent: 240 6% 15%;        /* #232328 — hover/active surface, lifts off #151518 */
    --sidebar-accent-foreground: 224 13% 84%;
    --sidebar-border: 240 5% 13%;        /* #1F1F23 — quiet hairline */
    --sidebar-ring: 218 97% 53%;         /* brand ring */

    /* ── Financial colors — saturated enough to pop without going Tailwind-neon ── */
    --positive: 120 55% 50%;         /* #39C639 — Bloomberg-grade green */
    --positive-dim: 120 55% 50% / 0.16;
    --negative: 0 73% 56%;           /* #E03838 — Bloomberg-grade red */
    --negative-dim: 0 73% 56% / 0.16;

    /* ── Chart palette — OpenBB data visualization colors ── */
    --chart-1: 31 100% 50%;          /* #FF8000 */
    --chart-2: 205 86% 56%;          /* #2D9BF0 */
    --chart-3: 142 71% 45%;          /* #22C55E */
    --chart-4: 0 84% 60%;            /* #EF4444 */
    --chart-5: 207 100% 33.1%;       /* #005CA9 */
    --chart-6: 218 97% 60%;         /* #3681FB */
    --chart-7: 142 76% 36%;          /* #16A34A */
    --chart-8: 31 88% 68%;           /* #F5B166 */

    /* ── Secondary accent — zinc ── */
    --secondary-accent: 240 4% 18%;          /* #2B2B30 */
    --secondary-accent-foreground: 0 0% 100%;

    /* Glow / surface tints — defined as shadcn-aliases in legacy section below */

    /* ── Layout ── */
    --topbar-height: 48px;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 50px;
    --right-sidebar-width: 230px;

    /* ── Typography ── */
    /* Three roles, three families:
       - --font-sans:    Inter — body / dense UI / tables (UI-tuned at small sizes)
       - --font-display: Geist — landing & marketing headlines (modern, brand voice)
       - --font-mono:    Inter with tabular-nums — was Geist Mono, but OpenBB-style
                          uses a single Inter face everywhere and turns on
                          `tabular-nums` for numeric columns instead of switching
                          to a true monospace cut. Reads softer, lets columns of
                          numbers still align cleanly, and saves one font load. */
    --font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-display: 'Geist', 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-size-xs:   12px;
    --font-size-sm:   13px;
    --font-size-base: 14px;
    --font-size-md:   15px;
    --font-size-lg:   16px;
    --font-size-xl:   18px;
    --font-size-2xl:  24px;
    --font-size-3xl:  30px;
    --font-size-4xl:  40px;

    /* ── Spacing ── */
    --space-0:    2px;
    --space-half: 3px;
    --space-1:    4px;
    --space-2:    8px;
    --space-3:    12px;
    --space-4:    16px;
    --space-5:    20px;
    --space-6:    24px;
    --space-8:    32px;
    --space-10:   40px;
    --space-12:   48px;

    /* ── Radii ── */
    --radius-xs: 0px;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --radius-xl: 6px;

    /* ── Transitions ── */
    --transition-fast:   140ms ease;
    --transition-normal: 200ms ease-out;
    --transition-slow:   320ms ease;

    /* ── Layout ── */
    --right-rail-width:        56px;
    --right-dock-width:        0px;
    --widget-header-height:    28px;
    --statusbar-height:        24px;

    /* ── Row heights ── */
    --row-data:    34px;
    --row-compact: 28px;

    /* ── Z-index stack ── */
    --z-base: 0;
    --z-widget: 10;
    --z-sticky: 20;
    --z-dropdown: 50;
    --z-modal: 100;
    --z-toast: 200;
  }

/* ── Light theme override — Mira preset Neutral ── */
  .light {
    /* Inverted hierarchy: light-gray workspace, pure-white cards float on top. */
    --background: 220 17% 96%;            /* #F2F4F6 — workspace gray */
    --foreground: 218 24% 17%;            /* #1E2939 — slate text (not pure black) */

    --card: 0 0% 100%;                    /* #FFFFFF — white panel, clearly elevated */
    --card-foreground: 218 24% 17%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;

    /* Primary — near-black (Neutral light) */
    --primary: 0 0% 9%;                   /* #171717 */
    --primary-foreground: 0 0% 98%;       /* #FAFAFA */

    --secondary: 0 0% 96.1%;              /* #F5F5F5 */
    --secondary-foreground: 0 0% 9%;

    --foreground-secondary: 0 0% 32%;     /* #525252 — secondary labels (light) */

    --muted: 0 0% 96.1%;                  /* #F5F5F5 */
    --muted-foreground: 0 0% 45.1%;       /* #737373 */

    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;

    /* Hover — brand-tinted (light variant). */
    --hover: 218 87% 47% / 0.08;        /* brand @ 8% — light surface */
    --hover-foreground: 0 0% 9%;

    --destructive: 0 84.2% 60.2%;         /* #EF4444 */
    --destructive-foreground: 0 0% 98%;

    /* Brand — light variant (action-blue dialed darker for contrast on white) */
    --brand: 218 87% 47%;                 /* #0F5CE0 — action-blue (light) */
    --brand-foreground: 0 0% 100%;
    --brand-soft: 218 87% 47% / 0.10;
    --brand-mid: 218 87% 47% / 0.22;
    --brand-strong: 218 87% 54%;

    --border: 220 12% 84%;                /* #D0D5DD — light-400 */
    --input: 220 12% 84%;
    --ring: 218 87% 47%;                  /* brand ring */

    --sidebar-background: 220 17% 93%;     /* #E8EBEF — chrome, recessed below the 96% workspace and 100% cards */
    --sidebar-foreground: 218 24% 17%;
    --sidebar-primary: 218 87% 47%;        /* brand — for active icon */
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 220 17% 92%;         /* darker bump for hover/active on light sidebar */
    --sidebar-accent-foreground: 218 24% 17%;
    --sidebar-border: 220 12% 88%;
    --sidebar-ring: 218 87% 47%;

    --positive: 120 55% 36%;         /* #299029 — saturated green (light) */
    --positive-dim: 120 55% 36% / 0.10;
    --negative: 0 73% 45%;           /* #C71E1E — saturated red (light) */
    --negative-dim: 0 73% 45% / 0.10;

    --chart-1: 207 100% 33.1%;       /* #005CA9 */
    --chart-2: 142 76% 36%;          /* #16A34A */
    --chart-3: 31 100% 50%;          /* #FF8000 */
    --chart-4: 0 72% 50%;            /* #DC2626 */
    --chart-5: 271 80% 58%;          /* #8B5CF6 */
    --chart-6: 45 92% 48%;           /* #EAB308 */
    --chart-7: 193 74% 42%;          /* #0891B2 */
    --chart-8: 340 75% 48%;          /* #DB2777 */

    --secondary-accent: 0 0% 91.8%;
    --secondary-accent-foreground: 0 0% 16.5%;
  }
  .dark {
    --sidebar-background: 240 7% 9%;
    --sidebar-foreground: 224 13% 84%;
    --sidebar-primary: 218 97% 60%;
    --sidebar-primary-foreground: 224 13% 84%;
    --sidebar-accent: 240 6% 15%;
    --sidebar-accent-foreground: 224 13% 84%;
    --sidebar-border: 240 5% 13%;
    --sidebar-ring: 218 97% 53%;
  }
  * {
  border-color: hsl(var(--border));
}

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

  html,
  body {
    overflow: hidden;
    scroll-behavior: smooth;
    overscroll-behavior: none;
  }

  body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
    margin: 0;
    font-family: var(--font-sans);
    font-feature-settings: 'rlig' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

  /* OpenBB-style numerics: any element using the Tailwind `.font-mono` utility
     (or any `[class*="font-mono"]` variant) renders in Inter with the OpenType
     `tabular-nums` feature on, so price columns and change values still align
     vertically without switching font families. This replaces the previous
     Geist Mono setup terminal-wide — keeps the typographic family consistent
     while preserving column alignment for tables and numeric cells. */
  .font-mono,
  [class*='font-mono'] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1, 'cv11' 1;
  }
  .tabular-nums,
  [data-numeric] {
    font-feature-settings: 'tnum' 1;
  }

  #root {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* Tabular numerals for data values */
  .tabular-nums,
  [data-numeric] {
    font-variant-numeric: tabular-nums;
  }
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
}
@media (min-width: 1400px) {

  .container {
    max-width: 1400px;
  }
}
/* ── Labels & eyebrows — small uppercase chrome ─────────────────────────
     Use for: column headers, KPI labels, eyebrow text, meta-footer labels,
     section dividers. NOT for body text or descriptions.
  */
.dt-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}
/* ── Data display — numeric cells ───────────────────────────────────────
     Use for: any numeric value in a table or KPI tile. Locks tabular
     alignment and mono font automatically.
  */
/* ── Change pills — directional values ──────────────────────────────────
     Prefer the <ChangeChip> primitive when possible. These classes are
     for cases where the chip wrapper is unwanted (e.g. inside a tooltip
     or a single-line label).
  */
/* ── Brand chip — symbol/scope anchor ───────────────────────────────────
     Use for: symbol chips, "Primary" tags, scope-anchor markers.
  */
.dt-brand-chip {
  display: inline-flex;
  height: 1.25rem;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-radius: 9999px;
  border-width: 1px;
  border-color: hsl(var(--brand) / 0.25);
  background-color: hsl(var(--brand) / 0.15);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 10.5px;
  font-weight: 500;
  color: hsl(var(--brand));
}
/* ── Section tabs ───────────────────────────────────────────────────────
     Active uses brand pill + bottom-rule; inactive is muted.
     Compose with: `<button className="dt-tab dt-tab--active">` or
     `<button className="dt-tab dt-tab--inactive">`.
  */
/* ── Focus ring — universal focus-visible utility ───────────────────────
     Use on any interactive element that needs a brand-coloured focus halo.
  */
.dt-focus-ring:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --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);
  --tw-ring-color: hsl(var(--ring));
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: hsl(var(--background));
}
/* ── Surfaces ───────────────────────────────────────────────────────────
     Card surface that matches widget shells. Use for popovers, modals,
     side panels — anything that needs the same elevation as a widget.
  */
.dt-card {
  border-radius: calc(var(--radius) - 1px);
  border-width: 1px;
  border-color: hsl(var(--border) / 0.4);
  background-color: hsl(var(--card));
}
/* ── Widget body shell — the standard 3-slot column container ───────────
     For widgets that don't go through <WidgetShell> (e.g. raw legacy
     bodies). Prefer the React primitive when possible.
  */
.dt-widget-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background-color: hsl(var(--card));
}
/* L1 — Subtle hover affordance for rows / list items / menu items.
     Use on: WidgetTable <tr>, DropdownMenu items, list items, sidebar
     inactive items. Never on text alone — needs a surface to tint. */
.dt-hover-row {
  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;
}
.dt-hover-row:hover {
  background-color: hsl(var(--brand) / 0.06);
}
/* L2 — Currently-selected row / item / chip. OpenBB-style selection uses
     a slate-tinted bg (NOT brand) so it doesn't compete with active states.
     Brand color stays reserved for the active interaction surface; selection
     is a different semantic (which row is currently focused). */
.dt-row-selected {
    background-color: #334859;
  }
/* L3 — Anchor / live / scope. Stronger surface + border so it reads as
     a deliberate identity marker. (Symbol chips already use dt-brand-chip;
     this is for non-chip uses like a "live" pulse dot or a locked-symbol
     stripe on a widget header.) */
.dt-live-dot {
  display: inline-block;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: hsl(var(--brand));
    box-shadow: 0 0 0 2px hsl(var(--brand) / 0.25);
    animation: dt-live-pulse 2s ease-in-out infinite;
}
/* L4 — Primary action button. Use sparingly: Save, Add, Confirm, Submit.
     Never use for "secondary primary" actions like Cancel or destructive. */
.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;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.-inset-6 {
  inset: -1.5rem;
}
.inset-0 {
  inset: 0px;
}
.inset-x-0 {
  left: 0px;
  right: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.-left-12 {
  left: -3rem;
}
.-left-16 {
  left: -4rem;
}
.-right-10 {
  right: -2.5rem;
}
.-top-10 {
  top: -2.5rem;
}
.-top-4 {
  top: -1rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-0\.5 {
  bottom: 0.125rem;
}
.bottom-2 {
  bottom: 0.5rem;
}
.bottom-3 {
  bottom: 0.75rem;
}
.bottom-4 {
  bottom: 1rem;
}
.bottom-6 {
  bottom: 1.5rem;
}
.bottom-full {
  bottom: 100%;
}
.left-0 {
  left: 0px;
}
.left-1 {
  left: 0.25rem;
}
.left-1\/2 {
  left: 50%;
}
.left-2 {
  left: 0.5rem;
}
.left-3 {
  left: 0.75rem;
}
.left-4 {
  left: 1rem;
}
.left-6 {
  left: 1.5rem;
}
.left-\[12px\] {
  left: 12px;
}
.left-\[2px\] {
  left: 2px;
}
.left-\[50\%\] {
  left: 50%;
}
.left-full {
  left: 100%;
}
.left-sidebar {
  left: var(--sidebar-width);
}
.right-0 {
  right: 0px;
}
.right-0\.5 {
  right: 0.125rem;
}
.right-1 {
  right: 0.25rem;
}
.right-2 {
  right: 0.5rem;
}
.right-2\.5 {
  right: 0.625rem;
}
.right-3 {
  right: 0.75rem;
}
.right-4 {
  right: 1rem;
}
.right-\[72px\] {
  right: 72px;
}
.right-\[88px\] {
  right: 88px;
}
.right-sidebar {
  right: var(--sidebar-width);
}
.top-0 {
  top: 0px;
}
.top-1 {
  top: 0.25rem;
}
.top-1\.5 {
  top: 0.375rem;
}
.top-1\/2 {
  top: 50%;
}
.top-16 {
  top: 4rem;
}
.top-2 {
  top: 0.5rem;
}
.top-2\.5 {
  top: 0.625rem;
}
.top-20 {
  top: 5rem;
}
.top-3 {
  top: 0.75rem;
}
.top-4 {
  top: 1rem;
}
.top-5 {
  top: 1.25rem;
}
.top-6 {
  top: 1.5rem;
}
.top-\[2px\] {
  top: 2px;
}
.top-\[50\%\] {
  top: 50%;
}
.top-full {
  top: 100%;
}
.isolate {
  isolation: isolate;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[-1\] {
  z-index: -1;
}
.z-\[0\] {
  z-index: 0;
}
.z-\[1000\] {
  z-index: 1000;
}
.z-\[100\] {
  z-index: 100;
}
.z-\[10\] {
  z-index: 10;
}
.z-\[1200\] {
  z-index: 1200;
}
.z-\[1300\] {
  z-index: 1300;
}
.z-\[1400\] {
  z-index: 1400;
}
.z-\[1\] {
  z-index: 1;
}
.z-\[200\] {
  z-index: 200;
}
.z-\[2\] {
  z-index: 2;
}
.z-\[3\] {
  z-index: 3;
}
.z-\[500\] {
  z-index: 500;
}
.z-\[5\] {
  z-index: 5;
}
.z-\[60\] {
  z-index: 60;
}
.z-\[6\] {
  z-index: 6;
}
.z-\[7\] {
  z-index: 7;
}
.z-\[9999\] {
  z-index: 9999;
}
.z-auto {
  z-index: auto;
}
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.order-first {
  order: -9999;
}
.order-last {
  order: 9999;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.col-span-6 {
  grid-column: span 6 / span 6;
}
.float-right {
  float: right;
}
.m-0 {
  margin: 0px;
}
.-mx-1 {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.mx-0 {
  margin-left: 0px;
  margin-right: 0px;
}
.mx-0\.5 {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-1\.5 {
  margin-left: 0.375rem;
  margin-right: 0.375rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}
.mx-3\.5 {
  margin-left: 0.875rem;
  margin-right: 0.875rem;
}
.mx-\[2px\] {
  margin-left: 2px;
  margin-right: 2px;
}
.mx-\[3px\] {
  margin-left: 3px;
  margin-right: 3px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-0\.5 {
  margin-top: 0.125rem;
  margin-bottom: 0.125rem;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.\!mt-0 {
  margin-top: 0px !important;
}
.-mb-px {
  margin-bottom: -1px;
}
.-mr-1 {
  margin-right: -0.25rem;
}
.-mt-0\.5 {
  margin-top: -0.125rem;
}
.-mt-1 {
  margin-top: -0.25rem;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-2\.5 {
  margin-bottom: 0.625rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-3\.5 {
  margin-bottom: 0.875rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-7 {
  margin-bottom: 1.75rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-\[16px\] {
  margin-bottom: 16px;
}
.mb-\[20px\] {
  margin-bottom: 20px;
}
.mb-\[5px\] {
  margin-bottom: 5px;
}
.ml-0 {
  margin-left: 0px;
}
.ml-0\.5 {
  margin-left: 0.125rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-1\.5 {
  margin-left: 0.375rem;
}
.ml-12 {
  margin-left: 3rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-2\.5 {
  margin-left: 0.625rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-5 {
  margin-left: 1.25rem;
}
.ml-7 {
  margin-left: 1.75rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-0 {
  margin-right: 0px;
}
.mr-0\.5 {
  margin-right: 0.125rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-2\.5 {
  margin-right: 0.625rem;
}
.mr-3\.5 {
  margin-right: 0.875rem;
}
.mr-5 {
  margin-right: 1.25rem;
}
.mr-\[5px\] {
  margin-right: 5px;
}
.mr-auto {
  margin-right: auto;
}
.mt-0 {
  margin-top: 0px;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-16 {
  margin-top: 4rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-2\.5 {
  margin-top: 0.625rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-3\.5 {
  margin-top: 0.875rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-7 {
  margin-top: 1.75rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-\[1px\] {
  margin-top: 1px;
}
.mt-\[2px\] {
  margin-top: 2px;
}
.mt-\[3px\] {
  margin-top: 3px;
}
.mt-auto {
  margin-top: auto;
}
.mt-px {
  margin-top: 1px;
}
.box-border {
  box-sizing: border-box;
}
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.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 !important;
}
.inline {
  display: inline;
}
.\!flex {
  display: flex !important;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.\!table {
  display: table !important;
}
.table {
  display: table;
}
.\!grid {
  display: grid !important;
}
.grid {
  display: grid;
}
.inline-grid {
  display: inline-grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.aspect-\[16\/10\] {
  aspect-ratio: 16/10;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}
.size-3 {
  width: 0.75rem;
  height: 0.75rem;
}
.size-3\.5 {
  width: 0.875rem;
  height: 0.875rem;
}
.size-4 {
  width: 1rem;
  height: 1rem;
}
.size-5 {
  width: 1.25rem;
  height: 1.25rem;
}
.size-6 {
  width: 1.5rem;
  height: 1.5rem;
}
.size-7 {
  width: 1.75rem;
  height: 1.75rem;
}
.size-8 {
  width: 2rem;
  height: 2rem;
}
.size-\[--cell-size\] {
  width: var(--cell-size);
  height: var(--cell-size);
}
.\!h-5 {
  height: 1.25rem !important;
}
.\!h-auto {
  height: auto !important;
}
.\!h-full {
  height: 100% !important;
}
.h-0 {
  height: 0px;
}
.h-1 {
  height: 0.25rem;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.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-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[--cell-size\] {
  height: var(--cell-size);
}
.h-\[10px\] {
  height: 10px;
}
.h-\[11px\] {
  height: 11px;
}
.h-\[120px\] {
  height: 120px;
}
.h-\[12px\] {
  height: 12px;
}
.h-\[13px\] {
  height: 13px;
}
.h-\[140px\] {
  height: 140px;
}
.h-\[14px\] {
  height: 14px;
}
.h-\[150px\] {
  height: 150px;
}
.h-\[16px\] {
  height: 16px;
}
.h-\[180px\] {
  height: 180px;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[1px\] {
  height: 1px;
}
.h-\[200px\] {
  height: 200px;
}
.h-\[220px\] {
  height: 220px;
}
.h-\[22px\] {
  height: 22px;
}
.h-\[24px\] {
  height: 24px;
}
.h-\[250px\] {
  height: 250px;
}
.h-\[26px\] {
  height: 26px;
}
.h-\[280px\] {
  height: 280px;
}
.h-\[28px\] {
  height: 28px;
}
.h-\[2px\] {
  height: 2px;
}
.h-\[30px\] {
  height: 30px;
}
.h-\[32px\] {
  height: 32px;
}
.h-\[34px\] {
  height: 34px;
}
.h-\[360px\] {
  height: 360px;
}
.h-\[38px\] {
  height: 38px;
}
.h-\[3px\] {
  height: 3px;
}
.h-\[48px\] {
  height: 48px;
}
.h-\[56px\] {
  height: 56px;
}
.h-\[5px\] {
  height: 5px;
}
.h-\[60px\] {
  height: 60px;
}
.h-\[6px\] {
  height: 6px;
}
.h-\[70\%\] {
  height: 70%;
}
.h-\[70px\] {
  height: 70px;
}
.h-\[70vh\] {
  height: 70vh;
}
.h-\[72px\] {
  height: 72px;
}
.h-\[80\%\] {
  height: 80%;
}
.h-\[85vh\] {
  height: 85vh;
}
.h-\[8px\] {
  height: 8px;
}
.h-\[9px\] {
  height: 9px;
}
.h-\[var\(--radix-select-trigger-height\)\] {
  height: var(--radix-select-trigger-height);
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.h-screen {
  height: 100vh;
}
.max-h-0 {
  max-height: 0px;
}
.max-h-48 {
  max-height: 12rem;
}
.max-h-56 {
  max-height: 14rem;
}
.max-h-72 {
  max-height: 18rem;
}
.max-h-96 {
  max-height: 24rem;
}
.max-h-\[--radix-context-menu-content-available-height\] {
  max-height: var(--radix-context-menu-content-available-height);
}
.max-h-\[100px\] {
  max-height: 100px;
}
.max-h-\[2000px\] {
  max-height: 2000px;
}
.max-h-\[200px\] {
  max-height: 200px;
}
.max-h-\[240px\] {
  max-height: 240px;
}
.max-h-\[260px\] {
  max-height: 260px;
}
.max-h-\[280px\] {
  max-height: 280px;
}
.max-h-\[300px\] {
  max-height: 300px;
}
.max-h-\[320px\] {
  max-height: 320px;
}
.max-h-\[350px\] {
  max-height: 350px;
}
.max-h-\[360px\] {
  max-height: 360px;
}
.max-h-\[400px\] {
  max-height: 400px;
}
.max-h-\[440px\] {
  max-height: 440px;
}
.max-h-\[460px\] {
  max-height: 460px;
}
.max-h-\[500px\] {
  max-height: 500px;
}
.max-h-\[60vh\] {
  max-height: 60vh;
}
.max-h-\[70vh\] {
  max-height: 70vh;
}
.max-h-\[750px\] {
  max-height: 750px;
}
.max-h-\[80vh\] {
  max-height: 80vh;
}
.max-h-\[82vh\] {
  max-height: 82vh;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.max-h-\[calc\(100vh-160px\)\] {
  max-height: calc(100vh - 160px);
}
.max-h-\[min\(72vh\2c 640px\)\] {
  max-height: min(72vh, 640px);
}
.max-h-\[min\(92vh\2c 720px\)\] {
  max-height: min(92vh, 720px);
}
.max-h-\[min\(92vh\2c 780px\)\] {
  max-height: min(92vh, 780px);
}
.\!min-h-\[120px\] {
  min-height: 120px !important;
}
.\!min-h-\[40px\] {
  min-height: 40px !important;
}
.\!min-h-\[96px\] {
  min-height: 96px !important;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-10 {
  min-height: 2.5rem;
}
.min-h-11 {
  min-height: 2.75rem;
}
.min-h-20 {
  min-height: 5rem;
}
.min-h-24 {
  min-height: 6rem;
}
.min-h-7 {
  min-height: 1.75rem;
}
.min-h-8 {
  min-height: 2rem;
}
.min-h-9 {
  min-height: 2.25rem;
}
.min-h-\[104px\] {
  min-height: 104px;
}
.min-h-\[120px\] {
  min-height: 120px;
}
.min-h-\[160px\] {
  min-height: 160px;
}
.min-h-\[180px\] {
  min-height: 180px;
}
.min-h-\[200px\] {
  min-height: 200px;
}
.min-h-\[24px\] {
  min-height: 24px;
}
.min-h-\[300px\] {
  min-height: 300px;
}
.min-h-\[36px\] {
  min-height: 36px;
}
.min-h-\[38px\] {
  min-height: 38px;
}
.min-h-\[400px\] {
  min-height: 400px;
}
.min-h-\[40px\] {
  min-height: 40px;
}
.min-h-\[42px\] {
  min-height: 42px;
}
.min-h-\[45vh\] {
  min-height: 45vh;
}
.min-h-\[48px\] {
  min-height: 48px;
}
.min-h-\[50vh\] {
  min-height: 50vh;
}
.min-h-\[80px\] {
  min-height: 80px;
}
.min-h-full {
  min-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.\!w-5 {
  width: 1.25rem !important;
}
.\!w-full {
  width: 100% !important;
}
.w-0\.5 {
  width: 0.125rem;
}
.w-1 {
  width: 0.25rem;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-1\/2 {
  width: 50%;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-3\/4 {
  width: 75%;
}
.w-32 {
  width: 8rem;
}
.w-36 {
  width: 9rem;
}
.w-4 {
  width: 1rem;
}
.w-40 {
  width: 10rem;
}
.w-44 {
  width: 11rem;
}
.w-48 {
  width: 12rem;
}
.w-5 {
  width: 1.25rem;
}
.w-52 {
  width: 13rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-60 {
  width: 15rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[--cell-size\] {
  width: var(--cell-size);
}
.w-\[100px\] {
  width: 100px;
}
.w-\[110px\] {
  width: 110px;
}
.w-\[120px\] {
  width: 120px;
}
.w-\[130px\] {
  width: 130px;
}
.w-\[138px\] {
  width: 138px;
}
.w-\[13px\] {
  width: 13px;
}
.w-\[140px\] {
  width: 140px;
}
.w-\[14px\] {
  width: 14px;
}
.w-\[150px\] {
  width: 150px;
}
.w-\[160px\] {
  width: 160px;
}
.w-\[170px\] {
  width: 170px;
}
.w-\[180px\] {
  width: 180px;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[1px\] {
  width: 1px;
}
.w-\[200px\] {
  width: 200px;
}
.w-\[220px\] {
  width: 220px;
}
.w-\[240px\] {
  width: 240px;
}
.w-\[260px\] {
  width: 260px;
}
.w-\[268px\] {
  width: 268px;
}
.w-\[26px\] {
  width: 26px;
}
.w-\[28\%\] {
  width: 28%;
}
.w-\[280px\] {
  width: 280px;
}
.w-\[28px\] {
  width: 28px;
}
.w-\[296px\] {
  width: 296px;
}
.w-\[2px\] {
  width: 2px;
}
.w-\[300px\] {
  width: 300px;
}
.w-\[30px\] {
  width: 30px;
}
.w-\[320px\] {
  width: 320px;
}
.w-\[340px\] {
  width: 340px;
}
.w-\[35\%\] {
  width: 35%;
}
.w-\[360px\] {
  width: 360px;
}
.w-\[3px\] {
  width: 3px;
}
.w-\[40px\] {
  width: 40px;
}
.w-\[42px\] {
  width: 42px;
}
.w-\[44px\] {
  width: 44px;
}
.w-\[460px\] {
  width: 460px;
}
.w-\[46px\] {
  width: 46px;
}
.w-\[480px\] {
  width: 480px;
}
.w-\[48px\] {
  width: 48px;
}
.w-\[50\%\] {
  width: 50%;
}
.w-\[50px\] {
  width: 50px;
}
.w-\[52px\] {
  width: 52px;
}
.w-\[54px\] {
  width: 54px;
}
.w-\[560px\] {
  width: 560px;
}
.w-\[56px\] {
  width: 56px;
}
.w-\[5px\] {
  width: 5px;
}
.w-\[60\%\] {
  width: 60%;
}
.w-\[60px\] {
  width: 60px;
}
.w-\[62\%\] {
  width: 62%;
}
.w-\[640px\] {
  width: 640px;
}
.w-\[64px\] {
  width: 64px;
}
.w-\[6px\] {
  width: 6px;
}
.w-\[70\%\] {
  width: 70%;
}
.w-\[70px\] {
  width: 70px;
}
.w-\[72px\] {
  width: 72px;
}
.w-\[75px\] {
  width: 75px;
}
.w-\[80px\] {
  width: 80px;
}
.w-\[86px\] {
  width: 86px;
}
.w-\[88\%\] {
  width: 88%;
}
.w-\[88px\] {
  width: 88px;
}
.w-\[90px\] {
  width: 90px;
}
.w-\[90vw\] {
  width: 90vw;
}
.w-\[96px\] {
  width: 96px;
}
.w-\[calc\(100\%-1\.5rem\)\] {
  width: calc(100% - 1.5rem);
}
.w-\[min\(92vw\2c 460px\)\] {
  width: min(92vw, 460px);
}
.w-\[min\(92vw\2c 720px\)\] {
  width: min(92vw, 720px);
}
.w-\[var\(--radix-dropdown-menu-trigger-width\)\] {
  width: var(--radix-dropdown-menu-trigger-width);
}
.w-\[var\(--width\2c 360px\)\] {
  width: var(--width,360px);
}
.w-auto {
  width: auto;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-10 {
  min-width: 2.5rem;
}
.min-w-11 {
  min-width: 2.75rem;
}
.min-w-4 {
  min-width: 1rem;
}
.min-w-5 {
  min-width: 1.25rem;
}
.min-w-9 {
  min-width: 2.25rem;
}
.min-w-\[--cell-size\] {
  min-width: var(--cell-size);
}
.min-w-\[100px\] {
  min-width: 100px;
}
.min-w-\[10rem\] {
  min-width: 10rem;
}
.min-w-\[1100px\] {
  min-width: 1100px;
}
.min-w-\[110px\] {
  min-width: 110px;
}
.min-w-\[120px\] {
  min-width: 120px;
}
.min-w-\[12px\] {
  min-width: 12px;
}
.min-w-\[12rem\] {
  min-width: 12rem;
}
.min-w-\[132px\] {
  min-width: 132px;
}
.min-w-\[13px\] {
  min-width: 13px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.min-w-\[14px\] {
  min-width: 14px;
}
.min-w-\[150px\] {
  min-width: 150px;
}
.min-w-\[160px\] {
  min-width: 160px;
}
.min-w-\[170px\] {
  min-width: 170px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[18px\] {
  min-width: 18px;
}
.min-w-\[200px\] {
  min-width: 200px;
}
.min-w-\[20px\] {
  min-width: 20px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[240px\] {
  min-width: 240px;
}
.min-w-\[260px\] {
  min-width: 260px;
}
.min-w-\[28px\] {
  min-width: 28px;
}
.min-w-\[320px\] {
  min-width: 320px;
}
.min-w-\[32px\] {
  min-width: 32px;
}
.min-w-\[34px\] {
  min-width: 34px;
}
.min-w-\[3em\] {
  min-width: 3em;
}
.min-w-\[48px\] {
  min-width: 48px;
}
.min-w-\[58px\] {
  min-width: 58px;
}
.min-w-\[60px\] {
  min-width: 60px;
}
.min-w-\[64px\] {
  min-width: 64px;
}
.min-w-\[80px\] {
  min-width: 80px;
}
.min-w-\[8rem\] {
  min-width: 8rem;
}
.min-w-\[90px\] {
  min-width: 90px;
}
.min-w-\[var\(--radix-select-trigger-width\)\] {
  min-width: var(--radix-select-trigger-width);
}
.min-w-max {
  min-width: -moz-max-content;
  min-width: max-content;
}
.\!max-w-\[620px\] {
  max-width: 620px !important;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[1000px\] {
  max-width: 1000px;
}
.max-w-\[1100px\] {
  max-width: 1100px;
}
.max-w-\[110px\] {
  max-width: 110px;
}
.max-w-\[112px\] {
  max-width: 112px;
}
.max-w-\[1160px\] {
  max-width: 1160px;
}
.max-w-\[1200px\] {
  max-width: 1200px;
}
.max-w-\[1240px\] {
  max-width: 1240px;
}
.max-w-\[140px\] {
  max-width: 140px;
}
.max-w-\[160px\] {
  max-width: 160px;
}
.max-w-\[180px\] {
  max-width: 180px;
}
.max-w-\[200px\] {
  max-width: 200px;
}
.max-w-\[220px\] {
  max-width: 220px;
}
.max-w-\[240px\] {
  max-width: 240px;
}
.max-w-\[260px\] {
  max-width: 260px;
}
.max-w-\[280px\] {
  max-width: 280px;
}
.max-w-\[28px\] {
  max-width: 28px;
}
.max-w-\[300px\] {
  max-width: 300px;
}
.max-w-\[320px\] {
  max-width: 320px;
}
.max-w-\[380px\] {
  max-width: 380px;
}
.max-w-\[400px\] {
  max-width: 400px;
}
.max-w-\[420px\] {
  max-width: 420px;
}
.max-w-\[440px\] {
  max-width: 440px;
}
.max-w-\[448px\] {
  max-width: 448px;
}
.max-w-\[460px\] {
  max-width: 460px;
}
.max-w-\[480px\] {
  max-width: 480px;
}
.max-w-\[500px\] {
  max-width: 500px;
}
.max-w-\[520px\] {
  max-width: 520px;
}
.max-w-\[580px\] {
  max-width: 580px;
}
.max-w-\[60\%\] {
  max-width: 60%;
}
.max-w-\[600px\] {
  max-width: 600px;
}
.max-w-\[620px\] {
  max-width: 620px;
}
.max-w-\[760px\] {
  max-width: 760px;
}
.max-w-\[80\%\] {
  max-width: 80%;
}
.max-w-\[85\%\] {
  max-width: 85%;
}
.max-w-\[860px\] {
  max-width: 860px;
}
.max-w-\[900px\] {
  max-width: 900px;
}
.max-w-\[95vw\] {
  max-width: 95vw;
}
.max-w-\[960px\] {
  max-width: 960px;
}
.max-w-\[calc\(100\%-2rem\)\] {
  max-width: calc(100% - 2rem);
}
.max-w-\[min\(92vw\2c 720px\)\] {
  max-width: min(92vw, 720px);
}
.max-w-\[min\(96vw\2c 720px\)\] {
  max-width: min(96vw, 720px);
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-none {
  max-width: none;
}
.max-w-screen-xl {
  max-width: 1280px;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-\[0_0_200px\] {
  flex: 0 0 200px;
}
.flex-\[2\] {
  flex: 2;
}
.flex-auto {
  flex: 1 1 auto;
}
.flex-none {
  flex: none;
}
.flex-shrink {
  flex-shrink: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.table-fixed {
  table-layout: fixed;
}
.caption-bottom {
  caption-side: bottom;
}
.border-collapse {
  border-collapse: collapse;
}
.border-separate {
  border-collapse: separate;
}
.border-spacing-0 {
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 0px;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
}
.origin-\[--radix-context-menu-content-transform-origin\] {
  transform-origin: var(--radix-context-menu-content-transform-origin);
}
.origin-\[--radix-hover-card-content-transform-origin\] {
  transform-origin: var(--radix-hover-card-content-transform-origin);
}
.origin-\[--radix-tooltip-content-transform-origin\] {
  transform-origin: var(--radix-tooltip-content-transform-origin);
}
.origin-left {
  transform-origin: left;
}
.-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-x-\[-50\%\] {
  --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-\[-50\%\] {
  --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));
}
.-rotate-90 {
  --tw-rotate: -90deg;
  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-0 {
  --tw-rotate: 0deg;
  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));
}
.rotate-90 {
  --tw-rotate: 90deg;
  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-\[1\.03\] {
  --tw-scale-x: 1.03;
  --tw-scale-y: 1.03;
  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 ping {

  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@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-col-resize {
  cursor: col-resize;
}
.cursor-crosshair {
  cursor: crosshair;
}
.cursor-default {
  cursor: default;
}
.cursor-grab {
  cursor: grab;
}
.cursor-help {
  cursor: help;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-text {
  cursor: text;
}
.touch-none {
  touch-action: none;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.select-text {
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.select-all {
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}
.resize-none {
  resize: none;
}
.resize-y {
  resize: vertical;
}
.resize {
  resize: both;
}
.scroll-mt-\[112px\] {
  scroll-margin-top: 112px;
}
.list-none {
  list-style-type: none;
}
.\!grid-cols-\[30fr_70fr\] {
  grid-template-columns: 30fr 70fr !important;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12 {
  grid-template-columns: repeat(12, 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));
}
.grid-cols-\[1\.2fr_0\.8fr\] {
  grid-template-columns: 1.2fr 0.8fr;
}
.grid-cols-\[1\.2fr_0\.8fr_1fr_1fr_1fr\] {
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1fr;
}
.grid-cols-\[140px_1fr\] {
  grid-template-columns: 140px 1fr;
}
.grid-cols-\[1fr_auto_1fr\] {
  grid-template-columns: 1fr auto 1fr;
}
.grid-cols-\[60px_1fr_56px\] {
  grid-template-columns: 60px 1fr 56px;
}
.grid-cols-\[60px_60px_1fr_50px_60px\] {
  grid-template-columns: 60px 60px 1fr 50px 60px;
}
.grid-cols-\[68px_1fr_auto\] {
  grid-template-columns: 68px 1fr auto;
}
.grid-cols-\[80px_1fr_1fr_50px\] {
  grid-template-columns: 80px 1fr 1fr 50px;
}
.grid-cols-\[80px_1fr_44px\] {
  grid-template-columns: 80px 1fr 44px;
}
.grid-cols-\[96px_1fr_72px\] {
  grid-template-columns: 96px 1fr 72px;
}
.grid-cols-\[minmax\(0\2c 1\.6fr\)_minmax\(280px\2c 0\.9fr\)\] {
  grid-template-columns: minmax(0,1.6fr) minmax(280px,0.9fr);
}
.grid-cols-\[minmax\(0\2c 1fr\)_auto_minmax\(0\2c 1fr\)\] {
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
}
.grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1fr\)_minmax\(0\2c 1fr\)\] {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
}
.grid-cols-\[repeat\(auto-fill\2c minmax\(240px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
}
.grid-cols-\[repeat\(auto-fill\2c minmax\(290px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(290px,1fr));
}
.grid-cols-\[repeat\(auto-fit\2c minmax\(120px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
}
.flex-row {
  flex-direction: row;
}
.\!flex-col {
  flex-direction: column !important;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.place-items-center {
  place-items: center;
}
.content-between {
  align-content: space-between;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.\!items-center {
  align-items: center !important;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.\!items-stretch {
  align-items: stretch !important;
}
.items-stretch {
  align-items: stretch;
}
.\!justify-start {
  justify-content: flex-start !important;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.\!gap-0 {
  gap: 0px !important;
}
.gap-0 {
  gap: 0px;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-2\.5 {
  gap: 0.625rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-3\.5 {
  gap: 0.875rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-\[10px\] {
  gap: 10px;
}
.gap-\[12px\] {
  gap: 12px;
}
.gap-\[18px\] {
  gap: 18px;
}
.gap-\[1px\] {
  gap: 1px;
}
.gap-\[3px\] {
  gap: 3px;
}
.gap-\[8px\] {
  gap: 8px;
}
.gap-px {
  gap: 1px;
}
.gap-x-2 {
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-x-5 {
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
}
.gap-x-6 {
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
}
.gap-x-7 {
  -moz-column-gap: 1.75rem;
       column-gap: 1.75rem;
}
.gap-x-px {
  -moz-column-gap: 1px;
       column-gap: 1px;
}
.gap-y-0\.5 {
  row-gap: 0.125rem;
}
.gap-y-2 {
  row-gap: 0.5rem;
}
.gap-y-px {
  row-gap: 1px;
}
.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-y-0 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-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-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * 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-2\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * 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));
}
.divide-x > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-x-reverse: 0;
  border-right-width: calc(1px * var(--tw-divide-x-reverse));
  border-left-width: calc(1px * calc(1 - var(--tw-divide-x-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-border > :not([hidden]) ~ :not([hidden]) {
  border-color: hsl(var(--border));
}
.divide-border\/40 > :not([hidden]) ~ :not([hidden]) {
  border-color: hsl(var(--border) / 0.4);
}
.divide-border\/60 > :not([hidden]) ~ :not([hidden]) {
  border-color: hsl(var(--border) / 0.6);
}
.self-start {
  align-self: flex-start;
}
.self-center {
  align-self: center;
}
.self-stretch {
  align-self: stretch;
}
.justify-self-start {
  justify-self: start;
}
.justify-self-end {
  justify-self: end;
}
.justify-self-center {
  justify-self: center;
}
.overflow-auto {
  overflow: auto;
}
.\!overflow-hidden {
  overflow: hidden !important;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
.scroll-smooth {
  scroll-behavior: smooth;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-ellipsis {
  text-overflow: ellipsis;
}
.\!whitespace-normal {
  white-space: normal !important;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre {
  white-space: pre;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.text-balance {
  text-wrap: balance;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.\!rounded-md {
  border-radius: calc(var(--radius) - 1px) !important;
}
.\!rounded-none {
  border-radius: 0px !important;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-\[28px\] {
  border-radius: 28px;
}
.rounded-\[2px\] {
  border-radius: 2px;
}
.rounded-\[4px\] {
  border-radius: 4px;
}
.rounded-\[calc\(var\(--radius\)-5px\)\] {
  border-radius: calc(var(--radius) - 5px);
}
.rounded-\[inherit\] {
  border-radius: inherit;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 1px);
}
.rounded-none {
  border-radius: 0px;
}
.rounded-sm {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-l-md {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-bottom-left-radius: calc(var(--radius) - 1px);
}
.rounded-l-sm {
  border-top-left-radius: calc(var(--radius) - 2px);
  border-bottom-left-radius: calc(var(--radius) - 2px);
}
.rounded-r-full {
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}
.rounded-r-md {
  border-top-right-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}
.rounded-r-sm {
  border-top-right-radius: calc(var(--radius) - 2px);
  border-bottom-right-radius: calc(var(--radius) - 2px);
}
.rounded-t-\[inherit\] {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.rounded-t-md {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}
.\!border {
  border-width: 1px !important;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-x {
  border-left-width: 1px;
  border-right-width: 1px;
}
.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-0 {
  border-bottom-width: 0px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-r {
  border-right-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.\!border-solid {
  border-style: solid !important;
}
.border-dashed {
  border-style: dashed;
}
.border-none {
  border-style: none;
}
.\!border-\[\#e5e5e5\] {
  --tw-border-opacity: 1 !important;
  border-color: rgb(229 229 229 / var(--tw-border-opacity, 1)) !important;
}
.\!border-border {
  border-color: hsl(var(--border)) !important;
}
.\!border-muted-foreground\/40 {
  border-color: hsl(var(--muted-foreground) / 0.4) !important;
}
.border-\[color-mix\(in_srgb\2c hsl\(var\(--brand\)\)_25\%\2c hsl\(var\(--border\)\)\)\] {
  border-color: color-mix(in srgb,hsl(var(--brand)) 25%,hsl(var(--border)));
}
.border-\[hsl\(var\(--primary\)\)\] {
  border-color: hsl(var(--primary));
}
.border-\[rgba\(90\2c 154\2c 110\2c 0\.3\)\] {
  border-color: rgba(90,154,110,0.3);
}
.border-amber-400 {
  --tw-border-opacity: 1;
  border-color: rgb(251 191 36 / var(--tw-border-opacity, 1));
}
.border-amber-500\/20 {
  border-color: rgb(245 158 11 / 0.2);
}
.border-amber-500\/30 {
  border-color: rgb(245 158 11 / 0.3);
}
.border-amber-500\/40 {
  border-color: rgb(245 158 11 / 0.4);
}
.border-background {
  border-color: hsl(var(--background));
}
.border-blue-500\/15 {
  border-color: rgb(59 130 246 / 0.15);
}
.border-border {
  border-color: hsl(var(--border));
}
.border-border\/10 {
  border-color: hsl(var(--border) / 0.1);
}
.border-border\/20 {
  border-color: hsl(var(--border) / 0.2);
}
.border-border\/30 {
  border-color: hsl(var(--border) / 0.3);
}
.border-border\/40 {
  border-color: hsl(var(--border) / 0.4);
}
.border-border\/50 {
  border-color: hsl(var(--border) / 0.5);
}
.border-border\/55 {
  border-color: hsl(var(--border) / 0.55);
}
.border-border\/60 {
  border-color: hsl(var(--border) / 0.6);
}
.border-border\/80 {
  border-color: hsl(var(--border) / 0.8);
}
.border-brand {
  border-color: hsl(var(--brand));
}
.border-brand-strong\/40 {
  border-color: hsl(var(--brand-strong) / 0.4);
}
.border-brand\/20 {
  border-color: hsl(var(--brand) / 0.2);
}
.border-brand\/25 {
  border-color: hsl(var(--brand) / 0.25);
}
.border-brand\/30 {
  border-color: hsl(var(--brand) / 0.3);
}
.border-brand\/40 {
  border-color: hsl(var(--brand) / 0.4);
}
.border-brand\/50 {
  border-color: hsl(var(--brand) / 0.5);
}
.border-brand\/60 {
  border-color: hsl(var(--brand) / 0.6);
}
.border-destructive {
  border-color: hsl(var(--destructive));
}
.border-destructive\/20 {
  border-color: hsl(var(--destructive) / 0.2);
}
.border-destructive\/30 {
  border-color: hsl(var(--destructive) / 0.3);
}
.border-destructive\/50 {
  border-color: hsl(var(--destructive) / 0.5);
}
.border-foreground {
  border-color: hsl(var(--foreground));
}
.border-foreground\/30 {
  border-color: hsl(var(--foreground) / 0.3);
}
.border-foreground\/\[0\.08\] {
  border-color: hsl(var(--foreground) / 0.08);
}
.border-indigo-400 {
  --tw-border-opacity: 1;
  border-color: rgb(129 140 248 / var(--tw-border-opacity, 1));
}
.border-indigo-500\/20 {
  border-color: rgb(99 102 241 / 0.2);
}
.border-input {
  border-color: hsl(var(--input));
}
.border-muted-foreground\/30 {
  border-color: hsl(var(--muted-foreground) / 0.3);
}
.border-muted-foreground\/40 {
  border-color: hsl(var(--muted-foreground) / 0.4);
}
.border-negative {
  border-color: hsl(var(--negative));
}
.border-negative\/20 {
  border-color: hsl(var(--negative) / 0.2);
}
.border-negative\/25 {
  border-color: hsl(var(--negative) / 0.25);
}
.border-negative\/30 {
  border-color: hsl(var(--negative) / 0.3);
}
.border-negative\/40 {
  border-color: hsl(var(--negative) / 0.4);
}
.border-positive {
  border-color: hsl(var(--positive));
}
.border-positive\/20 {
  border-color: hsl(var(--positive) / 0.2);
}
.border-positive\/30 {
  border-color: hsl(var(--positive) / 0.3);
}
.border-positive\/40 {
  border-color: hsl(var(--positive) / 0.4);
}
.border-primary {
  border-color: hsl(var(--primary));
}
.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}
.border-red-500\/10 {
  border-color: rgb(239 68 68 / 0.1);
}
.border-ring {
  border-color: hsl(var(--ring));
}
.border-transparent {
  border-color: transparent;
}
.border-b-primary {
  border-bottom-color: hsl(var(--primary));
}
.border-b-transparent {
  border-bottom-color: transparent;
}
.border-l-transparent {
  border-left-color: transparent;
}
.border-t-brand {
  border-top-color: hsl(var(--brand));
}
.border-t-transparent {
  border-top-color: transparent;
}
.\!bg-accent\/10 {
  background-color: hsl(var(--accent) / 0.1) !important;
}
.\!bg-transparent {
  background-color: transparent !important;
}
.\!bg-white {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)) !important;
}
.bg-\[\#000\] {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-\[color-mix\(in_srgb\2c hsl\(var\(--brand\)\)_12\%\2c hsl\(var\(--card\)\)\)\] {
  background-color: color-mix(in srgb,hsl(var(--brand)) 12%,hsl(var(--card)));
}
.bg-\[hsl\(var\(--background\)\)\] {
  background-color: hsl(var(--background));
}
.bg-\[hsl\(var\(--border\)\)\] {
  background-color: hsl(var(--border));
}
.bg-\[hsl\(var\(--card\)\)\] {
  background-color: hsl(var(--card));
}
.bg-\[hsl\(var\(--foreground\)\)\] {
  background-color: hsl(var(--foreground));
}
.bg-\[hsl\(var\(--primary\)\)\] {
  background-color: hsl(var(--primary));
}
.bg-\[hsl\(var\(--secondary-accent\)\)\] {
  background-color: hsl(var(--secondary-accent));
}
.bg-\[rgba\(245\2c 177\2c 102\2c 0\.10\)\] {
  background-color: rgba(245,177,102,0.10);
}
.bg-\[rgba\(90\2c 154\2c 110\2c 0\.15\)\] {
  background-color: rgba(90,154,110,0.15);
}
.bg-accent {
  background-color: hsl(var(--accent));
}
.bg-accent\/10 {
  background-color: hsl(var(--accent) / 0.1);
}
.bg-accent\/20 {
  background-color: hsl(var(--accent) / 0.2);
}
.bg-accent\/30 {
  background-color: hsl(var(--accent) / 0.3);
}
.bg-accent\/40 {
  background-color: hsl(var(--accent) / 0.4);
}
.bg-accent\/50 {
  background-color: hsl(var(--accent) / 0.5);
}
.bg-accent\/60 {
  background-color: hsl(var(--accent) / 0.6);
}
.bg-accent\/70 {
  background-color: hsl(var(--accent) / 0.7);
}
.bg-amber-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(252 211 77 / var(--tw-bg-opacity, 1));
}
.bg-amber-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
}
.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-amber-500\/10 {
  background-color: rgb(245 158 11 / 0.1);
}
.bg-amber-500\/15 {
  background-color: rgb(245 158 11 / 0.15);
}
.bg-amber-500\/5 {
  background-color: rgb(245 158 11 / 0.05);
}
.bg-amber-500\/60 {
  background-color: rgb(245 158 11 / 0.6);
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-background\/30 {
  background-color: hsl(var(--background) / 0.3);
}
.bg-background\/40 {
  background-color: hsl(var(--background) / 0.4);
}
.bg-background\/50 {
  background-color: hsl(var(--background) / 0.5);
}
.bg-background\/55 {
  background-color: hsl(var(--background) / 0.55);
}
.bg-background\/60 {
  background-color: hsl(var(--background) / 0.6);
}
.bg-background\/70 {
  background-color: hsl(var(--background) / 0.7);
}
.bg-background\/80 {
  background-color: hsl(var(--background) / 0.8);
}
.bg-background\/90 {
  background-color: hsl(var(--background) / 0.9);
}
.bg-background\/95 {
  background-color: hsl(var(--background) / 0.95);
}
.bg-blue-500\/10 {
  background-color: rgb(59 130 246 / 0.1);
}
.bg-blue-500\/5 {
  background-color: rgb(59 130 246 / 0.05);
}
.bg-border {
  background-color: hsl(var(--border));
}
.bg-border\/30 {
  background-color: hsl(var(--border) / 0.3);
}
.bg-border\/40 {
  background-color: hsl(var(--border) / 0.4);
}
.bg-border\/50 {
  background-color: hsl(var(--border) / 0.5);
}
.bg-border\/60 {
  background-color: hsl(var(--border) / 0.6);
}
.bg-border\/70 {
  background-color: hsl(var(--border) / 0.7);
}
.bg-brand {
  background-color: hsl(var(--brand));
}
.bg-brand\/10 {
  background-color: hsl(var(--brand) / 0.1);
}
.bg-brand\/15 {
  background-color: hsl(var(--brand) / 0.15);
}
.bg-brand\/20 {
  background-color: hsl(var(--brand) / 0.2);
}
.bg-brand\/5 {
  background-color: hsl(var(--brand) / 0.05);
}
.bg-brand\/\[0\.12\] {
  background-color: hsl(var(--brand) / 0.12);
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-card\/20 {
  background-color: hsl(var(--card) / 0.2);
}
.bg-card\/30 {
  background-color: hsl(var(--card) / 0.3);
}
.bg-card\/40 {
  background-color: hsl(var(--card) / 0.4);
}
.bg-card\/50 {
  background-color: hsl(var(--card) / 0.5);
}
.bg-card\/60 {
  background-color: hsl(var(--card) / 0.6);
}
.bg-card\/80 {
  background-color: hsl(var(--card) / 0.8);
}
.bg-card\/95 {
  background-color: hsl(var(--card) / 0.95);
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-destructive\/10 {
  background-color: hsl(var(--destructive) / 0.1);
}
.bg-destructive\/15 {
  background-color: hsl(var(--destructive) / 0.15);
}
.bg-destructive\/5 {
  background-color: hsl(var(--destructive) / 0.05);
}
.bg-destructive\/90 {
  background-color: hsl(var(--destructive) / 0.9);
}
.bg-emerald-500\/15 {
  background-color: rgb(16 185 129 / 0.15);
}
.bg-foreground {
  background-color: hsl(var(--foreground));
}
.bg-foreground\/10 {
  background-color: hsl(var(--foreground) / 0.1);
}
.bg-foreground\/60 {
  background-color: hsl(var(--foreground) / 0.6);
}
.bg-foreground\/70 {
  background-color: hsl(var(--foreground) / 0.7);
}
.bg-foreground\/80 {
  background-color: hsl(var(--foreground) / 0.8);
}
.bg-foreground\/\[0\.04\] {
  background-color: hsl(var(--foreground) / 0.04);
}
.bg-foreground\/\[0\.06\] {
  background-color: hsl(var(--foreground) / 0.06);
}
.bg-foreground\/\[0\.65\] {
  background-color: hsl(var(--foreground) / 0.65);
}
.bg-hover {
  background-color: hsl(var(--hover));
}
.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}
.bg-indigo-500\/10 {
  background-color: rgb(99 102 241 / 0.1);
}
.bg-input {
  background-color: hsl(var(--input));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.bg-muted-foreground {
  background-color: hsl(var(--muted-foreground));
}
.bg-muted-foreground\/40 {
  background-color: hsl(var(--muted-foreground) / 0.4);
}
.bg-muted\/10 {
  background-color: hsl(var(--muted) / 0.1);
}
.bg-muted\/15 {
  background-color: hsl(var(--muted) / 0.15);
}
.bg-muted\/20 {
  background-color: hsl(var(--muted) / 0.2);
}
.bg-muted\/25 {
  background-color: hsl(var(--muted) / 0.25);
}
.bg-muted\/30 {
  background-color: hsl(var(--muted) / 0.3);
}
.bg-muted\/35 {
  background-color: hsl(var(--muted) / 0.35);
}
.bg-muted\/40 {
  background-color: hsl(var(--muted) / 0.4);
}
.bg-muted\/50 {
  background-color: hsl(var(--muted) / 0.5);
}
.bg-muted\/60 {
  background-color: hsl(var(--muted) / 0.6);
}
.bg-negative {
  background-color: hsl(var(--negative));
}
.bg-negative\/10 {
  background-color: hsl(var(--negative) / 0.1);
}
.bg-negative\/15 {
  background-color: hsl(var(--negative) / 0.15);
}
.bg-negative\/20 {
  background-color: hsl(var(--negative) / 0.2);
}
.bg-negative\/30 {
  background-color: hsl(var(--negative) / 0.3);
}
.bg-negative\/5 {
  background-color: hsl(var(--negative) / 0.05);
}
.bg-negative\/60 {
  background-color: hsl(var(--negative) / 0.6);
}
.bg-orange-500\/15 {
  background-color: rgb(249 115 22 / 0.15);
}
.bg-popover {
  background-color: hsl(var(--popover));
}
.bg-positive {
  background-color: hsl(var(--positive));
}
.bg-positive\/10 {
  background-color: hsl(var(--positive) / 0.1);
}
.bg-positive\/15 {
  background-color: hsl(var(--positive) / 0.15);
}
.bg-positive\/20 {
  background-color: hsl(var(--positive) / 0.2);
}
.bg-positive\/30 {
  background-color: hsl(var(--positive) / 0.3);
}
.bg-positive\/5 {
  background-color: hsl(var(--positive) / 0.05);
}
.bg-positive\/60 {
  background-color: hsl(var(--positive) / 0.6);
}
.bg-positive\/70 {
  background-color: hsl(var(--positive) / 0.7);
}
.bg-positive\/90 {
  background-color: hsl(var(--positive) / 0.9);
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}
.bg-primary\/20 {
  background-color: hsl(var(--primary) / 0.2);
}
.bg-primary\/\[0\.06\] {
  background-color: hsl(var(--primary) / 0.06);
}
.bg-primary\/\[0\.07\] {
  background-color: hsl(var(--primary) / 0.07);
}
.bg-red-500\/5 {
  background-color: rgb(239 68 68 / 0.05);
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-rose-500\/15 {
  background-color: rgb(244 63 94 / 0.15);
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.bg-sidebar-accent {
  background-color: hsl(var(--sidebar-accent));
}
.bg-sky-500\/15 {
  background-color: rgb(14 165 233 / 0.15);
}
.bg-transparent {
  background-color: transparent;
}
.bg-violet-500\/15 {
  background-color: rgb(139 92 246 / 0.15);
}
.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}
.bg-white\/95 {
  background-color: rgb(255 255 255 / 0.95);
}
.bg-yellow-500\/10 {
  background-color: rgb(234 179 8 / 0.1);
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-card\/60 {
  --tw-gradient-from: hsl(var(--card) / 0.6) var(--tw-gradient-from-position);
  --tw-gradient-to: hsl(var(--card) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-950\/30 {
  --tw-gradient-from: rgb(2 44 34 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(2 44 34 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-primary {
  --tw-gradient-from: hsl(var(--primary)) var(--tw-gradient-from-position);
  --tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-background {
  --tw-gradient-to: hsl(var(--background) / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background)) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-background {
  --tw-gradient-to: hsl(var(--background)) var(--tw-gradient-to-position);
}
.to-card\/20 {
  --tw-gradient-to: hsl(var(--card) / 0.2) var(--tw-gradient-to-position);
}
.to-chart-2 {
  --tw-gradient-to: hsl(var(--chart-2)) var(--tw-gradient-to-position);
}
.fill-current {
  fill: currentColor;
}
.stroke-background {
  stroke: hsl(var(--background));
}
.stroke-muted-foreground {
  stroke: hsl(var(--muted-foreground));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.\!p-0 {
  padding: 0px !important;
}
.p-0 {
  padding: 0px;
}
.p-0\.5 {
  padding: 0.125rem;
}
.p-1 {
  padding: 0.25rem;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-10 {
  padding: 2.5rem;
}
.p-12 {
  padding: 3rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-3\.5 {
  padding: 0.875rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.p-9 {
  padding: 2.25rem;
}
.p-\[10px_14px\] {
  padding: 10px 14px;
}
.p-\[12px\] {
  padding: 12px;
}
.p-\[12px_18px\] {
  padding: 12px 18px;
}
.p-\[14px\] {
  padding: 14px;
}
.p-\[16px\] {
  padding: 16px;
}
.p-\[16px_14px\] {
  padding: 16px 14px;
}
.p-\[18px\] {
  padding: 18px;
}
.p-\[1px\] {
  padding: 1px;
}
.p-\[30px\] {
  padding: 30px;
}
.p-\[3px_4px\] {
  padding: 3px 4px;
}
.p-\[6px_4px\] {
  padding: 6px 4px;
}
.p-\[7px_14px\] {
  padding: 7px 14px;
}
.\!px-0 {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.\!py-0 {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
.px-0 {
  padding-left: 0px;
  padding-right: 0px;
}
.px-0\.5 {
  padding-left: 0.125rem;
  padding-right: 0.125rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.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-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-7 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.px-\[--cell-size\] {
  padding-left: var(--cell-size);
  padding-right: var(--cell-size);
}
.px-\[10px\] {
  padding-left: 10px;
  padding-right: 10px;
}
.px-\[18px\] {
  padding-left: 18px;
  padding-right: 18px;
}
.px-\[3px\] {
  padding-left: 3px;
  padding-right: 3px;
}
.px-\[6px\] {
  padding-left: 6px;
  padding-right: 6px;
}
.px-\[7px\] {
  padding-left: 7px;
  padding-right: 7px;
}
.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}
.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-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-\[14px\] {
  padding-top: 14px;
  padding-bottom: 14px;
}
.py-\[1px\] {
  padding-top: 1px;
  padding-bottom: 1px;
}
.py-\[2px\] {
  padding-top: 2px;
  padding-bottom: 2px;
}
.py-\[5px\] {
  padding-top: 5px;
  padding-bottom: 5px;
}
.py-\[6px\] {
  padding-top: 6px;
  padding-bottom: 6px;
}
.py-\[7px\] {
  padding-top: 7px;
  padding-bottom: 7px;
}
.py-\[9px\] {
  padding-top: 9px;
  padding-bottom: 9px;
}
.py-px {
  padding-top: 1px;
  padding-bottom: 1px;
}
.\!pt-0 {
  padding-top: 0px !important;
}
.pb-0 {
  padding-bottom: 0px;
}
.pb-0\.5 {
  padding-bottom: 0.125rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-1\.5 {
  padding-bottom: 0.375rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-2\.5 {
  padding-bottom: 0.625rem;
}
.pb-20 {
  padding-bottom: 5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pb-\[120px\] {
  padding-bottom: 120px;
}
.pb-\[2px\] {
  padding-bottom: 2px;
}
.pl-1 {
  padding-left: 0.25rem;
}
.pl-1\.5 {
  padding-left: 0.375rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-2\.5 {
  padding-left: 0.625rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pl-7 {
  padding-left: 1.75rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pl-\[2px\] {
  padding-left: 2px;
}
.pr-0\.5 {
  padding-right: 0.125rem;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-1\.5 {
  padding-right: 0.375rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-2\.5 {
  padding-right: 0.625rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pr-6 {
  padding-right: 1.5rem;
}
.pr-8 {
  padding-right: 2rem;
}
.pr-\[140px\] {
  padding-right: 140px;
}
.pr-\[2px\] {
  padding-right: 2px;
}
.pt-0 {
  padding-top: 0px;
}
.pt-0\.5 {
  padding-top: 0.125rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-1\.5 {
  padding-top: 0.375rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-2\.5 {
  padding-top: 0.625rem;
}
.pt-24 {
  padding-top: 6rem;
}
.pt-28 {
  padding-top: 7rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-3\.5 {
  padding-top: 0.875rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-5 {
  padding-top: 1.25rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pt-\[12px\] {
  padding-top: 12px;
}
.pt-\[3px\] {
  padding-top: 3px;
}
.pt-\[60px\] {
  padding-top: 60px;
}
.\!text-left {
  text-align: left !important;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-middle {
  vertical-align: middle;
}
.font-\[inherit\] {
  font-family: inherit;
}
.font-display {
  font-family: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
}
.font-mono {
  font-family: Geist Mono, JetBrains Mono, SFMono-Regular, Menlo, Consolas, monospace;
}
.font-sans {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-2xs {
  font-size: 9px;
  line-height: 1;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-\[0\.8rem\] {
  font-size: 0.8rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[17px\] {
  font-size: 17px;
}
.text-\[22px\] {
  font-size: 22px;
}
.text-\[28px\] {
  font-size: 28px;
}
.text-\[32px\] {
  font-size: 32px;
}
.text-\[40px\] {
  font-size: 40px;
}
.text-\[64px\] {
  font-size: 64px;
}
.text-\[8px\] {
  font-size: 8px;
}
.text-\[9\.5px\] {
  font-size: 9.5px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-\[clamp\(18px\2c 1\.6vw\2c 22px\)\] {
  font-size: clamp(18px, 1.6vw, 22px);
}
.text-\[clamp\(22px\2c 3\.2vw\2c 34px\)\] {
  font-size: clamp(22px, 3.2vw, 34px);
}
.text-\[clamp\(26px\2c 3vw\2c 38px\)\] {
  font-size: clamp(26px, 3vw, 38px);
}
.text-\[clamp\(28px\2c 4vw\2c 44px\)\] {
  font-size: clamp(28px, 4vw, 44px);
}
.text-\[clamp\(38px\2c 6vw\2c 66px\)\] {
  font-size: clamp(38px, 6vw, 66px);
}
.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-sm\/relaxed {
  font-size: 0.875rem;
  line-height: 1.625;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.\!font-normal {
  font-weight: 400 !important;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.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;
}
.normal-case {
  text-transform: none;
}
.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);
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-\[1\.06\] {
  line-height: 1.06;
}
.leading-\[1\.08\] {
  line-height: 1.08;
}
.leading-\[1\.4\] {
  line-height: 1.4;
}
.leading-\[1\.55\] {
  line-height: 1.55;
}
.leading-\[1\.5\] {
  line-height: 1.5;
}
.leading-\[1\.65\] {
  line-height: 1.65;
}
.leading-\[1\.6\] {
  line-height: 1.6;
}
.leading-\[16px\] {
  line-height: 16px;
}
.leading-none {
  line-height: 1;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-snug {
  line-height: 1.375;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-\[-0\.005em\] {
  letter-spacing: -0.005em;
}
.tracking-\[-0\.01em\] {
  letter-spacing: -0.01em;
}
.tracking-\[-0\.025em\] {
  letter-spacing: -0.025em;
}
.tracking-\[-0\.04em\] {
  letter-spacing: -0.04em;
}
.tracking-\[0\.03em\] {
  letter-spacing: 0.03em;
}
.tracking-\[0\.04em\] {
  letter-spacing: 0.04em;
}
.tracking-\[0\.05em\] {
  letter-spacing: 0.05em;
}
.tracking-\[0\.06em\] {
  letter-spacing: 0.06em;
}
.tracking-\[0\.08em\] {
  letter-spacing: 0.08em;
}
.tracking-\[0\.12em\] {
  letter-spacing: 0.12em;
}
.tracking-\[0\.15em\] {
  letter-spacing: 0.15em;
}
.tracking-\[0\.16em\] {
  letter-spacing: 0.16em;
}
.tracking-\[0\.18em\] {
  letter-spacing: 0.18em;
}
.tracking-\[0\.1em\] {
  letter-spacing: 0.1em;
}
.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}
.tracking-\[0\.3em\] {
  letter-spacing: 0.3em;
}
.tracking-\[0\.5px\] {
  letter-spacing: 0.5px;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.\!text-foreground {
  color: hsl(var(--foreground)) !important;
}
.text-\[\#16A34A\] {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-\[\#71717A\] {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity, 1));
}
.text-\[\#FAFAFA\] {
  --tw-text-opacity: 1;
  color: rgb(250 250 250 / var(--tw-text-opacity, 1));
}
.text-\[hsl\(var\(--brand\)\)\] {
  color: hsl(var(--brand));
}
.text-\[hsl\(var\(--chart-8\)\)\] {
  color: hsl(var(--chart-8));
}
.text-\[hsl\(var\(--foreground\)\)\] {
  color: hsl(var(--foreground));
}
.text-\[hsl\(var\(--muted-foreground\)\)\] {
  color: hsl(var(--muted-foreground));
}
.text-\[hsl\(var\(--negative\)\)\] {
  color: hsl(var(--negative));
}
.text-\[hsl\(var\(--negative\)\)\]\/70 {
  color: hsl(var(--negative) / 0.7);
}
.text-\[hsl\(var\(--positive\)\)\] {
  color: hsl(var(--positive));
}
.text-\[hsl\(var\(--primary\)\)\] {
  color: hsl(var(--primary));
}
.text-\[hsl\(var\(--secondary-accent-foreground\)\)\] {
  color: hsl(var(--secondary-accent-foreground));
}
.text-\[hsl\(var\(--sidebar-primary\)\)\] {
  color: hsl(var(--sidebar-primary));
}
.text-accent {
  color: hsl(var(--accent));
}
.text-accent-foreground {
  color: hsl(var(--accent-foreground));
}
.text-amber-300 {
  --tw-text-opacity: 1;
  color: rgb(252 211 77 / var(--tw-text-opacity, 1));
}
.text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}
.text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}
.text-amber-500\/90 {
  color: rgb(245 158 11 / 0.9);
}
.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.text-background {
  color: hsl(var(--background));
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-brand {
  color: hsl(var(--brand));
}
.text-brand-foreground {
  color: hsl(var(--brand-foreground));
}
.text-brand\/90 {
  color: hsl(var(--brand) / 0.9);
}
.text-card-foreground {
  color: hsl(var(--card-foreground));
}
.text-current {
  color: currentColor;
}
.text-destructive {
  color: hsl(var(--destructive));
}
.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}
.text-destructive\/70 {
  color: hsl(var(--destructive) / 0.7);
}
.text-destructive\/80 {
  color: hsl(var(--destructive) / 0.8);
}
.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-foreground-secondary {
  color: hsl(var(--foreground-secondary));
}
.text-foreground\/30 {
  color: hsl(var(--foreground) / 0.3);
}
.text-foreground\/55 {
  color: hsl(var(--foreground) / 0.55);
}
.text-foreground\/65 {
  color: hsl(var(--foreground) / 0.65);
}
.text-foreground\/70 {
  color: hsl(var(--foreground) / 0.7);
}
.text-foreground\/75 {
  color: hsl(var(--foreground) / 0.75);
}
.text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}
.text-foreground\/85 {
  color: hsl(var(--foreground) / 0.85);
}
.text-foreground\/90 {
  color: hsl(var(--foreground) / 0.9);
}
.text-foreground\/\[0\.15\] {
  color: hsl(var(--foreground) / 0.15);
}
.text-foreground\/\[0\.46\] {
  color: hsl(var(--foreground) / 0.46);
}
.text-hover-foreground {
  color: hsl(var(--hover-foreground));
}
.text-indigo-400 {
  --tw-text-opacity: 1;
  color: rgb(129 140 248 / var(--tw-text-opacity, 1));
}
.text-inherit {
  color: inherit;
}
.text-muted {
  color: hsl(var(--muted));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-muted-foreground\/40 {
  color: hsl(var(--muted-foreground) / 0.4);
}
.text-muted-foreground\/50 {
  color: hsl(var(--muted-foreground) / 0.5);
}
.text-muted-foreground\/55 {
  color: hsl(var(--muted-foreground) / 0.55);
}
.text-muted-foreground\/60 {
  color: hsl(var(--muted-foreground) / 0.6);
}
.text-muted-foreground\/70 {
  color: hsl(var(--muted-foreground) / 0.7);
}
.text-muted-foreground\/80 {
  color: hsl(var(--muted-foreground) / 0.8);
}
.text-negative {
  color: hsl(var(--negative));
}
.text-negative\/80 {
  color: hsl(var(--negative) / 0.8);
}
.text-orange-400 {
  --tw-text-opacity: 1;
  color: rgb(251 146 60 / var(--tw-text-opacity, 1));
}
.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}
.text-popover-foreground {
  color: hsl(var(--popover-foreground));
}
.text-positive {
  color: hsl(var(--positive));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-rose-700 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}
.text-sidebar-foreground {
  color: hsl(var(--sidebar-foreground));
}
.text-sidebar-foreground\/55 {
  color: hsl(var(--sidebar-foreground) / 0.55);
}
.text-sidebar-foreground\/60 {
  color: hsl(var(--sidebar-foreground) / 0.6);
}
.text-sidebar-foreground\/65 {
  color: hsl(var(--sidebar-foreground) / 0.65);
}
.text-sidebar-foreground\/70 {
  color: hsl(var(--sidebar-foreground) / 0.7);
}
.text-sky-700 {
  --tw-text-opacity: 1;
  color: rgb(3 105 161 / var(--tw-text-opacity, 1));
}
.text-transparent {
  color: transparent;
}
.text-violet-700 {
  --tw-text-opacity: 1;
  color: rgb(109 40 217 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 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));
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.no-underline {
  text-decoration-line: none;
}
.decoration-muted-foreground\/40 {
  text-decoration-color: hsl(var(--muted-foreground) / 0.4);
}
.underline-offset-2 {
  text-underline-offset: 2px;
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.underline-offset-\[3px\] {
  text-underline-offset: 3px;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.placeholder-muted::-moz-placeholder {
  color: hsl(var(--muted));
}
.placeholder-muted::placeholder {
  color: hsl(var(--muted));
}
.caret-brand {
  caret-color: hsl(var(--brand));
}
.accent-foreground {
  accent-color: hsl(var(--foreground));
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-35 {
  opacity: 0.35;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-45 {
  opacity: 0.45;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-90 {
  opacity: 0.9;
}
.opacity-\[0\.05\] {
  opacity: 0.05;
}
.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-\[0_12px_48px_rgba\(0\2c 0\2c 0\2c 0\.4\)\] {
  --tw-shadow: 0 12px 48px rgba(0,0,0,0.4);
  --tw-shadow-colored: 0 12px 48px 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-\[0_30px_80px_-20px_rgba\(0\2c 0\2c 0\2c 0\.5\)\] {
  --tw-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  --tw-shadow-colored: 0 30px 80px -20px 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-\[0_30px_80px_-30px_rgba\(0\2c 0\2c 0\2c 0\.7\)\2c 0_1px_0_0_rgba\(255\2c 255\2c 255\2c 0\.04\)_inset\] {
  --tw-shadow: 0 30px 80px -30px rgba(0,0,0,0.7),0 1px 0 0 rgba(255,255,255,0.04) inset;
  --tw-shadow-colored: 0 30px 80px -30px var(--tw-shadow-color), inset 0 1px 0 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-\[0_40px_80px_rgba\(0\2c 0\2c 0\2c 0\.25\)\] {
  --tw-shadow: 0 40px 80px rgba(0,0,0,0.25);
  --tw-shadow-colored: 0 40px 80px 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-\[0_6px_40px_rgba\(0\2c 0\2c 0\2c 0\.32\)\2c 0_1px_0_rgba\(255\2c 255\2c 255\2c 0\.05\)_inset\] {
  --tw-shadow: 0 6px 40px rgba(0,0,0,0.32),0 1px 0 rgba(255,255,255,0.05) inset;
  --tw-shadow-colored: 0 6px 40px var(--tw-shadow-color), inset 0 1px 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-\[0_8px_24px_rgba\(0\2c 0\2c 0\2c 0\.4\)\] {
  --tw-shadow: 0 8px 24px rgba(0,0,0,0.4);
  --tw-shadow-colored: 0 8px 24px 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 rgba(0,0,0,0.3);
  --tw-shadow-colored: 0 10px 15px 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 rgba(0,0,0,0.25);
  --tw-shadow-colored: 0 4px 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);
}
.shadow-none {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  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 3px rgba(0,0,0,0.3);
  --tw-shadow-colored: 0 1px 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);
}
.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);
}
.shadow-xs {
  --tw-shadow: 0 1px 2px rgba(0,0,0,0.2);
  --tw-shadow-colored: 0 1px 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);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.outline-dashed {
  outline-style: dashed;
}
.outline-1 {
  outline-width: 1px;
}
.outline-2 {
  outline-width: 2px;
}
.-outline-offset-1 {
  outline-offset: -1px;
}
.-outline-offset-2 {
  outline-offset: -2px;
}
.outline-primary\/60 {
  outline-color: hsl(var(--primary) / 0.6);
}
.outline-ring {
  outline-color: hsl(var(--ring));
}
.ring {
  --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(3px + 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-0 {
  --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(0px + 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-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-inset {
  --tw-ring-inset: inset;
}
.ring-background {
  --tw-ring-color: hsl(var(--background));
}
.ring-border {
  --tw-ring-color: hsl(var(--border));
}
.ring-border\/30 {
  --tw-ring-color: hsl(var(--border) / 0.3);
}
.ring-border\/40 {
  --tw-ring-color: hsl(var(--border) / 0.4);
}
.ring-brand\/20 {
  --tw-ring-color: hsl(var(--brand) / 0.2);
}
.ring-brand\/30 {
  --tw-ring-color: hsl(var(--brand) / 0.3);
}
.ring-emerald-500\/20 {
  --tw-ring-color: rgb(16 185 129 / 0.2);
}
.ring-foreground {
  --tw-ring-color: hsl(var(--foreground));
}
.ring-negative\/25 {
  --tw-ring-color: hsl(var(--negative) / 0.25);
}
.ring-positive\/25 {
  --tw-ring-color: hsl(var(--positive) / 0.25);
}
.ring-ring {
  --tw-ring-color: hsl(var(--ring));
}
.ring-offset-1 {
  --tw-ring-offset-width: 1px;
}
.ring-offset-2 {
  --tw-ring-offset-width: 2px;
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.ring-offset-popover {
  --tw-ring-offset-color: hsl(var(--popover));
}
.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);
}
.blur-3xl {
  --tw-blur: blur(64px);
  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);
}
.blur-\[100px\] {
  --tw-blur: blur(100px);
  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);
}
.blur-\[120px\] {
  --tw-blur: blur(120px);
  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);
}
.\!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) !important;
}
.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);
}
.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-\[16px\] {
  --tw-backdrop-blur: blur(16px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-\[2px\] {
  --tw-backdrop-blur: blur(2px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-xl {
  --tw-backdrop-blur: blur(24px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.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-\[color\2c box-shadow\] {
  transition-property: color,box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[grid-template-columns\] {
  transition-property: grid-template-columns;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[height\] {
  transition-property: height;
  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-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-100 {
  transition-duration: 100ms;
}
.duration-150 {
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.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);
}
@keyframes enter {

  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {

  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.animate-in {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.fade-in-0 {
  --tw-enter-opacity: 0;
}
.fade-in-80 {
  --tw-enter-opacity: 0.8;
}
.zoom-in-95 {
  --tw-enter-scale: .95;
}
.zoom-out {
  --tw-exit-scale: 0;
}
.slide-in-from-bottom-4 {
  --tw-enter-translate-y: 1rem;
}
.duration-100 {
  animation-duration: 100ms;
}
.duration-150 {
  animation-duration: 150ms;
}
.duration-200 {
  animation-duration: 200ms;
}
.duration-300 {
  animation-duration: 300ms;
}
.ease-in-out {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.\!running {
  animation-play-state: running !important;
}
.running {
  animation-play-state: running;
}
.paused {
  animation-play-state: paused;
}
.\[--cell-size\:2rem\] {
  --cell-size: 2rem;
}
.\[-ms-overflow-style\:none\] {
  -ms-overflow-style: none;
}
.\[background-image\:linear-gradient\(to_right\2c \#fff_1px\2c transparent_1px\)\2c linear-gradient\(to_bottom\2c \#fff_1px\2c transparent_1px\)\] {
  background-image: linear-gradient(to right,#fff 1px,transparent 1px),linear-gradient(to bottom,#fff 1px,transparent 1px);
}
.\[background-size\:32px_32px\] {
  background-size: 32px 32px;
}
.\[grid-template-columns\:repeat\(auto-fit\2c minmax\(180px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}
.\[grid-template-columns\:repeat\(auto-fit\2c minmax\(280px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.\[overscroll-behavior\:contain\] {
  overscroll-behavior: contain;
}
.\[scrollbar-width\:none\] {
  scrollbar-width: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   dibsTERMINAL Design System — shadcn/ui + Tailwind CSS
   Mira preset · Neutral base · Default radius · Inter font
   ══════════════════════════════════════════════════════════════════════════════ */

/* Geist Sans — variable font from Vercel (display / marketing headlines) */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Geist Mono — variable monospace (data, numerals, terminal mono) */
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Animation Keyframes ─────────────────────────────────────────────── */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes priceBlink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes priceFlashGreen {
  0% { background-color: hsl(var(--positive) / 0.25); }
  100% { background-color: transparent; }
}

@keyframes priceFlashRed {
  0% { background-color: hsl(var(--negative) / 0.25); }
  100% { background-color: transparent; }
}

/* ── Animation Utility Classes ───────────────────────────────────────── */

.animate-fade-in { animation: fadeIn 0.6s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.7s ease-out both; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-out both; }
.animate-fade-in-scale { animation: fadeInScale 0.5s ease-out both; }
.animate-slide-in-left { animation: slideInLeft 0.6s ease-out both; }
.animate-slide-in-right { animation: slideInRight 0.6s ease-out both; }

/* ── Typography utilities ────────────────────────────────────────────── */

.text-page-header { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.text-column-header { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.text-table-cell { font-size: 13px; font-weight: 400; }
.text-small-label { font-size: 11px; font-weight: 400; }

/* ── Skip link (a11y) ────────────────────────────────────────────────── */

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

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  border-radius: calc(var(--radius) - 1px);
  background-color: hsl(var(--primary));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: hsl(var(--primary-foreground));
}
/* ══════════════════════════════════════════════════════════════════════════════
   Design System for dibsTERMINAL — dark theme
   Near-black backgrounds · White primary accent · Teal-green secondary
   Inspired by the OpenBB Workspace color palette & shadcn/ui components
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ══════════════════════════════════════════════════════════════════════════
     Legacy --dt-* tokens (now thin aliases over shadcn tokens)
     All color, surface, border and accent tokens defer to the shadcn vars
     defined above (--background, --card, --foreground, --border, …).
     Theme-switching (light/dark) is therefore handled exclusively by shadcn
     — no separate --dt-* override blocks needed.
     ══════════════════════════════════════════════════════════════════════════ */

  /* ── Surfaces ── */

  /* ── Borders ── */

  /* ── Text — three-tier hierarchy (primary / secondary / muted) ── */

  /* ── Status / financial ── */

  /* Secondary accent — maps to shadcn secondary-accent */

  /* Legacy neon aliases — kept for backward compat */

  /* Glow / surface tints (subtle elevation tints) */

  /* ── Color groups (chart-friendly distinct hues) ── */

  /* ── AG-Grid theme (aliases over shadcn surfaces) ── */

  /* ── Sidebar/topbar (aliases over shadcn sidebar tokens) ── */

  /* ── Theme-aware utility tints ── */

  /* ══════════════════════════════════════════════════════════════════════════
     Functional (non-color) tokens — kept as plain values, theme-independent
     ══════════════════════════════════════════════════════════════════════════ */

  /* Typography */

  /* Spacing */

  /* Radii */

  /* Shadows */

  /* Layout */

  /* Row heights */
  --row-data:    34px;
  --row-compact: 28px;

  /* Transitions */

  /* Z-index stack */
  --z-base:     0;
  --z-widget:   10;
  --z-sticky:   20;
  --z-dropdown: 100;
  --z-modal:    200;
  --z-toast:    300;

  /* ══════════════════════════════════════════════════════════════════════════
     Spec-named aliases — kept for any consumer still referencing them
     ══════════════════════════════════════════════════════════════════════════ */
  --bg-base:        hsl(var(--background));
  --bg-surface:     hsl(var(--card));
  --bg-elevated:    hsl(var(--card));
  --bg-hover:       hsl(var(--accent));
  --bg-selected:    hsl(var(--accent));
  --bg-input:       hsl(var(--input));
  --border-subtle:  hsl(var(--border));
  --border-default: hsl(var(--border));
  --border-strong:  hsl(var(--ring));
  --text-primary:   hsl(var(--foreground));
  --text-secondary: hsl(var(--foreground-secondary));
  --text-muted:     hsl(var(--muted-foreground));
  --text-inverse:   hsl(var(--primary-foreground));
  --accent-hover:   hsl(var(--primary));
  --accent-muted:   hsl(var(--primary) / 0.10);
  --accent-glow:    hsl(var(--primary) / 0.14);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Light mode — handled exclusively by shadcn `.light` block above.
   All --dt-* tokens are aliases over shadcn vars, so they re-theme
   automatically. No per-token override block needed here.
   ═══════════════════════════════════════════════════════════════════════════ */

html.light ::-moz-selection {
  background: rgba(0, 0, 0, 0.12);
  color: #111827;
}

html.light ::selection {
  background: rgba(0, 0, 0, 0.12);
  color: #111827;
}

::-moz-selection {
  background: rgba(161, 161, 170, 0.25);
  color: rgba(255,255,255,0.95);
}

::selection {
  background: rgba(161, 161, 170, 0.25);
  color: rgba(255,255,255,0.95);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Global Reset — Terminal
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

.dt-route-viewport {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   Public / landing pages — natural document scroll
   ─────────────────────────────────────────────────────────────────────────
   The app dashboard needs html/body/root all at height:100% so the grid
   fills the viewport exactly.  Public pages (Landing, Features, Changelog,
   Contact, Legal, …) must scroll like normal websites.

   Strategy: when .dt-public is present anywhere in the document, use the
   CSS :has() selector to unlock the html→body→#root height chain so the
   document itself is the scroll container.  This keeps window.scrollY
   working (needed for transparent-nav effects on the landing page).

   .dt-route-viewport.dt-public is also set to overflow:visible so it does
   NOT create a nested scroll container — the document handles scroll.
   ───────────────────────────────────────────────────────────────────────── */

/* Unlock document scroll on public pages.
   We target both html.dt-public-route (set imperatively from App.jsx) and
   html:has(.dt-public) (the original selector). The imperative class is the
   reliable path; :has() is kept as a belt-and-braces fallback. !important is
   required to beat the @layer base `html, body { overflow: hidden }` rule
   regardless of how Tailwind orders layers in the output. */
html.dt-public-route,
html:has(.dt-public) {
  overflow: visible !important;
  height: auto !important;
  min-height: 100% !important;
}
html.dt-public-route body,
html:has(.dt-public) body {
  overflow: visible !important;
  height: auto !important;
  min-height: 100% !important;
}
html.dt-public-route #root,
html:has(.dt-public) #root {
  height: auto !important;
  min-height: 100% !important;
}
.dt-route-viewport.dt-public {
  height: auto;
  min-height: 100%;
  /* `clip` (not `hidden`) on one axis avoids creating a scroll container —
     sticky descendants (e.g. landing-page tab strip) need the document itself
     as their scroll container, not this wrapper. With overflow:hidden + visible,
     the visible axis is silently coerced to `auto`, which breaks sticky. */
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior-y: auto;
  flex: none; /* override flex:1 so it sizes to content */
}

/* ═══════════════════════════════════════════════════════════════════════════
   Theme utility bridge (App + public surfaces)
   Maps legacy white/black utility classes to design tokens so
   light/dark remain readable while JSX is migrated to semantic tokens.
   ═══════════════════════════════════════════════════════════════════════════ */

:where(.dt-shell, .dt-public) .bg-black,
:where(.dt-shell, .dt-public) .bg-black\/90,
:where(.dt-shell, .dt-public) .bg-black\/\[0\.92\] {
  background-color: hsl(var(--background)) !important;
}

/* Tier 1 — primary text (100%) */
:where(.dt-shell, .dt-public) .text-white,
:where(.dt-shell, .dt-public) .text-white\/\[0\.92\],
:where(.dt-shell, .dt-public) .text-white\/90,
:where(.dt-shell, .dt-public) .text-white\/85,
:where(.dt-shell, .dt-public) .text-white\/80 {
  color: hsl(var(--foreground)) !important;
}

/* Tier 2 — secondary text (sub-titles, labels, descriptions) */
:where(.dt-shell, .dt-public) .text-white\/75,
:where(.dt-shell, .dt-public) .text-white\/70,
:where(.dt-shell, .dt-public) .text-white\/65,
:where(.dt-shell, .dt-public) .text-white\/60,
:where(.dt-shell, .dt-public) .text-white\/55,
:where(.dt-shell, .dt-public) .text-white\/\[0\.60\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.55\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.48\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.46\] {
  color: hsl(var(--foreground-secondary)) !important;
}

:where(.dt-shell, .dt-public) .text-white\/50,
:where(.dt-shell, .dt-public) .text-white\/45,
:where(.dt-shell, .dt-public) .text-white\/40,
:where(.dt-shell, .dt-public) .text-white\/35,
:where(.dt-shell, .dt-public) .text-white\/30,
:where(.dt-shell, .dt-public) .text-white\/\[0\.35\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.32\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.30\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.28\] {
  color: hsl(var(--muted-foreground)) !important;
}

:where(.dt-shell, .dt-public) .text-white\/25,
:where(.dt-shell, .dt-public) .text-white\/20,
:where(.dt-shell, .dt-public) .text-white\/15,
:where(.dt-shell, .dt-public) .text-white\/10,
:where(.dt-shell, .dt-public) .text-white\/\[0\.24\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.20\],
:where(.dt-shell, .dt-public) .text-white\/\[0\.18\] {
  color: hsl(var(--muted-foreground)) !important;
}

:where(.dt-shell, .dt-public) .data-\[state\=active\]\:text-white\/90[data-state="active"] {
  color: hsl(var(--foreground)) !important;
}

:where(.dt-shell, .dt-public) .data-\[state\=active\]\:text-white\/40[data-state="active"] {
  color: hsl(var(--muted-foreground)) !important;
}

:where(.dt-shell, .dt-public) .hover\:text-white\/90:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/85:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/80:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/75:hover,
:where(.dt-shell, .dt-public) .hover\:text-white:hover {
  color: hsl(var(--foreground)) !important;
}

:where(.dt-shell, .dt-public) .hover\:text-white\/70:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/65:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/60:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/55:hover,
:where(.dt-shell, .dt-public) .hover\:text-white\/50:hover {
  color: hsl(var(--foreground)) !important;
}

:where(.dt-shell, .dt-public) .bg-white\/\[0\.01\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.015\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.02\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.03\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.04\],
:where(.dt-shell, .dt-public) .hover\:bg-white\/\[0\.02\]:hover,
:where(.dt-shell, .dt-public) .hover\:bg-white\/\[0\.03\]:hover,
:where(.dt-shell, .dt-public) .hover\:bg-white\/\[0\.04\]:hover {
  background-color: hsl(var(--accent)) !important;
}

:where(.dt-shell, .dt-public) .bg-white\/\[0\.05\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.055\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.06\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.07\],
:where(.dt-shell, .dt-public) .bg-white\/\[0\.08\],
:where(.dt-shell, .dt-public) .bg-white\/10,
:where(.dt-shell, .dt-public) .hover\:bg-white\/\[0\.06\]:hover,
:where(.dt-shell, .dt-public) .hover\:bg-white\/\[0\.07\]:hover,
:where(.dt-shell, .dt-public) .hover\:bg-white\/\[0\.08\]:hover,
:where(.dt-shell, .dt-public) .hover\:bg-white\/10:hover,
:where(.dt-shell, .dt-public) .data-\[state\=active\]\:bg-white\/\[0\.08\][data-state="active"] {
  background-color: hsl(var(--accent)) !important;
}

:where(.dt-shell, .dt-public) .border-white,
:where(.dt-shell, .dt-public) .border-white\/5,
:where(.dt-shell, .dt-public) .border-white\/\[0\.04\],
:where(.dt-shell, .dt-public) .border-white\/\[0\.05\],
:where(.dt-shell, .dt-public) .border-white\/\[0\.055\],
:where(.dt-shell, .dt-public) .border-white\/\[0\.06\],
:where(.dt-shell, .dt-public) .border-white\/\[0\.07\],
:where(.dt-shell, .dt-public) .border-white\/\[0\.08\],
:where(.dt-shell, .dt-public) .border-white\/10 {
  border-color: hsl(var(--border)) !important;
}

:where(.dt-shell, .dt-public) .border-white\/\[0\.13\],
:where(.dt-shell, .dt-public) .border-white\/20,
:where(.dt-shell, .dt-public) .hover\:border-white:hover,
:where(.dt-shell, .dt-public) .hover\:border-white\/10:hover,
:where(.dt-shell, .dt-public) .hover\:border-white\/\[0\.13\]:hover,
:where(.dt-shell, .dt-public) .hover\:border-white\/20:hover,
:where(.dt-shell, .dt-public) .hover\:border-white\/30:hover {
  border-color: hsl(var(--border)) !important;
}

:where(.dt-shell, .dt-public) .placeholder\:text-white\/20::-moz-placeholder {
  color: hsl(var(--muted-foreground)) !important;
}

:where(.dt-shell, .dt-public) .placeholder\:text-white\/20::placeholder {
  color: hsl(var(--muted-foreground)) !important;
}

:where(.dt-shell, .dt-public) .focus-visible\:ring-offset-black:focus-visible {
  --tw-ring-offset-color: hsl(var(--background)) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Scrollbar Styling — terminal-style: thin, subtle
   ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(var(--border))); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--ring))); }
::-webkit-scrollbar-corner { background: transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   Data Table — database-view layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   dt-table — OpenBB-level data table (compact, professional, dense)
   ═══════════════════════════════════════════════════════════════════════════ */
.dt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
  font-family: var(--font-sans);
}

.dt-table th {
  padding: 4px 8px;
  text-align: left;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card)));
  position: sticky;
  top: 0;
  z-index: 2;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  transition: color 100ms ease;
  height: 26px;
}
.dt-table th:hover { color: hsl(var(--foreground)); }
.dt-table th.sorted { color: hsl(var(--foreground)); font-weight: 600; }

.dt-table td {
  padding: 3px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  vertical-align: middle;
  color: hsl(var(--foreground));
  transition: background 60ms ease;
  height: 28px;
  font-size: 12px;
}
.dt-table td:last-child { border-right: none; }
.dt-table th {
  border-right: 1px solid rgba(255, 255, 255, 0.03);
}
.dt-table th:last-child { border-right: none; }

/* Alternating row striping — very subtle */
.dt-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Hover — subtle highlight */
.dt-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.dt-table tr.selected td {
  background: rgba(35, 131, 226, 0.08);
}

/* ── Positive / negative — text color + subtle background tint ── */
.dt-table .positive {
  color: hsl(var(--positive));
  font-weight: 500;
  background: rgba(34, 197, 94, 0.06);
}
.dt-table .negative {
  color: hsl(var(--negative));
  font-weight: 500;
  background: rgba(239, 68, 68, 0.06);
}
.dt-table .neutral {
  color: hsl(var(--muted-foreground));
}

/* ── Numeric cells — monospace, right-aligned, tabular-nums ── */
.dt-table .numeric {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.dt-table .right, .dt-table th.right { text-align: right; }

/* ── Symbol column — prominent, clickable ── */
.dt-table .symbol-col {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.dt-table .symbol-col:hover { color: hsl(var(--brand)); }

.dt-table .company-name {
  color: hsl(var(--foreground-secondary));
  font-size: 10px;
  margin-left: 4px;
  font-weight: 400;
}

/* ── Dense variant ── */
.dt-table--dense th,
.dt-table--dense td {
  padding: 2px 6px;
  font-size: 10px;
  height: 22px;
}

/* ── Unified table enhancements ── */
.dt-table th:hover .filter-icon { opacity: 0.5 !important; }
.dt-table th:hover .resize-handle { background: hsl(var(--border)) !important; }
.dt-table .center-align { text-align: center; }

/* ── Badge-style cells (beat/miss, status) ── */
.dt-table .dt-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}
.dt-table .dt-badge--positive { background: rgba(34, 197, 94, 0.15); color: hsl(var(--positive)); }
.dt-table .dt-badge--negative { background: rgba(239, 68, 68, 0.15); color: hsl(var(--negative)); }
.dt-table .dt-badge--neutral  { background: rgba(160, 160, 160, 0.10); color: hsl(var(--foreground)); }

/* ── First column subtle left padding ── */
.dt-table th:first-child,
.dt-table td:first-child {
  padding-left: 10px;
}

/* ── Light mode overrides ── */
[data-color-mode="light"] .dt-table td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-color-mode="light"] .dt-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}
[data-color-mode="light"] .dt-table tr:hover td {
  background: rgba(0, 0, 0, 0.03);
}
[data-color-mode="light"] .dt-table .positive {
  background: rgba(34, 197, 94, 0.08);
}
[data-color-mode="light"] .dt-table .negative {
  background: rgba(239, 68, 68, 0.08);
}

/* ── Widget internal section headers (like OpenBB card titles) ── */

/* ── Widget internal metric cards ── */

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.15; }
}

.unified-table-wrapper { min-width: 0; }
.unified-table-container::-webkit-scrollbar { width: 6px; height: 6px; }
.unified-table-container::-webkit-scrollbar-track { background: transparent; }
.unified-table-container::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Widget Container — shadcn card style
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-widget {
  background: hsl(var(--card));
  /* No outer border — widget separates from the workspace by background
     lift (card #151518 vs workspace #0C0C0E) alone. OpenBB-style. */
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dt-widget-header {
  /* height + padding come from Tailwind utilities on the JSX element
     (visualPreset.containerHeaderHeightClass + pt-7 pb-1 pr-1.5) — don't
     reassert them here or they override the JSX-level values silently. */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  /* gap is driven by the Tailwind utility on the JSX element (`gap-2`).
     Don't reassert here or it overrides the preset-aware spacing silently. */
  background: transparent;
  letter-spacing: -0.01em;
  text-transform: none;
}

.dt-widget-header:active { cursor: grabbing; }

.dt-widget-body {
  flex: 1;
  overflow: auto;
  padding: 0;
  /* Comfortable breathing room between the frame header and widget content
     (tables, charts, lists) so the header doesn't feel pressed into the
     body. Edge-to-edge widgets override this below. */
  padding-top: 10px;
}

/* Edge-to-edge widgets — content layout fills the body without a top gap.
   Chart widgets (price-chart, copilot-chart, tradingview) now share the same
   10 px breathing strip as the rest of the widgets so the header sits the
   same way above the chart canvas. Only embedded media — image, PDF, website
   iframe, YouTube — still bleeds to the edge because that's what users
   expect from a media container. */
.dt-widget[data-copilot-widget-type="image"] .dt-widget-body,
.dt-widget[data-copilot-widget-type="pdf"] .dt-widget-body,
.dt-widget[data-copilot-widget-type="website"] .dt-widget-body,
.dt-widget[data-copilot-widget-type="youtube"] .dt-widget-body {
  padding-top: 0;
}

/* ── Fullscreen widgets — bump base font + side gutters so 12px tables don't
   sit on a 27" display. The visual preset override drives table/header sizing
   from JS; this rule catches free body text (chart labels, descriptions,
   inline mono spans) that doesn't go through WidgetTable. ── */
.dt-widget[data-widget-fullscreen="true"] {
  font-size: 13px;
  /* Cap the inner content at a readable width on wide displays. The shell
     still covers the viewport (bg-background) for a uniform backdrop, while
     the header + body sit centered with horizontal breathing room. Without
     this, table columns and chart axes spread edge-to-edge on a 27" display
     and the widget feels uncomfortably stretched. */
  padding-left: max(0px, calc((100vw - 1600px) / 2));
  padding-right: max(0px, calc((100vw - 1600px) / 2));
}
.dt-widget[data-widget-fullscreen="true"] .dt-widget-body {
  padding-inline: 12px;
  padding-block: 4px;
}
/* Fullscreen header — bigger, more breathing room. The base rule sets
   `.dt-widget-header { height: 28px }` which would otherwise win over the
   `h-12` utility coming from the spacious visual preset; we explicitly
   bump it here so the header matches the more generous fullscreen scale
   (taller, more padding, larger title). */
.dt-widget[data-widget-fullscreen="true"] .dt-widget-header {
  height: auto;
  min-height: 52px;
  padding-inline: 20px;
  border-bottom-color: hsl(var(--border) / 0.6);
}
/* Title is the first inline span in the header. The component hard-codes
   `text-[13px]`, so we bump it here for the fullscreen scale. */
.dt-widget[data-widget-fullscreen="true"] .dt-widget-header > span:first-of-type {
  font-size: 15px;
}
/* Edge-to-edge widgets — their internal layout (drawing rail, price scale,
   media canvas) is anchored to the body's edges, so the fullscreen gutter
   would offset their left/right rails away from the screen edge. Strip the
   gutter for these so the rails stay flush. */
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="price-chart"],
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="copilot-chart"],
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="tradingview"],
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="image"],
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="pdf"],
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="website"],
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="youtube"] {
  padding-left: 0;
  padding-right: 0;
}
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="price-chart"] .dt-widget-body,
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="copilot-chart"] .dt-widget-body,
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="tradingview"] .dt-widget-body,
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="image"] .dt-widget-body,
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="pdf"] .dt-widget-body,
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="website"] .dt-widget-body,
.dt-widget[data-widget-fullscreen="true"][data-copilot-widget-type="youtube"] .dt-widget-body {
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   App Shell (grid layout)
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-shell {
  display: grid;
  grid-template-columns:
    var(--sidebar-width)
    minmax(0, 1fr)
    minmax(0, var(--right-dock-width, 0px))
    var(--right-rail-width, 56px);
  height: 100vh;
  background: hsl(var(--background));
  transition: grid-template-columns 0.2s ease;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sidebar — terminal-style navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-sidebar {
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  background: hsl(var(--sidebar-background));
  border-right: 1px solid hsl(var(--sidebar-border));
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.dt-sidebar.collapsed { width: var(--sidebar-collapsed-width); }

.dt-sidebar.collapsed .dt-sidebar__logo {
  justify-content: center;
  padding: 0;
}

.dt-sidebar__logo {
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--topbar-height);
  padding: 0 14px;
  flex-shrink: 0;
}

.dt-sidebar__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  color: hsl(var(--foreground));
  line-height: 1;
}

.dt-sidebar__logo-mark .logo-mark-muted {
  color: hsl(var(--muted-foreground));
}

/* ── Collapsible section animation ─────────────────────────────────── */

/* Chevron rotation */

.dt-sidebar-item.active {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--foreground));
  font-weight: 500;
}

.dt-sidebar-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.dt-sidebar-item.active .icon { opacity: 1; }

/* Collapsed sidebar overrides */
.dt-shell--collapsed .dt-sidebar {
  width: var(--sidebar-collapsed-width);
}

.dt-shell--collapsed .dt-sidebar__logo {
  justify-content: center;
  padding: 0;
}

.dt-shell--collapsed .dt-sidebar__logo-mark {
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TopBar — terminal-style clean header
   ═══════════════════════════════════════════════════════════════════════════ */

/* Real-time clock */

/* Hamburger / sidebar toggle */

/* Logo */

/* Search button — centered (see consolidated rule below) */

/* Flexible spacer */

/* Help Center link */

/* Icon buttons */

/* User avatar circle */

/* Legacy breadcrumb/code (kept for compatibility) */

/* ── Search button (centered in TopBar) ── */

/* ═══════════════════════════════════════════════════════════════════════════
   StatusBar
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes dt-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Content Area
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.dt-content--no-pad {
  padding: 0;
  overflow: hidden;
}

.dt-content--no-pad > .dt-now-grid,
.dt-content--no-pad > :first-child {
  width: 100%;
}

/* Universal focus-visible for all interactive elements */
button:focus-visible,
[role="button"]:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(161, 161, 170, 0.50);
  outline-offset: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Inputs
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-input {
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 8px 12px;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 140ms ease;
  width: 100%;
}

.dt-input:hover:not(:disabled) {
  border-color: hsl(var(--border));
}

.dt-input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.15);
}

.dt-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: hsl(var(--card));
}

.dt-input::-moz-placeholder { color: hsl(var(--muted-foreground)); }

.dt-input::placeholder { color: hsl(var(--muted-foreground)); }

.dt-select {
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 8px 12px;
  padding-right: var(--space-12);
  color: hsl(var(--foreground));
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 140ms ease;
}

.dt-select:hover {
  border-color: hsl(var(--border));
}

.dt-select:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.15);
}

.dt-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: hsl(var(--card));
}

/* Toggle Switch */

/* ═══════════════════════════════════════════════════════════════════════════
   Badges / Chips / Tags
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.dt-badge-green  { background: rgba(77,168,125,0.12);  color: #4da87d; }
.dt-badge-yellow { background: rgba(217,170,84,0.12);   color: #d9aa54; }
.dt-badge-gray   { background: hsl(var(--accent));  color: hsl(var(--muted-foreground)); }

.dt-chip.active {
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tabs — Underline Style
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid hsl(var(--border));
}

.dt-tab {
  padding: 8px 16px;
  font-size: 13px;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 2px 2px 0 0;
  transition: all 140ms ease;
  font-weight: 500;
  white-space: nowrap;
}

.dt-tab:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

.dt-tab.active {
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--foreground));
}

.dt-tab-pill.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dropdown / Menu
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-dropdown-item.active { color: hsl(var(--foreground)); }

/* ═══════════════════════════════════════════════════════════════════════════
   Tooltip
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Modal / Dialog
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Card
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Financial Data Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.dt-pct-change.up   { color: hsl(var(--positive)); background: rgba(38,166,91,0.1); }
.dt-pct-change.down { color: hsl(var(--negative)); background: rgba(232,69,60,0.1); }
.dt-pct-change.flat { color: hsl(var(--muted-foreground)); }

.dt-ticker-item .symbol {
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Watchlist
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-watchlist-row.selected {
  background: hsl(var(--accent));
  border-left: 2px solid hsl(var(--foreground));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Color Group Indicators (widget linking)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Layout Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-grid {
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
}

.dt-grid > * { background: hsl(var(--card)); }

/* ═══════════════════════════════════════════════════════════════════════════
   Typography Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsl(var(--muted-foreground));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Loading / Skeleton
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-skeleton {
  background: linear-gradient(
    90deg,
    hsl(var(--card)) 0%,
    hsl(var(--accent)) 50%,
    hsl(var(--card)) 100%
  );
  background-size: 200% 100%;
  animation: dt-shimmer 1.5s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes dt-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dt-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid hsl(var(--border));
  border-top-color: hsl(var(--foreground));
  border-radius: 50%;
  animation: dt-spin 0.6s linear infinite;
}

@keyframes dt-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   Typography — Heading font (Manrope) for hierarchy
   ═══════════════════════════════════════════════════════════════════════════ */

/* Widget title uses heading font */
.dt-widget-header .dt-widget-title {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Density — comfortable / compact / dense
   Applied via data-density attribute on body or dashboard container.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Default = comfortable */
:root {
}

[data-density="compact"] {
}

[data-density="dense"] {
}

/* Widget header height comes from the Tailwind utility on the JSX element
   (visualPreset.containerHeaderHeightClass = h-11 / h-12). Do NOT reassert
   here — a fixed 28 px declaration silently overrides the preset-driven
   height. Edits that broke this once already have been reverted; if you
   need a new density, add it to visualTokens.js and the JSX class, not
   here. */

@keyframes dt-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes dt-loader-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes dt-dot-bounce {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Symbol Link — Interactive ticker symbols
   ═══════════════════════════════════════════════════════════════════════════ */

.symbol-link {
  color: hsl(var(--primary));
  text-decoration: none;
  border-radius: 2px;
  padding: 0 var(--space-1);
  margin: 0 -var(--space-1);
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
  display: inline-block;
}
.symbol-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: hsl(var(--foreground));
}
.symbol-link:focus {
  outline: 1px solid hsl(var(--ring));
  outline-offset: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Alert / Toast
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  border-left: 3px solid;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Price Flash Animations
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-flash-up   { animation: dt-flash-green 0.65s ease-out; }
.dt-flash-down { animation: dt-flash-red 0.65s ease-out; }

@keyframes dt-flash-green {
  0%   { color: hsl(var(--positive)); background: rgba(38,166,91,0.22); }
  40%  { color: hsl(var(--positive)); background: rgba(38,166,91,0.14); }
  100% { color: inherit; background: transparent; }
}

@keyframes dt-flash-red {
  0%   { color: hsl(var(--negative)); background: rgba(232,69,60,0.22); }
  40%  { color: hsl(var(--negative)); background: rgba(232,69,60,0.14); }
  100% { color: inherit; background: transparent; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Resizer Handle (panel splitters)
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-resize-handle {
  position: relative;
  background: hsl(var(--border));
  transition: background 140ms ease;
  z-index: 10;
}

.dt-resize-handle:hover,
.dt-resize-handle:active { background: hsl(var(--primary)); }

.dt-resize-handle-h { width: 3px; cursor: col-resize; }

/* ═══════════════════════════════════════════════════════════════════════════
   Light mode — handled by shadcn `.light` block above. The legacy
   [data-color-mode="light"] override block has been removed because all
   --dt-* / --color-* tokens are now aliases over shadcn vars and theme
   automatically.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Scrollbar in light mode */
[data-color-mode="light"] ::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
}

/* ── Light mode: symbol links use dark text (not blue) ── */
[data-color-mode="light"] .symbol-link {
  color: hsl(var(--foreground));
  font-weight: 500;
}
[data-color-mode="light"] .symbol-link:hover {
  color: hsl(var(--primary));
  background: rgba(24, 24, 27, 0.08);
}

/* ── Light mode: widget panels get a subtle shadow for depth ── */
[data-color-mode="light"] .dt-widget {
  box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.06);
  border-color: transparent;
}
[data-color-mode="light"] .dt-widget:focus-within {
  box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 0 0 1px rgba(17,24,39,0.25);
  border-color: transparent;
}

/* ── Light mode: right rail active button — sidebar tokens already
   re-theme via .light, so the dark-mode rules above suffice. These
   legacy overrides are kept as no-ops to avoid clobbering the tokens. */

/* Light-mode local palette override removed: --dt-* / --color-* are now
   aliases over shadcn vars and re-theme automatically with .light. */

/* ═══════════════════════════════════════════════════════════════════════════
   Sidebar — Group & Security Block additions
   ═══════════════════════════════════════════════════════════════════════════ */

/* Grouped section with border-top divider */

/* Indented sub-item (for items under section headers) */

/* View all link */

/* Security Symbol Block */

/* ═══════════════════════════════════════════════════════════════════════════
   Right Rail — vertical icon strip
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-right-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: var(--right-rail-width, 56px);
  height: 100vh;
  /* Chrome surface — matches the left sidebar so both rails read as one
     continuous chrome layer (same token), not as a widget. */
  background: hsl(var(--sidebar-background));
  border-left: 1px solid hsl(var(--border));
  padding: var(--space-5) 0;
  gap: var(--space-2);
  overflow-x: hidden;
  overflow-y: auto;
}

/* Right-rail button styling is applied via Tailwind classes on the
   buttons themselves so it stays in sync with the left-sidebar item
   pattern (see SidebarItem in components/layout/Sidebar.jsx). The
   `.dt-right-rail__btn` class is kept as a marker for legacy selectors
   only — no color rules here. */

.dt-right-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  transform: translateX(16px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

/* ── dibsTERMINAL Copilot panel (slide-out) ── */
/* ── Copilot panel keyframes ── */
@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ai-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes ai-dot-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.35); }
  60%  { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0);    }
}
@keyframes ai-sparkles-float {
  0%   { transform: translateY(0)    rotate(0deg);  }
  33%  { transform: translateY(-3px) rotate(3deg);  }
  66%  { transform: translateY(-1px) rotate(-2deg); }
  100% { transform: translateY(0)    rotate(0deg);  }
}
@keyframes ai-thinking-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.dt-right-panel--open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* Expanded mode — overlay the dashboard for power-user views (wide watchlist
   tables, etc.). The dock column collapses to 0 in AppShell, and the panel
   floats fixed between the left sidebar and the right rail. */
.dt-right-panel--expanded {
  position: fixed;
  top: 0;
  right: 56px;             /* leave the right rail visible */
  bottom: 0;
  left: var(--sidebar-w, 240px);
  width: auto;
  height: 100vh;
  z-index: 1200;
  border-left: 1px solid hsl(var(--border));
  box-shadow: 0 0 0 1px hsl(var(--border)), 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

/* Notes in expanded mode: cap line length so the writing experience scales
   to "comfortable document" rather than "edge-to-edge wall of text". */
.dt-right-panel--expanded .rr-notes {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.dt-right-panel__resize-handle {
  position: absolute;
  top: 0;
  left: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
  background: transparent;
  transition: background 0.15s ease;
}

.dt-right-panel__resize-handle:hover,
.dt-right-panel__resize-handle:active {
  background: hsl(var(--brand) / 0.5);
}

/* Floating-actions header: no bar, no divider — the title sits in the
   panel body's top padding, the close/expand buttons float in the
   top-right corner over the same surface. */
.dt-right-panel__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
}

.dt-right-panel__title-row {
  display: flex;
  align-items: center;
  /* Leave room on the right for the floating action cluster. */
  padding: 10px 64px 8px var(--space-5);
  flex-shrink: 0;
  background: hsl(var(--card));
}

.dt-right-panel__title {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dt-right-panel__body {
  flex: 1;
  overflow-y: auto;
  background: hsl(var(--card));
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}

/* When notes panel is open, body should not scroll — let the editor fill space */
.dt-right-panel__body:has(.rr-notes) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--space-3);
}

/* When trending panel is open, fill the full height */
.dt-right-panel__body:has(.rr-trending) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* ── Quick Notes (right rail panel) ──────────────────────────────────── */

.rr-notes {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  padding: 0;
}

.rr-notes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0 var(--space-3);
  min-height: 24px;
}

/* ── Quick Notes formatting toolbar ── */
.rr-notes__toolbar {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid hsl(var(--border));
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.rr-notes__toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: hsl(var(--foreground));
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 0;
  transition: color 0.1s, background 0.1s;
}

.rr-notes__toolbar-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.rr-notes__toolbar-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rr-notes__toolbar-sep {
  width: 1px;
  height: 16px;
  background: hsl(var(--border));
  margin: 0 3px;
}

/* ── Quick Notes WYSIWYG editor (contentEditable) ── */
.rr-notes__editor {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: var(--space-5);
  font-size: 13px;
  line-height: 1.65;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.rr-notes__editor:empty::before {
  content: attr(data-placeholder);
  color: hsl(var(--muted-foreground));
  font-style: italic;
  pointer-events: none;
}

.rr-notes__editor:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.20);
}

.rr-notes__editor h1 {
  font-size: 20px;
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-2);
  line-height: 1.3;
}

.rr-notes__editor h2 {
  font-size: 16px;
  font-weight: 700;
  margin: var(--space-3) 0 3px;
  line-height: 1.3;
}

.rr-notes__editor h3 {
  font-size: 14px;
  font-weight: 600;
  margin: var(--space-2) 0 var(--space-1);
  line-height: 1.3;
}

.rr-notes__editor blockquote {
  border-left: 3px solid hsl(var(--primary));
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-5);
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

.rr-notes__editor ul,
.rr-notes__editor ol {
  margin: var(--space-2) 0;
  padding-left: 22px;
}

.rr-notes__editor li {
  margin: var(--space-1) 0;
}

.rr-notes__editor hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: var(--space-4) 0;
}

.rr-notes__hint {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rr-notes__saved {
  font-size: 10px;
  color: hsl(var(--positive));
  font-weight: 600;
  animation: rr-fade-in 0.2s ease;
}

.rr-notes__textarea {
  flex: 1;
  width: 100%;
  min-height: 200px;
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: var(--space-5);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rr-notes__textarea::-moz-placeholder {
  color: hsl(var(--muted-foreground));
  font-style: italic;
  font-family: inherit;
}

.rr-notes__textarea::placeholder {
  color: hsl(var(--muted-foreground));
  font-style: italic;
  font-family: inherit;
}

.rr-notes__textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.20);
}

.rr-notes__footer {
  padding: var(--space-3) 0 0;
}

.rr-notes__footer-text {
  font-size: 9px;
  color: hsl(var(--muted-foreground));
  opacity: 0.6;
}

@keyframes rr-fade-in {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Trending / Top Movers (right rail panel) ───────────────────────── */

.rr-trending {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}

.rr-trending__section {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}

/* News widget — fresh-row flash. Slides in with a tinted bar on the left
   edge and a subtle wash that fades back to the table palette over four
   seconds, matching the JS-side NEW_ROW_FLASH_MS in NewsfeedRenderer. */
@keyframes news-row-flash {
  0% {
    background-color: hsl(var(--primary) / 0.22);
    box-shadow: inset 3px 0 0 hsl(var(--primary));
    transform: translateY(-2px);
    opacity: 0.6;
  }
  18% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    background-color: transparent;
    box-shadow: inset 3px 0 0 transparent;
  }
}

.news-row--new {
  animation: news-row-flash 4s ease-out;
}

/* News toast progress bar — drains from full width to zero over the toast
   duration. Animation duration is set inline so it always matches the
   sonner timer. Pauses on hover so the reader can finish without losing
   the banner. */
@keyframes news-toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.news-toast-progress {
  animation-name: news-toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.group\/news:hover .news-toast-progress,
[data-sonner-toast]:hover .news-toast-progress {
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Today's Markets — 3-column dense data grid
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-now-dashboard-root {
  /* Use root zinc palette — no local overrides */
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.dt-now-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* ── Fixed grid layout for Today's Markets ──────────────────────────── */
/*
  Layout (6 columns × 6 rows):
  ┌──────────┬──────────────────────┬──────────┐
  │  equity  │       news           │currencies│  row 1
  ├──────────┼──────────────────────┼──────────┤
  │          │                      │          │
  │ sectors  │       chart          │  global  │  row 2-4
  │          │                      │          │
  ├──────────┼───────────┬──────────┼──────────┤
  │    fi    │  factors  │  yields  │commodities│ row 5-6
  └──────────┴───────────┴──────────┴──────────┘
*/
.dt-now-fixed-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.68fr 0.78fr 1.1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1.1fr 1.1fr;
  grid-template-areas:
    "left     news     news     right"
    "left     chart    chart    right"
    "left     chart    chart    right"
    "left     chart    chart    right"
    "left     factors  yields   right"
    "left     factors  yields   right";
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 6px;
  background: hsl(var(--background));
}

.dt-now-fixed-grid > div {
  min-height: 0;
  min-width: 0;
}

/* Unified scrollable columns – left (equity/sectors/fi) and right (currencies/global/commodities) */
.dt-now-area-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  background: hsl(var(--card));
}
.dt-now-area-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  background: hsl(var(--card));
}
/* Panels inside left/right columns: no individual card border, just bottom divider */
.dt-now-area-left > div,
.dt-now-area-right > div {
  flex: 0 0 auto;
  border-bottom: 1px solid hsl(var(--border));
}
.dt-now-area-left > div:last-child,
.dt-now-area-right > div:last-child {
  border-bottom: none;
}

.dt-now-area-news        { grid-area: news; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 4px; background: hsl(var(--card)); }
.dt-now-area-chart       { grid-area: chart; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 4px; background: hsl(var(--card)); }
.dt-now-area-factors     { grid-area: factors; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 4px; background: hsl(var(--card)); }
.dt-now-area-yields      { grid-area: yields; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 4px; background: hsl(var(--card)); }

/* All panels have uniform borders via gap + individual borders */

/* ── Responsive: stack on small screens ─────────────────────────────── */
@media (max-width: 900px) {
  .dt-now-fixed-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "news"
      "left"
      "chart"
      "right"
      "factors"
      "yields";
    overflow-y: auto;
  }
  .dt-now-fixed-grid > div {
    min-height: 260px;
  }
}

/* Legacy: react-grid-layout container override (kept for custom dashboards) */

/* Each grid cell must clip content so panels scroll internally */
.dt-now-grid-layout > .react-grid-item {
  overflow: hidden;
}

/* ── react-grid-layout resize-handle overrides ──
   The default RGL handle is a 20×20px invisible square that only shows on
   hover via a tiny 5×5px dark diagonal glyph. On dark-themed widgets the
   glyph is nearly impossible to see, making resize feel broken. We replace
   it with a larger, always-visible handle that works on both light and dark
   backgrounds, and bump z-index so it sits above any widget overlays. */
.dt-grid-layout .react-grid-item > .react-resizable-handle {
  width: 24px;
  height: 24px;
  opacity: 1;
  z-index: 20;
}

.dt-grid-layout .react-grid-item > .react-resizable-handle::after {
  right: 4px;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-color: hsl(var(--foreground) / 0.45);
  transition: border-color 150ms ease;
}

.dt-grid-layout .react-grid-item > .react-resizable-handle:hover::after {
  border-color: hsl(var(--primary));
}

/* Ensure east/west handles are equally visible */
.dt-grid-layout .react-grid-item > .react-resizable-handle-e,
.dt-grid-layout .react-grid-item > .react-resizable-handle-w {
  top: 0;
  margin-top: 0;
  height: 100%;
  width: 6px;
}

.dt-grid-layout .react-grid-item > .react-resizable-handle-e::after,
.dt-grid-layout .react-grid-item > .react-resizable-handle-w::after {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 24px;
  border: none;
  background: hsl(var(--foreground) / 0.15);
  border-radius: 2px;
}

.dt-grid-layout .react-grid-item > .react-resizable-handle-e:hover::after,
.dt-grid-layout .react-grid-item > .react-resizable-handle-w:hover::after {
  background: hsl(var(--primary));
}

/* South handle */
.dt-grid-layout .react-grid-item > .react-resizable-handle-s {
  left: 0;
  margin-left: 0;
  width: 100%;
  height: 6px;
}

.dt-grid-layout .react-grid-item > .react-resizable-handle-s::after {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 4px;
  border: none;
  background: hsl(var(--foreground) / 0.15);
  border-radius: 2px;
}

.dt-grid-layout .react-grid-item > .react-resizable-handle-s:hover::after {
  background: hsl(var(--primary));
}

/* ── Widget drag/resize overlay ──
   Both dragging and resizing reuse the React `.dt-resize-overlay` inside each
   widget body. That overlay renders the dibsTERMINAL wordmark as real HTML
   (not an SVG) so the typography exactly matches the navbar. See
   DashboardGrid for the visibility rules. */

.dt-now-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid hsl(var(--border));
  background:
    radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.04), transparent 50%),
    linear-gradient(180deg, hsl(var(--card)), hsl(var(--background)));
}

.dt-now-overview-copy {
  min-width: 0;
}

.dt-now-overview-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-1);
}

.dt-now-overview-title-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.dt-now-overview-title {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}

.dt-now-overview-time {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
}

.dt-now-overview-subtitle {
  margin: var(--space-2) 0 0;
  max-width: 720px;
  font-size: 11px;
  line-height: 1.4;
  color: hsl(var(--foreground));
}

.dt-now-overview-guide {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dt-now-overview-guide-item {
  min-width: 100px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  background: hsl(var(--card));
}

.dt-now-overview-guide-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin-bottom: var(--space-1);
}

.dt-now-overview-guide-detail {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: hsl(var(--muted-foreground));
}

.dt-now-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: clip;
  overflow-y: auto;
  gap: 0;
  padding: 0;
  background: transparent;
}
.dt-now-col:last-child { }

/* Panel body scrolls internally so panels don't need to grow */

/* Tables need display:block wrapper behavior to enable overflow scroll */
.dt-now-panel > table.dt-now-table {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.dt-now-panel > table.dt-now-table > thead {
  display: table;
  width: 100%;
  table-layout: auto;
}
.dt-now-panel > table.dt-now-table > tbody {
  display: table;
  width: 100%;
  table-layout: auto;
}

/* Dense data table in NOW grid */
.dt-now-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  table-layout: fixed;
}
.dt-now-table th {
  padding: var(--space-1) 4px;
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  top: 0;
  z-index: 2;
  background: hsl(var(--card));
}
.dt-now-table th:not(:first-child) { text-align: right; }

/* Column widths: checkbox, name (flexible), ticker, price, chg, %
   With table-layout: fixed, explicit px columns are respected;
   col 2 (name) has no explicit width → gets all remaining space */
.dt-now-table th:nth-child(1),
.dt-now-table td:nth-child(1) { width: 22px; }
/* col 2 name: gets remaining width; content truncated with ellipsis */
.dt-now-table th:nth-child(2),
.dt-now-table td:nth-child(2) { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* col 3 ticker: compact mono */
.dt-now-table th:nth-child(3),
.dt-now-table td:nth-child(3) { width: 44px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* col 4 price */
.dt-now-table th:nth-child(4),
.dt-now-table td:nth-child(4) { width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* col 5 change */
.dt-now-table th:nth-child(5),
.dt-now-table td:nth-child(5) { width: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* col 6 pct */
.dt-now-table th:nth-child(6),
.dt-now-table td:nth-child(6) { width: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dt-now-table td {
  padding: 1px 3px;
  border-bottom: 1px solid hsl(var(--border));
  white-space: nowrap;
  font-size: 10px;
  color: hsl(var(--foreground));
}
.dt-now-table td:not(:first-child) { text-align: right; }
.dt-now-table tr:hover td { background: hsl(var(--accent)); }
.dt-now-table .symbol-cell { font-weight: 500; color: hsl(var(--foreground)); }
/* Unified cell renderer color classes */
.dt-now-table .positive { color: hsl(var(--positive)); }
.dt-now-table .negative { color: hsl(var(--negative)); }
.dt-now-table .neutral  { color: hsl(var(--muted-foreground)); }

/* Name + Ticker inline layout */
.dt-now-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.dt-now-table--label-priority .dt-now-name-cell {
  gap: 3px;
}
.dt-now-bullet {
  color: hsl(var(--muted-foreground));
  font-size: 10px;
  flex-shrink: 0;
}
.dt-now-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.dt-now-ticker-col {
  font-family: var(--font-mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-align: left !important;
}
.dt-now-ticker-col a {
  color: inherit;
  text-decoration: none;
}
.dt-now-ticker-col a:hover {
  color: hsl(var(--foreground));
}

/* Colored checkbox swatch – replaces MUI Checkbox when a chart color is assigned */
.dt-now-color-swatch {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 3px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.dt-now-color-swatch:hover {
  opacity: 1 !important;
}
.dt-now-color-swatch:focus-visible {
  outline: 1px solid hsl(var(--primary));
  outline-offset: 2px;
}

.dt-now-table .subheader td {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  padding-top: var(--space-2);
  padding-bottom: var(--space-1);
  background: hsl(var(--card));
}
.dt-now-table .subheader td:first-child {
  /* empty checkbox column in subheader */
}
.dt-now-table .subheader td:nth-child(2) {
  font-weight: 700;
  color: hsl(var(--foreground));
}

@media (max-width: 1100px) {
  .dt-now-overview-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dt-now-overview-guide {
    justify-content: flex-start;
  }
}

/* Performance chart area */
.dt-now-chart-tabs {
  display: flex;
  gap: 0;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid hsl(var(--border));
}
.dt-now-chart-tab {
  padding: var(--space-1) var(--space-3);
  font-size: 11px;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.1s, color 0.1s;
}
.dt-now-chart-tab:hover { color: hsl(var(--foreground)); }
.dt-now-chart-tab[data-state="active"] {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

/* Factors heatmap grid */
.dt-now-factors {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
.dt-now-factors-grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  grid-template-rows: auto repeat(3, 1fr);
  gap: var(--space-2);
  font-size: 11px;
  flex: 1;
  min-height: 0;
}
.dt-now-factors-label {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  padding-right: var(--space-3);
  font-weight: 500;
}
.dt-now-factors-header {
  text-align: center;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  padding: var(--space-1) 0;
}
.dt-now-factor-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid hsl(var(--border));
  font-size: 12px;
  font-weight: 600;
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-mono);
  background: transparent;
}

/* News list items */
.dt-now-news-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.dt-now-news-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: background 0.1s;
}
.dt-now-news-item:hover { background: hsl(var(--accent)); }
.dt-now-news-title {
  font-size: 11px;
  color: hsl(var(--foreground));
  line-height: 1.4;
}
.dt-now-news-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

/* Yields table in middle col */
.dt-now-yields-header {
  display: grid;
  grid-template-columns: 1fr repeat(4, 50px);
  padding: 3px 3px 3px var(--space-3);
  font-size: 10px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  background: hsl(var(--card));
}
.dt-now-yields-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 50px);
  padding: 3px 3px 3px var(--space-3);
  font-size: 11px;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
  transition: background 0.1s;
}
.dt-now-yields-row:hover { background: hsl(var(--accent)); }
.dt-now-yields-flag {
  display: flex;
  align-items: center;
  gap: 5px;
  color: hsl(var(--foreground));
}
.dt-now-yields-status {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dt-now-yields-val {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: hsl(var(--foreground));
}
.dt-now-yields-row--unavailable .dt-now-yields-val,
.dt-now-yields-row--reference .dt-now-yields-val {
  color: hsl(var(--muted-foreground));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Today's Markets — Checkbox & Selection Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* Checkbox cell in table header */
.dt-now-table th:first-child {
  width: 28px;
  padding-left: var(--space-3);
  text-align: center;
}

/* Checkbox cell in table rows */
.dt-now-table td:first-child {
  width: 28px;
  padding-left: var(--space-3);
  text-align: center;
}

/* Custom checkbox styling */

/* Selected row styling */
.dt-now-table tr.selected td {
  background: rgba(255, 255, 255, 0.04) !important;
}

.dt-now-table tr.selected:hover td {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Selected row in yields panel */
.dt-now-yields-row.selected {
  background: rgba(255, 255, 255, 0.04);
}

.dt-now-yields-row.selected:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Floating action bar for selected symbols */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dt-now-selection-btn.primary {
  background: hsl(var(--primary));
  color: white;
  border-color: hsl(var(--primary));
}

.dt-now-selection-btn.primary:hover {
  background: hsl(var(--primary));
}

.dt-now-selection-btn.clear {
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
}

.dt-now-selection-btn.clear:hover {
  color: hsl(var(--negative));
}

/* Chart container */

/* Legend styling for chart */

.dt-now-chart-legend-item.disabled {
  opacity: 0.4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dt-now-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .dt-now-grid {
    grid-template-columns: 1fr;
  }
  
  .dt-now-col {
    border-right: none;
    border-bottom: 1px solid hsl(var(--border));
  }
  
  .dt-now-col:last-child {
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Toast Notifications
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes dt-toast-enter {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes dt-toast-exit {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Form Patterns - Consistent error/success/hint styling
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Page Transitions
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-page-enter:has(.dt-fixed-view) {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Error Banner
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Form Group
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Section Header
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Empty State
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   Recently Viewed - Sidebar section
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   Light mode: sidebar text readability
   The sidebar nav uses hardcoded text-white/xx Tailwind opacity classes that
   are invisible on the light background. Override them with themed colours.
   ─────────────────────────────────────────────────────────────────────────── */
html.light nav[data-tour="sidebar"] {
  color: hsl(var(--sidebar-foreground));
  background: hsl(var(--sidebar-background));
}

/* Section labels (e.g. "Dashboards", "Market Dashboards") */
html.light nav[data-tour="sidebar"] .text-white\/25 {
  color: hsl(var(--muted-foreground));
}

/* Inactive nav items */
html.light nav[data-tour="sidebar"] .text-white\/50 {
  color: hsl(var(--sidebar-foreground));
}
html.light nav[data-tour="sidebar"] .text-white\/40 {
  color: hsl(var(--sidebar-foreground));
}
html.light nav[data-tour="sidebar"] .text-white\/30 {
  color: hsl(var(--muted-foreground));
}
html.light nav[data-tour="sidebar"] .text-white\/20 {
  color: hsl(var(--muted-foreground));
}
html.light nav[data-tour="sidebar"] .text-white\/15 {
  color: hsl(var(--muted-foreground));
}
html.light nav[data-tour="sidebar"] .text-white\/10 {
  color: hsl(var(--border));
}

/* Active / hover nav items */
html.light nav[data-tour="sidebar"] .text-white\/90,
html.light nav[data-tour="sidebar"] .text-white\/85 {
  color: hsl(var(--sidebar-primary));
}
html.light nav[data-tour="sidebar"] .text-white\/75,
html.light nav[data-tour="sidebar"] .text-white\/70,
html.light nav[data-tour="sidebar"] .text-white\/60 {
  color: hsl(var(--foreground));
}

/* Hover text overrides */
html.light nav[data-tour="sidebar"] .hover\:text-white\/75:hover,
html.light nav[data-tour="sidebar"] .hover\:text-white\/70:hover,
html.light nav[data-tour="sidebar"] .hover\:text-white\/60:hover,
html.light nav[data-tour="sidebar"] .hover\:text-white\/50:hover {
  color: hsl(var(--foreground));
}
html.light nav[data-tour="sidebar"] .hover\:text-white\/90:hover {
  color: hsl(var(--sidebar-primary));
}

/* Active and hover backgrounds */
html.light nav[data-tour="sidebar"] .bg-white\/\[0\.08\],
html.light nav[data-tour="sidebar"] .hover\:bg-white\/\[0\.08\]:hover {
  background: hsl(var(--sidebar-accent));
}
html.light nav[data-tour="sidebar"] .bg-white\/\[0\.04\],
html.light nav[data-tour="sidebar"] .hover\:bg-white\/\[0\.04\]:hover {
  background: hsl(var(--sidebar-accent));
}

/* Subtle divider/border elements */
html.light nav[data-tour="sidebar"] .bg-white\/\[0\.06\] {
  background: hsl(var(--border));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Light Mode — Comprehensive Component Fixes
   Fixes hardcoded dark-mode-only colors that break in light mode
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sidebar: remap text-white/border-white patterns inside nav[data-tour="sidebar"] */
html.light nav[data-tour="sidebar"],
html.light [data-tour="sidebar"] {
  /* Section header text */
  .text-white\/25 { color: rgba(0,0,0,0.25) !important; }
  .text-white\/20 { color: rgba(0,0,0,0.20) !important; }
  .text-white\/30 { color: rgba(0,0,0,0.30) !important; }
  .text-white\/35 { color: rgba(0,0,0,0.35) !important; }
  .text-white\/40 { color: rgba(0,0,0,0.40) !important; }
  .text-white\/50 { color: rgba(0,0,0,0.50) !important; }
  .text-white\/60 { color: rgba(0,0,0,0.60) !important; }
  .text-white\/70 { color: rgba(0,0,0,0.70) !important; }
  .text-white\/75 { color: rgba(0,0,0,0.75) !important; }
  .text-white\/80,.text-white\/85,.text-white\/90 { color: rgba(0,0,0,0.85) !important; }

  /* Backgrounds */
  .bg-white\/[0.02],.bg-white\/\[0.03\],.bg-white\/\[0.04\] { background-color: rgba(0,0,0,0.04) !important; }
  .bg-white\/\[0.06\] { background-color: rgba(0,0,0,0.06) !important; }
  .bg-white\/\[0.08\] { background-color: rgba(0,0,0,0.08) !important; }
  .bg-white\/10 { background-color: rgba(0,0,0,0.10) !important; }

  /* Borders */
  .border-white\/\[0.04\],.border-white\/\[0.06\] { border-color: rgba(0,0,0,0.08) !important; }

  /* Active item bg */
  .bg-white\/\[0.08\] { background-color: rgba(0,0,0,0.07) !important; }

  /* Divider lines */
  .bg-white\/10.w-h-px { background-color: rgba(0,0,0,0.10) !important; }
}

/* Light mode: badge-gray fix */
html.light .dt-badge-gray {
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
}

/* Light mode: symbol link hover */
html.light .symbol-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Light mode: alert backgrounds */
html.light .dt-alert-info { background: rgba(24, 24, 27, 0.05); }
html.light .dt-alert-success { background: rgba(22, 163, 74, 0.06); }
html.light .dt-alert-warning { background: rgba(217, 119, 6, 0.06); }
html.light .dt-alert-error { background: rgba(220, 38, 38, 0.06); }

/* Light mode: notes blockquote */
html.light .rr-notes__editor blockquote {
  background: rgba(0, 0, 0, 0.03);
}

/* Light mode: overview header */
html.light .dt-now-overview-header {
  background:
    radial-gradient(ellipse at top left, rgba(0,0,0,0.03), transparent 50%),
    linear-gradient(180deg, hsl(var(--card)), hsl(var(--background)));
}

/* Light mode: panel headers with subtle bg */
html.light .dt-now-panel-header {
  background: rgba(0, 0, 0, 0.02);
}

/* Light mode: scrollbars */
html.light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Light mode: color dot shadows */
html.light .dt-now-color-dot-btn,
html.light .dt-color-dot {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dialog / Modal Fixes — prevent overlapping X close button
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure Radix dialog portals stack correctly */
[data-radix-dialog-portal] {
  position: relative;
  z-index: 50;
}

/* DialogContent gets higher z-index than overlay */
[data-radix-dialog-portal] > [data-state="open"][data-radix-dialog-content],
[data-radix-dialog-portal] > [data-radix-dialog-content][data-state="open"] {
  z-index: 60 !important;
}

/* Fix for overlapping X icon — ensure close button renders on top */
button[data-radix-dialog-close] {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Clean X icon rendering */
button[data-radix-dialog-close] svg {
  display: block;
  stroke-linecap: round;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Landing Page — Light Mode Overrides
   ═══════════════════════════════════════════════════════════════════════════ */

/* Root wrapper */
html.light .landing-page,
[data-color-mode="light"] .landing-page {
  background-color: #ffffff;
  color: #111827;
}

/* ── Backgrounds ── */
html.light .landing-page .bg-black,
[data-color-mode="light"] .landing-page .bg-black {
  background-color: #ffffff;
}

html.light .landing-page .bg-white\/\[0\.015\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.015\] {
  background-color: rgba(0, 0, 0, 0.02);
}

html.light .landing-page .bg-white\/\[0\.01\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.01\] {
  background-color: rgba(0, 0, 0, 0.01);
}

html.light .landing-page .bg-white\/\[0\.02\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.02\] {
  background-color: rgba(0, 0, 0, 0.02);
}

html.light .landing-page .bg-white\/\[0\.03\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.03\] {
  background-color: rgba(0, 0, 0, 0.03);
}

html.light .landing-page .bg-white\/\[0\.04\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.04\],
html.light .landing-page .hover\:bg-white\/\[0\.04\]:hover,
[data-color-mode="light"] .landing-page .hover\:bg-white\/\[0\.04\]:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

html.light .landing-page .bg-white\/\[0\.06\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.06\],
html.light .landing-page .hover\:bg-white\/\[0\.06\]:hover,
[data-color-mode="light"] .landing-page .hover\:bg-white\/\[0\.06\]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

html.light .landing-page .bg-white\/\[0\.07\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.07\],
html.light .landing-page .hover\:bg-white\/\[0\.07\]:hover,
[data-color-mode="light"] .landing-page .hover\:bg-white\/\[0\.07\]:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

html.light .landing-page .bg-white\/\[0\.08\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.08\],
html.light .landing-page .data-\[state\=active\]\:bg-white\/\[0\.08\][data-state="active"],
[data-color-mode="light"] .landing-page .data-\[state\=active\]\:bg-white\/\[0\.08\][data-state="active"] {
  background-color: rgba(0, 0, 0, 0.07);
}

/* ── Text ── */
html.light .landing-page .text-white\/90,
[data-color-mode="light"] .landing-page .text-white\/90 {
  color: #111827;
}

html.light .landing-page .text-white\/\[0\.92\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.92\] {
  color: #111827;
}

html.light .landing-page .text-white\/80,
[data-color-mode="light"] .landing-page .text-white\/80 {
  color: #1f2937;
}

html.light .landing-page .text-white\/70,
[data-color-mode="light"] .landing-page .text-white\/70 {
  color: #374151;
}

html.light .landing-page .text-white\/65,
[data-color-mode="light"] .landing-page .text-white\/65 {
  color: #374151;
}

html.light .landing-page .text-white\/60,
[data-color-mode="light"] .landing-page .text-white\/60 {
  color: #4b5563;
}

html.light .landing-page .text-white\/55,
[data-color-mode="light"] .landing-page .text-white\/55 {
  color: #4b5563;
}

html.light .landing-page .text-white\/50,
[data-color-mode="light"] .landing-page .text-white\/50 {
  color: #6b7280;
}

html.light .landing-page .text-white\/45,
[data-color-mode="light"] .landing-page .text-white\/45 {
  color: #6b7280;
}

html.light .landing-page .text-white\/40,
[data-color-mode="light"] .landing-page .text-white\/40 {
  color: #6b7280;
}

html.light .landing-page .data-\[state\=active\]\:text-white\/90[data-state="active"],
[data-color-mode="light"] .landing-page .data-\[state\=active\]\:text-white\/90[data-state="active"] {
  color: #111827;
}

html.light .landing-page .data-\[state\=active\]\:text-white\/40[data-state="active"],
[data-color-mode="light"] .landing-page .data-\[state\=active\]\:text-white\/40[data-state="active"] {
  color: #4b5563;
}

html.light .landing-page .text-white\/\[0\.48\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.48\] {
  color: #4b5563;
}

html.light .landing-page .text-white\/\[0\.46\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.46\] {
  color: #6b7280;
}

html.light .landing-page .text-white\/\[0\.35\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.35\] {
  color: #6b7280;
}

html.light .landing-page .text-white\/\[0\.32\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.32\] {
  color: #6b7280;
}

html.light .landing-page .text-white\/\[0\.30\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.30\] {
  color: #6b7280;
}

html.light .landing-page .text-white\/\[0\.28\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.28\] {
  color: #9ca3af;
}

html.light .landing-page .text-white\/\[0\.24\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.24\] {
  color: #9ca3af;
}

html.light .landing-page .text-white\/\[0\.20\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.20\] {
  color: #d1d5db;
}

html.light .landing-page .text-white\/\[0\.18\],
[data-color-mode="light"] .landing-page .text-white\/\[0\.18\] {
  color: #d1d5db;
}

/* ── Borders ── */
html.light .landing-page .border-white\/\[0\.07\],
[data-color-mode="light"] .landing-page .border-white\/\[0\.07\] {
  border-color: rgba(0, 0, 0, 0.1);
}

html.light .landing-page .border-white\/\[0\.08\],
[data-color-mode="light"] .landing-page .border-white\/\[0\.08\] {
  border-color: rgba(0, 0, 0, 0.1);
}

html.light .landing-page .border-white\/\[0\.055\],
[data-color-mode="light"] .landing-page .border-white\/\[0\.055\] {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .landing-page .border-white\/\[0\.06\],
[data-color-mode="light"] .landing-page .border-white\/\[0\.06\] {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .landing-page .border-white\/\[0\.13\],
[data-color-mode="light"] .landing-page .border-white\/\[0\.13\],
html.light .landing-page .hover\:border-white\/\[0\.13\]:hover,
[data-color-mode="light"] .landing-page .hover\:border-white\/\[0\.13\]:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

html.light .landing-page .border-white\/10,
[data-color-mode="light"] .landing-page .border-white\/10,
html.light .landing-page .hover\:border-white\/10:hover,
[data-color-mode="light"] .landing-page .hover\:border-white\/10:hover {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ── Hover text ── */
html.light .landing-page .hover\:text-white\/75:hover,
[data-color-mode="light"] .landing-page .hover\:text-white\/75:hover {
  color: #374151;
}

html.light .landing-page .hover\:text-white\/90:hover,
[data-color-mode="light"] .landing-page .hover\:text-white\/90:hover {
  color: #111827;
}

/* ── Navigation ── */
html.light .landing-page nav,
[data-color-mode="light"] .landing-page nav {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

html.light .landing-page nav a,
[data-color-mode="light"] .landing-page nav a {
  color: #111827;
}

html.light .landing-page nav .bg-black\/\[0\.92\],
[data-color-mode="light"] .landing-page nav .bg-black\/\[0\.92\] {
  background-color: rgba(255, 255, 255, 0.92);
}

html.light .landing-page nav .bg-\[\#09090b\],
[data-color-mode="light"] .landing-page nav .bg-\[\#09090b\] {
  background-color: #ffffff;
}

html.light .landing-page nav .text-white\/90,
[data-color-mode="light"] .landing-page nav .text-white\/90 {
  color: #111827;
}

html.light .landing-page nav .text-white\/\[0\.48\],
[data-color-mode="light"] .landing-page nav .text-white\/\[0\.48\] {
  color: #4b5563;
}

html.light .landing-page nav .text-white\/\[0\.28\],
[data-color-mode="light"] .landing-page nav .text-white\/\[0\.28\] {
  color: #9ca3af;
}

html.light .landing-page nav .text-white\/60,
[data-color-mode="light"] .landing-page nav .text-white\/60 {
  color: #4b5563;
}

html.light .landing-page nav .hover\:text-white\/90:hover,
[data-color-mode="light"] .landing-page nav .hover\:text-white\/90:hover {
  color: #111827;
}

html.light .landing-page nav .hover\:text-primary:hover,
[data-color-mode="light"] .landing-page nav .hover\:text-primary:hover {
  color: hsl(var(--primary));
}

html.light .landing-page nav .border-primary\/\[0\.08\],
[data-color-mode="light"] .landing-page nav .border-primary\/\[0\.08\] {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .landing-page nav .bg-primary\/\[0\.06\],
[data-color-mode="light"] .landing-page nav .bg-primary\/\[0\.06\] {
  background-color: rgba(24, 24, 27, 0.08);
}

html.light .landing-page nav .bg-primary\/10,
[data-color-mode="light"] .landing-page nav .bg-primary\/10 {
  background-color: rgba(24, 24, 27, 0.1);
}

html.light .landing-page nav .border-primary\/20,
[data-color-mode="light"] .landing-page nav .border-primary\/20 {
  border-color: rgba(24, 24, 27, 0.2);
}

html.light .landing-page nav .hover\:bg-transparent:hover,
[data-color-mode="light"] .landing-page nav .hover\:bg-transparent:hover {
  background-color: transparent;
}

html.light .landing-page nav .hover\:text-white:hover,
[data-color-mode="light"] .landing-page nav .hover\:text-white:hover {
  color: #111827;
}

html.light .landing-page nav .border-white\/\[0\.06\],
[data-color-mode="light"] .landing-page nav .border-white\/\[0\.06\] {
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .landing-page nav .shadow-\[0_16px_48px_rgba\(0,0,0,0\.4\),0_0_0_1px_rgba\(0,229,255,0\.05\)\],
[data-color-mode="light"] .landing-page nav .shadow-\[0_16px_48px_rgba\(0,0,0,0\.4\),0_0_0_1px_rgba\(0,229,255,0\.05\)\] {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ── Shadows ── */
html.light .landing-page .shadow-\[0_0_0_1px_rgba\(255,255,255,0\.035\),0_32px_80px_rgba\(0,0,0,0\.65\)\],
[data-color-mode="light"] .landing-page .shadow-\[0_0_0_1px_rgba\(255,255,255,0\.035\),0_32px_80px_rgba\(0,0,0,0\.65\)\] {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 32px 80px rgba(0, 0, 0, 0.12);
}

/* ── Radial gradient ── */
html.light .landing-page .bg-\[radial-gradient\(ellipse_at_center,rgba\(161,161,170,0\.07\)_0%,transparent_65%\)\],
[data-color-mode="light"] .landing-page .bg-\[radial-gradient\(ellipse_at_center,rgba\(161,161,170,0\.07\)_0%,transparent_65%\)\] {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.03) 0%, transparent 65%);
}

html.light .landing-page .bg-\[radial-gradient\(ellipse,rgba\(0,229,255,0\.065\)_0%,transparent_65%\)\],
[data-color-mode="light"] .landing-page .bg-\[radial-gradient\(ellipse,rgba\(0,229,255,0\.065\)_0%,transparent_65%\)\] {
  background: radial-gradient(ellipse, rgba(24, 24, 27, 0.06) 0%, transparent 65%);
}

/* ── Mobile overlay ── */
html.light .landing-page .bg-\[rgba\(10,14,20,0\.98\)\],
[data-color-mode="light"] .landing-page .bg-\[rgba\(10,14,20,0\.98\)\] {
  background-color: rgba(255, 255, 255, 0.98);
}

/* ── Additional text/background/border overrides ── */
html.light .landing-page .text-white\/40,
[data-color-mode="light"] .landing-page .text-white\/40 {
  color: #6b7280;
}

html.light .landing-page .text-white\/35,
[data-color-mode="light"] .landing-page .text-white\/35 {
  color: #6b7280;
}

html.light .landing-page .text-white\/30,
[data-color-mode="light"] .landing-page .text-white\/30 {
  color: #9ca3af;
}

html.light .landing-page .before\:bg-white\/20::before,
[data-color-mode="light"] .landing-page .before\:bg-white\/20::before {
  background-color: rgba(0, 0, 0, 0.15);
}

html.light .landing-page .border-white\/5,
[data-color-mode="light"] .landing-page .border-white\/5 {
  border-color: rgba(0, 0, 0, 0.06);
}

html.light .landing-page .bg-white\/\[0\.055\],
[data-color-mode="light"] .landing-page .bg-white\/\[0\.055\] {
  background-color: rgba(0, 0, 0, 0.05);
}

html.light .landing-page .border-y.border-white\/5,
[data-color-mode="light"] .landing-page .border-y.border-white\/5 {
  border-color: rgba(0, 0, 0, 0.06);
}

html.light .landing-page .text-white\/50,
[data-color-mode="light"] .landing-page .text-white\/50 {
  color: #6b7280;
}

html.light .landing-page .hover\:bg-white\/\[0\.06\]:hover,
[data-color-mode="light"] .landing-page .hover\:bg-white\/\[0\.06\]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Panel / card surface utilities
   Provides a shared gradient + flat treatment for product/admin/settings cards
   so the terminal no longer visually diverges from auth + marketing pages.
   Add via `className="panel-gradient"` or `className="panel-surface"`.
   ═══════════════════════════════════════════════════════════════════════════ */
.panel-gradient {
  background: linear-gradient(to bottom,
    color-mix(in srgb, hsl(var(--card)) 80%, transparent) 0%,
    color-mix(in srgb, hsl(var(--card)) 30%, transparent) 100%);
  backdrop-filter: blur(6px);
}
.panel-surface {
  background-color: hsl(var(--card));
}

/* Legal pages (Impressum / Privacy / Terms / Withdrawal) --------------- */
/* Rich-text styling for translated HTML bodies injected via DOMPurify.  */
.legal-html > p {
  margin-bottom: 0.875rem; /* 14px, matches former mb-3.5 */
}
.legal-html > p:last-child {
  margin-bottom: 0;
}
.legal-html ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
  line-height: 1.9;
}
.legal-html li {
  margin-bottom: 0.125rem;
}
.legal-html a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-html strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}
.legal-html em {
  color: inherit;
}
.legal-html .legal-box {
  display: block;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 0 0 1.5rem 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}
.legal-html .legal-box ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.legal-html .legal-box-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Design-system component classes
   ══════════════════════════════════════════════════════════════════════════════
   Named utility classes that capture the most-repeated patterns in the
   terminal. Use these instead of recomposing the same Tailwind chain in
   every widget — semantic names survive design tweaks (change one rule,
   every consumer follows).

   Naming: `dt-<intent>` (or `dt-<intent>--<variant>`).
   Intent over implementation: `.dt-label` says "this is a label", not
   "10px uppercase muted-foreground".
   ──────────────────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════════
   Brand interaction hierarchy — L1 hint → L4 action
   ══════════════════════════════════════════════════════════════════════════════
   Four canonical levels of brand presence so the terminal reads as a
   coherent system (not "brand sprinkled randomly"). Use the level that
   matches the semantic — never escalate just to make something visible.

   L1 Hint     → hover affordance on interactive elements
   L2 Active   → currently-selected / active item (single-select context)
   L3 Anchor   → scope identity (symbol-locked, primary, live data)
   L4 Action   → primary CTA, brand mark, sidebar active state
   ──────────────────────────────────────────────────────────────────────────── */

@keyframes dt-live-pulse {
  0%, 100% { box-shadow: 0 0 0 2px hsl(var(--brand) / 0.25); }
  50%      { box-shadow: 0 0 0 4px hsl(var(--brand) / 0.10); }
}

/* Chrome-resize placeholder behavior is handled imperatively in
   src/lib/chromeResize.js — it hides every `.react-grid-item` and injects a
   single centered logo into `.dt-grid-layout` for the duration of the
   sidebar / right-dock / AI-panel drag. Pure inline styles, no class needed. */

.selection\:bg-primary *::-moz-selection {
  background-color: hsl(var(--primary));
}

.selection\:bg-primary *::selection {
  background-color: hsl(var(--primary));
}

.selection\:text-primary-foreground *::-moz-selection {
  color: hsl(var(--primary-foreground));
}

.selection\:text-primary-foreground *::selection {
  color: hsl(var(--primary-foreground));
}

.selection\:bg-primary::-moz-selection {
  background-color: hsl(var(--primary));
}

.selection\:bg-primary::selection {
  background-color: hsl(var(--primary));
}

.selection\:text-primary-foreground::-moz-selection {
  color: hsl(var(--primary-foreground));
}

.selection\:text-primary-foreground::selection {
  color: hsl(var(--primary-foreground));
}

.file\:border-0::file-selector-button {
  border-width: 0px;
}

.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}

.file\:text-sm::file-selector-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.file\:font-medium::file-selector-button {
  font-weight: 500;
}

.file\:text-foreground::file-selector-button {
  color: hsl(var(--foreground));
}

.placeholder\:text-muted-foreground::-moz-placeholder {
  color: hsl(var(--muted-foreground));
}

.placeholder\:text-muted-foreground::placeholder {
  color: hsl(var(--muted-foreground));
}

.placeholder\:text-muted-foreground\/60::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.6);
}

.placeholder\:text-muted-foreground\/60::placeholder {
  color: hsl(var(--muted-foreground) / 0.6);
}

.placeholder\:text-muted-foreground\/70::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.7);
}

.placeholder\:text-muted-foreground\/70::placeholder {
  color: hsl(var(--muted-foreground) / 0.7);
}

.before\:mr-2::before {
  content: var(--tw-content);
  margin-right: 0.5rem;
}

.before\:text-muted-foreground\/40::before {
  content: var(--tw-content);
  color: hsl(var(--muted-foreground) / 0.4);
}

.before\:content-\[\'\B7\'\]::before {
  --tw-content: '·';
  content: var(--tw-content);
}

.after\:absolute::after {
  content: var(--tw-content);
  position: absolute;
}

.after\:-bottom-px::after {
  content: var(--tw-content);
  bottom: -1px;
}

.after\:left-0::after {
  content: var(--tw-content);
  left: 0px;
}

.after\:right-0::after {
  content: var(--tw-content);
  right: 0px;
}

.after\:h-0\.5::after {
  content: var(--tw-content);
  height: 0.125rem;
}

.after\:rounded-full::after {
  content: var(--tw-content);
  border-radius: 9999px;
}

.after\:bg-brand::after {
  content: var(--tw-content);
  background-color: hsl(var(--brand));
}

.after\:bg-transparent::after {
  content: var(--tw-content);
  background-color: transparent;
}

.after\:transition-colors::after {
  content: var(--tw-content);
  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;
}

.first\:pt-0:first-child {
  padding-top: 0px;
}

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

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

.last\:pb-0:last-child {
  padding-bottom: 0px;
}

.focus-within\:opacity-100:focus-within {
  opacity: 1;
}

.focus-within\:ring-2:focus-within {
  --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-within\:ring-ring:focus-within {
  --tw-ring-color: hsl(var(--ring));
}

.focus-within\:ring-offset-2:focus-within {
  --tw-ring-offset-width: 2px;
}

.hover\:-translate-y-0\.5:hover {
  --tw-translate-y: -0.125rem;
  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-150:hover {
  --tw-scale-x: 1.5;
  --tw-scale-y: 1.5;
  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-\[1\.06\]:hover {
  --tw-scale-x: 1.06;
  --tw-scale-y: 1.06;
  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-accent-foreground\/20:hover {
  border-color: hsl(var(--accent-foreground) / 0.2);
}

.hover\:border-border:hover {
  border-color: hsl(var(--border));
}

.hover\:border-border\/40:hover {
  border-color: hsl(var(--border) / 0.4);
}

.hover\:border-border\/50:hover {
  border-color: hsl(var(--border) / 0.5);
}

.hover\:border-border\/60:hover {
  border-color: hsl(var(--border) / 0.6);
}

.hover\:border-border\/70:hover {
  border-color: hsl(var(--border) / 0.7);
}

.hover\:border-border\/80:hover {
  border-color: hsl(var(--border) / 0.8);
}

.hover\:border-destructive\/50:hover {
  border-color: hsl(var(--destructive) / 0.5);
}

.hover\:border-foreground\/40:hover {
  border-color: hsl(var(--foreground) / 0.4);
}

.hover\:border-foreground\/60:hover {
  border-color: hsl(var(--foreground) / 0.6);
}

.hover\:border-foreground\/\[0\.13\]:hover {
  border-color: hsl(var(--foreground) / 0.13);
}

.hover\:border-muted-foreground:hover {
  border-color: hsl(var(--muted-foreground));
}

.hover\:border-muted-foreground\/40:hover {
  border-color: hsl(var(--muted-foreground) / 0.4);
}

.hover\:border-ring:hover {
  border-color: hsl(var(--ring));
}

.hover\:\!bg-transparent:hover {
  background-color: transparent !important;
}

.hover\:bg-\[hsl\(var\(--secondary-accent\)\/0\.85\)\]:hover {
  background-color: hsl(var(--secondary-accent)/0.85);
}

.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}

.hover\:bg-accent\/20:hover {
  background-color: hsl(var(--accent) / 0.2);
}

.hover\:bg-accent\/30:hover {
  background-color: hsl(var(--accent) / 0.3);
}

.hover\:bg-accent\/40:hover {
  background-color: hsl(var(--accent) / 0.4);
}

.hover\:bg-accent\/50:hover {
  background-color: hsl(var(--accent) / 0.5);
}

.hover\:bg-accent\/60:hover {
  background-color: hsl(var(--accent) / 0.6);
}

.hover\:bg-accent\/90:hover {
  background-color: hsl(var(--accent) / 0.9);
}

.hover\:bg-background:hover {
  background-color: hsl(var(--background));
}

.hover\:bg-background\/10:hover {
  background-color: hsl(var(--background) / 0.1);
}

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

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

.hover\:bg-brand-strong:hover {
  background-color: hsl(var(--brand-strong));
}

.hover\:bg-brand\/10:hover {
  background-color: hsl(var(--brand) / 0.1);
}

.hover\:bg-brand\/15:hover {
  background-color: hsl(var(--brand) / 0.15);
}

.hover\:bg-brand\/25:hover {
  background-color: hsl(var(--brand) / 0.25);
}

.hover\:bg-brand\/40:hover {
  background-color: hsl(var(--brand) / 0.4);
}

.hover\:bg-brand\/\[0\.06\]:hover {
  background-color: hsl(var(--brand) / 0.06);
}

.hover\:bg-card\/40:hover {
  background-color: hsl(var(--card) / 0.4);
}

.hover\:bg-card\/50:hover {
  background-color: hsl(var(--card) / 0.5);
}

.hover\:bg-card\/60:hover {
  background-color: hsl(var(--card) / 0.6);
}

.hover\:bg-destructive\/10:hover {
  background-color: hsl(var(--destructive) / 0.1);
}

.hover\:bg-destructive\/80:hover {
  background-color: hsl(var(--destructive) / 0.8);
}

.hover\:bg-destructive\/90:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.hover\:bg-foreground\/10:hover {
  background-color: hsl(var(--foreground) / 0.1);
}

.hover\:bg-foreground\/15:hover {
  background-color: hsl(var(--foreground) / 0.15);
}

.hover\:bg-foreground\/\[0\.07\]:hover {
  background-color: hsl(var(--foreground) / 0.07);
}

.hover\:bg-hover:hover {
  background-color: hsl(var(--hover));
}

.hover\:bg-hover\/40:hover {
  background-color: hsl(var(--hover) / 0.4);
}

.hover\:bg-muted:hover {
  background-color: hsl(var(--muted));
}

.hover\:bg-muted\/40:hover {
  background-color: hsl(var(--muted) / 0.4);
}

.hover\:bg-muted\/50:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.hover\:bg-muted\/80:hover {
  background-color: hsl(var(--muted) / 0.8);
}

.hover\:bg-negative\/15:hover {
  background-color: hsl(var(--negative) / 0.15);
}

.hover\:bg-negative\/20:hover {
  background-color: hsl(var(--negative) / 0.2);
}

.hover\:bg-positive:hover {
  background-color: hsl(var(--positive));
}

.hover\:bg-positive\/10:hover {
  background-color: hsl(var(--positive) / 0.1);
}

.hover\:bg-positive\/15:hover {
  background-color: hsl(var(--positive) / 0.15);
}

.hover\:bg-positive\/90:hover {
  background-color: hsl(var(--positive) / 0.9);
}

.hover\:bg-primary\/80:hover {
  background-color: hsl(var(--primary) / 0.8);
}

.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.hover\:bg-secondary:hover {
  background-color: hsl(var(--secondary));
}

.hover\:bg-secondary\/80:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.hover\:bg-sidebar-accent:hover {
  background-color: hsl(var(--sidebar-accent));
}

.hover\:bg-sidebar-accent\/50:hover {
  background-color: hsl(var(--sidebar-accent) / 0.5);
}

.hover\:bg-sidebar-accent\/60:hover {
  background-color: hsl(var(--sidebar-accent) / 0.6);
}

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

.hover\:text-\[\#C8C8C8\]:hover {
  --tw-text-opacity: 1;
  color: rgb(200 200 200 / var(--tw-text-opacity, 1));
}

.hover\:text-\[hsl\(var\(--foreground\)\)\]:hover {
  color: hsl(var(--foreground));
}

.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}

.hover\:text-amber-300:hover {
  --tw-text-opacity: 1;
  color: rgb(252 211 77 / var(--tw-text-opacity, 1));
}

.hover\:text-amber-400:hover {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}

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

.hover\:text-brand:hover {
  color: hsl(var(--brand));
}

.hover\:text-brand-strong:hover {
  color: hsl(var(--brand-strong));
}

.hover\:text-destructive:hover {
  color: hsl(var(--destructive));
}

.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}

.hover\:text-foreground\/80:hover {
  color: hsl(var(--foreground) / 0.8);
}

.hover\:text-foreground\/90:hover {
  color: hsl(var(--foreground) / 0.9);
}

.hover\:text-hover-foreground:hover {
  color: hsl(var(--hover-foreground));
}

.hover\:text-muted-foreground:hover {
  color: hsl(var(--muted-foreground));
}

.hover\:text-negative\/80:hover {
  color: hsl(var(--negative) / 0.8);
}

.hover\:text-positive:hover {
  color: hsl(var(--positive));
}

.hover\:text-positive\/80:hover {
  color: hsl(var(--positive) / 0.8);
}

.hover\:text-sidebar-foreground:hover {
  color: hsl(var(--sidebar-foreground));
}

.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\:no-underline:hover {
  text-decoration-line: none;
}

.hover\:\!opacity-100:hover {
  opacity: 1 !important;
}

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

.hover\:opacity-80:hover {
  opacity: 0.8;
}

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

.hover\:shadow-sm:hover {
  --tw-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --tw-shadow-colored: 0 1px 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\:brightness-110:hover {
  --tw-brightness: brightness(1.1);
  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);
}

.hover\:brightness-125:hover {
  --tw-brightness: brightness(1.25);
  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);
}

.focus\:border-primary\/50:focus {
  border-color: hsl(var(--primary) / 0.5);
}

.focus\:border-ring:focus {
  border-color: hsl(var(--ring));
}

.focus\:bg-hover:focus {
  background-color: hsl(var(--hover));
}

.focus\:bg-muted:focus {
  background-color: hsl(var(--muted));
}

.focus\:text-\[hsl\(var\(--negative\)\)\]:focus {
  color: hsl(var(--negative));
}

.focus\:text-brand:focus {
  color: hsl(var(--brand));
}

.focus\:text-destructive:focus {
  color: hsl(var(--destructive));
}

.focus\:text-foreground:focus {
  color: hsl(var(--foreground));
}

.focus\:text-hover-foreground:focus {
  color: hsl(var(--hover-foreground));
}

.focus\:text-muted-foreground:focus {
  color: hsl(var(--muted-foreground));
}

.focus\:opacity-100:focus {
  opacity: 1;
}

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

.focus\:ring-0: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(0px + 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-1: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(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);
}

.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-foreground\/30:focus {
  --tw-ring-color: hsl(var(--foreground) / 0.3);
}

.focus\:ring-primary\/20:focus {
  --tw-ring-color: hsl(var(--primary) / 0.2);
}

.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}

.focus\:ring-offset-0:focus {
  --tw-ring-offset-width: 0px;
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

.focus-visible\:\!outline-none:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
}

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

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

.focus-visible\:ring-0: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(0px + 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-1: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(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);
}

.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-brand\/40:focus-visible {
  --tw-ring-color: hsl(var(--brand) / 0.4);
}

.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}

.focus-visible\:ring-ring\/40:focus-visible {
  --tw-ring-color: hsl(var(--ring) / 0.4);
}

.focus-visible\:\!ring-offset-0:focus-visible {
  --tw-ring-offset-width: 0px !important;
}

.focus-visible\:ring-offset-0:focus-visible {
  --tw-ring-offset-width: 0px;
}

.focus-visible\:ring-offset-1:focus-visible {
  --tw-ring-offset-width: 1px;
}

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.focus-visible\:ring-offset-background:focus-visible {
  --tw-ring-offset-color: hsl(var(--background));
}

.focus-visible\:ring-offset-popover:focus-visible {
  --tw-ring-offset-color: hsl(var(--popover));
}

.active\:cursor-grabbing:active {
  cursor: grabbing;
}

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

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

.disabled\:opacity-40:disabled {
  opacity: 0.4;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.group:hover .group-hover\:scale-110 {
  --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));
}

.group:hover .group-hover\:bg-background\/40 {
  background-color: hsl(var(--background) / 0.4);
}

.group:hover .group-hover\:bg-primary\/\[0\.12\] {
  background-color: hsl(var(--primary) / 0.12);
}

.group:hover .group-hover\:text-foreground {
  color: hsl(var(--foreground));
}

.group\/vol:hover .group-hover\/vol\:opacity-100 {
  opacity: 1;
}

.group\/widget:hover .group-hover\/widget\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:opacity-60 {
  opacity: 0.6;
}

.group.toaster .group-\[\.toaster\]\:border-border {
  border-color: hsl(var(--border));
}

.group.toast .group-\[\.toast\]\:bg-muted {
  background-color: hsl(var(--muted));
}

.group.toast .group-\[\.toast\]\:bg-primary {
  background-color: hsl(var(--primary));
}

.group.toaster .group-\[\.toaster\]\:bg-background {
  background-color: hsl(var(--background));
}

.group.toast .group-\[\.toast\]\:text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.group.toast .group-\[\.toast\]\:text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.group.toaster .group-\[\.toaster\]\:text-foreground {
  color: hsl(var(--foreground));
}

.group.toaster .group-\[\.toaster\]\:shadow-lg {
  --tw-shadow: 0 10px 15px rgba(0,0,0,0.3);
  --tw-shadow-colored: 0 10px 15px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}

.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}

.has-\[\>button\]\:ml-\[-0\.45rem\]:has(>button) {
  margin-left: -0.45rem;
}

.has-\[\>button\]\:mr-\[-0\.4rem\]:has(>button) {
  margin-right: -0.4rem;
}

.has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(>kbd) {
  margin-left: -0.35rem;
}

.has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(>kbd) {
  margin-right: -0.35rem;
}

.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]) {
  height: auto;
}

.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]) {
  height: auto;
}

.has-\[\>textarea\]\:h-auto:has(>textarea) {
  height: auto;
}

.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]) {
  flex-direction: column;
}

.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]) {
  flex-direction: column;
}

.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]) {
  border-color: hsl(var(--destructive));
}

.has-\[\>svg\]\:p-0:has(>svg) {
  padding: 0px;
}

.has-\[\>svg\]\:px-2:has(>svg) {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.has-\[\>svg\]\:px-2\.5:has(>svg) {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-1:has([data-slot=input-group-control]: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(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);
}

.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring:has([data-slot=input-group-control]:focus-visible) {
  --tw-ring-color: hsl(var(--ring));
}

.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]) {
  --tw-ring-color: hsl(var(--destructive) / 0.2);
}

.group\/input-group:has(>input) .group-has-\[\>input\]\/input-group\:pb-2\.5 {
  padding-bottom: 0.625rem;
}

.group\/input-group:has(>input) .group-has-\[\>input\]\/input-group\:pt-2\.5 {
  padding-top: 0.625rem;
}

.aria-disabled\:opacity-50[aria-disabled="true"] {
  opacity: 0.5;
}

.aria-selected\:text-muted-foreground[aria-selected="true"] {
  color: hsl(var(--muted-foreground));
}

.data-\[disabled\=true\]\:pointer-events-none[data-disabled="true"] {
  pointer-events: none;
}

.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}

.data-\[side\=bottom\]\:translate-y-1[data-side="bottom"] {
  --tw-translate-y: 0.25rem;
  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));
}

.data-\[side\=left\]\:-translate-x-1[data-side="left"] {
  --tw-translate-x: -0.25rem;
  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));
}

.data-\[side\=right\]\:translate-x-1[data-side="right"] {
  --tw-translate-x: 0.25rem;
  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));
}

.data-\[side\=top\]\:-translate-y-1[data-side="top"] {
  --tw-translate-y: -0.25rem;
  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));
}

.data-\[state\=checked\]\:translate-x-5[data-state="checked"] {
  --tw-translate-x: 1.25rem;
  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));
}

.data-\[state\=unchecked\]\:translate-x-0[data-state="unchecked"] {
  --tw-translate-x: 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));
}

@keyframes accordion-up {

  from {
    height: var(--radix-accordion-content-height);
  }

  to {
    height: 0;
  }
}

.data-\[state\=closed\]\:animate-accordion-up[data-state="closed"] {
  animation: accordion-up 0.2s ease-out;
}

@keyframes accordion-down {

  from {
    height: 0;
  }

  to {
    height: var(--radix-accordion-content-height);
  }
}

.data-\[state\=open\]\:animate-accordion-down[data-state="open"] {
  animation: accordion-down 0.2s ease-out;
}

.data-\[range-end\=true\]\:rounded-md[data-range-end="true"] {
  border-radius: calc(var(--radius) - 1px);
}

.data-\[range-middle\=true\]\:rounded-none[data-range-middle="true"] {
  border-radius: 0px;
}

.data-\[range-start\=true\]\:rounded-md[data-range-start="true"] {
  border-radius: calc(var(--radius) - 1px);
}

.data-\[selected\=true\]\:rounded-none[data-selected="true"] {
  border-radius: 0px;
}

.data-\[state\=active\]\:border-b-2[data-state="active"] {
  border-bottom-width: 2px;
}

.data-\[state\=active\]\:border-accent[data-state="active"] {
  border-color: hsl(var(--accent));
}

.data-\[state\=active\]\:border-primary[data-state="active"] {
  border-color: hsl(var(--primary));
}

.data-\[state\=checked\]\:\!border-brand[data-state="checked"] {
  border-color: hsl(var(--brand)) !important;
}

.data-\[state\=on\]\:border-primary[data-state="on"] {
  border-color: hsl(var(--primary));
}

.data-\[state\=active\]\:border-b-ring[data-state="active"] {
  border-bottom-color: hsl(var(--ring));
}

.data-\[highlighted\]\:bg-muted[data-highlighted] {
  background-color: hsl(var(--muted));
}

.data-\[range-end\=true\]\:bg-primary[data-range-end="true"] {
  background-color: hsl(var(--primary));
}

.data-\[range-middle\=true\]\:bg-hover[data-range-middle="true"] {
  background-color: hsl(var(--hover));
}

.data-\[range-start\=true\]\:bg-primary[data-range-start="true"] {
  background-color: hsl(var(--primary));
}

.data-\[selected-single\=true\]\:bg-primary[data-selected-single="true"] {
  background-color: hsl(var(--primary));
}

.data-\[selected\=true\]\:bg-accent[data-selected="true"] {
  background-color: hsl(var(--accent));
}

.data-\[state\=active\]\:bg-accent[data-state="active"] {
  background-color: hsl(var(--accent));
}

.data-\[state\=active\]\:bg-background[data-state="active"] {
  background-color: hsl(var(--background));
}

.data-\[state\=active\]\:bg-brand\/15[data-state="active"] {
  background-color: hsl(var(--brand) / 0.15);
}

.data-\[state\=active\]\:bg-transparent[data-state="active"] {
  background-color: transparent;
}

.data-\[state\=checked\]\:\!bg-brand[data-state="checked"] {
  background-color: hsl(var(--brand)) !important;
}

.data-\[state\=checked\]\:bg-\[hsl\(var\(--positive\)\)\][data-state="checked"] {
  background-color: hsl(var(--positive));
}

.data-\[state\=checked\]\:bg-\[hsl\(var\(--primary\)\)\][data-state="checked"] {
  background-color: hsl(var(--primary));
}

.data-\[state\=checked\]\:bg-primary[data-state="checked"] {
  background-color: hsl(var(--primary));
}

.data-\[state\=indeterminate\]\:bg-\[hsl\(var\(--primary\)\)\][data-state="indeterminate"] {
  background-color: hsl(var(--primary));
}

.data-\[state\=on\]\:bg-accent[data-state="on"] {
  background-color: hsl(var(--accent));
}

.data-\[state\=on\]\:bg-background[data-state="on"] {
  background-color: hsl(var(--background));
}

.data-\[state\=on\]\:bg-hover[data-state="on"] {
  background-color: hsl(var(--hover));
}

.data-\[state\=on\]\:bg-primary[data-state="on"] {
  background-color: hsl(var(--primary));
}

.data-\[state\=open\]\:bg-hover[data-state="open"] {
  background-color: hsl(var(--hover));
}

.data-\[state\=open\]\:bg-secondary[data-state="open"] {
  background-color: hsl(var(--secondary));
}

.data-\[state\=selected\]\:bg-muted[data-state="selected"] {
  background-color: hsl(var(--muted));
}

.data-\[state\=unchecked\]\:bg-input[data-state="unchecked"] {
  background-color: hsl(var(--input));
}

.data-\[state\=active\]\:font-semibold[data-state="active"] {
  font-weight: 600;
}

.data-\[highlighted\]\:text-\[hsl\(var\(--negative\)\)\][data-highlighted] {
  color: hsl(var(--negative));
}

.data-\[highlighted\]\:text-brand[data-highlighted] {
  color: hsl(var(--brand));
}

.data-\[highlighted\]\:text-muted-foreground[data-highlighted] {
  color: hsl(var(--muted-foreground));
}

.data-\[placeholder\]\:text-muted-foreground[data-placeholder] {
  color: hsl(var(--muted-foreground));
}

.data-\[range-end\=true\]\:text-primary-foreground[data-range-end="true"] {
  color: hsl(var(--primary-foreground));
}

.data-\[range-middle\=true\]\:text-hover-foreground[data-range-middle="true"] {
  color: hsl(var(--hover-foreground));
}

.data-\[range-start\=true\]\:text-primary-foreground[data-range-start="true"] {
  color: hsl(var(--primary-foreground));
}

.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single="true"] {
  color: hsl(var(--primary-foreground));
}

.data-\[selected\=true\]\:text-accent-foreground[data-selected="true"] {
  color: hsl(var(--accent-foreground));
}

.data-\[selected\=true\]\:text-foreground[data-selected="true"] {
  color: hsl(var(--foreground));
}

.data-\[state\=active\]\:text-brand[data-state="active"] {
  color: hsl(var(--brand));
}

.data-\[state\=active\]\:text-foreground[data-state="active"] {
  color: hsl(var(--foreground));
}

.data-\[state\=checked\]\:text-accent-foreground[data-state="checked"] {
  color: hsl(var(--accent-foreground));
}

.data-\[state\=checked\]\:text-brand-foreground[data-state="checked"] {
  color: hsl(var(--brand-foreground));
}

.data-\[state\=checked\]\:text-primary-foreground[data-state="checked"] {
  color: hsl(var(--primary-foreground));
}

.data-\[state\=indeterminate\]\:text-accent-foreground[data-state="indeterminate"] {
  color: hsl(var(--accent-foreground));
}

.data-\[state\=on\]\:text-foreground[data-state="on"] {
  color: hsl(var(--foreground));
}

.data-\[state\=on\]\:text-hover-foreground[data-state="on"] {
  color: hsl(var(--hover-foreground));
}

.data-\[state\=on\]\:text-primary-foreground[data-state="on"] {
  color: hsl(var(--primary-foreground));
}

.data-\[state\=open\]\:text-hover-foreground[data-state="open"] {
  color: hsl(var(--hover-foreground));
}

.data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
  color: hsl(var(--muted-foreground));
}

.data-\[disabled\=true\]\:opacity-50[data-disabled="true"] {
  opacity: 0.5;
}

.data-\[disabled\]\:opacity-50[data-disabled] {
  opacity: 0.5;
}

.data-\[state\=active\]\:shadow-none[data-state="active"] {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.data-\[state\=active\]\:shadow-sm[data-state="active"] {
  --tw-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --tw-shadow-colored: 0 1px 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);
}

.data-\[state\=on\]\:shadow-sm[data-state="on"] {
  --tw-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --tw-shadow-colored: 0 1px 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);
}

.data-\[state\=closed\]\:duration-300[data-state="closed"] {
  transition-duration: 300ms;
}

.data-\[state\=open\]\:duration-500[data-state="open"] {
  transition-duration: 500ms;
}

.data-\[state\=open\]\:animate-in[data-state="open"] {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}

.data-\[state\=closed\]\:animate-out[data-state="closed"] {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}

.data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
  --tw-exit-opacity: 0;
}

.data-\[state\=open\]\:fade-in-0[data-state="open"] {
  --tw-enter-opacity: 0;
}

.data-\[state\=closed\]\:zoom-out-95[data-state="closed"] {
  --tw-exit-scale: .95;
}

.data-\[state\=open\]\:zoom-in-95[data-state="open"] {
  --tw-enter-scale: .95;
}

.data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
  --tw-enter-translate-y: -0.5rem;
}

.data-\[side\=left\]\:slide-in-from-right-2[data-side="left"] {
  --tw-enter-translate-x: 0.5rem;
}

.data-\[side\=right\]\:slide-in-from-left-2[data-side="right"] {
  --tw-enter-translate-x: -0.5rem;
}

.data-\[side\=top\]\:slide-in-from-bottom-2[data-side="top"] {
  --tw-enter-translate-y: 0.5rem;
}

.data-\[state\=closed\]\:slide-out-to-bottom[data-state="closed"] {
  --tw-exit-translate-y: 100%;
}

.data-\[state\=closed\]\:slide-out-to-left[data-state="closed"] {
  --tw-exit-translate-x: -100%;
}

.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state="closed"] {
  --tw-exit-translate-x: -50%;
}

.data-\[state\=closed\]\:slide-out-to-right[data-state="closed"] {
  --tw-exit-translate-x: 100%;
}

.data-\[state\=closed\]\:slide-out-to-top[data-state="closed"] {
  --tw-exit-translate-y: -100%;
}

.data-\[state\=closed\]\:slide-out-to-top-1\/2[data-state="closed"] {
  --tw-exit-translate-y: -50%;
}

.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state="closed"] {
  --tw-exit-translate-y: -48%;
}

.data-\[state\=open\]\:slide-in-from-bottom[data-state="open"] {
  --tw-enter-translate-y: 100%;
}

.data-\[state\=open\]\:slide-in-from-left[data-state="open"] {
  --tw-enter-translate-x: -100%;
}

.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state="open"] {
  --tw-enter-translate-x: -50%;
}

.data-\[state\=open\]\:slide-in-from-right[data-state="open"] {
  --tw-enter-translate-x: 100%;
}

.data-\[state\=open\]\:slide-in-from-top[data-state="open"] {
  --tw-enter-translate-y: -100%;
}

.data-\[state\=open\]\:slide-in-from-top-1\/2[data-state="open"] {
  --tw-enter-translate-y: -50%;
}

.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state="open"] {
  --tw-enter-translate-y: -48%;
}

.data-\[state\=closed\]\:duration-300[data-state="closed"] {
  animation-duration: 300ms;
}

.data-\[state\=open\]\:duration-500[data-state="open"] {
  animation-duration: 500ms;
}

.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:relative {
  position: relative;
}

.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:z-10 {
  z-index: 10;
}

.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:border-ring {
  border-color: hsl(var(--ring));
}

.group\/input-group[data-disabled="true"] .group-data-\[disabled\=true\]\/input-group\:opacity-50 {
  opacity: 0.5;
}

.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-\[3px\] {
  --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(3px + 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);
}

.group\/day[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-ring\/50 {
  --tw-ring-color: hsl(var(--ring) / 0.5);
}

.dark\:border-destructive:is(.dark *) {
  border-color: hsl(var(--destructive));
}

.dark\:bg-background\/\[0\.65\]:is(.dark *) {
  background-color: hsl(var(--background) / 0.65);
}

.dark\:bg-input\/30:is(.dark *) {
  background-color: hsl(var(--input) / 0.3);
}

.dark\:bg-transparent:is(.dark *) {
  background-color: transparent;
}

.dark\:text-amber-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(252 211 77 / var(--tw-text-opacity, 1));
}

.dark\:text-emerald-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(110 231 183 / var(--tw-text-opacity, 1));
}

.dark\:text-orange-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(253 186 116 / var(--tw-text-opacity, 1));
}

.dark\:text-rose-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(253 164 175 / var(--tw-text-opacity, 1));
}

.dark\:text-sky-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(125 211 252 / var(--tw-text-opacity, 1));
}

.dark\:text-violet-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(196 181 253 / var(--tw-text-opacity, 1));
}

.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:has([data-slot][aria-invalid=true]):is(.dark *) {
  --tw-ring-color: hsl(var(--destructive) / 0.4);
}

@media (min-width: 640px) {

  .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\:block {
    display: block;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:flex {
    display: flex;
  }

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

  .sm\:max-w-\[360px\] {
    max-width: 360px;
  }

  .sm\:max-w-\[380px\] {
    max-width: 380px;
  }

  .sm\:max-w-\[440px\] {
    max-width: 440px;
  }

  .sm\:max-w-\[600px\] {
    max-width: 600px;
  }

  .sm\:max-w-\[680px\] {
    max-width: 680px;
  }

  .sm\:max-w-\[860px\] {
    max-width: 860px;
  }

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

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

  .sm\:max-w-sm {
    max-width: 24rem;
  }

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

  .sm\:flex-row {
    flex-direction: row;
  }

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

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

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

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

  .sm\:gap-2 {
    gap: 0.5rem;
  }

  .sm\:gap-2\.5 {
    gap: 0.625rem;
  }

  .sm\: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)));
  }

  .sm\:rounded-lg {
    border-radius: var(--radius);
  }

  .sm\:p-0 {
    padding: 0px;
  }

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

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

@media (min-width: 768px) {

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .md\:block {
    display: block;
  }

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

  .md\:flex {
    display: flex;
  }

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

  .md\:hidden {
    display: none;
  }

  .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-\[220px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 220px minmax(0,1fr);
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:gap-8 {
    gap: 2rem;
  }

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

  .md\:p-12 {
    padding: 3rem;
  }

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

  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

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

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

@media (min-width: 1024px) {

  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }

  .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\:grid-cols-\[240px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 240px minmax(0,1fr);
  }

  .lg\:gap-10 {
    gap: 2.5rem;
  }

  .lg\:gap-16 {
    gap: 4rem;
  }

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

  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1280px) {

  .xl\:flex-row {
    flex-direction: row;
  }

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

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

.\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-sm::-webkit-scrollbar-thumb {
  border-radius: calc(var(--radius) - 2px);
}

.\[\&\:\:-webkit-scrollbar-thumb\]\:bg-border::-webkit-scrollbar-thumb {
  background-color: hsl(var(--border));
}

.hover\:\[\&\:\:-webkit-scrollbar-thumb\]\:bg-muted-foreground::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--muted-foreground));
}

.\[\&\:\:-webkit-scrollbar-track\]\:bg-transparent::-webkit-scrollbar-track {
  background-color: transparent;
}

.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
  display: none;
}

.\[\&\:\:-webkit-scrollbar\]\:w-1\.5::-webkit-scrollbar {
  width: 0.375rem;
}

.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-bottom-left-radius: calc(var(--radius) - 1px);
}

.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
  padding-right: 0px;
}

.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button {
  border-top-right-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.\[\&\>\*\]\:h-full>* {
  height: 100%;
}

.\[\&\>\*\]\:min-h-0>* {
  min-height: 0px;
}

.\[\&\>\[data-slot\=\'dialog-close\'\]\]\:hidden>[data-slot='dialog-close'] {
  display: none;
}

.\[\&\>\[data-slot\=dialog-close\]\]\:\!text-\[\#666\]>[data-slot=dialog-close] {
  --tw-text-opacity: 1 !important;
  color: rgb(102 102 102 / var(--tw-text-opacity, 1)) !important;
}

.\[\&\>\[data-slot\=dialog-close\]\]\:hover\:\!text-\[\#111\]:hover>[data-slot=dialog-close] {
  --tw-text-opacity: 1 !important;
  color: rgb(17 17 17 / var(--tw-text-opacity, 1)) !important;
}

.\[\&\>a\:hover\]\:text-primary>a:hover {
  color: hsl(var(--primary));
}

.\[\&\>a\]\:underline>a {
  text-decoration-line: underline;
}

.\[\&\>a\]\:underline-offset-4>a {
  text-underline-offset: 4px;
}

.\[\&\>div\]\:bg-brand>div {
  background-color: hsl(var(--brand));
}

.\[\&\>div\]\:bg-destructive>div {
  background-color: hsl(var(--destructive));
}

.\[\&\>div\]\:bg-negative>div {
  background-color: hsl(var(--negative));
}

.\[\&\>div\]\:bg-orange-400>div {
  --tw-bg-opacity: 1;
  background-color: rgb(251 146 60 / var(--tw-bg-opacity, 1));
}

.\[\&\>div\]\:bg-positive>div {
  background-color: hsl(var(--positive));
}

.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3>input:has(>[data-align=block-end]) {
  padding-top: 0.75rem;
}

.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3>input:has(>[data-align=block-start]) {
  padding-bottom: 0.75rem;
}

.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2>input:has(>[data-align=inline-end]) {
  padding-right: 0.5rem;
}

.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2>input:has(>[data-align=inline-start]) {
  padding-left: 0.5rem;
}

.\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\]>kbd {
  border-radius: calc(var(--radius) - 5px);
}

.\[\&\>span\]\:line-clamp-1>span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.\[\&\>span\]\:text-xs>span {
  font-size: 0.75rem;
  line-height: 1rem;
}

.\[\&\>span\]\:opacity-70>span {
  opacity: 0.7;
}

.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div {
  --tw-translate-y: -3px;
  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));
}

.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*='size-']) {
  width: 0.875rem;
  height: 0.875rem;
}

.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>svg:not([class*='size-']) {
  width: 1rem;
  height: 1rem;
}

.\[\&\>svg\]\:absolute>svg {
  position: absolute;
}

.\[\&\>svg\]\:left-4>svg {
  left: 1rem;
}

.\[\&\>svg\]\:top-4>svg {
  top: 1rem;
}

.\[\&\>svg\]\:size-3>svg {
  width: 0.75rem;
  height: 0.75rem;
}

.\[\&\>svg\]\:size-3\.5>svg {
  width: 0.875rem;
  height: 0.875rem;
}

.\[\&\>svg\]\:h-3\.5>svg {
  height: 0.875rem;
}

.\[\&\>svg\]\:w-3\.5>svg {
  width: 0.875rem;
}

.\[\&\>svg\]\:text-amber-300>svg {
  --tw-text-opacity: 1;
  color: rgb(252 211 77 / var(--tw-text-opacity, 1));
}

.\[\&\>svg\]\:text-amber-500>svg {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}

.\[\&\>svg\]\:text-destructive>svg {
  color: hsl(var(--destructive));
}

.\[\&\>svg\]\:text-foreground>svg {
  color: hsl(var(--foreground));
}

.\[\&\>svg\]\:text-muted-foreground>svg {
  color: hsl(var(--muted-foreground));
}

.\[\&\>svg\]\:text-positive>svg {
  color: hsl(var(--positive));
}

.\[\&\>svg\]\:opacity-60>svg {
  opacity: 0.6;
}

.\[\&\>svg\]\:opacity-70>svg {
  opacity: 0.7;
}

.\[\&\>svg\~\*\]\:pl-7>svg~* {
  padding-left: 1.75rem;
}

.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
  border-bottom-width: 0px;
}

.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg {
  --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));
}

.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.\[\&_\[cmdk-group-heading\]\]\:px-3 [cmdk-group-heading] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading] {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.\[\&_\[cmdk-group-heading\]\]\:pb-1\.5 [cmdk-group-heading] {
  padding-bottom: 0.375rem;
}

.\[\&_\[cmdk-group-heading\]\]\:pt-3 [cmdk-group-heading] {
  padding-top: 0.75rem;
}

.\[\&_\[cmdk-group-heading\]\]\:text-\[10px\] [cmdk-group-heading] {
  font-size: 10px;
}

.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading] {
  font-size: 0.75rem;
  line-height: 1rem;
}

.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading] {
  font-weight: 500;
}

.\[\&_\[cmdk-group-heading\]\]\:font-semibold [cmdk-group-heading] {
  font-weight: 600;
}

.\[\&_\[cmdk-group-heading\]\]\:uppercase [cmdk-group-heading] {
  text-transform: uppercase;
}

.\[\&_\[cmdk-group-heading\]\]\:tracking-wider [cmdk-group-heading] {
  letter-spacing: 0.05em;
}

.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading] {
  color: hsl(var(--muted-foreground));
}

.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden]) ~[cmdk-group] {
  padding-top: 0px;
}

.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg {
  height: 1.25rem;
}

.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg {
  width: 1.25rem;
}

.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input] {
  height: 3rem;
}

.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item] {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg {
  height: 1.25rem;
}

.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg {
  width: 1.25rem;
}

.\[\&_p\]\:leading-relaxed p {
  line-height: 1.625;
}

.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*='size-']) {
  width: 0.75rem;
  height: 0.75rem;
}

.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
  width: 1rem;
  height: 1rem;
}

.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-6 svg:not([class*='size-']) {
  width: 1.5rem;
  height: 1.5rem;
}

.\[\&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}

.\[\&_svg\]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}

.\[\&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}

.\[\&_svg\]\:\!text-\[hsl\(var\(--sidebar-primary\)\)\] svg {
  color: hsl(var(--sidebar-primary)) !important;
}

.\[\&_svg\]\:text-\[hsl\(var\(--sidebar-primary\)\)\] svg {
  color: hsl(var(--sidebar-primary));
}

.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}

.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
}

.\[\&_tr\]\:border-border\/40 tr {
  border-color: hsl(var(--border) / 0.4);
}

[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent {
  background-color: transparent;
}

[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent {
  background-color: transparent;
}

[data-slot=tooltip-content] .\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/20 {
  background-color: hsl(var(--background) / 0.2);
}

[data-slot=tooltip-content] .\[\[data-slot\=tooltip-content\]_\&\]\:text-background {
  color: hsl(var(--background));
}

[data-slot=tooltip-content] .dark\:\[\[data-slot\=tooltip-content\]_\&\]\:bg-background\/10:is(.dark *) {
  background-color: hsl(var(--background) / 0.1);
}
