: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: var(--dt-radius-sm);
  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: var(--color-green);
  color: var(--color-bg);
}

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

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

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

.mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: var(--color-bg);
  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: var(--color-panelH);
  border-bottom: 1px solid var(--color-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: var(--color-panelH);
  border-top: 1px solid var(--color-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: var(--color-dim);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.mobile-nav-item:active {
  background-color: var(--color-greenBg);
}

.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: var(--color-green);
  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: var(--color-muted);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background-color: var(--color-panel);
  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: var(--color-borderA);
  border-radius: var(--dt-radius-sm);
  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: var(--color-panelH);
  border: 1px solid var(--color-border);
  border-radius: var(--dt-radius-sm);
  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: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}

.mobile-context-menu-item:active {
  background-color: var(--color-greenBg);
}

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

@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: var(--dt-radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-borderA);
  color: var(--color-text);
  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: var(--dt-radius-sm);
  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: var(--dt-radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-borderA);
  color: var(--color-white);
  outline: none;
}

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

.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;
  }
}
/* ══════════════════════════════════════════════════════════════════════════════
   Global Search / Command Palette — Koyfin-style
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.gs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  animation: gs-fade-in 0.15s ease-out;
}

@keyframes gs-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal ── */
.gs-modal {
  width: 780px;
  max-width: calc(100vw - 32px);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: var(--dt-bg-secondary, #1a1d23);
  border: 1px solid var(--dt-border-secondary, #3a4050);
  border-radius: var(--dt-radius-lg, 8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: gs-slide-in 0.18s ease-out;
}

@keyframes gs-slide-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.gs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-9) var(--space-10) 0;
}

.gs-header__title {
  font-family: var(--dt-font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--dt-text-primary, var(--dt-text-light));
  margin: 0;
  line-height: 1.3;
}

.gs-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--dt-radius-sm, 4px);
  background: transparent;
  color: var(--dt-text-tertiary, var(--dt-text-slate));
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.gs-close-btn:hover {
  background: var(--dt-bg-hover, rgba(255, 255, 255, 0.06));
  color: var(--dt-text-primary, var(--dt-text-light));
}

/* ── Input area ── */
.gs-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-8) var(--space-10) 0;
  padding: var(--space-5) var(--space-7);
  border: 1px solid var(--dt-border-primary, #2a2d35);
  border-radius: var(--dt-radius-md, 6px);
  background: var(--dt-bg-secondary, var(--dt-bg-alt));
  transition: border-color 0.15s ease;
}

.gs-input-wrap:focus-within {
  border-color: var(--dt-accent-blue, var(--dt-accent-blue-soft));
}

.gs-input {
  flex: 1;
  height: 28px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--dt-text-primary, var(--dt-text-light));
  font-family: var(--dt-font-sans);
  font-size: 15px;
  caret-color: var(--dt-accent-blue, var(--dt-accent-blue-soft));
}

.gs-input::-moz-placeholder {
  color: var(--dt-text-disabled, #475569);
}

.gs-input::placeholder {
  color: var(--dt-text-disabled, #475569);
}


.gs-kbd {
  padding: var(--space-1) var(--space-3);
  font-family: var(--dt-font-sans);
  font-size: var(--dt-font-size-xs, 11px);
  color: var(--dt-text-tertiary, var(--dt-text-slate));
  background: var(--dt-bg-tertiary, var(--dt-bg-panel-alt));
  border: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  border-radius: var(--dt-radius-sm, 4px);
  line-height: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ── Filter chips (pill style) ── */
.gs-filters {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-10) 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.gs-filters::-webkit-scrollbar { display: none; }

.gs-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px var(--space-7);
  border-radius: var(--dt-radius-sm, 4px);
  border: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  background: transparent;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  font-size: 13px;
  font-family: var(--dt-font-sans);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
  line-height: 1.4;
}
.gs-filter-chip:hover {
  background: var(--dt-bg-hover, rgba(255, 255, 255, 0.05));
  color: var(--dt-text-primary, var(--dt-text-light));
  border-color: var(--dt-text-tertiary, var(--dt-text-slate));
}
.gs-filter-chip--active {
  background: var(--dt-accent-blue, var(--dt-accent-blue-soft));
  color: #ffffff;
  border-color: var(--dt-accent-blue, var(--dt-accent-blue-soft));
}

/* ── Results area ── */
.gs-results {
  flex: 1;
  overflow-y: auto;
  margin-top: var(--space-4);
}

.gs-results::-webkit-scrollbar {
  width: 4px;
}

.gs-results::-webkit-scrollbar-thumb {
  background: var(--dt-border-secondary, #2a2d35);
  border-radius: 2px;
}

.gs-empty {
  padding: var(--space-12) var(--space-10);
  text-align: center;
  font-family: var(--dt-font-sans);
  font-size: 14px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
}

/* ── Section ── */
.gs-section {
  margin-bottom: 0;
}

.gs-section-label {
  padding: var(--space-6) var(--space-10) var(--space-3);
  font-family: var(--dt-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Result item ── */
.gs-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  padding: var(--space-6) var(--space-10);
  border: none;
  border-bottom: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  outline: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.1s ease;
  text-align: left;
}

.gs-item:last-child {
  border-bottom: none;
}

.gs-item:hover,
.gs-item--active {
  background: var(--dt-bg-hover, rgba(255, 255, 255, 0.07));
}

/* Two-line symbol result layout */
.gs-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}

.gs-item__top-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.gs-item__symbol {
  font-family: var(--dt-font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--dt-text-primary, var(--dt-text-light));
}

.gs-item__flag {
  font-size: 13px;
  line-height: 1;
}

.gs-item__exchange {
  font-family: var(--dt-font-sans);
  font-size: 12px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  font-weight: 400;
}

.gs-item__bottom-line {
  display: flex;
  align-items: center;
}

.gs-item__name {
  font-family: var(--dt-font-sans);
  font-size: 13px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-item__type {
  font-family: var(--dt-font-sans);
  font-size: 13px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  flex-shrink: 0;
  margin-left: auto;
}

/* Single-line items (pages, actions, history, etc.) */
.gs-item__label {
  font-family: var(--dt-font-sans);
  font-size: 15px;
  color: var(--dt-text-primary, var(--dt-text-light));
  line-height: 1.4;
}

.gs-item__meta {
  font-family: var(--dt-font-sans);
  font-size: 13px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  margin-left: auto;
  flex-shrink: 0;
}

.gs-item__badge {
  font-family: var(--dt-font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ── Footer ── */
.gs-footer {
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-10);
  border-top: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  font-family: var(--dt-font-sans);
  font-size: 12px;
  color: var(--dt-text-tertiary, var(--dt-text-slate));
  background: var(--dt-bg-tertiary, rgba(255, 255, 255, 0.02));
}

.gs-footer kbd {
  display: inline-block;
  padding: 1px var(--space-3);
  margin: 0 var(--space-1);
  font-family: var(--dt-font-mono);
  font-size: 11px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  background: var(--dt-bg-secondary, var(--dt-bg-alt));
  border: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  border-radius: var(--dt-radius-sm, 4px);
  line-height: 1.4;
}

.gs-footer__tip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gs-footer__tip strong {
  color: var(--dt-text-secondary, var(--dt-text-muted));
  margin-right: var(--space-1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   Step 2: Drill-Down / Function Picker
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Drill-down header (selected security) ── */
.gs-drilldown-header {
  display: flex;
  align-items: center;
  gap: var(--dt-space-2, var(--space-4));
  padding: var(--space-6) var(--space-10);
  background: var(--dt-bg-tertiary, var(--dt-bg-panel-alt));
  border-bottom: 1px solid var(--dt-border-primary, var(--dt-border-muted));
}

.gs-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--dt-border-secondary, #3a4050);
  border-radius: var(--dt-radius-sm, 4px);
  background: transparent;
  color: var(--dt-text-tertiary, var(--dt-text-dim));
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.gs-back-btn:hover {
  background: var(--dt-bg-hover, rgba(255, 255, 255, 0.06));
  color: var(--dt-text-primary, var(--dt-text-light));
  border-color: var(--dt-accent-blue, var(--dt-accent-blue-soft));
}

.gs-drilldown-symbol {
  font-family: var(--dt-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--dt-text-primary, var(--dt-text-light));
}

.gs-drilldown-name {
  font-family: var(--dt-font-sans);
  font-size: 14px;
  color: var(--dt-text-secondary, var(--dt-text-muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Function code badge ── */
.gs-fn-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: var(--space-1) var(--space-4);
  font-family: var(--dt-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid;
  border-radius: var(--dt-radius-sm, 4px);
  flex-shrink: 0;
}
/* ── 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: var(--dt-bg-secondary, var(--dt-bg-alt));
  border-bottom: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  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: var(--dt-text-primary, #ffffff);
  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: var(--dt-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--dt-accent-blue, var(--dt-accent-blue-soft));
  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: var(--dt-text-secondary, var(--dt-text-muted));
  letter-spacing: 0.04em;
}

.ih-price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dt-text-primary, #ffffff);
  border-radius: var(--dt-radius-sm);
  padding: 1px 3px;
}

.ih-currency {
  font-size: 10px;
  font-weight: 500;
  color: var(--dt-text-tertiary, var(--dt-text-dim));
  text-transform: uppercase;
}

.ih-change {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dt-text-tertiary, var(--dt-text-dim));
}
.ih-change--up { color: var(--dt-positive, #16A34A); }
.ih-change--down { color: var(--dt-negative, #DC2626); }

/* Separator between info blocks */
.ih-sep {
  width: 1px;
  height: 28px;
  background: var(--dt-border-primary, var(--dt-border-muted));
  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: var(--dt-text-primary, #ffffff);
  white-space: nowrap;
}

.ih-info-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--dt-text-tertiary, var(--dt-text-dim));
  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: var(--dt-text-primary, #ffffff);
  font-variant-numeric: tabular-nums;
}

.ih-stat-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--dt-text-tertiary, var(--dt-text-dim));
  letter-spacing: 0.02em;
}

.ih-stat-value--up { color: var(--dt-positive, #16A34A); }
.ih-stat-value--down { color: var(--dt-negative, #DC2626); }

/* ── 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: var(--dt-bg-tertiary, #1F1E23);
  border: 1px solid var(--dt-border-primary, var(--dt-border-muted));
  border-radius: var(--dt-radius-sm);
  color: var(--dt-text-secondary, var(--dt-text-muted));
  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: var(--dt-bg-hover, rgba(255,255,255,0.08));
  color: var(--dt-text-primary, #ffffff);
}

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

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

.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: var(--dt-text-tertiary);
  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(--dt-font-mono);
  color: var(--dt-text-secondary);
}
.ih-extended-hours__pct {
  font-size: 11px;
  font-family: var(--dt-font-mono);
  color: var(--dt-text-tertiary);
}
.ih-extended-hours__pct--up  { color: var(--dt-color-positive, #16A34A); }
.ih-extended-hours__pct--down { color: var(--dt-color-negative, #DC2626); }
/* ============================================================
   copilot.css — dibsTERMINAL Copilot UI (OpenBB-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)
   ========================================================== */
: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: var(--dt-radius-md);
  --ai-radius-sm: var(--dt-radius-sm);
  --ai-radius-xs: var(--dt-radius-sm);

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

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

  /* Text — inherit from terminal theme */
  --ai-text: var(--dt-text-primary);
  --ai-text-secondary: var(--dt-text-secondary);
  --ai-text-tertiary: var(--dt-text-tertiary);
  --ai-text-link: var(--dt-accent-blue);
  --ai-text-success: var(--dt-positive);
  --ai-text-warning: var(--dt-accent-yellow);
  --ai-text-error: var(--dt-negative);

  /* Accent — inherit from terminal theme */
  --ai-accent: var(--dt-accent-blue);
  --ai-accent-hover: var(--dt-accent-blue-hover);
  --ai-accent-subtle: var(--dt-accent-muted);

  /* Shadows — subtle depth to match terminal */
  --ai-shadow-sm: var(--dt-shadow-sm);
  --ai-shadow-md: var(--dt-shadow-md);
  --ai-shadow-lg: var(--dt-shadow-lg);

  /* Focus glow — match terminal */
  --ai-focus-ring: 0 0 0 2px var(--dt-accent-glow);

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

  /* Spacing — inherit from terminal theme */
  --ai-sp-xs: var(--dt-space-1);
  --ai-sp-sm: var(--dt-space-2);
  --ai-sp-md: var(--dt-space-3);
  --ai-sp-lg: var(--dt-space-4);
  --ai-sp-xl: var(--dt-space-6);

  /* Transitions — match terminal */
  --ai-transition: var(--dt-transition-fast);
  --ai-transition-slow: var(--dt-transition-slow);
}

/* ==========================================================
   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: var(--dt-radius-sm);
  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-lg);
  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: var(--dt-radius-sm);
}
.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: rgba(199, 80, 80,0.1);
  border: 1px solid rgba(199, 80, 80,0.2);
  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 (OpenBB-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: rgba(74,144,217,0.12);
  color: var(--ai-accent);
  border-color: rgba(74,144,217,0.2);
}
.dt-ai-citation--widget:hover {
  background: rgba(74,144,217,0.2);
}
.dt-ai-citation--document {
  background: rgba(90, 154, 110,0.12);
  color: var(--ai-text-success);
  border-color: rgba(90, 154, 110,0.2);
}
.dt-ai-citation--document:hover {
  background: rgba(90, 154, 110,0.2);
}
.dt-ai-citation--web {
  background: rgba(251, 191, 36,0.12);
  color: var(--ai-text-warning);
  border-color: rgba(251, 191, 36,0.2);
}
.dt-ai-citation--web:hover {
  background: rgba(251, 191, 36,0.2);
}
.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 {
  background: var(--ai-accent);
  color: var(--color-white);
  border-radius: var(--ai-radius-sm);
}
.dt-ai-input__btn--send:hover {
  background: var(--ai-accent-hover);
}
.dt-ai-input__btn--send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dt-ai-input__btn--stop {
  background: var(--ai-text-error);
  color: var(--color-white);
  border-radius: var(--ai-radius-sm);
}
.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;
}

/* ==========================================================
   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: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) 0;
}
.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: var(--dt-radius-sm);
  overflow: hidden;
}
.dt-ai-panel__activity-progress__fill {
  height: 100%;
  background: var(--ai-accent);
  border-radius: var(--dt-radius-sm);
  transition: width var(--ai-transition-slow);
}
.dt-ai-panel__activity-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: var(--ai-sp-sm);
}
.dt-ai-panel__activity-step {
  display: flex;
  align-items: center;
  gap: var(--ai-sp-sm);
  padding: 3px 0;
  font-size: var(--ai-fs-xs);
  color: var(--ai-text-secondary);
}
.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 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dt-ai-panel__activity-step--completed .dt-ai-panel__activity-step__indicator {
  background: var(--ai-text-success);
}
.dt-ai-panel__activity-step--running .dt-ai-panel__activity-step__indicator {
  background: 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);
}
.dt-ai-panel__activity-step--pending .dt-ai-panel__activity-step__indicator {
  background: var(--ai-text-tertiary);
}
.dt-ai-panel__activity-step__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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);
}

/* ==========================================================
   Section 21: Reasoning Shimmer Indicator
   ========================================================== */
@keyframes dt-reasoning-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes dt-reasoning-dot-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.35); }
}

.dt-reasoning-shimmer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-7);
  border-radius: var(--dt-radius-sm);
  font-size: var(--ai-fs-sm);
  color: var(--ai-text-secondary);
  line-height: 1;
  margin: var(--space-2) 0;
}
.dt-reasoning-shimmer--active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ai-accent) 8%, transparent) 0%,
    color-mix(in srgb, var(--ai-accent) 18%, transparent) 40%,
    color-mix(in srgb, var(--ai-accent) 8%, transparent) 60%,
    color-mix(in srgb, var(--ai-accent) 3%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: dt-reasoning-shimmer 2.4s ease-in-out infinite;
}
.dt-reasoning-shimmer__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-accent);
  flex-shrink: 0;
}
.dt-reasoning-shimmer--active .dt-reasoning-shimmer__dot {
  animation: dt-reasoning-dot-pulse 1.6s ease-in-out infinite;
}
.dt-reasoning-shimmer__label {
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.dt-reasoning-shimmer__bar {
  width: 40px;
  height: 3px;
  border-radius: var(--dt-radius-sm);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ai-accent) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: dt-reasoning-shimmer 1.6s ease-in-out infinite;
  opacity: 0.55;
}
.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 {
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-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) var(--ai-sp-md);
  border-bottom: 1px solid var(--ai-border-light);
  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);
}

/* 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: var(--dt-radius-sm);
  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: rgba(74,144,217,0.25);
}
.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 Button / Input / Select classes
   ========================================================== */
.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: 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);
  font-size: var(--ai-fs-sm);
  font-family: var(--ai-font);
  cursor: pointer;
  transition: all var(--ai-transition);
  white-space: nowrap;
}
.dt-btn-primary {
  background: var(--ai-accent);
  color: var(--color-white);
  border-color: var(--ai-accent);
}
.dt-btn-primary:hover {
  background: var(--ai-accent-hover);
  border-color: var(--ai-accent-hover);
}
.dt-btn-secondary {
  background: var(--ai-bg-elevated);
  color: var(--ai-text);
  border-color: var(--ai-border);
}
.dt-btn-secondary:hover {
  background: var(--ai-bg-hover);
  border-color: var(--ai-text-secondary);
}
.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 — Research Brief (CopilotResearchBrief)
   ========================================================== */
/* Uses .dt-ai-panel__chip, .dt-input, .dt-select, .dt-btn — 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: #ffffff;
    border-color: #3a4050;
  }
}


/* ==========================================================
   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 {
  max-width: 85%;
  background: var(--dt-bg-tertiary);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-xs);
}
.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: var(--dt-radius-sm);
  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);
}

/* ── Action bar ── */
.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);
  padding-top: var(--ai-sp-xs);
  border-top: 1px solid transparent;
}
.dt-ai-msg-actions__sep {
  flex: 1;
}
.dt-ai-msg-row:hover .dt-ai-msg-actions {
  opacity: 1;
  border-top-color: var(--ai-border-light);
}
.dt-ai-msg-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  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--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: var(--color-white);
  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: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) 0;
}
.dt-copilot-followups--input {
  padding: var(--space-3) var(--space-5) var(--space-1);
  gap: var(--space-3);
  border-top: 1px solid var(--dt-border-primary);
}
.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 var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-text-tertiary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  line-height: 1.4;
  font-family: var(--dt-font-sans);
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.dt-copilot-followup-chip:hover {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-primary);
  color: var(--dt-text-primary);
}
.dt-copilot-followup-chip:active {
  background: var(--dt-bg-active);
  border-color: var(--dt-border-secondary);
}

/* ==========================================================
   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: 40px;
  height: 40px;
  border-radius: var(--dt-radius-sm);
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
  font-size: var(--ai-fs-sm);
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--ai-accent) 25%, transparent);
}
.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: var(--color-white);
  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 1fr;
  gap: var(--ai-sp-sm);
  width: 100%;
  max-width: 360px;
  margin-top: var(--ai-sp-sm);
}
.dt-copilot-empty__card {
  display: flex;
  align-items: flex-start;
  gap: var(--dt-space-2);
  padding: var(--dt-space-2) var(--dt-space-3);
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  background: var(--dt-bg-secondary);
  cursor: pointer;
  text-align: left;
  font-size: var(--dt-font-size-sm);
  font-weight: 600;
  color: var(--dt-text-secondary);
  line-height: 1.4;
  transition: all var(--dt-transition-fast);
  font-family: var(--dt-font-sans);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.dt-copilot-empty__card:hover {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-primary);
  color: var(--dt-text-primary);
}
.dt-copilot-empty__card:active {
  background: var(--dt-bg-active);
}
.dt-copilot-empty__card-icon {
  flex-shrink: 0;
  color: var(--ai-accent);
  margin-top: 1px;
}
.dt-copilot-empty__card-label {
  flex: 1;
}

/* ==========================================================
   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(--dt-right-rail-width, 56px);
  bottom: 0;
  z-index: 115;
  max-width: calc(100vw - var(--dt-right-rail-width, 56px));
  height: 100dvh;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  border-left: 1px solid var(--dt-border-primary);
}
.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-btn-icon {
  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-btn-icon:hover {
  background: var(--ai-bg-hover);
  color: var(--ai-text);
}
.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: var(--dt-radius-sm);
}
.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 Research Brief Skeleton
   ========================================================== */
.dt-copilot-skeleton {
  padding: var(--ai-sp-md);
}


/* ==========================================================
   Section 38: CopilotInput — Input area, textarea, buttons
   ========================================================== */
.dt-ai-panel__input-area {
  display: flex;
  flex-direction: column;
  gap: var(--ai-sp-sm);
  padding: var(--ai-sp-sm) var(--ai-sp-md) var(--ai-sp-md);
  border-top: 1px solid var(--dt-border-primary);
  background: var(--ai-bg);
  flex-shrink: 0;
}
.dt-ai-panel__input-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  background: var(--ai-bg-input);
  transition: border-color var(--ai-transition), background var(--ai-transition);
}
.dt-ai-panel__input-wrap:hover {
  border-color: var(--ai-text-tertiary);
}
.dt-ai-panel__input-wrap:focus-within {
  border-color: var(--ai-border-focus);
  background: color-mix(in srgb, var(--ai-bg-input) 88%, var(--ai-bg-elevated));
  box-shadow: var(--ai-focus-ring);
}
.dt-ai-panel__textarea {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 40px;
  max-height: 160px;
  border: none;
  border-radius: calc(var(--ai-radius) - 4px);
  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-4) var(--space-6);
  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);
}
.dt-ai-panel__send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ai-accent);
  border-radius: var(--dt-radius-sm);
  background: var(--ai-accent);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--ai-transition);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.dt-ai-panel__send-btn:hover:not(:disabled) {
  background: var(--ai-accent-hover);
  border-color: var(--ai-accent-hover);
}
.dt-ai-panel__send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.dt-ai-panel__stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ai-text-error);
  border-radius: var(--dt-radius-sm);
  background: var(--ai-text-error);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--ai-transition);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}
.dt-ai-panel__stop-btn:hover {
  opacity: 0.85;
}

/* ==========================================================
   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: var(--dt-radius-sm);
  font-size: var(--ai-fs-xs);
  background: var(--dt-bg-tertiary);
  color: var(--ai-text-secondary);
  border: 1px solid var(--dt-border-primary);
  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;
}
.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: var(--dt-radius-sm);
  border: 1px solid var(--dt-border-primary);
  background: transparent;
  color: var(--dt-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  font-family: var(--dt-font-sans);
  font-weight: 600;
}
.dt-copilot-attachment-picker__trigger:hover:not(:disabled) {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-secondary);
  color: var(--dt-text-primary);
}
.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: var(--dt-radius-sm);
  border: 1px solid var(--dt-border-primary);
  background: transparent;
  color: var(--dt-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  font-family: var(--dt-font-sans);
  font-weight: 600;
}
.dt-copilot-url-picker__trigger:hover:not(:disabled),
.dt-copilot-url-picker__trigger--active {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-secondary);
  color: var(--dt-text-primary);
}
.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(--dt-right-rail-width, 56px) - 28px));
  max-width: calc(100vw - var(--dt-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: var(--color-white);
  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(--dt-right-rail-width, 56px) - 28px));
  max-width: calc(100vw - var(--dt-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: var(--color-white);
}
.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: var(--dt-radius-sm);
  border: 1px solid var(--dt-border-primary);
  background: transparent;
  color: var(--dt-text-secondary);
  font-size: var(--ai-fs-xs);
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  font-family: var(--dt-font-sans);
  font-weight: 600;
}
.dt-copilot-templates__trigger:hover:not(:disabled),
.dt-copilot-templates__trigger--active {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-secondary);
  color: var(--dt-text-primary);
}
.dt-copilot-templates__panel {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: var(--space-3);
  width: min(320px, calc(100vw - var(--dt-right-rail-width, 56px) - 28px));
  max-height: 360px;
  max-width: calc(100vw - var(--dt-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: Research Brief 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 (legacy class)
   ========================================================== */
.dt-copilot-citations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ai-sp-xs);
  margin-top: var(--ai-sp-sm);
}
.dt-copilot-citation-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);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ai-transition);
  text-decoration: none;
  border: 1px solid var(--ai-border-light);
  background: var(--ai-bg-badge);
  color: var(--ai-text-secondary);
}
.dt-copilot-citation-chip:hover {
  border-color: var(--ai-accent);
  color: var(--ai-text);
}

/* ── 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: var(--dt-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;
}
/* ══════════════════════════════════════════════════════════════════════════════
   Design System for dibsTERMINAL — shadcn zinc dark theme
   Clean, modern design based on shadcn/ui New York preset
   ══════════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Color Palette — zinc neutral (shadcn-inspired) ── */
  --dt-bg-primary: #09090b;
  --dt-bg-secondary: #09090b;
  --dt-bg-tertiary: #18181b;
  --dt-bg-hover: rgba(255, 255, 255, 0.04);
  --dt-bg-active: rgba(255, 255, 255, 0.07);
  --dt-bg-input: rgba(255, 255, 255, 0.03);

  /* Spec-named background aliases */
  --bg-base: var(--dt-bg-primary);
  --bg-surface: var(--dt-bg-secondary);
  --bg-elevated: var(--dt-bg-tertiary);
  --bg-hover: var(--dt-bg-hover);
  --bg-selected: var(--dt-bg-active);
  --bg-input: var(--dt-bg-input);
  --dt-bg: var(--dt-bg-primary);
  --dt-bg-surface: var(--dt-bg-secondary);

  /* Borders — zinc-800, clean and visible */
  --dt-border-primary: #27272a;
  --dt-border-secondary: #3f3f46;
  --dt-border-strong: #52525b;
  --dt-border-focus: #a1a1aa;

  /* Spec-named border aliases */
  --border-subtle: var(--dt-border-primary);
  --border-default: var(--dt-border-secondary);
  --border-strong: var(--dt-border-strong);
  --dt-border-subtle: var(--dt-border-primary);
  --dt-border: var(--dt-border-primary);

  /* Text — clean zinc contrast */
  --dt-text-primary: #fafafa;
  --dt-text-secondary: #a1a1aa;
  --dt-text-tertiary: #71717a;
  --dt-text-disabled: #3f3f46;
  --dt-text-inverse: #09090b;

  /* Spec-named text aliases */
  --text-primary: var(--dt-text-primary);
  --text-secondary: var(--dt-text-secondary);
  --text-muted: var(--dt-text-tertiary);
  --text-inverse: var(--dt-text-inverse);
  --dt-text: var(--dt-text-primary);

  /* Accent — neutral white/zinc (shadcn standard) */
  --dt-accent-blue: #fafafa;
  --dt-accent-blue-hover: #d4d4d8;
  --dt-accent-muted: rgba(250, 250, 250, 0.10);
  --dt-accent-glow: rgba(250, 250, 250, 0.08);
  --dt-accent-green: #22c55e;
  --dt-accent-red: #ef4444;
  --dt-accent-yellow: #eab308;
  --dt-accent-orange: #f97316;
  --dt-accent-purple: #a855f7;
  --dt-accent-cyan: #06b6d4;

  /* Glow effects — subtle, no neon */
  --dt-glow-cyan: rgba(161, 161, 170, 0.12);
  --dt-glow-cyan-strong: rgba(161, 161, 170, 0.20);
  --dt-glow-green: rgba(34, 197, 94, 0.12);
  --dt-glow-purple: rgba(168, 85, 247, 0.12);
  --dt-surface-cyan: rgba(161, 161, 170, 0.04);
  --dt-surface-green: rgba(34, 197, 94, 0.04);
  --dt-scanline: transparent;

  /* Neon accent tokens — now muted */
  --dt-neon-cyan: #a1a1aa;
  --dt-neon-green: #22c55e;
  --dt-neon-purple: #a855f7;

  /* Spec-named accent aliases */
  --accent: var(--dt-accent-blue);
  --accent-hover: var(--dt-accent-blue-hover);
  --accent-muted: var(--dt-accent-muted);
  --accent-glow: var(--dt-accent-glow);

  /* Financial colors — standard, not neon */
  --dt-positive: #22c55e;
  --dt-positive-dim: rgba(34, 197, 94, 0.10);
  --dt-negative: #ef4444;
  --dt-negative-dim: rgba(239, 68, 68, 0.10);
  --dt-neutral: #71717a;
  --dt-unchanged: #52525b;

  /* Spec-named financial aliases */
  --positive: var(--dt-positive);
  --positive-dim: var(--dt-positive-dim);
  --negative: var(--dt-negative);
  --negative-dim: var(--dt-negative-dim);
  --neutral: var(--dt-neutral);

  /* Color groups — muted palette */
  --dt-group-1: #3b82f6;
  --dt-group-2: #22c55e;
  --dt-group-3: #f97316;
  --dt-group-4: #a855f7;
  --dt-group-5: #06b6d4;
  --dt-group-6: #ef4444;

  /* Chart palette — clean colors */
  --chart-1: #3b82f6;
  --chart-2: #22c55e;
  --chart-3: #f97316;
  --chart-4: #a855f7;
  --chart-5: #06b6d4;
  --chart-6: #ef4444;
  --chart-7: #eab308;
  --chart-8: #10b981;

  /* Typography — Inter as primary (Notion-style clean sans-serif) */
  --dt-font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --dt-font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'PT Mono', 'Liberation Mono', Courier, monospace;
  --dt-font-size-xs: 12px;
  --dt-font-size-sm: 13px;
  --dt-font-size-base: 14px;
  --dt-font-size-md: 15px;
  --dt-font-size-lg: 16px;
  --dt-font-size-xl: 18px;
  --dt-font-size-2xl: 24px;
  --dt-font-size-3xl: 30px;
  --dt-font-size-4xl: 40px;

  /* Spacing — existing --dt-space-* kept for backward compat */
  --dt-space-0: 2px;
  --dt-space-half: 3px;
  --dt-space-1: 4px;
  --dt-space-2: 8px;
  --dt-space-3: 12px;
  --dt-space-4: 16px;
  --dt-space-5: 20px;
  --dt-space-6: 24px;
  --dt-space-8: 32px;
  --dt-space-10: 40px;
  --dt-space-12: 48px;

  /* Spec spacing scale */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;

  /* Border radii — modern rounded */

  /* Shadows — subtle, clean */
  --dt-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --dt-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
  --dt-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
  --dt-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
  --dt-shadow-glow-blue: 0 0 0 2px rgba(161, 161, 170, 0.15);
  --dt-shadow-glow-cyan: none;
  --dt-shadow-glow-green: none;

  /* Theme-aware utility vars */
  --dt-grid-line: rgba(255,255,255,0.05);
  --dt-nav-scrolled-bg: rgba(9, 9, 11, 0.95);
  --dt-feature-hover-bg: rgba(255, 255, 255, 0.04);
  --dt-overlay: rgba(0, 0, 0, 0.60);

  /* Border radii — modern rounded */
  --dt-radius-xs: 4px;
  --dt-radius-sm: 6px;
  --dt-radius-md: 8px;
  --dt-radius-lg: 10px;
  --dt-radius-xl: 12px;

  /* Layout — refined proportions */
  --dt-sidebar-width: 220px;
  --dt-sidebar-collapsed-width: 50px;
  --dt-right-rail-width: 50px;
  --dt-topbar-height: 48px;
  --dt-widget-header-height: 38px;
  --dt-statusbar-height: 24px;

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

  /* Transitions — smooth OpenBB-like feel */
  --dt-transition-fast: 140ms ease;
  --dt-transition-normal: 200ms ease-out;
  --dt-transition-slow: 320ms ease;

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

  /* ── Extended palette — zinc tokens ── */
  /* Text variants */
  --dt-text-muted: #71717a;
  --dt-text-dim: #52525b;
  --dt-text-slate: #a1a1aa;
  --dt-text-bright: #fafafa;
  --dt-text-light: #a1a1aa;
  --dt-text-on-accent: #09090b;

  /* Background variants */
  --dt-bg-deep: #050505;
  --dt-bg-alt: #0a0a0a;
  --dt-bg-panel-alt: #0f0f11;

  /* Border variant */
  --dt-border-muted: #27272a;

  /* Accent variants */
  --dt-accent-blue-soft: rgba(59, 130, 246, 0.12);
  --dt-accent-blue-mid: #3b82f6;
  --dt-accent-green-alt: #16a34a;
  --dt-accent-green-dark: #166534;
  --dt-accent-amber: #d97706;

  /* ── Map design-token vars → existing --color-* vars for backward compat ── */
  --color-bg: var(--dt-bg-primary);
  --color-panel: var(--dt-bg-secondary);
  --color-panelH: var(--dt-bg-tertiary);
  --color-border: var(--dt-border-primary);
  --color-borderA: var(--dt-border-secondary);
  --color-borderF: var(--dt-accent-blue);
  --color-text: var(--dt-text-primary);
  --color-dim: var(--dt-text-secondary);
  --color-muted: var(--dt-text-tertiary);
  --color-white: #ffffff;
  --color-green: var(--dt-positive);
  --color-greenD: var(--dt-accent-green-dark);
  --color-greenBg: rgba(22, 163, 74, 0.08);
  --color-greenBgS: rgba(22, 163, 74, 0.15);
  --color-red: var(--dt-negative);
  --color-redBg: rgba(220, 38, 38, 0.08);
  --color-redBgS: rgba(220, 38, 38, 0.15);
  --color-yellow: var(--dt-accent-yellow);
  --color-yellowBg: rgba(234, 88, 12, 0.08);
  --color-yellowBgS: rgba(234, 88, 12, 0.15);
  --color-cyan: var(--dt-accent-cyan);
  --color-blue: #3b82f6;
  --color-purple: var(--dt-accent-purple);
  --color-orange: var(--dt-accent-orange);
  --color-accent: var(--dt-accent-blue);
  --color-titleActive: var(--dt-bg-secondary);
  --color-titleInactive: var(--dt-bg-secondary);
  --color-bevelLight: rgba(255, 255, 255, 0.04);
  --color-bevelDark: var(--dt-bg-primary);
  --color-statusBg: var(--dt-bg-secondary);

  /* Sidebar/topbar — clean zinc */
  --dt-sidebar-bg: #09090b;
  --dt-sidebar-border: #27272a;
  --dt-sidebar-text: #a1a1aa;
  --dt-sidebar-text-active: #fafafa;
  --dt-sidebar-hover: rgba(255, 255, 255, 0.04);
  --dt-sidebar-active-bg: rgba(255, 255, 255, 0.06);
  --dt-sidebar-active-accent: #fafafa;
  --dt-sidebar-section-label: #71717a;
  --dt-topbar-bg: #09090b;
  --dt-topbar-border: #27272a;
  --dt-topbar-text: var(--dt-text-primary);
  --dt-content-bg: var(--dt-bg-primary);
}

::-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 — OpenBB
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  background: var(--dt-bg-primary);
  color: var(--dt-text-primary);
  font-family: var(--dt-font-sans);
  font-size: var(--dt-font-size-base);
  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-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  scrollbar-width: thin;
  scrollbar-color: var(--dt-border-secondary) transparent;
}

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

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.10); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.20); }
::-webkit-scrollbar-corner { background: transparent; }


/* ═══════════════════════════════════════════════════════════════════════════
   Data Table — OpenBB database-view style
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--dt-font-size-sm);
  line-height: 1.5;
}

.dt-table th {
  padding: 8px 12px;
  text-align: left;
  color: var(--dt-text-tertiary);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--dt-border-primary);
  background: transparent;
  position: sticky;
  top: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
}

.dt-table th:hover { color: var(--dt-text-secondary); }
.dt-table th.sorted { color: var(--dt-text-primary); }

.dt-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--dt-border-primary);
  white-space: nowrap;
  vertical-align: middle;
  color: var(--dt-text-primary);
  transition: background 80ms ease;
}

.dt-table tr:hover td {
  background: var(--dt-bg-hover);
}

.dt-table tr:hover td:first-child {
  box-shadow: none;
}
.dt-table tr.selected td { background: var(--dt-bg-active); }

.dt-table .positive { color: var(--dt-positive); }
.dt-table .negative { color: var(--dt-negative); }
.dt-table .neutral  { color: var(--dt-neutral); }

.dt-table .numeric {
  text-align: right;
  font-family: var(--dt-font-mono);
  font-size: var(--dt-font-size-xs);
  font-variant-numeric: tabular-nums;
}
.dt-table .right, .dt-table th.right { text-align: right; }

.dt-table .symbol-col { font-weight: 600; color: var(--dt-text-primary); }

.dt-table .company-name {
  color: var(--dt-text-tertiary);
  font-size: var(--dt-font-size-xs);
  margin-left: var(--dt-space-1);
}

/* Dense table variant for data-heavy views */
.dt-table--dense th,
.dt-table--dense td {
  padding: var(--space-2) var(--space-4);
  font-size: var(--dt-font-size-xs);
}

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

@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: var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
}


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

.dt-widget {
  background: var(--dt-bg-secondary);
  border: 1px solid var(--dt-border-primary);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.dt-widget:focus-within {
  border-color: var(--dt-border-secondary);
}

.dt-widget-header {
  height: var(--dt-widget-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--dt-space-4);
  border-bottom: 1px solid var(--dt-border-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--dt-text-primary);
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  gap: var(--dt-space-3);
  background: transparent;
  letter-spacing: -0.01em;
  text-transform: none;
}

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

.dt-widget-header-title {
  display: flex;
  align-items: center;
  gap: var(--dt-space-2);
  min-width: 0;
}

.dt-widget-header-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-widget-header-actions {
  display: flex;
  align-items: center;
  gap: var(--dt-space-1);
  flex-shrink: 0;
}

.dt-widget-body {
  flex: 1;
  overflow: auto;
  padding: var(--dt-space-4);
}

.dt-widget-body.no-pad { padding: 0; }


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

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

.dt-shell--collapsed {
  grid-template-columns:
    var(--dt-sidebar-collapsed-width)
    minmax(0, 1fr)
    minmax(0, var(--dt-right-dock-width, 0px))
    var(--dt-right-rail-width, 56px);
}

.dt-shell__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.dt-shell__right-dock {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  z-index: 0;
}

.dt-shell__right-dock--overlay {
  overflow: visible;
  z-index: 1300;
}

.dt-shell__right-dock--expanded {
  position: fixed;
  right: var(--dt-right-rail-width, 56px);
  top: 0;
  width: 65vw;
  height: 100vh;
  z-index: 100;
  overflow: visible;
  box-shadow: -1px 0 0 var(--dt-border-primary);
}


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

.dt-sidebar {
  display: flex;
  flex-direction: column;
  width: var(--dt-sidebar-width);
  background: var(--dt-sidebar-bg);
  border-right: 1px solid var(--dt-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(--dt-sidebar-collapsed-width); }

.dt-sidebar__logo {
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--dt-topbar-height);
  padding: 0 12px 0 14px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--dt-sidebar-border);
}

.dt-sidebar__logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.dt-sidebar__logo-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--dt-text-primary) !important;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dt-sidebar__logo-text {
  font-weight: 400;
  color: var(--dt-text-tertiary) !important;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  font-size: 10px;
}

.dt-sidebar__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-4) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--dt-border-secondary) transparent;
}

.dt-sidebar__section { margin-bottom: var(--space-2); }

.dt-sidebar__section + .dt-sidebar__section {
  margin-top: var(--space-4);
  padding-top: var(--space-6);
  position: relative;
}

/* Visible section divider line */
.dt-sidebar__section + .dt-sidebar__section::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--dt-border-primary);
  margin: 0 var(--space-6) var(--space-6);
}

.dt-sidebar__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dt-text-tertiary);
  opacity: 0.8;
  white-space: nowrap;
}

.dt-sidebar__section-header--mixed-case {
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dt-text-secondary);
  opacity: 1;
}

.dt-sidebar__section-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-sidebar-section-label);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dt-sidebar__section-header button:hover {
  background: var(--dt-sidebar-hover);
  color: var(--dt-sidebar-text-active);
}

/* ── Collapsible section animation ─────────────────────────────────── */
.dt-sidebar__collapsible {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 220ms ease-out, opacity 180ms ease-out;
  opacity: 1;
  overflow: hidden;
}
.dt-sidebar__collapsible--closed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.dt-sidebar__collapsible-inner {
  overflow: hidden;
  min-height: 0;
}

/* Chevron rotation */
.dt-sidebar__chevron {
  transition: transform 220ms ease-out;
  flex-shrink: 0;
  color: var(--dt-text-secondary);
}
.dt-sidebar__chevron--collapsed {
  transform: rotate(-90deg);
}

.dt-sidebar-section { padding: var(--dt-space-2) 0; }

.dt-sidebar-title {
  padding: var(--dt-space-1) var(--dt-space-4);
  font-size: var(--dt-font-size-xs);
  letter-spacing: 0.02em;
  color: var(--dt-text-tertiary);
  font-weight: 500;
  opacity: 0.8;
}

.dt-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--dt-space-3);
  padding: 6px var(--dt-space-4);
  color: var(--dt-text-secondary);
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  font-size: var(--dt-font-size-sm);
  font-weight: 400;
  border-radius: var(--dt-radius-sm);
  text-decoration: none;
  margin: 1px 8px;
}

.dt-sidebar-item:hover {
  background: var(--dt-sidebar-hover);
  color: var(--dt-text-primary);
}

.dt-sidebar-item.active {
  background: var(--dt-sidebar-active-bg);
  color: var(--dt-text-primary);
  font-weight: 500;
}

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

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

.dt-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 28px;
  padding: 0 8px;
  margin: 1px 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--dt-sidebar-text);
  cursor: pointer;
  border-radius: 6px;
  transition: background 100ms ease, color 100ms ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border: none;
  background: none;
  width: calc(100% - 12px);
  text-align: left;
  box-sizing: border-box;
  letter-spacing: -0.008em;
}

.dt-sidebar__item:hover {
  background: var(--dt-sidebar-hover);
  color: var(--dt-sidebar-text-active);
}

.dt-sidebar__item--active {
  background: var(--dt-sidebar-active-bg);
  color: var(--dt-text-primary);
  font-weight: 500;
}

.dt-sidebar__item--locked {
  color: var(--dt-text-secondary);
  opacity: 0.88;
}

.dt-sidebar__item--locked:hover {
  color: var(--dt-text-primary);
}

.dt-sidebar__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 16px;
}
.dt-sidebar__item-icon svg { width: 18px; height: 18px; }
.dt-sidebar__item--indent .dt-sidebar__item-icon { width: 14px; height: 14px; }
.dt-sidebar__item--indent .dt-sidebar__item-icon svg { width: 14px; height: 14px; }

.dt-sidebar__item-label {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-weight: 400;
}

.dt-sidebar__item-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.dt-sidebar__item-subtitle {
  display: none;
}

.dt-sidebar__item-code {
  margin-left: auto;
  font-size: 10px;
  color: var(--dt-text-tertiary);
  font-family: var(--dt-font-mono);
  letter-spacing: 0.05em;
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-sm);
  padding: var(--space-1) var(--space-3);
  background: transparent;
  line-height: 1.3;
  flex-shrink: 0;
}

.dt-sidebar__item-lock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 9px;
  font-family: var(--dt-font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dt-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--dt-radius-sm);
  padding: 1px var(--space-3);
  line-height: 1.2;
}

.dt-sidebar__empty {
  padding: var(--space-3) var(--space-8) var(--space-5);
  font-size: 11px;
  color: var(--dt-text-tertiary);
}

.dt-sidebar__footer {
  border-top: 1px solid var(--dt-sidebar-border);
  padding: var(--space-4);
  flex-shrink: 0;
}

.dt-sidebar__collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-sidebar-text);
  cursor: pointer;
  transition: background 0.15s;
}

.dt-sidebar__collapse-btn:hover { background: var(--dt-sidebar-hover); }

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

.dt-shell--collapsed .dt-sidebar__logo-text,
.dt-shell--collapsed .dt-sidebar__section-header,
.dt-shell--collapsed .dt-sidebar__item-label,
.dt-shell--collapsed .dt-sidebar__item-subtitle,
.dt-shell--collapsed .dt-sidebar__item-code,
.dt-shell--collapsed .dt-sidebar__item-body {
  display: none !important;
}

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

.dt-shell--collapsed .dt-sidebar__logo-brand {
  display: none;
}

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

.dt-shell--collapsed .dt-sidebar__item {
  padding: 0;
  margin: 1px var(--space-2);
  width: calc(100% - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--dt-radius-sm);
}

.dt-shell--collapsed .dt-sidebar__section-header {
  display: none;
}

.dt-sidebar__section-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3) 0 var(--space-1);
}


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

.dt-topbar {
  height: var(--dt-topbar-height);
  background: var(--dt-topbar-bg);
  border-bottom: 1px solid var(--dt-topbar-border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6) 0 0;
  gap: var(--space-3);
  flex-shrink: 0;
  min-width: 0;
}

/* Real-time clock */
.dt-topbar__clock {
  font-size: 11px;
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--dt-text-tertiary);
  letter-spacing: 0.06em;
  padding: 2px var(--space-4);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Hamburger / sidebar toggle */
.dt-topbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.dt-topbar__hamburger:hover {
  background: var(--dt-bg-hover);
  color: var(--dt-text-primary);
}

/* Logo */
.dt-topbar__logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--dt-text-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: var(--space-2);
}
.dt-topbar__logo-k { color: var(--dt-text-primary); }

/* Search button — centered (see consolidated rule below) */
.dt-topbar__search-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-topbar__search-kbd {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--dt-radius-sm);
  border: 1px solid var(--dt-border-secondary);
  background: rgba(255,255,255,0.04);
  color: var(--dt-text-tertiary);
  font-family: inherit;
  flex-shrink: 0;
}

/* Flexible spacer */
.dt-topbar__spacer { display: none; }

/* Help Center link */
.dt-topbar__help-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--dt-radius-sm);
  color: var(--dt-text-secondary);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.12s, background 0.12s;
}
.dt-topbar__help-link:hover {
  color: var(--dt-text-primary);
  background: var(--dt-bg-hover);
}

/* Icon buttons */
.dt-topbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.dt-topbar__icon-btn:hover {
  background: var(--dt-bg-hover);
  color: var(--dt-text-primary);
}

/* User avatar circle */
.dt-topbar__avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #27272a;
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #3f3f46;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.dt-topbar__avatar:hover {
  opacity: 0.90;
  transform: scale(1.06);
}

.dt-topbar__avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Legacy breadcrumb/code (kept for compatibility) */
.dt-topbar__breadcrumb {
  font-size: 14px;
  font-weight: 500;
  color: var(--dt-topbar-text);
  white-space: nowrap;
}
.dt-topbar__title-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.dt-topbar__subline {
  color: var(--dt-text-tertiary);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-topbar__code {
  padding: 3px 7px;
  border-radius: var(--dt-radius-sm);
  border: 1px solid var(--dt-border-secondary);
  color: var(--dt-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-family: var(--dt-font-mono);
  letter-spacing: 0.08em;
}

/* ── Search button (centered in TopBar) ── */
.dt-topbar__search-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 6px var(--space-5);
  border: 1px solid var(--dt-border-primary);
  border-radius: 8px;
  background: transparent;
  color: var(--dt-text-tertiary);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  width: 460px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.dt-topbar__search-btn:hover {
  border-color: var(--dt-border-secondary);
  background: var(--dt-bg-hover);
  color: var(--dt-text-secondary);
}

.dt-topbar__search-btn kbd {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--dt-border-primary);
  background: transparent;
  color: var(--dt-text-tertiary);
  font-family: inherit;
}

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

.dt-statusbar {
  height: var(--dt-statusbar-height);
  background: var(--dt-bg-secondary);
  border-top: 1px solid var(--dt-border-primary);
  display: flex;
  align-items: center;
  padding: 0 var(--dt-space-3);
  gap: var(--dt-space-4);
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-tertiary);
  flex-shrink: 0;
}

.dt-statusbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dt-positive);
  animation: dt-live-pulse 2s ease-in-out infinite;
}

@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: var(--dt-border-secondary) transparent;
}
.dt-content--no-pad {
  padding: 0;
  overflow: hidden;
}

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


/* ═══════════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dt-space-2);
  padding: var(--dt-space-2) var(--dt-space-3);
  border-radius: var(--dt-radius-md);
  font-size: var(--dt-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
  font-family: var(--dt-font-sans);
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dt-btn:focus-visible {
  outline: 2px solid rgba(161, 161, 170, 0.50);
  outline-offset: 1px;
}

/* 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;
}

.dt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.dt-btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Primary Button — shadcn white */
.dt-btn-primary {
  background: #fafafa;
  color: #09090b;
  border-color: #fafafa;
}

.dt-btn-primary:hover:not(:disabled) {
  background: #d4d4d8;
  border-color: #d4d4d8;
}

.dt-btn-primary:active:not(:disabled) {
  background: #a1a1aa;
  border-color: #a1a1aa;
  transform: scale(0.98);
}

/* Secondary Button */
.dt-btn-secondary {
  background: var(--dt-bg-tertiary);
  color: var(--dt-text-primary);
  border-color: var(--dt-border-secondary);
}

.dt-btn-secondary:hover:not(:disabled) {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-primary);
  color: var(--dt-text-primary);
}

.dt-btn-secondary:active:not(:disabled) {
  background: var(--dt-bg-active);
  border-color: var(--dt-border-secondary);
}

/* Ghost Button */
.dt-btn-ghost {
  background: transparent;
  color: var(--dt-text-secondary);
  border-color: var(--dt-border-primary);
}

.dt-btn-ghost:hover:not(:disabled) {
  background: var(--dt-bg-hover);
  border-color: var(--dt-border-secondary);
  color: var(--dt-text-primary);
}

.dt-btn-ghost:active:not(:disabled) {
  background: var(--dt-bg-active);
}

/* Danger Button */
.dt-btn-danger {
  background: rgba(232,69,60,0.15);
  color: var(--dt-negative);
  border-color: rgba(232,69,60,0.4);
}

.dt-btn-danger:hover:not(:disabled) {
  background: rgba(232,69,60,0.25);
  border-color: rgba(232,69,60,0.6);
  color: #fff;
}

.dt-btn-danger:active:not(:disabled) {
  background: rgba(232,69,60,0.35);
  transform: scale(0.98);
}

.dt-btn-icon {
  padding: var(--dt-space-1);
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-text-secondary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dt-transition-fast);
}
.dt-btn-icon:hover { background: var(--dt-bg-hover); color: var(--dt-text-primary); }

.dt-btn-sm { padding: var(--space-1) var(--dt-space-2); font-size: var(--dt-font-size-xs); }
.dt-btn-lg { padding: var(--dt-space-2) var(--dt-space-5); font-size: var(--dt-font-size-md); }


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

.dt-input {
  background: var(--dt-bg-input);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-md);
  padding: var(--dt-space-2) var(--dt-space-3);
  color: var(--dt-text-primary);
  font-size: var(--dt-font-size-sm);
  font-family: var(--dt-font-sans);
  outline: none;
  transition: all var(--dt-transition-fast);
  width: 100%;
}

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

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

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

.dt-input::-moz-placeholder { color: var(--dt-text-disabled); }

.dt-input::placeholder { color: var(--dt-text-disabled); }
.dt-input-sm { padding: var(--space-1) var(--dt-space-2); font-size: var(--dt-font-size-xs); }

.dt-input-search {
  background: var(--dt-bg-input);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-md);
  padding: var(--dt-space-2) var(--dt-space-3) var(--dt-space-2) 36px;
  color: var(--dt-text-primary);
  font-size: var(--dt-font-size-sm);
  font-family: var(--dt-font-sans);
  outline: none;
  width: 100%;
  transition: all var(--dt-transition-fast);
}

.dt-input-search:hover {
  border-color: var(--dt-border-secondary);
}

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

.dt-select {
  background: var(--dt-bg-input);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-md);
  padding: var(--dt-space-2) var(--dt-space-3);
  padding-right: var(--space-12);
  color: var(--dt-text-primary);
  font-size: var(--dt-font-size-sm);
  font-family: var(--dt-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 var(--dt-transition-fast);
}

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

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

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

/* Toggle Switch */
.dt-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dt-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dt-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--dt-bg-tertiary);
  border: 1px solid var(--dt-border-primary);
  border-radius: 12px;
  position: relative;
  transition: all var(--dt-transition-fast);
}

.dt-toggle input:checked + .dt-toggle-track {
  background: var(--dt-positive);
  border-color: var(--dt-positive);
}

.dt-toggle input:focus + .dt-toggle-track {
  border-color: var(--dt-border-strong);
}

.dt-toggle-thumb {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dt-transition-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dt-toggle input:checked + .dt-toggle-track .dt-toggle-thumb {
  transform: translateX(20px);
}

.dt-toggle-label {
  margin-left: var(--dt-space-2);
  font-size: var(--dt-font-size-sm);
  color: var(--dt-text-primary);
}


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

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

.dt-badge-green  { background: rgba(77,168,125,0.12);  color: #4da87d; }
.dt-badge-red    { background: rgba(224,84,81,0.12);    color: #e05451; }
.dt-badge-blue   { background: rgba(35,131,226,0.12);   color: #2383e2; }
.dt-badge-yellow { background: rgba(217,170,84,0.12);   color: #d9aa54; }
.dt-badge-orange { background: rgba(208,123,77,0.12);   color: #d07b4d; }
.dt-badge-purple { background: rgba(144,101,176,0.12);  color: #9065b0; }
.dt-badge-cyan   { background: rgba(91,175,214,0.12);   color: #5bafd6; }
.dt-badge-gray   { background: rgba(255,255,255,0.06);  color: rgba(255,255,255,0.55); }

.dt-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--dt-space-1);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--dt-radius-sm);
  font-size: var(--dt-font-size-xs);
  font-weight: 500;
  background: var(--dt-bg-tertiary);
  color: var(--dt-text-secondary);
  border: 1px solid var(--dt-border-primary);
}

.dt-chip.active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--dt-text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}


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

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

.dt-tab {
  padding: var(--dt-space-2) var(--dt-space-4);
  font-size: var(--dt-font-size-sm);
  color: var(--dt-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: var(--dt-radius-sm) var(--dt-radius-sm) 0 0;
  transition: all var(--dt-transition-fast);
  font-weight: 500;
  white-space: nowrap;
}

.dt-tab:hover {
  color: var(--dt-text-primary);
  background: var(--dt-bg-hover);
}

.dt-tab.active {
  color: var(--dt-text-primary);
  border-bottom-color: var(--dt-text-primary);
}

.dt-tabs-pill {
  display: flex;
  gap: var(--dt-space-1);
  padding: var(--dt-space-1);
  background: var(--dt-bg-primary);
  border-radius: var(--dt-radius-md);
}

.dt-tab-pill {
  padding: var(--dt-space-1) var(--dt-space-3);
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-tertiary);
  cursor: pointer;
  border-radius: var(--dt-radius-sm);
  transition: all var(--dt-transition-fast);
  font-weight: 500;
}

.dt-tab-pill:hover { color: var(--dt-text-primary); }

.dt-tab-pill.active {
  background: var(--dt-bg-tertiary);
  color: var(--dt-text-primary);
}


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

.dt-dropdown {
  background: var(--dt-bg-secondary);
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-md);
  box-shadow: var(--dt-shadow-lg);
  padding: 4px;
  min-width: 180px;
  z-index: 1000;
}

.dt-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--dt-space-3);
  padding: 6px 10px;
  font-size: var(--dt-font-size-sm);
  color: var(--dt-text-secondary);
  cursor: pointer;
  transition: all var(--dt-transition-fast);
  border-radius: var(--dt-radius-sm);
}

.dt-dropdown-item:hover {
  background: var(--dt-bg-hover);
  color: var(--dt-text-primary);
}

.dt-dropdown-item.active { color: var(--dt-text-primary); }

.dt-dropdown-divider {
  height: 1px;
  background: var(--dt-border-primary);
  margin: var(--dt-space-1) 0;
}

.dt-dropdown-header {
  padding: var(--dt-space-1) var(--dt-space-3);
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}


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

.dt-tooltip {
  background: var(--dt-bg-secondary);
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  padding: 4px 10px;
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-primary);
  box-shadow: var(--dt-shadow-md);
  max-width: 300px;
  z-index: 1100;
}


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

.dt-overlay {
  background: rgba(0,0,0,0.5);
}

.dt-modal {
  background: var(--dt-bg-secondary);
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-xl);
  box-shadow: var(--dt-shadow-xl);
  max-width: 560px;
  width: 90vw;
}

.dt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  font-size: var(--dt-font-size-lg);
  font-weight: 600;
  color: var(--dt-text-primary);
}

.dt-modal-body { padding: 12px 24px 20px; }

.dt-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--dt-space-2);
  padding: var(--dt-space-3) var(--dt-space-4);
  border-top: 1px solid var(--dt-border-primary);
}


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

.dt-card {
  background: var(--dt-bg-secondary);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-lg);
  padding: var(--dt-space-4);
}

.dt-card-header {
  font-size: var(--dt-font-size-sm);
  font-weight: 600;
  color: var(--dt-text-tertiary);
  margin-bottom: var(--dt-space-3);
  letter-spacing: 0;
}

.dt-card-metric {
  font-size: var(--dt-font-size-2xl);
  font-weight: 700;
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--dt-text-primary);
}

.dt-card-metric-sm {
  font-size: var(--dt-font-size-lg);
  font-weight: 600;
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
}


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

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

.dt-price-lg { font-size: var(--dt-font-size-xl); font-weight: 700; }

.dt-pct-change {
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--dt-font-size-xs);
  font-weight: 500;
  padding: 1px var(--space-2);
  border-radius: var(--dt-radius-sm);
}

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

.dt-volume {
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-tertiary);
}

.dt-sparkline-container {
  display: inline-flex;
  align-items: center;
  height: 24px;
  width: 80px;
}

.dt-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dt-font-mono);
  font-size: var(--dt-font-size-xs);
  font-weight: 500;
  border-radius: var(--dt-radius-sm);
  padding: var(--space-1) var(--space-2);
}

.dt-ticker-strip {
  display: flex;
  gap: var(--dt-space-4);
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-secondary);
  padding: var(--dt-space-1) var(--dt-space-3);
  background: var(--dt-bg-primary);
  border-bottom: 1px solid var(--dt-border-primary);
}

.dt-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--dt-space-2);
  flex-shrink: 0;
}

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


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

.dt-watchlist-row {
  display: flex;
  align-items: center;
  padding: var(--dt-space-1) var(--dt-space-3);
  gap: var(--dt-space-3);
  cursor: pointer;
  transition: background var(--dt-transition-fast);
  border-bottom: 1px solid var(--dt-border-primary);
}

.dt-watchlist-row:hover { background: var(--dt-bg-hover); }

.dt-watchlist-row.selected {
  background: var(--dt-bg-active);
  border-left: 2px solid var(--dt-text-primary);
}

.dt-watchlist-symbol {
  font-weight: 600;
  font-size: var(--dt-font-size-sm);
  color: var(--dt-text-primary);
  min-width: 70px;
}

.dt-watchlist-price {
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--dt-font-size-sm);
  min-width: 80px;
  text-align: right;
}

.dt-watchlist-change {
  font-family: var(--dt-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--dt-font-size-xs);
  min-width: 60px;
  text-align: right;
}


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

.dt-color-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dt-color-dot-1 { background: var(--dt-group-1); }
.dt-color-dot-2 { background: var(--dt-group-2); }
.dt-color-dot-3 { background: var(--dt-group-3); }
.dt-color-dot-4 { background: var(--dt-group-4); }
.dt-color-dot-5 { background: var(--dt-group-5); }
.dt-color-dot-6 { background: var(--dt-group-6); }

.dt-color-border-1 { border-left: 2px solid var(--dt-group-1); }
.dt-color-border-2 { border-left: 2px solid var(--dt-group-2); }
.dt-color-border-3 { border-left: 2px solid var(--dt-group-3); }
.dt-color-border-4 { border-left: 2px solid var(--dt-group-4); }
.dt-color-border-5 { border-left: 2px solid var(--dt-group-5); }
.dt-color-border-6 { border-left: 2px solid var(--dt-group-6); }


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

.dt-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.dt-layout-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dt-layout-content {
  flex: 1;
  overflow: auto;
}

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

.dt-grid > * { background: var(--dt-bg-secondary); }

.dt-split-h { display: flex; height: 100%; }
.dt-split-v { display: flex; flex-direction: column; height: 100%; }

.dt-divider-h {
  width: 1px;
  background: var(--dt-border-primary);
  cursor: col-resize;
  flex-shrink: 0;
}
.dt-divider-h:hover { background: var(--dt-border-strong); }

.dt-divider-v {
  height: 1px;
  background: var(--dt-border-primary);
  cursor: row-resize;
  flex-shrink: 0;
}
.dt-divider-v:hover { background: var(--dt-border-strong); }


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

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

.dt-text-xs   { font-size: var(--dt-font-size-xs); }
.dt-text-sm   { font-size: var(--dt-font-size-sm); }
.dt-text-base { font-size: var(--dt-font-size-base); }
.dt-text-md   { font-size: var(--dt-font-size-md); }
.dt-text-lg   { font-size: var(--dt-font-size-lg); }
.dt-text-xl   { font-size: var(--dt-font-size-xl); }
.dt-text-2xl  { font-size: var(--dt-font-size-2xl); }

.dt-text-primary   { color: var(--dt-text-primary); }
.dt-text-secondary { color: var(--dt-text-secondary); }
.dt-text-tertiary  { color: var(--dt-text-tertiary); }
.dt-text-disabled  { color: var(--dt-text-disabled); }
.dt-text-positive  { color: var(--dt-positive); }
.dt-text-negative  { color: var(--dt-negative); }
.dt-text-accent    { color: var(--dt-text-primary); }

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

.dt-label {
  font-size: var(--dt-font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dt-text-tertiary);
}


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

.dt-skeleton {
  background: linear-gradient(
    90deg,
    var(--dt-bg-tertiary) 0%,
    var(--dt-bg-hover) 50%,
    var(--dt-bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: dt-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--dt-radius-sm);
}

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

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

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

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

@keyframes dt-loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@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: var(--dt-accent-blue);
  text-decoration: none;
  border-radius: var(--dt-radius-sm);
  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: var(--dt-text-primary);
}
.symbol-link:focus {
  outline: 1px solid var(--dt-border-strong);
  outline-offset: 1px;
}

.dt-empty-state-icon { font-size: 2rem; opacity: 0.4; }


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

.dt-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--dt-space-2);
  padding: var(--dt-space-3);
  border-radius: var(--dt-radius-md);
  font-size: var(--dt-font-size-sm);
  border-left: 3px solid;
}

.dt-alert-info    { background: rgba(255, 255, 255, 0.05);  border-left-color: var(--dt-accent-blue); color: var(--dt-text-primary); }
.dt-alert-success { background: rgba(38,166,91,0.08);   border-left-color: var(--dt-positive);    color: var(--dt-text-primary); }
.dt-alert-warning { background: rgba(245,166,35,0.08);   border-left-color: var(--dt-accent-yellow); color: var(--dt-text-primary); }
.dt-alert-error   { background: rgba(232,69,60,0.08);   border-left-color: var(--dt-negative);    color: var(--dt-text-primary); }


/* ═══════════════════════════════════════════════════════════════════════════
   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: var(--dt-positive); background: rgba(38,166,91,0.22); }
  40%  { color: var(--dt-positive); background: rgba(38,166,91,0.14); }
  100% { color: inherit; background: transparent; }
}

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


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

.dt-resize-handle {
  position: relative;
  background: var(--dt-border-primary);
  transition: background var(--dt-transition-fast);
  z-index: 10;
}

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

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


/* ═══════════════════════════════════════════════════════════════════════════
   Light Mode — [data-color-mode="light"]
   OpenBB Terminal warm light background
   ═══════════════════════════════════════════════════════════════════════════ */

[data-color-mode="light"] {
  /* Backgrounds — Landing Page palette */
  --dt-bg-primary: #ffffff;
  --dt-bg-secondary: #f9fafb;
  --dt-bg-tertiary: #f3f4f6;
  --dt-bg-hover: rgba(0, 0, 0, 0.04);
  --dt-bg-active: rgba(0, 0, 0, 0.07);
  --dt-bg-input: #ffffff;

  /* Borders — Landing Page palette */
  --dt-border-primary: #e5e7eb;
  --dt-border-secondary: #d1d5db;
  --dt-border-strong: #9ca3af;
  --dt-border-focus: #111827;

  /* Text — Landing Page palette */
  --dt-text-primary: #111827;
  --dt-text-secondary: #6b7280;
  --dt-text-tertiary: #9ca3af;
  --dt-text-disabled: #d1d5db;

  /* Accent — Landing Page charcoal */
  --dt-accent-blue: #111827;
  --dt-accent-blue-hover: #374151;
  --dt-accent-green: #16a34a;
  --dt-accent-red: #dc2626;
  --dt-accent-yellow: #d97706;
  --dt-accent-orange: #d46500;
  --dt-accent-purple: #6D38C4;
  --dt-accent-cyan: #0096d6;
  --dt-accent-blue-soft: rgba(17, 24, 39, 0.07);
  --dt-accent-blue-mid: #374151;
  --dt-accent-green-alt: #16a34a;
  --dt-accent-green-dark: #166534;
  --dt-accent-amber: #d97706;
  --dt-positive: #16a34a;
  --dt-positive-dim: rgba(22, 163, 74, 0.08);
  --dt-negative: #dc2626;
  --dt-negative-dim: rgba(220, 38, 38, 0.08);

  /* Shadows */
  --dt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --dt-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --dt-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.10);
  --dt-shadow-xl: 0 14px 44px rgba(0, 0, 0, 0.12);
  --dt-shadow-glow-blue: 0 0 0 2px rgba(17, 24, 39, 0.15);

  /* Theme-aware utility vars */
  --dt-grid-line: rgba(0, 0, 0, 0.06);
  --dt-nav-scrolled-bg: rgba(255, 255, 255, 0.95);
  --dt-feature-hover-bg: rgba(0, 0, 0, 0.04);
  --dt-overlay: rgba(0, 0, 0, 0.3);
  --dt-content-bg: var(--dt-bg-primary);

  /* Sidebar overrides — Landing Page palette */
  --dt-sidebar-bg: #f9fafb;
  --dt-sidebar-border: #e5e7eb;
  --dt-sidebar-text: #374151;
  --dt-sidebar-text-active: #111827;
  --dt-sidebar-section-label: #6b7280;
  --dt-sidebar-hover: rgba(0, 0, 0, 0.04);
  --dt-sidebar-active-bg: rgba(17, 24, 39, 0.06);
  --dt-sidebar-active-accent: #111827;

  /* Topbar overrides */
  --dt-topbar-bg: #ffffff;
  --dt-topbar-border: #e5e7eb;
  --dt-topbar-text: #111827;

  /* Backward compat --color-* overrides */
  --color-bg: #ffffff;
  --color-panel: #f3f4f6;
  --color-panelH: #e5e7eb;
  --color-border: #e5e7eb;
  --color-borderA: #d1d5db;
  --color-borderF: #111827;
  --color-text: #111827;
  --color-dim: #374151;
  --color-muted: #6b7280;
  --color-green: #16a34a;
  --color-greenD: #166534;
  --color-greenBg: rgba(22, 163, 74, 0.08);
  --color-greenBgS: rgba(22, 163, 74, 0.15);
  --color-red: #dc2626;
  --color-redBg: rgba(220, 38, 38, 0.08);
  --color-redBgS: rgba(220, 38, 38, 0.15);
  --color-yellow: #d97706;
  --color-yellowBg: rgba(217, 119, 6, 0.08);
  --color-yellowBgS: rgba(217, 119, 6, 0.15);
  --color-accent: #111827;
  --color-blue: #111827;
  --color-titleActive: #e5e7eb;
  --color-titleInactive: #f3f4f6;
  --color-bevelLight: rgba(0, 0, 0, 0.03);
  --color-bevelDark: #d1d5db;
  --color-statusBg: #f9fafb;
}

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

/* ── Light mode: symbol links use dark text (not blue) ── */
[data-color-mode="light"] .symbol-link {
  color: var(--dt-text-primary);
  font-weight: 500;
}
[data-color-mode="light"] .symbol-link:hover {
  color: #0088cc;
  background: rgba(0, 136, 204, 0.07);
}

/* ── 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 ── */
[data-color-mode="light"] .dt-right-rail__btn.active {
  background: rgba(0, 0, 0, 0.07);
  color: #111827;
}
[data-color-mode="light"] .dt-right-rail__btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111827;
}

/* ── Light mode override for dt-now-dashboard-root local palette ── */
[data-color-mode="light"] .dt-now-dashboard-root {
  --dt-bg-primary: #ffffff;
  --dt-bg-secondary: #f9fafb;
  --dt-bg-tertiary: #f3f4f6;
  --dt-bg-hover: rgba(0,0,0,0.04);
  --dt-bg-active: rgba(0,0,0,0.07);
  --dt-bg-input: #ffffff;
  --dt-border-primary: #e5e7eb;
  --dt-border-secondary: #d1d5db;
  --dt-border-strong: #9ca3af;
  --dt-border-focus: #111827;
  --dt-text-primary: #111827;
  --dt-text-secondary: #6b7280;
  --dt-text-tertiary: #9ca3af;
  --dt-text-disabled: #d1d5db;
  --dt-text-inverse: #ffffff;
  --dt-accent-blue: #111827;
  --dt-accent-blue-hover: #374151;
  --dt-accent-muted: rgba(17,24,39,0.07);
  --dt-accent-glow: rgba(17,24,39,0.10);
  --color-bg: #ffffff;
  --color-panel: #f3f4f6;
  --color-panelH: #e5e7eb;
  --color-border: #e5e7eb;
  --color-borderA: #d1d5db;
  --color-text: #111827;
  --color-dim: #374151;
  --color-muted: #6b7280;
}

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

/* Grouped section with border-top divider */
.dt-sidebar__group { }
.dt-sidebar__group--bordered {
  border-top: 1px solid var(--dt-border-primary);
  padding-top: var(--space-1);
  margin-top: var(--space-1);
}

/* Indented sub-item (for items under section headers) */
.dt-sidebar__item--indent {
  padding-left: 28px !important;
  padding-right: var(--space-5) !important;
  font-size: 12px !important;
  min-height: 26px !important;
  color: var(--dt-text-tertiary);
  letter-spacing: 0 !important;
  position: relative;
}
.dt-sidebar__item--indent::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
}
.dt-sidebar__item--indent:hover { color: var(--dt-sidebar-text-active); }
.dt-sidebar__item--indent.dt-sidebar__item--active {
  color: var(--dt-accent-blue);
  background: var(--dt-accent-muted);
  box-shadow: none;
  font-weight: 500;
}
.dt-sidebar__item--indent.dt-sidebar__item--active::before {
  background: var(--dt-accent-blue);
  opacity: 0.6;
}

/* View all link */
.dt-sidebar__view-all {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-8) var(--space-2) 36px;
  font-size: 11px;
  font-family: var(--dt-font-sans);
  font-weight: 500;
  color: var(--dt-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  opacity: 0.7;
  transition: opacity 0.12s ease;
}
.dt-sidebar__view-all:hover { opacity: 1; }

/* Security Symbol Block */
.dt-sidebar__security-block {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-8) var(--space-3);
  min-height: 36px;
}
.dt-sidebar__security-ticker {
  font-size: 13px;
  font-weight: 600;
  color: var(--dt-text-primary);
  flex-shrink: 0;
}
.dt-sidebar__security-name {
  font-size: 11px;
  color: var(--dt-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.dt-sidebar__security-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--dt-radius-sm);
  border: none;
  background: transparent;
  color: var(--dt-text-tertiary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.dt-sidebar__security-search:hover {
  background: var(--dt-bg-hover);
  color: var(--dt-text-primary);
}


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

.dt-right-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: var(--dt-right-rail-width, 56px);
  height: 100vh;
  background: var(--dt-bg-secondary);
  border-left: 1px solid var(--dt-border-primary);
  padding: var(--space-5) 0;
  gap: var(--space-2);
  overflow-x: hidden;
  overflow-y: auto;
}

.dt-right-rail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-text-tertiary);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  flex-shrink: 0;
}
.dt-right-rail__btn:hover {
  background: var(--dt-bg-hover);
  color: var(--dt-text-primary);
}
.dt-right-rail__btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dt-text-primary);
}


.dt-right-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--dt-bg-secondary);
  border-left: 1px solid var(--dt-border-primary);
  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;
}

.dt-right-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-7);
  background: var(--dt-bg-primary);
  border-bottom: 1px solid var(--dt-border-primary);
  flex-shrink: 0;
}

.dt-right-panel__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dt-text-primary);
  letter-spacing: -0.01em;
}

.dt-right-panel__body {
  flex: 1;
  overflow-y: auto;
  background: var(--dt-bg-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--dt-border-secondary) 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: 0 var(--space-7) var(--space-4);
}

.dt-right-panel-link {
  display: block;
  width: 100%;
  padding: var(--space-4) var(--space-8);
  text-align: left;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--dt-text-secondary);
  cursor: pointer;
}
.dt-right-panel-link:hover {
  background: var(--dt-bg-tertiary);
  color: var(--dt-text-primary);
}

/* ── 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 var(--dt-border-primary);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.rr-notes__toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--dt-text-secondary);
  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: 'Geist Mono', 'SF Mono', monospace;
  line-height: 1;
  padding: 0;
  transition: color 0.1s, background 0.1s;
}

.rr-notes__toolbar-btn:hover {
  color: var(--dt-text-primary);
  background: var(--dt-bg-secondary);
  border-color: var(--dt-border-primary);
}

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

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

/* ── Quick Notes WYSIWYG editor (contentEditable) ── */
.rr-notes__editor {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  background: var(--dt-bg-input);
  color: var(--dt-text-primary);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-sm);
  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: var(--dt-text-tertiary);
  font-style: italic;
  pointer-events: none;
}

.rr-notes__editor:focus {
  border-color: var(--dt-accent-blue);
  box-shadow: var(--dt-shadow-glow-blue);
}

.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 var(--dt-accent-blue);
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-5);
  color: var(--dt-text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.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 var(--dt-border-primary);
  margin: var(--space-4) 0;
}

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

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

.rr-notes__textarea {
  flex: 1;
  width: 100%;
  min-height: 200px;
  background: var(--dt-bg-input);
  color: var(--dt-text-primary);
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-sm);
  padding: var(--space-5);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rr-notes__textarea::-moz-placeholder {
  color: var(--dt-text-tertiary);
  font-style: italic;
  font-family: inherit;
}

.rr-notes__textarea::placeholder {
  color: var(--dt-text-tertiary);
  font-style: italic;
  font-family: inherit;
}

.rr-notes__textarea:focus {
  border-color: var(--dt-accent-blue);
  box-shadow: var(--dt-shadow-glow-blue);
}

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

.rr-notes__footer-text {
  font-size: 9px;
  color: var(--dt-text-tertiary);
  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 {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rr-mover-section {
  padding: var(--space-2) 0;
}

.rr-mover-section + .rr-mover-section {
  border-top: 1px solid var(--dt-border-primary);
}

.rr-mover-section__title {
  padding: var(--space-4) 0 var(--space-2);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rr-mover-section__empty {
  padding: var(--space-6) 0;
  font-size: 11px;
  color: var(--dt-text-tertiary);
  text-align: center;
}

.rr-mover-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  height: 32px;
  transition: background 0.1s;
}

.rr-mover-row:hover {
  background: var(--dt-bg-hover);
}

.rr-mover-row__sym {
  font-size: 11px;
  font-weight: 600;
  color: var(--dt-text-primary);
  min-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rr-mover-row__price {
  flex: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--dt-text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 50px;
}

.rr-mover-row__pct {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 1px;
  min-width: 54px;
  justify-content: flex-end;
}

.rr-mover-row__pct.up {
  color: var(--dt-positive);
}

.rr-mover-row__pct.down {
  color: var(--dt-negative);
}

.rr-trending__footer {
  border-top: 1px solid var(--dt-border-primary);
  margin-top: var(--space-2);
  padding: var(--space-2) 0;
}

.rr-trending__link {
  display: block;
  width: 100%;
  padding: var(--space-4) 0;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--dt-accent-blue);
  cursor: pointer;
  text-align: center;
  transition: background 0.1s, color 0.1s;
}

.rr-trending__link:hover {
  background: var(--dt-accent-glow);
  color: var(--dt-accent-blue-hover);
}


/* ═══════════════════════════════════════════════════════════════════════════
   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-status-banner {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  max-width: 100%;
  padding: 5px var(--space-4);
  border-radius: var(--dt-radius-sm);
  border: 1px solid rgba(245, 166, 35, 0.22);
  background: rgba(245, 166, 35, 0.08);
  color: var(--dt-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.dt-now-status-banner__label {
  flex: 0 0 auto;
  color: var(--dt-text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.dt-now-status-banner__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-now-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.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: var(--dt-bg-primary);
}

.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: var(--dt-border-secondary) transparent;
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-md);
  background: var(--dt-bg-secondary);
}
.dt-now-area-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--dt-border-secondary) transparent;
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-md);
  background: var(--dt-bg-secondary);
}
/* 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 var(--dt-border-primary);
}
.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 var(--dt-border-primary); border-radius: var(--dt-radius-md); background: var(--dt-bg-secondary); }
.dt-now-area-chart       { grid-area: chart; overflow: hidden; border: 1px solid var(--dt-border-primary); border-radius: var(--dt-radius-md); background: var(--dt-bg-secondary); }
.dt-now-area-factors     { grid-area: factors; overflow: hidden; border: 1px solid var(--dt-border-primary); border-radius: var(--dt-radius-md); background: var(--dt-bg-secondary); }
.dt-now-area-yields      { grid-area: yields; overflow: hidden; border: 1px solid var(--dt-border-primary); border-radius: var(--dt-radius-md); background: var(--dt-bg-secondary); }

/* 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) */
.dt-now-grid-layout {
  width: 100% !important;
}

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

.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 var(--dt-border-primary);
  background:
    radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.04), transparent 50%),
    linear-gradient(180deg, var(--dt-bg-tertiary), var(--dt-bg-primary));
}

.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: var(--dt-text-secondary);
  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: var(--dt-text-primary);
}

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

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

.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 var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  background: var(--dt-bg-secondary);
}

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

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

.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 { }

.dt-now-panel {
  border: 1px solid var(--dt-border-primary);
  border-radius: var(--dt-radius-md);
  background: var(--dt-bg-secondary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dt-now-panel:last-child { border-bottom: none; }

/* Panel body scrolls internally so panels don't need to grow */
.dt-now-panel > *:not(.dt-now-panel-header) {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--dt-border-secondary) transparent;
}

/* 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: var(--dt-border-secondary) 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;
}

.dt-now-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  font-size: 12px;
  font-weight: 700;
  color: var(--dt-text-primary);
  border-bottom: 1px solid var(--dt-border-primary);
  background: rgba(255, 255, 255, 0.02);
  gap: var(--space-3);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  min-height: 24px;
}
.dt-now-panel-header-main {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
  flex-wrap: wrap;
}
.dt-now-panel-title {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.dt-now-panel-title-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dt-text-secondary);
}
.dt-now-panel-header-legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.dt-now-panel-header-legend-item {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 1px var(--space-3);
  border-radius: var(--dt-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 27, 0.78);
}
.dt-now-panel-header-legend-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dt-text-primary);
}
.dt-now-panel-header-legend-detail {
  font-size: 10px;
  color: var(--dt-text-tertiary);
}
.dt-now-panel-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dt-now-panel-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 1px var(--space-3);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(24, 24, 27, 0.82);
  color: var(--dt-text-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dt-now-panel-status-chip--loading {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 64, 175, 0.16);
  color: var(--dt-accent-blue);
}
.dt-now-panel-status-chip--updating {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(146, 64, 14, 0.16);
  color: #9a9a7a;
}
.dt-now-panel-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: var(--dt-radius-sm);
  background: transparent;
  color: var(--dt-text-secondary);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.dt-now-panel-header-btn:hover { background: var(--dt-bg-hover); color: var(--dt-text-primary); }

/* Dense data table in NOW grid */
.dt-now-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  table-layout: fixed;
}
.dt-now-table th {
  padding: var(--space-1) 4px;
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  color: var(--dt-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--dt-border-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--dt-bg-secondary);
}
.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 var(--dt-border-primary);
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--dt-text-secondary);
}
.dt-now-table td:not(:first-child) { text-align: right; }
.dt-now-table tr:hover td { background: var(--dt-bg-hover); }
.dt-now-table .symbol-cell { font-weight: 500; color: var(--dt-text-primary); }
/* Unified cell renderer color classes */
.dt-now-table .positive { color: var(--dt-positive); }
.dt-now-table .negative { color: var(--dt-negative); }
.dt-now-table .neutral  { color: var(--dt-text-tertiary); }

/* Name + Ticker inline layout */
.dt-now-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.dt-now-name-ticker {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.dt-now-table--label-priority .dt-now-name-cell {
  gap: 3px;
}
.dt-now-bullet {
  color: var(--dt-text-tertiary);
  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(--dt-font-mono);
  font-size: 10px;
  color: var(--dt-text-tertiary);
  text-align: left !important;
}
.dt-now-ticker-col a {
  color: inherit;
  text-decoration: none;
}
.dt-now-ticker-col a:hover {
  color: var(--dt-text-secondary);
}
.dt-now-color-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--dt-radius-sm);
  flex-shrink: 0;
}
.dt-now-color-dot-btn {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: var(--dt-radius-sm);
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.dt-now-color-dot-btn:hover {
  opacity: 0.85;
}
.dt-now-color-dot-btn:focus-visible {
  outline: 1px solid var(--dt-accent-blue);
  outline-offset: 2px;
}

/* 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 var(--dt-accent-blue);
  outline-offset: 2px;
}

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


@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-area {
  padding: 0;
  position: relative;
}
.dt-now-chart-tabs {
  display: flex;
  gap: 0;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--dt-border-primary);
}
.dt-now-chart-tab {
  padding: var(--space-1) var(--space-3);
  font-size: 11px;
  border: none;
  background: transparent;
  color: var(--dt-text-tertiary);
  cursor: pointer;
  border-radius: var(--dt-radius-sm);
  transition: background 0.1s, color 0.1s;
}
.dt-now-chart-tab:hover { color: var(--dt-text-secondary); }
.dt-now-chart-tab--active {
  color: var(--dt-text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

/* 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: var(--dt-text-tertiary);
  padding-right: var(--space-3);
  font-weight: 500;
}
.dt-now-factors-header {
  text-align: center;
  font-size: 10px;
  color: var(--dt-text-tertiary);
  font-weight: 500;
  padding: var(--space-1) 0;
}
.dt-now-factor-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dt-radius-sm);
  border: 1px solid var(--dt-border-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: var(--space-3) var(--space-2);
  font-family: var(--dt-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: var(--dt-border-secondary) 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 var(--dt-border-primary);
  cursor: pointer;
  transition: background 0.1s;
}
.dt-now-news-item:hover { background: var(--dt-bg-hover); }
.dt-now-news-title {
  font-size: 11px;
  color: var(--dt-text-primary);
  line-height: 1.4;
}
.dt-now-news-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 10px;
  color: var(--dt-text-tertiary);
}

/* 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: var(--dt-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--dt-border-primary);
  position: sticky;
  top: 0;
  background: var(--dt-bg-secondary);
}
.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 var(--dt-border-primary);
  align-items: center;
  transition: background 0.1s;
}
.dt-now-yields-row:hover { background: var(--dt-bg-hover); }
.dt-now-yields-row--unavailable {
  background: transparent;
}
.dt-now-yields-row--reference {
  background: rgba(148, 163, 184, 0.06);
}
.dt-now-yields-flag {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dt-text-secondary);
}
.dt-now-yields-status {
  font-size: 10px;
  color: var(--dt-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dt-now-yields-val {
  text-align: right;
  font-family: var(--dt-font-mono);
  font-size: 11px;
  color: var(--dt-text-secondary);
}
.dt-now-yields-row--unavailable .dt-now-yields-val,
.dt-now-yields-row--reference .dt-now-yields-val {
  color: var(--dt-text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   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 */
.dt-now-checkbox {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  background: var(--dt-bg-input);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.dt-now-checkbox:hover {
  border-color: var(--dt-accent-blue);
  background: var(--dt-bg-hover);
}

.dt-now-checkbox:checked {
  background: var(--dt-accent-blue);
  border-color: var(--dt-accent-blue);
}

.dt-now-checkbox:checked::after {
  content: '';
  position: absolute;
  left: var(--space-2);
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dt-now-checkbox:indeterminate {
  background: var(--dt-accent-blue);
  border-color: var(--dt-accent-blue);
}

.dt-now-checkbox:indeterminate::after {
  content: '';
  position: absolute;
  left: var(--space-1);
  top: var(--space-3);
  width: 8px;
  height: 2px;
  background: white;
}

/* 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 */
.dt-now-selection-bar {
  position: fixed;
  bottom: var(--space-9);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dt-bg-secondary);
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  padding: var(--space-6) var(--space-9);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  box-shadow: var(--dt-shadow-lg);
  z-index: 1000;
  animation: slideUp 0.2s ease;
}

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

.dt-now-selection-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--dt-text-primary);
}

.dt-now-selection-actions {
  display: flex;
  gap: var(--space-4);
}

.dt-now-selection-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--dt-border-secondary);
  border-radius: var(--dt-radius-sm);
  background: var(--dt-bg-tertiary);
  color: var(--dt-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dt-now-selection-btn:hover {
  background: var(--dt-bg-hover);
  color: var(--dt-text-primary);
  border-color: var(--dt-border-primary);
}

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

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

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

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

/* Chart container */
.dt-now-chart-container {
  padding: var(--space-4);
  height: 280px;
}

.dt-now-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--dt-text-tertiary);
  font-size: 13px;
}

/* Legend styling for chart */
.dt-now-chart-legend {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-2) var(--space-4) var(--space-4);
  font-size: 11px;
}

.dt-now-chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.dt-now-chart-legend-item:hover {
  opacity: 0.8;
}

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

.dt-now-chart-legend-color {
  width: 16px;
  height: 2px;
  border-radius: var(--dt-radius-sm);
}

.dt-now-chart-legend-label {
  color: var(--dt-text-secondary);
}

/* 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 var(--dt-border-primary);
  }
  
  .dt-now-col:last-child {
    border-bottom: none;
  }
}

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

.dt-toast-container {
  position: fixed;
  bottom: var(--space-9);
  right: var(--space-9);
  z-index: 2600;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-4);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  pointer-events: none;
}

.dt-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-7);
  min-width: 280px;
  max-width: 400px;
  border-radius: var(--dt-radius-sm);
  border-left: 4px solid;
  background: var(--color-panel, #1F1E23);
  border-color: var(--dt-toast-border, #2a3040);
  box-shadow: var(--dt-shadow-lg);
  font-size: 0.75rem;
  line-height: 1.4;
  animation: dt-toast-enter 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.dt-toast--exiting {
  animation: dt-toast-exit 0.3s ease-in forwards;
}

.dt-toast__content {
  flex: 1;
  min-width: 0;
}

.dt-toast__title {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-text, #EAEAEA);
  margin-bottom: var(--space-1);
}

.dt-toast__message {
  font-size: 0.6875rem;
  color: var(--color-dim, #5A5A5A);
  word-break: break-word;
}

.dt-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-muted, #6b7280);
  cursor: pointer;
  padding: var(--space-1);
  line-height: 1;
  font-size: 14px;
  border-radius: var(--dt-radius-sm);
  transition: color 0.15s, background 0.15s;
}

.dt-toast__close:hover {
  color: var(--color-text, #EAEAEA);
  background: rgba(255, 255, 255, 0.06);
}

.dt-toast__action {
  margin-top: var(--space-3);
}

.dt-toast__action button {
  background: none;
  border: 1px solid var(--color-border, #2a2f3a);
  color: var(--color-accent, #ebebed);
  font-size: 0.6875rem;
  padding: 3px var(--space-5);
  border-radius: var(--dt-radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.dt-toast__action button:hover {
  background: rgba(0, 170, 255, 0.08);
}

.dt-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--dt-toast-border, #2a3040);
  transition: width 0.1s linear;
  opacity: 0.6;
}

@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
   ═══════════════════════════════════════════════════════════════════════════ */

.dt-form-error {
  color: var(--color-red, #DC2626);
  font-size: 0.6875rem;
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  animation: fadeIn 0.2s ease;
}

.dt-form-error::before {
  content: '⚠';
  font-size: 10px;
}

.dt-form-success {
  color: var(--color-green, #16A34A);
  font-size: 0.6875rem;
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  animation: fadeIn 0.2s ease;
}

.dt-form-success::before {
  content: '✓';
  font-size: 10px;
}

.dt-form-hint {
  color: var(--color-muted, #6b7280);
  font-size: 0.6875rem;
  margin-top: var(--space-2);
  line-height: 1.4;
}

.dt-input--error,
.dt-select--error {
  border-color: var(--color-red, #DC2626) !important;
}

.dt-input--error:focus,
.dt-select--error:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.dt-input--success,
.dt-select--success {
  border-color: var(--color-green, #16A34A) !important;
}

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

.dt-page-enter {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--dt-border-secondary) transparent;
}
.dt-page-enter:has(.dt-fixed-view) {
  overflow: hidden;
}

.dt-page-enter > :first-child {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

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

.dt-error-banner {
  display: flex;
  align-items: center;
  gap: var(--dt-space-2);
  padding: var(--dt-space-3) var(--dt-space-4);
  font-size: var(--dt-font-size-base);
  line-height: 1.5;
  border-radius: var(--dt-radius-sm);
}
.dt-error-banner--error   { color: var(--dt-accent-red);    background: var(--color-redBg);    border: 1px solid var(--dt-accent-red); }
.dt-error-banner--warning { color: var(--dt-accent-yellow); background: var(--color-yellowBg); border: 1px solid var(--dt-accent-yellow); }
.dt-error-banner--info    { color: var(--dt-accent-blue);   background: var(--color-blueBg, rgba(180,180,180,0.08)); border: 1px solid var(--dt-accent-blue); }
.dt-error-banner--success { color: var(--dt-accent-green);  background: var(--color-greenBg);  border: 1px solid var(--dt-accent-green); }

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

.dt-form-group { }
.dt-form-group label,
.dt-form-label {
  display: block;
  font-size: var(--dt-font-size-sm);
  font-weight: 500;
  color: var(--dt-text-secondary);
  margin-bottom: var(--dt-space-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dt-form-hint {
  font-size: var(--dt-font-size-xs);
  color: var(--dt-text-tertiary);
  margin-top: var(--dt-space-1);
}

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

.dt-section-header {
  font-size: var(--dt-font-size-md);
  font-weight: 600;
  color: var(--dt-text-primary);
  margin-top: var(--dt-space-6);
  margin-bottom: var(--dt-space-3);
  padding-bottom: var(--dt-space-2);
  border-bottom: 1px solid var(--dt-border-primary);
  display: flex;
  align-items: center;
  gap: var(--dt-space-2);
}
.dt-section-label {
  font-size: var(--dt-font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dt-text-tertiary);
  margin-bottom: var(--dt-space-3);
  display: flex;
  align-items: center;
  gap: var(--dt-space-2);
}

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

.dt-empty-state {
  animation: fadeInUp 0.4s ease-out;
}

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

.dt-recent-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 42px;
  padding: 0 var(--space-6);
  font-size: 12px;
  color: var(--dt-text-secondary, var(--color-dim, #5A5A5A));
  cursor: pointer;
  border-radius: var(--dt-radius-sm);
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  box-sizing: border-box;
}

.dt-recent-item:hover {
  background: var(--dt-bg-hover, rgba(255, 255, 255, 0.04));
  color: var(--dt-text-primary, var(--color-text, #EAEAEA));
}

.dt-recent-item__symbol {
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-accent, #ebebed);
  min-width: 48px;
}

.dt-recent-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.dt-recent-item__time {
  font-size: 10px;
  color: var(--color-muted, #6b7280);
  flex-shrink: 0;
}
.react-grid-layout {
  position: relative;
  transition: height 200ms ease;
}
.react-grid-item {
  transition: all 200ms ease;
  transition-property: left, top, width, height;
}
.react-grid-item img {
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.react-grid-item.cssTransforms {
  transition-property: transform, width, height;
}
.react-grid-item.resizing {
  transition: none;
  z-index: 1;
  will-change: width, height;
}

.react-grid-item.react-draggable-dragging {
  transition: none;
  z-index: 3;
  will-change: transform;
}

.react-grid-item.dropping {
  visibility: hidden;
}

.react-grid-item.react-grid-placeholder {
  background: red;
  opacity: 0.2;
  transition-duration: 100ms;
  z-index: 2;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.react-grid-item.react-grid-placeholder.placeholder-resizing {
  transition: none;
}

.react-grid-item > .react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.react-grid-item:hover > .react-resizable-handle {
  opacity: 1;
}

.react-grid-item > .react-resizable-handle::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.react-resizable-hide > .react-resizable-handle {
  display: none;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-w,
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-n,
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}
.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}*, ::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: 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 — zinc dark (New York style) ── */
    --background: 240 10% 3.9%;      /* zinc-950 #09090b */
    --foreground: 0 0% 98%;          /* zinc-50 #fafafa */

    --card: 240 10% 3.9%;            /* zinc-950 */
    --card-foreground: 0 0% 98%;

    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;

    --primary: 0 0% 98%;             /* white — clean, neutral */
    --primary-foreground: 240 5.9% 10%;

    --secondary: 240 3.7% 15.9%;     /* zinc-800 */
    --secondary-foreground: 0 0% 98%;

    --muted: 240 3.7% 15.9%;         /* zinc-800 */
    --muted-foreground: 240 5% 64.9%; /* zinc-400 */

    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;

    --border: 240 3.7% 15.9%;        /* zinc-800 — visible borders */
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;          /* zinc-300 */

    --radius: 0.625rem;

    /* ── Sidebar tokens ── */
    --sidebar-background: 240 10% 3.9%;
    --sidebar-foreground: 0 0% 98%;
    --sidebar-primary: 0 0% 98%;
    --sidebar-primary-foreground: 240 5.9% 10%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 0 0% 98%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 240 4.9% 83.9%;

    /* ── Financial colors ── */
    --positive: 142 71% 45%;         /* green-500 #22c55e */
    --positive-dim: 142 71% 45% / 0.10;
    --negative: 0 72% 51%;           /* red-500 #ef4444 */
    --negative-dim: 0 72% 51% / 0.10;

    /* ── Chart palette ── */
    --chart-1: 220 70% 50%;          /* blue */
    --chart-2: 142 71% 45%;          /* green */
    --chart-3: 24 95% 53%;           /* orange */
    --chart-4: 271 91% 65%;          /* purple */
    --chart-5: 197 80% 63%;          /* light blue */

    /* ── Subtle accent tokens (no neon glow) ── */
    --dt-glow-cyan: rgba(161, 161, 170, 0.12);
    --dt-glow-cyan-strong: rgba(161, 161, 170, 0.20);
    --dt-glow-green: rgba(34, 197, 94, 0.12);
    --dt-glow-purple: rgba(168, 85, 247, 0.12);
    --dt-surface-cyan: rgba(161, 161, 170, 0.05);
    --dt-surface-green: rgba(34, 197, 94, 0.05);

    /* ── Layout ── */
    --topbar-height: 48px;
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 50px;
    --right-sidebar-width: 230px;
    --row-data: 34px;
    --row-compact: 28px;

    /* ── Typography ── */
    --font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'PT Mono', 'Liberation Mono', Courier, monospace;

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

  /* ── Light theme override — shadcn zinc light ── */
  .light {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;

    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;

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

    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;

    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;

    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;

    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.3% 26.1%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 240 5.9% 10%;

    --positive: 142 71% 45%;
    --positive-dim: 142 71% 45% / 0.08;
    --negative: 0 84.2% 60.2%;
    --negative-dim: 0 84.2% 60.2% / 0.08;

    --chart-1: 220 70% 50%;
    --chart-2: 142 71% 45%;
    --chart-3: 24 95% 53%;
    --chart-4: 271 91% 65%;
    --chart-5: 197 80% 63%;
  }
  * {
  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;
}

  #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% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 2rem !important;
  padding-left: 2rem !important;
}
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
}
@media (min-width: 1400px) {

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

  .container {
    max-width: 1400px;
  }
}
.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-0 {
  inset: 0px;
}
.-left-12 {
  left: -3rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-4 {
  bottom: 1rem;
}
.bottom-6 {
  bottom: 1.5rem;
}
.left-0 {
  left: 0px;
}
.left-1\.5 {
  left: 0.375rem;
}
.left-1\/2 {
  left: 50%;
}
.left-2 {
  left: 0.5rem;
}
.left-2\.5 {
  left: 0.625rem;
}
.left-6 {
  left: 1.5rem;
}
.left-\[50\%\] {
  left: 50%;
}
.right-0 {
  right: 0px;
}
.right-2 {
  right: 0.5rem;
}
.right-4 {
  right: 1rem;
}
.right-\[var\(--dt-right-rail-width\2c 56px\)\] {
  right: var(--dt-right-rail-width,56px);
}
.right-sidebar {
  right: var(--sidebar-width);
}
.top-0 {
  top: 0px;
}
.top-1\.5 {
  top: 0.375rem;
}
.top-1\/2 {
  top: 50%;
}
.top-2 {
  top: 0.5rem;
}
.top-4 {
  top: 1rem;
}
.top-\[20\%\] {
  top: 20%;
}
.top-\[50\%\] {
  top: 50%;
}
.top-\[calc\(100\%\+16px\)\] {
  top: calc(100% + 16px);
}
.top-full {
  top: 100%;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[1000\] {
  z-index: 1000;
}
.z-\[100\] {
  z-index: 100;
}
.z-\[1300\] {
  z-index: 1300;
}
.z-\[15\] {
  z-index: 15;
}
.z-\[1\] {
  z-index: 1;
}
.z-\[200\] {
  z-index: 200;
}
.z-\[2\] {
  z-index: 2;
}
.z-\[400\] {
  z-index: 400;
}
.z-\[49\] {
  z-index: 49;
}
.z-\[500\] {
  z-index: 500;
}
.z-\[5\] {
  z-index: 5;
}
.z-\[920\] {
  z-index: 920;
}
.z-\[9998\] {
  z-index: 9998;
}
.z-\[99999\] {
  z-index: 99999;
}
.z-\[9999\] {
  z-index: 9999;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.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-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-3\.5 {
  margin-left: 0.875rem;
  margin-right: 0.875rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.-mb-px {
  margin-bottom: -1px;
}
.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-10 {
  margin-bottom: 2.5rem;
}
.mb-11 {
  margin-bottom: 2.75rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-14 {
  margin-bottom: 3.5rem;
}
.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-9 {
  margin-bottom: 2.25rem;
}
.mb-\[3px\] {
  margin-bottom: 3px;
}
.mb-\[5px\] {
  margin-bottom: 5px;
}
.mb-\[60px\] {
  margin-bottom: 60px;
}
.mb-\[var\(--dt-space-4\)\] {
  margin-bottom: var(--dt-space-4);
}
.mb-\[var\(--dt-space-5\)\] {
  margin-bottom: var(--dt-space-5);
}
.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-auto {
  margin-left: auto;
}
.ml-px {
  margin-left: 1px;
}
.mr-0 {
  margin-right: 0px;
}
.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-4 {
  margin-right: 1rem;
}
.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-10 {
  margin-top: 2.5rem;
}
.mt-14 {
  margin-top: 3.5rem;
}
.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-\[clamp\(48px\2c 6vw\2c 80px\)\] {
  margin-top: clamp(48px, 6vw, 80px);
}
.mt-auto {
  margin-top: auto;
}
.mt-px {
  margin-top: 1px;
}
.box-border {
  box-sizing: border-box;
}
.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;
}
.inline-flex {
  display: inline-flex;
}
.\!table {
  display: table !important;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.inline-grid {
  display: inline-grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.size-5 {
  width: 1.25rem;
  height: 1.25rem;
}
.h-0 {
  height: 0px;
}
.h-0\.5 {
  height: 0.125rem;
}
.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-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[100px\] {
  height: 100px;
}
.h-\[11px\] {
  height: 11px;
}
.h-\[120px\] {
  height: 120px;
}
.h-\[13px\] {
  height: 13px;
}
.h-\[140px\] {
  height: 140px;
}
.h-\[14px\] {
  height: 14px;
}
.h-\[150px\] {
  height: 150px;
}
.h-\[160px\] {
  height: 160px;
}
.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-\[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-\[400px\] {
  height: 400px;
}
.h-\[500px\] {
  height: 500px;
}
.h-\[5px\] {
  height: 5px;
}
.h-\[60px\] {
  height: 60px;
}
.h-\[6px\] {
  height: 6px;
}
.h-\[70px\] {
  height: 70px;
}
.h-\[72px\] {
  height: 72px;
}
.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-96 {
  max-height: 24rem;
}
.max-h-\[2000px\] {
  max-height: 2000px;
}
.max-h-\[320px\] {
  max-height: 320px;
}
.max-h-\[350px\] {
  max-height: 350px;
}
.max-h-\[360px\] {
  max-height: 360px;
}
.max-h-\[440px\] {
  max-height: 440px;
}
.max-h-\[60vh\] {
  max-height: 60vh;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.max-h-screen {
  max-height: 100vh;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-10 {
  min-height: 2.5rem;
}
.min-h-20 {
  min-height: 5rem;
}
.min-h-24 {
  min-height: 6rem;
}
.min-h-\[104px\] {
  min-height: 104px;
}
.min-h-\[120px\] {
  min-height: 120px;
}
.min-h-\[200px\] {
  min-height: 200px;
}
.min-h-\[250px\] {
  min-height: 250px;
}
.min-h-\[280px\] {
  min-height: 280px;
}
.min-h-\[300px\] {
  min-height: 300px;
}
.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-\[50vh\] {
  min-height: 50vh;
}
.min-h-\[80px\] {
  min-height: 80px;
}
.min-h-full {
  min-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.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-32 {
  width: 8rem;
}
.w-4 {
  width: 1rem;
}
.w-40 {
  width: 10rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.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-\[180px\] {
  width: 180px;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[1px\] {
  width: 1px;
}
.w-\[200px\] {
  width: 200px;
}
.w-\[220px\] {
  width: 220px;
}
.w-\[26px\] {
  width: 26px;
}
.w-\[280px\] {
  width: 280px;
}
.w-\[28px\] {
  width: 28px;
}
.w-\[2px\] {
  width: 2px;
}
.w-\[300px\] {
  width: 300px;
}
.w-\[30px\] {
  width: 30px;
}
.w-\[360px\] {
  width: 360px;
}
.w-\[3px\] {
  width: 3px;
}
.w-\[40\%\] {
  width: 40%;
}
.w-\[40px\] {
  width: 40px;
}
.w-\[42px\] {
  width: 42px;
}
.w-\[44px\] {
  width: 44px;
}
.w-\[460px\] {
  width: 460px;
}
.w-\[46px\] {
  width: 46px;
}
.w-\[48\%\] {
  width: 48%;
}
.w-\[480px\] {
  width: 480px;
}
.w-\[50px\] {
  width: 50px;
}
.w-\[52\%\] {
  width: 52%;
}
.w-\[52px\] {
  width: 52px;
}
.w-\[54px\] {
  width: 54px;
}
.w-\[5px\] {
  width: 5px;
}
.w-\[60px\] {
  width: 60px;
}
.w-\[640px\] {
  width: 640px;
}
.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-\[90\%\] {
  width: 90%;
}
.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-\[1100px\] {
  min-width: 1100px;
}
.min-w-\[110px\] {
  min-width: 110px;
}
.min-w-\[120px\] {
  min-width: 120px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.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-\[200px\] {
  min-width: 200px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[240px\] {
  min-width: 240px;
}
.min-w-\[250px\] {
  min-width: 250px;
}
.min-w-\[280px\] {
  min-width: 280px;
}
.min-w-\[320px\] {
  min-width: 320px;
}
.min-w-\[420px\] {
  min-width: 420px;
}
.min-w-\[48px\] {
  min-width: 48px;
}
.min-w-\[50px\] {
  min-width: 50px;
}
.min-w-\[54px\] {
  min-width: 54px;
}
.min-w-\[60px\] {
  min-width: 60px;
}
.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);
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[1000px\] {
  max-width: 1000px;
}
.max-w-\[1100px\] {
  max-width: 1100px;
}
.max-w-\[200px\] {
  max-width: 200px;
}
.max-w-\[220px\] {
  max-width: 220px;
}
.max-w-\[280px\] {
  max-width: 280px;
}
.max-w-\[28px\] {
  max-width: 28px;
}
.max-w-\[400px\] {
  max-width: 400px;
}
.max-w-\[420px\] {
  max-width: 420px;
}
.max-w-\[460px\] {
  max-width: 460px;
}
.max-w-\[480px\] {
  max-width: 480px;
}
.max-w-\[500px\] {
  max-width: 500px;
}
.max-w-\[540px\] {
  max-width: 540px;
}
.max-w-\[580px\] {
  max-width: 580px;
}
.max-w-\[600px\] {
  max-width: 600px;
}
.max-w-\[720px\] {
  max-width: 720px;
}
.max-w-\[840px\] {
  max-width: 840px;
}
.max-w-\[900px\] {
  max-width: 900px;
}
.max-w-\[95vw\] {
  max-width: 95vw;
}
.max-w-\[960px\] {
  max-width: 960px;
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.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-auto {
  flex: 1 1 auto;
}
.flex-none {
  flex: none;
}
.flex-shrink {
  flex-shrink: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.caption-bottom {
  caption-side: bottom;
}
.border-collapse {
  border-collapse: collapse;
}
.-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-0 {
  --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));
}
.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-x-full {
  --tw-translate-x: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-1 {
  --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));
}
.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));
}
.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));
}
.animate-\[fadeInDown_0\.25s_ease\] {
  animation: fadeInDown 0.25s ease;
}
@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;
}
@keyframes ticker-scroll {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
.animate-ticker-scroll {
  animation: ticker-scroll 50s linear infinite;
}
.cursor-col-resize {
  cursor: col-resize;
}
.cursor-default {
  cursor: default;
}
.cursor-grab {
  cursor: grab;
}
.cursor-help {
  cursor: help;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.touch-none {
  touch-action: none;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.select-all {
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}
.resize {
  resize: both;
}
.\!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-\[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-\[1\.8fr_1fr_1fr_1fr\] {
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
}
.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-\[repeat\(auto-fill\2c minmax\(240px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.content-between {
  align-content: space-between;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.items-stretch {
  align-items: stretch;
}
.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;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.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-9 {
  gap: 2.25rem;
}
.gap-\[10px\] {
  gap: 10px;
}
.gap-\[18px\] {
  gap: 18px;
}
.gap-\[1px\] {
  gap: 1px;
}
.gap-\[3px\] {
  gap: 3px;
}
.gap-\[5px\] {
  gap: 5px;
}
.gap-\[var\(--dt-space-2\)\] {
  gap: var(--dt-space-2);
}
.gap-\[var\(--dt-space-3\)\] {
  gap: var(--dt-space-3);
}
.gap-px {
  gap: 1px;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-x-px {
  -moz-column-gap: 1px;
       column-gap: 1px;
}
.gap-y-0\.5 {
  row-gap: 0.125rem;
}
.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-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-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-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));
}
.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-dt-border > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--dt-border-primary);
}
.self-center {
  align-self: center;
}
.self-stretch {
  align-self: stretch;
}
.overflow-auto {
  overflow: auto;
}
.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;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-ellipsis {
  text-overflow: ellipsis;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-\[inherit\] {
  border-radius: inherit;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-none {
  border-radius: 0px;
}
.rounded-sm {
  border-radius: calc(var(--radius) - 4px);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.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-dashed {
  border-style: dashed;
}
.border-none {
  border-style: none;
}
.border-\[color-mix\(in_srgb\2c var\(--dt-accent-blue\)_25\%\2c var\(--dt-border-primary\)\)\] {
  border-color: color-mix(in srgb,var(--dt-accent-blue) 25%,var(--dt-border-primary));
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.06\)\] {
  border-color: rgba(255,255,255,0.06);
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.08\)\] {
  border-color: rgba(255,255,255,0.08);
}
.border-\[var\(--color-border\)\] {
  border-color: var(--color-border);
}
.border-\[var\(--color-border-spec\)\] {
  border-color: var(--color-border-spec);
}
.border-\[var\(--dt-accent-blue\2c \#ebebed\)\] {
  border-color: var(--dt-accent-blue,#ebebed);
}
.border-\[var\(--dt-border-primary\)\] {
  border-color: var(--dt-border-primary);
}
.border-\[var\(--dt-border-primary\2c \#2A2A31\)\] {
  border-color: var(--dt-border-primary,#2A2A31);
}
.border-\[var\(--dt-border-primary\2c rgba\(255\2c 255\2c 255\2c 0\.08\)\)\] {
  border-color: var(--dt-border-primary,rgba(255,255,255,0.08));
}
.border-\[var\(--dt-border-primary\2c rgba\(255\2c 255\2c 255\2c 0\.10\)\)\] {
  border-color: var(--dt-border-primary,rgba(255,255,255,0.10));
}
.border-\[var\(--dt-border-secondary\)\] {
  border-color: var(--dt-border-secondary);
}
.border-\[var\(--dt-border-secondary\2c \#374151\)\] {
  border-color: var(--dt-border-secondary,#374151);
}
.border-accent {
  border-color: hsl(var(--accent));
}
.border-amber-400\/15 {
  border-color: rgb(251 191 36 / 0.15);
}
.border-amber-400\/20 {
  border-color: rgb(251 191 36 / 0.2);
}
.border-blue-400\/20 {
  border-color: rgb(96 165 250 / 0.2);
}
.border-border {
  border-color: hsl(var(--border));
}
.border-destructive {
  border-color: hsl(var(--destructive));
}
.border-destructive\/20 {
  border-color: hsl(var(--destructive) / 0.2);
}
.border-dt-accent {
  border-color: var(--dt-accent-blue);
}
.border-dt-accent-green {
  border-color: var(--dt-accent-green);
}
.border-dt-accent-red {
  border-color: var(--dt-accent-red);
}
.border-dt-border {
  border-color: var(--dt-border-primary);
}
.border-dt-border-muted {
  border-color: var(--dt-border-muted);
}
.border-dt-border-secondary {
  border-color: var(--dt-border-secondary);
}
.border-dt-border-strong {
  border-color: var(--dt-border-strong);
}
.border-emerald-400\/20 {
  border-color: rgb(52 211 153 / 0.2);
}
.border-emerald-400\/\[0\.18\] {
  border-color: rgb(52 211 153 / 0.18);
}
.border-emerald-500 {
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}
.border-emerald-500\/30 {
  border-color: rgb(16 185 129 / 0.3);
}
.border-input {
  border-color: hsl(var(--input));
}
.border-negative\/20 {
  border-color: hsl(var(--negative) / 0.2);
}
.border-positive\/20 {
  border-color: hsl(var(--positive) / 0.2);
}
.border-primary {
  border-color: hsl(var(--primary));
}
.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}
.border-primary\/30 {
  border-color: hsl(var(--primary) / 0.3);
}
.border-primary\/\[0\.08\] {
  border-color: hsl(var(--primary) / 0.08);
}
.border-purple-400\/20 {
  border-color: rgb(192 132 252 / 0.2);
}
.border-red-500\/30 {
  border-color: rgb(239 68 68 / 0.3);
}
.border-rose-400\/20 {
  border-color: rgb(251 113 133 / 0.2);
}
.border-transparent {
  border-color: transparent;
}
.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}
.border-white\/5 {
  border-color: rgb(255 255 255 / 0.05);
}
.border-white\/\[0\.03\] {
  border-color: rgb(255 255 255 / 0.03);
}
.border-white\/\[0\.04\] {
  border-color: rgb(255 255 255 / 0.04);
}
.border-white\/\[0\.055\] {
  border-color: rgb(255 255 255 / 0.055);
}
.border-white\/\[0\.05\] {
  border-color: rgb(255 255 255 / 0.05);
}
.border-white\/\[0\.06\] {
  border-color: rgb(255 255 255 / 0.06);
}
.border-white\/\[0\.07\] {
  border-color: rgb(255 255 255 / 0.07);
}
.border-white\/\[0\.08\] {
  border-color: rgb(255 255 255 / 0.08);
}
.border-yellow-500\/20 {
  border-color: rgb(234 179 8 / 0.2);
}
.border-zinc-400\/20 {
  border-color: rgb(161 161 170 / 0.2);
}
.border-b-dt-accent {
  border-bottom-color: var(--dt-accent-blue);
}
.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-transparent {
  border-top-color: transparent;
}
.bg-\[\#020202\] {
  --tw-bg-opacity: 1;
  background-color: rgb(2 2 2 / var(--tw-bg-opacity, 1));
}
.bg-\[\#040404\] {
  --tw-bg-opacity: 1;
  background-color: rgb(4 4 4 / var(--tw-bg-opacity, 1));
}
.bg-\[\#0D1117\] {
  --tw-bg-opacity: 1;
  background-color: rgb(13 17 23 / var(--tw-bg-opacity, 1));
}
.bg-\[\#0a0a0a\] {
  --tw-bg-opacity: 1;
  background-color: rgb(10 10 10 / var(--tw-bg-opacity, 1));
}
.bg-\[\#0d1117\] {
  --tw-bg-opacity: 1;
  background-color: rgb(13 17 23 / var(--tw-bg-opacity, 1));
}
.bg-\[color-mix\(in_srgb\2c var\(--color-blue\)_10\%\2c transparent\)\] {
  background-color: color-mix(in srgb,var(--color-blue) 10%,transparent);
}
.bg-\[color-mix\(in_srgb\2c var\(--dt-accent-blue\)_12\%\2c var\(--dt-bg-secondary\)\)\] {
  background-color: color-mix(in srgb,var(--dt-accent-blue) 12%,var(--dt-bg-secondary));
}
.bg-\[rgba\(10\2c 14\2c 20\2c 0\.98\)\] {
  background-color: rgba(10,14,20,0.98);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.04\)\] {
  background-color: rgba(255,255,255,0.04);
}
.bg-\[var\(--color-accent\)\] {
  background-color: var(--color-accent);
}
.bg-\[var\(--color-accent\2c \#ebebed\)\] {
  background-color: var(--color-accent,#ebebed);
}
.bg-\[var\(--color-accent-spec\)\] {
  background-color: var(--color-accent-spec);
}
.bg-\[var\(--color-bg\)\] {
  background-color: var(--color-bg);
}
.bg-\[var\(--color-bg-content\)\] {
  background-color: var(--color-bg-content);
}
.bg-\[var\(--color-bg-hover\)\] {
  background-color: var(--color-bg-hover);
}
.bg-\[var\(--color-bg-main\)\] {
  background-color: var(--color-bg-main);
}
.bg-\[var\(--color-bg-secondary-spec\)\] {
  background-color: var(--color-bg-secondary-spec);
}
.bg-\[var\(--color-bg-table-header\)\] {
  background-color: var(--color-bg-table-header);
}
.bg-\[var\(--color-blue\)\] {
  background-color: var(--color-blue);
}
.bg-\[var\(--color-border\)\] {
  background-color: var(--color-border);
}
.bg-\[var\(--color-border-spec\)\] {
  background-color: var(--color-border-spec);
}
.bg-\[var\(--color-muted\)\] {
  background-color: var(--color-muted);
}
.bg-\[var\(--color-panel\)\] {
  background-color: var(--color-panel);
}
.bg-\[var\(--dt-accent-blue\2c \#ebebed\)\] {
  background-color: var(--dt-accent-blue,#ebebed);
}
.bg-\[var\(--dt-accent-green\)\] {
  background-color: var(--dt-accent-green);
}
.bg-\[var\(--dt-bg-active\)\] {
  background-color: var(--dt-bg-active);
}
.bg-\[var\(--dt-bg-primary\)\] {
  background-color: var(--dt-bg-primary);
}
.bg-\[var\(--dt-bg-primary\2c \#09090b\)\] {
  background-color: var(--dt-bg-primary,#09090b);
}
.bg-\[var\(--dt-bg-secondary\)\] {
  background-color: var(--dt-bg-secondary);
}
.bg-\[var\(--dt-bg-secondary\2c \#1F1E23\)\] {
  background-color: var(--dt-bg-secondary,#1F1E23);
}
.bg-\[var\(--dt-bg-tertiary\)\] {
  background-color: var(--dt-bg-tertiary);
}
.bg-\[var\(--dt-bg-tertiary\2c \#2A2A31\)\] {
  background-color: var(--dt-bg-tertiary,#2A2A31);
}
.bg-accent {
  background-color: hsl(var(--accent));
}
.bg-amber-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
}
.bg-amber-400\/10 {
  background-color: rgb(251 191 36 / 0.1);
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/15 {
  background-color: rgb(0 0 0 / 0.15);
}
.bg-black\/40 {
  background-color: rgb(0 0 0 / 0.4);
}
.bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5);
}
.bg-black\/55 {
  background-color: rgb(0 0 0 / 0.55);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-black\/65 {
  background-color: rgb(0 0 0 / 0.65);
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-black\/\[0\.92\] {
  background-color: rgb(0 0 0 / 0.92);
}
.bg-blue-400\/10 {
  background-color: rgb(96 165 250 / 0.1);
}
.bg-blue-500\/10 {
  background-color: rgb(59 130 246 / 0.1);
}
.bg-border {
  background-color: hsl(var(--border));
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-destructive\/5 {
  background-color: hsl(var(--destructive) / 0.05);
}
.bg-dt-accent {
  background-color: var(--dt-accent-blue);
}
.bg-dt-accent-green {
  background-color: var(--dt-accent-green);
}
.bg-dt-bg {
  background-color: var(--dt-bg-primary);
}
.bg-dt-bg-alt {
  background-color: var(--dt-bg-alt, #050505);
}
.bg-dt-bg-deep {
  background-color: var(--dt-bg-deep, #060A10);
}
.bg-dt-bg-elevated {
  background-color: var(--dt-bg-tertiary);
}
.bg-dt-bg-hover {
  background-color: var(--dt-bg-hover);
}
.bg-dt-bg-input {
  background-color: var(--dt-bg-input);
}
.bg-dt-bg-panel-alt {
  background-color: var(--dt-bg-panel-alt, #0d0d0d);
}
.bg-dt-bg-surface {
  background-color: var(--dt-bg-secondary);
}
.bg-dt-border {
  background-color: var(--dt-border-primary);
}
.bg-emerald-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(52 211 153 / var(--tw-bg-opacity, 1));
}
.bg-emerald-400\/10 {
  background-color: rgb(52 211 153 / 0.1);
}
.bg-emerald-400\/\[0\.09\] {
  background-color: rgb(52 211 153 / 0.09);
}
.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.bg-muted-foreground {
  background-color: hsl(var(--muted-foreground));
}
.bg-muted\/40 {
  background-color: hsl(var(--muted) / 0.4);
}
.bg-muted\/50 {
  background-color: hsl(var(--muted) / 0.5);
}
.bg-negative\/10 {
  background-color: hsl(var(--negative) / 0.1);
}
.bg-popover {
  background-color: hsl(var(--popover));
}
.bg-positive\/10 {
  background-color: hsl(var(--positive) / 0.1);
}
.bg-positive\/15 {
  background-color: hsl(var(--positive) / 0.15);
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}
.bg-primary\/60 {
  background-color: hsl(var(--primary) / 0.6);
}
.bg-primary\/\[0\.06\] {
  background-color: hsl(var(--primary) / 0.06);
}
.bg-purple-400\/10 {
  background-color: rgb(192 132 252 / 0.1);
}
.bg-red-500\/10 {
  background-color: rgb(239 68 68 / 0.1);
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-rose-400\/10 {
  background-color: rgb(251 113 133 / 0.1);
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.bg-transparent {
  background-color: transparent;
}
.bg-white\/30 {
  background-color: rgb(255 255 255 / 0.3);
}
.bg-white\/\[\.02\] {
  background-color: rgb(255 255 255 / .02);
}
.bg-white\/\[0\.015\] {
  background-color: rgb(255 255 255 / 0.015);
}
.bg-white\/\[0\.01\] {
  background-color: rgb(255 255 255 / 0.01);
}
.bg-white\/\[0\.025\] {
  background-color: rgb(255 255 255 / 0.025);
}
.bg-white\/\[0\.02\] {
  background-color: rgb(255 255 255 / 0.02);
}
.bg-white\/\[0\.03\] {
  background-color: rgb(255 255 255 / 0.03);
}
.bg-white\/\[0\.04\] {
  background-color: rgb(255 255 255 / 0.04);
}
.bg-white\/\[0\.055\] {
  background-color: rgb(255 255 255 / 0.055);
}
.bg-white\/\[0\.06\] {
  background-color: rgb(255 255 255 / 0.06);
}
.bg-white\/\[0\.08\] {
  background-color: rgb(255 255 255 / 0.08);
}
.bg-yellow-500\/10 {
  background-color: rgb(234 179 8 / 0.1);
}
.bg-zinc-400\/10 {
  background-color: rgb(161 161 170 / 0.1);
}
.bg-\[radial-gradient\(ellipse\2c rgba\(0\2c 229\2c 255\2c 0\.065\)_0\%\2c transparent_65\%\)\] {
  background-image: radial-gradient(ellipse,rgba(0,229,255,0.065) 0%,transparent 65%);
}
.bg-\[radial-gradient\(ellipse_at_center\2c rgba\(161\2c 161\2c 170\2c 0\.07\)_0\%\2c transparent_65\%\)\] {
  background-image: radial-gradient(ellipse at center,rgba(161,161,170,0.07) 0%,transparent 65%);
}
.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));
}
.bg-none {
  background-image: none;
}
.from-\[\#0f1120\] {
  --tw-gradient-from: #0f1120 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(15 17 32 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-dt-accent {
  --tw-gradient-from: var(--dt-accent-blue) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 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);
}
.from-white {
  --tw-gradient-from: #fff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-\[\#0d0f1b\] {
  --tw-gradient-to: #0d0f1b var(--tw-gradient-to-position);
}
.to-dt-accent-cyan {
  --tw-gradient-to: var(--dt-accent-cyan) var(--tw-gradient-to-position);
}
.to-white\/60 {
  --tw-gradient-to: rgb(255 255 255 / 0.6) var(--tw-gradient-to-position);
}
.to-zinc-400 {
  --tw-gradient-to: #a1a1aa var(--tw-gradient-to-position);
}
.bg-clip-text {
  -webkit-background-clip: text;
          background-clip: text;
}
.fill-current {
  fill: currentColor;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.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-7 {
  padding: 1.75rem;
}
.p-8 {
  padding: 2rem;
}
.p-9 {
  padding: 2.25rem;
}
.p-\[10px_14px\] {
  padding: 10px 14px;
}
.p-\[14px\] {
  padding: 14px;
}
.p-\[16px_14px\] {
  padding: 16px 14px;
}
.p-\[1px\] {
  padding: 1px;
}
.p-\[30px\] {
  padding: 30px;
}
.p-\[3px_4px\] {
  padding: 3px 4px;
}
.p-\[6px_4px\] {
  padding: 6px 4px;
}
.p-\[6px_8px\] {
  padding: 6px 8px;
}
.p-\[7px_14px\] {
  padding: 7px 14px;
}
.p-\[8px_14px\] {
  padding: 8px 14px;
}
.p-\[var\(--dt-space-3\)\] {
  padding: var(--dt-space-3);
}
.p-\[var\(--dt-space-4\)\] {
  padding: var(--dt-space-4);
}
.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-14 {
  padding-left: 3.5rem;
  padding-right: 3.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-9 {
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}
.px-\[10px\] {
  padding-left: 10px;
  padding-right: 10px;
}
.px-\[14px\] {
  padding-left: 14px;
  padding-right: 14px;
}
.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-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-\[10px\] {
  padding-top: 10px;
  padding-bottom: 10px;
}
.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-\[3px\] {
  padding-top: 3px;
  padding-bottom: 3px;
}
.py-\[5px\] {
  padding-top: 5px;
  padding-bottom: 5px;
}
.py-\[60px\] {
  padding-top: 60px;
  padding-bottom: 60px;
}
.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-\[clamp\(60px\2c 7vw\2c 88px\)\] {
  padding-top: clamp(60px, 7vw, 88px);
  padding-bottom: clamp(60px, 7vw, 88px);
}
.py-\[clamp\(72px\2c 9vw\2c 112px\)\] {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 112px);
}
.py-\[clamp\(80px\2c 10vw\2c 120px\)\] {
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(80px, 10vw, 120px);
}
.py-px {
  padding-top: 1px;
  padding-bottom: 1px;
}
.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-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pb-7 {
  padding-bottom: 1.75rem;
}
.pb-\[2px\] {
  padding-bottom: 2px;
}
.pb-\[clamp\(64px\2c 8vw\2c 96px\)\] {
  padding-bottom: clamp(64px, 8vw, 96px);
}
.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-6 {
  padding-left: 1.5rem;
}
.pl-7 {
  padding-left: 1.75rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pl-\[10px\] {
  padding-left: 10px;
}
.pr-0\.5 {
  padding-right: 0.125rem;
}
.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;
}
.pt-0 {
  padding-top: 0px;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-1\.5 {
  padding-top: 0.375rem;
}
.pt-16 {
  padding-top: 4rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-2\.5 {
  padding-top: 0.625rem;
}
.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-\[3px\] {
  padding-top: 3px;
}
.pt-\[60px\] {
  padding-top: 60px;
}
.pt-\[clamp\(110px\2c 14vw\2c 168px\)\] {
  padding-top: clamp(110px, 14vw, 168px);
}
.pt-\[clamp\(40px\2c 5vw\2c 60px\)\] {
  padding-top: clamp(40px, 5vw, 60px);
}
.pt-\[var\(--dt-space-3\)\] {
  padding-top: var(--dt-space-3);
}
.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-mono {
  font-family: 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-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-\[10\.5px\] {
  font-size: 10.5px;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11\.5px\] {
  font-size: 11.5px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12\.5px\] {
  font-size: 12.5px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13\.5px\] {
  font-size: 13.5px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[16\.5px\] {
  font-size: 16.5px;
}
.text-\[17\.5px\] {
  font-size: 17.5px;
}
.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-\[8px\] {
  font-size: 8px;
}
.text-\[9\.5px\] {
  font-size: 9.5px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-\[clamp\(28px\2c 3\.5vw\2c 40px\)\] {
  font-size: clamp(28px, 3.5vw, 40px);
}
.text-\[clamp\(28px\2c 4vw\2c 46px\)\] {
  font-size: clamp(28px, 4vw, 46px);
}
.text-\[clamp\(32px\2c 5vw\2c 56px\)\] {
  font-size: clamp(32px, 5vw, 56px);
}
.text-\[clamp\(42px\2c 7vw\2c 80px\)\] {
  font-size: clamp(42px, 7vw, 80px);
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-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-6 {
  line-height: 1.5rem;
}
.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\.65\] {
  line-height: 1.65;
}
.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\.01em\] {
  letter-spacing: -0.01em;
}
.tracking-\[-0\.045em\] {
  letter-spacing: -0.045em;
}
.tracking-\[0\.04em\] {
  letter-spacing: 0.04em;
}
.tracking-\[0\.06em\] {
  letter-spacing: 0.06em;
}
.tracking-\[0\.07em\] {
  letter-spacing: 0.07em;
}
.tracking-\[0\.08em\] {
  letter-spacing: 0.08em;
}
.tracking-\[0\.12em\] {
  letter-spacing: 0.12em;
}
.tracking-\[0\.1em\] {
  letter-spacing: 0.1em;
}
.tracking-\[0\.5px\] {
  letter-spacing: 0.5px;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-tighter {
  letter-spacing: -0.05em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-\[var\(--color-accent\)\] {
  color: var(--color-accent);
}
.text-\[var\(--color-accent-spec\)\] {
  color: var(--color-accent-spec);
}
.text-\[var\(--color-blue\)\] {
  color: var(--color-blue);
}
.text-\[var\(--color-dim\)\] {
  color: var(--color-dim);
}
.text-\[var\(--color-muted\)\] {
  color: var(--color-muted);
}
.text-\[var\(--color-negative\)\] {
  color: var(--color-negative);
}
.text-\[var\(--color-negative-spec\)\] {
  color: var(--color-negative-spec);
}
.text-\[var\(--color-purple\)\] {
  color: var(--color-purple);
}
.text-\[var\(--color-red\)\] {
  color: var(--color-red);
}
.text-\[var\(--color-text\)\] {
  color: var(--color-text);
}
.text-\[var\(--color-text-primary\)\] {
  color: var(--color-text-primary);
}
.text-\[var\(--color-text-primary-spec\)\] {
  color: var(--color-text-primary-spec);
}
.text-\[var\(--color-text-secondary\)\] {
  color: var(--color-text-secondary);
}
.text-\[var\(--color-text-secondary-spec\)\] {
  color: var(--color-text-secondary-spec);
}
.text-\[var\(--color-text-tertiary-spec\)\] {
  color: var(--color-text-tertiary-spec);
}
.text-\[var\(--dt-accent-blue\)\] {
  color: var(--dt-accent-blue);
}
.text-\[var\(--dt-bg-primary\2c \#0f172a\)\] {
  color: var(--dt-bg-primary,#0f172a);
}
.text-\[var\(--dt-danger\2c \#DC2626\)\] {
  color: var(--dt-danger,#DC2626);
}
.text-\[var\(--dt-negative\)\] {
  color: var(--dt-negative);
}
.text-\[var\(--dt-positive\)\] {
  color: var(--dt-positive);
}
.text-\[var\(--dt-text-bright\)\] {
  color: var(--dt-text-bright);
}
.text-\[var\(--dt-text-on-accent\2c \#09090b\)\] {
  color: var(--dt-text-on-accent,#09090b);
}
.text-\[var\(--dt-text-primary\)\] {
  color: var(--dt-text-primary);
}
.text-\[var\(--dt-text-primary\2c \#fff\)\] {
  color: var(--dt-text-primary,#fff);
}
.text-\[var\(--dt-text-primary\2c \#ffffff\)\] {
  color: var(--dt-text-primary,#ffffff);
}
.text-\[var\(--dt-text-secondary\)\] {
  color: var(--dt-text-secondary);
}
.text-\[var\(--dt-text-secondary\2c \#8a8a8a\)\] {
  color: var(--dt-text-secondary,#8a8a8a);
}
.text-\[var\(--dt-text-secondary\2c \#ebebed\)\] {
  color: var(--dt-text-secondary,#ebebed);
}
.text-\[var\(--dt-text-tertiary\)\] {
  color: var(--dt-text-tertiary);
}
.text-\[var\(--dt-text-tertiary\2c \#666\)\] {
  color: var(--dt-text-tertiary,#666);
}
.text-\[var\(--dt-text-tertiary\2c \#8a8a8a\)\] {
  color: var(--dt-text-tertiary,#8a8a8a);
}
.text-accent {
  color: hsl(var(--accent));
}
.text-amber-100 {
  --tw-text-opacity: 1;
  color: rgb(254 243 199 / var(--tw-text-opacity, 1));
}
.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-50\/75 {
  color: rgb(255 251 235 / 0.75);
}
.text-amber-50\/90 {
  color: rgb(255 251 235 / 0.9);
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.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-dt-accent {
  color: var(--dt-accent-blue);
}
.text-dt-accent-cyan {
  color: var(--dt-accent-cyan);
}
.text-dt-accent-green {
  color: var(--dt-accent-green);
}
.text-dt-accent-purple {
  color: var(--dt-accent-purple);
}
.text-dt-accent-red {
  color: var(--dt-accent-red);
}
.text-dt-accent-yellow {
  color: var(--dt-accent-yellow);
}
.text-dt-negative {
  color: var(--dt-negative);
}
.text-dt-positive {
  color: var(--dt-positive);
}
.text-dt-text {
  color: var(--dt-text-primary);
}
.text-dt-text-bright {
  color: var(--dt-text-bright);
}
.text-dt-text-dim {
  color: var(--dt-text-dim);
}
.text-dt-text-disabled {
  color: var(--dt-text-disabled);
}
.text-dt-text-light {
  color: var(--dt-text-light);
}
.text-dt-text-muted {
  color: var(--dt-text-muted);
}
.text-dt-text-on-accent {
  color: var(--dt-text-on-accent);
}
.text-dt-text-secondary {
  color: var(--dt-text-secondary);
}
.text-dt-text-slate {
  color: var(--dt-text-slate);
}
.text-dt-text-tertiary {
  color: var(--dt-text-tertiary);
}
.text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.text-emerald-400\/85 {
  color: rgb(52 211 153 / 0.85);
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-foreground\/50 {
  color: hsl(var(--foreground) / 0.5);
}
.text-inherit {
  color: inherit;
}
.text-muted {
  color: hsl(var(--muted));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-negative {
  color: hsl(var(--negative));
}
.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-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-400\/70 {
  color: rgb(248 113 113 / 0.7);
}
.text-red-400\/85 {
  color: rgb(248 113 113 / 0.85);
}
.text-rose-400 {
  --tw-text-opacity: 1;
  color: rgb(251 113 133 / var(--tw-text-opacity, 1));
}
.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}
.text-transparent {
  color: transparent;
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-white\/20 {
  color: rgb(255 255 255 / 0.2);
}
.text-white\/25 {
  color: rgb(255 255 255 / 0.25);
}
.text-white\/30 {
  color: rgb(255 255 255 / 0.3);
}
.text-white\/35 {
  color: rgb(255 255 255 / 0.35);
}
.text-white\/40 {
  color: rgb(255 255 255 / 0.4);
}
.text-white\/45 {
  color: rgb(255 255 255 / 0.45);
}
.text-white\/50 {
  color: rgb(255 255 255 / 0.5);
}
.text-white\/55 {
  color: rgb(255 255 255 / 0.55);
}
.text-white\/60 {
  color: rgb(255 255 255 / 0.6);
}
.text-white\/65 {
  color: rgb(255 255 255 / 0.65);
}
.text-white\/70 {
  color: rgb(255 255 255 / 0.7);
}
.text-white\/80 {
  color: rgb(255 255 255 / 0.8);
}
.text-white\/85 {
  color: rgb(255 255 255 / 0.85);
}
.text-white\/90 {
  color: rgb(255 255 255 / 0.9);
}
.text-white\/\[0\.18\] {
  color: rgb(255 255 255 / 0.18);
}
.text-white\/\[0\.20\] {
  color: rgb(255 255 255 / 0.20);
}
.text-white\/\[0\.24\] {
  color: rgb(255 255 255 / 0.24);
}
.text-white\/\[0\.28\] {
  color: rgb(255 255 255 / 0.28);
}
.text-white\/\[0\.32\] {
  color: rgb(255 255 255 / 0.32);
}
.text-white\/\[0\.46\] {
  color: rgb(255 255 255 / 0.46);
}
.text-white\/\[0\.48\] {
  color: rgb(255 255 255 / 0.48);
}
.text-white\/\[0\.92\] {
  color: rgb(255 255 255 / 0.92);
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.text-zinc-300 {
  --tw-text-opacity: 1;
  color: rgb(212 212 216 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.no-underline {
  text-decoration-line: none;
}
.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));
}
.accent-primary {
  accent-color: hsl(var(--primary));
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-35 {
  opacity: 0.35;
}
.opacity-40 {
  opacity: 0.4;
}
.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-85 {
  opacity: 0.85;
}
.opacity-90 {
  opacity: 0.9;
}
.shadow-\[-6px_0_24px_rgba\(0\2c 0\2c 0\2c 0\.18\)\] {
  --tw-shadow: -6px 0 24px rgba(0,0,0,0.18);
  --tw-shadow-colored: -6px 0 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-\[0_0_0_1px_rgba\(255\2c 255\2c 255\2c 0\.035\)\2c 0_32px_80px_rgba\(0\2c 0\2c 0\2c 0\.65\)\] {
  --tw-shadow: 0 0 0 1px rgba(255,255,255,0.035),0 32px 80px rgba(0,0,0,0.65);
  --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color), 0 32px 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_16px_48px_rgba\(0\2c 0\2c 0\2c 0\.4\)\2c 0_0_0_1px_rgba\(0\2c 229\2c 255\2c 0\.05\)\] {
  --tw-shadow: 0 16px 48px rgba(0,0,0,0.4),0 0 0 1px rgba(0,229,255,0.05);
  --tw-shadow-colored: 0 16px 48px var(--tw-shadow-color), 0 0 0 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-\[0_1px_8px_rgba\(0\2c 0\2c 0\2c 0\.15\)\] {
  --tw-shadow: 0 1px 8px rgba(0,0,0,0.15);
  --tw-shadow-colored: 0 1px 8px 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_4px_24px_rgba\(0\2c 0\2c 0\2c 0\.25\)\] {
  --tw-shadow: 0 4px 24px rgba(0,0,0,0.25);
  --tw-shadow-colored: 0 4px 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-\[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-\[0_8px_24px_rgba\(0\2c 0\2c 0\2c 0\.45\)\] {
  --tw-shadow: 0 8px 24px rgba(0,0,0,0.45);
  --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);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.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-accent {
  --tw-ring-color: hsl(var(--accent));
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.\!filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !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-\[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-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-\[background\] {
  transition-property: background;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[color\2c border-color\] {
  transition-property: color,border-color;
  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;
}
.duration-500 {
  transition-duration: 500ms;
}
.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.will-change-transform {
  will-change: transform;
}
@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;
}
.zoom-in-95 {
  --tw-enter-scale: .95;
}
.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;
}
.duration-500 {
  animation-duration: 500ms;
}
.ease-in {
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.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;
}

/* ══════════════════════════════════════════════════════════════════════════════
   dibsTERMINAL Design System — shadcn/ui + Tailwind CSS
   Clean zinc dark theme (shadcn New York preset)
   ══════════════════════════════════════════════════════════════════════════════ */

/* Geist Sans — variable font from Vercel */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-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) - 2px);
  background-color: hsl(var(--primary));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: hsl(var(--primary-foreground));
}

.file\:mr-3::file-selector-button {
  margin-right: 0.75rem;
}

.file\:rounded-md::file-selector-button {
  border-radius: calc(var(--radius) - 2px);
}

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

.file\:border-input::file-selector-button {
  border-color: hsl(var(--input));
}

.file\:bg-secondary::file-selector-button {
  background-color: hsl(var(--secondary));
}

.file\:px-3::file-selector-button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.file\:py-1::file-selector-button {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.file\:text-xs::file-selector-button {
  font-size: 0.75rem;
  line-height: 1rem;
}

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

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

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

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

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

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

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

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

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

.before\:top-\[-12px\]::before {
  content: var(--tw-content);
  top: -12px;
}

.before\:h-3::before {
  content: var(--tw-content);
  height: 0.75rem;
}

.before\:h-px::before {
  content: var(--tw-content);
  height: 1px;
}

.before\:w-3\.5::before {
  content: var(--tw-content);
  width: 0.875rem;
}

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

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

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

.after\:bottom-\[-4px\]::after {
  content: var(--tw-content);
  bottom: -4px;
}

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

.after\:left-\[2px\]::after {
  content: var(--tw-content);
  left: 2px;
}

.after\:top-\[2px\]::after {
  content: var(--tw-content);
  top: 2px;
}

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

.after\:h-\[2px\]::after {
  content: var(--tw-content);
  height: 2px;
}

.after\:w-5::after {
  content: var(--tw-content);
  width: 1.25rem;
}

.after\:w-full::after {
  content: var(--tw-content);
  width: 100%;
}

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

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

.after\:border-border::after {
  content: var(--tw-content);
  border-color: hsl(var(--border));
}

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

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

.after\:from-primary\/40::after {
  content: var(--tw-content);
  --tw-gradient-from: hsl(var(--primary) / 0.4) 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);
}

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

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

.after\:content-\[\'\'\]::after {
  --tw-content: '';
  content: var(--tw-content);
}

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

.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\:border-\[rgba\(255\2c 255\2c 255\2c 0\.18\)\]:hover {
  border-color: rgba(255,255,255,0.18);
}

.hover\:border-\[var\(--color-accent\2c \#ebebed\)\]:hover {
  border-color: var(--color-accent,#ebebed);
}

.hover\:border-\[var\(--dt-border-primary\2c \#2A2A31\)\]:hover {
  border-color: var(--dt-border-primary,#2A2A31);
}

.hover\:border-dt-text-tertiary:hover {
  border-color: var(--dt-text-tertiary);
}

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

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

.hover\:border-white\/15:hover {
  border-color: rgb(255 255 255 / 0.15);
}

.hover\:border-white\/\[0\.13\]:hover {
  border-color: rgb(255 255 255 / 0.13);
}

.hover\:bg-\[\#059669\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1));
}

.hover\:bg-\[rgba\(199\2c 80\2c 80\2c 0\.08\)\]:hover {
  background-color: rgba(199,80,80,0.08);
}

.hover\:bg-\[var\(--dt-accent-blue-hover\2c \#2563eb\)\]:hover {
  background-color: var(--dt-accent-blue-hover,#2563eb);
}

.hover\:bg-\[var\(--dt-accent-hover\2c \#059669\)\]:hover {
  background-color: var(--dt-accent-hover,#059669);
}

.hover\:bg-\[var\(--dt-bg-hover\)\]:hover {
  background-color: var(--dt-bg-hover);
}

.hover\:bg-\[var\(--dt-bg-hover\2c \#2A2A31\)\]:hover {
  background-color: var(--dt-bg-hover,#2A2A31);
}

.hover\:bg-\[var\(--dt-bg-secondary\)\]:hover {
  background-color: var(--dt-bg-secondary);
}

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

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

.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-dt-bg-elevated:hover {
  background-color: var(--dt-bg-tertiary);
}

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

.hover\:bg-emerald-500\/10:hover {
  background-color: rgb(16 185 129 / 0.1);
}

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

.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-primary\/80:hover {
  background-color: hsl(var(--primary) / 0.8);
}

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

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

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

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

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

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

.hover\:bg-white\/\[0\.02\]:hover {
  background-color: rgb(255 255 255 / 0.02);
}

.hover\:bg-white\/\[0\.03\]:hover {
  background-color: rgb(255 255 255 / 0.03);
}

.hover\:bg-white\/\[0\.04\]:hover {
  background-color: rgb(255 255 255 / 0.04);
}

.hover\:bg-white\/\[0\.06\]:hover {
  background-color: rgb(255 255 255 / 0.06);
}

.hover\:bg-white\/\[0\.07\]:hover {
  background-color: rgb(255 255 255 / 0.07);
}

.hover\:text-\[var\(--color-accent\2c \#ebebed\)\]:hover {
  color: var(--color-accent,#ebebed);
}

.hover\:text-\[var\(--color-red\)\]:hover {
  color: var(--color-red);
}

.hover\:text-\[var\(--color-text\)\]:hover {
  color: var(--color-text);
}

.hover\:text-\[var\(--dt-text-secondary\)\]:hover {
  color: var(--dt-text-secondary);
}

.hover\:text-\[var\(--dt-text-secondary\2c \#ebebed\)\]:hover {
  color: var(--dt-text-secondary,#ebebed);
}

.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}

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

.hover\:text-dt-accent:hover {
  color: var(--dt-accent-blue);
}

.hover\:text-dt-negative:hover {
  color: var(--dt-negative);
}

.hover\:text-dt-text:hover {
  color: var(--dt-text-primary);
}

.hover\:text-dt-text-secondary:hover {
  color: var(--dt-text-secondary);
}

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

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

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

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

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

.hover\:text-white\/45:hover {
  color: rgb(255 255 255 / 0.45);
}

.hover\:text-white\/55:hover {
  color: rgb(255 255 255 / 0.55);
}

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

.hover\:text-white\/70:hover {
  color: rgb(255 255 255 / 0.7);
}

.hover\:text-white\/75:hover {
  color: rgb(255 255 255 / 0.75);
}

.hover\:text-white\/80:hover {
  color: rgb(255 255 255 / 0.8);
}

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

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

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

.hover\:opacity-80:hover {
  opacity: 0.8;
}

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

.hover\:shadow-md:hover {
  --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);
}

.hover\:\[animation-play-state\:paused\]:hover {
  animation-play-state: paused;
}

.focus\:border-\[var\(--color-accent\2c \#ebebed\)\]:focus {
  border-color: var(--color-accent,#ebebed);
}

.focus\:border-\[var\(--dt-accent-green\)\]:focus {
  border-color: var(--dt-accent-green);
}

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

.focus\:border-dt-accent:focus {
  border-color: var(--dt-accent-blue);
}

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

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

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

.focus\:text-accent-foreground:focus {
  color: hsl(var(--accent-foreground));
}

.focus\:text-destructive:focus {
  color: hsl(var(--destructive));
}

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

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

.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-primary\/20:focus {
  --tw-ring-color: hsl(var(--primary) / 0.2);
}

.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}

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

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

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

.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}

.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));
}

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

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

.disabled\:bg-\[var\(--dt-bg-hover\)\]:disabled {
  background-color: var(--dt-bg-hover);
}

.disabled\:bg-\[var\(--dt-bg-tertiary\2c \#2A2A31\)\]:disabled {
  background-color: var(--dt-bg-tertiary,#2A2A31);
}

.disabled\:text-\[var\(--dt-text-dim\)\]:disabled {
  color: var(--dt-text-dim);
}

.disabled\:text-\[var\(--dt-text-tertiary\2c \#8a8a8a\)\]:disabled {
  color: var(--dt-text-tertiary,#8a8a8a);
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.group:hover .group-hover\:pointer-events-auto {
  pointer-events: auto;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

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

.group:hover .group-hover\: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));
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group.destructive .group-\[\.destructive\]\:border-muted\/40 {
  border-color: hsl(var(--muted) / 0.4);
}

.group.destructive .group-\[\.destructive\]\:text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}

.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover {
  border-color: hsl(var(--destructive) / 0.3);
}

.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover {
  background-color: hsl(var(--destructive));
}

.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover {
  color: hsl(var(--destructive-foreground));
}

.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover {
  --tw-text-opacity: 1;
  color: rgb(254 242 242 / var(--tw-text-opacity, 1));
}

.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus {
  --tw-ring-color: hsl(var(--destructive));
}

.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1));
}

.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus {
  --tw-ring-offset-color: #dc2626;
}

.peer:checked ~ .peer-checked\:bg-accent {
  background-color: hsl(var(--accent));
}

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

.peer:checked ~ .peer-checked\:after\:border-white::after {
  content: var(--tw-content);
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.peer:focus ~ .peer-focus\:outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}

.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}

.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}

.data-\[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));
}

.data-\[swipe\=cancel\]\:translate-x-0[data-swipe="cancel"] {
  --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));
}

.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe="end"] {
  --tw-translate-x: var(--radix-toast-swipe-end-x);
  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-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe="move"] {
  --tw-translate-x: var(--radix-toast-swipe-move-x);
  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\=active\]\:border-dt-accent[data-state="active"] {
  border-color: var(--dt-accent-blue);
}

.data-\[state\=active\]\:bg-background[data-state="active"] {
  background-color: hsl(var(--background));
}

.data-\[state\=active\]\:bg-transparent[data-state="active"] {
  background-color: transparent;
}

.data-\[state\=active\]\:bg-white\/\[0\.08\][data-state="active"] {
  background-color: rgb(255 255 255 / 0.08);
}

.data-\[state\=checked\]\:bg-primary[data-state="checked"] {
  background-color: hsl(var(--primary));
}

.data-\[state\=open\]\:bg-accent[data-state="open"] {
  background-color: hsl(var(--accent));
}

.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\]\:text-dt-accent[data-state="active"] {
  color: var(--dt-accent-blue);
}

.data-\[state\=active\]\:text-foreground[data-state="active"] {
  color: hsl(var(--foreground));
}

.data-\[state\=active\]\:text-white\/90[data-state="active"] {
  color: rgb(255 255 255 / 0.9);
}

.data-\[state\=checked\]\:text-primary-foreground[data-state="checked"] {
  color: hsl(var(--primary-foreground));
}

.data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
  color: hsl(var(--muted-foreground));
}

.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-\[swipe\=move\]\:transition-none[data-swipe="move"] {
  transition-property: none;
}

.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-\[swipe\=end\]\:animate-out[data-swipe="end"] {
  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\=closed\]\:fade-out-80[data-state="closed"] {
  --tw-exit-opacity: 0.8;
}

.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-left-1\/2[data-state="closed"] {
  --tw-exit-translate-x: -50%;
}

.data-\[state\=closed\]\:slide-out-to-right-full[data-state="closed"] {
  --tw-exit-translate-x: 100%;
}

.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state="closed"] {
  --tw-exit-translate-y: -48%;
}

.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state="open"] {
  --tw-enter-translate-x: -50%;
}

.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state="open"] {
  --tw-enter-translate-y: -48%;
}

.data-\[state\=open\]\:slide-in-from-top-full[data-state="open"] {
  --tw-enter-translate-y: -100%;
}

@media not all and (min-width: 1024px) {

  .max-lg\:hidden {
    display: none;
  }
}

@media not all and (min-width: 768px) {

  .max-md\:hidden {
    display: none;
  }

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

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

@media not all and (min-width: 640px) {

  .max-sm\:grid {
    display: grid;
  }

  .max-sm\:hidden {
    display: none;
  }

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

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

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

  .max-sm\:flex-col {
    flex-direction: column;
  }

  .max-sm\:items-center {
    align-items: center;
  }

  .max-sm\:gap-1 {
    gap: 0.25rem;
  }

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

  .max-sm\:px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .max-sm\:py-7 {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

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

@media (min-width: 640px) {

  .sm\:bottom-0 {
    bottom: 0px;
  }

  .sm\:right-0 {
    right: 0px;
  }

  .sm\:top-auto {
    top: auto;
  }

  .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\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

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

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

  .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\:text-left {
    text-align: left;
  }

  .data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state="open"] {
    --tw-enter-translate-y: 100%;
  }
}

@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\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:max-w-\[420px\] {
    max-width: 420px;
  }

  .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\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {

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

.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
  padding-right: 0px;
}

.\[\&\>span\]\:line-clamp-1>span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
  border-bottom-width: 0px;
}

.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}

.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
}
