:root {
  --paper: #f6f1e8;
  --card: #fffdf8;
  --ink: #1c1915;
  --mute: #6a6358;
  --line: #ddd4c6;
  --ink-soft: #3a342c;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff, transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
}

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

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.rail {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.logo {
  width: 168px;
  height: auto;
  display: block;
  margin-bottom: 22px;
}

.rail-kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--mute);
}

.rail-help {
  margin: 8px 0 20px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.45;
}

.progress-bar {
  height: 6px;
  background: #ebe4d6;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.25s ease;
}

#progress-label {
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--mute);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
}

.nav button[aria-current="step"] {
  background: var(--ink);
  color: #fff;
}

.nav button.done:not([aria-current="step"]) {
  color: var(--ink);
}

.nav button.done::after {
  content: " ✓";
  color: #2f4f3e;
}

.nav button.needs:not(.done)::after {
  content: " · needs you";
  font-size: 11px;
  color: #8a4b1f;
}

.gap-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  line-height: 1.55;
}

.gap-list li {
  margin: 6px 0;
}

a.btn.solid {
  display: inline-block;
  text-decoration: none;
  margin-top: 8px;
}

.rail-shop {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.rail-shop-label {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--mute);
}

.rail-shop-url {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.25;
}

.rail-shop-url:hover {
  text-decoration: underline;
}

.rail-shop-preview {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.shop-link-card {
  background: var(--ink);
  color: #fffdf8;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.shop-link-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.7;
}

.shop-link-url {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #fffdf8;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.2;
}

.shop-link-url:hover {
  text-decoration: underline;
}

.shop-link-note {
  margin: 10px 0 0;
  opacity: 0.85;
  line-height: 1.45;
  font-size: 0.95rem;
}

.shop-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.shop-link-card .btn.solid {
  background: #fffdf8;
  color: var(--ink);
  margin-top: 0;
}

.shop-link-card .btn.ghost {
  border-color: rgba(255, 253, 248, 0.35);
  color: #fffdf8;
  margin-top: 0;
}

.status-list a {
  color: inherit;
  font-weight: 600;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.quick-picks .chip {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .quick-picks .chip {
    width: 100%;
    justify-content: center;
  }
}

.gap-list li.ok {
  opacity: 0.65;
}

.gap-list li.ok::marker {
  content: "✓ ";
}

.gap-list li.wait::marker {
  content: "→ ";
}

.status-board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.status-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--mute);
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  position: relative;
  padding: 8px 0 8px 1.4em;
  border-top: 1px solid var(--line);
  line-height: 1.45;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.status-list li:first-child {
  border-top: 0;
}

.status-list li.ok::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2f4f3e;
  font-weight: 600;
}

.status-list li.wait::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #8a4b1f;
  font-weight: 600;
}

.status-summary {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.5;
  font-size: 0.98rem;
}

.status-apply {
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-next {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #efe7d8;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.save-status {
  max-width: 280px;
  text-align: center;
}

.stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 48px 24px;
}

.stage-top { max-width: 760px; }

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--mute);
}

h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

.lede {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
  max-width: 62ch;
}

.panel {
  flex: 1;
  max-width: 760px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.hint {
  margin: 0 0 16px;
  color: var(--mute);
  line-height: 1.45;
}

label.field {
  display: block;
  margin-bottom: 14px;
}

label.field span,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  margin-right: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  vertical-align: middle;
}

.row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

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

.checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  padding: 22px 0 8px;
}

.actions-right { display: flex; gap: 8px; }

.btn {
  appearance: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.solid {
  background: var(--ink);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.save-status {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
}

.done-box {
  background: var(--ink);
  color: #fffdf8;
  border-radius: var(--radius);
  padding: 28px;
}

.done-box h2 { color: inherit; margin-top: 0; }

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

.photo-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
}

.photo-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: none; }
  .stage { padding: 22px 18px 16px; }
  .row { grid-template-columns: 1fr; }
  .actions { flex-wrap: wrap; }
}
