.calls--main-container {
  background: var(--surface-page);
}

.calls--header {
  margin-bottom: 2rem;
}

.calls--header-title {
  font-size: 1.875rem;
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-heading);
  margin: 0;
  line-height: 1.2;
}

.calls--content-wrapper {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calls--filters-bar {
  padding: 1.5rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calls--search-wrapper {
  flex: 1;
  max-width: 24rem;
  position: relative;
}

.calls--search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--icon-secondary);
  pointer-events: none;
}

.calls--search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.75rem;
  border: 1px solid var(--border-secondary);
  border-radius: var(--input-radius);
  font-size: var(--rem-14);
  color: var(--text-body);
  background: white;
  transition: all 0.2s ease;
}

.calls--search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(38, 162, 127, 0.1);
}

.calls--search-input::placeholder {
  color: var(--text-placeholder);
}

/* Enhanced Table Styles */
.calls--table-wrapper {
  overflow-x: auto;
}

.calls--table {
  width: 100%;
  border-collapse: collapse;
}

.calls--table thead {
  background: var(--surface-subtle);
  border-bottom: 2px solid var(--border-secondary);
}

.calls--table th {
  padding: 0.875rem 0.5rem;
  text-align: left;
  font-size: var(--rem-12);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.calls--table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.calls--table tbody tr:hover {
  background: var(--surface-highlighted);
}

.calls--table td {
  padding: 1rem 0.5rem;
  font-size: var(--rem-13);
  color: var(--text-body);
  vertical-align: middle;
}

.calls--id-cell {
  font-variation-settings: 'wght' var(--text-medium);
  color: var(--text-action);
  text-decoration: none;
  transition: color 0.15s ease;
}

.calls--id-cell:hover {
  color: var(--text-action-hover);
  text-decoration: underline;
}

.calls--phone-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.calls--phone-number {
  font-size: var(--rem-14);
  color: var(--text-body);
  font-variation-settings: 'wght' var(--text-medium);
}

.calls--caller-id {
  font-size: var(--rem-12);
  color: var(--text-additional);
}

.calls--entity-link {
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-action);
  text-decoration: none;
  display: block;
}

.calls--entity-link:hover {
  text-decoration: underline;
}

.calls--entity-name {
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-body);
  display: block;
}

.calls--duration {
  font-feature-settings: 'tnum';
  font-variation-settings: 'wght' var(--text-medium);
  color: var(--text-information);
}

/* Enhanced Badge Styles */
.calls--status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--rem-12);
  font-variation-settings: 'wght' var(--text-semibold);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.calls--status-badge.completed {
  background: var(--primary-100);
  color: var(--primary-700);
}

.calls--status-badge.processing {
  background: var(--warning-100);
  color: var(--warning-700);
  position: relative;
  padding-left: 1.75rem;
}

.calls--status-badge.processing::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--warning-600);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.calls--status-badge.failed {
  background: var(--error-100);
  color: var(--error-700);
}

.calls--status-badge.pending,
.calls--status-badge.not-started {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

/* Direction Badge Styles */
.calls--direction-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-semibold);
  white-space: nowrap;
}

.calls--direction-badge.inbound {
  background: #E0F2FE;
  color: #0369A1;
}

.calls--direction-badge.outbound {
  background: var(--primary-100);
  color: var(--primary-700);
}

.calls--direction-badge.internal {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

.calls--direction-badge.unknown {
  background: var(--neutral-50);
  color: var(--neutral-400);
}

/* Disposition Badge Styles */
.calls--disposition-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-semibold);
  white-space: nowrap;
}

.calls--disposition-badge.answered {
  background: var(--primary-100);
  color: var(--primary-700);
}

.calls--disposition-badge.unanswered {
  background: var(--error-100);
  color: var(--error-700);
}

.calls--disposition-badge.voicemail {
  background: #E0F2FE;
  color: #0369A1;
}

.calls--disposition-badge.unknown {
  background: var(--neutral-50);
  color: var(--neutral-400);
}

/* Status Pills Container */
.calls--status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

/* Search Match Indicator */
.calls--match-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-sm);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-medium);
  white-space: nowrap;
}

.calls--actions-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.calls--action-btn {
  padding: 0.375rem 0.875rem;
  border-radius: var(--button-radius);
  font-size: var(--rem-13);
  font-variation-settings: 'wght' var(--text-medium);
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.calls--action-btn.primary {
  background: var(--surface-action);
  color: white;
}

.calls--action-btn.primary:hover {
  background: var(--surface-action-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(38, 162, 127, 0.2);
}

.calls--action-btn.secondary {
  background: white;
  color: var(--text-action-neutral);
  border: 1px solid var(--border-secondary);
}

.calls--action-btn.secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--border-secondary-hover);
}

/* Empty State */
.calls--empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.calls--empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--surface-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-secondary);
}

.calls--empty-title {
  font-size: var(--rem-18);
  font-variation-settings: 'wght' var(--text-medium);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.calls--empty-description {
  font-size: var(--rem-14);
  color: var(--text-additional);
}

/* Pagination */
.calls--pagination-wrapper {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
}

/* Call Details Page Styles */
.calls--detail-container {
  width: 100%;
}

.calls--detail-header {
  margin-bottom: 2rem;
}

.calls--breadcrumb {
  margin-bottom: 1rem;
}

.calls--detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calls--detail-title {
  font-size: 2rem;
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-heading);
  margin: 0;
}

.calls--detail-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-additional);
  font-size: var(--rem-14);
}

.calls--detail-actions {
  display: flex;
  gap: 0.75rem;
}

.calls--download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: white;
  border: 1px solid var(--border-secondary);
  border-radius: var(--button-radius);
  color: var(--text-action-neutral);
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-medium);
  text-decoration: none;
  transition: all 0.15s ease;
}

.calls--download-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--border-secondary-hover);
  transform: translateY(-1px);
}

/* Info Cards */
.calls--info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calls--info-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calls--info-card-header {
  padding: 1rem 1.5rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.calls--info-card-body {
  padding: 1.5rem;
}

.calls--info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.calls--info-row:last-child {
  border-bottom: none;
}

.calls--info-label {
  font-size: var(--rem-14);
  color: var(--text-label);
  font-variation-settings: 'wght' var(--text-medium);
  flex-shrink: 0;
  width: 40%;
}

.calls--info-value {
  font-size: var(--rem-14);
  color: var(--text-body);
  text-align: right;
  flex: 1;
}

.calls--info-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.calls--info-phone-number {
  font-variation-settings: 'wght' var(--text-medium);
  color: var(--text-body);
}

.calls--info-phone-label {
  font-size: var(--rem-12);
  color: var(--text-additional);
}

.calls--info-entity-link {
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-action);
  text-decoration: none;
}

.calls--info-entity-link:hover {
  text-decoration: underline;
}

.calls--info-entity-name {
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-body);
}

/* Audio Player Card */
.calls--player-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  overflow: hidden;
}

.calls--player-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-bottom: 1px solid var(--primary-200);
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--primary-800);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calls--player-body {
  padding: 2rem;
  background: linear-gradient(to bottom, white, var(--surface-subtle));
}

.calls--audio-wrapper {
  position: relative;
}

.calls--audio-element {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calls--audio-element:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.calls--playback-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calls--playback-time {
  font-size: var(--rem-13);
  color: var(--text-information);
  font-feature-settings: 'tnum';
  font-variation-settings: 'wght' var(--text-medium);
}

.calls--playback-speed {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.calls--speed-btn {
  padding: 0.25rem 0.5rem;
  background: white;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xs);
  font-size: var(--rem-12);
  color: var(--text-action-neutral);
  cursor: pointer;
  transition: all 0.15s ease;
}

.calls--speed-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--border-secondary-hover);
}

.calls--speed-btn.active {
  background: var(--surface-action);
  color: white;
  border-color: var(--surface-action);
}

/* Transcript Section - Modern Chat Interface */
.calls--transcript-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.calls--transcript-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-100));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calls--transcript-title {
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calls--transcript-controls {
  display: flex;
  gap: 0.5rem;
}

/* Auto-scroll indicator */
.calls--auto-scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-medium);
  animation: fade-in 0.3s ease;
}

.calls--auto-scroll-indicator.paused {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.calls--transcript-control-btn {
  padding: 0.375rem 0.75rem;
  background: white;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--rem-12);
  color: var(--text-action-neutral);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.calls--transcript-control-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--border-secondary-hover);
}

.calls--transcript-control-btn.active {
  background: var(--surface-action);
  color: white;
  border-color: var(--surface-action);
}

/* Chat Container */
.calls--chat-container {
  height: 600px;
  background: linear-gradient(to bottom, #fafbfc, #f5f7f9);
  position: relative;
  overflow: hidden;
}

.calls--chat-messages {
  height: 100%;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  scroll-behavior: smooth;
}

.calls--chat-messages::-webkit-scrollbar {
  width: 6px;
}

.calls--chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.calls--chat-messages::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 3px;
}

.calls--chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400);
}

/* Message Bubbles */
.calls--message-group {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calls--message-group.outgoing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.calls--message-group.incoming {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.calls--message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  padding: 0 0.75rem;
}

.calls--speaker-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-semibold);
  color: white;
  text-transform: uppercase;
}

.calls--speaker-avatar.caller {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.calls--speaker-avatar.receiver {
  background: linear-gradient(135deg, var(--neutral-500), var(--neutral-600));
}

.calls--speaker-name {
  font-size: var(--rem-12);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
}

.calls--speaker-role {
  font-size: var(--rem-11);
  color: var(--text-additional);
  padding: 0.125rem 0.375rem;
  background: var(--neutral-100);
  border-radius: var(--radius-xs);
}

.calls--message-bubble {
  position: relative;
  max-width: 65%;
  padding: 0.875rem 1.25rem;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.calls--message-bubble:hover {
  transform: scale(1.02);
}

.calls--message-bubble.outgoing {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.calls--message-bubble.incoming {
  background: white;
  color: var(--text-body);
  border-bottom-left-radius: 0.25rem;
  border: 1px solid var(--border-subtle);
}

.calls--message-text {
  font-size: var(--rem-14);
  line-height: 1.5;
  word-wrap: break-word;
}

.calls--message-timestamp {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  font-size: var(--rem-11);
  opacity: 0.8;
}

.calls--message-bubble.outgoing .calls--message-timestamp {
  color: rgba(255, 255, 255, 0.9);
}

.calls--message-bubble.incoming .calls--message-timestamp {
  color: var(--text-additional);
}

.calls--timestamp-icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Active/Highlighted State */
.calls--message-bubble.active {
  animation: pulse-highlight 0.8s ease;
  transform: scale(1.02);
  position: relative;
}

.calls--message-bubble.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -2rem;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 2rem;
  background: var(--primary-500);
  border-radius: 0.25rem;
  animation: slide-in 0.3s ease;
}

@keyframes pulse-highlight {
  0% {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(38, 162, 127, 0.2);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(38, 162, 127, 0.1);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.calls--message-bubble.active.outgoing {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.calls--message-bubble.active.outgoing::before {
  left: auto;
  right: -2rem;
}

.calls--message-bubble.active.incoming {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-color: var(--primary-400);
  color: var(--text-body);
}

/* Empty/Loading States */
.calls--transcript-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.calls--transcript-empty-icon {
  width: 5rem;
  height: 5rem;
  background: var(--surface-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--icon-secondary);
}

.calls--transcript-empty-title {
  font-size: var(--rem-18);
  font-variation-settings: 'wght' var(--text-medium);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.calls--transcript-empty-text {
  font-size: var(--rem-14);
  color: var(--text-additional);
  text-align: center;
  max-width: 24rem;
}

.calls--transcript-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calls--loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Individual Channel Recordings */
.calls--channels-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calls--channels-header {
  padding: 1rem 1.5rem;
  background: var(--warning-50);
  border-bottom: 1px solid var(--warning-200);
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--warning-800);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.calls--channels-body {
  padding: 1.5rem;
}

.calls--channel-item {
  padding: 1rem;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.calls--channel-item:last-child {
  margin-bottom: 0;
}

.calls--channel-label {
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calls--channel-audio {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
}

/* Summary Section */
.calls--summary-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.calls--summary-header {
  padding: 1rem 1.5rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calls--summary-body {
  padding: 1.5rem;
  font-size: var(--rem-14);
  line-height: 1.6;
  color: var(--text-body);
}

.calls--summary-body p {
  margin: 0 0 1rem 0;
}

.calls--summary-body p:last-child {
  margin-bottom: 0;
}

.calls--summary-body strong {
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-heading);
}

/* Participants Section */
.calls--participants-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.calls--participants-header {
  padding: 1rem 1.5rem;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--rem-14);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calls--participants-body {
  padding: 0;
}

.calls--participants-table {
  width: 100%;
  border-collapse: collapse;
}

.calls--participants-table thead {
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calls--participants-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: var(--rem-12);
  font-variation-settings: 'wght' var(--text-semibold);
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calls--participants-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.calls--participants-table tbody tr:last-child {
  border-bottom: none;
}

.calls--participants-table tbody tr:hover {
  background: var(--surface-highlighted);
}

.calls--participants-table td {
  padding: 1rem 1.5rem;
  font-size: var(--rem-14);
  color: var(--text-body);
  vertical-align: middle;
}

.calls--participant-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calls--participant-name a {
  color: var(--text-action);
  text-decoration: none;
  font-variation-settings: 'wght' var(--text-medium);
}

.calls--participant-name a:hover {
  text-decoration: underline;
}

.calls--participant-matched {
  display: inline-flex;
  color: var(--primary-500);
}

.calls--participant-phone {
  font-feature-settings: 'tnum';
  color: var(--text-information);
}

/* Role Badges */
.calls--role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-semibold);
  white-space: nowrap;
}

.calls--role-badge.staff {
  background: var(--primary-100);
  color: var(--primary-700);
}

.calls--role-badge.patient {
  background: #E0F2FE;
  color: #0369A1;
}

.calls--role-badge.provider {
  background: #FEF3C7;
  color: #92400E;
}

.calls--role-badge.provider_organization {
  background: #F3E8FF;
  color: #7C3AED;
}

.calls--role-badge.unknown {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

/* Relationship Badge */
.calls--relationship-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-medium);
  background: var(--neutral-50);
  color: var(--neutral-600);
  white-space: nowrap;
}

.calls--relationship-badge.none {
  background: transparent;
  color: var(--neutral-400);
}

/* Needs Review Badge */
.calls--needs-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--rem-11);
  font-variation-settings: 'wght' var(--text-semibold);
  white-space: nowrap;
  background: var(--error-100);
  color: var(--error-700);
}

/* Mark Reviewed Button */
.calls--mark-reviewed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: white;
  border: 1px solid var(--border-secondary);
  border-radius: var(--button-radius);
  font-size: var(--rem-13);
  font-variation-settings: 'wght' var(--text-medium);
  color: var(--text-action-neutral);
  cursor: pointer;
  transition: all 0.15s ease;
}

.calls--mark-reviewed-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--border-secondary-hover);
}

/* Empty State Small */
.calls--empty-state-small {
  padding: 1.5rem;
  text-align: center;
}

.calls--empty-text {
  font-size: var(--rem-14);
  color: var(--text-additional);
}

/* Responsive Design */
@media (max-width: 768px) {
  .calls--detail-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .calls--info-grid {
    grid-template-columns: 1fr;
  }

  .calls--message-bubble {
    max-width: 80%;
  }

  .calls--chat-container {
    height: 500px;
  }

  .calls--participants-table {
    display: block;
    overflow-x: auto;
  }
}
