/* Product UI: shared, final presentation layer. No data or authorization rules. */
:root{--ui-bg:#f6f6f8;--ui-surface:#fff;--ui-ink:#302737;--ui-muted:#726a79;--ui-line:#e7e3e9;--ui-brand:#80366e;--ui-tint:#f5edf3;--ui-radius:10px}
html body{background:var(--ui-bg);color:var(--ui-ink)}
html body :is(button,input,select,textarea){font-family:inherit}
html body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #b36b9e;outline-offset:3px}
html body button:disabled{cursor:not-allowed;opacity:.55}
html body :is(.executive,.mobile-app,.global-operator-workspace,.op-page){background:var(--ui-bg)}
html body :is(.exec-content,.mobile-app main,.global-operator-workspace>main){line-height:1.5}
html body :is(.exec-content,.mobile-app main,.operations,.users-center,.agenda-workspace) h2{letter-spacing:-.35px}
html body :is(.exec-content,.mobile-app main) h1{font-size:28px;line-height:1.25;letter-spacing:-.8px}
html body :is(.exec-content,.mobile-app main) input:not([type=checkbox]):not([type=radio]),html body :is(.exec-content,.mobile-app main) select{border-radius:8px;min-height:44px;border-color:var(--ui-line)}

/* One application shell, not a hero section above each module. */
html body .executive.global-command{grid-template-columns:232px minmax(0,1fr)}
html body .executive.global-command .executive-aside{background:#43253f;padding:16px 12px;position:sticky;top:0;height:100dvh;overflow-y:auto;box-sizing:border-box}
html body .executive.global-command .executive-brand{padding:12px 16px;border-radius:9px}
html body .executive-brand small{display:none}
html body .executive .exec-nav-label{font-family:inherit;font-size:10px;font-weight:600;line-height:1.5;letter-spacing:1.2px;margin:26px 12px 10px;color:#cbbaca}
html body .executive .exec-nav{gap:4px}
html body .executive .exec-nav button{font-size:13px;font-weight:550;min-height:44px;padding:10px 12px;border-radius:7px;color:#e3dbe3}
html body .executive .exec-nav button.active{background:#ffffff18;color:#fff;box-shadow:inset 3px 0 #e2a5cd}
html body .executive .exec-nav button span{color:inherit;width:20px}
html body .executive .exec-aside-bottom{border:0;border-top:1px solid #ffffff20;border-radius:0;background:transparent;padding:16px 8px 0;margin-top:auto}
html body .executive .exec-aside-bottom b{font-size:13px;margin:3px 0 12px}
html body .executive.global-command .exec-top{height:52px;min-height:52px;padding:8px 28px;border-bottom:1px solid var(--ui-line);background:#fff}
html body .executive .exec-crumb{font-size:12px;color:var(--ui-muted)}
html body .executive.global-command .exec-content{max-width:1680px;padding:24px 28px 48px}
html body .executive .exec-hero{margin:0 0 22px;min-height:0}
html body .executive .exec-hero h1{font-size:28px}
html body .executive .exec-hero p:not(.exec-kicker){display:none}
html body .command-toolbar{margin:0 0 12px;min-height:36px}
html body .command-toolbar button{min-height:36px;padding:7px 12px;border-radius:7px}

/* Consistent, compact data cards. Color is reserved for status and selection. */
html body :is(.command-panel,.insight-card,.viz-card,.lg-panel,.access-panel,.op-board,.op-flow-panel,.personal-example-panel,.medical-directory,.medical-profile,.medical-evidence){border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:none;background:#fff}
html body :is(.command-panel,.insight-card,.viz-card,.lg-panel,.access-panel,.op-flow-panel,.personal-example-panel){padding:18px}
html body :is(.command-metrics,.insight-kpis,.access-summary,.op-metrics,.agenda-metrics){gap:12px;margin-bottom:18px}
html body :is(.command-metrics article,.insight-kpis article,.access-summary article,.agenda-metrics article,.personal-results-grid article){border:1px solid var(--ui-line);border-radius:var(--ui-radius);padding:16px 18px;background:#fff;box-shadow:none;min-height:116px;color:var(--ui-ink)}
html body :is(.command-metrics strong,.insight-kpis strong,.access-summary strong,.agenda-metrics strong){font-size:28px;line-height:1.2;letter-spacing:-.7px;font-variant-numeric:tabular-nums;margin:8px 0}
html body :is(.command-metrics small,.insight-kpis article>span,.access-summary span,.agenda-metrics small){color:var(--ui-muted);font-size:12px;min-height:0}
html body .command-metrics .command-icon{width:28px;height:28px;border-radius:7px;padding:5px;background:var(--ui-tint);color:var(--ui-brand)}
html body .command-metrics p{font-size:11px;line-height:1.45}
html body .command-panel h2,html body .insight-card h2{font-size:16px;margin:0 0 12px}
html body .command-detail-grid{gap:16px;margin-top:18px}
html body .command-alert{padding:13px 0;border-radius:0;border-bottom:1px solid var(--ui-line)}
html body .command-alert-link{font-size:12px}
html body .command-activity-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--ui-line);border-radius:10px;background:#fff;margin:0 0 18px;overflow:hidden}
html body .command-activity-strip button{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:0;border-right:1px solid var(--ui-line);padding:16px 18px;color:var(--ui-ink);text-align:left;font:inherit;font-size:13px;cursor:pointer}
html body .command-activity-strip button:last-child{border:0}
html body .command-activity-strip button:hover{background:var(--ui-tint)}
html body .command-activity-strip strong{font-size:22px;font-variant-numeric:tabular-nums;color:var(--ui-brand)}
html body .command-data-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--ui-muted);margin:0 0 18px}
html body .command-data-status button{margin-left:auto;background:#fff;border:1px solid var(--ui-line);border-radius:7px;color:var(--ui-brand);padding:8px 12px;min-height:36px}
html body :is(.workspace-tabs,.op-switch,.wo-tabs){background:transparent;border-radius:0;border-bottom:1px solid var(--ui-line);padding:0 0 8px;gap:4px;margin-bottom:18px}
html body :is(.workspace-tabs,.op-switch) button{font-size:13px;min-height:40px;border-radius:7px;padding:9px 12px;border:0;box-shadow:none;background:transparent;color:var(--ui-muted)}
html body :is(.workspace-tabs,.op-switch) button[aria-pressed=true]{color:var(--ui-brand);background:var(--ui-tint)}
html body .client-hub-note:empty{display:none}
html body .insight-workspace .ai-finding{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--ui-line);border-radius:9px;padding:12px 16px;box-shadow:none;margin-bottom:16px}
html body .insight-workspace .ai-finding .ai-star{width:30px;height:30px;box-shadow:none;background:var(--ui-tint);color:var(--ui-brand);border-radius:7px}
html body .insight-workspace .ai-finding>div{flex:1;font-size:13px}
html body .insight-workspace .ai-finding small{display:none}
html body .insight-grid{gap:16px;margin:16px 0}
html body .insight-card header p{font-size:12px;margin:0 0 12px;color:var(--ui-muted)}

/* Commercial desktop and phone share controls, not a stretched phone canvas. */
html body #commercial.mobile-app>header{min-height:64px;height:64px;border-color:var(--ui-line);padding-top:8px;padding-bottom:8px}
html body #commercial.mobile-app header img{max-width:116px;max-height:46px;object-fit:contain}
html body #commercial.mobile-app>main{padding-top:24px;width:100%;align-self:start}
html body #commercial.mobile-app>main>div{scroll-margin-top:132px}
html body #commercial.mobile-app>main :is(#followup-screen,#history-screen){max-width:none;margin:0}
html body #commercial.mobile-app #commercial-home>.eyebrow{display:none}
html body #commercial.mobile-app #commercial-home>.intro:empty{display:none}
html body #commercial.mobile-app :is(#commercial-home,#history-screen)>h1{margin:0 0 18px}
html body #commercial.mobile-app .intro{margin:8px 0 18px}
html body #commercial.mobile-app nav button{font-size:13px;border-radius:7px}
html body #personal-results .personal-results-title h1{font-size:28px;margin:0}
html body #personal-results{gap:20px}
html body #personal-results .personal-results-grid article{padding:16px 18px;min-height:126px;gap:9px}
html body #personal-results .personal-results-grid strong{font-size:clamp(23px,2vw,29px);color:var(--ui-ink)}
html body #personal-results .personal-example-panel{padding:18px;border-radius:10px}
html body .personal-example-notice{padding:12px 16px;border-radius:8px;background:#f5f0f5}
html body .personal-example-notice p{font-size:12px}
html body .personal-results-explain{margin:6px 0 12px}
html body .product-details{font-size:12px;color:var(--ui-muted);line-height:1.6}
html body .product-details summary{cursor:pointer;min-height:32px;padding:6px 0}
html body .product-details p{margin:6px 0 12px}
html body .history-example-notice{padding:10px 14px;background:var(--ui-tint);border-radius:8px;font-size:12px;margin:0 0 16px}
html body #commercial .visit-history{background:#fff;border:1px solid var(--ui-line);border-radius:9px;padding:16px 18px;margin:0 0 10px}
html body #commercial .visit-history summary{cursor:pointer}
html body #commercial .doctor-directory{border-radius:10px;border-color:var(--ui-line)}
html body #commercial .doctor-directory-tools{padding:14px;gap:12px}
html body #commercial #doctor-list .doctor{border-radius:0;background:white;min-height:66px;padding:14px 18px}
html body #commercial #doctor-list .doctor:hover{background:#faf7fa}
html body #commercial .directory-avatar{border-radius:8px;background:var(--ui-tint)}
html body #commercial .task-todo-row,html body #commercial .meeting-todo-row{border-radius:8px;border-color:var(--ui-line);padding:14px 16px}
html body #commercial #capture-screen{max-width:880px;margin:0 auto}
html body #commercial .recorder{border:1px solid var(--ui-line);background:#fff;border-radius:10px;padding:16px}
html body #commercial .recorder button{min-height:94px;box-shadow:none;border-radius:8px}
html body #commercial .selected-doctor{margin:14px 0;background:var(--ui-tint);border-radius:8px;padding:14px 16px}
html body #commercial .visit-preview{border-radius:10px;border-color:var(--ui-line)}

/* Agenda: the calendar precedes integration settings. */
html body .agenda-toolbar{gap:16px;margin-bottom:16px}
html body .agenda-period h2{font-size:21px;margin:0 0 4px}
html body .agenda-eyebrow{display:none}
html body .agenda-period>span{font-size:12px}
html body .agenda-actions button{min-height:42px;padding:10px 14px;font-size:13px;border-radius:8px;box-shadow:none}
html body .agenda-controls{margin:0 0 16px;gap:12px}
html body .agenda-week-nav button{font-size:12px;padding:9px 12px;border-radius:7px}
html body .agenda-metrics article{min-height:80px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
html body .agenda-metrics article span{display:none}
html body .agenda-metrics article:first-child{background:#fff;color:var(--ui-ink)}
html body .agenda-metrics article strong{margin:0;font-size:24px}
html body .agenda-schedule{border-radius:10px;border-color:var(--ui-line);margin:0 0 16px}
html body .agenda-schedule>header{padding:14px 18px}
html body .agenda-schedule>header h3{font-size:15px;margin:0}
html body .agenda-schedule>header p{display:none}
html body .agenda-event{border-radius:7px;box-shadow:none}
html body .agenda-assistant-tools{padding:12px 16px;border:1px solid var(--ui-line);border-radius:8px;background:#fff;margin:16px 0;display:block}
html body .agenda-assistant-tools>summary{font-size:13px;font-weight:650;cursor:pointer;min-height:28px}
html body .agenda-assistant-tools[open]>:not(summary){margin-top:12px}
html body .agenda-assistant-tools>small{display:block;color:var(--ui-muted);font-size:12px}
html body .agenda-alert{padding:10px 14px;margin:8px 0;font-size:12px;border-radius:7px}
html body .agenda-empty{padding:28px 16px}
html body .agenda-empty h3{font-size:16px}
html body .agenda-footnote{font-size:11px;margin-top:12px}

/* User administration and operational queues use the same visual language. */
html body .users-center .access-summary article{min-height:90px;padding:14px 18px}
html body .users-center .access-panel>header p{display:none}
html body .users-center .access-panel h2{font-size:17px;margin:0}
html body .users-center .access-filters{display:grid;grid-template-columns:minmax(200px,1.4fr) minmax(160px,1fr) minmax(140px,.8fr);gap:12px;padding:18px 0;margin:0;align-items:end}
html body .users-center .access-filters label{max-width:none;margin:0;display:grid;gap:7px}
html body .users-center .access-filters select{width:100%;margin:0;font:inherit;font-size:14px}
html body .users-center .access-team-shortcuts{gap:6px;margin-bottom:16px}
html body .users-center .access-team-shortcuts button{border-radius:7px;padding:8px 10px;min-height:36px;font-size:12px}
html body .users-center .access-row{padding:16px 0;gap:12px;border-color:var(--ui-line)}
html body .users-center .access-avatar{border-radius:8px}
html body .users-center .access-person strong{font-size:14px}
html body .users-center .access-person>span{font-size:12px}
html body .users-center .access-actions button{border-radius:7px;font-size:12px;padding:8px 10px;min-height:36px}
html body .operations .op-toolbar h2{font-size:18px;margin:0}
html body .op-eyebrow{display:none}
html body .op-metrics button{border-radius:9px;padding:14px 18px;gap:4px}
html body .op-metrics strong{font-size:26px}
html body .op-metrics span{font-size:12px}
html body .op-flow-panel{margin:16px 0}
html body .op-flow-panel h3{font-size:16px}
html body .operations .op-card{border-radius:8px;box-shadow:none}
html body .operations .op-card h3{font-size:16px;margin:10px 0 4px}
html body .op-board>header{padding:12px 16px}
html body .op-list-summary{padding:12px 16px 0;font-size:12px}
html body #op-list{gap:12px;padding:16px}
html body .op-footnote{font-size:12px}
html body :is(.op-dialog,.access-dialog,.agenda-dialog,.directory-dialog,.task-dialog){border-radius:12px;box-shadow:0 20px 80px #30273726;border-color:var(--ui-line)}
html body :is(.op-dialog,.access-dialog,.agenda-dialog,.directory-dialog,.task-dialog) h2{font-size:21px;letter-spacing:-.4px}

/* Financial analysis: chart first, methodology available on demand. */
html body .wo .wo-source{padding:12px 16px;border-radius:8px;margin-bottom:18px;background:#fff;border-color:var(--ui-line)}
html body .wo .wo-source svg{width:32px;height:32px;padding:6px;border-radius:7px}
html body .wo .wo-source strong{font-size:13px}
html body .wo .wo-source-icon{width:32px;height:32px;border-radius:7px}
html body .wo .wo-source>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
html body .wo .wo-source>div>b{font-size:12px}
html body .wo .wo-source>div>span{font-size:11px;margin:0}
html body .wo .wo-population{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
html body .wo .wo-population>details{margin-left:auto;text-align:right}
html body .wo .wo-population>details[open]{flex-basis:100%;text-align:left}
html body .wo .wo-population>details p{max-width:100%;font-size:12px}
html body .wo .wo-source p,html body .wo .wo-source small{font-size:12px}
html body .wo .wo-filters{gap:12px;margin:16px 0}
html body .wo .ip-panel .wo-card{padding:18px;border-radius:10px;box-shadow:none;border-color:var(--ui-line)}
html body .wo .ip-panel .wo-card header{margin-bottom:16px}
html body .wo .ip-panel .wo-card h2{font-size:16px;letter-spacing:-.3px}
html body .wo .ip-eyebrow{display:none}
html body .wo .ip-kpi{padding:16px 18px;border-radius:10px;box-shadow:none;border-color:var(--ui-line)}
html body .wo .ip-kpi strong{font-size:30px;letter-spacing:-.8px}
html body .wo .ip-primary{background:#753360;border-color:#753360}
html body .wo .ip-kpi footer{margin-top:12px;padding-top:10px}
html body .wo .ip-pulse{border-radius:9px;padding:12px 16px;background:#f6eff4;gap:14px}
html body .wo .ip-micro{border-radius:10px;padding:16px 0;margin-bottom:18px}
html body .wo .ip-micro b{font-size:22px}
html body .wo :is(.ip-main-grid,.ip-secondary-grid,.ip-bottom-grid){gap:16px;margin-bottom:16px}
html body .wo table{font-size:13px}
html body .wo th{font-size:11px;letter-spacing:.2px;text-transform:none;background:#faf9fb}
html body .wo td{padding-top:13px;padding-bottom:13px}
html body .wo .wo-method{font-size:12px}
html body .logistics .lg-kpi{border-radius:10px;padding:16px 18px;border-color:var(--ui-line);box-shadow:none}
html body .logistics .lg-kpi strong{font-size:28px}
html body .logistics .lg-kpi.k0{background:#753360}
html body .logistics .lg-eyebrow{display:none}
html body .logistics .lg-panel h2,html body .logistics .lg-priorities h2{font-size:17px}
html body .logistics .lg-priorities{background:#fff;color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:10px;padding:18px;box-shadow:none}
html body .logistics .lg-priorities p,html body .logistics .lg-priorities small{color:var(--ui-muted)}
html body .logistics .lg-priority{border-color:var(--ui-line);background:transparent;color:var(--ui-ink);padding:12px 0}
html body .logistics .lg-priority .lg-rank{background:var(--ui-tint);color:var(--ui-brand);border-radius:7px}
html body .logistics .lg-text-button{color:var(--ui-brand);border-color:var(--ui-line)}
html body .logistics .lg-dispatch{border-radius:10px;background:#f4edf3;color:var(--ui-brand);padding:18px;border:1px solid var(--ui-line)}
html body .logistics .lg-dispatch p,html body .logistics .lg-dispatch small{color:var(--ui-muted)}
html body .logistics .lg-shipment{border-color:var(--ui-line)}
html body .logistics .lg-source{font-size:12px}

/* Product identity and sign-in share a canvas; the corporate mark is never stretched. */
html body #login.login{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(440px,1.1fr);min-height:100dvh;padding:0;gap:0;background:white;align-items:stretch}
html body #login .login-art{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:#35172f;color:#fff;padding:clamp(36px,5vw,76px);min-height:100dvh;border:0;text-align:left;box-shadow:none;isolation:isolate}
html body #login .login-art::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 10% 90%,#81436675,transparent 70%)}
html body #login .login-art .login-product{display:block;position:relative;z-index:1}
html body #login .login-product>span{font-size:10px;font-weight:650;letter-spacing:2.5px;color:#d4afca}
html body #login .login-product h1{font-size:clamp(40px,4.5vw,68px);line-height:1.08;font-weight:500;letter-spacing:-2.5px;margin:38px 0 0;max-width:none;color:#fff}
html body #login .brand-dot{display:inline;color:#dd8bbb;font:inherit;letter-spacing:inherit}
html body #login .login-orbit{position:absolute;width:min(100%,540px);height:auto;left:12%;top:34%;stroke:#d1a3c0;stroke-width:.7;opacity:.6;pointer-events:none;max-width:none}
html body #login .login-orbit>path{opacity:.4}
html body #login .orbit-points{fill:#efc2df;stroke:none}
html body #login .login-art-foot{font-size:9px;letter-spacing:3px;color:#ca9ebe;z-index:1;margin-top:340px}
html body #login .login-panel{display:grid;place-items:center;padding:48px 40px;background:#fff;min-width:0}
html body #login .login-card{width:100%;max-width:348px;background:transparent;border:0;border-radius:0;padding:0;margin:0;box-shadow:none}
html body #login .login-brand{display:block;object-fit:contain;width:160px;height:auto;max-width:160px;margin:0 0 32px;padding:0;border:0;border-radius:0;background:none}
html body #login .login-card h2{font-size:28px;font-weight:600;letter-spacing:-.8px;line-height:1.25;margin:0 0 28px}
html body #login .login-card>.eyebrow{display:none}
html body #login .login-card label{display:grid;font-size:12px;font-weight:550;line-height:1.4;margin:0 0 18px;gap:8px;color:#5d4e60}
html body #login .login-card input{width:100%;min-width:0;height:48px;min-height:48px;border-radius:7px;border:1px solid #e0dbe2;background:#faf9fb;padding:12px 14px;font-size:16px;font-weight:400;line-height:1.4;color:#302737;box-shadow:none}
html body #login .login-card input::placeholder{font-size:14px;font-weight:400;color:#9b909f}
html body #login .login-card input:focus{outline:2px solid #975287;outline-offset:2px;background:#fff}
html body #login .login-card button[type=submit]{height:48px;min-height:48px;width:100%;margin:10px 0 0;border:0;border-radius:7px;background:#753260;box-shadow:0 3px 8px #56223f12;font-size:14px;font-weight:600;color:#fff}
html body #login .login-card button[type=submit]:hover{background:#5e254e}
html body #login .login-card button[type=submit]:disabled{opacity:.7;cursor:wait}
html body #login .password-field{position:relative;display:block}
html body #login .password-field input{padding-right:50px}
html body #login .login-card .password-toggle{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:5px;background:transparent;color:#8c798e;box-shadow:none}
html body #login .password-toggle[aria-pressed=true]{color:#753260;background:#efe6ed}
html body #login #login-error{display:block;color:#a32e50;font-size:12px;line-height:1.5;margin:16px 0 0;min-height:18px}
@media(max-width:760px){
 html body #login.login{display:block;min-height:100dvh;background:#fff;border-top:5px solid #753260}
 html body #login .login-art{display:none}
 html body #login .login-panel{min-height:calc(100dvh - 5px);padding:28px 28px 48px;display:flex;align-items:flex-start;justify-content:center}
 html body #login .login-card{max-width:348px;margin-top:clamp(0px,5vh,44px);align-self:flex-start}
 html body #login .login-brand{width:150px;max-width:150px;margin:0 0 28px}
 html body #login .login-card>.eyebrow{display:block;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#94708b;margin:0 0 8px}
 html body #login .login-card h2{font-size:26px;margin-bottom:24px}
}

#commercial-rail{display:none}
html body #commercial #commercial-leadership-back{appearance:none;display:flex;align-items:center;justify-content:flex-start;gap:9px;box-sizing:border-box;width:100%;min-height:40px;margin:0 0 4px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#80366e;font:inherit;font-size:12px;font-weight:600;line-height:1.4;text-align:left;cursor:pointer;box-shadow:none}
html body #commercial #commercial-leadership-back svg{width:18px;height:18px;flex:none}
html body #commercial #commercial-leadership-back:hover{background:#f5edf3}
html body #commercial #commercial-leadership-back:focus-visible{outline:2px solid #80366e;outline-offset:2px}
@media(max-width:1099px){html body #commercial.mobile-app>header:has(#commercial-leadership-back){height:auto;min-height:52px;flex-wrap:wrap;row-gap:2px}html body #commercial>header #commercial-leadership-back{flex-basis:100%;width:auto;margin:0;padding:8px 4px;min-height:40px}}
/* Personal calendar is a time grid, not a team allocation table. */
html body .agenda-personal .agenda-toolbar{margin-bottom:24px;align-items:center}
html body .agenda-personal .agenda-period h2{font-size:28px;letter-spacing:-.8px;margin-bottom:6px}
html body .agenda-personal .agenda-period>span:last-child{font-size:14px}
html body .agenda-personal .agenda-metrics{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 18px;padding:0;border:0}
html body .agenda-personal .agenda-metrics article{padding:0;min-height:24px;min-width:0;border:0;background:none;box-shadow:none;gap:7px;justify-content:flex-start;flex-direction:row-reverse}
html body .agenda-personal .agenda-metrics article strong{font-size:14px;font-weight:750}
html body .agenda-personal .agenda-metrics article small{font-size:12px;max-width:none}
html body .agenda-personal .agenda-schedule>header{padding:12px 16px;background:#fff}
html body .agenda-personal .agenda-schedule{overflow:hidden;background:#fff}
html body .agenda-personal .agenda-list-item>span{display:none}
.personal-calendar{overflow:auto;max-height:calc(100dvh - 300px);min-height:320px;scrollbar-width:thin;background:#fff}
.calendar-week-head,.calendar-time-body{display:grid;grid-template-columns:56px repeat(7,minmax(100px,1fr));min-width:770px}
.calendar-week-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e9e5eb}
.calendar-week-head>span{font-size:10px;color:#968b99;align-self:end;padding:0 0 10px 8px}
.calendar-week-head>div{display:grid;justify-items:center;gap:4px;padding:10px;border-left:1px solid #f1edf2}
.calendar-week-head small{font-size:11px;text-transform:uppercase;color:#8a7d90;letter-spacing:.5px}
.calendar-week-head b{font-size:18px;font-weight:650;width:30px;height:30px;display:grid;place-items:center;border-radius:50%}
.calendar-week-head .is-today b{background:#80366e;color:white}
.calendar-time-body{height:var(--calendar-height)}
.calendar-hours,.calendar-day-track{position:relative;height:var(--calendar-height);min-width:0}
.calendar-hours>span{position:absolute;right:9px;font-size:10px;color:#978b9c;padding-top:3px}
.calendar-day-track{border-left:1px solid #eeeaf0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#eeeaf0 59px,#eeeaf0 60px)}
.calendar-day-track.is-today{background-color:#fcf8fc}
html body .calendar-appointment{position:absolute;display:flex;flex-direction:column;justify-content:flex-start;gap:3px;min-height:0;margin:0;padding:6px 7px;border:1px solid #dfcadd;border-left:3px solid #964584;background:#f4eaf2;color:#642b59;border-radius:5px;text-align:left;overflow:hidden;cursor:pointer;font:inherit;box-shadow:none}
html body .calendar-appointment b{font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex-shrink:0}
html body .calendar-appointment span{font-size:10px;line-height:12px;white-space:nowrap}
html body .calendar-appointment.remote{background:#eeedf9;border-color:#d8d4f0;border-left-color:#8177ba;color:#514982}
html body .calendar-appointment.call{background:#eaf4f0;border-color:#cbe4da;border-left-color:#489d87;color:#27634f}
html body .calendar-appointment.task{background:#faf2e6;border-color:#eddfc7;border-left-color:#b68b4b;color:#775723}
html body .calendar-appointment.done{background:#f1f2f4;color:#6e7078;border-color:#dce0e5;border-left-color:#8c96a0}
html body .calendar-appointment:hover{filter:brightness(.97);outline:1px solid currentColor;z-index:1}
html body .calendar-appointment:focus-visible{outline:2px solid #80366e;outline-offset:1px;z-index:1}
html body .calendar-appointment[style*="height:15px"]{padding:0 3px;gap:0}
html body .calendar-appointment[style*="height:15px"] b{font-size:10px;line-height:13px}
html body .calendar-appointment[style*="height:15px"] span{display:none}
html body .agenda-personal .agenda-assistant-tools{background:transparent;border:0;padding:4px 0;margin:12px 0}
html body .agenda-personal .agenda-assistant-tools>summary{font-size:12px;color:var(--ui-muted);font-weight:500}
@media(min-width:1100px){
 html body #commercial.mobile-app{display:block;padding-left:232px;min-height:100dvh}
 html body #commercial.mobile-app>header{display:none}
 html body #commercial #commercial-rail{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--ui-line);z-index:35;padding:28px 20px 20px;box-sizing:border-box}
 html body #commercial .commercial-brand img{display:block;width:150px;height:auto;margin:0 4px}
 html body #commercial .commercial-workspace-label{font-size:10px;font-weight:700;color:#a497aa;letter-spacing:1.5px;margin:40px 12px 0}
 html body #commercial .commercial-account{display:flex;align-items:center;gap:10px;margin-top:auto;padding:16px 0;border-top:1px solid var(--ui-line)}
 html body #commercial .commercial-account-avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#f2e5ef;color:#80366e;font-size:12px;font-weight:700}
 html body #commercial .commercial-account>div{display:grid;gap:3px;min-width:0}
 html body #commercial .commercial-account strong{font-size:12px;overflow-wrap:anywhere}
 html body #commercial .commercial-account small{font-size:11px;color:var(--ui-muted)}
 html body #commercial #logout-commercial{display:flex;align-items:center;justify-content:flex-start;gap:9px;border:0;background:none;border-radius:7px;font-size:12px;font-weight:550;min-height:40px;padding:9px;color:#83758a;width:100%}
 html body #commercial #logout-commercial:hover{background:#f7f3f7;color:#80366e}
 html body #commercial.mobile-app>nav{position:fixed;top:160px;left:16px;right:auto;bottom:160px;width:200px;max-width:none;min-height:0;height:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;padding:0;overflow:auto;background:transparent;border:0;border-radius:0;box-shadow:none;z-index:36}
 html body #commercial.mobile-app>nav button{flex:0 0 auto;width:100%;min-height:46px;display:flex;flex-direction:row;justify-content:flex-start;gap:12px;padding:12px 14px;border-radius:8px;font-size:13px;color:#897a90;text-align:left;position:relative}
 html body #commercial.mobile-app>nav button.active{background:#f3e8f1;color:#80366e;font-weight:700}
 html body #commercial.mobile-app>nav button.active::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:3px;background:#80366e}
 html body #commercial.mobile-app>nav button svg{width:19px;height:19px;flex-shrink:0}
 html body #commercial.mobile-app>main{width:100%;padding:32px 32px 40px;max-width:1600px;margin:0 auto;min-height:100dvh;box-sizing:border-box}
 html body #commercial #personal-results>[data-results-content]{gap:16px}
 html body #commercial #history-screen #personal-history{max-width:1040px}
}
@media(max-width:800px){
 html body .agenda-personal .agenda-toolbar{align-items:stretch;margin-bottom:18px}
 html body .agenda-personal .agenda-week-nav [data-next-week]{display:none}
 html body .agenda-personal .agenda-week-nav [data-shift]{width:34px;min-width:34px;min-height:40px;padding:8px;justify-content:center}
 html body .agenda-personal .agenda-week-nav [data-this-week]{min-height:40px;padding:8px 12px}
 html body .agenda-personal .personal-calendar{display:none}
 html body .agenda-personal .agenda-view{display:none}
 html body .agenda-personal .agenda-mobile-list{display:block}
 html body .agenda-personal .agenda-metrics{gap:6px 16px;margin-bottom:12px}
 html body .agenda-personal .agenda-metrics article{min-height:22px;padding:0}
 html body .agenda-personal .agenda-metrics article strong{font-size:13px}
 html body .agenda-personal .agenda-week-nav{gap:6px}
 html body .agenda-personal .agenda-week-nav input{min-width:0;width:136px;font-size:13px}
 html body .agenda-personal .agenda-period h2{font-size:24px}
 html body .agenda-personal .agenda-list section{padding:12px}
 html body .agenda-personal .agenda-list h4{font-size:13px;text-transform:none;margin:2px 0 10px}
 html body .agenda-personal .agenda-list .agenda-event{padding:12px;border-left-width:3px}
}
@media(max-width:1100px){html body .command-detail-grid{grid-template-columns:1fr}html body .agenda-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 html body .executive.global-command{display:block}
 html body .executive.global-command .exec-top{height:60px;min-height:60px;padding:8px 16px}
 html body .executive.global-command .exec-content{padding:20px 16px 36px}
 html body .executive .exec-hero{margin-bottom:18px}
 html body .executive .exec-hero h1,html body #commercial.mobile-app h1{font-size:24px;letter-spacing:-.6px}
 html body #commercial.mobile-app>main{padding:20px 16px 108px}
 html body :is(.command-metrics article,.insight-kpis article,.personal-results-grid article){padding:14px;min-height:112px}
 html body .command-metrics strong{font-size:26px}
 html body .command-activity-strip{grid-template-columns:1fr}
 html body .command-activity-strip button{border-right:0;border-bottom:1px solid var(--ui-line);padding:11px 14px}
 html body .command-activity-strip strong{font-size:20px}
 html body .insight-workspace .ai-finding{flex-wrap:wrap}
 html body .insight-workspace .ai-finding button{width:100%}
 html body .agenda-toolbar{align-items:stretch}
 html body .agenda-period h2{font-size:20px}
 html body .agenda-actions{flex-wrap:wrap}
 html body .agenda-actions button{flex:1}
 html body .agenda-metrics article{padding:12px;min-height:72px;gap:8px}
 html body .agenda-metrics small{max-width:90px}
 html body .agenda-metrics strong{font-size:22px}
 html body .agenda-assistant-tools{margin-top:12px}
 html body .users-center .access-actions button{min-height:44px}
 html body .users-center .access-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html body .users-center .access-filters label:first-child{grid-column:1/-1}
 html body .users-center .access-filters select{font-size:16px;max-width:100%;padding:10px 6px}
 html body .wo .wo-source>div{gap:4px}
 html body .wo .wo-population>details{margin-left:0;text-align:left}
 html body .wo .wo-population{gap:4px}
 html body :is(.command-panel,.insight-card,.access-panel,.op-flow-panel){padding:16px}
}
@media(prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important}}

/* Content-first mobile workspace. Controls have a 44px target, not a hero layout. */
html body #commercial .doctor-filter-menu{min-width:0}
html body #commercial .doctor-filter-menu>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:5px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:8px;background:#fff;font-size:12px;color:var(--ui-brand)}
html body #commercial .doctor-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end}
html body #commercial .doctor-filter-fields label{display:grid;gap:6px;font-size:12px;min-width:0}
@media(min-width:801px){
 html body #commercial #doctor-directory-toolbar{grid-template-columns:minmax(180px,1fr) minmax(0,3fr)}
 html body #commercial .doctor-filter-menu>summary{display:none}
}
@media(max-width:800px){
 html body #commercial.mobile-app>header{height:52px;min-height:52px;padding:4px 12px}
 html body #commercial.mobile-app>header img{width:92px;max-height:38px}
 html body #commercial #logout-commercial{font-size:12px;min-height:44px;padding:8px 10px;border:0;background:none;gap:6px}
 html body #commercial #logout-commercial svg{width:17px;height:17px}
 html body #commercial.mobile-app>main{padding:14px 12px 84px}
 html body #commercial.mobile-app>nav{padding:4px 6px calc(4px + env(safe-area-inset-bottom));min-height:60px;height:auto;border-radius:0;gap:2px}
 html body #commercial.mobile-app>nav button{padding:5px 1px;min-height:48px;gap:4px;font-size:10px;line-height:1.2;white-space:nowrap}
 html body #commercial.mobile-app>nav button svg{width:20px;height:20px}
 html body #commercial.mobile-app>nav button span{display:flex;align-items:center;justify-content:center;gap:3px}
 html body #commercial.mobile-app>nav button i{font-size:9px;line-height:14px;padding:0 4px;margin:0}
 html body #commercial.mobile-app h1,html body #commercial #personal-results h1{font-size:22px;line-height:1.25;letter-spacing:-.5px;margin:0 0 12px}
 html body #commercial.mobile-app h2{font-size:16px;line-height:1.3}
 html body #commercial.mobile-app :is(#commercial-home,#history-screen)>h1{margin-bottom:12px}

 html body #commercial .agenda-personal .agenda-workspace{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px}
 html body #commercial .agenda-personal :is(.agenda-toolbar,.agenda-actions){display:contents}
 html body #commercial .agenda-personal .agenda-period{grid-column:1;grid-row:1;min-width:0;align-self:center}
 html body #commercial .agenda-personal .agenda-period h2{font-size:22px;margin:0;line-height:1.3}
 html body #commercial .agenda-personal .agenda-period>span:last-child{display:none}
 html body #commercial .agenda-personal [data-agenda-new]{grid-column:2;grid-row:1;min-height:44px;padding:8px 10px;font-size:12px;gap:6px}
 html body #commercial .agenda-personal [data-agenda-generate]{grid-column:1/-1;grid-row:8;width:max-content;min-height:44px;font-size:12px;padding:8px 12px;max-width:100%}
 html body #commercial .agenda-personal .agenda-controls{grid-column:1/-1;grid-row:2;display:block;margin:0}
 html body #commercial .agenda-personal .agenda-filters{display:none}
 html body #commercial .agenda-personal .agenda-week-nav{display:flex;flex-wrap:nowrap;gap:6px}
 html body #commercial .agenda-personal .agenda-week-nav input{flex:1;width:120px;min-width:0;max-width:none;min-height:44px;font-size:16px;padding:7px}
 html body #commercial .agenda-personal .agenda-week-nav [data-shift]{min-width:44px;width:44px;height:44px}
 html body #commercial .agenda-personal .agenda-week-nav [data-this-week]{min-height:44px;font-size:12px}
 html body #commercial .agenda-personal .agenda-schedule{grid-column:1/-1;grid-row:3;margin:0;background:transparent;border:0;border-radius:0}
 html body #commercial .agenda-personal .agenda-schedule>header{display:none}
 html body #commercial .agenda-personal .agenda-list{padding:0}
 html body #commercial .agenda-personal .agenda-list section{padding:0;margin:0 0 16px}
 html body #commercial .agenda-personal .agenda-list h4{font-size:12px;padding:0;margin:0 0 8px;border:0;line-height:20px}
 html body #commercial .agenda-personal .agenda-list-item{margin:0 0 8px}
 html body #commercial .agenda-personal .agenda-list .agenda-event{padding:10px 12px!important;border-radius:8px!important;background:#fff!important}
 html body #commercial .agenda-personal .agenda-event b{font-size:14px!important;margin:5px 0 2px}
 html body #commercial .agenda-personal .agenda-event small{font-size:11px!important}
 html body #commercial .agenda-personal .agenda-metrics{grid-column:1/-1;grid-row:5;gap:8px 16px;margin:0;border-top:1px solid var(--ui-line);padding-top:12px}
 html body #commercial .agenda-personal [data-agenda-alerts]{grid-column:1/-1;grid-row:4}
 html body #commercial .agenda-personal [data-agenda-alerts]:empty{display:none}
 html body #commercial .agenda-personal .agenda-notice{grid-column:1/-1;grid-row:6;margin:0}
 html body #commercial .agenda-personal .agenda-assistant-tools{grid-column:1/-1;grid-row:7;margin:0}

 html body #commercial #doctor-directory-toolbar{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 8px;align-items:start}
 html body #commercial #doctor-directory-toolbar .search{margin:0;height:44px;min-height:44px;border-radius:8px;grid-column:1;grid-row:1}
 html body #commercial #doctor-directory-toolbar .doctor-filter-menu{grid-column:2;grid-row:1}
 html body #commercial #doctor-directory-toolbar .search input{font-size:16px;padding:8px 4px}
 html body #commercial .doctor-filter-menu>summary{box-sizing:border-box}
 html body #commercial .doctor-filter-menu[open]>.doctor-filter-fields{position:absolute;top:52px;left:0;right:0;z-index:4;background:#fff;border:1px solid var(--ui-line);border-radius:8px;box-shadow:0 8px 24px #30273718;padding:12px;grid-template-columns:1fr 1fr}
 html body #commercial .doctor-filter-fields select{font-size:16px;height:44px}
 html body #commercial #doctor-directory-count{font-size:11px;margin:8px 0}
 html body #commercial #doctor-list .doctor{padding:10px 12px;min-height:70px}
 html body #commercial .directory-name strong{font-size:14px}
 html body #commercial .directory-avatar{width:28px;height:28px;font-size:11px}

 html body #commercial #followup-screen{position:relative}
 html body #commercial #followup-screen>h1{margin:0 130px 18px 0;min-height:44px;display:flex;align-items:center}
 html body #commercial .personal-task-heading{position:absolute;right:0;top:0;margin:0}
 html body #commercial .personal-task-heading>p{display:none}
 html body #commercial .personal-task-heading .primary{min-height:44px;font-size:12px}
 html body #commercial .task-toolbar{gap:6px}
 html body #commercial .task-view-tabs{border-radius:8px}
 html body #commercial .task-view-tabs button{padding:8px 6px;font-size:11px}
 html body #commercial .task-filter-disclosure>summary{padding:8px;min-height:50px}
 html body #commercial .task-results{margin:10px 0;font-size:11px}
 html body #commercial .task-todo-list .task-date-heading{margin:6px 0 8px;font-size:12px}
 html body #commercial :is(.task-todo-row,.meeting-todo-row){padding:10px;gap:6px;box-shadow:none}
 html body #commercial .visit-history{padding:12px;margin:0 0 8px;font-size:13px}
 html body #commercial .visit-history summary small{font-size:11px;margin-top:4px}
 html body #commercial .history-example-notice{font-size:11px;line-height:1.4;padding:8px 10px;margin-bottom:10px}

 html body #commercial #personal-results{gap:12px}
 html body #commercial .personal-results-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;margin:0 0 12px}
 html body #commercial .personal-results-filter label{min-width:0;font-size:11px;gap:4px}
 html body #commercial .personal-results-filter input{font-size:14px;min-height:44px;padding:4px;min-width:0}
 html body #commercial .personal-results-filter button{font-size:11px;padding:8px;min-height:44px}
 html body #commercial [data-results-content]>h2{margin:12px 0 8px;font-size:15px}
 html body #commercial #personal-results .personal-results-grid{gap:8px}
 html body #commercial #personal-results .personal-results-grid article{padding:12px;min-height:94px;gap:6px}
 html body #commercial #personal-results .personal-results-grid strong{font-size:clamp(17px,4.8vw,21px);letter-spacing:-.5px}
 html body #commercial #personal-results .personal-results-grid span{font-size:11px}
 html body #commercial #personal-results .personal-results-grid small{font-size:10px;line-height:1.4}
 html body #commercial .personal-example-notice{padding:8px 10px;font-size:11px;line-height:1.4;margin:0 0 10px}
 html body #commercial .personal-example-notice p{font-size:11px;margin:4px 0}
 html body #commercial .personal-example-notice button{min-height:44px;font-size:11px;padding:8px;margin-top:4px}
 html body #commercial .personal-results-cut{font-size:10px;margin:8px 0}
 html body #commercial #personal-results .personal-example-panel{padding:12px;margin:12px 0}
}
