/* Beacon — panel stylesheet.
 *
 * Tokens, spacing and colours are carried over verbatim from the approved
 * design bundle. The design expressed everything as inline style attributes;
 * here it becomes classes, because the panel ships a strict CSP with no
 * 'unsafe-inline' and inline styles would be blocked.
 */

@import url('fonts.css');

/* ── tokens ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #eceff3;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --sidebar: #ffffff;
  --border: #e4e8ee;
  --border-strong: #d4dae2;
  --text: #141a24;
  --muted: #5f6b7c;
  --faint: #98a2b1;
  --accent: #2f68d8;
  --accent-weak: color-mix(in srgb, var(--accent) 12%, transparent);
  --success: #1f9d55;
  --warn: #d98218;
  --danger: #d64545;
  --shadow: 0 1px 2px rgba(20, 26, 36, .05), 0 1px 3px rgba(20, 26, 36, .04);
  --rowpad: 7px 14px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0c111c;
  --surface: #141b29;
  --surface-2: #1a2331;
  --sidebar: #101725;
  --border: #242f40;
  --border-strong: #324056;
  --text: #e7ecf3;
  --muted: #93a0b3;
  --faint: #647287;
  --success: #33b06a;
  --warn: #e0973a;
  --danger: #e26a6a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}

button, input, select, textarea { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-track { background: transparent; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.spin { animation: spin .8s linear infinite; transform-origin: center; }

/* ── app shell ──────────────────────────────────────────────────────────── */

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 236px;
  flex: none;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 16px 15px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--faint); }

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 12px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  background: transparent;
  color: var(--muted);
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.is-active {
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 600;
}
.nav-item svg { flex: none; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }

.host-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-2);
}

.host-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s ease-in-out infinite;
}

.host-lines { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.host-name { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.host-meta { font-size: 11px; color: var(--muted); }
.version { font-size: 10.5px; color: var(--faint); text-align: center; margin-top: 9px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── top bar ────────────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  height: 56px;
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-title { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-title strong { font-size: 13.5px; font-weight: 600; }
.topbar-title span { font-size: 11.5px; color: var(--muted); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover { color: var(--text); border-color: var(--border-strong); }

.divider-v { width: 1px; height: 26px; background: var(--border); margin: 0 2px; }

.account { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}
.account-lines { display: flex; flex-direction: column; line-height: 1.2; }
.account-name { font-weight: 600; font-size: 12.5px; }
.account-role { font-size: 11px; color: var(--muted); }

/* ── tabs ───────────────────────────────────────────────────────────────── */

.tabstrip {
  display: flex;
  align-items: stretch;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 15px;
  height: 37px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border-top: none;
  border-left: none;
  border-bottom: none;
}
.tab.is-active {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: none;
  background: transparent;
  color: var(--faint);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.tab-close:hover { background: var(--border); color: var(--text); }

.content { flex: 1; overflow: auto; padding: 22px 24px; }

/* ── page furniture ─────────────────────────────────────────────────────── */

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.head-inline { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.head-inline h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.head-inline span { font-size: 12.5px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }
.card-clip { overflow: hidden; }
.card-scroll { overflow: auto; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.card-head strong { font-size: 13px; font-weight: 600; }
.card-head span { font-size: 11.5px; color: var(--muted); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-bottom: 16px;
}
.grid-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  max-width: 900px;
}

@media (max-width: 900px) {
  .grid-two { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: 68px; }
  .brand-text, .nav-item span, .nav-group, .host-lines, .version { display: none; }
}

/* ── buttons & inputs ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.07); border-color: transparent; }

.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }

.btn-small {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
}
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }

.chip {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 600;
}

.input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  outline: none;
  width: 100%;
}
.input:focus { border-color: var(--accent); background: var(--surface); }
.input:disabled { color: var(--muted); cursor: not-allowed; }

.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.search .input { padding-left: 32px; width: 220px; background: var(--surface); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); }

.select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

/* ── tables ─────────────────────────────────────────────────────────────── */

table.grid { width: 100%; border-collapse: collapse; }
table.grid th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.grid td {
  padding: var(--rowpad);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.grid tbody tr:hover { background: var(--surface-2); }
table.grid td.num, table.grid th.num { text-align: right; }
table.grid td.right, table.grid th.right { text-align: right; }
table.grid td.dim { color: var(--muted); }
.table-min-820 { min-width: 820px; }
.table-min-780 { min-width: 780px; }
.table-min-760 { min-width: 760px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 13%, transparent);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge.plain::before { display: none; }
.badge.ok { color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.badge.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.badge.info { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }

/* ── dashboard cards ────────────────────────────────────────────────────── */

.metric-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.metric-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
}
.metric-value {
  font-size: 27px;
  font-weight: 600;
  font-family: var(--mono);
  margin-top: 5px;
  line-height: 1;
}
.metric-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.metric-row { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; }
.metric-row .metric-value { margin-top: 0; }

.spark { width: 110px; height: 44px; overflow: visible; flex: none; }

.bar {
  height: 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
  margin-top: 16px;
}
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.metric-foot { font-size: 11px; color: var(--faint); margin-top: 8px; }

.gauge {
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge > b {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
}
.card-flex { display: flex; align-items: center; gap: 16px; }

.net-line { margin-top: 3px; }
.net-line b { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.net-line em { font-size: 11px; color: var(--muted); font-style: normal; }
.net-in { color: var(--success); font-weight: 600; }
.net-out { color: var(--accent); font-weight: 600; }

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}
.mini-stat:hover { border-color: var(--border-strong); }
.mini-stat b { display: block; font-size: 22px; font-weight: 600; font-family: var(--mono); }
.mini-stat span { font-size: 12px; color: var(--muted); }

.kv-list { padding: 4px 16px 10px; }
.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.kv-row:last-child { border-bottom: none; }
.kv-row .k { font-size: 12.5px; color: var(--muted); }
.kv-row .v { font-size: 12.5px; font-weight: 500; font-family: var(--mono); text-align: right; }

.svc-list { padding: 2px 16px 8px; }
.svc-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.svc-row:last-child { border-bottom: none; }
.svc-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); }
.svc-dot.ok { background: var(--success); }
.svc-dot.warn { background: var(--warn); }
.svc-dot.bad { background: var(--danger); }
.svc-lines { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.svc-name { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.svc-desc {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.svc-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.svc-mem { font-family: var(--mono); font-size: 11.5px; color: var(--faint); min-width: 52px; text-align: right; }

.event-row { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: none; }
.event-row:hover { background: var(--surface-2); }
.event-time { font-family: var(--mono); font-size: 12px; color: var(--faint); flex: none; }
.event-source { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; min-width: 92px; }
.event-msg {
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* ── file manager ───────────────────────────────────────────────────────── */

.crumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12.5px;
}
.crumb {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 2px 5px;
  border-radius: 5px;
}
.crumb:hover { background: var(--accent-weak); }
.crumb.last { color: var(--text); font-weight: 600; cursor: default; }
.crumb.last:hover { background: transparent; }
.crumb-sep { color: var(--faint); }

.fs-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fs-name svg { flex: none; color: var(--faint); }
.fs-name .dir { color: var(--accent); }
.fs-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 460px;
}
.fs-link:hover { color: var(--accent); text-decoration: underline; }
.fs-static {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 460px;
}
.fs-actions { display: flex; gap: 6px; justify-content: flex-end; }
.fs-symlink { color: var(--faint); font-size: 11.5px; font-family: var(--mono); }

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 11px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 16px;
  background: var(--surface);
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }

.progress {
  height: 6px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  margin-top: 10px;
}
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; }

.empty { padding: 34px 16px; text-align: center; color: var(--faint); font-size: 13px; }

/* ── log stream ─────────────────────────────────────────────────────────── */

.log-row { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--border); }
.log-row:last-child { border-bottom: none; }
.log-row:hover { background: var(--surface-2); }
.log-time { font-family: var(--mono); font-size: 12px; color: var(--faint); flex: none; }
.log-source { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; min-width: 92px; }
.log-msg { font-family: var(--mono); font-size: 12.5px; flex: 1; min-width: 0; word-break: break-word; }

/* ── modal ──────────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wide { max-width: 900px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-head strong { font-size: 14px; font-weight: 600; }
.modal-body { padding: 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-body p { margin: 0; font-size: 12.5px; color: var(--muted); }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.editor {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px;
  outline: none;
  resize: vertical;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
.editor:focus { border-color: var(--accent); }

/* ── toasts ─────────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  max-width: 420px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--text);
  word-break: break-word;
}
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }

/* ── login ──────────────────────────────────────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(20, 26, 36, .10);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-brand { display: flex; align-items: center; gap: 11px; }
.login-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.login-sub { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.login-error {
  font-size: 12.5px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: 8px;
  padding: 9px 12px;
}
.login-foot { font-size: 11.5px; color: var(--faint); text-align: center; }
.totp-input { font-family: var(--mono); letter-spacing: .28em; text-align: center; }
