:root {
  color-scheme: light;
  --bg: #f7f3ee;
  --panel: #ffffff;
  --text: #241f1f;
  --muted: #746c66;
  --line: #ded5cc;
  --accent: #1f7a68;
  --accent-strong: #176452;
  --accent-soft: #e1f2ee;
  --danger: #a13e4c;
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.2;
}

.step-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.step {
  display: block;
}

.message {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(161, 62, 76, 0.3);
  border-radius: 8px;
  background: #fff3f5;
  color: var(--danger);
}

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

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

.choice-button,
.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.choice-button {
  width: 100%;
  padding: 13px 14px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.choice-button strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.choice-button span {
  color: var(--muted);
  font-size: 14px;
}

.summary {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  line-height: 1.55;
}

.info-content {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.info-content p,
.empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.info-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.info-card strong {
  font-size: 16px;
}

.info-card span {
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
}

.primary-button {
  width: 100%;
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-link {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.secondary-button {
  padding: 0 16px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.footer-nav {
  margin-top: 18px;
}

.success p {
  color: var(--muted);
  line-height: 1.5;
}

@media (hover: hover) {
  .choice-button:hover,
  .secondary-button:hover {
    border-color: var(--accent);
  }

  .primary-button:hover {
    background: var(--accent-strong);
  }

  .primary-link:hover {
    background: var(--accent-strong);
  }
}
