/* Vejoc 1l-r2 | Shared UX contract for 60 applications.
   Loaded after every legacy sheet: presentation only, no changes to clinical actions.
   1. Compact, aligned top chrome; 2. first-screen focus; 3. semantic alerts;
   4. consistent cards; 5. responsive/touch/keyboard/Safari. */
html[data-theme="dark"] body.app-body,
html:not([data-theme]) body.app-body{
 --ux-bg:#090c12;--ux-panel:#141a23;--ux-panel-soft:#1b2430;
 --ux-text:#f3f7fc;--ux-muted:#b5c3d2;--ux-line:#354355;
 --ux-accent:#c9f779;--ux-soft-accent:#27371c;--ux-warning:#ffd48a;
 --ux-warning-bg:#322718;--ux-warning-line:#a07639;
 --ux-danger:#ffbec3;--ux-danger-bg:#382129;--ux-danger-line:#bc6a79;
 --ux-success:#c9f2a4;--ux-success-bg:#213420;--ux-success-line:#6d9d58;
 --ux-shadow:0 2px 8px rgba(0,0,0,.08);
}
html[data-theme="light"] body.app-body{
 --ux-bg:#f5f7fa;--ux-panel:#fff;--ux-panel-soft:#edf2f7;
 --ux-text:#172638;--ux-muted:#496177;--ux-line:#ccd9e4;
 --ux-accent:#315f0a;--ux-soft-accent:#e6f3d2;--ux-warning:#724600;
 --ux-warning-bg:#fff2d6;--ux-warning-line:#a47520;
 --ux-danger:#921f32;--ux-danger-bg:#fff0f1;--ux-danger-line:#c44d64;
 --ux-success:#285918;--ux-success-bg:#e5f3e1;--ux-success-line:#4a9548;
 --ux-shadow:0 2px 8px rgba(20,34,50,.035);
}
/* Every nested layout is allowed to shrink instead of stretching the viewport. */
body.app-body :is(.app-shell,.main,.content,.card,.section-head,.page-intro,.section-actions,.row-actions,.store60,.store60-card,.store60-card-info,.table-wrap){min-width:0}
body.app-body .topbar.saas442-topbar{
 min-height:56px!important;height:56px!important;padding:0 clamp(12px,1.4vw,22px)!important;
 gap:12px!important;display:flex!important;align-items:center!important;
 background:var(--ux-panel)!important;border-bottom:1px solid var(--ux-line)!important;
 color:var(--ux-text)!important;box-shadow:none!important;
}
body.app-body .topbar .saas442-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:0 1 auto!important}
body.app-body .topbar .saas442-workspace{
 display:flex!important;align-items:center!important;min-width:0!important;
 max-width:260px!important;margin:0!important;padding:5px 8px!important;
 background:transparent!important;border:1px solid transparent!important;border-radius:10px!important;
 color:var(--ux-text)!important;box-shadow:none!important;
}
body.app-body .saas442-workspace>div{min-width:0!important;max-width:204px!important}
body.app-body .saas442-workspace :is(b,small){display:block;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%;line-height:1.25!important}
body.app-body .saas442-workspace b{color:var(--ux-text)!important;font-size:13px!important}
body.app-body .saas442-workspace small{color:var(--ux-muted)!important;font-size:11px!important}
body.app-body .topbar .command-trigger.saas442-search{
 display:flex!important;align-items:center!important;gap:10px!important;
 flex:1 1 320px!important;width:auto!important;min-width:42px!important;
 max-width:480px!important;margin:0 auto!important;min-height:38px!important;
 border:1px solid var(--ux-line)!important;border-radius:11px!important;
 color:var(--ux-muted)!important;background:var(--ux-panel-soft)!important;
 box-shadow:none!important;padding:0 12px!important;
}
body.app-body .command-trigger.saas442-search .icon{width:18px!important;height:18px!important;flex:none}
body.app-body .command-trigger.saas442-search span{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.app-body .topbar .top-actions.saas442-actions{display:flex!important;flex:none!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin-left:auto!important;min-width:0!important}
body.app-body .topbar .saas442-actions :is(.icon-btn,.v1i-theme-toggle){width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;display:grid!important;place-items:center!important;padding:0!important;border:1px solid transparent!important;border-radius:10px!important;color:var(--ux-text)!important;background:transparent!important}
body.app-body .topbar .saas442-actions :is(.icon-btn,.v1i-theme-toggle):hover{background:var(--ux-panel-soft)!important;border-color:var(--ux-line)!important}
body.app-body .topbar .saas442-actions .v1i-theme-toggle span{display:none!important}
body.app-body .topbar .notification-dot{min-width:15px!important;min-height:15px!important;font-size:10px!important}
body.app-body .topbar .saas442-user{margin:0!important;max-width:180px!important;min-width:0!important}
body.app-body .topbar .saas442-user>div{min-width:0!important;overflow:hidden!important}
body.app-body .topbar .saas442-user :is(b,small){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.app-body .topbar .role-preview-trigger{max-width:150px!important;min-width:0!important}
/* Desktop context is a concise breadcrumb/title line, not a second full toolbar. */
@media(min-width:821px){
 body.app-body .saas442-contextbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  min-height:58px!important;height:auto!important;padding:8px clamp(16px,2vw,28px)!important;
  background:var(--ux-bg)!important;border-bottom:1px solid var(--ux-line)!important;box-shadow:none!important}
 body.app-body .saas442-contextbar .saas442-page-title{min-width:0!important}
 body.app-body .saas442-contextbar .saas442-page-title small{display:block!important;margin-bottom:2px!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ux-muted)!important;font-size:11px!important}
 body.app-body .saas442-contextbar .saas442-page-title h1{margin:0!important;font-size:18px!important;line-height:1.25!important;font-weight:700!important;letter-spacing:-.015em;color:var(--ux-text)!important;-webkit-text-fill-color:var(--ux-text)!important}
 body.app-body .saas442-context-actions .saas442-search-mini{display:none!important}
}
/* Remove competing top-of-page chrome; keep clinically meaningful banners. */
body.app-body .content{
 width:min(100%,1440px)!important;max-width:1440px!important;
 padding:clamp(12px,1.5vw,20px) clamp(14px,2vw,26px) 100px!important;
 color:var(--ux-text)!important;
}
body.app-body .content :is(.page-intro,.section-head){max-width:100%;min-width:0}
body.app-body .content .page-intro{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
 min-height:0!important;padding:5px 0 12px!important;margin:0 0 12px!important;background:transparent!important;
 border:0!important;border-bottom:1px solid var(--ux-line)!important;box-shadow:none!important}
body.app-body[data-current-page="dashboard"] .content .page-intro{display:none!important}
body.app-body .content .page-intro>div:first-child{min-width:0!important}
body.app-body .content .page-intro h2{font-size:clamp(20px,2vw,27px)!important;line-height:1.2!important;letter-spacing:-.035em!important;margin:0!important;color:var(--ux-text)!important}
body.app-body .content .page-intro small{color:var(--ux-muted)!important;line-height:1.3!important;font-size:11px!important}
body.app-body .content .section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important;padding:0!important}
body.app-body .content .section-head h2{font-size:clamp(17px,1.6vw,21px)!important;line-height:1.3!important;margin:0!important;color:var(--ux-text)!important}
body.app-body .content > :is(.page-intro,.kpi-grid,.v1i-workflow-panel,.r8-secondary-tools,.card,.table-wrap,.store60){margin-bottom:14px!important}
/* Group buttons stay aligned on desktop; mobile receives natural, keyboard-scrollable overflow. */
body.app-body :is(.section-actions,.row-actions,.tabs,.filter-row,.filters){min-width:0;max-width:100%}
body.app-body .content .section-actions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-end!important}
body.app-body .content .section-actions :is(a,button){min-height:38px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
body.app-body .content :is(.section-actions,.tabs) .icon{width:17px;height:17px;flex:none}
body.app-body .content :is(.section-actions,.row-actions,.tabs)>:is(a,button){flex-shrink:0}
/* Predictable cards and columns: the layout contract applies regardless of app. */
body.app-body .content :is(.card,.kpi,.table-wrap,.v1i-workflow-panel,.v1h-app-card,.store60-card,.r8-secondary-tools){border-color:var(--ux-line)!important;box-shadow:var(--ux-shadow)!important}
body.app-body .content :is(.card,.kpi,.v1h-app-card,.store60-card){border-radius:14px!important}
body.app-body .content .card{padding:clamp(13px,1.3vw,19px)!important;margin-top:0!important;min-width:0!important}
body.app-body .content .card .card-header{margin-bottom:12px!important;padding-bottom:10px!important}
body.app-body .content .card h3{font-size:clamp(15px,1.4vw,18px)!important;line-height:1.35!important}
body.app-body .content :is(.kpi-grid,.v1h-kpis,.store60-grid,.today-signal-grid,.dashboard513-indicator-grid,.center-shortcuts,.resident-center-shortcuts){gap:12px!important}
body.app-body .content .kpi{min-height:106px!important;padding:14px!important}
body.app-body .content .kpi strong{font-size:clamp(22px,2.2vw,30px)!important;line-height:1.2!important}
body.app-body .content .kpi :is(.kpi-hint,small){font-size:12px!important;line-height:1.4!important;color:var(--ux-muted)!important}
body.app-body .content .store60-card{min-height:88px!important;gap:12px!important;padding:12px!important}
body.app-body .content .store60-open{min-height:38px!important}
body.app-body .content :is(.table-wrap,.card,.v1i-workflow-panel){max-width:100%}
body.app-body .content .table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain;border-radius:14px!important}
body.app-body .content table{min-width:max-content;max-width:none}
body.app-body .content table :is(th,td){padding:10px 12px!important;font-size:13px!important;line-height:1.4!important;vertical-align:middle}
body.app-body .content table th{font-size:12px!important}
/* Risk is distinguishable by wording and shape in addition to color. */
html[data-theme] body.app-body :is(.flash.error,.callout.danger,[role="alert"].danger,[role="alert"].error){background:var(--ux-danger-bg)!important;color:var(--ux-danger)!important;border:1px solid var(--ux-danger-line)!important;border-left:4px solid var(--ux-danger-line)!important}
html[data-theme] body.app-body :is(.flash.warning,.callout.warning,[role="alert"].warning){background:var(--ux-warning-bg)!important;color:var(--ux-warning)!important;border:1px solid var(--ux-warning-line)!important;border-left:4px solid var(--ux-warning-line)!important}
html[data-theme] body.app-body :is(.flash.success,.callout.success){background:var(--ux-success-bg)!important;color:var(--ux-success)!important;border:1px solid var(--ux-success-line)!important;border-left:4px solid var(--ux-success-line)!important}
html[data-theme] body.app-body :is(.flash.error,.flash.warning,.flash.success,.callout.danger,.callout.warning,.callout.success){border-radius:11px!important;padding:12px 14px!important;font-size:14px!important;line-height:1.5!important;font-weight:650!important;margin:8px 0 14px!important;overflow-wrap:anywhere}
html[data-theme] body.app-body :is(.flash.error,.flash.warning,.flash.success,.callout.danger,.callout.warning,.callout.success) :is(b,strong,small,span,p){color:inherit!important;-webkit-text-fill-color:inherit!important}
html[data-theme] body.app-body .qb608-glance-card.risk{border-left:4px solid var(--ux-danger-line)!important}
html[data-theme] body.app-body .qb608-glance-card.risk :is(strong,b){color:var(--ux-danger)!important;-webkit-text-fill-color:var(--ux-danger)!important}
html[data-theme="light"] body.app-body .qb608-glance-card.risk :is(strong,b){color:#942139!important;-webkit-text-fill-color:#942139!important}
html[data-theme] body.app-body .btn.danger{color:var(--ux-danger)!important;border:1px solid var(--ux-danger-line)!important;background:var(--ux-danger-bg)!important}
html[data-theme] body.app-body .content :is(.flash,.callout) :is(a,button){text-decoration:underline;text-underline-offset:3px;color:inherit!important}
/* Consistent readable form labels and explicit focus rings. */
body.app-body .content :is(label,.field-label){font-size:14px;line-height:1.45}
body.app-body .content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){font-size:16px!important;max-width:100%;min-height:42px}
body.app-body .content :is(button,.btn,a.btn,select,summary){touch-action:manipulation}
html[data-theme] body.app-body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--ux-accent)!important;outline-offset:2px!important}
body.app-body .content :is(p,li,dd){overflow-wrap:break-word}
/* Small laptops: preserve controls without letting wide labels collide. */
@media(min-width:821px) and (max-width:1220px){
 body.app-body .topbar .saas442-workspace{max-width:175px!important}
 body.app-body .topbar .saas442-user{max-width:45px!important;overflow:hidden!important}
 body.app-body .topbar .role-preview-trigger span{display:none!important}
 body.app-body .topbar .role-preview-trigger{width:40px!important;min-width:40px!important;padding:0!important;justify-content:center!important}
}
/* Mobile layout is information-first: one action bar, no duplicated shortcuts. */
@media(max-width:820px){
 body.app-body .topbar.saas442-topbar{height:56px!important;min-height:56px!important;gap:6px!important;padding:0 10px!important}
 body.app-body .topbar .saas442-left{flex:1 1 auto!important;gap:5px!important;overflow:hidden!important}
 body.app-body .topbar .menu-btn{display:grid!important;place-items:center;flex:none!important;min-width:42px!important;min-height:42px!important;padding:0!important}
 body.app-body .topbar .saas442-workspace{max-width:min(43vw,230px)!important;padding:4px!important;flex:1 1 auto!important}
 body.app-body .topbar .saas442-workspace :is(.saas442-workspace-icon,i,small){display:none!important}
 body.app-body .topbar .saas442-workspace b{font-size:14px!important;line-height:1.3!important}
 body.app-body .topbar .command-trigger.saas442-search{
  width:42px!important;min-width:42px!important;max-width:42px!important;flex:0 0 42px!important;
  height:42px!important;min-height:42px!important;padding:0!important;margin:0!important;
  display:grid!important;place-items:center!important;background:transparent!important;border-color:transparent!important;
 }
 body.app-body .topbar .command-trigger.saas442-search :is(span,kbd){display:none!important}
 body.app-body .topbar .saas442-actions{gap:2px!important;margin-left:0!important}
 body.app-body .topbar .saas442-actions .icon-btn{height:42px!important;min-height:42px!important;width:42px!important;min-width:42px!important}
 body.app-body .topbar :is(.v1i-theme-toggle,.role-preview-trigger,.saas442-user,.saas442-install){display:none!important}
 /* The page intro already names its screen: do not render two headings. */
 body.app-body .saas442-contextbar{display:flex!important;min-height:47px!important;height:auto!important;align-items:center!important;padding:9px 14px!important;
  color:var(--ux-text)!important;background:var(--ux-bg)!important;border-bottom:1px solid var(--ux-line)!important}
 body.app-body .saas442-contextbar .saas442-page-title small{display:none!important}
 body.app-body .saas442-contextbar .saas442-page-title h1{font-size:16px!important;line-height:1.2!important;margin:0!important;color:var(--ux-text)!important;-webkit-text-fill-color:var(--ux-text)!important}
 body.app-body .saas442-contextbar .saas442-context-actions{display:none!important}
 body.app-body .main:has(.content .page-intro)>.saas442-contextbar,
 body.app-body .main:has(.content .store60-header)>.saas442-contextbar,
 body.app-body[data-current-page="dashboard"] .saas442-contextbar{display:none!important}
 body.app-body .content{padding:12px 12px calc(90px + env(safe-area-inset-bottom))!important}
 body.app-body .content .page-intro{align-items:flex-start!important;flex-wrap:wrap!important;gap:10px!important;padding:0 0 12px!important;margin:0 0 12px!important}
 body.app-body .content .page-intro h2{font-size:clamp(21px,5.6vw,26px)!important}
 body.app-body .content :is(.page-intro,.section-head)>.section-actions{width:100%!important;justify-content:flex-start!important}
 body.app-body .content :is(.page-intro,.section-head) .section-actions{display:flex!important;flex-wrap:nowrap!important;
  justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;overscroll-behavior-x:contain;
  scrollbar-width:thin;max-width:100%;padding:2px 1px 7px!important}
 body.app-body .content :is(.page-intro,.section-head) .section-actions>:is(a,button){min-height:44px!important;flex:0 0 auto!important;scroll-snap-align:start}
 body.app-body .content .section-head{flex-wrap:wrap!important;gap:8px!important}
 body.app-body .content .section-head h2{font-size:18px!important}
 body.app-body .content :is(.card,.v1h-app-card){padding:13px!important;border-radius:13px!important}
 body.app-body .content :is(.kpi-grid,.v1h-kpis,.store60-grid,.today-signal-grid,.dashboard513-indicator-grid,.center-shortcuts,.resident-center-shortcuts){gap:9px!important}
 body.app-body .content .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.app-body .content .kpi{padding:11px!important;min-height:102px!important;border-radius:12px!important}
 body.app-body .content .kpi strong{font-size:clamp(21px,5.6vw,27px)!important}
 body.app-body .content .kpi .kpi-icon{width:29px!important;height:29px!important}
 body.app-body .content .kpi :is(small,.kpi-hint){font-size:11px!important;line-height:1.35!important}
 body.app-body .content .store60-card{padding:11px!important;min-height:84px!important;gap:8px!important}
 body.app-body .content .store60-card-actions :is(button,a){min-height:40px!important}
 body.app-body .content .store60-fave{min-width:40px!important;width:40px!important;height:40px!important}
 body.app-body .content form.row-actions{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:8px!important}
 body.app-body .content form.row-actions>:is(input,select){flex:1 1 142px!important;width:auto!important;min-width:0!important}
 body.app-body .content .v1i-workflow-actions{gap:8px!important}
 body.app-body .content .v1i-workflow-actions>[data-workflow-item]{min-height:64px!important}
 body.app-body .mobile-nav{min-height:calc(64px + env(safe-area-inset-bottom))!important;padding-bottom:env(safe-area-inset-bottom)!important;
  background:var(--ux-panel)!important;border-top:1px solid var(--ux-line)!important;color:var(--ux-text)!important}
 body.app-body .mobile-nav>a{min-height:54px!important;touch-action:manipulation}
 body.app-body .mobile-nav>a span{font-size:11px!important;line-height:1.2!important}
}
@media(max-width:375px){
 body.app-body .topbar .saas442-workspace{max-width:36vw!important}
 body.app-body .topbar .command-trigger.saas442-search,
 body.app-body .topbar .saas442-actions .icon-btn{width:40px!important;min-width:40px!important}
 body.app-body .content{padding-inline:10px!important}
}
/* Public marketing and app pages: reduce dead space before first CTA. */
body.public432-body .vejoc1l-public-detail{padding-top:clamp(70px,8vw,110px);padding-bottom:clamp(38px,5vw,64px)}
body.public432-body .vejoc1l-crumb{margin-bottom:clamp(14px,2.6vw,26px)}
body.public432-body .vejoc1l-app-hero{gap:clamp(16px,3vw,30px)}
body.public432-body .vejoc1l-app-hero h1{margin:10px 0 14px;font-size:clamp(2rem,4.9vw,4rem)}
body.public432-body .vejoc1l-actions{gap:10px;margin:16px 0}
body.public432-body .vejoc1l-app-how,
body.public432-body .vejoc1l-app-result,
body.public432-body .vejoc1l-lead{margin-top:clamp(22px,4vw,42px)}
body.public432-body .vejoc1l-toolgrid{gap:12px;margin-top:18px}
body.public432-body :is(.vejoc1l-toolgrid article,.vejoc1l-app-hero aside,.vejoc1l-app-result,.vejoc1l-lead){border-radius:16px}
@media(max-width:760px){
 body.public432-body .vejoc1l-public-detail{padding:76px 16px 52px}
 body.public432-body .vejoc1l-crumb{margin-bottom:16px}
 body.public432-body .vejoc1l-app-hero h1{font-size:clamp(2rem,8vw,2.6rem);line-height:1.13}
 body.public432-body .vejoc1l-app-hero p{font-size:16px;line-height:1.5}
 body.public432-body .vejoc1l-app-hero{gap:14px}
 body.public432-body .vejoc1l-app-hero aside{padding:16px}
 body.public432-body .vejoc1l-actions .public432-btn{min-height:46px;display:flex;align-items:center;justify-content:center}
 body.public432-body .vejoc1l-toolgrid article{min-height:60px;padding:14px}
}
@media(prefers-reduced-motion:reduce){
 body.app-body :is(.saas442-workspace,.section-actions,.store60-card,.card),
 body.public432-body .vejoc1l-app-hero *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
/* Final specificity repairs against 1g legacy responsive grid + toast positioning. */
body.app-body header.topbar.saas442-topbar{display:flex!important;grid-template-columns:none!important;flex-flow:row nowrap!important}
body.app-body .topbar.saas442-topbar .top-actions.saas442-actions{position:static!important;inset:auto!important;transform:none!important;align-self:center!important}
body.app-body .content .flash{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;
 z-index:auto!important;width:100%!important;max-width:100%!important;min-height:0!important}
@media(max-width:820px){
 body.app-body .topbar.saas442-topbar .saas442-actions .v1i-theme-toggle,
 body.app-body .topbar.saas442-topbar .saas442-actions .saas442-install,
 body.app-body .topbar.saas442-topbar .saas442-actions .saas442-user,
 body.app-body .topbar.saas442-topbar .saas442-actions .role-preview-trigger{display:none!important}
 body.app-body .topbar.saas442-topbar .saas442-actions .notification-center-wrap,
 body.app-body .topbar.saas442-topbar .saas442-actions .quickadd-wrap{position:relative!important;inset:auto!important;flex:none!important;margin:0!important}
}
/* Theme-specific legacy header grid had higher selector weight than generic shell. */
html[data-theme] body.app-body header.topbar.saas442-topbar,
html:not([data-theme]) body.app-body header.topbar.saas442-topbar{display:flex!important;grid-template-columns:none!important;justify-content:space-between!important}
@media(max-width:820px){
 /* Reserve both safety controls at narrow widths; flex must not collapse create. */
 html[data-theme] body.app-body .topbar.saas442-topbar .saas442-left,
 html:not([data-theme]) body.app-body .topbar.saas442-topbar .saas442-left{flex:1 1 0%!important;width:auto!important;min-width:0!important}
 html[data-theme] body.app-body .topbar.saas442-topbar .top-actions.saas442-actions,
 html:not([data-theme]) body.app-body .topbar.saas442-topbar .top-actions.saas442-actions{flex:0 0 84px!important;width:84px!important;min-width:84px!important;max-width:84px!important;justify-content:space-between!important}
 html[data-theme] body.app-body .topbar.saas442-topbar .quickadd-wrap,
 html:not([data-theme]) body.app-body .topbar.saas442-topbar .quickadd-wrap{width:40px!important;min-width:40px!important;flex:0 0 40px!important}
 html[data-theme] body.app-body .topbar.saas442-topbar .saas442-create,
 html:not([data-theme]) body.app-body .topbar.saas442-topbar .saas442-create{width:40px!important;min-width:40px!important;min-height:42px!important}
}
/* A <=360px legacy rule hid the primary create action; retain it now that
   the new header reserves space and permissions still control its presence. */
@media(max-width:820px){
 html[data-theme] body.app-body .topbar.saas442-topbar .top-actions.saas442-actions .quickadd-wrap,
 html:not([data-theme]) body.app-body .topbar.saas442-topbar .top-actions.saas442-actions .quickadd-wrap{display:block!important}
}
/* Status indicators across different clinical apps follow the same palette. */
html[data-theme] body.app-body .content :is(.badge.red,.badge.danger,.badge.risk,.status-badge.danger,.pill.danger,.pill.red){background:var(--ux-danger-bg)!important;color:var(--ux-danger)!important;-webkit-text-fill-color:var(--ux-danger)!important;border-color:var(--ux-danger-line)!important}
html[data-theme] body.app-body .content :is(.badge.amber,.badge.warning,.status-badge.warning,.pill.amber){background:var(--ux-warning-bg)!important;color:var(--ux-warning)!important;-webkit-text-fill-color:var(--ux-warning)!important;border-color:var(--ux-warning-line)!important}
html[data-theme] body.app-body .content :is(.quality1g-score.risk,.safety-cell.alert){background:var(--ux-danger-bg)!important;color:var(--ux-danger)!important;border-color:var(--ux-danger-line)!important}
html[data-theme] body.app-body .content .kpi.red strong{color:var(--ux-danger)!important;-webkit-text-fill-color:var(--ux-danger)!important}
html[data-theme] body.app-body .content .kpi.amber strong{color:var(--ux-warning)!important;-webkit-text-fill-color:var(--ux-warning)!important}
html[data-theme] body.app-body .topbar.saas442-topbar .saas442-actions .notification-center-wrap>.icon-btn{background:transparent!important;border-color:transparent!important;color:var(--ux-text)!important}
