:root {
  --bg: #f5f6fa;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --bg-input: #f9fafc;
  --text: #1a1d2e;
  --text-soft: #5a6175;
  --text-dim: #949aad;
  --border: #e4e7f0;
  --border-strong: #cdd3e2;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef2ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #e11d48;
  --danger-soft: #fff1f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --transition: 200ms ease;
}

body[data-theme="dark-emerald"] {
  --bg: #08140e;
  --bg-card: #0d1f17;
  --bg-raised: #11281c;
  --bg-input: #0a1a12;
  --text: #d1fae5;
  --text-soft: #a7f3d0;
  --text-dim: #6ee7b7;
  --border: rgba(110, 231, 183, 0.12);
  --border-strong: rgba(110, 231, 183, 0.22);
  --accent: #34d399;
  --accent-strong: #6ee7b7;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark-indigo"] {
  --bg: #0b0d1a;
  --bg-card: #11142e;
  --bg-raised: #161a3a;
  --bg-input: #0e1024;
  --text: #e0e7ff;
  --text-soft: #c7d2fe;
  --text-dim: #a5b4fc;
  --border: rgba(165, 180, 252, 0.12);
  --border-strong: rgba(165, 180, 252, 0.22);
  --accent: #818cf8;
  --accent-strong: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark-amber"] {
  --bg: #141006;
  --bg-card: #1f1a0e;
  --bg-raised: #282214;
  --bg-input: #161206;
  --text: #fef3c7;
  --text-soft: #fde68a;
  --text-dim: #fbbf24;
  --border: rgba(251, 191, 36, 0.12);
  --border-strong: rgba(251, 191, 36, 0.22);
  --accent: #f59e0b;
  --accent-strong: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark-rose"] {
  --bg: #14080d;
  --bg-card: #1f0f16;
  --bg-raised: #28161d;
  --bg-input: #160a10;
  --text: #ffe4e6;
  --text-soft: #fecdd3;
  --text-dim: #fda4af;
  --border: rgba(253, 164, 175, 0.12);
  --border-strong: rgba(253, 164, 175, 0.22);
  --accent: #f43f5e;
  --accent-strong: #fb7185;
  --accent-soft: rgba(244, 63, 94, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body[data-theme="light-warm"] {
  --bg: #fffbeb;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --bg-input: #fefce8;
  --text: #451a03;
  --text-soft: #78350f;
  --text-dim: #b45309;
  --border: rgba(245, 158, 11, 0.15);
  --border-strong: rgba(245, 158, 11, 0.3);
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-soft: #fef3c7;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #e11d48;
  --danger-soft: #fff1f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body[data-theme="dark-mono"] {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-raised: #242424;
  --bg-input: #121212;
  --text: #f5f5f5;
  --text-soft: #d4d4d4;
  --text-dim: #a3a3a3;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #e5e5e5;
  --accent-strong: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --success: #86efac;
  --success-soft: rgba(134, 239, 172, 0.12);
  --danger: #fca5a5;
  --danger-soft: rgba(252, 165, 165, 0.12);
  --warning: #fcd34d;
  --warning-soft: rgba(252, 211, 77, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(79, 70, 229, 0.18);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    opacity var(--transition);
  touch-action: manipulation;
}

button:hover,
.button-link:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow);
}

button:active,
.button-link:active {
  transform: scale(0.98);
}

button.ghost,
.button-link.ghost-link,
.icon-button {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

button.ghost:hover,
.button-link.ghost-link:hover,
.icon-button:hover {
  background: var(--bg);
  border-color: var(--border-strong);
  box-shadow: none;
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

button.danger:hover {
  background: #be123c;
  border-color: #be123c;
}

button.icon-button {
  min-width: 44px;
  width: 44px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.2rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0; }
form { margin: 0; }

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.lede { color: var(--text-soft); font-size: 0.95rem; }
.muted { color: var(--text-dim); font-size: 0.88rem; }

.mono {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
}

/* ── Layout ─────────────────────────────── */

.page-shell,
.auth-stage {
  position: relative;
  z-index: 1;
}

.page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  width: min(1340px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.page-shell-single {
  grid-template-columns: 280px minmax(0, 900px);
}

.side-rail,
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-rail {
  position: sticky;
  top: 1rem;
  height: max-content;
}

/* ── Cards ──────────────────────────────── */

.side-card,
.section-card,
.auth-card,
.modal-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.side-card { padding: 1.1rem; }

/* ── Brand card ─────────────────────────── */

.brand-card {
  padding: 1.25rem 1.2rem 1.4rem;
  border-color: var(--accent-soft);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-card));
}

/* ── Nav ────────────────────────────────── */

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rail-nav a,
.mobile-dock a,
.mobile-dock button,
.mobile-dock-profile a,
.mobile-dock-profile button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: transparent;
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color var(--transition), color var(--transition);
  touch-action: manipulation;
}

.rail-nav a:hover,
.mobile-dock a:hover,
.mobile-dock button:hover,
.mobile-dock-profile a:hover,
.mobile-dock-profile button:hover {
  color: var(--text);
  background: var(--bg);
}

.rail-nav a.is-active,
.mobile-dock a.is-active,
.mobile-dock button.is-active,
.mobile-dock-profile a.is-active,
.mobile-dock-profile button.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.mobile-dock form,
.mobile-dock-profile form {
  display: flex;
}

.mobile-dock form > *,
.mobile-dock-profile form > * {
  width: 100%;
}

/* ── Rail actions / snapshot ────────────── */

.rail-actions,
.rail-actions form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rail-actions .button-link,
.rail-actions button,
.empty-state .button-link {
  width: 100%;
}

.rail-snapshot {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.snapshot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.snapshot-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.snapshot-row span { color: var(--text-dim); font-size: 0.85rem; }
.snapshot-row strong { font-weight: 600; font-size: 0.9rem; }

#ws-status {
  color: var(--text-soft);
  text-align: right;
  word-break: break-word;
  font-weight: 500;
  font-size: 0.85rem;
}

/* ── Content ────────────────────────────── */

.content-stack { min-width: 0; }

/* ── Mobile admin bar ───────────────────── */

.mobile-admin-bar {
  display: none;
  gap: 0.85rem;
}

.mobile-admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
}

.mobile-status-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.mobile-status-chip span {
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.mobile-status-chip strong {
  font-size: 0.92rem;
  word-break: break-word;
  line-height: 1.3;
}

.mobile-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.mobile-admin-actions > * { width: 100%; }
.mobile-admin-actions form { display: flex; }
.mobile-admin-actions .mobile-admin-logout { grid-column: 1 / -1; }
.mobile-admin-actions .mobile-admin-logout button { width: 100%; }

/* ── Section card ───────────────────────── */

.section-card {
  padding: 1.35rem;
  scroll-margin-top: 1rem;
}

/* ── Hero stage ─────────────────────────── */

.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--accent-soft);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-card));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Metric grid ────────────────────────── */

.metric-strip,
.runtime-grid,
.security-grid {
  display: grid;
  gap: 0.85rem;
}

.metric-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-strip-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.metric-tile,
.status-panel,
.form-section,
.spectacle-card,
.empty-state,
.totp-box {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.metric-tile {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 140px;
}

.metric-tile.accent {
  border-color: rgba(79, 70, 229, 0.2);
  background: var(--accent-soft);
}

.metric-tile.success {
  border-color: rgba(5, 150, 105, 0.2);
  background: var(--success-soft);
}

.metric-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.metric-value {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
}

/* ── Actions ────────────────────────────── */

.hero-actions,
.actions,
.card-actions,
.panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-actions form,
.actions form,
.card-actions form {
  display: flex;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-fold[hidden] { display: none; }

.collapse-button[aria-expanded="false"] .collapse-chevron {
  transform: rotate(-90deg);
}

.collapse-chevron {
  display: inline-block;
  transition: transform var(--transition);
}

/* ── Runtime ────────────────────────────── */

.runtime-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr);
  margin-bottom: 0.85rem;
}

.status-panel {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.status-line {
  font-size: 0.95rem;
  font-weight: 600;
}

.command-line {
  word-break: break-word;
}

.runtime-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.runtime-controls-row .hero-actions {
  flex: 1;
}

.log-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.log-follow input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  margin: 0;
}

.console-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.console {
  width: 100%;
  height: clamp(260px, 44vh, 500px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #1e1f2e;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0.85rem;
}

.console .xterm {
  height: 100%;
}

.console .xterm-viewport {
  background: transparent !important;
}

.runtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-soft);
  background: var(--bg);
}

.runtime-badge.ok {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(5, 150, 105, 0.25);
}

.runtime-badge.ok::before { content: "● "; }
.runtime-badge.idle::before { content: "○ "; }

.runtime-badge.idle {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(225, 29, 72, 0.2);
}

#ws-status.ws-error,
[data-ws-status-mirror].ws-error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
}

/* ── Settings form ──────────────────────── */

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

label.checkbox:hover {
  border-color: var(--border-strong);
}

input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9rem;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

.span-2 { grid-column: span 2; }

/* ── Spectacles ─────────────────────────── */

.spectacle-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spectacle-list > .empty-state {
  align-self: stretch;
}

.spectacle-card,
.empty-state,
.totp-box {
  padding: 1rem;
}

.spectacle-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem;
}

.spectacle-card-disabled {
  opacity: 0.6;
  background: var(--bg);
}

.spectacle-card .drag-handle {
  position: absolute;
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: grab;
  font-size: 1.1rem;
  letter-spacing: -0.15em;
  line-height: 1;
  user-select: none;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.spectacle-card .drag-handle:active {
  cursor: grabbing;
}

.spectacle-card:hover .drag-handle {
  opacity: 1;
}

.spectacle-card.sortable-ghost {
  opacity: 0.35;
  background: var(--accent-soft);
}

.spectacle-card.sortable-chosen {
  box-shadow: var(--shadow-lg);
}

.spectacle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding-left: 1.4rem;
}

.spectacle-card-head > div { min-width: 0; }

.spectacle-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spectacle-subtitle {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  word-break: break-word;
}

.spectacle-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.45rem;
  padding-left: 1.4rem;
}

.spectacle-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.spectacle-facts span {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spectacle-facts strong {
  word-break: break-word;
  line-height: 1.25;
  font-size: 0.85rem;
}

.spectacle-card .runtime-badge {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
}

.spectacle-card .card-actions {
  gap: 0.45rem;
  flex-wrap: wrap;
  padding-left: 1.4rem;
}

.spectacle-card .button-link,
.spectacle-card button {
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
}

/* ── Outlook ────────────────────────────── */

.outlook-card .card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.outlook-card .card-actions > * { width: 100%; min-width: 0; }
.outlook-card .card-actions form { width: 100%; }

.outlook-card .button-link,
.outlook-card button {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ── User table ─────────────────────────── */

.user-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.user-table th {
  text-align: left;
  padding: 0.55rem 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.user-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  vertical-align: middle;
}

.user-table tr:last-child td {
  border-bottom: none;
}

.user-table tr:hover td {
  background: var(--bg);
}

.role-select {
  min-height: auto !important;
  height: 34px;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.8rem !important;
  width: auto !important;
}

.totp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.totp-badge.on {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.totp-badge.off {
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
}

/* ── Invite cards ───────────────────────── */

.invite-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invite-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.invite-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.invite-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invite-link {
  font-size: 0.78rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  color: var(--accent);
  word-break: break-all;
}

.copy-btn {
  min-height: auto !important;
  height: 30px;
  padding: 0.2rem 0.6rem !important;
  font-size: 0.72rem !important;
  flex-shrink: 0;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.invite-status {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .user-table th:nth-child(3),
  .user-table td:nth-child(3),
  .user-table th:nth-child(4),
  .user-table td:nth-child(4) {
    display: none;
  }

  .invite-card {
    flex-direction: column;
    align-items: stretch;
  }

  .invite-status {
    align-self: flex-start;
  }

  .role-select {
    font-size: 0.72rem !important;
  }

  button, .button-link {
    white-space: normal;
    text-align: center;
  }
}

/* ── Empty state ────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

/* ── Mobile dock ────────────────────────── */

.mobile-dock,
.mobile-dock-profile {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  z-index: 30;
  transform: translateX(-50%);
  display: none;
  gap: 0.35rem;
  width: min(640px, calc(100% - 0.75rem));
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-dock-profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="dark-emerald"] .mobile-dock,
body[data-theme="dark-emerald"] .mobile-dock-profile,
body[data-theme="dark-indigo"] .mobile-dock,
body[data-theme="dark-indigo"] .mobile-dock-profile,
body[data-theme="dark-amber"] .mobile-dock,
body[data-theme="dark-amber"] .mobile-dock-profile,
body[data-theme="dark-rose"] .mobile-dock,
body[data-theme="dark-rose"] .mobile-dock-profile,
body[data-theme="dark-mono"] .mobile-dock,
body[data-theme="dark-mono"] .mobile-dock-profile {
  background: var(--bg-card);
}

.mobile-dock a,
.mobile-dock button,
.mobile-dock-profile a,
.mobile-dock-profile button {
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  white-space: normal;
  border-radius: 14px;
  font-weight: 500;
  word-break: break-word;
}

.mobile-dock a.is-active,
.mobile-dock button.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

body.modal-open .mobile-dock,
body.modal-open .mobile-dock-profile {
  opacity: 0;
  pointer-events: none;
}

.mobile-dock-more { position: relative; }

.mobile-dock-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 160px;
  animation: rise-in 150ms ease-out;
  z-index: 35;
}

.mobile-dock-dropdown a,
.mobile-dock-dropdown button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: none;
  text-align: left;
  white-space: nowrap;
}

.mobile-dock-dropdown a:hover,
.mobile-dock-dropdown button:hover {
  background: var(--bg);
  color: var(--text);
}

.mobile-dock-dropdown a.is-active,
.mobile-dock-dropdown button.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* ── Modal ──────────────────────────────── */

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 25, 0.6);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: calc(100vh - 2rem);
  padding: 1.25rem;
  overflow: auto;
}

.modal-head { margin-bottom: 1rem; }

/* ── Flash (inline) ─────────────────────── */

.flash {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.flash-error {
  border-color: rgba(225, 29, 72, 0.2);
  background: var(--danger-soft);
  color: var(--danger);
}

/* ── Auth / Login ───────────────────────── */

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(320px, 440px);
  justify-content: center;
  width: 100%;
}

.auth-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.form-title h2 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.login-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.login-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.login-theme-btn:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.login-theme-btn .swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
}

.login-theme-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 170px;
  animation: rise-in 150ms ease-out;
}

.login-theme-dropdown[hidden] {
  display: none;
}

.login-theme-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  justify-content: flex-start;
}

.login-theme-dropdown button:hover {
  background: var(--bg);
  color: var(--text);
}

.login-theme-dropdown button.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.login-theme-dropdown .mini-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mini-swatch-light { background: linear-gradient(135deg, #f5f6fa 50%, #4f46e5 50%); }
.mini-swatch-emerald { background: linear-gradient(135deg, #0d1f17 50%, #34d399 50%); }
.mini-swatch-indigo { background: linear-gradient(135deg, #11142e 50%, #818cf8 50%); }
.mini-swatch-amber { background: linear-gradient(135deg, #1f1a0e 50%, #f59e0b 50%); }
.mini-swatch-rose { background: linear-gradient(135deg, #1f0f16 50%, #f43f5e 50%); }
.mini-swatch-warm { background: linear-gradient(135deg, #fffbeb 50%, #d97706 50%); }
.mini-swatch-mono { background: linear-gradient(135deg, #1a1a1a 50%, #a3a3a3 50%); }
.mini-swatch-custom { background: conic-gradient(#4f46e5, #34d399, #f59e0b, #f43f5e, #818cf8, #4f46e5); }

/* ── Security / Profile ─────────────────── */

.security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-picker {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-option:hover {
  border-color: var(--border-strong);
}

.theme-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.theme-swatch-light {
  background: linear-gradient(135deg, #f5f6fa 50%, #ffffff 50%);
}

.theme-swatch-emerald {
  background: linear-gradient(135deg, #0d1f17 50%, #34d399 50%);
}

.theme-swatch-indigo {
  background: linear-gradient(135deg, #11142e 50%, #818cf8 50%);
}

.theme-swatch-amber {
  background: linear-gradient(135deg, #1f1a0e 50%, #f59e0b 50%);
}

.theme-swatch-rose {
  background: linear-gradient(135deg, #1f0f16 50%, #f43f5e 50%);
}

.theme-swatch-warm {
  background: linear-gradient(135deg, #fffbeb 50%, #d97706 50%);
}

.theme-swatch-mono {
  background: linear-gradient(135deg, #1a1a1a 50%, #a3a3a3 50%);
}

.theme-swatch-custom {
  background: conic-gradient(#4f46e5, #34d399, #f59e0b, #f43f5e, #818cf8, #4f46e5);
}

.theme-option span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
}

.theme-editor {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.theme-editor.is-visible {
  display: flex;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.color-field span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  min-width: 80px;
  white-space: nowrap;
}

.color-field input[type="color"] {
  width: 30px;
  height: 30px;
  min-height: auto;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-field input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.color-field input[type="text"] {
  flex: 1;
  min-height: auto;
  height: 30px;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.totp-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.totp-secret,
.totp-uri {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  word-break: break-word;
}

.totp-qr {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
}

.totp-qr img {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
}

/* ── Tabs ───────────────────────────────── */

.tab-bar {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.tab-btn {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  background: var(--bg);
  border-color: var(--border-strong);
}

.tab-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ── Password toggle (SVG eyes) ─────────── */

.password-toggle-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.password-toggle-wrap input { flex: 1; }

[data-toggle-password] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

[data-toggle-password]:hover {
  background: var(--bg);
  color: var(--text-soft);
  border-color: var(--border-strong);
}

.pw-eye {
  width: 20px;
  height: 20px;
  display: block;
}

.pw-eye line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ── Toast root ─────────────────────────── */

#toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100% - 32px));
  pointer-events: none;
}

.toast {
  position: relative;
  overflow: hidden;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
  animation: toast-slide-in 260ms cubic-bezier(0.21, 1.02, 0.73, 1) both;
  word-break: break-word;
}

.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--accent); }
.toast-warning { background: var(--warning); }

.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform-origin: left;
  transform: scaleX(1);
  border-radius: 0 0 10px 10px;
}

.toast-dismiss {
  animation: toast-slide-out 220ms ease forwards;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ── Utilities ──────────────────────────── */

[hidden] { display: none !important; }

/* ── Animations ─────────────────────────── */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-card,
.section-card,
.auth-card {
  animation: rise-in 300ms ease both;
}

.side-card:nth-child(2) { animation-delay: 50ms; }
.side-card:nth-child(3) { animation-delay: 100ms; }
.side-card:nth-child(4) { animation-delay: 150ms; }

/* ── Scrollbar ──────────────────────────── */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ── Data confirm ───────────────────────── */

[data-confirm].confirming {
  animation: confirm-pulse 600ms ease infinite alternate;
}

@keyframes confirm-pulse {
  from { border-color: rgba(225, 29, 72, 0.35); }
  to   { border-color: rgba(225, 29, 72, 0.65); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1180px) {
  .page-shell,
  .page-shell-single,
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100%, calc(100% - 1rem));
    padding: 0.5rem 0 calc(7rem + env(safe-area-inset-bottom, 0px));
  }

  .section-card,
  .side-card,
  .auth-card,
  .modal-card {
    border-radius: var(--radius-lg);
  }

  .section-card,
  .auth-card,
  .modal-card {
    padding: 1rem;
  }

  .runtime-grid,
  .security-grid,
  .grid-form,
  .spectacle-facts,
  .metric-strip,
  .metric-strip-compact {
    grid-template-columns: 1fr;
  }

  .form-section {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .span-2 { grid-column: auto; }

  .spectacle-card-head,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .side-rail {
    display: none;
  }

  .admin-shell .mobile-admin-bar {
    display: flex;
    flex-direction: column;
  }

  .mobile-dock {
    display: grid;
  }

  .mobile-dock-profile {
    display: grid;
  }

  .runtime-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .console {
    min-height: 200px;
    height: min(34vh, 280px);
  }

  .modal-shell {
    padding: 0;
    align-items: end;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 0.25rem);
    border-radius: 18px 18px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  #toast-root {
    top: 10px;
    right: 10px;
    max-width: min(340px, calc(100% - 20px));
  }

  .toast {
    font-size: 0.84rem;
  }
}

@media (max-width: 560px) {
  body { font-size: 15px; }

  .page-shell,
  .auth-shell {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }

  .metric-value { font-size: 1.6rem; }

  .mobile-admin-top {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-admin-actions {
    grid-template-columns: 1fr;
  }

  .mobile-admin-actions .mobile-admin-logout { grid-column: auto; }

  .mobile-dock,
  .mobile-dock-profile {
    width: calc(100% - 0.6rem);
    padding: 0.45rem;
    gap: 0.3rem;
    bottom: 0.4rem;
  }

  .mobile-dock a,
  .mobile-dock button,
  .mobile-dock-profile a,
  .mobile-dock-profile button {
    min-height: 40px;
    padding: 0.55rem 0.4rem;
    font-size: 0.78rem;
  }

  .hero-actions,
  .actions,
  .card-actions {
    display: grid;
  }

  .hero-actions > *,
  .actions > *,
  .card-actions > * {
    width: 100%;
  }

  button, .button-link {
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
  }

  #toast-root {
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    gap: 6px;
  }

  .toast {
    min-width: auto;
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .theme-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
.text-danger { color: var(--danger); }
