/* Force dark chat chrome — gamja defaults to light unless OS prefers dark. */
:root {
	color-scheme: dark;
	--main-background: #212529 !important;
	--main-color: #f8f9fa !important;
	--sidebar-background: #131618 !important;
	--expander-background: #424446 !important;
	--expander-background-hover: #2a2d2f !important;
	--expander-border: #6c6c6c !important;
	--button-color: #eff7ef !important;
	--button-background: #282879 !important;
	--button-background-hover: #00007c !important;
	--button-border: #131618 !important;
	--danger-button-color: #eff7ef !important;
	--danger-button-background: #b20000 !important;
	--danger-button-background-hover: red !important;
	--danger-button-border: #131618 !important;
	--buffer-button-background-hover: #131618 !important;
	--green: #53b266 !important;
	--gray: #979797 !important;
	--red: #fb615b !important;
}
html, body {
	background: #212529 !important;
	color: #f8f9fa !important;
}

/* ===== Jippington Industries - retro 90s IRC tweaks ===== */

/* 1) Square corners everywhere */
* { border-radius: 0 !important; }

/* 2) Classic [HH:MM] timestamps, monospaced */
#buffer .timestamp {
	font-family: "Consolas", "Courier New", monospace !important;
	opacity: 0.9;
}
#buffer .timestamp::before { content: "["; }
#buffer .timestamp::after  { content: "] "; }
#buffer .timestamp:hover { text-decoration: none !important; }

/* De-linked internal irc:// items (href stripped to hide the URL preview);
   restore the pointer cursor that the browser drops without an href. */
a[data-href] { cursor: pointer; }

/* ===== Connect / login screen (safe CSS-only split layout) ===== */
@font-face {
	font-family: "Type No 4";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/Type-No-4.ttf") format("truetype");
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/Roboto-Bold.woff2") format("woff2");
}
@font-face {
	font-family: "Lynchpin";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/Lynchpin-Regular.ttf") format("truetype");
}

/* Split page background only while login screen is active — same blue + grain as Jazz Hour */
body.jippy-login-screen #connect {
	position: fixed !important;
	inset: 0 !important;
	display: block !important;
	background-color: #3ea3c7 !important;
	background-image: none !important;
	overflow: hidden;
	z-index: 10000 !important;
}
body.jippy-login-screen #connect::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: url("/img/jazz-hour/paper-grain.webp?v=1");
	background-size: 512px 512px;
	background-position: 0 0;
	background-repeat: repeat;
	mix-blend-mode: soft-light;
	pointer-events: none;
}
@media (max-width: 900px) {
	body.jippy-login-screen #connect::before {
		background-size: 256px 256px;
	}
}
body.jippy-login-screen #connect::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	width: 60%;
	height: 100%;
	background: url("/jippycubes.png?v=2") center center / min(46vw, 560px) auto no-repeat;
	filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
	pointer-events: none;
	opacity: 0.92;
}
body.jippy-login-screen #connect form {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: 40%;
	min-width: 360px;
	max-width: none !important;
	margin: 0 !important;
	padding: 2.4rem 2.2rem 2rem !important;
	box-sizing: border-box;
	background: rgba(245, 238, 220, 0.94) !important;
	border-right: 2px solid rgba(26, 26, 26, 0.12);
	box-shadow: 8px 0 28px rgba(0, 0, 0, 0.12);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #1a1a1a !important;
	align-items: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.jippy-login-screen #connect form > * {
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}
body.jippy-login-screen #connect h2,
body.jippy-login-screen #connect h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	font-family: "Roboto", sans-serif;
	font-weight: 700;
	font-size: 21px;
	letter-spacing: 0.4px;
	color: #1a1d21;
	text-transform: uppercase;
}
body.jippy-login-screen #connect h2::before,
body.jippy-login-screen #connect h3::before {
	content: "";
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	background: url("/jippy-logo-circle.png?v=1") center/contain no-repeat;
	border-radius: 50%;
	overflow: hidden;
}
body.jippy-login-screen #connect > br,
body.jippy-login-screen #connect form > br { display: none !important; }
body.jippy-login-screen #connect details { display: none !important; }
/* hide auto-join row on connect screen */
body.jippy-login-screen #connect label:has(input[name="autojoin"]),
body.jippy-login-screen #connect input[name="autojoin"],
body.jippy-login-screen #connect label:has(input[id*="autojoin" i]),
body.jippy-login-screen #connect input[id*="autojoin" i] { display: none !important; }
body.jippy-login-screen #connect label.jippy-server-pass-row {
	display: block !important;
	margin-bottom: 0.85rem;
}
body.jippy-login-screen #connect .jippy-connect-gap {
	display: block;
	height: 0.85rem;
}
body.jippy-login-screen #connect label {
	display: block;
	margin: 0 0 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: #3a4350;
}
body.jippy-login-screen #connect input[type="username"],
body.jippy-login-screen #connect input[type="text"],
body.jippy-login-screen #connect input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	margin-top: 10px;
	padding: 9px 11px;
	background: #f4f6f8;
	border: 1px solid #dbe0e6;
	border-radius: 8px;
	color: #1a1d21;
	font-family: inherit;
	font-size: 14px;
}
body.jippy-login-screen #connect input:focus {
	outline: none;
	border-color: #00b3ae;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 179, 174, 0.18);
}
body.jippy-login-screen #connect label:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 10px;
	cursor: pointer;
}
body.jippy-login-screen #connect input[type="checkbox"] {
	width: auto;
	margin: 0;
	accent-color: #00b3ae;
}
body.jippy-login-screen #connect button {
	display: block;
	width: 100%;
	max-width: 360px;
	margin-top: 0;
	padding: 10px;
	background: #2ea6fd;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .3px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
body.jippy-login-screen #connect button:hover { background: #1a96ef; }

/* phones: login only — same Jazz Hour blue + grain, readable cream form */
@media (max-width: 1024px) {
	html:has(#connect form input[name="nick"]),
	body:has(#connect form input[name="nick"]) {
		background: #3ea3c7 !important;
	}
	body.jippy-login-screen #connect,
	body:has(#connect form input[name="nick"]:not([disabled])) #connect {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background-color: #3ea3c7 !important;
		background-image: none !important;
	}
	body.jippy-login-screen #connect::before,
	body:has(#connect form input[name="nick"]:not([disabled])) #connect::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		background-image: url("/img/jazz-hour/paper-grain.webp?v=1");
		background-size: 256px 256px;
		background-position: 0 0;
		background-repeat: repeat;
		mix-blend-mode: soft-light;
		pointer-events: none;
		display: block !important;
	}
	body.jippy-login-screen #connect::after,
	body:has(#connect form input[name="nick"]:not([disabled])) #connect::after {
		display: none !important;
		content: none !important;
	}
	body.jippy-login-screen #connect form,
	body:has(#connect form input[name="nick"]:not([disabled])) #connect form {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		bottom: auto !important;
		z-index: 2;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 420px !important;
		margin: 1.25rem auto !important;
		flex: 0 0 auto;
		justify-content: flex-start;
		border-right: 0 !important;
		border-radius: 12px;
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
		padding: max(24px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom));
	}
}

/* Never let a stale #connect node cover chat once the sidebar exists */
body.jippy-connected #connect {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
body.jippy-connected #buffer-list,
body.jippy-connected #buffer-header,
body.jippy-connected #buffer,
body.jippy-connected #composer,
body.jippy-connected #member-list,
body.jippy-connected #member-list-header,
body.jippy-connected .expander {
	visibility: visible !important;
	pointer-events: auto !important;
}
.dialog {
	z-index: 10050 !important;
}

/* Hide IRC chrome / stray widgets behind the login overlay (esp. phone).
   Do not use `#app > :not(#connect)` — Gamja may nest #connect and that
   rule would hide its parent and blank the whole login page. */
body.jippy-login-screen #buffer-list,
body.jippy-login-screen #buffer-header,
body.jippy-login-screen #buffer,
body.jippy-login-screen #composer,
body.jippy-login-screen #member-list,
body.jippy-login-screen #member-list-header,
body.jippy-login-screen .expander,
body.jippy-login-screen #jippy-mobile-menu-btn,
body.jippy-login-screen #jazz-hour-mini,
body.jippy-login-screen #jazz-hour-float-layer,
body.jippy-login-screen #jazz-hour-shell,
body.jippy-login-screen #jazz-hour-stage,
body.jippy-login-screen .jazz-hour-float-agent {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	animation: none !important;
}
body.jippy-login-screen #connect {
	display: block !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

/* 3) Denser layout */
#buffer .logline-list { padding: 4px 8px !important; }
#buffer .logline { line-height: 1.25 !important; margin: 0 !important; padding: 0 !important; }
#member-list li a, #buffer-list li a { padding-top: 1px !important; padding-bottom: 1px !important; }

/* 4) mIRC-style 16-colour nicks */
#buffer .nick-1  { color: #e01010 !important; }
#buffer .nick-2  { color: #1a4fd6 !important; }
#buffer .nick-3  { color: #0a8a0a !important; }
#buffer .nick-4  { color: #e07000 !important; }
#buffer .nick-5  { color: #9a00cc !important; }
#buffer .nick-6  { color: #008a8a !important; }
#buffer .nick-7  { color: #c800a0 !important; }
#buffer .nick-8  { color: #a05000 !important; }
#buffer .nick-9  { color: #c79a00 !important; }
#buffer .nick-10 { color: #0a70c0 !important; }
#buffer .nick-11 { color: #d02090 !important; }
#buffer .nick-12 { color: #6a3fbf !important; }
#buffer .nick-13 { color: #d02020 !important; }
#buffer .nick-14 { color: #4a8a10 !important; }
#buffer .nick-15 { color: #0a9a9a !important; }
#buffer .nick-16 { color: #b04070 !important; }

/* Custom nick colors (!color) — matches RS chat effect palette */
#buffer .nick.jippy-nick-yellow,
#member-list li a.jippy-nick-yellow { color: #ffff00 !important; }
#buffer .nick.jippy-nick-red,
#member-list li a.jippy-nick-red { color: #ff2020 !important; }
#buffer .nick.jippy-nick-green,
#member-list li a.jippy-nick-green { color: #24ff24 !important; }
#buffer .nick.jippy-nick-cyan,
#member-list li a.jippy-nick-cyan { color: #24ffff !important; }
#buffer .nick.jippy-nick-purple,
#member-list li a.jippy-nick-purple { color: #ff44ff !important; }
#buffer .nick.jippy-nick-blue,
#member-list li a.jippy-nick-blue { color: #3d7aee !important; }
#buffer .nick.jippy-nick-pink,
#member-list li a.jippy-nick-pink { color: #ff66cc !important; }
#buffer .nick.jippy-nick-orange,
#member-list li a.jippy-nick-orange { color: #ff9900 !important; }
#buffer .nick.jippy-nick-white,
#member-list li a.jippy-nick-white { color: #ffffff !important; }
#buffer .mention-nick.jippy-nick-yellow { color: #ffff00 !important; }
#buffer .mention-nick.jippy-nick-red { color: #ff2020 !important; }
#buffer .mention-nick.jippy-nick-green { color: #24ff24 !important; }
#buffer .mention-nick.jippy-nick-cyan { color: #24ffff !important; }
#buffer .mention-nick.jippy-nick-purple { color: #ff44ff !important; }
#buffer .mention-nick.jippy-nick-blue { color: #3d7aee !important; }
#buffer .mention-nick.jippy-nick-pink { color: #ff66cc !important; }
#buffer .mention-nick.jippy-nick-orange { color: #ff9900 !important; }
#buffer .mention-nick.jippy-nick-white { color: #ffffff !important; }
#buffer .mention-nick { font-weight: bold; }

/* Member list: #general only */
#member-list,
#member-list-header {
	display: none !important;
}
body.jippy-show-members-panel #member-list,
body.jippy-show-members-panel #member-list-header {
	display: block !important;
}
body.jippy-show-members-panel #member-list {
	display: flex !important;
}

/* Hide join/part/quit everywhere except #general */
body.jippy-hide-presence #buffer .logline[data-jippy-presence="1"] {
	display: none !important;
}

/* Server buffer: MOTD + invites only */
body.jippy-on-server-buffer #buffer .logline:not(.motd),
body.jippy-on-server-buffer #buffer .separator,
body.jippy-on-server-buffer #buffer .date-separator,
body.jippy-on-server-buffer #buffer .unread-separator {
	display: none !important;
}

/* Hide lines briefly while mod-clear is applied */
#buffer .logline-list.jippy-mod-clear-pending {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Topic / channel header bar — match sidebar Jippington Industries row height */
#buffer-header {
	min-height: 52px;
	box-sizing: border-box;
	border-bottom: 5px solid #131618 !important;
}
#buffer-header .description {
	padding: 4px 12px 8px !important;
	min-height: 1.35em !important;
	max-height: none !important;
	line-height: 1.2 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: var(--main-color) !important;
	box-sizing: border-box !important;
}
#buffer-header .title {
	padding: 8px 12px 2px !important;
	line-height: 1.15 !important;
	font-weight: bold;
}
@media (min-width: 721px) {
	#buffer-header .title {
		display: block !important;
	}
}
#buffer-list li.type-server {
	min-height: 52px !important;
}
#buffer-list li.type-server > a {
	min-height: 52px !important;
	padding: 6px 16px 6px 10px !important;
}

/* #radio-test: jippy message font override */
#buffer .logline.jippy-radio-test-msg {
	font-family: "Lynchpin", "Consolas", "Courier New", monospace !important;
	font-size: 1.08em;
	letter-spacing: 0.2px;
}

/* #radio-test: read-only channel page */
body.radio-test-page #composer,
body.radio-test-page #member-list,
body.radio-test-page #member-list-header {
	display: none !important;
}
body.radio-test-page #buffer .logline {
	display: none !important;
}
body.radio-test-page #buffer .separator,
body.radio-test-page #buffer .date-separator,
body.radio-test-page #buffer .unread-separator {
	display: none !important;
}
body.radio-test-page #buffer::before {
	display: none;
}
body.radio-test-page #buffer {
	min-height: 100svh;
	overflow: hidden;
}
body.radio-test-page #buffer-header {
	display: none !important;
}
/* Hide Leave/Part on channels — use sidebar to switch instead */
#buffer-header .actions button[title*="Leave"],
#buffer-header .actions button[title*="Part"],
#buffer-header .actions button[aria-label*="Leave"],
#buffer-header .actions button[aria-label*="Part"],
#buffer-header .actions button.jippy-hidden-action {
	display: none !important;
}
body.jippy-dm-active #buffer-header .actions button.danger {
	display: inline-flex !important;
	align-items: center;
}
#buffer-header .actions {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
	align-items: center !important;
}
#buffer-header .actions button.jippy-header-btn {
	font-family: "Roboto", sans-serif !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	padding: 8px 14px !important;
	margin: 0 !important;
	color: #eceff3 !important;
	background: #2b2f34 !important;
	border: 2px solid !important;
	border-top-color: rgba(255, 255, 255, 0.14) !important;
	border-left-color: rgba(255, 255, 255, 0.14) !important;
	border-right-color: rgba(0, 0, 0, 0.38) !important;
	border-bottom-color: rgba(0, 0, 0, 0.38) !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: background 0.12s ease, transform 0.08s ease;
}
#buffer-header .actions button.jippy-header-btn:hover {
	background: #383d44 !important;
	color: #fff !important;
}
#buffer-header .actions button.jippy-header-btn:active {
	transform: translateY(1px);
	border-top-color: rgba(0, 0, 0, 0.38) !important;
	border-left-color: rgba(0, 0, 0, 0.38) !important;
	border-right-color: rgba(255, 255, 255, 0.14) !important;
	border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}
#buffer-header .actions button.jippy-settings-btn {
	background: #2b99f8 !important;
	border-top-color: rgba(255, 255, 255, 0.35) !important;
	border-left-color: rgba(255, 255, 255, 0.35) !important;
	border-right-color: rgba(0, 0, 0, 0.35) !important;
	border-bottom-color: rgba(0, 0, 0, 0.35) !important;
	color: #fff !important;
}
#buffer-header .actions button.jippy-settings-btn:hover {
	background: #4fa4fa !important;
}
.dialog-header .dialog-close {
	display: none !important;
}
.jippy-settings-row {
	margin: 0.65rem 0 0.85rem;
}
.jippy-settings-toggle {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
	font-family: "Roboto", sans-serif;
	user-select: none;
}
.jippy-settings-toggle input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: #2b99f8;
	cursor: pointer;
}

#buffer.radio-test-active {
	position: relative;
	min-height: 100svh;
}
#buffer.radio-test-active .logline-list {
	padding-top: 0 !important;
	min-height: 100svh;
	position: relative;
	z-index: 1;
	pointer-events: none;
}
#radio-test-stage.radio-test-stage {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.5rem 0.75rem 1rem;
	box-sizing: border-box;
	text-align: center;
	background: transparent;
}
#radio-test-stage .radio-test-frame {
	position: relative;
	flex: 0 1 auto;
	aspect-ratio: 900 / 1200;
	width: min(100%, calc((100svh - 8.5rem) * 900 / 1200), calc((100dvh - 8.5rem) * 900 / 1200), 620px);
	max-height: min(calc(100svh - 8.5rem), calc(100dvh - 8.5rem));
	height: auto;
	line-height: 0;
	pointer-events: auto;
	cursor: pointer;
	overflow: visible;
}
#radio-test-stage .radio-test-visual {
	position: absolute;
	inset: 0;
	z-index: 1;
	filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
	pointer-events: none;
}
#radio-test-stage .radio-test-frame:focus-visible {
	outline: 2px solid rgba(243, 226, 184, 0.45);
	outline-offset: 3px;
}
#radio-test-stage .radio-test-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: transparent;
	position: relative;
	z-index: 1;
}
/* 900x1200 design-space text region */
#radio-test-stage .radio-test-text-map {
	--map-x: 72;
	--map-y: 57;
	--map-w: 756;
	--map-h: 480;
	position: absolute;
	left: calc(var(--map-x) / 900 * 100%);
	top: calc(var(--map-y) / 1200 * 100%);
	width: calc(var(--map-w) / 900 * 100%);
	height: calc(var(--map-h) / 1200 * 100%);
	box-sizing: border-box;
	padding: 2% 3%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 2;
	pointer-events: none;
}
#radio-test-stage .radio-test-body {
	width: 100%;
	align-self: stretch;
	display: block;
	font-family: "Lynchpin", "Consolas", "Courier New", monospace !important;
	font-size: 2.75rem;
	line-height: 1.12;
	letter-spacing: 0.08px;
	text-align: center;
	color: #3f3f38 !important;
	text-shadow: 0 0 0.35px rgba(63, 63, 56, 0.35), 0 1px 0 rgba(255, 255, 255, 0.25);
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
	box-sizing: border-box;
	pointer-events: none;
}
#radio-test-stage .radio-test-body.radio-test-pop-in {
	animation: radio-test-text-in 0.14s ease-out;
}
@keyframes radio-test-text-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
#radio-test-stage .radio-test-tuning-wave {
	display: inline-block;
}
#radio-test-stage .radio-test-tune-ch {
	display: inline-block;
	animation: radio-test-tune-wave 1.1s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.07s);
}
@keyframes radio-test-tune-wave {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}
#radio-test-stage .radio-test-jitter {
	transform: translate(var(--rt-jx, 0), var(--rt-jy, 0));
}
#radio-test-stage .radio-test-char {
	display: inline;
}
#radio-test-stage .radio-test-word {
	display: inline-block;
	vertical-align: baseline;
	transform-origin: center center;
}
#radio-test-stage .radio-test-bold {
	font-weight: 500;
	text-shadow: 0.25px 0 0 currentColor, -0.25px 0 0 currentColor;
}
#radio-test-stage .radio-test-ellipsis {
	display: inline-block;
	opacity: 1 !important;
}
#radio-test-stage [class*="radio-test-shake-light-"],
#radio-test-stage [class*="radio-test-shake-heavy-"] {
	display: inline-block;
	will-change: transform;
	backface-visibility: hidden;
}
#radio-test-stage .radio-test-shake-light-0 { animation: radio-test-shake-l0 1.15s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-1 { animation: radio-test-shake-l1 1.08s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-2 { animation: radio-test-shake-l2 1.22s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-3 { animation: radio-test-shake-l3 1.12s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-4 { animation: radio-test-shake-l4 1.18s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-5 { animation: radio-test-shake-l5 1.05s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-6 { animation: radio-test-shake-l6 1.2s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-light-7 { animation: radio-test-shake-l7 1.1s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-0 { animation: radio-test-shake-h0 0.72s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-1 { animation: radio-test-shake-h1 0.68s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-2 { animation: radio-test-shake-h2 0.76s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-3 { animation: radio-test-shake-h3 0.7s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-4 { animation: radio-test-shake-h4 0.74s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-5 { animation: radio-test-shake-h5 0.66s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-6 { animation: radio-test-shake-h6 0.78s ease-in-out infinite; }
#radio-test-stage .radio-test-shake-heavy-7 { animation: radio-test-shake-h7 0.71s ease-in-out infinite; }
@keyframes radio-test-shake-l0 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(0.4px, -0.3px) rotate(-0.2deg); }
}
@keyframes radio-test-shake-l1 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	40% { transform: translate(-0.35px, 0.25px) rotate(0.18deg); }
}
@keyframes radio-test-shake-l2 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	60% { transform: translate(0.3px, 0.28px) rotate(-0.15deg); }
}
@keyframes radio-test-shake-l3 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	35% { transform: translate(-0.28px, -0.22px) rotate(0.14deg); }
}
@keyframes radio-test-shake-l4 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	55% { transform: translate(0.32px, -0.18px) rotate(-0.16deg); }
}
@keyframes radio-test-shake-l5 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	45% { transform: translate(-0.3px, 0.2px) rotate(0.12deg); }
}
@keyframes radio-test-shake-l6 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	65% { transform: translate(0.25px, 0.24px) rotate(-0.13deg); }
}
@keyframes radio-test-shake-l7 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	30% { transform: translate(-0.22px, -0.26px) rotate(0.17deg); }
}
@keyframes radio-test-shake-h0 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	25% { transform: translate(1.3px, 0.6px) rotate(0.8deg); }
	50% { transform: translate(-1px, -0.5px) rotate(-0.7deg); }
	75% { transform: translate(0.7px, -0.8px) rotate(0.5deg); }
}
@keyframes radio-test-shake-h1 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	20% { transform: translate(-1.2px, 0.7px) rotate(-0.75deg); }
	55% { transform: translate(1px, -0.6px) rotate(0.65deg); }
	80% { transform: translate(-0.8px, -0.7px) rotate(-0.55deg); }
}
@keyframes radio-test-shake-h2 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	30% { transform: translate(1.1px, -0.55px) rotate(0.7deg); }
	60% { transform: translate(-1.3px, 0.5px) rotate(-0.8deg); }
}
@keyframes radio-test-shake-h3 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	22% { transform: translate(-0.9px, -0.75px) rotate(-0.6deg); }
	48% { transform: translate(1.2px, 0.55px) rotate(0.75deg); }
	74% { transform: translate(-0.7px, 0.65px) rotate(-0.5deg); }
}
@keyframes radio-test-shake-h4 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	28% { transform: translate(0.95px, 0.7px) rotate(0.62deg); }
	52% { transform: translate(-1.1px, -0.45px) rotate(-0.72deg); }
	78% { transform: translate(0.65px, -0.85px) rotate(0.48deg); }
}
@keyframes radio-test-shake-h5 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	24% { transform: translate(-1.15px, 0.5px) rotate(-0.68deg); }
	58% { transform: translate(0.85px, -0.7px) rotate(0.58deg); }
}
@keyframes radio-test-shake-h6 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	32% { transform: translate(1.25px, -0.6px) rotate(0.82deg); }
	64% { transform: translate(-0.95px, 0.65px) rotate(-0.62deg); }
}
@keyframes radio-test-shake-h7 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	18% { transform: translate(-0.85px, -0.65px) rotate(-0.58deg); }
	44% { transform: translate(1.15px, 0.5px) rotate(0.72deg); }
	70% { transform: translate(-0.75px, 0.75px) rotate(-0.48deg); }
}
@media (max-width: 720px) {
	body.radio-test-page #buffer,
	#buffer.radio-test-active,
	#buffer.radio-test-active .logline-list {
		min-height: 100svh;
	}
	#radio-test-stage.radio-test-stage {
		padding: 0.35rem 0.5rem 0.5rem;
	}
	#radio-test-stage .radio-test-frame {
		width: min(100%, calc((100svh - 2rem) * 900 / 1200));
		max-height: calc(100svh - 2rem);
	}
}
@media (min-width: 900px) {
	#radio-test-stage .radio-test-frame {
		width: min(100%, calc((100svh - 4rem) * 900 / 1200), 600px);
		max-height: calc(100svh - 4rem);
	}
}
body.jazz-hour-mini-on #buffer.radio-test-active,
body.jazz-hour-mini-on #buffer.radio-test-active .logline-list {
	min-height: calc(100svh - 3.25rem - var(--jazz-mini-h));
}
body.jazz-hour-mini-on #radio-test-stage.radio-test-stage {
	padding-bottom: calc(0.35rem + var(--jazz-mini-h));
}
body.jazz-hour-mini-on #radio-test-stage .radio-test-frame {
	width: min(100%, calc((100svh - 8.5rem - var(--jazz-mini-h)) * 900 / 1200), calc((100dvh - 8.5rem - var(--jazz-mini-h)) * 900 / 1200), 560px);
	max-height: min(calc(100svh - 8.5rem - var(--jazz-mini-h)), calc(100dvh - 8.5rem - var(--jazz-mini-h)));
}
@media (max-width: 720px) {
	body.jazz-hour-mini-on #radio-test-stage .radio-test-frame {
		width: min(100%, calc((100svh - 6rem - var(--jazz-mini-h)) * 900 / 1200));
		max-height: calc(100svh - 6rem - var(--jazz-mini-h));
	}
}
#buffer .logline.radio-test-feed-hidden {
	display: none !important;
}

/* #jazz-hour: listen-only live stream page */
@property --jh-cream {
	syntax: "<color>";
	inherits: true;
	initial-value: #f5eedc;
}
@property --jh-blue {
	syntax: "<color>";
	inherits: true;
	initial-value: #3ea3c7;
}
@property --jh-ink {
	syntax: "<color>";
	inherits: true;
	initial-value: #1a1a1a;
}
body.jazz-hour-page {
	/* Card cream matches logo paper (#f5eedc); page blue unchanged. */
	--jh-cream: #f5eedc;
	--jh-blue: #3ea3c7;
	--jh-blue-deep: #2c86a8;
	--jh-ink: #1a1a1a;
	--jh-muted: rgba(26, 26, 26, 0.55);
	--jh-chip: rgba(255, 255, 255, 0.55);
	--jh-chip-border: rgba(26, 26, 26, 0.12);
	--jh-accent: #29a5ff;
	--jh-wave: #4da6ff;
	--jh-wave-glow: rgba(77, 166, 255, 0.65);
	--jh-paper-grain: url("/img/jazz-hour/paper-grain.webp?v=1");
	--jh-paper-grain-size: 512px;
	--jh-paper-blend: soft-light;
	--jh-day-grain: url("/img/jazz-hour/paper-grain.webp?v=1");
	--jh-night-grain: url("/img/jazz-hour/night-grain.webp?v=1");
	--jh-mode-ease: 0.85s ease;
	transition:
		--jh-cream var(--jh-mode-ease, 0.85s ease),
		--jh-blue var(--jh-mode-ease, 0.85s ease),
		--jh-ink var(--jh-mode-ease, 0.85s ease);
}
/* Instant night palette — kills the day-blue flash on #jazz-hour entry. */
body.jazz-hour-page.jazz-hour-night-snap {
	transition: none !important;
	--jh-cream: #241f1c !important;
	--jh-blue: #131618 !important;
	--jh-blue-deep: #0c0e10 !important;
	--jh-ink: #f5ebd8 !important;
	--jh-muted: rgba(245, 235, 216, 0.62) !important;
	--jh-chip: rgba(18, 14, 12, 0.55) !important;
	--jh-chip-border: rgba(220, 163, 54, 0.28) !important;
	--jh-accent: #dca336 !important;
	--jh-wave: #e09a3a !important;
	--jh-wave-glow: rgba(220, 163, 54, 0.55) !important;
	--jh-paper-grain: url("/img/jazz-hour/night-grain.webp?v=1") !important;
}
body.jazz-hour-page.jazz-hour-nightmode {
	--jh-blue: #131618;
	--jh-blue-deep: #0c0e10;
	--jh-cream: #241f1c;
	--jh-ink: #f5ebd8;
	--jh-muted: rgba(245, 235, 216, 0.62);
	--jh-chip: rgba(18, 14, 12, 0.55);
	--jh-chip-border: rgba(220, 163, 54, 0.28);
	--jh-accent: #dca336;
	--jh-wave: #e09a3a;
	--jh-wave-glow: rgba(220, 163, 54, 0.55);
	--jh-paper-grain: url("/img/jazz-hour/night-grain.webp?v=1");
	--jh-paper-grain-size: 512px;
	--jh-paper-blend: soft-light;
}
@media (min-resolution: 1.5dppx) {
	body.jazz-hour-page {
		--jh-paper-grain-size: 256px;
	}
	body.jazz-hour-page.jazz-hour-nightmode {
		--jh-paper-grain-size: 256px;
	}
}
body.jazz-hour-page #composer,
body.jazz-hour-page #member-list,
body.jazz-hour-page #member-list-header {
	display: none !important;
}
body.jazz-hour-page #buffer .logline,
body.jazz-hour-page #buffer .logline-list {
	display: none !important;
}
#buffer.jazz-hour-active {
	position: relative;
	min-height: 100svh;
	overflow: hidden;
}
#buffer.jazz-hour-active .logline-list {
	display: none !important;
}
body.jazz-hour-page #buffer-header {
	display: none !important;
}
#jazz-hour-shell.jazz-hour-shell {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 12;
	align-items: center;
	justify-content: center;
	padding: 1.2rem 0.8rem 2rem;
	box-sizing: border-box;
	overflow: auto;
	min-height: 0;
	background-color: var(--jh-blue);
	pointer-events: auto;
	transition: background-color var(--jh-mode-ease, 0.85s ease);
}
/* Snap night palette with no blue flash when entering Jazz Hour already in nightmode. */
body.jazz-hour-night-snap #jazz-hour-shell.jazz-hour-shell,
body.jazz-hour-night-snap #jazz-hour-shell.jazz-hour-shell::before,
body.jazz-hour-night-snap #jazz-hour-shell.jazz-hour-shell::after,
body.jazz-hour-night-snap #jazz-hour-shell .jazz-hour-night-stars,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-panel,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-date,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-now-playing,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-play,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-wave-wrap,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-live,
body.jazz-hour-night-snap #jazz-hour-stage .jazz-hour-vol-wrap {
	transition: none !important;
}
body.jazz-hour-night-snap #jazz-hour-shell.jazz-hour-shell {
	background-color: #131618 !important;
}
body.jazz-hour-night-snap #jazz-hour-shell.jazz-hour-shell::before {
	opacity: 0 !important;
}
body.jazz-hour-night-snap #jazz-hour-shell.jazz-hour-shell::after {
	opacity: 1 !important;
}
body.jazz-hour-night-snap #jazz-hour-shell .jazz-hour-night-stars {
	opacity: 1 !important;
}
/* Day grain */
#jazz-hour-shell.jazz-hour-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--jh-day-grain);
	background-size: var(--jh-paper-grain-size) var(--jh-paper-grain-size);
	background-position: 0 0;
	background-repeat: repeat;
	mix-blend-mode: soft-light;
	opacity: 1;
	pointer-events: none;
	transition: opacity var(--jh-mode-ease, 0.85s ease);
}
/* Night grain — crossfades with day */
#jazz-hour-shell.jazz-hour-shell::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--jh-night-grain);
	background-size: var(--jh-paper-grain-size) var(--jh-paper-grain-size);
	background-position: 0 0;
	background-repeat: repeat;
	mix-blend-mode: soft-light;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--jh-mode-ease, 0.85s ease);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-shell.jazz-hour-shell::before {
	opacity: 0;
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-shell.jazz-hour-shell::after {
	opacity: 1;
}
#jazz-hour-shell .jazz-hour-night-stars {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--jh-mode-ease, 0.85s ease);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-shell .jazz-hour-night-stars {
	opacity: 1;
}

/* Nightmode card — warmer dark surface, cream text (glow only on waveform) */
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-panel {
	border-color: rgba(220, 163, 54, 0.42);
	box-shadow:
		8px 8px 0 rgba(0, 0, 0, 0.35),
		inset 0 0 0 1px rgba(220, 163, 54, 0.1);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-date,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-now-playing {
	background: var(--jh-chip);
	border-color: var(--jh-chip-border);
	box-shadow: none;
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-date,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-now-label,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-now-artist,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-now-sep {
	color: var(--jh-muted);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-now-track,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-now-song {
	color: var(--jh-ink);
	text-shadow: none;
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-wave-wrap {
	border-color: rgba(220, 163, 54, 0.38);
	background: var(--jh-cream);
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.06);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-play {
	border-color: rgba(220, 163, 54, 0.7);
	background: #c9892e;
	color: #1a1410;
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-play:hover {
	background: #dca336;
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-play.is-live {
	background: #faf7ef;
	color: #1a1a1a;
	border-color: rgba(26, 26, 26, 0.85);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-play.is-live:hover {
	background: #faf7ef;
	color: #1a1a1a;
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-play.is-loading::after {
	border-color: rgba(26, 20, 16, 0.2);
	border-top-color: #1a1410;
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-live,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-vol-wrap {
	color: var(--jh-muted);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-live-dot {
	background: rgba(245, 235, 216, 0.28);
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-live-dot.is-live,
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-live-dot.is-loading {
	background: var(--jh-accent);
	box-shadow: none;
}
body.jazz-hour-page.jazz-hour-nightmode #jazz-hour-stage .jazz-hour-vol {
	accent-color: var(--jh-accent);
}
#jazz-hour-shell.jazz-hour-shell-on {
	display: flex;
	pointer-events: auto;
}
#jazz-hour-float-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
	opacity: 1;
	filter: blur(0);
	transition: opacity 0.75s ease, filter 0.75s ease;
}
#jazz-hour-float-layer.is-night-fade {
	opacity: 0;
	filter: blur(10px);
}
#jazz-hour-equip-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
	opacity: 1;
	filter: blur(0);
	transition: opacity 0.7s ease, filter 0.7s ease;
}
/* Above the Jazz Hour card so oversized gear can pass in front. */
#jazz-hour-equip-front-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 20;
	opacity: 1;
	filter: blur(0);
	transition: opacity 0.7s ease, filter 0.7s ease;
}
#jazz-hour-equip-layer.is-day-fade,
#jazz-hour-equip-front-layer.is-day-fade {
	opacity: 0;
	filter: blur(8px);
}
.jazz-hour-equip-agent {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	will-change: left, top, opacity, transform, filter;
}
.jazz-hour-equip-agent .jazz-hour-equip-body {
	position: relative;
	display: inline-block;
	transform-origin: center center;
}
.jazz-hour-equip-agent img {
	display: block;
	width: auto;
	height: 92px;
	transform-origin: center center;
	user-select: none;
	-webkit-user-drag: none;
}
.jazz-hour-equip-rocket img {
	height: 200px;
}
@media (max-width: 720px) {
	.jazz-hour-equip-agent img {
		height: 72px;
	}
}
@media (prefers-reduced-motion: reduce) {
	#jazz-hour-equip-layer,
	#jazz-hour-equip-front-layer {
		display: none !important;
	}
}
.jazz-hour-float-agent {
	position: absolute;
	bottom: 0;
	left: 50%;
	pointer-events: none;
	will-change: left, bottom, opacity, transform;
}
.jazz-hour-float-agent.is-pop-in .jazz-hour-float-body,
.jazz-hour-equip-agent.is-pop-in .jazz-hour-equip-body {
	transform-origin: center center;
}
.jazz-hour-float-agent .jazz-hour-float-body {
	position: relative;
	display: inline-block;
	transform-origin: center bottom;
}
.jazz-hour-float-agent img {
	display: block;
	width: auto;
	height: 96px;
	transform-origin: center bottom;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.24));
}
.jazz-hour-float-agent img.is-flipped {
	transform: scaleX(-1);
}
.jazz-hour-float-special {
	z-index: 4;
}
.jazz-hour-float-special .jazz-hour-float-body img {
	image-rendering: auto;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}
.jazz-hour-float-falling .jazz-hour-float-body img {
	height: 128px;
}
.jazz-hour-float-plane .jazz-hour-float-body img {
	height: 88px;
}
.jazz-hour-float-parachute .jazz-hour-float-body img {
	height: 160px;
}
.jazz-hour-float-tag {
	display: none !important;
}
@media (max-width: 768px) {
	#jazz-hour-float-layer {
		display: none !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	#jazz-hour-float-layer {
		display: none !important;
	}
}
#jazz-hour-stage .jazz-hour-panel {
	pointer-events: auto;
}
#jazz-hour-stage.jazz-hour-stage {
	width: 100%;
	/* Cap by viewport height so short laptop screens don't get a wall of logo. */
	max-width: min(440px, 100%, calc((100svh - 4.5rem) * 0.54), calc((100dvh - 4.5rem) * 0.54));
	margin: 0 auto;
	position: relative;
	z-index: 12;
	flex: 0 0 auto;
	transform-origin: center center;
}
#jazz-hour-stage .jazz-hour-bg-art {
	display: none !important;
}
#jazz-hour-stage .jazz-hour-panel {
	/* 340px square logo dominates laptop-height windows; clamp to ~42% of viewport. */
	--jh-logo-size: min(340px, 86%, calc((100svh - 4.5rem) * 0.40), calc((100dvh - 4.5rem) * 0.40));
	--jh-panel-pad-x: 1.25rem;
	--jh-panel-pad-top: 1.25rem;
	--jh-stack-gap: 0.4rem;
	--jh-cut-w: var(--jh-logo-size);
	--jh-cut-h: var(--jh-logo-size);
	--jh-cut-top: var(--jh-panel-pad-top);
	--jh-cut-right: var(--jh-panel-pad-x);
	/* Overlap cream bands slightly so no blue hairline under the logo cut. */
	--jh-cut-overlap: 3px;
	background-color: transparent;
	/* cream everywhere except measured logo square */
	background-image:
		linear-gradient(var(--jh-cream), var(--jh-cream)),
		linear-gradient(var(--jh-cream), var(--jh-cream)),
		linear-gradient(var(--jh-cream), var(--jh-cream)),
		linear-gradient(var(--jh-cream), var(--jh-cream));
	background-repeat: no-repeat;
	background-origin: padding-box;
	background-clip: padding-box;
	background-size:
		100% calc(var(--jh-cut-top) + var(--jh-cut-overlap)),
		100% calc(100% - var(--jh-cut-top) - var(--jh-cut-h) + (var(--jh-cut-overlap) * 2)),
		calc(100% - var(--jh-cut-right) - var(--jh-cut-w) + 1px) calc(var(--jh-cut-h) + var(--jh-cut-overlap)),
		var(--jh-cut-right) calc(var(--jh-cut-h) + var(--jh-cut-overlap));
	background-position:
		left top,
		left calc(var(--jh-cut-top) + var(--jh-cut-h) - var(--jh-cut-overlap)),
		left var(--jh-cut-top),
		right var(--jh-cut-top);
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 4px;
	box-shadow:
		8px 8px 0 rgba(26, 26, 26, 0.12),
		inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	padding: var(--jh-panel-pad-top) var(--jh-panel-pad-x) 1.35rem;
	text-align: center;
	color: var(--jh-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	position: relative;
	z-index: 2;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform-origin: center center;
	transition:
		color var(--jh-mode-ease, 0.85s ease),
		border-color var(--jh-mode-ease, 0.85s ease),
		box-shadow var(--jh-mode-ease, 0.85s ease);
}
#jazz-hour-shell.is-mode-slide-busy {
	overflow: hidden !important;
}
#jazz-hour-stage .jazz-hour-panel.is-mode-slide {
	will-change: transform;
	transition:
		transform 0.28s cubic-bezier(0.4, 0.0, 0.2, 1),
		color var(--jh-mode-ease, 0.85s ease),
		border-color var(--jh-mode-ease, 0.85s ease),
		box-shadow var(--jh-mode-ease, 0.85s ease);
}
#jazz-hour-stage .jazz-hour-panel.is-mode-exit-down {
	transform: translate3d(0, 120vh, 0);
	transition-duration: 0.28s;
	transition-timing-function: cubic-bezier(0.55, 0.0, 0.85, 0.45);
}
#jazz-hour-stage .jazz-hour-panel.is-mode-enter-from-top {
	transform: translate3d(0, -120vh, 0);
}
#jazz-hour-stage .jazz-hour-panel.is-mode-enter-ready {
	transform: translate3d(0, 0, 0);
	transition-duration: 0.38s;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
#jazz-hour-stage .jazz-hour-date {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	box-sizing: border-box;
	min-height: calc(0.55rem * 2 + 0.92rem + 4px);
	margin: 0 0 var(--jh-stack-gap, 0.4rem);
	padding: 0.55rem 0.7rem;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(26, 26, 26, 0.12);
	border-radius: 2px;
	box-shadow: none;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: rgba(26, 26, 26, 0.55);
	text-align: left;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}
#jazz-hour-stage .jazz-hour-panel::before {
	display: none !important;
	content: none !important;
}
#jazz-hour-stage .jazz-hour-mode-toggle {
	display: none !important;
}
#jazz-hour-stage .jazz-hour-date,
#jazz-hour-stage .jazz-hour-now-playing,
#jazz-hour-stage .jazz-hour-play,
#jazz-hour-stage .jazz-hour-wave-wrap,
#jazz-hour-stage .jazz-hour-live,
#jazz-hour-stage .jazz-hour-vol-wrap {
	transition:
		background-color var(--jh-mode-ease, 0.85s ease),
		border-color var(--jh-mode-ease, 0.85s ease),
		color var(--jh-mode-ease, 0.85s ease),
		box-shadow var(--jh-mode-ease, 0.85s ease);
}
#jazz-hour-stage .jazz-hour-hero {
	margin: 0 0 0.85rem;
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: flex-end;
	width: 100%;
}
#jazz-hour-stage .jazz-hour-hero-frame {
	display: block;
	position: relative;
	width: var(--jh-logo-size);
	margin-left: auto;
	box-sizing: border-box;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	line-height: 0;
}
#jazz-hour-stage .jazz-hour-hero-glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: transparent;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.6s ease;
	overflow: hidden;
}
#jazz-hour-stage .jazz-hour-hero-glow.has-fx.is-on {
	opacity: 1;
}
#jazz-hour-stage .jazz-hour-hero-wave {
	display: none !important;
}
#jazz-hour-stage .jazz-hour-hero-fx {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	user-select: none;
	opacity: 0;
	transition: opacity 1.6s ease;
}
#jazz-hour-stage .jazz-hour-hero-fx.is-on.is-visible {
	opacity: 0.88;
}
#jazz-hour-stage .jazz-hour-hero-fx.is-on.is-visible.is-rain {
	opacity: 0.6;
}
/* Station break: slow radio-wave pulse — gradual in/out, not a fast flash. */
@keyframes jazz-stationbreak-pulse {
	0%, 100% { opacity: 0.06; }
	50% { opacity: 0.9; }
}
#jazz-hour-stage .jazz-hour-hero-fx.is-on.is-visible.is-stationbreak {
	animation: jazz-stationbreak-pulse 6.5s ease-in-out infinite;
	transition: none;
}
#jazz-hour-stage .jazz-hour-hero-glow.has-fx.is-stationbreak,
#jazz-hour-stage .jazz-hour-hero-glow.has-fx:not(.is-color) {
	/* No black plate under media FX — it flashed through 0.88 opacity covers. */
	background: transparent !important;
}
/* Alphabet FX is a proper PNG now — no brightness lift. */
#jazz-hour-stage .jazz-hour-hero-img {
	display: block;
	position: relative;
	z-index: 2;
	width: 100%;
	height: auto;
	margin: 0;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	object-fit: contain;
	object-position: right bottom;
	transition: opacity 0.45s ease;
}
#jazz-hour-stage .jazz-hour-hero-img.is-logo-fading,
#jazz-hour-stage .jazz-hour-hero-img.is-logo-hidden {
	opacity: 0;
}
#jazz-hour-stage .jazz-hour-hero-logo-inv {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
	z-index: 3;
	object-fit: contain;
	object-position: right bottom;
	/* Out after black mark is fully in + hold (see custom.js). */
	transition: opacity 0.7s ease-out;
}
#jazz-hour-stage .jazz-hour-hero-logo-inv.is-logo-visible {
	opacity: 1;
	transition: opacity 0.28s ease-in;
}
/* Color wordmark stays above crates vinyl FX. */
#jazz-hour-stage .jazz-hour-hero-img.jazz-hour-hero-logo-main {
	position: relative;
	z-index: 2;
}
#jazz-hour-stage .jazz-hour-mode-shield {
	display: none !important;
}
#jazz-hour-stage .jazz-hour-now-playing {
	margin: 0 0 var(--jh-stack-gap, 0.4rem);
	padding: 0.55rem 0.65rem;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(26, 26, 26, 0.12);
	border-radius: 2px;
	text-align: left;
	position: relative;
	z-index: 1;
}
#jazz-hour-stage .jazz-hour-now-playing.is-station-break .jazz-hour-now-label {
	margin-bottom: 0.2rem;
}
#jazz-hour-stage .jazz-hour-now-playing.is-station-break .jazz-hour-now-track {
	display: block;
}
#jazz-hour-stage .jazz-hour-now-label {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(26, 26, 26, 0.55);
	margin-bottom: 0.2rem;
}
#jazz-hour-stage .jazz-hour-now-track {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--jh-ink);
	word-break: break-word;
}
#jazz-hour-stage .jazz-hour-now-artist {
	font-weight: 700;
	color: rgba(26, 26, 26, 0.55);
}
#jazz-hour-stage .jazz-hour-now-sep {
	font-weight: 700;
	color: rgba(26, 26, 26, 0.4);
}
#jazz-hour-stage .jazz-hour-now-song {
	font-weight: 700;
	color: var(--jh-ink);
}
#jazz-hour-stage .jazz-hour-controls {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	/* Same gap above/below as date → now-playing (flex items don't collapse margins). */
	margin: 0 0 var(--jh-stack-gap, 0.4rem);
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
	width: 100%;
}
#jazz-hour-stage .jazz-hour-wave-wrap {
	width: 100%;
	margin: 0 0 1rem;
	border-radius: 2px;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: var(--jh-cream);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
	position: relative;
	z-index: 1;
}
#jazz-hour-stage .jazz-hour-wave {
	display: block;
	width: 100%;
	height: 72px;
}
#jazz-hour-stage .jazz-hour-play {
	appearance: none;
	border: 2px solid #1a1a1a;
	background: #faf7ef;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.55rem 1.35rem;
	border-radius: 2px;
	cursor: pointer;
	min-width: 8.5rem;
	box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.18);
	position: relative;
}
#jazz-hour-stage .jazz-hour-play:hover {
	background: #fff;
}
#jazz-hour-stage .jazz-hour-play:active:not(:disabled) {
	transform: translate(1px, 1px);
	box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.18);
}
#jazz-hour-stage .jazz-hour-play.is-live {
	background: #faf7ef;
	color: #1a1a1a;
	cursor: default;
	pointer-events: none;
}
#jazz-hour-stage .jazz-hour-play.is-live:hover {
	background: #faf7ef;
	color: #1a1a1a;
}
#jazz-hour-stage .jazz-hour-play.is-loading {
	color: transparent;
	pointer-events: none;
	cursor: wait;
}
#jazz-hour-stage .jazz-hour-play.is-loading::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.05rem;
	height: 1.05rem;
	margin: -0.525rem 0 0 -0.525rem;
	border: 2px solid rgba(26, 26, 26, 0.22);
	border-top-color: var(--jh-ink);
	border-radius: 50%;
	animation: jazz-hour-spin 0.65s linear infinite;
}
#jazz-hour-stage.jazz-hour-loading .jazz-hour-wave-wrap {
	opacity: 0.55;
}
body.jazz-hour-no-wave #jazz-hour-stage .jazz-hour-wave-wrap {
	display: none !important;
}
@media (max-width: 768px) {
	body.jazz-hour-page #jazz-hour-stage .jazz-hour-wave-wrap {
		display: none !important;
	}
}
@keyframes jazz-hour-spin {
	to { transform: rotate(360deg); }
}
#jazz-hour-stage .jazz-hour-live {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: rgba(26, 26, 26, 0.78);
	max-width: min(100%, 11.5rem);
}
#jazz-hour-stage .jazz-hour-status {
	white-space: nowrap;
	line-height: 1.15;
}
#jazz-hour-stage .jazz-hour-live-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: rgba(26, 26, 26, 0.35);
	display: inline-block;
}
#jazz-hour-stage .jazz-hour-live-dot.is-live {
	background: #29a5ff;
	box-shadow: 0 0 0 3px rgba(41, 165, 255, 0.35);
	animation: jazz-hour-pulse 1.4s ease-in-out infinite;
}
#jazz-hour-stage .jazz-hour-live-dot.is-loading {
	background: #29a5ff;
	animation: jazz-hour-pulse 0.85s ease-in-out infinite;
}
@keyframes jazz-hour-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}
#jazz-hour-stage .jazz-hour-vol-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(26, 26, 26, 0.78);
	position: relative;
	z-index: 1;
}
#jazz-hour-stage .jazz-hour-vol {
	width: min(220px, 60vw);
	accent-color: var(--jh-ink);
}
@media (max-height: 900px) {
	#jazz-hour-shell.jazz-hour-shell {
		padding: 0.7rem 0.65rem 0.9rem;
	}
	#jazz-hour-stage .jazz-hour-panel {
		--jh-panel-pad-x: 1.05rem;
		--jh-panel-pad-top: 1rem;
		padding: var(--jh-panel-pad-top) var(--jh-panel-pad-x) 1.05rem;
	}
	#jazz-hour-stage .jazz-hour-hero {
		margin: 0 0 0.55rem;
	}
	#jazz-hour-stage .jazz-hour-date {
		margin-bottom: var(--jh-stack-gap, 0.3rem);
		padding: 0.45rem 0.6rem;
		font-size: 0.62rem;
	}
	#jazz-hour-stage .jazz-hour-now-playing {
		margin-bottom: var(--jh-stack-gap, 0.3rem);
		padding: 0.45rem 0.55rem;
	}
	#jazz-hour-stage .jazz-hour-controls {
		margin: 0 0 var(--jh-stack-gap, 0.3rem);
	}
	#jazz-hour-stage .jazz-hour-play {
		padding: 0.7rem 1.1rem;
		font-size: 0.92rem;
	}
}
@media (max-height: 760px) {
	#jazz-hour-stage.jazz-hour-stage {
		max-width: min(400px, 100%, calc((100svh - 3.5rem) * 0.52), calc((100dvh - 3.5rem) * 0.52));
	}
	#jazz-hour-stage .jazz-hour-panel {
		--jh-logo-size: min(280px, 82%, calc((100svh - 3.5rem) * 0.36), calc((100dvh - 3.5rem) * 0.36));
		--jh-panel-pad-x: 0.9rem;
		--jh-panel-pad-top: 0.85rem;
	}
}
@media (max-width: 720px) {
	#jazz-hour-shell.jazz-hour-shell {
		padding: 0.75rem 0.5rem 1rem;
	}
	#buffer.jazz-hour-active {
		min-height: 100svh;
	}
	#jazz-hour-stage.jazz-hour-stage {
		max-width: min(360px, 94vw, calc((100svh - 3rem) * 0.56), calc((100dvh - 3rem) * 0.56));
	}
	#jazz-hour-stage .jazz-hour-panel {
		--jh-logo-size: min(290px, 90%, calc((100svh - 3rem) * 0.38), calc((100dvh - 3rem) * 0.38));
		--jh-panel-pad-x: 0.85rem;
		--jh-panel-pad-top: 1rem;
		--jh-cut-overlap: 5px;
		padding: var(--jh-panel-pad-top) var(--jh-panel-pad-x) 1.1rem;
	}
	#jazz-hour-stage .jazz-hour-hero {
		margin: 0;
	}
	#jazz-hour-stage .jazz-hour-hero-frame {
		width: var(--jh-logo-size);
	}
	#jazz-hour-stage .jazz-hour-date {
		font-size: 0.62rem;
		padding: 0.45rem 0.55rem;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* jazzhour emote: slightly larger than medium */
#buffer .jippy-emoji.jippy-emoji-jazzhour {
	height: 4.9em;
	vertical-align: middle;
	margin: 1px 2px;
}

/* Sticky mini-player while browsing other channels */
body.jazz-hour-mini-on {
	--jazz-mini-h: 54px;
}
body.jazz-hour-mini-on #composer {
	margin-bottom: calc(var(--jazz-mini-h) + env(safe-area-inset-bottom, 0px));
}
#jazz-hour-mini.jazz-hour-mini {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
	background: rgba(77, 166, 255, 0.96);
	border-top: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 -6px 20px rgba(26, 26, 26, 0.15);
	color: #1a1a1a;
	font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
#jazz-hour-mini .jazz-hour-mini-main {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}
#jazz-hour-mini .jazz-hour-mini-left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 1 auto;
	min-width: 0;
}
#jazz-hour-mini .jazz-hour-mini-right {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex: 1 1 auto;
	min-width: 0;
	margin-left: auto;
	justify-content: flex-end;
}
#jazz-hour-mini[hidden] {
	display: none !important;
}
#jazz-hour-mini .jazz-hour-mini-brand {
	appearance: none;
	border: 2px solid #1a1a1a;
	background: #f5eedc;
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0 0.65rem;
	margin-right: 0.25rem;
	cursor: pointer;
	min-width: 0;
	flex: 0 0 auto;
	min-height: 2.2rem;
	height: 2.2rem;
	border-radius: 2px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
	box-sizing: border-box;
}
#jazz-hour-mini .jazz-hour-mini-logo {
	display: none !important;
}
#jazz-hour-mini .jazz-hour-mini-title {
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 800;
	color: #1a1a1a;
	white-space: nowrap;
	flex: 0 0 auto;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
#jazz-hour-mini .jazz-hour-mini-title.is-live::before {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #29a5ff;
	box-shadow: 0 0 0 2px rgba(41, 165, 255, 0.35);
	margin-right: 0.35rem;
	vertical-align: 0.05em;
	animation: jazz-hour-pulse 1.4s ease-in-out infinite;
}
#jazz-hour-mini .jazz-hour-mini-status {
	font-size: 0.78rem;
	color: rgba(26, 26, 26, 0.72);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
	min-width: 0;
}
#jazz-hour-mini .jazz-hour-mini-track-wrap,
#jazz-hour-mini .jazz-hour-mini-play,
#jazz-hour-mini .jazz-hour-mini-stop {
	border: 2px solid #1a1a1a;
	background: #f5eedc;
	border-radius: 2px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
	box-sizing: border-box;
}
#jazz-hour-mini .jazz-hour-mini-track-wrap {
	flex: 0 0 var(--jazz-mini-track-w, 10.75rem);
	width: var(--jazz-mini-track-w, 10.75rem);
	min-width: var(--jazz-mini-track-w, 10.75rem);
	max-width: var(--jazz-mini-track-w, 10.75rem);
	overflow: hidden;
	min-height: 2.2rem;
	display: flex;
	align-items: center;
	padding: 0 0.55rem;
}
#jazz-hour-mini .jazz-hour-mini-track {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
#jazz-hour-mini .jazz-hour-mini-track-inner {
	display: inline-block;
	white-space: nowrap;
	will-change: transform;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	/* Fallback duration until JS measures and sets shorthand with duration. */
	animation: jazz-mini-track-scroll 10s linear infinite;
}
#jazz-hour-mini .jazz-hour-mini-track-seg {
	display: inline-block;
	white-space: nowrap;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}
@keyframes jazz-mini-track-scroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(calc(var(--jh-mini-scroll-dist, 50%) * -1), 0, 0); }
}
#jazz-hour-mini .jazz-hour-mini-play {
	display: none !important;
}
#jazz-hour-mini .jazz-hour-mini-vol-wrap {
	flex: 1 1 auto;
	min-width: 6.5rem;
	max-width: 11rem;
	height: 2.2rem;
	display: flex;
	align-items: center;
	padding: 0 0.55rem;
	box-sizing: border-box;
	border: 2px solid #1a1a1a;
	background: #f5eedc;
	border-radius: 2px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
	position: relative;
}
#jazz-hour-mini .jazz-hour-mini-vol-wrap::after {
	content: "";
	position: absolute;
	left: 0.6rem;
	right: 0.6rem;
	top: 50%;
	height: 5px;
	transform: translateY(-50%);
	background: #f5eedc;
	border: 1px solid #1a1a1a;
	border-radius: 1px;
	pointer-events: none;
	z-index: 0;
}
#jazz-hour-mini .jazz-hour-mini-vol {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	z-index: 1;
	width: 100%;
	height: 1.25rem;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}
#jazz-hour-mini .jazz-hour-mini-vol::-webkit-slider-runnable-track {
	height: 5px;
	background: transparent;
	border: none;
	border-radius: 0;
}
#jazz-hour-mini .jazz-hour-mini-vol::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 11px;
	height: 11px;
	margin-top: -3px;
	border: 2px solid #1a1a1a;
	border-radius: 50%;
	background: #1a1a1a;
	box-sizing: border-box;
}
#jazz-hour-mini .jazz-hour-mini-vol::-moz-range-track {
	height: 5px;
	background: transparent;
	border: none;
	border-radius: 0;
}
#jazz-hour-mini .jazz-hour-mini-vol::-moz-range-thumb {
	width: 11px;
	height: 11px;
	border: 2px solid #1a1a1a;
	border-radius: 50%;
	background: #1a1a1a;
	box-sizing: border-box;
}
#jazz-hour-mini .jazz-hour-mini-stop {
	appearance: none;
	color: #1a1a1a;
	font-size: 1.1rem;
	line-height: 1;
	width: 2.2rem;
	height: 2.2rem;
	min-height: 2.2rem;
	border-radius: 2px;
	cursor: pointer;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
@media (max-width: 520px) {
	body.jazz-hour-mini-on {
		--jazz-mini-h: 50px;
	}
	#jazz-hour-mini.jazz-hour-mini {
		gap: 0.35rem;
		padding-left: 0.45rem;
		padding-right: 0.45rem;
	}
	#jazz-hour-mini .jazz-hour-mini-left {
		gap: 0.4rem;
	}
	#jazz-hour-mini .jazz-hour-mini-right {
		gap: 0.35rem;
	}
	#jazz-hour-mini .jazz-hour-mini-track-wrap,
	#jazz-hour-mini .jazz-hour-mini-play {
		display: none !important;
	}
	#jazz-hour-mini .jazz-hour-mini-brand {
		padding: 0 0.55rem;
		min-height: 2rem;
		height: 2rem;
	}
	#jazz-hour-mini .jazz-hour-mini-vol-wrap {
		min-width: 5.5rem;
		max-width: 9rem;
		height: 2rem;
		padding: 0 0.45rem;
	}
	#jazz-hour-mini .jazz-hour-mini-title {
		font-size: 0.72rem;
		letter-spacing: 0.05em;
	}
	#jazz-hour-mini .jazz-hour-mini-track,
	#jazz-hour-mini .jazz-hour-mini-track-seg {
		font-size: 0.72rem;
		letter-spacing: 0.05em;
	}
}

/* Softer highlight when someone mentions your nick */
#buffer .logline.highlight {
	background: rgba(255, 214, 120, 0.14);
	border-left: 3px solid rgba(255, 190, 80, 0.75);
	padding-left: 6px;
	margin-left: -6px;
}
#buffer .logline.highlight .nick {
	color: inherit !important;
	background: transparent !important;
	font-weight: 700;
}
#buffer .logline.highlight .text {
	color: #fff4d6 !important;
}

/* 4b) Top-left server label ("Jippington Industries") in blue —
   roughly 2× channel-row height so it reads as the primary entry */
#buffer-list li.type-server {
	min-height: 2.8em !important;
	margin-bottom: 4px !important;
}
#buffer-list li.type-server > a {
	color: #ffffff !important;
	font-family: "Roboto", sans-serif !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	text-decoration: none !important;
	background: #2b99f8 !important;
	padding: 8px 16px 8px 10px !important;
	border: 1px solid #1f7fd4 !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
	box-sizing: border-box !important;
	min-height: 2.6em !important;
	width: 100% !important;
	line-height: 1.15 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	font-size: 0 !important; /* hide stray nested text like nick leakage */
	border-top-color: rgba(255,255,255,0.55) !important;
	border-left-color: rgba(255,255,255,0.55) !important;
	border-right-color: rgba(0,0,0,0.45) !important;
	border-bottom-color: rgba(0,0,0,0.45) !important;
	border-style: solid !important;
	border-width: 2px !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
#buffer-list li.type-server > a:hover,
#buffer-list li.type-server > a:focus,
#buffer-list li.type-server > a:focus-visible {
	text-decoration: none !important;
}
#buffer-list li.type-server > a:active {
	border-top-color: rgba(0,0,0,0.45) !important;
	border-left-color: rgba(0,0,0,0.45) !important;
	border-right-color: rgba(255,255,255,0.55) !important;
	border-bottom-color: rgba(255,255,255,0.55) !important;
}
#buffer-list li.type-server > a::before {
	display: none !important;
}
.jippy-server-logo {
	position: relative;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
}
.jippy-server-logo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border: 0;
	box-sizing: border-box;
	transition: opacity 0.22s ease, transform 0.22s ease;
}
.jippy-server-logo-base {
	opacity: 1;
	transform: scale(1);
}
.jippy-server-logo-hover {
	opacity: 0;
	transform: scale(0.88) rotate(-4deg);
}
#buffer-list li.type-server > a:hover .jippy-server-logo-base,
#buffer-list li.type-server > a:focus-visible .jippy-server-logo-base {
	opacity: 0;
	transform: scale(0.92);
}
#buffer-list li.type-server > a:hover .jippy-server-logo-hover,
#buffer-list li.type-server > a:focus-visible .jippy-server-logo-hover {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}
#buffer-list li.type-server > a::after {
	content: "Jippington Industries";
	font-family: "Type No 4", "Roboto", sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	color: #f5eedc;
	line-height: 1.15;
	white-space: nowrap;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0.02em;
}

#buffer-list li.dm-unread > a::after {
	content: "✉";
	margin-left: 0.5em;
	color: #ffd35a;
	font-size: 0.9em;
	vertical-align: baseline;
	display: inline-block;
	position: relative;
	z-index: 1;
	transform-origin: 50% 80%;
	animation: jippy-dm-wiggle 0.5s ease-in-out 2;
	animation-iteration-count: 1;
}
#buffer-list li.type-nick.unread-highlight:not(.dm-unread) > a::after,
#buffer-list li.type-nick.unread-message:not(.dm-unread) > a::after {
	content: none;
	animation: none;
}
@keyframes jippy-dm-wiggle {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-14deg); }
	75% { transform: rotate(14deg); }
}

/* 4d) Channel picker — chunky button rows, Roboto Bold */
#buffer-list > ul {
	padding: 6px 6px 10px !important;
}
#buffer-list li.type-channel {
	margin: 0 0 5px 0 !important;
	position: relative;
}
#buffer-list li.type-channel.jippy-purged-channel,
#buffer-list li.type-channel[hidden] {
	display: none !important;
}
#buffer-list li.type-nick {
	position: relative;
}
#buffer-list li.type-channel > a {
	font-family: "Roboto", sans-serif !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 1.25 !important;
	display: block !important;
	position: relative !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 10px 12px !important;
	margin: 0 !important;
	color: #eceff3 !important;
	background: #2b2f34 !important;
	border: 2px solid !important;
	border-top-color: rgba(255, 255, 255, 0.14) !important;
	border-left-color: rgba(255, 255, 255, 0.14) !important;
	border-right-color: rgba(0, 0, 0, 0.38) !important;
	border-bottom-color: rgba(0, 0, 0, 0.38) !important;
	text-decoration: none !important;
	text-shadow: none !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	min-height: 2.65rem !important;
	cursor: pointer !important;
	transition: background 0.12s ease, color 0.12s ease;
}
/* Real banner layer (not ::before) so images fetch/paint on join without a click */
#buffer-list li.type-channel > a > .jippy-ch-banner-art,
#buffer-list li.type-nick > a > .jippy-ch-banner-art {
	position: absolute;
	top: 0;
	right: 0;
	width: 68%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	-webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
	mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
	opacity: 0.82;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
#buffer-list li.type-channel > a > .jippy-ch-banner-art > img.jippy-ch-banner-img,
#buffer-list li.type-nick > a > .jippy-ch-banner-art > img.jippy-ch-banner-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	display: block;
	pointer-events: none;
	border: 0;
}
#buffer-list li.type-channel > a:hover > .jippy-ch-banner-art,
#buffer-list li.type-nick > a:hover > .jippy-ch-banner-art {
	opacity: 0.9;
}
#buffer-list li.type-channel.active > a > .jippy-ch-banner-art,
#buffer-list li.type-nick.active > a > .jippy-ch-banner-art {
	opacity: 0.95;
}
/* Prefer the real art span — hide unused ::before when present */
#buffer-list li.type-channel:has(> a > .jippy-ch-banner-art) > a::before,
#buffer-list li.type-nick:has(> a > .jippy-ch-banner-art) > a::before {
	display: none !important;
	content: none !important;
}
/* Channel + DM banner art — fades in from the right edge */
#buffer-list li.type-channel[data-jippy-ch] > a,
#buffer-list li.type-nick[data-jippy-ch] > a,
#buffer-list li.type-channel.jippy-ch-banner > a,
#buffer-list li.type-nick.jippy-ch-banner > a,
#buffer-list li.type-channel[data-jippy-sidebar-label] > a,
#buffer-list li.type-channel > a[aria-label^="#"] {
	position: relative;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
	transition: color 0.12s ease, border-color 0.12s ease;
}
#buffer-list li.type-channel[data-jippy-ch] > a::before,
#buffer-list li.type-nick[data-jippy-ch] > a::before,
#buffer-list li.type-channel.jippy-ch-banner > a::before,
#buffer-list li.type-nick.jippy-ch-banner > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label] > a::before,
#buffer-list li.type-channel > a[aria-label^="#"]::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 68%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	-webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
	mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
	opacity: 0.82;
	pointer-events: none;
	z-index: 0;
}
#buffer-list li.type-nick[data-jippy-ch="dm"] > a::before {
	background-image: url("/img/dm-ch-art.png?v=1");
}
/* Static CSS URLs — banners load after first paint/click is OK.
   Also key off sidebar-label / aria-label so art shows even if data-jippy-ch
   was wiped by a Gamja re-render before retag. */
#buffer-list li.type-channel[data-jippy-ch="#general"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#general"] > a::before,
#buffer-list li.type-channel > a[aria-label="#general"]::before {
	background-image: url("/img/general-ch-art.png?v=1");
}
#buffer-list li.type-channel[data-jippy-ch="#announcements"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#announcements"] > a::before,
#buffer-list li.type-channel > a[aria-label="#announcements"]::before {
	background-image: url("/img/announcements-ch-art.png?v=3");
}
#buffer-list li.type-channel[data-jippy-ch="#music"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#music"] > a::before,
#buffer-list li.type-channel > a[aria-label="#music"]::before {
	background-image: url("/img/music-ch-art.png?v=1");
}
#buffer-list li.type-channel[data-jippy-ch="#jazz-hour"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#jazz-hour"] > a::before,
#buffer-list li.type-channel > a[aria-label="#jazz-hour"]::before {
	background-image: url("/img/jazz-hour-ch-art.png?v=4");
}
#buffer-list li.type-channel[data-jippy-ch="#samples"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#samples"] > a::before,
#buffer-list li.type-channel > a[aria-label="#samples"]::before {
	background-image: url("/img/samples-ch-art.png?v=3");
}
#buffer-list li.type-channel[data-jippy-ch="#the-studio"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#the-studio"] > a::before,
#buffer-list li.type-channel > a[aria-label="#the-studio"]::before {
	background-image: url("/img/the-studio-ch-art.png?v=1");
}
#buffer-list li.type-channel[data-jippy-ch="#visual-art"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#visual-art"] > a::before,
#buffer-list li.type-channel > a[aria-label="#visual-art"]::before {
	background-image: url("/img/visual-art-ch-art.png?v=2");
}
#buffer-list li.type-channel[data-jippy-ch="#news"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#news"] > a::before,
#buffer-list li.type-channel > a[aria-label="#news"]::before {
	background-image: url("/img/news-ch-art.png?v=2");
}
#buffer-list li.type-channel[data-jippy-ch="#other"] > a::before,
#buffer-list li.type-channel[data-jippy-sidebar-label="#other"] > a::before,
#buffer-list li.type-channel > a[aria-label="#other"]::before {
	background-image: url("/img/other-ch-art.png?v=1");
}
#buffer-list li.type-channel[data-jippy-ch] > a:hover::before,
#buffer-list li.type-nick[data-jippy-ch] > a:hover::before,
#buffer-list li.type-channel.jippy-ch-banner > a:hover::before,
#buffer-list li.type-nick.jippy-ch-banner > a:hover::before {
	opacity: 0.9;
}
#buffer-list li.type-channel[data-jippy-ch].active > a::before,
#buffer-list li.type-nick[data-jippy-ch].active > a::before,
#buffer-list li.type-channel.jippy-ch-banner.active > a::before,
#buffer-list li.type-nick.jippy-ch-banner.active > a::before {
	opacity: 0.95;
	mix-blend-mode: normal;
}
#buffer-list li.type-channel[data-jippy-ch] > a:hover,
#buffer-list li.type-channel.jippy-ch-banner > a:hover {
	background: linear-gradient(
		to right,
		#383d44 0%,
		#383d44 36%,
		#353941 54%,
		#303438 72%,
		#2b2f34 100%
	) !important;
	color: #fff !important;
}
#buffer-list li.type-channel > a:hover {
	background: #383d44 !important;
	color: #fff !important;
}
#buffer-list li.type-channel > a:active {
	border-top-color: rgba(0, 0, 0, 0.38) !important;
	border-left-color: rgba(0, 0, 0, 0.38) !important;
	border-right-color: rgba(255, 255, 255, 0.14) !important;
	border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}
#buffer-list li.type-channel.active > a {
	color: #fff !important;
	background: #2b99f8 !important;
	border-top-color: rgba(255, 255, 255, 0.5) !important;
	border-left-color: rgba(255, 255, 255, 0.5) !important;
	border-right-color: rgba(0, 0, 0, 0.35) !important;
	border-bottom-color: rgba(0, 0, 0, 0.35) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
#buffer-list li.type-channel.unread-message:not([data-jippy-ch]) > a {
	color: #ffcc55 !important;
	background: #353025 !important;
}
#buffer-list li.type-channel.unread-highlight:not([data-jippy-ch]) > a {
	color: #d4c2ff !important;
	background: #2f2a3d !important;
}
/* Banner rows: keep art + L→R tint when unread (not only when active) */
#buffer-list li.type-channel[data-jippy-ch].unread-message > a,
#buffer-list li.type-channel.jippy-ch-banner.unread-message > a {
	color: #ffcc55 !important;
	background-color: #353025 !important;
	background-image: linear-gradient(
		to right,
		#353025 0%,
		#353025 34%,
		#3a3528 50%,
		#323028 72%,
		#2b2f34 100%
	) !important;
}
#buffer-list li.type-channel[data-jippy-ch].unread-highlight > a,
#buffer-list li.type-channel.jippy-ch-banner.unread-highlight > a {
	color: #d4c2ff !important;
	background-color: #2f2a3d !important;
	background-image: linear-gradient(
		to right,
		#2f2a3d 0%,
		#2f2a3d 34%,
		#352f45 50%,
		#2d2838 72%,
		#2b2f34 100%
	) !important;
}
#buffer-list li.type-channel[data-jippy-ch].unread-message > a:hover,
#buffer-list li.type-channel.jippy-ch-banner.unread-message > a:hover {
	color: #ffe08a !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
	background-color: #3d382a !important;
	background-image: linear-gradient(
		to right,
		#3d382a 0%,
		#3d382a 34%,
		#443f32 50%,
		#36322a 72%,
		#2b2f34 100%
	) !important;
}
#buffer-list li.type-channel[data-jippy-ch].unread-highlight > a:hover,
#buffer-list li.type-channel.jippy-ch-banner.unread-highlight > a:hover {
	color: #e8d8ff !important;
	background-color: #363040 !important;
	background-image: linear-gradient(
		to right,
		#363040 0%,
		#363040 34%,
		#3b3448 50%,
		#322d3a 72%,
		#2b2f34 100%
	) !important;
}
#buffer-list li.type-channel.unread-message:not([data-jippy-ch]) > a:hover {
	color: #ffe08a !important;
	background: #3d382a !important;
}
#buffer-list li.type-channel.unread-highlight:not([data-jippy-ch]) > a:hover {
	color: #e8d8ff !important;
	background: #363040 !important;
}
#buffer-list li.type-channel.active.unread-message:not([data-jippy-ch]) > a,
#buffer-list li.type-channel.active.unread-highlight:not([data-jippy-ch]) > a {
	color: #fff !important;
	background: #2b99f8 !important;
}
/* Banner rows: highlight fades L→R so art on the right stays visible */
#buffer-list li.type-channel[data-jippy-ch].active > a,
#buffer-list li.type-channel[data-jippy-ch].active > a:hover,
#buffer-list li.type-channel[data-jippy-ch].active > a:focus,
#buffer-list li.type-channel[data-jippy-ch].active > a:focus-visible,
#buffer-list li.type-channel[data-jippy-ch].active.unread-message > a,
#buffer-list li.type-channel[data-jippy-ch].active.unread-highlight > a,
#buffer-list li.type-channel.jippy-ch-banner.active > a,
#buffer-list li.type-channel.jippy-ch-banner.active > a:hover,
#buffer-list li.type-channel.jippy-ch-banner.active > a:focus,
#buffer-list li.type-channel.jippy-ch-banner.active > a:focus-visible,
#buffer-list li.type-channel.jippy-ch-banner.active.unread-message > a,
#buffer-list li.type-channel.jippy-ch-banner.active.unread-highlight > a {
	color: #fff !important;
	background-color: #2b2f34 !important;
	background-image: linear-gradient(
		to right,
		#2b99f8 0%,
		#2b99f8 34%,
		#3a7aab 50%,
		#344148 72%,
		#2b2f34 100%
	) !important;
	border-top-color: rgba(255, 255, 255, 0.5) !important;
	border-left-color: rgba(255, 255, 255, 0.5) !important;
	border-right-color: rgba(0, 0, 0, 0.35) !important;
	border-bottom-color: rgba(0, 0, 0, 0.35) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
/* Private DMs: smaller pill buttons, same font */
#buffer-list li.type-nick {
	margin: 0 0 4px 0 !important;
}
#buffer-list li.type-nick > a {
	font-family: "Roboto", sans-serif !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	display: block !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	color: #8ec8ff !important;
	background: #25282c !important;
	border: 2px solid !important;
	border-top-color: rgba(255, 255, 255, 0.1) !important;
	border-left-color: rgba(255, 255, 255, 0.1) !important;
	border-right-color: rgba(0, 0, 0, 0.35) !important;
	border-bottom-color: rgba(0, 0, 0, 0.35) !important;
	min-height: 2.2rem !important;
	text-overflow: ellipsis !important;
	overflow: hidden !important;
	white-space: nowrap !important;
}
#buffer-list li.type-nick[data-jippy-ch] > a,
#buffer-list li.type-nick.jippy-ch-banner > a {
	position: relative;
	z-index: 0;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
#buffer-list li.type-nick[data-jippy-ch] > a::after,
#buffer-list li.type-nick.jippy-ch-banner > a::after {
	position: relative;
	z-index: 2;
}
#buffer-list li.type-nick.active:not([data-jippy-ch]) > a {
	color: #fff !important;
	background: #2478c4 !important;
}
#buffer-list li.type-nick[data-jippy-ch].active > a,
#buffer-list li.type-nick[data-jippy-ch].active > a:hover,
#buffer-list li.type-nick[data-jippy-ch].active > a:focus,
#buffer-list li.type-nick[data-jippy-ch].active > a:focus-visible,
#buffer-list li.type-nick.jippy-ch-banner.active > a,
#buffer-list li.type-nick.jippy-ch-banner.active > a:hover,
#buffer-list li.type-nick.jippy-ch-banner.active > a:focus,
#buffer-list li.type-nick.jippy-ch-banner.active > a:focus-visible {
	color: #fff !important;
	background-color: #25282c !important;
	background-image: linear-gradient(
		to right,
		#2478c4 0%,
		#2478c4 34%,
		#3a5a72 50%,
		#2e3135 72%,
		#25282c 100%
	) !important;
}
#buffer-list li.type-nick[data-jippy-ch] > a:hover,
#buffer-list li.type-nick.jippy-ch-banner > a:hover {
	background: linear-gradient(
		to right,
		#2e3339 0%,
		#2e3339 36%,
		#2b2f33 54%,
		#292c30 72%,
		#25282c 100%
	) !important;
	color: #fff !important;
}

/* 5) Raised 3D beveled buttons (keeps existing button colours) */
button:not(#jazz-hour-mini button), #composer-buttons button {
	border-style: solid !important;
	border-width: 2px !important;
	border-top-color: rgba(255,255,255,0.55) !important;
	border-left-color: rgba(255,255,255,0.55) !important;
	border-right-color: rgba(0,0,0,0.45) !important;
	border-bottom-color: rgba(0,0,0,0.45) !important;
}
button:not(#jazz-hour-mini button):active, #composer-buttons button:active {
	border-top-color: rgba(0,0,0,0.45) !important;
	border-left-color: rgba(0,0,0,0.45) !important;
	border-right-color: rgba(255,255,255,0.55) !important;
	border-bottom-color: rgba(255,255,255,0.55) !important;
}
#jazz-hour-mini button.jazz-hour-mini-play,
#jazz-hour-mini button.jazz-hour-mini-stop {
	border: 2px solid #1a1a1a !important;
	background: #f5eedc !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
#jazz-hour-mini button.jazz-hour-mini-brand {
	border: 2px solid #1a1a1a !important;
	background: #f5eedc !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
#jazz-hour-mini button.jazz-hour-mini-play:active,
#jazz-hour-mini button.jazz-hour-mini-stop:active {
	border-color: #1a1a1a !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

/* 5b) Hide the inline "enable notifications" nag; it now lives in Settings */
#buffer .logline.nag { display: none !important; }

/* 5d) /me action messages: italic, distinct retro magenta */
#buffer .logline.me-tell { font-style: italic !important; }
#buffer .logline.me-tell .talk { color: #c76fe0 !important; }

/* 5e) Inline styled audio player (#music) - fits within one text line, no gap */
#buffer .jippy-player {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	vertical-align: middle;
	height: 1.2em;
	box-sizing: border-box;
	line-height: 1;
	margin: 0 0 0 5px;
	padding: 0 5px;
	background: #12121c;
	border: 1px solid #33ff66;
	color: #cfead6;
	font-family: "Consolas", "Courier New", monospace;
	font-size: 11px;
	max-width: 230px;
	overflow: hidden;
}
#buffer .jippy-player .jp-play {
	flex: 0 0 auto;
	width: 13px; height: 11px;
	padding: 0;
	box-sizing: border-box;
	background: #1a1a2a;
	color: #33ff66;
	border: 1px solid #33ff66 !important;
	cursor: pointer;
	line-height: 1;
	font-size: 8px;
}
#buffer .jippy-player .jp-bar {
	position: relative;
	flex: 1 1 auto;
	height: 5px;
	min-width: 70px;
	background: #0b0b12;
	border: 1px solid #2a6b3c;
	cursor: pointer;
}
#buffer .jippy-player .jp-fill {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 0%;
	background: #33ff66;
}
#buffer .jippy-player .jp-time {
	flex: 0 0 auto;
	white-space: nowrap;
	opacity: 0.9;
}
#buffer .jippy-player.jippy-player-external {
	display: inline-flex;
	flex-wrap: wrap;
	height: auto;
	max-width: 250px;
	padding-top: 3px;
	padding-bottom: 3px;
	position: relative;
}
#buffer .jippy-player.jippy-player-external .jp-time {
	padding-right: 2px;
}
#buffer .jippy-player.jippy-player-external .jp-time {
	min-width: 78px;
}
#buffer .jippy-player .jp-embedframe {
	display: block;
	width: 230px;
	height: 86px;
	border: 1px solid #2a6b3c;
	background: #0b0b12;
	margin: 4px 0 0 0;
}
#buffer .jippy-player.jp-src-soundcloud .jp-embedframe {
	background: #000;
}
#buffer .jippy-player.jp-src-soundcloud .jp-sc-mask {
	position: absolute;
	right: 6px;
	bottom: 4px;
	width: 42px;
	height: 86px;
	background: #000;
	pointer-events: none;
}

/* 5f) Custom inline emoji (character-sized) */
#buffer .jippy-emoji {
	height: 1.4em;
	width: auto;
	vertical-align: -0.3em;
	margin: 0 1px;
}

/* Big reaction/sticker-sized emote (e.g. bert) */
#buffer .jippy-emoji.jippy-emoji-big {
	height: 6em;
	vertical-align: middle;
	margin: 2px 2px;
	border-radius: 3px;
}

#buffer .jippy-emoji.jippy-emoji-shkreli {
	height: 17em;
	vertical-align: middle;
	margin: 2px 3px;
	border-radius: 3px;
}

/* Medium emotes: bigger than inline, smaller than bert */
#buffer .jippy-emoji.jippy-emoji-medium {
	height: 3.9em;
	vertical-align: middle;
	margin: 1px 2px;
	border-radius: 2px;
}

/* Requested larger beat visual emotes */
#buffer .jippy-emoji.jippy-emoji-huge {
	height: 5.6em;
	vertical-align: middle;
	margin: 2px 3px;
	border-radius: 2px;
}

/* Extra-large radio emotes (e.g. kingfah) */
#buffer .jippy-emoji.jippy-emoji-xl {
	height: 8.5em;
	vertical-align: middle;
	margin: 2px 3px;
	border-radius: 3px;
}

/* owner-uploaded image embed */
#buffer .jippy-inline-image {
	display: block;
	max-width: min(480px, 72vw);
	max-height: 320px;
	width: auto;
	height: auto;
	margin: 6px 0 2px 18px;
	border: 1px solid #2b2b2b;
	background: #111;
	object-fit: contain;
}
/* Never apply to .nick — a shared-closure bug used to zero nick text → "<>". */
#buffer a.jippy-img-link-embedded:not(.nick) {
	font-size: 0;
	line-height: 0;
	color: transparent;
	text-decoration: none;
}
#buffer a.nick.jippy-img-link-embedded {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}
#buffer .jippy-inline-video {
	display: block;
	max-width: min(520px, 78vw);
	max-height: 360px;
	width: auto;
	height: auto;
	margin: 6px 0 2px 18px;
	border: 1px solid #2b2b2b;
	background: #000;
}

/* yourbestfriendjippy.com product preview cards */
#buffer a.jippy-shop-card {
	display: flex;
	align-items: stretch;
	gap: 0.65rem;
	max-width: min(420px, 92vw);
	margin: 6px 0 4px 18px;
	padding: 0.45rem 0.55rem;
	border: 1px solid #2b2b2b;
	background: linear-gradient(180deg, #f7f4ea 0%, #ebe4d4 100%);
	color: #1a1a1a;
	text-decoration: none;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}
#buffer a[data-shopcard="1"]:not(.jippy-shop-card):has(+ a.jippy-shop-card) {
	display: none;
}
#buffer a.jippy-shop-card:hover {
	border-color: #2b99f8;
	box-shadow: 2px 2px 0 rgba(42, 153, 248, 0.35);
}
#buffer .jippy-shop-card-img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	flex: 0 0 72px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
}
#buffer .jippy-shop-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	gap: 0.15rem;
}
#buffer .jippy-shop-card-title {
	font-weight: 800;
	font-size: 0.92rem;
	line-height: 1.2;
}
#buffer .jippy-shop-card-price {
	font-weight: 700;
	font-size: 0.86rem;
	color: #0a5a8a;
}
#buffer .jippy-shop-card-desc {
	font-size: 0.72rem;
	line-height: 1.25;
	color: rgba(26, 26, 26, 0.72);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#buffer .jippy-shop-card-cta {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(26, 26, 26, 0.55);
	margin-top: 0.1rem;
}

/* ===== RuneScape 2007 chat text effects ===== */
/* Colors (no !important so flash/glow animations can override when combined) */
#buffer .rs-c-yellow { color: #ffff00; }
#buffer .rs-c-red    { color: #ff2020; }
#buffer .rs-c-green  { color: #24ff24; }
#buffer .rs-c-cyan   { color: #24ffff; }
#buffer .rs-c-purple { color: #ff44ff; }
#buffer .rs-c-blue   { color: #3d7aee; }
#buffer .rs-c-pink   { color: #ff66cc; }
#buffer .rs-c-orange { color: #ff9900; }
#buffer .rs-c-white  { color: #ffffff; }

/* Flash: abrupt two-tone toggle */
#buffer .rs-flash1 { animation: rs-flash1 .6s steps(1, end) infinite; }
@keyframes rs-flash1 { 0%,50% { color:#ff2020; } 50.01%,100% { color:#ffff00; } }
#buffer .rs-flash2 { animation: rs-flash2 .6s steps(1, end) infinite; }
@keyframes rs-flash2 { 0%,50% { color:#3d7aee; } 50.01%,100% { color:#24ffff; } }
#buffer .rs-flash3 { animation: rs-flash3 .6s steps(1, end) infinite; }
@keyframes rs-flash3 { 0%,50% { color:#1fb01f; } 50.01%,100% { color:#8bff8b; } }

/* Glow: smooth colour fade */
#buffer .rs-glow1 { animation: rs-glow1 3s ease-in-out infinite; }
@keyframes rs-glow1 { 0%,100% { color:#ff2020; } 50% { color:#3d7aee; } }
#buffer .rs-glow2 { animation: rs-glow2 3s ease-in-out infinite; }
@keyframes rs-glow2 { 0%,100% { color:#ff2020; } 50% { color:#24ff24; } }
#buffer .rs-glow3 { animation: rs-glow3 3s linear infinite; }
@keyframes rs-glow3 { 0% { color:#ff2020; } 33% { color:#24ff24; } 66% { color:#3d7aee; } 100% { color:#ff2020; } }

/* Wave: per-character vertical bob */
#buffer .rs-wave .rs-ch, #buffer .rs-wave2 .rs-ch { display: inline-block; }
#buffer .rs-wave .rs-ch { animation: rs-wave 1s ease-in-out infinite; animation-delay: calc(var(--i) * 0.06s); }
@keyframes rs-wave { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
#buffer .rs-wave2 .rs-ch { animation: rs-wave2 .7s ease-in-out infinite; animation-delay: calc(var(--i) * -0.08s); }
@keyframes rs-wave2 { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

#buffer .logline.motd.jippy-motd-ascii {
	font-family: "Consolas", "Courier New", monospace !important;
	white-space: pre;
}

/* Shake: whole message jitter. Smooth (no steps) + own compositor layer so
   the harsh teleport no longer leaves a flickering ghost artifact. */
#buffer .rs-shake {
	display: inline-block;
	animation: rs-shake .35s linear infinite;
	will-change: transform;
	backface-visibility: hidden;
	transform: translateZ(0);
	max-width: 100%;
	vertical-align: bottom;
}
/* Shake on GIFs/emotes: animate the media only so the line doesn't sprout a scrollbar thumb. */
#buffer .rs-shake:has(img),
#buffer .rs-shake:has(.jippy-emoji),
#buffer .rs-shake:has(video),
#buffer .rs-shake:has(.jippy-inline-image) {
	display: inline;
	animation: none !important;
	transform: none !important;
	will-change: auto;
}
#buffer .rs-shake img.jippy-emoji,
#buffer .rs-shake .jippy-emoji {
	display: inline-block;
	max-width: none;
	width: auto;
	vertical-align: middle;
	animation: rs-shake .35s linear infinite;
	will-change: transform;
	backface-visibility: hidden;
	transform: translateZ(0);
}
#buffer .rs-shake img:not(.jippy-emoji),
#buffer .rs-shake .jippy-inline-image,
#buffer .rs-shake video {
	display: inline-block;
	max-width: min(480px, 72vw);
	width: auto;
	height: auto;
	vertical-align: middle;
	animation: rs-shake .35s linear infinite;
	will-change: transform;
	backface-visibility: hidden;
	transform: translateZ(0);
}
@keyframes rs-shake {
	0%   { transform: translate(0.6px, -0.6px); }
	20%  { transform: translate(-0.6px, 0.6px); }
	40%  { transform: translate(0.6px, 0.6px); }
	60%  { transform: translate(-0.6px, -0.6px); }
	80%  { transform: translate(0.6px, 0); }
	100% { transform: translate(0.6px, -0.6px); }
}

/* Jumbo: ~1.8x emote size only (jumbo:emote) — text is unaffected */
#buffer .rs-jumbo .jippy-emoji {
	height: 2.5em;
	vertical-align: middle;
}
#buffer .rs-jumbo .jippy-emoji-medium {
	height: 6.5em;
}
#buffer .rs-jumbo .jippy-emoji-big {
	height: 9.5em;
}
#buffer .rs-jumbo .jippy-emoji-huge {
	height: 8.5em;
}
#buffer .rs-jumbo .jippy-emoji-xl {
	height: 12em;
}
#buffer .rs-jumbo .jippy-emoji-shkreli {
	height: 20em;
}

/* Slide effect removed — render slide: messages as plain text */
#buffer .rs-slide {
	display: inline;
	animation: none !important;
	transform: none !important;
	opacity: 1 !important;
	overflow: visible;
	max-width: none;
	vertical-align: baseline;
}
#buffer .logline.talk {
	overflow: hidden;
}

/* Scroll: marquee across a fixed window */
#buffer .rs-scroll {
	display: inline-block;
	max-width: 240px;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: bottom;
	scrollbar-width: none;
}
#buffer .rs-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
#buffer .rs-scroll .rs-inner { display: inline-block; padding-left: 100%; animation: rs-scroll 7s linear infinite; }
#buffer .rs-scroll .rs-inner .jippy-emoji {
	display: inline-block;
	vertical-align: middle;
	margin: 0 2px;
}
@keyframes rs-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Phone: overlay drawer — independent of Gamja grid/expander */
@media (max-width: 768px) {
	body.jippy-connected {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: auto minmax(0, 1fr) auto !important;
		height: 100svh !important;
		max-height: 100svh !important;
		overflow: hidden !important;
	}
	/* Kill Gamja mobile sidebar grid hacks */
	body.jippy-connected #buffer-list,
	body.jippy-connected #buffer-list.expand {
		grid-row: auto !important;
		grid-column: auto !important;
		grid-column-start: auto !important;
		grid-column-end: auto !important;
	}
	body.jippy-connected.jippy-mobile-drawer-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.55);
		z-index: 2900;
		pointer-events: auto;
	}
	body.jippy-connected #buffer-list {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		bottom: 0 !important;
		width: min(88vw, 300px) !important;
		max-width: min(88vw, 300px) !important;
		height: 100svh !important;
		margin: 0 !important;
		padding: 0 !important;
		z-index: 3000 !important;
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		background: #1a1d22 !important;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
		transform: translateX(-105%) !important;
		transition: transform 0.2s ease-out !important;
		overflow: hidden !important;
		pointer-events: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	body.jippy-connected.jippy-mobile-drawer-open #buffer-list {
		transform: translateX(0) !important;
	}
	body.jippy-connected #buffer-list .expander {
		display: none !important;
	}
	body.jippy-connected #buffer-list > ul {
		flex: 1 1 auto !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		padding: 8px 8px 16px !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		list-style: none !important;
	}
	body.jippy-connected #buffer-list li {
		display: list-item !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	body.jippy-connected #buffer-list li > a {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		position: relative !important;
		overflow: hidden !important;
	}
	body.jippy-connected #buffer-list li.type-channel > a::before,
	body.jippy-connected #buffer-list li.type-nick > a::before,
	body.jippy-connected #buffer-list li.type-channel.jippy-ch-banner > a::before,
	body.jippy-connected #buffer-list li.type-nick.jippy-ch-banner > a::before {
		display: block !important;
		content: "" !important;
	}
	body.jippy-connected #buffer-list li.type-server > a {
		display: flex !important;
	}
	body.jippy-connected #buffer-list li.type-server .jippy-server-logo {
		display: block !important;
		flex: 0 0 32px !important;
		width: 32px !important;
		height: 32px !important;
	}
	body.jippy-connected #buffer-list li.type-channel[data-jippy-sidebar-label]::after,
	body.jippy-connected #buffer-list li.type-nick[data-jippy-sidebar-label]::after {
		left: 12px !important;
		right: 36% !important;
		width: auto !important;
	}
	body.jippy-connected #buffer-header {
		grid-row: 1 !important;
		grid-column: 1 !important;
		min-width: 0 !important;
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto !important;
		grid-template-rows: auto auto !important;
		align-items: start !important;
		column-gap: 8px !important;
		row-gap: 4px !important;
		padding-bottom: 6px !important;
	}
	body.jippy-connected #buffer-header .title {
		grid-column: 1 / 3 !important;
		grid-row: 1 !important;
		padding: 8px 4px 2px 8px !important;
		min-width: 0 !important;
	}
	body.jippy-connected #buffer-header .description {
		grid-column: 2 / 4 !important;
		grid-row: 2 !important;
		padding: 2px 8px 4px 0 !important;
		min-width: 0 !important;
	}
	body.jippy-connected #buffer-header .actions {
		grid-column: 3 !important;
		grid-row: 1 !important;
		align-self: start !important;
	}
	body.jippy-connected #jippy-mobile-menu-btn {
		position: static !important;
		grid-column: 1 !important;
		grid-row: 2 !important;
		align-self: center !important;
		justify-self: start !important;
		z-index: 1 !important;
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		margin: 0 0 0 8px !important;
		padding: 0 !important;
		flex-shrink: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 4px !important;
		cursor: pointer !important;
		font-family: "Roboto", sans-serif !important;
		font-weight: 700 !important;
		color: #fff !important;
		background: #2b99f8 !important;
		border: 2px solid !important;
		border-top-color: rgba(255, 255, 255, 0.35) !important;
		border-left-color: rgba(255, 255, 255, 0.35) !important;
		border-right-color: rgba(0, 0, 0, 0.38) !important;
		border-bottom-color: rgba(0, 0, 0, 0.38) !important;
		border-radius: 0 !important;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
		-webkit-tap-highlight-color: transparent;
	}
	body.jippy-connected #jippy-mobile-menu-btn:active {
		border-top-color: rgba(0, 0, 0, 0.38) !important;
		border-left-color: rgba(0, 0, 0, 0.38) !important;
		border-right-color: rgba(255, 255, 255, 0.35) !important;
		border-bottom-color: rgba(255, 255, 255, 0.35) !important;
		transform: translateY(1px);
	}
	body.jippy-connected #jippy-mobile-menu-btn span {
		display: block !important;
		width: 16px !important;
		height: 0 !important;
		border-top: 2px solid rgba(255, 255, 255, 0.92) !important;
	}
	body.jippy-connected.jippy-mobile-drawer-open #jippy-mobile-menu-btn {
		visibility: hidden !important;
		pointer-events: none !important;
	}
	body.jippy-connected.jazz-hour-page #jippy-mobile-menu-btn,
	body.jippy-connected.radio-test-page #jippy-mobile-menu-btn {
		position: fixed !important;
		top: max(10px, env(safe-area-inset-top)) !important;
		left: max(10px, env(safe-area-inset-left)) !important;
		grid-column: auto !important;
		grid-row: auto !important;
		margin: 0 !important;
		z-index: 2800 !important;
	}
	body.jippy-connected #buffer {
		grid-row: 2 !important;
		grid-column: 1 !important;
		min-width: 0 !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
	}
	body.jippy-connected #buffer .logline {
		max-width: 100% !important;
		overflow-wrap: anywhere !important;
		word-break: break-word !important;
		white-space: pre-wrap !important;
	}
	body.jippy-connected #composer {
		grid-row: 3 !important;
		grid-column: 1 !important;
		min-width: 0 !important;
	}
	body.jippy-connected #member-list,
	body.jippy-connected #member-list-header {
		display: none !important;
	}
	body.jippy-connected.jazz-hour-page #buffer-header {
		display: none !important;
	}
	body.jippy-connected.jazz-hour-page #buffer {
		grid-row: 1 / 3 !important;
		grid-column: 1 !important;
	}
	body.jippy-connected.jazz-hour-page #buffer.jazz-hour-active {
		min-height: 0 !important;
		height: 100% !important;
	}
	body.jippy-connected #jazz-hour-shell.jazz-hour-shell-on {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
	}
	#buffer-list li.type-channel > a {
		font-size: 15px !important;
		padding: 11px 10px !important;
		min-height: 2.75rem !important;
	}
	#buffer-list li.type-channel.jippy-sidebar-labeled > a,
	#buffer-list li.type-nick.jippy-sidebar-labeled > a {
		font-size: 0 !important;
	}
	#buffer-list li.type-channel[data-jippy-sidebar-label]::after,
	#buffer-list li.type-nick[data-jippy-sidebar-label]::after {
		font-size: 15px !important;
	}
}
@media (max-width: 640px) {
	body.jippy-connected #buffer-list,
	body.jippy-connected #buffer-list.expand {
		grid-column: auto !important;
		grid-column-start: auto !important;
		grid-column-end: auto !important;
	}
	body.jippy-connected #buffer-list ul {
		width: 100% !important;
	}
}
@media (min-width: 1025px) {
	#buffer-list {
		width: 340px !important;
		min-width: 340px !important;
	}
	#buffer-list li.type-channel > a {
		font-size: 15.5px !important;
		padding: 11px 14px !important;
		min-height: 2.85rem !important;
	}
	#buffer-list li.type-channel.jippy-sidebar-labeled > a,
	#buffer-list li.type-nick.jippy-sidebar-labeled > a {
		font-size: 0 !important;
	}
	#buffer-list li.type-channel[data-jippy-sidebar-label]::after,
	#buffer-list li.type-nick[data-jippy-sidebar-label]::after {
		font-size: 15.5px !important;
	}
	#buffer-list li.type-nick > a {
		font-size: 14px !important;
		padding: 9px 14px !important;
	}
	#buffer-list li.type-server > a::after {
		font-size: 15px !important;
	}
	.jippy-server-logo {
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
	}
	.jippy-server-logo-mobile .jippy-server-logo-hover {
		opacity: 0 !important;
	}
	.jippy-server-logo-mobile .jippy-server-logo-base {
		opacity: 1 !important;
		transform: none !important;
	}
}
/* Sidebar labels on li::after — never steals a::before banner art */
#buffer-list li.type-channel.jippy-sidebar-labeled > a,
#buffer-list li.type-nick.jippy-sidebar-labeled > a {
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-shadow: none !important;
}
#buffer-list li.type-channel[data-jippy-sidebar-label]::after,
#buffer-list li.type-nick[data-jippy-sidebar-label]::after {
	content: attr(data-jippy-sidebar-label);
	position: absolute;
	left: 12px;
	right: 36%;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	z-index: 2;
	pointer-events: none;
	font-family: "Roboto", sans-serif !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 1.25 !important;
	color: #eceff3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
#buffer-list li.type-channel.active[data-jippy-sidebar-label]::after {
	color: #fff !important;
}
#buffer-list li.type-channel.unread-message[data-jippy-sidebar-label]::after {
	color: #ffcc55 !important;
}
#buffer-list li.type-channel.unread-highlight[data-jippy-sidebar-label]::after {
	color: #d4c2ff !important;
}
#buffer-list li.type-nick.active[data-jippy-sidebar-label]::after {
	color: #fff !important;
}

/* Rainbow effect */
#buffer .rs-rainbow { animation: rs-rainbow 2s linear infinite; }
@keyframes rs-rainbow {
	0%   { color: #ff2020; }
	16%  { color: #ff9900; }
	33%  { color: #ffff00; }
	50%  { color: #24ff24; }
	66%  { color: #3d7aee; }
	83%  { color: #ff66cc; }
	100% { color: #ff2020; }
}

/* 5c) Notifications control injected into the Settings dialog */
#notif-setting { margin: 0 0 18px 0; padding-bottom: 4px; }
#notif-setting #notif-btn {
	padding: 8px 14px !important;
	cursor: pointer;
	font-family: "Roboto", sans-serif !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	background: #2b99f8 !important;
	color: #fff !important;
	border: 2px solid !important;
	border-top-color: rgba(255, 255, 255, 0.35) !important;
	border-left-color: rgba(255, 255, 255, 0.35) !important;
	border-right-color: rgba(0, 0, 0, 0.35) !important;
	border-bottom-color: rgba(0, 0, 0, 0.35) !important;
}
#notif-setting #notif-btn:hover:not(:disabled) {
	background: #4fa4fa !important;
}
#notif-setting #notif-btn:disabled {
	opacity: 0.75;
	cursor: default;
	background: #2b2f34 !important;
	color: #aaa !important;
}

/* 7) jippy nickname: solid blue + wavy */
.jippy-rainbow { font-weight: bold; color: #2b99f8; }
.jippy-rainbow .jw {
	display: inline-block;
	color: #2b99f8;
	animation: jippy-wave 1.1s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.07s);
}
@keyframes jippy-wave {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-3px); }
}

/* ===== Away status: make it clearly visible ===== */
#member-list li a.away {
	color: var(--gray) !important;
	font-style: italic !important;
	opacity: 0.7;
}
#member-list li a.away::after {
	content: " (away)";
	font-size: 0.8em;
	opacity: 0.85;
	font-style: italic;
}
#member-list li a.away[data-awaymsg]::after {
	content: " (" attr(data-awaymsg) ")";
}

/* Jippy-only quick moderation panel */
#jippy-mod-panel {
	margin-top: 6px;
	padding: 6px;
	background: rgba(42,153,248,0.12);
	border: 1px solid rgba(42,153,248,0.5);
	font-size: 12px;
}
#jippy-mod-panel .jmp-row {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
#jippy-mod-panel .jmp-row:last-child { margin-bottom: 0; }
#jippy-mod-panel button {
	padding: 2px 6px !important;
	font-size: 11px !important;
}

/* Pause buffer CSS animations while the tab is hidden — avoids a resume stampede. */
body.jippy-tab-hidden #buffer .rs-flash1,
body.jippy-tab-hidden #buffer .rs-flash2,
body.jippy-tab-hidden #buffer .rs-flash3,
body.jippy-tab-hidden #buffer .rs-glow1,
body.jippy-tab-hidden #buffer .rs-glow2,
body.jippy-tab-hidden #buffer .rs-glow3,
body.jippy-tab-hidden #buffer .rs-wave .rs-ch,
body.jippy-tab-hidden #buffer .rs-wave2 .rs-ch,
body.jippy-tab-hidden #buffer .rs-shake,
body.jippy-tab-hidden #buffer .rs-shake img,
body.jippy-tab-hidden #buffer .rs-shake .jippy-emoji,
body.jippy-tab-hidden #buffer .rs-shake video,
body.jippy-tab-hidden #buffer .rs-scroll,
body.jippy-tab-hidden #buffer .rs-rainbow {
	animation-play-state: paused !important;
}
/* Jazz Hour infinite CSS while backgrounded (rAF loops are cancelled in JS). */
body.jippy-tab-hidden #jazz-hour-stage .jazz-hour-hero-fx.is-stationbreak,
body.jippy-tab-hidden #jazz-hour-stage .jazz-hour-live-dot.is-live,
body.jippy-tab-hidden #jazz-hour-stage .jazz-hour-live-dot.is-loading,
body.jippy-tab-hidden #jazz-hour-stage .jazz-hour-play.is-loading::after,
body.jippy-tab-hidden #jazz-hour-mini .jazz-hour-mini-track-inner {
	animation-play-state: paused !important;
}
/* Hold chat text animations briefly after tab return (not logo FX — that should update ASAP). */
body.jazz-hour-wake-hold #buffer .rs-flash1,
body.jazz-hour-wake-hold #buffer .rs-flash2,
body.jazz-hour-wake-hold #buffer .rs-flash3,
body.jazz-hour-wake-hold #buffer .rs-glow1,
body.jazz-hour-wake-hold #buffer .rs-glow2,
body.jazz-hour-wake-hold #buffer .rs-glow3,
body.jazz-hour-wake-hold #buffer .rs-wave .rs-ch,
body.jazz-hour-wake-hold #buffer .rs-wave2 .rs-ch,
body.jazz-hour-wake-hold #buffer .rs-shake,
body.jazz-hour-wake-hold #buffer .rs-scroll,
body.jazz-hour-wake-hold #buffer .rs-rainbow {
	animation-play-state: paused !important;
}

/* ===== radio.yourbestfriendjippy.com (listen-only, no IRC) ===== */
html[data-radio="1"],
body.radio-standalone {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--jh-blue, #2a5a8c);
}
body.radio-standalone #jazz-hour-shell.jazz-hour-shell {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	z-index: 1;
}
body.radio-standalone #jazz-hour-shell.jazz-hour-shell-on {
	display: flex !important;
}
.radio-fab {
	position: fixed;
	z-index: 40;
	right: max(0.7rem, env(safe-area-inset-right));
	bottom: max(0.7rem, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;
	font-family: "Segoe UI", system-ui, sans-serif;
}
.radio-fab-main {
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(12, 14, 18, 0.38);
	color: rgba(244, 240, 230, 0.82);
	cursor: pointer;
	display: grid;
	place-items: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.radio-fab-main:hover {
	background: rgba(12, 14, 18, 0.55);
	color: #f4f0e6;
	border-color: rgba(255, 255, 255, 0.22);
}
.radio-fab-main:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.4);
	outline-offset: 2px;
}
.radio-fab-dots,
.radio-fab-dots::before,
.radio-fab-dots::after {
	content: "";
	display: block;
	width: 0.18rem;
	height: 0.18rem;
	border-radius: 999px;
	background: currentColor;
}
.radio-fab-dots {
	position: relative;
	box-shadow: 0 -0.3rem 0 currentColor, 0 0.3rem 0 currentColor;
}
.radio-fab.is-open .radio-fab-main {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(12, 14, 18, 0.62);
	color: #f4f0e6;
}
.radio-fab-panel {
	display: flex;
	flex-direction: column;
	min-width: 8.25rem;
	padding: 0.22rem;
	border-radius: 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(10, 12, 16, 0.58);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: none;
	transform-origin: bottom right;
	animation: radio-fab-in 0.14s ease;
}
.radio-fab-panel[hidden] {
	display: none !important;
}
@keyframes radio-fab-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.radio-fab-item {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(242, 238, 228, 0.92);
	text-decoration: none;
	font: 500 0.74rem/1.2 "Segoe UI", system-ui, sans-serif;
	letter-spacing: 0.01em;
	text-align: left;
	padding: 0.55rem 0.7rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background 0.12s ease;
}
.radio-fab-item:hover,
.radio-fab-item:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}
body.radio-standalone.jazz-hour-nightmode .radio-fab-main,
body.radio-standalone.jazz-hour-nightmode .radio-fab-panel {
	background: rgba(6, 8, 10, 0.55);
	border-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 640px) {
	.radio-fab {
		right: max(0.55rem, env(safe-area-inset-right));
		bottom: max(0.55rem, env(safe-area-inset-bottom));
	}
	.radio-fab-main {
		width: 2rem;
		height: 2rem;
	}
}
