/* Shared compact shell matching the playground UI. */
:root {
  --shell-bg: #fbfbf8;
  --shell-panel: #fff;
  --shell-border: #e5e5e0;
  --shell-text: #141412;
  --shell-muted: #6b7280;
  --shell-accent: #1d4ed8;
  --shell-accent-soft: #dbeafe;
  --shell-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --shell-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  min-height: 100%;
}

body.sc-shell-page {
  margin: 0;
  background: var(--shell-bg);
  color: var(--shell-text);
  font-family: var(--shell-sans);
  line-height: 1.5;
}

.sc-topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--shell-panel);
}

.sc-topbar h1 {
  margin: 0;
  font-family: var(--shell-sans);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.sc-topbar h1 em {
  color: var(--shell-accent);
  font-style: normal;
}

.sc-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
}

.sc-topbar nav a {
  color: var(--shell-muted);
  text-decoration: none;
}

.sc-topbar nav a:hover {
  color: var(--shell-accent);
}

.sc-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: grid;
  gap: 16px;
}

.sc-panel {
  background: var(--shell-panel);
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  padding: 16px;
}

.sc-kicker {
  display: block;
  margin: 0 0 6px;
  color: var(--shell-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sc-panel h2,
.sc-panel h3 {
  font-family: var(--shell-sans);
  letter-spacing: 0;
}

.sc-panel p,
.sc-panel li {
  color: var(--shell-muted);
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sc-chip,
.sc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--shell-border);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--shell-bg);
  color: var(--shell-muted);
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sc-chip:hover {
  border-color: var(--shell-accent);
  color: var(--shell-accent);
}

.sc-tag strong,
.sc-chip strong {
  color: #047857;
  font-weight: 600;
}

.sc-grid {
  display: grid;
  gap: 16px;
}

.sc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sc-card {
  background: var(--shell-panel);
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.sc-card:hover {
  border-color: rgba(29, 78, 216, 0.45);
}

.sc-card h2,
.sc-card h3 {
  margin: 0 0 8px;
  font-family: var(--shell-sans);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--shell-text);
}

.sc-card p {
  margin: 0;
  color: var(--shell-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sc-code {
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: #f4f4f0;
  padding: 14px;
  color: var(--shell-text);
  font-family: var(--shell-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}

@media (max-width: 900px) {
  .sc-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sc-topbar,
  .sc-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}
