:root {
  --bg: #0b1020;
  --panel: #121a2f;
  --panel2: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255,255,255,0.09);
  --accent: #60a5fa;
  --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #172554 0, var(--bg) 42%, #050816 100%);
  color: var(--text);
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 20px; }
h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.04em; }
p { margin: 0; color: var(--muted); }
.search { display: flex; gap: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 10px; border-radius: 18px; }
input, select, button { border: 0; border-radius: 12px; padding: 13px 14px; font-size: 15px; }
input { min-width: 300px; background: #0f172a; color: var(--text); outline: 1px solid var(--line); }
select { background: #0f172a; color: var(--text); outline: 1px solid var(--line); }
button { background: linear-gradient(135deg, #2563eb, #60a5fa); color: white; font-weight: 700; cursor: pointer; }
.status { margin: 14px 0 20px; padding: 12px 14px; background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.25); border-radius: 14px; color: #bfdbfe; }
.status.error { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #fecaca; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.card, .panel { background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 60px rgba(0,0,0,0.25); }
.card { padding: 18px; min-height: 118px; }
.card span, .card small { display: block; color: var(--muted); }
.card strong { display: block; margin: 8px 0 6px; font-size: 25px; line-height: 1.1; }
.panel { padding: 20px; margin-bottom: 16px; }
.panelHeader { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 14px; }
h2 { margin: 0; letter-spacing: -0.02em; }
.twoCol { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; }
.legend { color: var(--muted); line-height: 1.8; padding-left: 20px; }
.matrix { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; color: var(--text); }
th { color: #cbd5e1; font-weight: 700; }
td { color: var(--muted); }
footer { color: var(--muted); text-align: center; padding: 18px; font-size: 13px; }
@media (max-width: 900px) {
  .hero, .panelHeader { display: block; }
  .search { margin-top: 18px; flex-direction: column; }
  input { min-width: 0; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .twoCol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
