/* Solvyren live wall — 16:9 / 4K public display */
:root {
  --bg: #05080f;
  --bg-2: #0a1220;
  --panel: rgba(12, 22, 38, 0.86);
  --line: rgba(130, 180, 220, 0.16);
  --text: #e8f0f8;
  --muted: #8ea3b8;
  --dim: #6b7f94;
  --accent: #5ee0c0;
  --accent-2: #7cb8ff;
  --warn: #e3c26b;
  --soon: #6f8498;
  --ok: #5ee0c0;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Sora", "Noto Sans", "Segoe UI", system-ui, sans-serif;
}
html, body { background: var(--bg); color: var(--text); }
body[data-page="live"] {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(94, 224, 192, 0.08), transparent 55%),
    radial-gradient(900px 600px at 110% 0%, rgba(124, 184, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #071018 0%, #05080f 40%, #070b14 100%);
}
body[data-page="live"] .skip { position: absolute; left: -999px; }
body[data-page="live"] .header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1.4rem;
}
body[data-page="live"] .footer,
body[data-page="live"] .site-mobile-navigation { display: none; }

.live-shell {
  box-sizing: border-box;
  width: min(100%, 2400px);
  margin: 0 auto;
  padding: 0.4rem 1.4rem 1.2rem;
  min-height: calc(100dvh - 4.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  aspect-ratio: auto;
}
@media (min-width: 1400px) and (min-aspect-ratio: 16/10) {
  .live-shell { min-height: calc(100dvh - 4.2rem); }
}

.live-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.live-kicker h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.6rem);
  letter-spacing: 0.02em;
  font-weight: 650;
}
.live-kicker .meta {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.7rem + 0.25vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.live-kicker .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
}
.live-kicker .pill i {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok);
  display: inline-block;
}
.live-kicker time { font-family: var(--mono); color: var(--text); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.95rem;
  box-shadow: var(--shadow);
  min-height: 7.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi .label { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.35; }
.kpi .value {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 0.7rem + 1vw, 1.9rem);
  line-height: 1.1;
  font-weight: 650;
  color: #f4fbff;
  overflow-wrap: normal;
  white-space: nowrap;
}
.kpi .sub { color: var(--dim); font-size: 0.72rem; margin-top: 0.25rem; line-height: 1.35; white-space: normal; }
.kpi .sub.note { font-size: 0.66rem; color: var(--soon); margin-top: 0.15rem; }
.kpi.is-stale .value { color: var(--warn); }

.live-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.9fr;
  gap: 0.7rem;
  flex: 1;
  min-height: 0;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem 1rem;
  box-shadow: var(--shadow);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.15rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.blocks { overflow: auto; }
.blocks table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.blocks th, .blocks td {
  text-align: left; padding: 0.42rem 0.3rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.blocks th { color: var(--dim); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.blocks a { color: var(--text); text-decoration: none; }
.blocks a:hover { color: var(--accent); }
.blocks .mono { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

.supply-list, .soon-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.supply-list li, .soon-list li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.5rem;
}
.supply-list .k, .soon-list .k { color: var(--muted); }
.supply-list .v { font-family: var(--mono); font-weight: 650; }
.note { color: var(--dim); font-size: 0.78rem; line-height: 1.45; margin: 0.6rem 0 0; }

.soon-card {
  border: 1px dashed rgba(130, 180, 220, 0.28);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(8, 14, 24, 0.5);
}
.soon-card strong { display: block; margin-bottom: 0.2rem; }
.badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 194, 107, 0.45);
  color: var(--warn);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.soon-card p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.soon-card .blank { font-family: var(--mono); color: var(--soon); font-size: 1.15rem; margin: 0.15rem 0; }

.badge-live {
  border-color: rgba(94, 224, 192, 0.45);
  color: var(--ok);
}
.live-card .badge { margin-bottom: 0.35rem; }
.live-card a { color: var(--accent-2); }

.live-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  color: var(--dim); font-size: 0.75rem;
}
.live-foot a { color: var(--accent-2); }
#live-status[data-state="ok"] { color: var(--ok); }
#live-status[data-state="delayed"] { color: var(--warn); }
#live-status[data-state="down"] { color: #ef8b8b; }

@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="live"] .header { padding: 0.4rem 0.8rem; }
  .live-shell { padding: 0.5rem 0.8rem 4.5rem; }
  body[data-page="live"] .site-mobile-navigation { display: flex; }
}

.live-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(8, 14, 24, 0.5);
}
.live-card strong { display: block; margin-bottom: 0.2rem; }
.live-card .blank {
  font-family: var(--mono);
  color: #f4fbff;
  font-size: clamp(1.05rem, 0.85rem + 0.4vw, 1.45rem);
  margin: 0.1rem 0 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.15;
}
.live-card .unit { margin: 0.15rem 0 0; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.live-card .sub { margin: 0.25rem 0 0; color: var(--dim); font-size: 0.72rem; line-height: 1.35; }
.live-card .note { margin: 0.4rem 0 0; }
.live-card .note.attr, .live-card .note.attr a { color: var(--dim); font-size: 0.68rem; }
.live-card .trend { margin: 0.4rem 0 0; height: 36px; }
.live-card .trend svg { width: 100%; height: 36px; display: block; }
.map-list { list-style: none; margin: 0.35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.map-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.map-list .place { color: var(--text); font-size: 0.82rem; min-width: 0; }
.map-list .count { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); white-space: nowrap; }
.map-list .bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(130, 180, 220, 0.12); overflow: hidden; }
.map-list .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.map-list .empty { color: var(--muted); font-size: 0.8rem; }
