/* Final cascade layer for the active six-template workspace design system.
   This file loads after legacy feature stylesheets so template tokens always win. */
html[data-a8ah-template] body .a8ah-portal-app,
html[data-a8ah-template] body .a8ah-client-workspace-app,
html[data-a8ah-template] body .a8ah-manager-workspace-app{
  --a8ah-accent:var(--a8ah-template-accent)!important;
  --a8ah-accent-strong:var(--a8ah-template-accent-strong)!important;
  --a8ah-line:var(--a8ah-template-border)!important;
  accent-color:var(--a8ah-template-accent)!important;
}
html[data-a8ah-template] body .a8ah-portal-app :is(input[type=checkbox],input[type=radio],progress){accent-color:var(--a8ah-template-accent)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-theme-switch input:checked+.a8ah-theme-switch-track{background:var(--a8ah-template-accent)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-theme-switch input:focus-visible+.a8ah-theme-switch-track{outline:2px solid var(--a8ah-template-accent)!important;outline-offset:3px;box-shadow:0 0 0 3px color-mix(in srgb,var(--a8ah-template-accent) 20%,transparent)!important}
html[data-a8ah-template] body .a8ah-portal-app :is(button,a,input,select,textarea,summary):focus-visible{outline-color:var(--a8ah-template-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--a8ah-template-accent) 20%,transparent)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-bell>summary{border-color:var(--a8ah-template-border)!important;background:var(--a8ah-template-surface)!important;color:var(--a8ah-template-ink)!important;box-shadow:none!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-bell>summary:focus-visible{border-color:var(--a8ah-template-accent)!important;outline:2px solid var(--a8ah-template-accent)!important;outline-offset:2px!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-count,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-dot{background:var(--a8ah-template-accent)!important;border-color:var(--a8ah-template-accent)!important;color:#fff!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-welcome{color:#fff!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-welcome :is(h1,h2,h3,p,.a8ah-portal-eyebrow){color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-welcome .a8ah-welcome-symbol{color:rgba(255,255,255,.24)!important;-webkit-text-fill-color:rgba(255,255,255,.24)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-footer{border-top-color:var(--a8ah-template-border)!important;background:var(--a8ah-template-bg)!important;color:var(--a8ah-template-muted)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-footer :is(a,button){color:var(--a8ah-template-muted)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-footer a:hover{color:var(--a8ah-template-accent)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock{background:var(--a8ah-template-sidebar)!important;border-color:var(--a8ah-template-sidebar-border)!important;color:var(--a8ah-template-sidebar-text)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock>a,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock>button{background:transparent!important;color:var(--a8ah-template-sidebar-text)!important;border-color:transparent!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock>a:is(:hover,:focus-visible),
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock>button:is(:hover,:focus-visible),
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock>[aria-current=page]{background:var(--a8ah-template-sidebar-active)!important;color:var(--a8ah-template-sidebar-active-text)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-workspace-mobile-dock :is(span,svg){color:inherit!important;stroke:currentColor!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-nav-link.is-active :is(svg,span){color:var(--a8ah-template-sidebar-active-text)!important;stroke:currentColor!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-nav-link.is-active{background:var(--a8ah-template-sidebar-active)!important;color:var(--a8ah-template-sidebar-active-text)!important;box-shadow:inset 3px 0 var(--a8ah-template-accent)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-header-actions :is(button,summary){border-color:var(--a8ah-template-border)!important;color:var(--a8ah-template-ink)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(.a8ah-button-primary,button.a8ah-button-primary,input.a8ah-button-primary){background:var(--a8ah-template-accent)!important;border-color:var(--a8ah-template-accent)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(.a8ah-button-secondary,.a8ah-button-quiet){background:var(--a8ah-template-soft)!important;border-color:var(--a8ah-template-border)!important;color:var(--a8ah-template-accent-strong)!important;-webkit-text-fill-color:var(--a8ah-template-accent-strong)!important}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(.a8ah-settings-card,.a8ah-profile-card,.a8ah-theme-preference-card,.a8ah-form-panel){border-color:var(--a8ah-template-border)!important}
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-portal-app .a8ah-portal-footer{background:var(--a8ah-template-bg)!important;color:var(--a8ah-template-muted)!important}
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-portal-app .a8ah-portal-footer :is(a,button){color:var(--a8ah-template-muted)!important}
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(.a8ah-settings-card,.a8ah-profile-card,.a8ah-theme-preference-card,.a8ah-form-panel){background:var(--a8ah-template-surface)!important;border-color:var(--a8ah-template-border)!important;color:var(--a8ah-template-ink)!important}
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--a8ah-template-bg)!important;border-color:var(--a8ah-template-border)!important;color:var(--a8ah-template-ink)!important;color-scheme:dark}
@media(max-width:650px){html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content{font-size:12px}html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(p,small,.a8ah-muted){font-size:10px;line-height:1.5}html[data-a8ah-template] body .a8ah-portal-app .a8ah-portal-content :is(button,a.a8ah-button,input[type=submit]){font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:normal;word-break:normal}}


/* Latest template-state consistency: notification and account controls inherit
   the active workspace palette in light and dark mode, never legacy lime. */
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-bell>summary,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-bell>summary:hover,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-bell[open]>summary,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-trigger,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-trigger:hover,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-menu.is-open .a8ah-profile-trigger {
  border-color:var(--a8ah-template-border)!important;
  background:var(--a8ah-template-surface)!important;
  color:var(--a8ah-template-ink)!important;
  box-shadow:none!important;
  -webkit-text-fill-color:var(--a8ah-template-ink)!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-count,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-dot,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-item.is-unread .a8ah-notification-dot {
  background:var(--a8ah-template-accent)!important;
  border-color:var(--a8ah-template-accent)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-view-all,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-view-all:hover,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-view-all:focus-visible {
  color:var(--a8ah-template-accent-strong)!important;
  -webkit-text-fill-color:var(--a8ah-template-accent-strong)!important;
  border-color:var(--a8ah-template-border)!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown {
  background:var(--a8ah-template-surface)!important;
  border-color:var(--a8ah-template-border)!important;
  color:var(--a8ah-template-ink)!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-item:hover,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown>a:hover,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown>a:focus-visible,
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown>a[aria-current="page"] {
  background:var(--a8ah-template-soft)!important;
  color:var(--a8ah-template-accent-strong)!important;
  -webkit-text-fill-color:var(--a8ah-template-accent-strong)!important;
  border-color:var(--a8ah-template-border)!important;
}
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown>a :is(svg,span,i),
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown>a:hover :is(svg,span,i) {
  color:inherit!important;stroke:currentColor!important;
}
html[data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-trigger:focus-visible,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-bell>summary:focus-visible {
  outline:2px solid var(--a8ah-template-accent)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--a8ah-template-accent) 18%,transparent)!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-head,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-head strong,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-copy strong,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-empty strong {
  color:var(--a8ah-template-ink)!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-copy :is(small,time),
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-head>span,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-empty small {
  color:var(--a8ah-template-muted)!important;
}
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-item,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-head,
html[data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-item:hover {
  border-color:var(--a8ah-template-border)!important;
}
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover,
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown {
  background:var(--a8ah-template-surface)!important;color:var(--a8ah-template-ink)!important;
  border-color:var(--a8ah-template-border)!important;
}
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-portal-app .a8ah-notification-popover-item:hover,
html[data-a8ah-theme="dark"][data-a8ah-template] body .a8ah-client-workspace-app .a8ah-profile-dropdown>a:hover {
  background:var(--a8ah-template-soft)!important;color:var(--a8ah-template-accent-strong)!important;
}

/* 0.28.86 Phase 1 final cascade: the mobile filter sheet and grid must win
   over legacy flex/masonry declarations in workspace-templates.css. */
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-filters,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-filters {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  position:sticky!important;
  top:var(--a8ah-client-sticky-offset,72px)!important;
  z-index:35!important;
  overflow:visible!important;
  white-space:normal!important;
  box-sizing:border-box!important;
  padding:8px!important;
  margin:0 0 12px!important;
  background:var(--a8ah-template-surface,#fff)!important;
  border:1px solid var(--a8ah-template-border,#dce7de)!important;
  border-radius:13px!important;
  box-shadow:0 6px 18px rgba(10,28,15,.07)!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-search,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-search {
  display:block!important;min-width:0!important;width:100%!important;flex:none!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-search input,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-search input {
  display:block!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:42px!important;min-height:42px!important;box-sizing:border-box!important;
  font-size:13px!important;padding:8px 12px!important;flex:none!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-filter-trigger,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-service-filter-trigger {
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;white-space:nowrap!important;min-width:82px!important;min-height:42px!important;
  padding:8px 13px!important;font-size:12px!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-grid,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-directory-grid {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  column-count:initial!important;column-gap:0!important;row-gap:16px!important;align-items:start!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-grid>.a8ah-client-service-card,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-directory-grid>.a8ah-website-offer-card {
  display:flex!important;flex-direction:column!important;vertical-align:initial!important;
  width:100%!important;max-width:none!important;margin:0!important;break-inside:initial!important;
  min-width:0!important;overflow:hidden!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-client-service-card .a8ah-client-service-media,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-media {
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:16/9!important;overflow:hidden!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-client-service-media .a8ah-service-media-trigger,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-media .a8ah-service-media-trigger {
  display:block!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:16/9!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-client-service-media :is(img,video),
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-media :is(img,video) {
  display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-client-service-card-body>p,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-card p {
  display:block!important;max-height:none!important;overflow:visible!important;white-space:normal!important;
  -webkit-line-clamp:unset!important;line-height:1.55!important;font-size:13px!important;
}
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-card-actions .a8ah-button,
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-actions .a8ah-button {
  min-height:34px!important;padding:6px 9px!important;font-size:11px!important;line-height:1.2!important;
}
html[data-a8ah-template] body .a8ah-service-filter-dialog,
html[data-a8ah-template] body .a8ah-website-offer-filter-dialog {
  z-index:100520!important;box-sizing:border-box!important;
}
html[data-a8ah-template] body .a8ah-service-filter-sheet,
html[data-a8ah-template] body .a8ah-website-offer-filter-dialog .a8ah-service-filter-sheet {
  display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;
  min-height:0!important;max-height:min(86dvh,760px)!important;
}
html[data-a8ah-template] body .a8ah-service-filter-fields,
html[data-a8ah-template] body .a8ah-website-offer-filter-dialog .a8ah-service-filter-fields {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important;overflow:auto!important;
}
html[data-a8ah-template] body .a8ah-service-filter-dialog .a8ah-service-filter-sheet>header h3,
html[data-a8ah-template] body .a8ah-website-offer-filter-dialog .a8ah-service-filter-sheet>header h3 {
  font-size:16px!important;line-height:1.25!important;margin:3px 0 0!important;
}
/* The gallery overlay is the media viewer (not the separate View Service sheet).
   Keep the actual image/video large, centred and fully readable on phones. */
html[data-a8ah-template] body .a8ah-service-gallery[hidden]{display:none!important}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) {
  display:grid!important;position:fixed!important;inset:0!important;z-index:100600!important;
  width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;place-items:center!important;
  background:rgba(3,10,5,.96)!important;overflow:hidden!important;
}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-panel {
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto auto!important;gap:10px!important;
  width:min(96vw,1280px)!important;height:min(96dvh,1000px)!important;max-width:none!important;max-height:none!important;
  min-width:0!important;min-height:0!important;margin:auto!important;padding:16px!important;box-sizing:border-box!important;
  overflow:hidden!important;border-radius:18px!important;background:#111a14!important;color:#f4f8f2!important;
}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-stage {
  display:grid!important;place-items:center!important;position:relative!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:180px!important;max-height:none!important;aspect-ratio:auto!important;
  overflow:hidden!important;background:#050806!important;border-radius:12px!important;
}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-stage :is(img,video) {
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;margin:auto!important;
}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-head strong {font-size:16px!important;line-height:1.25!important;color:#f4f8f2!important}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-head small,
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-description,
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-credit-row {color:#d9e4d7!important;line-height:1.5!important}
@media(max-width:760px) {
  html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-filters,
  html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-filters {
    top:var(--a8ah-mobile-sticky-toolbar-top,62px)!important;grid-template-columns:minmax(0,1fr) auto!important;
    gap:6px!important;padding:6px!important;margin-bottom:9px!important;
  }
  html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-grid,
  html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-directory-grid {
    grid-template-columns:repeat(1,minmax(0,1fr))!important;row-gap:12px!important;
  }
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-1 .a8ah-service-directory-grid {grid-template-columns:repeat(1,minmax(0,1fr))!important}
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-2 .a8ah-service-directory-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-2 .a8ah-client-service-card-body {padding:10px!important;gap:7px!important}
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-2 .a8ah-client-service-card-body h4 {font-size:13px!important;line-height:1.3!important}
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-2 .a8ah-client-service-card-body>p {font-size:11px!important;line-height:1.45!important}
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-2 .a8ah-service-card-actions {gap:5px!important}
  html[data-a8ah-template] body .a8ah-client-workspace-app.a8ah-service-mobile-cols-2 .a8ah-service-card-actions .a8ah-button {font-size:10px!important;min-height:31px!important;padding:5px!important}
  html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-directory-grid {grid-template-columns:repeat(1,minmax(0,1fr))!important}
  html[data-a8ah-template] body .a8ah-service-filter-dialog,
  html[data-a8ah-template] body .a8ah-website-offer-filter-dialog {
    position:fixed!important;inset:auto 0 0!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;
    width:100vw!important;max-width:100vw!important;max-height:86dvh!important;margin:0!important;
    border-radius:19px 19px 0 0!important;border-bottom:0!important;
  }
  html[data-a8ah-template] body .a8ah-service-filter-fields,
  html[data-a8ah-template] body .a8ah-website-offer-filter-dialog .a8ah-service-filter-fields {grid-template-columns:1fr!important;padding:13px 15px!important;gap:10px!important}
  html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) {place-items:stretch!important}
  html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-panel {
    width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;
    padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important;
    grid-template-rows:auto auto minmax(0,1fr) auto auto!important;gap:8px!important;
  }
  html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-head strong {font-size:14px!important}
  html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-description {font-size:12px!important}
  html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-thumbs {max-height:68px!important;overflow-x:auto!important}
}
/* Keep the native filter visibility state authoritative even while cards use flex. */
html[data-a8ah-template] body .a8ah-client-services .a8ah-service-directory-grid>.a8ah-client-service-card[hidden],
html[data-a8ah-template] body .a8ah-website-builder-stage .a8ah-website-offer-directory-grid>.a8ah-website-offer-card[hidden] {display:none!important}
/* Keep the compact directory sheet working in embedded/preview directory contexts too. */
html[data-a8ah-template] body .a8ah-service-directory .a8ah-service-directory-filters {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;position:sticky!important;overflow:visible!important;white-space:normal!important;}
html[data-a8ah-template] body .a8ah-service-directory .a8ah-service-directory-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;column-count:initial!important;}
html[data-a8ah-template] body .a8ah-service-directory .a8ah-service-directory-grid>.a8ah-client-service-card {display:flex!important;}
html[data-a8ah-template] body .a8ah-service-directory .a8ah-service-directory-grid>.a8ah-client-service-card[hidden] {display:none!important}
@media(max-width:760px) {
 html[data-a8ah-template] body .a8ah-service-directory .a8ah-service-directory-grid {grid-template-columns:repeat(1,minmax(0,1fr))!important}
 html[data-a8ah-template] body .a8ah-service-directory .a8ah-service-filter-fields {grid-template-columns:1fr!important}
}
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-panel {place-items:stretch!important}
/* Keep the hidden description slot in the grid so the media stage stays in the flexible row. */
html[data-a8ah-template] body .a8ah-service-gallery:not([hidden]) .a8ah-service-gallery-panel .a8ah-service-gallery-description[hidden] {
 display:block!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;
 margin:0!important;padding:0!important;border:0!important;font-size:0!important;line-height:0!important;overflow:hidden!important;
}


/* 0.28.87 — Make the website-service preview media fill its complete frame.
 * The <video> poster can otherwise retain its browser intrinsic height (150px)
 * while the 16:9 media wrapper reserves a much taller area. Stretch the trigger
 * and its image/video absolutely inside the ratio-owned frame so no blank strip
 * remains beneath the poster.
 */
html[data-a8ah-template] body .a8ah-website-builder-stage[data-a8ah-website-stage="offers"] .a8ah-website-offer-media {
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  line-height:0!important;
}
html[data-a8ah-template] body .a8ah-website-builder-stage[data-a8ah-website-stage="offers"] .a8ah-website-offer-media>.a8ah-service-media-trigger {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  aspect-ratio:auto!important;
  box-sizing:border-box!important;
}
html[data-a8ah-template] body .a8ah-website-builder-stage[data-a8ah-website-stage="offers"] .a8ah-website-offer-media>.a8ah-service-media-trigger>:is(img,video) {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
}


/* 0.28.88 Phase 2 — the website request filter follows the live header height. */
html[data-a8ah-template] body .a8ah-website-builder-sheet .a8ah-website-builder-stage .a8ah-website-offer-filters {
  top:var(--a8ah-website-filter-sticky-top,0px)!important;
  z-index:36!important;
}
html[data-a8ah-template] body .a8ah-website-builder-sheet.is-header-collapsed .a8ah-website-builder-header>div {
  display:none!important;
}
html[data-a8ah-template] body .a8ah-website-builder-sheet.is-header-collapsed .a8ah-website-builder-header {
  min-height:48px!important;padding:5px 10px!important;align-items:center!important;gap:0!important;
}
@media(max-width:760px) {
  html[data-a8ah-template] body .a8ah-website-builder-sheet .a8ah-website-builder-stage .a8ah-website-offer-filters {
    top:var(--a8ah-website-filter-sticky-top,0px)!important;
  }
}

/* 0.28.88 Phase 2: pin the compact bar to its actual reserved height so the
   sticky search/filter row follows it without an extra blank strip. */
html[data-a8ah-template] body .a8ah-website-builder-sheet.is-header-collapsed .a8ah-website-builder-header {
  height:52px!important;min-height:52px!important;max-height:52px!important;box-sizing:border-box!important;overflow:hidden!important;
}
@media(max-width:760px){
  html[data-a8ah-template] body .a8ah-website-builder-sheet.is-header-collapsed .a8ah-website-builder-header {
    height:48px!important;min-height:48px!important;max-height:48px!important;padding:5px 10px!important;
  }
}
html[data-a8ah-template] body .a8ah-website-builder-sheet,html[data-a8ah-template] body .a8ah-website-builder-sheet .a8ah-website-builder-header{overflow-anchor:none!important}
