/* Compact CRM proportions; font stack matches the public website. */
body.workspace-shell { font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; font-size:14px; line-height:1.45; -webkit-font-smoothing:antialiased; }
body.workspace-shell .workspace-sidebar { width:208px; padding:20px 10px 12px; background:#fff; border-right:1px solid #e6eaf1; color:var(--workspace-navy); }
body.workspace-shell .app-shell,body.workspace-shell > .test { margin-left:208px; }
body.workspace-shell .workspace-sidebar__brand { margin:0 4px 22px; gap:6px; }
body.workspace-shell .workspace-sidebar__brand img { width:32px; height:32px; flex-basis:32px; padding:0; }
body.workspace-shell .workspace-sidebar .brand-name,body.workspace-shell .workspace-sidebar .brand-plus { font-size:19px; }
body.workspace-shell .workspace-sidebar .brand-name { color:var(--workspace-navy); }
body.workspace-shell .workspace-nav { gap:10px; }
body.workspace-shell .workspace-nav__group { display:grid; gap:3px; }
body.workspace-shell .workspace-nav__label { margin:7px 10px 3px; color:#98a1b5; font-size:10px; font-weight:700; letter-spacing:.07em; line-height:1.2; text-transform:uppercase; }
body.workspace-shell .workspace-nav__link { min-height:38px; padding:8px 10px; gap:10px; font-size:13px; font-weight:550; color:#59627a; border-radius:8px; }
body.workspace-shell .workspace-nav__link > span { color:#78829a; font-size:16px; }
body.workspace-shell .workspace-nav__link .nav-icon { width:18px; height:18px; }
body.workspace-shell .workspace-nav__link .nav-icon--outline { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.workspace-shell .workspace-nav__link > svg { flex:none; color:#78829a; }
body.workspace-shell .workspace-nav__link:hover { background:#f5f7fb; color:var(--workspace-navy); }
body.workspace-shell .workspace-nav__link[aria-current="page"] { background:#eaf8f1; color:#187047; border-color:transparent; font-weight:650; }
body.workspace-shell .workspace-nav__link[aria-current="page"] > span { color:#189966; }
body.workspace-shell .workspace-nav__link[aria-current="page"] > svg { color:#189966; }
body.workspace-shell .workspace-account { border-color:#e6eaf1; padding-top:10px; }
body.workspace-shell .workspace-account summary { padding:5px; color:var(--workspace-navy); }
body.workspace-shell .workspace-account summary:hover { background:#f5f7fb; }
body.workspace-shell .workspace-account__email { max-width:136px; color:#69738a; font-size:11px; }
body.workspace-shell .workspace-account__menu a { color:var(--workspace-navy); }
body.workspace-shell .workspace-account__menu a:hover { background:#f5f7fb; }
body.workspace-shell .workspace-header { min-height:44px; padding:6px 24px; box-shadow:none; }
body.workspace-shell .workspace-main { padding:22px 24px 40px; }
body.workspace-shell .heading { gap:18px; margin-bottom:16px; }
body.workspace-shell .heading h1 { font-size:24px; font-weight:650; margin:0 0 5px; }
body.workspace-shell .heading p { font-size:13px; margin:0; }
body.workspace-shell .heading > label { padding:7px 10px; min-width:220px; font-size:12px; border-radius:9px; margin-bottom:0; }
body.workspace-shell .heading select { padding:6px 8px; min-height:34px; font-size:13px; }
body.workspace-shell .panel,body.workspace-shell .room { padding:16px; box-shadow:none; border-radius:11px; }
body.workspace-shell h2 { font-size:18px; font-weight:650; }
body.workspace-shell h3 { font-size:16px; font-weight:650; }
body.workspace-shell .patient-workspace { grid-template-columns:minmax(250px,30%) minmax(0,1fr); gap:16px; }
body.workspace-shell .patient-list-pane .list-toolbar { gap:8px; flex-wrap:wrap; margin-bottom:10px; }
body.workspace-shell .patient-list-pane .list-toolbar h2 { font-size:16px; }
body.workspace-shell .patient-list-pane label { font-size:12px; margin-bottom:10px; }
body.workspace-shell .patient-list-pane input { padding:8px 10px; font-size:13px; }
body.workspace-shell .patient-item { padding:10px 12px; margin-bottom:5px; border-radius:8px; font-size:13px; }
body.workspace-shell .patient-item strong { font-weight:600; }
body.workspace-shell .patient-item span { font-size:12px; }
body.workspace-shell .patient-detail-pane { padding:18px; top:60px; max-height:calc(100vh - 82px); }
body.workspace-shell .patient-card__heading h2 { font-size:19px; font-weight:650; }
body.workspace-shell .patient-detail-tabs { margin:14px 0; gap:8px; }
body.workspace-shell .patient-detail-tabs button { font-weight:550; }
body.workspace-shell .patient-summary-list { gap:12px 18px; }
body.workspace-shell .patient-summary-list dt { font-size:11px; font-weight:550; letter-spacing:0; }
body.workspace-shell .patient-summary-list dd { font-weight:500; font-size:14px; }
body.workspace-shell .patient-summary-list__section { padding-top:12px; margin-top:3px; }
body.workspace-shell .team-workspace { padding:18px; }
body.workspace-shell .team-layout,body.workspace-shell .groups-layout { gap:16px; }
body.workspace-shell .team-editor,body.workspace-shell .group-editor { padding:16px; background:#fafbfe; }
body.workspace-shell .calendar-workspace { grid-template-columns:165px minmax(0,1fr); }
body.workspace-shell .calendar-filters { padding:12px; }
@media(min-width:781px) and (pointer:fine) {
 body.workspace-shell .patient-form-actions button,body.workspace-shell .list-toolbar button,body.workspace-shell .room button { min-height:36px; padding:7px 12px; font-size:13px; }
 body.workspace-shell .patient-list-pane { max-width:320px; }
}
@media(max-width:980px) and (min-width:781px) {
 body.workspace-shell .patient-workspace { grid-template-columns:250px minmax(0,1fr); }
}
@media(max-width:780px) {
 body.workspace-shell .app-shell,body.workspace-shell > .test { margin-left:0; }
 body.workspace-shell .workspace-header { min-height:56px; padding:6px 16px; }
 body.workspace-shell .workspace-main { padding:18px 14px 28px; }
 body.workspace-shell .patient-workspace { grid-template-columns:1fr; }
 body.workspace-shell .patient-detail-pane { position:static; max-height:none; padding:16px; }
 body.workspace-shell .heading h1 { font-size:23px; }
 body.workspace-shell .heading > label { width:100%; }
 body.workspace-shell .calendar-workspace { display:block; }
 body.workspace-shell .patient-list-pane .list-toolbar button,body.workspace-shell .patient-item { min-height:44px; }
}

body.workspace-shell .workspace-header-account{display:none}
@media(max-width:780px){
 body.workspace-shell .workspace-header .workspace-menu-toggle{display:none}
 body.workspace-shell .workspace-header-account{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;margin-left:auto;border-radius:50%;background:#e1f5f0;color:#007e78;text-decoration:none;font-size:15px;font-weight:650;border:1px solid #d2eae4}
 body.workspace-shell .workspace-header-account:focus-visible{outline:3px solid #009e98;outline-offset:3px}
}

/* Practice context belongs to account navigation, never to the page toolbar. */
body.workspace-shell .workspace-practice-control[hidden]{display:none!important}
body.workspace-shell .workspace-header__context{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.workspace-shell .workspace-more-menu{max-height:calc(100dvh - 110px);overflow-y:auto}
@media(min-width:781px){
 body.workspace-shell .workspace-header .workspace-menu-toggle{display:inline-flex;align-items:center;gap:8px;margin-left:auto;background:white;color:var(--workspace-navy);border:1px solid var(--workspace-line);padding:6px 12px;min-height:36px}
 body.workspace-shell .workspace-more-menu:not([hidden]){display:block;position:fixed;z-index:100;right:20px;top:64px;width:300px;padding:16px;background:white;border:1px solid var(--workspace-line);border-radius:12px;box-shadow:0 8px 24px #080d451a}
 body.workspace-shell .workspace-more-menu__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
 body.workspace-shell .workspace-more-menu>a{display:block;padding:8px;color:var(--workspace-navy);text-decoration:none}
}
body.workspace-shell .workspace-nav__link .nav-icon--outline{background:none;mask:none;-webkit-mask:none}
body.workspace-shell .workspace-nav__link[aria-current="page"] > svg{color:var(--workspace-green)}
body.workspace-shell .workspace-nav{overflow-y:auto;min-height:0}
