:root { --bg:#f4f6f9; --card:#ffffff; --line:#e2e6ec; --text:#1b2330; --muted:#5f6b7c;
        --accent:#2563eb; --bad:#dc2626; --bad-bg:#fef2f2; --button:#e9edf2; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.55 system-ui, -apple-system, Segoe UI, sans-serif; background:var(--bg); color:var(--text); }
main { max-width:780px; margin:0 auto; padding:32px 16px 48px; }
h1 { font-size:26px; margin:0 0 6px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand.small { font-weight:700; font-size:15px; gap:8px; margin-bottom:14px; }
.sub { color:var(--muted); margin:0 0 20px; }
.alert { border:2px solid var(--bad); background:var(--bad-bg); color:#7f1d1d; border-radius:10px; padding:16px 18px; margin-bottom:20px; }
.alert strong { display:block; font-size:18px; color:var(--bad); margin-bottom:4px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px 22px; margin-bottom:20px; }
.terms { max-height:420px; overflow-y:auto; }
.terms h3 { font-size:15px; margin:16px 0 4px; } .terms h3:first-of-type { margin-top:4px; }
.terms p { margin:0; color:#334155; }
.meta { color:var(--muted); font-size:13px; margin-top:12px; word-break:break-all; }
.check { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.check:last-child { border-bottom:0; } .check input { margin-top:4px; width:18px; height:18px; flex:none; }
.row { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; align-items:center; }
.btn { display:inline-block; padding:11px 18px; border:0; border-radius:8px; font:inherit; font-weight:600; cursor:pointer;
       background:var(--button); color:var(--text); text-decoration:none; }
.btn.primary { background:var(--accent); color:#fff; } .btn:disabled { opacity:.45; cursor:default; }
.muted { color:var(--muted); font-size:13px; } .err { color:var(--bad); }
.app-footer { text-align:center; color:var(--muted); font-size:12px; padding:0 16px 24px; }
