#streamDashboardModal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.8);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.streamDashboardDetails {
	background: rgba(var(--header-bg-rgb), 0.75);
	color: var(--text-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	max-width: min(96vw, 100rem);
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	border: 1px solid var(--input-border);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.streamDashboardDetails h2 {
	margin-top: 0;
	padding-right: 3rem;
}

.streamDashboardDetails .modal-close-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.3rem 0.7rem;
	min-width: unset;
}

.streamDashboardDetails #modalContent {
	overflow-y: auto;
	flex: 1;
}

/* Modal event table */
.modal-events-table {
	display: flex;
	flex-direction: column;
}

.modal-events-header,
.modal-event-row {
	display: grid;
	grid-template-columns: 1fr 1fr 2fr 1fr;
	padding: 8px 12px;
}

.modal-events-header {
	background: var(--table-th);
	color: var(--table-th-text);
	border-radius: 20px 20px 0 0;
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
}

.modal-events-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}

.modal-events-body .modal-event-row {
	transition: background 0.15s ease;
}

.modal-events-body .modal-event-row:nth-child(odd) {
	background: var(--table-bg-odd);
}

.modal-events-body .modal-event-row:nth-child(even) {
	background: var(--table-bg-even);
}

.modal-events-body .modal-event-row:last-child {
	border-radius: 0 0 20px 20px;
}

.modal-events-body .modal-event-row:hover {
	background: var(--table-hover);
}

.modal-events-body .modal-event-row.is-gift {
	cursor: pointer;
}

.modal-event-row .event-user {
	font-weight: 500;
}

.modal-event-row .event-detail,
.modal-event-row .event-time {
	color: var(--table-text);
}

.modal-event-row .event-time {
	white-space: nowrap;
}

/* Kategorie/Titel-Wechsel in der Timeline */
.modal-event-row.is-category-change {
    border-left: 3px solid var(--accent-color, #7c6ff7);
    background: color-mix(in srgb, var(--accent-color, #7c6ff7) 8%, transparent) !important;
    margin: 6px 0;
    font-size: .9em;
}

.modal-event-row.is-category-change .event-category-badge {
    display: inline-block;
    background: var(--accent-color, #7c6ff7);
    color: #fff;
    border-radius: 5px;
    padding: 2px 10px;
    font-weight: 600;
    font-size: .88em;
    white-space: nowrap;
}

.modal-event-row.is-category-change .event-stream-title {
    font-style: italic;
    opacity: .7;
    font-size: .9em;
}

.choices { width: unset; }