.spcm-root[hidden],
.spcm-reopen[hidden] {
	display: none !important;
}

.spcm-root {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	font-family: Arial, Helvetica, sans-serif;
}

.spcm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.spcm-panel {
	position: absolute;
	right: 24px;
	bottom: 24px;
	width: min(620px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow: auto;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.spcm-theme-dark .spcm-panel {
	background: #101820;
	color: #fff;
}

.spcm-theme-light .spcm-panel {
	background: #fff;
	color: #101820;
}

.spcm-panel h2,
.spcm-panel h3,
.spcm-panel p {
	margin-top: 0;
}

.spcm-panel h2 {
	font-size: 24px;
	line-height: 1.2;
	margin-bottom: 12px;
}

.spcm-panel p,
.spcm-panel li {
	font-size: 14px;
	line-height: 1.5;
}

.spcm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.spcm-button,
.spcm-reopen,
.spcm-icon-button {
	border: 1px solid currentColor;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	min-height: 42px;
	padding: 10px 16px;
}

.spcm-button-primary {
	background: #f7c948;
	border-color: #f7c948;
	color: #101820;
	font-weight: 700;
}

.spcm-theme-dark .spcm-button:not(.spcm-button-primary),
.spcm-theme-dark .spcm-icon-button {
	background: transparent;
	color: #fff;
}

.spcm-theme-light .spcm-button:not(.spcm-button-primary),
.spcm-theme-light .spcm-icon-button {
	background: transparent;
	color: #101820;
}

.spcm-icon-button {
	position: absolute;
	right: 12px;
	top: 12px;
	min-height: 32px;
	padding: 4px 10px;
}

.spcm-category {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	border-top: 1px solid rgba(128, 128, 128, 0.35);
	padding: 16px 0;
}

.spcm-category ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.spcm-switch {
	align-items: center;
	display: flex;
	gap: 8px;
	white-space: nowrap;
}

.spcm-switch input {
	inline-size: 22px;
	block-size: 22px;
}

.spcm-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	background: #101820;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
	.spcm-panel {
		inset: auto 12px 12px 12px;
		width: auto;
		padding: 20px;
	}

	.spcm-actions,
	.spcm-category {
		display: block;
	}

	.spcm-button {
		width: 100%;
		margin-top: 8px;
	}

	.spcm-switch {
		margin-top: 12px;
	}
}
