:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-soft: #090d12;
  --panel: #10151d;
  --panel-2: #141b25;
  --panel-3: #171517;
  --line: #2a3340;
  --line-soft: rgba(255, 255, 255, .08);
  --text: #eff4f7;
  --muted: #9ca8b6;
  --dim: #687586;
  --cyan: #55d6e6;
  --green: #5fd28b;
  --amber: #e0aa48;
  --orange: #ee8043;
  --red: #f05263;
  --violet: #a491ff;
  --rail: 292px;
  --rail-compact: 78px;
  --shadow: 0 20px 70px rgba(0, 0, 0, .36);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(85, 214, 230, .08), transparent 34%),
    radial-gradient(circle at 80% 2%, rgba(224, 170, 72, .08), transparent 28%),
    linear-gradient(135deg, #040507 0%, #090d12 52%, #040506 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}

.app-shell.rail-compact {
  grid-template-columns: var(--rail-compact) minmax(0, 1fr);
}

.side-rail {
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(9, 13, 18, .98), rgba(5, 6, 8, .98));
  box-shadow: 20px 0 55px rgba(0, 0, 0, .28);
  z-index: 2;
}

.brand {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 214, 230, .34);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(85, 214, 230, .12), rgba(224, 170, 72, .07));
  color: #ddfbff;
  font-weight: 950;
  letter-spacing: .04em;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 13px;
  letter-spacing: .1em;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.icon-btn {
  margin-left: auto;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.rail-compact .brand-copy {
  display: none;
}

.rail-compact .icon-btn {
  display: grid;
  place-items: center;
  margin-left: 0;
  font-size: 10px;
  font-weight: 900;
}

.rail-compact .brand {
  min-height: 100px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 12px 8px;
}

.rail-groups {
  padding: 12px 10px;
  overflow: auto;
}

.rail-group {
  margin-bottom: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(16, 21, 29, .62);
  overflow: hidden;
}

.rail-group.active {
  border-color: rgba(85, 214, 230, .28);
  background: rgba(20, 27, 37, .8);
}

.group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 11px;
}

.group-head:hover {
  background: rgba(255, 255, 255, .04);
}

.group-code,
.room-code {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.group-code {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(85, 214, 230, .22);
  border-radius: 10px;
  background: rgba(85, 214, 230, .07);
}

.group-copy {
  min-width: 0;
}

.group-copy b,
.group-copy small {
  display: block;
}

.group-copy b {
  font-size: 12px;
}

.group-copy small {
  color: var(--dim);
  font-size: 10px;
  margin-top: 2px;
}

.group-state {
  margin-left: auto;
  color: var(--dim);
}

.rail-compact .group-copy,
.rail-compact .group-state,
.rail-compact .room-links,
.rail-compact .rail-law {
  display: none;
}

.rail-compact .group-head {
  justify-content: center;
  padding: 11px 0;
}

.room-links {
  display: none;
  padding: 0 8px 8px;
}

.rail-group.expanded .room-links {
  display: block;
}

.room-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 8px;
  margin-top: 4px;
  color: #cfd8e3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
}

.room-link:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, .04);
}

.room-link.active {
  border-color: rgba(85, 214, 230, .32);
  background: linear-gradient(90deg, rgba(85, 214, 230, .13), rgba(224, 170, 72, .04));
  box-shadow: inset 3px 0 0 var(--cyan);
}

.room-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 750;
}

.room-state {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
}

.rail-law {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 11px;
  line-height: 1.45;
}

.rail-law span,
.rail-law b {
  display: block;
}

.rail-law b {
  color: var(--text);
}

.main-stage {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1.25fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 10, 14, .78);
}

.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.top-identity strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  letter-spacing: .02em;
}

.mini-row,
.page-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dce7f2;
  background: rgba(255, 255, 255, .04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.pill.seed,
.pill.visual,
.pill.snapshot,
.pill.ready,
.pill.ok,
.pill.clear,
.pill.yes {
  border-color: rgba(85, 214, 230, .34);
  color: #c7f6ff;
}

.pill.read-only {
  border-color: rgba(95, 210, 139, .32);
  color: #c9f7d9;
}

.pill.partial,
.pill.planned,
.pill.outside,
.pill.caution,
.pill.loading,
.pill.wait,
.pill.stale {
  border-color: rgba(224, 170, 72, .34);
  color: #ffe1a3;
}

.pill.blocked,
.pill.disabled,
.pill.no,
.pill.disconnected,
.pill.missing {
  border-color: rgba(240, 82, 99, .38);
  color: #ffc6ce;
  background: rgba(240, 82, 99, .07);
}

.pill.unavailable,
.pill.unknown {
  color: #c5ced9;
}

.pill.advisory {
  border-color: rgba(164, 145, 255, .34);
  color: #ddd7ff;
}

.trade-answer {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(240, 82, 99, .08), rgba(255, 255, 255, .035));
}

.answer-light {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(240, 82, 99, .1), 0 0 24px rgba(240, 82, 99, .45);
}

.trade-answer.answer-wait .answer-light {
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(224, 170, 72, .12), 0 0 24px rgba(224, 170, 72, .45);
}

.trade-answer.answer-yes .answer-light {
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(95, 210, 139, .12), 0 0 24px rgba(95, 210, 139, .45);
}

.trade-answer small,
.trade-answer span {
  display: block;
}

.trade-answer small {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.trade-answer strong {
  display: block;
  font-size: 19px;
}

.trade-answer span {
  color: var(--muted);
  font-size: 11px;
}

.top-meters {
  display: flex;
  gap: 8px;
}

.meter {
  min-width: 86px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}

.meter b,
.meter span {
  display: block;
}

.meter b {
  font-size: 10px;
}

.meter span {
  margin-top: 4px;
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
}

.room-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(5, 6, 8, .64);
  font-size: 12px;
}

.room-strip strong {
  color: var(--text);
}

.strip-law {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.room-viewport {
  min-height: auto;
  overflow: visible;
  padding: 22px;
}

.trades-workbench-shell {
  height: calc(100vh - 150px);
  min-height: 720px;
  border: 1px solid rgba(77, 197, 220, .24);
  background: #060a0f;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.trades-workbench-shell .panel-block {
  width: min(520px, 100%);
}

.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(77, 197, 220, .45);
  border-radius: 8px;
  color: #dce8ff;
  background: rgba(16, 27, 41, .94);
  font-weight: 900;
  text-decoration: none;
}

.launch-button:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.chart-mode {
  grid-template-columns: minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.chart-mode .side-rail {
  display: none;
}

.chart-mode .main-stage {
  height: 100vh;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.chart-mode .room-viewport {
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.mvp-chart-frame-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #05080d;
}

.mvp-chart-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #05080d;
}

.page {
  min-height: 100%;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.page h1 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.06em;
}

.page h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.045em;
}

.page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-block,
.health-tile,
.coverage-tile,
.desk-tile,
.money-card,
.case-card,
.data-tile,
.risk-lock,
.story-main,
.terminal-panel,
.chat-panel,
.gold-hero {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 27, 37, .92), rgba(10, 13, 18, .88));
  box-shadow: var(--shadow);
}

.panel-block {
  padding: 18px;
}

.panel-block h3,
.chart-panel h3 {
  margin: 0 0 13px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 1fr);
  gap: 18px;
}

.hero-decision {
  min-height: 450px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(240, 82, 99, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 14%, rgba(240, 82, 99, .18), transparent 34%),
    linear-gradient(145deg, rgba(22, 16, 20, .96), rgba(8, 11, 16, .96));
  box-shadow: var(--shadow);
}

.decision-copy h1 {
  margin: 14px 0 4px;
  font-size: clamp(90px, 11vw, 150px);
  line-height: .82;
  letter-spacing: -.11em;
}

.decision-copy h2 {
  color: #ffd4da;
}

.decision-ring {
  width: 132px;
  height: 132px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 82, 99, .35);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 82, 99, .12), transparent 62%);
}

.decision-ring::before,
.decision-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(240, 82, 99, .2);
  border-radius: inherit;
}

.decision-ring::before {
  inset: 18px;
}

.decision-ring::after {
  inset: 36px;
}

.decision-ring span {
  position: relative;
  color: #ffd0d7;
  font-size: 12px;
  font-weight: 950;
}

.decision-ring.decision-loading {
  border-color: rgba(224, 170, 72, .38);
  background: radial-gradient(circle, rgba(224, 170, 72, .12), transparent 62%);
}

.decision-ring.decision-caution,
.decision-ring.decision-unknown {
  border-color: rgba(224, 170, 72, .38);
  background: radial-gradient(circle, rgba(224, 170, 72, .12), transparent 62%);
}

.decision-ring.decision-caution::before,
.decision-ring.decision-caution::after,
.decision-ring.decision-unknown::before,
.decision-ring.decision-unknown::after {
  border-color: rgba(224, 170, 72, .22);
}

.decision-ring.decision-caution span,
.decision-ring.decision-unknown span,
.decision-panel-caution .decision-copy h2,
.decision-panel-unknown .decision-copy h2 {
  color: #ffe1a3;
}

.decision-ring.decision-loading::before,
.decision-ring.decision-loading::after {
  border-color: rgba(224, 170, 72, .22);
}

.decision-ring.decision-loading span {
  color: #ffe1a3;
}

.decision-ring.decision-ok {
  border-color: rgba(95, 210, 139, .38);
  background: radial-gradient(circle, rgba(95, 210, 139, .12), transparent 62%);
}

.decision-ring.decision-ok::before,
.decision-ring.decision-ok::after {
  border-color: rgba(95, 210, 139, .22);
}

.decision-ring.decision-ok span {
  color: #c9f7d9;
}

.reason-list {
  grid-column: 1 / 3;
  display: grid;
  gap: 9px;
}

.reason-row,
.flow-step,
.audit-item,
.pressure-line,
.warning-line,
.check-row,
.symbol-line,
.table-line,
.layer-line {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.reason-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
}

.reason-row b {
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(240, 82, 99, .12);
  color: #ffd4da;
}

.reason-row span {
  color: #d6dce4;
  font-size: 13px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.health-tile,
.coverage-tile,
.desk-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 142px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
}

.health-tile:hover,
.coverage-tile:hover,
.desk-tile:hover {
  border-color: rgba(85, 214, 230, .3);
}

.health-tile > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.health-tile div,
.desk-tile b {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.health-tile p,
.desk-tile span {
  color: var(--muted);
  font-size: 12px;
}

.desk-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.engine-coverage {
  margin-top: 18px;
}

.coverage-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.coverage-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.coverage-head b {
  color: #c7f6ff;
  font-size: 13px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.coverage-tile {
  min-height: 184px;
  gap: 9px;
}

.coverage-group,
.coverage-tile em,
.coverage-tile small {
  color: var(--muted);
  font-size: 11px;
}

.coverage-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.coverage-title b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-tile p {
  min-height: 38px;
  font-size: 12px;
  line-height: 1.35;
}

.audit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.audit-row.single {
  grid-template-columns: 1fr;
}

.snapshot-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.snapshot-meta div,
.metric-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.snapshot-meta b,
.snapshot-meta span,
.metric-card b,
.metric-card span {
  display: block;
}

.snapshot-meta b,
.metric-card span {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.snapshot-meta span {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #dce4ed;
  font-size: 12px;
}

.chart-panel .snapshot-meta {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card b {
  margin: 9px 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}

.snapshot-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: stretch;
}

.snapshot-empty section {
  min-height: 390px;
  padding: 28px;
  border: 1px solid rgba(240, 82, 99, .2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 18%, rgba(240, 82, 99, .12), transparent 30%),
    linear-gradient(145deg, rgba(22, 16, 20, .94), rgba(8, 11, 16, .94));
  box-shadow: var(--shadow);
}

.snapshot-empty h2 {
  max-width: 760px;
}

.snapshot-empty p {
  max-width: 720px;
}

.audit-item,
.warning-line {
  padding: 10px 12px;
  color: #dce4ed;
  font-size: 13px;
  margin-top: 8px;
}

.pressure-line,
.check-row,
.symbol-line,
.layer-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-top: 8px;
  color: #dce4ed;
  font-size: 13px;
}

.split,
.console-layout,
.admin-grid,
.bro-grid,
.gold-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.flow-map {
  display: grid;
  gap: 10px;
}

.flow-step {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.flow-step span {
  color: var(--muted);
  font-size: 12px;
}

.story-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 320px;
  gap: 18px;
}

.story-main {
  padding: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(85, 214, 230, .08), transparent 32%),
    linear-gradient(145deg, rgba(20, 27, 37, .96), rgba(8, 11, 16, .94));
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.story-cards div,
.pipe-card,
.control-cell {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.story-cards b,
.story-cards span,
.pipe-card b,
.pipe-card span,
.control-cell b,
.control-cell span {
  display: block;
}

.story-cards span,
.pipe-card span,
.control-cell span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.chart-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 304px;
  grid-template-rows: 58px minmax(0, 1fr) 34px;
  background: #050608;
}

.chart-bar {
  grid-column: 1 / 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 9, 16, .9);
  backdrop-filter: blur(12px);
}

.chart-bar strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -.025em;
}

.chart-bar span:not(.pill),
.chart-controls a,
.chart-tabs a {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: #dce4ed;
  font-size: 12px;
}

.chart-title-block {
  flex: 1 1 390px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-title-block em {
  display: block;
  margin-top: 3px;
  max-width: 760px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.chart-kicker {
  flex: 0 0 auto;
  border-color: rgba(85, 214, 230, .42) !important;
  color: #7bd8ff !important;
  background: rgba(85, 214, 230, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.chart-tabs,
.chart-controls,
.chart-truth,
.chart-ohlc {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-tabs a {
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}

.chart-tabs a.active {
  border-color: rgba(85, 214, 230, .54);
  color: #effbff;
  background: rgba(85, 214, 230, .12);
  box-shadow: inset 3px 0 0 rgba(85, 214, 230, .85);
}

.chart-controls {
  flex: 1 1 390px;
  justify-content: flex-end;
}

.chart-controls span,
.chart-controls a {
  height: 34px;
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  text-align: center;
  background: rgba(12, 18, 30, .74);
  text-decoration: none;
}

.chart-controls a {
  color: var(--muted);
}

.chart-controls a.active {
  border-color: rgba(95, 210, 139, .38);
  color: #c9f7d9;
  background: rgba(95, 210, 139, .08);
}

.chart-ohlc {
  flex: 0 1 auto;
  justify-content: flex-end;
  color: #cfd8e3;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.chart-ohlc span {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
}

.chart-ohlc b {
  color: var(--text);
}

.chart-truth {
  flex: 0 1 auto;
  margin-left: auto;
  justify-content: flex-end;
}

.tool-rail {
  grid-column: 1;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border-right: 1px solid var(--line-soft);
  background: rgba(4, 7, 12, .94);
}

.tool-rail button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font-size: 10px;
  font-weight: 850;
}

.tool-rail button:hover,
.tool-rail button.active {
  border-color: rgba(85, 214, 230, .42);
  color: #effbff;
  background: linear-gradient(135deg, rgba(85, 214, 230, .18), rgba(164, 145, 255, .1));
}

.chart-canvas {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 22% 22%, rgba(85, 214, 230, .07), transparent 34%),
    #05080b;
  background-size: 100% 48px, 72px 100%, auto;
}

.chart-canvas-engine {
  background: #05080e;
}

.chart-host,
.ct-chart-engine {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}

.ct-chart-engine {
  overflow: hidden;
}

.ct-chart-engine__toolbar {
  position: absolute;
  z-index: 8;
  left: 24px;
  top: 34px;
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(520px, calc(100% - 36px));
  pointer-events: auto;
}

.ct-chart-engine__toolbar button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(118, 145, 181, .22);
  border-radius: 999px;
  color: rgba(234, 241, 255, .78);
  background: rgba(5, 8, 14, .76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ct-chart-engine__toolbar button[aria-pressed="true"] {
  border-color: rgba(245, 193, 91, .62);
  color: #ffce73;
  background: rgba(245, 193, 91, .12);
}

.ct-chart-engine__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ct-chart-engine__canvas--overlay {
  cursor: crosshair;
  touch-action: none;
}

.ct-chart-engine__status {
  position: absolute;
  top: 16px;
  right: 18px;
  max-width: min(360px, calc(100% - 220px));
  padding: 6px 8px;
  border: 1px solid rgba(185, 212, 226, .16);
  border-radius: 999px;
  color: rgba(220, 232, 239, .72);
  background: rgba(5, 8, 11, .72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-chart-engine__hint {
  position: absolute;
  z-index: 7;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 6px 8px;
  border: 1px solid rgba(245, 193, 91, .18);
  border-radius: 999px;
  color: rgba(255, 225, 163, .74);
  background: rgba(5, 8, 11, .68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-chart-engine__empty {
  position: absolute;
  left: 42px;
  top: 100px;
  max-width: 520px;
  padding: 18px;
  border: 1px solid rgba(224, 170, 72, .3);
  border-radius: 18px;
  background: rgba(20, 15, 8, .86);
}

.ct-chart-engine__empty[hidden] {
  display: none;
}

.ct-chart-engine__empty b,
.ct-chart-engine__empty span {
  display: block;
}

.ct-chart-engine__empty b {
  color: #ffe1a3;
  font-size: 16px;
}

.ct-chart-engine__empty span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.chart-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-empty {
  position: absolute;
  inset: 88px 28px auto;
  max-width: 520px;
  padding: 18px;
  border: 1px solid rgba(224, 170, 72, .3);
  border-radius: 16px;
  background: rgba(20, 15, 8, .82);
}

.chart-empty b,
.chart-empty span {
  display: block;
}

.chart-empty b {
  color: #ffe1a3;
  font-size: 16px;
}

.chart-empty span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.watermark {
  position: absolute;
  top: 70px;
  left: 48px;
  color: rgba(255, 255, 255, .07);
  font-size: 74px;
  font-weight: 950;
  letter-spacing: -.08em;
}

.chart-floating-head {
  position: absolute;
  z-index: 9;
  top: 26px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 410px);
  pointer-events: none;
}

.chart-symbol-chip,
.chart-intent-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(85, 214, 230, .25);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(5, 9, 16, .72);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.chart-symbol-chip {
  gap: 5px;
  padding: 0 14px;
}

.chart-symbol-chip b {
  color: var(--text);
  font-size: 14px;
}

.chart-symbol-chip span,
.chart-intent-chip {
  font-size: 12px;
}

.chart-intent-chip {
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-note {
  position: absolute;
  left: 42px;
  bottom: 36px;
  max-width: 430px;
  padding: 13px 15px;
  border: 1px solid rgba(85, 214, 230, .25);
  border-radius: 18px;
  background: rgba(8, 11, 16, .82);
}

.chart-note b,
.chart-note span {
  display: block;
}

.chart-note span,
.chart-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.chart-panel {
  grid-column: 3;
  grid-row: 2 / 4;
  padding: 16px;
  overflow: auto;
  border-left: 1px solid var(--line-soft);
  background: rgba(9, 13, 18, .94);
}

.chart-panel h3 {
  color: #aab6c8;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.chart-panel .warning-line,
.chart-panel .layer-line,
.chart-panel .snapshot-meta {
  border-radius: 16px;
}

.visual-layer-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.visual-layer-row i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.checkmark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #051018;
  background: #7bd8ff;
  font-weight: 950;
  line-height: 1;
}

.legend-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.legend-card b,
.legend-card strong {
  color: var(--text);
  font-size: 14px;
}

.legend-card span {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.time-row {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-top: 1px solid var(--line-soft);
  background: #07090c;
}

.time-row span {
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #dce4ed;
  font-size: 11px;
}

.chart-tag {
  position: absolute;
  padding: 5px 7px;
  border: 1px solid rgba(224, 170, 72, .42);
  border-radius: 999px;
  color: #ffe1a3;
  background: rgba(224, 170, 72, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

.tag-0 { left: 27%; top: 24%; }
.tag-1 { left: 39%; top: 57%; }
.tag-2 { left: 58%; top: 35%; }
.tag-3 { left: 66%; top: 70%; }

.json-panel {
  margin-top: 18px;
}

.json-panel div {
  overflow: auto;
  white-space: pre-wrap;
  color: #bdd6df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
}

.trade-layout,
.desk-pipeline,
.incident-grid,
.data-health-grid,
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trade-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trade-lane {
  min-height: 380px;
}

.ticket {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

button.ticket {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.trade-ticket--open {
  border-color: rgba(76, 214, 154, .34);
  background: linear-gradient(135deg, rgba(76, 214, 154, .1), rgba(255, 255, 255, .035));
}

.trade-ticket--open:hover {
  border-color: rgba(112, 222, 255, .58);
}

.trade-ticket__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.auto-paper-badge {
  min-width: 74px;
  padding: 8px 12px;
  border: 1px solid rgba(112, 222, 255, .34);
  border-radius: 10px;
  color: var(--text);
  background: rgba(112, 222, 255, .1);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ticket b,
.ticket span {
  display: block;
}

.ticket span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.trade-visualizer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 9, .76);
  backdrop-filter: blur(14px);
}

.trade-visualizer {
  width: min(1120px, 96vw);
  max-height: min(820px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(112, 222, 255, .22);
  border-radius: 24px;
  background: linear-gradient(180deg, #101827, #071018);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.trade-visualizer__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.trade-visualizer__header b,
.trade-visualizer__price b {
  display: block;
  color: var(--text);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -.04em;
}

.trade-visualizer__header span,
.trade-visualizer__price span {
  color: var(--muted);
}

.trade-visualizer__price {
  text-align: right;
}

.trade-visualizer__price span {
  color: #21e89a;
}

.trade-visualizer__body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 560px;
}

.trade-visualizer__facts {
  z-index: 2;
  align-self: start;
  margin: 24px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(3, 8, 13, .86);
}

.trade-visualizer__facts .pill {
  margin-bottom: 18px;
}

.trade-visualizer__chart {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #08111d;
}

.trade-visualizer__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 100% 20%, 11.111% 100%;
}

.trade-zone {
  position: absolute;
  left: 0;
  right: 92px;
  opacity: .45;
}

.trade-zone--reward {
  background: rgba(14, 185, 129, .22);
}

.trade-zone--risk {
  background: rgba(244, 63, 94, .16);
}

.trade-level {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 0;
  border-top: 2px solid currentColor;
  color: #d9e6f3;
}

.trade-level span,
.trade-level b {
  transform: translateY(-50%);
}

.trade-level span {
  margin-right: 8px;
  padding: 6px 10px;
  border-radius: 8px 0 0 8px;
  background: currentColor;
  color: #071018;
  font-weight: 900;
}

.trade-level b {
  width: 92px;
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
  background: currentColor;
  color: #071018;
  font-weight: 900;
  text-align: center;
}

.trade-level--tp,
.trade-level--live {
  color: #26d18d;
}

.trade-level--entry {
  color: #5aa7ff;
}

.trade-level--sl {
  color: #ff4d79;
}

.trade-visualizer__candles {
  position: absolute;
  left: 8%;
  right: 14%;
  bottom: 12%;
  height: 44%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.trade-visualizer__candles i {
  width: 9px;
  min-height: 28px;
  border-radius: 2px;
  background: #21d990;
  box-shadow: 0 -18px 0 -7px #21d990, 0 14px 0 -6px #21d990;
}

.trade-visualizer__candles i.down {
  background: #ff5578;
  box-shadow: 0 -15px 0 -7px #ff5578, 0 17px 0 -6px #ff5578;
}

.authority-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(224, 170, 72, .22);
  border-radius: 16px;
  color: #ffe1a3;
  background: rgba(224, 170, 72, .055);
}

.admin-hard-refresh-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(85, 214, 230, .2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(85, 214, 230, .07), rgba(224, 170, 72, .05));
}

.admin-hard-refresh-panel h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.admin-hard-refresh-btn {
  min-width: 168px;
  min-height: 42px;
  border: 1px solid rgba(224, 170, 72, .72);
  border-radius: 8px;
  background: var(--amber);
  color: #080b0f;
  font-weight: 950;
}

.admin-hard-refresh-btn:hover {
  background: #f4c35f;
}

.admin-hard-refresh-btn:disabled {
  cursor: wait;
  opacity: .72;
}

.gold-hero,
.risk-lock,
.terminal-panel,
.chat-panel {
  padding: 22px;
}

.gold-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(224, 170, 72, .13), transparent 34%),
    linear-gradient(145deg, rgba(24, 20, 13, .96), rgba(8, 11, 16, .94));
}

.gold-family {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.gold-family div,
.case-card,
.data-tile,
.money-card {
  padding: 16px;
}

.gold-family div {
  border: 1px solid rgba(224, 170, 72, .2);
  border-radius: 17px;
  background: rgba(224, 170, 72, .045);
}

.gold-family b,
.gold-family span {
  display: block;
}

.gold-family span {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.desk-workspace,
.ledger-layout,
.risk-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.desk-brief h2 {
  margin-top: 5px;
}

.pipe-card {
  min-height: 190px;
}

.desk-pipeline.compact {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.desk-pipeline.compact .pipe-card {
  min-height: auto;
}

.calm {
  background:
    radial-gradient(circle at 80% 20%, rgba(95, 210, 139, .08), transparent 34%),
    linear-gradient(145deg, rgba(15, 24, 22, .94), rgba(8, 11, 16, .92));
}

.money-stack {
  display: grid;
  gap: 10px;
}

.money-card span,
.money-card b {
  display: block;
}

.money-card span {
  color: var(--muted);
  font-size: 12px;
}

.money-card b {
  margin: 8px 0;
  font-size: 26px;
  letter-spacing: -.04em;
}

.table-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.table-line b,
.table-line span,
.table-line em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-line em {
  color: var(--dim);
  font-style: normal;
}

.case-card,
.data-tile {
  min-height: 150px;
}

.case-card b,
.case-card span,
.data-tile b,
.data-tile span {
  display: block;
}

.case-card span,
.data-tile span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.case-card p {
  margin-top: 12px;
  font-size: 12px;
}

.data-health-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.terminal-panel {
  background: #050608;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #dce4ed;
}

.terminal-panel div {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.terminal-panel div:last-child {
  border-bottom: 0;
}

.bubble {
  max-width: 780px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(85, 214, 230, .18);
  border-radius: 18px;
  background: rgba(85, 214, 230, .06);
}

.bubble.user {
  margin-left: auto;
  border-color: rgba(224, 170, 72, .2);
  background: rgba(224, 170, 72, .055);
}

.bubble b,
.bubble p {
  display: block;
}

.text-link {
  color: var(--cyan);
}

@media (max-width: 1260px) {
  .topbar,
  .command-grid,
  .story-layout,
  .snapshot-meta,
  .snapshot-empty,
  .gold-layout,
  .split,
  .console-layout,
  .admin-grid,
  .bro-grid,
  .desk-workspace,
  .ledger-layout,
  .risk-grid,
  .audit-row {
    grid-template-columns: 1fr;
  }

  .top-meters {
    display: none;
  }

  .desk-overview,
  .coverage-grid,
  .tile-grid,
  .trade-layout,
  .incident-grid,
  .data-health-grid,
  .control-grid,
  .story-cards,
  .gold-family,
  .desk-pipeline,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-shell {
    grid-template-columns: 60px minmax(0, 1fr) 300px;
  }

  .chart-bar {
    grid-template-columns: minmax(280px, 1fr) auto;
    grid-auto-rows: auto;
  }

  .chart-controls,
  .chart-truth {
    justify-content: flex-start;
  }

  .trade-visualizer__body {
    grid-template-columns: 1fr;
  }

  .trade-visualizer__facts {
    margin-bottom: 0;
  }

  .admin-hard-refresh-panel {
    grid-template-columns: 1fr;
  }

  .admin-hard-refresh-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell,
  .app-shell.rail-compact {
    display: block;
    height: auto;
    min-height: 100%;
  }

  .side-rail {
    position: relative;
    height: auto;
    max-height: none;
  }

  .rail-groups {
    overflow: visible;
  }

  .main-stage {
    height: auto;
    min-height: 100vh;
  }

  .topbar,
  .desk-overview,
  .coverage-grid,
  .tile-grid,
  .trade-layout,
  .incident-grid,
  .data-health-grid,
  .control-grid,
  .story-cards,
  .snapshot-meta,
  .snapshot-empty,
  .metric-grid,
  .gold-family,
  .desk-pipeline {
    grid-template-columns: 1fr;
  }

  .room-strip,
  .page-head,
  .flow-step {
    display: block;
  }

  .room-viewport {
    padding: 14px;
  }

  .hero-decision {
    grid-template-columns: 1fr;
  }

  .reason-list {
    grid-column: auto;
  }

  .decision-ring {
    width: 108px;
    height: 108px;
  }

  .chart-shell {
    height: 100vh;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) 40px;
  }

  .chart-bar {
    grid-column: 1 / 3;
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }

  .chart-panel {
    display: none;
  }

  .time-row {
    grid-column: 2;
  }

  .trade-visualizer-overlay {
    padding: 10px;
  }

  .trade-visualizer__header {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .trade-visualizer__price {
    grid-column: 1 / 3;
    grid-row: 2;
    text-align: left;
  }

  .trade-visualizer__body,
  .trade-visualizer__chart {
    min-height: 420px;
  }

  .trade-visualizer__facts {
    margin: 14px;
  }
}
