:root {
  --bg: #f6f5f2; --card: #ffffff; --ink: #1b1d22; --muted: #646a75; --line: #e3e1dc; --soft: #f0eee9;
  --accent: #2f5d50; --accent-ink: #ffffff; --accent-soft: #e4efe9; --warn: #9a5b00; --warn-soft: #fdf3e2;
  --bad: #b3261e; --ok: #2f7a4f; --focus: #7aa693;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416; --card: #1b1e21; --ink: #eceae6; --muted: #9ba1a8; --line: #2d3136; --soft: #23272b;
    --accent: #7fbfa6; --accent-ink: #0f1a16; --accent-soft: #1f2e28; --warn: #f0b451; --warn-soft: #2e2618;
    --bad: #ff8a80; --ok: #7fd1a0; --focus: #7fbfa6; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121416; --card: #1b1e21; --ink: #eceae6; --muted: #9ba1a8; --line: #2d3136; --soft: #23272b;
  --accent: #7fbfa6; --accent-ink: #0f1a16; --accent-soft: #1f2e28; --warn: #f0b451; --warn-soft: #2e2618;
  --bad: #ff8a80; --ok: #7fd1a0; --focus: #7fbfa6; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.brand { font-weight: 650; letter-spacing: -0.01em; font-size: 15px; }
.brand .dot { color: var(--muted); margin: 0 2px; }
.save { font-size: 13px; color: var(--muted); white-space: nowrap; }
.save.ok { color: var(--ok); } .save.err { color: var(--bad); }
.bar { height: 3px; background: var(--line); }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }

.steps { display: flex; gap: 6px; max-width: 720px; margin: 16px auto 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 14px; color: var(--muted); }
.pill .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); font-size: 12px; font-weight: 600; }
.pill.cur { border-color: var(--accent); color: var(--ink); }
.pill.cur .n { background: var(--accent); color: var(--accent-ink); }
.pill.ok .n { background: var(--accent-soft); color: var(--accent); }
.pill.ok .n::after { content: ""; }

main { max-width: 720px; margin: 16px auto 64px; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
@media (min-width: 640px) { .card { padding: 36px 40px; } }
.hero h1 { font-size: 28px; }
h1 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.what { padding-left: 20px; margin: 18px 0; }
.what li { margin: 0 0 10px; }
.check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 24px; margin-bottom: 12px; }

.fields { display: grid; gap: 26px; margin-top: 8px; }
.field .label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-weight: 600; }
.req, .opt { font-size: 12px; white-space: nowrap; }
.req { color: var(--accent); } .opt { color: var(--muted); }
.help { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.field > input, .field > textarea, .field > select, .three input {
  width: 100%; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; }
textarea { resize: vertical; min-height: 88px; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field.need > .label label::after { content: " · still needed"; color: var(--warn); font-weight: 500; font-size: 13px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choice { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.days .choice { min-width: 56px; padding: 8px 10px; }

.colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 10px; }
.swatch input { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.swatch code { font-size: 13px; }

.files { margin-top: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumbs:not(:empty) { margin-bottom: 10px; }
.thumb { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); }
.thumb img, .thumb .ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb .ph { display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.prog { width: 70%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.thumb figcaption { padding: 6px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb figcaption span { display: block; color: var(--muted); }
.bad { color: var(--bad); font-weight: 600; }
.x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.swatch .x { position: static; background: var(--soft); color: var(--muted); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; background: var(--bg); }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .big { font-weight: 600; color: var(--accent); }
.drop .muted { font-size: 13px; }

.rules { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 640px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules > div { padding: 16px; border-radius: 12px; background: var(--soft); }
.rules ul { margin: 0; padding-left: 18px; font-size: 15px; }
.rules li { margin-bottom: 8px; }
.ack { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 600; cursor: pointer; }
.ack input { width: 20px; height: 20px; accent-color: var(--accent); }

.review details { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.review summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; font-weight: 600; }
.review dl { margin: 0; padding: 0 16px 12px; }
.rv { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .rv { grid-template-columns: 220px 1fr; gap: 16px; } }
.rv dt { font-size: 14px; color: var(--muted); }
.rv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv dd.empty { color: var(--warn); }
.warn, .okbox, .nudge { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.warn, .nudge { background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.nudge { margin-top: 20px; }
.okbox { background: var(--accent-soft); }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.btn { text-decoration: none; display: inline-block; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.small { padding: 7px 12px; font-size: 14px; }
