.side-panels {
  width: var(--panels-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-subtle);
  overflow: hidden;
}

.side-panels__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.side-panels__tab {
  flex: 1;
  padding: 10px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.side-panels__tab:hover {
  color: var(--text-secondary);
  background: var(--bg-panel-raised);
}

.side-panels__tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-selection);
}

.side-panels__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}

.side-panels__content--chat,
.side-panels__content--visio {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-section {
  margin-bottom: 20px;
}

.panel-section:last-child {
  margin-bottom: 0;
}

.panel-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.panel-placeholder {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-panel-raised);
  border: 1px dashed var(--border-subtle);
  border-radius: 6px;
  line-height: 1.6;
}

.panel-placeholder__icon {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-panel-raised);
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 12px;
}

.panel-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.panel-status__dot--active {
  background: var(--accent-play);
  box-shadow: 0 0 6px var(--accent-play);
}

.panel-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-panel-raised);
  border-radius: 4px;
  font-size: 12px;
  gap: 12px;
}

.panel-info__row dt {
  color: var(--text-muted);
  font-weight: 500;
}

.panel-info__row dd {
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-align: right;
}

.panel-participants {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-participants__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-panel-raised);
  border-radius: 4px;
  font-size: 12px;
}

.panel-participants__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.panel-participants__item--online .panel-participants__avatar {
  background: rgba(74, 222, 128, 0.2);
  color: var(--accent-play);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.panel-participants__name {
  flex: 1;
  font-weight: 500;
}

.panel-participants__role {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-transport-status__badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-transport-status__badge--idle {
  background: var(--bg-panel-raised);
  color: var(--text-muted);
}

.panel-transport-status__badge--play {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-play);
}

.panel-transport-status__badge--pause {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-mute);
}

.panel-transport-status__badge--rec {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-rec);
}

.panel-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.panel-btn:hover:not(:disabled) {
  border-color: var(--accent-selection);
  color: var(--text-primary);
}

.panel-btn--primary {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-selection);
  color: var(--accent-selection);
}

.panel-btn--primary:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.25);
}

/* ── Chat ── */

.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.chat-msg--self {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg--other {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 10px;
  color: var(--text-muted);
}

.chat-msg__author {
  font-weight: 600;
}

.chat-msg__bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg--self .chat-msg__bubble {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--text-primary);
  border-bottom-right-radius: 3px;
}

.chat-msg--other .chat-msg__bubble {
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-bottom-left-radius: 3px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  flex-shrink: 0;
}

.chat-form__input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.chat-form__send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent-selection);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.chat-form__send svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chat-form__send:hover {
  background: rgba(59, 130, 246, 0.35);
}

/* ── Visio (split horizontal) ── */

.visio-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 12px;
  gap: 12px;
}

.visio-stage {
  flex: 1;
  min-height: 0;
  background: #0a0a0c;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.visio-split {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Haut — caméra locale */
.visio-split__pane--local {
  flex: 0 0 44%;
  min-height: 110px;
  position: relative;
  background: var(--bg-panel-raised);
  border-bottom: none;
}

.visio-pane__video {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a22 0%, #121218 100%);
}

.visio-pane__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.visio-pane__placeholder svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  opacity: 0.35;
}

.visio-pane__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-secondary);
  backdrop-filter: blur(4px);
}

.visio-pane__badge--self {
  color: var(--text-primary);
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.15);
}

/* Séparateur horizontal */
.visio-split__divider {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 28px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  padding: 0 12px;
}

.visio-split__divider-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Bas — participants invités */
.visio-split__pane--guests {
  flex: 1;
  min-height: 0;
  background: var(--bg-input);
  overflow: hidden;
}

.visio-guests {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 10px;
  min-height: 0;
}

.visio-guests__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  border: 1px dashed var(--border-medium);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 0;
}

.visio-guests__empty svg {
  width: 36px;
  height: 36px;
  fill: var(--text-muted);
  opacity: 0.35;
}

.visio-guests__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.visio-guests__sub {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 200px;
}

.visio-guests__slots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.visio-guests__slot {
  flex: 1;
  height: 36px;
  border-radius: 4px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-subtle);
  opacity: 0.5;
}

.visio-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.visio-controls__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.visio-controls__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.visio-controls__btn--join {
  flex: 1;
  width: auto;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 0 12px;
}

.visio-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}