:root {
  --bg: #fafaf9; --surface: #ffffff; --sunken: #f4f4f2; --line: #e7e5e4;
  --ink: #1c1917; --muted: #6b655f; --accent: #0f766e; --accent-ink: #ffffff;
  --accent-soft: #ccfbf1; --warn: #b45309; --warn-soft: #fef3c7;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211; --surface: #1c1b19; --sunken: #252321; --line: #34312e;
    --ink: #f5f5f4; --muted: #a8a29e; --accent: #2dd4bf; --accent-ink: #042f2e;
    --accent-soft: #134e4a; --warn: #fbbf24; --warn-soft: #422006;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
p.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 54px; padding: 0 1.6rem; border-radius: 14px; font-weight: 600; font-size: 1.02rem; border: 1px solid transparent; transition: transform 160ms cubic-bezier(.16,1,.3,1), filter 160ms; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.06); }
.btn-line { border-color: var(--line); background: var(--surface); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
header.bar { border-bottom: 1px solid var(--line); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.back { color: var(--muted); font-size: 0.95rem; }
.back:hover { color: var(--ink); }
main { padding: clamp(36px, 6vw, 80px) 0 80px; }
section.part { margin-top: clamp(48px, 7vw, 88px); }
.dl { display: grid; gap: 28px; margin-top: 28px; padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
@media (min-width: 820px) { .dl { grid-template-columns: 1fr auto; align-items: center; } }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.steps { list-style: none; counter-reset: s; margin-top: 28px; }
.steps > li { counter-increment: s; display: grid; gap: 8px 22px; grid-template-columns: 48px 1fr; padding: 26px 0; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; grid-row: span 3; }
.steps p, .steps li > div p { color: var(--muted); max-width: 60ch; margin-top: 4px; }
.steps b { color: var(--ink); font-weight: 600; }
.note { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--warn-soft); color: var(--warn); font-size: 0.95rem; }
.note.ok { background: var(--accent-soft); color: var(--accent); }
.note b { font-weight: 700; }
.shot { margin-top: 14px; max-width: 330px; background: var(--sunken); border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.shot svg { display: block; width: 100%; height: auto; }
.url { font-family: var(--mono); background: var(--sunken); border: 1px solid var(--line); padding: 3px 9px; border-radius: 8px; font-size: 0.92em; word-break: break-all; }
.qr { width: 132px; height: 132px; background: #fff; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
@media print {
  body { background: #fff; color: #111; font-size: 11.5pt; }
  :root { --bg:#fff; --surface:#fff; --sunken:#f4f4f2; --line:#ddd; --ink:#111; --muted:#555; --accent:#0f766e; --accent-ink:#fff; --accent-soft:#ccfbf1; --warn:#8a4207; --warn-soft:#fef3c7; }
  header.bar, .noprint { display: none !important; }
  .steps > li { break-inside: avoid; }
  main { padding: 0; }
}
