:root {
  color-scheme: light;
  --bg: #f2f2f7; --card: #fff; --text: #1c1c1e; --muted: #6b6b70; --line: #e3e3e8;
  --accent: #169957; --accent-soft: #e6f5ed; --danger: #c62828;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; }
main { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 22px; line-height: 1.35; margin: 0 0 4px; }
h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 24px 4px 8px; }
.card { background: var(--card); border-radius: 16px; padding: 4px 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row > span:first-child { flex: 1; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.note { color: var(--muted); font-size: 13px; margin: 8px 4px 0; }
.error { color: var(--danger); font-size: 14px; margin: 8px 4px 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.pick { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.pick:first-child { border-top: 0; }
.pick.add { color: var(--accent); }
.primary { display: block; width: 100%; margin-top: 24px; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; font-size: 17px; }
.primary:disabled { opacity: .5; }
.link { background: none; border: 0; color: var(--accent); padding: 12px 4px; }
input[type=text], input[type=number], textarea { font: inherit; color: inherit; background: none; border: 0; outline: 0; width: 100%; padding: 6px 0; }
input[type=number] { width: 72px; text-align: right; }
textarea { resize: vertical; min-height: 44px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: none; font-size: 20px; line-height: 1; }
.stepper b { min-width: 2.5em; text-align: center; }
.done { background: var(--accent-soft); border-radius: 16px; padding: 20px 16px; text-align: center; margin-top: 16px; }
.done strong { display: block; font-size: 18px; color: var(--accent); margin-bottom: 4px; }
.seg { display: flex; gap: 6px; background: var(--card); border-radius: 14px; padding: 6px; }
.seg button { flex: 1; padding: 10px 0; border: 0; border-radius: 10px; background: none; }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
