/* PULSE performance: one instrument, with separate reading and plotting planes. */
.performance-section {
  --performance-ground: #1c2721;
  --performance-chart-ground: #171914;
  --performance-rule: #405247;
  --performance-copy: #c0d2c5;
  --rule: var(--performance-rule);
  --light-muted: var(--performance-copy);
  display: block;
  padding: 64px var(--space) 70px;
  border-bottom: 0;
  background: var(--performance-ground);
  color: var(--paper, #f4f5f0);
}
.performance-section :focus-visible { outline-color: var(--gold, #dfc27b); }
.performance-section ::selection { background: var(--gold, #dfc27b); color: var(--ink, #171914); }
.performance-section .performance-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 32px;
}
.performance-section .performance-copy h2 {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 400;
}
.performance-section .performance-copy h2 > span { color: var(--performance-copy); }
.performance-section .performance-context { display: flex; align-items: flex-end; gap: 48px; padding-bottom: 3px; }
.performance-section .performance-context p { font-size: 16px; line-height: 1.5; color: var(--performance-copy); }
.performance-section .performance-context .text-link { color: var(--gold, #dfc27b); font-size: 14px; gap: 14px; }
.performance-section .performance-context .icon { width: 20px; height: 20px; }
.performance-section .performance-tool { margin: 0; padding: 0; border-top: 1px solid var(--performance-rule); min-width: 0; }
.performance-source-bar { display: flex; align-items: center; gap: 24px; min-height: 70px; padding: 12px 0; }
.performance-section .chart-heading { font: 400 18px/1.4 Outfit, sans-serif; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.source-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--performance-copy); }
.performance-section[data-performance-state="connected"] .source-indicator { background: var(--signal, #5cbfa0); }
.performance-section[data-performance-state="stale"] .source-indicator { background: var(--gold, #dfc27b); }
.performance-section .data-disclosure { color: var(--performance-copy); font-size: 12px; margin: 0; line-height: 1.5; }
.performance-section .mt5-state { margin: 0 0 0 auto; padding: 0; border: 0; font-size: 12px; line-height: 1.5; color: var(--performance-copy); }
.performance-section #mt5-status { padding: 0; border: 0; background: transparent; }
.performance-section #mt5-status[data-state="connected"] { color: var(--signal, #5cbfa0); }
.performance-section #mt5-status[data-state="stale"] { color: var(--gold, #dfc27b); }
.performance-main { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.75fr); border-top: 1px solid var(--performance-rule); border-bottom: 1px solid var(--performance-rule); }
.performance-growth { display: flex; flex-direction: column; padding: 32px 32px 28px 0; min-width: 0; }
.performance-section .performance-metrics { display: block; padding: 0; margin: 0; border: 0; }
.performance-section .performance-metrics > div { display: block; grid-column: auto; margin: 0; padding: 0; border: 0; }
.performance-section .performance-metrics dt { font-size: 14px; line-height: 1.5; color: var(--performance-copy); margin: 0 0 10px; }
.performance-section .performance-metrics dd {
  margin: 0;
  font: 400 32px/1.08 Outfit, sans-serif;
  letter-spacing: -.025em;
  color: var(--signal, #5cbfa0);
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
}
.performance-section .performance-metrics .performance-total dd { font-size: 88px; line-height: .99; letter-spacing: -.035em; margin-left: -3px; }
.performance-section .performance-metrics .performance-total dd > span { font-size: .54em; }
.performance-section .performance-metrics .performance-net { padding: 28px 0 25px; }
.performance-section .performance-metrics dd#account-profit { font-size: 30px; padding: 0; white-space: normal; }
.performance-section .performance-metrics .performance-net dt { font-size: 12px; margin-bottom: 8px; }
.performance-section .performance-metrics .performance-today { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; border-top: 1px solid var(--performance-rule); padding-top: 22px; }
.performance-section .performance-metrics .performance-today dt { font-size: 12px; margin: 0; max-width: 13ch; }
.performance-section .performance-metrics .performance-today dd { font-size: 30px; text-align: right; }
.performance-session { margin: 16px 0 0; }
.performance-session > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.performance-session dt { color: var(--performance-copy); font-size: 12px; max-width: 16ch; }
.performance-session dd { margin: 0; font: 400 20px/1.25 Outfit, sans-serif; color: var(--paper); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.performance-scope { margin: auto 0 0; padding-top: 32px; font-size: 12px; line-height: 1.6; color: var(--performance-copy); max-width: 32ch; }
.performance-chart-workspace { min-width: 0; background: var(--performance-chart-ground); padding: 25px 28px 22px; }
.performance-chart-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.performance-chart-toolbar h3 { font: 400 22px/1.25 Outfit, sans-serif; letter-spacing: -.015em; }
.performance-range { display: flex; align-items: center; gap: 2px; }
.performance-section .performance-range button { min-width: 52px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--performance-copy); padding: 10px 12px; font: 400 12px/1.4 'DM Sans', sans-serif; transition: background-color 150ms ease-out, color 150ms ease-out; }
.performance-section .performance-range button:hover:not(:disabled) { color: var(--paper); background: #22261e; }
.performance-section .performance-range button[aria-pressed="true"] { background: var(--gold, #dfc27b); color: var(--ink, #171914); }
.performance-section .performance-range button:disabled { opacity: .45; cursor: default; }
.performance-series { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.performance-section .performance-series button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--performance-copy); padding: 5px 0; font: 400 12px/1.4 'DM Sans', sans-serif; transition: color 150ms ease-out, border-color 150ms ease-out; }
.performance-section .performance-series button:hover:not(:disabled) { color: var(--paper); }
.performance-section .performance-series button[aria-pressed="true"] { color: var(--paper); border-bottom-color: currentColor; }
.performance-section .performance-series button:disabled { opacity: .45; cursor: default; }
.series-key { display: block; width: 12px; height: 2px; flex-shrink: 0; background: var(--signal, #5cbfa0); }
.series-key-equity { background: var(--gold, #dfc27b); }
.performance-section .chart-panel { margin: 4px 0 0; padding: 0; position: relative; min-width: 0; }
.performance-inspection { display: flex; align-items: baseline; gap: 10px; min-height: 45px; margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: var(--performance-copy); font-variant-numeric: tabular-nums; }
.performance-inspection strong { font: 400 24px/1.3 Outfit, sans-serif; letter-spacing: -.02em; color: var(--paper); }
#performance-point-date { margin-left: auto; text-align: right; max-width: 25ch; }
.performance-section .chart-panel > svg { display: block; width: 100%; height: 284px; max-height: none; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.performance-section .chart-rules { fill: none; stroke: #344035; stroke-width: 1; }
.performance-section .chart-rules path { vector-effect: non-scaling-stroke; }
.performance-section .chart-line { fill: none; stroke: var(--signal, #5cbfa0); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.performance-section .chart-area { fill: var(--signal, #5cbfa0); opacity: .06; }
.performance-section .chart-trace { stroke: var(--signal, #5cbfa0); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.performance-section[data-performance-mode="equity"] .chart-line { stroke: var(--gold, #dfc27b); }
.performance-section[data-performance-mode="equity"] .chart-area { fill: var(--gold, #dfc27b); }
.performance-section .chart-panel #chart-point { fill: var(--signal, #5cbfa0); stroke: var(--performance-chart-ground); stroke-width: 2; opacity: 1; vector-effect: non-scaling-stroke; }
.performance-section[data-performance-mode="equity"] .chart-panel #chart-point { fill: var(--gold, #dfc27b); }
.performance-section .chart-panel #chart-cursor { stroke: var(--performance-copy); stroke-width: 1; stroke-dasharray: 3 5; opacity: .45; fill: none; vector-effect: non-scaling-stroke; }
.performance-section .chart-panel #chart-point-label { display: none; }
.performance-section .chart-scale { position: static; display: flex; flex-direction: row; justify-content: space-between; padding: 0; margin-top: -17px; color: var(--performance-copy); font-size: 11px; pointer-events: none; }
.performance-section .chart-scale > span:first-child { position: absolute; top: 73px; right: 0; background: var(--performance-chart-ground); padding-left: 6px; }
.performance-section .chart-scale > span:last-child { margin-left: auto; background: var(--performance-chart-ground); padding-left: 6px; }
.performance-chart-dates { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--performance-copy); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; padding-top: 13px; }
.performance-section .chart-axis { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--performance-copy); }
.performance-section .chart-axis #chart-readout { color: var(--performance-copy); max-width: 45ch; text-align: right; }
.performance-chart-summary { color: var(--performance-copy); font-size: 11px; line-height: 1.6; margin-top: 10px; }
.performance-chart-empty { position: absolute; inset: 75px 20px 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--paper); pointer-events: none; }
.performance-chart-empty strong { font: 400 26px/1.2 Outfit, sans-serif; letter-spacing: -.02em; }
.performance-chart-empty p { color: var(--performance-copy); font-size: 13px; margin-top: 10px; max-width: 32ch; }
.chart-panel[data-chart-state="empty"] .chart-rules { opacity: .4; }
.performance-account { padding: 28px 0; }
.performance-section .account-live-stats { margin: 0; display: grid; grid-template-columns: 1.1fr 1.1fr .9fr .75fr; gap: 0; }
.performance-section .account-live-stats > div { padding: 0 24px; border: 0; border-left: 1px solid var(--performance-rule); display: block; min-width: 0; }
.performance-section .account-live-stats > div:first-child { border-left: 0; padding-left: 0; }
.performance-section .account-live-stats > div:last-child { padding-right: 0; }
.performance-section .account-live-stats dt { font-size: 12px; color: var(--performance-copy); line-height: 1.5; }
.performance-section .account-live-stats dd { margin: 8px 0 0; font: 400 30px/1.2 Outfit, sans-serif; letter-spacing: -.025em; color: var(--paper); white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.performance-section .account-live-stats #account-equity { color: var(--gold, #dfc27b); }
.performance-section .account-live-stats #account-credit { color: var(--performance-copy); }
.performance-section .account-live-stats #account-floating { color: var(--signal, #5cbfa0); font-size: 27px; }
.performance-section .account-live-stats .performance-fact-note { font: 400 11px/1.6 'DM Sans', sans-serif; letter-spacing: normal; margin-top: 7px; color: var(--performance-copy); }
.performance-trading-ledger { border-top: 1px solid var(--performance-rule); border-bottom: 1px solid var(--performance-rule); }
.performance-section .trading-stats { display: grid; grid-template-columns: .85fr .8fr .8fr 1.15fr 1fr 1fr; margin: 0; padding: 24px 0; border: 0; gap: 24px; }
.performance-section .trading-stats dt { color: var(--performance-copy); font-size: 11px; line-height: 1.5; min-height: 16.5px; }
.performance-section .trading-stats dd { font: 400 24px/1.2 Outfit, sans-serif; margin: 9px 0 0; letter-spacing: -.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--paper); }
.performance-section .trading-stats #account-win-rate { color: var(--signal, #5cbfa0); }
.performance-section .trading-stats #account-closed-profit,
.performance-section .trading-stats #account-costs { font-size: 21px; }
.performance-section .drawdown-panel { border-top: 1px solid var(--performance-rule); margin: 0; padding: 15px 0 18px; }
.performance-section .drawdown-heading { display: flex; justify-content: space-between; gap: 16px; color: var(--performance-copy); font-size: 11px; line-height: 1.5; margin: 0 0 5px; }
.performance-section .drawdown-panel svg { width: 100%; height: 52px; display: block; overflow: visible; }
.performance-section .drawdown-rule { stroke: var(--performance-rule); fill: none; opacity: .65; vector-effect: non-scaling-stroke; }
.performance-section #drawdown-line { stroke: var(--performance-copy); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.performance-section #drawdown-point { fill: var(--performance-copy); stroke: var(--performance-ground); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 1; }
.performance-evidence-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-top: 18px; }
.performance-section .chart-note { margin: 0; font-size: 11px; line-height: 1.7; color: var(--performance-copy); max-width: 74ch; }
.performance-section .chart-source { color: var(--performance-copy); font: 400 11px/1.7 'DM Sans', sans-serif; text-align: right; font-variant-numeric: tabular-nums; max-width: 35ch; }
.performance-section .performance-value.is-negative { color: var(--loss, #e3a48c); }

@media (min-width: 1600px) {
  .performance-section { padding-left: max(var(--space), calc((100vw - 1440px) / 2)); padding-right: max(var(--space), calc((100vw - 1440px) / 2)); }
}
@media (max-width: 1100px) {
  .performance-main { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.45fr); }
  .performance-growth { padding-right: 24px; }
  .performance-section .performance-metrics .performance-total dd { font-size: 72px; }
  .performance-chart-workspace { padding: 22px 22px 20px; }
  .performance-section .account-live-stats > div { padding-inline: 18px; }
  .performance-section .account-live-stats dd { font-size: 25px; }
  .performance-section .account-live-stats #account-floating { font-size: 24px; }
  .performance-section .trading-stats { grid-template-columns: repeat(3, 1fr); gap: 24px 28px; }
  .performance-context { gap: 28px; }
  .performance-inspection { flex-wrap: wrap; gap: 4px 9px; }
  #performance-point-date { width: 100%; max-width: none; text-align: left; margin-left: 0; }
  .performance-section .chart-scale > span:first-child { top: 80px; }
}
@media (max-width: 820px) {
  .performance-main { grid-template-columns: 1fr; }
  .performance-growth { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; padding: 28px 0; }
  .performance-section .performance-metrics { display: contents; }
  .performance-section .performance-metrics .performance-total { grid-column: 1; grid-row: 1 / 3; }
  .performance-section .performance-metrics .performance-total dd { font-size: 82px; }
  .performance-section .performance-metrics .performance-net { grid-column: 2; padding: 0 0 14px; }
  .performance-section .performance-metrics .performance-today { grid-column: 2; padding-top: 12px; align-items: baseline; }
  .performance-session { grid-column: 2; margin: 0; }
  .performance-scope { grid-column: 1; grid-row: 3; padding: 0; margin-top: -5px; max-width: 30ch; }
  .performance-chart-workspace { padding: 24px; }
  .performance-section .chart-panel > svg { height: 300px; }
  .performance-inspection { flex-wrap: nowrap; }
  #performance-point-date { margin-left: auto; text-align: right; width: auto; max-width: 27ch; }
  .performance-section .chart-scale > span:first-child { top: 73px; }
  .performance-section .account-live-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .performance-section .account-live-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .performance-section .account-live-stats dd { font-size: 29px; }
}
@media (max-width: 600px) {
  .performance-section { padding: 46px var(--space) 44px; }
  .performance-section .performance-copy { gap: 24px; align-items: flex-start; margin-bottom: 25px; }
  .performance-section .performance-copy h2 { font-size: 40px; }
  .performance-section .performance-context { display: block; padding-top: 3px; }
  .performance-section .performance-context p { font-size: 12px; line-height: 1.6; }
  .performance-section .performance-context .text-link { font-size: 12px; gap: 7px; margin-top: 4px; }
  .performance-section .performance-context .icon { width: 16px; height: 16px; }
  .performance-source-bar { flex-wrap: wrap; gap: 3px 15px; min-height: 82px; padding: 15px 0; }
  .performance-section .chart-heading { font-size: 16px; }
  .performance-section .mt5-state { font-size: 11px; }
  .performance-section .data-disclosure { order: 3; width: 100%; font-size: 11px; }
  .performance-growth { grid-template-columns: 1fr 1fr; padding: 25px 0; gap: 14px 20px; }
  .performance-section .performance-metrics .performance-total { grid-column: 1 / -1; grid-row: 1; padding-bottom: 8px; }
  .performance-section .performance-metrics .performance-total dd { font-size: 66px; }
  .performance-section .performance-metrics dt { font-size: 12px; }
  .performance-section .performance-metrics .performance-net { grid-column: 1; grid-row: 2; padding-bottom: 6px; }
  .performance-section .performance-metrics dd#account-profit { font-size: 25px; }
  .performance-section .performance-metrics .performance-today { grid-column: 2; grid-row: 2; display: block; border-top: 0; padding-top: 0; }
  .performance-section .performance-metrics .performance-today dt { max-width: none; font-size: 11px; }
  .performance-section .performance-metrics .performance-today dd { text-align: left; margin-top: 8px; font-size: 26px; }
  .performance-session > div { display: block; }
  .performance-session { grid-column: 2; grid-row: 3; }
  .performance-session dt { font-size: 11px; max-width: none; }
  .performance-session dd { text-align: left; margin-top: 5px; font-size: 19px; }
  .performance-scope { font-size: 11px; margin-top: 0; max-width: 24ch; }
  .performance-chart-workspace { margin: 0 calc(-1 * var(--space)); padding: 22px var(--space) 21px; }
  .performance-chart-toolbar h3 { font-size: 20px; }
  .performance-section .performance-range button { min-width: 44px; padding-inline: 9px; }
  .performance-series { gap: 21px; margin-top: 4px; }
  .performance-section .performance-series button { font-size: 11px; }
  .performance-inspection { flex-wrap: wrap; min-height: 63px; margin-top: 11px; gap: 3px 10px; }
  #performance-point-kind { font-size: 11px; }
  .performance-inspection strong { font-size: 24px; }
  #performance-point-date { width: 100%; text-align: left; max-width: none; margin-left: 0; font-size: 11px; }
  .performance-section .chart-panel > svg { height: 248px; }
  .performance-section .chart-scale > span:first-child { top: 91px; }
  .performance-section .chart-axis { display: block; margin-top: 10px; }
  .performance-section .chart-axis #chart-readout { display: block; text-align: left; margin-top: 3px; }
  .performance-chart-dates { padding-top: 14px; font-size: 10px; }
  #performance-date-middle { display: none; }
  .performance-chart-summary { margin-top: 9px; font-size: 10px; }
  .performance-chart-empty { inset: 90px 20px 90px; }
  .performance-chart-empty strong { font-size: 23px; }
  .performance-chart-empty p { font-size: 12px; }
  .performance-account { padding: 24px 0; }
  .performance-section .account-live-stats { gap: 24px 0; }
  .performance-section .account-live-stats > div { padding-inline: 16px; }
  .performance-section .account-live-stats dt { font-size: 11px; }
  .performance-section .account-live-stats dd { font-size: 25px; }
  .performance-section .account-live-stats #account-floating { font-size: 25px; }
  .performance-section .account-live-stats .performance-fact-note { font-size: 10px; margin-top: 5px; }
  .performance-section .trading-stats { grid-template-columns: repeat(3, 1fr); gap: 23px 17px; padding: 23px 0; }
  .performance-section .trading-stats dt { font-size: 10px; min-height: 30px; }
  .performance-section .trading-stats dd { font-size: 23px; margin-top: 5px; }
  .performance-section .trading-stats #account-closed-profit,
  .performance-section .trading-stats #account-costs { font-size: 18px; }
  .performance-evidence-footer { display: block; padding-top: 16px; }
  .performance-section .chart-note { font-size: 10px; }
  .performance-section .chart-source { display: block; text-align: left; margin-top: 8px; font-size: 10px; max-width: none; }
}
@media (max-width: 380px) {
  .performance-section .performance-copy h2 { font-size: 32px; }
  .performance-section .performance-copy { gap: 16px; }
  .performance-section .performance-context .text-link { gap: 3px; font-size: 11px; }
  .performance-section .performance-context p { font-size: 11px; }
  .performance-section .performance-metrics .performance-total dd { font-size: 57px; }
  .performance-growth { gap: 13px 14px; }
  .performance-section .performance-metrics dd#account-profit { font-size: 22px; }
  .performance-section .account-live-stats dd,
  .performance-section .account-live-stats #account-floating { font-size: 23px; }
  .performance-section .trading-stats { grid-template-columns: repeat(2, 1fr); gap: 21px 20px; }
  .performance-section .trading-stats dt { min-height: 15px; }
  .performance-section .performance-range button { padding-inline: 7px; }
  .performance-chart-toolbar { gap: 10px; }
  .performance-chart-toolbar h3 { font-size: 18px; }
  .performance-series { gap: 18px; }
  .performance-section .performance-series button { gap: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .performance-section button { transition: none; }
}

/* Optical spacing: the Pulse name must never fuse L and S. */
#hero-heading > span:first-child, .wordmark > span {letter-spacing:.018em;font-kerning:none;}
.performance-section .performance-copy h2 {letter-spacing:0;font-kerning:none;}
#access-heading, #questions-heading, #apply-heading {letter-spacing:0;font-kerning:none;}

/* Money stays intact in narrow layouts, including longer negative amounts. */
@media (max-width:600px) {
  .performance-section .account-live-stats {grid-template-columns:1fr;gap:0;}
  .performance-section .account-live-stats > div {padding:16px 0;border-inline:0;border-bottom:1px solid var(--performance-rule);}
  .performance-section .account-live-stats dd:not(.performance-fact-note) {white-space:nowrap;overflow-wrap:normal;font-size:25px;}
}
