/* R6B-R1: doctor-only shell. Original sync actions, status and warnings remain live. */
@media screen {
.app-shell.role-doctor .phase28-20-topbar {min-height:52px!important;padding:6px 16px!important;gap:10px!important;align-items:center!important;justify-content:space-between!important;position:relative;box-sizing:border-box;}
.app-shell.role-doctor .phase28-20-topbar-title {min-width:0!important;flex:1 1 150px!important;}
.app-shell.role-doctor .phase28-20-topbar-title span {font-size:12px!important;color:#64748b!important;}
.app-shell.role-doctor .phase28-20-topbar-actions {display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0;}
.app-shell.role-doctor .mb-r6r1-identity {display:flex;align-items:center;gap:9px;padding-inline:8px;border-inline-start:1px solid #dbe5f0;max-width:min(270px,40vw);min-width:0;flex-shrink:1;}
.app-shell.role-doctor .mb-r6r1-identity>div {min-width:0;display:grid;gap:2px;}
.app-shell.role-doctor .mb-r6r1-identity strong {display:block;font-size:13px;font-weight:700;color:#192a44;overflow-wrap:anywhere;line-height:1.25;}
.app-shell.role-doctor .mb-r6r1-identity small {font-size:11px;color:#52647d;line-height:1.2;}
.app-shell.role-doctor .mb-r6r1-avatar {display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:11px;background:#eaf2ff;color:#246bff;}
.app-shell.role-doctor .phase28-20-content-polish {padding-block-start:8px!important;}
.app-shell.role-doctor .cux-r2-operations {display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:6px 10px!important;min-height:0!important;padding:3px 5px!important;margin:0 0 10px!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.app-shell.role-doctor .cux-r2-operations .phase2834-runtime-bar {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px 8px!important;width:auto!important;max-width:100%!important;flex:0 1 auto!important;margin:0!important;padding:5px 9px!important;min-height:30px!important;border:1px solid #e2e9f3!important;background:#fff!important;border-radius:8px!important;}
.app-shell.role-doctor .cux-r2-operations .phase2834-runtime-bar :is(span,strong,label) {overflow-wrap:anywhere;}
.app-shell.role-doctor .cux-r2-operations .mb-r6r1-sync {position:relative!important;width:auto!important;flex:0 1 auto!important;min-width:0!important;max-width:100%!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
.app-shell.role-doctor .mb-r6r1-sync-details {position:relative;max-width:100%;}
.app-shell.role-doctor .mb-r6r1-sync-summary {display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;min-height:34px;box-sizing:border-box;cursor:pointer;padding:6px 10px;border:1px solid #bddfd7;border-radius:9px;background:#e9f8f3;color:#08685b;font-size:12px;line-height:1.3;list-style:none;}
.app-shell.role-doctor .mb-r6r1-sync-summary::-webkit-details-marker {display:none;}
.app-shell.role-doctor .mb-r6r1-sync-summary strong {color:inherit;font-size:12px;}
.app-shell.role-doctor .mb-r6r1-sync-summary span {font-variant-numeric:tabular-nums;}
.app-shell.role-doctor .mb-r6r1-sync-summary .mb-r6r1-chevron {font-size:17px;line-height:1;}
.app-shell.role-doctor .mb-r6r1-sync-details[open] .mb-r6r1-chevron {transform:rotate(180deg);}
.app-shell.role-doctor .mb-r6r1-sync:is(.is-offline,.is-degraded,.is-syncing) .mb-r6r1-sync-summary {background:#fff4df;color:#80500a;border-color:#efce98;}
.app-shell.role-doctor .mb-r6r1-sync.has-conflict .mb-r6r1-sync-summary {background:#fff0f0;color:#a11b25;border-color:#edb6bc;}
.app-shell.role-doctor .mb-r6r1-sync-body {position:absolute;inset-inline-end:0;inset-block-start:calc(100% + 6px);z-index:1000;width:min(480px,calc(100vw - 40px));max-height:min(65vh,500px);overflow:auto;padding:13px;border:1px solid #dbe5f0;border-radius:12px;background:#fff;box-shadow:0 12px 32px #192a4430;color:#192a44;box-sizing:border-box;}
.app-shell.role-doctor .mb-r6r1-sync-body .medbrain-offline-sync-head {display:grid!important;gap:10px!important;}
.app-shell.role-doctor .mb-r6r1-sync-body .medbrain-offline-sync-actions {display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
.app-shell.role-doctor .mb-r6r1-sync-body .medbrain-offline-sync-metrics {display:flex!important;flex-direction:column!important;gap:5px!important;margin-block:10px!important;}
.app-shell.role-doctor .mb-r6r1-sync-body .medbrain-offline-sync-policy {color:#52647d!important;line-height:1.45!important;}
.app-shell.role-doctor .mb-r6r1-sync .medbrain-offline-sync-message {max-width:520px;margin:4px 0!important;font-size:12px!important;overflow-wrap:anywhere;}
.app-shell.role-doctor .cux-r2-operations .mb-r6r1-focus {position:relative;flex:none!important;grid-column:auto!important;width:34px;height:34px;box-sizing:border-box;align-items:center;justify-content:center;border-radius:8px;border:1px solid #dbe5f0;background:white;color:#52647d;}
.app-shell.role-doctor .mb-r6r1-focus input {position:absolute!important;inset:0!important;opacity:0!important;width:100%!important;height:100%!important;margin:0!important;cursor:pointer!important;}
.app-shell.role-doctor .mb-r6r1-focus:has(input:checked) {color:#246bff;background:#eaf2ff;border-color:#a7c6ff;}
.app-shell.role-doctor .mb-r6r1-focus:focus-within,.app-shell.role-doctor .mb-r6r1-sync-summary:focus-visible {outline:2px solid #246bff;outline-offset:2px;}
@media(max-width:900px){.app-shell.role-doctor .phase28-20-topbar-actions{flex-wrap:wrap!important;}.app-shell.role-doctor .mb-r6r1-sync-body{position:static;width:100%;margin-block-start:6px;max-height:none;}.app-shell.role-doctor .cux-r2-operations .mb-r6r1-sync{max-width:100%;}.app-shell.role-doctor .mb-r6r1-identity{max-width:100%;}}
}
@media screen {
.app-shell.role-doctor .mb-r6r1-sync-body {position:static;max-width:100%;margin-block-start:6px;}
.app-shell.role-doctor .cux-r2-operations:has(.mb-r6r1-sync-details[open]) {align-items:flex-start!important;}
.app-shell.role-doctor .main-area,.app-shell.role-doctor .phase28-20-content-polish {min-width:0!important;box-sizing:border-box;}
}
