.public-shell {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px);
  background: var(--brand-gradient);
  position: relative;
}
.public-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: .8;
  z-index: 0;
}
.public-shell > main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - clamp(48px, 10vw, 112px));
  gap: 16px;
}

.home-hero {
  width: min(1040px, 100%);
}

.home-panel,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: clamp(28px, 5vw, 56px);
}

.home-logo,
.auth-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  display: block;
}

.home-panel h1,
.auth-card h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.auth-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 14px;
}

.home-panel p {
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.protected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.protected-list span {
  background: var(--primary-softest);
  color: var(--primary-dark);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-weight: 600;
  font-size: 13px;
}

.auth-card { width: min(480px, 100%); }

.stack-form { display: grid; gap: 16px; margin-top: 24px; }
.stack-form .primary-button { width: 100%; }

/* =========================================================================
   Phase 7 — Public status page. Clean, customer-facing, light. Reuses the
   app.css .severity.* pills. No internal/infra detail is ever rendered here.
   ========================================================================= */
.status-page {
  width: min(880px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.status-masthead .status-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .14);
  padding: 6px;
}
.status-masthead h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.status-overall {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
}
.status-overall strong { font-size: 18px; color: var(--ink); font-weight: 700; }
.status-overall .status-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); flex: 0 0 12px;
}
.status-overall.status-operational { border-left: 4px solid var(--success); }
.status-overall.status-operational .status-dot { background: var(--success); }
.status-overall.status-degraded { border-left: 4px solid var(--warning); }
.status-overall.status-degraded .status-dot { background: var(--warning); }
.status-overall.status-down { border-left: 4px solid var(--danger); }
.status-overall.status-down .status-dot { background: var(--danger); }
.status-overall.status-maintenance { border-left: 4px solid var(--primary); }
.status-overall.status-maintenance .status-dot { background: var(--primary); }
.status-overall .status-updated {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
}
.status-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-components,
.status-incidents,
.status-updates { list-style: none; margin: 0; padding: 0; }

.status-component { padding: 14px 0; border-top: 1px solid var(--border); }
.status-component:first-child { border-top: 0; padding-top: 0; }
.status-component-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status-component-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.status-component-name strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.status-meta { color: var(--muted); font-size: 13px; }
.status-pill { white-space: nowrap; }

.uptime-bar {
  display: flex;
  gap: 2px;
  margin-top: 12px;
  height: 30px;
  align-items: stretch;
}
.uptime-seg {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 2px;
  background: var(--success);
}
.uptime-seg.ok { background: var(--success); }
.uptime-seg.warn { background: var(--warning); }
.uptime-seg.bad { background: var(--danger); }
.uptime-seg.nodata { background: var(--border-strong); }
.uptime-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.status-empty {
  text-align: center;
  color: var(--muted);
  padding: 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.status-empty.small { padding: 10px; font-size: 13px; margin-top: 10px; }

.status-notice { border-left: 4px solid var(--primary); }
.status-notice-item { padding: 8px 0; }
.status-notice-item strong { color: var(--ink); display: block; }
.status-notice-item p { margin: 6px 0 0; color: var(--body); font-size: 14px; }

.status-incident { padding: 16px 0; border-top: 1px solid var(--border); }
.status-incident:first-child { border-top: 0; padding-top: 0; }
.status-incident.is-resolved { opacity: .72; }
.status-incident > p { margin: 8px 0 0; color: var(--body); font-size: 14px; line-height: 1.6; }
.status-updates { margin-top: 12px; border-left: 2px solid var(--border); padding-left: 14px; }
.status-updates li { margin-bottom: 10px; }
.status-updates li p { margin: 4px 0 0; color: var(--body); font-size: 13.5px; }

.status-foot { text-align: center; color: rgba(255, 255, 255, .8); font-size: 13px; }
.status-foot p { color: rgba(255, 255, 255, .8); }

@media (max-width: 640px) {
  .status-component-row { flex-direction: column; align-items: flex-start; }
  .status-overall .status-updated { margin-left: 0; }
}
