:root { --radius: 4px; --bg: #05070b; --panel: #0a0e14; --border: #1b2430; --accent: #f0a202; --positive: #35d07f; --negative: #ff5c5c; --muted: #7d8a99; --text: #e6edf3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 12px/1.45 ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace; font-variant-numeric: tabular-nums; }
main { max-width: 1600px; padding: 18px 24px; margin: auto; }
header, footer, h2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
h1 { font-size: 19px; letter-spacing: .06em; margin: 0; } h1 span { color: var(--accent); }
p { color: var(--muted); margin: 4px 0 0; }
.status { text-align: right; font-size: 10px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); margin-right: 7px; }
.dot.live { animation: pulse 2s ease-in-out infinite; } .dot.stale { background: var(--accent); }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }
#notice { color: var(--accent); padding: 7px 0; font-size: 11px; min-height: 30px; }
.hero { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.metric, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.metric { padding: 10px 14px; } .label, h2 { text-transform: uppercase; letter-spacing: .13em; font-size: 10px; color: var(--muted); }
.value { font-size: 23px; margin-top: 4px; } .metric:first-child .value { font-size: 30px; line-height: 1.15; } .reference { color: var(--muted); font-size: 10px; margin-top: 4px; }
.positive { color: var(--positive); } .negative { color: var(--negative); }
.middle { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); gap: 10px; margin-bottom: 10px; }
h2 { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--border); font-weight: 500; } h2 span { font-size: 9px; letter-spacing: .03em; }
.chart { height: 140px; padding: 6px 10px; } .chart svg { display: block; width: 100%; height: 100%; } .chart text { fill: var(--muted); font: 10px ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace; }
.chart .grid { stroke: var(--border); stroke-width: 1; } .chart .line { fill: none; stroke: var(--accent); stroke-width: 2; } .chart .area { fill: var(--accent); opacity: .08; }
.table-wrap { overflow: auto; } .positions { max-height: 140px; } .trades { max-height: 190px; }
table { width: 100%; border-collapse: collapse; font-size: 10px; } th, td { padding: 6px 9px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; } th { background: var(--panel); position: sticky; top: 0; color: var(--muted); font-weight: 400; } td:first-child, th:first-child, .text { text-align: left; }
.reason { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; } .empty { color: var(--muted); padding: 24px 12px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 10px; } .stat { padding: 10px 14px; border-right: 1px solid var(--border); } .stat:last-child { border: 0; } .stat .value { font-size: 17px; }
footer { color: var(--muted); font-size: 10px; padding-top: 12px; flex-wrap: wrap; } input { font: inherit; color: var(--text); max-width: 210px; } [hidden] { display: none !important; }
@media (max-width: 1050px) { main { padding: 14px; } .middle { grid-template-columns: 1fr; } .chart { height: 125px; } .positions { max-height: 120px; } .trades { max-height: 180px; } }
@media (max-width: 600px) {
 main { padding: 12px; } header { align-items: flex-start; flex-direction: column; } h1 { font-size: 17px; } .status { text-align: left; } .hero { grid-template-columns: 1fr 1fr; } .metric { padding: 10px; } .value { font-size: 20px; } .metric:first-child .value { font-size: 24px; }
 .middle { grid-template-columns: minmax(0, 1fr); } .chart { height: 175px; } .table-wrap { max-height: none; overflow: visible; } table, tbody, tr, td { display: block; } thead { display: none; } tr { padding: 8px 12px; border-bottom: 1px solid var(--border); } td { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; white-space: normal; text-align: right !important; overflow-wrap: anywhere; } td::before { content: attr(data-label); color: var(--muted); flex-shrink: 0; text-align: left; } .reason { max-width: 190px; white-space: nowrap; } .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-bottom: 1px solid var(--border); } h2 { flex-wrap: wrap; } }
