:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --panel: #ffffff;
  --panel-muted: #f8fafc;
  --border: #d8dee9;
  --text: #10203a;
  --text-muted: #4e617f;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --success-soft: #dcfce7;
  --warning-soft: #fef3c7;
  --danger-soft: #fee2e2;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eff4fb 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 32px 20px 48px;
}

.frame {
  max-width: 1100px;
  margin: 0 auto;
}

.card,
.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card,
.hero {
  padding: 28px;
}

.hero {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stack {
  display: grid;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-muted);
  border: 1px solid var(--border);
  font-weight: 600;
}

.pill.success {
  background: var(--success-soft);
}

.pill.warning {
  background: var(--warning-soft);
}

.pill.error {
  background: var(--danger-soft);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  color: var(--text-muted);
}

.nav a.active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.section-title {
  display: grid;
  gap: 6px;
}

.key-value {
  display: grid;
  gap: 10px;
}

.key-value div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.key-value dt {
  min-width: 130px;
  font-weight: 700;
  color: var(--text);
}

.key-value dd {
  margin: 0;
  color: var(--text-muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.table tr:last-child td {
  border-bottom: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.code {
  overflow-x: auto;
  padding: 16px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.muted {
  color: var(--text-muted);
}

.banner {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-muted);
  border: 1px solid var(--border);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16a34a;
}

@media (max-width: 720px) {
  .shell {
    padding: 20px 14px 32px;
  }

  .card,
  .hero {
    padding: 22px;
  }
}
