/* Scoped to the five requested views. */
@media screen {
body.insight-premium #root .psychologist-workspace > .psychologist-workspace-content[hidden],
body.insight-premium #root .da-admin-dashboard > .max-w-7xl[hidden] { display:none !important; }
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page { width:calc(100% - 48px); max-width:1080px; margin:0 auto; padding:28px 0 64px; min-width:0; }
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page > header { margin:20px 0 24px; }
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page h1 { font-size:clamp(24px,2.4vw,34px); font-weight:700; line-height:1.2; }
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page :is(input,textarea,select) { max-width:100%; }
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page :is(p,a,label) { overflow-wrap:anywhere; }
body.insight-premium #root .psychologist-workspace .dashboard-access-notice { font-size:12px; margin:0 0 8px; color:#38536b; }
body.insight-premium #root .insight-plan.ip-dashboard-plan .ip-header { max-width:none; padding:10px max(24px,calc((100% - 1080px)/2)); background:linear-gradient(110deg,#003650,#00182e); }
body.insight-premium #root .insight-plan.ip-dashboard-plan .ip-header img { display:block; content:normal; background:transparent; padding:0; border:0; width:220px !important; max-width:100%; height:auto !important; aspect-ratio:320/100 !important; object-fit:contain; }
body.insight-premium #root .insight-plan.ip-dashboard-plan .ip-header > a:last-child { color:white; }
}
@media screen and (max-width:719px) {
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page { width:calc(100% - 32px); padding-top:20px; }
body.insight-premium #root :is(.psychologist-workspace,.da-admin-dashboard) > .dashboard-detail-page .grid-cols-2 { grid-template-columns:minmax(0,1fr); }
body.insight-premium #root .da-admin-dashboard > .dashboard-detail-page .flex.items-center.gap-6 { flex-wrap:wrap; }
body.insight-premium #root .insight-plan.ip-dashboard-plan .ip-header { padding:12px 16px; gap:12px; }
body.insight-premium #root .insight-plan.ip-dashboard-plan .ip-header img { width:170px !important; }
}
/* Routed management screens retain the dashboard shell and document scrolling. */
body.insight-premium #root .has-routed-page > :not(nav):not(.routed-dashboard-page):not(.fixed):not([role="dialog"]):not([role="alertdialog"]) { display:none !important; }
.routed-dashboard-page > main { width:calc(100% - 48px); max-width:1080px; margin:auto; padding:28px 0 64px; }
.routed-dashboard-page h1 { font-size:28px; font-weight:700; margin:20px 0 24px; }
.routed-dashboard-page .detail-back-button { padding:10px 16px; border:1px solid #c8d9e9; border-radius:6px; background:white; }
.routed-dashboard-page :is(p,a,label) { overflow-wrap:anywhere; }
.routed-dashboard-page .page-content { width:100%; max-height:none; overflow:visible; }
@media(max-width:719px) { .routed-dashboard-page > main { width:calc(100% - 32px); } .routed-dashboard-page .grid-cols-2 { grid-template-columns:minmax(0,1fr); } }
.plan-management-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:8px max(16px,calc((100% - 1152px)/2)); background:linear-gradient(110deg,#003650,#00182e); color:white; }
.plan-management-header img { width:220px; max-width:45vw; height:auto; object-fit:contain; }
@media screen and (min-width:720px) and (max-width:1050px) {
  body.insight-premium #root .psychologist-workspace-content { padding-top:10px; }
  body.insight-premium #root .psychologist-workspace .psychologist-workspace-heading { margin-bottom:9px; }
}

/* Diagram tools remain available within the normal document page. */
.routed-dashboard-page .why-functional-viewer { position:relative; inset:auto; z-index:auto; width:100%; height:auto; min-height:0; overflow:visible; }
.routed-dashboard-page .why-functional-scroll { max-width:100%; overflow:auto; }
.routed-dashboard-page .why-functional-header { flex-wrap:wrap; }
/* Compact the reference-width homepage without changing its content or font roles. */
@media screen and (min-width:720px) and (max-width:1050px) {
  body.insight-premium #root .insight-home .ih-header { gap:5px; padding-inline:2%; }
  body.insight-premium #root .insight-home .ih-header .ih-brand img { width:160px !important; object-fit:contain; }
  body.insight-premium #root .insight-home .ih-header #homepage-navigation .ih-container { flex-wrap:nowrap; gap:0; }
  body.insight-premium #root .insight-home .ih-header #homepage-navigation a { padding-inline:3px; font-size:8.5px; white-space:nowrap; }
  body.insight-premium #root .insight-home .ih-hero.ih-hero-unified { padding-top:20px; padding-bottom:12px; }
  body.insight-premium #root .insight-home .ih-unified-actions { margin-top:8px; gap:4px; }
  body.insight-premium #root .insight-home .pp-practice > .pp-grid article { display:flex; flex-direction:column; align-items:center; gap:0; padding:5px 6px 7px; }
  body.insight-premium #root .insight-home .pp-practice > .pp-grid .pp-icon { flex:none; }
  body.insight-premium #root .psychologist-workspace-content { padding-top:4px; }
  body.insight-premium #root .psychologist-workspace .psychologist-workspace-heading h1 { font-size:20px; }
}
body.insight-premium #root .routed-dashboard-page :is(h1,h2,h3) { white-space:normal; overflow-wrap:anywhere; }
.routed-dashboard-page .detail-back-button { max-width:100%; white-space:normal; }
/* Keep the real result count alongside filters at desktop/reference widths. */
@media screen and (min-width:720px) {
  body.insight-premium #root .da-admin-dashboard [data-testid="psychologists-content"] .mb-6.space-y-4 { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 12px; }
  body.insight-premium #root .da-admin-dashboard [data-testid="psychologists-content"] .mb-6.space-y-4 > :first-child { grid-column:1/-1; }
  body.insight-premium #root .da-admin-dashboard [data-testid="psychologists-content"] .mb-6.space-y-4 > * + * { margin-top:0; }
}
@media screen and (min-width:720px) and (max-width:1050px) {
  body.insight-premium #root .session-phases-page > nav.analysis-header { min-height:52px; padding-block:0; }
  body.insight-premium #root .session-phases-page > nav.analysis-header img { width:190px !important; height:52px !important; object-fit:contain; }
  body.insight-premium #root .session-phases-page[data-phase="5"] > .w-full { padding-top:4px; }
  body.insight-premium #root .session-phases-page .analysis-overview { grid-template-columns:minmax(0,1fr) 140px; }
  body.insight-premium #root .session-phases-page :is(.analysis-overview-main,.analysis-progress-card) { min-height:64px; padding-block:4px; }
  body.insight-premium #root .session-phases-page .analysis-progress-card small { white-space:nowrap; }
}
