:root {
  --bg: #f6f3ec; --card: #ffffff; --ink: #1d1b17; --muted: #6b665c; --line: #e6e0d3;
  --brand: #d9532b; --brand-ink: #fff; --accent: #2b6cb0; --ok: #2f855a; --warn: #b7791f;
  --radius: 14px; --shadow: 0 2px 10px rgba(40, 30, 10, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
button, .btn { font: inherit; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--brand); color: var(--brand-ink); cursor: pointer; font-weight: 600; }
button:disabled, .btn.disabled { opacity: .45; cursor: default; }
.btn.quiet { background: #efe9dc; color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 9px; }
input, textarea, select { font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 12px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #efe9dc; font-size: 13px; color: var(--muted); }
.pill.on { background: #fde7df; color: var(--brand); }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; }
p { line-height: 1.7; margin: 8px 0; }
ul, ol { padding-left: 20px; line-height: 1.7; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 14px 60px; }
.wide { max-width: 980px; }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(246, 243, 236, .92); backdrop-filter: blur(8px); padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.stages { display: flex; gap: 4px; margin: 8px 0; }
.stages span { flex: 1; height: 6px; border-radius: 3px; background: #e6e0d3; }
.stages span.done { background: var(--ok); }
.stages span.now { background: var(--brand); }
.choice { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; cursor: pointer; background: #fff; }
.choice.on { border-color: var(--brand); background: #fff6f2; }
.choice b { display: block; }
.thumb { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; display: block; margin: 6px 0; background: #eee; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid .card { margin: 0; padding: 10px; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eee; }
#cz-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: #1d1b17; color: #fff; padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; font-size: 14px; max-width: 90vw; }
#cz-toast.show { opacity: 1; transform: translateX(-50%); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #e6e0d3; margin-right: 3px; }
.dot.on { background: var(--ok); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #eef4fb; color: var(--accent); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.ai-box { border: 1.5px dashed #c9b8f5; background: #f8f5ff; border-radius: 12px; padding: 12px; }
