:root { --bg:#f8fafc; --card:#fff; --line:#e2e8f0; --ink:#0f172a; --muted:#64748b; --accent:#2563eb; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, sans-serif; background:var(--bg); color:var(--ink); }
.wrap { max-width: 520px; margin: 0 auto; padding: 24px 16px; }
h1 { font-size: 22px; margin: 0 0 4px; }
p.sub { color: var(--muted); margin: 0 0 20px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:14px; }
label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
input[type=text], textarea { width:100%; font:inherit; font-size:18px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
textarea { min-height: 110px; resize: vertical; }
button { font:inherit; font-size:16px; padding:10px 14px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; }
button.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
button:active { transform: translateY(1px); }
.row { display:flex; gap:8px; flex-wrap:wrap; }
.row > * { flex:1; }
.swatches { display:flex; gap:8px; flex-wrap:wrap; }
.swatch { width:36px; height:36px; border-radius:50%; border:2px solid var(--line); padding:0; flex:none; }
.code { font-size: 28px; font-weight: 700; letter-spacing: 4px; }
.pill { display:inline-block; padding:3px 10px; border-radius:99px; background:#e2e8f0; font-size:13px; }
.pill.on { background:#dcfce7; color:#166534; }
a { color: var(--accent); }
