/* The Operating System owns global navigation. Embedded Concierge owns filters. */
.embedded-views{display:none}
.healthie-evidence{border:1px solid var(--line);border-radius:12px;background:white;padding:14px 16px;margin:0 0 16px;font-size:12px;line-height:1.6}
.healthie-evidence strong{display:block;color:var(--navy)}
.healthie-evidence small{display:block;color:var(--muted)}
.patient-status-chip{font-size:9px;background:#f2f4fb;color:var(--navy)}
.patient-status-chip[data-stale="true"]{color:var(--muted);border:1px dashed var(--line2)}
body.concierge-embedded .sidebar{display:none!important}
body.concierge-embedded .topbar{height:56px;margin-left:0;padding:0 16px;border-bottom:0}
body.concierge-embedded .topbar .mobile-brand{display:none!important}
body.concierge-embedded .top-actions{flex-wrap:wrap;gap:6px}
body.concierge-embedded .embedded-views{height:58px;display:flex;align-items:center;gap:8px;padding:0 16px;border-bottom:1px solid var(--line);background:#fff}
.embedded-tabs{display:flex;align-items:center;gap:6px;overflow:auto;flex:1;min-width:0;height:100%}
.embedded-tab{white-space:nowrap;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;font-weight:500;padding:15px 9px;min-height:44px}
.embedded-tab[aria-pressed="true"]{border-color:var(--navy);color:var(--navy)}
.embedded-tab span{font-size:10px;margin-left:6px;padding:2px 5px;border-radius:5px;background:#f1f3f9}
.embedded-more{flex:0 0 auto;max-width:190px;min-height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);font-size:12px;padding:7px}
body.concierge-embedded .app,body.concierge-embedded.case-open .app{height:calc(100dvh - 114px);display:grid;grid-template-columns:300px minmax(0,1fr)}
body.concierge-embedded.dashboard-view .app{grid-template-columns:minmax(0,1fr)}
body.concierge-embedded .dashboard-page{padding:24px 24px 40px}
body.concierge-embedded .dashboard-heading h1,body.concierge-embedded .dashboard-heading .dashboard-kicker,body.concierge-embedded .dashboard-heading p{display:none}
body.concierge-embedded .dashboard-heading{margin-bottom:20px;justify-content:flex-end}
body.concierge-embedded .dashboard-metrics,body.concierge-embedded .dashboard-work{grid-template-columns:repeat(3,minmax(0,1fr))}
body.concierge-embedded .patient-panel{position:fixed;top:114px;height:calc(100dvh - 114px);width:min(350px,100vw);display:flex;transform:translateX(100%)}
body.concierge-embedded .patient-panel.open{transform:translateX(0)}
body.concierge-embedded .close-side{display:block!important}
@media(max-width:900px){body.concierge-embedded .app,body.concierge-embedded.case-open .app{display:block}body.concierge-embedded .queue-panel{height:100%}body.concierge-embedded .detail-panel{height:calc(100dvh - 114px)}body.concierge-embedded:not(.dashboard-view):not(.results-view):not(.case-open) .detail-panel{display:none}body.concierge-embedded.case-open .detail-panel{display:flex}body.concierge-embedded.case-open .queue-panel{display:none}body.concierge-embedded .back-mobile{display:inline-flex}body.concierge-embedded .dashboard-metrics,body.concierge-embedded .dashboard-work{grid-template-columns:repeat(2,minmax(0,1fr))}body.concierge-embedded.results-view .detail-panel{display:flex}body.concierge-embedded.results-view .queue-panel{display:none}}
@media(max-width:550px){body.concierge-embedded .topbar{padding:0 10px;height:78px}body.concierge-embedded .top-actions{justify-content:flex-end}body.concierge-embedded .embedded-views{padding:0 10px}.embedded-more{max-width:140px}.embedded-tab{font-size:11px;padding:14px 7px}body.concierge-embedded .app,body.concierge-embedded.case-open .app,body.concierge-embedded .detail-panel{height:calc(100dvh - 136px)}body.concierge-embedded .patient-panel{top:136px;height:calc(100dvh - 136px)}body.concierge-embedded .dashboard-page{padding:20px 14px}body.concierge-embedded .dashboard-metrics,body.concierge-embedded .dashboard-work{grid-template-columns:1fr}}
/* When the Diata OS sidebar drives the board, the board shows only the work: no top bar,
   no tab strip and no page heading. The work starts at the top edge. */
body.concierge-shell-nav .topbar,body.concierge-shell-nav .embedded-views{display:none!important}
body.concierge-shell-nav .app,body.concierge-shell-nav.case-open .app{height:100dvh}
body.concierge-shell-nav .patient-panel{top:0;height:100dvh}
body.concierge-shell-nav .dashboard-page{padding:16px 20px 32px}
body.concierge-shell-nav .dashboard-heading,body.concierge-shell-nav .workday-heading>div{display:none!important}
body.concierge-shell-nav .workday-heading{margin:0 0 8px;justify-content:flex-end}
body.concierge-shell-nav .queue-help{display:none}
body.concierge-shell-nav .workday-footnote,body.concierge-shell-nav .workday-footer,body.concierge-shell-nav .dashboard-analytics,body.concierge-shell-nav .dashboard-home-tools{display:none!important}
@media(max-width:900px){body.concierge-shell-nav .detail-panel{height:100dvh}}

/* Standalone phone navigation stays in one visible, scrollable strip. */
@media(max-width:550px){
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-views{
    min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;
    scrollbar-width:thin;scrollbar-color:var(--muted) var(--blue-soft);
  }
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-tabs{flex:0 0 auto;height:auto;overflow:visible}
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-more{min-height:44px}
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-views>.embedded-tab{flex:0 0 auto}
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-views::-webkit-scrollbar{height:8px}
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-views::-webkit-scrollbar-track{background:var(--blue-soft)}
  body.concierge-embedded:not(.concierge-shell-nav) .embedded-views::-webkit-scrollbar-thumb{background:var(--muted);border-radius:8px}
}

/* Results use the whole work area after the case queue is hidden. */
body.concierge-embedded.results-view:not(.case-open) .app{grid-template-columns:minmax(0,1fr)}
body.concierge-embedded.results-view:not(.case-open) .queue-panel,body.concierge-embedded.results-view:not(.case-open) .patient-panel{display:none}
body.concierge-embedded.results-view:not(.case-open) .detail-panel{display:flex;min-width:0;width:100%}
body.concierge-embedded.results-view:not(.case-open) .results-page{width:100%;min-width:0}
.dashboard-workspaces{margin:0 0 24px}
.dashboard-workspaces h2{font-size:19px;font-weight:500;margin:0 0 12px}
.dashboard-workspace-links{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:550px){.dashboard-workspace-links .dashboard-button{flex:1 1 150px}}
