:root {
  color-scheme: dark;
  --bg: #1f2128;
  --bg-top: #17191f;
  --card: rgba(42, 45, 55, 0.92);
  --card-soft: #23262f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2f7;
  --muted: #a9b1bd;
  --accent: #8ab4ff;
  --accent-strong: #6ea2ff;
  --green: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(138, 180, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  min-height: 100vh;
}

button,
textarea,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: #9fc0ff;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.main-card,
.page-card {
  width: min(100%, 860px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.brand-row,
.field-grid,
.cta-row,
.summary-row,
.section-head,
.inline-actions,
.status-row,
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.intro-copy,
.section-head p,
.provider-notes,
.provider-chip__meta,
.summary-label,
.other-providers,
.summary-kicker,
.quick-prompts__label,
.muted,
.status-badge,
.kicker,
.helper-copy,
.page-card p {
  color: var(--muted);
}

textarea,
select {
  width: 100%;
  background: var(--card-soft);
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea:focus,
select:focus {
  border-color: rgba(138, 180, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(138, 180, 255, 0.12);
  transform: translateY(-1px);
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button {
  border-radius: 999px;
  border: 0;
  padding: 14px 18px;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0d1a30;
}

.secondary-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.ghost-button,
.link-button {
  border: 1px solid var(--border);
}

.status-badge,
.provider-pill,
.small-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-badge.is-auto,
.small-pill.is-auto {
  background: rgba(34, 197, 94, 0.15);
  color: #d8ffe4;
}

.panel,
.summary-card,
.notes-block,
.recommended-block,
.question-card,
.scene-card,
.redirect-card {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 16px;
  }

  .main-card,
  .page-card {
    padding: 20px;
  }

  .brand-row,
  .field-grid,
  .cta-row,
  .summary-row,
  .section-head,
  .inline-actions,
  .status-row,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }
}
