/* Keep the current stage visible without adding a banner above the workspace. */
#careShellBar .site-status-heading {
  display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
  min-width:0; min-height:48px; max-width:100%; padding:3px 0; gap:8px;
  border:0; border-radius:5px; text-align:left; white-space:normal;
}
#careShellBar .site-status-heading strong {
  display:block; min-width:0; max-width:100%; flex:0 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
#careShellBar .site-status-heading .site-status-caption {
  display:block; flex:none; color:#f7dda0; font:500 12px/1.4 system-ui,sans-serif; white-space:nowrap;
}
.site-status-entry { display:flex; justify-content:center; padding:0 12px; }
.site-status-entry button {
  display:inline-flex; align-items:center; gap:10px; min-height:44px;
  margin:0; padding:6px 10px; border:0; border-radius:6px;
  background:transparent; color:#765716; font:600 14px/1.5 system-ui,sans-serif; cursor:pointer;
}
.site-status-entry button span { font-weight:400; color:#52666a; }
body.portal-page[data-care-shell]:not([data-care-shell=other]) > .site-status-entry { display:none; }
#siteStatusDialog {
  box-sizing:border-box; width:min(460px,calc(100% - 32px)); max-height:calc(100dvh - 48px);
  margin:auto; padding:24px; overflow:auto; border:1px solid #d6e2e5;
  border-radius:16px; background:#fff; color:#183341; box-shadow:0 12px 48px #102d3a33;
}
#siteStatusDialog::backdrop { background:#102d3a80; }
#siteStatusDialog h2 { margin:0 0 16px; font:700 20px/1.4 system-ui,sans-serif; }
#siteStatusDialog p { margin:12px 0; font:400 16px/1.7 system-ui,sans-serif; overflow-wrap:anywhere; }
#siteStatusDialog form { display:flex; justify-content:flex-end; margin-top:20px; }
#siteStatusDialog button {
  min-height:44px; padding:10px 20px; margin:0; border:0; border-radius:8px;
  background:#126e64; color:#fff; font:600 16px/1.4 system-ui,sans-serif; cursor:pointer;
}
.site-status-entry button:focus-visible, #siteStatusDialog button:focus-visible { outline:3px solid #168476; outline-offset:3px; }
/* Administrators see uCare login/staleness problems on every page. */
.site-status-entry button.has-sync-alert, .site-status-entry button.has-sync-alert span { color:#a1271d; }
#careShellBar .has-sync-alert .site-status-caption { color:#ffd28a; font-weight:700; }
#siteStatusDialog p.site-status-alert { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:#fde8e6; color:#8a1f16; font-weight:600; }
@media print { .site-status-entry, #siteStatusDialog { display:none!important; } }
