/**
 * Founder Support Desk — frontend.
 * Tutto è isolato sotto .fsd-shell: nessuno stile tocca il tema.
 */

.fsd-shell {
	--fsd-primary: #1463ff;
	--fsd-accent: #0f9d58;
	--fsd-ink: #0f172a;
	--fsd-muted: #64748b;
	--fsd-line: #e2e8f0;
	--fsd-soft: #eef4ff;
	--fsd-radius: 18px;
	position: relative;
	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 26px 16px;
	background:
		radial-gradient(120% 90% at 50% 0%, #eef4ff 0%, #e6efff 45%, #dde9ff 100%);
	border-radius: 26px;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	color: var(--fsd-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.fsd-shell *,
.fsd-shell *::before,
.fsd-shell *::after {
	box-sizing: border-box;
}

.fsd-card {
	background: #fff;
	border-radius: var(--fsd-radius);
	box-shadow: 0 18px 40px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .04);
	overflow: hidden;
}

.fsd-card + .fsd-card {
	margin-top: 18px;
}

/* Header */
.fsd-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--fsd-line);
	background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.fsd-head-text {
	flex: 1 1 auto;
	min-width: 0;
}

.fsd-head-text h2 {
	margin: 0;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--fsd-ink);
}

.fsd-head-text p {
	margin: 2px 0 0;
	font-size: 16px;
	color: #475569;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fsd-head-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: none;
	color: #fff;
	border-radius: 14px;
	background: linear-gradient(145deg, #12b76a, var(--fsd-accent));
	box-shadow: 0 8px 18px rgba(15, 157, 88, .35);
}

.fsd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: 12px;
	border: 1px solid #e6ebf5;
	background: #f4f7fd;
	color: #1e293b;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}

.fsd-icon-btn:hover,
.fsd-icon-btn:focus-visible {
	background: #e9effc;
	transform: translateY(-1px);
	color: var(--fsd-ink);
}

/* Corpo */
.fsd-body {
	padding: 20px;
}

.fsd-shell h2,
.fsd-shell h3 {
	margin: 0;
	color: var(--fsd-ink);
}

/* Barra categoria */
.fsd-catbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #e8efff;
	border: 1px solid #d7e3ff;
	font-size: 16px;
}

.fsd-catbar-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1e3a8a;
	min-width: 0;
}

.fsd-catbar-label strong {
	color: var(--fsd-primary);
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fsd-change {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: transparent;
	color: var(--fsd-primary);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 2px;
	white-space: nowrap;
}

.fsd-change:hover {
	text-decoration: underline;
}

/* Card tipologie */
.fsd-cats {
	display: grid;
	gap: 5px;
	margin: 18px 0 6px;
	padding: 0;
	border: 0;
}

.fsd-cat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid #e5eaf3;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	position: relative;
}

.fsd-cat input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.fsd-cat:hover {
	border-color: #c7d7f7;
	background: #fbfdff;
}

.fsd-cat.is-active {
	border-color: var(--fsd-primary);
	box-shadow: 0 0 0 1px var(--fsd-primary) inset;
	background: #eef4ff;
}

.fsd-cat.is-active::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 14px;
	pointer-events: none;
	box-shadow: 0 8px 22px rgba(20, 99, 255, .12);
}

.fsd-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
}

.fsd-cat-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.fsd-cat-text strong {
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.01em;
}

.fsd-cat-text span {
	font-size: 15px;
	color: #475569;
}

.fsd-radio {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 50%;
	border: 2px solid #dbe3ef;
	color: transparent;
	background: #fff;
}

.fsd-cat.is-active .fsd-radio {
	background: var(--fsd-primary);
	border-color: var(--fsd-primary);
	color: #fff;
}

/* Contatti ospite */
.fsd-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 16px;
}

.fsd-contact label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.fsd-shell input[type="text"],
.fsd-shell input[type="email"],
.fsd-shell textarea {
	width: 100%;
	border: 1px solid #d9e2f1;
	border-radius: 10px;
	background: #fbfcff;
	padding: 11px 13px;
	font: inherit;
	color: var(--fsd-ink);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fsd-shell input:focus,
.fsd-shell textarea:focus {
	outline: none;
	border-color: var(--fsd-primary);
	box-shadow: 0 0 0 3px rgba(20, 99, 255, .16);
	background: #fff;
}

/* Messaggio */
.fsd-field {
	margin-top: 16px;
}

.fsd-field h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 8px;
}

.fsd-field h3 svg {
	color: var(--fsd-primary);
}

.fsd-field textarea {
	min-height: 172px;
	resize: vertical;
	line-height: 1.55;
	background: #fff;
}

/* Allegati */
.fsd-attach {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 14px;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	background: #eef2fa;
	color: #0f172a;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}

.fsd-attach:hover:not(:disabled) {
	background: #e3eaf7;
}

.fsd-attach:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.fsd-attach svg {
	color: var(--fsd-primary);
}

.fsd-files {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.fsd-files li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid var(--fsd-line);
	border-radius: 10px;
	background: #f8fafc;
	font-size: 14px;
}

.fsd-files .fsd-file-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fsd-files .fsd-file-size {
	color: var(--fsd-muted);
	font-size: 12px;
	white-space: nowrap;
}

.fsd-files button,
.fsd-link-danger {
	border: 0;
	background: transparent;
	color: #b91c1c;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 4px;
}

.fsd-files button:hover,
.fsd-link-danger:hover {
	text-decoration: underline;
}

/* Registratore */
.fsd-recorder {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid #dbe7fb;
	background: linear-gradient(180deg, #f3f8ff, #e9f2ff);
}

.fsd-rec-mic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: #fff;
	color: #0f172a;
	box-shadow: inset 0 0 0 1px #e2e8f0;
}

.fsd-rec-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 140px;
	font-size: 18px;
	font-weight: 800;
}

.fsd-rec-text strong {
	font-size: 18px;
}

.fsd-rec-status {
	font-size: 13px;
	font-weight: 600;
	color: var(--fsd-primary);
}

.fsd-rec-timer {
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	font-weight: 700;
	color: #b91c1c;
}

.fsd-rec-right {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.fsd-bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 26px;
}

.fsd-bars i {
	display: block;
	width: 4px;
	height: 20%;
	background: #93a4bd;
	border-radius: 3px;
	transition: height .08s linear;
}

.fsd-rec-btn {
	position: relative;
	width: 58px;
	height: 58px;
	flex: none;
	border-radius: 50%;
	border: 2px solid #fecaca;
	background: radial-gradient(circle at 50% 45%, #fff 0 54%, #ffe9ea 55% 100%);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(190, 18, 60, .18);
}

.fsd-rec-btn span {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e11d2e;
	transition: border-radius .15s ease, transform .15s ease;
}

.fsd-rec-btn:hover span,
.fsd-rec-btn:focus-visible span {
	transform: scale(1.08);
}

.fsd-rec-btn.is-recording {
	border-color: #fca5a5;
	animation: fsd-pulse 1.6s infinite;
}

.fsd-rec-btn.is-recording span {
	border-radius: 5px;
	width: 18px;
	height: 18px;
}

.fsd-rec-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
	animation: none;
}

@keyframes fsd-pulse {
	0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, .35); }
	70% { box-shadow: 0 0 0 14px rgba(225, 29, 46, 0); }
	100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); }
}

.fsd-preview {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px dashed #cddaf0;
}

.fsd-preview audio {
	height: 38px;
	max-width: 100%;
	flex: 1 1 220px;
}

/* Note e errori */
.fsd-hint {
	display: flex;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 14px;
	color: #475569;
}

.fsd-hint > svg {
	flex: none;
	color: #1e40af;
	margin-top: 2px;
}

.fsd-check {
	display: inline-flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 4px;
	font-size: 14px;
	color: #334155;
}

.fsd-check input {
	margin-top: 3px;
}

.fsd-privacy {
	color: var(--fsd-primary);
	font-weight: 600;
}

.fsd-error {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 14px;
	font-weight: 600;
}

.fsd-notice {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
	font-size: 14px;
}

.fsd-notice a {
	color: var(--fsd-primary);
	font-weight: 700;
}

/* Footer */
.fsd-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin: 22px -20px -20px;
	padding: 16px 20px;
	border-top: 1px solid var(--fsd-line);
	background: #fbfcff;
}

.fsd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 12px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}

.fsd-btn--ghost {
	background: #fff;
	border-color: #dfe6f2;
	color: #0f172a;
}

.fsd-btn--ghost:hover {
	background: #f4f7fd;
}

.fsd-btn--primary {
	background: var(--fsd-primary);
	color: #fff;
	box-shadow: 0 10px 22px rgba(20, 99, 255, .28);
}

.fsd-btn--primary:hover {
	background: #0f55e0;
	color: #fff;
	transform: translateY(-1px);
}

.fsd-btn:disabled {
	opacity: .65;
	cursor: progress;
	transform: none;
}

.fsd-btn--wide {
	width: 100%;
	margin-top: 12px;
}

/* Successo */
.fsd-success {
	padding: 34px 26px;
	text-align: center;
}

.fsd-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(145deg, #12b76a, var(--fsd-accent));
	box-shadow: 0 12px 24px rgba(15, 157, 88, .3);
}

.fsd-success h2 {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 6px;
}

.fsd-success p {
	margin: 6px 0;
	color: #475569;
}

.fsd-success-id {
	font-size: 18px;
	color: var(--fsd-ink) !important;
	margin: 14px 0 !important;
}

.fsd-success-id strong {
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
}

.fsd-success .fsd-btn {
	margin-top: 8px;
}

.fsd-success-note {
	font-size: 13px !important;
	color: var(--fsd-muted) !important;
}

/* Conversazione */
.fsd-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	background: #eef2f7;
	color: #334155;
	white-space: nowrap;
}

.fsd-status--open { background: #e0f2fe; color: #075985; }
.fsd-status--working { background: #fef3c7; color: #92400e; }
.fsd-status--waiting { background: #ede9fe; color: #5b21b6; }
.fsd-status--resolved { background: #dcfce7; color: #166534; }
.fsd-status--closed { background: #f1f5f9; color: #475569; }

.fsd-conv-meta {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--fsd-muted);
}

.fsd-msgs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 60vh;
	overflow-y: auto;
}

.fsd-msg {
	padding: 14px 16px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid var(--fsd-line);
	max-width: 92%;
}

.fsd-msg--admin {
	background: #eef4ff;
	border-color: #d6e4ff;
	align-self: flex-start;
}

.fsd-msg--user {
	background: #f8fafc;
	align-self: flex-end;
}

.fsd-msg-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--fsd-muted);
}

.fsd-msg-head strong {
	color: var(--fsd-ink);
	font-size: 14px;
}

.fsd-msg-body {
	font-size: 15px;
	line-height: 1.55;
	white-space: normal;
	overflow-wrap: anywhere;
}

.fsd-msg-files {
	list-style: none;
	margin: 10px 0 0;
	padding: 8px 0 0;
	border-top: 1px dashed #dbe3ef;
	display: grid;
	gap: 8px;
}

.fsd-msg-files li {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
}

.fsd-msg-files a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fsd-primary);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.fsd-msg-files audio {
	height: 36px;
	max-width: 100%;
}

.fsd-reply {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--fsd-line);
}

.fsd-reply textarea {
	min-height: 92px;
	resize: vertical;
}

.fsd-reply-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.fsd-attach--small {
	width: auto;
	margin: 0;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	background: #eef2fa;
}

.fsd-rec-btn--small {
	width: 42px;
	height: 42px;
	border-width: 1px;
	box-shadow: none;
}

.fsd-rec-btn--small span {
	width: 16px;
	height: 16px;
}

.fsd-preview--small {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
}

.fsd-preview--small audio {
	height: 34px;
	flex: 0 1 200px;
}

/* Elenco ticket */
.fsd-ticket-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.fsd-ticket-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--fsd-line);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
}

.fsd-ticket-row:hover {
	border-color: #c7d7f7;
	background: #fbfdff;
	color: inherit;
}

.fsd-ticket-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fsd-ticket-main strong {
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fsd-ticket-main small {
	color: var(--fsd-muted);
	font-size: 12px;
}

.fsd-empty {
	color: var(--fsd-muted);
	font-size: 14px;
}

.fsd-recover {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--fsd-line);
	font-size: 14px;
}

.fsd-recover summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--fsd-primary);
}

.fsd-recover-form {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.fsd-recover-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.fsd-recover-form .fsd-btn {
	justify-self: start;
	min-height: 44px;
	font-size: 15px;
	padding: 0 18px;
}

.fsd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fsd-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Responsive */
@media (max-width: 640px) {
	.fsd-shell {
		padding: 12px;
		border-radius: 18px;
	}

	.fsd-head {
		padding: 14px;
		gap: 10px;
	}

	.fsd-head-text h2 {
		font-size: 20px;
	}

	.fsd-head-text p {
		font-size: 14px;
	}

	.fsd-head-icon {
		width: 44px;
		height: 44px;
	}

	.fsd-icon-btn {
		width: 40px;
		height: 40px;
	}

	.fsd-body {
		padding: 14px;
	}

	.fsd-catbar {
		font-size: 14px;
		padding: 10px 12px;
	}

	.fsd-cat {
		padding: 13px 14px;
		gap: 10px;
	}

	.fsd-cat-text strong {
		font-size: 17px;
	}

	.fsd-cat-text span {
		font-size: 13px;
	}

	.fsd-contact {
		grid-template-columns: 1fr;
	}

	.fsd-field h3 {
		font-size: 18px;
	}

	.fsd-recorder {
		padding: 12px;
		gap: 10px;
	}

	.fsd-rec-text {
		font-size: 16px;
	}

	.fsd-rec-btn {
		width: 50px;
		height: 50px;
	}

	.fsd-foot {
		margin: 18px -14px -14px;
		padding: 14px;
		flex-direction: column-reverse;
	}

	.fsd-foot .fsd-btn {
		width: 100%;
		min-height: 48px;
		font-size: 16px;
	}

	.fsd-msg {
		max-width: 100%;
	}

	.fsd-msgs {
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fsd-shell *,
	.fsd-shell *::before,
	.fsd-shell *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------------------------------------------------------------
 * Nuvoletta di assistenza (solo utenti autorizzati)
 * --------------------------------------------------------------- */

.fsd-launcher {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 2147483000;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 56px;
	height: 56px;
	padding: 0;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--fsd-widget-primary, #1463ff);
	color: #fff;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .3);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.fsd-launcher:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(15, 23, 42, .38);
}

html.fsd-widget-open .fsd-launcher {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.fsd-launcher-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e11d2e;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
}

.fsd-launcher:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.fsd-launcher-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fsd-launcher-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.fsd-widget[hidden],
.fsd-widget [hidden] {
	display: none !important;
}

.fsd-widget {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	pointer-events: none;
}

.fsd-widget-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(9, 18, 32, .45);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	pointer-events: auto;
	cursor: pointer;
	animation: fsd-widget-fade .2s ease-out;
}

html.fsd-widget-open,
html.fsd-widget-open body {
	overflow: hidden;
}

.fsd-widget-panel {
	position: absolute;
	right: 28px;
	bottom: 84px;
	display: flex;
	flex-direction: column;
	width: min(470px, calc(100vw - 40px));
	height: min(720px, calc(100vh - 130px));
	overflow: hidden;
	pointer-events: auto;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(9, 18, 32, .45);
	overscroll-behavior: contain;
	animation: fsd-widget-pop .22s ease-out;
}

.fsd-widget-panel .fsd-head {
	flex: 0 0 auto;
	background: #fff;
	border-radius: 24px 24px 0 0;
}

.fsd-widget-panel .fsd-shell {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.fsd-widget-panel .fsd-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.fsd-widget-panel form.fsd-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}

.fsd-widget-panel .fsd-body-scroll {
	flex: 1 1 auto;
	min-height: 0;
	padding: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.fsd-widget-panel .fsd-foot {
	position: static;
	flex: 0 0 auto;
	margin: 0;
	padding: 14px 20px;
	background: #fff;
	border-top: 1px solid var(--fsd-line);
	border-radius: 0 0 24px 24px;
}

.fsd-widget-panel .fsd-shell {
	max-width: none;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.fsd-widget-panel .fsd-card {
	border: 0;
	border-radius: 24px;
	box-shadow: none;
	overflow: hidden;
}

.fsd-widget-panel .fsd-widget-history {
	margin: 18px 0 0;
	text-align: center;
	font-size: 13px;
}

.fsd-widget-panel .fsd-widget-history a {
	color: var(--fsd-primary, #1463ff);
	text-decoration: none;
}

.fsd-widget-panel .fsd-widget-history a:hover {
	text-decoration: underline;
}

.fsd-widget-panel .fsd-catbar {
	align-items: center;
	flex-wrap: nowrap;
	padding: 10px 12px;
	font-size: 14px;
}

.fsd-widget-panel .fsd-catbar-label {
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 6px;
}

.fsd-widget-panel .fsd-catbar-label strong {
	white-space: normal;
	overflow: visible;
}

@keyframes fsd-widget-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fsd-widget-pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 640px) {
	.fsd-launcher {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
		z-index: 2147483002;
	}

	.fsd-widget-panel {
		inset: 0;
		width: auto;
		height: 100%;
		border-radius: 0;
		box-shadow: none;
	}

	.fsd-widget-panel .fsd-head,
	.fsd-widget-panel .fsd-card,
	.fsd-widget-panel .fsd-foot {
		border-radius: 0;
	}

	.fsd-widget-panel .fsd-body-scroll {
		padding: 14px;
	}

	.fsd-widget-panel .fsd-foot {
		padding: 12px 14px;
	}

	.fsd-widget-panel .fsd-card {
		border-radius: 0;
		min-height: 100%;
	}

	html.fsd-widget-open,
	html.fsd-widget-open body {
		overflow: hidden;
	}
}
