:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #101417; color: #e9eef0; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #101417; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid #303a3d; padding-bottom: 24px; }
.eyebrow { color: #83b6a8; font-size: 11px; letter-spacing: 1px; }
h1 { margin: 7px 0 0; font-size: clamp(22px, 4vw, 34px); font-weight: 650; letter-spacing: 0; }
h2 { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: #b7c4c7; }
.status { border: 1px solid #4d6c62; color: #9ad1bc; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.reset-current { height: 32px; border: 1px solid #71303a; border-radius: 8px; background: #2a1116; color: #ff9baa; padding: 0 11px; cursor: pointer; }
.reset-current:disabled { opacity: .55; cursor: not-allowed; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 24px 0; background: #303a3d; border: 1px solid #303a3d; }
.metrics div { background: #171d20; padding: 18px; min-width: 0; }
.metrics span { display: block; color: #859397; font-size: 12px; margin-bottom: 9px; }
.metrics strong { display: block; overflow-wrap: anywhere; font-size: 22px; font-weight: 600; }
.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
article, .chart-panel { border-top: 1px solid #536165; padding: 20px 0; }
.selected { display: flex; flex-wrap: wrap; gap: 8px; }
.selected span { border: 1px solid #58766d; color: #b4e5d2; padding: 9px 11px; font-family: ui-monospace, monospace; font-size: 13px; }
.position { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; padding: 10px 0; border-bottom: 1px solid #293236; font-family: ui-monospace, monospace; font-size: 13px; }
.position small { color: #839195; }
.chart-panel { margin-top: 8px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.chart-head h2 { margin: 0; }
.ranges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ranges button { min-width: 48px; height: 32px; border: 1px solid #29364b; border-radius: 8px; background: #151c28; color: #8fa0bd; cursor: pointer; }
.ranges button:hover { border-color: #426b9c; color: #c7ddf8; }
.ranges button.active { border-color: #2d6fb2; background: #12345a; color: #d7ebff; }
.chart-wrap { position: relative; width: 100%; }
#chart { width: 100%; height: 340px; display: block; background: #111827; border: 1px solid #29364b; }
.chart-tooltip { position: absolute; display: none; z-index: 2; width: 178px; padding: 10px 12px; border: 1px solid #cfd5de; border-radius: 6px; background: #f8fafc; color: #3f4752; box-shadow: 0 8px 24px rgba(0,0,0,.24); pointer-events: none; font-size: 12px; }
.chart-tooltip.visible { display: grid; gap: 5px; }
.chart-tooltip strong { font-size: 13px; }
.chart-tooltip span { display: block; }
footer { color: #748084; font-size: 12px; padding-top: 14px; }
@media (max-width: 700px) { main { width: min(100% - 24px, 1180px); padding-top: 22px; } header { display: block; } .header-actions { margin-top: 16px; } .metrics { grid-template-columns: repeat(2, 1fr); } .layout { grid-template-columns: 1fr; gap: 0; } .chart-head { align-items: flex-start; flex-direction: column; } .ranges { justify-content: flex-start; } #chart { height: 300px; } }
