/* R6E-R1: visual consolidation only. No changes to JavaScript, API or clinical actions.
   The exact paired dashboard structure must exist; focused patient mode and other routes retain their layout. */
@media screen {
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) {
  display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-auto-flow:row!important; align-items:start!important; gap:12px!important;
}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > * {
  grid-column:1/-1; min-width:0; order:100;
}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > :has(~ .mb-r6-dashboard) {order:0;}
/* Flatten only the presentation wrappers. Original React components remain mounted. */
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > :is(.mb-r6-dashboard,#doctor-command-center-section),
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-metrics,
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-status-strip {display:contents!important;container-type:normal!important;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-hero {grid-column:1/-1;order:10;min-height:118px!important;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-command-header {
  grid-column:1/-1;order:11;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-width:0;margin:0!important;padding:2px 4px!important;
}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) .doctor-ux-command-header h2 {margin:0!important;font-size:19px!important;}
/* Only the two redundant, noninteractive top counters are hidden. The existing reconciled counters remain. */
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(-n+2) {display:none!important;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(3) {order:14;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4) {order:15;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(1) {order:12;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(2) {order:13;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(3) {order:16;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4) {order:17;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) :is(.mb-r6-metrics > .cux-r3-metric,.doctor-ux-status-strip > .phase28-16-command-metric) {
  grid-column:auto;min-width:0!important;max-width:100%!important;width:auto!important;min-height:104px!important;height:100%!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;
  border:1px solid #dce6f2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 15px #213e660c!important;overflow-wrap:anywhere;
}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) .doctor-ux-status-strip > .phase28-16-command-metric {display:flex!important;align-items:flex-start!important;gap:8px!important;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) .doctor-ux-status-strip > .phase28-16-command-metric > svg {flex:none;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) .doctor-ux-status-strip > .phase28-16-command-metric strong {font-size:27px!important;line-height:1.2!important;color:#192a44!important;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > #doctor-command-center-section > .doctor-ux-selected-patient {grid-column:1/-1;order:18;min-width:0;margin:0!important;}
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-grid {grid-column:1/-1;order:30;min-width:0;align-items:start!important;margin:0!important;}
/* Keep the consultation flow controls and detailed worklists in their established document order. */
.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .doctor-ux-flow-control {order:31;}
@media(max-width:1400px){.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:950px){.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important;}.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child) > .mb-r6-dashboard > .mb-r6-grid {grid-template-columns:minmax(0,1fr)!important;}}
@media(max-width:360px){.app-shell.role-doctor > .main-area > .content:has(> .mb-r6-dashboard > .mb-r6-metrics > .cux-r3-metric:nth-child(4):last-child):has(> #doctor-command-center-section > .doctor-ux-status-strip > .phase28-16-command-metric:nth-child(4):last-child){grid-template-columns:minmax(0,1fr)!important;}}
}
