/* Domain Health Monitoring dashboard */
.dash-app {
  --color-surface: var(--color-card);
  --color-surface-alt: var(--color-bg-soft);
  --color-text-muted: var(--color-muted);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

.dash-sidebar {
  --dash-sidebar-bg: #071A33;
  --dash-sidebar-border: rgba(255, 255, 255, 0.08);
  --dash-sidebar-text: #e8eef8;
  --dash-sidebar-text-muted: #c9d7ee;
  --dash-sidebar-text-subtle: #9fb4d4;
  --dash-mobile-header-h: 3.75rem;
  background: var(--dash-sidebar-bg);
  color: var(--dash-sidebar-text);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 101;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.dash-sidebar-brand {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dash-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.dash-sidebar-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.dash-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.dash-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dash-menu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.dash-menu-toggle .hamburger-line {
  background: #fff;
}

.dash-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dash-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.dash-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dash-sidebar:not(.is-open) {
  min-height: var(--dash-mobile-header-h);
  max-height: var(--dash-mobile-header-h);
  overflow: hidden;
}

.dash-sidebar.is-open .dash-sidebar-panel {
  display: flex !important;
}

.dash-sidebar.is-open .dash-nav {
  flex-direction: column;
  width: 100%;
  gap: 0.25rem;
}

.dash-sidebar.is-open .dash-nav-item {
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.dash-sidebar.is-open .dash-plan-usage {
  width: 100%;
  margin-top: 0;
}

.dash-sidebar.is-open .dash-sidebar-footer--compact {
  width: 100%;
  margin-top: auto;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 26, 51, 0.55);
  border: none;
  padding: 0;
  margin: 0;
}

.dash-sidebar-backdrop.is-visible {
  display: block;
}

body.dash-menu-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .dash-sidebar:not(.is-open) {
    border-bottom: 1px solid var(--dash-sidebar-border);
  }

  .dash-sidebar-top {
    position: relative;
    z-index: 103;
  }

  .dash-sidebar-panel {
    position: fixed;
    inset: 0;
    z-index: 102;
    background: var(--dash-sidebar-bg);
    padding: var(--dash-mobile-header-h) 0.85rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-sidebar.is-open {
    position: sticky;
    height: auto;
    min-height: var(--dash-mobile-header-h);
    max-height: var(--dash-mobile-header-h) !important;
    overflow: hidden;
    inset: auto;
  }
}

@media (min-width: 961px) {
  .dash-app {
    grid-template-columns: 260px 1fr;
  }

  .dash-sidebar {
    padding: 1.15rem 0.85rem;
    gap: 1rem;
    border-right: 1px solid var(--dash-sidebar-border);
    height: 100vh;
    max-height: none !important;
    overflow-y: auto !important;
    z-index: auto;
  }

  .dash-sidebar:not(.is-open) {
    max-height: none;
    overflow-y: auto;
  }

  .dash-sidebar-top {
    display: contents;
    position: static;
    z-index: auto;
  }

  .dash-sidebar-brand {
    margin-bottom: 0.1rem;
    flex: none;
  }

  .dash-sidebar-panel {
    display: flex !important;
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    overflow: visible;
  }

  .dash-menu-toggle {
    display: none;
  }

  .dash-sidebar.is-open {
    position: sticky;
    inset: auto;
    height: 100vh;
    max-height: none !important;
    padding: 1.15rem 0.85rem;
    overflow-y: auto !important;
    z-index: auto;
  }

  .dash-sidebar.is-open .dash-sidebar-panel {
    margin-top: 0;
  }

  .dash-sidebar.is-open .dash-nav-item {
    font-size: 0.8125rem;
    padding: 0.52rem 0.75rem;
    width: auto;
  }
}

.dash-brand-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.dash-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.dash-brand-text {
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.95;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--dash-sidebar-text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s;
}

.dash-nav-item svg {
  flex-shrink: 0;
  opacity: 0.9;
  width: 16px;
  height: 16px;
}

.dash-nav-item:hover,
.dash-nav-item.is-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.dash-nav-item.is-active {
  font-weight: 600;
}

.dash-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-sidebar-footer--compact {
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--dash-sidebar-border);
  flex-direction: column;
  align-items: center;
}

.dash-footer-btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: #b8c9e4;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s;
}

.dash-footer-btn-text:hover {
  color: #fff;
}

.dash-theme-toggle,
.dash-logout-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.dash-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a94b8;
  font-size: 0.75rem;
  text-decoration: none;
  margin-top: 0;
}

.dash-back-link:hover {
  color: var(--dash-sidebar-text-muted);
}

.dash-plan-usage {
  margin-top: auto;
  padding-top: 0.65rem;
}

.dash-plan-usage-inner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
}

.dash-plan-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dash-plan-usage-title {
  font-size: 0.78rem;
  color: var(--dash-sidebar-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-plan-progress-label {
  font-size: 0.82rem;
  color: var(--dash-sidebar-text);
  margin-bottom: 0.35rem;
}

.dash-plan-progress {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.dash-plan-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 999px;
}

.dash-plan-bar--limit {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.dash-plan-usage-inner--compact {
  padding-bottom: 0.65rem;
}

.dash-plan-usage-inner--compact .dash-plan-usage-copy {
  margin-bottom: 0;
}

.dash-plan-usage-copy {
  font-size: 0.78rem;
  color: var(--dash-sidebar-text-subtle);
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.dash-plan-usage-btn {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

.dash-plan-usage-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: none;
}

.dash-impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1e3a5f;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dash-impersonation-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.dash-impersonation-banner-text {
  font-size: 0.88rem;
}
.dash-impersonation-banner .dash-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dash-main {
  padding: 1.35rem clamp(1rem, 3vw, 2.5rem) 3rem;
  min-width: 0;
}

.dash-domain-label {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.dash-scan-status {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--color-text);
  font-size: 0.88rem;
}

.dash-scan-status--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

.dash-settings-form {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  padding-bottom: 5rem;
}

.dash-settings-layout {
  display: grid;
  gap: 1rem;
  max-width: 800px;
}

.dash-settings-status {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dash-settings-status strong {
  color: var(--color-text);
}

.dash-settings-section {
  padding: 1.15rem 1.25rem;
}

.dash-settings-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.dash-settings-section-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.dash-settings-help,
.dash-settings-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.dash-settings-group {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.5rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-border);
}

.dash-settings-group--dimmed {
  opacity: 0.55;
  pointer-events: none;
}

.dash-settings-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.dash-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dash-settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-settings-row:first-child {
  padding-top: 0;
}

.dash-settings-row--disabled {
  opacity: 0.6;
}

.dash-settings-row-text {
  flex: 1;
  min-width: 0;
}

.dash-settings-row-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}

.dash-settings-row-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.dash-settings-badge-soon {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.dash-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  cursor: pointer;
}

.dash-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s;
}

.dash-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

.dash-toggle input:checked + .dash-toggle-slider {
  background: var(--accent-blue);
}

.dash-toggle input:checked + .dash-toggle-slider::before {
  transform: translateX(18px);
}

.dash-toggle input:disabled + .dash-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.dash-settings-radio-group {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0;
}

.dash-settings-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.dash-settings-radio input {
  accent-color: var(--accent-blue);
}

.dash-settings-sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.dash-settings-sticky-save #settings-msg {
  margin-right: auto;
  min-width: 0;
}

.dash-settings-sticky-save #settings-msg[hidden] {
  display: none;
}

.dash-settings-sticky-save .dash-btn {
  flex-shrink: 0;
}

.dash-settings-sticky-save .dash-settings-saved,
.dash-settings-sticky-save .dash-error {
  margin: 0;
  font-size: 0.88rem;
}

.dash-settings-saved {
  color: #166534;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.dash-settings-email-field input {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 640px) {
  .dash-settings-sticky-save {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-settings-sticky-save #settings-msg {
    margin-right: 0;
  }

  .dash-settings-sticky-save .dash-btn {
    width: 100%;
  }
}

#overview-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dash-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.dash-page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--color-text);
}

.dash-subtitle {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.dash-grid {
  display: grid;
  gap: 1.25rem;
}

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

.dash-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem;
}

.dash-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.dash-stat-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dash-btn:hover { transform: none; }
.dash-btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}
.dash-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.dash-btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.dash-app .dash-btn-secondary {
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--accent-blue);
}
.dash-app .dash-btn-secondary svg {
  color: var(--accent-blue);
}
.dash-app .dash-btn-secondary:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.45);
}
.dash-btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.dash-btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}
.dash-badge-healthy { background: #dcfce7; color: #166534; }
.dash-badge-warning { background: #fef3c7; color: #92400e; }
.dash-badge-critical { background: #fee2e2; color: #991b1b; }
.dash-badge-unknown { background: #e5e7eb; color: #374151; }
.dash-badge-muted { background: #f3f4f6; color: #6b7280; }
.dash-badge-info { background: #dbeafe; color: #1e40af; }
.dash-badge-purple { background: #ede9fe; color: #6d28d9; }
.dash-badge-amber { background: #fef3c7; color: #b45309; }
.dash-badge--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.3rem 0.55rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.dash-badge--stacked .dash-badge-line {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.dash-fix-info-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.25rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--color-text);
  font-size: 0.86rem;
}
.dash-fix-info-banner-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-fix-page-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-fix-table-card {
  padding: 0;
  overflow: hidden;
}
.dash-fix-table-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.dash-fix-table-header-tabs {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}
.dash-fix-table-header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0 0.75rem;
  flex-shrink: 0;
}
.dash-fix-tabs--underline {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
}
.dash-fix-tab {
  border: none;
  background: none;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dash-fix-tab:hover {
  color: var(--color-text);
}
.dash-fix-tab.is-active {
  color: var(--color-primary, #2563eb);
  border-bottom-color: var(--color-primary, #2563eb);
}
.dash-fix-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}
.dash-fix-search-icon {
  position: absolute;
  left: 0.7rem;
  color: var(--color-text-muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.dash-fix-search-input {
  width: 100%;
  min-width: 220px;
  padding: 0.5rem 0.75rem 0.5rem 2.15rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg, #fff);
  color: var(--color-text);
  font: inherit;
  font-size: 0.84rem;
}
.dash-fix-search-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.dash-fix-filters-wrap {
  position: relative;
}
.dash-fix-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.dash-fix-filters-btn.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--color-primary, #2563eb);
}
.dash-fix-filters-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary, #2563eb);
}
.dash-fix-filters-popover {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0.65rem;
}
.dash-fix-filters-popover[hidden] {
  display: none;
}
.dash-fix-filters-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.dash-fix-service-filter {
  width: 100%;
  font-size: 0.84rem;
}

.dash-fix-table-wrap {
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
}
.dash-fix-table-desktop {
  display: table;
  table-layout: fixed;
  min-width: 800px;
}
.dash-fix-mobile-list {
  display: none;
}
.dash-fix-table th,
.dash-fix-table td {
  padding: 1rem 0.85rem;
  vertical-align: middle;
}
.dash-fix-table th {
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-top: 0.85rem;
  padding-bottom: 0.75rem;
  background: rgba(248, 250, 252, 0.7);
  text-align: center;
}
.dash-fix-col--request { width: 8.5rem; }
.dash-fix-col--domain { width: 22%; }
.dash-fix-col--service { width: 24%; }
.dash-fix-col--status { width: 6.5rem; }
.dash-fix-col--date { width: 6.25rem; }
.dash-fix-col--actions { width: 8.5rem; }
.dash-fix-col-request {
  padding-right: 0.5rem;
}
.dash-fix-request-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.dash-fix-request-chevron {
  color: var(--color-text-muted);
  margin-top: 0.15rem;
  flex-shrink: 0;
  opacity: 0.6;
}
.dash-fix-request-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.dash-fix-request-display-id {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.dash-fix-view-details {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-primary, #2563eb);
  cursor: pointer;
  text-align: left;
}
.dash-fix-view-details:hover {
  text-decoration: underline;
}
.dash-fix-col-domain {
  min-width: 0;
}
.dash-fix-col-service {
  min-width: 0;
  max-width: 0;
}
.dash-fix-col-status {
  white-space: normal;
}
.dash-fix-col-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: normal;
}
.dash-fix-date-stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.2;
}
.dash-fix-date-stack-date {
  font-size: 0.8rem;
  color: var(--color-text);
  white-space: nowrap;
}
.dash-fix-date-stack-time {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.dash-fix-mobile-card-dates .dash-fix-date-stack-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.dash-fix-col-sortable {
  color: var(--color-text-muted);
}
.dash-fix-sort-icon {
  color: var(--color-primary, #2563eb);
  font-size: 0.7rem;
}
.dash-fix-col-actions {
  white-space: nowrap;
}
.dash-fix-table th.dash-fix-col-actions {
  text-align: center;
}
.dash-fix-cell-ellipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.dash-fix-domain-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  font-size: 0.86rem;
}
.dash-fix-domain-link span {
  min-width: 0;
}
.dash-fix-domain-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  flex-shrink: 0;
}
.dash-fix-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.dash-fix-row:hover td {
  background: rgba(37, 99, 235, 0.03);
}
.dash-fix-row.is-selected td {
  background: rgba(37, 99, 235, 0.05);
}
.dash-fix-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}
.dash-fix-row-menu {
  position: relative;
}
.dash-fix-row-menu-trigger {
  list-style: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface, #fff);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.dash-fix-row-menu-trigger::-webkit-details-marker {
  display: none;
}
.dash-fix-row-menu-trigger:hover {
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-text);
}
.dash-fix-row-menu-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 40;
  min-width: 140px;
  padding: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface, #fff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.dash-fix-row-menu--floating .dash-fix-row-menu-panel {
  position: fixed;
}
.dash-fix-menu-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
}
.dash-fix-menu-item:hover {
  background: rgba(37, 99, 235, 0.06);
}
.dash-fix-menu-item--danger {
  color: #b45309;
}
.dash-fix-menu-item--danger:hover {
  background: rgba(245, 158, 11, 0.08);
}
.dash-fix-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
}
.dash-fix-pagination-info {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.dash-fix-pagination-btns {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dash-fix-page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface, #fff);
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.dash-fix-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-text);
}
.dash-fix-page-btn.is-active {
  background: var(--color-primary, #2563eb);
  border-color: var(--color-primary, #2563eb);
  color: #fff;
}
.dash-fix-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dash-fix-page-btn--nav {
  font-size: 0.9rem;
}
.dash-fix-table-empty {
  padding: 2rem 1rem;
}
.dash-fix-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.dash-fix-empty h3 {
  margin: 0 0 0.5rem;
}
.dash-fix-empty p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.dash-fix-mobile-card {
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.dash-fix-mobile-card.is-selected {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.dash-fix-mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dash-fix-mobile-card-domain {
  font-weight: 600;
  font-size: 0.92rem;
}
.dash-fix-mobile-card-meta,
.dash-fix-mobile-card-issue {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}
.dash-fix-mobile-card-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}
.dash-fix-mobile-card-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
}

.dash-stat-icon-wrap--purple {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

body.dash-fix-drawer-open {
  overflow: hidden;
}
.dash-fix-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 120;
}
.dash-fix-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--color-surface, #fff);
  border-left: 1px solid var(--color-border);
  z-index: 121;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.08);
}
.dash-fix-drawer-host--opening .dash-fix-drawer {
  animation: dash-fix-drawer-in 0.2s ease;
}
@keyframes dash-fix-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.dash-fix-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
}
.dash-fix-drawer-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.dash-fix-drawer-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.dash-fix-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.25rem 1.75rem;
}

.dash-fix-stepper {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}
.dash-fix-stepper-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  position: relative;
}
.dash-fix-stepper-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: calc(50% + 0.85rem);
  right: calc(-50% + 0.85rem);
  height: 2px;
  background: var(--color-border);
}
.dash-fix-stepper-step.is-done:not(:last-child)::after,
.dash-fix-stepper-step.is-active:not(:last-child)::after {
  background: rgba(37, 99, 235, 0.35);
}
.dash-fix-stepper-dot {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--color-border);
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}
.dash-fix-stepper-step.is-active .dash-fix-stepper-dot {
  background: #2563eb;
  color: #fff;
}
.dash-fix-stepper-step.is-done .dash-fix-stepper-dot {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.dash-fix-stepper-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 600;
}
.dash-fix-stepper-step.is-active .dash-fix-stepper-label {
  color: #2563eb;
}

.dash-fix-status-banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}
.dash-fix-status-banner--info {
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-text);
}
.dash-fix-status-banner--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.dash-fix-status-banner--success {
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}
.dash-fix-status-banner--muted {
  background: rgba(100, 116, 139, 0.08);
  color: var(--color-text-muted);
}

.dash-fix-detail-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  background: rgba(248, 250, 252, 0.6);
}
.dash-fix-detail-card-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.dash-fix-conv-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 700;
}
.dash-fix-detail-grid {
  display: grid;
  gap: 0.55rem 1rem;
  margin: 0;
}
@media (min-width: 480px) {
  .dash-fix-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dash-fix-detail-grid dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.dash-fix-detail-grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
}
.dash-fix-detail-span {
  grid-column: 1 / -1;
}

.dash-fix-role-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dash-fix-role-badge--you { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.dash-fix-role-badge--support { background: rgba(16, 185, 129, 0.12); color: #047857; }
.dash-fix-role-badge--system { background: rgba(100, 116, 139, 0.12); color: #475569; }

.dash-fix-message--customer {
  margin-left: 1.5rem;
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}
.dash-fix-message--system {
  text-align: center;
  background: transparent;
  border-style: dashed;
  max-width: 92%;
  margin: 0 auto;
}
.dash-fix-message-sender {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.dash-fix-compose-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.dash-fix-char-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.dash-fix-compose {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-fix-compose-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 0.65rem;
}
.dash-fix-compose-input {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg, #fff);
  color: var(--color-text);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-fix-compose-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.75;
}
.dash-fix-compose-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.dash-fix-compose-error {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}
.dash-fix-compose-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.dash-fix-compose-closed {
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.06);
  font-size: 0.84rem;
}
.dash-fix-compose-closed p {
  margin: 0 0 0.65rem;
}

.dash-fix-table .dash-fix-col-chevron,
.dash-fix-table .dash-fix-row-chevron {
  width: 2rem;
  padding-right: 0;
  color: var(--color-text-muted);
}
.dash-fix-row {
  cursor: pointer;
}
.dash-fix-row:hover td {
  background: rgba(37, 99, 235, 0.04);
}
.dash-fix-row.is-expanded td {
  border-bottom-color: transparent;
}
.dash-fix-chevron {
  display: inline-block;
  font-size: 0.75rem;
  width: 1rem;
  text-align: center;
}
.dash-fix-row-detail td {
  padding-top: 0;
  padding-bottom: 0.85rem;
  background: rgba(37, 99, 235, 0.03);
}
.dash-fix-row-detail-inner {
  display: grid;
  gap: 0.45rem 1.5rem;
  padding: 0.35rem 0 0.15rem 2rem;
  font-size: 0.85rem;
}
@media (min-width: 640px) {
  .dash-fix-row-detail-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dash-fix-row-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dash-fix-row-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.dash-fix-row-detail-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary, #2563eb);
  text-decoration: none;
}
.dash-fix-row-detail-link:hover {
  text-decoration: underline;
}

.dash-fix-stats {
  margin-bottom: 1rem;
}

/* legacy pill tabs removed — use .dash-fix-tabs--underline */

.dash-fix-request-id {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}

.dash-fix-row-detail-panel {
  padding: 0.35rem 0 0.15rem 2rem;
}
.dash-fix-row-detail-next {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--color-text);
}

.dash-fix-row-detail-messages {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}
.dash-fix-messages-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.dash-fix-message-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 240px;
  overflow-y: auto;
}
.dash-fix-message {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.dash-fix-message--customer {
  background: rgba(37, 99, 235, 0.04);
}
.dash-fix-message--admin {
  background: rgba(16, 185, 129, 0.06);
}
.dash-fix-message--system {
  background: rgba(100, 116, 139, 0.06);
  font-size: 0.82rem;
}
.dash-fix-message-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}
.dash-fix-message-head time {
  color: var(--color-text-muted);
}
.dash-fix-message-body {
  line-height: 1.45;
  white-space: pre-wrap;
}
.dash-fix-message-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.dash-fix-compose-send {
  align-self: flex-end;
}
.dash-fix-compose-disabled {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.dash-table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.dash-table th,
.dash-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}
.dash-table th {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-table.dash-fix-table th {
  text-align: center;
}
.dash-table.dash-fix-table td.dash-fix-col-status,
.dash-table.dash-fix-table td.dash-fix-col-date,
.dash-table.dash-fix-table td.dash-fix-col-actions {
  text-align: center;
}
.dash-table.dash-fix-table .dash-fix-date-stack {
  align-items: center;
}
.dash-table.dash-fix-table .dash-fix-row-actions {
  justify-content: center;
}

.dash-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--color-text-muted);
}
.dash-empty h3 { margin: 0 0 0.5rem; color: var(--color-text); }

.dash-loading,
.dash-error {
  padding: 1rem;
  border-radius: var(--radius-sm);
}
.dash-loading { background: var(--color-surface-alt); color: var(--color-text-muted); }
.dash-error { background: #fee2e2; color: #991b1b; }

.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 51, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1100;
}

.dash-app > .dash-modal-backdrop {
  grid-column: 1 / -1;
}

body.dash-modal-open {
  overflow: hidden;
}

.dash-modal-backdrop.is-open { display: flex; }
.dash-modal {
  width: min(520px, 100%);
  background: var(--color-card);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 1.35rem;
  position: relative;
  z-index: 1101;
}
.dash-modal h2 { margin: 0 0 1rem; font-size: 1.2rem; }

.dash-fix-modal {
  width: min(680px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 1.5rem;
}

.dash-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dash-modal-close:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.dash-fix-modal-header {
  padding-right: 2rem;
  margin-bottom: 1rem;
}

.dash-fix-modal-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.dash-fix-modal-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.dash-fix-context {
  margin-bottom: 1rem;
}

.dash-fix-context-inner {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.dash-fix-context-domain {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-fix-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.dash-fix-context-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

.dash-fix-context-meta {
  margin-bottom: 0.35rem;
}

.dash-fix-context-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.dash-fix-context-recommendation {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}

.dash-fix-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dash-fix-optional {
  font-weight: 500;
  color: var(--color-text-muted);
}

.dash-fix-next {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dash-fix-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.dash-fix-success {
  padding: 0.5rem 0 0.25rem;
}

.dash-fix-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #166534;
}

.dash-fix-success p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.dash-field { margin-bottom: 0.85rem; }
.dash-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.dash-field input,
.dash-field textarea,
.dash-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
.dash-field textarea { min-height: 90px; resize: vertical; }
.dash-checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

.dash-auth-page {
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
}
.dash-auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.dash-auth-shell:not(:has(.dash-auth-brand)) {
  grid-template-columns: 1fr;
  place-items: center;
}
.dash-auth-shell:not(:has(.dash-auth-brand)) .dash-auth-main {
  width: 100%;
  max-width: 480px;
}
.dash-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--funnel-bg, linear-gradient(135deg, #071A33 0%, #0B2545 45%, #0A1F3D 100%));
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}
.dash-auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(22, 199, 132, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.dash-auth-brand > * {
  position: relative;
  z-index: 1;
}
.dash-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.5rem;
}
.dash-auth-logo-mark {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}
.dash-auth-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-auth-logo-accent {
  color: #4ade80;
}
.dash-auth-brand-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.dash-auth-brand-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.78);
  max-width: 38ch;
}
.dash-auth-features {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.dash-auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.92);
}
.dash-auth-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: #4ade80;
  flex-shrink: 0;
}
.dash-auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--color-bg);
}
.dash-auth-card {
  width: min(420px, 100%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2rem);
}
.dash-auth-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-auth-header p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.dash-auth-form {
  display: grid;
  gap: 0.15rem;
}
.dash-auth-field {
  margin-bottom: 0.85rem;
}
.dash-auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.dash-auth-optional {
  font-weight: 500;
  color: var(--color-text-muted);
}
.dash-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.dash-auth-input-icon {
  position: absolute;
  left: 0.75rem;
  display: inline-flex;
  color: var(--color-text-muted);
  pointer-events: none;
}
.dash-auth-input-wrap input {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-auth-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-green, #16C784);
  box-shadow: 0 0 0 3px rgba(22, 199, 132, 0.18);
}
.dash-auth-input-wrap input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.75;
}
.dash-auth-password-toggle {
  position: absolute;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}
.dash-auth-password-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-soft, rgba(0, 0, 0, 0.04));
}
.dash-auth-input-wrap input[type="password"],
.dash-auth-input-wrap input[type="text"] {
  padding-right: 2.75rem;
}
.dash-auth-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.dash-auth-error {
  margin: 0.25rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-error, #ef4444);
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-error, #ef4444);
  font-size: 0.88rem;
  line-height: 1.45;
}
.dash-auth-domain-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.45;
}
.dash-auth-domain-banner strong {
  color: var(--accent-blue, #2563eb);
  word-break: break-all;
}
.dash-auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--accent-gradient, linear-gradient(135deg, #16C784 0%, #06B6D4 55%, #2563EB 100%));
  box-shadow: var(--shadow-btn, 0 4px 14px rgba(22, 199, 132, 0.28));
  transition: opacity 0.15s, transform 0.15s;
}
.dash-auth-submit:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}
.dash-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.dash-auth-footer {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
}
.dash-auth-footer a {
  color: var(--accent-green, #16C784);
  font-weight: 600;
  text-decoration: none;
}
.dash-auth-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .dash-auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dash-auth-brand {
    padding: 1.75rem 1.5rem 1.5rem;
    gap: 0.85rem;
  }
  .dash-auth-brand-title {
    font-size: 1.35rem;
    max-width: none;
  }
  .dash-auth-brand-lead {
    font-size: 0.9rem;
  }
  .dash-auth-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .dash-auth-features li {
    font-size: 0.82rem;
  }
  .dash-auth-main {
    padding: 1.25rem 1rem 2rem;
  }
}
@media (max-width: 520px) {
  .dash-auth-features {
    grid-template-columns: 1fr;
  }
  .dash-auth-card {
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
  }
}

.dash-detail-grid { display: grid; gap: 1rem; }

#domain-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-detail-hero {
  margin-bottom: 0;
}

.dash-detail-score-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dash-detail-score-body {
  min-width: 0;
}

.dash-detail-score-summary {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.dash-detail-trend-card .dash-section-title {
  margin-bottom: 0.65rem;
}

.dash-detail-empty-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.dash-detail-section .dash-section-title-row {
  margin-bottom: 0.85rem;
}

.dash-detail-helper {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.dash-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.dash-kv {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.dash-kv dt { color: var(--color-text-muted); }
.dash-kv dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.dash-score-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  border: 4px solid var(--accent-green);
  background: var(--color-surface);
  flex-shrink: 0;
}

.dash-trend {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  height: 56px;
  min-height: 56px;
}

.dash-trend-bar {
  flex: 0 0 14px;
  width: 14px;
  max-width: 14px;
  background: var(--accent-green);
  border-radius: 3px 3px 0 0;
  min-width: 14px;
  opacity: 0.85;
}

.dash-issue-list {
  display: grid;
  gap: 0.45rem;
}

.dash-issue-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}

.dash-issue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.dash-issue-title {
  font-size: 0.95rem;
  line-height: 1.35;
}

.dash-issue-explanation {
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.dash-issue-recommendation {
  margin: 0.15rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dash-issue-actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-issue-actions--inline {
  margin-top: 0;
  flex-shrink: 0;
}

/* Domain detail page */
.dash-domain-header-main {
  min-width: 0;
}

.dash-domain-header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.dash-domain-header-title-row h1 {
  margin: 0;
}

.dash-domain-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.dash-domain-meta-item strong {
  color: var(--color-text);
  font-weight: 600;
}

.dash-detail-summary-grid {
  margin-top: 0;
}

.dash-detail-summary-grid .dash-stat-helper {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-detail-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dash-detail-status-strip-text {
  color: var(--color-text-muted);
  min-width: 0;
}

.dash-detail-status-strip-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.dash-detail-section {
  padding: 1rem 1.15rem;
}

.dash-detail-trend-card {
  padding: 1rem 1.15rem;
}

.dash-detail-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.dash-detail-section-head .dash-section-title-row {
  margin-bottom: 0;
}

.dash-detail-suggestions {
  flex-shrink: 0;
}

.dash-issue-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.dash-issue-filter {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.dash-issue-filter.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
}

.dash-issue-group {
  margin-bottom: 0.55rem;
}

.dash-issue-group-title {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-issue-item--compact {
  padding: 0.5rem 0.75rem;
}

.dash-issue-item--critical {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.18);
}

.dash-issue-item--warning {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
}

.dash-issue-item--info {
  background: var(--color-card, var(--color-surface));
  border-color: var(--color-border);
}

.dash-issue-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dash-issue-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  flex: 1;
}

.dash-issue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.dash-issue-category {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.dash-issue-item--info .dash-issue-category {
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.dash-issue-explanation,
.dash-issue-recommendation {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-fix-all-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}

.dash-fix-all-cta-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  flex: 1;
  min-width: min(100%, 16rem);
}

.dash-kv-neutral {
  color: var(--color-text-muted);
  font-weight: 500;
}

.dash-detail-infra-card .dash-section-title {
  margin: 0;
}

.dash-detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.dash-email-status-grid dd .dash-badge {
  vertical-align: middle;
}

.dash-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.dash-link-btn:hover {
  text-decoration: underline;
}

.dash-scan-history-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.dash-detail-enable-uptime {
  margin-top: 0.65rem;
}

.dash-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.dash-plan-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--color-surface);
}
.dash-plan-card.is-current {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px var(--accent-green);
}
.dash-plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}
.dash-plan-features {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Overview enhancements */
.dash-page-actions {
  align-items: center;
}

.dash-onboarding {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 0;
  padding: 1.1rem 1.4rem;
}

.dash-onboarding--highlight {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: none;
}

.dash-onboarding-visual {
  display: flex;
  justify-content: center;
}

.dash-onboarding-scene {
  position: relative;
  width: 176px;
  padding-bottom: 8px;
  padding-left: 8px;
}

.dash-onboarding-browser {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dash-onboarding-browser-bar {
  height: 28px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.dash-onboarding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.dash-onboarding-browser-body {
  padding: 0.65rem 0.6rem 0.6rem;
  background: var(--color-card);
}

.dash-onboarding-search-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  margin-bottom: 0.65rem;
}

.dash-onboarding-www {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.dash-onboarding-search-field {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}

.dash-onboarding-search-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.dash-onboarding-chart {
  display: block;
  width: 100%;
  height: auto;
}

.dash-onboarding-shield-badge {
  position: absolute;
  left: -4px;
  bottom: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(22, 199, 132, 0.35);
  display: grid;
  place-items: center;
}

.dash-onboarding-shield-badge svg {
  width: 30px;
  height: 30px;
}

.dash-onboarding-content {
  min-width: 0;
}

.dash-onboarding-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.dash-onboarding-text {
  margin: 0 0 0.65rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 56ch;
}

.dash-onboarding-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.dash-onboarding-link:hover {
  text-decoration: underline;
}

.dash-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-stat-icon-wrap--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.dash-stat-icon-wrap--red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.dash-stat-icon-wrap--orange {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.dash-stat-icon-wrap--green {
  background: rgba(22, 199, 132, 0.14);
  color: #16a34a;
}

.dash-stat-icon {
  color: var(--accent-blue);
  opacity: 0.85;
  flex-shrink: 0;
}

.dash-stat-helper {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.dash-overview-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  align-items: stretch;
}

.dash-overview-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
}

.dash-overview-panel--side {
  padding-bottom: 1.15rem;
}

.dash-overview-panel .dash-section-title-row {
  margin-bottom: 0.85rem;
}

.dash-overview-panel .dash-card-header {
  margin-bottom: 0.85rem;
}

.dash-overview-panel .dash-panel-empty-state {
  flex: 1;
  justify-content: center;
  min-height: 180px;
  padding: 1.25rem 1rem;
}

.dash-overview-populated .dash-overview-panel .dash-panel-empty-state {
  min-height: 240px;
}

.dash-overview-panel .dash-checklist {
  flex: 1;
}

.dash-panel-empty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.dash-panel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem 0.25rem;
}

.dash-panel-empty-illustration {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.dash-panel-empty-state .dash-panel-empty {
  max-width: 28ch;
}

.dash-panel-empty-state .dash-panel-action {
  margin-top: 0.85rem;
}

.dash-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.dash-section-title-row--header {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.dash-section-title-row .dash-section-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dash-section-title-row .dash-onboarding-link {
  margin-top: 0;
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.82rem;
}

.dash-section-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.dash-section-title-icon--inline {
  width: 28px;
  height: 28px;
  display: inline-grid;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.dash-health-summary-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.dash-health-summary-title strong {
  margin-bottom: 0;
}

.dash-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  user-select: none;
}

.dash-theme-switch-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #9fb4d4;
  transition: background 0.15s, color 0.15s;
}

.dash-theme-switch:not(.is-dark) .dash-theme-switch-icon--sun,
.dash-theme-switch.is-dark .dash-theme-switch-icon--moon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dash-panel-action {
  margin-top: 0.85rem;
}

.dash-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.dash-checklist--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.dash-checklist-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text);
}

.dash-checklist-item .dash-checklist-check svg {
  color: #16a34a;
}

.dash-recent-scans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.dash-recent-scan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dash-recent-scan-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-recent-scan-link {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.dash-recent-scan-link:hover .dash-recent-scan-domain {
  color: var(--accent-blue);
}

.dash-recent-scan-domain {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.dash-recent-scan-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.dash-recent-scan-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.dash-recent-scan-strip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dash-recent-scan-strip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-recent-scan-strip-item:first-child {
  padding-top: 0;
}

.dash-recent-scan-strip-link {
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.dash-recent-scan-strip-link:hover .dash-recent-scan-strip-domain {
  color: var(--accent-blue);
}

.dash-recent-scan-strip-domain {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-recent-scan-strip-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.dash-recent-scan-strip-time {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.dash-overview-recent-scans {
  margin-top: 0.85rem;
}

.dash-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.dash-score-pill--healthy {
  background: #dcfce7;
  color: #166534;
}

.dash-score-pill--warning {
  background: #fef3c7;
  color: #92400e;
}

.dash-score-pill--critical {
  background: #fee2e2;
  color: #991b1b;
}

.dash-score-pill--neutral {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

.dash-open-alerts-count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.dash-footer-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
  padding: 1.15rem 1.35rem;
}

.dash-footer-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-footer-banner-text {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.dash-stats-grid {
  margin-top: 0;
}

.dash-stats-grid .dash-card {
  padding: 1.1rem 1.2rem;
}

.dash-stat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.15s, transform 0.12s;
}

.dash-stat-card-link:hover {
  transform: none;
}

.dash-stat-card-link:hover .dash-card {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.dash-stat-card-link .dash-card {
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-overview-populated {
  grid-template-columns: 1.6fr 1fr;
  margin-top: 0;
  align-items: stretch;
}

.dash-overview-populated .dash-overview-panel {
  min-height: 280px;
}

.dash-plan-limit-banner {
  margin: 0.85rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dash-plan-limit-banner-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}

.dash-plan-limit-banner-link:hover {
  text-decoration: underline;
}

.dash-health-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 0;
  padding: 1.15rem 1.35rem;
}

.dash-health-summary-main {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex: 1;
  min-width: 0;
}

.dash-health-summary-score {
  flex-shrink: 0;
}

.dash-health-score-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  border: 3px solid var(--accent-green);
  background: var(--color-surface);
}

.dash-health-score-ring--healthy {
  border-color: #16a34a;
  color: #166534;
}

.dash-health-score-ring--warning {
  border-color: #f59e0b;
  color: #92400e;
}

.dash-health-score-ring--critical {
  border-color: #ef4444;
  color: #991b1b;
}

.dash-health-score-ring--neutral {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.dash-health-summary-body {
  flex: 1;
  min-width: 160px;
}

.dash-health-summary-body strong {
  display: block;
  margin-bottom: 0.45rem;
}

.dash-health-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-health-summary-status {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.dash-health-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.dash-health-chip-healthy { background: #dcfce7; color: #166534; }
.dash-health-chip-warning { background: #fef3c7; color: #92400e; }
.dash-health-chip-critical { background: #fee2e2; color: #991b1b; }

.dash-health-summary-link {
  margin-left: auto;
  white-space: nowrap;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dash-card-header .dash-section-title-row {
  margin-bottom: 0;
  width: 100%;
}

.dash-table-sub {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.dash-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}

.dash-alert-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.dash-alert-preview-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dash-alert-preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-alert-preview-main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.dash-alert-preview-text {
  min-width: 0;
}

.dash-alert-preview-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-alert-preview-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.dash-domain-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.dash-domain-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dash-domain-preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-domain-preview-item:first-child {
  padding-top: 0;
}

.dash-domain-preview-main {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.dash-domain-preview-main:hover .dash-domain-preview-name {
  color: var(--accent-blue);
}

.dash-domain-preview-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-domain-preview-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-domain-preview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.dash-domain-preview-scan {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.dash-domain-monitoring-off {
  font-size: 0.72rem;
}

.dash-domain-preview-side {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.dash-domain-preview-chevron {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1;
}

.dash-overview-empty-inline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dash-overview-panel--alerts .dash-panel-empty-state {
  min-height: 240px;
}

@media (min-width: 961px) {
  .dash-page-header {
    flex-wrap: nowrap;
  }

  .dash-page-header > .dash-actions,
  .dash-page-header > .dash-page-actions,
  .dash-page-header > .dash-btn,
  .dash-page-header > button {
    margin-left: auto;
    flex-shrink: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .dash-grid-4, .dash-grid-3, .dash-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-overview-row-3 { grid-template-columns: 1fr; }
  .dash-overview-populated { grid-template-columns: 1fr; }
  .dash-onboarding {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .dash-onboarding-visual {
    order: -1;
    justify-content: center;
  }
  .dash-main { padding: 1rem; }
}

@media (max-width: 640px) {
  .dash-grid-4, .dash-grid-3, .dash-grid-2, .dash-grid-5 { grid-template-columns: 1fr; }
  .dash-stats-grid.dash-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-stats-grid .dash-card {
    padding: 0.9rem 1rem;
  }
  .dash-stats-grid .dash-stat-value {
    font-size: 1.5rem;
  }
  .dash-stats-grid .dash-stat-helper {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .dash-checklist--2col { grid-template-columns: 1fr; }
  .dash-alert-preview-item {
    padding: 0.5rem 0;
  }
  .dash-page-actions {
    width: 100%;
  }
  .dash-page-actions .dash-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }
  .dash-onboarding-visual {
    order: -1;
  }
  .dash-onboarding-scene {
    width: min(176px, 100%);
  }
  .dash-fix-table-desktop {
    display: none;
  }
  .dash-fix-mobile-list {
    display: block;
    padding: 0.65rem;
  }
  .dash-fix-table-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .dash-fix-table-header-tabs {
    border-bottom: 1px solid var(--color-border);
    padding: 0 0.5rem;
  }
  .dash-fix-table-header-tools {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }
  .dash-fix-search-field,
  .dash-fix-search-input {
    min-width: 0;
    width: 100%;
  }
  .dash-fix-filters-wrap {
    width: 100%;
  }
  .dash-fix-filters-btn {
    width: 100%;
    justify-content: center;
  }
  .dash-fix-filters-popover {
    left: 0;
    right: 0;
  }
  .dash-fix-pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .dash-fix-pagination-btns {
    justify-content: center;
  }
  .dash-fix-drawer {
    width: 100vw;
  }
  .dash-fix-message--customer {
    margin-left: 0;
  }
}
