/* AI 图片处理 · 输出区全宽：左画布（图2/3）+ 右功能栏 */
#aith-imgproc-studio.aith-imgproc-studio {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

#aith-imgproc-studio[hidden] {
	display: none !important;
}

.aith-imgproc-studio__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
	gap: 0.85rem;
	align-items: stretch;
	flex: 1;
	min-height: min(84vh, 860px);
	height: 100%;
	padding: 1rem 1.1rem 1rem 1.2rem;
	box-sizing: border-box;
	--imgproc-panel-bg: rgba(26, 26, 30, 0.98);
	--imgproc-panel-radius: 14px;
}

.aith-imgproc-studio__main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	flex: 1;
	border: none;
	background: transparent;
	overflow: hidden;
}

.aith-imgproc-studio__upload-frame {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	box-sizing: border-box;
}

.aith-imgproc-studio__upload-frame:not(
		:has(.aith-imgproc-studio__workspace:not([hidden]) .aith-imgproc-studio__canvas-wrap.is-has-image)
	) {
	border: 1px dashed rgba(148, 163, 184, 0.38);
	border-radius: 14px;
	background: transparent;
}

.aith-imgproc-studio__upload-frame:not(
		:has(.aith-imgproc-studio__workspace:not([hidden]) .aith-imgproc-studio__canvas-wrap.is-has-image)
	):has(.aith-imgproc-studio__drop.is-dragover) {
	border-color: rgba(59, 130, 246, 0.55);
	background: rgba(59, 130, 246, 0.05);
}

.aith-imgproc-studio__main:has(.aith-imgproc-studio__workspace:not([hidden]) .aith-imgproc-studio__canvas-wrap.is-has-image)
	.aith-imgproc-studio__upload-frame {
	background: var(--imgproc-panel-bg);
	border: none;
	border-radius: var(--imgproc-panel-radius);
	overflow: hidden;
}

.aith-imgproc-studio__workspace {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.aith-imgproc-studio__workspace[hidden] {
	display: none !important;
}

.aith-imgproc-studio__canvas-wrap {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
}

.aith-imgproc-studio__canvas-wrap.is-has-image {
	justify-content: center;
	align-items: center;
	flex: 1;
	min-height: 0;
	padding: 1rem;
	box-sizing: border-box;
}

.aith-imgproc-studio__replace-material {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(226, 232, 240, 0.88);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
}

.aith-imgproc-studio__replace-material[hidden] {
	display: none !important;
}

.aith-imgproc-studio__replace-material:hover {
	color: #f8fafc;
}

.aith-imgproc-studio__replace-material-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	color: rgba(203, 213, 225, 0.92);
}

.aith-imgproc-studio__replace-material-ico svg {
	display: block;
	width: 1.125rem;
	height: 1.125rem;
}

.aith-imgproc-studio__replace-material-txt {
	white-space: nowrap;
}

.aith-imgproc-studio__replace-material-sep {
	flex-shrink: 0;
	width: 1px;
	height: 1rem;
	margin-left: 0.15rem;
	background: rgba(148, 163, 184, 0.38);
}

.aith-imgproc-studio__canvas-wrap.is-has-image .aith-imgproc-studio__replace-material {
	display: inline-flex;
}

.aith-imgproc-studio__canvas-wrap.is-has-image .aith-imgproc-studio__canvas-shell {
	flex: 1;
	width: 100%;
	min-height: 0;
}

.aith-imgproc-studio__drop {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 2rem 1.5rem;
	cursor: default;
	text-align: center;
	transition: background 0.2s ease;
}

.aith-imgproc-studio__canvas-wrap.is-has-image .aith-imgproc-studio__drop,
.aith-imgproc-studio__drop[hidden] {
	display: none !important;
}

.aith-imgproc-studio__drop.is-dragover {
	background: transparent;
}

.aith-imgproc-studio__drop-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	color: rgba(226, 232, 240, 0.88);
}

.aith-imgproc-studio__drop-ico svg {
	width: 2.75rem;
	height: 2.75rem;
}

.aith-imgproc-studio__drop-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	color: rgba(248, 250, 252, 0.95);
}

.aith-imgproc-studio__drop-hint {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(148, 163, 184, 0.88);
}

.aith-imgproc-studio__drop-btn {
	margin-top: 0.35rem;
	padding: 0.55rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.aith-imgproc-studio__drop-btn:hover {
	filter: brightness(1.06);
}

.aith-imgproc-studio__canvas-shell {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
}

.aith-imgproc-studio__canvas-shell[hidden] {
	display: none !important;
}

.aith-imgproc-studio__canvas-stack {
	position: relative;
	line-height: 0;
	max-width: 100%;
	max-height: 100%;
}

.aith-imgproc-studio__canvas {
	display: block;
	max-width: min(100%, 920px);
	max-height: min(72vh, 680px);
	width: auto;
	height: auto;
	border-radius: 8px;
}

.aith-imgproc-studio__canvas--overlay {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	max-height: none;
	touch-action: none;
	cursor: crosshair;
}

.aith-imgproc-studio__materials {
	flex-shrink: 0;
	padding: 0.85rem 1.25rem 1rem;
	border-top: none;
	text-align: center;
	background: transparent;
}

.aith-imgproc-studio__main:has(.aith-imgproc-studio__workspace:not([hidden]) .aith-imgproc-studio__canvas-wrap.is-has-image)
	.aith-imgproc-studio__materials {
	display: none;
}

.aith-imgproc-studio__materials-tip {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	color: rgba(148, 163, 184, 0.9);
}

.aith-imgproc-studio__materials-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
}

.aith-imgproc-studio__material-btn {
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 10px;
	background: rgba(30, 34, 44, 0.8);
	overflow: hidden;
	cursor: pointer;
}

.aith-imgproc-studio__material-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aith-imgproc-studio__material-empty {
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.65);
}

/* 图3：左下角原图 / 结果缩略图 */
.aith-imgproc-studio__thumbs {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 4;
	display: none;
	align-items: center;
	gap: 0.45rem;
}

.aith-imgproc-studio__main:has(.aith-imgproc-studio__workspace:not([hidden]) .aith-imgproc-studio__canvas-wrap.is-has-image)
	.aith-imgproc-studio__thumbs {
	display: flex;
}

.aith-imgproc-studio__thumb {
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid rgba(148, 163, 184, 0.25);
	border-radius: 8px;
	background: rgba(20, 24, 32, 0.9);
	overflow: hidden;
	cursor: pointer;
}

.aith-imgproc-studio__thumb.is-active {
	border-color: rgba(59, 130, 246, 0.85);
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.aith-imgproc-studio__thumb[hidden] {
	display: none !important;
}

.aith-imgproc-studio__thumb-ph {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: rgba(40, 44, 56, 0.8);
}

/* 右侧功能栏 · 参考图：独立灰底、无分割线 */
.aith-imgproc-studio__rail {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-width: 0;
	min-height: 100%;
	height: auto;
	background: var(--imgproc-panel-bg, rgba(26, 26, 30, 0.98));
	border: none;
	border-radius: var(--imgproc-panel-radius, 14px);
	overflow: hidden;
}

.aith-imgproc-studio__rail-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	padding: 1.35rem 1.45rem 0.75rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}
.aith-imgproc-studio__rail-body::-webkit-scrollbar {
	width: 6px;
}

.aith-imgproc-studio__rail-body::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.22);
}

.aith-imgproc-studio__rail-body::-webkit-scrollbar-track {
	background: transparent;
}

.aith-imgproc-studio__rail-panel[hidden] {
	display: none !important;
}

.aith-imgproc-studio__rail-body > .aith-imgproc-studio__rail-panel {
	display: none;
}

.aith-imgproc-studio__rail-body > .aith-imgproc-studio__rail-panel:not([hidden]) {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 1.05rem;
	min-height: 0;
}

/* 工作室侧栏内不使用旧版 builder 卡片样式 */
.aith-imgproc-studio__rail-panel.aith-ecom-imgedit-builder {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode {
	display: flex;
	width: 100%;
	gap: 0.5rem;
	padding: 0.3rem;
	margin: 0;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.22);
	border: none;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode-btn {
	flex: 1;
	padding: 0.68rem 0.7rem;
	min-height: 2.65rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	border-radius: 10px;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode-tip,
.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__skill-cap {
	display: none !important;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode-btn.is-disabled,
.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode-btn:disabled {
	opacity: 0.38;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode.is-global-only .aith-ecom-imgedit__mode-btn[data-imgedit-mode="global"] {
	flex: 1;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-field {
	margin: 0;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-field .aith-ecom-mainimage-builder__lbl {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.92);
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset .aith-ecom-mainimage-picker__trigger,
.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset .aith-ecom-mainimage-picker__menu {
	display: none !important;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.45rem;
	margin: 0;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.15rem;
	padding: 0.42rem 0.85rem;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 8px;
	background: rgba(36, 40, 50, 0.92);
	color: rgba(203, 213, 225, 0.92);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid__chip:hover {
	border-color: rgba(148, 163, 184, 0.32);
	color: #f8fafc;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid__chip.is-active {
	border-color: rgba(59, 130, 246, 0.85);
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid__custom {
	margin-top: 0.65rem;
	width: 100%;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__mode-tip {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: rgba(148, 163, 184, 0.92);
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__skill-cap {
	margin: 0;
	padding: 0.55rem 0.7rem;
	font-size: 0.76rem;
	line-height: 1.5;
	color: rgba(148, 163, 184, 0.82);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.16);
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__tools {
	margin: 0;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__tool-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 0.5rem;
	width: 100%;
	padding: 0;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__tool-btn {
	width: auto;
	min-height: 2.35rem;
	padding: 0.52rem 0.7rem;
	font-size: 0.8125rem;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.2);
	background: rgba(30, 34, 44, 0.45);
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__brush-size {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.35rem 0 0.15rem;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__brush-lbl {
	font-size: 0.75rem;
}

.aith-imgproc-studio__rail-panel .aith-ecom-mainimage-builder__field {
	margin: 0;
}

.aith-imgproc-studio__rail-panel .aith-ecom-imgedit__region-desc {
	margin-top: 0.15rem;
}

.aith-imgproc-studio__rail-foot {
	flex-shrink: 0;
	margin-top: auto;
	padding: 0.85rem 1.45rem 1.35rem;
	border: none;
	background: transparent;
}

.aith-imgproc-studio__status {
	margin: 0 0 0.65rem;
	min-height: 1.25rem;
	font-size: 0.78rem;
	line-height: 1.45;
	text-align: center;
}

.aith-imgproc-studio__generate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.88rem 1.15rem;
	border: 0;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.aith-imgproc-studio__generate:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* 工作台：图片处理占满输出区，隐藏左侧电商 composer */
.model-archive--workspace .aith-ws-studio.is-imgproc-layout {
	grid-template-columns: 1fr;
}

.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ws-studio__ctrl {
	display: none !important;
}

.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ws-studio__feed {
	border-right: none;
	min-height: min(84vh, 860px);
	display: flex;
	flex-direction: column;
}

.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ws-toolbar--studio {
	display: none;
}

.model-archive--workspace .aith-ws-studio.is-imgproc-layout #aith-unified-feed,
.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ws-feed-foot {
	display: none !important;
}

.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ecom-inspiration,
.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ecom-detailpage-showcase {
	display: none !important;
}

.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ecom-hero,
.model-archive--workspace .aith-ws-studio.is-imgproc-layout #aith-ecomflow-panel,
.model-archive--workspace .aith-ws-studio.is-imgproc-layout .aith-ecom-director__stage {
	display: none !important;
}

.model-archive--workspace #aith-imgproc-studio.aith-imgproc-studio:not([hidden]) ~ .aith-ecom-hero,
.model-archive--workspace .aith-ws-studio:has(#aith-imgproc-studio:not([hidden])) .aith-ecom-hero {
	display: none !important;
}

@media (max-width: 960px) {
	.aith-imgproc-studio__layout {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 0.65rem;
		gap: 0.65rem;
	}

	.aith-imgproc-studio__main {
		min-height: min(50vh, 420px);
		border: none;
	}

	.aith-imgproc-studio__rail {
		max-height: none;
		border-radius: 12px;
	}
}

html[data-theme="light"] .aith-imgproc-studio__layout {
	--imgproc-panel-bg: rgba(248, 250, 252, 0.98);
}

html[data-theme="light"] .aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid__chip {
	background: rgba(241, 245, 249, 0.98);
	border-color: rgba(148, 163, 184, 0.28);
	color: #475569;
}

html[data-theme="light"] .aith-imgproc-studio__rail-panel .aith-ecom-imgedit-preset-grid__chip.is-active {
	color: #fff;
}

html[data-theme="light"] .aith-imgproc-studio__main,
html[data-theme="light"] .aith-imgproc-studio__materials {
	background: transparent;
}

html[data-theme="light"] .aith-imgproc-studio__upload-frame:not(
		:has(.aith-imgproc-studio__workspace:not([hidden]) .aith-imgproc-studio__canvas-wrap.is-has-image)
	) {
	border-color: rgba(100, 116, 139, 0.42);
}

/* 图片基础编辑（浏览器端工具） */
.aith-imgproc-studio[data-imgedit-active-skill="imagetool"] .aith-imgproc-studio__rail-foot,
.aith-imgproc-studio[data-imgedit-active-skill="imagetool"] [data-imgproc-materials],
.aith-imgproc-studio[data-imgedit-active-skill="imagetool"] [data-imgedit-thumbs] {
	display: none !important;
}

.aith-imgproc-studio[data-imgedit-active-skill="imagetool"] .aith-imgproc-studio__upload-frame {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
	min-height: 0;
	flex: 1 1 auto;
	border: 1px dashed rgba(148, 163, 184, 0.28);
	border-radius: 14px;
}

.aith-imgproc-studio[data-imgedit-active-skill="imagetool"] .aith-imgproc-studio__workspace[data-imgedit-skill="imagetool"]:not([hidden]) {
	flex: 1 1 auto;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	min-height: 0;
	width: 100%;
}

.aith-imgproc-studio__rail-panel--imagetool {
	padding: 0;
	border: none;
	border-radius: var(--imgproc-panel-radius);
	background: var(--imgproc-panel-bg);
	overflow: hidden;
	box-shadow: none;
}

.aith-imgproc-studio[data-imgedit-active-skill="imagetool"] .aith-imgproc-studio__rail-body {
	padding: 0.5rem 0 1rem;
}

.aith-imgproc-studio__rail-panel--imagetool:not([hidden]) {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool--imgproc-rail {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	margin: 0;
	padding: 1.35rem 1.25rem 1.5rem;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	gap: 2.25rem;
	padding-top: 0.35rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__tabs {
	margin-bottom: 0;
	flex-shrink: 0;
	padding: 5px;
	gap: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__tab {
	padding: 0.58rem 1.15rem;
	font-size: 0.9rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__pick {
	margin-bottom: 0;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool-upload {
	gap: 0.85rem;
	padding: 1.2rem 1.15rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool-upload__label {
	font-size: 0.84rem;
	margin-bottom: 0.1rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool-file {
	gap: 0.65rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__pane[hidden] {
	display: none !important;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__pane:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: 1.85rem;
	padding-top: 0.15rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field {
	margin-bottom: 0;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field > span {
	margin-bottom: 0.65rem;
	font-size: 0.84rem;
	line-height: 1.45;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field input[type="text"],
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field input[type="number"],
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field select,
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field input[type="range"] {
	margin-top: 0.15rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field input[type="text"],
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field input[type="number"],
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field select {
	padding: 0.72rem 0.85rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__resize-grid {
	gap: 1.25rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__check {
	margin-top: 0.35rem;
	padding-top: 0.15rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__hint {
	margin-top: 0.35rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__tab {
	color: rgba(226, 232, 240, 0.88);
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__tab:hover {
	color: #f8fafc;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__tab.is-active {
	color: #f8fafc;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool-upload {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__pick.is-focused .aith-imagetool-upload,
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__pick:focus-within .aith-imagetool-upload {
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: none;
	background: rgba(255, 255, 255, 0.05);
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__pick.is-has-file .aith-imagetool-upload {
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool-upload__label,
.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool-file__name {
	color: rgba(226, 232, 240, 0.9);
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	flex-shrink: 0;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__actions .aith-generate-submit {
	width: 100%;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__actions .aith-imagetool__status {
	margin: 0;
	text-align: center;
	font-size: 0.78rem;
}

.aith-imgproc-studio__rail-panel--imagetool .aith-imagetool__field > span {
	color: rgba(226, 232, 240, 0.92);
}

.aith-imgproc-studio__imagetool-main {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	box-sizing: border-box;
}

.aith-imgproc-studio__imagetool-empty {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: calc(100% - 2.5rem);
	max-width: 22rem;
	margin: 0;
	text-align: center;
	padding: 0;
	pointer-events: none;
	z-index: 1;
}

.aith-imgproc-studio__imagetool-empty[hidden],
.aith-imgproc-studio__imagetool-main:has([data-imagetool-preview-wrap]:not([hidden]))
	.aith-imgproc-studio__imagetool-empty {
	display: none !important;
}

.aith-imgproc-studio__imagetool-empty .aith-imgproc-studio__drop-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	margin: 0 auto 0.1rem;
	opacity: 0.85;
}

.aith-imgproc-studio__imagetool-empty .aith-imgproc-studio__drop-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(248, 250, 252, 0.96);
	line-height: 1.5;
}

.aith-imgproc-studio__imagetool-empty .aith-imgproc-studio__drop-hint {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(203, 213, 225, 0.82);
	line-height: 1.55;
}

.aith-imgproc-studio__imagetool-preview {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	width: 100%;
}

.aith-imgproc-studio__imagetool-preview-img {
	max-width: 100%;
	max-height: min(72vh, 720px);
	object-fit: contain;
	border-radius: 8px;
}
