app-two-factor-setup ul.list-group.list-group-2fa li.list-group-item:nth-child(4),app-login form div+div+div+div+hr,app-login form div+div+div+div+hr+p,bit-nav-logo bit-nav-item .bwi-shield,app-login div.tw-flex:nth-child(4),bit-dialog div.tw-ml-4:has(bit-form-control input),bit-dialog div.tw-col-span-4:has(input[formcontrolname*=access],input[formcontrolname*=manage]),app-security>app-two-factor-setup>form,app-org-reports-home>app-report-list>div.tw-inline-grid>div:nth-child(6),app-org-account form.ng-untouched:nth-child(6),app-organization-plans>form>bit-section:nth-child(2),app-org-account form div bit-form-field.tw-block:nth-child(3),#ownedBusiness,label[for^=ownedBusiness],app-org-info>form:nth-child(1)>div:nth-child(3),bit-nav-item[route="settings/two-factor"],a[href$="/settings/two-factor"],a[routerlink="/sso"],a[href$="/settings/sponsored-families"],bit-nav-item[route="settings/subscription"],.vw-hide,head{display:none !important}bit-nav-logo bit-nav-item a:before{content:"";background-image:url("../images/icon-white.svg");background-repeat:no-repeat;background-position:center center;height:32px;display:block}
/* ---- HelaliVAULT branding -------------------------------------------------
 * The web vault's logo is an inline <svg> compiled into app/main.*.js and
 * rendered by an Angular <bit-svg> component -- there is no <img> element, so
 * replacing files under /images/ cannot reach it. Hence CSS, which is the same
 * mechanism Vaultwarden already uses above for bit-nav-logo.
 *
 * Everything above this comment is Vaultwarden's own stylesheet (embedded in
 * its binary, not a file in the image) copied verbatim. The gate asserts it is
 * still a prefix of what Vaultwarden serves, so an upstream change is noticed
 * rather than silently frozen.
 *
 * Two separate places show a logo and they need separate rules:
 *   bit-landing-header -- the pre-login pages
 *   bit-nav-logo       -- the side nav, i.e. everything after you log in
 */
bit-landing-header bit-svg > svg,
bit-nav-logo bit-svg > svg {
    display: none !important;
}

bit-landing-header bit-svg {
    display: block !important;
    width: 200px;
    height: 41px;
    background-image: url("../images/logo-white.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* the vault ships dark by default; follow the theme class on <html> */
html.theme_light bit-landing-header bit-svg {
    background-image: url("../images/logo.svg");
}

/* ---- side nav (logged in) --------------------------------------------------
 * bit-nav-logo renders <div><a><bit-svg><svg>. The <a> carries
 * [&_svg]:tw-absolute, so the svg is taken out of flow and bit-svg collapses to
 * zero height -- a background-image on bit-svg alone paints nothing, which is
 * why hiding the svg without these rules left the slot blank. Both rules
 * therefore give bit-svg an explicit box of its own.
 *
 * The open/closed state is only exposed through the ngClass on the wrapping
 * div: sideNavService.open() adds tw-top-0. Open shows the wordmark, collapsed
 * shows the square mark, matching what upstream swaps via openIcon/closedIcon.
 *
 * No theme_light variant here on purpose: the nav rail is dark in BOTH themes
 * (background-alt3 is rgb(29,41,61) dark / rgb(33,37,41) light), so the light
 * wordmark is always the correct one.
 */
bit-nav-logo div.tw-top-0 bit-svg {
    position: absolute;
    left: .6875rem;
    top: .6875rem;
    width: 200px;
    height: 41px;
    background-image: url("../images/logo-white.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

/* collapsed rail: centre the mark, stay independent of the rail's width */
bit-nav-logo div:not(.tw-top-0) bit-svg {
    position: absolute;
    inset: 0;
    background-image: url("../images/icon-white.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 32px;
}
