.voiceConnectionContainer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 8px 8px;
	background-color: var(--panel-control-bg, var(--background-secondary));
	border: none;
	width: 100%;
	min-width: 0;
	flex-shrink: 0;
	box-sizing: border-box;
	box-shadow: inset 0 1px 0 var(--user-area-divider-color);
}

/* ── Status row ───────────────────────────────────────────────────────── */

.statusRow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.signalIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	width: 24px;
	color: var(--status-online, #23a55a);
	flex-shrink: 0;
}

.statusButton {
	cursor: pointer;
	border: none;
	background: transparent;
	padding: 0;
	text-align: left;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.125rem;
	color: var(--status-online, #23a55a);
	user-select: none;
	-webkit-user-select: none;
	flex: 1;
	min-width: 0;
	font-family: inherit;
}

.statusConnecting {
	color: var(--status-warning, #f0b232);
}

.statusReconnecting {
	color: var(--status-warning, #f0b232);
}

.statusFailed {
	color: var(--status-danger, #f23f43);
}

.statusDisconnected {
	color: var(--status-danger, #f23f43);
}

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

.controlButton {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	width: 32px;
	background-color: transparent;
	color: var(--interactive-normal, var(--text-secondary));
	border: none;
	border-radius: var(--radius-md, 6px);
	cursor: pointer;
	position: relative;
	padding: 0;
	flex-shrink: 0;
	transition: background-color 0.15s, color 0.15s;
}

.controlButton:hover {
	background-color: color-mix(in srgb, var(--text-primary) 10%, transparent);
	color: var(--text-primary);
}

.controlButton.selected {
	background-color: var(--background-modifier-selected, color-mix(in srgb, var(--text-primary) 12%, transparent));
	color: var(--text-primary);
}

.controlButtonDanger:hover {
	background-color: color-mix(in srgb, var(--status-danger, #f23f43) 15%, transparent);
	color: var(--status-danger, #f23f43);
}

.icon {
	height: 20px;
	width: 20px;
}

/* ── Connection info ─────────────────────────────────────────────────── */

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

.channelSourceRow {
	display: flex;
	align-items: center;
	min-width: 0;
}

.channelSourceLink {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	border: none;
	background: transparent;
	padding: 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--text-secondary);
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}

.channelSourceLink:hover {
	color: var(--text-secondary);
	text-decoration: underline;
}

.channelSourceText {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

.channelSourceChannel {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	color: inherit;
}

.channelSourceSeparator {
	margin: 0 2px;
	flex-shrink: 0;
	color: inherit;
}

.channelSourceGuild {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: inherit;
}

.connectionIdRow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--text-secondary);
}

.connectionIdValue {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.connectionIdValueText {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.connectionIdIcon {
	height: 16px;
	width: 16px;
	color: var(--text-tertiary);
	flex-shrink: 0;
}

/* ── Media section ───────────────────────────────────────────────────── */

.mediaSection {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
}

.mediaButton {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	width: 100%;
	background-color: color-mix(in srgb, var(--background-modifier-hover) 70%, transparent);
	color: var(--interactive-normal, var(--text-secondary));
	border: 1px solid var(--background-modifier-hover);
	border-radius: var(--radius-md, 6px);
	cursor: pointer;
	position: relative;
	padding: 0;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
	font-family: inherit;
}

.mediaButton:hover:not(:disabled) {
	background-color: color-mix(in srgb, var(--text-primary) 10%, transparent);
	color: var(--text-primary);
	border-color: var(--background-modifier-selected, var(--background-modifier-hover));
}

.mediaButton:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mediaButton.cameraActive,
.mediaButton.screenShareActive {
	background-color: color-mix(in srgb, var(--status-online, #23a55a) 15%, transparent);
	color: var(--status-online, #23a55a);
	border-color: color-mix(in srgb, var(--status-online, #23a55a) 30%, transparent);
}

.mediaButton.cameraActive:hover:not(:disabled),
.mediaButton.screenShareActive:hover:not(:disabled) {
	background-color: color-mix(in srgb, var(--status-online, #23a55a) 20%, transparent);
	color: var(--status-online, #23a55a);
}

.mediaIcon {
	height: 20px;
	width: 20px;
}

/* ── Active state for the noise-suppression toggle ─────────────────
   Added so the button reads as "on" at rest, not just on hover. Uses
   the same hover palette the other controls pick up when moused over,
   so a user who's never hovered the button can still see it's active. */
.controlButton.controlButtonActive {
	color: var(--brand-primary, #5865f2);
	background-color: var(--background-modifier-hover, rgba(79, 84, 92, 0.35));
}
.controlButton.controlButtonActive:hover {
	color: var(--brand-primary, #5865f2);
	background-color: var(--background-modifier-selected, rgba(79, 84, 92, 0.55));
}
