.ap-stb {
	--ap-bg: #0a0e17;
	--ap-surface: #11192a;
	--ap-surface-2: #172238;
	--ap-border: rgba(255, 255, 255, 0.1);
	--ap-text: #e8f0fb;
	--ap-muted: #93a7c0;
	--ap-accent: #36c4ff;
	background:
		radial-gradient(circle at 10% 5%, rgba(54, 196, 255, 0.08), transparent 45%),
		linear-gradient(165deg, var(--ap-surface) 0%, var(--ap-bg) 100%);
	border: 1px solid var(--ap-border);
	border-radius: 16px;
	padding: 1.4rem;
	margin: 1.5rem 0;
	color: var(--ap-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.ap-stb__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.ap-stb__badge {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: rgba(54, 196, 255, 0.12);
	border: 1px solid rgba(54, 196, 255, 0.3);
	color: #9be0ff;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 0.45rem;
}

.ap-stb__title {
	margin: 0 0 0.3rem;
	font-size: 1.3rem;
	color: #fff;
}

.ap-stb__sub {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ap-muted);
	max-width: 66ch;
}

.ap-stb__btn {
	min-inline-size: 24px;
	min-block-size: 38px;
	padding: 0.5rem 0.95rem;
	border-radius: 10px;
	border: none;
	background: var(--ap-accent);
	color: #06101c;
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
}

.ap-stb__btn:hover {
	background: #67d3ff;
}

.ap-copy {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ap-tip {
	position: absolute;
	inset-block-end: calc(100% + 6px);
	inset-inline-end: 0;
	padding: 0.25rem 0.55rem;
	border-radius: 6px;
	background: #0f172a;
	border: 1px solid var(--ap-accent);
	color: #fff;
	font-size: 0.76rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}

.ap-stb__btn[data-copied] + .ap-tip,
.ap-stb__btn[data-failed] + .ap-tip {
	opacity: 1;
}

.ap-stb__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.ap-stb__check {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.65rem 0.8rem;
	border-radius: 10px;
	background: var(--ap-surface-2);
	border: 1px solid var(--ap-border);
	cursor: pointer;
	font-size: 0.86rem;
}

.ap-stb__check input {
	margin-top: 0.2rem;
	accent-color: var(--ap-accent);
}

.ap-stb__custom {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.65rem;
	margin-bottom: 1rem;
	align-items: center;
}

.ap-stb__custom label {
	font-size: 0.82rem;
	color: var(--ap-muted);
}

.ap-stb__custom input {
	width: 100%;
	padding: 0.5rem 0.7rem;
	border-radius: 8px;
	border: 1px solid var(--ap-border);
	background: #0b1220 !important;
	color: #f8fafc !important;
	font-size: 0.86rem;
}

.ap-stb__tabs {
	display: flex;
	overflow-x: auto;
	gap: 0.4rem;
	border-bottom: 1px solid var(--ap-border);
	margin-bottom: 0.75rem;
}

.ap-stb__tabs [role="tab"] {
	position: relative;
	flex: none;
	background: transparent;
	border: none;
	color: var(--ap-muted);
	padding: 0.6rem 0.9rem;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.ap-stb__tabs [role="tab"][aria-selected="true"] {
	color: var(--ap-accent);
}

.ap-stb__tabs [role="tab"][aria-selected="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	border-block-end: 3px solid var(--ap-accent);
}

.ap-stb__panel-box {
	background: #080c14;
	border: 1px solid var(--ap-border);
	border-radius: 10px;
	padding: 0.85rem;
}

.ap-stb__panel-box pre {
	margin: 0;
	max-height: 320px;
	overflow: auto;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #dbeafe;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
