/* Webbeck Auth design system: tokens first, then layout, then components.
   Glass panels sit on a soft gradient. Every text color is chosen against the panel's *solid* fallback
   color too, so contrast holds (WCAG AA) whether or not the blur is available. */

:root {
  color-scheme: light;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  --bg: #eef1f8;
  --bg-a: rgba(99, 102, 241, 0.28);
  --bg-b: rgba(20, 184, 166, 0.22);
  --bg-c: rgba(236, 72, 153, 0.16);

  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-solid: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.85);
  --line: rgba(15, 23, 42, 0.1);
  --blur: blur(20px) saturate(150%);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(30, 41, 99, 0.22);
  --shadow-lg: 0 24px 64px -20px rgba(30, 41, 99, 0.35);

  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #5b6779;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #ffffff;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --link: #4338ca;
  --focus: #4f46e5;

  --ok: #166534;
  --ok-soft: rgba(22, 163, 74, 0.13);
  --bad: #b91c1c;
  --bad-soft: rgba(220, 38, 38, 0.11);
  --warn: #92400e;
  --warn-soft: rgba(217, 119, 6, 0.14);

  --input-bg: rgba(255, 255, 255, 0.85);
  --input-border: rgba(15, 23, 42, 0.2);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-a: rgba(99, 102, 241, 0.3);
    --bg-b: rgba(20, 184, 166, 0.16);
    --bg-c: rgba(236, 72, 153, 0.14);
    --glass: rgba(22, 28, 48, 0.62);
    --glass-strong: rgba(26, 33, 56, 0.85);
    --glass-solid: #161c30;
    --glass-border: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, 0.7);
    --text: #e8edf6;
    --text-muted: #aab6c8;
    --text-faint: #9aa7bb;
    --accent: #5b5ef0;
    --accent-hover: #6d70f5;
    --accent-soft: rgba(129, 140, 248, 0.16);
    --link: #a5b4fc;
    --focus: #a5b4fc;
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.14);
    --bad: #fca5a5;
    --bad-soft: rgba(248, 113, 113, 0.15);
    --warn: #fcd34d;
    --warn-soft: rgba(251, 191, 36, 0.14);
    --input-bg: rgba(10, 14, 28, 0.55);
    --input-border: rgba(255, 255, 255, 0.18);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-a: rgba(99, 102, 241, 0.3);
  --bg-b: rgba(20, 184, 166, 0.16);
  --bg-c: rgba(236, 72, 153, 0.14);
  --glass: rgba(22, 28, 48, 0.62);
  --glass-strong: rgba(26, 33, 56, 0.85);
  --glass-solid: #161c30;
  --glass-border: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, 0.7);
  --text: #e8edf6;
  --text-muted: #aab6c8;
  --text-faint: #9aa7bb;
  --accent: #5b5ef0;
  --accent-hover: #6d70f5;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --link: #a5b4fc;
  --focus: #a5b4fc;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.14);
  --bad: #fca5a5;
  --bad-soft: rgba(248, 113, 113, 0.15);
  --warn: #fcd34d;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --input-bg: rgba(10, 14, 28, 0.55);
  --input-border: rgba(255, 255, 255, 0.18);
}

/* Solid panels when blur isn't available or the user asked for less transparency. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: var(--glass-solid); --glass-strong: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--glass-solid) !important; --glass-strong: var(--glass-solid) !important; --blur: none; }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 0% 0%, var(--bg-a), transparent 60%),
    radial-gradient(50vw 50vw at 100% 10%, var(--bg-b), transparent 60%),
    radial-gradient(60vw 50vw at 60% 110%, var(--bg-c), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--s-2); letter-spacing: -0.015em; }
h1 { font-size: var(--fs-xl); font-weight: 700; }
h2 { font-size: var(--fs-lg); font-weight: 650; }
h3 { font-size: var(--fs); font-weight: 650; }
p { margin: 0 0 var(--s-3); }
a { color: var(--link); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-3); top: -100px; z-index: 50; }
.skip:focus { top: var(--s-3); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---- Glass panel ---- */
.panel {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--s-5);
}
.panel + .panel { margin-top: var(--s-5); }
.stats > .panel, .grid-2 > .panel { margin-top: 0; }
time { white-space: nowrap; }
.panel-head { display: flex; align-items: flex-start; gap: var(--s-3); justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s-4); }
.panel-head h2 { margin: 0; }
.panel-head p { margin: var(--s-1) 0 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 42px; padding: 0 var(--s-4);
  font: inherit; font-weight: 600; font-size: var(--fs-sm);
  border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--glass-strong); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--input-border); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-sm { min-height: 34px; padding: 0 var(--s-3); font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn svg { flex: none; }

/* ---- Forms ---- */
.field { display: block; }
.field + .field, .field + fieldset, fieldset + .field { margin-top: var(--s-5); }
.label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-1); }
.help { display: block; color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s-1); }
.error-text { display: block; color: var(--bad); font-size: var(--fs-sm); font-weight: 600; margin-top: var(--s-1); }
.input, textarea.input, select.input {
  width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3);
  font: inherit; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--r);
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-icon { max-width: 6.5rem; text-align: center; font-size: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }
.choices { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: var(--s-2); }
.choice {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--input-border); border-radius: var(--r); background: var(--input-bg); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; font-size: var(--fs-sm); }
.choice span { font-size: var(--fs-sm); color: var(--text-muted); }

/* List editor (redirect URIs, origins) */
.list { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.list-row { display: flex; gap: var(--s-2); align-items: flex-start; }
.list-row .input { font-family: var(--mono); font-size: var(--fs-sm); }
.list-row .row-error { flex-basis: 100%; }
.list-row-wrap { display: flex; flex-wrap: wrap; gap: 0; }
.list-row-wrap .list-row { flex: 1 1 100%; }
.list-actions { margin-top: var(--s-2); }

/* Toggle switch: a real checkbox styled as a switch. */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--input-border); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked { background: #16a34a; }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Copy field */
.copy { display: flex; gap: var(--s-2); align-items: stretch; }
.copy .input { font-family: var(--mono); font-size: var(--fs-sm); min-width: 0; }
.copy .btn { flex: none; }
pre.snippet {
  margin: 0; padding: var(--s-4); overflow-x: auto; font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.6;
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--r); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: var(--ok-soft); }
.badge-bad { color: var(--bad); background: var(--bad-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-neutral { color: var(--text-muted); background: var(--accent-soft); }
.badge-neutral::before { display: none; }

/* ---- Tables (turn into cards on phones) ---- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 650; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.table td { padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a.row-link { color: var(--text); font-weight: 650; text-decoration: none; }
.table a.row-link:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 720px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: var(--s-1) 0; display: flex; gap: var(--s-3); overflow-wrap: anywhere; min-width: 0; }
  .table td[data-label]::before { content: attr(data-label); flex: 0 0 6.5rem; color: var(--text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
}

/* ---- App identity ---- */
.app-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.app-icon-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; }
.app-name { display: flex; align-items: center; gap: var(--s-3); }
.app-name small { display: block; color: var(--text-muted); font-family: var(--mono); font-size: var(--fs-xs); font-weight: 400; }

/* ---- Empty states ---- */
.empty { text-align: center; padding: var(--s-7) var(--s-4); }
.empty .empty-mark { font-size: 2.25rem; margin-bottom: var(--s-3); }
.empty p { max-width: 42ch; margin-left: auto; margin-right: auto; color: var(--text-muted); }

/* ---- Toasts ---- */
.toasts { position: fixed; z-index: 100; right: var(--s-4); bottom: var(--s-4); display: grid; gap: var(--s-2); max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--r);
  box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 500;
  animation: toast-in .2s ease-out;
}
.toast::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.toast-success::before { background: #16a34a; }
.toast-error::before { background: #dc2626; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 4px; border-radius: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } * { transition: none !important; } }

/* ---- Dialog ---- */
dialog {
  width: min(480px, calc(100vw - 32px)); padding: var(--s-5); color: var(--text);
  background: var(--glass-solid); border: 1px solid var(--glass-border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(8, 12, 28, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog .row { justify-content: flex-end; margin-top: var(--s-5); }

/* ---- Callouts ---- */
.callout { padding: var(--s-4); border-radius: var(--r); border: 1px solid var(--line); background: var(--accent-soft); font-size: var(--fs-sm); }
.callout-warn { background: var(--warn-soft); border-color: transparent; }
.callout-ok { background: var(--ok-soft); border-color: transparent; }
.callout strong { display: block; margin-bottom: var(--s-1); font-size: var(--fs); }

/* ---- Admin shell ---- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: var(--s-5); max-width: 1320px; margin: 0 auto; padding: var(--s-5); min-height: 100vh; }
.sidebar { position: sticky; top: var(--s-5); align-self: start; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-4); min-height: calc(100vh - 48px); }
.brand { display: flex; align-items: center; gap: var(--s-3); font-weight: 700; text-decoration: none; color: var(--text); padding: var(--s-2); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4f46e5, #0d9488); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7); flex: none; }
.brand small { display: block; font-weight: 500; color: var(--text-muted); font-size: var(--fs-xs); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-3); border-radius: var(--r); color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.nav a:hover { background: var(--accent-soft); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav svg { opacity: .85; flex: none; }
.sidebar-foot { margin-top: auto; display: grid; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; font-size: var(--fs-sm); }
.who img, .who .avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--accent-soft); display: grid; place-items: center; font-weight: 700; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding-bottom: var(--s-7); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin: var(--s-2) 0 var(--s-5); }
.page-head p { margin: var(--s-1) 0 0; color: var(--text-muted); }
.crumb { font-size: var(--fs-sm); margin-bottom: var(--s-2); display: inline-block; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: var(--s-3); gap: var(--s-4); }
  .sidebar, .nav { min-width: 0; }
  .sidebar { position: static; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--s-3); gap: var(--s-2); }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; display: flex; overflow-x: auto; gap: var(--s-1); padding-bottom: 2px; scrollbar-width: thin; }
  .brand span { white-space: nowrap; }
  .nav a { white-space: nowrap; padding: 8px var(--s-3); }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .sidebar-foot { margin: 0; border: 0; padding: 0; display: flex; align-items: center; }
  .who span { display: none; }
  .panel { padding: var(--s-4); border-radius: var(--r); }
}

/* ---- Grids ---- */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: var(--s-5); }
.stat { padding: var(--s-4) var(--s-5); }
.stat .stat-label { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.stat .stat-value { font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.form-layout { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

@media (max-width: 1100px) { .form-layout { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: var(--s-3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--s-5); }

.filters .field { margin-top: 0; }
.filters { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; margin-bottom: var(--s-4); }
form[role="search"] { margin-bottom: var(--s-3); }
.search { position: relative; max-width: 420px; flex: 1; }
.search .input { padding-left: 40px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }

dl.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: var(--s-2) var(--s-4); margin: 0; font-size: var(--fs-sm); }
dl.kv dt { color: var(--text-muted); font-weight: 600; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: var(--s-2); } }

details.changes summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: var(--fs-sm); }
.change { display: grid; gap: 2px; margin-top: var(--s-2); font-size: var(--fs-xs); }
.change code { overflow-wrap: anywhere; white-space: pre-wrap; }
.change .was { color: var(--bad); }
.change .now { color: var(--ok); }
.pager { display: flex; justify-content: space-between; margin-top: var(--s-4); }

/* ---- Auth (user-facing) pages ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s-5) var(--s-4); }
.auth-card { width: min(440px, 100%); padding: var(--s-6); text-align: center; box-shadow: var(--shadow-lg); }
.auth-card .app-icon-lg { margin: 0 auto var(--s-4); }
.auth-card h1 { font-size: 1.5rem; }
.auth-card p { color: var(--text-muted); }
.auth-card .actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.auth-card .fine { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--s-5); margin-bottom: 0; }
.auth-top { position: fixed; top: var(--s-4); left: var(--s-4); right: var(--s-4); display: flex; justify-content: space-between; align-items: center; }
.auth-top .brand { padding: 0; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #747775; font-family: var(--font); }
.btn-google:hover { background: #f8fafd; }
.status-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--s-4); font-size: 1.6rem; }
.status-bad { background: var(--bad-soft); color: var(--bad); }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-warn { background: var(--warn-soft); color: var(--warn); }
.error-code { display: inline-block; margin-top: var(--s-2); font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-faint); }
.logout-form { display: none; }

.theme-toggle { background: var(--glass-strong); border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--input-border); }
