:root {
  --bg: #121416;
  --bg2: #1a1d21;
  --card: #22262b;
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f4f6f8;
  --muted: #9aa3ad;
  --accent: #5eead4; /* mint/teal */
  --accent-dim: rgba(94, 234, 212, 0.14);
  --park: #8b93a0;
  --hold: #fbbf24;
  --healthy: #5eead4;
  --off: #6b7280;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  font-family: "Inter", "SF Pro Text", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; line-height: 1.45; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede { margin: 0; max-width: 36rem; color: var(--muted); font-size: 0.95rem; }

.asof {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.kpi {
  background: linear-gradient(180deg, #262b31 0%, var(--card) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
  min-height: 118px;
}

.kpi .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 10px;
}

.kpi .value {
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 8px;
}

.kpi .delta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.kpi .delta.accent { color: var(--accent); }

.panel {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 2px);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.panel-head { margin-bottom: 12px; }
.panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.panel-head .sub { margin: 0; color: var(--muted); font-size: 12px; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding: 8px 2px 0;
  overflow-x: auto;
}

.bar-col {
  flex: 1 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 18px;
}

.bar {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, var(--accent), #2dd4bf);
  border-radius: 6px 6px 3px 3px;
  min-height: 3px;
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.25);
}

.bar-label {
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
}

.bar-n {
  font-size: 10px;
  color: var(--text);
  margin-bottom: 4px;
  opacity: 0.8;
}

.rooms, .changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.room, .ship {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.room-name { font-weight: 700; margin: 0; }
.room-owner { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.room-flips { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-park, .pill-pass, .pill-wait, .pill-fail, .pill-off, .pill-draft {
  color: #d1d5db;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}
.pill-hold {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}
.pill-on, .pill-live, .pill-active, .pill-healthy {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(94, 234, 212, 0.35);
}

.ship-name { margin: 0; font-weight: 650; }
.ship-meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.ship a { color: var(--accent); text-decoration: none; }
.ship a:hover { text-decoration: underline; }

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 2px;
}

.honesty {
  margin-top: 18px;
  padding: 14px 4px;
  color: var(--muted);
  font-size: 12px;
}
.honesty strong { color: var(--text); }
.honesty a { color: var(--accent); }
.honesty .meta { margin: 8px 0; }
.honesty .lock { margin: 0; opacity: 0.85; }
