/* Client pages embedded in Admin → Project AI */
html.admin-embed-page,
html.admin-embed-page body {
	overflow: auto !important;
	height: auto !important;
}
html.admin-embed-page .app-sidebar,
html.admin-embed-page .app-sidebar-foot,
html.admin-embed-page .sidebar-logout-btn,
html.admin-embed-page .app-footer,
html.admin-embed-page #btnLogoutSidebar,
html.admin-embed-page .ws-support-fab,
html.admin-embed-page .ws-support-panel {
	display: none !important;
}
html.admin-embed-page .app-shell {
	min-height: 0 !important;
	height: auto !important;
	overflow: visible !important;
}
html.admin-embed-page .app-stage {
	margin-left: 0 !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}
html.admin-embed-page .app-main,
html.admin-embed-page .clarity-main {
	overflow: visible !important;
	height: auto !important;
	min-height: 0 !important;
	padding-top: 12px !important;
}
html.admin-embed-page .app-topbar.clarity-topbar {
	position: static !important;
}
html.admin-embed-page #projectSelect,
html.admin-embed-page #intentSegmentProjectSelect {
	pointer-events: none;
	opacity: 0.72;
	background: #f8fafc;
}
html.admin-embed-page #linkGoalConditions,
html.admin-embed-page .app-topbar-actions a[href="goal_conditions"],
html.admin-embed-page .app-topbar-actions a[href="llm_content"] {
	display: none !important;
}

/* Intent segment standalone embed (drip dashboard) */
html.admin-embed-intent-only .app-sidebar,
html.admin-embed-intent-only .app-topbar,
html.admin-embed-intent-only .dash-view,
html.admin-embed-intent-only #subscriptionRequiredBanner,
html.admin-embed-intent-only .app-footer,
html.admin-embed-intent-only #view-projects .data-panel:not(#projectIntentSegmentPanel),
html.admin-embed-intent-only #view-projects > .section-title,
html.admin-embed-intent-only #view-projects > .page-desc,
html.admin-embed-intent-only #view-projects > .controls,
html.admin-embed-intent-only #view-projects > .data-panel:first-of-type,
html.admin-embed-intent-only #btnCloseProjectIntentExpand {
	display: none !important;
}
html.admin-embed-intent-only #view-projects {
	display: block !important;
	padding: 0 !important;
}
html.admin-embed-intent-only #projectIntentSegmentDock,
html.admin-embed-intent-only #projectIntentSegmentExpandWrap,
html.admin-embed-intent-only #projectIntentSegmentPanel {
	display: block !important;
	visibility: visible !important;
}
html.admin-embed-intent-only #projectIntentSegmentExpandWrap {
	margin: 0 !important;
}
html.admin-embed-intent-only .app-main {
	padding: 12px 16px 24px !important;
}

/* Admin host iframes */
.pai-embed-frame {
	width: 100%;
	min-height: 720px;
	height: 78vh;
	border: 1px solid var(--border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
}
