:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: #e5eefb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, .13), transparent 34rem),
    radial-gradient(circle at top right, rgba(16, 185, 129, .10), transparent 28rem),
    #07111f;
}
button, input { font: inherit; }
button, .link-button {
  border: 0;
  border-radius: 10px;
  padding: .72rem 1rem;
  background: #22c55e;
  color: #04130a;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
button:disabled { cursor: not-allowed; opacity: .45; }
.ghost {
  color: #dbeafe;
  background: rgba(148, 163, 184, .10);
  border: 1px solid rgba(148, 163, 184, .22);
}
.shell { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.topbar, .status-card, .section-heading, .publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar { margin-bottom: 2rem; }
.topbar nav { display: flex; gap: .65rem; flex-wrap: wrap; justify-content: flex-end; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { margin-bottom: .6rem; }
.eyebrow {
  margin-bottom: .4rem;
  color: #7dd3fc;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.panel, .status-card, .metrics article {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}
.panel { border-radius: 16px; padding: 1.35rem; margin-top: 1rem; }
.status-card { border-radius: 18px; padding: 1.4rem; }
.status-dot {
  display: inline-block;
  width: .72rem;
  height: .72rem;
  margin-right: .65rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 18px currentColor;
}
.status-card.clean { border-color: rgba(34, 197, 94, .45); }
.status-card.clean .status-dot { background: #22c55e; color: #22c55e; }
.status-card.drift { border-color: rgba(245, 158, 11, .52); }
.status-card.drift .status-dot { background: #f59e0b; color: #f59e0b; }
.status-card.error { border-color: rgba(239, 68, 68, .52); }
.status-card.error .status-dot { background: #ef4444; color: #ef4444; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: 1rem;
}
.metrics article { padding: 1rem 1.15rem; border-radius: 14px; }
.metrics span { display: block; font-size: 1.6rem; font-weight: 800; }
.metrics small { color: #94a3b8; }
.branch {
  border-radius: 999px;
  padding: .4rem .72rem;
  background: rgba(56, 189, 248, .10);
  color: #bae6fd;
  font-size: .83rem;
}
.change-list { display: grid; gap: .7rem; }
.change {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, .72);
}
.change-code {
  align-self: start;
  min-width: 3.2rem;
  border-radius: 7px;
  padding: .3rem .48rem;
  text-align: center;
  color: #fde68a;
  background: rgba(245, 158, 11, .12);
  font-size: .78rem;
  font-weight: 800;
}
.change strong, .change span { display: block; overflow-wrap: anywhere; }
.change span { margin-top: .3rem; color: #a8b5c7; font-size: .9rem; }
.empty { padding: 1.25rem 0; color: #86efac; }
.problem-list {
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, .11);
  color: #fecaca;
}
.problem-list p { margin: .28rem 0; }
.publish-panel > p:not(.eyebrow):not(.message) { color: #a8b5c7; }
.publish-panel label { display: block; margin: 1.1rem 0 .45rem; font-weight: 700; }
.publish-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 10px;
  padding: .78rem .9rem;
  background: rgba(2, 6, 23, .72);
  color: #f8fafc;
}
.publish-row button { flex: 0 0 auto; }
.message { min-height: 1.4rem; margin: .85rem 0 0; color: #fbbf24; }
.message.success { color: #86efac; }
.message.error { color: #fca5a5; }
.login-panel { max-width: 540px; }
.login-form { display: grid; gap: .85rem; }
.login-form label { display: grid; gap: .35rem; }
.login-form input {
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 10px;
  padding: .75rem;
  background: #0b1424;
  color: #fff;
}
.hidden { display: none !important; }
@media (max-width: 700px) {
  .topbar, .status-card, .section-heading, .publish-row { align-items: stretch; flex-direction: column; }
  .topbar nav { justify-content: flex-start; }
  .metrics { grid-template-columns: 1fr; }
  .publish-row button { width: 100%; }
}
