:root,
:root[data-theme="dark"] {
  --ix-bg: #05070a;
  --ix-bg-soft: #0d1119;
  --ix-surface: rgba(28, 34, 45, 0.96);
  --ix-surface-soft: rgba(35, 42, 55, 0.97);
  --ix-border: rgba(255, 255, 255, 0.1);
  --ix-text: #e7ecf3;
  --ix-muted: #8590a3;
  --ix-dim: #545e70;
  --ix-accent: #5b8cff;
  --ix-accent-strong: #7fa4ff;
  --ix-accent-soft: rgba(91, 140, 255, 0.12);
  --ix-highlight: #33d6a6;
  --ix-highlight-soft: rgba(51, 214, 166, 0.12);
  --ix-danger: #ff6b6b;
  --ix-danger-soft: rgba(255, 107, 107, 0.12);
  --ix-warning: #f6c453;
  --ix-warning-soft: rgba(246, 196, 83, 0.12);
  --ix-automation: #9d8cff;
  --ix-automation-soft: rgba(157, 140, 255, 0.12);
  --ix-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
  --ix-radius-sm: 8px;
  --ix-radius: 12px;
  --ix-radius-lg: 16px;
  --ix-font-ui: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --ix-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --ix-font-heading: var(--ix-font-ui);
  --ix-heading-weight: 800;
}

:root[data-theme="light"] {
  --ix-bg: #e8ecf3;
  --ix-bg-soft: #f7f9fc;
  --ix-surface: #ffffff;
  --ix-surface-soft: #f3f5f9;
  --ix-border: rgba(15, 23, 42, 0.1);
  --ix-text: #1b2430;
  --ix-muted: #5b6472;
  --ix-dim: #8b93a1;
  --ix-accent: #3763e0;
  --ix-accent-strong: #2748b3;
  --ix-accent-soft: rgba(55, 99, 224, 0.12);
  --ix-highlight: #199c73;
  --ix-highlight-soft: rgba(25, 156, 115, 0.12);
  --ix-danger: #d9463f;
  --ix-danger-soft: rgba(217, 70, 63, 0.12);
  --ix-warning: #b9790a;
  --ix-warning-soft: rgba(185, 121, 10, 0.12);
  --ix-automation: #6c4fd6;
  --ix-automation-soft: rgba(108, 79, 214, 0.12);
  --ix-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(15, 23, 42, 0.08);
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ix-text);
  font-family: var(--ix-font-ui);
  background:
    radial-gradient(circle at top left, var(--ix-accent-soft), transparent 32%),
    var(--ix-bg);
}

.sidebar-status-card,
.login-card,
.metric-card,
.info-card,
.wizard-progress-item,
.wizard-card,
.table-card,
.settings-tabs,
.settings-card {
  box-shadow: var(--ix-shadow-card);
}

body.is-busy {
  overflow: hidden;
}

body > .app-shell {
  min-height: 100vh;
}

a {
  color: var(--ix-accent);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.12rem var(--ix-bg), 0 0 0 0.28rem var(--ix-accent-soft);
}

.app-shell {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.mobile-topbar,
.sidebar-close {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1rem 0.85rem;
  border-right: 1px solid var(--ix-border);
  background: var(--ix-bg-soft);
  position: sticky;
  top: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.sidebar-brand-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ix-highlight);
  box-shadow: 0 0 0 2px var(--ix-bg-soft);
  animation: brand-live-pulse 2.4s ease-in-out infinite;
}

.brand-live-dot.is-connected { background: var(--ix-highlight); }
.brand-live-dot.is-disconnected { background: var(--ix-danger); }
.brand-live-dot.is-unknown { background: var(--ix-dim); animation: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--ix-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ix-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  color: var(--ix-text);
  border-color: var(--ix-accent-soft);
  background: var(--ix-accent-soft);
}

.theme-toggle-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: none;
}

:root[data-theme="light"] .theme-toggle-icon.icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle-icon.icon-moon {
  display: block;
}

:root[data-theme-preference="system"] .theme-toggle-icon.icon-sun,
:root[data-theme-preference="system"] .theme-toggle-icon.icon-moon {
  display: none;
}

:root[data-theme-preference="system"] .theme-toggle-icon.icon-system {
  display: block;
}

@keyframes brand-live-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.brand-logo-login {
  width: 4.5rem;
  height: 4.5rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sidebar-title {
  color: var(--ix-text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.sidebar-status-card {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius);
  background: var(--ix-surface);
}

.sidebar-status-label {
  display: block;
  color: var(--ix-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-status-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.sidebar-status-value.is-running {
  color: var(--ix-highlight);
}

.sidebar-status-value.is-idle {
  color: var(--ix-text);
}

.sidebar-status-value.is-disabled {
  color: var(--ix-muted);
}

.sidebar-status-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sidebar-status-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: .28rem .62rem;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  background: var(--ix-automation-soft);
}
.sidebar-status-badge.is-running { color: var(--ix-highlight); background: var(--ix-highlight-soft); }
.sidebar-status-badge.is-idle { color: var(--ix-automation); background: var(--ix-automation-soft); }
.sidebar-status-badge.is-disabled { color: var(--ix-muted); background: rgba(128, 144, 166, .13); }

.sidebar-automation-hero {
  --countdown-progress: 1;
  --countdown-color: var(--ix-automation);
  display: grid;
  gap: 0.75rem;
  margin: 0.95rem 0 0.8rem;
}

.automation-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 10rem;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ix-bg-soft) 0 54%, transparent 55%),
    conic-gradient(from 210deg, var(--countdown-color) calc(var(--countdown-progress) * 1turn), var(--ix-border) 0);
  box-shadow: 0 0 0 1px var(--ix-border);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.sidebar-automation-hero[data-running="true"] .automation-ring {
  animation: automation-pulse 1.8s ease-in-out infinite;
}

.automation-ring::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--ix-border);
}

.automation-ring-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.automation-ring-value {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ix-text);
}

.automation-ring-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ix-muted);
}

.automation-progress-track {
  overflow: hidden;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--ix-border);
}

.automation-progress-bar {
  display: block;
  width: calc(max(0.04, var(--countdown-progress)) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--countdown-color);
  transition: width 0.85s linear, background 0.35s ease;
}

.sidebar-nav {
  display: grid;
  gap: 0.55rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--ix-radius-sm);
  color: var(--ix-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: 0.14s ease;
}

.sidebar-link .ui-icon { width: 1.2rem; height: 1.2rem; color: currentColor; }

/* Global typography hierarchy: UI text and page headings share the same family. */
h1, h2, h3, h4, h5, h6,
.dashboard-heading h1,
.settings-header h1 {
  font-family: var(--ix-font-heading);
}

.dashboard-heading h1,
.settings-header h1 {
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: var(--ix-heading-weight);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.dashboard-heading p,
.settings-header p {
  font-family: var(--ix-font-ui);
  font-size: .98rem;
  line-height: 1.5;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ix-text);
}

.sidebar-link.is-active {
  border-color: rgba(91, 140, 255, 0.25);
  background: var(--ix-accent-soft);
  color: var(--ix-accent-strong);
}

.sidebar-auth {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ix-border);
}

@keyframes automation-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px var(--ix-border);
  }

  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 1px var(--ix-border), 0 0 22px color-mix(in srgb, var(--countdown-color) 30%, transparent);
  }
}

.sidebar-auth p {
  color: var(--ix-muted);
  line-height: 1.6;
}

.app-main {
  min-width: 0;
  padding: 1.75rem;
  height: 100vh;
  overflow-y: auto;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ix-accent-soft);
  color: var(--ix-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 56rem;
  color: var(--ix-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.login-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 3.5rem);
}

.login-card {
  width: min(100%, 32rem);
  padding: 2rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
}

.hero.hero-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.login-brand h1 {
  margin: 0;
  font-size: 2.3rem;
}

.login-brand p {
  margin: 0.35rem 0 0;
  color: var(--ix-muted);
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 107, 107, 0.28);
  border-radius: var(--ix-radius-sm);
  background: var(--ix-danger-soft);
  color: #ffd6d6;
}

.flash-banner {
  margin-top: 1.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(51, 214, 166, 0.28);
  border-radius: var(--ix-radius);
  background: var(--ix-highlight-soft);
  color: var(--ix-text);
}

.btn-primary {
  border-color: var(--ix-accent);
  background: var(--ix-accent);
  color: #0a0d12;
  font-weight: 700;
}

.btn-primary:hover {
  border-color: var(--ix-accent-strong);
  background: var(--ix-accent-strong);
}

.btn-outline-light {
  border-color: var(--ix-border);
  color: var(--ix-text);
}

.btn-secondary {
  border-color: rgba(51, 214, 166, 0.3);
  background: var(--ix-highlight-soft);
  color: var(--ix-text);
}

.hero-panel,
.metric-grid,
.info-grid {
  display: grid;
  gap: 1rem;
}

.status-card,
.metric-card,
.info-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
}

.status-card.accent {
  background: var(--ix-accent-soft);
  border-color: rgba(91, 140, 255, 0.25);
}

.status-card span,
.metric-card p,
.info-card p {
  color: var(--ix-muted);
}

.status-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.metric-label {
  display: block;
  color: var(--ix-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-split {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.metric-value {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

.config-lines {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--ix-muted);
}

.mode-form {
  display: grid;
  gap: 0.5rem;
}

.metric-inline-label {
  color: var(--ix-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.config-help {
  font-size: 0.9rem;
}

.config-lines strong {
  color: var(--ix-text);
  font-weight: 600;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.info-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.wizard-shell {
  margin-bottom: 1.5rem;
}

.wizard-form {
  display: grid;
  gap: 1rem;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.wizard-progress-item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius);
  background: var(--ix-surface);
  color: var(--ix-muted);
  text-align: left;
}

.wizard-progress-item.is-active {
  border-color: rgba(91, 140, 255, 0.35);
  color: var(--ix-text);
  background: var(--ix-accent-soft);
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-card {
  padding: 1.3rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
}

.wizard-card h2 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.wizard-card .form-label,
.wizard-card .form-check-label,
.wizard-card .form-text {
  color: var(--ix-muted);
}

.wizard-card .form-control,
.wizard-card .form-select {
  border-color: var(--ix-border);
  color: var(--ix-text);
  background: var(--ix-bg-soft);
}

.wizard-card .form-control::placeholder {
  color: rgba(157, 177, 203, 0.68);
}

.wizard-card .form-control:focus,
.wizard-card .form-select:focus {
  color: var(--ix-text);
  background: rgba(4, 13, 24, 0.9);
}

.wizard-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wizard-subtitle {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.summary-list,
.mount-preview {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li,
.mount-preview span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ix-muted);
}

.table-card {
  margin-top: 1.5rem;
  padding: 1.3rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
}

.table-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-card-header h2 {
  margin: 0;
}

.section-description {
  margin: 0.35rem 0 0;
  color: var(--ix-muted);
  font-size: 0.92rem;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ix-border);
}

.pagination-summary {
  color: var(--ix-muted);
  font-size: 0.88rem;
}

.pagination-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pagination-actions .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-page {
  min-width: 2.25rem;
  text-align: center;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--ix-muted);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
}

.filter-form > div {
  min-width: 12rem;
}

.inline-action-form {
  display: block;
}

.indexer-action-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 8.5rem;
}

.indexer-action-stack .btn {
  width: 100%;
  min-width: 8.5rem;
  padding: 0.45rem 0.9rem;
}

.muted-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ix-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.trend-up {
  background: var(--ix-highlight-soft);
  color: var(--ix-highlight);
}

.trend-down {
  background: var(--ix-danger-soft);
  color: var(--ix-danger);
}

.trend-flat {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ix-muted);
}

.table-card .table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-border-color: var(--ix-border);
  --bs-table-color: var(--ix-text);
  --bs-table-striped-color: var(--ix-text);
  --bs-table-hover-color: var(--ix-text);
  --bs-table-active-color: var(--ix-text);
  color: var(--ix-text);
}

.audit-table {
  table-layout: auto;
}

.audit-table th,
.audit-table td {
  vertical-align: top;
}

.audit-details-cell {
  min-width: 28rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-empty {
  margin: 0;
  color: var(--ix-muted);
}

.processing-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 9, 15, 0.82);
  backdrop-filter: blur(8px);
}

.processing-modal.is-active {
  display: flex;
}

body.is-busy .processing-modal.is-active {
  pointer-events: auto;
}

.processing-modal-card {
  width: min(100%, 32rem);
  padding: 2rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.processing-modal-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.processing-modal-card p {
  margin: 0;
  color: var(--ix-muted);
  line-height: 1.7;
}

.processing-countdown {
  margin-top: 0.55rem !important;
  color: var(--ix-accent) !important;
  font-size: 0.82rem;
}

.processing-countdown strong {
  font-family: var(--ix-font-mono);
  font-variant-numeric: tabular-nums;
}

.settings-shell {
  display: grid;
  gap: 1.5rem;
}

.settings-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.settings-header p {
  margin: 0.4rem 0 0;
  color: var(--ix-muted);
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius);
  background: var(--ix-surface);
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--ix-radius-sm);
  color: var(--ix-muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: 0.14s ease;
}

.ui-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.settings-tab-intro {
  margin-bottom: 1.5rem;
}

.settings-tab-intro h2 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.settings-tab-intro p {
  margin: 0;
  color: var(--ix-muted);
}

.settings-cards-stack {
  display: grid;
  gap: 1.25rem;
}

.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.dashboard-toolbar form {
  display: contents;
}

.btn .ui-icon {
  margin-right: 0.45rem;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ix-text);
}

.settings-tab.is-active {
  background: var(--ix-accent-soft);
  color: var(--ix-accent-strong);
}

.settings-card {
  padding: 1.75rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  background: var(--ix-surface);
}

.settings-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.settings-subtitle {
  margin-bottom: 1.5rem;
  color: var(--ix-muted);
}

.settings-form {
  display: grid;
  gap: 1.25rem;
}

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

.settings-grid-single {
  grid-template-columns: minmax(0, 30rem);
}

.settings-full {
  grid-column: 1 / -1;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.settings-submit-row {
  display: flex;
  justify-content: flex-start;
}

.settings-submit-row .btn,
.settings-actions .btn {
  width: auto;
  min-width: 11.5rem;
}

.settings-checks {
  display: grid;
  gap: 0.9rem;
}

.settings-checks-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ix-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

[data-global-credential-field].is-disabled {
  opacity: 0.58;
}

.category-picker {
  max-height: 22rem;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--ix-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.55rem;
}

.category-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: calc(var(--category-depth, 0) * 1rem);
  color: var(--ix-text);
}

.category-option small {
  color: var(--ix-muted);
}

.tag-picker {
  position: relative;
}

.tag-picker-surface {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: calc(1.5em + 1rem + 2px);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-sm);
  background: var(--ix-bg-soft);
  cursor: text;
}

.tag-picker:focus-within .tag-picker-surface {
  border-color: var(--ix-accent);
  box-shadow: 0 0 0 0.12rem rgba(10, 13, 18, 0.95), 0 0 0 0.28rem var(--ix-accent-soft);
}

.tag-picker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--ix-radius-sm);
  background: var(--ix-accent);
  color: #0a0d12;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

.tag-pill-remove {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1;
}

.tag-picker-input {
  flex: 1 1 8rem;
  min-width: 6rem;
  border: 0;
  outline: 0;
  color: var(--ix-text);
  background: transparent;
}

.tag-picker-input::placeholder {
  color: rgba(157, 177, 203, 0.68);
}

.tag-picker-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.2rem);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-sm);
  background: var(--ix-bg-soft);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.tag-picker-option {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: var(--ix-text);
  text-align: left;
}

.tag-picker-option:hover,
.tag-picker-option:focus {
  background: rgba(255, 255, 255, 0.06);
}

.settings-divider {
  padding-top: 0.4rem;
  border-top: 1px solid var(--ix-border);
}

.settings-divider h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.settings-section-stack {
  display: grid;
  gap: 0;
}

.settings-section {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0;
}

.settings-section:first-child {
  padding-top: 0.25rem;
}

.settings-section + .settings-section {
  border-top: 1px solid var(--ix-border);
}

.settings-section-header {
  display: grid;
  gap: 0.35rem;
}

.settings-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.settings-status-box {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius);
  background: var(--ix-bg-soft);
}

.settings-status-box .btn {
  padding: 0.6rem 1.25rem;
}

.settings-submit-row-spaced {
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
}

.cooldown-summary {
  color: var(--ix-text);
  font-size: 1rem;
}

.cooldown-summary strong {
  font-weight: 800;
}

.cooldown-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
}

.cooldown-list-scroll {
  max-height: 28rem;
  margin-top: 1rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-color: var(--ix-accent) var(--ix-bg-soft);
  scrollbar-width: thin;
}

.cooldown-list-scroll::-webkit-scrollbar {
  width: 0.45rem;
}

.cooldown-list-scroll::-webkit-scrollbar-track {
  background: var(--ix-bg-soft);
  border-radius: 999px;
}

.cooldown-list-scroll::-webkit-scrollbar-thumb {
  background: var(--ix-accent);
  border-radius: 999px;
}

.cooldown-pagination {
  margin-top: 0.85rem;
}

.cooldown-entry {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(14rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius);
  background: var(--ix-bg-soft);
}

.cooldown-entry-main,
.cooldown-entry-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.cooldown-entry-main strong {
  overflow: hidden;
  color: var(--ix-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cooldown-entry-main span,
.cooldown-entry-meta {
  color: var(--ix-muted);
  font-size: 0.78rem;
}

.cooldown-remove-form {
  margin: 0;
}

@media (max-width: 767.98px) {
  .cooldown-entry {
    grid-template-columns: 1fr auto;
  }

  .cooldown-entry-meta {
    grid-column: 1 / -1;
  }
}

.settings-help {
  margin: 0.35rem 0 0;
  color: var(--ix-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.processing-spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border: 4px solid var(--ix-accent-soft);
  border-top-color: var(--ix-accent);
  border-radius: 999px;
  animation: processing-spin 0.9s linear infinite;
}

@keyframes processing-spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--ix-border);
  color: var(--ix-muted) !important;
  background: transparent;
}

/* Dashboard redesign */
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.dashboard-kicker,
.last-sync,
.overview-foot,
.section-heading-row p {
  color: var(--ix-muted);
  font-size: .82rem;
}

.dashboard-kicker {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.heading-divider { color: var(--ix-dim); }
.dashboard-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.dashboard-heading p { margin: .4rem 0 0; color: var(--ix-muted); }
.dashboard-heading-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.live-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .75rem; border: 1px solid var(--ix-border); border-radius: 999px; background: var(--ix-surface); font-size: .8rem; font-weight: 700; }
.status-dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: var(--ix-dim); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent); }
.status-dot-live { background: var(--ix-highlight); color: var(--ix-highlight); }
.status-dot-fail { background: var(--ix-danger); color: var(--ix-danger); }

.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.overview-card, .surface-card { min-width: 0; border: 1px solid var(--ix-border); border-radius: 1rem; background: linear-gradient(145deg, color-mix(in srgb, var(--ix-surface) 96%, white 4%), var(--ix-surface)); box-shadow: var(--ix-shadow-card); }
.overview-card { padding: 1.1rem 1.2rem; }
.overview-card-accent { border-color: color-mix(in srgb, var(--ix-highlight) 35%, var(--ix-border)); }
.overview-card-top { display: flex; align-items: center; gap: .6rem; min-height: 1.6rem; }
.metric-icon { display: inline-grid; flex: 0 0 1.7rem; width: 1.7rem; height: 1.7rem; aspect-ratio: 1; place-items: center; border-radius: .55rem; font-weight: 800; font-size: 1rem; line-height: 1; }
.metric-icon svg { display: block; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-check { color: var(--ix-highlight); background: var(--ix-highlight-soft); }
.icon-danger { color: var(--ix-danger); background: var(--ix-danger-soft); }
.icon-purple { color: var(--ix-automation); background: var(--ix-automation-soft); }
.icon-blue { color: var(--ix-accent); background: var(--ix-accent-soft); }
.overview-card .metric-label { font-size: .72rem; letter-spacing: .1em; }
.metric-trend { margin-left: auto; font-size: .72rem; font-weight: 800; }
.overview-value { display: block; margin: 1rem 0 .45rem; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.overview-value small { color: var(--ix-muted); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.overview-value-text { font-size: 1.45rem; margin-top: 1.3rem; }
.overview-foot { display: flex; align-items: center; gap: .45rem; }
.overview-foot strong { color: var(--ix-highlight); }

.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(19rem, .9fr); gap: 1rem; margin-bottom: 1.5rem; }
.surface-card { padding: 1.25rem; }
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.section-heading-row h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.section-heading-row p { margin: .3rem 0 0; }
.chart-score { padding: .35rem .6rem; border-radius: 999px; background: var(--ix-highlight-soft); color: var(--ix-highlight); font-size: .75rem; font-weight: 800; }
.health-chart { position: relative; height: 15rem; margin-top: 1rem; overflow: hidden; }
.health-chart svg { position: absolute; inset: 0 0 1.4rem; width: 100%; height: calc(100% - 1.4rem); overflow: visible; }
.chart-grid-lines { position: absolute; inset: .4rem 0 1.4rem; display: grid; grid-template-rows: repeat(4, 1fr); }
.chart-grid-lines span { border-top: 1px dashed var(--ix-border); }
.chart-area { fill: url(#healthFill); }
.chart-line { fill: none; stroke: var(--ix-accent); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--ix-accent) 45%, transparent)); }
.chart-axis { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: var(--ix-dim); font: .65rem var(--ix-font-mono); }
.icon-button { color: var(--ix-muted); font-size: 1.2rem; line-height: 1; }
.state-overview { display: flex; align-items: center; gap: 1.5rem; min-height: 12rem; }
.donut-chart { display: grid; place-content: center; flex: 0 0 10rem; width: 10rem; height: 10rem; border-radius: 50%; text-align: center; background: conic-gradient(var(--ix-highlight) 0 calc(var(--healthy) * 1%), var(--ix-danger) calc(var(--healthy) * 1%) calc((var(--healthy) + var(--failed)) * 1%), var(--ix-warning) calc((var(--healthy) + var(--failed)) * 1%) 82%, var(--ix-dim) 82% 100%); box-shadow: inset 0 0 0 .85rem var(--ix-surface); }
.donut-chart strong { font-size: 1.5rem; line-height: 1; }
.donut-chart span { margin-top: .25rem; color: var(--ix-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.state-legend { display: grid; gap: .75rem; width: 100%; }
.state-legend div { display: grid; grid-template-columns: .55rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; color: var(--ix-muted); font-size: .78rem; }
.state-legend strong { color: var(--ix-text); }
.legend-dot { width: .55rem; height: .55rem; border-radius: 50%; }
.legend-ok { background: var(--ix-highlight); }.legend-fail { background: var(--ix-danger); }.legend-blocked { background: var(--ix-warning); }.legend-disabled { background: var(--ix-dim); }
.legacy-summary { margin-top: 0; }
.legacy-summary .metric-card { padding: 1rem 1.1rem; }
.indexer-row > td:first-child { position: relative; padding-left: 2.35rem; }
.row-status-dot { position: absolute; top: 1.15rem; left: .9rem; width: .5rem; height: .5rem; border-radius: 50%; }
.row-status-ok { background: var(--ix-highlight); box-shadow: 0 0 0 4px var(--ix-highlight-soft); }
.row-status-fail { background: var(--ix-danger); box-shadow: 0 0 0 4px var(--ix-danger-soft); }
.row-status-disabled { background: var(--ix-dim); box-shadow: 0 0 0 4px rgba(128, 144, 166, .1); }
.row-status-blocked { background: var(--ix-warning); box-shadow: 0 0 0 4px var(--ix-warning-soft); }
.indexer-name, .indexer-implementation { display: block; }
.indexer-name { color: var(--ix-text); font-weight: 800; }
.indexer-implementation { margin-top: .15rem; color: var(--ix-dim); font: .68rem var(--ix-font-mono); }

@media (max-width: 1199.98px) {
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .dashboard-heading { align-items: flex-start; flex-direction: column; margin-bottom: 1.2rem; }
  .dashboard-heading-meta { justify-content: flex-start; }
  .overview-grid, .analytics-grid { grid-template-columns: 1fr; }
  .overview-card { padding: 1rem; }
  .health-chart { height: 12rem; }
  .state-overview { justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
  .donut-chart { flex-basis: 8.5rem; width: 8.5rem; height: 8.5rem; }
  .state-legend { max-width: 15rem; }
}

/* Reference table layout: compact, scannable and aligned with the visual templates. */
.indexer-table-card { padding: 1.35rem 1.2rem 1.1rem; }
.indexer-table-card .table { table-layout: fixed; }
.indexer-table-card th:nth-child(1) { width: 24%; }
.indexer-table-card th:nth-child(2) { width: 14%; }
.indexer-table-card th:nth-child(3) { width: 12%; }
.indexer-table-card th:nth-child(4) { width: 17%; }
.indexer-table-card th:nth-child(5) { width: 13%; }
.indexer-table-card th:nth-child(6) { width: 10%; }
.indexer-table-card th:nth-child(7) { width: 18%; }
.indexer-table-card td { white-space: nowrap; }
.result-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .27rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.result-ok { color: var(--ix-highlight); background: var(--ix-highlight-soft); }
.result-fail { color: var(--ix-danger); background: var(--ix-danger-soft); }
.result-blocked { color: var(--ix-warning); background: var(--ix-warning-soft); }
.result-disabled { color: var(--ix-muted); background: rgba(128, 144, 166, .13); }
.trend-badge { gap: .34rem; padding: 0; background: transparent; }
.trend-arrow { font-size: 1rem; font-weight: 900; line-height: 1; }
.trend-up { color: var(--ix-highlight); }
.trend-down { color: var(--ix-danger); }
.trend-flat { color: var(--ix-muted); }
.indexer-action-stack { flex-direction: row; align-items: center; justify-content: flex-end; min-width: 0; gap: .45rem; }
.indexer-action-stack .inline-action-form { flex: 0 0 auto; }
.indexer-action-stack .btn { width: auto; min-width: 0; padding: .48rem .72rem; white-space: nowrap; }
.indexer-table-card .table-responsive { overflow-x: visible; }
.audit-table-card .audit-table th, .audit-table-card .audit-table td { padding: .8rem .7rem; }
.audit-table-card .audit-table th:nth-child(1) { width: 10%; }
.audit-table-card .audit-table th:nth-child(2) { width: 14%; }
.audit-table-card .audit-table th:nth-child(3) { width: 16%; }
.audit-table-card .audit-table th:nth-child(4) { width: 12%; }
.audit-table-card .audit-table th:nth-child(5) { width: 48%; }
.automation-progress-track { display: none; }
.automation-ring { background: radial-gradient(circle at center, var(--ix-bg-soft) 0 57%, transparent 58%), conic-gradient(from 210deg, var(--countdown-color) calc(var(--countdown-progress) * 1turn), rgba(255,255,255,.08) 0); box-shadow: none; }
.automation-ring::before { inset: .7rem; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.automation-ring-core { transform: translateY(.05rem); }

@media (max-width: 991.98px) {
  .indexer-table-card .table-responsive { overflow-x: auto; }
  .indexer-table-card .table { min-width: 46rem; table-layout: auto; }
  .indexer-action-stack { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  .indexer-table-card { padding-inline: .75rem; }
  .indexer-table-card .table { min-width: 42rem; }
}

@media (max-width: 991.98px) {
  .indexer-action-stack { flex-direction: row; justify-content: flex-start; }
  .indexer-action-stack .btn { width: auto; min-width: 0; }
}

.dashboard-heading h1,
.settings-header h1 {
  font-family: var(--ix-font-heading);
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: var(--ix-heading-weight);
  line-height: 1.12;
  letter-spacing: -.04em;
}

/* Final page-title normalization after component-specific rules. */
.dashboard-heading h1,
.settings-header h1 {
  font-family: var(--ix-font-heading);
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: var(--ix-heading-weight);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.donut-chart {
  position: relative;
  box-shadow: none;
  background: conic-gradient(
    var(--ix-highlight) 0 calc(var(--healthy) * 1%),
    var(--ix-danger) calc(var(--healthy) * 1%) calc((var(--healthy) + var(--failed)) * 1%),
    var(--ix-warning) calc((var(--healthy) + var(--failed)) * 1%) calc((var(--healthy) + var(--failed) + var(--blocked)) * 1%),
    var(--ix-dim) calc((var(--healthy) + var(--failed) + var(--blocked)) * 1%) 100%
  );
}
.donut-chart::before {
  content: "";
  position: absolute;
  inset: .82rem;
  border-radius: 50%;
  background: var(--ix-surface);
}
.donut-chart strong,
.donut-chart span { position: relative; z-index: 1; }

/* Keep the automation ring clean: no inner hairline or double dark edge. */
.automation-ring {
  background: conic-gradient(from 210deg, var(--countdown-color) calc(var(--countdown-progress) * 1turn), rgba(255,255,255,.08) 0);
}
.automation-ring::before {
  inset: .7rem;
  background: var(--ix-bg-soft);
  border: 0;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding-top: 4.25rem;
  }

  .mobile-topbar {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--ix-border);
    background: var(--ix-bg-soft);
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ix-text);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-brand img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    border-radius: 8px;
  }

  .mobile-brand-spacer {
    width: 2.5rem;
  }

  .menu-toggle {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-content: center;
    gap: 0.28rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--ix-text);
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    border-color: var(--ix-border);
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .app-sidebar {
    position: fixed;
    z-index: 1200;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(21rem, calc(100vw - 2.5rem));
    height: 100vh;
    padding-top: 4.75rem;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--ix-border);
    border-radius: 0.65rem;
    background: transparent;
    color: var(--ix-text);
    font-size: 1.55rem;
    line-height: 1;
  }

  .sidebar-backdrop:not([hidden]) {
    position: fixed;
    z-index: 1150;
    inset: 0;
    display: block;
    background: rgba(2, 7, 13, 0.68);
    backdrop-filter: blur(2px);
  }

  body.menu-open {
    overflow: hidden;
  }

  .app-main {
    height: auto;
    overflow: visible;
  }

  .hero,
  .metric-grid,
  .info-grid,
  .wizard-progress,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .app-main {
    padding: 1rem;
  }

  .hero,
  .settings-card,
  .table-card {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .table-card-header {
    align-items: stretch;
  }

  .filter-form,
  .filter-form > div,
  .filter-form .btn {
    width: 100%;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    width: 100%;
  }

  .pagination-actions .btn:not(.pagination-page) {
    flex: 1;
  }
}

@media (max-width: 991.98px) {
  .indexer-action-stack { flex-direction: row; justify-content: flex-start; }
  .indexer-action-stack .btn { width: auto; min-width: 0; }
}

.dashboard-heading h1,
.settings-header h1 {
  font-family: var(--ix-font-heading);
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: var(--ix-heading-weight);
  line-height: 1.12;
  letter-spacing: -.04em;
}
