:root {
  --bg-field: #080c14;
  --bg-halo: rgba(56, 189, 248, 0.14);
  --surface: #0f1624;
  --surface-elev: #151f33;
  --wall-r: #060a12;
  --wall-b: #03050a;
  --border: #25344f;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
}
body[data-theme="titanium"] {
  --bg-field: #0e131b;
  --bg-halo: rgba(226, 232, 240, 0.12);
  --surface: #161f2d;
  --surface-elev: #1d283a;
  --wall-r: #090e16;
  --wall-b: #05080d;
  --border: #334155;
  --accent: #22d3ee;
}
body[data-theme="signal"] {
  --bg-field: #090d16;
  --bg-halo: rgba(167, 139, 250, 0.16);
  --surface: #121a2d;
  --surface-elev: #1a243d;
  --wall-r: #070b14;
  --wall-b: #04060c;
  --border: #2e3b5e;
  --accent: #a78bfa;
  --emerald: #34d399;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 18%, var(--bg-halo) 0%, transparent 62%), var(--bg-field);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.lock-banner {
  background: #451a03;
  color: #fde68a;
  border-bottom: 1px solid var(--amber);
  padding: 10px 16px;
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
}
.instrument-stage {
  width: 100%;
  padding: clamp(14px, 2vw, 28px) clamp(12px, 2.5vw, 32px) 44px;
}
.master-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
@media (min-width: 2200px) {
  .master-shell { width: min(92vw, 1760px); }
}
.surface-3d {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(16px, 2vw, 24px);
  min-width: 0;
  box-shadow: 6px 6px 0 var(--wall-r), 10px 10px 0 var(--wall-b);
}
.top-console-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
}
.brand-cluster { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-weight: 800; letter-spacing: 0.06em; font-size: 0.96rem; color: var(--text); }
.brand-sub { color: var(--muted); font-size: 0.84rem; }
.top-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-protocol-bridge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--surface-elev);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--wall-b);
}
.monolith-kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
h1 { margin: 8px 0 10px; font-size: clamp(1.38rem, 2.3vw, 2.05rem); line-height: 1.2; }
h2 { margin: 4px 0 0; font-size: 1.2rem; }
h3 { margin: 4px 0 2px; font-size: 1.04rem; }
.monolith-lead { color: #cbd5e1; max-width: 74ch; margin: 0 0 14px; }
.telemetry-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.filter-rack { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-btn {
  background: var(--surface-elev);
  color: #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--wall-b);
}
.filter-btn.is-active {
  background: var(--accent);
  color: #080c14;
  border-color: var(--accent);
}
.count-chip { color: var(--accent); font-weight: 700; font-size: 0.86rem; margin-left: 4px; }
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.release-card {
  position: relative;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  box-shadow: 4px 4px 0 var(--wall-b);
}
.cover-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-verified {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid var(--emerald);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.76rem;
  font-weight: 700;
}
.chip-meta {
  background: #0b1222;
  color: #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.76rem;
  font-weight: 700;
}
.release-meta { color: var(--muted); font-size: 0.86rem; }
.release-bio { color: #cbd5e1; font-size: 0.9rem; margin: 0; }
.release-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.btn-primary, .btn-secondary, .btn-qr {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #080c14; border: 1px solid var(--accent); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-qr { background: #0b1222; color: var(--emerald); border: 1px solid var(--emerald); }
.qr-drawer {
  margin-top: 8px;
  padding: 10px;
  background: #080c14;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.qr-img { max-width: 180px; width: 100%; height: auto; border-radius: 4px; display: block; margin: 0 auto 6px; }
.qr-caption { color: var(--muted); font-size: 0.78rem; margin: 0; }
.steps-list { margin: 8px 0 0 18px; color: #cbd5e1; }
.console-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}
.footer-note { color: var(--muted); font-size: 0.84rem; }
.theme-dock { display: flex; align-items: center; gap: 8px; }
.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid #475569;
  cursor: pointer;
  padding: 0;
}
.theme-swatch[data-theme-id="obsidian"] { background: #38bdf8; }
.theme-swatch[data-theme-id="titanium"] { background: #e2e8f0; }
.theme-swatch[data-theme-id="signal"] { background: #a78bfa; }
.theme-swatch.is-active { border-color: #ffffff; box-shadow: 0 0 0 2px #080c14, 0 0 0 4px var(--accent); }
.empty-state { color: var(--muted); }
