/* Nova's voice buttons (assets/nova-voice.js). Uses the site skin's variables when present. */
.nova-voice-btn {
	align-items: center;
	background: transparent;
	border: 1px solid var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	border-radius: 999px;
	color: var(--nova-cyan, #3fc8e4);
	cursor: pointer;
	display: inline-flex;
	gap: 0.35rem;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	min-width: 2rem;
	padding: 0 0.45rem;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
	vertical-align: middle;
}
.nova-voice-btn--labelled {
	font-family: var(--nova-font-display, inherit);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	padding: 0 0.8rem 0 0.6rem;
	text-transform: uppercase;
}
.nova-voice-btn:hover,
.nova-voice-btn:focus-visible {
	background: rgba(var(--nova-accent-rgb, 63, 200, 228), 0.15);
	border-color: var(--nova-cyan, #3fc8e4);
}
.nova-voice-btn.is-playing {
	background: var(--nova-cyan-deep, #127a93);
	color: var(--nova-text-bright, #e4f1f6);
}
.nova-voice-btn.is-playing .nova-voice-waves {
	animation: nova-voice-wave 1s ease-in-out infinite;
}
.nova-voice-btn.is-loading {
	animation: nova-voice-pulse 1s ease-in-out infinite;
}
.nova-voice-btn.is-error {
	border-color: var(--nova-hostile, #e0533d);
	color: var(--nova-hostile, #e0533d);
}
@keyframes nova-voice-wave { 50% { opacity: 0.25; } }
@keyframes nova-voice-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
	.nova-voice-btn.is-playing .nova-voice-waves,
	.nova-voice-btn.is-loading { animation: none; }
}
/* In a speech bubble: next to Nova's name. */
.nova-says__bubble .nova-voice-btn {
	height: 1.7rem;
	margin-left: 0.5rem;
	min-width: 1.7rem;
}
/* In a chat reply: under the text. */
.nova-chat-msg .nova-voice-btn {
	height: 1.6rem;
	margin-top: 0.3rem;
	min-width: 1.6rem;
}
/* Speech bubbles: pinned to the bubble's top-right corner. */
.nova-says__bubble {
	position: relative;
}
.nova-says__bubble > .nova-voice-btn {
	margin: 0;
	position: absolute;
	right: 0.6rem;
	top: 0.6rem;
}
/* Sign-in greeting / sign-out farewell toast. */
.nova-voice-toast {
	align-items: center;
	background: linear-gradient(180deg, rgba(21, 34, 48, 0.97), rgba(10, 17, 24, 0.97));
	border: 1px solid var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	border-top: 2px solid var(--nova-cyan, #3fc8e4);
	bottom: 1.25rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
	color: var(--nova-text-bright, #e4f1f6);
	display: flex;
	gap: 0.8rem;
	max-width: min(420px, calc(100vw - 2rem));
	opacity: 0;
	padding: 0.8rem 2.2rem 0.8rem 0.9rem;
	position: fixed;
	right: 1.25rem;
	transform: translateY(12px);
	transition: opacity 0.3s, transform 0.3s;
	z-index: 100000;
}
.nova-voice-toast.is-in {
	opacity: 1;
	transform: none;
}
.nova-voice-toast img {
	border: 1px solid var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	border-radius: 50%;
	flex: 0 0 auto;
	height: 44px;
	width: 44px;
}
.nova-voice-toast__name {
	color: var(--nova-cyan, #3fc8e4);
	display: block;
	font-family: var(--nova-font-display, inherit);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.2em;
}
.nova-voice-toast p {
	font-size: 0.92rem;
	line-height: 1.4;
	margin: 0.1rem 0 0;
}
.nova-voice-toast .nova-voice-btn {
	flex: 0 0 auto;
}
.nova-voice-toast__close {
	background: none;
	border: 0;
	color: var(--nova-muted, #6f8392);
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
	padding: 0.2rem 0.4rem;
	position: absolute;
	right: 0.25rem;
	top: 0.2rem;
}
.nova-voice-toast__close:hover { color: var(--nova-text-bright, #e4f1f6); }
@media (max-width: 600px) {
	.nova-voice-toast { bottom: 0.75rem; left: 0.75rem; max-width: none; right: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
	.nova-voice-toast { transition: none; transform: none; }
}
