/* AETHRIX v5 command visual layer.
   This file intentionally contains styling only; all data fetching and route
   wiring remains in app.js/tile_contracts.js. */

:root,
[data-theme='dark'] {
  --bg: #0d0e10;
  --surface-1: #12141a;
  --surface-2: #171921;
  --surface-3: #1c1f28;
  --border: #252830;
  --border-2: #2e3140;
  --text: #e2e4ec;
  --text-primary: #e2e4ec;
  --text-secondary: #aeb4c7;
  --text-muted: #8b8fa8;
  --text-faint: #4a4e63;
  --accent: #00d4aa;
  --accent-dim: #00a884;
  --bull: #00c896;
  --bear: #ff4d6d;
  --warn: #f0a500;
  --neutral: #7c84a3;
  --purple: #a78bfa;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
}

body.aethrix-v5-command {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.aethrix-v5-command .header {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  gap: 12px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

body.aethrix-v5-command .logo-svg {
  width: 28px;
  height: 28px;
}

body.aethrix-v5-command .logo-text {
  gap: 1px;
  line-height: 1.08;
}

body.aethrix-v5-command .logo-name {
  font-size: 11px;
  letter-spacing: 2px;
}

body.aethrix-v5-command .logo-sub {
  display: block;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 1.5px;
}

body.aethrix-v5-command .logo-version {
  display: inline-block;
  width: fit-content;
  font-size: 8px;
  border-radius: 3px;
}

body.aethrix-v5-command .header-center {
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.aethrix-v5-command .ticker-track {
  height: 100%;
  animation: none;
}

body.aethrix-v5-command .ticker-item {
  border-right: 1px solid var(--border);
}

body.aethrix-v5-command .header-right {
  min-width: 0;
  gap: 10px;
}

body.aethrix-v5-command .header-meta {
  gap: 8px;
}

body.aethrix-v5-command .clock,
body.aethrix-v5-command .refresh-time,
body.aethrix-v5-command .sentiment-badge,
body.aethrix-v5-command .signal-freshness {
  width: auto;
  min-width: 0;
  border-radius: 3px;
}

body.aethrix-v5-command .theme-toggle,
body.aethrix-v5-command .refresh-btn,
body.aethrix-v5-command .ip-mode-toggle {
  border-radius: var(--radius-sm);
  min-height: 28px;
  background: transparent;
}

body.aethrix-v5-command .owner-mode-notice {
  display: none;
}

body.aethrix-v5-command .operator-status-strip,
body.aethrix-v5-command .command-center-top-row {
  max-width: 1800px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  gap: 12px;
}

body.aethrix-v5-command .operator-status-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: 12px;
}

body.aethrix-v5-command .command-center-top-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: 10px;
  padding-bottom: 8px;
}

body.aethrix-v5-command .operator-status-item,
body.aethrix-v5-command .command-center-tile {
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-left-width: 1px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: none;
}

body.aethrix-v5-command .operator-status-label,
body.aethrix-v5-command .command-center-label {
  font-size: 9px;
  color: var(--text-faint);
}

body.aethrix-v5-command .operator-status-value,
body.aethrix-v5-command .command-center-value {
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

body.aethrix-v5-command .operator-status-meta,
body.aethrix-v5-command .command-center-detail {
  color: var(--text-muted);
  font-size: 10px;
}

body.aethrix-v5-command .data-connection-status {
  max-width: 1800px;
  margin: 0 auto;
  padding: 5px 16px 9px;
  border: 0;
  background: transparent;
  color: var(--text-faint);
}

body.aethrix-v5-command .aethrix-primary-tabs,
body.aethrix-v5-command .section-jump-nav {
  position: sticky;
  top: 48px;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(13, 14, 16, 0.96);
  box-shadow: none;
  overflow-x: auto;
}

body.aethrix-v5-command .section-jump-nav {
  top: 90px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.aethrix-v5-command .section-jump-nav[aria-hidden="true"] {
  display: none;
}

body.aethrix-v5-command .dashboard-layout-control span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.aethrix-v5-command .layout-mode-btn,
body.aethrix-v5-command .section-jump-chip,
body.aethrix-v5-command .tab-btn,
body.aethrix-v5-command .lab-tab {
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body.aethrix-v5-command .layout-mode-btn:hover,
body.aethrix-v5-command .section-jump-chip:hover,
body.aethrix-v5-command .tab-btn:hover,
body.aethrix-v5-command .lab-tab:hover,
body.aethrix-v5-command .layout-mode-btn.active,
body.aethrix-v5-command .section-jump-chip.active,
body.aethrix-v5-command .tab-btn.active,
body.aethrix-v5-command .lab-tab.active {
  color: var(--accent);
  border-color: rgba(0, 212, 170, 0.42);
  background: rgba(0, 212, 170, 0.1);
}

body.aethrix-v5-command .main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  gap: 12px;
}

body.aethrix-v5-command .tier-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  scroll-margin-top: 140px;
}

body.aethrix-v5-command #tier-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.aethrix-v5-command .tier-band[hidden],
body.aethrix-v5-command [hidden] {
  display: none !important;
}

body.aethrix-v5-command .tier-band.dashboard-tab-hidden {
  display: grid !important;
}

body.aethrix-v5-command .tier-band-head,
body.aethrix-v5-command .tab-executive-summary,
body.aethrix-v5-command .tier-alert-strip,
body.aethrix-v5-command .command-cockpit-header,
body.aethrix-v5-command .lab-tabs,
body.aethrix-v5-command .lab-pane,
body.aethrix-v5-command .context-digest,
body.aethrix-v5-command .mini-cross-strip-card,
body.aethrix-v5-command .tier-band-stack,
body.aethrix-v5-command .tier-band-row,
body.aethrix-v5-command .tier-context-dense,
body.aethrix-v5-command .tier-runtime-dense,
body.aethrix-v5-command .operate-grid,
body.aethrix-v5-command .row-grid-2 {
  grid-column: 1 / -1;
}

body.aethrix-v5-command .tier-band-head {
  align-items: center;
  padding: 8px 0 0;
  border: 0;
}

body.aethrix-v5-command .tier-band-kicker {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
}

body.aethrix-v5-command .tier-band-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

body.aethrix-v5-command .tier-band-note {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

body.aethrix-v5-command .tab-executive-summary {
  padding: 11px 14px;
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(0, 212, 170, 0.045);
  color: var(--text-muted);
}

body.aethrix-v5-command .command-cockpit-header {
  border: 1px solid rgba(0, 212, 170, 0.22);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: none;
}

body.aethrix-v5-command .command-cockpit-logo {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.22em;
}

body.aethrix-v5-command .command-cockpit-sub {
  color: var(--text-faint);
}

body.aethrix-v5-command .card,
body.aethrix-v5-command .panel,
body.aethrix-v5-command .command-os-card,
body.aethrix-v5-command .operate-card,
body.aethrix-v5-command .mini-cross-strip-card,
body.aethrix-v5-command .lab-pane,
body.aethrix-v5-command .macro-bar,
body.aethrix-v5-command .footer-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: none;
  overflow: hidden;
}

body.aethrix-v5-command .card-header,
body.aethrix-v5-command .panel-header,
body.aethrix-v5-command .mini-cross-strip-head,
body.aethrix-v5-command .lab-pane-head {
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

body.aethrix-v5-command .section-tag,
body.aethrix-v5-command .panel-icon {
  min-width: 0;
  padding: 2px 7px;
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1px;
}

body.aethrix-v5-command .section-title,
body.aethrix-v5-command .panel-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.aethrix-v5-command .section-subtitle,
body.aethrix-v5-command .panel-badge {
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

body.aethrix-v5-command .panel-badge {
  padding: 3px 8px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

body.aethrix-v5-command .panel-badge.live,
body.aethrix-v5-command .panel-badge.bull {
  color: var(--bull);
  border-color: rgba(0, 200, 150, 0.34);
}

body.aethrix-v5-command .panel-badge.bear {
  color: var(--bear);
  border-color: rgba(255, 77, 109, 0.32);
}

body.aethrix-v5-command .command-os-card,
body.aethrix-v5-command .operate-card {
  min-height: 0;
}

body.aethrix-v5-command #commandProfitEnginePanel,
body.aethrix-v5-command #commandCandidateSentinelPanel,
body.aethrix-v5-command #commandBestIdeasPanel,
body.aethrix-v5-command #commandTopOptionsSummaryPanel,
body.aethrix-v5-command #commandMomentumSummaryPanel,
body.aethrix-v5-command #commandLowFloatMomentumPanel,
body.aethrix-v5-command #commandJarvisBriefingPanel,
body.aethrix-v5-command #commandPlatformAlphaPanel,
body.aethrix-v5-command #commandProviderSummaryPanel,
body.aethrix-v5-command #commandAccuracySummaryPanel,
body.aethrix-v5-command #commandSystemHealthPanel,
body.aethrix-v5-command #commandGovernanceSummaryPanel,
body.aethrix-v5-command #commandDashboardApiTruthPanel,
body.aethrix-v5-command #commandAgentOsPanel,
body.aethrix-v5-command #commandTqsBreakdownPanel,
body.aethrix-v5-command #commandScenarioSwarmPanel,
body.aethrix-v5-command #commandPrimaryCandidatePanel,
body.aethrix-v5-command #commandBrokerPipePanel {
  grid-column: auto;
}

body.aethrix-v5-command .command-os-content {
  padding: 12px 14px 14px;
}

body.aethrix-v5-command .command-os-title {
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
}

body.aethrix-v5-command .command-os-subtitle,
body.aethrix-v5-command .command-os-note,
body.aethrix-v5-command .command-compact-row,
body.aethrix-v5-command .operate-muted {
  color: var(--text-muted);
}

body.aethrix-v5-command .command-os-pill {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

body.aethrix-v5-command .command-os-pill b {
  color: var(--text);
}

body.aethrix-v5-command .command-candidate-metrics,
body.aethrix-v5-command .command-candidate-plan,
body.aethrix-v5-command .trade-card,
body.aethrix-v5-command .asset-cell,
body.aethrix-v5-command .tqs-item,
body.aethrix-v5-command .command-compact-row,
body.aethrix-v5-command .operate-flag-row,
body.aethrix-v5-command .agent-output-card,
body.aethrix-v5-command .github-registry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

body.aethrix-v5-command .row-grid-2,
body.aethrix-v5-command .operate-grid,
body.aethrix-v5-command .lab-grid-2,
body.aethrix-v5-command .tier-context-dense,
body.aethrix-v5-command .tier-runtime-dense {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

body.aethrix-v5-command .tier-band-stack,
body.aethrix-v5-command .tier-band-row,
body.aethrix-v5-command .tier-context-main,
body.aethrix-v5-command .tier-context-rail,
body.aethrix-v5-command .tier-runtime-main,
body.aethrix-v5-command .tier-runtime-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.aethrix-v5-command #tier-action .command-grid,
body.aethrix-v5-command #tier-action .command-row,
body.aethrix-v5-command #tier-action .command-support-grid,
body.aethrix-v5-command #tier-action .row-grid-2 {
  display: contents;
}

body.aethrix-v5-command #tier-action .command-row > *,
body.aethrix-v5-command #tier-action .command-support-grid > *,
body.aethrix-v5-command #tier-action .tier-band-stack > * {
  grid-column: auto;
}

body.aethrix-v5-command .asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(102px, auto);
  min-height: 204px;
  align-content: start;
  background: var(--border);
  gap: 1px;
}

body.aethrix-v5-command #crossAssetSection .cross-asset-body {
  min-height: 204px;
}

body.aethrix-v5-command .trade-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.aethrix-v5-command .macro-bar,
body.aethrix-v5-command .footer-bar {
  padding: 10px 14px;
}

body.aethrix-v5-command .footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

body.aethrix-v5-command .modal-overlay {
  background: rgba(0, 0, 0, 0.72);
}

body.aethrix-v5-command .modal {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

@media (max-width: 1180px) {
  body.aethrix-v5-command .operator-status-strip,
  body.aethrix-v5-command .command-center-top-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.aethrix-v5-command .asset-grid,
  body.aethrix-v5-command .trade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.aethrix-v5-command .header {
    height: auto;
    min-height: 52px;
    padding: 8px 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.aethrix-v5-command .header-left {
    flex: 0 0 auto;
  }

  body.aethrix-v5-command .header-center {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  body.aethrix-v5-command .header-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
  }

  body.aethrix-v5-command .header-meta {
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
  }

  body.aethrix-v5-command .clock,
  body.aethrix-v5-command .refresh-time,
  body.aethrix-v5-command .sentiment-badge,
  body.aethrix-v5-command .signal-freshness {
    font-size: 8px;
  }

  body.aethrix-v5-command .aethrix-primary-tabs {
    top: 108px;
    justify-content: flex-start;
  }

  body.aethrix-v5-command .section-jump-nav {
    top: 154px;
    justify-content: flex-start;
  }

  body.aethrix-v5-command .operator-status-strip,
  body.aethrix-v5-command .command-center-top-row,
  body.aethrix-v5-command .tier-band,
  body.aethrix-v5-command #tier-action,
  body.aethrix-v5-command .row-grid-2,
  body.aethrix-v5-command .operate-grid,
  body.aethrix-v5-command .lab-grid-2,
  body.aethrix-v5-command .tier-context-dense,
  body.aethrix-v5-command .tier-runtime-dense,
  body.aethrix-v5-command .asset-grid,
  body.aethrix-v5-command .trade-grid {
    grid-template-columns: 1fr;
  }

  body.aethrix-v5-command .main,
  body.aethrix-v5-command .operator-status-strip,
  body.aethrix-v5-command .command-center-top-row {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.aethrix-v5-command .tier-band-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.aethrix-v5-command .tier-band-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 520px) {
  body.aethrix-v5-command .logo-name {
    font-size: 10px;
  }

  body.aethrix-v5-command .logo-sub {
    display: block;
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  body.aethrix-v5-command .theme-toggle,
  body.aethrix-v5-command .refresh-btn,
  body.aethrix-v5-command .ip-mode-toggle {
    padding: 4px 6px;
  }

  body.aethrix-v5-command .tier-band-title {
    font-size: 17px;
  }

  body.aethrix-v5-command .card-header,
  body.aethrix-v5-command .panel-header {
    min-height: 38px;
    padding: 8px 10px;
  }

  body.aethrix-v5-command .section-title,
  body.aethrix-v5-command .panel-title {
    font-size: 11px;
  }

  body.aethrix-v5-command .section-subtitle,
  body.aethrix-v5-command .panel-badge {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* Exact Alpha Engine reference composition.
   Keep current AETHRIX data/rendering, but put the legacy v5 intelligence
   dashboard first and move newer Command OS additions lower as extra tiles. */
body.aethrix-v5-command .operator-status-strip,
body.aethrix-v5-command .command-center-top-row,
body.aethrix-v5-command .data-connection-status,
body.aethrix-v5-command .aethrix-primary-tabs,
body.aethrix-v5-command .section-jump-nav,
body.aethrix-v5-command #freshnessRow,
body.aethrix-v5-command #dteDirectionBar,
body.aethrix-v5-command #overnightFuturesContextStrip,
body.aethrix-v5-command #ipModeToggle,
body.aethrix-v5-command #tickAge {
  display: none !important;
}

body.aethrix-v5-command .main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}

body.aethrix-v5-command .header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.aethrix-v5-command .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body.aethrix-v5-command .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-content: flex-end;
}

body.aethrix-v5-command .header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.aethrix-v5-command .logo-version {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

body.aethrix-v5-command .theme-toggle,
body.aethrix-v5-command .refresh-btn {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  background: none;
}

body.aethrix-v5-command .row-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

body.aethrix-v5-command #regimeSection {
  order: 1;
}

body.aethrix-v5-command #crossAssetSection {
  order: 2;
}

body.aethrix-v5-command #predictiveOptionsPanel {
  order: 3;
  grid-column: 1 / -1;
}

body.aethrix-v5-command .tier-band,
body.aethrix-v5-command #agentCouncilSection {
  order: 40;
}

body.aethrix-v5-command #tier-action {
  order: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

body.aethrix-v5-command #tier-execution,
body.aethrix-v5-command #tier-operate,
body.aethrix-v5-command #tier-context,
body.aethrix-v5-command #tier-research,
body.aethrix-v5-command #tier-runtime,
body.aethrix-v5-command #tier-system {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.aethrix-v5-command .tier-band-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

body.aethrix-v5-command .tier-band-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.aethrix-v5-command .tier-band-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.aethrix-v5-command .tab-executive-summary,
body.aethrix-v5-command .command-cockpit-header,
body.aethrix-v5-command .tier-alert-strip {
  grid-column: 1 / -1;
}

body.aethrix-v5-command .command-cockpit-header {
  border: 1px solid var(--border);
  background: var(--surface-1);
}

body.aethrix-v5-command .command-cockpit-logo {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
}

body.aethrix-v5-command .command-cockpit-sub {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

body.aethrix-v5-command .card,
body.aethrix-v5-command .panel,
body.aethrix-v5-command .command-os-card,
body.aethrix-v5-command .operate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: none;
}

body.aethrix-v5-command .card-header,
body.aethrix-v5-command .panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

body.aethrix-v5-command .section-tag,
body.aethrix-v5-command .panel-icon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 212, 170, 0.25);
  letter-spacing: 1px;
}

body.aethrix-v5-command .section-title,
body.aethrix-v5-command .panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.aethrix-v5-command .section-subtitle,
body.aethrix-v5-command .panel-badge {
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

body.aethrix-v5-command .command-os-card,
body.aethrix-v5-command .operate-card,
body.aethrix-v5-command #commandProfitEnginePanel,
body.aethrix-v5-command #commandCandidateSentinelPanel,
body.aethrix-v5-command #commandBestIdeasPanel,
body.aethrix-v5-command #commandTopOptionsSummaryPanel,
body.aethrix-v5-command #commandMomentumSummaryPanel,
body.aethrix-v5-command #commandLowFloatMomentumPanel,
body.aethrix-v5-command #commandDashboardApiTruthPanel,
body.aethrix-v5-command #commandAgentOsPanel,
body.aethrix-v5-command #commandTqsBreakdownPanel,
body.aethrix-v5-command #commandScenarioSwarmPanel,
body.aethrix-v5-command #commandPrimaryCandidatePanel,
body.aethrix-v5-command #commandBrokerPipePanel,
body.aethrix-v5-command #commandJarvisBriefingPanel,
body.aethrix-v5-command #commandPlatformAlphaPanel,
body.aethrix-v5-command #commandProviderSummaryPanel,
body.aethrix-v5-command #commandAccuracySummaryPanel,
body.aethrix-v5-command #commandSystemHealthPanel,
body.aethrix-v5-command #commandGovernanceSummaryPanel {
  grid-column: auto;
}

body.aethrix-v5-command .macro-bar,
body.aethrix-v5-command .footer-bar {
  order: 50;
}

@media (max-width: 820px) {
  body.aethrix-v5-command .header {
    gap: 8px;
    height: auto;
    min-height: 52px;
    padding: 8px 10px;
    flex-wrap: wrap;
  }

  body.aethrix-v5-command .header-center {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    height: 22px;
  }

  body.aethrix-v5-command .header-right {
    flex: 1 1 auto;
    gap: 6px;
    flex-wrap: wrap;
  }

  body.aethrix-v5-command .row-grid-2,
  body.aethrix-v5-command #tier-action,
  body.aethrix-v5-command #tier-execution,
  body.aethrix-v5-command #tier-operate,
  body.aethrix-v5-command #tier-context,
  body.aethrix-v5-command #tier-research,
  body.aethrix-v5-command #tier-runtime,
  body.aethrix-v5-command #tier-system {
    grid-template-columns: 1fr;
  }

  body.aethrix-v5-command .main {
    padding: 10px 10px 28px;
  }
}

body.aethrix-v5-command .asset-price.quote-delayed {
  color: var(--warn);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.aethrix-v5-command .dashboard-data-gap {
  align-items: flex-start;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 84px;
  padding: 18px 22px;
}

body.aethrix-v5-command .dashboard-data-gap b {
  color: var(--warn);
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.aethrix-v5-command .dashboard-data-gap span {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.45;
}

body.aethrix-v5-command .dashboard-data-gap-row td {
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .02em;
  padding: 18px 22px;
}
