.bh-exec-audit {
  padding: var(--space-6);
  max-width: 1100px;
}

/* Stats Strip */
.bh-pal-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.bh-pal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-5);
}

.bh-pal-stat--alert .bh-pal-stat__value {
  color: var(--color-error);
}

.bh-pal-stat__value {
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.bh-pal-stat__label {
  font-size: var(--text-tiny);
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.bh-pal-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Patient Activity Log */
.bh-pal-log {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bh-pal-empty {
  padding: var(--space-10);
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--text-body);
}

/* Patient Block */
.bh-pal-patient {
  border-bottom: 1px solid var(--color-border);
}

.bh-pal-patient:last-child {
  border-bottom: none;
}

.bh-pal-patient__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  flex-wrap: wrap;
}

.bh-pal-patient__identity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bh-pal-escalation-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-error);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.bh-pal-patient__name {
  font-size: var(--text-subheading);
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 150ms ease;
  cursor: pointer;
}

.bh-pal-patient__name:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.bh-pal-patient__meta {
  font-size: var(--text-small);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

/* Workflows under a patient */
.bh-pal-workflows {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Individual Workflow */
.bh-pal-wf {
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-4);
  margin-bottom: var(--space-4);
}

.bh-pal-wf:last-child {
  margin-bottom: 0;
}

.bh-pal-wf__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.bh-pal-wf__id {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-lighter);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary-light);
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.bh-pal-wf__id:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.bh-pal-wf__title {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh-pal-wf__esc-tag {
  font-size: var(--text-tiny);
  font-weight: 700;
  color: var(--color-error);
  background: rgba(220, 38, 38, 0.08);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(220, 38, 38, 0.2);
  white-space: nowrap;
}

.bh-pal-wf__meta {
  font-size: var(--text-tiny);
  color: var(--color-text-tertiary);
  margin-left: auto;
  white-space: nowrap;
}

/* Steps */
.bh-pal-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bh-pal-step {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: 5px var(--space-3);
  border-left: 3px solid var(--agent-color, #CBD5E1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: transparent;
  transition: background 120ms ease;
}

.bh-pal-step:hover {
  background: var(--color-bg-primary);
}

.bh-pal-step__time {
  font-size: var(--text-tiny);
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 64px;
}

.bh-pal-step__desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex: 1;
}

.bh-pal-step__indicators {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Inline Indicators */
.bh-pal-ind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
}

.bh-pal-ind--esc {
  background: rgba(220, 38, 38, 0.12);
  color: var(--color-error);
  font-size: 11px;
}

.bh-pal-ind--transcript {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-size: 9px;
}

.bh-pal-ind--reviewed {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
  font-size: 11px;
}

/* Expand Toggle */
.bh-pal-expand-toggle {
  margin-top: var(--space-2);
  padding: 0;
  font-size: var(--text-small);
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  transition: color 150ms ease;
}

.bh-pal-expand-toggle:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .bh-pal-stats {
    gap: var(--space-1);
  }

  .bh-pal-stat {
    padding: var(--space-2) var(--space-3);
  }

  .bh-pal-stat-divider {
    display: none;
  }

  .bh-pal-wf__title {
    display: none;
  }

  .bh-pal-patient__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}
