/* ===== media.css (existing) ===== */

.ln_mobile_categories_btn,
.ln_mobile_categories_menu {
    display: none;
}

@media only screen and (max-width: 991px) {
    :root {
        --margin-inline: 1.5rem;
    }

    .ln_header {
        position: static;
        background: rgba(255, 255, 255, 0.86);
        border-bottom: 1px solid rgba(230, 230, 230, 0.74);
        box-shadow: unset;
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
    }

    .ln_header_top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: center;
        padding-block: 0.7rem 0.85rem !important;
    }

    .ln_header_left {
        display: contents;
    }

    .ln_logo {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        font-size: 1.08rem;
        text-overflow: ellipsis;
    }

    .ln_logo img {
        width: 2rem;
    }

    .ln_header_actions {
        justify-self: end;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        max-width: 100%;
        min-height: 2.8rem;
        padding: 0.25rem;
        overflow-x: auto;
        border: 1px solid rgba(255, 255, 255, 0.68);
        border-radius: 999px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
            rgba(255, 255, 255, 0.58);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 12px 28px rgba(17, 24, 39, 0.1);
        scrollbar-width: none;
        backdrop-filter: saturate(190%) blur(18px);
        -webkit-backdrop-filter: saturate(190%) blur(18px);
    }

    .ln_header_actions::-webkit-scrollbar {
        display: none;
    }

    .ln_header_actions .ln_lang_switch,
    .ln_header_actions .ln_btn_ghost,
    .ln_header_actions .ln_btn_primary,
    .ln_header_actions .ln_header_avatar_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 2.25rem;
        height: 2.25rem;
        min-height: 2.25rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--main-text) !important;
        padding: 0 0.72rem;
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: none;
    }

    .ln_header_actions .ln_lang_switch:hover,
    .ln_header_actions .ln_btn_ghost:hover,
    .ln_header_actions .ln_btn_primary:hover,
    .ln_header_actions .ln_header_avatar_btn:hover,
    .ln_header_actions .show>.ln_lang_switch,
    .ln_header_actions .show>.ln_header_avatar_btn {
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 8px 18px rgba(17, 24, 39, 0.09);
    }

    .ln_header_actions .ln_lang_switch svg {
        --aous-aw-icon-size: 1.28rem;
        color: var(--main-text);
        stroke-width: 1.9;
    }

    .ln_header_actions .ln_header_avatar {
        width: 2rem;
        height: 2rem;
        box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
    }

    .ln_nav_switch_link,
    .ln_nav_requests_link {
        display: none;
    }

    .ln_search {
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
    }

    .ln_search .input-group {
        width: 100%;
        min-height: 2.85rem;
        border-color: rgba(17, 24, 39, 0.08);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.92),
            0 10px 24px rgba(17, 24, 39, 0.07);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
    }

    .ln_search .form-control {
        min-width: 0;
        background: transparent;
        padding-block: 0.72rem;
    }

    .ln_search .btn {
        width: 3.2rem;
        border-radius: 999px;
        margin: 0.25rem;
    }

    .ln_search_input_clear {
        inset-inline-end: 3.85rem;
    }

    .ln_search_panel {
        position: fixed;
        inset-inline: var(--margin-inline);
        top: 7.35rem;
        padding: 1.4rem 1.2rem 1.6rem;
        max-height: calc(100vh - 8.5rem);
        overflow-y: auto;
        border-radius: 18px;
    }

    .ln_mega_menu {
        min-width: 620px;
    }

    .ln_mega_menu_inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .ln_categories_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ln_explore_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ln_cta_section {
        flex-direction: column;
        text-align: center;
    }

    .ln_cta_checklist {
        align-items: center;
    }

    .ln_cta_actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media only screen and (max-width: 576px) {
    :root {
        --margin-inline: 1rem;
    }

    .ln_header {
        position: static;
        z-index: 1070;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body {
        padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
    }

    .ln_header_top {
        grid-template-columns: 2.85rem minmax(0, 1fr);
        gap: 0.5rem;
        padding-block: 0.5rem !important;
        padding-inline: 0.5rem !important;
    }

    .ln_logo {
        grid-row: 1;
        grid-column: 2;
        justify-self: start;
    }

    .ln_header_actions {
        position: fixed;
        right: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        left: 50%;
        z-index: 1090;
        grid-row: auto;
        justify-self: auto;
        justify-content: space-around;
        width: min(20.5rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        min-height: 3.55rem;
        margin: 0;
        padding: 0.42rem;
        border: 1px solid rgba(255, 255, 255, 0.62);
        border-radius: 999px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 250, 252, 0.5)),
            rgba(255, 255, 255, 0.44);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.88),
            inset 0 -1px 0 rgba(17, 24, 39, 0.04),
            0 16px 42px rgba(15, 23, 42, 0.2);
        overflow: visible;
        isolation: isolate;
        transform: translateX(-50%);
    }

    .ln_header_actions .ln_lang_switch,
    .ln_header_actions .ln_btn_ghost,
    .ln_header_actions .ln_btn_primary,
    .ln_header_actions .ln_header_avatar_btn {
        width: 2.7rem;
        min-width: 2.7rem;
        height: 2.7rem;
        min-height: 2.7rem;
        padding: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #101114 !important;
        white-space: nowrap;
        transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    }

    .ln_header_actions .ln_lang_switch:hover,
    .ln_header_actions .ln_btn_ghost:hover,
    .ln_header_actions .ln_btn_primary:hover,
    .ln_header_actions .ln_header_avatar_btn:hover,
    .ln_header_actions .show>.ln_lang_switch,
    .ln_header_actions .show>.ln_header_avatar_btn {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.86);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 10px 24px rgba(15, 23, 42, 0.16);
    }

    .ln_lang_switch svg {
        --aous-aw-icon-size: 1.5rem;
    }

    .ln_header_actions .ln_lang_switch svg {
        --aous-aw-icon-size: 1.3rem;
    }

    .ln_header_actions .ln_header_avatar {
        width: 2.18rem;
        height: 2.18rem;
    }

    .ln_header_actions .ln_btn_ghost,
    .ln_header_actions .ln_btn_primary {
        flex: 1 1 0;
        max-width: 7.8rem;
        padding-inline: 0.75rem;
        width: auto;
        border-radius: 999px;
        background: rgba(16, 17, 20, 0.92);
        color: var(--white-color) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    }

    .ln_header_actions .dropdown,
    .ln_header_actions .ln_web_icon_dropdown {
        flex: 0 0 auto;
    }

    .ln_header_actions .dropdown-menu {
        position: fixed !important;
        right: 1rem !important;
        bottom: calc(4.85rem + env(safe-area-inset-bottom)) !important;
        left: auto !important;
        top: auto !important;
        width: min(22rem, calc(100vw - 2rem));
        max-height: min(28rem, calc(100vh - 9rem));
        overflow-y: auto;
        border-radius: 12px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
        transform: none !important;
    }

    html[dir="rtl"] .ln_header_actions .dropdown-menu {
        right: auto !important;
        left: 1rem !important;
    }

    .ln_search {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .ln_categories_nav {
        display: none;
    }

    .ln_mobile_categories_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-row: 1;
        grid-column: 1;
        gap: 0.45rem;
        align-self: stretch;
        min-height: 2.85rem;
        width: 2.85rem;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 10px 24px rgba(17, 24, 39, 0.07);
        color: #34373d;
        padding: 0;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .ln_mobile_categories_btn span {
        display: none;
    }

    .ln_mobile_categories_btn svg {
        width: 1.15rem;
        height: 1.15rem;
        color: #34373d;
    }

    .ln_search .input-group {
        border-radius: 8px;
    }

    .ln_search .btn {
        border-radius: 6px;
        margin: 0.2rem;
    }

    .ln_mobile_categories_menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1080;
        display: block;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
        will-change: transform;
    }

    html[dir="rtl"] .ln_mobile_categories_menu {
        transform: translateX(100%);
    }

    .ln_mobile_categories_open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    body.ln_mobile_categories_is_open {
        overflow: hidden;
    }

    /* The floating header-actions pill (lang/sign-in/avatar) sits above the
       full-screen categories menu (z-index 1090 vs 1080) - without this it
       floats on top of the category list the whole time it's open. */
    body.ln_mobile_categories_is_open .ln_header_actions {
        display: none;
    }

    .ln_mobile_categories_shell {
        width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
        background: var(--bg-body);
    }

    .ln_mobile_categories_close {
        position: fixed;
        top: 0.8rem;
        inset-inline-end: 0.85rem;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border: 0;
        border-radius: 50%;
        background: rgba(245, 246, 248, 0.92);
        color: #34373d;
        padding: 0;
    }

    .ln_mobile_categories_close svg {
        width: 1rem;
        height: 1rem;
    }

    .ln_mobile_categories_view {
        position: absolute;
        inset: 0;
        display: none;
        height: 100%;
        overflow-y: auto;
        padding: 0.7rem 1.35rem 2rem;
        background: var(--bg-body);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }

    .ln_mobile_categories_view_active {
        display: block;
        transform: translateX(0);
    }

    .ln_mobile_categories_view_exit_left {
        display: block;
        transform: translateX(-100%);
    }

    html[dir="rtl"] .ln_mobile_categories_view {
        transform: translateX(-100%);
    }

    html[dir="rtl"] .ln_mobile_categories_view_active {
        transform: translateX(0);
    }

    html[dir="rtl"] .ln_mobile_categories_view_exit_left {
        transform: translateX(100%);
    }

    .ln_mobile_category_row,
    .ln_mobile_category_item,
    .ln_mobile_category_group_title {
        width: 100%;
        min-height: 3rem;
        border: 0;
        background: transparent;
        color: #5d626b !important;
        text-align: start;
        text-decoration: none !important;
        font-size: 1rem;
        line-height: 1.35;
    }

    .ln_mobile_category_row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.35rem 0;
    }

    .ln_mobile_category_row svg {
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
        color: #5d626b;
    }

    .ln_mobile_categories_detail_head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        min-height: 3rem;
        margin: -0.7rem -1.35rem 1rem;
        padding: 0.7rem 1.35rem 0.55rem;
        background: var(--bg-body);
    }

    .ln_mobile_categories_detail_head strong {
        color: #34373d;
        font-size: 1rem;
        font-weight: 700;
    }

    .ln_mobile_categories_back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border: 0;
        background: transparent;
        color: #34373d;
        padding: 0;
    }

    .ln_mobile_categories_back svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .ln_mobile_category_group {
        margin-bottom: 1.35rem;
    }

    .ln_mobile_category_group_title {
        display: block;
        min-height: auto;
        margin-bottom: 0.55rem;
        color: #34373d !important;
        font-weight: 700;
    }

    .ln_mobile_category_item {
        display: block;
        min-height: auto;
        padding: 0.48rem 0;
        color: #656a73 !important;
    }

    .ln_mobile_category_item_featured {
        margin-bottom: 1.2rem;
        color: var(--main-text) !important;
        font-weight: 700;
    }

    .ln_search_panel {
        inset-inline: 0.75rem;
        top: 6.75rem;
        max-height: calc(100vh - 12.25rem);
    }

    .ln_header_actions .ln_lang_switch span,
    .ln_lang_switch {
        font-size: 0.78rem;
    }

    .ln_btn_ghost,
    .ln_btn_primary {
        font-size: 0.78rem;
    }

    .ln_web_panel_menu {
        width: calc(100vw - 2rem);
    }

    .ln_mega_menu {
        position: fixed;
        inset-inline: 0.5rem;
        top: auto;
        min-width: 0;
        max-width: none;
        max-height: 70vh;
        overflow-y: auto;
    }

    .ln_mega_menu_inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .ln_categories_grid {
        grid-template-columns: 1fr;
    }

    .ln_explore_grid {
        grid-template-columns: 1fr;
    }

    /* Horizontal recommendation/portfolio rows (View Scroll) - the desktop
       hover-only prev/next overlay buttons don't do anything useful once
       scrolling is touch/swipe, and they otherwise float on top of the
       first/last card. Snap gives the row a native swipe-carousel feel. */
    .ln_row_overlay_arrow {
        display: none;
    }

    .ln_service_grid {
        scroll-snap-type: x proximity;
        scroll-padding-inline-start: var(--margin-inline);
    }

    .ln_service_grid>.ln_service_card {
        scroll-snap-align: start;
    }

    .ln_auth_visual {
        display: none;
    }

    .ln_auth_grid {
        height: auto;
        max-height: 92vh;
    }

    .ln_auth_panel {
        padding: 1.75rem 1.25rem;
    }

    .ln_reset_password_page {
        padding: 1.5rem 1.25rem 3rem;
    }
}

/* ===== main.css ===== */

@media only screen and (max-width: 600px) {
    .ln_app_toast {
        right: 14px;
        bottom: 18px;
        left: 14px;
        max-width: none;
        transform: translateY(80px);
    }

    .ln_app_toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 575px) {
    .ln_currency_dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .ln_currency_modal .modal-header {
        padding: 1.6rem 1.4rem 1rem;
    }

    .ln_currency_modal .modal-title {
        font-size: 1.45rem;
    }

    .ln_currency_modal_item {
        grid-template-columns: 2rem 1fr;
        padding: 0.55rem 1.4rem 0.75rem;
    }

    .ln_currency_modal_text strong {
        font-size: 1.05rem;
    }

    .ln_currency_modal_text small {
        font-size: 0.95rem;
    }
}

/* ===== footer.css ===== */

@media only screen and (max-width: 992px) {
    .ln_footer_top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 576px) {
    .ln_footer_top {
        grid-template-columns: 1fr 1fr;
    }

    .ln_footer_bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== freelancer_profile.css ===== */

@media only screen and (max-width: 900px) {
    .ln_pub_profile_grid {
        grid-template-columns: 1fr;
    }

    .ln_pub_profile_sidebar {
        position: static;
    }

    .ln_pub_contact_card {
        box-shadow: none;
    }

    .ln_bottom_sheet_body {
        grid-template-columns: 1fr;
        padding: 0.5rem 1.25rem 2rem;
    }

    .ln_more_portfolio_feature {
        grid-template-columns: 1fr;
    }

    .ln_more_portfolio_strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 700px) {
    .ln_pub_project_card {
        grid-template-columns: 1fr;
    }

    .ln_pub_project_thumb_wrap {
        width: 100%;
        min-width: 0;
    }

    .ln_pub_project_thumb {
        width: 100%;
        min-width: 0;
        height: 180px;
    }

    .ln_pub_project_thumb img {
        min-height: 180px;
    }

    .ln_pub_project_body {
        padding: 1.15rem;
    }

    .ln_pub_project_body_head {
        flex-direction: column;
    }

    .ln_pub_project_contact_wrap,
    .ln_pub_project_contact_wrap form,
    .ln_pub_project_contact_wrap .ln_pub_btn_outline {
        width: 100%;
    }

    .ln_pub_project_stats {
        grid-template-columns: 1fr;
    }

    .ln_pub_modal_gallery_thumb {
        display: inline-block;
    }

    .ln_pub_sticky_bar {
        padding: 0.5rem 1rem;
    }

    .ln_pub_sticky_identity .ln_pub_contact_status {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    .ln_pub_header_top {
        flex-direction: column;
    }

    .ln_pub_identity {
        align-items: flex-start;
    }

    .ln_pub_avatar {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }

    .ln_pub_profile_page {
        padding: 0.7rem 1rem 3rem;
    }

    .ln_pub_header_card,
    .ln_pub_card {
        padding: 0rem;
    }

    /* Portfolio "project details" modal - main.css pins it to a 54rem
       min-width for the desktop gallery-viewer look, which just overflows
       the viewport on a phone. Turn it into the same slide-up bottom sheet
       the "more about me" modal already uses instead. */
    #ln_project_details_modal {
        /* Bootstrap times the close transition off this element, not
           .modal-dialog - see the .ln_bottom_sheet_modal comment in
           main.css for why this is needed for the close animation to play. */
        transition: transform 0.3s ease-out;
    }

    #ln_project_details_modal .modal-dialog {
        display: block;
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    #ln_project_details_modal.show .modal-dialog {
        transform: translateY(0);
    }

    #ln_project_details_modal .modal-content {
        border-radius: 20px 20px 0 0;
        height: 92vh;
        max-height: 92vh;
        overflow-y: auto;
        border: none;
    }

    #ln_project_details_modal .modal-body {
        padding: 1rem 1.25rem 2rem !important;
    }

    .ln_pub_project_modal_header {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .ln_pub_project_modal_actions {
        margin-inline-start: auto;
    }

    .ln_pub_project_modal_name {
        font-size: 1.25rem;
    }

    .ln_pub_project_modal_image {
        min-height: 200px;
    }

    .ln_pub_modal_gallery_main img {
        height: 220px;
    }
}

@media only screen and (max-width: 576px) {
    .ln_floating_chat {
        inset-inline-start: 0.75rem;
        /* Same clearance as .ln_header_actions .dropdown-menu below - keeps
           it from sitting under/behind the fixed bottom tabbar pill. */
        inset-block-end: calc(4.85rem + env(safe-area-inset-bottom));
    }

    .ln_floating_chat_text {
        display: none;
    }

    .ln_floating_chat_btn {
        padding: 0.4rem;
    }
}

@media only screen and (max-width: 900px) {
    .ln_sd_layout {
        grid-template-columns: 1fr;
    }

    .ln_sd_main {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        margin-inline: 0;
    }

    .ln_sd_sidebar {
        position: static;
    }
}

@media only screen and (max-width: 576px) {
    .ln_sd_page {
        padding: 0.7rem 1rem 3rem;
    }

    .ln_sd_header {
        margin-bottom: 1rem;
    }

    .ln_sd_gallery_main {
        height: 260px;
    }
}

@media only screen and (max-width: 700px) {
    .ln_sd_reviews_summary {
        grid-template-columns: 1fr;
    }

    .ln_sd_portfolio_feature {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.1rem;
    }

    .ln_sd_portfolio_feature_media {
        min-height: 220px;
    }

    .ln_sd_portfolio_stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .ln_sd_portfolio_thumbs {
        grid-template-columns: repeat(5, 48px);
    }

    .ln_order_offcanvas {
        width: 100vw !important;
    }

    .ln_order_offcanvas_footer {
        grid-template-columns: 1fr;
    }
}

/* ===== account_extras.css ===== */

@media only screen and (max-width: 700px) {

    .ln_lists_page,
    .ln_requests_page {
        padding-inline: 1rem;
    }

    .ln_list_detail_hero {
        flex-direction: column;
        gap: 1rem;
    }

    .ln_list_detail_name {
        font-size: 1.65rem;
    }

    .ln_list_items_grid {
        grid-template-columns: 1fr;
    }

    /* "My Lists" folder grid (account/lists) had no mobile override at all -
       repeat(4, 1fr) was crushing each card to a sliver on phone widths. */
    .ln_lists_grid {
        grid-template-columns: 1fr;
    }

    .ln_welcome_back_banner_inner {
        padding: 1.25rem 0 1.45rem;
        overflow: hidden;
    }

    .ln_welcome_back_banner_inner h1 {
        padding-inline: 1rem;
        font-size: 1.25rem;
        margin-bottom: 0.9rem;
    }

    .ln_welcome_back_cards {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(21.5rem, calc(100vw - 3.8rem));
        grid-template-columns: none;
        gap: 0.85rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0.15rem 1rem 0.55rem;
    }

    .ln_welcome_back_cards::-webkit-scrollbar {
        display: none;
    }

    .ln_welcome_back_mini_card {
        scroll-snap-align: start;
        min-height: 6.75rem;
        padding: 1rem 1.05rem;
        border: 1px solid rgba(17, 24, 39, 0.06);
        border-radius: 10px;
        background: var(--bg-body);
        box-shadow:
            0 0.14px 2.29px rgba(0, 0, 0, 0.03),
            0 0.37px 4.43px rgba(0, 0, 0, 0.027),
            0 8px 24px rgba(17, 24, 39, 0.1);
    }

    .ln_welcome_back_mini_label {
        margin-bottom: 0.7rem;
        color: #727780;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.035em;
    }

    .ln_welcome_back_mini_body {
        flex-wrap: nowrap;
        gap: 0.75rem;
        align-items: center;
    }

    .ln_welcome_back_mini_icon {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        color: #34363b;
        background: #f0f1f3;
    }

    .ln_welcome_back_mini_icon svg {
        width: 1rem;
        height: 1rem;
    }

    .ln_welcome_back_mini_text strong {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    .ln_welcome_back_mini_text p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 0.25rem;
        color: #2f3135;
        font-size: 0.92rem;
        line-height: 1.22;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .ln_welcome_back_mini_body .ln_pub_btn_outline {
        display: none;
    }
}

@media only screen and (min-width: 701px) and (max-width: 1100px) {
    .ln_list_items_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ln_lists_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    .ln_gd_layout {
        grid-template-columns: 1fr;
    }

    .ln_gd_sidebar {
        position: static;
    }
}

@media only screen and (max-width: 700px) {
    .ln_help_center_page {
        padding: 2rem .9rem 3rem;
    }

    .ln_help_hero,
    .ln_help_guides,
    .ln_help_final {
        display: block;
    }

    .ln_help_hero h1 {
        font-size: 2.15rem;
    }

    .ln_help_actions {
        justify-content: flex-start;
        margin-top: 1.25rem;
    }

    .ln_help_btn {
        width: 100%;
    }

    .ln_help_contact_grid,
    .ln_help_topic_grid {
        grid-template-columns: 1fr;
    }

    .ln_help_contact_card,
    .ln_help_topic_card,
    .ln_help_guides,
    .ln_help_final {
        padding: 1rem;
    }

    .ln_help_final .ln_help_btn {
        margin-top: 1rem;
    }

    .ln_service_grid {
        gap: 1rem;
    }

    /* 180px still left the 2nd card cut off on a real phone screen - too
       big to compare anything at a glance. An exact 2-up fit reads better. */
    .ln_service_card {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .ln_service_card_featured {
        padding: 0.35rem;
        margin: -0.35rem;
    }

    .ln_service_featured_badge {
        top: 0.75rem;
        inset-inline-start: 0.75rem;
    }

    .ln_service_card_featured .ln_service_card_save {
        top: 0.75rem;
        inset-inline-end: 0.75rem;
    }

    .ln_service_results_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .ln_freelancer_results_grid {
        grid-template-columns: 1fr;
    }

    .ln_freelancer_card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: .75rem;
        padding: .8rem;
    }

    .ln_freelancer_card_avatar {
        width: 64px;
        height: 64px;
    }

    .ln_freelancer_card_head {
        display: block;
    }

    .ln_freelancer_card_services {
        display: inline-flex;
        margin-top: .45rem;
    }

    .ln_home_sections {
        padding-inline: 0.75rem;
        overflow: hidden;
    }

    .ln_home_smart_row {
        margin-bottom: 2.25rem;
        padding-top: 0.65rem;
    }

    .ln_home_smart_row .ln_home_row_head {
        align-items: flex-start;
        padding-inline: 1rem;
        margin-bottom: 0.55rem;
    }

    .ln_home_smart_row .ln_pub_section_title {
        max-width: 22rem;
        font-size: 1.14rem;
        line-height: 1.25;
        margin: 0;
    }

    .ln_home_smart_arrows {
        display: none;
    }

    .ln_home_smart_layout {
        display: block;
        grid-template-columns: 1fr;
    }

    .ln_home_smart_topics {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 50%;
        grid-template-rows: 1fr;
        align-items: stretch;
        align-self: start;
        gap: 0;
        width: 100%;
        max-width: 100%;
        height: 2.75rem;
        min-height: 2.75rem;
        max-height: 2.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        white-space: nowrap;
        padding: 0 1rem;
        border-bottom: 0;
        margin: 0 0 0.8rem;
        scroll-snap-type: x proximity;
    }

    .ln_home_smart_topics::-webkit-scrollbar {
        display: none;
    }

    .ln_home_smart_topic {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        scroll-snap-align: start;
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
        padding: 0.1rem 0.4rem 0.55rem;
        border: 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        background: transparent;
        color: #8d9097 !important;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
    }

    .ln_home_smart_topic svg {
        display: none;
    }

    .ln_home_smart_topic_active {
        color: var(--main-text) !important;
        background: transparent;
        border-bottom: 2px solid var(--main-text);
    }

    .ln_home_smart_panels .ln_row_scroll_wrap {
        display: block;
        height: auto;
        min-height: 0;
        clear: both;
        overflow: visible;
    }

    .ln_home_smart_panels .ln_row_scroll_wrap::before,
    .ln_home_smart_panels .ln_row_scroll_wrap::after {
        display: none;
    }

    .ln_home_smart_scroller {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0.1rem 1rem 0.8rem;
    }

    .ln_home_smart_scroller .ln_service_card {
        flex: 0 0 calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
        scroll-snap-align: start;
    }

    .ln_home_smart_scroller .ln_service_card_thumb {
        aspect-ratio: 13 / 8;
        border-radius: 5px;
    }

    .ln_home_smart_scroller .ln_service_card_seller_name {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .ln_home_smart_scroller .ln_service_card_title {
        min-height: 2.55rem;
        margin-bottom: 0.45rem;
        color: #55575d;
        font-size: 0.98rem;
        line-height: 1.3;
    }

    .ln_home_smart_scroller .ln_service_card_price {
        margin-top: 0.55rem;
        font-size: 0.96rem;
    }

    .ln_gd_page {
        padding-inline: 1rem;
    }
}

/* ===== requests.css ===== */

@media only screen and (max-width: 900px) {
    .ln_request_detail_grid {
        grid-template-columns: 1fr;
    }

    .ln_request_detail_side {
        position: static;
    }

    .ln_request_detail_meta {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 576px) {
    .ln_listing_results_bar {
        align-items: stretch;
        flex-direction: column;
    }

    .ln_listing_sort {
        justify-content: space-between;
    }

    .ln_web_pagination {
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (max-width: 700px) {

    .ln_account_request_card,
    .ln_account_offer_top {
        grid-template-columns: 1fr;
    }

    .ln_account_request_head,
    .ln_account_offers_head,
    .ln_account_requests_page .ln_requests_page_head {
        flex-direction: column;
    }

    .ln_account_request_card {
        display: block;
    }

    .ln_account_request_actions {
        margin-top: 1rem;
    }

    .ln_account_offer_meta {
        grid-template-columns: 1fr;
    }

    .ln_seller_offers_hero {
        align-items: stretch;
        flex-direction: column;
    }

    .ln_seller_offers_stats,
    .ln_seller_offer_meta {
        grid-template-columns: 1fr 1fr;
    }

    .ln_seller_offer_card {
        grid-template-columns: 1fr;
    }

    .ln_seller_offer_top {
        flex-direction: column;
    }

    .ln_seller_offer_actions {
        padding-inline-start: 0;
        padding-top: 1rem;
        border-inline-start: 0;
        border-top: 1px solid var(--border-color);
    }

    .ln_offer_offcanvas.offcanvas-end {
        width: 100vw !important;
    }

    .ln_offer_request_summary,
    .ln_budget_range_row {
        flex-direction: column;
        align-items: stretch;
    }

    .ln_offer_request_summary strong {
        text-align: start;
    }
}
