:root {
  --bg: #fff;
  --ink: #202124;
  --sub: #666;
  --line: #e5e5e5;
  --soft: #f7f7f8;
  --accent: #1a56db;
  --ok: #137333;
  --warn: #8a5a00;
  --bad: #c5221f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.8 "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.wrap.wide { max-width: 1000px; }
.brand { font-weight: 700; letter-spacing: -0.01em; color: var(--sub); font-size: 13px; margin-bottom: 16px; }
h1 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.4; margin: 0 0 4px; }
h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 4px; }
.desc { color: var(--sub); margin: 0 0 16px; font-size: 14px; }
section { border-top: 1px solid var(--line); padding: 24px 0; }

.status { border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.status .badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; margin-bottom: 8px; }
.status.ok .badge { color: var(--ok); }
.status.warn .badge { color: var(--warn); }
.status.bad .badge { color: var(--bad); }
.status p { margin: 4px 0 0; color: var(--sub); font-size: 14px; }

dl.info { display: grid; grid-template-columns: 88px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
dl.info dt { color: var(--sub); }
dl.info dd { margin: 0; overflow-wrap: anywhere; }
.product { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.product img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 8px; font: inherit; font-weight: 700;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; width: 100%;
}
.btn.line { background: #fff; color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.small { min-height: 44px; width: auto; padding: 0 16px; }
.actions { display: grid; gap: 12px; margin-top: 20px; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px; background: var(--soft); border-radius: 8px; cursor: pointer; }
label.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.msg { font-size: 14px; color: var(--bad); min-height: 1em; }
a { color: var(--accent); }
.muted { color: var(--sub); font-size: 13px; }
[hidden] { display: none !important; }

/* 첫 화면 QR 스캐너 */
.scanner { position: relative; aspect-ratio: 1; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
ol.steps { margin: 8px 0 12px; padding-left: 20px; font-size: 14px; }
ol.steps li { margin-bottom: 4px; }
