.status-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: saturate(180%) blur(20px);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	user-select: none;
	max-width: 100vw;
	box-sizing: border-box;
}

.status-bar .chip {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	min-width: 0;
}

.status-bar .chip .icon {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	flex: 0 0 auto;
}

.status-bar .chip .text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.status-bar .chip .title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.status-bar .chip .subtitle {
	font-size: 0.75rem;
	opacity: 0.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.status-bar .chip .badge {
	margin-left: auto;
	font-size: 0.7rem;
	padding: 0.15rem 0.45rem;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-bar .is-open .icon {
	background: #10b981;
}

.status-bar .is-closed .icon {
	background: #ef4444;
}

.status-bar .is-closing-soon .icon {
	background: #f59e0b;
}

.status-bar .is-open .badge,
.status-bar .is-closing-soon .badge {
	background: rgba(16, 185, 129, 0.08);
}

.status-bar .is-closed .badge {
	display: none;
}

@media (min-width: 481px) {
	.status-bar {
		flex-direction: row;
		align-items: stretch;
		flex-wrap: nowrap;
	}

	.status-bar .chip {
		width: auto;
		flex: 1 1 0;
	}

	.status-bar .chip:only-child {
		flex: 0 1 520px;
		width: 100%;
		max-width: 520px;
		margin-inline: auto;
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {
	.status-bar {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.35rem !important;
		flex-wrap: nowrap !important;
		padding: 0.35rem max(0.5rem, env(safe-area-inset-right)) 0.5rem max(0.5rem, env(safe-area-inset-left)) !important;
	}

	.status-bar .chip {
		display: flex !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
		max-height: none !important;
		opacity: 1 !important;
		padding-top: 0.6rem !important;
		padding-bottom: 0.6rem !important;
		border-width: 1px !important;
		margin: 0 !important;
	}

	.status-bar[data-show-all="true"] .chip {
		display: flex !important;
	}

	.status-bar:not([data-show-all]):not([data-expanded="true"]) .chip:not(:first-child) {
		display: none !important;
	}

	.status-bar[data-expanded="true"] .chip:not(:first-child) {
		display: flex !important;
	}
}

@media (prefers-color-scheme: dark) and (max-width: 480px) {
	.status-bar {
		background: rgba(18, 18, 18, 0.75);
	}

	.status-bar .chip {
		color: #f3f4f6;
		border-color: rgba(255, 255, 255, 0.12);
	}

	.status-bar .chip .subtitle {
		opacity: 0.9;
	}

	.status-bar .chip .badge {
		border-color: rgba(255, 255, 255, 0.2);
	}
}
