:root {
  --ink-950: #081018;
  --ink-900: #0b141e;
  --ink-850: #0e1925;
  --ink-800: #132130;
  --ink-700: #203144;
  --ink-600: #2c4054;
  --paper: #e7eef6;
  --muted: #8497aa;
  --quiet: #5f7388;
  --cyan: #48c4c6;
  --cyan-soft: rgba(72, 196, 198, .12);
  --amber: #f1a646;
  --amber-soft: rgba(241, 166, 70, .12);
  --sage: #73b39a;
  --red: #e76868;
  --violet: #8b7cf6;
  --sidebar-width: 236px;
  --radius: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }

html { background: var(--ink-950); color-scheme: dark; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% -10%, rgba(72, 196, 198, .08), transparent 32rem),
    var(--ink-950);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button, code { font: inherit; }
button { color: inherit; }

.preview-banner {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(241, 166, 70, .3);
  color: #dfc39e;
  background: #241b12;
  font: 600 11px/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: .03em;
}

.preview-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(241, 166, 70, .1); }
.preview-banner.live-banner { color: #b9e5e4; border-color: rgba(72, 196, 198, .28); background: #102027; }
.preview-banner.live-banner .preview-dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(72, 196, 198, .1); }
.preview-banner.degraded { color: #dfc39e; border-color: rgba(241, 166, 70, .3); background: #241b12; }
.preview-banner.degraded .preview-dot { background: var(--amber); }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; padding-top: 31px; }

.sidebar {
  position: fixed;
  top: 31px;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink-700);
  background: rgba(8, 16, 24, .95);
  backdrop-filter: blur(14px);
}

.brand { height: 86px; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid rgba(32, 49, 68, .75); }
.brand-mark { width: 36px; height: 36px; color: var(--cyan); filter: drop-shadow(0 0 10px rgba(72, 196, 198, .22)); }
.brand strong, .brand span { display: block; }
.brand strong { font: 600 16px/1.1 Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: .02em; }
.brand span { margin-top: 4px; color: var(--quiet); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.primary-nav { padding: 17px 12px; display: grid; gap: 4px; }
.nav-item {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 560;
}
.nav-item:hover { color: var(--paper); background: var(--ink-850); }
.nav-item.active { color: var(--paper); border-color: rgba(72, 196, 198, .22); background: linear-gradient(90deg, rgba(72, 196, 198, .12), rgba(72, 196, 198, .035)); }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 24px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.nav-glyph { width: 22px; color: var(--quiet); font: 18px/1 Bahnschrift, sans-serif; text-align: center; }
.nav-item.active .nav-glyph { color: var(--cyan); }
.nav-item b { min-width: 20px; padding: 3px 6px; border-radius: 9px; color: var(--cyan); background: var(--cyan-soft); font: 600 10px/1 Consolas, monospace; text-align: center; }

.sidebar-foot { margin-top: auto; padding: 12px; }
.environment-card { padding: 13px; border: 1px solid var(--ink-700); border-radius: 7px; background: var(--ink-900); }
.environment-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.environment-row span { color: var(--quiet); font-size: 10px; }
.environment-row strong { color: var(--muted); font: 600 9px/1 Consolas, monospace; letter-spacing: .03em; }
.environment-row .paper-text { color: var(--amber); }
.profile-button { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; margin-top: 10px; padding: 9px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; text-align: left; }
.profile-button:hover { background: var(--ink-850); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ink-600); border-radius: 50%; color: var(--paper); background: var(--ink-800); font: 600 11px/1 Consolas, monospace; }
.profile-button strong, .profile-button small { display: block; }
.profile-button strong { font-size: 12px; }
.profile-button small { margin-top: 2px; color: var(--quiet); font-size: 9px; }
.chevron { color: var(--quiet); font-size: 20px; }

.workspace { grid-column: 2; width: min(1540px, 100%); margin: 0 auto; padding: 0 24px 34px; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--quiet); font: 600 9px/1.1 "Cascadia Code", Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Bahnschrift, "Arial Narrow", sans-serif; font-weight: 570; letter-spacing: -.02em; }
h1 { font-size: 26px; }
h2 { font-size: 17px; }
.live-pulse { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(72, 196, 198, .09); animation: pulse 2.2s infinite; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.clock-block { padding-right: 13px; text-align: right; border-right: 1px solid var(--ink-700); }
.clock-block span, .clock-block strong { display: block; }
.clock-block span { color: var(--quiet); font-size: 9px; }
.clock-block strong { margin-top: 2px; font: 600 12px/1.2 "Cascadia Code", Consolas, monospace; letter-spacing: .04em; }
.icon-button, .outline-button, .text-button, .period-switch button { border: 1px solid var(--ink-700); background: var(--ink-850); cursor: pointer; }
.icon-button { position: relative; width: 36px; height: 36px; border-radius: 7px; color: var(--muted); }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.outline-button { height: 36px; padding: 0 13px; border-color: rgba(72, 196, 198, .35); border-radius: 7px; color: #b9e5e4; background: rgba(72, 196, 198, .08); font-weight: 600; }
.icon-button:hover, .outline-button:hover { border-color: var(--cyan); }

.status-strip { min-height: 63px; display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(105px, .6fr)); align-items: center; border: 1px solid var(--ink-700); border-radius: var(--radius); background: var(--ink-850); box-shadow: var(--shadow); }
.status-strip > div { min-height: 37px; display: flex; align-items: center; padding: 0 17px; border-right: 1px solid var(--ink-700); }
.status-strip > div:last-child { border-right: 0; }
.status-main { gap: 11px; }
.status-main strong, .status-main span { display: block; }
.status-main strong { font-size: 12px; }
.status-main span { margin-top: 3px; color: var(--quiet); font-size: 10px; }
.status-main b { color: var(--cyan); font: 600 10px/1 Consolas, monospace; }
.status-beacon { position: relative; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.status-beacon::after { content: ""; position: absolute; inset: -5px; border: 1px solid currentColor; border-radius: 50%; opacity: .2; }
.healthy { color: var(--sage); background: var(--sage); }
.unhealthy { color: var(--red); background: var(--red); }
.status-metric { display: block !important; }
.status-metric span, .status-metric strong { display: block; }
.status-metric span { color: var(--quiet); font-size: 9px; }
.status-metric strong { margin-top: 5px; font: 600 10px/1.1 "Cascadia Code", Consolas, monospace; }
.mini-dot { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; }

.panel { border: 1px solid var(--ink-700); border-radius: var(--radius); background: linear-gradient(145deg, rgba(19, 33, 48, .68), rgba(11, 20, 30, .92)); box-shadow: var(--shadow); }
.review-rail { margin-top: 14px; padding: 17px 19px 16px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading.compact { align-items: center; }
.rail-meta { display: flex; align-items: center; gap: 16px; color: var(--quiet); font-size: 9px; }
.rail-meta code { color: var(--muted); }
.rail-meta strong { padding: 5px 7px; border-radius: 4px; font: 700 8px/1 Consolas, monospace; letter-spacing: .07em; }
.reviewing { color: var(--amber); background: var(--amber-soft); }
.rejected-badge { color: var(--red); background: rgba(231, 104, 104, .12); }

.rail { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 22px; }
.rail-line { position: absolute; z-index: 0; top: 10px; left: 8.333%; right: 8.333%; height: 2px; background: var(--ink-600); }
.rail-progress { display: block; width: 60%; height: 100%; background: linear-gradient(90deg, var(--sage), var(--cyan), var(--amber)); transition: width 1s ease; }
.rail-stop { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.rail-node { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--ink-600); border-radius: 50%; color: var(--quiet); background: var(--ink-850); font: 700 9px/1 Consolas, monospace; }
.rail-stop.passed .rail-node { border-color: var(--sage); color: var(--ink-950); background: var(--sage); }
.rail-stop.failed .rail-node { border-color: var(--red); color: var(--paper); background: rgba(231, 104, 104, .45); }
.rail-stop.active .rail-node { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 5px rgba(241, 166, 70, .08); }
.rail-stop span:not(.spinner), .rail-stop strong, .rail-stop small { display: block; }
.rail-stop > span { margin-top: 9px; color: var(--muted); font-size: 9px; }
.rail-stop strong { margin-top: 3px; font-size: 10px; }
.rail-stop small { margin-top: 3px; color: var(--quiet); font: 8px/1.1 Consolas, monospace; }
.rail-stop.waiting strong { color: var(--quiet); }
.spinner { width: 8px; height: 8px; border: 1px solid rgba(241, 166, 70, .3); border-top-color: var(--amber); border-radius: 50%; animation: spin 1s linear infinite; }

.dashboard-grid { display: grid; grid-template-columns: 1.25fr .85fr .9fr; gap: 14px; margin-top: 14px; }
.dashboard-grid > article { min-width: 0; padding: 17px 18px; }
.candidate-panel { grid-column: span 2; }
.performance-panel { grid-column: span 2; }
.activity-panel { grid-column: span 2; }
.direction-badge { padding: 5px 8px; border: 1px solid rgba(72, 196, 198, .25); border-radius: 4px; color: var(--cyan); background: var(--cyan-soft); font: 700 9px/1 Consolas, monospace; letter-spacing: .04em; }
.direction-badge.blocked { color: var(--amber); border-color: rgba(241, 166, 70, .25); background: var(--amber-soft); }
.price-line { display: flex; align-items: baseline; gap: 9px; margin-top: 16px; }
.price-line strong { font: 570 26px/1 Bahnschrift, sans-serif; letter-spacing: -.02em; }
.price-line span { color: var(--sage); font: 600 11px/1 Consolas, monospace; }
.price-line small { margin-left: auto; color: var(--quiet); font-size: 9px; }
.chart-wrap { margin-top: 11px; }
.chart-wrap svg { display: block; width: 100%; height: 150px; overflow: visible; }
.grid-lines { fill: none; stroke: var(--ink-700); stroke-width: 1; }
.area { fill: url(#areaGradient); }
.price-path { fill: none; stroke: var(--cyan); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.entry-line { fill: none; stroke: var(--amber); stroke-width: 1; stroke-dasharray: 4 4; opacity: .6; vector-effect: non-scaling-stroke; }
.chart-wrap text { fill: var(--amber); font: 8px Consolas, monospace; }
.chart-point { fill: var(--cyan); stroke: var(--ink-950); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; color: var(--quiet); font: 8px/1 Consolas, monospace; }
.trade-levels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 15px; border: 1px solid var(--ink-700); border-radius: 6px; }
.trade-levels div { padding: 10px 11px; border-right: 1px solid var(--ink-700); }
.trade-levels div:last-child { border-right: 0; }
.trade-levels span, .trade-levels strong { display: block; }
.trade-levels span { color: var(--quiet); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.trade-levels strong { margin-top: 5px; font: 600 11px/1 Consolas, monospace; }
.positive { color: var(--sage) !important; }
.negative { color: var(--red) !important; }
.candidate-note { margin-top: 11px; color: var(--muted); font-size: 9px; }
.candidate-note span { color: var(--cyan); font: 600 8px/1 Consolas, monospace; }
.candidate-note b { padding: 0 6px; color: var(--ink-600); }

.text-button { border: 0; color: var(--cyan); background: transparent; font-size: 9px; }
.text-button:hover { color: #8fe0df; }
.agent-list { margin-top: 13px; }
.agent-row { display: grid; grid-template-columns: 34px 1fr auto 38px; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid rgba(32, 49, 68, .72); }
.agent-row:last-child { border-bottom: 0; }
.agent-row.active-agent { margin: 0 -9px; padding: 0 9px; border: 1px solid rgba(241, 166, 70, .16); border-radius: 6px; background: rgba(241, 166, 70, .035); }
.agent-sigil, .mini-agents i { display: grid; place-items: center; border: 1px solid var(--ink-600); border-radius: 50%; background: var(--ink-800); font: 700 10px/1 Consolas, monospace; font-style: normal; }
.agent-sigil { width: 29px; height: 29px; }
.agent-sigil.atlas { color: var(--violet); }
.agent-sigil.pulse { color: var(--cyan); }
.agent-sigil.quant { color: var(--sage); }
.agent-sigil.rook { color: var(--amber); }
.agent-row strong, .agent-row small { display: block; }
.agent-row strong { font-size: 11px; }
.agent-row small { margin-top: 2px; color: var(--quiet); font-size: 8px; }
.agent-row time { color: var(--quiet); font: 8px/1 Consolas, monospace; text-align: right; }
.agent-state { padding: 4px 6px; border-radius: 4px; font: 700 8px/1 Consolas, monospace; }
.agent-state.done { color: var(--sage); background: rgba(115, 179, 154, .1); }
.agent-state.working { color: var(--amber); background: var(--amber-soft); }
.agent-state.waiting { color: var(--quiet); background: rgba(95, 115, 136, .1); }
.agent-state.ready { color: var(--muted); background: rgba(95, 115, 136, .1); }
.agent-state.rejected, .agent-state.missing { color: var(--red); background: rgba(231, 104, 104, .1); }
.sleeping-team { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--ink-700); color: var(--quiet); font-size: 8px; }
.mini-agents { display: flex; }
.mini-agents i { width: 22px; height: 22px; margin-left: -4px; color: var(--muted); border-color: var(--ink-700); font-size: 7px; }

.period-switch { display: flex; padding: 2px; border: 1px solid var(--ink-700); border-radius: 5px; background: var(--ink-900); }
.period-switch button { padding: 4px 7px; border: 0; border-radius: 3px; color: var(--quiet); background: transparent; font: 600 8px/1 Consolas, monospace; }
.period-switch button.active { color: var(--paper); background: var(--ink-700); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 15px; border-top: 1px solid var(--ink-700); border-bottom: 1px solid var(--ink-700); }
.metric-grid > div { padding: 12px 11px; border-right: 1px solid var(--ink-700); }
.metric-grid > div:last-child { border-right: 0; }
.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }
.metric-grid span { color: var(--quiet); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.metric-grid strong { margin-top: 6px; font: 570 18px/1 Bahnschrift, sans-serif; }
.metric-grid small { margin-top: 4px; color: var(--quiet); font-size: 8px; }
.spark-chart svg { display: block; width: 100%; height: 67px; margin-top: 11px; }
.spark-area { fill: rgba(115, 179, 154, .09); }
.spark-line { fill: none; stroke: var(--sage); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.metric-footnote { margin: 4px 0 0; color: var(--quiet); font-size: 8px; }

.live-label { color: var(--muted); font: 600 8px/1 Consolas, monospace; }
.live-label i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--cyan); }
.activity-feed { list-style: none; margin: 12px 0 0; padding: 0; }
.activity-feed li { display: grid; grid-template-columns: 56px 25px 1fr; align-items: center; gap: 8px; min-height: 39px; border-bottom: 1px solid rgba(32, 49, 68, .62); }
.activity-feed li:last-child { border-bottom: 0; }
.activity-feed time { color: var(--quiet); font: 8px/1 Consolas, monospace; }
.activity-feed p { margin: 0; color: var(--muted); font-size: 9px; }
.activity-feed p strong { color: var(--paper); font-weight: 600; }
.event-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font: 700 8px/1 Consolas, monospace; }
.event-icon.bot { color: var(--amber); background: var(--amber-soft); }
.event-icon.pass { color: var(--sage); background: rgba(115, 179, 154, .1); }
.event-icon.signal { color: var(--cyan); background: var(--cyan-soft); }
.event-icon.system { color: var(--quiet); background: rgba(95, 115, 136, .1); }

.health-score { color: var(--sage); font: 600 8px/1 Consolas, monospace; }
.health-score.warning { color: var(--amber); }
.health-list { margin-top: 12px; }
.health-list > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-height: 42px; align-content: center; border-bottom: 1px solid rgba(32, 49, 68, .62); }
.health-list > div:last-child { border-bottom: 0; }
.health-list span { color: var(--muted); font-size: 9px; }
.health-list strong { font-size: 9px; text-align: right; }
.health-list small { grid-column: 2; color: var(--quiet); font: 8px/1 Consolas, monospace; text-align: right; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 330px; padding: 11px 14px; border: 1px solid rgba(72, 196, 198, .35); border-radius: 7px; color: var(--paper); background: #11212c; box-shadow: 0 14px 40px rgba(0,0,0,.38); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; font-size: 11px; }
.toast.show { opacity: 1; transform: translateY(0); }

button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.research-panel, .notifications-panel { grid-column: span 2; }
.support-text { color: var(--muted); font-size: 12px; line-height: 1.6; }
.research-stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.research-stages li { border-left: 2px solid var(--ink-600); padding: 8px 10px; min-width: 0; }
.research-stages li.working { border-color: var(--amber); background: var(--amber-soft); }
.research-stages li.done, .research-stages li.passed { border-color: var(--sage); }
.research-stages li.failed, .research-stages li.rejected { border-color: var(--red); }
.research-stages strong, .research-stages span, .research-stages small { display: block; }
.research-stages span { color: var(--cyan); font: 10px Consolas,monospace; margin-top: 5px; }
.research-stages small { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.delivery-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }
.delivery-metrics span, .delivery-metrics strong { display: block; }
.delivery-metrics span { color: var(--muted); font-size: 11px; }
.delivery-metrics strong { font: 24px Bahnschrift,sans-serif; margin-top: 5px; }
.approval { border-top: 1px solid var(--ink-700); padding: 12px 0; font-size: 12px; }
.approval strong { color: var(--amber); }
.approval small { color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; font: 11px Consolas,monospace; }
th,td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--ink-700); }
th { color: var(--muted); }
dialog { max-width: 850px; width: calc(100% - 36px); max-height: 80vh; border: 1px solid var(--ink-600); border-radius: 12px; background: var(--ink-900); color: var(--paper); padding: 24px; }
dialog::backdrop { background: #000a; }
dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font: 13px/1.65 Consolas,monospace; }
button:disabled { opacity: .45; cursor: default; }
@media(max-width:760px) { .research-panel,.notifications-panel { grid-column: span 1; } .research-stages { grid-template-columns: 1fr; } }
@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 0 7px rgba(72, 196, 198, 0); } }

@media (max-width: 1120px) {
  :root { --sidebar-width: 190px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .candidate-panel, .performance-panel, .activity-panel { grid-column: span 1; }
  .candidate-panel { grid-column: span 2; }
  .status-strip { grid-template-columns: 1.5fr repeat(2, .7fr); }
  .status-strip > div:nth-last-child(-n+2) { display: none; }
}

@media (max-width: 760px) {
  .preview-banner { padding: 0 12px; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--ink-700); }
  .brand { height: 65px; }
  .primary-nav { grid-template-columns: repeat(3, 1fr); padding: 9px; }
  .nav-item { grid-template-columns: auto 1fr; padding: 0 8px; }
  .nav-item b, .sidebar-foot { display: none; }
  .nav-item.active::before { display: none; }
  .workspace { padding: 0 12px 24px; }
  .topbar { min-height: 76px; }
  .clock-block, .icon-button { display: none; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip > div:nth-child(n+3) { display: none !important; }
  .review-rail { overflow-x: auto; }
  .rail { min-width: 650px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .candidate-panel, .performance-panel, .activity-panel { grid-column: span 1; }
  .trade-levels, .metric-grid { grid-template-columns: 1fr 1fr; }
  .trade-levels div:nth-child(2), .metric-grid > div:nth-child(2) { border-right: 0; }
  .trade-levels div:nth-child(-n+2), .metric-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink-700); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
