:root {
	--kk-bg: #07070a;
	--kk-panel: #101015;
	--kk-panel-2: #17171e;
	--kk-border: rgba(255, 255, 255, 0.12);
	--kk-text: #f7f3f4;
	--kk-muted: #aaa3a7;
	--kk-red: #d61f3c;
	--kk-red-bright: #ff3657;
	--kk-silver: #d9d6da;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	background:
		radial-gradient(circle at 85% 0%, rgba(214, 31, 60, 0.16), transparent 34%),
		linear-gradient(180deg, #0b0b0f 0%, var(--kk-bg) 100%);
	color: var(--kk-text);
	font-family:
		Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
}

body {
	overflow: hidden;
}

.chat-shell {
	height: 100%;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: transparent;
}

.chat-brand {
	flex: 0 0 auto;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--kk-border);
	background: rgba(7, 7, 10, 0.94);
	text-align: center;
}

.live-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 5px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: var(--kk-silver);
	text-transform: uppercase;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--kk-red-bright);
	box-shadow: 0 0 12px rgba(255, 54, 87, 0.8);
}

.brand-name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(19px, 4vw, 28px);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #fff;
	line-height: 1.1;
}

.brand-subtitle {
	margin-top: 4px;
	color: var(--kk-muted);
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

#root {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.chat.container {
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 14px 14px 12px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(214, 31, 60, 0.55) transparent;
}

.message.row {
	margin: 0 0 10px;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(78px, 108px) minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.message .user,
.message .ten.columns {
	width: auto;
	margin-left: 0;
	float: none;
}

.message .user {
	padding-top: 9px;
	color: var(--kk-red-bright);
	font-size: 12px;
	font-weight: 800;
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.message .ten.columns {
	padding: 9px 11px;
	border: 1px solid var(--kk-border);
	border-radius: 12px 12px 12px 4px;
	background: linear-gradient(180deg, var(--kk-panel-2), var(--kk-panel));
	color: var(--kk-text);
	font-size: 14px;
	line-height: 1.38;
	overflow-wrap: anywhere;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.chat > form.row {
	position: sticky;
	bottom: 0;
	z-index: 3;
	margin: 8px -2px -2px;
	padding: 10px 2px 2px;
	display: flex;
	gap: 8px;
	align-items: stretch;
	background: linear-gradient(180deg, rgba(7, 7, 10, 0), rgba(7, 7, 10, 0.98) 26%);
}

.chat > form.row .my-input-text,
.chat > form.row .send-message {
	float: none;
	margin-left: 0;
}

.my-input-text.ten.columns {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 44px;
	margin-bottom: 0;
	padding: 0 13px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: #111116;
	color: #fff;
	font-size: 14px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.my-input-text.ten.columns:focus {
	border-color: var(--kk-red);
	box-shadow: 0 0 0 3px rgba(214, 31, 60, 0.16);
}

.my-input-text::placeholder {
	color: #777178;
}

.send-message.two.columns {
	flex: 0 0 86px;
	width: 86px;
	height: 44px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: linear-gradient(135deg, var(--kk-red-bright), #a70f2a);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	line-height: 44px;
	text-transform: uppercase;
	box-shadow: 0 8px 20px rgba(214, 31, 60, 0.22);
	cursor: pointer;
	transition:
		transform 0.15s ease,
		filter 0.15s ease;
}

.send-message.two.columns:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.send-message.two.columns:active {
	transform: translateY(0);
}

.message .remove {
	display: none;
}

.chat-note {
	flex: 0 0 auto;
	padding: 8px 12px 9px;
	border-top: 1px solid var(--kk-border);
	background: rgba(7, 7, 10, 0.94);
	color: #7f7880;
	text-align: center;
	font-size: 9px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 520px) {
	.chat-brand {
		padding: 11px 10px 9px;
	}

	.brand-name {
		font-size: 19px;
	}

	.brand-subtitle {
		font-size: 8px;
	}

	.chat.container {
		padding: 10px 9px 8px;
	}

	.message.row {
		grid-template-columns: 1fr;
		gap: 4px;
		margin-bottom: 11px;
	}

	.message .user {
		padding: 0 4px;
		text-align: left;
		font-size: 11px;
	}

	.message .ten.columns {
		padding: 8px 10px;
		border-radius: 10px;
		font-size: 13px;
	}

	.my-input-text.ten.columns {
		height: 42px;
	}

	.send-message.two.columns {
		flex-basis: 72px;
		width: 72px;
		height: 42px;
		line-height: 42px;
		padding: 0 9px;
		font-size: 10px;
	}

	.chat-note {
		padding: 7px 10px 8px;
		font-size: 8px;
	}
}


/* Viewer identity + host badge */
.chat-app {
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

.message-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(214, 31, 60, 0.55) transparent;
}

.empty-chat {
	margin: auto;
	padding: 26px 18px;
	max-width: 320px;
	text-align: center;
	color: #847e84;
	font-size: 12px;
	letter-spacing: 0.03em;
	line-height: 1.6;
}

.empty-chat span {
	display: block;
	margin-bottom: 5px;
	color: #cfcbd0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
}

.identity-strip {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
	padding: 0 2px;
	color: #8e878e;
	font-size: 10px;
	letter-spacing: 0.03em;
}

.identity-strip strong {
	color: #e7e3e6;
	font-weight: 700;
}

.change-name {
	width: auto;
	height: auto;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--kk-red-bright);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.composer-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
	width: 100%;
}

.host-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	padding: 2px 6px;
	border: 1px solid rgba(255, 54, 87, 0.48);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 54, 87, 0.24), rgba(120, 8, 29, 0.38));
	color: #ff98aa;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.11em;
	line-height: 1.25;
	vertical-align: middle;
}

.identity-host {
	margin-left: 5px;
}

.host-message .user {
	color: #fff;
}

.host-message .ten.columns {
	border-color: rgba(255, 54, 87, 0.36);
	background:
		linear-gradient(180deg, rgba(92, 12, 28, 0.36), rgba(22, 14, 18, 0.92));
	box-shadow:
		inset 3px 0 0 rgba(255, 54, 87, 0.72),
		0 8px 22px rgba(0, 0, 0, 0.2);
}

.name-gate {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: grid;
	place-items: center;
	padding: 18px;
	background:
		radial-gradient(circle at 50% 28%, rgba(214, 31, 60, 0.24), transparent 35%),
		rgba(5, 5, 8, 0.96);
	backdrop-filter: blur(10px);
}

.name-card {
	width: min(390px, 100%);
	padding: 24px 22px 21px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 20px;
	background:
		linear-gradient(180deg, rgba(24, 24, 31, 0.98), rgba(10, 10, 14, 0.98));
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
	text-align: center;
}

.name-kicker {
	margin-bottom: 8px;
	color: #ff7a91;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.name-card h2 {
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-weight: 600;
}

.name-card p {
	margin: 8px 0 17px;
	color: #aaa3a7;
	font-size: 12px;
	line-height: 1.55;
}

.name-card input {
	width: 100%;
	height: 45px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: #0c0c11;
	color: #fff;
	font-size: 14px;
	outline: none;
}

.name-card input:focus {
	border-color: var(--kk-red-bright);
	box-shadow: 0 0 0 3px rgba(214, 31, 60, 0.17);
}

.name-error {
	margin: 8px 0 -2px;
	color: #ff8ca0;
	font-size: 11px;
}

.name-join-button {
	width: 100%;
	height: 44px;
	margin: 12px 0 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: linear-gradient(135deg, var(--kk-red-bright), #9b1028);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(214, 31, 60, 0.24);
}

.name-note {
	margin-top: 10px;
	color: #716b72;
	font-size: 9px;
	letter-spacing: 0.02em;
}

.send-message.two.columns:disabled,
.my-input-text.ten.columns:disabled {
	opacity: 0.46;
	cursor: not-allowed;
}

@media (max-width: 520px) {
	.name-card {
		padding: 21px 17px 18px;
		border-radius: 17px;
	}

	.name-card h2 {
		font-size: 22px;
	}

	.identity-strip {
		font-size: 9px;
	}

	.host-badge {
		font-size: 7px;
		padding: 2px 5px;
	}
}


/* Host moderation controls */
.message-body {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.message-body > span {
	flex: 1 1 auto;
	min-width: 0;
}

.delete-message {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: -3px -3px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.045);
	color: #8e878e;
	font-size: 15px;
	line-height: 19px;
	cursor: pointer;
	opacity: 0.65;
	transition: 0.16s ease;
}

.delete-message:hover {
	border-color: rgba(255, 54, 87, 0.48);
	background: rgba(214, 31, 60, 0.14);
	color: #ff8ca0;
	opacity: 1;
}

.clear-chat {
	width: auto;
	height: auto;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: #ff7a91;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.clear-chat:hover {
	color: #fff;
}

@media (max-width: 520px) {
	.delete-message {
		width: 24px;
		height: 24px;
		font-size: 16px;
	}
}


/* Moderator access, kick/ban, and ban management */
.mod-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	padding: 2px 6px;
	border: 1px solid rgba(155, 126, 255, 0.46);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(155, 126, 255, 0.20), rgba(76, 48, 160, 0.34));
	color: #c9b9ff;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.11em;
	line-height: 1.25;
	vertical-align: middle;
}

.mod-message .user {
	color: #c9b9ff;
}

.mod-message .ten.columns {
	border-color: rgba(155, 126, 255, 0.30);
	box-shadow:
		inset 3px 0 0 rgba(155, 126, 255, 0.62),
		0 8px 22px rgba(0, 0, 0, 0.18);
}

.moderation-buttons {
	flex: 0 0 auto;
	display: flex;
	gap: 5px;
	align-items: center;
	margin-left: 4px;
}

.mod-action {
	width: auto;
	height: 24px;
	margin: 0;
	padding: 0 7px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.045);
	color: #9c969d;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 22px;
	text-transform: uppercase;
	cursor: pointer;
	transition: 0.16s ease;
}

.mod-action:hover {
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.delete-action:hover {
	border-color: rgba(255, 173, 79, 0.42);
	color: #ffc279;
}

.ban-action:hover {
	border-color: rgba(255, 54, 87, 0.52);
	background: rgba(214, 31, 60, 0.13);
	color: #ff8ca0;
}

.identity-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bans-button {
	width: auto;
	height: auto;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: #c9b9ff;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
}

.ban-panel {
	flex: 0 0 auto;
	margin: 0 0 8px;
	padding: 10px;
	border: 1px solid rgba(155, 126, 255, 0.25);
	border-radius: 12px;
	background: rgba(15, 13, 23, 0.97);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.ban-panel-title,
.ban-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ban-panel-title {
	margin-bottom: 7px;
	color: #e9e3ff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ban-panel-title button,
.ban-row button {
	width: auto;
	height: auto;
	margin: 0;
	padding: 3px 7px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.05);
	color: #bdb6be;
	font-size: 8px;
	font-weight: 900;
	line-height: 1.4;
	text-transform: uppercase;
	cursor: pointer;
}

.ban-row {
	padding: 7px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	color: #d7d2d8;
	font-size: 11px;
}

.ban-row button {
	border-color: rgba(255, 54, 87, 0.28);
	color: #ff8ca0;
}

.ban-empty {
	padding: 8px 2px 3px;
	color: #7f7880;
	font-size: 10px;
}

.moderation-gate .name-card {
	border-color: rgba(255, 54, 87, 0.28);
}

@media (max-width: 720px) {
	.message-body {
		flex-direction: column;
	}

	.moderation-buttons {
		width: 100%;
		margin: 4px 0 0;
		justify-content: flex-end;
	}

	.mod-action {
		height: 26px;
		line-height: 24px;
		padding: 0 8px;
	}

	.identity-actions {
		gap: 8px;
	}

	.bans-button,
	.clear-chat {
		font-size: 8px;
	}
}


/* Private Kristy host control dashboard */
.host-dashboard {
	background:
		radial-gradient(circle at 85% 0%, rgba(214, 31, 60, 0.12), transparent 30%),
		#07070a;
}

.host-dashboard-header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 18px 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	background: linear-gradient(180deg, rgba(18, 18, 24, 0.99), rgba(8, 8, 11, 0.98));
}

.host-dashboard-kicker {
	margin-bottom: 4px;
	color: #ff6d86;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.host-dashboard-header h1 {
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 600;
}

.host-connection-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	border: 1px solid rgba(56, 214, 116, 0.24);
	border-radius: 999px;
	background: rgba(20, 92, 49, 0.14);
	color: #97e9b4;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.10em;
	white-space: nowrap;
}

.host-connection-dot,
.host-control-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #42d779;
	box-shadow: 0 0 10px rgba(66, 215, 121, 0.66);
}

.host-dashboard .chat.container {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.72fr);
	grid-template-rows: minmax(0, 1fr) auto;
	grid-template-areas:
		"messages controls"
		"composer controls";
	gap: 12px;
	justify-content: initial;
	padding: 12px;
	overflow: hidden;
}

.host-dashboard .message-list {
	grid-area: messages;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 14px;
	background: rgba(13, 13, 18, 0.86);
}

.host-dashboard .chat > form.row {
	grid-area: composer;
	position: static;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 14px;
	background: #0e0e13;
}

.host-dashboard .host-control-panel {
	grid-area: controls;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(214, 31, 60, 0.45) transparent;
}

.host-control-card {
	padding: 13px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(24, 24, 31, 0.96), rgba(12, 12, 17, 0.96));
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.host-control-label {
	margin-bottom: 7px;
	color: #ff7089;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.host-control-card h2 {
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 600;
}

.host-control-card p {
	margin: 4px 0 0;
	color: #aaa3a7;
	font-size: 10px;
}

.host-control-status {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	color: #99dcae;
	font-size: 9px;
	font-weight: 700;
}

.host-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.host-stats-grid div {
	padding: 8px 5px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 10px;
	background: rgba(255,255,255,0.025);
	text-align: center;
}

.host-stats-grid strong {
	display: block;
	margin-bottom: 3px;
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.host-stats-grid span {
	color: #8f898f;
	font-size: 7px;
	line-height: 1.15;
	text-transform: uppercase;
}

.host-dashboard-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 37px;
	margin: 7px 0 0;
	padding: 8px 10px;
	border: 1px solid rgba(255,255,255,0.11);
	border-radius: 9px;
	background: rgba(255,255,255,0.045);
	color: #ded9dd;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.host-dashboard-button:hover {
	border-color: rgba(255,255,255,0.24);
	color: #fff;
}

.host-dashboard-button.primary {
	border-color: rgba(255,54,87,0.32);
	background: linear-gradient(135deg, rgba(214,31,60,0.92), rgba(132,14,37,0.94));
	color: #fff;
}

.host-dashboard-button.danger {
	border-color: rgba(255,54,87,0.23);
	color: #ff8ca0;
}

.host-dashboard .ban-panel {
	display: none;
}

.host-ban-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid rgba(255,255,255,0.07);
	color: #ddd7dc;
	font-size: 10px;
}

.host-ban-row:first-of-type {
	border-top: 0;
}

.host-ban-row button {
	margin: 0;
	padding: 4px 7px;
	border: 1px solid rgba(255,54,87,0.24);
	border-radius: 7px;
	background: rgba(255,54,87,0.06);
	color: #ff91a4;
	font-size: 8px;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.host-control-muted {
	color: #777178 !important;
}

.host-show-flow {
	margin: 2px 0 0;
	padding-left: 18px;
	color: #bbb4b9;
	font-size: 9px;
	line-height: 1.8;
}

.host-show-flow li::marker {
	color: #ff4967;
	font-weight: 900;
}

@media (max-width: 820px) {
	.host-dashboard-header {
		padding: 11px 12px;
	}

	.host-dashboard-header h1 {
		font-size: 18px;
	}

	.host-dashboard .chat.container {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(320px, 1fr) auto auto;
		grid-template-areas:
			"messages"
			"composer"
			"controls";
		overflow-y: auto;
	}

	.host-dashboard .host-control-panel {
		overflow: visible;
	}

	.host-stats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.host-connection-pill {
		padding: 6px 8px;
		font-size: 7px;
	}

	.host-dashboard-kicker {
		font-size: 7px;
	}

	.host-dashboard-header h1 {
		font-size: 16px;
	}

	.host-dashboard .chat.container {
		padding: 8px;
		gap: 8px;
	}
}


/* Live game and poll controls */
.live-poll {
	flex: 0 0 auto;
	margin: 0 0 10px;
	padding: 12px;
	border: 1px solid rgba(255, 54, 87, 0.30);
	border-radius: 14px;
	background:
		radial-gradient(circle at 100% 0%, rgba(214, 31, 60, 0.17), transparent 34%),
		linear-gradient(180deg, rgba(24, 18, 22, 0.98), rgba(11, 11, 15, 0.98));
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.live-poll.is-closed {
	border-color: rgba(255, 255, 255, 0.12);
	background: linear-gradient(180deg, rgba(21, 21, 27, 0.97), rgba(10, 10, 14, 0.97));
}

.live-poll-topline,
.live-poll-footer,
.host-poll-head,
.host-result-row,
.game-duration-row,
.host-poll-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.live-poll-game {
	color: #ff7189;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.live-poll-timer {
	padding: 4px 7px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 999px;
	color: #d8d3d7;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.live-poll h2 {
	margin: 8px 0 11px;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.live-poll-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.poll-option {
	position: relative;
	overflow: hidden;
	min-height: 58px;
	margin: 0;
	padding: 10px 11px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.035);
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.poll-option span,
.poll-option strong {
	position: relative;
	z-index: 2;
	display: block;
}

.poll-option span {
	padding-right: 40px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.25;
}

.poll-option strong {
	position: absolute;
	right: 9px;
	top: 10px;
	font-size: 12px;
}

.poll-option i {
	position: absolute;
	z-index: 1;
	left: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, #ff3657, #b31432);
	transition: width 0.25s ease;
}

.poll-option:hover:not(:disabled),
.poll-option.selected {
	border-color: rgba(255, 54, 87, 0.52);
	background: rgba(214, 31, 60, 0.12);
}

.poll-option:disabled {
	cursor: default;
	opacity: 0.84;
}

.live-poll-footer {
	margin-top: 8px;
	color: #8e878e;
	font-size: 9px;
}

.game-control-card {
	border-color: rgba(255, 54, 87, 0.20);
}

.game-select,
.game-input {
	width: 100%;
	margin: 0 0 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9px;
	background: #0c0c11;
	color: #f4f0f2;
	font-size: 10px;
	outline: none;
}

.game-select {
	height: 37px;
	padding: 0 9px;
}

.game-select.compact {
	width: auto;
	min-width: 92px;
	margin: 0;
}

.game-input {
	height: 37px;
	padding: 0 10px;
}

textarea.game-input {
	height: 74px;
	padding: 9px 10px;
	resize: vertical;
	line-height: 1.35;
}

.game-select:focus,
.game-input:focus {
	border-color: rgba(255, 54, 87, 0.65);
	box-shadow: 0 0 0 3px rgba(214, 31, 60, 0.12);
}

.game-option-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
}

.game-duration-row {
	margin: 1px 0 5px;
	color: #999198;
	font-size: 9px;
	font-weight: 700;
}

.host-poll-results {
	margin-top: 10px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.025);
}

.host-poll-head strong {
	color: #ff7d93;
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.host-poll-head span {
	color: #bdb6bb;
	font-size: 9px;
	font-weight: 900;
}

.host-poll-results p {
	margin: 7px 0 8px;
	color: #e4dfe2;
	font-size: 11px;
	line-height: 1.35;
}

.host-result-row {
	padding: 6px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: #b8b1b6;
	font-size: 9px;
}

.host-result-row strong {
	color: #fff;
	white-space: nowrap;
}

.host-poll-actions {
	margin-top: 5px;
}

.host-poll-actions .host-dashboard-button {
	margin-top: 5px;
}

.host-dashboard-button:disabled {
	opacity: 0.44;
	cursor: not-allowed;
}

@media (max-width: 520px) {
	.live-poll {
		padding: 10px;
		margin-bottom: 8px;
	}

	.live-poll h2 {
		font-size: 16px;
	}

	.live-poll-options,
	.game-option-grid {
		grid-template-columns: 1fr;
	}

	.poll-option {
		min-height: 52px;
	}
}


/* Preset round library */
.preset-library {
	margin: 2px 0 9px;
	padding: 9px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.025);
}

.preset-library-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 7px;
	color: #cfc8cd;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.preset-library-head button {
	width: auto;
	height: auto;
	margin: 0;
	padding: 4px 7px;
	border: 1px solid rgba(255, 54, 87, 0.24);
	border-radius: 7px;
	background: rgba(214, 31, 60, 0.08);
	color: #ff8da1;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.preset-library-head button:hover {
	border-color: rgba(255, 54, 87, 0.52);
	background: rgba(214, 31, 60, 0.15);
	color: #fff;
}

.preset-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.preset-chip {
	width: 100%;
	min-height: 34px;
	margin: 0;
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	color: #d8d2d6;
	font-size: 8px;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease,
		transform 0.15s ease;
}

.preset-chip:hover {
	border-color: rgba(255, 54, 87, 0.36);
	background: rgba(214, 31, 60, 0.10);
	color: #fff;
	transform: translateY(-1px);
}

.preset-library-empty {
	padding: 4px 1px 1px;
	color: #777178;
	font-size: 8px;
	line-height: 1.45;
}

@media (max-width: 520px) {
	.preset-grid {
		grid-template-columns: 1fr;
	}
}


/* One-click show runner */
.show-runner {
	margin: 0 0 10px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 11px;
	background:
		radial-gradient(circle at 100% 0%, rgba(214, 31, 60, 0.14), transparent 38%),
		rgba(255, 255, 255, 0.025);
}

.show-runner-copy {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.show-runner-copy span {
	color: #ff8499;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.10em;
	text-transform: uppercase;
}

.show-runner-copy strong {
	color: #d7d1d5;
	font-size: 9px;
	font-weight: 800;
	text-align: right;
}

.show-runner-voting .show-runner-copy strong {
	color: #98e4b1;
}

.show-runner-results .show-runner-copy strong {
	color: #f0d18c;
}

.show-runner-action {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 9px;
	background: linear-gradient(135deg, #ff3657, #a70f2a);
	color: #fff;
	font-size: 10px;
	font-weight: 950;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(214, 31, 60, 0.20);
	transition:
		transform 0.15s ease,
		filter 0.15s ease;
}

.show-runner-action:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.show-runner-action:active {
	transform: translateY(0);
}

.show-runner-results .show-runner-action {
	background: linear-gradient(135deg, #7c5a18, #4d350a);
}

.show-runner-ready .show-runner-action {
	background: linear-gradient(135deg, #b51635, #771023);
}

@media (max-width: 520px) {
	.show-runner-copy {
		flex-direction: column;
		gap: 3px;
	}

	.show-runner-copy strong {
		text-align: left;
	}

	.show-runner-action {
		min-height: 40px;
		font-size: 9px;
	}
}


/* Remote producer rundown */
.remote-producer-card {
	border-color: rgba(91, 178, 255, 0.22);
	background:
		radial-gradient(circle at 100% 0%, rgba(45, 121, 189, 0.12), transparent 35%),
		linear-gradient(180deg, rgba(22, 24, 32, 0.96), rgba(12, 12, 17, 0.96));
}

.remote-producer-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.remote-producer-head h2 {
	font-size: 18px;
}

.remote-producer-pill {
	flex: 0 0 auto;
	padding: 5px 7px;
	border: 1px solid rgba(84, 202, 132, 0.25);
	border-radius: 999px;
	background: rgba(36, 112, 65, 0.16);
	color: #9aebba;
	font-size: 7px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.remote-producer-pill.is-offline {
	border-color: rgba(255, 151, 76, 0.25);
	background: rgba(148, 76, 22, 0.14);
	color: #f0b179;
}

.obs-scene-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 9px;
}

.obs-scene-grid button,
.obs-stream-actions button {
	min-height: 34px;
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	color: #ddd7dc;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.05em;
	cursor: pointer;
}

.obs-scene-grid button.is-active {
	border-color: rgba(74, 190, 120, 0.48);
	background: rgba(37, 132, 76, 0.16);
	color: #a8ebbf;
}

.obs-scene-grid button:disabled,
.obs-stream-actions button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.obs-stream-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 7px;
}

.obs-stream-actions button:first-child {
	border-color: rgba(67, 191, 115, 0.25);
	color: #9ce8b7;
}

.obs-stream-actions button.danger {
	border-color: rgba(255, 72, 96, 0.28);
	color: #ff8fa1;
}

.obs-remote-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding: 8px 9px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.025);
	font-size: 9px;
}

.obs-remote-status span {
	color: #a7a0a6;
}

.obs-remote-status strong {
	color: #f3c46c;
	font-size: 8px;
	letter-spacing: 0.08em;
}

.rundown-card {
	border-color: rgba(255, 54, 87, 0.24);
}

.rundown-now-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	margin-bottom: 8px;
}

.rundown-now-grid > div {
	min-width: 0;
	padding: 9px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.025);
}

.rundown-now-grid span {
	display: block;
	margin-bottom: 4px;
	color: #8d858c;
	font-size: 7px;
	font-weight: 900;
	letter-spacing: 0.09em;
}

.rundown-now-grid strong {
	display: block;
	overflow: hidden;
	color: #fff;
	font-size: 9px;
	line-height: 1.3;
	text-overflow: ellipsis;
}

.rundown-now-grid > div:first-child {
	border-color: rgba(255, 54, 87, 0.28);
	background: rgba(214, 31, 60, 0.07);
}

.rundown-next-button {
	width: 100%;
	min-height: 44px;
	margin: 0 0 7px;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 9px;
	background: linear-gradient(135deg, #ff3657, #a70f2a);
	color: #fff;
	font-size: 10px;
	font-weight: 950;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(214, 31, 60, 0.18);
}

.rundown-next-button:disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.rundown-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 8px;
}

.rundown-actions button,
.rundown-row-buttons button,
.rundown-add-row button {
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.04);
	color: #cfc8cd;
	font-size: 8px;
	font-weight: 900;
	cursor: pointer;
}

.rundown-actions button {
	min-height: 31px;
	padding: 6px 8px;
}

.rundown-actions button:disabled,
.rundown-row-buttons button:disabled {
	opacity: 0.32;
	cursor: not-allowed;
}

.rundown-empty {
	padding: 10px;
	border: 1px dashed rgba(255, 255, 255, 0.10);
	border-radius: 9px;
	color: #857e84;
	font-size: 9px;
	line-height: 1.4;
	text-align: center;
}

.rundown-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-height: 300px;
	overflow-y: auto;
	padding-right: 2px;
}

.rundown-row {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 7px;
	padding: 7px;
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.022);
}

.rundown-row.is-live {
	border-color: rgba(255, 54, 87, 0.42);
	background: rgba(214, 31, 60, 0.10);
	box-shadow: inset 3px 0 0 rgba(255, 54, 87, 0.75);
}

.rundown-row-index {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.055);
	color: #a49ca2;
	font-size: 8px;
	font-weight: 900;
}

.rundown-row-copy {
	min-width: 0;
}

.rundown-row-copy strong,
.rundown-row-copy span {
	display: block;
}

.rundown-row-copy strong {
	overflow: hidden;
	color: #ded8dc;
	font-size: 9px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rundown-row-copy span {
	margin-top: 2px;
	color: #7f777d;
	font-size: 7px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rundown-row.is-live .rundown-row-copy span {
	color: #ff8397;
}

.rundown-row-buttons {
	display: flex;
	align-items: center;
	gap: 3px;
}

.rundown-row-buttons button {
	min-width: 24px;
	height: 24px;
	padding: 0 5px;
	line-height: 22px;
}

.rundown-row-buttons button.remove {
	color: #ff8498;
}

.rundown-add-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px;
	margin-top: 8px;
}

.rundown-add-row input {
	min-width: 0;
	height: 32px;
	padding: 0 9px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 8px;
	background: #0c0c11;
	color: #f1edf0;
	font-size: 9px;
	outline: none;
}

.rundown-add-row input:focus {
	border-color: rgba(255, 54, 87, 0.54);
}

.rundown-add-row button {
	min-width: 45px;
	height: 32px;
	padding: 0 9px;
}

@media (max-width: 520px) {
	.remote-producer-head {
		flex-direction: column;
	}

	.obs-scene-grid,
	.obs-stream-actions {
		grid-template-columns: 1fr;
	}

	.rundown-now-grid,
	.rundown-actions {
		grid-template-columns: 1fr;
	}

	.rundown-row {
		grid-template-columns: 22px minmax(0, 1fr);
	}

	.rundown-row-buttons {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
}

/* deployment refresh for remote producer + show rundown */
