body.passlord-shell-active #page-content {
    margin-top: 0;
    padding: 0 0 clamp(48px, 5vw, 72px);
}

body.passlord-shell-active #container {
    padding-top: var(--forums-topbar-offset, 160px);
}

body.passlord-shell-active .forums-topbar-shell {
    padding-top: 18px;
}

body.passlord-shell-active .forums-topbar {
    border: 1px solid var(--ph-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--ph-bg) 85%, rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-shell-active .forums-nav-toggle,
body.passlord-shell-active .forums-icon-button,
body.passlord-shell-active .forums-drawer__close,
body.passlord-shell-active .forums-switcher summary,
body.passlord-shell-active .forums-topbar__link,
body.passlord-shell-active .passlord-footer__socials a,
body.passlord-shell-active .passlord-footer__bottom-links a {
    border-color: var(--ph-line);
    box-shadow: none;
}

body.passlord-shell-active .forums-nav-toggle,
body.passlord-shell-active .forums-icon-button,
body.passlord-shell-active .forums-drawer__close {
    background: color-mix(in srgb, var(--ph-bg) 80%, rgba(255, 255, 255, 0.7));
    color: var(--ph-ink);
}

body.passlord-shell-active .forums-brand__mark,
body.passlord-shell-active .passlord-footer__logo-mark {
    background: var(--ph-brand);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 8px 18px rgba(10, 37, 64, 0.18);
    border-radius: 10px;
}

body.passlord-shell-active .forums-brand__mark img,
body.passlord-shell-active .passlord-footer__logo-mark img {
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}

body.passlord-shell-active .forums-brand__title,
body.passlord-shell-active .passlord-footer__logo-copy strong {
    font-family: var(--ph-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.passlord-shell-active .forums-brand__meta,
body.passlord-shell-active .passlord-footer__logo-copy span,
body.passlord-shell-active .passlord-footer__lead,
body.passlord-shell-active .passlord-footer__bottom p {
    color: var(--ph-ink-3);
}

body.passlord-shell-active .forums-search-form {
    min-height: 50px;
    background: color-mix(in srgb, var(--ph-bg-2) 92%, rgba(255, 255, 255, 0.7));
    border-color: var(--ph-line);
}

body.passlord-shell-active .forums-search-form__icon,
body.passlord-shell-active .forums-search-form input::placeholder {
    color: var(--ph-ink-3);
}

body.passlord-shell-active .forums-search-form input,
body.passlord-shell-active .forums-topbar__link,
body.passlord-shell-active .forums-switcher summary,
body.passlord-shell-active .forums-switcher__panel a,
body.passlord-shell-active .passlord-footer__logo,
body.passlord-shell-active .passlord-footer__column a {
    color: var(--ph-ink) !important;
}

body.passlord-shell-active .forums-switcher summary,
body.passlord-shell-active .forums-topbar__link {
    background: color-mix(in srgb, var(--ph-bg) 76%, rgba(255, 255, 255, 0.8));
    font-weight: 700;
}

body.passlord-shell-active .forums-topbar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ph-line);
    border-radius: 999px;
    font-family: var(--ph-font-ui);
    font-size: 14.5px;
    font-weight: 600;
}

body.passlord-shell-active .forums-topbar__link--accent {
    background: var(--ph-accent) !important;
    color: var(--ph-ink) !important;
    border-color: var(--ph-ink);
    box-shadow: 0 3px 0 var(--ph-ink);
    transition: transform 0.12s ease, box-shadow 0.16s ease;
}

body.passlord-shell-active .forums-topbar__link--accent:hover,
body.passlord-shell-active .forums-topbar__link--accent:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--ph-ink);
}

body.passlord-shell-active .forums-topbar__link--accent svg {
    width: 14px;
    height: 14px;
    stroke: var(--ph-ink);
    stroke-width: 2.4;
    fill: none;
}

html[data-mode="dark"] body.passlord-shell-active .forums-topbar__link--accent {
    background: var(--ph-accent) !important;
    color: #04101a !important;
    border-color: #000000;
    box-shadow: 0 3px 0 #000000;
}

body.passlord-shell-active .forums-switcher__panel,
body.passlord-shell-active .forums-drawer,
body.passlord-shell-active .passlord-footer__top,
body.passlord-shell-active .passlord-footer__bottom {
    background: color-mix(in srgb, var(--ph-bg-2) 92%, rgba(255, 255, 255, 0.82));
    border-color: var(--ph-line);
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-shell-active .forums-switcher__panel a:hover,
body.passlord-shell-active .forums-switcher__panel a:focus,
body.passlord-shell-active .forums-drawer__section a:hover,
body.passlord-shell-active .forums-drawer__section a:focus,
body.passlord-shell-active .passlord-footer__socials a:hover,
body.passlord-shell-active .passlord-footer__bottom-links a:hover,
body.passlord-shell-active .passlord-footer__column a:hover {
    color: var(--ph-brand) !important;
}

body.passlord-shell-active .forums-user-chip,
body.passlord-shell-active .forums-user-menu__panel,
body.passlord-shell-active .forums-drawer__section a {
    border-color: var(--ph-line);
}

body.passlord-shell-active .passlord-footer__title {
    color: var(--ph-ink-3);
    font-family: var(--ph-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.passlord-shell-active .passlord-footer__bottom {
    color: var(--ph-ink-3);
    font-size: 13px;
}

body.passlord-shell-active .passlord-footer__bottom-links a,
body.passlord-shell-active .passlord-footer__bottom p {
    font-family: var(--ph-font-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

html[data-mode="dark"] body.passlord-shell-active .forums-topbar,
html[data-mode="dark"] body.passlord-shell-active .forums-switcher__panel,
html[data-mode="dark"] body.passlord-shell-active .forums-drawer,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__top,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__bottom {
    background: rgba(10, 24, 40, 0.94);
}

html[data-mode="dark"] body.passlord-shell-active .forums-nav-toggle,
html[data-mode="dark"] body.passlord-shell-active .forums-icon-button,
html[data-mode="dark"] body.passlord-shell-active .forums-drawer__close,
html[data-mode="dark"] body.passlord-shell-active .forums-switcher summary,
html[data-mode="dark"] body.passlord-shell-active .forums-topbar__link,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__socials a,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__bottom-links a {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ph-ink) !important;
}

html[data-mode="dark"] body.passlord-shell-active .forums-brand__meta,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__logo-copy span,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__lead,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__bottom p,
html[data-mode="dark"] body.passlord-shell-active .passlord-footer__title {
    color: var(--ph-ink-3);
}

@media (max-width: 991px) {
    body.passlord-shell-active .forums-topbar {
        border-radius: 28px;
    }
}

@media (max-width: 767px) {
    body.passlord-shell-active .forums-topbar-shell {
        padding-top: 12px;
    }
}
