:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: rgba(16, 19, 27, 0.86);
  --panel-strong: rgba(21, 26, 38, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eff3fb;
  --muted: #97a2ba;
  --accent: #72f0cc;
  --accent-2: #8cb6ff;
  --warn: #f7c76c;
  --danger: #ff7d7d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top left, #1a2030 0, #090b10 48%); color: var(--text); font-family: Inter, "Segoe UI", system-ui, sans-serif; }
body { min-height: 100vh; }
button, input, select { font: inherit; }

.ambient {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.25;
  pointer-events: none;
}
.ambient-a { background: #73f0cb; top: -8rem; right: -8rem; }
.ambient-b { background: #8fb7ff; bottom: -10rem; left: -10rem; }

.shell {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.96), rgba(14, 18, 26, 0.88));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.76rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 0.98; max-width: 14ch; }
.lede { margin-bottom: 0; color: var(--muted); max-width: 64ch; }

.hero-meta { display: grid; gap: 10px; min-width: 220px; }
.hero-chip {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(114, 240, 204, 0.12);
  border: 1px solid rgba(114, 240, 204, 0.28);
  color: var(--accent);
  font-weight: 600;
}
.hero-chip.subtle { color: var(--accent-2); background: rgba(140, 182, 255, 0.1); border-color: rgba(140, 182, 255, 0.24); }

.panel, .tabs, .filters, .cards, .view {
  margin-top: 18px;
}

.panel, .view, .cards, .filters, .tabs {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.panel { padding: 24px; }
.login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

label { display: grid; gap: 8px; color: var(--muted); font-size: 0.94rem; }
input, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}
button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061019;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}
.tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}
.tab.active {
  background: rgba(114, 240, 204, 0.12);
  border-color: rgba(114, 240, 204, 0.28);
  color: var(--text);
}

.filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}
.card {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
}
.card .label { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.card .value { font-size: clamp(1.5rem, 2vw, 2.4rem); font-weight: 800; }
.card .hint { margin-top: 8px; color: var(--muted); font-size: 0.82rem; }

.view {
  padding: 18px;
}

.section {
  display: grid;
  gap: 14px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel-strong);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
tr:last-child td { border-bottom: 0; }

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.timeline {
  display: grid;
  gap: 10px;
}
.timeline-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

.muted { color: var(--muted); }
.error { color: var(--danger); }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .filters, .cards, .grid-3, .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shell { width: min(100vw - 20px, 1200px); padding-top: 18px; }
  .hero { flex-direction: column; align-items: start; }
  .login-form, .filters, .cards, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

