/* Scoped R6 design system: no global selectors or clinical warning overrides. */
.mb-r6-dashboard{--mb-ink:#192a44;--mb-muted:#52647d;--mb-border:#e2e9f3;--mb-shadow:0 6px 22px #213e6610;display:grid;gap:18px;min-width:0;color:var(--mb-ink);font-family:inherit;line-height:1.5}
.mb-r6-dashboard *{box-sizing:border-box}.mb-r6-dashboard h1,.mb-r6-dashboard h2{margin:0;line-height:1.3;letter-spacing:-.025em}.mb-r6-dashboard h2{font-size:1.1rem;font-weight:750}.mb-r6-hero{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(112deg,#18498b,#2264a8 48%,#087e83);color:white;border-radius:18px;padding:24px 28px;min-height:150px;display:flex;align-items:center;box-shadow:0 9px 26px #24548b24}.mb-r6-hero-copy{position:relative;z-index:1;max-width:76%}.mb-r6-hero h1{color:white;font-size:clamp(1.45rem,2.2vw,2rem);font-weight:780}.mb-r6-hero p{margin:7px 0 14px;color:#e3f0fa;font-size:.9rem}.mb-r6-hero-actions{display:flex;flex-wrap:wrap;gap:8px}.mb-r6-hero-art{position:absolute;inset-inline-end:5%;top:50%;transform:translateY(-50%);width:220px;height:220px;border:1px solid #ffffff30;border-radius:50%;display:grid;place-items:center;background:#ffffff0d;pointer-events:none}.mb-r6-hero-art:before{content:'';position:absolute;inset:25px;border-radius:50%;border:1px solid #ffffff30;background:#ffffff0d}.mb-r6-hero-art span{display:grid;place-items:center;width:88px;height:88px;border:1px solid #ffffff60;background:#ffffff22;border-radius:25px}.mb-r6-hero-art svg{width:48px;height:48px}.mb-r6-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.mb-r6-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.mb-r6-metric{position:relative;overflow:hidden;isolation:isolate;min-height:110px;padding:15px 18px;border:1px solid var(--mb-border);border-radius:15px;background:#fff;box-shadow:var(--mb-shadow)}.mb-r6-metric:after{content:'';position:absolute;z-index:-1;inset-inline-end:-25px;bottom:-65px;width:135px;height:135px;border-radius:50%;background:var(--mb-tint)}.mb-r6-blue{--mb-tint:#edf4ff;--mb-accent:#1d5fc6}.mb-r6-violet{--mb-tint:#f2edff;--mb-accent:#7044bb}.mb-r6-teal{--mb-tint:#e5f7f4;--mb-accent:#087e76}.mb-r6-amber{--mb-tint:#fff3df;--mb-accent:#9c5d0b}.mb-r6-metric-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.84rem;font-weight:650;color:var(--mb-muted)}.mb-r6-icon{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:12px;background:var(--mb-tint);color:var(--mb-accent)}.mb-r6-metric strong{display:block;font-size:clamp(1rem,2vw,1.9rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3;margin-top:5px}.mb-r6-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,.9fr);gap:18px;align-items:start}.mb-r6-primary,.mb-r6-rail{display:grid;gap:16px;min-width:0}.mb-r6-surface{min-width:0;background:white;border:1px solid var(--mb-border);box-shadow:var(--mb-shadow);border-radius:16px;padding:18px;display:grid;gap:14px}.mb-r6-remaining{min-width:0}.mb-r6-dashboard :focus-visible{outline:3px solid #2366d8;outline-offset:3px}.mb-r6-hero :focus-visible{outline-color:white}.mb-r6-dashboard[dir=rtl] h1,.mb-r6-dashboard[dir=rtl] h2{letter-spacing:normal}@media(max-width:1100px){.mb-r6-grid{grid-template-columns:minmax(0,1fr)}.mb-r6-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.mb-r6-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-r6-rail{grid-template-columns:1fr}.mb-r6-hero{padding:20px}.mb-r6-hero-copy{max-width:100%}.mb-r6-hero-art{opacity:.18;inset-inline-end:-100px}.mb-r6-surface{padding:12px}}@media(prefers-reduced-motion:reduce){.mb-r6-dashboard{scroll-behavior:auto}}

@media screen {
.app-shell.role-doctor {--mb-r6b:1;background:#f5f8fd!important;}
.app-shell.role-doctor .main-area {background:#f5f8fd!important;}
.app-shell.role-doctor .phase28-20-sidebar {border-inline-end:1px solid #dfe7f3!important;}
.app-shell.role-doctor .phase28-20-sidebar .sidebar-link.active {background:#e7f0ff!important;color:#18498b!important;border-inline-start:3px solid #246bff;}
.app-shell.role-doctor .mb-r6-dashboard {gap:16px!important;}
.app-shell.role-doctor .mb-r6-dashboard .mb-r6-hero {display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;padding:22px 25px!important;background:linear-gradient(112deg,#18498b,#2264a8 48%,#087e83)!important;border:0!important;border-radius:18px!important;box-shadow:0 9px 26px #24548b24!important;color:white!important;min-height:142px;}
.app-shell.role-doctor .mb-r6-hero>div:first-child,.app-shell.role-doctor .mb-r6-hero>nav {position:relative;z-index:1;flex-basis:100%;}
.app-shell.role-doctor .mb-r6-hero h2 {color:white!important;font-size:28px!important;line-height:1.2!important;}
.app-shell.role-doctor .mb-r6-hero p,.app-shell.role-doctor .mb-r6-hero>div:first-child>span {color:#e3f0fa!important;}
.app-shell.role-doctor .mb-r6-hero nav {display:flex!important;flex-wrap:wrap!important;gap:7px!important;}
.app-shell.role-doctor .mb-r6-hero nav button {background:#ffffff18!important;color:white!important;border:1px solid #ffffff65!important;border-radius:9px!important;padding:8px 12px!important;}
.app-shell.role-doctor .mb-r6-hero nav button:hover {background:#ffffff35!important;}
.app-shell.role-doctor .mb-r6-hero .mb-r6-hero-art {color:#fff;z-index:0;}
.app-shell.role-doctor .mb-r6-dashboard .mb-r6-metrics {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
.app-shell.role-doctor .mb-r6-dashboard .cux-r3-metric {padding:14px 16px;min-height:100px;border-radius:15px;box-shadow:0 6px 22px #213e6610;border:1px solid #e2e9f3;position:relative;overflow:hidden;isolation:isolate;}
.app-shell.role-doctor .mb-r6-dashboard .cux-r3-metric:after {content:'';position:absolute;z-index:-1;inset-inline-end:-25px;bottom:-65px;width:135px;height:135px;border-radius:50%;background:var(--mb-tint);}
.app-shell.role-doctor .mb-r6-dashboard .cux-r3-metric strong {font-size:30px;color:#192a44;}
.app-shell.role-doctor .mb-r6-dashboard .cux-r3-metric-label {font-size:13px;line-height:1.35;}
.app-shell.role-doctor .mb-r6-dashboard .mb-r6-grid {grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
.app-shell.role-doctor .mb-r6-dashboard .cux-r2-day-patients>h3 {font-size:20px;letter-spacing:-.015em;}
.app-shell.role-doctor .mb-r6-dashboard #doctor-patient-search-section {min-width:0;}
.app-shell.role-doctor .mb-r6-dashboard :is(#doctor-patient-search-section,#doctor-queue-section,#doctor-active-visits-section) .card {border-radius:15px!important;box-shadow:0 5px 18px #213e660d!important;}
.app-shell.role-doctor .mb-r6-dashboard .phase28-16-safety-item {min-width:0;}
.app-shell.role-doctor .mb-r6-dashboard .phase28-16-safety-body {min-width:0;overflow-wrap:anywhere;}
.app-shell.role-doctor .mb-r6-dashboard .phase28-16-safety-title-line {flex-wrap:wrap;}
.app-shell.role-doctor .mb-r6-dashboard .phase28-16-safety-grid>* {border-radius:15px!important;}
@media(min-width:1250px){.app-shell.role-doctor .mb-r6-dashboard .mb-r6-grid {grid-template-columns:minmax(0,1fr) minmax(300px,29%)!important;}}
@media(max-width:740px){.app-shell.role-doctor .mb-r6-dashboard .mb-r6-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.app-shell.role-doctor .mb-r6-dashboard .mb-r6-hero {padding:16px!important;}.app-shell.role-doctor .mb-r6-dashboard .mb-r6-hero h2 {font-size:22px!important;}.app-shell.role-doctor .mb-r6-dashboard .mb-r6-icon {width:31px;height:31px;}.app-shell.role-doctor .mb-r6-dashboard .cux-r3-metric {padding:10px;}}
}
