.bigstep-ai-app {
	--bs-bg: #0d1016;
	--bs-surface: #161b24;
	--bs-surface-2: #1d2430;
	--bs-text: #f2f5fb;
	--bs-muted: #a6b0bf;
	--bs-line: #2b3444;
	--bs-accent: var(--wp--preset--color--primary, #6ea8ff);
	--bs-accent-ink: #091223;
	max-width: 1320px;
	margin: 16px auto;
	padding: 0 14px;
	color: var(--bs-text);
	font-family: inherit;
}

/* Final polish: text popup, support CTA, desktop tools, and compact AI loader. */
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-button--primary,
html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] {
  gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-button--primary svg,
html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] svg {
  flex: 0 0 auto !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box.is-generating .bigstep-ai-preview-placeholder {
  display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading {
  background:
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, .28), transparent 28%),
    linear-gradient(135deg, rgba(6, 10, 18, .88), rgba(8, 13, 24, .96)) !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading::before {
  inset: 24px !important;
  border-color: rgba(96, 165, 250, .18) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, .12) 1px, transparent 1px),
    radial-gradient(circle, rgba(96, 165, 250, .22) 1px, transparent 2px) !important;
  background-size: 22px 22px, 22px 22px, 28px 28px !important;
  animation: bigstep-ai-loader-grid 1.8s linear infinite !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading::after {
  left: 16% !important;
  right: 16% !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .7), rgba(125, 211, 252, 1), rgba(37, 99, 235, .7), transparent) !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, .72) !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse {
  width: 108px !important;
  height: 108px !important;
  border: 0 !important;
  border-radius: 32px !important;
  background:
    conic-gradient(from 0deg, transparent 0deg, #38bdf8 72deg, #2563eb 145deg, transparent 235deg, transparent 360deg) !important;
  box-shadow: 0 0 38px rgba(37, 99, 235, .38) !important;
  animation: bigstep-ai-core-spin 1.15s linear infinite !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::before {
  content: "" !important;
  position: absolute !important;
  inset: 10px !important;
  border: 1px solid rgba(191, 219, 254, .5) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 50% 50%, #bfdbfe 0 4px, transparent 5px),
    radial-gradient(circle at 28% 30%, rgba(56, 189, 248, .9) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 66%, rgba(96, 165, 250, .9) 0 3px, transparent 4px),
    #07101e !important;
  animation: bigstep-ai-core-counter 1.15s linear infinite !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  border: 1px solid rgba(56, 189, 248, .28) !important;
  border-radius: 38px !important;
  animation: bigstep-ai-ai-halo 1.6s ease-in-out infinite !important;
}

@keyframes bigstep-ai-core-spin {
  to { transform: rotate(360deg); }
}

@keyframes bigstep-ai-core-counter {
  to { transform: rotate(-360deg); }
}

@keyframes bigstep-ai-ai-halo {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: .9; transform: scale(1.08); }
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left [data-info-toggle] {
  display: none !important;
}

@media (min-width: 981px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-desktop-only[data-info-toggle] {
    display: grid !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-download-mockup {
    display: inline-flex !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
    display: flex !important;
    align-items: flex-end !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button[data-zalo-cta] {
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 16px !important;
    gap: 9px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button[data-zalo-cta] span {
    display: inline !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-download-mockup,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-desktop-only[data-info-toggle],
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
    display: none !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
    height: 82px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
    grid-template-rows: minmax(0, 1fr) 82px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
    height: 82px !important;
    min-height: 82px !important;
    padding: 10px 2px 9px !important;
    font-size: 11px !important;
    gap: 6px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool svg {
    width: 21px !important;
    height: 21px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
    z-index: 1000014 !important;
  }
}

/* Final visual correction pass requested after QA screenshots. */
html body .bigstep-ai-app[data-editor-mode="editor"] [hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] [data-element-section][hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-template-columns: 72px 340px !important;
	width: 412px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	grid-template-columns: 72px 340px minmax(0, 1fr) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	width: 72px !important;
	padding: 8px 5px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
	min-height: 54px !important;
	height: 54px !important;
	padding: 5px 2px !important;
	border-radius: 11px !important;
	font-size: 11px !important;
	gap: 4px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool svg {
	width: 15px !important;
	height: 15px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	width: 340px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left .bigstep-ai-editor-icon-button svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	color: #ffffff !important;
	fill: currentColor !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	display: grid !important;
	grid-template-columns: 46px 56px 46px !important;
	align-items: center !important;
	gap: 4px !important;
	width: auto !important;
	height: 42px !important;
	padding: 4px !important;
	border-radius: 999px !important;
	background: #111827 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
	width: 46px !important;
	height: 34px !important;
	min-height: 34px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	background: #1f2937 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
	min-width: 0 !important;
	width: 56px !important;
	text-align: center !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row {
	grid-template-columns: 44px minmax(0, 1fr) 30px 30px 30px !important;
	gap: 7px !important;
	padding: 8px !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row button {
	width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	position: fixed !important;
	right: 32px !important;
	bottom: 92px !important;
	top: auto !important;
	left: auto !important;
	z-index: 1000000 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
	min-height: 42px !important;
	padding: 0 18px !important;
	border-radius: 999px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid[data-editor-history-grid] {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 12px !important;
	max-height: none !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb {
	min-height: 132px !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb img {
	height: 118px !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
	width: min(860px, calc(100vw - 36px)) !important;
	padding: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
	grid-template-columns: 96px minmax(0, 1fr) !important;
	min-height: 116px !important;
	padding: 12px !important;
	border-radius: 16px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
	width: 96px !important;
	height: 96px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label {
	min-height: 48px !important;
	padding: 6px 12px !important;
	gap: 8px !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row input[type="radio"] {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button {
	display: grid !important;
	place-items: center !important;
	min-height: 72px !important;
	line-height: 1.15 !important;
	text-align: center !important;
}

html body .bigstep-ai-single-product-button {
	margin: 0 0 12px 0 !important;
	background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
	font-size: 14px !important;
	text-transform: none !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
		grid-template-columns: 1fr !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
		grid-template-columns: 84px minmax(0, 1fr) !important;
		min-height: 100px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
		width: 84px !important;
		height: 84px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		display: none !important;
	}
}

/* Critical interaction fixes. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-empty {
	pointer-events: none !important;
	z-index: 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .canvas-container,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .lower-canvas,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .upper-canvas {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .upper-canvas {
	z-index: 6 !important;
	pointer-events: auto !important;
	cursor: move !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-open {
	display: grid !important;
	gap: 4px !important;
	width: 100% !important;
	margin-bottom: 14px !important;
	padding: 14px !important;
	border: 1px solid #38bdf8 !important;
	border-radius: 14px !important;
	background: #111827 !important;
	color: #ffffff !important;
	text-align: left !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-open span {
	color: var(--bs-muted) !important;
	font-size: 12px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-open strong {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
	position: fixed !important;
	inset: 72px auto auto 50% !important;
	z-index: 1000001 !important;
	width: min(680px, calc(100vw - 32px)) !important;
	max-height: calc(100dvh - 104px) !important;
	padding: 18px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 20px !important;
	background: #10141f !important;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65) !important;
	transform: translateX(-50%) !important;
	overflow: hidden auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	max-height: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-product-picker-close] {
	width: 34px !important;
	height: 34px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 999px !important;
	background: #171b25 !important;
	color: #ffffff !important;
	font-size: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 10px !important;
	margin-bottom: 14px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button {
	min-height: 72px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 14px !important;
	background: #151923 !important;
	color: #ffffff !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button.is-active {
	border-color: #38bdf8 !important;
	background: rgba(59, 130, 246, 0.18) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
	display: flex !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	display: block !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions[hidden] {
	display: none !important;
}

html body .bigstep-ai-single-product-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	margin: 0 0 10px 8px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
	color: #ffffff !important;
	font-weight: 900 !important;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32) !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]),
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) {
		display: block !important;
		z-index: 80 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions,
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		display: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
		inset: 64px 10px auto 10px !important;
		width: auto !important;
		transform: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Last-mile overrides: keep the editor modal and Fabric canvas geometry intact. */
html body .bigstep-ai-app[data-editor-mode="editor"] {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	width: 100vw !important;
	height: 100dvh !important;
	max-width: none !important;
	margin: 0 !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	grid-template-columns: 80px 350px minmax(0, 1fr) !important;
	height: calc(100dvh - 60px) !important;
	max-height: calc(100dvh - 60px) !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-column: 1 / 3 !important;
	display: grid !important;
	grid-template-columns: 80px 350px !important;
	width: 430px !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	grid-column: 1 !important;
	width: 80px !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	grid-column: 2 !important;
	position: static !important;
	width: 350px !important;
	height: 100% !important;
	max-height: 100% !important;
	overflow: hidden auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel[hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 3 !important;
	grid-row: 1 !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
	width: min(var(--bigstep-editor-size), calc(100dvh - 190px), calc(100vw - 526px)) !important;
	transform: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover {
	display: none !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		grid-template-columns: 1fr !important;
		grid-template-rows: minmax(0, 1fr) auto !important;
		height: calc(100dvh - 58px) !important;
		max-height: calc(100dvh - 58px) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		display: block !important;
		width: 100vw !important;
		height: auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
		display: grid !important;
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
		width: 100vw !important;
		height: 72px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 72px !important;
		width: 100vw !important;
		height: min(52dvh, 430px) !important;
		max-height: min(52dvh, 430px) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		grid-column: 1 !important;
		grid-row: 1 !important;
		padding: 8px 8px 86px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
		width: min(94vw, calc(100dvh - 210px)) !important;
	}
}

/* QA final overrides - keep this block last. */
html body .bigstep-ai-app[data-editor-mode="editor"] [hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] [data-element-section][hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-template-columns: 72px 340px !important;
	width: 412px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	grid-template-columns: 72px 340px minmax(0, 1fr) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	width: 72px !important;
	padding: 8px 5px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
	min-height: 54px !important;
	height: 54px !important;
	padding: 5px 2px !important;
	border-radius: 11px !important;
	font-size: 11px !important;
	gap: 4px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	width: 340px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left .bigstep-ai-editor-icon-button svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	color: #ffffff !important;
	fill: currentColor !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	display: grid !important;
	grid-template-columns: 46px 56px 46px !important;
	align-items: center !important;
	gap: 4px !important;
	width: auto !important;
	height: 42px !important;
	padding: 4px !important;
	border-radius: 999px !important;
	background: #111827 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
	width: 46px !important;
	height: 34px !important;
	min-height: 34px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	background: #1f2937 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
	min-width: 0 !important;
	width: 56px !important;
	text-align: center !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row {
	grid-template-columns: 44px minmax(0, 1fr) 30px 30px 30px !important;
	gap: 7px !important;
	padding: 8px !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row button {
	width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	position: fixed !important;
	right: 32px !important;
	bottom: 92px !important;
	top: auto !important;
	left: auto !important;
	z-index: 1000000 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
	min-height: 42px !important;
	padding: 0 18px !important;
	border-radius: 999px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid[data-editor-history-grid] {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 12px !important;
	max-height: none !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb {
	min-height: 132px !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb img {
	height: 118px !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
	width: min(860px, calc(100vw - 36px)) !important;
	padding: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
	grid-template-columns: 96px minmax(0, 1fr) !important;
	min-height: 116px !important;
	padding: 12px !important;
	border-radius: 16px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
	width: 96px !important;
	height: 96px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label {
	min-height: 48px !important;
	padding: 6px 12px !important;
	gap: 8px !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row input[type="radio"] {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button {
	display: grid !important;
	place-items: center !important;
	min-height: 72px !important;
	line-height: 1.15 !important;
	text-align: center !important;
}

html body .bigstep-ai-single-product-button {
	margin: 0 0 12px 0 !important;
	background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
	font-size: 14px !important;
	text-transform: none !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
		grid-template-columns: 1fr !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
		grid-template-columns: 84px minmax(0, 1fr) !important;
		min-height: 100px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
		width: 84px !important;
		height: 84px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		display: none !important;
	}
}

/* Absolute final visual correction pass requested after QA screenshots. */
html body .bigstep-ai-app[data-editor-mode="editor"] [hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] [data-element-section][hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-template-columns: 72px 340px !important;
	width: 412px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	grid-template-columns: 72px 340px minmax(0, 1fr) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	width: 72px !important;
	padding: 8px 5px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
	min-height: 54px !important;
	height: 54px !important;
	padding: 5px 2px !important;
	border-radius: 11px !important;
	font-size: 11px !important;
	gap: 4px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	width: 340px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left .bigstep-ai-editor-icon-button svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	color: #ffffff !important;
	fill: currentColor !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	display: grid !important;
	grid-template-columns: 46px 56px 46px !important;
	align-items: center !important;
	gap: 4px !important;
	width: auto !important;
	height: 42px !important;
	padding: 4px !important;
	border-radius: 999px !important;
	background: #111827 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
	width: 46px !important;
	height: 34px !important;
	min-height: 34px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	background: #1f2937 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
	min-width: 0 !important;
	width: 56px !important;
	text-align: center !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row {
	grid-template-columns: 44px minmax(0, 1fr) 30px 30px 30px !important;
	gap: 7px !important;
	padding: 8px !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row button {
	width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	position: fixed !important;
	right: 32px !important;
	bottom: 92px !important;
	top: auto !important;
	left: auto !important;
	z-index: 1000000 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
	min-height: 42px !important;
	padding: 0 18px !important;
	border-radius: 999px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid[data-editor-history-grid] {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 12px !important;
	max-height: none !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb {
	min-height: 132px !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb img {
	height: 118px !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
	width: min(860px, calc(100vw - 36px)) !important;
	padding: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
	grid-template-columns: 96px minmax(0, 1fr) !important;
	min-height: 116px !important;
	padding: 12px !important;
	border-radius: 16px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
	width: 96px !important;
	height: 96px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label {
	min-height: 48px !important;
	padding: 6px 12px !important;
	gap: 8px !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row input[type="radio"] {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button {
	display: grid !important;
	place-items: center !important;
	min-height: 72px !important;
	line-height: 1.15 !important;
	text-align: center !important;
}

html body .bigstep-ai-single-product-button {
	margin: 0 0 12px 0 !important;
	background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
	font-size: 14px !important;
	text-transform: none !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
		grid-template-columns: 1fr !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
		grid-template-columns: 84px minmax(0, 1fr) !important;
		min-height: 100px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
		width: 84px !important;
		height: 84px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		display: none !important;
	}
}

/* Absolute final interaction fixes. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-empty {
	pointer-events: none !important;
	z-index: 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .canvas-container,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .lower-canvas,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .upper-canvas {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .upper-canvas {
	z-index: 6 !important;
	pointer-events: auto !important;
	cursor: move !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-open {
	display: grid !important;
	gap: 4px !important;
	width: 100% !important;
	margin-bottom: 14px !important;
	padding: 14px !important;
	border: 1px solid #38bdf8 !important;
	border-radius: 14px !important;
	background: #111827 !important;
	color: #ffffff !important;
	text-align: left !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
	position: fixed !important;
	inset: 72px auto auto 50% !important;
	z-index: 1000001 !important;
	width: min(680px, calc(100vw - 32px)) !important;
	max-height: calc(100dvh - 104px) !important;
	padding: 18px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 20px !important;
	background: #10141f !important;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65) !important;
	transform: translateX(-50%) !important;
	overflow: hidden auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	max-height: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-product-picker-close] {
	width: 34px !important;
	height: 34px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 999px !important;
	background: #171b25 !important;
	color: #ffffff !important;
	font-size: 22px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 10px !important;
	margin-bottom: 14px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button {
	min-height: 72px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 14px !important;
	background: #151923 !important;
	color: #ffffff !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button.is-active {
	border-color: #38bdf8 !important;
	background: rgba(59, 130, 246, 0.18) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
	display: flex !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	display: block !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions[hidden] {
	display: none !important;
}

html body .bigstep-ai-single-product-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	margin: 0 0 10px 8px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
	color: #ffffff !important;
	font-weight: 900 !important;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32) !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]),
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) {
		display: block !important;
		z-index: 80 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions,
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		display: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
		inset: 64px 10px auto 10px !important;
		width: auto !important;
		transform: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
		grid-template-columns: 1fr !important;
	}
}

.bigstep-ai-app * { box-sizing: border-box; }

.bigstep-ai-generator-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
}

.bigstep-ai-generator-left,
.bigstep-ai-generator-right,
.bigstep-ai-editor-sidebar,
.bigstep-ai-editor-tools,
.bigstep-ai-editor-canvas-area {
	background: var(--bs-surface);
	border: 1px solid var(--bs-line);
	border-radius: 10px;
	padding: 14px;
}

.bigstep-ai-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.bigstep-ai-brand-logo { max-height: 36px; width: auto; display: block; }
.bigstep-ai-brand-text { font-size: 22px; font-weight: 800; }

.bigstep-ai-generator-form { display: grid; gap: 10px; }
.bigstep-ai-generator-form label { font-size: 14px; font-weight: 700; }

.bigstep-ai-generator-form textarea,
.bigstep-ai-editor-shell select,
.bigstep-ai-editor-shell input {
	width: 100%;
	min-height: 40px;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	background: var(--bs-surface-2);
	color: var(--bs-text);
	padding: 10px;
	font: inherit;
}

.bigstep-ai-generator-form textarea { min-height: 130px; resize: vertical; }
.bigstep-ai-typing { min-height: 20px; color: var(--bs-muted); font-size: 13px; }

.bigstep-ai-style-chips {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.bigstep-ai-button,
.bigstep-ai-tool,
.bigstep-ai-history-toggle,
.bigstep-ai-style-chips button,
.bigstep-ai-side-tabs button,
.bigstep-ai-top-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	background: var(--bs-surface-2);
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bigstep-ai-button:hover,
.bigstep-ai-tool:hover,
.bigstep-ai-history-toggle:hover,
.bigstep-ai-style-chips button:hover,
.bigstep-ai-side-tabs button:hover,
.bigstep-ai-top-button:hover { transform: translateY(-1px); }

.bigstep-ai-style-chips button.is-active,
.bigstep-ai-side-tabs button.is-active,
.bigstep-ai-swatch.is-active {
	border-color: var(--bs-accent);
	background: color-mix(in srgb, var(--bs-accent) 20%, var(--bs-surface-2));
}

.bigstep-ai-button--primary {
	border-color: var(--bs-accent);
	background: var(--bs-accent);
	color: var(--bs-accent-ink);
}

.bigstep-ai-preview-box {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--bs-line);
	border-radius: 10px;
	background: #0f141d;
	overflow: hidden;
	display: grid;
	place-items: center;
}

.bigstep-ai-preview-box img { width: 100%; height: 100%; object-fit: contain; }
.bigstep-ai-preview-placeholder { color: var(--bs-muted); text-align: center; padding: 0 16px; }
.bigstep-ai-preview-loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	gap: 10px;
	background: rgba(13, 16, 22, 0.7);
}

.bigstep-ai-pulse {
	width: 60px;
	height: 60px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bs-accent) 25%, transparent);
	animation: bigstep-ai-pulse 1.2s ease-in-out infinite;
}

.bigstep-ai-generator-actions { display: grid; gap: 10px; margin-top: 12px; }
.bigstep-ai-zalo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	text-decoration: none;
	background: var(--bs-surface-2);
	color: inherit;
	font-weight: 700;
}

.bigstep-ai-history { margin-top: 14px; }
.bigstep-ai-history-panel { margin-top: 10px; }
.bigstep-ai-history-panel p { margin: 0 0 10px; font-size: 12px; color: var(--bs-muted); }

.bigstep-ai-history-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.bigstep-ai-history-item {
	width: 100%;
	background: #101620;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	padding: 6px;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.bigstep-ai-history-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.bigstep-ai-history-item span {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: var(--bs-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bigstep-ai-editor-shell {
	background: var(--bs-bg);
	border: 1px solid var(--bs-line);
	border-radius: 12px;
	padding: 10px;
}

.bigstep-ai-editor-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--bs-surface);
	border: 1px solid var(--bs-line);
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 10px;
}

.bigstep-ai-editor-left,
.bigstep-ai-editor-right { display: flex; align-items: center; gap: 8px; }

.bigstep-ai-price-pill {
	display: grid;
	padding: 8px 10px;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	background: var(--bs-surface-2);
}
.bigstep-ai-price-pill span { font-size: 11px; color: var(--bs-muted); }
.bigstep-ai-price-pill strong { font-size: 15px; }

.bigstep-ai-editor-main {
	display: grid;
	grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(250px, 320px);
	gap: 10px;
}

.bigstep-ai-fields { display: grid; gap: 10px; }
.bigstep-ai-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.bigstep-ai-hidden-native { display: none !important; }

.bigstep-ai-field-block > span {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
}

.bigstep-ai-swatch-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.bigstep-ai-swatch {
	min-height: 38px;
	background: #101620;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 8px;
}

.bigstep-ai-swatch-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.4);
}

.bigstep-ai-size-qty-grid {
	display: grid;
	gap: 8px;
}

.bigstep-ai-size-qty-row {
	display: grid;
	grid-template-columns: minmax(42px, 1fr) 34px 58px 34px;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 6px;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	background: #101620;
}

.bigstep-ai-size-qty-row span {
	font-weight: 800;
}

.bigstep-ai-size-qty-row button {
	width: 34px;
	height: 30px;
	border: 1px solid var(--bs-line);
	border-radius: 6px;
	background: var(--bs-surface-2);
	color: inherit;
	cursor: pointer;
	font-weight: 800;
}

.bigstep-ai-size-qty-row input {
	min-height: 30px;
	padding: 4px;
	text-align: center;
}

.bigstep-ai-breakdown { margin-top: 10px; font-size: 12px; color: var(--bs-muted); }
.bigstep-ai-status { min-height: 20px; margin-top: 10px; font-size: 13px; }
.bigstep-ai-status[data-type="error"] { color: #ff6e8a; }

.bigstep-ai-canvas-wrap {
	position: relative;
	width: min(100%, 760px);
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--bs-line);
	border-radius: 10px;
	background: #0f141d;
	overflow: hidden;
}

.bigstep-ai-canvas-wrap canvas,
.bigstep-ai-canvas-wrap .canvas-container {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.bigstep-ai-empty {
	position: absolute;
	inset: auto 10px 10px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 12px;
}

.bigstep-ai-side-tabs--bottom { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bigstep-ai-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bigstep-ai-tool-grid--menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bigstep-ai-tool--remove-bg {
	border-color: color-mix(in srgb, var(--bs-accent) 70%, var(--bs-line));
	background: color-mix(in srgb, var(--bs-accent) 22%, var(--bs-surface-2));
}
.bigstep-ai-tool-panel { margin-top: 8px; display: grid; gap: 8px; }
.bigstep-ai-font-panel { margin-top: 8px; display: grid; gap: 8px; }

.bigstep-ai-text-popup {
	margin-top: 8px;
	padding: 10px;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	background: #111826;
	display: grid;
	gap: 8px;
}

.bigstep-ai-text-popup strong { font-size: 12px; }
.bigstep-ai-text-popup label { display: grid; gap: 4px; font-size: 12px; }

.bigstep-ai-guide { margin-top: 10px; }
.bigstep-ai-guide summary { cursor: pointer; font-weight: 700; }
.bigstep-ai-guide p { margin: 8px 0 0; font-size: 12px; color: var(--bs-muted); }

.bigstep-ai-context-menu {
	position: fixed;
	z-index: 999999;
	display: grid;
	min-width: 150px;
	background: #0f1621;
	border: 1px solid var(--bs-line);
	border-radius: 8px;
	overflow: hidden;
}

.bigstep-ai-context-menu[hidden] { display: none; }
.bigstep-ai-context-menu button {
	border: 0;
	border-bottom: 1px solid var(--bs-line);
	background: transparent;
	color: inherit;
	padding: 10px 12px;
	text-align: left;
	cursor: pointer;
}
.bigstep-ai-context-menu button:hover { background: #1b2433; }

.bigstep-ai-loading {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	place-items: center;
	background: rgba(0,0,0,.55);
}

.bigstep-ai-loading[hidden] { display: none; }
.bigstep-ai-loading-box {
	width: min(420px, calc(100vw - 24px));
	border-radius: 10px;
	border: 1px solid var(--bs-line);
	background: var(--bs-surface);
	padding: 20px;
	text-align: center;
}

.bigstep-ai-spinner {
	display: inline-block;
	width: 42px;
	height: 42px;
	border: 3px solid rgba(255,255,255,.2);
	border-top-color: var(--bs-accent);
	border-radius: 999px;
	animation: bigstep-ai-spin .9s linear infinite;
}

@keyframes bigstep-ai-spin { to { transform: rotate(360deg); } }
@keyframes bigstep-ai-pulse {
	0%,100% { transform: scale(.75); opacity:.5; }
	50% { transform: scale(1); opacity:1; }
}

@media (max-width: 1080px) {
	.bigstep-ai-editor-main { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.bigstep-ai-generator-layout { grid-template-columns: 1fr; }
	.bigstep-ai-style-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bigstep-ai-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bigstep-ai-editor-topbar { flex-wrap: wrap; }
	.bigstep-ai-editor-right { width: 100%; justify-content: space-between; }
}

/* BigStep dark generator: keep this block late so theme form styles cannot turn it light. */
.bigstep-ai-app[data-editor-mode="compact"] {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 34px 16px;
	background: #020204 !important;
	color: #f8fafc !important;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px;
	border: 1px solid #222633;
	border-radius: 22px;
	background: #0b0b0e !important;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-left,
.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-right {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-brand {
	margin-bottom: 18px;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-brand-text {
	font-size: 34px;
	font-weight: 900;
	color: #ffffff !important;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-form::before {
	content: "Tạo thiết kế áo tự động với AI";
	display: block;
	margin-bottom: 6px;
	color: #ffffff;
	font-size: 34px;
	font-weight: 900;
	line-height: 1.12;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-form::after {
	content: none;
	display: none;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-form label {
	margin-top: 12px;
	color: #ffffff !important;
	font-size: 14px;
}

.bigstep-ai-app[data-editor-mode="compact"] textarea,
.bigstep-ai-app[data-editor-mode="compact"] input,
.bigstep-ai-app[data-editor-mode="compact"] select {
	border-color: #2a2e38 !important;
	background: #15171d !important;
	color: #f8fafc !important;
	box-shadow: none !important;
}

.bigstep-ai-app[data-editor-mode="compact"] textarea {
	min-height: 110px;
	border-radius: 14px;
	font-size: 15px;
}

.bigstep-ai-app[data-editor-mode="compact"] textarea::placeholder {
	color: #8992a3;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-typing {
	color: #9aa4b5;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-style-chips button,
.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-toggle,
.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-zalo {
	min-height: 38px;
	border: 1px solid #2b303b !important;
	border-radius: 999px;
	background: #12141a !important;
	color: #cbd5e1 !important;
	padding: 0 16px;
	font-size: 14px;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-style-chips button.is-active {
	border-color: #3b82f6 !important;
	background: #17233a !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-button--primary {
	min-height: 48px;
	border: 0 !important;
	border-radius: 12px;
	background: #3b82f6 !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 900;
	text-transform: uppercase;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box {
	min-height: 568px;
	border: 1px solid #1e2330 !important;
	border-radius: 18px;
	background-color: #06070b !important;
	background-image: radial-gradient(#182033 1px, transparent 1px);
	background-size: 20px 20px;
	box-shadow: inset 0 0 0 10px #05060a;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box::before,
.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border-color: #2f3a50;
	pointer-events: none;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box::before {
	top: 22px;
	left: 22px;
	border-top: 3px solid;
	border-left: 3px solid;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box::after {
	right: 22px;
	bottom: 22px;
	border-right: 3px solid;
	border-bottom: 3px solid;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-placeholder {
	max-width: 320px;
	color: #697386 !important;
	font-weight: 800;
	text-transform: uppercase;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-placeholder::before {
	content: "⊗";
	display: block;
	margin-bottom: 18px;
	color: #39445a;
	font-size: 48px;
	line-height: 1;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-placeholder::after {
	content: "Nhập ý tưởng & chọn phong cách để dệt hình in lên áo";
	display: block;
	margin-top: 12px;
	color: #4f5b70;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #1f2430;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-panel {
	max-height: 230px;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid #202634;
	border-radius: 14px;
	background: #0f1218 !important;
	overflow: auto;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-item {
	min-width: 0;
	height: auto;
	padding: 8px;
	border-color: #252b38 !important;
	background: #151922 !important;
	overflow: hidden;
}

.bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}

/* NBDesigner-like editor shell. */
.bigstep-ai-app[data-editor-mode="editor"] {
	width: 100%;
	max-width: none;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background: #f5f6f8 !important;
	color: #111827 !important;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-shell {
	min-height: 100vh;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f5f6f8 !important;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	background: #ffffff !important;
	color: #101828;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	min-height: calc(100vh - 52px);
	display: grid;
	grid-template-columns: 74px 344px minmax(0, 1fr);
	gap: 0;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 20;
	padding: 14px 8px;
	border: 0;
	border-radius: 0;
	background: #08031a !important;
	color: #ffffff !important;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar {
	grid-column: 2;
	grid-row: 1;
	border: 0;
	border-right: 1px solid #d8dee8;
	border-radius: 0;
	background: #d7dee7 !important;
	color: #172033 !important;
	overflow: auto;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 3;
	grid-row: 1;
	display: grid;
	place-items: center;
	align-content: center;
	border: 0;
	border-radius: 0;
	background: #f7f7f8 !important;
	overflow: auto;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool {
	min-height: 52px;
	padding: 8px 6px;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: inherit !important;
	flex-direction: column;
	gap: 5px;
	font-size: 11px;
	line-height: 1.15;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool:hover,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool--remove-bg {
	background: rgba(255, 255, 255, 0.12) !important;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-font-panel,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-guide,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zalo {
	position: fixed;
	left: 86px;
	top: 68px;
	z-index: 40;
	width: 320px;
	max-height: calc(100vh - 92px);
	padding: 14px;
	border: 1px solid #cfd6e1;
	border-radius: 8px;
	background: #ffffff !important;
	color: #111827 !important;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
	overflow: auto;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-font-panel,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-guide,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zalo {
	position: static;
	width: auto;
	max-height: none;
	margin-top: 12px;
	box-shadow: none;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid:not(.bigstep-ai-tool-grid--menu) {
	margin-top: 18px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
	width: min(72vw, 750px);
	border: 0;
	border-radius: 0;
	background: #ffffff !important;
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom {
	width: min(72vw, 420px);
	margin: 14px auto 0;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-fields select,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-fields input,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch,
.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row {
	border-color: #c6cedb !important;
	background: #ffffff !important;
	color: #111827 !important;
}

.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-button--primary {
	border-color: #08031a !important;
	background: #08031a !important;
	color: #ffffff !important;
}

@media (max-width: 980px) {
	.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar,
	.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		grid-column: 2;
	}

	.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar {
		grid-row: 1;
		max-height: 42vh;
	}

	.bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		grid-row: 2;
	}
}

/* Final hard override for the homepage generator. This intentionally beats theme button/form/card CSS. */
html body .bigstep-ai-app[data-editor-mode="compact"],
html body .entry-content .bigstep-ai-app[data-editor-mode="compact"],
html body .wp-site-blocks .bigstep-ai-app[data-editor-mode="compact"] {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 34px 16px !important;
	background: #000000 !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
	gap: 40px !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 30px !important;
	border: 1px solid #24262d !important;
	border-radius: 22px !important;
	background: #0b0b0d !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-left,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-right {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-form label,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-brand-text {
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] textarea,
html body .bigstep-ai-app[data-editor-mode="compact"] input,
html body .bigstep-ai-app[data-editor-mode="compact"] select {
	background: #15161b !important;
	color: #ffffff !important;
	border: 1px solid #2a2d36 !important;
	box-shadow: none !important;
	outline: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-style-chips button,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-toggle,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-zalo {
	background: #121318 !important;
	color: #d8dee9 !important;
	border: 1px solid #2a2d36 !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-button--primary {
	background: #3b82f6 !important;
	color: #ffffff !important;
	border-color: #3b82f6 !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box {
	background-color: #05060a !important;
	background-image: radial-gradient(#172033 1px, transparent 1px) !important;
	background-size: 20px 20px !important;
	border: 1px solid #1f2532 !important;
	color: #697386 !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-panel {
	background: #0e1118 !important;
	border: 1px solid #222733 !important;
	max-height: 230px !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-item {
	background: #151922 !important;
	border-color: #252b38 !important;
	color: #ffffff !important;
	overflow: hidden !important;
}

@media (max-width: 860px) {
	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-layout {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
		padding: 18px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Final hard override for the production editor. */
html body .bigstep-ai-app[data-editor-mode="editor"] {
	--bs-bg: #05060a;
	--bs-surface: #0c0d12;
	--bs-surface-2: #12151d;
	--bs-surface-3: #171b25;
	--bs-text: #f8fafc;
	--bs-muted: #97a3b6;
	--bs-line: #262b38;
	--bs-accent: var(--wp--preset--color--primary, #3b82f6);
	--bs-blue: #38bdf8;
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--bs-bg) !important;
	color: var(--bs-text) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-shell {
	min-height: 100vh !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--bs-bg) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar {
	position: sticky !important;
	top: 0 !important;
	z-index: 80 !important;
	height: 56px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--bs-line) !important;
	border-radius: 0 !important;
	background: rgba(8, 9, 14, 0.96) !important;
	color: var(--bs-text) !important;
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	min-height: calc(100vh - 56px) !important;
	display: grid !important;
	grid-template-columns: 76px 330px minmax(0, 1fr) !important;
	gap: 0 !important;
	background: var(--bs-bg) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-column: 1 !important;
	grid-row: 1 !important;
	position: sticky !important;
	top: 56px !important;
	z-index: 45 !important;
	height: calc(100vh - 56px) !important;
	padding: 12px 8px !important;
	border: 0 !important;
	border-right: 1px solid var(--bs-line) !important;
	border-radius: 0 !important;
	background: #070414 !important;
	color: #ffffff !important;
	overflow: visible !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid:not(.bigstep-ai-tool-grid--menu) {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool {
	min-height: 52px !important;
	padding: 8px 6px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: inherit !important;
	display: inline-flex !important;
	flex-direction: column !important;
	gap: 5px !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool:hover,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool:focus {
	background: rgba(59, 130, 246, 0.16) !important;
	border-color: rgba(56, 189, 248, 0.32) !important;
	transform: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	position: fixed !important;
	left: 88px !important;
	top: 72px !important;
	z-index: 90 !important;
	width: 340px !important;
	max-height: calc(100vh - 96px) !important;
	padding: 16px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 14px !important;
	background: #10131b !important;
	color: var(--bs-text) !important;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48) !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar {
	grid-column: 2 !important;
	grid-row: 1 !important;
	padding: 16px !important;
	border: 0 !important;
	border-right: 1px solid var(--bs-line) !important;
	border-radius: 0 !important;
	background: #0f121a !important;
	color: var(--bs-text) !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-fields--editor {
	display: grid !important;
	gap: 16px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-fields--editor label,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-field-block > span,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-order-mode > span {
	display: block !important;
	margin: 0 0 8px !important;
	color: #f8fafc !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	letter-spacing: 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] select,
html body .bigstep-ai-app[data-editor-mode="editor"] input[type="text"],
html body .bigstep-ai-app[data-editor-mode="editor"] input[type="number"],
html body .bigstep-ai-app[data-editor-mode="editor"] input[type="file"] {
	border: 1px solid var(--bs-line) !important;
	border-radius: 10px !important;
	background: #151923 !important;
	color: var(--bs-text) !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch-grid {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row {
	min-height: 42px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 10px !important;
	background: #151923 !important;
	color: var(--bs-text) !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 0 12px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch {
	padding: 0 12px !important;
	font-weight: 800 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch.is-active {
	border-color: var(--bs-blue) !important;
	background: rgba(59, 130, 246, 0.18) !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-grid {
	display: grid !important;
	gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row {
	display: grid !important;
	grid-template-columns: 44px 34px minmax(52px, 1fr) 34px !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row button {
	width: 34px !important;
	height: 34px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #202637 !important;
	color: #ffffff !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row input {
	min-height: 34px !important;
	padding: 0 !important;
	text-align: center !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 3 !important;
	grid-row: 1 !important;
	display: grid !important;
	place-items: center !important;
	align-content: center !important;
	gap: 14px !important;
	min-width: 0 !important;
	padding: 28px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: radial-gradient(circle at center, #151821 0, #090a0f 58%, #05060a 100%) !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
	width: min(76vh, 72vw, 760px) !important;
	max-width: calc(100vw - 120px) !important;
	aspect-ratio: 1 / 1 !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45) !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap canvas {
	width: 100% !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom {
	width: auto !important;
	margin: 0 auto !important;
	padding: 4px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 999px !important;
	background: #11141d !important;
	display: inline-flex !important;
	gap: 4px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom button {
	border-radius: 999px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--bs-muted) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom button.is-active {
	background: var(--bs-accent) !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
	position: fixed !important;
	right: 22px !important;
	top: 76px !important;
	z-index: 95 !important;
	width: 320px !important;
	max-height: calc(100vh - 100px) !important;
	display: grid !important;
	gap: 12px !important;
	padding: 16px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 16px !important;
	background: #10131b !important;
	color: var(--bs-text) !important;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5) !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-actions {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup .bigstep-ai-tool {
	min-height: 38px !important;
	border-color: var(--bs-line) !important;
	background: #171b25 !important;
	flex-direction: row !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	position: fixed !important;
	right: 92px !important;
	bottom: 24px !important;
	z-index: 92 !important;
	display: block !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	min-height: 44px !important;
	padding: 0 16px !important;
	border: 1px solid rgba(56, 189, 248, 0.38) !important;
	border-radius: 999px !important;
	background: #0f172a !important;
	color: #ffffff !important;
	font-weight: 900 !important;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
	position: fixed !important;
	right: 24px !important;
	bottom: 24px !important;
	z-index: 91 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-floating-actions,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-layer-actions,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-help-popover {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button {
	width: 48px !important;
	height: 48px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid rgba(56, 189, 248, 0.28) !important;
	border-radius: 999px !important;
	background: #111827 !important;
	color: #ffffff !important;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34) !important;
	text-decoration: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button:hover {
	background: var(--bs-accent) !important;
	transform: translateY(-1px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover {
	position: fixed !important;
	right: 84px !important;
	bottom: 88px !important;
	z-index: 94 !important;
	width: min(320px, calc(100vw - 120px)) !important;
	padding: 14px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 14px !important;
	background: #10131b !important;
	color: var(--bs-text) !important;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill {
	border: 1px solid var(--bs-line) !important;
	border-radius: 12px !important;
	background: #151923 !important;
	color: var(--bs-text) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-button--primary {
	border-color: var(--bs-accent) !important;
	background: var(--bs-accent) !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-breakdown {
	margin-top: 12px !important;
	color: var(--bs-muted) !important;
	font-size: 12px !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar {
		height: auto !important;
		min-height: 58px !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
		padding: 8px 10px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		display: flex !important;
		flex-direction: column !important;
		min-height: auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
		order: 1 !important;
		position: sticky !important;
		top: 0 !important;
		height: auto !important;
		padding: 8px !important;
		border-right: 0 !important;
		border-bottom: 1px solid var(--bs-line) !important;
		overflow-x: auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
		display: flex !important;
		min-width: max-content !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
		min-width: 74px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar {
		order: 2 !important;
		max-height: none !important;
		border-right: 0 !important;
		border-bottom: 1px solid var(--bs-line) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		order: 3 !important;
		min-height: 58vh !important;
		padding: 16px 10px 96px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
		width: min(94vw, 620px) !important;
		max-width: 94vw !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel,
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
		left: 12px !important;
		right: 12px !important;
		top: auto !important;
		bottom: 82px !important;
		width: auto !important;
		max-height: 58vh !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
		right: 14px !important;
		bottom: 14px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		right: 76px !important;
		bottom: 16px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover {
		right: 70px !important;
		bottom: 76px !important;
		width: calc(100vw - 92px) !important;
	}
}

/* Editor refinements after field/panel split. */
html body .bigstep-ai-app[data-editor-mode="editor"],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-shell {
	height: 100vh !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	height: calc(100vh - 56px) !important;
	min-height: 0 !important;
	grid-template-columns: 76px minmax(0, 1fr) !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 2 !important;
	grid-row: 1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel {
	position: fixed !important;
	left: 76px !important;
	top: 56px !important;
	bottom: 0 !important;
	z-index: 72 !important;
	width: 348px !important;
	max-height: none !important;
	padding: 16px !important;
	border: 0 !important;
	border-right: 1px solid var(--bs-line) !important;
	border-radius: 0 !important;
	background: #10131b !important;
	color: var(--bs-text) !important;
	box-shadow: 18px 0 42px rgba(0, 0, 0, 0.28) !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-hidden-native {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left {
	min-width: 150px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right {
	margin-left: auto !important;
	min-width: 0 !important;
	max-width: min(420px, 48vw) !important;
	justify-content: flex-end !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill {
	min-width: 128px !important;
	max-width: 170px !important;
	padding: 8px 10px !important;
	white-space: normal !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill span {
	font-size: 10px !important;
	line-height: 1.1 !important;
	white-space: nowrap !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill strong {
	display: block !important;
	font-size: 16px !important;
	line-height: 1.15 !important;
	white-space: nowrap !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: min(76vh, 72vw, 760px) !important;
	max-width: calc(100vw - 120px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions .bigstep-ai-top-button {
	min-height: 36px !important;
	border-color: var(--bs-line) !important;
	background: #111827 !important;
	color: #dbeafe !important;
	gap: 6px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	position: fixed !important;
	left: 76px !important;
	top: 56px !important;
	bottom: 0 !important;
	z-index: 70 !important;
	width: 348px !important;
	max-height: none !important;
	border-radius: 0 !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
	box-shadow: 18px 0 42px rgba(0, 0, 0, 0.28) !important;
	display: grid !important;
	align-content: start !important;
	gap: 14px !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-section {
	display: grid !important;
	gap: 10px !important;
	margin-top: 16px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-section strong,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup strong {
	font-size: 13px !important;
	font-weight: 900 !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-thumb {
	display: grid !important;
	gap: 6px !important;
	padding: 8px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 12px !important;
	background: #151923 !important;
	color: #ffffff !important;
	text-align: left !important;
	cursor: pointer !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-thumb img {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
	border-radius: 8px !important;
	background: #0b0d13 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-thumb span {
	font-size: 11px !important;
	line-height: 1.25 !important;
	color: var(--bs-muted) !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-empty-note {
	margin: 0 !important;
	color: var(--bs-muted) !important;
	font-size: 12px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] textarea[data-editor-ai-prompt] {
	width: 100% !important;
	min-height: 110px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 12px !important;
	background: #151923 !important;
	color: #ffffff !important;
	padding: 12px !important;
	font: inherit !important;
	resize: vertical !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool--primary,
html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-ai-generate] {
	width: 100% !important;
	min-height: 44px !important;
	border-color: var(--bs-accent) !important;
	background: var(--bs-accent) !important;
	color: #ffffff !important;
	flex-direction: row !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-template-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-grid button,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-template-grid button,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row {
	min-height: 44px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 12px !important;
	background: #151923 !important;
	color: #ffffff !important;
	font-weight: 800 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-list {
	display: grid !important;
	gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row {
	display: grid !important;
	grid-template-columns: 42px minmax(0, 1fr) 32px 32px 32px !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 6px 8px !important;
	cursor: grab !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row img,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row i {
	width: 38px !important;
	height: 38px !important;
	border-radius: 8px !important;
	background: #0b0d13 !important;
	object-fit: contain !important;
	display: block !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row span {
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row button {
	width: 32px !important;
	height: 32px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #202637 !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	right: 24px !important;
	top: 74px !important;
	bottom: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
	min-height: 48px !important;
	padding: 0 18px !important;
	border-color: rgba(56, 189, 248, 0.55) !important;
	background: linear-gradient(135deg, #2563eb, #0284c7) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-popup-head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	cursor: move !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-popup-head button {
	width: 30px !important;
	height: 30px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 999px !important;
	background: #171b25 !important;
	color: #ffffff !important;
	font-size: 18px !important;
	line-height: 1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover ul {
	margin: 10px 0 0 !important;
	padding-left: 18px !important;
	color: var(--bs-muted) !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button span {
	display: none !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"],
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-shell {
		height: 100dvh !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar {
		height: 64px !important;
		min-height: 64px !important;
		flex-wrap: nowrap !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right {
		max-width: 58vw !important;
		gap: 6px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill {
		max-width: 116px !important;
		min-width: 104px !important;
		padding: 6px 8px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill span {
		font-size: 9px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill strong {
		font-size: 13px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-button--primary {
		min-height: 42px !important;
		padding: 0 12px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		height: calc(100dvh - 64px) !important;
		display: flex !important;
		flex-direction: column !important;
		overflow: hidden !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel {
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: 74px !important;
		width: 100% !important;
		max-height: 52dvh !important;
		border: 1px solid var(--bs-line) !important;
		border-radius: 18px 18px 0 0 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		order: 1 !important;
		flex: 1 1 auto !important;
		min-height: 0 !important;
		padding: 12px 10px 92px !important;
		overflow: auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions {
		width: min(94vw, 620px) !important;
		max-width: 94vw !important;
		order: 1 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
		width: min(94vw, 62vh) !important;
		max-width: 94vw !important;
		order: 2 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom {
		order: 3 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		z-index: 88 !important;
		height: 74px !important;
		order: 3 !important;
		padding: 6px 8px !important;
		border-top: 1px solid var(--bs-line) !important;
		background: #08031a !important;
		overflow-x: auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
		display: grid !important;
		grid-auto-flow: column !important;
		grid-auto-columns: minmax(74px, 1fr) !important;
		grid-template-columns: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
		left: 0 !important;
		right: 0 !important;
		top: auto !important;
		bottom: 74px !important;
		width: 100% !important;
		max-height: 52dvh !important;
		border-radius: 18px 18px 0 0 !important;
		border: 1px solid var(--bs-line) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
		left: 10px !important;
		right: 10px !important;
		top: auto !important;
		bottom: 84px !important;
		width: auto !important;
		max-height: 56dvh !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		top: 74px !important;
		right: 12px !important;
	}
}

/* Final viewport, zoom and mobile compact corrections. */
html body .bigstep-ai-app[data-editor-mode="compact"] {
	overflow-x: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-item img {
	object-fit: contain !important;
	background: #090b12 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] {
	height: 100dvh !important;
	max-height: 100dvh !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-shell {
	height: 100dvh !important;
	max-height: 100dvh !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	height: calc(100dvh - 56px) !important;
	max-height: calc(100dvh - 56px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	position: relative !important;
	grid-template-rows: auto minmax(0, 1fr) auto auto !important;
	justify-items: center !important;
	align-content: stretch !important;
	padding: 18px 18px 16px !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	position: relative !important;
	z-index: 8 !important;
	flex: 0 0 auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
	--bigstep-editor-zoom: 1;
	position: relative !important;
	z-index: 1 !important;
	width: min(calc(100dvh - 210px), calc(100vw - 130px), 760px) !important;
	max-width: calc(100vw - 130px) !important;
	transform: scale(var(--bigstep-editor-zoom)) !important;
	transform-origin: center center !important;
	align-self: center !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .canvas-container,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap canvas {
	position: relative !important;
	z-index: 1 !important;
	max-width: 100% !important;
	max-height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	position: absolute !important;
	right: 24px !important;
	bottom: 24px !important;
	z-index: 9 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 5px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 999px !important;
	background: #11141d !important;
	color: #ffffff !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
	width: 34px !important;
	height: 34px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #1d2433 !important;
	color: #ffffff !important;
	font-size: 18px !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
	min-width: 48px !important;
	text-align: center !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	color: var(--bs-muted) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-context-menu button {
	display: grid !important;
	grid-template-columns: 22px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 8px !important;
	text-align: left !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-context-menu button span {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	border-radius: 7px !important;
	background: #243044 !important;
	color: #bfdbfe !important;
	font-weight: 900 !important;
}

@media (max-width: 860px) {
	html body .bigstep-ai-app[data-editor-mode="compact"],
	html body .entry-content .bigstep-ai-app[data-editor-mode="compact"],
	html body .wp-site-blocks .bigstep-ai-app[data-editor-mode="compact"] {
		padding: 18px 10px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-layout {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 18px !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 16px !important;
		border-radius: 18px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-style-chips {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-style-chips button {
		flex: 1 1 calc(50% - 8px) !important;
		min-width: 120px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box {
		min-height: 280px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-panel {
		max-height: 260px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-item {
		min-width: 0 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-history-item span {
		display: none !important;
	}
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		height: calc(100dvh - 64px) !important;
		max-height: calc(100dvh - 64px) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		padding: 10px 8px 86px !important;
		overflow: hidden !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
		width: min(calc(100dvh - 235px), 94vw, 620px) !important;
		max-width: 94vw !important;
		transform: scale(var(--bigstep-editor-zoom)) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions .bigstep-ai-top-button span {
		display: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
		display: none !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		max-width: calc(100vw - 24px) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
		right: 12px !important;
		bottom: 88px !important;
	}
}

/* Final editor layout pass: side panels are fixed rails, canvas owns the center. */
html body .bigstep-ai-app[data-editor-mode="editor"] {
	width: 100vw !important;
	max-width: 100vw !important;
	margin: 0 !important;
	padding: 0 !important;
	--bs-rail: 76px;
	--bs-panel: 336px;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	display: grid !important;
	grid-template-columns: var(--bs-rail) var(--bs-panel) minmax(0, 1fr) !important;
	width: 100vw !important;
	min-width: 0 !important;
	overflow: hidden !important;
	background: #05070c !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-column: 1 / 3 !important;
	grid-row: 1 !important;
	display: grid !important;
	grid-template-columns: var(--bs-rail) var(--bs-panel) !important;
	width: calc(var(--bs-rail) + var(--bs-panel)) !important;
	height: 100% !important;
	min-height: 0 !important;
	overflow: hidden !important;
	border-right: 1px solid var(--bs-line) !important;
	background: #0d111a !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	grid-column: 1 !important;
	width: var(--bs-rail) !important;
	height: 100% !important;
	overflow: hidden auto !important;
	border-right: 1px solid var(--bs-line) !important;
	background: #080413 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool.is-active {
	background: rgba(59, 130, 246, 0.18) !important;
	color: #ffffff !important;
}

/* UX pass: modal editor, stable Fabric pointer geometry, richer product picker. */
html body .bigstep-ai-app[data-editor-mode="editor"] {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	width: 100vw !important;
	height: 100dvh !important;
	max-width: none !important;
	background: #05070c !important;
	--bs-rail: 80px;
	--bs-panel: 350px;
	--bigstep-editor-size: 760px;
}

html body.admin-bar .bigstep-ai-app[data-editor-mode="editor"] {
	top: 32px !important;
	height: calc(100dvh - 32px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-shell {
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
	background: #05070c !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar {
	height: 60px !important;
	min-height: 60px !important;
	padding: 0 18px !important;
	border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
	background: rgba(8, 10, 15, 0.98) !important;
	backdrop-filter: blur(14px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	min-width: 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-icon-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 12px !important;
	background: #111827 !important;
	color: #ffffff !important;
	text-decoration: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	height: calc(100dvh - 60px) !important;
	max-height: calc(100dvh - 60px) !important;
	grid-template-columns: var(--bs-rail) var(--bs-panel) minmax(0, 1fr) !important;
	overflow: hidden !important;
}

html body.admin-bar .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	height: calc(100dvh - 92px) !important;
	max-height: calc(100dvh - 92px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	width: calc(var(--bs-rail) + var(--bs-panel)) !important;
	grid-template-columns: var(--bs-rail) var(--bs-panel) !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	width: var(--bs-rail) !important;
	padding: 10px 6px !important;
	gap: 8px !important;
	background: #070312 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
	width: 100% !important;
	min-height: 64px !important;
	padding: 8px 4px !important;
	border-radius: 12px !important;
	white-space: normal !important;
	line-height: 1.15 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	width: var(--bs-panel) !important;
	padding: 18px !important;
	overflow: hidden auto !important;
	scrollbar-width: thin !important;
	background: #10141f !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-fields--editor > label:first-child {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
	display: grid !important;
	gap: 12px !important;
	margin-bottom: 18px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-head {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 12px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-head strong {
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-head span {
	max-width: 170px !important;
	color: var(--bs-muted) !important;
	font-size: 12px !important;
	text-align: right !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
	display: grid !important;
	gap: 10px !important;
	max-height: 300px !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	padding: 10px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 14px !important;
	background: #151a26 !important;
	color: #ffffff !important;
	text-align: left !important;
	cursor: pointer !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card.is-active {
	border-color: #38bdf8 !important;
	background: rgba(37, 99, 235, 0.18) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 72px !important;
	height: 72px !important;
	border-radius: 12px !important;
	background: #070a10 !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta {
	display: grid !important;
	gap: 4px !important;
	min-width: 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta strong {
	overflow: hidden !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta em {
	color: #38bdf8 !important;
	font-style: normal !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-panel-total {
	position: sticky !important;
	bottom: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin: 18px -18px -18px !important;
	padding: 14px 18px !important;
	border-top: 1px solid var(--bs-line) !important;
	background: #0b1019 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-panel-total span {
	color: var(--bs-muted) !important;
	font-size: 12px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-panel-total strong {
	color: #ffffff !important;
	font-size: 18px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 3 !important;
	grid-template-rows: auto minmax(0, 1fr) auto !important;
	align-items: center !important;
	padding: 18px 28px 18px !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
	width: min(var(--bigstep-editor-size), calc(100dvh - 190px), calc(100vw - var(--bs-rail) - var(--bs-panel) - 96px)) !important;
	max-width: 100% !important;
	transform: none !important;
	contain: layout paint !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap .canvas-container,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap canvas {
	touch-action: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions {
	z-index: 20 !important;
	gap: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-top-button,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	white-space: nowrap !important;
	line-height: 1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill {
	min-width: 138px !important;
	max-width: 160px !important;
	padding: 8px 12px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill span {
	font-size: 11px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill strong {
	font-size: 17px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	top: 78px !important;
	right: 28px !important;
	bottom: auto !important;
	padding: 4px !important;
	background: #111827 !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
	width: 42px !important;
	height: 32px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	position: fixed !important;
	z-index: 35 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
	left: calc(var(--bs-rail) + var(--bs-panel) + 18px) !important;
	right: auto !important;
	top: 78px !important;
	width: 330px !important;
	max-height: calc(100dvh - 104px) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-info-popover {
	position: fixed !important;
	left: 66px !important;
	top: 64px !important;
	z-index: 1000000 !important;
	width: 280px !important;
	padding: 16px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 16px !important;
	background: #10141f !important;
	color: #e5e7eb !important;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-info-popover[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box {
	position: relative !important;
	border-color: rgba(59, 130, 246, 0.22) !important;
	background:
		linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
		linear-gradient(0deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
		radial-gradient(circle at center, #111827 0, #070a10 70%) !important;
	background-size: 22px 22px, 22px 22px, auto !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.35) !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-placeholder {
	max-width: 280px !important;
	margin: auto !important;
	color: #94a3b8 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	text-align: center !important;
	text-transform: uppercase !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-placeholder::before {
	content: "" !important;
	display: block !important;
	width: 54px !important;
	height: 54px !important;
	margin: 0 auto 16px !important;
	border: 3px solid rgba(148, 163, 184, 0.36) !important;
	border-radius: 999px !important;
	box-shadow: inset 0 0 0 8px #070a10 !important;
}

html body .bigstep-ai-single-product-button {
	margin-left: 8px !important;
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #2563eb !important;
}

@media (max-width: 980px) {
	html body.admin-bar .bigstep-ai-app[data-editor-mode="editor"],
	html body .bigstep-ai-app[data-editor-mode="editor"] {
		top: 0 !important;
		height: 100dvh !important;
		--bs-rail: 100vw;
		--bs-panel: 100vw;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar {
		height: 58px !important;
		padding: 0 10px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-brand-logo {
		max-width: 112px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-icon-button {
		width: 36px !important;
		height: 36px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill {
		min-width: 96px !important;
		max-width: 112px !important;
		padding: 6px 8px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-price-pill strong {
		font-size: 14px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] {
		min-height: 40px !important;
		padding: 0 12px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		height: calc(100dvh - 58px) !important;
		max-height: calc(100dvh - 58px) !important;
		grid-template-rows: minmax(0, 1fr) auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		padding: 8px 8px 86px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
		width: min(94vw, calc(100dvh - 210px)) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
		top: 66px !important;
		right: 8px !important;
		transform: scale(0.88) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
		left: 10px !important;
		right: 10px !important;
		top: 68px !important;
		width: auto !important;
		max-height: 42dvh !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-info-popover {
		left: 10px !important;
		right: 10px !important;
		top: 62px !important;
		width: auto !important;
	}
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	grid-column: 2 !important;
	grid-row: 1 !important;
	position: static !important;
	width: var(--bs-panel) !important;
	height: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 22px 18px 28px !important;
	overflow: hidden auto !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #10141f !important;
	box-shadow: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel[hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden] {
	display: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 3 !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	padding: 18px 22px 18px !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-hidden-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions {
	align-self: start !important;
	margin: 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
	top: 74px !important;
	right: 22px !important;
	bottom: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
	right: auto !important;
	bottom: auto !important;
	z-index: 18 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
	border-color: rgba(56, 189, 248, 0.72) !important;
	background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-section {
	display: grid !important;
	gap: 10px !important;
	margin: 0 0 18px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-section strong {
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 900 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-template-grid button.is-active,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-grid button:hover,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-template-grid button:hover {
	border-color: var(--bs-blue) !important;
	background: rgba(59, 130, 246, 0.18) !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
	max-height: 260px !important;
	overflow: auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-thumb {
	display: grid !important;
	gap: 6px !important;
	padding: 8px !important;
	border: 1px solid var(--bs-line) !important;
	border-radius: 12px !important;
	background: #151923 !important;
	color: #ffffff !important;
	text-align: left !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-thumb img {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
	border-radius: 9px !important;
	background: #0b0d13 !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-colors {
	margin: 14px 0 0 !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-generator-colors > span {
	display: block !important;
	margin-bottom: 8px !important;
	color: #e5e7eb !important;
	font-weight: 900 !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] {
		--bs-rail: 100vw;
		--bs-panel: 100vw;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		display: grid !important;
		grid-template-columns: 1fr !important;
		grid-template-rows: minmax(0, 1fr) auto !important;
		height: calc(100dvh - 64px) !important;
		overflow: hidden !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		grid-column: 1 !important;
		grid-row: 1 !important;
		padding: 10px 10px 92px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
		grid-column: 1 !important;
		grid-row: 2 !important;
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 30 !important;
		display: block !important;
		width: 100vw !important;
		height: auto !important;
		border-top: 1px solid var(--bs-line) !important;
		border-right: 0 !important;
		background: #080413 !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
		display: grid !important;
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
		width: 100vw !important;
		height: 72px !important;
		border-right: 0 !important;
		overflow: hidden !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
		min-height: 72px !important;
		padding: 7px 3px !important;
		font-size: 11px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 72px !important;
		width: 100vw !important;
		height: min(52dvh, 430px) !important;
		max-height: min(52dvh, 430px) !important;
		padding: 16px !important;
		border-top: 1px solid var(--bs-line) !important;
		border-radius: 18px 18px 0 0 !important;
		background: #10141f !important;
		box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.5) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
		top: 76px !important;
		right: 12px !important;
		transform: scale(0.92) !important;
		transform-origin: top right !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
		display: none !important;
	}
}

/* Absolute final editor overrides. */
html body .bigstep-ai-app[data-editor-mode="editor"] {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	width: 100vw !important;
	height: 100dvh !important;
	max-width: none !important;
	margin: 0 !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
	grid-template-columns: 80px 350px minmax(0, 1fr) !important;
	height: calc(100dvh - 60px) !important;
	max-height: calc(100dvh - 60px) !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
	grid-column: 1 / 3 !important;
	display: grid !important;
	grid-template-columns: 80px 350px !important;
	width: 430px !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
	grid-column: 1 !important;
	width: 80px !important;
	height: 100% !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
	grid-column: 2 !important;
	position: static !important;
	width: 350px !important;
	height: 100% !important;
	max-height: 100% !important;
	overflow: hidden auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
	grid-column: 3 !important;
	grid-row: 1 !important;
	overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
	width: min(var(--bigstep-editor-size), calc(100dvh - 190px), calc(100vw - 526px)) !important;
	transform: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover {
	display: none !important;
}

@media (max-width: 980px) {
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
		grid-template-columns: 1fr !important;
		grid-template-rows: minmax(0, 1fr) auto !important;
		height: calc(100dvh - 58px) !important;
		max-height: calc(100dvh - 58px) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		display: block !important;
		width: 100vw !important;
		height: auto !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
		display: grid !important;
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
		width: 100vw !important;
		height: 72px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 72px !important;
		width: 100vw !important;
		height: min(52dvh, 430px) !important;
		max-height: min(52dvh, 430px) !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
		grid-column: 1 !important;
		grid-row: 1 !important;
		padding: 8px 8px 86px !important;
	}

	html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
		width: min(94vw, calc(100dvh - 210px)) !important;
	}
}

/* QA final overrides - actual EOF block. */
html body .bigstep-ai-app[data-editor-mode="editor"] [hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel[hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] [data-element-section][hidden],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker[hidden] { display: none !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools { grid-template-columns: 72px 340px !important; width: 412px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main { grid-template-columns: 72px 340px minmax(0,1fr) !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu { width: 72px !important; padding: 8px 5px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool { min-height: 54px !important; height: 54px !important; padding: 5px 2px !important; border-radius: 11px !important; font-size: 11px !important; gap: 4px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel { width: 340px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left .bigstep-ai-editor-icon-button svg { display: block !important; width: 18px !important; height: 18px !important; color: #fff !important; fill: currentColor !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls { display: grid !important; grid-template-columns: 46px 56px 46px !important; align-items: center !important; gap: 4px !important; width: auto !important; height: 42px !important; padding: 4px !important; border-radius: 999px !important; background: #111827 !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button { width: 46px !important; height: 34px !important; min-height: 34px !important; padding: 0 !important; border-radius: 999px !important; background: #1f2937 !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span { min-width: 0 !important; width: 56px !important; text-align: center !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row { grid-template-columns: 44px minmax(0,1fr) 30px 30px 30px !important; gap: 7px !important; padding: 8px !important; overflow: hidden !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-row button { width: 30px !important; height: 30px !important; min-height: 30px !important; padding: 0 !important; font-size: 13px !important; line-height: 1 !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions { position: fixed !important; right: 32px !important; bottom: 92px !important; top: auto !important; left: auto !important; z-index: 1000000 !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button { min-height: 42px !important; padding: 0 18px !important; border-radius: 999px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid[data-editor-history-grid] { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; max-height: none !important; overflow: visible !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb { min-height: 132px !important; overflow: visible !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] [data-editor-history-grid] .bigstep-ai-asset-thumb img { height: 118px !important; aspect-ratio: auto !important; object-fit: contain !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker { width: min(860px, calc(100vw - 36px)) !important; padding: 22px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 14px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card { grid-template-columns: 96px minmax(0,1fr) !important; min-height: 116px !important; padding: 12px !important; border-radius: 16px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb { width: 96px !important; height: 96px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label { min-height: 48px !important; padding: 6px 12px !important; gap: 8px !important; font-size: 12px !important; line-height: 1.2 !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row input[type="radio"] { width: 22px !important; height: 22px !important; min-width: 22px !important; }
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button { display: grid !important; place-items: center !important; min-height: 72px !important; line-height: 1.15 !important; text-align: center !important; }
html body .bigstep-ai-single-product-button { margin: 0 0 12px 0 !important; background: linear-gradient(135deg,#7c3aed,#2563eb) !important; font-size: 14px !important; text-transform: none !important; }
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid { grid-template-columns: 1fr !important; }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card { grid-template-columns: 84px minmax(0,1fr) !important; min-height: 100px !important; }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb { width: 84px !important; height: 84px !important; }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions { display: none !important; }
}

/* Woo cart/checkout BigStep AI polish. */
html body .bigstep-ai-cart-mockup-thumb { width: 96px !important; height: auto !important; border-radius: 8px !important; border: 1px solid #e5e7eb !important; background: #fff !important; }
html body .bigstep-ai-edit-design-button { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 34px !important; padding: 0 12px !important; border-radius: 8px !important; background: #2563eb !important; color: #fff !important; font-weight: 800 !important; text-decoration: none !important; }

/* Mobile editor popup panels and generator limit note. */
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-limit-note {
  margin: 10px 0 0 !important;
  color: #60a5fa !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-close {
  display: none !important;
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-topbar { z-index: 120 !important; }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools { z-index: 130 !important; pointer-events: none !important; }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu { pointer-events: auto !important; }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 86px !important;
    top: auto !important;
    z-index: 1000002 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(58dvh, 460px) !important;
    padding: 42px 14px 14px !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 18px !important;
    background: #10141f !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.72) !important;
    overflow: auto !important;
    pointer-events: auto !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 10px !important;
    top: 8px !important;
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 1px solid var(--bs-line) !important;
    border-radius: 999px !important;
    background: #171b25 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel label,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-field-block > span,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-order-mode > span,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-section strong {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-radio-row label,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel button,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel input,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel select,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel textarea {
    font-size: 12px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-picker {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 70px !important;
    bottom: auto !important;
    z-index: 1000004 !important;
    width: auto !important;
    max-height: calc(100dvh - 96px) !important;
    transform: none !important;
    padding: 42px 14px 14px !important;
    border-radius: 18px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-product-picker-close] {
    position: absolute !important;
    right: 10px !important;
    top: 8px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card strong,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta strong {
    font-size: 12px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}

/* Final mobile/editor simplification pass. */
html body .bigstep-ai-app[data-editor-mode="editor"] [data-info-toggle],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-info-popover {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
  display: inline-flex !important;
  grid-template-columns: none !important;
  width: auto !important;
  height: 36px !important;
  gap: 6px !important;
  padding: 3px !important;
  border-radius: 999px !important;
  background: #111827 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
  width: 34px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
  width: auto !important;
  min-width: 42px !important;
  font-size: 11px !important;
}
@media (min-width: 981px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
    display: flex !important;
    right: 24px !important;
    bottom: 24px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
    align-content: start !important;
    gap: 6px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
    min-height: 48px !important;
    height: 48px !important;
  }
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) 70px !important;
    height: calc(100dvh - 58px) !important;
    max-height: calc(100dvh - 58px) !important;
    overflow: hidden !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    padding: 8px 8px 82px !important;
    overflow: hidden !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
    width: min(92vw, calc(100dvh - 250px)) !important;
    max-width: 92vw !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
    top: 70px !important;
    right: 10px !important;
    transform: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 70px !important;
    z-index: 130 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100vw !important;
    height: 70px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    scroll-snap-type: x mandatory !important;
    pointer-events: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 70px !important;
    min-height: 70px !important;
    border-radius: 0 !important;
    scroll-snap-align: start !important;
    font-size: 10px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 82px !important;
    top: auto !important;
    z-index: 1000002 !important;
    width: auto !important;
    max-height: min(54dvh, 430px) !important;
  }
}

/* BigStep AI final polish: Woo AI button, browser histories, mobile product panel. */
html body .bigstep-ai-single-product-button,
html body a.bigstep-ai-single-product-button.button,
html body .product .summary a.bigstep-ai-single-product-button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  margin: 0 10px 12px 0 !important;
  padding: 0 22px !important;
  border: 1px solid rgba(59,130,246,.75) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 58%, #1d4ed8 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.18) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body .bigstep-ai-single-product-button::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2 1.7 5.2L19 9l-5.3 1.8L12 16l-1.7-5.2L5 9l5.3-1.8L12 2Zm7 10 1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2 1.7 5.2L19 9l-5.3 1.8L12 16l-1.7-5.2L5 9l5.3-1.8L12 2Zm7 10 1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
html body .bigstep-ai-single-product-button:hover {
  filter: brightness(1.07) !important;
  transform: translateY(-1px) !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-panel-head button,
html body .bigstep-ai-app[data-editor-mode="editor"] [data-clear-upload-history],
html body .bigstep-ai-app[data-editor-mode="editor"] [data-clear-ai-history] {
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid var(--bs-line) !important;
  border-radius: 999px !important;
  background: #171d2a !important;
  color: #dbeafe !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  overflow: visible !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-card {
  position: relative !important;
  min-width: 0 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-card .bigstep-ai-asset-thumb {
  width: 100% !important;
  min-height: 142px !important;
  height: auto !important;
  padding: 8px !important;
  border-radius: 14px !important;
  overflow: visible !important;
  background: #0b101a !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-card .bigstep-ai-asset-thumb img {
  width: 100% !important;
  height: 116px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-remove {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  z-index: 3 !important;
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148,163,184,.45) !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button {
  display: grid !important;
  grid-template-rows: 28px auto !important;
  place-items: center !important;
  gap: 7px !important;
  min-height: 86px !important;
  padding: 12px 8px !important;
  border-radius: 16px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-element-menu button svg {
  width: 25px !important;
  height: 25px !important;
  color: #eaf4ff !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-actions--inline {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 10px 0 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-actions--inline .bigstep-ai-tool {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-open {
    display: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] .bigstep-ai-product-picker,
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] .bigstep-ai-product-picker[hidden] {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] [data-product-picker-close] {
    display: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
    min-height: 88px !important;
    padding: 10px !important;
    align-items: center !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-asset-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* UX pass: mobile selected-layer actions, stock browsing, text quick entry. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px !important;
  border: 1px solid rgba(56, 189, 248, .35) !important;
  border-radius: 999px !important;
  background: rgba(8, 12, 22, .94) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.35) !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions[hidden] {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button[hidden] {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-action-delete {
  background: #1f2937 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-layer-remove-bg] {
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-quick-entry {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  border: 1px solid rgba(56, 189, 248, .25) !important;
  border-radius: 16px !important;
  background: #0c1220 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-quick-entry [data-add-text] {
  min-height: 44px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-element-section="stock"] {
  display: grid !important;
  gap: 10px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-element-section="stock"][hidden] {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  max-height: min(44dvh, 430px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 7px 10px 2px !important;
  align-content: start !important;
  scrollbar-width: thin !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] .bigstep-ai-asset-thumb {
  min-height: 154px !important;
  height: auto !important;
  padding: 8px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] .bigstep-ai-asset-thumb img {
  display: block !important;
  width: 100% !important;
  height: 116px !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background: #050814 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] .bigstep-ai-asset-thumb span {
  display: block !important;
  min-height: 18px !important;
  margin-top: 7px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
    display: inline-flex !important;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 144px !important;
    z-index: 1000006 !important;
    transform: translateX(-50%) !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions[hidden] {
    display: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] {
    max-height: 32dvh !important;
    grid-template-columns: repeat(2, minmax(128px, 1fr)) !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] .bigstep-ai-asset-thumb {
    min-height: 142px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-stock-results] .bigstep-ai-asset-thumb img {
    height: 104px !important;
  }
}

/* Final UX cleanup: zoom controls, uniform quantity steppers, remove help. */
html body .bigstep-ai-app[data-editor-mode="editor"] [data-help-toggle],
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-help-popover {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 136px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 4px !important;
  overflow: visible !important;
  border: 1px solid rgba(59, 130, 246, .32) !important;
  border-radius: 999px !important;
  background: #101827 !important;
  box-sizing: border-box !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #1d273a !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: none !important;
  box-sizing: border-box !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  min-width: 50px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #dbeafe !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-grid {
  display: grid !important;
  gap: 9px !important;
  width: 100% !important;
  overflow: visible !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row {
  display: grid !important;
  grid-template-columns: minmax(34px, 44px) 42px minmax(58px, 1fr) 42px !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 7px 8px !important;
  overflow: visible !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  border-radius: 13px !important;
  background: #111827 !important;
  box-sizing: border-box !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row span {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row button {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #202a3f !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: none !important;
  z-index: auto !important;
  touch-action: manipulation !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row input {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 11px !important;
  background: #151c2b !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 40px !important;
  text-align: center !important;
  transform: none !important;
  z-index: auto !important;
  box-sizing: border-box !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .upper-canvas,
html body .bigstep-ai-app[data-editor-mode="editor"] .canvas-container {
  touch-action: none !important;
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
    min-width: 122px !important;
    height: 36px !important;
    min-height: 36px !important;
    gap: 4px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 28px !important;
    min-height: 28px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls span {
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    font-size: 11px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row {
    grid-template-columns: minmax(28px, 38px) 40px minmax(56px, 1fr) 40px !important;
    gap: 7px !important;
    min-height: 50px !important;
    padding: 7px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row button {
    width: 40px !important;
    min-width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-size-qty-row input {
    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
  }
}

/* Final mobile polish: sticky panel close, separated layer actions, better AI loading. */
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box.is-generating {
  border-color: rgba(59, 130, 246, .55) !important;
  box-shadow: 0 24px 70px rgba(37, 99, 235, .18), inset 0 0 0 1px rgba(255,255,255,.04) !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box.is-generating::before {
  opacity: .82 !important;
  animation: bigstep-ai-preview-scan 1.35s linear infinite !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading {
  display: grid !important;
  place-items: center !important;
  gap: 18px !important;
  background: radial-gradient(circle at 50% 42%, rgba(37,99,235,.18), transparent 34%), rgba(6, 10, 18, .72) !important;
  backdrop-filter: blur(2px) !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading[hidden] {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse {
  position: relative !important;
  width: 74px !important;
  height: 74px !important;
  border: 1px solid rgba(96,165,250,.4) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(14,165,233,.08)) !important;
  animation: bigstep-ai-tile-breathe 1.35s ease-in-out infinite !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::before,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::after {
  content: "" !important;
  position: absolute !important;
  inset: 13px !important;
  border: 2px solid rgba(147,197,253,.85) !important;
  border-radius: 999px !important;
  animation: bigstep-ai-ring 1.15s ease-out infinite !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::after {
  animation-delay: .35s !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading span {
  max-width: 230px !important;
  color: #dbeafe !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
@keyframes bigstep-ai-preview-scan {
  0% { background-position: 0 0, 0 0 !important; }
  100% { background-position: 0 24px, 24px 0 !important; }
}
@keyframes bigstep-ai-tile-breathe {
  0%, 100% { transform: scale(.96) rotate(0deg); opacity: .72; }
  50% { transform: scale(1.04) rotate(2deg); opacity: 1; }
}
@keyframes bigstep-ai-ring {
  0% { transform: scale(.45); opacity: .9; }
  100% { transform: scale(1.65); opacity: 0; }
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
  z-index: 1000007 !important;
  pointer-events: auto !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls button {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]) {
    padding-top: 46px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) .bigstep-ai-panel-close,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]) .bigstep-ai-panel-close {
    position: fixed !important;
    top: auto !important;
    right: 20px !important;
    bottom: calc(82px + min(54dvh, 430px) - 38px) !important;
    z-index: 1000010 !important;
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.35) !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
    left: auto !important;
    right: 10px !important;
    top: 112px !important;
    bottom: auto !important;
    transform: none !important;
    gap: 5px !important;
    padding: 3px !important;
    border-radius: 999px !important;
    z-index: 1000006 !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 9px !important;
    gap: 4px !important;
    font-size: 10px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions svg {
    width: 13px !important;
    height: 13px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] label:has([name="print_placement"]) {
    order: -3 !important;
    margin: 0 0 12px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] .bigstep-ai-fields--editor {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Final lock for mobile sheet controls and compact AI loader. */
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading::before {
  content: "" !important;
  position: absolute !important;
  inset: 20px !important;
  border: 1px solid rgba(96, 165, 250, .22) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, .1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, .1) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
  animation: bigstep-ai-loader-grid 1.2s linear infinite !important;
  pointer-events: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading::after {
  content: "" !important;
  position: absolute !important;
  left: 18% !important;
  right: 18% !important;
  top: 22% !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .95), transparent) !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, .5) !important;
  animation: bigstep-ai-loader-sweep 1.45s ease-in-out infinite !important;
  pointer-events: none !important;
}

html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse,
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading span {
  position: relative !important;
  z-index: 2 !important;
}

@keyframes bigstep-ai-loader-grid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 18px 18px, 18px 18px; }
}

@keyframes bigstep-ai-loader-sweep {
  0% { transform: translateY(-70px); opacity: 0; }
  18% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateY(190px); opacity: 0; }
}

@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]) {
    padding-top: 50px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) .bigstep-ai-panel-close,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]) .bigstep-ai-panel-close {
    position: sticky !important;
    top: 8px !important;
    right: auto !important;
    bottom: auto !important;
    float: right !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: -40px 4px 10px auto !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    border-radius: 999px !important;
    background: #111827 !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .42) !important;
    z-index: 1000011 !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
    top: 104px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: calc(100vw - 18px) !important;
    padding: 3px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls * {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

/* Final mobile editor layout correction. */
html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] svg {
  flex: 0 0 auto !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-placement-field {
  order: -2 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch-grid--placement {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch-grid--placement .bigstep-ai-swatch {
  min-height: 44px !important;
  padding: 0 10px !important;
  text-align: center !important;
  white-space: normal !important;
}

@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-canvas-area {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    align-content: stretch !important;
    gap: 8px !important;
    padding-top: 12px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-actions {
    order: 1 !important;
    margin: 0 auto !important;
    z-index: 9 !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    align-self: center !important;
    justify-self: center !important;
    max-width: calc(100vw - 28px) !important;
    margin: 0 auto 2px !important;
    padding: 3px !important;
    z-index: 9 !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions[hidden] {
    display: none !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions button {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    gap: 5px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-layer-actions svg {
    width: 14px !important;
    height: 14px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-canvas-wrap {
    order: 3 !important;
    align-self: center !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-side-tabs--bottom {
    order: 4 !important;
    margin-top: 6px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-zoom-controls {
    display: none !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools {
    height: 72px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100vw !important;
    height: 72px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
    width: auto !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 8px 2px 7px !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    gap: 5px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    bottom: 84px !important;
    max-height: min(58dvh, 470px) !important;
    padding: 12px 14px 16px !important;
    overflow-y: auto !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel:not([hidden]) .bigstep-ai-panel-close,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-sidebar.bigstep-ai-tool-panel:not([hidden]) .bigstep-ai-panel-close {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    align-self: flex-end !important;
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 0 -2px auto !important;
    transform: none !important;
    z-index: 1000012 !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch-grid--placement {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-swatch-grid--placement .bigstep-ai-swatch {
    min-height: 42px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] .bigstep-ai-product-picker,
  html body .bigstep-ai-app[data-editor-mode="editor"] [data-tool-panel="product"] .bigstep-ai-product-picker[hidden] {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-card {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 100px !important;
    padding: 10px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    flex: 0 0 76px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
    align-content: center !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.28 !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-product-meta em {
    display: block !important;
    color: #38bdf8 !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
  }
}

/* Last override: text popup, support CTA, desktop tools, and compact AI loader. */
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-button--primary,
html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] {
  gap: 8px !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-button--primary svg,
html body .bigstep-ai-app[data-editor-mode="editor"] [data-bigstep-ai-cart] svg {
  flex: 0 0 auto !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-box.is-generating .bigstep-ai-preview-placeholder {
  display: none !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading {
  background:
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, .28), transparent 28%),
    linear-gradient(135deg, rgba(6, 10, 18, .88), rgba(8, 13, 24, .96)) !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading::before {
  inset: 24px !important;
  border-color: rgba(96, 165, 250, .18) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(59, 130, 246, .12) 1px, transparent 1px),
    radial-gradient(circle, rgba(96, 165, 250, .22) 1px, transparent 2px) !important;
  background-size: 22px 22px, 22px 22px, 28px 28px !important;
  animation: bigstep-ai-loader-grid 1.8s linear infinite !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-preview-loading::after {
  left: 16% !important;
  right: 16% !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .7), rgba(125, 211, 252, 1), rgba(37, 99, 235, .7), transparent) !important;
  box-shadow: 0 0 34px rgba(56, 189, 248, .72) !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse {
  width: 108px !important;
  height: 108px !important;
  border: 0 !important;
  border-radius: 32px !important;
  background: conic-gradient(from 0deg, transparent 0deg, #38bdf8 72deg, #2563eb 145deg, transparent 235deg, transparent 360deg) !important;
  box-shadow: 0 0 38px rgba(37, 99, 235, .38) !important;
  animation: bigstep-ai-core-spin 1.15s linear infinite !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::before {
  content: "" !important;
  position: absolute !important;
  inset: 10px !important;
  border: 1px solid rgba(191, 219, 254, .5) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 50% 50%, #bfdbfe 0 4px, transparent 5px),
    radial-gradient(circle at 28% 30%, rgba(56, 189, 248, .9) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 66%, rgba(96, 165, 250, .9) 0 3px, transparent 4px),
    #07101e !important;
  animation: bigstep-ai-core-counter 1.15s linear infinite !important;
}
html body .bigstep-ai-app[data-editor-mode="compact"] .bigstep-ai-pulse::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  border: 1px solid rgba(56, 189, 248, .28) !important;
  border-radius: 38px !important;
  animation: bigstep-ai-ai-halo 1.6s ease-in-out infinite !important;
}
@keyframes bigstep-ai-core-spin { to { transform: rotate(360deg); } }
@keyframes bigstep-ai-core-counter { to { transform: rotate(-360deg); } }
@keyframes bigstep-ai-ai-halo {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: .9; transform: scale(1.08); }
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-left [data-info-toggle] {
  display: none !important;
}
@media (min-width: 981px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-desktop-only[data-info-toggle] {
    display: grid !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-download-mockup {
    display: inline-flex !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
    display: flex !important;
    align-items: flex-end !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button[data-zalo-cta] {
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 16px !important;
    gap: 9px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-float-button[data-zalo-cta] span {
    display: inline !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-info-popover:not([hidden]) {
    display: block !important;
  }
}
@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-download-mockup,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-desktop-only[data-info-toggle],
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-floating-actions {
    display: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-tools,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
    height: 82px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-main {
    grid-template-rows: minmax(0, 1fr) 82px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
    height: 82px !important;
    min-height: 82px !important;
    padding: 10px 2px 9px !important;
    font-size: 11px !important;
    gap: 6px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool svg {
    width: 21px !important;
    height: 21px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
    z-index: 1000014 !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-info-popover {
    display: none !important;
  }
}

/* Final mobile text popup and header home polish. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right .bigstep-ai-editor-icon-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right .bigstep-ai-editor-icon-button:hover,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right .bigstep-ai-editor-icon-button:focus {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right .bigstep-ai-editor-icon-button svg {
  display: block !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
    position: fixed !important;
    left: 10px !important;
    right: auto !important;
    top: 66px !important;
    bottom: auto !important;
    z-index: 1000020 !important;
    width: min(248px, calc(100vw - 20px)) !important;
    max-width: none !important;
    max-height: min(30dvh, 250px) !important;
    padding: 8px !important;
    border-radius: 14px !important;
    overflow: auto !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-overflow-scrolling: touch !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup[hidden] {
    display: none !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup .bigstep-ai-popup-head {
    margin-bottom: 6px !important;
    cursor: default !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup strong {
    font-size: 11px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup label {
    gap: 4px !important;
    font-size: 11px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup select,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup input {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup input[type="color"] {
    height: 30px !important;
    min-height: 30px !important;
    padding: 2px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup input[type="range"] {
    height: 26px !important;
    min-height: 26px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup .bigstep-ai-text-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup .bigstep-ai-tool {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel input:not([type="range"]):not([type="color"]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel select,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-panel textarea,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup input:not([type="range"]):not([type="color"]),
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup select,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup textarea {
    font-size: 16px !important;
  }
}

/* Template panel. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-grid,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 9px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 14px !important;
  background: #151a25 !important;
  color: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card:hover,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card:hover {
  border-color: #38bdf8 !important;
  background: #182237 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-thumb {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  aspect-ratio: 1 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #070b12 !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card strong,
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card strong {
  overflow: hidden !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card small {
  color: #93c5fd !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-grid,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card,
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card {
    padding: 8px !important;
    border-radius: 12px !important;
  }
}

/* Final template library polish: catalog is text-only, thumbnails only for designs. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-grid {
  grid-template-columns: 1fr !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 46px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-catalog-card strong {
  white-space: normal !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card {
  overflow: hidden !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card .bigstep-ai-template-thumb {
  border: 1px solid rgba(148, 163, 184, .16) !important;
  overflow: hidden !important;
}
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card .bigstep-ai-template-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #0b0f19 !important;
}

/* Final pass: cleaner editor header, scrollable mobile toolbar, upload and template thumbnails. */
html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right .bigstep-ai-editor-icon-button {
  width: 28px !important;
  min-width: 28px !important;
  height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-editor-right .bigstep-ai-editor-icon-button svg {
  color: #fff !important;
  fill: currentColor !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-upload-field {
  display: grid !important;
  gap: 8px !important;
  padding: 12px !important;
  border: 1px dashed rgba(56, 189, 248, .36) !important;
  border-radius: 14px !important;
  background: #0f172a !important;
  color: #e5e7eb !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-upload-field input[type="file"] {
  width: 100% !important;
  min-height: 46px !important;
  padding: 7px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 12px !important;
  background: #151a25 !important;
  color: #cbd5e1 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-upload-field input[type="file"]::file-selector-button {
  margin-right: 10px !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #2f7df4, #06b6d4) !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card .bigstep-ai-template-thumb {
  aspect-ratio: 1 / 1 !important;
  min-height: 132px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: #0b0f19 !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-template-design-card .bigstep-ai-template-thumb img {
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 10px !important;
}

html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup .bigstep-ai-popup-head {
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
}

@media (max-width: 980px) {
  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 82px !important;
    grid-template-columns: none !important;
    justify-content: start !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu::-webkit-scrollbar {
    display: none !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-tool-grid--menu .bigstep-ai-tool {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    min-height: 74px !important;
    height: 74px !important;
    flex: 0 0 82px !important;
  }

  html body .bigstep-ai-app[data-editor-mode="editor"] .bigstep-ai-text-popup {
    max-height: min(34dvh, 280px) !important;
  }
}
