/* =========================================================================
   LG-Uptime — design system
   Ported verbatim from the approved comp's <style> block: CSS custom
   properties (dark defaults + `body.light` overrides), keyframes, and base
   element rules. Everything below the "COMPONENTS" divider is new: real
   classes + :hover/:focus rules standing in for the comp's `style-hover` /
   `style-focus` pseudo-attributes (which aren't real CSS).
   ========================================================================= */

* { box-sizing: border-box; }

html, body { height: 100%; }

/* Real buttons are used throughout as the interactive primitive (rows,
   chips, nav items, icon buttons) so their styling comes entirely from the
   component classes below rather than the browser's UA button chrome. */
button {
  font: inherit; color: inherit; margin: 0; padding: 0; border: none; background: none;
  appearance: none; -webkit-appearance: none; cursor: pointer; text-align: inherit;
}
select { font: inherit; }

body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;

  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --bg: #09090b; --card: #0e0e11; --card2: #17171b; --fg: #fafafa; --fg2: #a1a1aa; --fg3: #63636b;
  --bd: #212127; --bd2: #33333b; --hov: #141418;
  --pri: #22c55e; --pri-fg: #04170a; --pri-hov: #4ade80;
  --up: #22c55e; --dn: #ef4444; --dg: #f59e0b; --pa: #71717a;
  --up-bg: rgba(34,197,94,.13); --dn-bg: rgba(239,68,68,.14); --dg-bg: rgba(245,158,11,.14); --pa-bg: rgba(113,113,122,.18);
  --c-iad: #22c55e; --c-sfo: #60a5fa; --c-fra: #fbbf24; --c-sin: #c084fc;
  --up-fg: #4ade80; --dn-fg: #f87171; --dg-fg: #fbbf24; --pa-fg: #a1a1aa;
  --ring: rgba(34,197,94,.22); --shadow: none;
}

body.light {
  color-scheme: light;
  --bg: #fafafa; --card: #ffffff; --card2: #f4f4f5; --fg: #09090b; --fg2: #71717a; --fg3: #a1a1aa;
  --bd: #e4e4e7; --bd2: #d4d4d8; --hov: #f4f4f5;
  --pri: #16a34a; --pri-fg: #ffffff; --pri-hov: #15803d;
  --up: #16a34a; --dn: #dc2626; --dg: #d97706; --pa: #71717a;
  --up-bg: #f0fdf4; --dn-bg: #fef2f2; --dg-bg: #fffbeb; --pa-bg: #f4f4f5;
  --c-iad: #16a34a; --c-sfo: #2563eb; --c-fra: #d97706; --c-sin: #9333ea;
  --up-fg: #15803d; --dn-fg: #b91c1c; --dg-fg: #b45309; --pa-fg: #52525b;
  --ring: rgba(22,163,74,.18); --shadow: 0 1px 2px rgba(0,0,0,.05);
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--pri-hov); }
input, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--fg3); }

@keyframes lguPulseUp { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)} 70%{box-shadow:0 0 0 6px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
@keyframes lguPulseDn { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.5)} 70%{box-shadow:0 0 0 7px rgba(239,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} }
@keyframes lguToast { from{opacity:0;transform:translateY(10px) scale(.98)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes lguFadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
@keyframes lguSpin { to { transform: rotate(360deg); } }

.anim-pulse-up { animation: lguPulseUp 2s infinite; }
.anim-pulse-dn { animation: lguPulseDn 1.6s infinite; }
.fade-in { animation: lguFadeIn .18s ease; }
.toast-in { animation: lguToast .2s ease; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bd2); border-radius: 6px; }

/* =========================================================================
   COMPONENTS
   ========================================================================= */

#app { height: 100vh; overflow: hidden; }

.app-shell { display: flex; height: 100vh; overflow: hidden; background: var(--bg); color: var(--fg); font-size: 14px; }

/* ---- sidebar ------------------------------------------------------------ */

.sidebar { width: 224px; flex: none; border-right: 1px solid var(--bd); display: flex; flex-direction: column; background: var(--bg); }
.sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 16px 16px 14px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--pri); color: var(--pri-fg); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.brand-pro { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--fg3); border: 1px solid var(--bd); border-radius: 5px; padding: 2px 5px; }

.nav-group { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-heading { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); padding: 6px 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--fg2); background: transparent; border: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--hov); color: var(--fg); }
.nav-item.active { background: var(--hov); color: var(--fg); }
.nav-item svg { flex: none; }
.nav-count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--fg3); }
.nav-badge { margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--dn-bg); color: var(--dn-fg); font-family: var(--mono); font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

.sidebar-foot { margin-top: auto; padding: 10px; }
.sys-card { border: 1px solid var(--bd); border-radius: 8px; padding: 10px 11px; background: var(--card); display: flex; flex-direction: column; gap: 7px; }
.sys-card-row { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sys-label { font-size: 12px; font-weight: 500; }
.sys-sub { font-size: 11px; color: var(--fg2); line-height: 1.45; }

.user-card { display: flex; align-items: center; gap: 9px; padding: 12px 6px 6px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--card2); border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex: none; }
.user-name { font-size: 12px; font-weight: 500; line-height: 1.2; }
.user-sub { font-size: 10.5px; color: var(--up-fg); line-height: 1.3; }
.user-signout { margin-left: auto; color: var(--fg3); cursor: pointer; padding: 4px; border-radius: 5px; flex: none; }
.user-signout:hover { background: var(--hov); color: var(--fg); }

/* ---- main / topbar ------------------------------------------------------- */

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

.topbar { height: 54px; flex: none; border-bottom: 1px solid var(--bd); display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.topbar-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.topbar-sub { font-size: 12px; color: var(--fg3); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.live-pill { display: flex; align-items: center; gap: 7px; border: 1px solid var(--bd); border-radius: 999px; padding: 5px 11px 5px 9px; background: var(--card); }
.live-pill .dot { width: 6px; height: 6px; background: var(--up); }
.live-pill span { font-family: var(--mono); font-size: 10.5px; color: var(--fg2); }

.icon-btn { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--bd); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg2); }
.icon-btn:hover { background: var(--hov); color: var(--fg); }
.icon-btn.sm { width: 30px; height: 30px; }

.btn-primary { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; background: var(--pri); color: var(--pri-fg); font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary:hover { background: var(--pri-hov); }
.btn-primary:disabled { opacity: .5; cursor: default; }

.btn-secondary { height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--bd); background: var(--card); font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--fg2); }
.btn-secondary:hover { background: var(--hov); color: var(--fg); }
.btn-secondary.sm { height: 30px; font-size: 12px; }

.btn-success { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 7px; background: var(--pri); color: var(--pri-fg); font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; }
.btn-success:hover { background: var(--pri-hov); }

.btn-resolve { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--up); background: var(--up-bg); color: var(--up-fg); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-resolve:hover { background: var(--pri); color: var(--pri-fg); }

/* ---- screen scaffolding -------------------------------------------------- */

.screen { flex: 1; overflow-y: auto; padding: 20px 20px 32px; }
.screen.tight { padding: 18px 20px 32px; }

.stat-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 16px; }

.card { background: var(--card); border: 1px solid var(--bd); border-radius: 10px; box-shadow: var(--shadow); }

.stat-card { padding: 14px 16px; }
.stat-card .label { font-size: 12px; color: var(--fg2); font-weight: 500; }
.stat-card .value { font-family: var(--mono); font-size: 24px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; }
.stat-card .value small { font-size: 13px; color: var(--fg3); }
.stat-card .sub { font-size: 11.5px; color: var(--fg3); margin-top: 3px; }
.stat-card .sub.link { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.stat-card .sub.link:hover { color: var(--dn-fg); }

.stat-card-sm { padding: 12px 14px; }
.stat-card-sm .label { font-size: 11.5px; color: var(--fg2); font-weight: 500; }
.stat-card-sm .value { font-family: var(--mono); font-size: 19px; font-weight: 600; margin-top: 5px; letter-spacing: -.01em; }
.stat-card-sm .sub { font-size: 10.5px; color: var(--fg3); margin-top: 2px; }

/* ---- filters / search ---------------------------------------------------- */

.filter-row { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-input { height: 32px; width: 250px; border: 1px solid var(--bd); border-radius: 7px; background: var(--card); color: var(--fg); font-size: 13px; font-family: inherit; padding: 0 12px 0 30px; outline: none; }
.search-input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--ring); }

.chip { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--bd); background: var(--card); color: var(--fg2); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--bd2); }
.chip.active { background: var(--card2); color: var(--fg); border-color: var(--bd2); }
.chip .count { font-family: var(--mono); font-size: 10.5px; opacity: .65; }

/* ---- monitor table -------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
.table-grid {
  min-width: 840px; display: grid;
  grid-template-columns: minmax(210px,1.6fr) 84px minmax(130px,.9fr) minmax(150px,1.1fr) 64px 78px 26px;
  gap: 14px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--bd);
}
.table-head { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); }
.table-row { cursor: pointer; background: none; border: none; width: 100%; text-align: left; font: inherit; color: inherit; }
.table-row:hover { background: var(--hov); }
.table-row:last-child { border-bottom: none; }

.mon-name-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mon-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-url { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.type-badge { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .05em; border: 1px solid var(--bd); border-radius: 5px; padding: 2.5px 6px; color: var(--fg2); white-space: nowrap; }

.resp-cell { display: flex; align-items: center; gap: 9px; }
.spark-svg { width: 70px; height: 24px; flex: none; overflow: visible; }
.resp-ms { font-family: var(--mono); font-size: 11.5px; }

.tick-row { display: flex; gap: 2px; }
.tick-row .tick { flex: 1; height: 20px; border-radius: 2px; }
.tick-row.tick-90 .tick { height: 34px; }

.right-mono { text-align: right; font-family: var(--mono); font-size: 11.5px; }
.right-mono.dim { color: var(--fg3); font-size: 11px; }

.empty-row { padding: 28px; text-align: center; color: var(--fg3); font-size: 13px; }

/* ---- monitor detail -------------------------------------------------------- */

.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.detail-meta { font-family: var(--mono); font-size: 11px; color: var(--fg3); margin-top: 2px; }
.pill { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2.5px 9px; white-space: nowrap; }

.banner { margin-top: 14px; border: 1px solid var(--dn); border-radius: 10px; background: var(--dn-bg); padding: 11px 14px; display: flex; align-items: center; gap: 10px; }
.banner .dot { width: 8px; height: 8px; background: var(--dn); }
.banner-text { font-size: 13px; color: var(--dn-fg); font-weight: 500; }
.banner-link { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--dn-fg); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; background: none; border: none; }

.panel { background: var(--card); border: 1px solid var(--bd); border-radius: 10px; box-shadow: var(--shadow); margin-top: 14px; padding: 16px; }
.panel-head-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-title { font-size: 13.5px; font-weight: 600; }
.panel-caption { font-size: 11.5px; color: var(--fg3); }

.region-tabs { margin-left: auto; display: flex; gap: 6px; }
.region-tab { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--bd); background: transparent; color: var(--fg3); font-family: var(--mono); font-size: 10.5px; cursor: pointer; }
.region-tab:hover { border-color: var(--bd2); }
.region-tab.active { background: var(--card2); color: var(--fg); border-color: var(--bd2); }
.region-tab .swatch { width: 6px; height: 6px; border-radius: 50%; flex: none; }

.chart-window-seg { display: inline-flex; border: 1px solid var(--bd); border-radius: 7px; overflow: hidden; }
.chart-window-seg button { height: 26px; padding: 0 10px; border: none; background: transparent; color: var(--fg3); font-family: var(--mono); font-size: 10.5px; cursor: pointer; }
.chart-window-seg button + button { border-left: 1px solid var(--bd); }
.chart-window-seg button:hover { color: var(--fg2); background: var(--hov); }
.chart-window-seg button.active { background: var(--card2); color: var(--fg); }

.range-chips { display: flex; gap: 2px; background: var(--card2); border: 1px solid var(--bd); border-radius: 7px; padding: 2px; }
.range-chip { height: 22px; display: flex; align-items: center; padding: 0 9px; border-radius: 5px; background: transparent; color: var(--fg3); font-size: 11px; font-weight: 500; cursor: pointer; white-space: nowrap; border: none; }
.range-chip.active { background: var(--bg); color: var(--fg); }

.chart-wrap { position: relative; height: 230px; margin-top: 16px; cursor: crosshair; }
.chart-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.y-label { position: absolute; right: 0; transform: translateY(-50%); font-family: var(--mono); font-size: 10px; color: var(--fg3); background: var(--card); padding: 0 4px; }
.hover-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--bd2); pointer-events: none; }
.hover-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--card); transform: translate(-50%,-50%); pointer-events: none; }
.hover-tip { position: absolute; top: 8px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--bd2); border-radius: 7px; padding: 7px 10px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); pointer-events: none; min-width: 118px; }
.hover-tip .time { font-family: var(--mono); font-size: 10px; color: var(--fg3); }
.hover-tip .row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.hover-tip .row .swatch { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.hover-tip .row .code { font-family: var(--mono); font-size: 10px; color: var(--fg2); }
.hover-tip .row .val { font-family: var(--mono); font-size: 11px; font-weight: 600; margin-left: auto; padding-left: 12px; }

.x-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--fg3); }

.region-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.region-card { padding: 12px 14px; }
.region-card-head { display: flex; align-items: center; gap: 7px; }
.region-code { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; border: 1px solid var(--bd); border-radius: 5px; padding: 2px 6px; color: var(--fg2); }
.region-name { font-size: 12px; color: var(--fg2); }
.region-ms { font-family: var(--mono); font-size: 17px; font-weight: 600; margin-top: 9px; }
.region-bar-track { height: 3px; border-radius: 2px; background: var(--card2); margin-top: 9px; overflow: hidden; }
.region-bar-fill { height: 100%; border-radius: 2px; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 14px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

.section-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); }

.mini-incident { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid var(--bd); border-radius: 8px; cursor: pointer; background: none; width: 100%; text-align: left; font: inherit; color: inherit; }
.mini-incident:hover { background: var(--hov); }
.mini-incident .dot { width: 7px; height: 7px; flex: none; }
.mini-incident .title { font-size: 12.5px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-incident .when { margin-left: auto; flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--fg3); }

.ai-panel-head { display: flex; align-items: center; gap: 7px; }
.ai-panel-title { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg2); }
.ai-panel-time { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--fg3); }
.ai-panel-body { font-size: 13px; line-height: 1.65; color: var(--fg2); margin-top: 11px; text-wrap: pretty; }
.ai-panel-body.sm { font-size: 12.5px; line-height: 1.6; margin-top: 8px; }

.config-list { border-top: 1px solid var(--bd); margin-top: 13px; padding-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.config-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg2); }
.config-row span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--fg); }

/* ---- incidents screen ------------------------------------------------------ */

.incidents-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 14px; align-items: start; }
@media (max-width: 980px) { .incidents-layout { grid-template-columns: 1fr; } }
.incidents-list { display: flex; flex-direction: column; gap: 10px; }
.incidents-side { display: flex; flex-direction: column; gap: 10px; }

.incident-card { overflow: hidden; }
.incident-head { display: flex; align-items: center; gap: 11px; padding: 13px 15px; cursor: pointer; border: none; background: none; width: 100%; text-align: left; font: inherit; color: inherit; }
.incident-head:hover { background: var(--hov); }
.incident-head .dot { width: 8px; height: 8px; flex: none; }
.incident-head .title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.incident-head .meta { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); margin-top: 2px; }
.incident-head .right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }
.incident-head .dur { font-family: var(--mono); font-size: 11px; }
.incident-head .chev { transition: transform .15s; }
.incident-head .chev.open { transform: rotate(180deg); }

.incident-body { border-top: 1px solid var(--bd); padding: 15px; }
.timeline { display: flex; flex-direction: column; }
.timeline-row { display: flex; gap: 12px; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; width: 10px; flex: none; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid; background: var(--card); flex: none; margin-top: 3px; }
.timeline-line { width: 1px; flex: 1; background: var(--bd); }
.timeline-content { padding-bottom: 16px; min-width: 0; }
.timeline-row:last-child .timeline-content { padding-bottom: 0; }
.timeline-row:last-child .timeline-line { background: transparent; }
.timeline-head { display: flex; align-items: baseline; gap: 9px; }
.timeline-t { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); flex: none; }
.timeline-label { font-size: 12.5px; font-weight: 600; }
.timeline-desc { font-size: 12px; color: var(--fg2); margin-top: 2px; line-height: 1.5; }

.ai-inline { border: 1px solid var(--bd); background: var(--card2); border-radius: 8px; padding: 12px 13px; margin-top: 12px; }
.note-box { margin-top: 12px; }
.note-label { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); margin-bottom: 6px; }
.textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--bd); border-radius: 8px; background: var(--bg); color: var(--fg); font-size: 12.5px; font-family: inherit; line-height: 1.5; padding: 9px 11px; outline: none; box-sizing: border-box; }
.textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--ring); }
.incident-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.saved-note { border: 1px solid var(--bd); border-radius: 8px; padding: 11px 13px; margin-top: 12px; background: var(--bg); }
.saved-note .body { font-size: 12.5px; color: var(--fg2); line-height: 1.55; margin-top: 6px; white-space: pre-wrap; }

.side-panel { padding: 14px 15px; }
.side-panel .oncall-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.side-panel .oncall-row.next { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bd); }
.avatar-lg { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.avatar-lg.on { background: var(--up-bg); border: 1px solid var(--up); color: var(--up-fg); }
.avatar-lg.off { background: var(--card2); border: 1px solid var(--bd); color: var(--fg2); }
.side-note { font-size: 11px; color: var(--fg3); margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--bd); }
.kv-row { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--fg2); }
.kv-row:first-of-type { margin-top: 10px; }
.kv-row span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--fg); }

/* ---- settings screen -------------------------------------------------------- */

.settings-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.settings-card-head { padding: 14px 16px; border-bottom: 1px solid var(--bd); }
.settings-card-head .title { font-size: 13.5px; font-weight: 600; }
.settings-card-head .sub { font-size: 12px; color: var(--fg3); margin-top: 2px; }

.settings-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bd); }
.settings-row:last-child { border-bottom: none; }
.settings-glyph { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--bd); background: var(--card2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--fg2); flex: none; }
.settings-row .name { font-size: 13px; font-weight: 500; }
.settings-row .desc { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); margin-top: 1px; }
.settings-row .right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }
.settings-row .state { font-size: 10.5px; font-weight: 500; }

.region-row-code { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; border: 1px solid var(--bd); border-radius: 5px; padding: 2.5px 7px; color: var(--fg2); flex: none; }
.region-row-name { font-size: 13px; font-weight: 500; }
.region-row-note { font-size: 10.5px; color: var(--fg3); }

.switch { width: 36px; height: 20px; border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; flex: none; border: none; padding: 0; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.switch.on .knob { transform: translateX(16px); }

.apikey-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.apikey-value { flex: 1; min-width: 160px; font-family: var(--mono); font-size: 12px; color: var(--fg2); background: var(--card2); border: 1px solid var(--bd); border-radius: 7px; padding: 8px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bd); }
.team-row:last-child { border-bottom: none; }
.role-badge { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; border: 1px solid var(--bd); border-radius: 5px; padding: 2.5px 6px; color: var(--fg2); text-transform: uppercase; }
.role-select { height: 28px; border: 1px solid var(--bd); border-radius: 6px; background: var(--card); color: var(--fg); font-size: 12px; padding: 0 6px; }
.team-form { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; align-items: center; }
.field-input { height: 32px; border: 1px solid var(--bd); border-radius: 7px; background: var(--bg); color: var(--fg); font-size: 12.5px; font-family: inherit; padding: 0 10px; outline: none; }
.field-input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--ring); }

/* ---- account & billing (#/account) ------------------------------------------ */

.meter-list { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.meter-block { display: flex; flex-direction: column; gap: 7px; }
.meter-head { display: flex; align-items: center; justify-content: space-between; }
.meter-label { font-size: 13px; font-weight: 500; }
.meter-count { font-family: var(--mono); font-size: 11.5px; color: var(--fg2); }
.meter { height: 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--bd); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--pri); transition: width .3s ease; }
.meter-fill.warn { background: var(--dg); }
.meter-fill.over { background: var(--dn); }

.plan-stat { display: flex; flex-direction: column; gap: 3px; }
.plan-stat-label { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); }
.plan-stat-value { font-size: 13px; font-weight: 500; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; padding: 16px; }
.feature-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.feature-mark { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; }
.feature-mark.on { color: var(--up-fg); }
.feature-mark.off { color: var(--fg3); }
.feature-label { color: var(--fg2); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid var(--bd); border-radius: 9px; background: var(--card); }
.plan-card.current { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.plan-card-head { display: flex; align-items: center; gap: 8px; }
.plan-card-name { font-size: 13.5px; font-weight: 600; }
.plan-badge { margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--pri-fg); background: var(--pri); border-radius: 5px; padding: 2px 6px; }
.plan-card-price { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 3px; }
.plan-card-price .per { font-size: 12px; font-weight: 500; color: var(--fg3); }
.plan-card-limits { display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: 11px; color: var(--fg2); }
.plan-card-current { margin-top: auto; font-size: 11.5px; color: var(--fg3); }
.plan-switch-btn { margin-top: auto; width: 100%; justify-content: center; }
.plan-switch-btn:disabled { opacity: .5; cursor: default; }

/* ---- platform staff console (#/staff) --------------------------------------- */

.staff-wrap { max-width: 900px; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.staff-table th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); padding: 10px 16px; border-bottom: 1px solid var(--bd); white-space: nowrap; }
.staff-table td { padding: 10px 16px; border-bottom: 1px solid var(--bd); vertical-align: middle; }
.staff-table tbody tr:last-child td { border-bottom: none; }
.staff-table td.mono { font-family: var(--mono); font-size: 11.5px; color: var(--fg2); white-space: nowrap; }
.staff-acct-name { font-size: 13px; font-weight: 500; }
.staff-acct-id { font-family: var(--mono); font-size: 10.5px; color: var(--fg3); margin-top: 1px; }
.staff-acct-created { color: var(--fg3); white-space: nowrap; }

/* Users table: email (mono) + name, right-aligned delete action. */
.staff-user-email { font-family: var(--mono); font-size: 11.5px; }
.staff-user-name { font-size: 12px; color: var(--fg3); margin-top: 1px; }
.staff-user-acct { color: var(--fg2); }
.staff-users-table td.staff-user-actions { text-align: right; }
.btn-danger.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; display: inline-flex; }
.btn-danger:disabled { opacity: .4; cursor: not-allowed; }

/* ---- staff shell (separate console) ----------------------------------------- */

.brand-staff { margin-left: auto; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; color: var(--pri-fg); background: var(--pri); border-radius: 5px; padding: 2px 5px; }
.staff-shell .sidebar { background: var(--card); box-shadow: inset -2px 0 0 var(--pri); }

/* ---- staff plan editor (P5.2) ----------------------------------------------- */

.staff-plans-loading { padding: 16px; font-size: 12.5px; color: var(--fg3); }
.staff-plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; padding: 14px 16px; }
.staff-plan-field { display: flex; flex-direction: column; gap: 5px; }
.staff-plan-flabel { font-size: 11px; font-weight: 500; color: var(--fg2); }
.staff-plan-field .field-input { width: 100%; }
.staff-plan-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; padding: 0 16px 14px; border-bottom: 1px solid var(--bd); }
.staff-plan-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg2); cursor: pointer; }
.staff-plan-check input { width: 15px; height: 15px; accent-color: var(--pri); cursor: pointer; }
.staff-plan-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; }
/* Plans-tab header bar (title + "Add plan" button), mirrors staff-regions-head. */
.staff-plans-head { display: flex; align-items: center; gap: 12px; border-bottom: none; }
.staff-plans-head .btn-primary { margin-left: auto; flex: none; }
/* Add-plan modal: reuse the plan-card grid/feature layout, but drop their card
   padding/border so they sit flush in the already-padded modal body. */
.modal-body .staff-plan-grid { padding: 0; }
.modal-body .staff-plan-features { padding: 0; border-bottom: none; }
.field-hint { font-size: 11.5px; color: var(--fg3); margin-top: 6px; }

/* ---- staff regions & probes ------------------------------------------------- */

.staff-regions-head { display: flex; align-items: center; gap: 12px; }
.staff-regions-head .btn-primary { margin-left: auto; flex: none; }
.staff-region-item { border-bottom: 1px solid var(--bd); }
.staff-region-item:last-child { border-bottom: none; }
.staff-region-item .settings-row { border-bottom: none; }
.region-swatch { width: 12px; height: 12px; border: 1px solid var(--bd2); }
.staff-region-empty { padding: 16px; font-size: 12.5px; color: var(--fg3); }
.staff-region-item .btn-secondary.active { background: var(--hov); color: var(--fg); border-color: var(--bd2); }

.probe-cmd { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.probe-cmd-row { display: flex; align-items: stretch; gap: 8px; }
.probe-cmd-code { flex: 1; min-width: 0; margin: 0; background: var(--card2); border: 1px solid var(--bd); border-radius: 7px; padding: 9px 11px; overflow-x: auto; }
.probe-cmd-code code { font-family: var(--mono); font-size: 11.5px; color: var(--fg2); white-space: pre; }
.probe-cmd-row .btn-secondary { flex: none; align-self: flex-start; }
.probe-cmd-note { font-size: 10.5px; color: var(--fg3); }
/* Reuse probeCommandBlock inside the add-region wizard: drop its region-row
   horizontal padding so it aligns with the modal body's own padding. */
.modal-body .probe-cmd { padding: 0; }
/* The wizard's live probe-connect status line (step 2). */
.probe-status { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg3); }
.probe-status.connected { color: var(--up-fg); font-weight: 500; }

/* ---- per-region live probes panel ------------------------------------------- */
.probe-count-chip { font-size: 10.5px; font-weight: 500; color: var(--fg2); flex: none; }
.probe-count-chip.zero { color: var(--fg3); }
.probe-panel { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--card2); border-top: 1px solid var(--bd); }
.probe-mode-seg { display: inline-flex; align-self: flex-start; border: 1px solid var(--bd); border-radius: 7px; overflow: hidden; }
.probe-mode-seg button { height: 28px; padding: 0 13px; border: none; background: var(--card); font-size: 12px; font-weight: 500; color: var(--fg3); cursor: pointer; }
.probe-mode-seg button + button { border-left: 1px solid var(--bd); }
.probe-mode-seg button:hover { color: var(--fg2); background: var(--hov); }
.probe-mode-seg button.active { background: var(--pri); color: #fff; }
.probe-mode-hint { font-size: 10.5px; color: var(--fg3); }
.probe-table { display: flex; flex-direction: column; border: 1px solid var(--bd); border-radius: 7px; overflow: hidden; }
.probe-row { display: grid; grid-template-columns: 1.4fr 1.8fr 1fr 1fr .9fr; gap: 10px; align-items: center; padding: 8px 12px; font-size: 12px; color: var(--fg2); border-top: 1px solid var(--bd); }
.probe-tbody .probe-row:first-child { border-top: none; }
.probe-row-head { border-top: none; background: var(--card); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--fg3); }
.probe-id { font-family: var(--mono); font-size: 11px; color: var(--fg2); overflow: hidden; text-overflow: ellipsis; }
.probe-status-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.probe-empty { padding: 14px 12px; font-size: 12px; color: var(--fg3); }

.field-color { width: 46px; height: 34px; padding: 3px; border: 1px solid var(--bd); border-radius: 7px; background: var(--bg); cursor: pointer; }

/* ---- add-monitor modal ------------------------------------------------------ */

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 150; display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; }
.modal-card { width: 560px; max-width: 92vw; background: var(--card); border: 1px solid var(--bd2); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.4); overflow: hidden; }
.modal-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--bd); }
.modal-head-row { display: flex; align-items: center; }
.modal-title { font-size: 14.5px; font-weight: 600; }
.modal-step { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--fg3); }
.modal-close { margin-left: 12px; width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg3); border: none; background: none; }
.modal-close:hover { background: var(--hov); color: var(--fg); }
.modal-progress { height: 3px; border-radius: 2px; background: var(--card2); margin-top: 12px; overflow: hidden; }
.modal-progress-fill { height: 100%; border-radius: 2px; background: var(--pri); transition: width .25s ease; }

.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; max-height: 60vh; overflow-y: auto; }
.type-grid { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.type-card { border: 1px solid var(--bd); background: transparent; border-radius: 9px; padding: 11px 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; color: inherit; }
.type-card:hover { border-color: var(--bd2); }
.type-card.active { border-color: var(--pri); background: var(--up-bg); }
.type-card .code { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; border: 1px solid var(--bd); border-radius: 5px; padding: 2.5px 6px; color: var(--fg2); margin-top: 1px; flex: none; }
.type-card.active .code { color: var(--up-fg); }
.type-card .label { font-size: 13px; font-weight: 600; }
.type-card .desc { font-size: 11.5px; color: var(--fg3); margin-top: 2px; line-height: 1.45; }

.field-label { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.field-full { height: 34px; width: 100%; border: 1px solid var(--bd); border-radius: 7px; background: var(--bg); color: var(--fg); font-size: 13px; font-family: inherit; padding: 0 12px; outline: none; box-sizing: border-box; }
.field-full:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--ring); }
.field-full.mono { font-family: var(--mono); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pick-chip { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--bd); background: transparent; color: var(--fg2); font-family: var(--mono); font-size: 11.5px; cursor: pointer; }
.pick-chip:hover { border-color: var(--bd2); }
.pick-chip.active { border-color: var(--pri); background: var(--up-bg); color: var(--up-fg); }
.pick-chip.wide { font-size: 12px; font-family: inherit; font-weight: 500; }
.pick-chip .code { font-family: var(--mono); font-size: 10px; }

.summary-box { border: 1px solid var(--bd); border-radius: 9px; background: var(--card2); padding: 13px 14px; }
.summary-row { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12.5px; color: var(--fg2); }
.summary-row:first-of-type { margin-top: 9px; }
.summary-row span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--fg); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-hint { font-size: 11.5px; color: var(--fg3); line-height: 1.5; }

.modal-foot { padding: 13px 18px; border-top: 1px solid var(--bd); display: flex; align-items: center; gap: 8px; }
.modal-hint { margin-left: auto; font-size: 11.5px; color: var(--fg3); }

.field-error { font-size: 12px; color: var(--dn-fg); margin-top: 4px; }

.btn-danger { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 7px; background: var(--dn); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; }
.btn-danger:hover { opacity: .9; }

/* ---- delete-monitor confirm modal ------------------------------------------- */

.confirm-overlay { align-items: center; padding-top: 0; }
.confirm-card { width: 380px; padding: 20px; }
.confirm-head { display: flex; align-items: center; gap: 11px; }
.confirm-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--dn-bg); color: var(--dn-fg); display: flex; align-items: center; justify-content: center; flex: none; }
.confirm-title { font-size: 15px; font-weight: 600; }
.confirm-body { font-size: 13px; color: var(--fg2); line-height: 1.55; margin-top: 12px; }
.confirm-name { font-weight: 600; color: var(--fg); }
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ---- alert routing rules ----------------------------------------------------- */

.route-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bd); }
.route-card-head .title { font-size: 13.5px; font-weight: 600; }
.route-card-head .sub { font-size: 12px; color: var(--fg3); margin-top: 2px; }
.route-card-head .add-btn { margin-left: auto; flex: none; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 7px; background: var(--pri); color: var(--pri-fg); font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; }
.route-card-head .add-btn:hover { background: var(--pri-hov); }

.route-row { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--bd); flex-wrap: wrap; }
.route-row:last-child { border-bottom: none; }
.route-label { font-size: 11.5px; color: var(--fg3); flex: none; }
.route-select { height: 30px; border: 1px solid var(--bd); border-radius: 7px; background: var(--bg); color: var(--fg); font-size: 12.5px; font-family: inherit; padding: 0 8px; outline: none; cursor: pointer; }
.route-select:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--ring); }
.route-select.mon { max-width: 180px; }
.route-input { flex: 1; min-width: 130px; height: 30px; border: 1px solid var(--bd); border-radius: 7px; background: var(--bg); color: var(--fg); font-size: 12.5px; font-family: var(--mono); padding: 0 10px; outline: none; box-sizing: border-box; }
.route-input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--ring); }
.route-empty { padding: 20px 16px; text-align: center; font-size: 12.5px; color: var(--fg3); }

/* ---- toasts ---------------------------------------------------------------- */

/* The toast container is `<div id="toast-root">` (id, not class) — the
   selector must match the id, else the fixed bottom-right positioning never
   applies and toasts stack full-width in normal flow, overflowing the page. */
#toast-root { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: 330px; max-height: 100vh; overflow-y: auto; }
.toast { background: var(--card2); border: 1px solid var(--bd2); border-radius: 10px; padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast .dot { width: 7px; height: 7px; flex: none; margin-top: 4px; }
.toast .title { font-size: 12.5px; font-weight: 600; }
.toast .desc { font-size: 11.5px; color: var(--fg2); margin-top: 2px; line-height: 1.45; }
.toast .close { margin-left: auto; color: var(--fg3); cursor: pointer; flex: none; padding: 2px; border: none; background: none; }
.toast .close:hover { color: var(--fg); }

/* ---- login screen ----------------------------------------------------------- */

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--fg); padding: 24px; }
.login-card { width: 380px; max-width: 100%; background: var(--card); border: 1px solid var(--bd); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 28px 26px; }
.login-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.login-title { font-size: 16px; font-weight: 600; margin-top: 4px; }
.login-sub { font-size: 12.5px; color: var(--fg3); margin-top: 4px; margin-bottom: 20px; }
.login-field { margin-bottom: 14px; }
.login-error { background: var(--dn-bg); border: 1px solid var(--dn); color: var(--dn-fg); font-size: 12.5px; border-radius: 8px; padding: 9px 11px; margin-bottom: 14px; line-height: 1.5; }
.login-switch { margin-top: 16px; font-size: 12.5px; color: var(--fg3); text-align: center; }
.login-switch button { background: none; border: none; color: var(--pri); font-weight: 600; cursor: pointer; font-size: 12.5px; padding: 0; }
.login-switch button:hover { color: var(--pri-hov); }
.login-submit { width: 100%; height: 36px; justify-content: center; margin-top: 4px; }

/* ---- misc ------------------------------------------------------------------- */

.hidden { display: none !important; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bd2); border-top-color: var(--fg2); animation: lguSpin .6s linear infinite; }
.center-loading { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--fg3); font-size: 13px; gap: 8px; }
