:root {
  color-scheme: light dark;
  --bg:#f7f7f5;
  --card:#ffffff;
  --text:#202020;
  --muted:#787774;
  --line:#e2e2df;
  --accent:#2f6feb;
  --danger:#c94747;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#191919; --card:#202020; --text:#ebebeb; --muted:#9b9b9b; --line:#383838; --accent:#70a5ff; --danger:#ef7676; }
}
* { box-sizing:border-box; }
body {
  margin:0; min-height:100vh; display:grid; place-items:center; padding:28px;
  background:var(--bg); color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.auth-card {
  width:min(460px,100%); background:var(--card); border:1px solid var(--line);
  border-radius:14px; padding:28px; box-shadow:0 18px 55px rgba(0,0,0,.12);
}
.auth-brand { display:flex; align-items:center; gap:11px; margin-bottom:26px; }
.auth-brand img { width:34px; height:34px; border-radius:8px; }
.auth-brand strong { font-size:18px; }
h1 { margin:0 0 12px; font-size:28px; }
p { line-height:1.55; color:var(--muted); }
.auth-primary, .auth-secondary {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:42px; border-radius:8px; padding:0 15px; font:inherit; cursor:pointer; text-decoration:none;
}
.auth-primary { border:0; background:var(--accent); color:#fff; font-weight:650; }
.auth-secondary { border:1px solid var(--line); background:transparent; color:var(--text); }
.auth-actions { display:flex; gap:9px; margin-top:22px; flex-wrap:wrap; }
.auth-user {
  margin:18px 0; padding:12px; border:1px solid var(--line); border-radius:9px;
  display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; align-items:center;
}
.auth-avatar {
  width:42px; height:42px; border-radius:50%; object-fit:cover; display:grid; place-items:center;
  background:color-mix(in srgb,var(--accent) 15%,var(--card)); color:var(--accent); font-weight:800;
}
.auth-user strong,.auth-user small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-user small { color:var(--muted); margin-top:3px; }
.auth-status { display:inline-block; margin-top:4px; font-size:11px; color:var(--muted); }
.auth-error { margin:14px 0; padding:10px 12px; border-radius:8px; color:var(--danger); background:color-mix(in srgb,var(--danger) 10%,transparent); }
.auth-form { display:grid; gap:8px; margin-top:18px; }
.auth-form label { color:var(--muted); font-size:12px; font-weight:650; }
.auth-form input {
  width:100%; border:1px solid var(--line); background:var(--bg); color:var(--text);
  border-radius:8px; padding:10px 11px; outline:none; font:inherit;
}
.auth-form input:focus { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent); }
.auth-meta { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); display:grid; gap:6px; color:var(--muted); font-size:12px; }
.auth-save { min-height:18px; color:var(--muted); font-size:12px; }

.auth-sessions { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.auth-section-head { display:flex; gap:12px; align-items:flex-start; justify-content:space-between; }
.auth-section-head h2 { margin:0 0 4px; font-size:16px; }
.auth-section-head p { margin:0; font-size:12px; }
.auth-session-list { display:grid; gap:8px; margin-top:12px; }
.auth-session-row {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center;
  border:1px solid var(--line); border-radius:9px; padding:10px 11px;
}
.auth-session-row.current { border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); }
.auth-session-row strong,.auth-session-row small { display:block; }
.auth-session-row small { color:var(--muted); margin-top:3px; line-height:1.35; }
.auth-session-current { color:var(--accent); font-size:10px; font-weight:800; margin-left:5px; }
.auth-session-row button { min-height:32px; }
@media (max-width:600px) {
  .auth-section-head { flex-direction:column; }
  .auth-session-row { grid-template-columns:1fr; }
}


/* v0.19.12 login visibility, centering and build identity */
.hidden,
[hidden] {
  display:none !important;
}
body[data-auth-view="login"] .auth-actions {
  justify-content:center;
}
.auth-build-info {
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
  text-align:center;
}

body[data-auth-view="login"] .auth-actions {
  flex-direction:column;
  align-items:center;
}
