:root {
  --bg: #fdf8f3; --card: #fff; --text: #2b211b; --muted: #7a6a5f;
  --accent: #c2410c; --accent-text: #fff; --line: #eadfd5; --ok: #15803d; --err: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1714; --card: #27201c; --text: #f5ece5; --muted: #b3a296;
          --accent: #f97316; --accent-text: #1c1714; --line: #3b3029; --ok: #4ade80; --err: #f87171; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, sans-serif; background: var(--bg); color: var(--text); }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
header { padding: 16px; background: var(--accent); color: var(--accent-text); }
header h1 { margin: 0; font-size: 1.4rem; }
header p { margin: 4px 0 0; opacity: .9; font-size: .9rem; }
h2 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); font-size: .9rem; }
.off { opacity: .5; }
button { font: inherit; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer;
         background: var(--accent); color: var(--accent-text); min-height: 44px; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: not-allowed; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 44px; padding: 0; }
input, textarea, select { font: inherit; width: 100%; padding: 10px; border-radius: 8px; min-height: 44px;
         border: 1px solid var(--line); background: var(--card); color: var(--text); }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px; }
.bar .row { max-width: 720px; margin: 0 auto; }
.error { color: var(--err); margin: 8px 0; }
.steps { list-style: none; padding: 0; }
.steps li { padding: 10px 0 10px 32px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; border: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.new { border-color: var(--accent); border-width: 2px; }
