/* Day Ring - studio-specific layout only. Dialog shell, sections, rows, selects,
   checks, buttons and colour swatches come from the shared editor UI kit. */

#wpie-root .wpie-dr-body {
	display: flex; gap: 14px; min-height: 0;
	height: min(680px, 76vh);
}
#wpie-root .wpie-dr-left,
#wpie-root .wpie-dr-side {
	width: 306px; flex: 0 0 306px; overflow-y: auto; overflow-x: hidden;
}
#wpie-root .wpie-dr-view {
	flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
	position: relative; padding: 16px; overflow: hidden; 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-dr-view.is-doc { background-color: #05060a; background-size: contain; background-position: center; background-repeat: no-repeat; }
#wpie-root .wpie-dr-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 headers match the other studios (--ed-text-dim). */
#wpie-root .wpie-dr-left .dsm-card-head,
#wpie-root .wpie-dr-side .dsm-card-head { color: var( --ed-text-dim, #b9c0cc ); }
#wpie-root .wpie-dr-left .dsm-card-head svg,
#wpie-root .wpie-dr-side .dsm-card-head svg { opacity: 0.85; }

/* Block list */
#wpie-root .wpie-dr-block {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	padding: 8px; margin-bottom: 8px; border-radius: 9px;
	background: var( --ed-panel, rgba(255,255,255,0.03) ); border: 1px solid var( --ed-border, #2a2f36 );
}
#wpie-root .wpie-dr-top { display: flex; gap: 6px; align-items: center; width: 100%; }
#wpie-root .wpie-dr-name { flex: 1; min-width: 0; }
#wpie-root .wpie-dr-emoji {
	width: 46px; flex: 0 0 46px; box-sizing: border-box; text-align: center;
	padding: 6px 4px; border-radius: 7px; font-size: 15px;
	color: var( --text-primary, #e8ebf0 ); background: var( --surface-input, #14171c );
	border: 1px solid var( --ed-border, #2a2f36 );
}
#wpie-root .wpie-dr-emoji:focus { outline: none; border-color: var( --accent, #3b66ff ); }
/* Emoji as a click-to-pick button (block rows). */
#wpie-root .wpie-dr-emojibtn {
	height: 34px; cursor: pointer; font-size: 18px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
}
#wpie-root .wpie-dr-emojibtn:hover { border-color: var( --accent, #3b66ff ); }
#wpie-root .wpie-dr-emojibtn.is-empty { opacity: 0.5; }
#wpie-root .wpie-dr-emojibtn svg { display: block; width: 18px; height: 18px; }
/* Centre-emoji pick button (dial card). */
#wpie-root .wpie-dr-pickbtn {
	flex: 0 0 auto; width: 34px; height: 32px; cursor: pointer; font-size: 16px;
	border-radius: 7px; color: var( --text-primary, #e8ebf0 );
	background: var( --surface-input, #14171c ); border: 1px solid var( --ed-border, #2a2f36 );
}
#wpie-root .wpie-dr-pickbtn:hover { border-color: var( --accent, #3b66ff ); }
/* Emoji picker popover, anchored inside the dialog. */
#wpie-root .wpie-dr-emojipop {
	position: absolute; z-index: 50; width: 292px; padding: 6px;
	background: var( --ed-panel, #1d2126 ); border: 1px solid var( --ed-border, #2a2f36 );
	border-radius: 10px; box-shadow: 0 12px 34px rgba( 0, 0, 0, 0.5 );
}
/* Title/Subtitle/Centre inputs: let the {…} button sit beside a flexible field. */
#wpie-root .wpie-dr-body .dsm-rowline-value .dsm-input { flex: 1 1 auto; min-width: 0; width: auto; }
/* Section cards: a touch more breathing room, like the other studios. */
#wpie-root .wpie-dr-left .dsm-card,
#wpie-root .wpie-dr-side .dsm-card { margin-bottom: 14px; }
#wpie-root .wpie-dr-left .dsm-card:last-child,
#wpie-root .wpie-dr-side .dsm-card:last-child { margin-bottom: 0; }
#wpie-root .wpie-dr-times { display: flex; align-items: center; gap: 4px; }
#wpie-root .wpie-dr-dash { color: var( --ed-text-muted, #9aa1ab ); }
#wpie-root .wpie-dr-time {
	width: 78px; box-sizing: border-box; padding: 5px 7px; border-radius: 7px;
	font: 12px ui-sans-serif, system-ui, sans-serif;
	color: var( --text-primary, #e8ebf0 ); background: var( --surface-input, #14171c );
	border: 1px solid var( --ed-border, #2a2f36 );
}
#wpie-root .wpie-dr-time:focus { outline: none; border-color: var( --accent, #3b66ff ); }
#wpie-root .wpie-dr-color { margin-left: auto; }
#wpie-root .wpie-dr-del {
	width: 26px; height: 26px; flex: 0 0 26px; border: 0; border-radius: 7px; cursor: pointer;
	font-size: 17px; line-height: 1; color: var( --ed-text-muted, #9aa1ab );
	background: transparent;
}
#wpie-root .wpie-dr-del:hover { background: var( --ed-hover, rgba(255,255,255,0.06) ); color: var( --ed-text, #e8ebf0 ); }
#wpie-root .wpie-dr-add { width: 100%; justify-content: center; margin-top: 2px; }

/* View overlays (match the 3D studios). */
#wpie-root .wpie-dr-hint {
	position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
	padding: 3px 10px; font-size: 10px; color: rgba(255,255,255,0.82);
	pointer-events: none; background: rgba(10,12,16,0.55); border-radius: 20px; white-space: nowrap;
}
#wpie-root .wpie-dr-docbtn {
	position: absolute; top: 10px; right: 12px; z-index: 3;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 11px; font-size: 11px; color: var( --ed-text-muted, #9aa1ab );
	cursor: pointer; background: var( --ed-panel, #1d2126 );
	border: 1px solid var( --ed-border, #2a2f36 ); border-radius: 20px;
}
#wpie-root .wpie-dr-docbtn svg { width: 14px; height: 14px; }
#wpie-root .wpie-dr-docbtn:hover { color: var( --ed-text, #e8ebf0 ); }
#wpie-root .wpie-dr-docbtn[aria-pressed='true'] { color: var( --ed-text, #e8ebf0 ); border-color: var( --accent, #3b66ff ); }

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