/* Trip playback UI — delete this file to revert the feature */
#playback-toggle {
	position: fixed;
	bottom: 54px; /* tight stack above #message-feed-toggle */
	left: 12px;
	right: auto;
	z-index: 1100;
	appearance: none;
	border: 0;
	border-radius: 6px;
	padding: 8px 15px;
	font: 600 14px Arial, Helvetica, sans-serif;
	background: #0a4d68;
	color: #fff;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.3s;
	min-width: 200px;
	text-align: left;
}
#playback-toggle:hover {
	opacity: 1;
}
#playback-panel {
	display: none;
	position: fixed;
	left: 12px;
	right: auto;
	bottom: 102px;
	width: min(420px, calc(100vw - 24px));
	z-index: 1100;
	background: #f7fafc;
	color: #123;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.28);
	overflow: hidden;
	font: 13px Arial, Helvetica, sans-serif;
}
#playback-panel.is-open {
	display: block;
}
.playback-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	background: #0a4d68;
	color: #fff;
	font-weight: 600;
}
.playback-header button {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}
.playback-body {
	padding: 12px;
	display: grid;
	gap: 10px;
}
.playback-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.playback-row label {
	min-width: 70px;
	font-weight: 600;
}
.playback-row select,
.playback-row button.playback-ctrl {
	appearance: none;
	border: 1px solid #c5d0d8;
	border-radius: 6px;
	padding: 6px 10px;
	background: #fff;
	font: inherit;
	cursor: pointer;
}
.playback-row button.playback-ctrl {
	background: #0a4d68;
	color: #fff;
	border-color: #0a4d68;
	font-weight: 600;
}
.playback-row button.playback-ctrl:disabled {
	opacity: 0.5;
	cursor: default;
}
#playback-slider {
	width: 100%;
}
#playback-time-label {
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}
.playback-hint {
	opacity: 0.7;
	font-size: 12px;
}
/* Nachrichten open: hide Wiedergabe so the feed isn't covered */
body:has(#message-feed.is-open) #playback-toggle,
body:has(#message-feed.is-open) #playback-panel {
	display: none !important;
}
/* Wiedergabe open: hide Nachrichten toggle/panel similarly */
body:has(#playback-panel.is-open) #message-feed-toggle,
body:has(#playback-panel.is-open) #message-feed {
	display: none !important;
}
@media (max-width: 520px) {
	#playback-toggle {
		min-width: 0;
		max-width: calc(50vw - 16px);
		width: calc(50vw - 16px);
		height: 38px;
		min-height: 38px;
		padding: 0 10px;
		font-size: 13px;
		line-height: 1;
		box-sizing: border-box;
		bottom: 62px; /* 20px + 38px button + 4px gap */
	}
	#playback-panel {
		left: 12px;
		right: 12px;
		width: auto;
		bottom: 108px;
		max-height: min(42vh, 360px);
		overflow: auto;
	}
}
