/* Cecil Views CSS — styles shared across all views */

/* ─── SubNav ─── */
.subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-6);
  height: var(--subnav-height);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.subnav__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.subnav__pill:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.subnav__pill.active {
  color: var(--text-primary);
  background: var(--accent-bg);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ─── Score grid ─── */
.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .score-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.score-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.score-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.score-card__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.score-card__trend {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ─── Issue row ─── */
.issue-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
  align-items: center;
}

@media (min-width: 640px) {
  .issue-row {
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-4);
  }
}

.issue-row:hover {
  border-color: var(--bg-hover);
  background: var(--bg-elevated);
}

.issue-row__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-row__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ─── Age badge ─── */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
}

.age-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.age-badge__label {
  line-height: 1;
}

.age-badge__overdue {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Color variants */
.age-badge--fresh {
  color: var(--age-fresh);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.age-badge--fresh .age-badge__dot {
  background: var(--age-fresh);
}

.age-badge--aging {
  color: var(--age-aging);
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.2);
}

.age-badge--aging .age-badge__dot {
  background: var(--age-aging);
}

.age-badge--stale {
  color: var(--age-stale);
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.age-badge--stale .age-badge__dot {
  background: var(--age-stale);
}

.age-badge--critical {
  color: var(--age-critical);
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.3);
}

.age-badge--critical .age-badge__dot {
  background: var(--age-critical);
}

@keyframes age-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.age-badge--pulse {
  animation: age-pulse 2s ease infinite;
}

/* ─── Gauge container ─── */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.coverage-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
}

.coverage-gauge__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* ─── Client card ─── */
.client-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.client-card:hover {
  border-color: var(--bg-hover);
  background: var(--bg-elevated);
}

.client-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.client-card__status-dot--healthy {
  background: var(--monitor-healthy);
  animation: heartbeat-healthy 2.5s ease infinite;
}

.client-card__status-dot--warning {
  background: var(--monitor-stale);
  animation: heartbeat-stale 3s ease infinite;
}

.client-card__status-dot--error {
  background: var(--monitor-error);
  animation: heartbeat-error 1.2s ease infinite;
}

.client-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.client-card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ─── Hit bar ─── */
.hit-bar-track {
  width: 100%;
  height: 4px;
  background: var(--bg-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hit-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--chart-1);
  transition: width 0.4s ease;
}

/* ─── Metric row ─── */
.metric-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

@media (max-width: 480px) {
  .metric-row {
    grid-template-columns: 80px 1fr 40px;
    gap: var(--space-2);
  }
}

.metric-row__label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-row__value {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-align: right;
}

/* ─── Login feed row ─── */
.login-feed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--bg-border);
  transition: background-color var(--transition-fast);
}

.login-feed-row:last-child {
  border-bottom: none;
}

.login-feed-row:hover {
  background: var(--bg-elevated);
}

.login-feed-row__user {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.login-feed-row__detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.login-feed-row__time {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Anomaly card ─── */
.anomaly-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.anomaly-card--critical {
  border-color: var(--sev-critical-border);
  background: var(--sev-critical-bg);
}

.anomaly-card--high {
  border-color: var(--sev-high-border);
  background: var(--sev-high-bg);
}

.anomaly-card--medium {
  border-color: var(--sev-medium-border);
  background: var(--sev-medium-bg);
}

.anomaly-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.anomaly-card__description {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.anomaly-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─── App status card ─── */
.app-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.app-status-card:hover {
  background: var(--bg-elevated);
}

.app-status-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.app-status-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.app-status-card__status {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.app-status-card__indicator {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Placeholder / coming-soon view ─── */
.placeholder-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-10);
}

.placeholder-view__icon {
  font-size: 48px;
  opacity: 0.3;
}

.placeholder-view__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.placeholder-view__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ─── Nav group labels in sidebar ─── */
.nav-group-label {
  padding: var(--space-3) var(--space-3) var(--space-1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.nav-group-label:first-child {
  margin-top: 0;
}

/* ─── Stat strip (KPI pills) ─── */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  min-width: 100px;
  flex: 1 1 auto;
}

.stat-pill__value {
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.stat-pill__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─── Local tabs (within-view tab switching) ─── */
.local-tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--bg-border);
  padding: 0;
  margin: var(--space-4) 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.local-tabs::-webkit-scrollbar {
  display: none;
}

.local-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  margin-bottom: -1px;
}

.local-tab:hover {
  color: var(--text-primary);
}

.local-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--sev-critical);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ─── Tab panels container ─── */
.tab-panels {
  margin-top: var(--space-4);
}

/* ─── Authentik panel ─── */
.authentik-panel {
  width: 100%;
}

/* ─── Generic data table ─── */
.data-table {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

.data-table__header {
  display: grid;
  grid-template-columns: 2fr 60px 100px 1fr 60px;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-elevated);
}

@media (max-width: 640px) {
  .data-table__header {
    display: none;
  }
}

.data-table__th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table__row {
  display: grid;
  grid-template-columns: 2fr 60px 100px 1fr 60px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--bg-border);
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--transition-fast);
}

.data-table__row:last-child {
  border-bottom: none;
}

.data-table__row:hover {
  background: var(--bg-elevated);
}

@media (max-width: 640px) {
  .data-table__row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

.data-table__cell {
  font-size: var(--text-sm);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table__cell--user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
}

.data-table__cell--mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.data-table__cell--time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.data-table__cell--chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.data-table__cell--muted {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.data-table__email {
  font-size: var(--text-sm);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Status dot (inline, for user rows) ─── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ─── Auth method chips ─── */
.auth-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.chip--purple {
  background: rgba(185, 127, 255, 0.14);
  color: var(--status-investigating);
  border: 1px solid rgba(185, 127, 255, 0.25);
}

.chip--amber {
  background: var(--sev-medium-bg);
  color: var(--sev-medium);
  border: 1px solid var(--sev-medium-border);
}

.chip--muted {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--bg-border);
}

/* ─── Badge (inline classification labels) ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--green {
  background: var(--status-resolved-bg);
  color: var(--status-resolved);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge--blue {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge--amber {
  background: var(--sev-medium-bg);
  color: var(--sev-medium);
  border: 1px solid var(--sev-medium-border);
}

.badge--red {
  background: var(--sev-critical-bg);
  color: var(--sev-critical);
  border: 1px solid var(--sev-critical-border);
}

.badge--muted {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--bg-border);
}

/* ─── Anomaly cards container ─── */
.anomaly-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.anomaly-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.dismiss-btn {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.dismiss-btn:hover {
  color: var(--text-primary);
  border-color: var(--bg-hover);
  background: var(--bg-hover);
}

/* ─── CF Access view ─── */
.app-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 480px) {
  .app-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .app-status-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-status-card__info {
  flex: 1;
  min-width: 0;
}

.app-status-card__stats {
  display: flex;
  gap: var(--space-4);
  margin-left: auto;
  flex-shrink: 0;
}

.app-status-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.app-stat-value {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.app-stat-value--warn {
  color: var(--sev-medium);
}

.app-stat-label {
  font-size: 10px;
  color: var(--text-muted);
}

.app-status-card__footer {
  display: none;
}

@media (min-width: 640px) {
  .app-status-card {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .app-status-card__footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding-top: var(--space-2);
    border-top: 1px solid var(--bg-border);
    margin-top: var(--space-1);
  }
}

.app-status-card__last {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.app-status-card__idp {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── CF Access feed table ─── */
.feed-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.filter-pill.active {
  color: var(--text-primary);
  background: var(--accent-bg);
  border-color: rgba(59, 130, 246, 0.3);
}

.cf-access-header {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 80px 80px 100px;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
}

@media (max-width: 700px) {
  .cf-access-header {
    display: none;
  }
}

.cf-access-th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cf-access-feed {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.cf-access-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 80px 80px 100px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--bg-border);
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--transition-fast);
}

.cf-access-row:last-child {
  border-bottom: none;
}

.cf-access-row:hover {
  background: var(--bg-elevated);
}

@media (max-width: 700px) {
  .cf-access-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
}

.cf-access-row__ts {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.cf-access-row__user {
  font-size: var(--text-sm);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-access-row__app {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-access-row__idp {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.cf-access-row__result {
  display: flex;
  align-items: center;
}

.cf-access-row__ip {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ─── Wiz Timeline view ─── */
.chart-wrap {
  width: 100%;
  overflow: hidden;
}

.chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

/* ─── Severity distribution stacked bar ─── */
.sev-dist-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sev-dist-bar {
  display: flex;
  height: 20px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-elevated);
  width: 100%;
}

.sev-dist-segment {
  height: 100%;
  transition: width 0.4s ease;
  min-width: 2px;
}

.sev-dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.sev-dist-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sev-dist-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

.sev-dist-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ─── Resolution time rows ─── */
.resolution-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.metric-row__track {
  flex: 1;
}

/* ─── Section title variants ─── */
.section-title--sm {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

/* ─── Heartbeat animation for app status ─── */
.heartbeat-green {
  animation: heartbeat-healthy 2.5s ease infinite;
}
