/* 3D Earth Studio. The modal chrome comes from the editor's dsm family;
   only studio-specific layout lives here, scoped wpiees- so siblings
   never collide. The familiar three columns: looks, markers and orbits
   on the left, the globe in the middle, dials on the right. */

#wpie-root .wpiees-dialog {
	width: min( 1560px, 98vw );
	height: min( 880px, 94vh );
}

#wpie-root .wpiees-body {
	display: flex;
	flex: 1;
	min-height: 0;
}

#wpie-root .wpiees-left,
#wpie-root .wpiees-side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-gutter: stable;
}

#wpie-root .wpiees-left {
	width: 270px;
	min-width: 270px;
	border-right: 1px solid var( --ed-border, #2a2f36 );
}

#wpie-root .wpiees-side {
	width: 300px;
	min-width: 300px;
	border-left: 1px solid var( --ed-border, #2a2f36 );
}

#wpie-root .wpiees-left > *,
#wpie-root .wpiees-side > * {
	flex: none;
	min-width: 0;
}

#wpie-root .wpiees-view {
	position: relative;
	display: grid;
	flex: 1;
	place-items: stretch;
	min-width: 0;
	overflow: hidden;
	background: repeating-conic-gradient(
			rgba( 128, 128, 128, 0.07 ) 0 25%,
			transparent 0 50%
		)
		0 0 / 22px 22px;
}

#wpie-root .wpiees-view.is-doc {
	background-color: #14171c;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

#wpie-root .wpiees-canvas {
	width: 100%;
	height: 100%;
	touch-action: none;
	outline: none;
	cursor: grab;
}

#wpie-root .wpiees-canvas:active {
	cursor: grabbing;
}

#wpie-root .wpiees-hint {
	position: absolute;
	bottom: 10px;
	left: 50%;
	z-index: 2;
	padding: 4px 12px;
	font-size: 10px;
	color: rgba( 255, 255, 255, 0.82 );
	white-space: nowrap;
	pointer-events: none;
	background: rgba( 10, 12, 16, 0.55 );
	border-radius: 20px;
	transform: translateX( -50% );
}

#wpie-root .wpiees-docbtn {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 4px 11px;
	font-size: 11px;
	color: var( --ed-text, #e8ecf1 );
	cursor: pointer;
	background: var( --ed-panel, rgba( 0, 0, 0, 0.45 ) );
	border: 1px solid var( --ed-border, #3a3f47 );
	border-radius: 20px;
}

#wpie-root .wpiees-docbtn[aria-pressed='true'] {
	border-color: var( --accent, #3b66ff );
}

/* ------------------------------- the cards -------------------------------- */

#wpie-root .wpiees-card {
	background: var( --ed-panel-alt, #1b1f26 );
	border: 1px solid var( --ed-border, #2a2f36 );
	border-radius: 10px;
}

#wpie-root .wpiees-cardhead {
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 9px 11px 0;
	font-size: 11px;
	font-weight: 600;
	color: var( --ed-text-dim, #b9c0cc );
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#wpie-root .wpiees-cardhead svg {
	opacity: 0.85;
}

#wpie-root .wpiees-cardbody {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 9px 11px 11px;
}

#wpie-root .wpiees-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

#wpie-root .wpiees-label {
	flex: none;
	width: 96px;
	font-size: 11px;
	color: var( --ed-text-dim, #a7adb7 );
}

#wpie-root .wpiees-row .dsm-range {
	flex: 1;
	min-width: 0;
}

#wpie-root .wpiees-value {
	flex: none;
	min-width: 34px;
	font-size: 11px;
	color: var( --ed-text-dim, #c3c9d3 );
	text-align: right;
}

#wpie-root .wpiees-row .dsm-select {
	flex: 1;
	min-width: 0;
}

#wpie-root .wpiees-scenes {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 6px;
}

#wpie-root .wpiees-scene,
#wpie-root .wpiees-chip {
	padding: 8px 6px;
	font-size: 11px;
	color: var( --ed-text-dim, #a7adb7 );
	cursor: pointer;
	background: transparent;
	border: 1px solid var( --ed-border, #3a3f47 );
	border-radius: 8px;
}

#wpie-root .wpiees-scene:hover,
#wpie-root .wpiees-chip:hover {
	color: var( --ed-text, #e8ecf1 );
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiees-scene.is-on,
#wpie-root .wpiees-chip.is-on {
	color: var( --ed-text, #e8ecf1 );
	background: rgba( 59, 102, 255, 0.14 );
	border-color: var( --accent, #3b66ff );
}

#wpie-root .wpiees-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

#wpie-root .wpiees-chip {
	padding: 5px 9px;
	border-radius: 999px;
}

#wpie-root .wpiees-marklist {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#wpie-root .wpiees-markrow {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
	padding: 4px 7px;
	font-size: 11px;
	background: rgba( 127, 127, 127, 0.1 );
	border-radius: 7px;
}

#wpie-root .wpiees-markname {
	flex: 1;
	min-width: 0;
	font-size: 11px;
}

#wpie-root .wpiees-markgeo {
	flex: none;
	font-size: 10px;
	color: var( --ed-text-dim, #8b929c );
	white-space: nowrap;
}

#wpie-root .wpiees-srccol {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#wpie-root .wpiees-srccol .ai-btn {
	width: 100%;
}

#wpie-root .wpiees-note {
	font-size: 10px;
	line-height: 1.5;
	color: var( --ed-text-dim, #8b929c );
}

#wpie-root .wpiees-status {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 11px;
	color: var( --ed-text-dim, #8b929c );
	text-overflow: ellipsis;
	white-space: nowrap;
}

#wpie-root .wpiees-status.is-bad {
	color: #ff6b6b;
}

#wpie-root .wpiees-colour {
	flex: none;
	width: 34px;
	height: 24px;
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: 1px solid var( --ed-border, #3a3f47 );
	border-radius: 5px;
}

/* v1.2.1: live marker labels - DOM over the canvas, never in a still. */
