:root {
    color-scheme: dark;
    --bg: #07101b;
    --panel: #0c1826;
    --panel-2: #0f1e2e;
    --line: #1d3348;
    --text: #eff6ff;
    --muted: #8da2b8;
    --accent: #28d8a1;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 20% 0%, rgba(39, 216, 161, .08), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, select { font: inherit; }
.shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 46px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h1 { margin: 5px 0 8px; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; }
h2 { margin: 4px 0 8px; font-size: clamp(1.35rem, 2vw, 2rem); }
p { margin: 0; }
.eyebrow { color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .16em; }
.subtitle, .panel-head p, .note { color: var(--muted); line-height: 1.55; }
button, select {
    border: 1px solid var(--line);
    background: #132437;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 13px;
}
button { cursor: pointer; font-weight: 700; }
button:hover { border-color: var(--accent); }
.panel {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 30, 46, .96), rgba(10, 21, 34, .98));
    box-shadow: 0 20px 70px rgba(0, 0, 0, .24);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.panel-head label, .filters label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.status { min-height: 24px; margin: 12px 0 4px; color: var(--muted); font-size: .9rem; }
.chart-wrap { height: 490px; margin-top: 8px; }
.chart-wrap.large { height: 620px; }
.note { margin: 20px 4px 0; font-size: .83rem; }
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 420px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #132437;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
    .shell { width: min(100% - 20px, 1480px); padding-top: 20px; }
    .hero, .panel-head { flex-direction: column; }
    .hero button { width: 100%; }
    .filters { width: 100%; }
    .filters label { flex: 1 1 180px; }
    .panel { padding: 17px; }
    .chart-wrap, .chart-wrap.large { height: 430px; }
}
