:root {
  --bg: #050a12;
  --bg-deep: #03070d;
  --surface: #09111c;
  --surface-raised: #0e1a29;
  --surface-soft: #09111c;
  --line: rgba(166, 196, 230, .17);
  --line-strong: rgba(166, 196, 230, .31);
  --text: #edf5ff;
  --muted: #97a5b7;
  --faint: #65758b;
  --blue: #4d86ff;
  --blue-light: #9bbaff;
  --cyan: #8ee9ff;
  --green: #4ee7a0;
  --red: #ff6677;
  --amber: #e8b66b;
  --purple: #a78bfa;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
  --ease: cubic-bezier(.22, .8, .28, 1);
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 84% 4%, rgba(34, 128, 255, .12), transparent 29rem), var(--bg); }
body::before { position: fixed; z-index: -1; inset: 0; pointer-events: none; content: ""; opacity: .25; background-image: linear-gradient(rgba(75, 125, 180, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 125, 180, .045) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px; color: var(--bg); background: var(--cyan); transform: translateY(-150%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: translateY(0); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 268px; flex-direction: column; width: 268px; height: 100vh; padding: 28px 18px 20px; overflow-x: hidden; overflow-y: auto; scrollbar-color: var(--blue) rgba(9, 21, 37, .55); scrollbar-width: thin; border-right: 1px solid var(--line); background: rgba(4, 10, 19, .94); }
.sidebar::after { position: absolute; top: 0; right: -1px; width: 1px; height: 110px; content: ""; background: linear-gradient(var(--cyan), transparent); opacity: .75; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 9px 26px; }
.brand-mark { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border: 1px solid rgba(85, 225, 230, .7); background: linear-gradient(135deg, rgba(56, 124, 255, .18), transparent 68%); box-shadow: 0 0 26px rgba(56, 124, 255, .16); }
.brand-mark svg { width: 36px; height: 36px; overflow: visible; }
.brand-bull { fill: rgba(232, 182, 107, .18); stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw-mark 1.4s .25s var(--ease) forwards; }
.brand-bear { fill: rgba(255, 102, 119, .12); stroke: var(--red); stroke-width: 1.1; stroke-dasharray: 110; stroke-dashoffset: 110; animation: draw-mark 1s .6s var(--ease) forwards; }
.brand-trace { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: bevel; stroke-dasharray: 130; stroke-dashoffset: 130; animation: draw-mark .9s 1s var(--ease) forwards; }
.eyebrow { margin: 0; color: var(--muted); font: 600 9px/1.3 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.brand-name { margin: 3px 0 0; font: 650 18px/1 var(--display); letter-spacing: -.045em; }
.brand-subtitle { display: block; margin-top: 7px; color: var(--faint); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.workspace-switcher { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-soft); cursor: pointer; text-align: left; }
.workspace-switcher:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.workspace-switcher small, .workspace-switcher strong { display: block; }
.workspace-switcher small { margin-bottom: 3px; color: var(--faint); font: 8px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.workspace-switcher strong { font: 600 11px var(--body); }
.workspace-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid var(--blue); color: var(--cyan); font: 700 11px var(--mono); }
.chevron { margin-left: auto; color: var(--muted); font-size: 16px; }
.nav-section-label { margin: 29px 9px 9px; color: var(--faint); font: 8px var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.nav-list { display: grid; gap: 2px; }
.nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; width: 100%; gap: 7px; padding: 11px 9px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font: 500 12px var(--body); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.nav-item:hover { color: var(--text); background: rgba(56, 124, 255, .08); transform: translateX(2px); }
.nav-item.active { border-left-color: var(--cyan); color: var(--text); background: linear-gradient(90deg, rgba(56, 124, 255, .15), transparent); }
.nav-icon { color: var(--faint); font-size: 14px; text-align: center; }
.nav-item.active .nav-icon { color: var(--cyan); }
.nav-item kbd { color: var(--faint); font: 9px var(--mono); }
.nav-item.active kbd { color: var(--blue); }
.sidebar-bottom { margin-top: auto; }
.logo-seal { position: relative; padding: 12px 10px 10px; margin: 0 0 13px; overflow: hidden; border: 1px solid rgba(85, 225, 230, .18); background: linear-gradient(135deg, rgba(56, 124, 255, .1), transparent); text-align: center; }
.logo-seal::before { position: absolute; top: 0; left: 14%; width: 72%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.seal-animals { display: flex; justify-content: center; align-items: center; gap: 12px; font: 22px/1 Georgia, serif; }
.seal-bull { color: var(--amber); filter: drop-shadow(0 0 6px rgba(232, 182, 107, .48)); }
.seal-bear { color: var(--red); filter: drop-shadow(0 0 6px rgba(255, 102, 119, .42)); }
.seal-divider { width: 1px; height: 21px; background: var(--line-strong); }
.seal-bars { display: flex; height: 18px; align-items: end; justify-content: center; gap: 3px; margin-top: 8px; }
.seal-bars i { display: block; width: 3px; background: var(--green); animation: bars-in .8s var(--ease) both; }
.seal-bars i:nth-child(1), .seal-bars i:nth-child(4), .seal-bars i:nth-child(7) { height: 8px; background: var(--red); }
.seal-bars i:nth-child(2), .seal-bars i:nth-child(5) { height: 14px; }
.seal-bars i:nth-child(3), .seal-bars i:nth-child(6) { height: 11px; background: var(--blue); }
.logo-seal small { display: block; margin-top: 8px; color: var(--faint); font: 8px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.live-lock { display: flex; align-items: center; gap: 10px; padding: 13px 7px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lock-mark { position: relative; width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid var(--red); }
.lock-mark::after { position: absolute; top: -5px; left: 3px; width: 9px; height: 8px; content: ""; border: 1px solid var(--red); border-bottom: 0; border-radius: 8px 8px 0 0; }
.live-lock small, .live-lock strong { display: block; }
.live-lock small { color: var(--faint); font: 8px var(--mono); text-transform: uppercase; }
.live-lock strong { margin-top: 3px; color: var(--red); font: 650 11px var(--mono); }
.lock-state { margin-left: auto; color: var(--red); font: 8px var(--mono); }
.sidebar-links { display: flex; justify-content: space-between; margin: 13px 7px 0; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.sidebar-links a { text-decoration: none; }
.sidebar-links a:hover { color: var(--cyan); }
.sidebar-note { margin: 11px 7px 0; color: var(--faint); font: 9px/1.45 var(--body); }

.main-content { width: min(100%, 1600px); min-width: 0; padding: 30px 42px 28px; margin: 0 auto; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--faint); font: 9px var(--mono); letter-spacing: .13em; }
.breadcrumb b { color: var(--blue); font-weight: 400; }
.topbar h1 { margin: 9px 0 0; font: 650 28px/1 var(--display); letter-spacing: -.055em; }
.topbar h1 em { color: var(--blue); font-style: normal; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 7px; min-width: 214px; padding: 8px 9px; border: 1px solid var(--line); background: rgba(9, 21, 37, .8); color: var(--muted); }
.search-box input { width: 135px; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-box input::placeholder { color: var(--faint); }
.search-box kbd { color: var(--faint); font: 8px var(--mono); white-space: nowrap; }
.mode-switch { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); background: var(--surface-soft); }
.mode { padding: 6px 8px; color: var(--faint); font: 9px var(--mono); }
.mode.active { background: var(--blue); color: white; box-shadow: 0 0 18px rgba(56, 124, 255, .3); }
.mode.off { color: var(--red); opacity: .58; }
.icon-button, .avatar { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.icon-button { position: relative; width: 30px; height: 30px; color: var(--muted); font-size: 23px; }
.icon-button:hover { color: var(--cyan); }
.icon-button i { position: absolute; top: 5px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.avatar { width: 31px; height: 31px; border: 1px solid var(--cyan); color: var(--cyan); font: 700 10px var(--mono); }
.system-rail { display: flex; align-items: stretch; min-height: 46px; margin: 26px 0 19px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail-status, .rail-item, .rail-clock { display: flex; align-items: center; gap: 7px; padding: 9px 15px; border-right: 1px solid var(--line); font: 9px var(--mono); }
.rail-status { min-width: 205px; color: var(--muted); }
.rail-status strong { color: var(--text); font-size: 9px; }
.rail-item { gap: 10px; color: var(--faint); }
.rail-item strong { color: var(--muted); font-weight: 500; }
.rail-clock { justify-content: flex-end; flex: 1; gap: 13px; border-right: 0; color: var(--faint); }
.rail-clock strong { color: var(--cyan); font-size: 11px; font-weight: 500; }
.pulse-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(85, 225, 230, .1), 0 0 12px rgba(85, 225, 230, .6); animation: pulse 2.4s ease-in-out infinite; }
.cyan { color: var(--cyan) !important; }
.cyan-text { color: var(--cyan) !important; }
.cyan-dot { background: var(--cyan) !important; box-shadow: 0 0 0 3px rgba(85, 225, 230, .12); }
.red-text { color: var(--red) !important; }
.amber-text { color: var(--amber) !important; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .72fr); gap: 15px; }
.hero-panel, .focus-panel, .panel { position: relative; border: 1px solid var(--line); background: rgba(9, 21, 37, .88); box-shadow: var(--shadow); }
.hero-panel { min-height: 300px; padding: 25px 28px; overflow: hidden; }
.panel-grid-texture::after { position: absolute; right: 0; bottom: 0; width: 61%; height: 100%; content: ""; pointer-events: none; background-image: linear-gradient(90deg, transparent, rgba(56, 124, 255, .08)), repeating-linear-gradient(135deg, transparent 0 18px, rgba(85, 225, 230, .06) 19px 20px); mask-image: linear-gradient(90deg, transparent, black); }
.hero-topline, .hero-bottomline { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font: 9px var(--mono); }
.section-index { color: var(--blue); }
.hero-tag { display: flex; align-items: center; gap: 7px; color: var(--cyan); }
.hero-copy { position: relative; z-index: 2; max-width: 590px; margin-top: 54px; }
.hero-copy h2 { margin: 10px 0 15px; font: 600 clamp(42px, 4.4vw, 70px)/.9 var(--display); letter-spacing: -.085em; }
.hero-copy h2 span { color: var(--cyan); font-family: Georgia, serif; font-style: italic; font-weight: 400; text-shadow: 0 0 22px rgba(85, 225, 230, .18); }
.hero-description { max-width: 390px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.hero-bottomline { position: absolute; right: 28px; bottom: 20px; left: 28px; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.hero-bottomline strong { color: var(--text); font-weight: 500; }
.hero-orbit { position: absolute; right: 8%; bottom: 5%; z-index: 1; width: 265px; height: 265px; opacity: .75; transform: rotate(-16deg); }
.orbit-core { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px 8px rgba(85, 225, 230, .3); transform: translate(-50%, -50%); }
.orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(85, 225, 230, .42); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-a { width: 166px; height: 166px; animation: orbit-spin 18s linear infinite; }
.ring-b { width: 234px; height: 92px; border-color: rgba(56, 124, 255, .38); animation: orbit-spin 26s linear infinite reverse; }
.orbit-line { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); transform: rotate(52deg); }
.hero-animal { position: absolute; z-index: 2; font: 48px/1 Georgia, serif; filter: drop-shadow(0 0 12px currentColor); }
.hero-animal.bull { top: 21%; left: 25%; color: var(--amber); animation: float 4s ease-in-out infinite; }
.hero-animal.bear { right: 18%; bottom: 21%; color: var(--red); animation: float 4s 1s ease-in-out infinite reverse; }
.focus-panel { padding: 24px 22px; }
.focus-panel::before { position: absolute; top: -1px; right: 18%; width: 34%; height: 2px; content: ""; background: var(--cyan); box-shadow: 0 0 16px rgba(85, 225, 230, .45); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading h3 { margin: 7px 0 0; font: 600 16px/1 var(--display); letter-spacing: -.04em; }
.live-label, .data-badge, .gate-badge, .counter { color: var(--red); font: 8px var(--mono); letter-spacing: .08em; }
.instrument-readout { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 35px 0 26px; }
.instrument-symbol { font: 650 31px/1 var(--mono); letter-spacing: -.09em; }
.instrument-symbol span { color: var(--blue); font-weight: 400; }
.instrument-state { color: var(--muted); font: 9px var(--mono); }
.instrument-state i, .agent-status i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--amber); }
.instrument-state.is-ready { color: var(--cyan); }
.instrument-state.is-ready i { background: var(--cyan); }
.instrument-state.is-error { color: var(--amber); }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.focus-grid div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.focus-grid div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 10px; }
.focus-grid div:nth-child(even) { padding-left: 12px; }
.focus-grid span, .focus-grid strong { display: block; }
.focus-grid span { margin-bottom: 6px; color: var(--faint); font: 8px var(--mono); text-transform: uppercase; }
.focus-grid strong { color: var(--text); font: 11px var(--mono); }
.focus-grid strong small { color: var(--faint); font-size: 9px; }
.focus-callout { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 10px; border-left: 2px solid var(--amber); background: rgba(232, 182, 107, .055); }
.callout-mark { color: var(--amber); font: 11px var(--mono); }
.focus-callout p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.performance-bar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 35px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.performance-bar h2, .section-heading h2 { margin: 7px 0 0; font: 600 20px/1 var(--display); letter-spacing: -.05em; }
.period-tabs { display: flex; align-items: center; gap: 2px; }
.period-tab, .timeframe, .instrument-tab { border: 0; background: transparent; cursor: pointer; }
.period-tab { padding: 9px 12px; color: var(--muted); font: 10px var(--mono); }
.period-tab:hover, .period-tab.active { color: var(--text); background: var(--surface-raised); }
.period-tab.active { box-shadow: inset 0 -2px var(--cyan); }
.performance-period.is-selected { border-color: var(--cyan); background: rgba(85, 225, 230, .06); }
.lens-note { min-width: 178px; text-align: right; }
.lens-note span, .lens-note strong { display: block; }
.lens-note span { color: var(--cyan); font: 9px var(--mono); text-transform: uppercase; }
.lens-note strong { margin-top: 5px; color: var(--faint); font: 8px var(--body); font-weight: 400; }
.metric-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); margin: 15px 0; border: 1px solid var(--line); background: rgba(9, 21, 37, .68); }
.metric-cell { min-height: 112px; padding: 16px 18px; border-right: 1px solid var(--line); }
.metric-cell:last-child { border-right: 0; }
.metric-cell > div { display: flex; justify-content: space-between; gap: 8px; }
.metric-kicker, .metric-source { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.metric-source { color: var(--faint); font-size: 8px; text-align: right; }
.metric-cell strong { display: block; margin: 15px 0 6px; color: var(--text); font: 650 25px var(--mono); letter-spacing: -.08em; }
.metric-cell small { color: var(--faint); font-size: 9px; }
.performance-panel { margin-top: 12px; padding: 20px 22px 17px; }
.performance-heading { align-items: center; }
.performance-meta { display: flex; align-items: flex-end; gap: 14px; color: var(--muted); font: 9px var(--mono); text-align: right; text-transform: uppercase; }
.performance-meta strong { color: var(--cyan); font-weight: 500; }
.performance-chart-shell { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.performance-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0 36px; color: var(--faint); font: 8px var(--mono); text-align: right; }
.performance-chart { position: relative; display: grid; min-height: 282px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 13px 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(77, 134, 255, .07), transparent 56%), var(--bg-deep); }
.performance-chart::before, .performance-chart::after { position: absolute; right: 0; left: 0; height: 1px; content: ""; background: var(--line); }
.performance-chart::before { top: 25%; }
.performance-chart::after { bottom: 25%; }
.performance-zero-line { position: absolute; z-index: 1; top: 50%; right: 0; left: 0; border-top: 1px solid var(--line-strong); }
.performance-chart-empty { position: absolute; top: 50%; left: 50%; z-index: 2; width: min(310px, calc(100% - 28px)); padding: 15px; border: 1px solid var(--line-strong); background: rgba(3, 7, 13, .9); transform: translate(-50%, -50%); text-align: center; }
.performance-chart-empty strong, .performance-chart-empty small { display: block; }
.performance-chart-empty strong { color: var(--text); font: 10px var(--mono); text-transform: uppercase; }
.performance-chart-empty small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.performance-period { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 8px; text-align: center; }
.performance-period-plot { position: relative; width: 100%; height: 210px; }
.performance-period-value { position: absolute; top: 0; right: 0; left: 0; color: var(--text); font: 9px var(--mono); white-space: nowrap; }
.performance-period-value-brl { position: absolute; top: 14px; right: 0; left: 0; color: var(--muted); font: 8px var(--mono); white-space: nowrap; }
.performance-period.is-profit .performance-period-value { color: var(--green); }
.performance-period.is-loss .performance-period-value { color: var(--red); }
.performance-bar-track { position: absolute; top: 28px; right: 50%; bottom: 27px; width: 30px; transform: translateX(50%); }
.performance-chart-bar { position: absolute; right: 0; bottom: 50%; left: 0; height: var(--performance-height); min-height: 5px; background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 18px rgba(142, 233, 255, .24); transform-origin: bottom; animation: performance-rise .8s var(--ease) both; }
.performance-period.is-loss .performance-chart-bar { top: 50%; bottom: auto; background: linear-gradient(180deg, var(--red), rgba(255, 102, 119, .55)); transform-origin: top; }
.performance-period.is-flat .performance-chart-bar { background: var(--muted); }
.performance-period.is-empty .performance-period-value, .performance-period.is-empty small, .performance-period.is-empty .performance-risk-value { color: var(--faint); }
.performance-period.is-error .performance-period-value, .performance-period.is-error small, .performance-period.is-error .performance-risk-value { color: var(--amber); }
.performance-period strong { color: var(--text); font: 600 12px var(--display); }
.performance-period small, .performance-risk-value { color: var(--muted); font: 8px var(--mono); }
.performance-risk-value { position: absolute; right: 0; bottom: 0; left: 0; }
.performance-risk-marker { position: absolute; right: 50%; bottom: 19px; width: var(--risk-width); max-width: 56px; height: 2px; background: var(--amber); box-shadow: 0 0 8px rgba(232, 182, 107, .42); transform: translateX(50%); }
.performance-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 13px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.performance-key { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; }
.performance-key.pnl { background: var(--cyan); box-shadow: 0 0 8px rgba(142, 233, 255, .45); }
.performance-key.risk { background: var(--amber); }
.performance-legend-note { margin-left: auto; color: var(--faint); }
.performance-note { margin: 12px 0 0; color: var(--faint); font: 9px/1.45 var(--body); }

.main-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr); gap: 15px; }
.panel { padding: 21px 22px; }
.chart-panel { min-height: 455px; }
.chart-panel:fullscreen { box-sizing: border-box; min-height: 100vh; padding: 24px; overflow: auto; background: var(--bg); }
.chart-panel.is-expanded { position: fixed; z-index: 50; inset: 18px; min-height: auto; padding: 24px; overflow: auto; background: var(--bg); box-shadow: 0 20px 80px rgba(0, 0, 0, .55); }
.chart-heading { align-items: center; }
.heading-actions, .ledger-actions { display: flex; align-items: center; gap: 12px; }
.data-badge { display: flex; align-items: center; gap: 5px; color: var(--amber); }
.data-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.icon-button.small { width: 23px; height: 23px; font-size: 17px; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.instrument-tabs, .timeframe-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.instrument-tab { padding: 7px 9px; color: var(--muted); font: 9px var(--mono); white-space: nowrap; }
.instrument-tab.active { color: var(--cyan); background: rgba(56, 124, 255, .13); }
.timeframe { padding: 6px; color: var(--faint); font: 8px var(--mono); }
.timeframe:hover, .timeframe.active { color: var(--text); }
.timeframe.active { box-shadow: inset 0 -1px var(--cyan); }
.chart-view-tabs { display: flex; align-items: center; gap: 3px; margin-left: auto; padding: 2px; border: 1px solid var(--line); }
.chart-view-tab { padding: 5px 7px; border: 0; background: transparent; color: var(--faint); cursor: pointer; font: 8px var(--mono); text-transform: uppercase; }
.chart-view-tab:hover, .chart-view-tab.active, .chart-view-tab:focus-visible { color: var(--text); background: var(--surface-raised); }
.chart-view-tab.active { box-shadow: inset 0 -1px var(--cyan); }
.chart-indicator-tabs { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--hairline); border-radius: 9px; background: rgba(5, 12, 22, .64); }
.chart-indicator-toggle { min-height: 32px; padding: 0 11px; border: 0; border-radius: 6px; color: var(--faint); background: transparent; cursor: pointer; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chart-indicator-toggle:hover, .chart-indicator-toggle:focus-visible, .chart-indicator-toggle.active { color: var(--cyan); background: rgba(85, 225, 230, .1); }
.chart-indicator-toggle:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.chart-interaction-controls { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.chart-interaction-controls button { min-width: 25px; padding: 5px 7px; border: 1px solid var(--line); color: var(--faint); background: rgba(5, 12, 23, .72); cursor: pointer; font: 8px var(--mono); }
.chart-interaction-controls button:hover, .chart-interaction-controls button:focus-visible { border-color: var(--cyan); color: var(--text); background: var(--surface-raised); }
.chart-structure-readout { margin-left: 5px; color: var(--muted); font: 8px var(--mono); white-space: nowrap; }
.chart-structure-readout strong { color: var(--cyan); }
.chart-stage { position: relative; height: 300px; margin-top: 10px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(56, 124, 255, .035), transparent); }
.chart-stage::before { position: absolute; top: 0; bottom: 0; left: 49%; width: 1px; content: ""; background: var(--line); }
.chart-watermark { position: absolute; top: 15px; left: 15px; z-index: 1; color: var(--faint); font: 8px var(--mono); letter-spacing: .12em; }
.chart-watermark span { color: var(--blue); }
.chart-grid-lines { position: absolute; inset: 33px 0 25px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid-lines i { display: block; width: 100%; height: 1px; background: var(--line); }
.market-chart { position: absolute; inset: 25px 0 20px; width: 100%; height: calc(100% - 45px); overflow: visible; }
.chart-area { fill: url(#areaFade); opacity: .72; }
.chart-line, .chart-line-secondary { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: chart-draw 2.2s .2s var(--ease) forwards; }
.chart-line { stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(85, 225, 230, .52)); }
.chart-line-secondary { stroke: rgba(56, 124, 255, .7); stroke-width: 1; animation-delay: .7s; }
.chart-markers circle { fill: var(--bg); stroke: var(--cyan); stroke-width: 2; animation: marker-in .6s 1.5s var(--ease) both; }
.chart-markers circle:nth-child(2) { animation-delay: 1.7s; }
.chart-markers circle:nth-child(3) { animation-delay: 1.9s; }
.ohlc-chart { display: none; position: absolute; inset: 25px 0 20px; width: 100%; height: calc(100% - 45px); overflow: visible; }
.chart-stage[data-chart-type="ohlc"] .market-chart { display: none; }
.chart-stage[data-chart-type="ohlc"] .ohlc-chart { display: block; }
.candle-up line, .candle-up rect { stroke: var(--green); }
.candle-up rect { fill: rgba(78, 231, 160, .58); }
.candle-down line, .candle-down rect { stroke: var(--red); }
.candle-down rect { fill: rgba(255, 102, 119, .58); }
.ohlc-candles line { stroke-width: 2; }
.ohlc-candles rect { stroke-width: 1; }
.ohlc-markers circle { fill: var(--bg); stroke: var(--cyan); stroke-width: 2; }
.chart-empty { position: absolute; top: 50%; left: 50%; z-index: 2; display: flex; align-items: center; gap: 13px; min-width: 250px; justify-content: center; padding: 10px 13px; border: 1px solid var(--line-strong); background: rgba(5, 9, 19, .85); transform: translate(-50%, -50%); }
.chart-empty strong, .chart-empty small { display: block; }
.chart-empty strong { color: var(--text); font: 10px var(--mono); }
.chart-empty small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.chart-stage.has-market-data .chart-empty { display: none; }
.chart-stage:not(.has-market-data) .market-chart,
.chart-stage:not(.has-market-data) .ohlc-chart { visibility: hidden; }
.chart-stage.is-dragging { cursor: grabbing; }
.chart-stage:not(.is-dragging) { cursor: grab; }
.chart-live-readout { position: absolute; z-index: 4; top: var(--chart-readout-top, 50%); left: var(--chart-readout-left, 50%); display: grid; width: max-content; min-width: 0; max-width: min(132px, calc(100% - 16px)); gap: 2px; padding: 5px 7px; border: 0; background: transparent; box-shadow: none; pointer-events: none; transform: translate(0, -50%); }
.chart-live-readout span { overflow: hidden; color: var(--faint); font: 8.5px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.chart-live-readout .chart-readout-symbol { color: var(--cyan); letter-spacing: .06em; }
.chart-live-readout strong { color: var(--text); font: 600 14px var(--mono); }
.chart-live-readout #chart-current-move, .chart-live-readout #chart-candle-timer { font-weight: 600; }
.chart-live-readout #chart-current-move { color: var(--green); }
.smc-overlays { pointer-events: none; }
.smc-order-block, .smc-fvg { stroke-width: 1; }
.smc-order-block { fill: rgba(155, 114, 226, .14); stroke: rgba(185, 148, 255, .76); }
.smc-order-block.bearish { fill: rgba(255, 102, 119, .12); stroke: rgba(255, 126, 126, .76); }
.smc-fvg { fill: rgba(85, 225, 230, .12); stroke: rgba(85, 225, 230, .66); stroke-dasharray: 3 3; }
.smc-fvg.bearish { fill: rgba(246, 200, 109, .12); stroke: rgba(246, 200, 109, .7); }
.smc-order-block-label, .smc-fvg-label { fill: var(--text); font: 7px var(--mono); letter-spacing: .06em; }
.smc-swing-high { fill: var(--red); opacity: .9; }
.smc-swing-low { fill: var(--green); opacity: .9; }
.smc-structure-label { font: 700 7px var(--mono); letter-spacing: .04em; }
.smc-structure-label.high { fill: var(--red); }
.smc-structure-label.low { fill: var(--green); }
.smc-event-marker.bullish { fill: var(--green); }
.smc-event-marker.bearish { fill: var(--red); }
.smc-event-label { fill: var(--text); font: 7px var(--mono); letter-spacing: .04em; }
.chart-current-marker { stroke: rgba(255, 255, 255, .42); stroke-width: 1; stroke-dasharray: 2 5; }
.price-axis line { stroke: rgba(149, 177, 205, .45); stroke-width: 1; }
.price-axis text { fill: var(--faint); font: 8px var(--mono); }
.price-axis .current-quote-line { stroke: var(--amber); stroke-dasharray: 5 4; }
.price-axis .current-quote-label { fill: var(--amber); font-weight: 700; }
.smc-level { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 6 5; opacity: .82; }
.smc-level.liquidity-low { stroke: var(--amber); }
.smc-level-label { fill: var(--cyan); font: 8px var(--mono); letter-spacing: .08em; }
.smc-level-label.liquidity-low { fill: var(--amber); }
.chart-indicator-series { fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.chart-indicator-series.ema20 { stroke: #f6c86d; }
.chart-indicator-series.ema50 { stroke: #b98aff; stroke-dasharray: 5 3; }
.chart-indicator-series.vwap { stroke: var(--cyan); stroke-dasharray: 2 4; }
.chart-indicator-label, .daily-level-label, .chart-indicator-readout { font: 7px var(--mono); letter-spacing: .05em; }
.chart-indicator-label.ema20 { fill: #f6c86d; }
.chart-indicator-label.ema50 { fill: #b98aff; }
.chart-indicator-label.vwap { fill: var(--cyan); }
.chart-indicator-readout { fill: var(--muted); }
.daily-level { fill: none; stroke-width: .8; stroke-dasharray: 4 4; opacity: .76; }
.daily-level.open { stroke: #c9d7e7; }
.daily-level.high { stroke: var(--green); }
.daily-level.low { stroke: var(--red); }
.daily-level.close { stroke: var(--blue-light); }
.daily-level-label { fill: var(--muted); }
.daily-level-label.high { fill: var(--green); }
.daily-level-label.low { fill: var(--red); }
.ochl-forex-overlay { opacity: 1; }
.ochl-forex-label { font-weight: 600; }
.operation-levels { pointer-events: none; }
.operation-level { fill: none; stroke-width: 1.45; stroke-dasharray: 8 4; opacity: .94; }
.operation-level.operation_entry_price { stroke: var(--cyan); }
.operation-level.operation_stop_loss { stroke: var(--red); }
.operation-level.operation_take_profit { stroke: var(--green); }
.operation-level.operation_exit_price { stroke: var(--amber); stroke-dasharray: 3 3; }
.operation-level-label { font: 800 7px var(--mono); letter-spacing: .08em; }
.operation-level-label.operation_entry_price { fill: var(--cyan); }
.operation-level-label.operation_stop_loss { fill: var(--red); }
.operation-level-label.operation_take_profit { fill: var(--green); }
.operation-level-label.operation_exit_price { fill: var(--amber); }
.chart-volume-bars { opacity: .42; }
.chart-volume-bars rect { shape-rendering: crispEdges; }
.chart-volume-bars .volume-up { fill: var(--green); }
.chart-volume-bars .volume-down { fill: var(--red); }
.data-badge.is-live { color: var(--green); }
.empty-bracket { color: var(--cyan); font: 24px Georgia, serif; }
.chart-axis { position: absolute; right: 0; bottom: 6px; left: 0; display: flex; justify-content: space-between; color: var(--faint); font: 8px var(--mono); }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; color: var(--muted); font: 8px var(--mono); }
.legend { display: flex; gap: 13px; }
.legend span, .buy-key, .sell-key { display: inline-flex; align-items: center; gap: 5px; }
.legend i, .buy-key i, .sell-key i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.legend-buy, .buy-key i { background: var(--green); box-shadow: 0 0 8px rgba(78, 231, 160, .45); }
.legend-sell, .sell-key i { background: var(--red); box-shadow: 0 0 8px rgba(255, 102, 119, .45); }
.legend-liquidity { border: 1px solid var(--cyan); background: transparent; }
.chart-note { color: var(--faint); text-align: right; }
.ochl-panel { margin-top: 12px; padding: 12px 13px; border: 1px solid var(--hairline); background: linear-gradient(135deg, rgba(85, 225, 230, .06), rgba(7, 19, 33, .72)); }
.ochl-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ochl-panel-heading strong { display: block; margin-top: 4px; color: var(--text); font: 600 11px var(--display); }
.ochl-panel-status { color: var(--cyan); font: 8px var(--mono); letter-spacing: .08em; white-space: nowrap; }
.ochl-panel-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.ochl-panel-grid div { min-width: 0; padding-right: 8px; border-right: 1px solid var(--line); }
.ochl-panel-grid div:last-child { padding-right: 0; border-right: 0; }
.ochl-panel-grid span, .ochl-panel-note { display: block; color: var(--faint); font: 7px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.ochl-panel-grid strong { display: block; overflow: hidden; margin-top: 5px; color: var(--text); font: 600 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.ochl-panel-note { margin-top: 10px; color: var(--muted); line-height: 1.45; text-transform: none; }

.risk-panel { min-height: 455px; }
.gate-badge { display: flex; align-items: center; gap: 5px; color: var(--cyan); }
.gate-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(78, 231, 160, .7); }
.risk-visual { display: flex; align-items: center; gap: 17px; margin: 35px 0 24px; }
.risk-ring { display: grid; width: 126px; height: 126px; flex: 0 0 126px; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan) 0 22%, rgba(82, 125, 180, .16) 22% 100%); box-shadow: 0 0 28px rgba(56, 124, 255, .13); transform: rotate(-35deg); }
.risk-ring::before { width: 106px; height: 106px; content: ""; border-radius: 50%; background: var(--surface); }
.risk-ring > div { position: absolute; text-align: center; transform: rotate(35deg); }
.risk-ring strong, .risk-ring small { display: block; }
.risk-ring strong { color: var(--text); font: 21px var(--mono); }
.risk-ring small { margin-top: 3px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.risk-state { display: block; margin: 7px 0; color: var(--cyan); font: 600 12px var(--mono); }
.capital-detection { display: block; margin: -2px 0 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.capital-detection[hidden] { display: none; }
.risk-visual p { max-width: 145px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.risk-list { border-top: 1px solid var(--line); }
.risk-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.risk-list strong { color: var(--text); font: 10px var(--mono); }
.risk-footer, .panel-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 18px; color: var(--faint); font: 8px/1.5 var(--mono); }

.session-strip { display: grid; grid-template-columns: 145px 1fr auto; align-items: stretch; min-height: 77px; margin: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(9, 21, 37, .48); }
.session-strip-title { display: flex; flex-direction: column; justify-content: center; padding: 12px 15px; border-right: 1px solid var(--line); }
.session-strip-title strong { margin-top: 5px; font: 600 11px var(--display); }
.session-strip-title small { margin-top: 4px; color: var(--faint); font: 8px var(--mono); }
.session-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.session-track::before { position: absolute; top: 50%; right: 20px; left: 20px; height: 1px; content: ""; background: var(--line); }
.session-node { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 13px 11px; border-right: 1px solid var(--line); background: rgba(9, 21, 37, .72); }
.session-node-dot { width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid var(--faint); border-radius: 50%; background: var(--bg); }
.session-node.is-open .session-node-dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 12px rgba(85, 225, 230, .65); }
.session-node div { min-width: 0; }
.session-node small, .session-node strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.session-node small { color: var(--faint); font: 8px var(--mono); }
.session-node strong { margin-top: 4px; color: var(--muted); font: 9px var(--mono); }
.session-node.is-open strong { color: var(--cyan); }
.session-node time { margin-left: auto; color: var(--faint); font: 8px var(--mono); white-space: nowrap; }
.session-focus { display: flex; align-items: center; gap: 7px; min-width: 160px; padding: 12px 14px; color: var(--muted); font: 8px var(--mono); }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .72fr); gap: 15px; }
.map-panel { min-height: 435px; }
.map-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.map-legend i { display: inline-block; width: 6px; height: 6px; border: 1px solid var(--faint); border-radius: 50%; }
.map-legend i.open { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 8px rgba(85, 225, 230, .55); }
.map-stage { position: relative; height: 270px; margin-top: 21px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 48%, rgba(22, 67, 108, .34), transparent 62%), rgba(4, 10, 19, .86); perspective: 900px; }
.map-stage::before { position: absolute; z-index: 0; top: 50%; left: 50%; width: 76%; height: 82%; border: 1px solid rgba(85, 150, 213, .22); border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(125, 211, 252, .24), rgba(20, 67, 109, .18) 35%, rgba(2, 9, 20, .72) 78%); box-shadow: inset -35px -22px 65px rgba(0, 0, 0, .7), inset 23px 15px 35px rgba(85, 225, 230, .13), 0 0 42px rgba(30, 126, 220, .18); content: ""; transform: translate(-50%, -50%) rotateX(9deg); }
.map-stage::after { position: absolute; z-index: 1; top: 50%; left: 50%; width: 78%; height: 82%; border: 1px solid rgba(85, 225, 230, .32); border-radius: 50%; box-shadow: 0 0 18px rgba(85, 225, 230, .16); content: ""; pointer-events: none; transform: translate(-50%, -50%) rotate(-9deg) scaleY(.36); animation: globe-orbit 14s linear infinite; }
.map-stage svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .24)); }
.map-globe-layer { opacity: .96; }
.globe-shadow { fill: rgba(0, 0, 0, .42); filter: blur(7px); }
.globe-sphere { stroke: rgba(104, 206, 241, .3); stroke-width: 1.2; }
.globe-atmosphere { opacity: .7; }
.globe-grid-line { fill: none; stroke: rgba(106, 206, 239, .2); stroke-width: .7; stroke-dasharray: 2 8; }
.globe-grid-line:nth-child(4n) { stroke: rgba(85, 225, 230, .32); stroke-dasharray: 8 10; }
.globe-sweep { fill: none; stroke: rgba(131, 236, 255, .62); stroke-width: 1.2; stroke-dasharray: 12 22; opacity: .58; animation: globe-sweep 8s linear infinite; }
.map-finance-layer { opacity: .76; }
.map-market-line { fill: none; stroke: rgba(114, 228, 178, .72); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 5 4; filter: drop-shadow(0 0 4px rgba(114, 228, 178, .5)); }
.market-candle line { stroke: rgba(207, 226, 244, .76); stroke-width: 1; }
.market-candle rect { stroke-width: 1; }
.market-candle.up rect { fill: rgba(114, 228, 178, .66); stroke: var(--green); }
.market-candle.down rect { fill: rgba(255, 126, 126, .62); stroke: var(--red); }
.map-data-label { fill: rgba(192, 220, 243, .7); font: 7px var(--mono); letter-spacing: .08em; }
.map-land { fill: rgba(40, 73, 112, .62); stroke: rgba(85, 150, 213, .54); stroke-width: 1; }
.small-land { fill: rgba(42, 85, 124, .56); }
.map-route { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 7 8; opacity: .65; animation: route-flow 12s linear infinite; }
.route-two { stroke: var(--cyan); animation-delay: -4s; }
.map-pulse-node { transform-box: fill-box; transform-origin: center; }
.map-pulse-node circle:first-child { fill: var(--cyan); stroke: var(--bg); stroke-width: 3; }
.map-pulse-node circle:last-child { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: .7; animation: map-pulse 2.8s ease-out infinite; }
.map-pulse-node.is-closed circle:first-child { fill: #1c3554; stroke: #0c1728; }
.map-pulse-node.is-closed circle:last-child { stroke: #355271; opacity: .22; animation-duration: 5.4s; }
.map-stage:not([data-map-version="rectangular-v2"]) .node-asia { transform: translate(748px, 143px); }
.map-stage:not([data-map-version="rectangular-v2"]) .node-oceania { transform: translate(700px, 228px); }
.map-stage:not([data-map-version="rectangular-v2"]) .node-europe { transform: translate(456px, 92px); }
.map-stage:not([data-map-version="rectangular-v2"]) .node-ny { transform: translate(188px, 143px); }
.map-stage:not([data-map-version="rectangular-v2"]) .node-brazil { transform: translate(310px, 207px); }
.map-label { position: absolute; z-index: 3; color: var(--muted); font: 8px var(--mono); letter-spacing: .08em; text-shadow: 0 2px 8px rgba(0, 0, 0, .85); }
.map-label strong { display: block; margin-top: 4px; color: var(--text); font-size: 9px; }
.map-hud { position: absolute; z-index: 4; top: 12px; left: 14px; display: grid; grid-template-columns: 8px auto auto; align-items: center; column-gap: 6px; color: var(--faint); font: 7px var(--mono); letter-spacing: .08em; pointer-events: none; }
.map-hud-dot { width: 6px; height: 6px; border: 1px solid var(--faint); border-radius: 50%; background: var(--faint); }
.has-open .map-hud-dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px rgba(85, 225, 230, .85); animation: pulse 2.2s ease-in-out infinite; }
.map-hud strong { color: var(--cyan); font-size: 10px; font-weight: 600; }
.map-hud small { grid-column: 2 / -1; margin-top: 2px; color: var(--faint); font-size: 7px; letter-spacing: .03em; }
.map-timezone-note { position: absolute; z-index: 4; top: 12px; right: 14px; color: var(--faint); font: 7px var(--mono); letter-spacing: .04em; pointer-events: none; }
.map-asia { top: 43%; right: 7%; }.map-oceania { right: 5%; bottom: 10%; }.map-europe { top: 22%; left: 53%; }.map-ny { top: 43%; left: 10%; }.map-brazil { bottom: 24%; left: 32%; }
.overlap-table { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.overlap-table div { min-width: 0; padding: 9px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
.overlap-table div:last-child { border-right: 0; }
.overlap-table div.is-active { border-left-color: var(--cyan); background: rgba(85, 225, 230, .07); }
.overlap-table span, .overlap-table time { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.overlap-table span { color: var(--muted); font-size: 8px; }.overlap-table time { margin-top: 5px; color: var(--faint); font: 8px var(--mono); }.overlap-table div.is-active time { color: var(--cyan); }
.overlap-table time .window-local, .overlap-table time .window-utc { display: block; overflow: hidden; text-overflow: ellipsis; }
.overlap-table time .window-local { color: var(--text); font-weight: 600; }
.overlap-table time .window-utc { margin-top: 3px; color: var(--faint); font-size: 7px; }
.session-node time .window-local, .session-node time .window-utc { display: block; }
.session-node time .window-local { color: var(--text); font-weight: 600; }
.session-node time .window-utc { margin-top: 3px; color: var(--faint); font-size: 7px; }
.agents-panel { min-height: 435px; }
.agent-list { margin-top: 20px; border-top: 1px solid var(--line); }
.agent-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.agent-chip { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: var(--bg); font: 700 9px var(--mono); }
.agent-chip.blue { background: var(--blue); }.agent-chip.cyan { background: var(--cyan); }.agent-chip.purple { background: var(--purple); }.agent-chip.red { background: var(--red); }.agent-chip.amber { background: var(--amber); }
.agent-row div { min-width: 0; }.agent-row strong, .agent-row small { display: block; }.agent-row strong { color: var(--text); font: 600 10px var(--body); }.agent-row small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.agent-status { margin-left: auto; color: var(--muted); font: 8px var(--mono); white-space: nowrap; }.agent-status.armed { color: var(--cyan); }.agent-status.armed i { background: var(--green); }.agent-status.waiting i { background: var(--amber); }
.agent-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.agent-pagination button { min-width: 66px; padding: 7px 8px; border: 1px solid var(--line-strong); color: var(--cyan); background: rgba(9, 21, 37, .7); cursor: pointer; font: 8px var(--mono); text-transform: uppercase; }
.agent-pagination button:hover:not(:disabled), .agent-pagination button:focus-visible:not(:disabled) { border-color: var(--cyan); background: rgba(85, 225, 230, .08); }
.agent-pagination button:disabled { cursor: not-allowed; color: var(--faint); opacity: .45; }
.agent-pagination-status { color: var(--muted); font: 8px var(--mono); text-align: center; }

.operations-panel { margin-top: 15px; padding-bottom: 16px; }
.ledger-actions { color: var(--muted); font: 8px var(--mono); }.buy-key { color: var(--green); }.sell-key { color: var(--red); }.text-action, .outline-action { border: 1px solid var(--line-strong); background: transparent; color: var(--cyan); cursor: pointer; font: 9px var(--mono); }.text-action { padding: 7px 8px; }.text-action:hover, .outline-action:hover { background: rgba(85, 225, 230, .08); }
.operations-table-wrap { overflow-x: auto; margin-top: 17px; }.operations-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 10px; }.operations-table th { padding: 0 10px 10px 0; color: var(--faint); text-align: left; font: 8px var(--mono); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }.operations-table td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line); color: var(--muted); }.operations-table td strong { color: var(--text); }.operations-table td small { display: block; margin-top: 4px; color: var(--faint); font: 9px/1.45 var(--mono); letter-spacing: .02em; text-transform: none; }.operations-table td small.operation-provenance { color: var(--muted); }.operations-table .buy, .operations-table .buy td { color: var(--green); }.operations-table .sell, .operations-table .sell td { color: var(--red); }.direction-buy { color: var(--green) !important; }.direction-sell { color: var(--red) !important; }.empty-operation td { height: 103px; padding: 0; text-align: center; }.empty-operation td > div { display: flex; align-items: center; justify-content: center; gap: 10px; }.empty-operation strong, .empty-operation small { display: block; }.empty-operation strong { color: var(--muted); font: 10px var(--mono); }.empty-operation small { margin-top: 4px; color: var(--faint); font-size: 9px; }.empty-ledger-icon { color: var(--cyan); font: 24px Georgia, serif; }

.reports-section { padding: 52px 0 25px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.section-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }.section-heading p { max-width: 485px; margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.outline-action { padding: 10px 12px; }.outline-action span { margin-left: 7px; color: var(--blue); }.report-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 22px; }.report-card { position: relative; display: flex; min-height: 142px; flex-direction: column; align-items: flex-start; padding: 15px; border: 1px solid var(--line); background: var(--surface-soft); cursor: pointer; text-align: left; transition: transform .25s var(--ease), border-color .25s ease, background .25s ease; }.report-card:hover, .report-card:focus-visible { border-color: var(--cyan); background: var(--surface-raised); transform: translateY(-3px); }.report-card.featured { border-top: 2px solid var(--cyan); background: linear-gradient(135deg, rgba(56, 124, 255, .14), var(--surface-soft) 60%); }.report-number { color: var(--blue); font: 9px var(--mono); }.report-card strong { margin-top: auto; color: var(--text); font: 600 16px var(--display); }.report-card small { max-width: 150px; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }.report-arrow { position: absolute; top: 14px; right: 14px; color: var(--cyan); font: 14px var(--mono); }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font: 8px var(--mono); }.page-footer strong { color: var(--red); font-weight: 500; }

@keyframes draw-mark { to { stroke-dashoffset: 0; } }
@keyframes bars-in { from { opacity: 0; transform: scaleY(0); transform-origin: bottom; } to { opacity: 1; transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; box-shadow: 0 0 0 5px rgba(85, 225, 230, .12), 0 0 17px rgba(85, 225, 230, .85); } }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes performance-rise { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@media (max-width: 1040px) { .app-shell { overflow-x: clip; }.system-rail, .session-track { min-width: 0; overflow-x: auto; overflow-y: hidden; }.main-grid > * { min-width: 0; } }
@media (max-width: 740px) { .performance-panel { padding: 17px 14px 15px; }.performance-heading { align-items: flex-start; }.performance-meta { align-items: flex-start; flex-direction: column; gap: 4px; text-align: left; }.performance-chart-shell { gap: 6px; }.performance-chart { min-height: 246px; padding-right: 3px; padding-left: 3px; }.performance-period { padding: 0 3px; }.performance-period-plot { height: 178px; }.performance-bar-track { width: 22px; top: 28px; bottom: 25px; }.performance-legend-note { width: 100%; margin-left: 0; } }
@media (max-width: 390px) { .performance-chart { min-height: 235px; }.performance-period-value { font-size: 8px; }.performance-period strong { font-size: 11px; }.performance-risk-value { font-size: 7px; } }
@media (prefers-reduced-motion: reduce) { .performance-chart-bar { animation: none; }.brand-bull, .brand-bear, .brand-trace, .seal-bars i, .chart-line, .chart-line-secondary, .chart-markers circle { animation: none; } }
@keyframes marker-in { from { opacity: 0; transform: scale(0); transform-origin: center; } to { opacity: 1; transform: scale(1); } }
@keyframes route-flow { to { stroke-dashoffset: -180; } }
@keyframes map-pulse { 0% { opacity: .7; transform: scale(.65); } 75%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes globe-orbit { 0% { opacity: .28; transform: translate(-50%, -50%) rotate(-9deg) scaleY(.36); } 50% { opacity: .6; } 100% { opacity: .28; transform: translate(-50%, -50%) rotate(351deg) scaleY(.36); } }
@keyframes globe-sweep { to { stroke-dashoffset: -180; } }

@media (max-width: 1240px) { .main-content { padding: 25px 26px; }.sidebar { flex-basis: 238px; width: 238px; }.topbar-actions { gap: 7px; }.search-box { min-width: 170px; }.search-box input { width: 105px; }.hero-orbit { right: 1%; opacity: .58; }.overlap-table span { font-size: 7px; } }
@media (max-width: 1040px) { .topbar { align-items: flex-start; flex-direction: column; }.topbar-actions { width: 100%; justify-content: flex-end; }.hero-grid, .main-grid, .lower-grid { grid-template-columns: 1fr; }.risk-panel { min-height: auto; }.risk-visual { max-width: 520px; }.map-panel, .agents-panel { min-height: auto; }.report-grid { grid-template-columns: repeat(3, 1fr); }.report-card { min-height: 125px; }.session-strip { grid-template-columns: 130px 1fr; }.session-focus { grid-column: 1 / -1; min-height: 36px; border-top: 1px solid var(--line); }.session-track { min-height: 75px; } }
@media (max-width: 740px) { .app-shell { display: block; }.sidebar { position: relative; width: 100%; height: auto; min-height: 0; padding: 16px 15px 12px; border-right: 0; border-bottom: 1px solid var(--line); }.brand-lockup { padding-bottom: 15px; }.workspace-switcher, .sidebar-bottom { display: none; }.nav-section-label { display: none; }.nav-list { display: flex; gap: 2px; overflow-x: auto; }.nav-item { width: auto; min-width: max-content; grid-template-columns: 17px 1fr; padding: 10px 9px; }.nav-item kbd { display: none; }.nav-icon { font-size: 12px; }.main-content { padding: 20px 14px 24px; }.topbar-actions { justify-content: flex-start; flex-wrap: wrap; }.search-box { flex: 1 1 100%; order: 2; }.search-box input { width: 100%; }.system-rail { overflow-x: auto; overflow-y: hidden; }.rail-status, .rail-item { min-width: max-content; }.rail-clock { min-width: 145px; }.hero-panel { min-height: 420px; padding: 20px; }.hero-copy { margin-top: 48px; }.hero-copy h2 { font-size: 49px; }.hero-orbit { right: -35px; bottom: 57px; width: 220px; height: 220px; opacity: .42; }.hero-bottomline { right: 20px; bottom: 18px; left: 20px; flex-wrap: wrap; gap: 7px 15px; }.focus-panel { padding: 20px 18px; }.performance-bar { align-items: flex-start; flex-direction: column; }.period-tabs { width: 100%; overflow-x: auto; }.period-tab { flex: 1; min-width: 70px; }.lens-note { text-align: left; }.metric-ribbon { grid-template-columns: 1fr 1fr; }.metric-cell:nth-child(2) { border-right: 0; }.metric-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.chart-toolbar { align-items: flex-start; flex-direction: column; }.chart-stage { height: 265px; }.chart-empty { min-width: 225px; }.chart-footer { align-items: flex-start; flex-direction: column; }.chart-note { text-align: left; }.session-strip { display: block; }.session-strip-title { border-right: 0; border-bottom: 1px solid var(--line); }.session-track { display: flex; min-height: 84px; overflow-x: auto; overflow-y: hidden; }.session-node { min-width: 170px; }.session-focus { min-height: 45px; border-top: 1px solid var(--line); }.map-stage { height: 230px; }.overlap-table { grid-template-columns: 1fr 1fr; }.overlap-table div:nth-child(2n) { border-right: 0; }.overlap-table div:last-child { grid-column: 1 / -1; }.section-heading { align-items: flex-start; flex-direction: column; }.report-grid { grid-template-columns: 1fr 1fr; }.report-card { min-height: 125px; }.ledger-actions { flex-wrap: wrap; justify-content: flex-end; }.page-footer { flex-direction: column; line-height: 1.6; } }
@media (max-width: 390px) { .topbar h1 { font-size: 24px; }.mode-switch { width: 100%; }.mode { flex: 1; text-align: center; }.hero-copy h2 { font-size: 42px; }.metric-cell { min-height: 105px; padding: 13px 11px; }.metric-cell > div { display: block; }.metric-source { display: block; margin-top: 4px; text-align: left; }.metric-cell strong { font-size: 20px; }.risk-visual { align-items: flex-start; flex-direction: column; }.report-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.auth-dialog { box-sizing: border-box; width: min(430px, calc(100vw - 28px)); min-width: 0; padding: 0; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .58); }
.auth-dialog::backdrop { background: rgba(2, 5, 12, .78); backdrop-filter: blur(5px); }
.auth-dialog form { padding: 25px; }
.auth-heading h2 { margin: 8px 0 9px; font: 600 24px/1 var(--display); letter-spacing: -.06em; }
.auth-heading, .auth-heading p, .auth-session-note, .auth-help, .auth-status { min-width: 0; max-width: 100%; }
.auth-heading p, .auth-session-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.auth-field { display: block; margin-top: 17px; }
.auth-field span { display: block; margin-bottom: 7px; color: var(--faint); font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.auth-field input, .auth-field select { width: 100%; min-width: 0; max-width: 100%; padding: 10px; border: 1px solid var(--line); outline: 0; color: var(--text); background: var(--bg-deep); font: 11px var(--mono); }
.auth-field input:focus, .auth-field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(85, 225, 230, .12); }
.auth-help { margin: 12px 0 0; color: var(--faint); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.auth-help strong { color: var(--cyan); font: 700 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.auth-session-note { margin-top: 14px; padding-left: 10px; border-left: 2px solid var(--cyan); }
.auth-status { min-height: 16px; margin: 15px 0 0; color: var(--amber); font: 9px/1.5 var(--mono); }
.auth-status.is-error { color: var(--red); }
.auth-status.is-success { color: var(--green); }
.auth-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.primary-action { padding: 10px 13px; border: 1px solid var(--cyan); color: var(--bg); background: var(--cyan); cursor: pointer; font: 600 9px var(--mono); text-transform: uppercase; }
.primary-action:hover { background: var(--text); }
.primary-action:disabled { cursor: wait; opacity: .55; }
.auth-dialog[open] { animation: auth-in .24s var(--ease) both; }
@keyframes auth-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .auth-dialog[open] { animation: none; } }

body.auth-locked { overflow: hidden; }
body.auth-locked .skip-link { display: none; }
body.auth-locked .app-shell { visibility: hidden; pointer-events: none; user-select: none; }
body.auth-locked .dashboard-lock-status:not([hidden]) { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; color: var(--text); background: radial-gradient(circle at 50% 20%, rgba(26, 169, 255, .1), transparent 34%), linear-gradient(135deg, #050913 0%, #071321 55%, #05070c 100%); }
.dashboard-lock-card { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); padding: clamp(22px, 5vw, 43px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(12, 26, 45, .96), rgba(5, 9, 19, .98)); box-shadow: 0 30px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(85, 225, 230, .04); }
.dashboard-lock-card strong { display: block; color: var(--text); font-size: clamp(20px, 4vw, 28px); }
.dashboard-lock-card p { margin: 14px 0 0; color: var(--faint); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dashboard-lock-card button { margin-top: 22px; }
body.auth-locked .auth-dialog[open] { inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100vw; min-width: 0; height: 100%; max-height: 100vh; margin: 0; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border: 0; background: radial-gradient(circle at 50% 20%, rgba(26, 169, 255, .1), transparent 34%), linear-gradient(135deg, #050913 0%, #071321 55%, #05070c 100%); box-shadow: none; overflow: auto; }
body.auth-locked .auth-dialog form { box-sizing: border-box; width: min(560px, calc(100vw - 16px)); max-width: calc(100vw - 16px); min-width: 0; flex: 0 1 auto; padding: clamp(22px, 5vw, 43px) clamp(16px, 5vw, 43px); border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(12, 26, 45, .96), rgba(5, 9, 19, .98)); box-shadow: 0 30px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(85, 225, 230, .04); }
body.auth-locked .auth-heading h2 { font-size: clamp(28px, 4vw, 38px); }
body.auth-locked .auth-actions { justify-content: stretch; }
body.auth-locked #auth-close { display: none; }
body.auth-locked #auth-submit { width: 100%; }
@media (max-width: 390px) { body.auth-locked .auth-dialog[open] { padding: 8px; } body.auth-locked .auth-dialog form { padding: 20px 14px; } body.auth-locked .auth-actions { gap: 6px; } body.auth-locked .auth-actions button { min-width: 0; } }

.agents-panel .agent-list {
  max-height: 390px;
  overflow-y: auto;
  padding: 2px 6px 2px 0;
  scrollbar-color: rgba(56, 124, 255, .82) rgba(9, 21, 37, .56);
  scrollbar-width: thin;
}
.agents-panel .agent-list::-webkit-scrollbar { width: 7px; }
.agents-panel .agent-list::-webkit-scrollbar-track { margin: 3px 0; border: 1px solid rgba(56, 124, 255, .1); border-radius: 999px; background: rgba(9, 21, 37, .56); }
.agents-panel .agent-list::-webkit-scrollbar-thumb { border: 2px solid rgba(9, 21, 37, .56); border-radius: 999px; background: linear-gradient(180deg, #55e1e6, #387cff); box-shadow: 0 0 10px rgba(56, 124, 255, .36); }
.agents-panel .agent-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7cf4f7, #5d96ff); }

@media (max-width: 740px) {
  .chart-interaction-controls { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .chart-structure-readout { margin-left: auto; }
  .chart-live-readout { max-width: 124px; padding: 4px 6px; }
  .map-timezone-note { top: 44px; right: 10px; font-size: 6px; }
  .overlap-table time .window-local, .overlap-table time .window-utc { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-line, .chart-line-secondary, .map-market-line { animation: none; }
}

/* 2026 panel UX refresh: clarity first, soft depth, operational density. */
:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --hairline: rgba(166, 196, 230, .13);
  --surface-elevated: rgba(14, 26, 41, .92);
  --focus-ring: 0 0 0 3px rgba(85, 225, 230, .2);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

body { background: radial-gradient(circle at 84% 0%, rgba(34, 128, 255, .1), transparent 34rem), var(--bg); }
button, input, select, textarea { font-family: inherit; }
:where(button, a, input, select, textarea):focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.sidebar { background: linear-gradient(180deg, rgba(5, 12, 22, .98), rgba(4, 9, 17, .96)); }
.brand-mark, .workspace-switcher, .search-box, .mode-switch, .icon-button, .avatar { border-radius: var(--radius-sm); }
.brand-mark { width: 48px; height: 48px; flex-basis: 48px; border-color: rgba(85, 225, 230, .62); background: rgba(85, 225, 230, .055); color: var(--cyan); font: 800 12px var(--mono); letter-spacing: .08em; }
.brand-name { letter-spacing: -.02em; }
.brand-subtitle { color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.workspace-switcher { min-height: 52px; padding: 10px 12px; border-color: var(--hairline); background: rgba(11, 23, 39, .78); }
.nav-list { gap: 4px; }
.nav-item { min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-left-width: 1px; border-radius: var(--radius-sm); }
.nav-item:hover { transform: none; border-color: rgba(85, 225, 230, .22); background: rgba(85, 225, 230, .07); }
.nav-item.active { border-color: rgba(85, 225, 230, .34); background: linear-gradient(100deg, rgba(56, 124, 255, .18), rgba(85, 225, 230, .05)); box-shadow: inset 3px 0 var(--cyan); }
.nav-item kbd { padding: 3px 6px; border: 1px solid var(--hairline); border-radius: 6px; }
.sidebar-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 14px 0 0; }
.sidebar-links a { display: flex; min-height: 38px; align-items: center; padding: 0 9px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: rgba(11, 23, 39, .62); }
.sidebar-links a:hover { border-color: rgba(85, 225, 230, .44); background: rgba(85, 225, 230, .08); }
.topbar { position: sticky; top: 0; z-index: 20; padding: 12px 0 17px; margin: -12px 0 17px; background: linear-gradient(180deg, rgba(5, 10, 18, .97) 55%, rgba(5, 10, 18, .82), transparent); backdrop-filter: blur(14px); }
.search-box { min-height: 44px; padding: 8px 12px; border-color: var(--hairline); background: rgba(9, 21, 37, .78); }
.search-box input { font-size: 11px; }
.mode-switch { min-height: 44px; padding: 3px; }
.mode { display: inline-flex; min-height: 36px; align-items: center; padding: 0 11px; border-radius: 8px; }
.icon-button, .avatar { min-width: 44px; min-height: 44px; }
.avatar { border-color: rgba(85, 225, 230, .6); }
.hero-panel, .focus-panel, .panel { border-color: var(--hairline); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(12, 27, 46, .92), rgba(8, 17, 29, .94)); box-shadow: 0 20px 60px rgba(0, 0, 0, .24); }
.hero-panel { padding: 27px 30px; }
.focus-panel, .panel { padding: 23px; }
.performance-bar { margin-top: 30px; padding: 15px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.period-tabs, .instrument-tabs, .timeframe-tabs { padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: rgba(5, 12, 22, .64); }
.period-tab, .instrument-tab, .timeframe { min-height: 40px; padding: 0 13px; border-radius: 8px; }
.period-tab:hover, .period-tab.active, .instrument-tab.active { background: rgba(85, 225, 230, .11); box-shadow: none; }
.period-tab.active, .instrument-tab.active { color: var(--cyan); }
.metric-ribbon { overflow: hidden; margin: 16px 0; border-color: var(--hairline); border-radius: var(--radius-md); background: rgba(8, 17, 29, .78); }
.metric-cell { min-height: 120px; padding: 18px 19px; border-right-color: var(--hairline); }
.chart-toolbar { gap: 12px; margin-top: 20px; padding-bottom: 14px; border-bottom-color: var(--hairline); }
.chart-stage, .map-stage { border-color: var(--hairline); border-radius: var(--radius-md); }
.chart-stage { margin-top: 12px; background: linear-gradient(180deg, rgba(56, 124, 255, .065), rgba(4, 10, 19, .32)); }
.session-strip { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: rgba(9, 21, 37, .6); }
.session-strip-title, .session-node { border-color: var(--hairline); }
.operations-panel { padding-bottom: 18px; border-radius: var(--radius-lg); }
.text-action, .outline-action, .primary-action { min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); }
.text-action:hover, .outline-action:hover { border-color: var(--cyan); }
.report-card { min-height: 154px; padding: 18px; border-color: var(--hairline); border-radius: var(--radius-md); background: linear-gradient(145deg, rgba(11, 27, 46, .78), rgba(7, 15, 26, .88)); }
.report-card.featured { border-top-width: 3px; }
.report-card strong { margin-top: auto; font-size: 17px; }
.report-arrow { top: 17px; right: 17px; }
.performance-panel { border-radius: var(--radius-lg); }
.auth-dialog, .auth-dialog form { border-radius: var(--radius-lg); }

@media (max-width: 740px) {
  .topbar { position: relative; top: auto; margin: 0 0 14px; padding: 0 0 14px; backdrop-filter: none; }
  .nav-item { min-height: 44px; }
  .sidebar-bottom { display: block; margin-top: 14px; }
  .sidebar-bottom .logo-seal, .sidebar-bottom .sidebar-note { display: none; }
  .sidebar-links { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
  .period-tabs, .instrument-tabs, .timeframe-tabs { width: 100%; }
  .period-tab, .instrument-tab, .timeframe { min-height: 44px; }
  .hero-panel, .focus-panel, .panel { border-radius: var(--radius-md); }
  .metric-ribbon { border-radius: var(--radius-md); }
}

/* 2026 Command Center pass: aligned cards and a rectangular session atlas. */
.hero-grid, .main-grid, .lower-grid { align-items: stretch; }
.hero-panel, .focus-panel, .panel { min-width: 0; border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(13, 31, 52, .94), rgba(7, 15, 26, .96)); box-shadow: 0 22px 58px rgba(0, 0, 0, .24); }
.hero-panel { min-height: 318px; padding: 29px 31px; }
.hero-copy { margin-top: 50px; }
.focus-panel { display: flex; min-height: 318px; flex-direction: column; padding: 25px; }
.focus-callout { margin-top: auto; }
.performance-bar { margin-top: 28px; padding: 17px 0; }
.metric-ribbon { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; border-radius: var(--radius-lg); }
.metric-cell { min-width: 0; min-height: 126px; padding: 19px 20px; }
.metric-cell strong { overflow-wrap: anywhere; }
.main-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); }
.chart-panel, .risk-panel { min-height: 465px; }
.lower-grid { grid-template-columns: minmax(0, 1.62fr) minmax(310px, .78fr); }
.map-panel, .agents-panel { min-height: 0; }
.map-panel { padding: 25px; }

.map-stage { height: auto; min-height: 320px; aspect-ratio: 2.32 / 1; perspective: none; border-radius: var(--radius-md); background: #06111f; }
.map-stage::before, .map-stage::after { display: none; }
.map-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; }
.map-frame { stroke: rgba(132, 191, 232, .25); stroke-width: 1; }
.map-grid-surface { opacity: .75; }
.map-graticule path { fill: none; stroke: rgba(128, 185, 222, .19); stroke-width: 1; stroke-dasharray: 2 8; }
.world-continent { fill: url(#continentFillV2); stroke: rgba(118, 194, 231, .57); stroke-width: 1.25; stroke-linejoin: round; }
.world-island { fill: rgba(43, 100, 141, .72); }
.map-routes { opacity: .88; }
.map-route { stroke-width: 1.15; stroke-dasharray: 7 8; }
.map-market-line { fill: none; stroke: rgba(119, 226, 181, .7); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 5; filter: drop-shadow(0 0 5px rgba(78, 231, 160, .33)); }
.map-market-line .market-candle { display: none; }
.map-market-line .market-candle line { stroke: rgba(217, 234, 249, .8); stroke-width: 1; }
.map-market-line .market-candle rect { stroke-width: 1; }
.map-data-label { fill: rgba(188, 220, 243, .68); font: 9px var(--mono); letter-spacing: .1em; }
.map-pulse-node circle:first-child { fill: var(--cyan); stroke: #07111e; stroke-width: 3; }
.map-pulse-node circle:last-child { fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: .72; }
.map-pulse-node.is-closed circle:first-child { fill: #29435f; stroke: #07111e; }
.map-pulse-node.is-closed circle:last-child { stroke: #496987; opacity: .24; }
.map-label { padding: 6px 8px; border: 1px solid rgba(132, 191, 232, .2); border-radius: 8px; background: rgba(4, 12, 22, .82); box-shadow: 0 8px 20px rgba(0, 0, 0, .24); backdrop-filter: blur(9px); }
.map-label strong { color: var(--muted); }
.map-label.is-open strong { color: var(--cyan); }
.map-ny { top: 24%; left: 25%; }
.map-brazil { top: 64%; left: 33%; }
.map-europe { top: 12%; left: 49%; }
.map-asia { top: 27%; right: 5%; }
.map-oceania { right: 2.5%; bottom: 9%; }
.map-hud { top: 14px; left: 17px; }
.map-timezone-note { top: 14px; right: 17px; }
.overlap-table { gap: 0; margin-top: 15px; border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; }
.overlap-table div { min-height: 72px; padding: 12px 10px; border-bottom: 0; }
.overlap-table span { color: var(--text); font-size: 9px; font-weight: 600; }
.overlap-table time { line-height: 1.35; }
.agents-panel { padding: 25px; }
.agent-list { margin-top: 18px; }
.report-grid { gap: 10px; }
.report-card { min-width: 0; min-height: 156px; }
.operations-panel, .performance-panel { padding-right: 25px; padding-left: 25px; }

@media (max-width: 1040px) {
  .hero-grid, .main-grid, .lower-grid { grid-template-columns: 1fr; }
  .hero-panel, .focus-panel { min-height: 300px; }
  .map-stage { min-height: 300px; }
}

@media (max-width: 740px) {
  .hero-panel { min-height: 390px; padding: 23px 20px; }
  .focus-panel { min-height: 300px; padding: 21px 19px; }
  .metric-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { min-height: 112px; padding: 16px 14px; }
  .map-panel, .agents-panel, .operations-panel, .performance-panel { padding-right: 17px; padding-left: 17px; }
  .map-stage { min-height: 226px; aspect-ratio: 1.55 / 1; }
  .map-data-label { font-size: 7px; }
  .map-label { padding: 4px 6px; font-size: 7px; }
  .map-label strong { font-size: 8px; }
  .map-ny { top: 24%; left: 22%; }
  .map-brazil { top: 64%; left: 27%; }
  .map-europe { top: 12%; left: 45%; }
  .map-asia { top: 27%; right: 2%; }
  .map-oceania { right: 1%; bottom: 7%; }
  .overlap-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overlap-table div:nth-child(2n) { border-right: 0; }
  .overlap-table div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .map-route, .map-market-line, .map-pulse-node circle:last-child { animation: none; }
}

/* 2026 map geometry pass: real country outlines, stable flow and explicit sizing. */
.lower-grid { grid-auto-rows: auto; align-items: start; }
.map-panel { display: flex; min-height: 0; flex-direction: column; align-self: start; }
.map-stage { flex: 0 0 auto; height: clamp(320px, 26vw, 420px); min-height: 320px; aspect-ratio: auto; }
.map-stage svg { display: block; }
.world-continents { opacity: .98; }
.world-country { fill: url(#continentFillV2); stroke: rgba(141, 204, 235, .36); stroke-width: .55; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .25s ease, stroke .25s ease; }
.world-country:hover { fill: rgba(67, 139, 183, .96); stroke: rgba(174, 235, 255, .86); }
.map-source-note { position: absolute; z-index: 4; bottom: 11px; left: 16px; color: rgba(190, 219, 239, .58); font: 7px var(--mono); letter-spacing: .04em; pointer-events: none; }
.map-ny { top: 27%; left: 27%; }
.map-brazil { top: 63%; left: 36%; }
.map-europe { top: 19%; left: 49%; }
.map-asia { top: 32%; right: 6%; }
.map-oceania { right: 5%; bottom: 12%; }

@media (max-width: 1040px) {
  .map-stage { height: 360px; min-height: 360px; }
}

@media (max-width: 740px) {
  .map-stage { height: 252px; min-height: 252px; }
  .map-source-note { bottom: 8px; left: 11px; font-size: 6px; }
  .map-ny { top: 27%; left: 24%; }
  .map-brazil { top: 63%; left: 29%; }
  .map-europe { top: 19%; left: 44%; }
  .map-asia { top: 32%; right: 2%; }
  .map-oceania { right: 2%; bottom: 10%; }
}

/* System Rail pass: one continuous operating deck instead of square cards. */
.system-rail { display: grid; grid-template-columns: minmax(205px, 1.1fr) repeat(3, minmax(145px, .8fr)) minmax(190px, 1fr); gap: 0; min-height: 58px; padding: 5px; border: 1px solid var(--hairline); border-radius: 18px; background: linear-gradient(110deg, rgba(12, 31, 52, .88), rgba(5, 13, 24, .92)); box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 14px 38px rgba(0, 0, 0, .2); }
.rail-status, .rail-item, .rail-clock { min-width: 0; min-height: 46px; padding: 8px 14px; border: 0; border-right: 1px solid rgba(166, 196, 230, .1); background: transparent; }
.rail-status { border-radius: 13px; background: linear-gradient(120deg, rgba(85, 225, 230, .12), rgba(56, 124, 255, .08)); }
.rail-item { justify-content: space-between; gap: 10px; }
.rail-item:last-of-type { border-right: 0; }
.rail-item span, .rail-status span:not(.pulse-dot), .rail-clock span { color: var(--faint); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.rail-item strong, .rail-status strong, .rail-clock strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rail-item strong { color: var(--text); font-size: 9px; font-weight: 600; }
.rail-clock { justify-content: space-between; gap: 10px; border-right: 0; }
.rail-clock strong { color: var(--cyan); font-size: 10px; font-weight: 600; }

@media (max-width: 1040px) {
  .system-rail { display: flex; overflow-x: auto; }
  .rail-status, .rail-item, .rail-clock { flex: 0 0 auto; min-width: 160px; }
  .rail-status { min-width: 205px; }
  .rail-clock { min-width: 190px; }
}

@media (max-width: 740px) {
  .system-rail { min-height: 56px; padding: 4px; border-radius: 15px; }
  .rail-status, .rail-item, .rail-clock { min-height: 46px; padding: 8px 12px; }
}

/* Chart controls pass: compact selectors replace generic horizontal scrolling. */
.legacy-chart-tabs { display: none !important; }
.chart-selectors { display: flex; align-items: stretch; gap: 8px; margin-left: auto; }
.chart-select-group { display: grid; min-width: 142px; gap: 5px; }
.chart-select-group > span { color: var(--faint); font: 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.chart-select { width: 100%; min-height: 40px; padding: 0 30px 0 11px; border: 1px solid var(--hairline); border-radius: 9px; outline: 0; color: var(--text); background: linear-gradient(145deg, rgba(22, 46, 72, .88), rgba(6, 15, 27, .96)); cursor: pointer; font: 9px var(--mono); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 14px) 17px, calc(100% - 10px) 17px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.chart-select:hover, .chart-select:focus-visible { border-color: rgba(142, 233, 255, .68); box-shadow: var(--focus-ring); }
.chart-select optgroup { color: var(--cyan); background: #0a1c2f; font: 700 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chart-select optgroup option { color: var(--text); background: #071321; font: 500 9px var(--mono); letter-spacing: normal; text-transform: none; }
.chart-select option { color: var(--text); background: #071321; }

@media (max-width: 740px) {
  .chart-selectors { width: 100%; margin-left: 0; }
  .chart-select-group { min-width: 0; flex: 1; }
}

/* 2026-09-19: keep the home sidebar shell identical to internal workspace routes. */
.sidebar { overflow: hidden; }
.sidebar-nav-scroll { min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; padding: 1px 2px 12px 0; scrollbar-color: var(--blue) rgba(9, 21, 37, .55); scrollbar-width: thin; }
.sidebar-nav-scroll::-webkit-scrollbar { width: 7px; }
.sidebar-nav-scroll::-webkit-scrollbar-track { border-radius: 999px; background: rgba(9, 21, 37, .55); }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { border: 2px solid rgba(9, 21, 37, .55); border-radius: 999px; background: linear-gradient(180deg, #8ee9ff, #4d86ff); }
.sidebar-bottom { flex: 0 0 auto; }

/* 2026-09-19: home and internal routes share a non-compressing, scrollable sidebar. */
@media (min-width: 741px) {
  .sidebar { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
  .sidebar-nav-scroll { flex: 0 0 auto; min-height: 0; overflow: visible; }
  .sidebar-bottom { margin-top: 16px; }
}

@media (max-width: 740px) {
  .sidebar { overflow: visible; }
  .sidebar-nav-scroll { flex: 0 0 auto; overflow: visible; padding: 0; }
}

/* 2026-09-19: chart navigation controls rebuilt with explicit states. */
.chart-toolbar { flex-wrap: wrap; justify-content: flex-start; }
.instrument-tabs, .timeframe-tabs, .chart-selectors { min-width: 0; }
.chart-selectors, .chart-view-tabs { margin-left: 0; }
.chart-interaction-controls { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: rgba(5, 12, 22, .72); }
.chart-interaction-controls { box-sizing: border-box; flex: 0 1 auto; width: auto; min-width: 0; margin-left: 0; justify-content: flex-start; }
.chart-control-caption { padding: 0 4px 0 6px; color: var(--faint); font: 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.chart-control-group { display: inline-flex; align-items: center; gap: 3px; }
.chart-control { min-height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: rgba(11, 23, 39, .72); cursor: pointer; font: 8px var(--mono); text-transform: uppercase; transition: border-color .18s ease, color .18s ease, background .18s ease, opacity .18s ease; }
.chart-control-icon { width: 32px; padding: 0; color: var(--cyan); font-size: 17px; line-height: 1; }
.chart-control-wide { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; box-sizing: border-box; gap: 6px; white-space: nowrap; }
.chart-control-navigation { min-width: 0; }
.chart-control:hover, .chart-control:focus-visible { border-color: rgba(85, 225, 230, .56); color: var(--text); background: rgba(85, 225, 230, .1); }
.chart-control[aria-pressed="true"] { border-color: rgba(85, 225, 230, .34); color: var(--cyan); background: rgba(85, 225, 230, .1); }
.chart-control:disabled { border-color: transparent; color: var(--faint); cursor: not-allowed; opacity: .34; }
.chart-control:disabled:hover { border-color: transparent; color: var(--faint); background: rgba(11, 23, 39, .72); }

/* 2026-09-19: align chart selectors and modernize the control groups. */
.chart-selectors { flex: 1 1 294px; min-width: 294px; }
.chart-select-group { flex: 1 1 0; min-width: 0; }
.chart-view-tabs { flex: 0 0 auto; gap: 4px; padding: 3px; border-radius: 9px; background: rgba(5, 12, 22, .64); }
.chart-view-tab { min-height: 32px; padding: 0 11px; border-radius: 6px; letter-spacing: .08em; }
.chart-interaction-controls { gap: 8px; border-radius: 9px; }
.chart-control-group { gap: 4px; }
.chart-control { border-color: rgba(142, 233, 255, .12); border-radius: 8px; box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.chart-control-icon { width: 32px; }
.chart-control-wide { min-width: 88px; }
.chart-interaction-controls { flex: 1 1 100%; width: 100%; display: grid; grid-template-columns: minmax(78px, .8fr) minmax(74px, .85fr) minmax(210px, 2.1fr) minmax(105px, 1fr); align-items: center; }
.chart-control-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-control { width: 100%; }
.chart-structure-readout { margin-left: 0; justify-self: end; }

@media (max-width: 740px) {
  .chart-selectors { width: 100%; min-width: 0; }
  .chart-view-tabs, .chart-indicator-tabs { width: 100%; justify-content: stretch; }
  .chart-view-tab, .chart-indicator-toggle { flex: 1; }
  .chart-interaction-controls { width: 100%; margin-left: 0; grid-template-columns: minmax(78px, auto) minmax(0, 1fr); }
  .chart-control-caption { padding-left: 2px; }
  .chart-control-navigation { grid-column: 1 / -1; }
  .chart-control-wide { flex: 1; justify-content: center; }
  .chart-structure-readout { grid-column: 2; margin-left: 0; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-control, .chart-indicator-toggle { transition: none; }
}

@media (max-width: 740px) {
  .ochl-panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ochl-panel-grid div:nth-child(3n) { padding-right: 0; border-right: 0; }
}

@media (max-width: 420px) {
  .ochl-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ochl-panel-grid div:nth-child(3n) { padding-right: 8px; border-right: 1px solid var(--line); }
  .ochl-panel-grid div:nth-child(2n) { padding-right: 0; border-right: 0; }
  .ochl-panel-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* 2026-09-19: performance map rebuilt as comparable P&L and drawdown lanes. */
.performance-controls { display: flex; align-items: flex-end; gap: 14px; }
.performance-view-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: rgba(5, 12, 22, .64); }
.performance-view-button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 7px; color: var(--faint); background: transparent; cursor: pointer; font: 8px var(--mono); text-transform: uppercase; }
.performance-view-button:hover, .performance-view-button:focus-visible, .performance-view-button.active { color: var(--cyan); background: rgba(85, 225, 230, .11); }
.performance-chart { grid-template-columns: repeat(4, minmax(174px, 1fr)); gap: 8px; min-height: 324px; padding: 14px; overflow-x: auto; overflow-y: hidden; }
.performance-chart::before, .performance-chart::after { opacity: .45; }
.performance-period { align-items: stretch; justify-content: flex-start; gap: 12px; min-height: 286px; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(17, 39, 64, .7), rgba(5, 13, 24, .74)); text-align: left; transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.performance-period:hover, .performance-period:focus-visible, .performance-period.is-selected { border-color: rgba(85, 225, 230, .62); background: linear-gradient(180deg, rgba(24, 54, 83, .76), rgba(5, 13, 24, .84)); }
.performance-period:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.performance-period-head, .performance-lane-head, .performance-period-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.performance-period-head { padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.performance-period-head strong { color: var(--text); font: 600 14px var(--display); }
.performance-period-status { color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.performance-lane { padding: 10px 0 0; }
.performance-lane + .performance-lane { margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(132, 191, 232, .12); }
.performance-lane-head span, .performance-lane-head strong, .performance-value-brl { font: 8px var(--mono); }
.performance-lane-head span { color: var(--muted); text-transform: uppercase; }
.performance-lane-head strong { color: var(--text); font-weight: 600; }
.performance-period.is-loss .performance-lane-pnl .performance-lane-head strong { color: var(--red); }
.performance-period.is-profit .performance-lane-pnl .performance-lane-head strong { color: var(--green); }
.performance-value-brl { display: block; margin-top: 4px; color: var(--faint); }
.performance-track { position: relative; height: 8px; margin-top: 8px; overflow: hidden; border: 1px solid rgba(132, 191, 232, .16); border-radius: 99px; background: rgba(2, 8, 16, .72); }
.performance-pnl-fill, .performance-dd-fill { display: block; width: var(--performance-width); height: 100%; min-width: 0; border-radius: inherit; animation: performance-lane-rise .6s var(--ease) both; }
.performance-pnl-fill.is-profit { background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 15px rgba(142, 233, 255, .28); }
.performance-pnl-fill.is-loss { background: linear-gradient(90deg, var(--red), rgba(255, 102, 119, .58)); box-shadow: 0 0 15px rgba(255, 102, 119, .22); }
.performance-pnl-fill.is-flat { background: var(--muted); }
.performance-dd-fill { background: linear-gradient(90deg, var(--amber), rgba(232, 182, 107, .5)); box-shadow: 0 0 12px rgba(232, 182, 107, .24); }
.performance-period-stats { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hairline); color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.performance-source { color: var(--muted); font: 9px var(--mono); line-height: 1.5; overflow-wrap: anywhere; }
.performance-period-gross { margin-top: 0; padding-top: 0; border-top: 0; color: var(--faint); font: 8px var(--mono); text-transform: uppercase; }
.performance-export { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 0 14px; }
.performance-export small { color: var(--muted); font: 9px/1.45 var(--mono); }
.performance-export button:disabled { cursor: wait; opacity: .58; }
.performance-provenance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 14px; }
.performance-provenance[hidden] { display: none; }
.performance-provenance small { min-width: 0; color: var(--muted); font: 9px var(--mono); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 740px) { .performance-provenance { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 3px; } }
@media (max-width: 390px) { .performance-provenance { grid-template-columns: 1fr; } }
.performance-empty-card { display: grid; min-height: 116px; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--hairline); border-radius: var(--radius-sm); color: var(--faint); }
.performance-empty-card span { font: 650 24px var(--mono); }
.performance-empty-card small { font: 8px var(--mono); }
.performance-period.is-error .performance-period-status { color: var(--amber); }
.performance-period.is-error .performance-empty-card { border-color: rgba(232, 182, 107, .32); color: var(--amber); }
.performance-chart[data-metric-view="pnl"] .performance-lane-dd { opacity: .58; }
.performance-chart[data-metric-view="drawdown"] .performance-lane-pnl { opacity: .58; }
@keyframes performance-lane-rise { from { opacity: .2; transform: scaleX(0); transform-origin: left; } to { opacity: 1; transform: scaleX(1); } }

@media (max-width: 740px) {
  .performance-controls { width: 100%; align-items: flex-start; flex-direction: column; gap: 9px; }
  .performance-view-toggle { width: 100%; }
  .performance-view-button { flex: 1; }
  .performance-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 520px; overflow-y: auto; }
  .performance-period { min-height: 230px; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .performance-pnl-fill, .performance-dd-fill { animation: none; }
  .performance-period { transition: none; }
}

/* 2026-09-20: visual fixes for fullscreen chart and responsive atlas. */
body.chart-is-expanded { overflow: hidden; }
select:not(.chart-select) {
  appearance: none;
  min-height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%), linear-gradient(145deg, rgba(18, 39, 63, .82), rgba(5, 13, 24, .92));
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px, 0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
}
select:not(.chart-select) option { color: var(--text); background: #071321; }
.chart-panel:fullscreen,
.chart-panel.is-expanded {
  box-sizing: border-box;
  display: flex;
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--bg);
}
.chart-panel:fullscreen .chart-toolbar,
.chart-panel.is-expanded .chart-toolbar { flex: 0 0 auto; flex-wrap: wrap; }
.chart-panel:fullscreen .chart-stage,
.chart-panel.is-expanded .chart-stage { flex: 1 1 auto; height: auto; min-height: 0; margin-top: 16px; }
.chart-panel:fullscreen .chart-footer,
.chart-panel.is-expanded .chart-footer { flex: 0 0 auto; margin-top: 14px; }
.chart-panel:fullscreen .chart-empty,
.chart-panel.is-expanded .chart-empty { transform: translate(-50%, -50%) scale(1.08); }
.section-heading-actions .outline-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.section-heading-actions .outline-action span { margin-left: 0; }
.map-panel, .map-stage, .map-stage svg, .lower-grid > * { min-width: 0; }
.map-stage { width: 100%; }
@media (max-width: 1040px) {
  .hero-grid, .main-grid, .lower-grid { grid-template-columns: minmax(0, 1fr); }
}
