
:root {
  --typeScale: 1;
  --primary: #2e89ff;
  --secondary: #8b93a9;
  --tertiary: #7cf4ff;
  --highlight: #9ae6ff;
  --background: #0f111a;
  --surface: #141826;
  --surfaceVariant: #1a2030;
  --onBackground: #c8d0e0;
  --onSurface: #d7dceb;
  --onPrimary: #ffffff;
  --outline: #2a3247;
  --shadow-soft: 0 6px 24px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; padding: 0;
  background: var(--background);
  color: var(--onBackground);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  font-size: calc(16px * var(--typeScale));
  line-height: 1.5;
}
.container { max-width: 1200px; margin: 0 auto; padding: clamp(16px, 3vw, 28px); display: grid; gap: clamp(12px, 2vw, 20px); }
.header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
h1 { font-size: calc(28px * var(--typeScale)); margin: 0; }
h2 { font-size: calc(22px * var(--typeScale)); margin: 0; }
small, label { opacity: 0.9; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.card {
  background: var(--surface); color: var(--onSurface); border: 1px solid var(--outline);
  border-radius: 16px; padding: clamp(12px, 2vw, 18px); box-shadow: var(--shadow-soft);
}
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 20px); }
.zone-primary { grid-column: span 12; }
.zone-secondary { grid-column: span 6; }
.zone-tertiary { grid-column: span 6; }
@media (min-width: 900px) {
  .zone-primary { grid-column: span 8; }
  .zone-secondary { grid-column: span 4; }
  .zone-tertiary { grid-column: span 12; }
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary); color: var(--onPrimary); border: 1px solid var(--outline);
  padding: calc(10px * var(--typeScale)) calc(14px * var(--typeScale));
  border-radius: 12px; cursor: pointer; font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease; text-decoration: none;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.22); }
.button:active { transform: translateY(0); filter: brightness(0.96); }
.btn-outline { background: transparent; color: var(--onSurface); border-color: var(--outline); }
.kpi { font-size: calc(32px * var(--typeScale)); font-weight: 800; letter-spacing: 0.5px; background: var(--primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
label { font-weight: 600; }
.range { accent-color: var(--highlight); }
.select, .input { background: var(--surfaceVariant); color: var(--onSurface); border: 1px solid var(--outline); border-radius: 10px; padding: 8px 10px; min-width: 180px; }
.spotlight-backdrop { position: fixed; inset: 0; display: none; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--background) 70%, black); place-items: center; z-index: 1000; }
.spotlight-backdrop.open { display: grid; }
.spotlight-panel {
  width: min(760px, 92vw); padding: clamp(16px, 3vw, 32px); border-radius: 20px;
  background: var(--surface); color: var(--onSurface); border: 1px solid var(--outline);
  box-shadow: var(--shadow-soft); transform: scale(1.05); animation: spotlight-in 160ms ease-out;
}
@keyframes spotlight-in { from { opacity: 0; transform: scale(0.96) } to { opacity: 1; transform: scale(1.05) } }
.control-tile { display: grid; gap: 10px; }
.tile { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surfaceVariant); }
hr { border: none; height: 1px; background: var(--outline); opacity: 0.6; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--tertiary); color: var(--onPrimary); font-weight: 700; }
