:root {
  --bg: #0b0d12;
  --card: #161a22;
  --line: #262c38;
  --text: #f3f5f8;
  --muted: #9aa3b2;
  --accent: #00ff79;
  --accent-ink: #04140b;
  --warn: #ffb84d;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
.wrap { max-width: 480px; margin: 0 auto; padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); }
.brand { text-align: center; margin: 4px 0 18px; }
.logo { height: 44px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 6px 0 10px; text-align: center; }
.sub { color: var(--muted); text-align: center; margin: 0 0 16px; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; text-align: center; }
.hidden { display: none !important; }
.field { display: block; margin-top: 8px; }
.field span { display: block; font-weight: 600; margin-bottom: 6px; }
input { width: 100%; font-size: 1.1rem; padding: 14px; border-radius: 12px; border: 1px solid var(--line);
        background: var(--card); color: var(--text); }
input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.btn { display: block; width: 100%; text-align: center; text-decoration: none; font: inherit; font-weight: 700;
       padding: 15px 16px; margin: 10px 0 0; border-radius: 14px; border: 1px solid var(--line);
       background: var(--card); color: var(--text); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.small { width: auto; display: inline-block; padding: 8px 14px; margin: 0; font-size: .95rem; }
.btn:disabled { opacity: .45; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 10px 0 6px; text-align: center; }
.copyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tag { font-size: 1.5rem; font-weight: 800; color: var(--accent); word-break: break-word; }
.note { background: #1d1a10; border: 1px solid #4a3d16; color: #f1e3bd; border-radius: 14px; padding: 14px; margin-top: 18px; }
.error { color: #ff6b6b; text-align: center; margin-top: 12px; }
.check { font-size: 4rem; color: var(--accent); text-align: center; line-height: 1; }
.spinner { display: inline-block; width: .9em; height: .9em; border: 2px solid var(--muted); border-top-color: transparent;
           border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
