:root {
  color-scheme: light;
  --ink: #172b3a;
  --muted: #526771;
  --line: #dbe2dc;
  --canvas: #f1f4f0;
  --paper: #fff;
  --navy: #102c3b;
  --navy-2: #183a49;
  --teal: #087e70;
  --teal-dark: #066b61;
  --teal-soft: #e4f2ed;
  --green: #14805f;
  --green-soft: #e5f3ec;
  --red: #b4474a;
  --red-soft: #f8e9e7;
  --amber: #946a24;
  --amber-soft: #fbf3e3;
  --shadow: 0 8px 26px rgba(25, 49, 51, .055);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
.safety-monitor { margin-bottom: 18px; padding: 16px 20px; font-size: 14px; }
.adaptive-panel { margin-bottom: 22px; }
.adaptive-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 22px 16px; }
.adaptive-actions > span:last-child { color: var(--muted); }
.adaptive-report { padding: 0 22px 18px; }
.adaptive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adaptive-card { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf7; }
.adaptive-card > strong { display: block; margin: 6px 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.adaptive-card > span { color: var(--muted); }
.adaptive-card.up { border-left: 3px solid var(--green); }
.adaptive-card.down { border-left: 3px solid var(--red); }
.adaptive-facts { display: grid; gap: 8px; padding: 14px 0; color: var(--muted); overflow-wrap: anywhere; }
.adaptive-message { margin-top: 12px; padding: 12px 15px; color: #875b1b; background: var(--amber-soft); border-radius: 6px; white-space: pre-line; }
.adaptive-report summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.adaptive-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.adaptive-table th, .adaptive-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
#adaptive-error { margin: 0 22px; }
@media (max-width: 720px) { .adaptive-grid { grid-template-columns: 1fr; } .adaptive-report { padding-right: 15px; padding-left: 15px; } .adaptive-actions { padding-right: 15px; padding-left: 15px; } }
.ledger-panel { margin-bottom: 22px; overflow: hidden; }
.ledger-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 0 22px 18px; color: var(--muted); }
.ledger-toolbar label { display: flex; align-items: center; gap: 10px; }
.ledger-toolbar select { width: min(320px, 60vw); }
.ledger-metrics { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 16px; padding: 20px 22px; background: #f5f8f5; border-block: 1px solid var(--line); }
.ledger-metrics span, .ledger-metrics strong { display: block; }
.ledger-metrics span { color: var(--muted); font-size: 13px; }
.ledger-metrics strong { margin-top: 7px; font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ledger-total strong { font-size: 27px; }
.ledger-metrics .positive { color: var(--green); }
.ledger-metrics .negative { color: var(--red); }
.ledger-note { padding: 14px 22px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.ledger-note.incomplete { color: #875b1b; background: var(--amber-soft); }
.ledger-exit { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 15px 22px; border-top: 1px solid var(--line); }
.ledger-exit span { color: var(--muted); }
.fill-details { border-top: 1px solid var(--line); }
.fill-details summary { padding: 16px 22px; cursor: pointer; font-weight: 700; }
.fill-details summary span { margin-left: 10px; color: var(--muted); font-weight: 400; }
.fill-table-wrap { overflow-x: auto; }
.fill-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.fill-table th, .fill-table td { padding: 12px 18px; border-top: 1px solid var(--line); white-space: nowrap; }
.fill-table th { color: var(--muted); font-size: 12px; background: #f8faf7; }
.fill-table td small { display: block; color: var(--muted); }
@media (max-width: 1100px) { .ledger-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ledger-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 15px; } .ledger-total { grid-column: 1 / -1; } .ledger-toolbar, .ledger-note, .ledger-exit { padding-right: 15px; padding-left: 15px; } }
.protection-status { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; color: var(--muted); }
.safety-monitor .stale { color: #a23636; }
.safety-alert { margin-top: 12px; padding: 12px; border-left: 3px solid var(--red); background: var(--red-soft); color: #872d2f; white-space: pre-line; overflow-wrap: anywhere; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.55; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
input, select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #cbd6d2; border-radius: 7px; }
input:focus, select:focus, button:focus-visible, summary:focus-visible { outline: 3px solid #73c4b7; outline-offset: 2px; }
[hidden] { display: none !important; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 10; display: flex; flex-direction: column; height: 100vh; min-height: 540px; padding: 26px 18px 18px; color: #eaf3f0; background: var(--navy); }
.brand, .auth-brand { display: flex; align-items: center; gap: 11px; color: inherit; font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: -.4px; }
.brand { padding: 0 8px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #f8fffc; background: var(--teal); border-radius: 10px 10px 10px 3px; font-weight: 850; }
.brand-dot { color: #75d2bd; }
.workspace-label { margin: 43px 9px 13px; color: #b2c6c8; font-size: 12px; font-weight: 750; letter-spacing: 1.2px; }
.main-nav { display: grid; gap: 7px; }
.nav-item { min-height: 44px; padding: 0 13px; color: #c0d0cf; text-align: left; background: transparent; border: 0; border-radius: 7px; font-size: 14px; }
.nav-item:hover { color: white; background: #1c414f; }
.nav-item.active { color: white; background: #1d4853; box-shadow: inset 3px 0 #5ac0aa; font-weight: 750; }
.sidebar-bottom { display: grid; gap: 15px; margin-top: auto; }
.connection-card, .user-card { display: flex; align-items: center; gap: 10px; }
.connection-card { padding: 12px; background: #173847; border: 1px solid #315360; border-radius: 8px; }
.connection-card i { width: 9px; height: 9px; flex: none; background: #d0aa55; border-radius: 50%; }
.connection-card i.online { background: #56c294; box-shadow: 0 0 0 4px #56c29422; }
.connection-card strong, .connection-card small, .user-card strong, .user-card small { display: block; }
.connection-card strong, .user-card strong { font-size: 14px; }
.connection-card small, .user-card small { color: #bdd0d0; font-size: 12px; }
.user-card { padding: 15px 2px 0; border-top: 1px solid #294651; }
.user-card > div { min-width: 0; flex: 1; }
.user-card strong { max-width: 142px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avatar { display: grid; width: 34px; height: 34px; flex: none; place-items: center; color: #d8f0e9; background: #315563; border-radius: 50%; font-weight: 800; }
.icon-button { padding: 8px 10px; color: inherit; background: transparent; border: 0; border-radius: 7px; }
.icon-button:hover { background: #294b58; }
.main-area { display: flex; min-width: 0; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 32px; background: #fbfcfaed; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { color: #526771; font-size: 14px; }
.breadcrumb span { padding: 0 10px; color: #667c7a; }
.breadcrumb strong { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 15px; color: #526a6c; font-size: 14px; }
.topbar-right time { color: #264653; font: 14px Consolas, "SFMono-Regular", monospace; }
.timezone-tag { padding: 5px 9px; background: #edf2ee; border-radius: 5px; }
.mobile-menu { display: none; }
.content { width: 100%; max-width: 1580px; min-width: 0; flex: 1; margin: 0 auto; padding: 28px 34px 40px; }
.view { display: none; min-width: 0; }
.view.active { display: block; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.eyebrow { color: #4f6d68; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.page-heading h1 { margin: 5px 0 6px; font-size: 30px; line-height: 1.2; letter-spacing: -.7px; }
.page-heading p { max-width: 920px; margin: 0; color: var(--muted); font-size: 14px; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid #edf0ec; }
.panel-head h2 { margin: 2px 0 0; font-size: 18px; }
.state-pill { display: inline-flex; max-width: 100%; min-height: 29px; align-items: center; padding: 4px 11px; color: #405b5f; background: #edf1ee; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.state-pill.good { color: #126c50; background: var(--green-soft); }
.state-pill.bad { color: #a43d40; background: var(--red-soft); }
.state-pill.warn { color: #845d1c; background: var(--amber-soft); }
.button { min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 750; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button.primary { color: white; background: var(--teal); }
.button.primary:hover { background: var(--teal-dark); }
.button.quiet { color: #435f64; background: white; border-color: #cbd8d3; }
.button.quiet:hover { background: #f2f7f4; border-color: #9ebbb0; }
.button.danger { color: #a23e40; background: var(--red-soft); border-color: #e9c9c6; }
.button.danger:hover { background: #f3dedd; }
.link-button { padding: 6px 4px; color: var(--teal-dark); background: transparent; border: 0; font-size: 14px; font-weight: 650; }
.flow-card { display: flex; align-items: stretch; gap: 10px; margin-bottom: 20px; padding: 17px 19px; overflow: auto; background: #e8efeb; border: 1px solid #d8e3dd; border-radius: 10px; }
.flow-card > i { align-self: center; color: #8da39c; font-size: 22px; font-style: normal; }
.flow-step { display: grid; min-width: 160px; flex: 1; grid-template-columns: 32px 1fr; align-content: center; column-gap: 10px; padding: 5px; }
.flow-step > span { display: grid; width: 30px; height: 30px; grid-row: span 2; place-items: center; color: #59726e; background: #d3e1da; border-radius: 50%; font: 12px Consolas, monospace; }
.flow-step strong { color: #35565a; font-size: 14px; }
.flow-step small { color: #526c68; font-size: 12px; }
.flow-step.active > span { color: white; background: var(--teal); }
.flow-step.active strong { color: #06675e; }
.run-toolbar { margin-bottom: 20px; padding: 17px 19px; }
.run-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.run-summary > div { min-width: 0; }
.run-summary .eyebrow, .run-summary strong { display: block; }
.run-summary strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 16px; }
.run-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chart-panel { margin-bottom: 20px; overflow: hidden; }
.chart-head { align-items: flex-end; }
.chart-head h2 { margin-top: 3px; }
.chart-last { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.chart-last span, .chart-last small { color: #536e6d; font-size: 12px; }
.chart-last strong { color: #29474d; font: 700 25px/1.1 Consolas, "SFMono-Regular", monospace; font-variant-numeric: tabular-nums; }
.chart-last strong.up { color: #16805f; }
.chart-last strong.down { color: #b4474a; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.chart-controls label { display: grid; gap: 4px; color: #405e5d; font-size: 12px; font-weight: 700; }
.chart-controls select { width: auto; min-width: 116px; height: 38px; padding: 0 28px 0 10px; font-size: 13px; }
.chart-controls label:nth-child(2) select { min-width: 180px; }
.chart-controls .chart-instrument-control { min-width: 220px; }
.chart-controls .chart-instrument-control input, .chart-controls .chart-instrument-control select { width: 100%; min-width: 0; height: 38px; font-size: 13px; }
.chart-controls .chart-instrument-control small { min-height: 18px; color: #a23e40; font-size: 12px; }
.chart-note { padding: 8px 20px 0; color: #405e5d; font-size: 13px; }
.chart-meta { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px 0; color: #405e5d; font-size: 13px; }
.chart-meta .stale { color: #a23e40; font-weight: 700; }
.chart-canvas-wrap { position: relative; height: 340px; margin: 0 10px 10px; }
.chart-canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #536e6d; text-align: center; }
.chart-tooltip { position: absolute; z-index: 2; display: grid; gap: 4px; max-width: calc(100% - 16px); padding: 9px 11px; color: #eff8f4; background: #163543ed; border: 1px solid #44636a; border-radius: 7px; box-shadow: var(--shadow); font-size: 13px; font-weight: 550; pointer-events: none; }
.chart-tooltip strong { font-size: 13px; font-weight: 750; }
.error { min-height: 0; margin: 0; color: #a23e40; font-size: 13px; }
.error:not(:empty) { margin-top: 9px; }
.account-grid, .pair-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.leg-card { position: relative; padding-bottom: 17px; overflow: hidden; }
.leg-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; content: ""; background: var(--green); }
.leg-card:nth-child(2)::before { background: var(--red); }
.leg-card .panel-head { padding-left: 22px; }
.slot-label { color: #4f6968; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.leg-card .panel-head h2 { margin-top: 3px; font-size: 21px; }
.account-id { padding: 13px 20px 0 22px; color: #536a6e; font: 13px Consolas, "SFMono-Regular", monospace; overflow-wrap: anywhere; }
.leg-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 17px 20px 0 22px; }
.leg-metrics > div { min-width: 0; }
.leg-metrics span, .leg-metrics strong { display: block; }
.leg-metrics span { color: #536b67; font-size: 12px; font-weight: 550; }
.leg-metrics strong { margin-top: 5px; overflow-wrap: anywhere; color: #263f48; font: 15px Consolas, "SFMono-Regular", monospace; }
.leg-card:nth-child(1) .leg-metrics > div:last-child strong { color: var(--green); }
.leg-card:nth-child(2) .leg-metrics > div:last-child strong { color: var(--red); }
.account-warning { margin-top: 20px; padding: 13px 16px; color: #765c2b; background: #fbf6e9; border-color: #ebdfc5; font-size: 14px; }
.run-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 20px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 18px 20px 13px; }
.evidence-grid span, .evidence-grid strong { display: block; }
.evidence-grid span { color: #526a66; font-size: 12px; font-weight: 550; }
.evidence-grid strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 14px; }
.evidence-detail { margin: 0 20px 16px; padding: 13px; color: #526e70; background: #f1f6f2; border-radius: 7px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px; color: #526a66; border-top: 1px solid #edf0ec; font-size: 12px; font-weight: 550; }
.panel-foot strong { color: #34555a; }
.exit-progress { padding: 19px 20px; }
.progress-row { display: flex; justify-content: space-between; gap: 10px; color: #526663; font-size: 13px; }
.progress-row strong { color: #294951; font: 14px Consolas, monospace; }
.progress-track { height: 8px; margin: 8px 0 17px; overflow: hidden; background: #e9efeb; border-radius: 8px; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; }
.deadline-box { display: flex; justify-content: space-between; gap: 10px; padding: 12px; color: #526663; background: #f2f5f2; border-radius: 7px; font-size: 13px; }
.deadline-box strong { color: #334e53; }
.fine-print { margin: 0; padding: 0 20px 16px; color: #526a66; font-size: 12px; }
.timeline-panel { margin-top: 20px; }
.event-list { max-height: 390px; padding: 2px 20px; overflow: auto; }
.event-row { display: grid; grid-template-columns: 155px 155px minmax(0, 1fr); gap: 13px; padding: 13px 0; border-bottom: 1px solid #edf0ec; font-size: 13px; }
.event-row:last-child { border-bottom: 0; }
.event-row time { color: #526965; font: 12px Consolas, monospace; }
.event-row strong { color: #405d60; }
.event-row span { color: #4d6865; overflow-wrap: anywhere; white-space: pre-wrap; }
.empty { padding: 25px; color: #526b67; text-align: center; font-size: 14px; }
.flatten-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 16px 18px; background: #fff5f3; border: 1px solid #e8cbc6; border-radius: 9px; }
.flatten-row strong, .flatten-row span { display: block; }
.flatten-row strong { color: #963c40; font-size: 16px; }
.flatten-row span { margin-top: 4px; color: #705c59; font-size: 13px; }
.config-form { display: grid; gap: 20px; }
.config-section { padding-bottom: 19px; }
.section-title { display: flex; align-items: flex-start; gap: 13px; padding: 18px 20px; border-bottom: 1px solid #edf0ec; }
.section-title > b { display: grid; width: 30px; height: 30px; flex: none; place-items: center; color: #166c60; background: #e3f1eb; border-radius: 7px; font: 13px Consolas, monospace; }
.section-title h2 { margin: 0; font-size: 18px; }
.section-title p { margin: 4px 0 0; color: #526b67; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 19px 20px 10px; }
.form-grid label, .bind-form label { display: block; color: #405f60; font-size: 14px; font-weight: 650; }
.form-grid small { color: #526b67; font-size: 12px; font-weight: 550; }
.form-grid input, .form-grid select, .bind-form input { display: block; margin-top: 6px; }
.form-grid input[readonly] { color: #637b78; background: #f3f6f3; }
.form-grid .span2 { grid-column: span 2; }
.info-note { margin: 5px 20px; padding: 12px 14px; color: #566f70; background: #f1f5f1; border-radius: 7px; font-size: 13px; }
.check-row { display: flex; gap: 11px; margin: 13px 20px; padding: 14px; background: #f3f6f3; border: 1px solid #e1e8e2; border-radius: 8px; }
.check-row input { width: 18px; height: 18px; flex: none; margin: 2px 0; accent-color: var(--teal); }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: 14px; }
.check-row small { margin-top: 4px; color: #526b67; font-size: 13px; }
.risk-note { margin: 12px 20px; padding: 14px 15px; background: #fbf5e8; border: 1px solid #ebdfc6; border-radius: 8px; }
.risk-note strong { color: #805f29; font-size: 14px; }
.risk-note p { margin: 5px 0 0; color: #655b49; font-size: 13px; line-height: 1.65; }
.config-section > .error, .form-actions { margin: 13px 20px 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #526b67; font-size: 13px; }
.account-bind-card { padding-bottom: 18px; }
.account-bind-card:nth-child(1) .panel-head { border-top: 3px solid var(--green); }
.account-bind-card:nth-child(2) .panel-head { border-top: 3px solid var(--red); }
.account-identity { padding: 0 20px; color: #4f686b; font: 13px Consolas, monospace; overflow-wrap: anywhere; }
.readiness { margin: 0 20px; padding: 12px 13px; color: #536e70; background: #f1f5f2; border-radius: 7px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bind-form { display: grid; gap: 13px; padding: 18px 20px 0; }
.bind-form .button { justify-self: start; }
.account-safety { margin-top: 20px; padding: 17px 20px; }
.account-safety strong { font-size: 15px; }
.account-safety p { margin: 7px 0 0; color: #526b67; font-size: 13px; line-height: 1.7; }
.ai-settings { margin-top: 20px; padding: 16px 20px; }
.ai-settings summary { color: #405e61; cursor: pointer; font-size: 15px; font-weight: 750; }
.settings-note { margin: 0; color: #526b67; font-size: 13px; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding: 13px 34px; color: #526964; border-top: 1px solid #dfe6df; font-size: 12px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; gap: 9px; }
.toast { max-width: 380px; padding: 13px 16px; background: white; border: 1px solid #d9e2dc; border-radius: 9px; box-shadow: var(--shadow); font-size: 14px; }
.toast.bad { color: #a23e40; border-color: #e7c9c6; }
.auth-screen { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 72px 7vw 54px; overflow: hidden; background: #f1f4f0; }
.auth-screen:not([hidden]) { display: grid; }
.auth-brand { position: absolute; top: 27px; left: 34px; z-index: 2; color: var(--ink); }
.auth-layout { display: grid; width: min(1080px, 100%); grid-template-columns: 1fr 440px; align-items: center; gap: clamp(36px, 8vw, 112px); }
.auth-intro { padding: 34px; color: #eaf4f0; background: var(--navy); border-radius: 14px; }
.auth-kicker { color: #8ed8c2; font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.auth-intro h2 { margin: 15px 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.25; letter-spacing: -.04em; }
.auth-intro > p { max-width: 490px; color: #bed0ce; font-size: 16px; line-height: 1.8; }
.pair-visual { display: grid; max-width: 500px; grid-template-columns: 1fr 110px 1fr; align-items: center; margin-top: 38px; padding: 19px; background: var(--navy); border: 1px solid #34515c; border-radius: 12px; }
.pair-leg { display: grid; gap: 4px; padding: 14px; background: #1a3a48; border-radius: 8px; }
.pair-leg span { color: #b5c9c7; font-size: 13px; }
.pair-leg strong { font-size: 23px; }
.pair-leg i { font: 12px Consolas, monospace; letter-spacing: .1em; }
.pair-long strong, .pair-long i { color: #73d0a6; }
.pair-short strong, .pair-short i { color: #f08b84; }
.pair-link { display: grid; justify-items: center; gap: 7px; color: #d3e1df; font-size: 12px; font-weight: 550; }
.pair-link span { width: 52px; height: 1px; background: #6c9690; }
.auth-sequence { display: flex; align-items: center; gap: 12px; margin-top: 19px; color: #bed0ce; font-size: 13px; }
.auth-sequence i { color: #75c7b1; font-style: normal; }
.auth-card { width: 100%; padding: 34px; background: #fff; border: 1px solid #dbe3dd; border-radius: 12px; box-shadow: 0 18px 54px #223e3b14; }
.auth-card .eyebrow { margin-bottom: 5px; }
.auth-card h1 { margin: 7px 0; font-size: 29px; letter-spacing: -.5px; }
.auth-card > p { color: #536c67; font-size: 14px; }
.auth-card form { display: grid; gap: 15px; margin-top: 22px; }
.auth-card label { color: #405f60; font-size: 14px; font-weight: 650; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-card .link-button { width: 100%; margin-top: 5px; padding: 10px 0 0; }
.auth-foot { position: absolute; bottom: 18px; z-index: 1; margin: 0; color: #526c67; font-size: 13px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .content { padding-right: 24px; padding-left: 24px; }
  .run-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .auth-layout { width: min(440px, 100%); grid-template-columns: 1fr; } .auth-intro { display: none; } }
@media (max-width: 720px) {
  .shell { display: block; min-width: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(290px, 84vw); height: auto; min-height: 0; visibility: hidden; pointer-events: none; transform: translateX(-105%); transition: transform .2s ease, visibility .2s; box-shadow: 12px 0 34px #102c3b35; }
  .sidebar.open { visibility: visible; pointer-events: auto; transform: translateX(0); }
  .mobile-menu { display: block; color: #35575b; }
  .topbar { height: 56px; justify-content: flex-start; gap: 8px; padding: 0 12px; }
  .topbar-right { gap: 8px; margin-left: auto; }
  .timezone-tag { display: none; }
  .content { padding: 21px 14px 30px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 14px; }
  .flow-card { gap: 6px; padding: 13px; }
  .flow-step { min-width: 152px; }
  .run-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .account-grid, .pair-account-grid { grid-template-columns: 1fr; gap: 15px; }
  .chart-head { align-items: flex-start; flex-direction: column; }
  .chart-controls { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-controls select, .chart-controls label:nth-child(2) select { width: 100%; min-width: 0; }
  .chart-meta { align-items: flex-start; flex-direction: column; gap: 3px; padding-right: 15px; padding-left: 15px; }
  .chart-note { padding-right: 15px; padding-left: 15px; }
  .chart-canvas-wrap { height: 300px; margin-right: 3px; margin-left: 3px; }
  .leg-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
  .event-row { grid-template-columns: 1fr; gap: 4px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-right: 15px; padding-left: 15px; }
  .form-grid .span2 { grid-column: span 2; }
  .panel-head, .section-title { padding-right: 15px; padding-left: 15px; }
  .evidence-grid { gap: 13px; padding-right: 15px; padding-left: 15px; }
  .evidence-detail { margin-right: 15px; margin-left: 15px; }
  .panel-foot { flex-wrap: wrap; padding-right: 15px; padding-left: 15px; }
  .account-warning { line-height: 1.65; }
  .footer { flex-direction: column; gap: 3px; padding: 12px 14px; }
  .flatten-row { align-items: stretch; flex-direction: column; }
  .flatten-row .button { width: 100%; }
  .auth-screen { padding: 74px 16px 48px; }
  .auth-layout { width: min(440px, 100%); grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .auth-brand { top: 19px; left: 16px; }
  .auth-card { padding: 27px 23px; }
}
@media (max-width: 390px) {
  .content { padding-right: 12px; padding-left: 12px; }
  .topbar-right time { font-size: 12px; }
  .breadcrumb { font-size: 13px; }
  .run-actions .button { flex: 1 1 145px; }
  .run-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .section-title { gap: 10px; }
  .section-title p { font-size: 12px; }
  .panel-foot { justify-content: flex-start; }
  .panel-foot > * { margin-right: 9px; }
  .auth-screen { padding: 72px 15px 48px; }
  .auth-card { padding: 24px 19px; }
  .auth-foot { bottom: 13px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
