/* R5C-R2 — screen-only, doctor-scoped application shell. No clinical meaning or status overrides. */
@media screen {
.app-shell.role-doctor { --cux-r5c-r2:1; --cux-ink:#182436; --cux-muted:#526176; --cux-blue:#2563eb; --cux-line:#e2e8f0; background:#f7f9fc!important; }
.app-shell.role-doctor .main-area {min-width:0;background:#f7f9fc!important;}
.app-shell.role-doctor .phase28-20-sidebar {background:#fff!important;color:#182436!important;border-inline-end:1px solid #e2e8f0!important;box-shadow:none!important;}
.app-shell.role-doctor .phase28-20-brand {border-color:#e2e8f0!important;padding:10px 12px!important;margin-block-end:10px!important;}
.app-shell.role-doctor .phase28-20-brand strong {color:#182436!important;font-weight:650!important;}
.app-shell.role-doctor .phase28-20-brand small {color:#526176!important;}
.app-shell.role-doctor .phase28-20-grouped-nav {padding:8px 6px!important;gap:12px!important;}
.app-shell.role-doctor .phase28-20-nav-group-title {color:#64748b!important;font-weight:600!important;letter-spacing:.04em!important;font-size:11px!important;}
.app-shell.role-doctor .phase28-20-sidebar .sidebar-link {background:transparent!important;color:#334155!important;box-shadow:none!important;font-weight:550!important;border-radius:8px!important;min-height:38px!important;padding:8px 10px!important;transform:none!important;}
.app-shell.role-doctor .phase28-20-sidebar .sidebar-link:hover {background:#f1f5f9!important;color:#182436!important;}
.app-shell.role-doctor .phase28-20-sidebar .sidebar-link.active,.app-shell.role-doctor .phase28-20-sidebar .sidebar-link[aria-current="page"] {background:#eaf1ff!important;color:#1d4ed8!important;box-shadow:none!important;font-weight:650!important;}
.app-shell.role-doctor .phase28-20-topbar {background:#fff!important;box-shadow:none!important;border-color:#e2e8f0!important;padding-inline:16px!important;min-height:56px!important;height:auto!important;gap:8px;flex-wrap:wrap;}
.app-shell.role-doctor .phase28-20-topbar-title strong {font-weight:650!important;color:#182436!important;}
.app-shell.role-doctor .phase28-20-topbar-actions {gap:6px!important;flex-wrap:wrap;}
.app-shell.role-doctor .phase28-20-topbar-actions .secondary-button {border:1px solid #e2e8f0!important;background:#fff!important;color:#334155!important;box-shadow:none!important;padding:7px 10px!important;font-weight:550!important;border-radius:8px!important;}
.app-shell.role-doctor .phase28-20-content-polish {padding:14px 18px!important;max-width:none!important;min-width:0;}
.app-shell.role-doctor .cux-r2-operations {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:5px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;margin-block-end:12px;}
.app-shell.role-doctor .cux-r2-operations .phase2834-runtime-bar {margin:0!important;padding:4px 8px!important;min-height:0!important;background:#f8fafc!important;border-color:#e2e8f0!important;box-shadow:none!important;border-radius:6px!important;}
.app-shell.role-doctor .cux-r2-operations .phase2834-label {color:#526176!important;font-weight:600!important;letter-spacing:0!important;}
.app-shell.role-doctor .cux-r2-operations .medbrain-offline-sync-panel {margin:0!important;padding:6px 8px!important;box-shadow:none!important;border-radius:8px!important;}
.app-shell.role-doctor .cux-r2-operations .medbrain-offline-sync-head {gap:5px!important;}
.app-shell.role-doctor .cux-r2-operations .medbrain-offline-sync-actions {gap:5px!important;}
.app-shell.role-doctor .cux-r2-operations .medbrain-offline-sync-actions button {padding:6px 9px!important;min-height:32px!important;border-radius:7px!important;font-weight:550!important;}
.app-shell.role-doctor .cux-r2-operations .medbrain-offline-sync-metrics {margin-top:4px!important;gap:5px 12px!important;font-size:12px!important;}
.app-shell.role-doctor .cux-r2-operations .medbrain-offline-sync-policy {margin:4px 0 0!important;font-size:12px!important;line-height:1.4!important;}
.app-shell.role-doctor .cux-r2-nav-toggle {display:none;align-items:center;gap:7px;font-size:12px;color:#334155;cursor:pointer;justify-self:end;}
.app-shell.role-doctor .cux-r2-nav-toggle input {width:16px;height:16px;accent-color:#2563eb;}
.app-shell.role-doctor .cux-r5b-intro,.app-shell.role-doctor .cux-r5c-toolbar {background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:none!important;border-radius:10px!important;padding:10px 14px!important;margin-block-end:8px!important;gap:8px!important;}
.app-shell.role-doctor .cux-r5b-intro h2,.app-shell.role-doctor .cux-r5c-toolbar h2 {font-size:20px!important;font-weight:650!important;color:#182436!important;letter-spacing:-.02em!important;margin:2px 0!important;}
.app-shell.role-doctor .cux-r5b-intro p,.app-shell.role-doctor .cux-r5c-eyebrow {color:#526176!important;font-size:12px!important;}
.app-shell.role-doctor .cux-r5b-intro nav button,.app-shell.role-doctor .cux-r5c-toolbar nav button {border:1px solid #e2e8f0!important;background:#f8fafc!important;color:#334155!important;font-weight:550!important;border-radius:7px!important;padding:7px 11px!important;}
.app-shell.role-doctor .cux-r5b-day,.app-shell.role-doctor .cux-r5c-workspace {margin-block:8px!important;gap:10px!important;}
.app-shell.role-doctor .cux-r2-day-grid {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:14px;container-type:inline-size;}
.app-shell.role-doctor .cux-r2-day-safety,.app-shell.role-doctor .cux-r2-day-patients {min-width:0;display:grid;gap:10px;align-content:start;}
.app-shell.role-doctor .cux-r2-day-safety #cux-r5b-safety {display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:10px!important;}
.app-shell.role-doctor .cux-r2-day-safety #cux-r5b-safety>* {min-height:0!important;align-self:start!important;box-shadow:none!important;}
.app-shell.role-doctor .cux-r2-day-patients>h3 {margin:0;font-size:17px;font-weight:650;}
.app-shell.role-doctor .cux-r5c-navigation {border-color:#e2e8f0!important;border-radius:10px!important;padding:8px 10px!important;margin-block-end:8px!important;}
.app-shell.role-doctor .cux-r5c-navigation h3 {font-size:12px!important;color:#526176!important;font-weight:600!important;margin-block-end:5px!important;}
.app-shell.role-doctor .cux-r5c-navigation #patient-file-tab-strip > button {font-weight:550!important;border-radius:7px!important;}
.app-shell.role-doctor .cux-r5c-navigation #patient-file-tab-strip > button.active {background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;}
.app-shell.role-doctor .cux-r5c-chart .phase28-44-3-hero {border-inline-start:3px solid #2563eb!important;border-radius:10px!important;box-shadow:none!important;}
.app-shell.role-doctor .cux-r5c-chart .phase28-44-3-card {border-radius:10px!important;box-shadow:none!important;}
.app-shell.role-doctor .cux-r5c-chart .phase28-44-3-card-head h3 {font-weight:600!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-hero-main {border-inline-start:3px solid #2563eb!important;border-radius:10px!important;padding:14px!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-hero h2 {font-size:24px!important;font-weight:650!important;color:#182436!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-encounter-command-bar {background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:none!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-command-primary:not(:disabled):not([aria-disabled=true]) {background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-save-bar .primary-button:not(:disabled):not([aria-disabled=true]) {background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-section {border-radius:10px!important;box-shadow:none!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-section>summary h3 {font-weight:600!important;}
.app-shell.role-doctor .cux-r5c-clinical .uswe-field>span {font-weight:600!important;}
.app-shell.role-doctor :is(.cux-r2-operations,.cux-r5b-day,.cux-r5c-workspace,.phase28-20-sidebar) :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #2563eb!important;outline-offset:3px;}
@media(min-width:1100px){
.app-shell.role-doctor:not(.phase28-22-3-mobile-shell) .cux-r2-nav-toggle {display:flex;}
.app-shell.role-doctor:not(.phase28-22-3-mobile-shell):has(.cux-r2-hide-sidebar:checked)>.sidebar {display:none!important;}
.app-shell.role-doctor .cux-r2-operations {grid-template-columns:minmax(180px,1fr) minmax(0,3fr);}
.app-shell.role-doctor .cux-r2-nav-toggle {grid-column:1/-1;}
.app-shell.role-doctor .cux-r2-day-grid {grid-template-columns:minmax(260px,30%) minmax(0,1fr);}
.app-shell.role-doctor:not(.phase28-22-3-mobile-shell)>.sidebar {width:224px!important;padding:10px!important;}
}
@media(max-width:1099px){.app-shell.role-doctor .phase28-20-content-polish{padding:12px!important;}}
}
