/**
 * PSDM designer UX additions (Vistaprint-inspired set):
 *   #psdm-text-fields  — structured text form at the top of the Text tab
 *   .psdm-gt-*         — Bleed/Cut/Safe toggle pill + popover
 *   .psdm-ph-*         — unedited-placeholder Process dialog
 * AX theme tokens with literal fallbacks (theme can be killed).
 */

/* ------------------------------------------------- text fields (Text tab) */
#psdm-text-fields {
	padding: 12px 12px 14px;
	border-bottom: 1px solid var(--ax-gray-200, #e4e6eb);
	background: var(--ax-gray-50, #fafbfc);
}
.psdm-tf-head {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ax-gray-900, #23262e);
	margin-bottom: 10px;
}
.psdm-tf-side {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ax-gray-500, #8a8f99);
	margin: 10px 0 6px;
}
.psdm-tf-row {
	display: block;
	margin: 0 0 8px;
}
.psdm-tf-label {
	display: block;
	font-size: 11px;
	color: var(--ax-gray-500, #8a8f99);
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.psdm-tf-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid var(--ax-gray-300, #d5d8de);
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	line-height: 1.35;
	color: var(--ax-gray-900, #23262e);
	resize: vertical;
}
.psdm-tf-input:focus {
	outline: none;
	border-color: var(--ax-cta, #4262ff);
	box-shadow: 0 0 0 2px var(--ax-cta-tint, rgba(66, 98, 255, 0.15));
}

/* -------------------------------------------- guide toggles (View menu) */
/* Our three rows reuse the vendor's own sub-menu-item/active styling; we
   only add the color swatch. The vendor's "Show bleed line" row is hidden —
   its stock bleed chrome is suppressed by the guide CSS, so two "bleed"
   entries would fight (boss-reported conflict 2026-08-03). */
.nbd-main-bar li[ng-click*="settings.bleedLine"] { display: none !important; }
.psdm-gt-mi { cursor: pointer; }
.psdm-gt-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 3px;
	margin-right: 8px;
	vertical-align: 0;
}

/* ------------------------------------------------ placeholder guard dialog */
.psdm-ph-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 18, 24, 0.55);
	padding: clamp(10px, 4vmin, 30px);
}
.psdm-ph-dialog {
	width: min(92vw, 460px);
	max-height: 86vh;
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	padding: 22px 22px 18px;
	box-shadow: 0 24px 70px rgba(10, 14, 22, 0.35);
}
.psdm-ph-dialog h3 {
	margin: 0 0 8px;
	font-size: 17px;
	color: var(--ax-gray-900, #23262e);
}
.psdm-ph-dialog p {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ax-gray-500, #5c616b);
}
.psdm-ph-dialog ul {
	margin: 0 0 16px;
	padding: 10px 14px;
	list-style: none;
	background: var(--ax-gray-50, #fafbfc);
	border: 1px solid var(--ax-gray-200, #e4e6eb);
	border-radius: 10px;
	max-height: 180px;
	overflow: auto;
}
.psdm-ph-dialog ul li {
	font-size: 13px;
	padding: 3px 0;
	color: var(--ax-gray-900, #23262e);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.psdm-ph-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}
.psdm-ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--ax-gray-300, #d5d8de);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--ax-gray-900, #23262e);
	cursor: pointer;
}
.psdm-ph-btn:hover { background: var(--ax-gray-100, #f1f2f5); }
.psdm-ph-btn.psdm-ph-edit {
	background: var(--ax-cta, #4262ff);
	border-color: var(--ax-cta, #4262ff);
	color: #fff;
}
.psdm-ph-btn.psdm-ph-edit:hover { filter: brightness(1.06); }
