/* Account-only dashboard: retain shared navigation and existing permissions. */
body{background:#f3f6fb;color:#142c40}header,main,footer{max-width:1120px}main{padding-top:12px}main h1{margin:8px 0 12px;font-size:clamp(30px,5vw,44px)}.dashboard-intro{color:#52677d;margin:0 0 18px;max-width:65ch}.eyebrow,a{color:#2453d8}.account-heading{margin:12px 0}#identity{font-weight:600;min-width:0}.dashboard-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.dashboard-overview>div{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #dce5f1;border-radius:16px;padding:18px}.dashboard-overview strong{font-size:32px;line-height:1.2;color:#153d9f}.dashboard-overview a,.dashboard-overview .hint{font-size:14px;margin-top:auto}.dashboard-overview span{color:#52677d}button,.button{background:#2453d8;border-radius:12px}#modes{padding:6px;background:#e8eef7;border-radius:14px;gap:6px}#modes button{margin:0;border:0;background:transparent}#modes button[aria-pressed=true]{background:white;color:#1641b9;box-shadow:0 2px 6px #132e5614}section{border-color:#dce5f1;margin:16px 0}#workspace>h2{margin-top:0}.profile-card{border:1px solid #dce5f1!important;border-radius:14px;padding:16px;margin-top:16px}.profile-card h3{margin:0 0 6px}.profile-card details{margin-top:12px}.badge{background:#eaf0ff;color:#234ba4}.add-role{margin-top:14px}.dashboard-guide{border-left:3px solid #3165e9;padding:4px 18px;margin:24px 0}.dashboard-guide h2{font-size:18px;margin:0}.dashboard-guide p{color:#52677d;max-width:75ch;margin:8px 0}#status{background:#eaf0ff;color:#23416e}#workspace{scroll-margin-top:20px}#pending{scroll-margin-top:20px}summary{min-height:44px;display:list-item;padding:8px 0}button,.button,summary{-webkit-tap-highlight-color:transparent}input,select,textarea{min-width:0}a,button{overflow-wrap:anywhere}@media(max-width:600px){.dashboard-overview{grid-template-columns:1fr;gap:8px;margin:14px 0}.dashboard-overview>div{display:grid;grid-template-columns:1fr auto;padding:12px 14px;gap:2px 12px;align-items:center}.dashboard-overview strong{grid-column:2;grid-row:1/3;font-size:26px}.dashboard-overview a,.dashboard-overview .hint{grid-column:1}.account-heading{flex-direction:row;align-items:center}.account-heading button{flex:none}#modes{flex-wrap:wrap}#modes button{min-width:80px}.profile-card{padding:14px}.profile-card>.button{display:block;text-align:center;margin:10px 0}.dashboard-guide{margin:20px 0;padding-left:12px}header{flex-wrap:wrap}header nav{gap:14px}#identity{font-size:14px}main h1{margin-top:6px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Override older shared account rules without changing other pages. */
body:has(#dashboard){--surface:#fff;--bg:#e8eef7;--ink:#142c40;--muted:#52677d;--line:#dce5f1;--line-soft:#e4ebf4;--cta:#2453d8;--sb-acc:#2453d8}
#dashboard>#overview{order:2}#dashboard>#modes{order:3}#dashboard>#workspace{order:4}#dashboard>#pending,#dashboard>#delivery,#dashboard>#review{order:5}
#dashboard #workspace{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));min-width:0}
#dashboard #workspace>article{min-width:0}#dashboard #modes{width:100%;flex-wrap:wrap}#dashboard #modes button{min-height:44px!important;flex:1;white-space:normal;overflow-wrap:normal;padding:10px 8px!important}
#dashboard h2,#dashboard h3,#dashboard summary{color:var(--ink)}#dashboard .dashboard-overview>div{background:var(--surface);border-color:var(--line)}#dashboard .dashboard-overview strong{color:var(--ink)}#dashboard .dashboard-overview span,.dashboard-intro,.dashboard-guide p{color:var(--muted)}
@media(max-width:600px){body:has(main>#dashboard) main{padding:20px 16px 32px}#dashboard>#workspace{padding:14px!important}#dashboard #workspace>article{padding:14px}#dashboard #modes{gap:2px}#dashboard #modes button{font-size:13px!important}}
html[data-theme=dark] body:has(#dashboard){--surface:#15243b;--bg:#0c1628;--ink:#edf3ff;--muted:#afbed4;--line:#354762;--line-soft:#354762;--sb-acc:#93b7ff}html[data-theme=dark] #dashboard a{color:#a8c5ff}html[data-theme=dark] #dashboard a.button{color:white}
#dashboard .badge{background:#eaf0ff;color:#234ba4}html[data-theme=dark] #dashboard .badge{background:#243d65;color:#d5e4ff}

/* 13 Nov 2026: last-30-days value panel on each managed profile */
#dashboard .roi{margin:12px 0 4px;padding:14px;border-radius:12px;background:#f3f7ff;border:1px solid #dce6fb}#dashboard .roi-head{margin:0 0 10px;font-size:15px}#dashboard .roi-head b{font-size:20px;color:#1d4ed8}
#dashboard .roi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}#dashboard .roi-grid div{background:#fff;border:1px solid #e3eaf5;border-radius:10px;padding:10px}#dashboard .roi-grid b{display:block;font-size:22px;line-height:1.1}#dashboard .roi-grid span{display:block;font-size:13px;color:var(--muted,#5b6b82)}#dashboard .roi-grid small{display:block;font-size:12px;margin-top:4px;color:var(--muted,#5b6b82)}#dashboard .roi-grid small.up{color:#047857}#dashboard .roi-grid small.down{color:#b42318}#dashboard .roi .hint{margin:8px 0 0}
html[data-theme=dark] #dashboard .roi{background:#13233d;border-color:#2b4266}html[data-theme=dark] #dashboard .roi-head b{color:#a8c5ff}html[data-theme=dark] #dashboard .roi-grid div{background:#15243b;border-color:#354762}html[data-theme=dark] #dashboard .roi-grid small.up{color:#6ee7b7}html[data-theme=dark] #dashboard .roi-grid small.down{color:#fca5a5}
#dashboard>#practiceAttention{order:1;min-width:0;background:var(--surface);border:1px solid var(--line);padding:20px}#dashboard .attention-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#dashboard .attention-heading h2{margin:0}#dashboard .attention-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}#dashboard .attention-list li{padding:12px 14px;background:var(--bg);border-radius:12px}#dashboard .attention-list a{font-weight:650}#dashboard .attention-list p{font-size:14px;color:var(--muted);margin:4px 0 0}#dashboard .workspace-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#dashboard .workspace-shortcuts a{padding:10px 12px;border:1px solid var(--line);border-radius:10px;min-height:44px;text-decoration:none}#dashboard .workspace-search,#dashboard #workspaceMatch{grid-column:1/-1}#dashboard .publication-state{font-size:13px;padding:10px;background:var(--bg);border-radius:10px}#dashboard .profile-card[hidden]{display:none!important}#dashboard .profile-card h3{overflow-wrap:anywhere}#dashboard .attention-heading button{flex:none}#dashboard #practiceAttention[aria-busy=true] #refreshAttention{opacity:.65}@media(max-width:600px){#dashboard>#practiceAttention{padding:14px}#dashboard .attention-heading h2{font-size:21px}#dashboard .workspace-shortcuts a{flex:1 1 42%;font-size:14px}#dashboard .attention-list li{padding:10px}#dashboard .profile-card .roi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#dashboard .profile-card>a.button.secondary{background:var(--surface)!important;color:var(--sb-acc,#2453d8)!important;border:1px solid var(--line)!important;box-shadow:none!important}#dashboard .profile-card>a.button:not(.secondary){color:#fff!important}#dashboard>#overview{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:600px){#dashboard>#overview{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard>#overview>div{display:flex;padding:12px;gap:4px}#dashboard>#overview strong{font-size:24px}#dashboard>#overview a{font-size:13px}}
#dashboard .patient-hub{grid-column:1/-1;min-width:0}#dashboard .patient-welcome{padding:18px;border-radius:16px;background:var(--bg);margin-bottom:16px}#dashboard .patient-welcome h2{font-size:26px;margin:6px 0}#dashboard .patient-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}#dashboard .patient-links a{display:flex;flex-direction:column;gap:5px;min-height:84px;padding:14px;border:1px solid var(--line);border-radius:12px;text-decoration:none;background:var(--surface)}#dashboard .patient-links span{color:var(--muted);font-size:14px}#dashboard .patient-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#dashboard .patient-counts a{padding:12px;border:1px solid var(--line);border-radius:12px;font-size:13px;text-decoration:none}#dashboard .patient-counts b{display:block;font-size:24px;color:var(--ink)}#dashboard .patient-next{border-left:3px solid #2453d8;padding:4px 14px;margin:16px 0}#dashboard .patient-next h3{margin:6px 0}#dashboard .patient-welcome .secondary{background:var(--surface)!important;color:var(--sb-acc)!important;border:1px solid var(--line)!important;box-shadow:none!important}#dashboard .patient-welcome .button:not(.secondary){color:white!important}@media(max-width:600px){#dashboard .patient-welcome{padding:14px}#dashboard .patient-welcome h2{font-size:23px}#dashboard .patient-links{gap:8px}#dashboard .patient-links a{padding:12px;min-height:100px}#dashboard .patient-links strong{font-size:14px}#dashboard .patient-links span{font-size:13px}#dashboard .patient-counts a{padding:10px 8px}#dashboard .patient-welcome .button{display:block;text-align:center}}

.workspace-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0}.workspace-controls label{flex:1;min-width:150px}.workspace-controls select{width:100%;min-height:44px;padding:10px;border:1px solid var(--line,#cbd5e1);border-radius:10px;background:var(--surface,#fff);color:inherit}.workspace-controls button{min-height:44px}

/* Growing teams: stack controls without widening mobile cards. */
.team-row{flex-wrap:wrap;gap:12px}.team-row>span{flex:1 1 200px;overflow-wrap:anywhere}.member-role{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:0}.member-role label{flex:1 1 160px}.workspace-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}.workspace-pages span{flex:1;text-align:center;min-width:120px}

.dashboard-careers{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:24px 0;padding:24px;border:1px solid var(--line,#d8e2ef);border-radius:20px;background:var(--surface,#fff);border-left:5px solid #2251dc}.dashboard-careers[hidden]{display:none}.dashboard-careers h2{margin:6px 0;font-size:1.35rem}.dashboard-careers p{margin:8px 0;color:var(--muted,#53647d)}.dashboard-careers nav{display:flex;flex-wrap:wrap;gap:10px}.dashboard-careers a{min-height:44px;display:inline-flex;align-items:center}@media(max-width:700px){.dashboard-careers{display:block;padding:18px}.dashboard-careers nav{margin-top:16px}.dashboard-careers a{white-space:normal}}
