html[data-custom-color] :is(.cx-brand,.cx-content>h1,.technician-header h1,#biz-header-company,.settings-header h1,.employee-page-heading h1,.hub-page-heading h1,#business-dashboard h2){color:var(--dashboard-ink)!important}
html[data-custom-color] :is(.cx-header,.technician-header,.settings-header,.biz-header){border-bottom-color:var(--dashboard-ink)}
html[data-nav-hidden] #controls{display:none!important}
.restore-dashboard-nav{flex:0 0 auto;min-width:36px;min-height:36px;padding:4px}
html[data-nav-size=smaller]{--nav-factor:.94}
html[data-nav-size=extra-small]{--nav-factor:.88}
@media (width > 767px){
 html:is([data-nav-size=smaller],[data-nav-size=extra-small]) :is(.biz-tiles,.cx-nav,#controls .tech-navigation){zoom:var(--nav-factor);margin-inline:auto!important;box-sizing:border-box}
}
@media (max-width:767px){
 html:is([data-nav-size=smaller],[data-nav-size=extra-small]){--dashboard-nav-height:calc(76px * var(--nav-factor))}
}

html[data-custom-color] :is(.screen.active h1,.technician-header #company,.cx-header .cx-brand,.hub-page-heading h1,.settings-account h1,main>h1){color:var(--dashboard-ink)!important}

/* Phone dashboard navigation occupies its own full-width bottom row. */
@media (max-width:600px){
 html:has(#business-dashboard.active [data-biz-view="home"]:not([hidden])),
 html:has(body.personal-portal:not(.pm-portal) #customer-home.active){
  --phone-nav-standard:min(76px,calc((100vw - 18px) / 4));
  --phone-nav-side:var(--phone-nav-standard);
 }
 html[data-nav-size="smaller"]{--phone-nav-scale:.92}
 html[data-nav-size="extra-small"]{--phone-nav-scale:.80}
 html body:not(.teckrom-desktop) #business-dashboard.active [data-biz-view="home"]:not([hidden]){
  padding-bottom:calc(2 * var(--phone-nav-side) * var(--phone-nav-scale,1) + 16px + env(safe-area-inset-bottom,0px))!important;
 }
 html body:not(.teckrom-desktop) #business-dashboard.active [data-biz-view="home"]>.biz-tiles,
 html body.personal-portal:not(.pm-portal):has(#customer-home.active)>#personal-navigation:not([hidden]){
  --tile:calc(var(--phone-nav-side) * var(--phone-nav-scale,1));
  position:fixed!important;inset:auto 0 0!important;z-index:30;
  width:auto!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;
  display:grid!important;grid-template-columns:repeat(4,var(--tile))!important;
  grid-template-rows:repeat(2,var(--tile))!important;grid-auto-rows:var(--tile)!important;
  justify-content:space-evenly!important;align-content:start!important;
  height:auto!important;gap:6px 0!important;padding:4px 0 calc(4px + env(safe-area-inset-bottom,0px))!important;
  --dashboard-nav-height:var(--tile);
 }
 /* The Personal footer has an open bottom edge and outlined tiles. */
 @layer hub-action-colors {
  html:root body #business-dashboard.active [data-biz-view="home"]:not([hidden])>.biz-tiles {
   border-bottom-width:0!important;
  }
  html:root body #business-dashboard.active [data-biz-view="home"]:not([hidden])>.biz-tiles>button,
  html:root body #business-dashboard.active [data-biz-view="home"]:not([hidden])>.biz-tiles>#biz-account-menu>summary {
   border:1px solid #dce2eb!important;
   border-radius:8px!important;
   box-shadow:0 2px 6px rgba(20,35,60,.08)!important;
  }
  html:root body #business-dashboard.active [data-biz-view="home"]:not([hidden])>.biz-tiles>:is(button,details)>svg,
  html:root body #business-dashboard.active [data-biz-view="home"]:not([hidden])>.biz-tiles>#biz-account-menu>summary>svg {
   width:20px!important;height:20px!important;
  }
  html:root body #business-dashboard.active [data-biz-view="home"]:not([hidden])>.biz-tiles>#biz-account-menu>summary>span {
   font-size:12px!important;
  }
 }
 html body.business-design-pilot #business-dashboard.active [data-biz-view="home"]>.biz-tiles>#biz-account-menu>summary{
  min-height:var(--tile)!important;
 }
 html body #business-dashboard.active .biz-tiles > button > .whole-button-label,
 html body.personal-portal:not(.pm-portal):has(#customer-home.active) #personal-navigation > button > .whole-button-label{
  position:relative!important;left:50%!important;align-self:flex-start!important;justify-self:start!important;
  margin-inline:0!important;width:var(--label-width)!important;
  transform:translateX(-50%) scaleX(var(--label-scale))!important;
 }
}

/* Job action rows follow the navigation preset without scaling their text.
   Hidden is a technician navigation choice; it keeps the saved size for jobs. */
@layer hub-action-colors {
 html[data-nav-size] body dialog:is(.business-job-dialog,.property-job-dialog,.technician-job-dialog):not(.company-job-editor)
  :is([data-work-footer],.job-final-actions,.customer-job-actions,.job-note-actions,.job-photo-actions) > :is(button,a.button) {
  height:auto!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  min-height:calc(76px * var(--nav-factor,1))!important;
 }
 @media (max-width:600px) {
  html[data-nav-size] body dialog:is(.business-job-dialog,.property-job-dialog):not(.technician-job-dialog,.company-job-editor)
   :is([data-work-footer],.job-final-actions,.customer-job-actions,.job-note-actions,.job-photo-actions) > :is(button,a.button) {
   min-height:calc(76px * var(--phone-nav-scale,1))!important;
  }
  html[data-nav-size=extra-small] body dialog.business-job-dialog:not(.technician-job-dialog,.company-job-editor)
   [data-work-footer]>button {
   padding-block:1px!important;
  }
 }
}

@media(max-width:600px){
 html:root body :is(#controls#controls .tech-navigation,.pm-portal #personal-navigation),html:root body.pm-portal #personal-navigation{
  --dashboard-nav-height:calc(min(76px,(100vw - 32px)/4) * var(--phone-nav-scale,1));
  grid-template-columns:repeat(var(--tech-buttons,4),minmax(0,var(--dashboard-nav-height)))!important;
  justify-content:center!important;
  gap:8px!important;
 }
}
