/* Pixel frames, vivid accents and responsive live reporting. No remote fonts. */
:root { --terminal-accent:#34e5ff; --accent:var(--terminal-accent); --terminal-violet:#b9a0ff; --terminal-green:#41f5aa; --terminal-amber:#ffda55; --terminal-line:#334e78; --terminal-muted:#a5b7d2; --pixel-copper:#ea957b; }
body { background-color:#070d1b; background-image:radial-gradient(#39568b45 1px,transparent 1px); background-size:16px 16px; }
.brand { color:#67eaff; text-shadow:3px 3px 0 #083b61; }
button { background:#2456bc; border-color:#75b9ff; box-shadow:3px 3px 0 #020610,inset 0 2px 0 #a0ccff35; }
button:hover:not(:disabled) { filter:brightness(1.16); transform:translateY(-1px); }
button:active:not(:disabled) { transform:translate(2px,2px); box-shadow:1px 1px 0 #020610; }
button.secondary { border-color:#4c729e; background:#142541; color:#d7eaff; }
button.danger { background:#733624; border-color:#ea957b; }
.card { border-color:#35517d; box-shadow:5px 5px 0 #020610,inset 0 0 0 2px #0b1426; background:linear-gradient(120deg,#111e35,#0d172a); }
#live-trading { border-color:#347d9d; }
#backtest-workspace { border-color:#7b62b6; }
#strategy-editor { border-color:#ad8441; }
#market-chart { border-color:#426fba; }
.positive,.pill.positive { color:#41f5aa; }
.negative,.error,.pill.negative { color:#eda893; }
.pill.negative { background:#362019; border-color:#9c553f; }
.live-status.is-enabled { border-left-color:#41f5aa; }
.is-enabled .live-status-icon { background:#41f5aa; box-shadow:3px 3px 0 #073f36; }
.real-report { margin-top:24px; }
.live-report-zone { scroll-margin-top:90px; }
.report-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.report-heading { display:grid; gap:7px; }
.report-heading h3 { margin:0; font-size:20px; letter-spacing:.04em; color:#f2f7ff; }
.report-eyebrow { font-size:10px; color:#58dfff; letter-spacing:.14em; }
.report-controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.report-controls label { display:flex; gap:9px; align-items:center; font-size:12px; }
.report-controls select { width:auto; min-width:150px; }
.report-scope { display:flex; flex-wrap:wrap; align-items:center; gap:9px; color:#b8c8de; font-size:12px; line-height:1.7; margin-bottom:12px; }
.report-scope-dot { width:6px; height:6px; background:#b9a0ff; box-shadow:2px 2px 0 #473269; }
.live-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.pixel-kpi { --kpi-accent:#41f5aa; position:relative; min-width:0; padding:23px 18px 18px; border:2px solid #35517d; background:#101d32; box-shadow:4px 4px 0 #020610,inset 0 0 0 3px #142947; }
.pixel-kpi::before { content:''; position:absolute; top:0; left:0; right:0; height:6px; background:var(--kpi-accent); box-shadow:0 3px 0 color-mix(in srgb,var(--kpi-accent) 35%,transparent); }
.pixel-kpi.is-blue { --kpi-accent:#588dff; }
.pixel-kpi.is-violet { --kpi-accent:#b9a0ff; }
.pixel-kpi.is-copper { --kpi-accent:#ea957b; }
.kpi-label { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:#b8c8df; }
.kpi-icon { width:25px; height:25px; flex-shrink:0; color:var(--kpi-accent); image-rendering:pixelated; filter:drop-shadow(2px 2px 0 #020610); }
.kpi-value { margin:16px 0 11px; font-size:clamp(25px,2.6vw,38px); line-height:1.15; font-weight:800; letter-spacing:-.045em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; text-shadow:2px 2px 0 #020610; }
.kpi-value small { font-size:11px; font-weight:400; letter-spacing:0; color:#9fb5d1; margin-left:5px; }
.kpi-note { margin-top:8px; font-size:11px; line-height:1.75; color:#a3b5ce; }
.report-badge { display:inline-block; padding:2px 6px; font-size:10px; color:#ffe382; border:1px solid #a5853e; background:#312a1a; }
.pixel-health { border:2px solid #35517d; margin-top:18px; padding:20px; background:#0e1b30; box-shadow:4px 4px 0 #020610; }
.health-head { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.health-title { color:#5ce8dd; font-size:15px; font-weight:700; display:flex; align-items:center; gap:10px; }
.health-title::before { content:'+'; display:grid; place-items:center; color:#071b21; background:#41f5aa; height:19px; width:19px; font-weight:900; box-shadow:3px 3px 0 #063e3c; }
.health-state { font-size:11px; color:#c2b0ff; border:1px solid #6d58a4; background:#241e3c; padding:5px 9px; }
.health-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.health-item { min-width:0; }
.health-item + .health-item { border-left:1px dashed #354d70; padding-left:20px; }
.health-item h4 { color:#a8bbd7; font-size:12px; font-weight:400; margin:0 0 13px; }
.health-value { font-size:clamp(24px,2vw,30px); font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
.health-caption { color:#97aecb; font-size:11px; line-height:1.7; margin-top:9px; }
.pixel-meter { height:9px; margin-top:13px; border:1px solid #304b70; background:#070e1c; box-shadow:1px 1px 0 #020610; overflow:hidden; }
.pixel-meter > span { display:block; height:100%; background:repeating-linear-gradient(90deg,#41f5aa 0,#41f5aa 9px,#0e1b30 9px,#0e1b30 12px); }
.health-footnote { margin:18px 0 0; padding-top:12px; border-top:1px dashed #304564; color:#9bb0cc; font-size:11px; line-height:1.8; }
.report-error { border:1px solid #9c553f; background:#32201b; color:#f3c5b7; padding:12px; margin:12px 0; font-size:12px; }
.real-orders.report-fold { border:2px solid #35517d; padding:0; background:#101d32; box-shadow:4px 4px 0 #020610; }
.report-fold > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:76px; padding:18px 20px; cursor:pointer; border-left:4px solid #34e5ff; }
.report-fold > summary::-webkit-details-marker { display:none; }
.report-fold > summary::before { content:'▶'; color:#34e5ff; font-size:11px; }
.report-fold[open] > summary::before { content:'▼'; }
.report-fold > summary:hover { background:#152943; }
.report-title-block { display:grid; gap:7px; flex:1; min-width:0; }
.report-title-block strong { color:#6de8ff; font-size:14px; }
.report-title-block small { font-size:11px; color:#a4b9d5; font-weight:400; line-height:1.6; }
.fold-indicator { font-size:11px; color:#a9bedb; border:1px solid #3a567d; padding:5px 8px; white-space:nowrap; }
.fold-indicator::after { content:'展开 +'; }
[open] > summary .fold-indicator::after { content:'收起 −'; }
.report-fold.report-failures > summary { border-left-color:#ea957b; }
.report-failures > summary::before,.report-failures .report-title-block strong { color:#efaf9c; }
.report-fold-body { padding:16px 20px 20px; border-top:1px dashed #35517d; }
.report-fold .real-orders-head { align-items:center; }
.real-orders-table tr:hover td { background:#19314b55; }
.real-orders-table .direction-up { color:#41f5aa; }
.real-orders-table .direction-down { color:#eda893; }
.failure-reason { min-width:260px; max-width:520px; white-space:normal; overflow-wrap:anywhere; line-height:1.8; text-align:left !important; color:#f4c9bc; }
.report-failures .real-orders-table table { min-width:900px; }
.report-status-note { color:#ffd773; font-size:11px; line-height:1.7; }
@media(max-width:1100px) { .live-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .health-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:22px; } .health-item:nth-child(3) { border-left:0; padding-left:0; } }
@media(max-width:820px) { .report-toolbar { align-items:stretch; gap:14px; } .report-heading { flex:1; } .report-controls { width:100%; } .report-controls label { flex:1; } .report-controls select { flex:1; min-width:0; } .report-controls button { flex-shrink:0; } .report-fold-body { padding:12px; } .report-fold > summary { padding:14px 12px; } .real-orders-table tbody > tr { border-radius:0; border-left:3px solid #35cfbd; background:#0c172b; } .report-failures .real-orders-table tbody > tr { border-left-color:#ea957b; } .report-failures .real-orders-table table { min-width:0; } .failure-reason { grid-column:1 / -1; min-width:0; max-width:100%; } }
@media(max-width:520px) { .real-report { margin-top:20px; } .live-kpis { gap:10px; } .pixel-kpi { padding:20px 12px 13px; box-shadow:3px 3px 0 #020610; } .kpi-label { font-size:11px; } .kpi-icon { width:21px; height:21px; } .kpi-value { font-size:clamp(20px,6vw,28px); margin:16px 0 9px; } .kpi-note { font-size:10px; } .pixel-health { padding:15px 12px; } .health-head { gap:9px; } .health-grid { column-gap:12px; } .health-item + .health-item { padding-left:12px; } .health-item:nth-child(3) { padding-left:0; } .health-value { font-size:25px; } .health-title { font-size:14px; } .health-state { font-size:10px; } .report-title-block strong { font-size:13px; } .report-fold > summary { gap:9px; } .fold-indicator { font-size:10px; padding:5px; } }
@media(prefers-reduced-motion:reduce) { button:hover:not(:disabled),button:active:not(:disabled) { transform:none; } }
