/* AXIS unified Sentinel system.
   Loaded after legacy and route styles so one deliberate layer owns chrome. */

:root {
  --axis-s-obsidian: #040506;
  --axis-s-carbon: #090b0e;
  --axis-s-graphite: #11141a;
  --axis-s-panel: #0c0f13;
  --axis-s-panel-raised: #141820;
  --axis-s-platinum: #e8e3d8;
  --axis-s-platinum-soft: #b5aea1;
  --axis-s-muted: #85817a;
  --axis-s-gold: #d6a94a;
  --axis-s-gold-bright: #f1cf78;
  --axis-s-good: #39c7a6;
  --axis-s-bad: #ff6b6f;
  --axis-s-line: rgba(232, 227, 216, 0.1);
  --axis-s-line-gold: rgba(214, 169, 74, 0.24);
  --axis-s-line-strong: rgba(241, 207, 120, 0.48);
  --axis-s-shadow: 0 26px 74px rgba(0, 0, 0, 0.42);
  --axis-s-radius-xs: 7px;
  --axis-s-radius-sm: 11px;
  --axis-s-radius-md: 17px;
  --axis-s-radius-lg: 22px;
  --axis-s-display: "Segoe UI Variable Display", "Avenir Next", "Segoe UI", sans-serif;
  --axis-s-ui: "Avenir Next", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --axis-s-data: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Category controls are identical on every route, including Home and Sentinel. */
body[data-route] .site-header .market-hub {
  gap: 8px !important;
}

body[data-route] .site-header .market-hub-trigger,
body[data-route] .site-header .market-hub-link {
  height: 31px !important;
  min-height: 31px !important;
  padding: 5px 10px !important;
  border: 1px solid var(--axis-s-line) !important;
  border-radius: 999px !important;
  background: rgba(12, 15, 19, 0.84) !important;
  color: var(--axis-s-platinum-soft) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.24) !important;
  font-family: var(--axis-s-ui) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  box-sizing: border-box;
  justify-content: center !important;
  text-align: center !important;
}

body[data-route] .site-header .market-hub-trigger {
  position: relative;
  flex: 0 0 104px !important;
  width: 104px !important;
  min-width: 104px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.055em !important;
}

body[data-route] .site-header .market-hub-trigger[data-dropdown-trigger] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 10px;
  align-items: center;
  justify-content: stretch !important;
  column-gap: 5px;
}

body[data-route] .site-header .market-hub-trigger[data-dropdown-trigger] > span:first-child {
  min-width: 0;
  text-align: center;
}

body[data-route] .site-header .market-hub-link {
  min-width: max-content !important;
  text-transform: uppercase !important;
  letter-spacing: 0.055em !important;
}

body[data-route] .site-header .market-hub-trigger:hover,
body[data-route] .site-header .market-hub-trigger:focus-visible,
body[data-route] .site-header .market-hub-trigger[aria-expanded="true"],
body[data-route] .site-header .market-hub-link:hover,
body[data-route] .site-header .market-hub-link:focus-visible,
body[data-route] .site-header .market-hub-link.is-active {
  border-color: var(--axis-s-line-strong) !important;
  background: rgba(214, 169, 74, 0.09) !important;
  color: var(--axis-s-gold-bright) !important;
  box-shadow: 0 0 0 3px rgba(214, 169, 74, 0.055), 0 14px 34px rgba(0, 0, 0, 0.26) !important;
}

body[data-route] .site-header .market-hub-trigger[data-dropdown-trigger] .selector-caret {
  position: static;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin-top: 0;
  color: var(--axis-s-platinum-soft) !important;
  opacity: 0.8;
}

/* Home keeps its composition and motion; only its material palette is aligned. */
body[data-route="home"] {
  --axis-ink: var(--axis-s-obsidian);
  --axis-carbon: var(--axis-s-carbon);
  --axis-panel: var(--axis-s-panel);
  --axis-panel-soft: var(--axis-s-panel-raised);
  --axis-line: var(--axis-s-line);
  --axis-line-gold: var(--axis-s-line-gold);
  --axis-platinum: var(--axis-s-platinum);
  --axis-white: #f1eee7;
  --axis-muted: var(--axis-s-muted);
  --axis-gold: var(--axis-s-gold);
  --axis-gold-bright: var(--axis-s-gold-bright);
  --axis-up: var(--axis-s-good);
  --axis-down: var(--axis-s-bad);
}

body[data-route="home"] .axis-home {
  background:
    radial-gradient(880px 520px at 74% -8%, rgba(214, 169, 74, 0.13), transparent 68%),
    radial-gradient(720px 520px at 10% 44%, rgba(232, 227, 216, 0.04), transparent 70%),
    linear-gradient(118deg, #030405 0%, #090b0f 46%, #040506 100%) !important;
}

body[data-route="home"] .site-header {
  border-bottom-color: var(--axis-s-line-gold) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(4, 5, 6, 0.9) !important;
}

/* Product routes: same obsidian, platinum and signal-gold system as Sentinel. */
body:not([data-route="home"]):not([data-route="sentinel"]) {
  --bg: var(--axis-s-obsidian);
  --bg-elevated: rgba(12, 15, 19, 0.94);
  --bg-soft: rgba(9, 11, 14, 0.86);
  --panel: rgba(12, 15, 19, 0.94);
  --line: var(--axis-s-line);
  --line-strong: var(--axis-s-line-strong);
  --text: var(--axis-s-platinum);
  --muted: var(--axis-s-platinum-soft);
  --accent: var(--axis-s-gold);
  --accent-strong: var(--axis-s-gold-bright);
  --gold: var(--axis-s-gold);
  --danger: var(--axis-s-bad);
  --success: var(--axis-s-good);
  color: var(--axis-s-platinum);
  background:
    radial-gradient(880px 520px at 74% -8%, rgba(232, 227, 216, 0.055), transparent 68%),
    radial-gradient(720px 520px at 10% 44%, rgba(214, 169, 74, 0.035), transparent 70%),
    linear-gradient(118deg, #030405 0%, #090b0f 46%, #040506 100%) !important;
  font-family: var(--axis-s-ui);
}

body:not([data-route="home"]):not([data-route="sentinel"]) button,
body:not([data-route="home"]):not([data-route="sentinel"]) input,
body:not([data-route="home"]):not([data-route="sentinel"]) select,
body:not([data-route="home"]):not([data-route="sentinel"]) textarea {
  font-family: var(--axis-s-ui);
}

body:not([data-route="home"]):not([data-route="sentinel"]) .site-background {
  display: block !important;
  opacity: 1 !important;
  background:
    radial-gradient(880px 520px at 74% -8%, rgba(232, 227, 216, 0.055), transparent 68%),
    radial-gradient(720px 520px at 10% 44%, rgba(214, 169, 74, 0.035), transparent 70%),
    linear-gradient(118deg, #030405 0%, #090b0f 46%, #040506 100%) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .background-grid {
  display: block !important;
  opacity: 0.56 !important;
  background-image:
    linear-gradient(rgba(232, 227, 216, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 216, 0.024) 1px, transparent 1px) !important;
  background-size: 68px 68px !important;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.52) 62%, transparent 100%);
}

body:not([data-route="home"]):not([data-route="sentinel"]) .site-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .site-main,
body:not([data-route="home"]):not([data-route="sentinel"]) .main {
  background: transparent !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .site-header {
  border-bottom-color: rgba(214, 169, 74, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(4, 5, 6, 0.9) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(24px) saturate(1.12);
}

body:not([data-route="home"]):not([data-route="sentinel"]) .brand-mark {
  border-color: var(--axis-s-line-gold) !important;
  border-radius: var(--axis-s-radius-sm) !important;
  background: #060708 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 8px 24px rgba(0, 0, 0, 0.34) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .brand-title {
  color: var(--axis-s-platinum) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .brand-subtitle {
  color: var(--axis-s-gold) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .header-auth-name,
body:not([data-route="home"]):not([data-route="sentinel"]) .header-auth-login,
body:not([data-route="home"]):not([data-route="sentinel"]) .header-auth-logout {
  min-height: 31px !important;
  border-color: var(--axis-s-line) !important;
  border-radius: 999px !important;
  background: rgba(12, 15, 19, 0.84) !important;
  color: var(--axis-s-platinum-soft) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.24) !important;
  font-weight: 450 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .selector-menu,
body:not([data-route="home"]):not([data-route="sentinel"]) .header-auth-menu,
body:not([data-route="home"]):not([data-route="sentinel"]) .auth-modal {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-md) !important;
  background:
    radial-gradient(circle at 82% 0%, rgba(214, 169, 74, 0.075), transparent 42%),
    rgba(12, 15, 19, 0.97) !important;
  box-shadow: var(--axis-s-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.08);
}

body:not([data-route="home"]):not([data-route="sentinel"]) .selector-trigger,
body:not([data-route="home"]):not([data-route="sentinel"]) .selector-item,
body:not([data-route="home"]):not([data-route="sentinel"]) .toggle-button,
body:not([data-route="home"]):not([data-route="sentinel"]) .axis-share-trigger,
body:not([data-route="home"]):not([data-route="sentinel"]) .axis-drawing-tool,
body:not([data-route="home"]):not([data-route="sentinel"]) .axis-drawing-color,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-layout-sync-switch,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-help-trigger,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-settings-trigger,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-settings-actions button,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-toolbar-link {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-sm) !important;
  background: rgba(12, 15, 19, 0.84) !important;
  color: var(--axis-s-platinum-soft) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* The global control reset above also matches market category selectors.
   Restore the category typography after that reset on every route. */
body[data-route] .site-header .market-hub-trigger,
body[data-route] .site-header .market-hub-link {
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .selector-trigger:hover,
body:not([data-route="home"]):not([data-route="sentinel"]) .selector-trigger:focus-visible,
body:not([data-route="home"]):not([data-route="sentinel"]) .selector-trigger[aria-expanded="true"],
body:not([data-route="home"]):not([data-route="sentinel"]) .selector-item:hover,
body:not([data-route="home"]):not([data-route="sentinel"]) .selector-item.is-active,
body:not([data-route="home"]):not([data-route="sentinel"]) .toggle-button.is-active,
body:not([data-route="home"]):not([data-route="sentinel"]) .axis-drawing-tool.is-active,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-help-trigger:hover,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-settings-trigger:hover {
  border-color: var(--axis-s-line-strong) !important;
  background: rgba(214, 169, 74, 0.09) !important;
  color: var(--axis-s-gold-bright) !important;
  box-shadow: 0 0 0 3px rgba(214, 169, 74, 0.055) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) h1,
body:not([data-route="home"]):not([data-route="sentinel"]) h2,
body:not([data-route="home"]):not([data-route="sentinel"]) h3,
body:not([data-route="home"]):not([data-route="sentinel"]) h4 {
  color: var(--axis-s-platinum) !important;
  font-family: var(--axis-s-display);
  font-weight: 550;
  letter-spacing: -0.02em;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .section-label,
body:not([data-route="home"]):not([data-route="sentinel"]) .eyebrow,
body:not([data-route="home"]):not([data-route="sentinel"]) .panel-kicker,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-manager-eyebrow,
body:not([data-route="home"]):not([data-route="sentinel"]) .tile-badge {
  color: var(--axis-s-gold) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-manager-bar,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-dashboard-tile,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-chart-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-terminal-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .footprint-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .flow-terminal-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .fund-position-terminal-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-metric-terminal-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-page-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .options-chain-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .macro-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .macro-panel,
body:not([data-route="home"]):not([data-route="sentinel"]) .macro-card,
body:not([data-route="home"]):not([data-route="sentinel"]) .macro-event,
body:not([data-route="home"]):not([data-route="sentinel"]) .knowledge-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .knowledge-panel,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-panel,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-confirm-card,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-dialog-card,
body:not([data-route="home"]):not([data-route="sentinel"]) .module-panel,
body:not([data-route="home"]):not([data-route="sentinel"]) .module-card {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-md) !important;
  background:
    linear-gradient(145deg, rgba(20, 24, 32, 0.9), rgba(7, 9, 12, 0.97)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.028), 0 18px 46px rgba(0, 0, 0, 0.25) !important;
}

/* Order Book is a continuous terminal surface: the toolbar must not read as
   a second framed canvas above the chart. The chart frame remains recessed. */
body[data-route="orderbook"] .orderbook-page .orderbook-chart-shell {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-route="orderbook"] .orderbook-toolbar {
  padding: 0 3px 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-route="orderbook"] .orderbook-chart-frame {
  border-color: rgba(214, 169, 74, 0.14) !important;
  background: #030405 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .chart-toolbar-row,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-toolbar-left,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-toolbar-right,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .footprint-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .flow-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .fund-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-metric-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-page-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .profile-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-topbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile-head,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-panel-head {
  border-color: var(--axis-s-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent),
    rgba(9, 11, 14, 0.9) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .tile-placeholder,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-terminal-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-panel,
body:not([data-route="home"]):not([data-route="sentinel"]) .footprint-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-panel,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-canvas-shell,
body:not([data-route="home"]):not([data-route="sentinel"]) .flow-terminal-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .funding-terminal-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-metric-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-metric-terminal-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-page-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .options-chain-table,
body:not([data-route="home"]):not([data-route="sentinel"]) .chain-sidebar,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-embed,
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-market-metric-tile {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-sm) !important;
  background: rgba(4, 5, 6, 0.86) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.022) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile::before,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-dashboard-tile::before,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-shell::before {
  display: block !important;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 169, 74, 0.56), transparent) !important;
  opacity: 0.54 !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile:hover,
body:not([data-route="home"]):not([data-route="sentinel"]) .macro-card:hover,
body:not([data-route="home"]):not([data-route="sentinel"]) .module-card:hover {
  border-color: rgba(241, 207, 120, 0.36) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 22px 54px rgba(0, 0, 0, 0.3) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) table th {
  color: var(--axis-s-muted) !important;
  background: rgba(9, 11, 14, 0.92) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) table td {
  border-color: var(--axis-s-line) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) table tbody tr:hover td {
  background: rgba(214, 169, 74, 0.045) !important;
}

/* Journal: neutral graphite is the material; gold marks only the active action. */
body[data-route="journal"] {
  --bg-0: var(--axis-s-obsidian) !important;
  --bg-1: rgba(9, 11, 14, 0.96) !important;
  --bg-2: rgba(12, 15, 19, 0.96) !important;
  --bg-3: rgba(232, 227, 216, 0.045) !important;
  --bg-4: rgba(20, 24, 32, 0.88) !important;
  --border-0: rgba(232, 227, 216, 0.1) !important;
  --border-1: rgba(232, 227, 216, 0.18) !important;
  --text-0: var(--axis-s-platinum) !important;
  --text-1: #c7c2b8 !important;
  --text-2: var(--axis-s-platinum-soft) !important;
  --text-3: var(--axis-s-muted) !important;
  --blue: #a4adb9 !important;
  --blue-d: rgba(164, 173, 185, 0.09) !important;
  --amber: var(--axis-s-gold) !important;
  --amber-d: rgba(214, 169, 74, 0.09) !important;
  --cyan: var(--axis-s-gold) !important;
  --cyan-d: rgba(214, 169, 74, 0.09) !important;
  --purple: #aaa3b4 !important;
  --purple-d: rgba(170, 163, 180, 0.09) !important;
  --r: var(--axis-s-radius-xs) !important;
  --r2: var(--axis-s-radius-sm) !important;
}

body[data-route="journal"] .journal-metrics-bar,
body[data-route="journal"] .nav {
  border-color: var(--axis-s-line) !important;
  background: rgba(9, 11, 14, 0.92) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02) !important;
}

body[data-route="journal"] .cd,
body[data-route="journal"] .sc,
body[data-route="journal"] .modal,
body[data-route="journal"] .calendar-detail-row,
body[data-route="journal"] .calendar-day,
body[data-route="journal"] .detail-cell,
body[data-route="journal"] .detail-checklist,
body[data-route="journal"] .api-card,
body[data-route="journal"] .share-field,
body[data-route="journal"] .share-check,
body[data-route="journal"] .share-preview {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-sm) !important;
  background: linear-gradient(145deg, rgba(17, 20, 26, 0.94), rgba(7, 9, 12, 0.98)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 16px 38px rgba(0, 0, 0, 0.2) !important;
}

body[data-route="journal"] .chart-embed,
body[data-route="journal"] .detail-chart-card,
body[data-route="journal"] .cc,
body[data-route="journal"] .ccb,
body[data-route="journal"] .fi,
body[data-route="journal"] .fs,
body[data-route="journal"] .fta,
body[data-route="journal"] .sr-in,
body[data-route="journal"] .axis-select-trigger,
body[data-route="journal"] .dt-pop,
body[data-route="journal"] .axis-select-menu {
  border-color: var(--axis-s-line) !important;
  background-color: rgba(4, 5, 6, 0.9) !important;
}

body[data-route="journal"] .api-mini,
body[data-route="journal"] .calendar-stat,
body[data-route="journal"] .calendar-trade-chip,
body[data-route="journal"] .calendar-detail-meta div {
  border-color: var(--axis-s-line) !important;
  background: rgba(232, 227, 216, 0.025) !important;
}

body[data-axis-theme][data-route="journal"] .site-background {
  background:
    radial-gradient(880px 520px at 74% -8%, rgba(232, 227, 216, 0.055), transparent 68%),
    radial-gradient(720px 520px at 10% 44%, rgba(214, 169, 74, 0.035), transparent 70%),
    linear-gradient(118deg, #030405 0%, #090b0f 46%, #040506 100%) !important;
}

body[data-axis-theme][data-route="journal"] .background-grid {
  display: block !important;
  opacity: 0.5 !important;
  background-image:
    linear-gradient(rgba(232, 227, 216, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 216, 0.022) 1px, transparent 1px) !important;
  background-size: 68px 68px !important;
}

body[data-axis-theme][data-route="journal"] .cd,
body[data-axis-theme][data-route="journal"] .sc,
body[data-axis-theme][data-route="journal"] .modal,
body[data-axis-theme][data-route="journal"] .calendar-detail-row,
body[data-axis-theme][data-route="journal"] .calendar-day,
body[data-axis-theme][data-route="journal"] .detail-cell,
body[data-axis-theme][data-route="journal"] .detail-checklist {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-sm) !important;
  background: linear-gradient(145deg, rgba(17, 20, 26, 0.94), rgba(7, 9, 12, 0.98)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 16px 38px rgba(0, 0, 0, 0.2) !important;
}

body[data-axis-theme][data-route="journal"] .chart-embed,
body[data-axis-theme][data-route="journal"] .detail-chart-card,
body[data-axis-theme][data-route="journal"] .cc,
body[data-axis-theme][data-route="journal"] .ccb {
  border-color: var(--axis-s-line) !important;
  background:
    linear-gradient(rgba(232, 227, 216, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 216, 0.022) 1px, transparent 1px),
    rgba(4, 5, 6, 0.94) !important;
  background-size: 100% 25%, 12.5% 100% !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.022) !important;
}

body[data-axis-theme-neon="on"][data-route="journal"] .cd,
body[data-axis-theme-neon="on"][data-route="journal"] .sc,
body[data-axis-theme-neon="on"][data-route="journal"] .modal,
body[data-axis-theme-neon="on"][data-route="journal"] .chart-embed {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 16px 38px rgba(0, 0, 0, 0.2) !important;
}

body[data-route="journal"] .nav-t {
  color: var(--axis-s-muted) !important;
  font-family: var(--axis-s-ui) !important;
  font-weight: 520 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

body[data-route="journal"] .nav-t:hover {
  color: var(--axis-s-platinum-soft) !important;
}

body[data-route="journal"] .nav-t.on {
  color: var(--axis-s-gold-bright) !important;
}

body[data-route="journal"] .nav-t.on::after {
  height: 1px !important;
  background: var(--axis-s-gold) !important;
  box-shadow: none !important;
}

/* Intelligence routes: preserve information architecture, replace the old gold wash. */
body[data-route="intelligence"] {
  --axis-theme-accent: #9aa6b2 !important;
  --axis-theme-accent-rgb: 154, 166, 178 !important;
  --axis-theme-accent-strong: #c7ced6 !important;
  --intel-bg: var(--axis-s-obsidian) !important;
  --intel-panel: rgba(12, 15, 19, 0.96) !important;
  --intel-panel-soft: rgba(17, 20, 26, 0.88) !important;
  --intel-line: rgba(232, 227, 216, 0.1) !important;
  --intel-line-soft: rgba(232, 227, 216, 0.08) !important;
  --intel-green: var(--axis-s-good) !important;
  --intel-red: var(--axis-s-bad) !important;
  --intel-blue: #9cabbd !important;
  --intel-amber: var(--axis-s-gold) !important;
}

body[data-route="intelligence"] .intel-eyebrow,
body[data-route="intelligence"] .intel-card-kicker,
body[data-route="intelligence"] .intel-metric-label,
body[data-route="intelligence"] .intel-label,
body[data-route="intelligence"] .intel-table th,
body[data-route="intelligence"] .intel-mini-label {
  color: #a7afb9 !important;
}

body[data-route="intelligence"] .intel-card,
body[data-route="intelligence"] .intel-hero {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-md) !important;
  background: linear-gradient(145deg, rgba(20, 24, 32, 0.9), rgba(7, 9, 12, 0.97)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.028), 0 18px 46px rgba(0, 0, 0, 0.24) !important;
}

body[data-route="intelligence"] .intel-status,
body[data-route="intelligence"] .intel-pill,
body[data-route="intelligence"] .intel-verdict-badge,
body[data-route="intelligence"] .intel-chip {
  border-color: var(--axis-s-line) !important;
  background: rgba(232, 227, 216, 0.035) !important;
  color: var(--axis-s-platinum-soft) !important;
}

body[data-route="intelligence"] .intel-status.is-live {
  border-color: rgba(57, 199, 166, 0.34) !important;
  background: rgba(57, 199, 166, 0.075) !important;
  color: var(--axis-s-good) !important;
}

body[data-route="intelligence"] .intel-status.is-error {
  border-color: rgba(255, 107, 111, 0.34) !important;
  background: rgba(255, 107, 111, 0.06) !important;
  color: var(--axis-s-bad) !important;
}

body[data-route="intelligence"] .intel-primary-chart {
  border-color: var(--axis-s-line) !important;
  background:
    linear-gradient(rgba(232, 227, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 216, 0.032) 1px, transparent 1px),
    #06080c !important;
  background-size: 100% 25%, 12.5% 100% !important;
}

body[data-route="intelligence"] .intel-table tbody tr:hover,
body[data-route="intelligence"] .intel-news-row:hover {
  background: rgba(232, 227, 216, 0.035) !important;
}

/* Shared surface continuity: one panel, one material.
   Nested heads and toolbar groups must not paint opaque rectangles over their
   parent surface; chart frames remain the only intentionally recessed layer. */
body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile-head,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-panel-head {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile-head {
  min-height: 40px;
  margin-bottom: 8px !important;
  padding: 0 34px 7px 2px !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile-remove {
  top: -2px !important;
  right: 0 !important;
  width: 25px !important;
  height: 25px !important;
  border-radius: 8px !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .chart-toolbar-row,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .footprint-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .flow-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .fund-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .market-metric-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-page-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .profile-terminal-toolbar,
body:not([data-route="home"]):not([data-route="sentinel"]) .dom-topbar {
  border: 0 !important;
  border-bottom: 1px solid rgba(232, 227, 216, 0.075) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .chart-toolbar-left,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-toolbar-right {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile.dashboard-market-metric-tile {
  border-color: var(--axis-s-line) !important;
  border-radius: var(--axis-s-radius-md) !important;
  background: linear-gradient(145deg, rgba(20, 24, 32, 0.9), rgba(7, 9, 12, 0.97)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.028), 0 18px 46px rgba(0, 0, 0, 0.25) !important;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .market-metric-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-tile-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .open-interest-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .flow-tile-chart,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .footprint-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-chart-frame,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-surface {
  overflow: hidden !important;
  isolation: isolate;
}

body:not([data-route="home"]):not([data-route="sentinel"]) .dashboard-tile canvas,
body:not([data-route="home"]):not([data-route="sentinel"]) .chart-surface canvas,
body:not([data-route="home"]):not([data-route="sentinel"]) .orderbook-chart-frame canvas,
body:not([data-route="home"]):not([data-route="sentinel"]) .footprint-chart-frame canvas,
body:not([data-route="home"]):not([data-route="sentinel"]) .spot-depth-chart-frame canvas {
  display: block;
  max-width: 100%;
}

/* Never alter chart hit-testing or motion geometry. */
.axis-chart-appearance-host,
.chart-surface,
.price-chart-panel,
.volume-chart-panel,
.chart-canvas,
.spot-depth-canvas,
.footprint-canvas,
.market-profile-canvas {
  transform: none;
}

/* Chart appearance is user-owned. Keep the late terminal surface pass from
   repainting a selected color or uploaded artwork back to obsidian. */
html[data-axis-chart-labels] body[data-route] .axis-chart-appearance-host {
  background: var(--axis-chart-background-color, #000000) !important;
}

@media (max-width: 900px) {
  body[data-route] .site-header .market-hub-trigger {
    flex-basis: 104px !important;
  }
}

@media (max-width: 760px) {
  body[data-route="dashboard"] .dashboard-chart-tile .chart-toolbar-row {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-route] .site-header .market-hub-trigger,
  body[data-route] .site-header .market-hub-link {
    transition-duration: 0.001ms !important;
  }
}

/* AXIS information architecture: market context stays in the primary header;
   the second rail owns the active professional workspace. Route and data
   contracts remain unchanged behind these labels. */
body[data-route] .site-header .axis-market-context {
  display: inline-flex !important;
  flex: 0 0 92px !important;
  width: 92px !important;
  min-width: 92px !important;
  justify-content: center !important;
  padding-inline: 9px !important;
}

body[data-route] .site-header .axis-global-context {
  flex-basis: 86px !important;
  width: 86px !important;
  min-width: 86px !important;
}

body[data-route] .site-header .axis-global-context[href$="sentinel.html"] {
  flex-basis: 94px !important;
  width: 94px !important;
  min-width: 94px !important;
}

body[data-route] .site-header .axis-global-context.is-context-divider {
  margin-left: 8px;
}

body[data-route] .site-header .axis-global-context.is-context-divider::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: -9px;
  width: 1px;
  background: rgba(232, 227, 216, 0.1);
}

.axis-workspace-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 990;
  flex: 0 0 39px;
  width: 100%;
  height: 39px;
  min-height: 39px;
  border-bottom: 1px solid rgba(232, 227, 216, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    rgba(5, 6, 8, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(1.08);
  overflow: visible;
  isolation: isolate;
}

.axis-workspace-nav-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(100%, 1160px);
  height: 100%;
  margin: 0 auto;
  padding: 4px 14px;
  overflow: visible;
}

.axis-workspace-context {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin-right: 7px;
  padding-right: 14px;
  border-right: 1px solid rgba(232, 227, 216, 0.1);
  color: var(--axis-s-gold);
  font-family: var(--axis-s-data);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.axis-workspace-group {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.axis-workspace-link {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-template-columns: minmax(0, 1fr) auto;
  place-items: center;
  column-gap: 7px;
  min-width: 104px;
  height: 29px;
  min-height: 29px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  appearance: none;
  background: transparent;
  color: var(--axis-s-platinum-soft);
  font-family: var(--axis-s-ui);
  font-size: 0.7rem;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0.085em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.axis-workspace-link:hover,
.axis-workspace-link:focus-visible,
.axis-workspace-link[aria-expanded="true"] {
  border-color: rgba(232, 227, 216, 0.12);
  background: rgba(232, 227, 216, 0.035);
  color: var(--axis-s-platinum);
  outline: none;
}

.axis-workspace-link.is-active,
.axis-workspace-group.is-active > .axis-workspace-link {
  border-color: rgba(214, 169, 74, 0.3);
  background: rgba(214, 169, 74, 0.09);
  color: var(--axis-s-gold-bright);
}

.axis-workspace-link.is-active::after,
.axis-workspace-group.is-active > .axis-workspace-link::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: -5px;
  left: 13px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--axis-s-gold), transparent);
}

.axis-workspace-trigger .selector-caret {
  width: 9px;
  height: 9px;
  margin: 0;
  color: currentColor;
  opacity: 0.72;
}

.axis-workspace-menu {
  top: calc(100% + 6px) !important;
  left: 0 !important;
  z-index: 1100 !important;
  min-width: 226px !important;
  gap: 4px !important;
  padding: 7px !important;
  border: 1px solid var(--axis-s-line-gold) !important;
  border-radius: var(--axis-s-radius-sm) !important;
  background: rgba(6, 8, 11, 0.985) !important;
  box-shadow: var(--axis-s-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.08);
}

.axis-workspace-menu .selector-item {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--axis-s-platinum-soft) !important;
  font-family: var(--axis-s-ui);
  font-size: 0.76rem;
  letter-spacing: 0.015em;
  text-transform: none;
}

.axis-workspace-menu .selector-item:hover,
.axis-workspace-menu .selector-item:focus-visible,
.axis-workspace-menu .selector-item.is-active {
  border-color: rgba(214, 169, 74, 0.24) !important;
  background: rgba(214, 169, 74, 0.08) !important;
  color: var(--axis-s-gold-bright) !important;
}

/* Full-screen canvases keep their existing renderer geometry and simply use
   the viewport left after the new 39px workspace rail. */
body.axis-has-workspace-nav[data-route="terminal"] .site-main,
body.axis-has-workspace-nav[data-route="market-profile"] .site-main,
body.axis-has-workspace-nav[data-route="footprint"] .site-main,
body.axis-has-workspace-nav[data-route="spot-depth"] .site-main,
body.axis-has-workspace-nav[data-route="orderbook"] .site-main,
body.axis-has-workspace-nav[data-route="dom-terminal"] .site-main,
body.axis-has-workspace-nav[data-route="open-interest"] .site-main,
body.axis-has-workspace-nav[data-route="net-position-flow"] .site-main,
body.axis-has-workspace-nav[data-route="fund-positions"] .site-main,
body.axis-has-workspace-nav[data-route="market-metric"] .site-main {
  height: calc(100dvh - var(--header-height) - 39px) !important;
  min-height: 0 !important;
}

@media (max-width: 900px) {
  body[data-route] .site-header .axis-market-context,
  body[data-route] .site-header .axis-global-context,
  body[data-route] .site-header .axis-global-context[href$="sentinel.html"] {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
  }

  .axis-workspace-nav {
    position: relative;
    top: auto;
    height: 41px;
    min-height: 41px;
    flex-basis: 41px;
  }

  .axis-workspace-nav-inner {
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    padding: 5px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .axis-workspace-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .axis-workspace-context {
    display: none;
  }

  .axis-workspace-link {
    flex: 0 0 auto;
    min-width: 108px;
    height: 31px;
    min-height: 31px;
  }

  body.axis-has-workspace-nav[data-route="terminal"] .site-main,
  body.axis-has-workspace-nav[data-route="market-profile"] .site-main,
  body.axis-has-workspace-nav[data-route="footprint"] .site-main,
  body.axis-has-workspace-nav[data-route="spot-depth"] .site-main,
  body.axis-has-workspace-nav[data-route="orderbook"] .site-main,
  body.axis-has-workspace-nav[data-route="dom-terminal"] .site-main,
  body.axis-has-workspace-nav[data-route="open-interest"] .site-main,
  body.axis-has-workspace-nav[data-route="net-position-flow"] .site-main,
  body.axis-has-workspace-nav[data-route="fund-positions"] .site-main,
  body.axis-has-workspace-nav[data-route="market-metric"] .site-main {
    height: calc(100dvh - var(--header-height) - 41px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .axis-workspace-link {
    transition-duration: 0.001ms !important;
  }
}
