* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { font-weight: 700; }
.brand-sub { color: var(--muted); font-size: 13px; }
.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 16px; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hero h1 { margin: 0 0 4px; font-size: 20px; }
.hero .meta { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface-2); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
.badge.danger { color: var(--danger); border-color: var(--danger); }
.badge.info { color: var(--accent); border-color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline li.done::after { background: var(--ok); }
.timeline li.current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(47,129,247,.25); }
.timeline .t-label { font-weight: 600; }
.timeline .t-at { color: var(--muted); font-size: 13px; }
.timeline li.todo .t-label { color: var(--muted); font-weight: 500; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total { font-weight: 700; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 10px 0; border-top: 1px solid var(--border); }
.items li:first-child { border-top: 0; padding-top: 0; }
.items .name { font-weight: 600; }
.items .sku { color: var(--muted); font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.items .set { color: var(--muted); font-size: 13px; margin-top: 2px; }
.qty { float: right; font-variant-numeric: tabular-nums; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.center { text-align: center; padding: 48px 8px; }
.center h1 { font-size: 20px; margin: 0 0 8px; }
.center p { color: var(--muted); margin: 0 0 16px; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.mock-banner { background: rgba(210,153,34,.12); border: 1px solid var(--warn); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.pay-head { margin: 0 0 12px; }
.plain { margin: 0; }
