*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --shell-bg: #0f172a;
  --shell-surface: #1e293b;
  --shell-border: #334155;
  --shell-text: #f8fafc;
  --shell-muted: #94a3b8;
  --shell-accent: #3b82f6;
  --shell-success: #22c55e;
  --shell-warning: #f59e0b;
  --shell-error: #ef4444;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--shell-bg);
  color: var(--shell-text);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--shell-border);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shell-logo {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-size: 1.1rem;
}

.shell-brand h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.shell-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--shell-muted);
}

.shell-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
}

.status-loading {
  color: var(--shell-warning);
}

.status-managed {
  color: var(--shell-success);
  border-color: rgba(34, 197, 94, 0.35);
}

.status-dev {
  color: var(--shell-accent);
  border-color: rgba(59, 130, 246, 0.35);
}

main {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.shell-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
}

.shell-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--shell-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shell-panel pre {
  margin: 0;
  padding: 0.75rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #0b1220;
  font-size: 0.85rem;
  line-height: 1.5;
}

.shell-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.shell-error h2 {
  color: #fca5a5;
}

.package-host {
  min-height: 320px;
}

.shell-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--shell-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--shell-muted);
}

.shell-footer p {
  margin: 0;
}
