/* Header geometry is owned here rather than by individual task pages.
   The targeted important rules supersede historical shell/image dimensions.
   Menu choices, inline marks, content branding and footer endorsements are excluded. */
.product-shell-identity__home,
:is(.discovery-nav__brand, .public-task-layout__header, .creator-workspace-header__brand,
    .reminder-settings-shell-header, .schedule-settings-shell-header,
    .mandate-nav, .intake-navigation, .completion-report-shell-brand,
    .account-topbar, .qualification-brand, .visitor-contact-topbar, .error-recovery__header, .audit-shell-masthead, .logs-masthead) {
    --hs-header-logo-size: var(--hs-brand-header-standard);
}
:is(.command-nav, .platform-admin-nav, .current-work-nav__identity, .workspace-utility-header, .complysync-workspace-header, .recursync-history-shell-header) {
    --hs-header-logo-size: var(--hs-brand-header-compact);
}
:is(.discovery-nav--cinematic-feature, .public-site-layout__header--landing,
    .public-site-layout__header--landing-preview, .hs-desktop-header, .ho-header) {
    --hs-header-logo-size: var(--hs-brand-header-masthead);
}
/* Brand containers must inherit the masthead role rather than reset to standard. */
:is(.discovery-nav--cinematic-feature, .public-site-layout__header--landing,
    .public-site-layout__header--landing-preview) .discovery-nav__brand {
    --hs-header-logo-size: var(--hs-brand-header-masthead);
}
/* A product home owns a default but inherits an explicit shell role. */
:is(.discovery-nav--cinematic-feature, .public-site-layout__header--landing,
    .public-site-layout__header--landing-preview, .command-nav, .platform-admin-nav,
    .current-work-nav__identity, .workspace-utility-header, .complysync-workspace-header, .recursync-history-shell-header) .product-shell-identity__home {
    --hs-header-logo-size: inherit;
}

:is(.product-shell-identity__home,
    .business-filings-shell-header, .hs-desktop-header, .ho-header > a)
    .feature-brand-lockup {
    --feature-brand-logo-size: var(--hs-header-logo-size, var(--hs-brand-header-standard)) !important;
    /* Historical feature variants may still override their local logo variable.
       Reserve the same header-owned width that the artwork below actually uses. */
    grid-template-columns: var(--hs-header-logo-size, var(--hs-brand-header-standard)) minmax(0, 1fr) !important;
}
:is(.product-shell-identity__home,
    .business-filings-shell-header, .hs-desktop-header, .ho-header > a)
    .feature-brand-lockup__logo {
    width: var(--hs-header-logo-size, var(--hs-brand-header-standard)) !important;
    height: var(--hs-header-logo-size, var(--hs-brand-header-standard)) !important;
    object-fit: contain !important;
    flex-shrink: 0;
}

:is(.discovery-nav__brand, .command-nav, .platform-admin-nav,
    .public-task-layout__header, .creator-workspace-header__brand,
    .reminder-settings-shell-header, .schedule-settings-shell-header,
    .mandate-nav, .intake-navigation, .hivesync-shell__mobile-bar, .completion-report-shell-brand,
    .qualification-brand, .visitor-contact-topbar, .account-topbar, .error-recovery__header, .audit-shell-masthead, .logs-masthead, .workspace-utility-header__identity)
    .hivesync-logo--mark {
    --hivesync-logo-size: var(--hs-header-logo-size, var(--hs-brand-header-standard)) !important;
    width: var(--hivesync-logo-size) !important;
    height: var(--hivesync-logo-size) !important;
    min-width: var(--hivesync-logo-size) !important;
    flex: 0 0 var(--hivesync-logo-size) !important;
    padding: 0 !important;
}
:is(.discovery-nav__brand, .command-nav, .platform-admin-nav,
    .public-task-layout__header, .creator-workspace-header__brand,
    .reminder-settings-shell-header, .schedule-settings-shell-header,
    .mandate-nav, .intake-navigation, .hivesync-shell__mobile-bar, .completion-report-shell-brand,
    .qualification-brand, .visitor-contact-topbar, .account-topbar, .error-recovery__header, .audit-shell-masthead, .logs-masthead, .workspace-utility-header__identity)
    .hivesync-logo--mark > .hivesync-logo__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
/* Header links can grow with their artwork; touch targets stay at least 44px. */
/* Assignment triage shares the canonical artwork size; reserve that full grid column
   against the older focused-workflow compact grid. Menu entries retain their own size. */
.hivesync-shell--hostsync-theme:has(.ho-assignment-list) .product-shell-identity__home > .feature-brand-lockup.feature-brand-lockup--compact {
    grid-template-columns: var(--hs-header-logo-size, var(--hs-brand-header-standard)) minmax(0, 1fr) !important;
    gap: 12px !important;
}
@media(max-width:600px) {
    .hivesync-shell--hostsync-theme:has(.ho-assignment-list) .hivesync-shell__header .product-shell-identity__apps { display:block; width:auto; }
    .hivesync-shell--hostsync-theme:has(.ho-assignment-list) .hivesync-shell__header .product-shell-identity__apps > summary { width:auto; font-size:12px; padding-inline:8px; border:1px solid var(--hostsync-border-control); border-radius:4px; gap:6px; }
    .hivesync-shell--hostsync-theme:has(.ho-assignment-list) .hivesync-shell__header .product-shell-identity__apps-label { display:inline; white-space:nowrap; }
}
.product-shell-identity__home {
    min-height: max(44px, var(--hs-header-logo-size)) !important;
    max-width: 100%;
}
:is(.discovery-nav__brand, .command-nav, .platform-admin-nav,
    .public-task-layout__header, .creator-workspace-header__brand, .audit-shell-masthead, .logs-masthead, .workspace-utility-header__identity)
    .hivesync-brand-lockup {
    min-height: max(44px, var(--hs-header-logo-size, var(--hs-brand-header-standard))) !important;
}

/* Static account and error documents render the full shared logo directly. */
:is(.account-topbar, .error-recovery__header, .hs-desktop-header) .hivesync-logo--lockup {
    height: var(--hs-header-logo-size) !important;
}
:is(.account-topbar, .error-recovery__header, .hs-desktop-header) .hivesync-logo--lockup > .hivesync-logo__image {
    width: var(--hs-header-logo-size) !important;
    height: var(--hs-header-logo-size) !important;
    object-fit: contain !important;
}
:is(.account-topbar, .qualification-brand, .visitor-contact-topbar, .error-recovery__header, .audit-shell-masthead, .logs-masthead) a {
    min-height: 44px;
}
.qualification-brand {
    min-width: 44px;
    min-height: 44px;
}
