/* Code Shot - only the studio-specific layout. Dialog shell, sections, rows,
   selects, checks, buttons and colour swatches come from the shared editor UI
   kit (bridge.ui / dsm-*). */

#wpie-root .wpie-cs-body {
	display: flex; gap: 14px; min-height: 0;
	height: min(680px, 76vh);
}
#wpie-root .wpie-cs-left,
#wpie-root .wpie-cs-side {
	width: 300px; flex: 0 0 300px; overflow-y: auto; overflow-x: hidden;
}
#wpie-root .wpie-cs-view {
	flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
	padding: 16px; overflow: auto; border-radius: 12px;
	background:
		linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.03) 75%) 0 0 / 22px 22px,
		linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.03) 75%) 11px 11px / 22px 22px,
		#0c0f16;
}
#wpie-root .wpie-cs-canvas {
	max-width: 100%; max-height: 100%; height: auto; width: auto;
	border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

/* Section-card headers: match the other studios (--ed-text-dim). */
#wpie-root .wpie-cs-left .dsm-card-head,
#wpie-root .wpie-cs-side .dsm-card-head { color: var( --ed-text-dim, #b9c0cc ); }
#wpie-root .wpie-cs-left .dsm-card-head svg,
#wpie-root .wpie-cs-side .dsm-card-head svg { opacity: 0.85; }

#wpie-root .wpie-cs-code {
	width: 100%; box-sizing: border-box; min-height: 220px; resize: vertical;
	margin-bottom: 8px; padding: 10px 12px; border-radius: 8px;
	font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var( --text-primary, #e8ebf0 ); tab-size: 2;
	background: var( --surface-input, #14171c ); border: 1px solid var( --ed-border, #2a2f36 );
	white-space: pre; overflow: auto;
}
#wpie-root .wpie-cs-code:focus { outline: none; border-color: var( --accent, #3b66ff ); }

#wpie-root .wpie-cs-tools { margin-top: 2px; }
#wpie-root .wpie-cs-import { margin-top: 8px; }
#wpie-root .wpie-cs-import .dsm-btn { width: 100%; justify-content: center; }

#wpie-root .wpie-cs-titlerow { display: flex; gap: 8px; align-items: center; }
#wpie-root .wpie-cs-titlerow .dsm-input { flex: 1; min-width: 0; }

#wpie-root .wpie-cs-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
