
:root { color-scheme: light dark; --bg: #f6f6f4; --fg: #1d1d1b; --muted: #6b6b66; --card: #ffffff;
  --line: #deded8; --accent: #2f6f4f; --accent-fg: #ffffff; --danger: #a33a2c; --warn-bg: #fff4d6; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --fg: #ecece8; --muted: #a2a29b; --card: #20201e; --line: #34342f;
    --accent: #5fae84; --accent-fg: #0d1a13; --danger: #e0715f; --warn-bg: #3a3218; }
}
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 24px; margin: 0 0 8px; } h2 { font-size: 18px; margin: 32px 0 8px; }
p { margin: 8px 0; } .muted { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.warning { background: var(--warn-bg); border-radius: 6px; padding: 8px 12px; }
.notice { border-left: 4px solid var(--accent); padding: 4px 12px; }
.error { border-left: 4px solid var(--danger); padding: 4px 12px; }
.code { font: 600 22px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 2px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
form { margin: 8px 0; } .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=email] { font: inherit; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); min-width: 0; flex: 1; }
button, .button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.danger { color: var(--danger); }
ul.machines { list-style: none; padding: 0; margin: 0; }
ul.machines li { display: flex; gap: 12px; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); }
ul.machines li:first-child { border-top: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand { text-align: center; margin: 8px 0 28px; }
.brand img { display: block; margin: 0 auto; width: 180px; max-width: 60%; height: auto; }
.slogan { margin: 12px 0 0; color: var(--muted); font-size: 16px; letter-spacing: 0.02em; }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0; }
ol.steps > li { counter-increment: step; position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 16px 16px 60px; margin: 12px 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 15px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg);
  font-weight: 700; display: flex; align-items: center; justify-content: center; }
ol.steps h2 { margin: 3px 0 6px; font-size: 18px; }
.qr-box { display: flex; justify-content: center; margin: 12px 0; }
.qr { display: block; width: 240px; max-width: 100%; height: auto; border-radius: 8px;
  background: #ffffff; color: #000000; }
.key { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); font: 600 17px/1.4 ui-monospace, Menlo, monospace; letter-spacing: 1px;
  overflow-wrap: anywhere; user-select: all; }
input.otp { flex: 0 1 9em; font: 600 26px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 4px;
  text-align: center; }
input.user-code { font: 600 22px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 2px;
  text-transform: uppercase; }
.phone-only { display: none; }
@media (pointer: coarse) { .phone-only { display: block; } }
