/* Atlas Product Kit console — design matched to BRidge (scrapfutures) look. */
:root{
  --bg:#f6f8fb; --card:#fff; --ink:#0f172a; --muted:#6b7280; --brand:#0f62fe;
  --err:#e11d48; --ok:#10b981; --br:#e7eaf0; --r-lg:16px; --r-sm:12px;
  --shadow:0 12px 30px rgba(22,29,37,.06), 0 4px 14px rgba(22,29,37,.05);
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0b1020; --card:#0f1426; --ink:#e5e7eb; --muted:#96a0b8; --br:#1e2745;
    --shadow:0 12px 30px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25); }
}
body{ background:var(--bg); color:var(--ink);
  font:15.5px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; margin:0; }

/* brand badge */
.brand-badge{ display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:9px; background:var(--brand); color:#fff;
  font-weight:800; margin-right:8px; }

/* ===== login ===== */
body.login-theme{ display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:100vh; gap:16px; padding:16px; }
.login-box{ background:var(--card); width:100%; max-width:420px; padding:28px 26px;
  border:1px solid var(--br); border-radius:var(--r-lg); box-shadow:var(--shadow); }
.login-title{ font-weight:700; letter-spacing:.2px; display:flex; align-items:center; justify-content:center; }

/* ===== app shell ===== */
.topbar{ background:var(--card); border-bottom:1px solid var(--br);
  display:flex; align-items:center; gap:12px; padding:12px 20px; box-shadow:var(--shadow); }
.topbar .title{ font-weight:700; }
.topbar .spacer{ flex:1; }
.container-wide{ max-width:1100px; margin:20px auto; padding:0 16px; }
.tabs{ display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.tabs button{ border:1px solid var(--br); background:var(--card); color:var(--ink);
  border-radius:50rem; padding:6px 16px; cursor:pointer; font-weight:600; }
.tabs button.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.card{ background:var(--card); border:1px solid var(--br); border-radius:var(--r-lg);
  box-shadow:var(--shadow); padding:18px; margin-bottom:18px; }
.card h5{ margin:0 0 12px; }
.grid-form{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; align-items:end; }
label{ font-size:13px; color:var(--muted); display:block; margin-bottom:4px; }
input,select{ width:100%; padding:8px 10px; border:1px solid var(--br); border-radius:10px;
  background:var(--card); color:var(--ink); box-sizing:border-box; }
button.btn{ background:var(--brand); color:#fff; border:0; border-radius:10px;
  padding:9px 18px; font-weight:700; cursor:pointer; }
button.btn.ghost{ background:transparent; color:var(--ink); border:1px solid var(--br); }
table{ width:100%; border-collapse:collapse; font-size:14px; }
th,td{ text-align:left; padding:8px 10px; border-bottom:1px solid var(--br); white-space:nowrap; }
th{ color:var(--muted); font-weight:600; }
.table-scroll{ overflow:auto; max-height:60vh; border-radius:10px; }
.pill{ display:inline-block; padding:2px 10px; border-radius:50rem; font-size:12px; font-weight:700;
  background:rgba(15,98,254,.10); color:var(--brand); }
.muted{ color:var(--muted); }
.err{ color:var(--err); }
.ok{ color:var(--ok); }
.hidden{ display:none; }
.legal-footer{ color:var(--muted); font-size:12.5px; text-align:center; max-width:420px; }
.legal-footer a{ color:var(--brand); text-decoration:none; }
