@font-face {
  font-family: "Manrope";
  src: url("../assets/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080a0b;
  --surface: #141718;
  --surface-2: #1c2022;
  --line: #24282a;
  --line-strong: #34393c;
  --grid: #1c2022;
  --text: #eef1ef;
  --muted: #a4aeb1;
  --mint: #7ce8bf;
  --mint-hover: #a8f1d5;
  --on-mint: #06140f;
  --amber: #f2bd6b;
  --red: #ff9486;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: linear-gradient(180deg, #111517 0, var(--bg) 360px) no-repeat, var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
img { display: block; }
p { margin: 0 0 10px; }
button, select, input { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button, select { min-height: 44px; }
button, summary, select { cursor: pointer; }
::selection { background: #2c5b4b; color: #fff; }

button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 18px;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease;
}
button:hover { background: #232b30; border-color: #4a565d; color: var(--text); }

a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* Top bar */
.topbar {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; border-radius: 6px; }
.brand-full { width: 165px; height: 30px; }
.brand-compact { display: none; align-items: center; gap: 10px; }
.brand-compact img { width: 28px; height: 28px; flex-shrink: 0; }
.wordmark { font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.wordmark b { font-weight: 700; }
.topbar-end { display: flex; align-items: center; gap: 12px; }
.demo {
  border: 1px solid #3a6b5a;
  color: var(--mint);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.home-link:hover { background: #262a2d; }

/* Layout */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}
.venue { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 14px; line-height: 1.3; margin-bottom: 28px; padding: 0 6px; }
.venue small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.venue-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-weight: 700;
}
nav { display: grid; gap: 4px; }
nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
nav a:hover { background: var(--surface); color: var(--text); }
nav .active { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.aside-note { margin-top: auto; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--muted); }
.aside-note strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 650; }
.aside-note p { margin: 0; }
.reset { margin-top: 12px; width: 100%; font-size: 13px; background: transparent; }

main { width: 100%; max-width: 1000px; justify-self: center; padding: 32px 40px 40px; min-width: 0; }

/* Heading */
.heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
h1 { font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.025em; }
h2 { font-size: 19px; line-height: 1.3; margin: 0 0 2px; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 14px; margin: 0; font-weight: 650; }
.heading p { color: var(--muted); font-size: 15px; margin: 0; }
.section-head p { color: var(--muted); font-size: 13px; margin: 0; }
.date { text-align: right; font-size: 13px; font-weight: 600; white-space: nowrap; }
.date small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 36px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.notice-tag {
  flex-shrink: 0;
  padding: 2px 10px;
  border: 1px solid #3a6b5a;
  border-radius: 999px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 650;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }

select {
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
  padding: 8px 36px 8px 12px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a4aeb1' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
select:hover { border-color: #4a565d; }
option { background: var(--surface); color: var(--text); }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metrics > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.metrics span { font-size: 12px; font-weight: 600; color: var(--muted); }
.metrics strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metrics small { display: block; font-size: 12px; color: var(--muted); }
.metrics .positive { color: var(--mint); }

/* Chart */
.chart-area {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  padding: 20px 22px 14px;
}
.chart-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chart-title span { font-size: 12px; color: var(--muted); }
.chart {
  position: relative;
  height: 200px;
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding-top: 20px;
  background: repeating-linear-gradient(to top, transparent 0, transparent 39px, var(--grid) 39px, var(--grid) 40px) 0 0 / 100% calc(100% - 28px) no-repeat;
}
.chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 1px; background: var(--line-strong); }
.bar-column { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; position: relative; padding-bottom: 28px; }
.bar { width: min(100%, 48px); background: var(--mint); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-label { position: absolute; bottom: 4px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.bar-value { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-details { font-size: 12px; margin-top: 12px; color: var(--muted); }
summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; color: var(--text); border-radius: 6px; }
summary:hover { color: var(--mint); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 4px; }
th, td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); }
td { color: var(--text); }
td:last-child, th:last-child { text-align: right; }

/* Alerts */
#alerts { margin-top: 40px; }
.count {
  font-size: 12px;
  font-weight: 650;
  color: var(--amber);
  border: 1px solid #5a4626;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 16px; }
.filters label { flex-direction: column; align-items: stretch; gap: 6px; }
.filters .search { flex: 1 1 260px; max-width: 440px; }
.search input {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.search input:hover { border-color: #4a565d; }
.search input::placeholder { color: #7f8a8e; }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }

.alert-list { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; }
.alert-row {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.alert-row:last-child { border-bottom: 0; }
.signal { align-self: stretch; width: 3px; border-radius: 2px; background: var(--amber); }
.signal.high { background: var(--red); }
.signal.done { background: #3f6e5e; }
.alert-row h3 { font-size: 15px; letter-spacing: -.01em; }
.alert-row p { font-size: 13px; margin: 4px 0 0; color: var(--muted); }
.alert-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.alert-meta strong {
  padding: 1px 9px;
  border: 1px solid #3a6b5a;
  border-radius: 999px;
  font-weight: 650;
  color: var(--mint);
}
.alert-meta strong.normal { color: var(--amber); border-color: #5a4626; }
.alert-meta strong.high { color: var(--red); border-color: #6a3a34; }
.detail-button { font-size: 13px; white-space: nowrap; }
.hint { font-size: 12px; color: var(--muted); margin: 14px 0; }
.empty { padding: 40px 24px; text-align: center; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13px; max-width: 40em; margin: 0 auto; }

main > footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

/* Dialog */
dialog {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 16px; }
.close { font-size: 13px; }
dialog h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
dialog > p { font-size: 14px; margin: 12px 0; }
dialog > p.hint { font-size: 12px; }
.muted { color: var(--muted); }
.recommendation { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.recommendation p { font-size: 14px; margin: 6px 0 0; }
.primary { width: 100%; background: var(--mint); color: var(--on-mint); border-color: var(--mint); font-weight: 700; }
.primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); color: var(--on-mint); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 16px; background: var(--mint); color: var(--on-mint); font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }

@media (min-width: 1450px) {
  main { padding: 40px 48px 48px; }
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 208px minmax(0, 1fr); }
  main { padding: 28px 24px 32px; }
  .metrics { gap: 10px; }
  .metrics > div { padding: 16px 14px; }
  .metrics strong { font-size: 22px; }
  .date { display: none; }
  .section-head label { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 760px) {
  .topbar { height: 56px; padding: 0 16px; }
  .brand-full { display: none; }
  .brand-compact { display: flex; }
  .home-link { display: none; }
  .demo { font-size: 11px; padding: 3px 9px; }
  .shell { display: block; }
  aside { position: static; height: auto; overflow: visible; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); }
  .venue { margin: 0 0 10px; padding: 0; font-size: 13px; }
  .venue-icon { display: none; }
  nav { display: flex; overflow-x: auto; gap: 6px; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { font-size: 13px; padding: 8px 14px; white-space: nowrap; border-color: var(--line); }
  .aside-note { display: none; }
  .reset { margin-top: 10px; width: auto; }
  main { padding: 24px 16px 28px; }
  h1 { font-size: 26px; }
  .notice { margin: 18px 0 28px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-head label { width: 100%; }
  .section-head select { width: 100%; }
  select { font-size: 16px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metrics > div { padding: 14px; }
  .metrics strong { font-size: 21px; }
  .chart-area { margin-top: 8px; padding: 18px 12px 12px; }
  .chart-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .chart { gap: 8px; }
  .filters { gap: 12px; }
  .filters label { flex: 1 1 140px; min-width: 0; }
  .filters select { width: 100%; }
  .filters .search { flex: 1 1 100%; max-width: none; }
  .search input { font-size: 16px; }
  .alert-row { grid-template-columns: 3px minmax(0, 1fr); gap: 12px 14px; padding: 16px 14px 16px 12px; }
  .signal { grid-row: span 2; }
  .detail-button { grid-column: 2; justify-self: start; }
  main > footer { display: block; }
  main > footer span { display: block; margin-top: 4px; }
  dialog { padding: 20px; }
  dialog h2 { font-size: 20px; }
}

@media (max-width: 400px) {
  .topbar { gap: 10px; }
  .wordmark { font-size: 13px; }
  .brand-compact { gap: 8px; }
  .demo-prefix { display: none; }
  .metrics > div { padding: 14px 10px; }
  .metrics strong { font-size: 18px; }
  .chart { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.overview-links{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 30px}.overview-links a{display:flex;flex-direction:column;gap:10px;padding:22px;background:#141b18;border:1px solid #33483d;border-radius:14px;text-decoration:none;color:#edf3f1}.overview-links a:hover{border-color:#7ce8bf}.overview-links span{font-size:10px;letter-spacing:.12em;color:#7ce8bf}.overview-links strong{font-size:20px;font-weight:500}.overview-links small{color:#a4aeb1;font-size:12px}@media(max-width:700px){.overview-links{grid-template-columns:1fr}}
