.ns-sc {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.ns-sc.is-open {
	display: flex;
}

.ns-sc-mask {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .52);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: ns-sc-fade .18s ease both;
}

.ns-sc-panel {
	position: relative;
	width: 358px;
	max-width: 100%;
	padding: 14px 16px 16px;
	border-radius: var(--ns-radius, 16px);
	background: var(--ns-glass-strong, rgba(255, 255, 255, .92));
	border: 1px solid var(--ns-glass-border, rgba(255, 255, 255, .7));
	box-shadow: var(--ns-shadow-lg, 0 22px 48px rgba(15, 23, 42, .18));
	animation: ns-sc-rise .22s var(--ns-ease, cubic-bezier(.4, 0, .2, 1)) both;
	-webkit-user-select: none;
	user-select: none;
}

@keyframes ns-sc-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ns-sc-rise {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: none; }
}

.ns-sc-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.ns-sc-title {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--ns-ink, #0f172a);
}

.ns-sc-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: var(--ns-muted, #94a3b8);
	cursor: pointer;
	transition: background .18s var(--ns-ease, ease), color .18s var(--ns-ease, ease);
}

.ns-sc-ico:hover {
	background: rgba(37, 99, 235, .08);
	color: var(--ns-primary, #2563eb);
}

.ns-sc-box {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--ns-line-strong, rgba(15, 23, 42, .12));
	background: #e2e8f0;
	line-height: 0;
}

.ns-sc-bg {
	display: block;
	width: 100%;
	height: auto;
}

.ns-sc-piece {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	filter: drop-shadow(0 6px 14px rgba(15, 23, 42, .3));
	will-change: left;
}

.ns-sc-track {
	position: relative;
	height: 42px;
	margin-top: 14px;
	border-radius: 12px;
	border: 1px solid var(--ns-line-strong, rgba(15, 23, 42, .12));
	background: rgba(148, 163, 184, .14);
	touch-action: none;
	overflow: hidden;
}

.ns-sc-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: var(--ns-gradient-soft, linear-gradient(135deg, rgba(37, 99, 235, .1) 0%, rgba(6, 182, 212, .1) 100%));
	transition: none;
}

.ns-sc-hint {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-size: 12px;
	color: var(--ns-muted, #94a3b8);
	transition: opacity .2s var(--ns-ease, ease);
	pointer-events: none;
}

.ns-sc-handle {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 100%;
	border-radius: 11px;
	background: var(--ns-gradient, linear-gradient(135deg, #2563eb 0%, #06b6d4 100%));
	color: #fff;
	box-shadow: var(--ns-shadow-accent, 0 10px 24px rgba(37, 99, 235, .24));
	cursor: grab;
	touch-action: none;
}

.ns-sc-handle:active {
	cursor: grabbing;
}

.ns-sc-handle:focus-visible {
	outline: 2px solid var(--ns-primary, #2563eb);
	outline-offset: 2px;
}

.ns-sc-tip {
	margin: 11px 0 0;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
	color: var(--ns-body, #475569);
	min-height: 18px;
}

.ns-sc-tip.is-ok {
	color: var(--ns-success, #10b981);
}

.ns-sc-tip.is-bad {
	color: var(--ns-danger, #ef4444);
}

@media (max-width: 420px) {
	.ns-sc-panel {
		width: 100%;
		padding: 12px 12px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ns-sc-mask,
	.ns-sc-panel {
		animation: none;
	}
}

.ns-sc-bar {
	margin-bottom: 16px;
}

.ns-sc-slot {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 42px;
	padding: 0 14px;
	border: 1px dashed var(--ns-line-strong, rgba(15, 23, 42, .18));
	border-radius: var(--ns-radius-sm, 11px);
	background: var(--ns-gradient-soft, linear-gradient(135deg, rgba(37, 99, 235, .1) 0%, rgba(6, 182, 212, .1) 100%));
	color: var(--ns-ink, #0f172a);
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: border-color .18s var(--ns-ease, ease), box-shadow .18s var(--ns-ease, ease);
}

.ns-sc-slot:hover {
	border-color: rgba(37, 99, 235, .45);
	box-shadow: var(--ns-shadow-sm, 0 2px 10px rgba(15, 23, 42, .05));
}

.ns-sc-slot:focus-visible {
	outline: 2px solid var(--ns-primary, #2563eb);
	outline-offset: 2px;
}

.ns-sc-slot svg {
	flex: none;
	color: var(--ns-primary, #2563eb);
}

.ns-sc-slot-text {
	flex: 1;
	color: var(--ns-body, #475569);
}

.ns-sc-tag {
	flex: none;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-style: normal;
	color: var(--ns-muted, #94a3b8);
	background: rgba(148, 163, 184, .16);
}

.ns-sc-slot.is-ok {
	border-style: solid;
	border-color: rgba(16, 185, 129, .35);
	background: rgba(16, 185, 129, .07);
}

.ns-sc-slot.is-ok svg,
.ns-sc-slot.is-ok .ns-sc-slot-text {
	color: var(--ns-success, #10b981);
}

.ns-sc-slot.is-ok .ns-sc-tag {
	color: #fff;
	background: var(--ns-success, #10b981);
}

