:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(15, 22, 37, 0.86);
  --line: rgba(138, 160, 198, 0.16);
  --text: #e8eefc;
  --muted: #8aa0c6;
  --accent: #73d0ff;
  --accent-2: #4e8cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #17305a 0%, var(--bg) 56%);
  color: var(--text);
}

.shell { max-width: 1240px; margin: 0 auto; padding: 28px 18px 48px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.hero { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.eyebrow { margin: 0 0 8px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); }
.lead { margin: 10px 0 0; color: var(--muted); }
.meta { display: grid; justify-items: end; gap: 8px; color: var(--muted); font-size: 14px; }
.controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
input, select, button {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d1526;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
input:disabled, select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #02111f;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-width: 120px;
}
button:hover { filter: brightness(1.05); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h2 { margin: 0; font-size: 18px; }
canvas { display: block; width: 100%; height: 420px; border-radius: 14px; border: 1px solid var(--line); background: #07101d; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

@media (max-width: 980px) {
  .hero, .section-head { align-items: start; flex-direction: column; }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
