:root {
  --bg-top: #07111f;
  --bg-bottom: #13263f;
  --panel: rgba(8, 16, 29, 0.88);
  --panel-border: rgba(154, 186, 214, 0.3);
  --text: #edf3f8;
  --muted: #b7c7d8;
  --accent: #e2a94b;
  --accent-strong: #f7c15f;
  --danger: #f0a3a3;
  --button: #17314e;
  --button-hover: #21446c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(226, 169, 75, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  margin-bottom: 24px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.step-label {
  color: var(--muted);
  margin-bottom: 0;
}

.screen {
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.panel-error {
  border-color: rgba(240, 163, 163, 0.5);
}

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

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(183, 199, 216, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 14px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--button);
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

button:hover,
button:focus-visible {
  background: var(--button-hover);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  background: rgba(23, 49, 78, 0.45);
  color: rgba(236, 243, 248, 0.68);
}

button:disabled:hover,
button:disabled:focus-visible {
  transform: none;
  background: rgba(23, 49, 78, 0.45);
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--button);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.actions a:hover,
.actions a:focus-visible {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.actions a.button-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #26180a;
}

.actions a.button-accent:hover,
.actions a.button-accent:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong), #ffd288);
}

.actions pre {
  text-decoration: none;
}

.choice-button,
.button-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.button-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #26180a;
}

.button-accent:hover,
.button-accent:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong), #ffd288);
}

.choice-list {
  display: grid;
  gap: 14px;
}

.choice-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(226, 169, 75, 0.25);
}

.choice-card-readonly {
  border-color: rgba(183, 199, 216, 0.22);
}

.choice-readonly-state {
  width: 100%;
  border: 1px solid rgba(183, 199, 216, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: default;
}

.choice-meta,
.summary-list {
  color: var(--muted);
}

.summary-list {
  padding-left: 18px;
  margin: 0;
}

.summary-list li + li {
  margin-top: 8px;
}

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

.microcopy {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 920px);
    padding-top: 20px;
  }

  .panel {
    padding: 16px;
  }
}
