:root {
  color-scheme: dark;
  --bg: #060a10;
  --panel: #0d141d;
  --panel-2: #111b27;
  --line: #1e2b3a;
  --text: #edf4f7;
  --muted: #8493a3;
  --green: #2dd4a3;
  --red: #ff6577;
  --amber: #f1bc59;
  --blue: #57a8ff;
  --violet: #b28cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 1120px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 11% 2%, rgba(45, 212, 163, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(87, 168, 255, 0.07), transparent 32rem),
    var(--bg);
  color: var(--text);
}
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, color .15s; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .45; }
.app-shell { max-width: 1800px; margin: 0 auto; padding: 24px 30px 44px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 18px; }
.brand-lockup { flex: 1; }
.workspace-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nav-button { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #263548; border-radius: 9px; background: #0d1621; color: #a9b6c1; font-size: 10px; font-weight: 750; text-decoration: none; }
.nav-button:hover { border-color: #456077; background: #152231; color: var(--text); }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .2em; }
h1 { margin: 0; font-size: 38px; line-height: 1; letter-spacing: -.045em; }
h2, h3 { margin: 0; }
.safety-card { display: flex; gap: 12px; align-items: center; padding: 11px 15px; border: 1px solid rgba(45,212,163,.22); border-radius: 12px; background: rgba(45,212,163,.055); }
.safety-card strong, .safety-card small { display: block; }
.safety-card strong { font-size: 12px; }
.safety-card small { color: #8eaa9f; margin-top: 3px; font-size: 10px; }
.status-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(45,212,163,.12); }
.panel { border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(17,27,39,.98), rgba(10,16,24,.98)); box-shadow: var(--shadow); overflow: hidden; }

.dashboard-header-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr); align-items: stretch; gap: 12px; margin-bottom: 12px; }
.context-panel { position: relative; overflow: hidden; }
.context-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid #1b2938; }
.context-heading span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.context-heading strong { color: var(--green); font-size: 7px; letter-spacing: .12em; }
.context-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 10px 2px; }
.context-item { min-width: 0; padding: 8px 7px; border-bottom: 1px solid #172433; }
.context-item:nth-child(odd) { border-right: 1px solid #172433; }
.context-item:last-child { grid-column: 1 / -1; border-right: 0; }
.context-item span, .context-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.context-item span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.context-item strong { margin-top: 5px; font-size: 12px; }
.context-change { width: calc(100% - 28px); margin: 9px 14px 13px; }
.secondary, .tool, .icon-button { border: 1px solid #2b3b4e; border-radius: 8px; background: #101a26; color: var(--text); font-weight: 700; }
.secondary { height: 36px; padding: 0 13px; font-size: 10px; }
.secondary:hover, .tool:hover, .icon-button:hover { border-color: #456077; background: #152231; }
.secondary.active, .tool.active { border-color: rgba(45,212,163,.55); color: var(--green); background: rgba(45,212,163,.08); }
.settings-drawer { margin-bottom: 12px; padding: 14px 18px 16px; overflow: visible; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.settings-heading > div { display: flex; align-items: baseline; gap: 10px; }
.settings-heading span { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.settings-heading strong { font-size: 11px; }
.setup-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; gap: 10px; }
label { position: relative; display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
input[type="date"], input[type="number"], select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #263548; border-radius: 8px; background: #0a111a; color: var(--text); outline: none; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,212,163,.09); }
.session-select { position: relative; min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.session-select-button { width: 100%; height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 11px; border: 1px solid #263548; border-radius: 8px; background: #0a111a; color: var(--text); text-align: left; }
.session-select-button:hover, .session-select-button[aria-expanded="true"] { border-color: #456077; background: #101a26; }
.session-select-button[aria-expanded="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,212,163,.09); }
.session-select-button strong { min-width: 0; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.session-select-button > span { color: var(--muted); font-size: 13px; transition: transform .15s; }
.session-select-button[aria-expanded="true"] > span { transform: rotate(180deg); }
.session-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max(230px, 100%); padding: 8px; border: 1px solid #35475b; border-radius: 10px; background: #0b141e; box-shadow: 0 18px 48px rgba(0,0,0,.6); text-transform: none; }
.session-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 3px 7px; color: #8fa0af; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.session-menu-heading button { padding: 4px 7px; border: 1px solid #2d4053; border-radius: 6px; background: #101b27; color: #91a2b1; font-size: 8px; font-weight: 800; }
.session-menu-heading button.active { border-color: rgba(45,212,163,.48); color: var(--green); background: rgba(45,212,163,.08); }
.session-options { display: grid; gap: 4px; }
.session-options label { height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; color: #9bacba; cursor: pointer; font-size: 9px; letter-spacing: 0; text-transform: none; }
.session-options label:hover { background: #111d2a; }
.session-options label:has(input:checked) { border-color: rgba(45,212,163,.28); background: rgba(45,212,163,.08); color: var(--green); }
.session-options input { width: 14px; height: 14px; accent-color: var(--green); }
.toggle-label { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid #263548; border-radius: 8px; background: #0a111a; }
.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { width: 34px; height: 19px; border-radius: 20px; background: #243141; position: relative; transition: .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #91a0af; transition: .2s; }
.toggle-label input:checked + .toggle { background: rgba(45,212,163,.28); }
.toggle-label input:checked + .toggle::after { transform: translateX(15px); background: var(--green); }
.primary, .play-button { height: 39px; border-radius: 8px; background: var(--green); color: #04110e; font-weight: 850; }
.primary:hover, .play-button:hover { background: #5fe3bd; }
.source-status { display: inline-block; margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.public-settings-note { margin: 10px 0 0; color: var(--amber); font-size: 9px; line-height: 1.45; }
.public-fixed { opacity: .62; }
.error { color: #ff8895; margin: 10px 0 0 16px; font-size: 11px; }

.account-panel { margin: 0; }
.account-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px 8px; }
.account-heading > div { display: flex; align-items: center; gap: 10px; }
.account-heading h2 { font-size: 12px; }
.account-heading > span { color: var(--muted); font-size: 9px; }
.account-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border-top: 1px solid #1c2938; background: #1c2938; }
.account-metric { min-width: 0; min-height: 84px; padding: 12px 14px; background: #0b131c; }
.account-metric span, .account-metric strong, .account-metric small { display: block; }
.account-metric span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-metric strong { margin-top: 6px; font-size: 18px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-metric small { margin-top: 4px; color: #627383; font-size: 8px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.warning { color: var(--amber) !important; }

.chart-panel { margin-bottom: 12px; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px 11px; }
.chart-heading h2 { font-size: 15px; }
.chart-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.chart-actions { display: flex; align-items: center; gap: 8px; }
.candle-readout { min-width: 250px; color: #91a2b1; font: 700 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid #263548; border-radius: 9px; background: #09111a; }
.segment { min-width: 44px; height: 29px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.segment.active { background: #1b2a38; color: var(--text); }
.chart-workspace { display: grid; grid-template-columns: 64px minmax(0, 1fr) 278px; min-height: 680px; border-top: 1px solid #172433; background: #081019; }
.chart-workspace.decisions-hidden { grid-template-columns: 64px minmax(0, 1fr); }
.chart-workspace:has(> .decision-panel[hidden]) { grid-template-columns: 64px minmax(0, 1fr); }
.drawing-toolbar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-right: 1px solid #1e2c3c; background: #0a121b; }
.toolbar-title { margin: 1px 0 3px; color: #5e6f80; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.tool { width: 50px; min-height: 46px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 3px; font-size: 9px; }
.tool > span { font-size: 17px; line-height: 1; }
.tool > small { color: #758697; font-size: 7px; font-weight: 750; }
.tool.active > small { color: var(--green); }
.tool.danger { color: #d98a93; }
.toolbar-divider { width: 30px; height: 1px; margin: 2px 0; background: #263548; }
.chart-stage { min-width: 0; background: #081019; }
.save-status { color: #627383; font-size: 8px; text-align: right; }
.save-status.saving { color: var(--amber); }
.save-status.error { color: var(--red); }
.chart-stack { position: relative; height: 610px; margin: 0; background: #081019; }
.chart { position: absolute; inset: 0; overflow: hidden; background: #081019; }
.chart-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.session-overlay { z-index: 1; pointer-events: none; }
.session-label { fill: #728394; font-size: 7px; font-weight: 850; letter-spacing: .08em; paint-order: stroke; stroke: #081019; stroke-width: 3px; }
.position-overlay { pointer-events: none; }
.drawing-overlay { z-index: 3; pointer-events: none; }
.chart-stack.drawing-active .drawing-overlay { pointer-events: auto; cursor: crosshair; touch-action: none; }
.position-label { font-size: 10px; font-weight: 850; fill: #f4f8fa; paint-order: stroke; stroke: rgba(4,8,12,.85); stroke-width: 3px; stroke-linejoin: round; }
.position-sub { font-size: 8px; font-weight: 700; fill: #ccd6dd; }
.position-axis-label { font-size: 8px; font-weight: 850; fill: #06100e; }
.position-handle { fill: #eef4f7; stroke: rgba(5,10,15,.75); stroke-width: 1.5px; }
.drawing-label { font-size: 9px; font-weight: 750; fill: #eef4f7; paint-order: stroke; stroke: #081019; stroke-width: 3px; }
.drawing-handle { fill: var(--amber); stroke: #071018; stroke-width: 1.5px; }
.drawing-feedback { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 12px; border-top: 1px solid #172433; border-bottom: 1px solid #172433; background: #0a121b; }
.drawing-feedback > span:first-child { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.drawing-feedback strong { color: var(--text); font-size: 9px; }
.drawing-feedback small { color: var(--muted); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playback-row { display: grid; grid-template-columns: 82px 36px 88px minmax(120px, 1fr) 135px 122px 72px; align-items: center; gap: 8px; padding: 12px 16px 15px; }
.icon-button { width: 36px; height: 36px; }
.restart-button, .reset-all-button { height: 36px; padding-inline: 8px; }
.reset-all-button { border-color: rgba(255,101,119,.28); color: #d99aa2; }
.play-button { height: 36px; }
#timeline { accent-color: var(--green); }
.clock { text-align: right; line-height: 1.15; }
.clock strong, .clock small { display: block; }
.clock strong { font-size: 10px; }
.clock small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.quick-speed-label { height: 36px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding-left: 9px; border-left: 1px solid #263548; }
.quick-speed-label select { height: 34px; }

.review-grid { display: grid; grid-template-columns: minmax(760px, 1.7fr) minmax(360px, .7fr); gap: 12px; margin-bottom: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px 11px; }
.section-heading > div { display: flex; align-items: baseline; gap: 9px; }
.section-heading h2 { font-size: 12px; }
.section-heading span, .section-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.journal-controls { display: flex !important; align-items: center !important; gap: 8px !important; }
.journal-filter { display: flex; align-items: center; gap: 4px; }
.journal-filter label, .journal-filter button { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #263548; border-radius: 7px; background: #0b141e; color: #8999a7; font-size: 8px; font-weight: 750; letter-spacing: 0; text-transform: none; cursor: pointer; }
.journal-filter label:has(input:checked), .journal-filter button.active { border-color: rgba(45,212,163,.44); color: var(--green); background: rgba(45,212,163,.08); }
.journal-filter input { accent-color: var(--green); }
.page-size-label { display: flex; align-items: center; gap: 6px; letter-spacing: 0; text-transform: none; }
.page-size-label select { width: 66px; height: 30px; padding: 0 7px; }
.table-scroll { max-height: 332px; overflow: auto; border-top: 1px solid #1b2837; }
.trade-table { width: 100%; border-collapse: collapse; min-width: 1030px; font-size: 9px; }
.trade-table thead { position: sticky; top: 0; z-index: 2; background: #101925; }
.trade-table th { padding: 9px 10px; color: #748495; font-size: 8px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.trade-table td { padding: 10px; border-top: 1px solid #172332; color: #b4c0ca; vertical-align: middle; }
.trade-row { cursor: pointer; transition: background .15s; }
.trade-row:hover, .trade-row.selected { background: #121f2b; }
.trade-row.selected { box-shadow: inset 3px 0 var(--green); }
.trade-row.blocked { cursor: default; }
.trade-row.blocked td { color: #83909c; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 20px; font-size: 7px; font-weight: 900; letter-spacing: .07em; }
.pill.long { color: var(--green); background: rgba(45,212,163,.11); }
.pill.short { color: var(--red); background: rgba(255,101,119,.11); }
.pill.blocked { color: var(--amber); background: rgba(241,188,89,.1); }
.cell-stack strong, .cell-stack small { display: block; }
.cell-stack strong { color: var(--text); font-size: 9px; }
.cell-stack small { margin-top: 3px; color: #687888; font-size: 8px; }
.empty-row td { padding: 42px; color: var(--muted); text-align: center; }
.journal-pagination { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 14px; border-top: 1px solid #1b2837; color: var(--muted); font-size: 9px; }
.journal-pagination > div { display: flex; align-items: center; gap: 5px; }
.journal-pagination .secondary { height: 30px; }
#journal-pages { display: inline-flex; gap: 4px; }
#journal-pages button { min-width: 30px; height: 30px; border: 1px solid #263548; border-radius: 7px; background: #0b141e; color: #8999a7; font-size: 8px; font-weight: 800; }
#journal-pages button.active { border-color: var(--green); color: var(--green); background: rgba(45,212,163,.08); }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 14px 12px; }
.metric { padding: 10px; border: 1px solid #1e2c3c; border-radius: 9px; background: rgba(7,12,19,.6); }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { margin-top: 6px; font-size: 16px; letter-spacing: -.03em; }
.equity-card { margin: 0 14px 14px; border: 1px solid #1d2a39; border-radius: 10px; background: rgba(7,12,19,.52); overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #1b2837; }
.card-title h3 { font-size: 10px; }
.card-title span { color: var(--muted); font-size: 8px; }
.equity-chart { height: 190px; }

.decision-panel { position: relative; min-width: 0; border-left: 1px solid #1e2c3c; background: linear-gradient(180deg, #0d1722, #09111a); overflow: hidden; }
.decision-panel summary { min-height: 142px; display: grid; align-content: start; gap: 8px; padding: 15px 14px; cursor: pointer; list-style: none; }
.decision-panel summary::-webkit-details-marker { display: none; }
.decision-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #2b3b4e; border-radius: 6px; background: #101a26; color: #91a2b1; font-size: 15px; line-height: 1; }
.decision-close:hover { border-color: #456077; color: var(--text); }
.recent-decisions { display: grid; gap: 7px; }
.recent-decisions > div { padding-left: 8px; border-left: 2px solid #31445a; }
.recent-decisions > div.signal, .recent-decisions > div.entry { border-left-color: var(--green); }
.recent-decisions > div.blocked { border-left-color: var(--amber); }
.recent-decisions > div.outcome { border-left-color: var(--blue); }
.recent-decisions strong, .recent-decisions small { display: block; }
.recent-decisions strong { font-size: 10px; line-height: 1.3; }
.recent-decisions small { margin-top: 2px; color: #8ea0b0; font-size: 8px; line-height: 1.35; }
.decision-kicker { color: var(--green); font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.decision-expand { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding-top: 8px; border-top: 1px solid #213041; color: var(--muted); font-size: 8px; }
.decision-expand b { color: #b7c4ce; font-size: 8px; }
.decision-panel[open] summary { border-bottom: 1px solid #1b2837; }
.decision-panel[open] .decision-expand b::after { content: " · Collapse"; }
.event-log { max-height: 540px; overflow: auto; padding: 11px; display: grid; grid-template-columns: 1fr; gap: 7px; }
.event-empty { padding: 25px 12px; text-align: center; color: var(--muted); font-size: 9px; border: 1px dashed #293648; border-radius: 9px; }
.event { border: 1px solid #1c2a3a; border-left: 3px solid #31445a; border-radius: 8px; padding: 9px 10px; background: rgba(6,11,17,.6); }
.event.signal, .event.entry { border-left-color: var(--green); }
.event.blocked { border-left-color: var(--amber); }
.event.outcome { border-left-color: var(--blue); }
.event-head { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; font-weight: 750; }
.event-head time { color: var(--muted); font-size: 8px; font-weight: 500; }
.event p { margin: 5px 0 0; color: #9aa8b6; font-size: 9px; line-height: 1.42; }

.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.preview-panel { min-height: 245px; padding: 16px; }
.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.preview-heading span { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.preview-heading h2 { margin-top: 5px; font-size: 14px; }
.preview-heading > strong { padding: 5px 7px; border: 1px solid rgba(241,188,89,.3); border-radius: 999px; color: var(--amber); background: rgba(241,188,89,.07); font-size: 7px; letter-spacing: .09em; }
.preview-panel > p { margin: 11px 0 13px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.strategy-preview-list, .news-preview-list { display: grid; gap: 7px; }
.strategy-preview-list { grid-template-columns: repeat(2, 1fr); }
.strategy-preview-list > div, .news-preview-list > div { padding: 10px 11px; border: 1px solid #1e2d3d; border-radius: 9px; background: rgba(7,13,20,.64); }
.strategy-preview-list span, .strategy-preview-list small, .news-preview-list strong, .news-preview-list small { display: block; }
.strategy-preview-list span { color: var(--text); font-size: 10px; font-weight: 760; }
.strategy-preview-list small, .news-preview-list small { margin-top: 4px; color: #6f8191; font-size: 8px; }
.news-preview-list { grid-template-columns: repeat(3, 1fr); }
.news-preview-list strong { margin-top: 7px; font-size: 9px; line-height: 1.35; }
.importance { display: inline-block; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.importance.high { color: var(--red); }
.importance.macro { color: var(--amber); }
.importance.source { color: var(--blue); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 8px 4px 0; color: #5f6f7e; font-size: 8px; }
.confirm-dialog { width: min(480px, calc(100vw - 40px)); padding: 0; border: 1px solid #35465a; border-radius: 14px; background: #0c151f; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.confirm-dialog::backdrop { background: rgba(2,6,10,.76); backdrop-filter: blur(4px); }
.confirm-dialog form { padding: 23px; }
.confirm-dialog h2 { margin-top: 8px; font-size: 20px; }
.confirm-dialog p { margin: 11px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.danger-button { height: 36px; padding: 0 14px; border: 1px solid rgba(255,101,119,.55); border-radius: 8px; background: rgba(255,101,119,.13); color: #ff9aa6; font-weight: 800; }
.danger-button:hover { background: rgba(255,101,119,.22); }
.help-dialog { width: min(1040px, calc(100vw - 60px)); max-height: calc(100vh - 70px); padding: 0; border: 1px solid #35465a; border-radius: 16px; background: #09121b; color: var(--text); box-shadow: 0 30px 110px rgba(0,0,0,.76); }
.help-dialog::backdrop { background: rgba(2,6,10,.8); backdrop-filter: blur(5px); }
.help-shell { padding: 25px; }
.help-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 19px; border-bottom: 1px solid #213041; }
.help-header span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.help-header h2 { margin-top: 7px; font-size: 25px; letter-spacing: -.035em; }
.help-header p { max-width: 720px; margin: 9px 0 0; color: #94a4b3; font-size: 11px; line-height: 1.55; }
.help-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 17px 0; }
.help-steps span { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #203043; border-radius: 9px; color: #aab7c1; font-size: 9px; font-weight: 750; }
.help-steps b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(45,212,163,.12); color: var(--green); }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.help-grid section { padding: 15px; border: 1px solid #1e2d3d; border-radius: 10px; background: rgba(6,12,18,.55); }
.help-grid h3 { margin-top: 7px; font-size: 13px; }
.help-grid p { margin: 7px 0 0; color: #8fa0af; font-size: 10px; line-height: 1.55; }
.help-link { display: inline-block; margin-top: 10px; color: var(--green); font-size: 10px; font-weight: 800; text-decoration: none; }
.help-link:hover { text-decoration: underline; }

@media (max-width: 1360px) {
  .setup-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-header-grid { grid-template-columns: minmax(0, 2.5fr) minmax(250px, .85fr); }
  .chart-workspace { grid-template-columns: 58px minmax(0, 1fr) 235px; }
  .drawing-toolbar { padding-inline: 4px; }
  .tool { width: 46px; }
  .playback-row { grid-template-columns: 78px 36px 78px minmax(110px, 1fr) 120px 112px 68px; }
  .review-grid { grid-template-columns: 1fr; }
  .news-preview-list { grid-template-columns: 1fr; }
}
