:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(15, 29, 48, .86);
  --panel-strong: #10233b;
  --line: rgba(170, 199, 230, .14);
  --text: #f5f8fc;
  --muted: #9eb0c4;
  --accent: #4bd8c6;
  --accent-2: #7b8cff;
  --warning: #ffc46b;
  --danger: #ff7b8a;
  --success: #73dfaa;
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 78% -10%, rgba(68, 105, 180, .22), transparent 34%), var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
.app { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.rail { padding: 24px 18px; border-right: 1px solid var(--line); background: rgba(5, 14, 26, .8); backdrop-filter: blur(18px); position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; margin: 2px 8px 34px; font-weight: 750; letter-spacing: -.02em; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #06121e; font-weight: 900; }
.product { display: block; font-size: .78rem; color: var(--muted); font-weight: 550; margin-top: 2px; }
.nav { display: grid; gap: 5px; }
.nav button { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; background: transparent; padding: 11px 12px; border-radius: 12px; color: var(--muted); cursor: pointer; text-align: left; }
.nav button:hover, .nav button.active { color: var(--text); background: rgba(123, 140, 255, .13); }
.nav .icon { width: 18px; text-align: center; opacity: .8; }
.rail-foot { position: absolute; bottom: 24px; left: 26px; right: 26px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--success); margin-bottom: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.main { padding: 30px 34px 48px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.045em; line-height: 1.05; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.search { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); min-width: 220px; padding: 11px 14px; border-radius: 12px; }
.primary, .secondary { border-radius: 12px; padding: 11px 15px; cursor: pointer; font-weight: 700; }
.primary { border: 0; color: #06121e; background: var(--accent); }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.two { grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); }
.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18, 38, 62, .92), rgba(11, 24, 41, .84)); box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.metric-label, .meta { color: var(--muted); font-size: .78rem; }
.metric-value { display: block; margin-top: 10px; font-size: 1.55rem; letter-spacing: -.035em; font-weight: 760; }
.delta { color: var(--success); font-size: .82rem; margin-top: 5px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 16px; }
.card h2 { font-size: 1rem; margin: 0; letter-spacing: -.015em; }
.pill { border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 0; }
.item-title { font-weight: 680; margin-bottom: 4px; }
.item-copy { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.tag { font-size: .72rem; border-radius: 8px; padding: 5px 8px; background: rgba(75,216,198,.11); color: var(--accent); }
.tag.warn { color: var(--warning); background: rgba(255,196,107,.1); }
.tag.danger { color: var(--danger); background: rgba(255,123,138,.1); }
.bar { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); margin-top: 10px; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.chart { height: 168px; position: relative; display: flex; align-items: end; gap: 9px; padding-top: 15px; border-bottom: 1px solid var(--line); }
.chart span { flex: 1; min-width: 8px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(75,216,198,.88), rgba(123,140,255,.3)); }
.section { display: none; }
.section.active { display: block; animation: reveal .18s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.empty { min-height: 340px; display: grid; place-items: center; text-align: center; }
.empty p { max-width: 460px; color: var(--muted); line-height: 1.6; }
.notice { margin-top: 16px; border-left: 3px solid var(--warning); padding: 12px 14px; border-radius: 8px; background: rgba(255,196,107,.07); color: #d9c39f; font-size: .82rem; line-height: 1.5; }

@media (max-width: 980px) {
  .app { grid-template-columns: 82px minmax(0,1fr); }
  .rail { padding-inline: 12px; }
  .brand { margin-left: 10px; }
  .brand-copy, .nav .label, .rail-foot { display: none; }
  .nav button { justify-content: center; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .app { display: block; }
  .rail { position: fixed; height: 68px; left: 0; right: 0; bottom: 0; top: auto; z-index: 10; padding: 8px 10px; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; }
  .brand, .rail-foot { display: none; }
  .nav { display: flex; min-width: max-content; }
  .nav button { width: 54px; padding: 10px; }
  .main { padding: 22px 16px 92px; }
  .topbar { align-items: flex-start; }
  .search { display: none; }
  .two { grid-template-columns: 1fr; }
  .metrics { gap: 10px; }
  .card { padding: 17px; border-radius: 17px; }
}
