/* Banner Studio (extension package). The modal chrome - backdrop, header,
   badge, close, inputs (dsm-input), selects (dsm-select), footer (dsm-foot)
   and buttons (ai-btn) - comes from the editor's own modal design; the
   dialog mounts inside #wpie-root for exactly that. Only the studio's own
   layout lives here, built on the editor's CSS variables. */

.wpiebs-dialog {
	display: flex;
	flex-direction: column;
	width: min( 1120px, 96vw );
	height: min( 800px, 92vh );
}

/* Two panes: brief (left) + batch queue (right). */
#wpie-root .wpiebs-grid2 {
	display: grid;
	flex: 1;
	grid-template-columns: minmax( 0, 1fr ) 440px;
	min-height: 0;
	overflow: hidden;
}

.wpiebs-config {
	gap: 14px;
}

/* The config pane scrolls; its cards keep their natural height instead of
   shrinking to fit (which would clip content under overflow:hidden). */
.wpiebs-config > .wpiebs-card {
	flex: 0 0 auto;
}

@media ( max-width: 860px ) {

	#wpie-root .wpiebs-grid2 {
		grid-template-columns: 1fr;
		overflow-y: auto;
	}

	#wpie-root .automate-queue {
		max-height: 46vh;
	}
}

.wpiebs-qhead {
	display: flex;
	gap: 6px;
	align-items: center;
}

.wpiebs-qsection {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.wpiebs-qempty {
	padding: 30px 18px;
	font-size: 12.5px;
	line-height: 1.5;
	text-align: center;
}

/* --------------------------------- brief -------------------------------- */

.wpiebs-brief {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wpiebs-texts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-items: start;
}

@media ( max-width: 720px ) {

	.wpiebs-texts {
		grid-template-columns: 1fr;
	}
}

.wpiebs-card {
	overflow: hidden;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.03 ) );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 12px;
}

.wpiebs-card-head {
	display: flex;
	gap: 9px;
	align-items: center;
	padding: 13px 16px 3px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var( --ed-text-dim, #b9c0cc );
	text-transform: uppercase;
}

.wpiebs-card-ic {
	display: flex;
	opacity: 0.85;
}

.wpiebs-card-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 14px 18px 18px;
}

/* Two-up layouts inside a card. */
.wpiebs-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
}

.wpiebs-col {
	display: flex;
	flex-direction: column;
	gap: 11px;
	min-width: 0;
}

.wpiebs-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: stretch;
}

@media ( max-width: 720px ) {

	.wpiebs-split,
	.wpiebs-row2 {
		grid-template-columns: 1fr;
	}
}

.wpiebs-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Offer + key message: equal-height textareas side by side. */
.wpiebs-row2 .wpiebs-textarea {
	flex: 1;
	min-height: 74px;
}

.wpiebs-flabel {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var( --ed-text-muted, #8b93a1 );
	text-transform: uppercase;
}

#wpie-root .wpiebs-textarea {
	padding: 7px 9px;
	font: inherit;
	font-size: 12.5px;
	line-height: 1.45;
	color: var( --text-primary, #e6e8ee );
	resize: vertical;
	background: var( --surface-input, var( --ed-panel, #14171c ) );
	border: 1px solid var( --border-hairline, #333a44 );
	border-radius: 7px;
}

#wpie-root .wpiebs-textarea:focus {
	border-color: var( --accent, #3b66ff );
	box-shadow: inset 0 0 0 1px var( --accent, #3b66ff );
	outline: none;
}

/* Brand card. */
.wpiebs-brandrow {
	display: flex;
	gap: 12px;
	align-items: center;
}

.wpiebs-logo {
	width: 46px;
	height: 46px;
	padding: 3px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 8px;
}

.wpiebs-swatches {
	display: flex;
	gap: 6px;
}

.wpiebs-swatch {
	width: 22px;
	height: 22px;
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 50%;
}

.wpiebs-check {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
}

/* AI + style. */
.wpiebs-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wpiebs-stylerow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.wpiebs-styletag:empty {
	display: none;
}

.wpiebs-styletag {
	display: flex;
	gap: 6px;
	align-items: center;
}

.wpiebs-styletext {
	max-width: 300px;
	padding: 3px 9px;
	overflow: hidden;
	font-size: 11.5px;
	color: var( --ed-text-muted, #8b93a1 );
	text-overflow: ellipsis;
	white-space: nowrap;
	background: var( --ed-panel, #14171c );
	border-radius: 7px;
}

#wpie-root .wpiebs-styleclear {
	display: flex;
	padding: 2px;
	color: var( --ed-text-muted, #8b93a1 );
	cursor: pointer;
	background: none;
	border: none;
}

#wpie-root .wpiebs-styleclear:hover {
	color: #ff8a80;
}

/* Slot builder - visual tiles. */
.wpiebs-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wpiebs-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	width: 108px;
	padding: 12px 10px 10px;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 10px;
}

.wpiebs-aspect {
	display: grid;
	place-items: center;
	width: 58px;
	height: 42px;
}

.wpiebs-aspect-in {
	background: var( --accent, #3b66ff );
	border-radius: 3px;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.35 );
}

.wpiebs-slot select.dsm-select.sm {
	width: 100%;
}

#wpie-root .wpiebs-slot-x {
	position: absolute;
	top: 5px;
	right: 5px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	color: var( --ed-text-muted, #8b93a1 );
	cursor: pointer;
	background: none;
	border: none;
	border-radius: 6px;
}

#wpie-root .wpiebs-slot-x svg {
	width: 12px;
	height: 12px;
}

#wpie-root .wpiebs-slot-x:hover:not( :disabled ) {
	color: #ff8a80;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.06 ) );
}

#wpie-root .wpiebs-slot-x:disabled {
	opacity: 0.25;
	cursor: default;
}

#wpie-root .wpiebs-addtile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	justify-content: center;
	width: 108px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: transparent;
	border: 1px dashed var( --ed-border, #333a44 );
	border-radius: 10px;
}

#wpie-root .wpiebs-addtile:hover {
	color: var( --accent, #3b66ff );
	border-color: var( --accent, #3b66ff );
}

.wpiebs-addtile-ic {
	display: grid;
	place-items: center;
}

.wpiebs-addtile-t {
	font-size: 11px;
}

#wpie-root .wpiebs-add {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 7px 13px;
	font-size: 12px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: transparent;
	border: 1px dashed var( --ed-border, #333a44 );
	border-radius: 8px;
}

#wpie-root .wpiebs-add:hover:not( :disabled ) {
	color: var( --accent, #3b66ff );
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-add:disabled {
	opacity: 0.4;
	cursor: default;
}

.wpiebs-note {
	font-size: 11.5px;
	color: var( --ed-text-muted, #8b93a1 );
}

.wpiebs-warn {
	display: flex;
	gap: 8px;
	align-items: center;
	color: #e0a458;
}

.wpiebs-link {
	color: var( --accent, #3b66ff );
}

/* --------------------------------- texts -------------------------------- */

.wpiebs-concept {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 13px 15px;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.03 ) );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 12px;
	transition: opacity 0.15s;
}

.wpiebs-concept.is-busy {
	pointer-events: none;
	opacity: 0.45;
}

.wpiebs-concept-head {
	display: flex;
	gap: 9px;
	align-items: center;
}

.wpiebs-concept-ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 27px;
	height: 27px;
	color: var( --accent, #3b66ff );
	background: var( --accent-soft, rgba( 59, 102, 255, 0.16 ) );
	border-radius: 8px;
}

.wpiebs-concept-ic svg {
	width: 15px;
	height: 15px;
}

.wpiebs-concept-title {
	flex: 1;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpiebs-badge {
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: var( --accent, #3b66ff );
	border-radius: 999px;
}

#wpie-root .wpiebs-reroll {
	display: flex;
	padding: 5px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: none;
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 7px;
}

#wpie-root .wpiebs-reroll:hover:not( :disabled ) {
	color: var( --accent, #3b66ff );
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-reroll:disabled {
	opacity: 0.4;
	cursor: default;
}

/* -------------------------------- banners ------------------------------- */

.wpiebs-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 224px, 1fr ) );
	gap: 16px;
}

.wpiebs-banner {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.03 ) );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 12px;
}

.wpiebs-stage {
	display: grid;
	place-items: center;
	width: 100%;

	/* Uniform height across cards -> pills always align, big banners are
	   shown complete (contained), never cropped. */
	height: clamp( 168px, 21vh, 240px );
	overflow: hidden;
	background:
		repeating-conic-gradient(
			rgba( 128, 128, 128, 0.07 ) 0 25%,
			transparent 0 50%
		)
		0 0 / 18px 18px;
}

.wpiebs-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wpiebs-cap {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 10px 12px 4px;
}

.wpiebs-cap-text {
	overflow: hidden;
	font-size: 12px;
	color: var( --ed-text-dim, #b9c0cc );
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpiebs-bactions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 9px 12px 12px;
}

#wpie-root .wpiebs-baction {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	padding: 6px 9px;
	font-size: 11.5px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: transparent;
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 7px;
}

#wpie-root .wpiebs-baction svg {
	width: 14px;
	height: 14px;
}

#wpie-root .wpiebs-baction:hover:not( :disabled ) {
	color: var( --ed-text, #e6e8ee );
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-baction.is-done {
	color: #58c07f;
	border-color: rgba( 88, 192, 127, 0.5 );
}

#wpie-root .wpiebs-baction:disabled {
	cursor: default;
}

/* Loading + error + spinner. */
.wpiebs-loading {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	padding: 22px;
	color: var( --ed-text-muted, #8b93a1 );
}

.wpiebs-loading-t {
	font-size: 11px;
}

.wpiebs-spin {
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: -2px;
	border: 2px solid rgba( 128, 128, 128, 0.3 );
	border-top-color: var( --accent, #3b66ff );
	border-radius: 50%;
	animation: wpiebs-spin 0.7s linear infinite;
}

.wpiebs-spin.big {
	width: 26px;
	height: 26px;
	border-width: 3px;
}

.wpiebs-go .wpiebs-spin {
	margin-right: 7px;
	border-top-color: #fff;
}

@keyframes wpiebs-spin {

	to {
		transform: rotate( 360deg );
	}
}

.wpiebs-error {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	padding: 16px;
	text-align: center;
}

.wpiebs-error-t {
	font-size: 12px;
	font-weight: 600;
	color: #ff8a80;
}

.wpiebs-error-m {
	max-width: 200px;
	font-size: 10.5px;
	color: var( --ed-text-muted, #8b93a1 );
}

/* ----------------------------- custom brand ----------------------------- */

.wpiebs-logorow {
	display: flex;
	gap: 12px;
	align-items: center;
}

.wpiebs-logo-empty {
	display: grid;
	place-items: center;
	color: var( --ed-text-muted, #8b93a1 );
	background: var( --ed-panel, #14171c );
}

.wpiebs-logobtns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wpiebs-colorlist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.wpiebs-colorchip {
	position: relative;
	display: flex;
}

.wpiebs-colorhost {
	display: inline-flex;
}

#wpie-root .wpiebs-colorx {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin: -6px 0 0 -8px;
	color: #fff;
	cursor: pointer;
	background: #d9534f;
	border: 1px solid var( --ed-panel, #14171c );
	border-radius: 50%;
}

#wpie-root .wpiebs-colorx svg {
	width: 9px;
	height: 9px;
}

#wpie-root .wpiebs-coloradd {
	padding: 6px 10px;
	font-size: 11.5px;
}

/* ------------------------------ motif / source -------------------------- */

.wpiebs-seg {
	display: inline-flex;
	padding: 3px;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 9px;
}

#wpie-root .wpiebs-segbtn {
	padding: 6px 16px;
	font-size: 12.5px;
	font-weight: 500;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 7px;
}

#wpie-root .wpiebs-segbtn.active {
	color: #fff;
	background: var( --accent, #3b66ff );
}

.wpiebs-sourcerow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.wpiebs-sourcepick {
	display: flex;
	flex: 1;
	gap: 11px;
	align-items: center;
	min-width: 200px;
	padding: 8px 12px 8px 8px;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 10px;
}

.wpiebs-sourcethumb {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	overflow: hidden;
	color: var( --ed-text-muted, #8b93a1 );
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.05 ) );
	border-radius: 8px;
}

.wpiebs-sourcethumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpiebs-sourcemeta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wpiebs-sourcetitle {
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpiebs-sourcekind {
	font-size: 11px;
	color: var( --ed-text-muted, #8b93a1 );
}

/* --------------------------------- QR ----------------------------------- */

.wpiebs-qr {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var( --ed-border, #333a44 );
}

.wpiebs-qr-ic {
	display: inline-flex;
	color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-qrurl {
	max-width: 380px;
}

/* ------------------------------ content picker -------------------------- */

.wpiebs-picker-bd {
	z-index: 100020;
}

.wpiebs-picker {
	display: flex;
	flex-direction: column;
	width: min( 720px, 94vw );
	height: min( 620px, 88vh );
}

.wpiebs-picker-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
	padding: 16px;
}

.wpiebs-picker-ctrls {
	display: flex;
	gap: 10px;
	align-items: center;
}

.wpiebs-picker-ctrls .dsm-select {
	flex: 0 0 auto;
	min-width: 120px;
}

#wpie-root .wpiebs-picker-search {
	flex: 1;
}

.wpiebs-picker-grid {
	display: grid;
	flex: 1;
	grid-template-columns: repeat( auto-fill, minmax( 130px, 1fr ) );
	gap: 12px;
	align-content: start;
	min-height: 0;
	padding: 2px;
	overflow-y: auto;
}

#wpie-root .wpiebs-picktile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 8px;
	cursor: pointer;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.03 ) );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 10px;
}

#wpie-root .wpiebs-picktile:hover {
	border-color: var( --accent, #3b66ff );
}

.wpiebs-pickthumb {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	color: var( --ed-text-muted, #8b93a1 );
	background: var( --ed-panel, #14171c );
	border-radius: 6px;
}

.wpiebs-pickthumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpiebs-picktitle {
	overflow: hidden;
	font-size: 12px;
	line-height: 1.3;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ------------------------------ result page ----------------------------- */

.wpiebs-result {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wpiebs-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wpiebs-section-head {
	display: flex;
	gap: 10px;
	align-items: center;
}

.wpiebs-section-ic {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	color: var( --accent, #3b66ff );
	background: var( --accent-soft, rgba( 59, 102, 255, 0.16 ) );
	border-radius: 9px;
}

.wpiebs-section-titles {
	display: flex;
	flex-direction: column;
}

.wpiebs-section-title {
	font-size: 14px;
	font-weight: 600;
}

.wpiebs-section-sub {
	font-size: 11.5px;
	color: var( --ed-text-muted, #8b93a1 );
}

.wpiebs-placeholder {
	padding: 28px;
	font-size: 12.5px;
	color: var( --ed-text-muted, #8b93a1 );
	text-align: center;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.02 ) );
	border: 1px dashed var( --ed-border, #333a44 );
	border-radius: 12px;
}

/* ---------------------------- source choices ---------------------------- */

.wpiebs-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

#wpie-root .wpiebs-choice {
	display: flex;
	flex-direction: column;
	gap: 7px;
	align-items: flex-start;
	padding: 13px 14px;
	color: var( --ed-text-dim, #b9c0cc );
	text-align: left;
	cursor: pointer;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 12px;
}

#wpie-root .wpiebs-choice:hover {
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-choice.active {
	background: var( --accent-soft, rgba( 59, 102, 255, 0.12 ) );
	border-color: var( --accent, #3b66ff );
}

.wpiebs-choice-ic {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var( --accent, #3b66ff );
	background: var( --accent-soft, rgba( 59, 102, 255, 0.16 ) );
	border-radius: 9px;
}

#wpie-root .wpiebs-choice.active .wpiebs-choice-ic {
	color: #fff;
	background: var( --accent, #3b66ff );
}

.wpiebs-choice-t {
	font-size: 13px;
	font-weight: 600;
	color: var( --ed-text, #e6e8ee );
}

.wpiebs-choice-d {
	font-size: 11px;
	color: var( --ed-text-muted, #8b93a1 );
}

/* ---------------------------- prominent style --------------------------- */

.wpiebs-stylebox {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 13px;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 10px;
}

.wpiebs-stylebox-top {
	display: flex;
	gap: 8px;
	align-items: center;
}

.wpiebs-stylebox-ic {
	display: inline-flex;
	color: var( --accent, #3b66ff );
}

.wpiebs-stylebox-t {
	font-size: 12.5px;
	font-weight: 600;
	color: var( --ed-text, #e6e8ee );
}

.wpiebs-stylebox-opt {
	margin-left: auto;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var( --ed-text-muted, #8b93a1 );
	text-transform: uppercase;
}

/* Banners are stacked (one per row) inside the batch queue. */
.wpiebs-qsection .wpiebs-grid {
	grid-template-columns: 1fr;
}

.wpiebs-stylehint {
	font-size: 11.5px;
	font-style: italic;
	color: var( --ed-text-muted, #8b93a1 );
}

/* ----------------------------- presets (v1.3) --------------------------- */

.wpiebs-presets {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 118px, 1fr ) );
	gap: 8px;
}

#wpie-root .wpiebs-preset {
	display: flex;
	flex-direction: column;
	gap: 7px;
	align-items: flex-start;
	padding: 10px 11px;
	color: var( --ed-text-dim, #b9c0cc );
	text-align: left;
	cursor: pointer;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 10px;
}

#wpie-root .wpiebs-preset:hover {
	color: var( --ed-text, #e6e8ee );
	border-color: var( --accent, #3b66ff );
}

.wpiebs-preset-ic {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: var( --accent, #3b66ff );
	background: var( --accent-soft, rgba( 59, 102, 255, 0.16 ) );
	border-radius: 8px;
}

.wpiebs-preset-ic svg {
	width: 15px;
	height: 15px;
}

.wpiebs-preset-t {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.2;
}

/* copy tones */
.wpiebs-tones {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#wpie-root .wpiebs-tone {
	padding: 5px 11px;
	font-size: 11.5px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 999px;
}

#wpie-root .wpiebs-tone:hover {
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-tone.active {
	color: #fff;
	background: var( --accent, #3b66ff );
	border-color: var( --accent, #3b66ff );
}

/* multi-source list */
.wpiebs-sourcelist {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#wpie-root .wpiebs-sourcex {
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-left: auto;
	color: var( --ed-text-muted, #8b93a1 );
	cursor: pointer;
	background: none;
	border: none;
	border-radius: 6px;
}

#wpie-root .wpiebs-sourcex:hover {
	color: #ff8a80;
	background: var( --ed-panel-alt, rgba( 255, 255, 255, 0.06 ) );
}

/* picker multi-select */
.wpiebs-picker-foot {
	display: flex;
	flex: none;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-top: 1px solid var( --ed-border, #333a44 );
}

#wpie-root .wpiebs-picktile.selected {
	border-color: var( --accent, #3b66ff );
	box-shadow: inset 0 0 0 1px var( --accent, #3b66ff );
}

.wpiebs-pickcheck {
	position: absolute;
	top: 6px;
	right: 6px;
	display: none;
	place-items: center;
	width: 20px;
	height: 20px;
	color: #fff;
	background: var( --accent, #3b66ff );
	border-radius: 50%;
}

.wpiebs-pickcheck svg {
	width: 12px;
	height: 12px;
}

#wpie-root .wpiebs-picktile.selected .wpiebs-pickcheck {
	display: grid;
}

/* queue group headers + batch bar */
.wpiebs-grouphead {
	padding: 8px 0 2px;
	font-size: 12px;
	font-weight: 700;
	color: var( --accent, #3b66ff );
}

.wpiebs-batchwrap:not( :empty ) {
	flex: none;
	padding: 10px 12px;
	border-bottom: 1px solid var( --ed-border, #333a44 );
}

.wpiebs-batchbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#wpie-root .wpiebs-batchbtn {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 7px 11px;
	font-size: 11.5px;
	color: var( --ed-text-dim, #b9c0cc );
	cursor: pointer;
	background: var( --ed-panel, #14171c );
	border: 1px solid var( --ed-border, #333a44 );
	border-radius: 8px;
}

#wpie-root .wpiebs-batchbtn:hover {
	color: var( --ed-text, #e6e8ee );
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiebs-batchbtn svg {
	width: 14px;
	height: 14px;
}
