.stations-map {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	user-select: none;
}

.stations-row {
	display: flex;
	justify-content: center;
	gap: 24px;
}

.station {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 140px;
	padding: 8px;
	border-radius: 6px;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.station[data-status="waiting"] {
	border-color: #444;
}

.station[data-status="thinking"] {
	border-color: #555;
	background: #1e1e1e;
}

.station[data-status="acting"] {
	border-color: #555;
	background: #1e1e1e;
}

.station[data-status="speaking"] {
	border-color: #666;
	background: #1f1f1f;
}

.station-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-align: center;
	padding: 4px 0;
}

.station-counter {
	font-size: 10px;
	color: #555;
	text-align: center;
	min-height: 14px;
	margin-top: 2px;
}

.station-active-indicator {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: transparent;
	margin-bottom: 4px;
	transition: background 0.2s ease;
}

.station-active-indicator.visible {
	background: #888;
	animation: station-pulse 1.2s ease-in-out infinite;
}

@keyframes station-pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 1; }
}

.station-thought-bubble {
	order: -1;
	align-self: center;
	max-width: 220px;
	min-width: 60px;
	background: #1a1a1a;
	border: 1px dashed #555;
	border-radius: 10px;
	font-size: 11px;
	color: #999;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	word-break: break-word;
	max-height: 0;
	padding: 0 8px;
	overflow: hidden;
	transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

.station-thought-bubble.visible {
	opacity: 1;
	max-height: 140px;
	padding: 6px 10px;
	margin-bottom: 4px;
}

.station-thought-content {
	display: block;
	max-height: 120px;
	overflow: hidden;
}

.station[data-status="thinking"] .station-thought-bubble {
	border-color: #777;
}

.station[data-status="acting"] .station-thought-content {
	color: #b0b0b0;
	font-family: monospace;
	font-size: 11px;
}

.station-speech-bubble {
	align-self: center;
	max-width: 240px;
	min-width: 60px;
	background: #1c1c1c;
	border: 1px solid #666;
	border-radius: 8px;
	font-size: 11px;
	color: #bbb;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	word-break: break-word;
	max-height: 0;
	padding: 0 8px;
	overflow: hidden;
	transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

.station-speech-bubble.visible {
	opacity: 1;
	max-height: 100px;
	padding: 6px 10px;
	margin-top: 4px;
}

.station-speech-recipient {
	display: block;
	font-size: 10px;
	color: #777;
	margin-bottom: 2px;
}

.station-speech-recipient:empty {
	display: none;
}

.station-speech-content {
	display: block;
	max-height: 80px;
	overflow: hidden;
}
