/* ACAM Phase 1 — minimal mobile-first UI */
:root{ --bg:#0b1020; --card:#111935; --text:#e8ecff; --muted:#b7c0ff; --line:#22305f; --btn:#3f6cff; --btn2:#1b264f; }
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:linear-gradient(180deg,#070b18,#0b1020); color:var(--text); }
a{ color:var(--text); text-decoration:none; }
pre{ white-space:pre-wrap; word-wrap:break-word; margin:0; }
.container{ max-width:900px; margin:0 auto; padding:16px; }
.topbar{ position:sticky; top:0; background:rgba(11,16,32,0.9); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; z-index:10; }
.brand{ font-weight:800; letter-spacing:0.2px; }
.brandwrap .small{ font-size:12px; color:var(--muted); }
.nav{ display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.nav a{ padding:8px 10px; border:1px solid var(--line); border-radius:12px; font-size:14px; }
.card{ background:rgba(17,25,53,0.86); border:1px solid var(--line); border-radius:18px; padding:16px; margin:12px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.narrow{ max-width:420px; margin:16px auto; }
h1{ margin:0 0 8px; font-size:26px; }
h2{ margin:0 0 12px; font-size:18px; }
label{ display:block; margin:10px 0 6px; color:var(--muted); font-size:13px; }
.input{ width:100%; padding:12px 12px; border-radius:14px; border:1px solid var(--line); background:#0a1230; color:var(--text); font-size:15px; outline:none; }
textarea.input{ resize:vertical; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--btn); color:white; padding:12px 14px; border-radius:14px; border:none; cursor:pointer; font-weight:700; width:auto; }
.btn.secondary{ background:var(--btn2); border:1px solid var(--line); }
.btn.small{ padding:8px 10px; border-radius:12px; font-size:13px; }
.grid2{ display:grid; grid-template-columns:1fr; gap:12px; }
@media(min-width:640px){ .grid2{ grid-template-columns:1fr 1fr; } }
.row{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.title{ font-weight:800; }
.muted{ color:var(--muted); }
.small{ font-size:12px; }
.flash{ padding:12px 14px; border-radius:14px; border:1px solid var(--line); margin:10px 0; }
.flash.error{ border-color: rgba(255,77,109,0.4); background: rgba(255,77,109,0.1); }
.flash.success{ border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.1); }
.copybox{ border:1px solid var(--line); border-radius:14px; padding:12px; margin:10px 0; background: rgba(10,18,48,0.7); }
.copybox .label{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.footer{ padding:24px 16px; text-align:center; color:var(--muted); }
code{ background:#0a1230; padding:2px 6px; border-radius:8px; border:1px solid var(--line); }
details pre{ margin-top:8px; }
