/* New header/footer shell based on Figma exports, 2026-09-24. */
:root{
    --smysly-shell-text:#111111;
    --smysly-shell-muted:#909090;
    --smysly-shell-icon:#636873;
    --smysly-shell-mobile-bg:#f4f4f6;
    --smysly-shell-border:#d9d9d9;
    --smysly-shell-support-bg:#ede9f6;
    --smysly-shell-support:#6c4dff;
}

/* ---------- Header ---------- */
.smysly-mobile-header,
.smysly-mobile-drawer{display:none;}

.smysly-site-header{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    box-shadow:none!important;
}
.smysly-desktop-header{
    display:block;
    width:100%;
    height:64px;
    background:#fff;
    color:var(--smysly-shell-icon);
    font-family:Manrope,Arial,sans-serif;
}
.smysly-desktop-header__bar{
    width:100%;
    height:64px;
    padding:0 26px 0 32px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    white-space:nowrap;
}
.smysly-desktop-header__logo{
    width:177px;
    height:41px;
    flex:0 0 177px;
    display:block;
    line-height:0;
    text-decoration:none!important;
}
.smysly-desktop-header__logo img{
    display:block;
    width:177px;
    height:41px;
    max-width:none;
}
.smysly-desktop-nav{
    margin-left:96px;
    display:flex;
    align-items:center;
    gap:47px;
    flex:0 0 auto;
}
.smysly-desktop-nav a,
.smysly-desktop-nav__contacts,
.smysly-desktop-account a{
    color:#636873!important;
    font:400 16px/22px Manrope,Arial,sans-serif;
    text-decoration:none!important;
    letter-spacing:0;
}
.smysly-desktop-nav a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
}
.smysly-desktop-nav__contacts{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    margin:0;
    padding:0;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    cursor:pointer;
}
.smysly-desktop-nav a:hover,
.smysly-desktop-nav__contacts:hover,
.smysly-desktop-account a:hover{color:#202020!important;}
.smysly-desktop-account{
    margin-left:auto;
    min-width:69px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:16px;
    flex:0 0 auto;
}
.smysly-desktop-account__login,
.smysly-desktop-account__profile{
    min-width:0;
    display:inline-flex;
    align-items:center;
    gap:11px;
    height:44px;
}
.smysly-desktop-account__login img,
.smysly-desktop-account__profile img{
    display:block;
    width:16px;
    height:16px;
    flex:0 0 16px;
}
.smysly-desktop-account__profile span{
    display:block;
    max-width:104px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.smysly-desktop-account__notifications{
    position:relative;
    width:22px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 22px;
}
.smysly-desktop-account__notifications svg{display:block;}
.smysly-desktop-account__badge{
    position:absolute;
    top:4px;
    right:-7px;
    min-width:15px;
    height:15px;
    padding:0 4px;
    box-sizing:border-box;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    box-shadow:0 0 0 1.5px #fff;
    font:700 9px/15px Manrope,Arial,sans-serif;
    text-align:center;
}
.smysly-desktop-search{
    width:242px;
    flex:0 0 242px;
    margin-left:47px;
}

/* ---------- Search component ---------- */
.works-search-form.smysly-search-control{
    display:block!important;
    width:242px;
    max-width:100%;
    margin:0!important;
    padding:0!important;
}
.smysly-search-control__field{
    width:100%;
    height:44px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    padding:0 13px 0 10px;
    border:1px solid #eceff2;
    border-radius:11px;
    background:#fff;
    transition:border-color .15s ease,box-shadow .15s ease;
}
.smysly-search-control__field:focus-within{
    border-color:#eceff2;
    box-shadow:none;
}
.smysly-search-control .smysly-search-control__input{
    flex:1 1 auto!important;
    min-width:0!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#000!important;
    caret-color:#000;
    font:400 16px/22px Manrope,Arial,sans-serif!important;
    -webkit-appearance:none;
    appearance:none;
}
.smysly-search-control .smysly-search-control__input::-webkit-search-decoration,
.smysly-search-control .smysly-search-control__input::-webkit-search-cancel-button,
.smysly-search-control .smysly-search-control__input::-webkit-search-results-button,
.smysly-search-control .smysly-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none;}
.smysly-search-control .smysly-search-control__input::placeholder{
    color:#a4a4a4;
    opacity:1;
}
.smysly-search-control .smysly-search-control__input:focus::placeholder{color:transparent;}
.smysly-search-control__clear,
.smysly-search-control__submit{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    line-height:0!important;
    min-width:0!important;
    min-height:0!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}
.smysly-search-control__clear{
    width:18px;
    height:22px;
    margin-left:7px!important;
    color:#636873;
    cursor:pointer;
}
.smysly-search-control__clear[hidden]{display:none!important;}
.smysly-search-control__submit{
    width:22px;
    height:22px;
    margin-left:7px!important;
    color:#b7b9be;
    cursor:default;
}
.smysly-search-control__submit:disabled{opacity:1!important;}
.smysly-search-control__icon{display:block;flex:none;}
.smysly-search-control__icon--active{display:none;}
.smysly-search-control.is-filled .smysly-search-control__icon--idle{display:none;}
.smysly-search-control.is-filled .smysly-search-control__icon--active{display:block;}
.smysly-search-control.is-filled .smysly-search-control__submit{cursor:pointer;}

@media (min-width:861px) and (max-width:1250px){
    .smysly-desktop-header__bar{padding-left:20px;padding-right:20px;}
    .smysly-desktop-header__logo{width:150px;flex-basis:150px;height:auto;}
    .smysly-desktop-header__logo img{width:150px;height:auto;}
    .smysly-desktop-nav{margin-left:30px;gap:22px;}
    .smysly-desktop-nav a,
    .smysly-desktop-nav__contacts,
    .smysly-desktop-account a{font-size:14px;line-height:20px;}
    .smysly-desktop-search{width:190px;flex-basis:190px;margin-left:22px;}
    .smysly-desktop-search .works-search-form.smysly-search-control{width:190px;}
    .smysly-desktop-search .smysly-search-control .smysly-search-control__input{font-size:14px!important;}
}
@media (min-width:861px) and (max-width:1000px){
    .smysly-desktop-header__bar{padding-left:14px;padding-right:14px;}
    .smysly-desktop-header__logo{width:126px;flex-basis:126px;}
    .smysly-desktop-header__logo img{width:126px;}
    .smysly-desktop-nav{margin-left:15px;gap:11px;}
    .smysly-desktop-nav a,
    .smysly-desktop-nav__contacts,
    .smysly-desktop-account a{font-size:13px;}
    .smysly-desktop-account{min-width:18px;gap:9px;}
    .smysly-desktop-account__login span,
    .smysly-desktop-account__profile .smysly-desktop-account__name{display:none;}
    .smysly-desktop-search{width:150px;flex-basis:150px;margin-left:12px;}
    .smysly-desktop-search .works-search-form.smysly-search-control{width:150px;}
    .smysly-desktop-search .smysly-search-control__field{padding-left:8px;padding-right:8px;}
    .smysly-desktop-search .smysly-search-control .smysly-search-control__input{font-size:13px!important;}
}

@media (max-width:860px){
    .smysly-site-header{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;}
    .smysly-desktop-header{display:none!important;}
    .smysly-mobile-header{display:block;background:transparent;position:relative;z-index:9000;padding:9px 20px;box-sizing:border-box;}
    .smysly-mobile-header__bar,
    .smysly-mobile-drawer__bar{
        width:100%;
        height:56px;
        min-height:56px;
        box-sizing:border-box;
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:0 18px 0 11px;
        background:#fff;
    }
    .smysly-mobile-header__logo{
        display:flex;
        align-items:center;
        flex:0 0 auto;
        text-decoration:none;
        line-height:0;
    }
    .smysly-mobile-header__logo img{
        display:block;
        width:110px;
        height:auto;
        max-width:none;
    }
    .smysly-mobile-header__actions{
        margin-left:auto;
        display:flex;
        align-items:center;
        gap:13px;
        color:var(--smysly-shell-icon);
    }
    .smysly-mobile-header__icon{
        position:relative;
        width:19px;
        height:28px;
        padding:0;
        margin:0;
        border:0;
        background:transparent;
        color:inherit;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        text-decoration:none;
        cursor:pointer;
        box-shadow:none!important;
        border-radius:0!important;
        line-height:1;
    }
    .smysly-mobile-header__icon svg{display:block;flex:none;}
    .smysly-mobile-header__badge{
        position:absolute;
        top:-2px;
        right:-8px;
        min-width:15px;
        height:15px;
        padding:0 4px;
        border-radius:999px;
        box-sizing:border-box;
        background:#ef4444;
        color:#fff;
        font:700 9px/15px Manrope,Arial,sans-serif;
        text-align:center;
        box-shadow:0 0 0 1.5px #fff;
    }
    .smysly-mobile-menu-toggle__close{display:none!important;}
    .smysly-mobile-menu-toggle.is-open .smysly-mobile-menu-toggle__burger{display:none!important;}
    .smysly-mobile-menu-toggle.is-open .smysly-mobile-menu-toggle__close{display:block!important;}

    .smysly-mobile-search{
        position:absolute;
        top:65px;
        left:20px;
        right:20px;
        z-index:9001;
        background:#fff;
        padding:10px 20px 14px;
        border-top:1px solid #f0f0f0;
        box-shadow:0 8px 18px rgba(0,0,0,.08);
    }
    .smysly-mobile-search[hidden]{display:none!important;}
    .smysly-mobile-search .works-search-form.smysly-search-control{width:100%;max-width:none;}
    .smysly-mobile-search .smysly-search-control__field{width:100%;}

    .smysly-mobile-drawer{
        position:fixed;
        inset:0;
        z-index:99990;
        background:var(--smysly-shell-mobile-bg);
        color:var(--smysly-shell-text);
        font-family:Manrope,Arial,sans-serif;
    }
    .smysly-mobile-drawer.is-open{display:block;}
    .smysly-mobile-drawer__scroll{
        height:100%;
        overflow-y:auto;
        overscroll-behavior:contain;
        padding:9px 20px 28px;
        box-sizing:border-box;
    }
    .smysly-mobile-drawer__bar{
        width:100%;
        padding-left:11px;
        padding-right:18px;
    }
    .smysly-mobile-drawer__content{padding-top:25px;}
    .smysly-mobile-user{
        height:43px;
        padding-bottom:9px;
        border-bottom:1px solid #d0d0d2;
        box-sizing:border-box;
        display:flex;
        align-items:center;
        gap:8px;
        color:#111;
        text-decoration:none;
    }
    .smysly-mobile-user__avatar{
        width:34px!important;
        height:34px!important;
        min-width:34px;
        border-radius:50%!important;
        object-fit:cover;
        display:block;
    }
    .smysly-mobile-user__name{
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font:700 14px/20px Manrope,Arial,sans-serif;
    }
    .smysly-mobile-nav{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
    }
    .smysly-mobile-user + .smysly-mobile-nav{padding-top:13px;}
    .smysly-mobile-nav__link{
        display:block;
        width:max-content;
        max-width:100%;
        margin:0;
        padding:0;
        color:#3f3f3f!important;
        text-decoration:none!important;
        font:400 14px/21px Manrope,Arial,sans-serif;
    }
    .smysly-mobile-nav__link--primary + .smysly-mobile-nav__link--primary{margin-top:12px;}
    .smysly-mobile-nav__link--publish-first{margin-top:20px;}
    .smysly-mobile-nav__link--publish + .smysly-mobile-nav__link--publish{margin-top:19px;}
    .smysly-mobile-nav__link--members{margin-top:19px;}
    .smysly-mobile-nav__link--login{margin-top:19px!important;}

    .smysly-mobile-contacts{margin-top:36px;}
    body.logged-in .smysly-mobile-contacts{margin-top:21px;}
    .smysly-mobile-contacts h2,
    .smysly-shell-footer h2{
        margin:0;
        padding:0;
        color:#111;
        font:500 16px/22px Manrope,Arial,sans-serif;
        letter-spacing:0;
        text-transform:none;
    }
    .smysly-mobile-contacts .smysly-contact-email:first-of-type{margin-top:12px;}
    body.logged-in .smysly-mobile-contacts .smysly-contact-email:first-of-type{margin-top:9px;}
    .smysly-mobile-contacts .smysly-socials{margin-top:24px;}
    body.logged-in .smysly-mobile-contacts .smysly-socials{margin-top:21px;}
}

body.smysly-menu-open{overflow:hidden!important;}
body.admin-bar .smysly-mobile-drawer{top:46px;}
@media (min-width:783px){body.admin-bar .smysly-mobile-drawer{top:32px;}}

/* ---------- Shared contact/social atoms ---------- */
.smysly-contact-email{
    display:flex;
    align-items:center;
    gap:10px;
    width:max-content;
    max-width:100%;
    color:#7b8492!important;
    text-decoration:none!important;
    font:400 14px/20px Manrope,Arial,sans-serif;
}
.smysly-contact-email + .smysly-contact-email{margin-top:8px;}
.smysly-contact-email img{width:26px;height:26px;display:block;flex:none;}
.smysly-socials{
    display:flex;
    align-items:center;
    gap:16px;
}
.smysly-footer__contacts .smysly-socials{margin-top:20px;}
.smysly-socials a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:none;
    line-height:0;
    text-decoration:none!important;
}
.smysly-socials img{display:block;max-width:none;}
.smysly-socials a:nth-child(1) img{width:30px;height:30px;}
.smysly-socials a:nth-child(2) img{width:27px;height:27px;}
.smysly-socials__max{
    width:27px;
    height:27px;
    background:#000;
    border-radius:6px;
}
.smysly-socials__max img{width:21px!important;height:21px!important;}

/* Hide the floating support chip as soon as the footer enters the viewport. */
.smysly-project-support-fab.smysly-project-support-fab--footer-hidden{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(12px)!important;
}

/* ---------- Footer ---------- */
.site-footer.smysly-shell-footer{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    color:#111;
    font-family:Manrope,Arial,sans-serif;
    box-shadow:none!important;
}
.smysly-shell-footer h2{
    margin:0;
    padding:0;
    color:#111;
    font:500 20px/24px Manrope,Arial,sans-serif;
    letter-spacing:0;
    text-transform:none;
}
.smysly-footer__inner{
    width:min(1500px,calc(100% - 40px));
    margin:0 auto;
    padding:52px 0 0;
    box-sizing:border-box;
}
.smysly-footer__grid{
    display:grid;
    grid-template-columns:25.333333% 25.333333% 26% 23.333334%;
    align-items:start;
}
.smysly-footer__brand,
.smysly-footer__column{min-width:0;}
.smysly-footer__logo{
    display:block;
    width:201px;
    height:75px;
    line-height:0;
    text-decoration:none!important;
}
.smysly-footer__logo img{
    display:block;
    width:201px;
    height:75px;
    max-width:none;
}
.smysly-footer__support{
    width:220px;
    height:50px;
    margin-top:11px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    box-sizing:border-box;
    background:var(--smysly-shell-support-bg);
    color:var(--smysly-shell-support)!important;
    text-decoration:none!important;
    font:600 14px/20px Manrope,Arial,sans-serif;
}
.smysly-footer__support img{width:10px;height:10px;display:block;}
.smysly-footer__partner{
    display:block;
    width:max-content;
    margin-top:14px;
    color:#909090!important;
    text-decoration:none!important;
    font:400 14px/20px Manrope,Arial,sans-serif;
}
.smysly-footer__partner:hover{color:#555!important;}
.smysly-footer__column h2{margin:0 0 21px;}
.smysly-footer__contacts h2{margin-bottom:15px;}
.smysly-footer__links{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
}
.smysly-footer__links a{
    color:#909090!important;
    text-decoration:none!important;
    font:400 14px/20px Manrope,Arial,sans-serif;
    margin:0;
    padding:0;
}
.smysly-footer__links a:hover{color:#555!important;}
.smysly-footer__links--menu a:nth-child(2){margin-top:12px;}
.smysly-footer__links--menu a:nth-child(3){margin-top:13px;}
.smysly-footer__links--menu a:nth-child(4){margin-top:16px;}
.smysly-footer__links--menu a:nth-child(5){margin-top:19px;}
.smysly-footer__links--menu a:nth-child(6){margin-top:20px;}
.smysly-footer__links--menu a:nth-child(7){margin-top:20px;}
.smysly-footer__links--menu a:nth-child(8){margin-top:21px;}
.smysly-footer__links--menu a:nth-child(9){margin-top:19px;}
.smysly-footer__authors .smysly-footer__links a:nth-child(2){margin-top:12px;}
.smysly-footer__authors .smysly-footer__links a:nth-child(3){margin-top:12px;}
.smysly-footer__authors .smysly-footer__links a:nth-child(4){margin-top:16px;}
.smysly-footer__authors .smysly-footer__links a:nth-child(5){margin-top:21px;}
.smysly-footer__authors .smysly-footer__links a:nth-child(6){margin-top:19px;}
.smysly-footer__contacts .smysly-footer__emails{margin-top:0;}
.smysly-footer__contacts .smysly-socials{margin-top:20px;}

.smysly-footer__legal{
    margin-top:97px;
    min-height:87px;
    padding:24px 0 20px;
    border-top:1px solid #d9d9d9;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:repeat(5,max-content);
    justify-content:space-between;
    align-items:start;
}
.smysly-footer__legal a{
    color:#686868!important;
    text-decoration:underline!important;
    text-decoration-thickness:1px!important;
    text-underline-offset:2px;
    font:400 14px/20px Manrope,Arial,sans-serif;
}

@media (min-width:861px) and (max-width:1200px){
    .smysly-footer__inner{width:calc(100% - 48px);}
    .smysly-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:52px;}
    .smysly-footer__legal{grid-template-columns:repeat(2,max-content);row-gap:16px;}
}

@media (max-width:860px){
    .site-footer.smysly-shell-footer{min-height:1081px;}
    .smysly-footer__inner{
        width:auto;
        margin:0;
        padding:21px 20px 17px;
    }
    .smysly-footer__grid{display:block;}
    .smysly-footer__logo{width:201px;height:75px;}
    .smysly-footer__support{margin-top:-1px;}
    .smysly-footer__partner{margin-top:12px;}
    .smysly-footer__menu{margin-top:34px;}
    .smysly-shell-footer h2{font-size:16px;line-height:22px;}
    .smysly-footer__column h2{margin-bottom:10px;}
    .smysly-footer__contacts h2{margin-bottom:0;}
    .smysly-footer__links a{font-size:14px;line-height:20px;}
    .smysly-footer__links--menu a:nth-child(2){margin-top:6px;}
    .smysly-footer__links--menu a:nth-child(3){margin-top:7px;}
    .smysly-footer__links--menu a:nth-child(4){margin-top:10px;}
    .smysly-footer__links--menu a:nth-child(5){margin-top:13px;}
    .smysly-footer__links--menu a:nth-child(6){margin-top:14px;}
    .smysly-footer__links--menu a:nth-child(7){margin-top:14px;}
    .smysly-footer__links--menu a:nth-child(8){margin-top:15px;}
    .smysly-footer__links--menu a:nth-child(9){margin-top:13px;}
    .smysly-footer__authors{margin-top:24px;}
    .smysly-footer__authors .smysly-footer__links a:nth-child(2){margin-top:6px;}
    .smysly-footer__authors .smysly-footer__links a:nth-child(3){margin-top:6px;}
    .smysly-footer__authors .smysly-footer__links a:nth-child(4){margin-top:10px;}
    .smysly-footer__authors .smysly-footer__links a:nth-child(5){margin-top:15px;}
    .smysly-footer__authors .smysly-footer__links a:nth-child(6){margin-top:13px;}
    .smysly-footer__contacts{margin-top:40px;}
    .smysly-footer__contacts .smysly-contact-email:first-of-type{margin-top:9px;}
    .smysly-footer__contacts .smysly-socials{margin-top:21px;}
    .smysly-footer__legal{
        margin-top:40px;
        min-height:0;
        padding:10px 0 0;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    .smysly-footer__legal a{font-size:12px;line-height:20px;}
}

@media (max-width:380px){
    .smysly-contact-email{font-size:14px;}
}


/* ---------- Header/footer refinements v3: desktop dropdowns, avatars, 1500px shell ---------- */
html,
body,
.site-container,
.site-content{
    background:#f4f4f6!important;
}
.smysly-site-header,
.smysly-desktop-header,
.site-footer.smysly-shell-footer{
    background:#fff!important;
}

@media (min-width:861px){
    .smysly-desktop-header__bar{
        width:min(1500px,calc(100% - 40px));
        max-width:1500px;
        margin:0 auto;
    }

    .smysly-desktop-nav__publish,
    .smysly-desktop-dropdown__trigger{
        color:#636873!important;
        font:400 16px/22px Manrope,Arial,sans-serif!important;
        letter-spacing:0!important;
        text-decoration:none!important;
    }
    .smysly-desktop-nav__publish{
        min-height:44px!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        background:transparent!important;
        box-shadow:none!important;
        cursor:pointer;
    }
    .smysly-desktop-nav__publish:hover,
    .smysly-desktop-nav__publish:focus-visible,
    .smysly-desktop-dropdown--profile:hover .smysly-desktop-account__profile,
    .smysly-desktop-dropdown--profile:focus-within .smysly-desktop-account__profile{
        color:#202020!important;
    }

    .smysly-desktop-dropdown{
        position:relative;
        height:44px;
        display:inline-flex;
        align-items:center;
        flex:0 0 auto;
    }
    .smysly-desktop-dropdown__menu{
        position:absolute;
        top:43px;
        z-index:10020;
        box-sizing:border-box;
        padding:8px 0;
        border:1px solid #ececef;
        border-radius:0 0 14px 14px;
        background:#fff;
        box-shadow:0 16px 32px rgba(36,39,44,.14);
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transform:translateY(-3px);
        transition:opacity .12s ease,transform .12s ease,visibility .12s ease;
    }
    .smysly-desktop-dropdown:hover > .smysly-desktop-dropdown__menu,
    .smysly-desktop-dropdown:focus-within > .smysly-desktop-dropdown__menu{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translateY(0);
    }
    .smysly-desktop-dropdown__menu a{
        width:100%;
        min-height:39px!important;
        padding:8px 17px!important;
        box-sizing:border-box;
        display:flex!important;
        align-items:center;
        color:#33373e!important;
        background:#fff;
        font:400 14px/21px Manrope,Arial,sans-serif!important;
        white-space:nowrap;
        text-decoration:none!important;
    }
    .smysly-desktop-dropdown__menu a:hover,
    .smysly-desktop-dropdown__menu a:focus-visible{
        color:#111!important;
        background:#f7f7f8;
        outline:0;
    }
    .smysly-desktop-dropdown__menu--publish{
        left:-17px;
        width:202px;
    }
    .smysly-desktop-dropdown__menu--profile{
        right:0;
        width:220px;
    }

    .smysly-desktop-account__profile{
        gap:8px;
    }
    .smysly-desktop-account__avatar-wrap{
        width:32px!important;
        height:32px!important;
        min-width:32px;
        max-width:32px!important;
        flex:0 0 32px;
        display:block!important;
        overflow:hidden!important;
        border-radius:50%!important;
        clip-path:circle(50% at 50% 50%);
        background:#ececef;
        line-height:0;
    }
    .smysly-desktop-account__avatar-wrap img,
    .smysly-desktop-account__avatar{
        display:block!important;
        width:100%!important;
        height:100%!important;
        min-width:100%!important;
        max-width:100%!important;
        border:0!important;
        border-radius:50%!important;
        object-fit:cover!important;
    }
    .smysly-desktop-account__name{
        display:block;
        max-width:80px!important;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    body.logged-in .smysly-desktop-search{
        margin-left:24px;
    }
}

@media (min-width:861px) and (max-width:1250px){
    .smysly-desktop-nav__publish,
    .smysly-desktop-dropdown__trigger{
        font-size:14px!important;
        line-height:20px!important;
    }
    body.logged-in .smysly-desktop-search{margin-left:18px;}
    .smysly-desktop-account__avatar-wrap{
        width:28px!important;
        height:28px!important;
        min-width:28px;
        max-width:28px!important;
        flex-basis:28px;
    }
    .smysly-desktop-account__name{max-width:64px!important;}
}

@media (min-width:861px) and (max-width:1000px){
    .smysly-desktop-nav__publish,
    .smysly-desktop-dropdown__trigger{font-size:13px!important;}
    .smysly-desktop-account__profile .smysly-desktop-account__avatar-wrap{display:block!important;}
    .smysly-desktop-account__profile .smysly-desktop-account__name{display:none!important;}
    body.logged-in .smysly-desktop-search{margin-left:10px;}
    .smysly-desktop-dropdown__menu--profile{right:-6px;}
}

@media (max-width:860px){
    .smysly-mobile-user__avatar-wrap{
        width:34px;
        height:34px;
        min-width:34px;
        flex:0 0 34px;
        display:block;
        overflow:hidden!important;
        border-radius:50%!important;
        clip-path:circle(50% at 50% 50%);
        background:#ececef;
        line-height:0;
    }
    .smysly-mobile-user__avatar-wrap img,
    .smysly-mobile-user img.avatar.smysly-mobile-user__avatar,
    .smysly-mobile-user__avatar{
        display:block!important;
        width:100%!important;
        height:100%!important;
        min-width:100%!important;
        max-width:100%!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:50%!important;
        object-fit:cover!important;
    }
}

/* Logged-in footer gets two account links after “Участники”. */
.smysly-footer__links--menu a:nth-child(10){margin-top:19px;}
@media (max-width:860px){
    .smysly-footer__links--menu a:nth-child(10){margin-top:13px;}
}


/* ---------- Refinements v4: shared desktop gutters + mobile profile accordion ---------- */
@media (min-width:861px){
    /* Header and footer use exactly the same 1500px shell and the same side gutters. */
    .smysly-desktop-header__bar,
    .smysly-footer__inner{
        width:min(1500px,calc(100% - 40px))!important;
        max-width:1500px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        box-sizing:border-box!important;
    }
    .smysly-desktop-header__bar{
        padding-left:0!important;
        padding-right:0!important;
    }
}

@media (max-width:860px){
    .smysly-mobile-account{
        width:100%;
    }
    .smysly-mobile-user{
        width:100%;
        gap:0;
    }
    .smysly-mobile-user__profile{
        min-width:0;
        flex:1 1 auto;
        display:flex;
        align-items:center;
        gap:8px;
        color:#111!important;
        text-decoration:none!important;
    }
    .smysly-mobile-user__toggle{
        width:34px;
        height:34px;
        margin:0 0 0 8px!important;
        padding:0!important;
        flex:0 0 34px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        border:0!important;
        border-radius:0!important;
        background:transparent!important;
        color:#636873!important;
        box-shadow:none!important;
        cursor:pointer;
    }
    .smysly-mobile-user__toggle svg{
        display:block;
        transition:transform .18s ease;
    }
    .smysly-mobile-account.is-open .smysly-mobile-user__toggle svg{
        transform:rotate(180deg);
    }
    .smysly-mobile-account-menu{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        padding:9px 0 4px 42px;
    }
    .smysly-mobile-account-menu[hidden]{display:none!important;}
    .smysly-mobile-account-menu a{
        width:max-content;
        max-width:100%;
        padding:7px 0;
        color:#3f3f3f!important;
        text-decoration:none!important;
        font:400 14px/20px Manrope,Arial,sans-serif;
    }
    .smysly-mobile-account-menu a:hover,
    .smysly-mobile-account-menu a:focus-visible{
        color:#111!important;
    }
    .smysly-mobile-account + .smysly-mobile-nav{padding-top:13px;}
    .smysly-mobile-user + .smysly-mobile-nav{padding-top:0;}
}

/* Seventh permanent link in the “Авторам” footer column: Авторская мастерская. */
.smysly-footer__authors .smysly-footer__links a:nth-child(7){margin-top:19px;}
@media (max-width:860px){
    .smysly-footer__authors .smysly-footer__links a:nth-child(7){margin-top:13px;}
}

/* ---------- Refinement v7: spacing before Partners in footer menu ---------- */
.smysly-footer__links--menu .smysly-footer__partner-menu-link{
    margin-top:19px!important;
}
@media (max-width:860px){
    .smysly-footer__links--menu .smysly-footer__partner-menu-link{
        margin-top:13px!important;
    }
}


/* About-project link follows Partners in the footer navigation. */
.smysly-footer__links--menu .smysly-footer__about-menu-link{
    margin-top:14px!important;
}
@media (max-width:860px){
    .smysly-footer__links--menu .smysly-footer__about-menu-link{
        margin-top:12px!important;
    }
}

/* Contact popup uses the same social icons as the footer. */
.portal-contacts__item--socials{display:flex;align-items:center;min-height:54px;}
.portal-contacts__socials{margin:0;}


/* ---------- Refinement v8: collision-safe desktop header -----------------
 * Preserve the full desktop navigation, but compact it progressively before
 * the mobile breakpoint. This keeps a real gap before the account control and
 * keeps search inside the 1500px shell on common 1366/1440/1024 widths.
 * ----------------------------------------------------------------------- */
@media (min-width:1251px) and (max-width:1500px){
    .smysly-desktop-header__logo{
        width:160px!important;
        flex-basis:160px!important;
        height:auto!important;
    }
    .smysly-desktop-header__logo img{
        width:160px!important;
        height:auto!important;
    }
    .smysly-desktop-nav{
        margin-left:38px!important;
        margin-right:20px!important;
        gap:24px!important;
    }
    .smysly-desktop-nav a,
    .smysly-desktop-nav__contacts,
    .smysly-desktop-nav__publish,
    .smysly-desktop-dropdown__trigger,
    .smysly-desktop-account a{
        font-size:14px!important;
        line-height:20px!important;
    }
    .smysly-desktop-account{
        min-width:58px!important;
        gap:12px!important;
    }
    .smysly-desktop-account__name{
        max-width:60px!important;
    }
    .smysly-desktop-search,
    body.logged-in .smysly-desktop-search{
        width:190px!important;
        flex-basis:190px!important;
        margin-left:20px!important;
    }
    .smysly-desktop-search .works-search-form.smysly-search-control{
        width:190px!important;
    }
    .smysly-desktop-search .smysly-search-control .smysly-search-control__input{
        font-size:14px!important;
    }
}

@media (min-width:1121px) and (max-width:1250px){
    .smysly-desktop-nav{
        margin-left:24px!important;
        margin-right:16px!important;
        gap:18px!important;
    }
    .smysly-desktop-account{
        gap:10px!important;
    }
    .smysly-desktop-account__name{
        max-width:52px!important;
    }
    .smysly-desktop-search,
    body.logged-in .smysly-desktop-search{
        width:175px!important;
        flex-basis:175px!important;
        margin-left:16px!important;
    }
    .smysly-desktop-search .works-search-form.smysly-search-control{
        width:175px!important;
    }
}

@media (min-width:861px) and (max-width:1120px){
    .smysly-desktop-header__logo{
        width:126px!important;
        flex-basis:126px!important;
        height:auto!important;
    }
    .smysly-desktop-header__logo img{
        width:126px!important;
        height:auto!important;
    }
    .smysly-desktop-nav{
        margin-left:14px!important;
        margin-right:12px!important;
        gap:10px!important;
    }
    .smysly-desktop-nav a,
    .smysly-desktop-nav__contacts,
    .smysly-desktop-nav__publish,
    .smysly-desktop-dropdown__trigger,
    .smysly-desktop-account a{
        font-size:13px!important;
        line-height:18px!important;
    }
    .smysly-desktop-account{
        min-width:22px!important;
        gap:8px!important;
    }
    .smysly-desktop-account__login span,
    .smysly-desktop-account__profile .smysly-desktop-account__name{
        display:none!important;
    }
    .smysly-desktop-search,
    body.logged-in .smysly-desktop-search{
        width:150px!important;
        flex-basis:150px!important;
        margin-left:10px!important;
    }
    .smysly-desktop-search .works-search-form.smysly-search-control{
        width:150px!important;
    }
    .smysly-desktop-search .smysly-search-control__field{
        padding-left:8px!important;
        padding-right:8px!important;
    }
    .smysly-desktop-search .smysly-search-control .smysly-search-control__input{
        font-size:13px!important;
    }
}
