﻿.profile-gradient { background: linear-gradient(135deg, #FF5722 0%, #FF9800 100%); }
        .profile-page {
            --profile-section-title-size: 22px;
            --profile-section-title-size-mobile: 20px;
            width: min(calc(100vw - 32px), 1280px);
            max-width: 1280px !important;
            margin-left: auto;
            margin-right: auto;
            box-sizing: border-box;
        }
        @media (min-width: 768px) {
            .profile-content-layout {
                gap: 20px !important;
            }
            .profile-content-layout > aside {
                width: 360px !important;
                flex: 0 0 360px;
            }
        }
        .profile-page .profile-route-experience__title,
        .profile-page .profile-travel-map__title,
        .profile-page .profile-events-card__header h2,
        .profile-page #profile-photos > div:first-child h3,
        .profile-page #profile-posts > div:first-child h3,
        .profile-page #profile-awards > div:first-child h3,
        .profile-page #profile-communities > div:first-child h3,
        .profile-page aside > div > h3,
        .profile-page aside > div > .flex h3 {
            color: #0f172a;
            font-size: var(--profile-section-title-size) !important;
            line-height: 1.1 !important;
            font-weight: 950 !important;
            letter-spacing: 0 !important;
        }
        .profile-header-mobile-level-card {
            display: none !important;
        }
        .profile-header-level-card {
            display: flex !important;
            width: 90px !important;
            max-width: 90px !important;
            margin-top: 8px;
            padding: 7px 7px !important;
            border-radius: 14px !important;
            border-color: #fed7aa !important;
            background: #fff7ed !important;
            box-shadow: 0 10px 20px rgba(249, 115, 22, .10) !important;
            transform: none !important;
        }
        .profile-header-level-card > div:nth-child(1) {
            max-width: 100%;
            color: #ea580c !important;
            font-size: 9px !important;
            line-height: 1.1 !important;
            letter-spacing: 0 !important;
            text-transform: none !important;
        }
        .profile-header-level-card > div:nth-child(2) {
            max-width: 100%;
            margin-top: 3px !important;
            color: #0f172a !important;
            font-size: 9px !important;
            line-height: 1.1 !important;
            letter-spacing: 0 !important;
            text-transform: none !important;
        }
        .profile-header-level-card > div:nth-child(3),
        .profile-header-level-card > div:nth-child(4) {
            display: block !important;
            max-width: 100%;
            margin-top: 5px !important;
            color: #64748b !important;
            font-size: 8px !important;
            line-height: 1.15 !important;
            letter-spacing: 0 !important;
            text-transform: none !important;
            white-space: nowrap;
        }
        .profile-header-level-card > div:nth-child(4) {
            color: #94a3b8 !important;
        }
        .profile-header-level-card > div:nth-child(5) {
            width: 100% !important;
            height: 4px !important;
            margin-top: 6px !important;
            background: #ffedd5 !important;
        }
        .profile-header-avatar > .absolute {
            background: transparent !important;
            padding: 0 !important;
        }
        @media (min-width: 768px) {
            .profile-header-cover {
                height: 260px !important;
            }
            .profile-header-info {
                padding: 0 34px 28px !important;
            }
            .profile-header-grid {
                display: grid !important;
                grid-template-columns: 154px minmax(0, 1fr);
                align-items: start;
                column-gap: 30px !important;
                margin-bottom: 0 !important;
            }
            .profile-header-avatar-col {
                width: 154px !important;
                margin-top: -74px !important;
            }
            .profile-header-avatar {
                width: 146px !important;
                height: 146px !important;
                margin-bottom: 0 !important;
                box-shadow: 0 20px 42px rgba(15, 23, 42, .14) !important;
            }
            .profile-header-avatar > .absolute {
                background: transparent !important;
                padding: 0 !important;
            }
            .profile-header-level-card {
                display: flex !important;
                width: 154px !important;
                max-width: 154px !important;
                margin-top: 14px;
                padding: 11px 10px !important;
                border-radius: 16px !important;
                border-color: #fed7aa !important;
                background: #fff7ed !important;
                box-shadow: 0 12px 26px rgba(249, 115, 22, .10) !important;
                transform: none !important;
            }
            .profile-header-level-card > div:nth-child(1) {
                max-width: 100%;
                color: #ea580c !important;
                font-size: 11px !important;
                line-height: 1.1 !important;
                letter-spacing: 0 !important;
                text-transform: none !important;
            }
            .profile-header-level-card > div:nth-child(2) {
                max-width: 100%;
                margin-top: 5px !important;
                color: #0f172a !important;
                font-size: 11px !important;
                line-height: 1.1 !important;
                letter-spacing: 0 !important;
                text-transform: none !important;
            }
            .profile-header-level-card > div:nth-child(3) {
                display: block !important;
                margin-top: 8px !important;
                color: #64748b !important;
                font-size: 10px !important;
                line-height: 1.15 !important;
                letter-spacing: 0 !important;
                text-transform: none !important;
            }
            .profile-header-level-card > div:nth-child(4) {
                display: block !important;
                margin-top: 4px !important;
                color: #94a3b8 !important;
                font-size: 9px !important;
                line-height: 1.15 !important;
                letter-spacing: 0 !important;
                text-transform: none !important;
            }
            .profile-header-level-card > div:nth-child(5) {
                width: 100% !important;
                height: 5px !important;
                margin-top: 8px !important;
                background: #ffedd5 !important;
            }
            .profile-header-main {
                padding-top: 28px !important;
            }
            .profile-header-main-row {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) auto;
                align-items: start !important;
                column-gap: 28px !important;
            }
            .profile-header-actions {
                padding-top: 0;
            }
            .profile-header-action-row {
                gap: 8px !important;
                flex-wrap: wrap;
                justify-content: flex-end;
                max-width: 560px;
            }
            .profile-header-action-row > a,
            .profile-header-action-row > button,
            .profile-header-action-row > .relative > button {
                min-height: 48px !important;
                padding: 0 20px !important;
                border-radius: 16px !important;
                font-size: 11px !important;
                letter-spacing: 0 !important;
                text-transform: none !important;
            }
            .profile-header-action-row summary {
                width: 48px !important;
                height: 48px !important;
                border-radius: 16px !important;
            }
            .profile-header-action-row > .profile-header-icon-action {
                width: 48px !important;
                min-width: 48px !important;
                height: 48px !important;
                min-height: 48px !important;
                padding: 0 !important;
                flex: 0 0 48px;
            }
            .profile-header-icon-action svg {
                display: block;
                width: 22px !important;
                height: 22px !important;
                flex: 0 0 22px;
            }
            .profile-header-icon-action--settings {
                color: #334155 !important;
                background: #ffffff !important;
                border-color: #e2e8f0 !important;
            }
            .profile-header-icon-action--settings:hover {
                color: #0f172a !important;
                background: #f8fafc !important;
            }
            .profile-header-icon-action--qr {
                color: #ffffff !important;
                background: #020617 !important;
                border: 1px solid #020617 !important;
            }
            .profile-header-icon-action--qr:hover {
                background: #1e293b !important;
                border-color: #1e293b !important;
            }
        }
        .profile-header-name {
            display: flex !important;
            align-items: center;
            gap: 10px;
            max-width: 100%;
            color: #0f172a;
            font-size: 28px !important;
            line-height: 1.05 !important;
            font-weight: 900 !important;
            letter-spacing: 0 !important;
        }
        .profile-header-name-text {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .profile-verified-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 23px;
            height: 23px;
            background-color: #ff5a1f;
            filter: drop-shadow(0 8px 14px rgba(255, 90, 31, .22));
        }
        .profile-header-identity {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 3px;
            margin-top: 2px;
        }
        .profile-header-meta {
            color: #f97316;
            font-size: 13px;
            line-height: 1.25;
            font-weight: 900;
            letter-spacing: 0;
        }
        .profile-header-city {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin: 2px 0 3px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.25;
            font-weight: 800;
            letter-spacing: 0;
        }
        .profile-header-city svg {
            flex: 0 0 auto;
            width: 12px;
            height: 12px;
            color: #94a3b8;
        }
        .profile-header-city span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .profile-header-bio {
            max-width: 620px;
            margin: 0;
            color: #475569;
            font-size: 14px;
            line-height: 1.45;
            font-weight: 700;
            letter-spacing: 0;
            white-space: normal;
        }
        .profile-header-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }
        .profile-header-stat {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 42px;
            padding: 9px 14px;
            border: 1px solid #e5e7eb;
            border-radius: 15px;
            background: #ffffff;
            color: #64748b;
            box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
            font-family: inherit;
            white-space: nowrap;
        }
        .profile-header-stat strong {
            color: #0f172a;
            font-size: 17px;
            line-height: 1;
            font-weight: 950;
            letter-spacing: 0;
        }
        .profile-header-stat span {
            color: #64748b;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            letter-spacing: 0;
        }
        .profile-header-stat-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 24px;
            height: 24px;
            color: #0f172a;
        }
        .profile-header-stat-icon svg {
            display: block;
            width: 100%;
            height: 100%;
        }
        @media (min-width: 768px) {
            .profile-header-stats {
                width: fit-content;
                max-width: min(100%, 700px);
                display: flex;
                flex-wrap: nowrap;
                gap: 0;
                overflow: hidden;
                border: 1px solid #e5e7eb;
                border-radius: 16px;
                background: #ffffff;
                box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
            }
            .profile-header-stat {
                flex: 0 1 168px;
                display: grid;
                grid-template-columns: 22px minmax(0, 1fr);
                grid-template-rows: auto auto;
                min-width: 142px;
                min-height: 58px;
                column-gap: 9px;
                row-gap: 2px;
                align-content: center;
                justify-content: stretch;
                padding: 10px 14px;
                border: 0;
                border-right: 1px solid #e5e7eb;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
            }
            .profile-header-stat:last-child {
                border-right: 0;
            }
            .profile-header-stat strong {
                min-width: 0;
                font-size: 19px;
                line-height: 1;
            }
            .profile-header-stat span:not(.profile-header-stat-icon) {
                min-width: 0;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 10px;
                line-height: 1.1;
                text-transform: none;
                white-space: nowrap;
            }
            .profile-header-stat-icon {
                grid-row: 1 / span 2;
                width: 22px;
                height: 22px;
            }
        }
        .profile-header-stat--button {
            cursor: pointer;
            transition: border-color .2s ease, color .2s ease, transform .2s ease;
        }
        .profile-header-stat--button:hover {
            border-color: #fdba74;
            color: #f97316;
            transform: translateY(-1px);
        }
        .profile-header-stat--button:hover strong,
        .profile-header-stat--button:hover span {
            color: #f97316;
        }
        .profile-header-badges {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
        }
        .profile-header-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 32px;
            padding: 8px 13px;
            border: 1px solid transparent;
            border-radius: 999px;
            font-size: 11px;
            line-height: 1;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: none;
            font-family: inherit;
            white-space: nowrap;
        }
        button.profile-header-badge {
            cursor: pointer;
        }
        .profile-header-badge--level {
            border-color: #111827;
            background: #111827;
            color: #ffffff;
        }
        .profile-header-badge--level span + span {
            color: #fed7aa;
        }
        .profile-header-badge--orange {
            background: #fff7ed;
            color: #ea580c;
        }
        .profile-header-badge--green {
            background: #ecfdf5;
            color: #059669;
        }
        .profile-header-badge--blue {
            background: #eff6ff;
            color: #2563eb;
        }
        .profile-header-badge--gray {
            background: #f1f5f9;
            color: #475569;
        }
        .tab-btn { @apply pb-4 text-sm font-black uppercase tracking-widest border-b-2 transition-all duration-200; }
        .tab-btn-active { @apply border-orange-500 text-gray-900; }
        .tab-btn-inactive { @apply border-transparent text-gray-400 hover:text-gray-600; }
        .route-item { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .route-item:hover { transform: translateY(-2px); }
        .route-item h3 { letter-spacing: -0.02em; }
        .minimap-container { width: 100% !important; height: 100% !important; display: block !important; }
        .minimap-container canvas { width: 100% !important; height: 100% !important; display: block !important; outline: none; }
        .profile-route-cover-line svg { width: 100%; height: 100%; display: block; }
        .profile-route-cover-line path {
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
            vector-effect: non-scaling-stroke;
        }
        .profile-route-experience__header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }
        .profile-route-experience__title {
            margin: 0;
            color: #0f172a;
            font-size: 22px;
            line-height: 1.1;
            font-weight: 900;
            letter-spacing: 0;
        }
        .profile-route-experience__summary {
            margin-top: 7px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 800;
        }
        .profile-route-experience__all {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex: 0 0 auto;
            min-height: 34px;
            padding: 8px 12px;
            border-radius: 14px;
            background: #fff7ed;
            color: #f97316;
            border: 1px solid #fed7aa;
            font-size: 10px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
        }
        .profile-route-experience__all:hover {
            background: #ffedd5;
            border-color: #fdba74;
            color: #ea580c;
            transform: translateX(2px);
        }
        .profile-route-experience__all-icon {
            width: 14px;
            height: 14px;
            transition: transform 180ms ease;
        }
        .profile-route-experience__all:hover .profile-route-experience__all-icon {
            transform: translateX(2px);
        }
        .profile-route-experience__tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            overflow-x: auto;
            padding-bottom: 2px;
            scrollbar-width: none;
        }
        .profile-route-experience__tabs::-webkit-scrollbar {
            display: none;
        }
        .profile-route-experience__tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            flex: 0 0 auto;
            min-height: 34px;
            padding: 9px 12px;
            border: 0;
            border-radius: 13px;
            background: #f8fafc;
            color: #475569;
            font-size: 10px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            cursor: pointer;
            transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
        }
        .profile-route-experience__tab:hover {
            background: #eef2f7;
            color: #0f172a;
        }
        .profile-route-experience__tab.is-active {
            background: #0f172a;
            color: #ffffff;
        }
        .profile-route-experience__tab-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 6px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.08);
            font-size: 9px;
            letter-spacing: 0;
        }
        .profile-route-experience__tab.is-active .profile-route-experience__tab-count {
            background: rgba(255, 255, 255, 0.16);
        }
        .profile-route-grid {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            overflow-y: hidden;
            margin: -2px -2px 0;
            padding: 2px 2px 10px;
            scroll-padding-left: 2px;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }
        .profile-route-grid::-webkit-scrollbar {
            display: none;
        }
        .profile-route-card {
            display: flex;
            flex: 0 0 clamp(260px, calc((100% - 32px) / 3), 320px);
            min-width: 0;
            min-height: 100%;
            flex-direction: column;
            overflow: hidden;
            scroll-snap-align: start;
            border: 1px solid #e5e7eb;
            border-radius: 24px;
            background: #f8fafc;
            color: inherit;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
            transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
        }
        .profile-route-card:hover {
            transform: translateY(-3px);
            border-color: #fed7aa;
            background: #ffffff;
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
        }
        .profile-route-card__media {
            position: relative;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            background: #111827;
        }
        .profile-route-card__image,
        .profile-route-card__fallback {
            width: 100%;
            height: 100%;
            display: block;
        }
        .profile-route-card__image {
            object-fit: cover;
            transition: transform 500ms ease;
        }
        .profile-route-card:hover .profile-route-card__image {
            transform: scale(1.03);
        }
        .profile-route-card__fallback {
            background:
                radial-gradient(circle at 72% 88%, rgba(249, 115, 22, 0.52), transparent 36%),
                linear-gradient(145deg, #111827 0%, #1f2937 58%, #7c2d12 100%);
        }
        .profile-route-card__shade {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18) 45%, rgba(15, 23, 42, 0.04));
        }
        .profile-route-card__line {
            position: absolute;
            inset: 0;
            z-index: 2;
            pointer-events: none;
        }
        .profile-route-card__badges {
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 12px;
            z-index: 3;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }
        .profile-route-card__badge {
            max-width: min(170px, 100%);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border-radius: 9px;
            padding: 5px 8px;
            font-size: 8px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
        }
        .profile-route-card__badge--light {
            background: rgba(255, 255, 255, 0.94);
            color: #0f172a;
        }
        .profile-route-card__badge--orange {
            background: #f97316;
            color: #ffffff;
        }
        .profile-route-card__featured {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 3;
            max-width: 130px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.72);
            color: #ffffff;
            padding: 6px 9px;
            font-size: 8px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
        }
        .profile-route-card__body {
            display: flex;
            min-width: 0;
            flex: 1;
            flex-direction: column;
            padding: 15px 16px 16px;
        }
        .profile-route-card__title {
            margin: 0;
            overflow: hidden;
            color: #0f172a;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 14px;
            line-height: 1.25;
            font-weight: 900;
            letter-spacing: 0;
            transition: color 180ms ease;
        }
        .profile-route-card:hover .profile-route-card__title {
            color: #f97316;
        }
        .profile-route-card__location {
            display: flex;
            align-items: center;
            gap: 5px;
            min-width: 0;
            margin: 7px 0 0;
            color: #64748b;
            font-size: 12px;
            line-height: 1.25;
            font-weight: 700;
        }
        .profile-route-card__location span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .profile-route-card__location-icon {
            width: 13px;
            height: 13px;
            flex: 0 0 auto;
            color: #94a3b8;
        }
        .profile-route-card__metrics {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 12px;
            color: #475569;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 800;
        }
        .profile-route-card__elevation {
            color: #f97316;
        }
        .profile-route-card__dot {
            color: #cbd5e1;
            font-weight: 900;
        }
        .profile-route-empty {
            border: 1px dashed #e5e7eb;
            border-radius: 22px;
            background: #f8fafc;
            padding: 24px 20px;
        }
        .profile-route-empty__title {
            margin: 0;
            color: #0f172a;
            font-size: 14px;
            line-height: 1.3;
            font-weight: 900;
        }
        .profile-route-empty__text {
            margin: 6px 0 0;
            color: #94a3b8;
            font-size: 12px;
            line-height: 1.45;
            font-weight: 700;
        }
        .profile-route-empty__action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 16px;
            border-radius: 14px;
            background: #0f172a;
            color: #ffffff;
            padding: 11px 14px;
            font-size: 10px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            transition: background-color 180ms ease, transform 180ms ease;
        }
        .profile-route-empty__action:hover {
            background: #f97316;
            transform: translateY(-1px);
        }
        .profile-travel-map {
            overflow: hidden;
        }
        .profile-travel-map__header > div:first-child {
            flex: 1 1 340px;
            min-width: 0;
        }
        .profile-travel-map__header {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
        }
        .profile-travel-map__eyebrow {
            margin: 0 0 8px;
            color: #f97316;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        .profile-travel-map__title {
            margin: 0;
            max-width: 100%;
            overflow: visible;
            text-overflow: clip;
            white-space: normal;
            color: #0f172a;
            font-size: clamp(23px, 2.7vw, 30px);
            line-height: 1.08;
            font-weight: 950;
            letter-spacing: 0;
        }
        .profile-travel-map__summary {
            display: block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 12px 0 0;
            color: #64748b;
            font-size: 14px;
            line-height: 1.25;
            font-weight: 800;
        }
        .profile-travel-map__summary span {
            display: inline-block;
            margin: 0 8px;
            color: #cbd5e1;
            font-weight: 900;
        }
        .profile-travel-map__all {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-height: 48px;
            flex: 0 0 auto;
            padding: 0 18px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            background: #ffffff;
            color: #1f2937;
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
            font-size: 13px;
            line-height: 1;
            font-weight: 900;
            white-space: nowrap;
            cursor: pointer;
            transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
        }
        .profile-travel-map__all:hover {
            color: #f97316;
            border-color: #fed7aa;
            transform: translateY(-1px);
            box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
        }
        .profile-travel-map__all-icon {
            width: 18px;
            height: 18px;
            transition: transform 180ms ease;
        }
        .profile-travel-map__all:hover .profile-travel-map__all-icon {
            transform: translateX(2px);
        }
        .profile-travel-map__map-shell {
            position: relative;
            width: 100%;
            height: clamp(220px, 28vw, 260px);
            min-height: 220px;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            border-radius: 24px;
            background: #eef2f7;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 34px rgba(15, 23, 42, 0.07);
        }
        .profile-travel-map__canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        .profile-travel-map__canvas .maplibregl-canvas {
            pointer-events: none;
        }
        .profile-travel-map__map-badge {
            position: absolute;
            left: 14px;
            bottom: 14px;
            z-index: 3;
            display: inline-flex;
            align-items: center;
            min-height: 32px;
            max-width: calc(100% - 28px);
            padding: 0 12px;
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            color: #334155;
            box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
            backdrop-filter: blur(12px);
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            white-space: nowrap;
        }
        .profile-travel-map__filters {
            position: absolute;
            left: 18px;
            bottom: 18px;
            z-index: 3;
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            max-width: calc(100% - 36px);
            overflow-x: auto;
            padding: 2px;
            scrollbar-width: none;
        }
        .profile-travel-map__filters::-webkit-scrollbar {
            display: none;
        }
        .profile-travel-map__filter {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 42px;
            flex: 0 0 auto;
            padding: 0 15px;
            border: 1px solid rgba(226, 232, 240, 0.92);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.92);
            color: #334155;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
            backdrop-filter: blur(14px);
            font-size: 12px;
            line-height: 1;
            font-weight: 900;
            white-space: nowrap;
            cursor: pointer;
            transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
        }
        .profile-travel-map__filter svg {
            width: 18px;
            height: 18px;
            flex: 0 0 auto;
        }
        .profile-travel-map__filter:hover {
            transform: translateY(-1px);
            border-color: #fed7aa;
            color: #f97316;
        }
        .profile-travel-map__filter.is-active {
            background: #0f172a;
            border-color: #0f172a;
            color: #ffffff;
        }
        .profile-travel-map__modal-header {
            flex-wrap: wrap;
        }
        .profile-travel-map__modal-header > div:first-child {
            flex: 1 1 220px;
            min-width: 0;
        }
        .profile-travel-map__modal-filters {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 0 1 auto;
            min-width: 0;
            overflow-x: auto;
            padding: 2px;
            scrollbar-width: none;
        }
        .profile-travel-map__modal-filters::-webkit-scrollbar {
            display: none;
        }
        .profile-travel-map__filter--modal {
            min-height: 36px;
            padding: 0 13px;
            border-radius: 999px;
            box-shadow: none;
            backdrop-filter: none;
            font-size: 11px;
        }
        .profile-travel-map__places {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 14px;
            min-width: 0;
        }
        .profile-travel-map__places-title {
            flex: 0 0 auto;
            margin: 0;
            color: #0f172a;
            font-size: 14px;
            line-height: 1;
            font-weight: 900;
            white-space: nowrap;
        }
        .profile-travel-map__place-list {
            display: flex;
            flex: 1 1 auto;
            gap: 10px;
            min-width: 0;
            overflow-x: auto;
            padding: 2px 2px 4px;
            scrollbar-width: none;
        }
        .profile-travel-map__place-list::-webkit-scrollbar {
            display: none;
        }
        .profile-travel-map__place {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            flex: 0 0 auto;
            min-height: 38px;
            max-width: 205px;
            border: 1px solid #e5e7eb;
            border-radius: 999px;
            background: #ffffff;
            color: #334155;
            padding: 0 13px 0 10px;
            font-size: 12px;
            line-height: 1;
            font-weight: 850;
            white-space: nowrap;
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
            transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
        }
        .profile-travel-map__place:hover {
            color: #f97316;
            border-color: #fed7aa;
            transform: translateY(-1px);
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
        }
        .profile-travel-map__place-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            flex: 0 0 auto;
            border-radius: 999px;
            background: #fff7ed;
            color: #f97316;
        }
        .profile-travel-map__place-icon svg {
            width: 14px;
            height: 14px;
        }
        .profile-travel-map__place-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .profile-travel-map__place-count {
            flex: 0 0 auto;
            color: #f97316;
            font-weight: 950;
        }
        .profile-travel-map__place--more {
            border-style: dashed;
            color: #475569;
            cursor: pointer;
        }
        .profile-travel-map__place--more svg {
            width: 16px;
            height: 16px;
        }
        .profile-travel-map__stats {
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            width: 100%;
            max-width: 100%;
            margin: -4px 0 14px;
            overflow-x: auto;
            padding: 1px 2px 4px;
            scrollbar-width: none;
        }
        .profile-travel-map__stats::-webkit-scrollbar {
            display: none;
        }
        .profile-travel-stat {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 0 0 auto;
            min-width: 0;
            min-height: 46px;
            padding: 0 12px 0 10px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
        }
        .profile-travel-stat__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            border-radius: 999px;
            color: var(--travel-stat-color, #f97316);
            background: var(--travel-stat-bg, #fff7ed);
        }
        .profile-travel-stat__icon svg {
            width: 16px;
            height: 16px;
        }
        .profile-travel-stat__value {
            max-width: 92px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #0f172a;
            font-size: 17px;
            line-height: 1;
            font-weight: 950;
            letter-spacing: 0;
        }
        .profile-travel-stat__label {
            max-width: 112px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #64748b;
            font-size: 12px;
            line-height: 1;
            font-weight: 800;
        }
        .profile-travel-stat--green {
            --travel-stat-color: #16a34a;
            --travel-stat-bg: #dcfce7;
        }
        .profile-travel-stat--blue {
            --travel-stat-color: #2563eb;
            --travel-stat-bg: #dbeafe;
        }
        .profile-travel-stat--purple {
            --travel-stat-color: #7c3aed;
            --travel-stat-bg: #f3e8ff;
        }
        .profile-travel-map__empty {
            border: 1px solid #e5e7eb;
            border-radius: 24px;
            background: #f8fafc;
            padding: 24px;
        }
        .profile-travel-map__empty-title {
            margin: 0;
            color: #0f172a;
            font-size: 15px;
            line-height: 1.3;
            font-weight: 900;
        }
        .profile-travel-map__empty-text {
            margin: 7px 0 0;
            color: #64748b;
            font-size: 13px;
            line-height: 1.45;
            font-weight: 700;
        }
        .profile-travel-map__empty-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }
        .profile-travel-map__empty-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 40px;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            background: #ffffff;
            color: #334155;
            padding: 0 14px;
            font-size: 10px;
            line-height: 1;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
        }
        .profile-travel-map__empty-action:hover {
            border-color: #fed7aa;
            color: #f97316;
        }
        .profile-travel-map__empty-action--dark {
            border-color: #0f172a;
            background: #0f172a;
            color: #ffffff;
        }
        .profile-travel-popup {
            min-width: 220px;
            padding: 6px 5px 4px;
            color: #0f172a;
        }
        .profile-travel-popup__title {
            margin: 0 0 7px;
            font-size: 15px;
            line-height: 1.2;
            font-weight: 950;
            letter-spacing: 0;
        }
        .profile-travel-popup__line {
            margin: 0 0 9px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.35;
            font-weight: 800;
        }
        .profile-travel-popup__latest {
            margin: 0 0 8px;
            font-size: 13px;
            line-height: 1.35;
            font-weight: 850;
        }
        .profile-travel-popup__metrics {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-bottom: 12px;
            color: #64748b;
            font-size: 12px;
            line-height: 1;
            font-weight: 850;
        }
        .profile-travel-popup__metrics span + span {
            color: #f97316;
        }
        .profile-travel-popup__link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #f97316;
            font-size: 12px;
            line-height: 1;
            font-weight: 950;
        }
        .maplibregl-popup-content:has(.profile-travel-popup) {
            border-radius: 18px;
            padding: 12px 14px;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
        }
        .profile-events-card {
            overflow: hidden;
            border: 1px solid #e5e7eb;
            border-radius: 34px;
            background: #ffffff;
            padding: 24px;
            box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
        }
        .profile-events-card__header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }
        .profile-events-card__header p {
            margin: 0 0 7px;
            color: #f97316;
            font-size: 10px;
            line-height: 1;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: 0.14em;
        }
        .profile-events-card__header h2 {
            margin: 0;
            color: #0f172a;
            font-size: 24px;
            line-height: 1.1;
            font-weight: 950;
            letter-spacing: 0;
        }
        .profile-events-card__header > span {
            min-width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            background: #fff7ed;
            color: #f97316;
            padding: 0 12px;
            font-size: 18px;
            line-height: 1;
            font-weight: 950;
        }
        .profile-current-event {
            position: relative;
            overflow: hidden;
            border-radius: 28px;
            background:
                radial-gradient(circle at 88% 20%, rgba(249, 115, 22, 0.22), transparent 28%),
                linear-gradient(145deg, #071225 0%, #0b1830 100%);
            color: #ffffff;
            padding: 28px;
            margin-bottom: 16px;
        }
        .profile-current-event__status {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 8px 12px;
            font-size: 10px;
            line-height: 1;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .profile-current-event__status span {
            width: 9px;
            height: 9px;
            border-radius: 999px;
            background: #22c55e;
            box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
        }
        .profile-current-event h3 {
            max-width: 760px;
            margin: 18px 0 0;
            color: #ffffff;
            font-size: clamp(28px, 4vw, 42px);
            line-height: 1.04;
            font-weight: 950;
            letter-spacing: 0;
        }
        .profile-current-event p {
            max-width: 720px;
            margin: 10px 0 0;
            color: rgba(255, 255, 255, 0.72);
            font-size: 15px;
            line-height: 1.45;
            font-weight: 750;
        }
        .profile-current-event__meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 18px;
        }
        .profile-current-event__meta span {
            display: inline-flex;
            min-height: 34px;
            align-items: center;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 0 12px;
            font-size: 12px;
            line-height: 1;
            font-weight: 850;
        }
        .profile-current-event a {
            display: inline-flex;
            min-height: 42px;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border-radius: 15px;
            background: #ffffff;
            color: #071225;
            padding: 0 15px;
            margin-top: 22px;
            font-size: 11px;
            line-height: 1;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .profile-current-event a svg {
            width: 16px;
            height: 16px;
        }
        .profile-event-list {
            display: grid;
            gap: 10px;
        }
        .profile-event-row {
            display: grid;
            grid-template-columns: 62px minmax(0, 1fr);
            align-items: center;
            gap: 14px;
            border: 1px solid #e5e7eb;
            border-radius: 22px;
            background: #f8fafc;
            color: inherit;
            padding: 12px;
            transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
        }
        .profile-event-row:hover {
            transform: translateY(-2px);
            border-color: #fed7aa;
            background: #ffffff;
        }
        .profile-event-row__date {
            min-height: 62px;
            display: grid;
            place-items: center;
            align-content: center;
            border-radius: 18px;
            background: #fff7ed;
            color: #f97316;
        }
        .profile-event-row__date strong {
            font-size: 23px;
            line-height: 1;
            font-weight: 950;
        }
        .profile-event-row__date span {
            margin-top: 3px;
            font-size: 10px;
            line-height: 1;
            font-weight: 950;
            text-transform: uppercase;
        }
        .profile-event-row__body {
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .profile-event-row__body > div {
            min-width: 0;
        }
        .profile-event-row__body h3 {
            margin: 0;
            overflow: hidden;
            color: #0f172a;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 16px;
            line-height: 1.2;
            font-weight: 950;
        }
        .profile-event-row__body p {
            margin: 6px 0 0;
            overflow: hidden;
            color: #64748b;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 750;
        }
        .profile-event-row__badges {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }
        .profile-event-row__badges span {
            display: inline-flex;
            min-height: 30px;
            align-items: center;
            border-radius: 999px;
            background: #ffffff;
            color: #64748b;
            padding: 0 10px;
            font-size: 10px;
            line-height: 1;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .profile-event-row__badges .is-starred {
            width: 30px;
            justify-content: center;
            background: #fff7ed;
            color: #f97316;
            padding: 0;
            font-size: 16px;
            letter-spacing: 0;
        }
        .custom-scrollbar::-webkit-scrollbar { width: 6px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background-color: #e5e7eb; border-radius: 20px; }
        #drafts-drawer, #achievements-modal-content, #followers-modal-content, #following-modal-content, #edit-modal-content, #create-album-modal-content { scroll-behavior: smooth; }
        input[type="range"]::-webkit-slider-thumb { border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

        @media (max-width: 767px) {
            .profile-header-cover {
                height: 180px !important;
            }
            .profile-header-name {
                font-size: 22px !important;
                line-height: 1.05 !important;
                gap: 7px;
            }
            .profile-verified-badge {
                width: 20px;
                height: 20px;
            }
            .profile-header-meta {
                font-size: 11px;
            }
            .profile-header-city {
                font-size: 10px;
                gap: 4px;
                margin: 1px 0 2px;
            }
            .profile-header-city svg {
                width: 10px;
                height: 10px;
            }
            .profile-page .follow-btn-ui,
            .profile-page a[href*="start_chat"] {
                min-height: 42px;
                border-radius: 14px;
            }
            .profile-route-experience__header {
                flex-direction: column;
                gap: 12px;
                margin-bottom: 16px;
            }

            .profile-route-experience__title {
                font-size: 20px;
            }

            .profile-route-experience__summary {
                font-size: 11px;
            }

            .profile-route-experience__all {
                width: fit-content;
            }

            .profile-events-card {
                border-right: 0;
                border-left: 0;
                border-radius: 0;
                padding: 18px 14px;
            }

            .profile-events-card__header {
                margin-bottom: 14px;
            }

            .profile-events-card__header h2 {
                font-size: 21px;
            }

            .profile-current-event {
                border-radius: 24px;
                padding: 22px;
            }

            .profile-current-event h3 {
                font-size: 28px;
            }

            .profile-event-row {
                grid-template-columns: 54px minmax(0, 1fr);
                gap: 10px;
                border-radius: 18px;
                padding: 10px;
            }

            .profile-event-row__date {
                min-height: 54px;
                border-radius: 16px;
            }

            .profile-event-row__body {
                align-items: flex-start;
                flex-direction: column;
                gap: 8px;
            }

            .profile-event-row__badges {
                flex-wrap: wrap;
            }

            .profile-route-grid {
                gap: 14px;
                margin-right: -14px;
                padding-right: 14px;
            }

            .profile-route-card {
                flex-basis: min(82vw, 300px);
                border-radius: 22px;
            }

            .profile-route-card__body {
                padding: 14px;
            }

            .profile-travel-map__header {
                flex-direction: column;
                gap: 12px;
                margin-bottom: 12px;
            }

            .profile-travel-map__title {
                font-size: 22px;
            }

            .profile-travel-map__summary {
                font-size: 12px;
            }

            .profile-travel-map__summary span {
                margin: 0 6px;
            }

            .profile-travel-map__all {
                width: 100%;
                min-height: 40px;
                padding: 0 14px;
                font-size: 12px;
            }

            .profile-travel-map__map-shell {
                height: 210px;
                min-height: 210px;
                border-radius: 20px;
            }

            .profile-travel-map__map-badge {
                left: 10px;
                bottom: 10px;
                min-height: 30px;
                padding: 0 10px;
                font-size: 10px;
            }

            .profile-travel-map__filter {
                min-height: 38px;
                padding: 0 12px;
                font-size: 11px;
            }

            .profile-travel-map__filter svg {
                width: 16px;
                height: 16px;
            }

            .profile-travel-map__modal-filters {
                order: 3;
                width: 100%;
                justify-content: flex-start;
            }

            .profile-travel-map__places {
                align-items: flex-start;
                flex-direction: column;
                gap: 9px;
                margin-top: 12px;
            }

            .profile-travel-map__place-list {
                width: 100%;
            }

            .profile-travel-map__stats {
                flex-wrap: wrap;
                gap: 8px;
                overflow: visible;
                padding-bottom: 0;
            }

            .profile-travel-stat {
                min-height: 40px;
                padding: 0 10px 0 8px;
                border-radius: 14px;
            }

            .profile-travel-stat__icon {
                width: 26px;
                height: 26px;
                flex-basis: 26px;
            }

            .profile-travel-stat__icon svg {
                width: 15px;
                height: 15px;
            }

            .profile-travel-stat__value {
                font-size: 15px;
            }

            .profile-travel-stat__label {
                font-size: 10px;
            }

            .profile-page {
                padding-bottom: 108px !important;
            }

            .profile-tabs-bar {
                margin-bottom: 8px !important;
                padding-left: 14px !important;
                padding-right: 14px !important;
            }

            .profile-tabs-scroll {
                width: 100%;
                gap: 14px !important;
                padding-right: 0 !important;
                overflow-x: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .profile-tabs-scroll::-webkit-scrollbar {
                display: none;
            }

            .profile-tab-btn {
                flex: 0 0 auto;
                padding-bottom: 12px !important;
                font-size: 10px !important;
                line-height: 1.1 !important;
                letter-spacing: 0.06em !important;
            }

            .profile-page .quick-post-card {
                padding: 12px 14px !important;
                margin-bottom: 8px !important;
            }

            .profile-page .quick-post-card .quick-post-input-row {
                gap: 10px !important;
                margin-bottom: 4px !important;
            }

            .profile-page .quick-post-card .quick-post-input-row > .w-10 {
                width: 34px !important;
                height: 34px !important;
            }

            .profile-page #quick-text-input {
                font-size: 12px !important;
                line-height: 1.35 !important;
                padding-top: 5px !important;
                padding-bottom: 14px !important;
                min-height: 34px !important;
            }

            .profile-page #char-counter {
                font-size: 8px !important;
            }

            .profile-page .quick-post-card .quick-post-action-row {
                padding-top: 8px !important;
                align-items: center !important;
                gap: 8px !important;
            }

            .profile-page .quick-post-card #quick-media-btn,
            .profile-page .quick-post-card #quick-article-link span:first-child {
                width: 28px !important;
                height: 28px !important;
            }

            .profile-page .quick-post-card #quick-location-btn,
            .profile-page .quick-post-card .custom-dropdown-trigger {
                min-height: 28px !important;
                padding: 5px 8px !important;
                font-size: 8px !important;
                border-radius: 10px !important;
            }

            .profile-page .quick-post-card #quick-location-btn {
                width: 28px !important;
                height: 28px !important;
                min-height: 28px !important;
                padding: 0 !important;
                border-radius: 999px !important;
            }

            .profile-page #quick-publish-btn {
                min-height: 34px !important;
                padding: 8px 14px !important;
                font-size: 8px !important;
                border-radius: 11px !important;
            }
        }

@media (max-width: 767px) {
    .profile-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile-page button,
    .profile-page a[role="button"],
    .profile-page .profile-tab-btn,
    .profile-page .profile-route-experience__tab,
    .profile-page .profile-route-empty__action,
    .profile-page .profile-travel-map__empty-action,
    .profile-page .profile-route-experience__all,
    .profile-page .profile-travel-map__all {
        min-height: 44px;
    }

    .profile-page .quick-post-card #quick-media-btn,
    .profile-page .quick-post-card #quick-location-btn,
    .profile-page .quick-post-card #quick-article-link span:first-child {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .profile-page .quick-post-card .custom-dropdown-trigger {
        min-height: 44px !important;
    }

    .profile-route-experience__tabs,
    .profile-tabs-scroll,
    .profile-travel-map__filters {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .profile-route-experience__tab,
    .profile-tab-btn,
    .profile-travel-map__filter {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .profile-travel-map__map-shell {
        min-height: 200px;
    }

    .profile-event-row,
    .profile-current-event,
    .profile-route-card,
    .profile-events-card,
    .profile-travel-map {
        max-width: 100%;
    }
}

/* App profile parity v1: the mobile web profile follows the native profile hierarchy. */
.profile-app-hero {
    display: none;
}

@media (max-width: 767px) {
    .profile-page {
        background: #fff !important;
    }

    .profile-app-hero {
        display: block !important;
        overflow: hidden;
        margin: 0 0 14px;
        border: 0;
        border-radius: 0;
        background: #fff;
        color: #111827;
        box-shadow: none;
    }

    .profile-desktop-hero {
        display: none !important;
    }

    .profile-app-hero__cover {
        position: relative;
        height: 252px;
        overflow: hidden;
        background: #172033;
    }

    .profile-app-hero__cover-image,
    .profile-app-hero__cover-fallback {
        width: 100%;
        height: 100%;
    }

    .profile-app-hero__cover-image {
        display: block;
        object-fit: cover;
    }

    .profile-app-hero__cover-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #18263a, #0f172a);
    }

    .profile-app-hero__cover-fallback img {
        width: 64%;
        max-width: 238px;
        filter: brightness(0) invert(1);
        opacity: .72;
    }

    .profile-app-hero__shade {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, .32) 0%, rgba(15, 23, 42, .04) 46%, rgba(15, 23, 42, .44) 100%);
        pointer-events: none;
    }

    .profile-app-hero__top-actions {
        position: absolute;
        z-index: 3;
        top: max(14px, env(safe-area-inset-top));
        right: 16px;
        display: flex;
        gap: 10px;
    }

    .profile-app-hero__glass-action {
        display: inline-flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .25);
        border-radius: 50%;
        background: rgba(15, 23, 42, .7);
        color: #fff;
        box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .profile-app-hero__glass-action svg {
        width: 22px;
        height: 22px;
    }

    .profile-app-hero__edit-cover {
        position: absolute;
        z-index: 3;
        right: 16px;
        bottom: 16px;
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 999px;
        background: rgba(15, 23, 42, .78);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .profile-app-hero__edit-cover svg {
        width: 16px;
        height: 16px;
    }

    .profile-app-hero__identity {
        padding: 0 16px 20px;
        background: #fff;
    }

    .profile-app-hero__avatar-row {
        min-height: 70px;
    }

    .profile-app-avatar {
        position: relative;
        z-index: 4;
        display: flex;
        width: 132px;
        height: 132px;
        align-items: center;
        justify-content: center;
        margin-top: -66px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
    }

    .profile-app-avatar__ring {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: conic-gradient(from -90deg, #f97316 0 var(--profile-xp-progress, 0deg), #ffedd5 var(--profile-xp-progress, 0deg) 360deg);
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
        mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
        transform: rotate(0deg);
        animation: profile-app-ring-in 1.1s cubic-bezier(.22, 1, .36, 1) both;
    }

    @keyframes profile-app-ring-in {
        from { opacity: 0; transform: rotate(-110deg); }
        to { opacity: 1; transform: rotate(0); }
    }

    .profile-app-avatar__photo {
        display: block;
        width: 112px;
        height: 112px;
        overflow: hidden;
        border: 4px solid #fff;
        border-radius: 50%;
        background: #f3f4f6;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
    }

    .profile-app-avatar__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-app-rank {
        display: inline-flex;
        min-height: 30px;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
        padding: 0 10px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f8fafc;
        color: #111827;
        white-space: nowrap;
    }

    .profile-app-rank svg {
        width: 15px;
        height: 15px;
        color: #f97316;
    }

    .profile-app-rank strong {
        overflow: hidden;
        max-width: 152px;
        font-size: 12px;
        font-weight: 700;
        text-overflow: ellipsis;
    }

    .profile-app-rank > span {
        width: 1px;
        height: 14px;
        background: #e5e7eb;
    }

    .profile-app-rank small {
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }

    .profile-app-hero__name-row {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    .profile-app-hero__name-block {
        min-width: 0;
        flex: 1;
        padding-top: 5px;
    }

    .profile-app-hero__name-block h1 {
        margin: 0;
        color: #111827;
        font-size: clamp(25px, 7.2vw, 29px);
        line-height: 1.16;
        font-weight: 700;
        letter-spacing: -.5px;
    }

    .profile-app-hero__name-block p {
        overflow: hidden;
        margin: 1px 0 0;
        color: #7b8491;
        font-size: 15px;
        line-height: 20px;
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-app-reputation {
        flex: 0 0 130px;
        width: 130px;
        min-height: 64px;
        margin-left: auto;
        padding: 7px 9px;
        border: 1px solid #d8e7e0;
        border-radius: 14px;
        background: #f2f8f5;
        color: #193a31;
        text-align: left;
    }

    .profile-app-reputation > span {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px;
    }

    .profile-app-reputation small { color: #35594c; font-size: 10px; font-weight: 700; }
    .profile-app-reputation strong { font-size: 15px; line-height: 1; font-weight: 800; }
    .profile-app-reputation em { color: #698178; font-size: 9px; font-style: normal; font-weight: 600; }
    .profile-app-reputation b { display: block; overflow: hidden; margin-top: 2px; color: #5e7b70; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .profile-app-reputation i { display: block; height: 5px; overflow: hidden; margin-top: 6px; border-radius: 999px; background: #d9e8e0; }
    .profile-app-reputation i span { display: block; height: 100%; border-radius: inherit; background: #328761; }

    .profile-app-hero__location {
        display: flex;
        min-height: 22px;
        align-items: center;
        gap: 5px;
        margin: 6px 0 0;
        color: #7b8491;
        font-size: 14px;
        font-weight: 500;
    }

    .profile-app-hero__location svg { width: 20px; height: 20px; flex: 0 0 auto; }

    .profile-app-hero__bio {
        margin: 8px 0 0;
        color: #374151;
        font-size: 15px;
        line-height: 22px;
        font-weight: 400;
    }

    .profile-app-metrics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        margin-top: 16px;
        padding: 8px 0;
    }

    .profile-app-metrics > :is(button, span) {
        display: flex;
        min-width: 0;
        min-height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0 1px;
        border: 0;
        background: transparent;
        color: #111827;
    }

    .profile-app-metrics strong {
        max-width: 100%;
        overflow: hidden;
        font-size: 17px;
        line-height: 22px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-app-metrics span span,
    .profile-app-metrics button span {
        max-width: 100%;
        overflow: hidden;
        color: #7b8491;
        font-size: clamp(8px, 2.55vw, 10px);
        line-height: 14px;
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-app-actions {
        display: flex;
        gap: 8px;
        min-height: 48px;
        margin-top: 8px;
    }

    .profile-app-actions__primary,
    .profile-app-actions__square,
    .profile-app-actions__public {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .profile-app-actions__primary { min-width: 0; flex: 1; padding: 0 12px; }
    .profile-app-actions__primary svg,
    .profile-app-actions__primary img { width: 20px; height: 20px; }
    .profile-app-actions__primary--neutral { border: 1px solid #e5e7eb; background: #f7f7f7; color: #111827; }
    .profile-app-actions__primary--follow { border: 1px solid #f97316; background: #f97316; color: #fff; }
    .profile-app-actions__primary--follow.is-following { background: #fff; color: #f97316; }
    .profile-app-actions__square { width: 52px; flex: 0 0 52px; padding: 0; border: 1px solid #e5e7eb; background: #fff; }
    .profile-app-actions__square img { width: 21px; height: 21px; }
    .profile-app-actions__public { width: 100%; border: 1px solid #e5e7eb; background: #f8fafc; color: #64748b; }

    .profile-app-featured-award {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 126px;
        align-items: center;
        gap: 16px;
        margin-top: 14px;
        padding: 16px;
        overflow: hidden;
        border: 1px solid #f2e5d8;
        border-radius: 19px;
        background: #fff7ef;
        text-align: left;
    }

    .profile-app-featured-award__art {
        display: flex;
        width: 84px;
        height: 84px;
        flex: 0 0 84px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 1px solid #e7d1bf;
        border-radius: 21px;
        background: #ffeee4;
        color: #f97316;
    }

    .profile-app-featured-award__art img { width: 78px; height: 78px; object-fit: contain; }
    .profile-app-featured-award__art svg { width: 58px; height: 58px; }
    .profile-app-featured-award__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding-right: 18px; }
    .profile-app-featured-award__copy small { color: #f97316; font-size: 9px; line-height: 1.2; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
    .profile-app-featured-award__copy strong { margin-top: 4px; color: #111827; font-size: 16px; line-height: 20px; font-weight: 700; }
    .profile-app-featured-award__copy span { overflow: hidden; margin-top: 3px; color: #7b8491; font-size: 12px; line-height: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
    .profile-app-featured-award__copy em { margin-top: 3px; color: #7b8491; font-size: 11px; line-height: 14px; font-style: normal; font-weight: 600; }
    .profile-app-featured-award__chevron { position: absolute; top: 50%; right: 13px; width: 20px; height: 20px; color: #7b8491; transform: translateY(-50%); }

    .profile-mobile-sidebar-toggle {
        min-height: 82px !important;
        margin: 0 12px 14px !important;
        padding: 14px 16px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 7px 20px rgba(15, 23, 42, .04) !important;
    }

    .profile-mobile-sidebar-toggle__eyebrow { display: none !important; }
    .profile-mobile-sidebar-toggle__copy strong::before { content: '✧'; margin-right: 10px; color: #f97316; font-size: 22px; }
    .profile-mobile-sidebar-toggle__copy strong { font-size: 16px !important; font-weight: 700 !important; }
    .profile-mobile-sidebar-toggle__copy small { margin-top: 4px !important; color: #7b8491 !important; font-size: 11px !important; font-weight: 500 !important; }

    .profile-content-layout {
        padding: 0 12px 28px !important;
        background: #fff;
    }

    .profile-page .profile-main-sections { gap: 28px !important; }

    .profile-route-experience,
    #profile-photos,
    #profile-posts,
    .profile-achievements,
    .profile-mobile-reference,
    .profile-mobile-reference__visited {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .profile-route-experience { padding: 0 !important; }
    .profile-route-experience__header { display: flex !important; margin: 0 4px 12px !important; }
    .profile-route-experience__title { font-size: 20px !important; line-height: 1.2 !important; font-weight: 700 !important; }
    .profile-route-experience__summary { margin-top: 4px !important; font-size: 12px !important; }
    .profile-route-experience__all { font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
    .profile-route-map,
    .profile-route-sort,
    .profile-route-slider-controls { display: none !important; }
    .profile-route-toolbar { display: block !important; margin-bottom: 12px !important; }
    .profile-route-experience__tabs { width: 100% !important; overflow-x: auto !important; border: 0 !important; border-bottom: 1px solid #e5e7eb !important; border-radius: 0 !important; background: transparent !important; }
    .profile-route-experience__tab { min-height: 42px !important; padding: 0 12px !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; background: transparent !important; color: #7b8491 !important; font-size: 13px !important; font-weight: 500 !important; }
    .profile-route-experience__tab.is-active { border-bottom-color: #f97316 !important; color: #111827 !important; font-weight: 700 !important; }
    .profile-route-experience__tab-count { display: none !important; }
    .profile-route-grid { display: flex !important; flex-direction: column !important; gap: 10px !important; }
    .profile-route-card { width: 100% !important; min-height: 0 !important; aspect-ratio: 1.72 !important; border: 0 !important; border-radius: 20px !important; box-shadow: none !important; }

    .profile-mobile-reference,
    .profile-mobile-reference__visited { gap: 28px !important; padding: 0 4px !important; }
    .profile-mobile-reference__heading { margin-bottom: 14px !important; }
    .profile-mobile-reference__heading h3 { font-size: 20px !important; font-weight: 700 !important; }
    .profile-mobile-reference__stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; border: 0 !important; border-radius: 0 !important; }
    .profile-mobile-reference__stat { min-height: 78px !important; flex-direction: column !important; justify-content: center !important; gap: 7px !important; padding: 6px 2px !important; border: 0 !important; text-align: center !important; }
    .profile-mobile-reference__stat:nth-child(n+5) { display: none !important; }
    .profile-mobile-reference__stat > span:last-child { align-items: center !important; gap: 2px !important; }
    .profile-mobile-reference__stat strong { font-size: clamp(12px, 3.2vw, 15px) !important; }
    .profile-mobile-reference__stat small { font-size: 8px !important; white-space: nowrap; }
    .profile-mobile-reference__icon { width: 42px !important; height: 42px !important; flex-basis: 42px !important; }

    .profile-achievements { padding: 0 4px !important; }
    .profile-achievements__head { align-items: center !important; }
    .profile-achievements__eyebrow,
    .profile-achievements__intro,
    .profile-achievements__categories { display: none !important; }
    .profile-achievements__head h2 { font-size: 20px !important; line-height: 1.2 !important; font-weight: 700 !important; }
    .profile-achievements__all { font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
    .profile-achievements__featured { gap: 14px !important; margin-top: 14px !important; padding-bottom: 4px !important; overflow-x: auto !important; }
    .profile-achievements__badge { flex: 0 0 108px !important; width: 108px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    .profile-achievements__badge img { width: 88px !important; height: 88px !important; margin: 0 auto 8px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
    .profile-achievements__badge-category { color: #f97316 !important; font-size: 9px !important; font-weight: 700 !important; }
    .profile-achievements__badge strong { margin-top: 4px !important; font-size: 11px !important; line-height: 14px !important; }

    #profile-photos { padding: 0 4px !important; }
    #profile-photos > div:first-child { margin-bottom: 14px !important; }
    #profile-photos h3 { font-size: 20px !important; line-height: 1.2 !important; font-weight: 700 !important; }
    #profile-photos .profile-photos-eyebrow { display: none !important; }
    #profile-photos a[href*="albums"] { font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }

    #profile-posts { padding: 0 4px !important; }
    #profile-posts > div:first-child > div:first-child p { display: none !important; }
    #profile-posts > div:first-child > div:first-child h3 { font-size: 20px !important; line-height: 1.2 !important; font-weight: 700 !important; }

    @media (prefers-reduced-motion: reduce) {
        .profile-app-avatar__ring { animation: none; }
    }
}

@media (max-width: 359px) {
    .profile-app-hero__identity { padding-right: 12px; padding-left: 12px; }
    .profile-app-reputation { width: 116px; flex-basis: 116px; }
    .profile-app-reputation small { font-size: 9px; }
    .profile-app-featured-award { gap: 12px; padding: 14px 12px; }
    .profile-app-featured-award__art { width: 76px; height: 76px; flex-basis: 76px; }
    .profile-app-featured-award__art img { width: 72px; height: 72px; }
}

/* Full route library opened from the profile. */
.profile-routes-library-modal {
    position: fixed;
    inset: 0;
    z-index: 760;
    display: grid;
    place-items: center;
    padding: 24px;
}

.profile-routes-library-modal[hidden] { display: none; }
.profile-routes-library-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, .72); backdrop-filter: blur(10px); }
.profile-routes-library-modal__dialog { position: relative; display: flex; flex-direction: column; width: min(1180px, 100%); max-height: min(88vh, 920px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .36); border-radius: 32px; background: #fff; box-shadow: 0 32px 90px rgba(15, 23, 42, .35); }
.profile-routes-library-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid #eef1f5; }
.profile-routes-library-modal__eyebrow { margin: 0 0 4px; color: #ff4e25; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.profile-routes-library-modal__header h3 { margin: 0; color: #111827; font-size: clamp(22px, 2.2vw, 32px); font-weight: 900; letter-spacing: -.035em; }
.profile-routes-library-modal__header span { display: block; margin-top: 4px; color: #8b95a5; font-size: 12px; font-weight: 700; }
.profile-routes-library-modal__close { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 1px solid #e5e7eb; border-radius: 50%; background: #f8fafc; color: #334155; font-size: 28px; line-height: 1; transition: .2s ease; }
.profile-routes-library-modal__close:hover { border-color: #ffd4c8; background: #fff2ed; color: #ff4e25; transform: rotate(5deg); }
.profile-routes-library-modal__toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 26px 10px; }
.profile-routes-library-modal__search { display: flex; flex: 1; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f8fafc; color: #94a3b8; }
.profile-routes-library-modal__search svg { width: 19px; height: 19px; flex: 0 0 auto; }
.profile-routes-library-modal__search input { width: 100%; border: 0; outline: 0; background: transparent; color: #111827; font-size: 14px; font-weight: 700; }
.profile-routes-library-modal__new-folder { min-height: 48px; padding: 0 18px; border: 1px solid #ffd7ca; border-radius: 16px; background: #fff4ef; color: #f4512c; font-size: 12px; font-weight: 900; white-space: nowrap; }
.profile-routes-library-modal__new-folder span { margin-right: 5px; font-size: 20px; vertical-align: -2px; }
.profile-route-folder-form { display: flex; gap: 8px; padding: 2px 26px 10px; }
.profile-route-folder-form[hidden] { display: none; }
.profile-route-folder-form input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 14px; outline: 0; font-size: 13px; font-weight: 700; }
.profile-route-folder-form input:focus { border-color: #ff9d82; box-shadow: 0 0 0 3px rgba(255, 78, 37, .1); }
.profile-route-folder-form button { min-width: 108px; border: 0; border-radius: 14px; background: #ff4e25; color: #fff; font-size: 12px; font-weight: 900; }
.profile-route-folder-tabs { display: flex; flex: 0 0 auto; gap: 8px; overflow-x: auto; padding: 4px 26px 12px; scrollbar-width: none; }
.profile-route-folder-tabs::-webkit-scrollbar { display: none; }
.profile-route-folder-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #475569; font-size: 11px; font-weight: 900; white-space: nowrap; }
.profile-route-folder-tab::before { width: 9px; height: 9px; border-radius: 50%; background: var(--folder-color, #ff4e25); content: ''; }
.profile-route-folder-tab:first-child::before { display: none; }
.profile-route-folder-tab span { color: #94a3b8; font-size: 10px; }
.profile-route-folder-tab:hover { border-color: var(--folder-color, #ff4e25); color: #111827; }
.profile-route-folder-tab.is-active { border-color: #111827; background: #111827; color: #fff; }
.profile-route-folder-tab.is-active::before { background: #fff; }
.profile-route-folder-tab.is-active span { color: rgba(255, 255, 255, .72); }
.profile-routes-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-height: 220px; overflow-y: auto; padding: 10px 26px 28px; }
.profile-routes-library-item { position: relative; min-width: 0; }
.profile-routes-library-item[hidden] { display: none; }
.profile-routes-library-item .profile-route-card { width: 100%; height: 100%; min-height: 345px; }
.profile-routes-library-item__folder { position: absolute; z-index: 5; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%; background: rgba(15, 23, 42, .68); color: #fff; backdrop-filter: blur(8px); transition: .2s ease; }
.profile-routes-library-item__folder:hover { background: #ff4e25; transform: scale(1.06); }
.profile-routes-library-item__folder svg { width: 19px; height: 19px; }
.profile-routes-library-empty { grid-column: 1 / -1; padding: 72px 24px; border: 1px dashed #dbe1e8; border-radius: 24px; color: #94a3b8; text-align: center; font-weight: 800; }
body.profile-routes-library-open { overflow: hidden; }

@media (max-width: 900px) {
    .profile-routes-library-modal { align-items: end; padding: 0; }
    .profile-routes-library-modal__dialog { width: 100%; max-height: 94vh; border-radius: 28px 28px 0 0; }
    .profile-routes-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 16px; }
    .profile-routes-library-modal__header, .profile-routes-library-modal__toolbar { padding-inline: 16px; }
    .profile-route-folder-form, .profile-route-folder-tabs { padding-inline: 16px; }
}

@media (max-width: 620px) {
    .profile-routes-library-modal__toolbar { align-items: stretch; flex-direction: column; }
    .profile-routes-library-modal__new-folder { width: 100%; }
    .profile-routes-library-grid { grid-template-columns: 1fr; }
}

/* Reference profile redesign: compact hero, route-first layout, right sidebar. */
body:has(.profile-page) {
    background: #f6f7f9;
}

.profile-page {
    width: min(calc(100vw - 48px), 1240px) !important;
    max-width: 1240px !important;
    margin-top: 22px !important;
    color: #111827;
}

.profile-page > section:first-child {
    overflow: visible !important;
    margin-bottom: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-page .profile-header-cover {
    height: 302px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #dbe2ea !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
}

.profile-page .profile-header-cover img {
    object-position: center 46%;
}

.profile-page .profile-header-cover > .absolute.inset-0 {
    background: linear-gradient(90deg, rgba(15, 23, 42, .52) 0%, rgba(15, 23, 42, .24) 44%, rgba(15, 23, 42, .05) 100%) !important;
}

.profile-page .profile-header-info {
    z-index: 4;
    margin-top: -148px !important;
    padding: 0 24px 0 !important;
}

.profile-page .profile-header-grid {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center !important;
    gap: 22px !important;
    min-height: 138px;
    margin-bottom: 0 !important;
}

.profile-page .profile-header-avatar-col {
    width: 150px !important;
    margin-top: 0 !important;
}

.profile-page .profile-header-avatar {
    width: 148px !important;
    height: 148px !important;
    margin: 0 !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, .24) !important;
}

.profile-page .profile-header-avatar > .absolute {
    inset: 4px !important;
    background: #ffffff !important;
    padding: 3px !important;
}

.profile-page .profile-header-level-card,
.profile-page .profile-header-main .profile-header-stats,
.profile-page .profile-header-badges {
    display: none !important;
}

.profile-page .profile-header-main {
    padding-top: 0 !important;
}

.profile-page .profile-header-main-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 24px !important;
}

.profile-page .profile-header-name {
    max-width: 560px;
    color: #ffffff !important;
    font-size: 32px !important;
    line-height: 1.06 !important;
    font-weight: 850 !important;
    text-shadow: 0 10px 28px rgba(15, 23, 42, .35);
}

.profile-page .profile-header-meta {
    color: #ffedd5 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.profile-page .profile-header-city {
    color: rgba(255, 255, 255, .92) !important;
    font-size: 13px !important;
    font-weight: 560 !important;
}

.profile-page .profile-header-city svg {
    color: rgba(255, 255, 255, .72) !important;
}

.profile-page .profile-header-bio {
    display: -webkit-box !important;
    max-width: 560px !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
    font-weight: 520 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-page .profile-header-actions {
    padding-top: 0 !important;
}

.profile-page .profile-header-action-row {
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.profile-page .profile-header-action-row > a,
.profile-page .profile-header-action-row > button,
.profile-page .profile-header-action-row > .relative > button {
    min-height: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    border-color: rgba(255, 255, 255, .82) !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #1f2937 !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .15) !important;
    backdrop-filter: blur(12px);
    font-size: 11px !important;
    font-weight: 720 !important;
    text-transform: none !important;
}

.profile-page .profile-header-action-row > .profile-header-create-route {
    border-color: #f97316 !important;
    background: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(249, 115, 22, .25) !important;
}

.profile-page .profile-header-action-row > .profile-header-icon-action {
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
}

.profile-hero-stats-card {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    width: min(760px, calc(100% - 190px));
    min-height: 74px;
    margin: 14px 0 0 160px;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.profile-hero-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 16px;
    border: 0;
    border-right: 1px solid #e5e7eb;
    background: transparent;
    color: #111827;
    font-family: inherit;
    text-align: center;
}

.profile-hero-stat:last-child {
    border-right: 0;
}

.profile-hero-stat strong {
    color: #111827;
    font-size: 18px;
    line-height: 1;
    font-weight: 820;
}

.profile-hero-stat span:not(.profile-hero-stat__icon) {
    max-width: 100%;
    overflow: hidden;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 520;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero-stat--level {
    flex-direction: row;
    gap: 10px;
}

.profile-hero-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #f97316;
}

.profile-hero-stat__icon svg {
    width: 24px;
    height: 24px;
}

.profile-content-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px !important;
    align-items: start !important;
}

.profile-content-layout > .flex-1 {
    min-width: 0;
    space: 0;
}

.profile-content-layout > aside {
    display: block !important;
    width: 280px !important;
    flex: none !important;
    top: 22px !important;
    gap: 16px !important;
}

.profile-tabs-bar {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-tabs-scroll {
    gap: 34px !important;
    padding: 0 !important;
}

.profile-tab-btn {
    display: inline-flex !important;
    align-items: center;
    min-height: 48px;
    padding: 0 0 13px !important;
    border-width: 0 0 2px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 560 !important;
    text-transform: none !important;
}

.profile-tab-btn.border-orange-500,
.profile-tab-btn.text-gray-900 {
    color: #f97316 !important;
    border-color: #f97316 !important;
    font-weight: 680 !important;
}

.profile-route-experience {
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-route-experience__header {
    display: none !important;
}

.profile-route-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.profile-route-experience__tabs {
    margin: 0 !important;
    gap: 0 !important;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 !important;
}

.profile-route-experience__tab {
    min-height: 40px !important;
    padding: 0 22px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 560 !important;
    text-transform: none !important;
}

.profile-route-experience__tab:first-child {
    border-radius: 13px 0 0 13px !important;
}

.profile-route-experience__tab:last-child {
    border-radius: 0 13px 13px 0 !important;
}

.profile-route-experience__tab.is-active {
    background: #fff7ed !important;
    color: #f97316 !important;
}

.profile-route-experience__tab-count {
    display: none !important;
}

.profile-route-sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.profile-route-sort__select,
.profile-route-sort__filter {
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    font: inherit;
    font-size: 12px;
    font-weight: 560;
}

.profile-route-sort__select {
    padding: 0 34px 0 14px;
}

.profile-route-sort__filter {
    display: inline-flex;
    width: 40px;
    align-items: center;
    justify-content: center;
}

.profile-route-sort__filter svg {
    width: 18px;
    height: 18px;
}

.profile-route-map {
    margin-bottom: 16px;
}

.profile-route-map__shell {
    height: 176px !important;
    min-height: 176px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06) !important;
}

.profile-route-map__open {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid rgba(229, 231, 235, .95);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    color: #374151;
    padding: 0 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    font-size: 12px;
    font-weight: 620;
    cursor: pointer;
}

.profile-route-map__open svg {
    width: 15px;
    height: 15px;
}

.profile-route-map__empty {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: center;
    border: 1px dashed #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    padding: 18px 20px;
}

.profile-route-map__empty p {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 720;
}

.profile-route-map__empty span {
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 520;
}

.profile-route-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
}

.profile-route-card {
    flex: none !important;
    border-color: #e5e7eb !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

.profile-route-card:hover {
    transform: translateY(-2px) !important;
    border-color: #fdba74 !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .10) !important;
}

.profile-route-card__media {
    aspect-ratio: 1.58 / 1 !important;
    background: #e5e7eb !important;
}

.profile-route-card__shade {
    background: linear-gradient(to top, rgba(15, 23, 42, .20), rgba(15, 23, 42, 0) 54%) !important;
}

.profile-route-card__line,
.profile-route-card__badges {
    display: none !important;
}

.profile-route-card__activity {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.profile-route-card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #64748b;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.profile-route-card__favorite svg {
    width: 18px;
    height: 18px;
}

.profile-route-card__featured {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    max-width: 118px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f97316 !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    text-transform: none !important;
}

.profile-route-card__body {
    padding: 11px 12px 12px !important;
}

.profile-route-card__title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 720 !important;
}

.profile-route-card__location {
    margin-top: 6px !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 480 !important;
}

.profile-route-card__metrics {
    gap: 10px !important;
    margin-top: 12px !important;
    color: #6b7280 !important;
    font-size: 10px !important;
    font-weight: 520 !important;
}

.profile-route-card__metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.profile-route-card__metric svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.profile-route-card__elevation {
    color: #6b7280 !important;
}

.profile-route-empty {
    min-height: 118px !important;
    border-radius: 16px !important;
    padding: 22px !important;
}

.profile-sidebar-card,
.profile-content-layout > aside > div {
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    padding: 18px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055) !important;
}

.profile-content-layout > aside {
    row-gap: 16px !important;
}

.profile-sidebar-card__head,
.profile-content-layout > aside > div > .flex:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.profile-sidebar-card__head h3,
.profile-content-layout > aside h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 720 !important;
}

.profile-sidebar-card__head span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 620;
}

.profile-completion-card__bar {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.profile-completion-card__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f97316;
}

.profile-completion-card__list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.profile-completion-card__row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: #374151;
}

.profile-completion-card__row span {
    width: 12px;
    height: 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
}

.profile-completion-card__row.is-done span {
    border-color: #10b981;
    background: #10b981;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.profile-completion-card__row p {
    margin: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 520;
}

.profile-sidebar-card__link {
    display: inline-flex;
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: #f97316;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 620;
    cursor: pointer;
}

#profile-awards .flex.gap-2.flex-wrap {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: hidden;
}

#profile-awards .w-12.h-12 {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
}

#profile-awards .w-12.h-12 svg {
    width: 20px !important;
    height: 20px !important;
}

#profile-awards .w-12.h-12:nth-child(n+6) {
    display: none !important;
}

#profile-communities .flex.flex-col.gap-3 {
    gap: 10px !important;
}

#profile-communities a.flex.items-center {
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    padding: 4px 0 !important;
    box-shadow: none !important;
}

#profile-communities a.flex.items-center .w-10.h-10 {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
}

.profile-secondary-sections {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.profile-page .profile-travel-map {
    display: none !important;
}

@media (max-width: 1180px) {
    .profile-content-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .profile-content-layout > aside {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100% !important;
    }

    .profile-hero-stats-card {
        width: calc(100% - 160px);
    }
}

@media (max-width: 920px) {
    .profile-page {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .profile-page .profile-header-cover {
        height: 220px !important;
    }

    .profile-page .profile-header-info {
        margin-top: -70px !important;
        padding: 0 16px 0 !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: end !important;
        gap: 16px !important;
        min-height: 126px;
    }

    .profile-page .profile-header-avatar-col {
        width: 118px !important;
    }

    .profile-page .profile-header-avatar {
        width: 116px !important;
        height: 116px !important;
    }

    .profile-page .profile-header-main-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-page .profile-header-actions {
        display: none !important;
    }

    .profile-page .profile-header-name {
        color: #111827 !important;
        font-size: 24px !important;
        text-shadow: none;
    }

    .profile-page .profile-header-meta {
        color: #f97316 !important;
    }

    .profile-page .profile-header-city,
    .profile-page .profile-header-bio {
        color: #64748b !important;
    }

    .profile-hero-stats-card {
        width: 100%;
        margin: 14px 0 0;
        grid-template-columns: repeat(5, minmax(112px, 1fr));
        overflow-x: auto;
    }

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

@media (max-width: 767px) {
    .profile-page .profile-mobile-stats {
        display: none !important;
    }

    .profile-page .profile-mobile-message-link {
        border: 1px solid #e5e7eb !important;
        background: #ffffff !important;
        color: #25313a !important;
        box-shadow: none !important;
        text-transform: none !important;
        font-size: 12px !important;
    }

    .profile-page > section:first-child {
        margin-bottom: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .055) !important;
    }

    .profile-page .profile-header-cover {
        height: 190px !important;
        border-radius: 0 !important;
    }

    .profile-page .profile-header-info {
        margin-top: -58px !important;
        padding: 0 14px 16px !important;
    }

    .profile-page .profile-header-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .profile-page .profile-header-avatar {
        width: 116px !important;
        height: 116px !important;
    }

    .profile-page .profile-header-main {
        padding-top: 12px !important;
        text-align: center;
    }

    .profile-page .profile-header-name {
        justify-content: center !important;
        color: #111827 !important;
        font-size: 22px !important;
        text-shadow: none;
    }

    .profile-page .profile-header-identity {
        align-items: center !important;
    }

    .profile-page .profile-header-bio--mobile {
        max-width: 340px !important;
        margin-top: 8px !important;
        text-align: center !important;
    }

    .profile-hero-stats-card {
        min-height: 64px;
        border-radius: 16px;
        grid-template-columns: repeat(5, minmax(112px, 1fr));
    }

    .profile-hero-stat {
        padding: 9px 12px;
    }

    .profile-hero-stat strong {
        font-size: 16px;
    }

    .profile-content-layout {
        display: flex !important;
        gap: 16px !important;
        padding: 0 12px 18px !important;
    }

    .profile-content-layout > aside {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-tabs-bar {
        margin: 0 0 12px !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }

    .profile-tabs-scroll {
        gap: 24px !important;
        overflow-x: auto;
    }

    .profile-tab-btn {
        min-height: 42px !important;
        padding: 0 0 11px !important;
        font-size: 12px !important;
    }

    .profile-route-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-route-experience__tabs {
        overflow-x: auto;
        width: 100%;
    }

    .profile-route-experience__tab {
        flex: 0 0 auto;
        padding: 0 18px !important;
    }

    .profile-route-sort {
        justify-content: space-between;
    }

    .profile-route-sort__select {
        flex: 1 1 auto;
    }

    .profile-route-map__shell {
        height: 172px !important;
        min-height: 172px !important;
    }

    .profile-route-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Feedback pass: wider rounded cover, cleaner bio, sidebar stays right longer. */
.profile-page {
    width: min(calc(100vw - 40px), 1360px) !important;
    max-width: 1360px !important;
}

.profile-page .profile-header-cover {
    height: 350px !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12) !important;
}

.profile-page .profile-header-cover > .absolute.inset-0 {
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(15, 23, 42, .58) 0%, rgba(15, 23, 42, .34) 45%, rgba(15, 23, 42, .08) 100%) !important;
}

.profile-page .profile-header-info {
    margin-top: -198px !important;
    padding: 0 34px !important;
}

.profile-page .profile-header-grid {
    grid-template-columns: 158px minmax(0, 1fr) !important;
    min-height: 184px !important;
    gap: 26px !important;
}

.profile-page .profile-header-avatar-col {
    width: 158px !important;
}

.profile-page .profile-header-avatar {
    width: 156px !important;
    height: 156px !important;
}

.profile-page .profile-header-name {
    max-width: 620px !important;
    font-size: 34px !important;
}

.profile-page .profile-header-bio {
    display: -webkit-box !important;
    width: min(620px, 100%) !important;
    max-width: 620px !important;
    max-height: 42px !important;
    margin-top: 9px !important;
    overflow: hidden !important;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 560 !important;
    text-shadow: 0 8px 22px rgba(15, 23, 42, .35);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-hero-stats-card {
    width: min(820px, calc(100% - 220px)) !important;
    margin: 18px 0 0 176px !important;
}

@media (min-width: 961px) {
    .profile-content-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 286px !important;
        gap: 24px !important;
        align-items: start !important;
    }

    .profile-content-layout > .flex-1 {
        width: 100% !important;
        min-width: 0 !important;
    }

    .profile-content-layout > aside {
        position: sticky !important;
        top: 24px !important;
        display: block !important;
        width: 286px !important;
        max-width: 286px !important;
        flex: 0 0 286px !important;
        grid-column: 2 !important;
        align-self: start !important;
    }
}

@media (min-width: 961px) and (max-width: 1180px) {
    .profile-page {
        width: min(calc(100vw - 28px), 1120px) !important;
    }

    .profile-route-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 960px) {
    .profile-page {
        width: 100% !important;
    }

    .profile-page .profile-header-cover {
        height: 230px !important;
        border-radius: 0 !important;
    }

    .profile-page .profile-header-info {
        margin-top: -72px !important;
        padding: 0 16px !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 118px minmax(0, 1fr) !important;
        min-height: 128px !important;
        gap: 16px !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 118px !important;
    }

    .profile-page .profile-header-avatar {
        width: 116px !important;
        height: 116px !important;
    }

    .profile-page .profile-header-name {
        color: #111827 !important;
        font-size: 24px !important;
        text-shadow: none !important;
    }

    .profile-page .profile-header-bio {
        max-height: 40px !important;
        color: #64748b !important;
        text-shadow: none !important;
    }

    .profile-content-layout {
        display: flex !important;
    }

    .profile-content-layout > aside {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
}

/* Bio visibility fix: desktop and mobile descriptions are separate template nodes. */
@media (min-width: 768px) {
    .profile-page .profile-header-bio--mobile {
        display: none !important;
    }

    .profile-page .profile-header-main .hidden.md\:block {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .profile-page .profile-header-main .hidden.md\:block {
        display: none !important;
    }

    .profile-page .profile-header-bio--mobile {
        display: -webkit-box !important;
    }
}

/* Final iteration: taller rounded hero, stats overlap, feed stays last. */
@media (min-width: 1024px) {
    .profile-page {
        width: min(calc(100vw - 40px), 1360px) !important;
        max-width: 1360px !important;
    }

    .profile-page > section:first-child {
        margin-bottom: 34px !important;
    }

    .profile-page .profile-header-cover {
        height: 390px !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        box-shadow: 0 22px 54px rgba(15, 23, 42, .14) !important;
    }

    .profile-page .profile-header-cover > .absolute.inset-0 {
        border-radius: inherit !important;
        background: linear-gradient(90deg, rgba(15, 23, 42, .64) 0%, rgba(15, 23, 42, .42) 44%, rgba(15, 23, 42, .10) 100%) !important;
    }

    .profile-page .profile-header-info {
        margin-top: -246px !important;
        padding: 0 38px !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 170px minmax(0, 1fr) !important;
        align-items: center !important;
        min-height: 206px !important;
        gap: 28px !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 170px !important;
        margin-top: 0 !important;
    }

    .profile-page .profile-header-avatar {
        width: 168px !important;
        height: 168px !important;
        box-shadow: 0 24px 56px rgba(15, 23, 42, .26) !important;
    }

    .profile-page .profile-header-main {
        padding-top: 0 !important;
    }

    .profile-page .profile-header-name {
        max-width: 660px !important;
        font-size: 36px !important;
    }

    .profile-page .profile-header-city,
    .profile-page .profile-header-meta {
        color: rgba(255, 255, 255, .90) !important;
    }

    .profile-page .profile-header-bio {
        width: min(680px, 100%) !important;
        max-width: 680px !important;
        max-height: 44px !important;
        margin-top: 10px !important;
        color: rgba(255, 255, 255, .92) !important;
    }

    .profile-hero-stats-card {
        position: relative !important;
        z-index: 15 !important;
        width: min(860px, calc(100% - 502px)) !important;
        margin: -4px 0 0 184px !important;
        box-shadow: 0 20px 54px rgba(15, 23, 42, .14) !important;
    }

    .profile-content-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 292px !important;
        align-items: start !important;
        gap: 26px !important;
    }

    .profile-content-layout > .flex-1 {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .profile-content-layout > aside {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        position: sticky !important;
        top: 88px !important;
        display: block !important;
        width: 292px !important;
        max-width: 292px !important;
        margin-top: -112px !important;
        z-index: 25 !important;
        flex: 0 0 292px !important;
    }

    .profile-secondary-sections {
        margin-top: 18px !important;
    }

    #profile-posts,
    #posts-list {
        margin-top: 18px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-page .profile-header-cover {
        height: 360px !important;
    }

    .profile-page .profile-header-info {
        margin-top: -224px !important;
        padding: 0 28px !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 150px minmax(0, 1fr) !important;
        min-height: 190px !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 150px !important;
    }

    .profile-page .profile-header-avatar {
        width: 148px !important;
        height: 148px !important;
    }

    .profile-hero-stats-card {
        width: min(700px, calc(100% - 462px)) !important;
        margin-left: 164px !important;
    }

    .profile-content-layout {
        grid-template-columns: minmax(0, 1fr) 276px !important;
        gap: 22px !important;
    }

    .profile-content-layout > aside {
        width: 276px !important;
        max-width: 276px !important;
        margin-top: -92px !important;
        flex-basis: 276px !important;
    }
}

@media (max-width: 1023px) {
    .profile-page .profile-header-cover {
        border-radius: 22px !important;
        overflow: hidden !important;
    }
}

/* Align the right sidebar with the hero metrics top edge. */
@media (min-width: 1024px) {
    .profile-content-layout > aside {
        margin-top: -112px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-content-layout > aside {
        margin-top: -92px !important;
    }
}

/* Current final lock: level lives as an avatar badge, metrics stay four columns. */
.profile-page .profile-header-level-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 168px !important;
    min-height: 38px !important;
    margin: -2px auto 0 !important;
    padding: 6px 12px 6px 7px !important;
    gap: 7px !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #111827 !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.profile-page .profile-header-level-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(249, 115, 22, .42) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .22) !important;
}

.profile-page .profile-header-level-card__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    border: 1px solid rgba(249, 115, 22, .22) !important;
    border-radius: 10px !important;
    background: #fff7ed !important;
    color: #f97316 !important;
}

.profile-page .profile-header-level-card__icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.profile-page .profile-header-level-card__value {
    display: inline-flex !important;
    align-items: center !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.profile-page .profile-header-level-card__label {
    display: block !important;
    max-width: 82px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.profile-hero-stats-card {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 767px) {
    .profile-page .profile-header-level-card {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .profile-hero-stats-card {
        grid-template-columns: repeat(4, minmax(112px, 1fr)) !important;
    }
}
/* Final lock: level is an avatar badge, not a metrics cell. */
.profile-page .profile-header-level-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 160px !important;
    min-height: 36px !important;
    margin-top: 10px !important;
    padding: 6px 11px !important;
    border: 1px solid rgba(254, 215, 170, .95) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #111827 !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.profile-page .profile-header-level-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff7ed;
    color: #f97316;
    flex: 0 0 22px;
}

.profile-page .profile-header-level-card__icon svg {
    width: 15px;
    height: 15px;
}

.profile-page .profile-header-level-card__value {
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
}

.profile-page .profile-header-level-card__label {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    color: #64748b;
}

.profile-hero-stats-card {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1023px) {
    .profile-hero-stats-card {
        grid-template-columns: repeat(4, minmax(112px, 1fr)) !important;
    }
}

/* Reward image icons. */
.profile-reward-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#profile-awards .profile-reward-img,
#achievements-modal .profile-reward-img {
    padding: 3px;
}

/* Show every profile award; locked awards stay grayscale via template state classes. */
#profile-awards .flex.gap-2.flex-wrap {
    flex-wrap: wrap !important;
    overflow: visible !important;
}

#profile-awards .w-12.h-12:nth-child(n+6) {
    display: flex !important;
}

#profile-awards .grayscale .profile-reward-img,
#achievements-modal .grayscale .profile-reward-img {
    filter: grayscale(1) saturate(0) !important;
}

/* Level moved out of metrics and into the avatar column. */
.profile-page .profile-header-level-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 160px !important;
    min-height: 36px !important;
    margin-top: 10px !important;
    padding: 6px 11px !important;
    border: 1px solid rgba(254, 215, 170, .95) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #111827 !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.profile-page .profile-header-level-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff7ed;
    color: #f97316;
    flex: 0 0 22px;
}

.profile-page .profile-header-level-card__icon svg {
    width: 15px;
    height: 15px;
}

.profile-page .profile-header-level-card__value {
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
}

.profile-page .profile-header-level-card__label {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    color: #64748b;
}

.profile-hero-stats-card {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1023px) {
    .profile-hero-stats-card {
        grid-template-columns: repeat(4, minmax(112px, 1fr)) !important;
    }
}

/* Current sidebar overlap lock: must stay after the profile hero lock. */
@media (min-width: 1024px) {
    .profile-hero-stats-card {
        width: min(680px, calc(100% - 470px)) !important;
        margin: -4px 0 0 184px !important;
    }

    .profile-content-layout > aside {
        margin-top: -58px !important;
        z-index: 25 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-hero-stats-card {
        width: min(620px, calc(100% - 456px)) !important;
        margin-left: 164px !important;
    }

    .profile-content-layout > aside {
        margin-top: -46px !important;
    }
}

/* Sidebar overlap pass: keep the metrics clear of the right rail. */
@media (min-width: 1024px) {
    .profile-hero-stats-card {
        width: min(680px, calc(100% - 470px)) !important;
        margin: -4px 0 0 184px !important;
    }

    .profile-content-layout > aside {
        margin-top: -58px !important;
        z-index: 25 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-hero-stats-card {
        width: min(620px, calc(100% - 456px)) !important;
        margin-left: 164px !important;
    }

    .profile-content-layout > aside {
        margin-top: -46px !important;
    }
}

@media (max-width: 767px) {
    .profile-page .profile-route-experience__title,
    .profile-page .profile-travel-map__title,
    .profile-page .profile-events-card__header h2,
    .profile-page #profile-photos > div:first-child h3,
    .profile-page #profile-posts > div:first-child h3,
    .profile-page #profile-awards > div:first-child h3,
    .profile-page #profile-communities > div:first-child h3,
    .profile-page aside > div > h3,
    .profile-page aside > div > .flex h3 {
        font-size: var(--profile-section-title-size-mobile) !important;
        line-height: 1.12 !important;
    }
}

/* Keep the profile composer visually aligned with the main feed composer. */
.profile-page .quick-post-card {
    margin-top: 16px !important;
    background: rgba(255, 255, 255, .9) !important;
    border-color: rgba(255, 255, 255, .8) !important;
    box-shadow: 0 18px 44px rgba(55, 47, 39, .08) !important;
    backdrop-filter: blur(18px);
}

.profile-page #quick-publish-btn {
    min-width: 146px;
    height: 42px;
    border-radius: 16px !important;
    background-image: linear-gradient(135deg, #f97316, #d84b20) !important;
    box-shadow: 0 14px 30px rgba(249, 115, 22, .25) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
}

.profile-page .quick-post-card .quick-post-action-row > .flex:first-child {
    align-items: center;
}

.profile-page .quick-post-card .quick-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    height: 38px !important;
    gap: 8px !important;
    padding: 0 14px !important;
    border: 1px solid #e6eaf0 !important;
    border-radius: 15px !important;
    background: rgba(248, 250, 252, .86) !important;
    color: #344054 !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .88), 0 6px 16px rgba(15, 23, 42, .04) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.profile-page .quick-post-card .quick-action-btn:hover {
    border-color: rgba(249, 115, 22, .24) !important;
    background: #fff7ed !important;
    color: #f97316 !important;
    transform: translateY(-1px);
}

.profile-page .quick-post-card .quick-icon-btn {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
}

.profile-page .quick-post-card .quick-icon-btn .quick-action-label {
    display: none !important;
}

.profile-page .quick-post-card .quick-action-icon,
.profile-page .quick-post-card .quick-action-content svg,
.profile-page .quick-post-card .quick-action-content [aria-hidden="true"] {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    opacity: 1 !important;
    stroke-width: 2.1;
}

.profile-page .quick-post-card .quick-action-btn .quick-action-icon,
.profile-page .quick-post-card .quick-action-btn .quick-action-content svg,
.profile-page .quick-post-card .quick-action-btn .quick-action-content [aria-hidden="true"] {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
}

.profile-page .quick-post-card .quick-action-content {
    max-width: 180px !important;
    min-width: 0;
}

.profile-page .quick-post-card .quick-action-content > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-page .quick-post-card .quick-action-caret {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
}

.profile-page .quick-post-card .quick-article-btn .quick-action-icon-wrap {
    width: 17px !important;
    height: 17px !important;
    border-radius: 0 !important;
}

.profile-page .quick-post-card .quick-article-btn .quick-action-label {
    display: inline !important;
}

@media (max-width: 767px) {
    .profile-page .quick-post-card {
        position: sticky !important;
        top: 62px !important;
        z-index: 60 !important;
        margin: 4px 12px 10px !important;
        padding: 10px 14px !important;
        border-width: 1px !important;
        border-style: solid !important;
        border-color: rgba(255, 255, 255, .9) !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, .92) !important;
        box-shadow: 0 10px 24px rgba(43, 34, 27, .06) !important;
        backdrop-filter: blur(14px);
        transition: border-radius .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, background .28s ease;
    }

    body.mobile-topbar-hidden .profile-page .quick-post-card {
        top: 8px !important;
    }

    .profile-page .quick-post-card .quick-post-input-row {
        min-height: 0 !important;
        gap: 9px !important;
        margin-bottom: 0 !important;
        padding-right: 48px !important;
        align-items: center !important;
    }

    .profile-page .quick-post-card .quick-post-input-row > .w-10 {
        width: 36px !important;
        height: 36px !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .profile-page #quick-text-input {
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 7px 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
    }

    .profile-page #char-counter {
        display: none !important;
    }

    .profile-page .quick-post-card .quick-post-action-row {
        position: absolute !important;
        top: 50% !important;
        right: 14px !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
        gap: 0 !important;
    }

    .profile-page .quick-post-card .quick-post-action-row > .flex:first-child {
        display: none !important;
    }

    .profile-page #quick-publish-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin-left: 0 !important;
        padding: 0 !important;
        border-radius: 999px !important;
        font-size: 0 !important;
        letter-spacing: 0 !important;
        box-shadow: 0 10px 22px rgba(249, 115, 22, .28) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    .profile-page #quick-publish-btn::before {
        content: "";
        width: 17px !important;
        height: 17px !important;
        display: block;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 3L10 14' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 3L14 21L10 14L3 10L21 3Z' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 3L10 14' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 3L14 21L10 14L3 10L21 3Z' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .profile-page .quick-post-card:focus-within {
        padding: 14px !important;
        border-radius: 26px !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 14px 30px rgba(43, 34, 27, .08) !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-input-row {
        min-height: 118px !important;
        padding-right: 0 !important;
        align-items: flex-start !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-input-row > .w-10 {
        width: 52px !important;
        height: 52px !important;
        border: 1px solid rgba(229, 231, 235, .95) !important;
    }

    .profile-page .quick-post-card:focus-within #quick-text-input {
        min-height: 106px !important;
        max-height: 150px !important;
        padding: 9px 0 26px !important;
        font-size: 18px !important;
        line-height: 1.22 !important;
        overflow-y: auto !important;
    }

    .profile-page .quick-post-card:focus-within #quick-text-input::placeholder {
        font-size: 18px !important;
    }

    .profile-page .quick-post-card:focus-within #char-counter {
        display: block !important;
        bottom: 9px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-action-row {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(120, 113, 108, .14) !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-action-row > .flex:first-child {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 6px !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    .profile-page .quick-post-card:focus-within .quick-post-action-row > .flex:first-child::-webkit-scrollbar {
        display: none;
    }

    .profile-page .quick-post-card:focus-within .quick-action-btn,
    .profile-page .quick-post-card:focus-within #quick-location-btn,
    .profile-page .quick-post-card:focus-within .custom-dropdown-trigger,
    .profile-page .quick-post-card:focus-within #quick-article-link {
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 16px !important;
        background: #f8fafc !important;
        color: #334155 !important;
        box-shadow: inset 0 1px rgba(255, 255, 255, .92), 0 8px 22px rgba(15, 23, 42, .045) !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        overflow: hidden;
    }

    .profile-page .quick-post-card:focus-within .quick-action-icon,
    .profile-page .quick-post-card:focus-within .quick-action-icon-wrap,
    .profile-page .quick-post-card:focus-within .quick-action-content svg,
    .profile-page .quick-post-card:focus-within .quick-action-content [aria-hidden="true"] {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
        opacity: 1 !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-icon-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-label,
    .profile-page .quick-post-card:focus-within .quick-icon-btn .quick-action-label,
    .profile-page .quick-post-card:focus-within .quick-action-content > span,
    .profile-page .quick-post-card:focus-within #selected-category-text .hidden {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-caret {
        display: none !important;
    }

    .profile-page .quick-post-card:focus-within #quick-publish-btn {
        width: 62px !important;
        height: 62px !important;
        min-width: 62px !important;
        min-height: 62px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        font-size: 0 !important;
        box-shadow: 0 14px 26px rgba(249, 115, 22, .28) !important;
    }

    .profile-page .quick-post-card:focus-within #quick-publish-btn::before {
        width: 25px !important;
        height: 25px !important;
    }
}

/* Keep the profile mobile composer visually identical to the home feed. */
@media (max-width: 767px) {
    .profile-page .quick-post-card {
        top: 62px !important;
        margin: 4px 12px 10px !important;
        padding: 9px 12px !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, .94) !important;
        box-shadow: 0 10px 24px rgba(43, 34, 27, .06) !important;
    }

    body.mobile-topbar-hidden .profile-page .quick-post-card {
        top: 8px !important;
    }

    .profile-page .quick-post-card .quick-post-input-row {
        min-height: 0 !important;
        gap: 9px !important;
        margin-bottom: 0 !important;
        padding-right: 46px !important;
        align-items: center !important;
    }

    .profile-page .quick-post-card .quick-post-input-row > .w-10 {
        width: 34px !important;
        height: 34px !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .profile-page .quick-post-card #quick-text-input {
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 7px 0 !important;
        color: #334155 !important;
        font-size: 13px !important;
        line-height: 1.22 !important;
        font-weight: 500 !important;
        overflow: hidden !important;
    }

    .profile-page .quick-post-card #quick-text-input::placeholder {
        color: #9aa3af !important;
        font-size: 13px !important;
        font-weight: 600 !important;
    }

    .profile-page .quick-post-card #char-counter {
        display: none !important;
    }

    .profile-page .quick-post-card .quick-post-action-row {
        position: absolute !important;
        top: 50% !important;
        right: 12px !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    .profile-page .quick-post-card .quick-post-action-row > .flex:first-child {
        display: none !important;
    }

    .profile-page #quick-publish-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin-left: 0 !important;
        padding: 0 !important;
        border-radius: 999px !important;
        font-size: 0 !important;
        letter-spacing: 0 !important;
        box-shadow: 0 10px 22px rgba(249, 115, 22, .26) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .profile-page #quick-publish-btn::before {
        content: none !important;
        display: none !important;
    }

    .profile-page #quick-publish-btn .quick-publish-icon {
        display: block !important;
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
    }

    .profile-page #quick-publish-btn .quick-publish-label {
        display: none !important;
    }

    .profile-page .quick-post-card:focus-within {
        padding: 12px !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 14px 30px rgba(43, 34, 27, .075) !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-input-row {
        min-height: 82px !important;
        gap: 10px !important;
        padding-right: 0 !important;
        align-items: flex-start !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-input-row > .w-10 {
        width: 40px !important;
        height: 40px !important;
        border: 1px solid rgba(229, 231, 235, .95) !important;
        box-shadow: inset 0 1px rgba(255, 255, 255, .85) !important;
    }

    .profile-page .quick-post-card:focus-within #quick-text-input {
        min-height: 78px !important;
        max-height: 120px !important;
        padding: 7px 0 20px !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
        overflow-y: auto !important;
    }

    .profile-page .quick-post-card:focus-within #quick-text-input::placeholder {
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .profile-page .quick-post-card:focus-within #char-counter {
        display: block !important;
        right: 0 !important;
        bottom: 6px !important;
        color: #9aa3af !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-action-row {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 9px !important;
        padding-top: 9px !important;
        border-top: 1px solid rgba(120, 113, 108, .12) !important;
    }

    .profile-page .quick-post-card:focus-within .quick-post-action-row > .flex:first-child {
        display: flex !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 6px !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    .profile-page .quick-post-card:focus-within .quick-post-action-row > .flex:first-child::-webkit-scrollbar {
        display: none;
    }

    .profile-page .quick-post-card:focus-within .quick-action-btn,
    .profile-page .quick-post-card:focus-within #quick-location-btn,
    .profile-page .quick-post-card:focus-within .custom-dropdown-trigger,
    .profile-page .quick-post-card:focus-within #quick-article-link {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f8fafc !important;
        color: #475569 !important;
        box-shadow: inset 0 1px rgba(255, 255, 255, .92), 0 7px 18px rgba(15, 23, 42, .04) !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        font-size: 8px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        overflow: hidden !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-icon,
    .profile-page .quick-post-card:focus-within .quick-action-icon-wrap,
    .profile-page .quick-post-card:focus-within .quick-action-content svg,
    .profile-page .quick-post-card:focus-within .quick-action-content [aria-hidden="true"] {
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
        opacity: 1 !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-icon-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-label,
    .profile-page .quick-post-card:focus-within .quick-icon-btn .quick-action-label,
    .profile-page .quick-post-card:focus-within .quick-action-content > span,
    .profile-page .quick-post-card:focus-within #selected-category-text .hidden {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 8px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-page .quick-post-card:focus-within .quick-action-caret {
        display: none !important;
    }

    .profile-page .quick-post-card:focus-within #quick-publish-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        border-radius: 999px !important;
        box-shadow: 0 12px 24px rgba(249, 115, 22, .28) !important;
    }

    .profile-page .quick-post-card:focus-within #quick-publish-btn .quick-publish-icon {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
    }
}

@media (min-width: 768px) {
    .profile-mobile-cover-actions,
    .profile-mobile-summary,
    .profile-mobile-rank {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.page-profile,
    body:has(.profile-page) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.page-profile .site-topbar,
    body:has(.profile-page) .site-topbar {
        display: none !important;
    }

    body.page-mobile-no-topbar .site-main-offset,
    body.page-profile .site-main-offset,
    body:has(.profile-page) .site-main-offset,
    .site-main-offset:has(> .profile-page) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .profile-page {
        width: 100%;
        max-width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 34%, #f8fafc 100%);
        -webkit-font-smoothing: antialiased;
        text-rendering: geometricPrecision;
    }

    .profile-page > section:first-child {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        border-bottom: 0 !important;
        border-top: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 74%, #ffffff 100%);
        box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
    }

    .profile-page > section:first-child .profile-header-cover {
        margin-top: 0 !important;
        border-top: 0 !important;
    }

    .profile-content-layout {
        padding: 0 12px !important;
        gap: 14px !important;
    }

    .profile-page :where(.profile-travel-map, .profile-route-experience, #profile-photos, #profile-posts) {
        border: 1px solid rgba(226, 232, 240, .95) !important;
        border-radius: 24px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .06), inset 0 1px rgba(255, 255, 255, .92) !important;
    }

    .profile-tabs-bar {
        margin: 0 12px 12px !important;
        padding: 0 2px !important;
        border-bottom: 0 !important;
        border-radius: 18px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
    }

    .profile-header-level-card {
        display: none !important;
    }

    .profile-header-cover {
        height: 156px !important;
        box-shadow: inset 0 -1px rgba(255, 255, 255, .42);
    }

    .profile-mobile-cover-actions {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .profile-mobile-cover-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, .72);
        border-radius: 999px;
        background: rgba(255, 255, 255, .92);
        color: #0f172a;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
        backdrop-filter: blur(14px);
    }

    .profile-mobile-cover-action svg {
        width: 20px;
        height: 20px;
    }

    .profile-header-info {
        padding: 0 16px 16px !important;
    }

    .profile-header-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
    }

    .profile-header-avatar-col {
        width: 100% !important;
        margin-top: -60px !important;
        align-items: center !important;
    }

    .profile-header-avatar {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 22px 44px rgba(15, 23, 42, .18) !important;
    }

    .profile-header-main {
        width: 100% !important;
        padding-top: 13px !important;
        text-align: center;
    }

    .profile-header-main-row {
        width: 100% !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .profile-header-name {
        justify-content: center !important;
        margin-bottom: 3px !important;
        font-size: 22px !important;
        line-height: 1.05 !important;
        gap: 7px !important;
        text-align: center;
    }

    .profile-header-name-text {
        max-width: 100%;
    }

    .profile-verified-badge {
        width: 18px;
        height: 18px;
    }

    .profile-header-identity {
        align-items: center !important;
        width: 100%;
        text-align: center;
    }

    .profile-header-meta {
        font-size: 13px;
        line-height: 1.2;
        max-width: 100%;
        text-align: center;
    }

    .profile-header-city {
        justify-content: center;
        margin: 3px 0 0;
        font-size: 13px;
        line-height: 1.2;
        gap: 5px;
        max-width: 100%;
    }

    .profile-header-city svg {
        width: 13px;
        height: 13px;
    }

    .profile-mobile-rank {
        display: block;
        width: 100%;
        max-width: none;
        margin-top: 14px;
        padding: 12px 14px;
        border: 1px solid rgba(226, 232, 240, .95);
        border-radius: 20px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        color: #0f172a;
        text-align: left;
        font-family: inherit;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .07), inset 0 1px rgba(255, 255, 255, .92);
    }

    .profile-mobile-rank__title,
    .profile-mobile-rank__meta {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .profile-mobile-rank__title {
        color: #0f172a;
        font-size: 13px;
        line-height: 1.2;
        font-weight: 900;
    }

    .profile-mobile-rank__title span:last-child {
        color: #ea580c;
    }

    .profile-mobile-rank__progress {
        display: block;
        width: 100%;
        height: 6px;
        margin: 9px 0 7px;
        overflow: hidden;
        border-radius: 999px;
        background: #eef2f7;
    }

    .profile-mobile-rank__progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #f97316;
    }

    .profile-mobile-rank__meta {
        justify-content: space-between;
        color: #64748b;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 800;
    }

    .profile-mobile-rank__meta span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-summary {
        display: block;
        margin-top: 14px;
    }

    .profile-mobile-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        min-height: 60px;
        overflow: hidden;
        border: 1px solid rgba(226, 232, 240, .95);
        border-radius: 20px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 14px 34px rgba(15, 23, 42, .07), inset 0 1px rgba(255, 255, 255, .86);
    }

    .profile-mobile-stats .profile-header-stat {
        display: grid !important;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        align-content: center;
        justify-content: center;
        column-gap: 8px;
        row-gap: 3px;
        min-width: 0;
        min-height: 58px !important;
        padding: 8px 6px !important;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .profile-mobile-stats .profile-header-stat:not(:last-child) {
        border-right: 1px solid #e5e7eb;
    }

    .profile-mobile-stats .profile-header-stat-icon {
        grid-row: 1 / span 2;
        width: 20px;
        height: 20px;
        color: #64748b;
    }

    .profile-mobile-stats .profile-header-stat strong {
        font-size: 20px;
        line-height: 1;
    }

    .profile-mobile-stats .profile-header-stat span:not(.profile-header-stat-icon) {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        color: #64748b;
        font-size: 11px;
        line-height: 1.1;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-visitor-actions {
        display: flex;
        align-items: stretch;
        gap: 8px;
        margin: 12px 0 14px;
    }

    .profile-mobile-public-pill,
    .profile-mobile-login-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        width: 100%;
        border-radius: 14px;
        font-size: 9px;
        line-height: 1;
        font-weight: 900;
        text-transform: uppercase;
    }

    .profile-mobile-public-pill {
        border: 1px solid #e5e7eb;
        background: #f8fafc;
        color: #64748b;
    }

    .profile-mobile-login-link {
        background: #f97316;
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, .2);
    }

    .profile-mobile-hub {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
    }

    .profile-mobile-hub-card {
        display: flex;
        min-width: 0;
        min-height: 96px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 13px 11px;
        border: 1px solid rgba(226, 232, 240, .95);
        border-radius: 20px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        color: #0f172a;
        font-family: inherit;
        text-align: left;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .07), inset 0 1px rgba(255, 255, 255, .92);
    }

    .profile-mobile-hub-card svg {
        width: 28px;
        height: 28px;
        margin-bottom: 10px;
    }

    .profile-mobile-hub-card strong {
        display: -webkit-box;
        width: 100%;
        overflow: hidden;
        color: #0f172a;
        font-size: 13px;
        line-height: 1.1;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .profile-mobile-hub-card span {
        display: block;
        width: 100%;
        margin-top: 5px;
        overflow: hidden;
        color: #64748b;
        font-size: 11px;
        line-height: 1.15;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-hub-card--routes svg {
        color: #ea580c;
    }

    .profile-mobile-hub-card--awards svg {
        color: #4f46e5;
    }

    .profile-mobile-hub-card--clubs svg {
        color: #059669;
    }
}

@media (max-width: 767px) {
    .profile-page {
        --profile-section-title-size-mobile: 18px;
    }

    body.page-profile .site-main-offset,
    body.page-mobile-no-topbar .site-main-offset,
    main.site-main-offset:has(> .profile-page),
    .site-main-offset:has(> .profile-page) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.page-profile .profile-page,
    body:has(.profile-page) .profile-page,
    .site-main-offset > .profile-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .site-main-offset > .profile-page > section:first-child {
        margin-top: 0 !important;
    }

    .profile-content-layout {
        padding: 0 10px !important;
        gap: 10px !important;
    }

    .profile-content-layout > .flex-1 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 10px !important;
    }

    .profile-page > section:first-child {
        margin-bottom: 10px !important;
    }

    .profile-page :where(.profile-travel-map, .profile-route-experience, .profile-events-card, #profile-photos, #profile-posts),
    .profile-page aside > div {
        padding: 14px 12px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .055), inset 0 1px rgba(255, 255, 255, .88) !important;
    }

    .profile-page .profile-route-experience__title,
    .profile-page .profile-travel-map__title,
    .profile-page .profile-events-card__header h2,
    .profile-page #profile-photos > div:first-child h3,
    .profile-page #profile-posts > div:first-child h3,
    .profile-page #profile-awards > div:first-child h3,
    .profile-page #profile-communities > div:first-child h3,
    .profile-page aside > div > h3,
    .profile-page aside > div > .flex h3 {
        font-size: 18px !important;
        line-height: 1.12 !important;
    }

    .profile-header-info {
        padding: 0 14px 14px !important;
    }

    .profile-mobile-rank {
        margin-top: 12px !important;
        padding: 10px 12px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .06), inset 0 1px rgba(255, 255, 255, .9) !important;
    }

    .profile-mobile-rank__title {
        font-size: 12px !important;
    }

    .profile-mobile-rank__progress {
        height: 5px !important;
        margin: 8px 0 6px !important;
    }

    .profile-mobile-summary {
        margin-top: 12px !important;
    }

    .profile-mobile-stats {
        min-height: 54px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .06), inset 0 1px rgba(255, 255, 255, .88) !important;
    }

    .profile-mobile-stats .profile-header-stat {
        min-height: 52px !important;
        padding: 7px 5px !important;
        column-gap: 6px !important;
    }

    .profile-mobile-stats .profile-header-stat-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .profile-mobile-stats .profile-header-stat strong {
        font-size: 18px !important;
    }

    .profile-mobile-stats .profile-header-stat span:not(.profile-header-stat-icon) {
        font-size: 10px !important;
    }

    .profile-mobile-hub {
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .profile-mobile-hub-card {
        min-height: 82px !important;
        padding: 11px 10px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .06), inset 0 1px rgba(255, 255, 255, .9) !important;
    }

    .profile-mobile-hub-card svg {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 7px !important;
    }

    .profile-mobile-hub-card strong {
        font-size: 12px !important;
    }

    .profile-mobile-hub-card span {
        margin-top: 4px !important;
        font-size: 10px !important;
    }
    .profile-travel-map__header,
    .profile-route-experience__header {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .profile-travel-map__all,
    .profile-route-experience__all {
        min-height: 39px !important;
        border-color: var(--profile-mobile-border) !important;
        background: #ffffff !important;
        color: #334155 !important;
        box-shadow: var(--profile-mobile-shadow-soft) !important;
    }

    .profile-travel-map__stats {
        gap: 8px !important;
        margin: 12px 0 14px !important;
    }

    .profile-travel-stat {
        min-height: 34px !important;
        border-color: rgba(226, 232, 240, .72) !important;
        background: #fbfdff !important;
        box-shadow: none !important;
    }

    .profile-travel-stat__value {
        font-size: 13px !important;
        font-weight: 650 !important;
    }

    .profile-travel-stat__label {
        color: #64748b !important;
        font-size: 10px !important;
        font-weight: 450 !important;
        text-transform: none !important;
    }

    .profile-route-experience__tabs {
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .profile-route-experience__tab {
        min-height: 34px !important;
        border-color: rgba(226, 232, 240, .78) !important;
        background: #fbfdff !important;
        color: #64748b !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        box-shadow: none !important;
    }

    .profile-route-experience__tab.is-active {
        color: #f97316 !important;
        background: #fff7ed !important;
        font-weight: 650 !important;
    }

    .profile-route-experience__tab-count,
    .profile-travel-map__place-count {
        font-weight: 600 !important;
    }
}

/* Mobile feed tabs: match the calmer profile section language. */
@media (max-width: 767px) {
    .profile-tabs-bar {
        margin: 0 12px 18px !important;
        padding: 6px !important;
        border: 1px solid rgba(226, 232, 240, .78) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .035) !important;
    }

    .profile-tabs-scroll {
        gap: 6px !important;
        padding: 0 !important;
        padding-right: 0 !important;
    }

    .profile-tab-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 34px !important;
        padding: 0 12px !important;
        border: 1px solid transparent !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: #64748b !important;
        font-size: 11px !important;
        line-height: 1 !important;
        font-weight: 500 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .profile-tab-btn.border-orange-500,
    .profile-tab-btn.text-gray-900 {
        border-color: #fed7aa !important;
        background: #fff7ed !important;
        color: #ea580c !important;
        font-weight: 650 !important;
    }

    #profile-posts {
        background: #ffffff !important;
        border-color: rgba(226, 232, 240, .78) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
    }

    #profile-posts > div:first-child {
        gap: 14px !important;
    }

    #profile-posts > div:first-child > div:first-child p {
        margin-bottom: 7px !important;
        color: #f97316 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 600 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    #profile-posts > div:first-child > div:first-child h3 {
        color: #111827 !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        font-weight: 680 !important;
        letter-spacing: 0 !important;
    }

    #profile-posts > div:first-child > div:last-child {
        gap: 8px !important;
        padding-bottom: 2px !important;
    }

    #profile-posts > div:first-child > div:last-child > :is(a, span) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 32px !important;
        padding: 0 12px !important;
        border: 1px solid rgba(226, 232, 240, .78) !important;
        border-radius: 12px !important;
        background: #fbfdff !important;
        color: #64748b !important;
        font-size: 11px !important;
        line-height: 1 !important;
        font-weight: 500 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        box-shadow: none !important;
    }

    #profile-posts > div:first-child > div:last-child > :is(a.bg-orange-50, span.bg-gray-900) {
        border-color: #fed7aa !important;
        background: #fff7ed !important;
        color: #ea580c !important;
        font-weight: 650 !important;
    }
}

/* Final reference-profile lock: keep this last. */
.profile-page {
    width: min(calc(100vw - 48px), 1240px) !important;
    max-width: 1240px !important;
    margin-top: 22px !important;
}

.profile-page > section:first-child {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-page .profile-header-cover {
    height: 302px !important;
    border-radius: 0 !important;
}

.profile-page .profile-header-info {
    margin-top: -148px !important;
    padding: 0 24px !important;
}

.profile-page .profile-header-grid {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 22px !important;
    min-height: 138px !important;
}

.profile-page .profile-header-avatar-col {
    width: 150px !important;
    margin-top: 0 !important;
}

.profile-page .profile-header-avatar {
    width: 148px !important;
    height: 148px !important;
}

.profile-page .profile-header-name {
    color: #ffffff !important;
    font-size: 32px !important;
    line-height: 1.06 !important;
    text-shadow: 0 10px 28px rgba(15, 23, 42, .35) !important;
}

.profile-page .profile-header-meta {
    color: #ffedd5 !important;
}

.profile-page .profile-header-city,
.profile-page .profile-header-bio {
    color: rgba(255, 255, 255, .88) !important;
}

.profile-page .profile-header-level-card,
.profile-page .profile-header-main .profile-header-stats,
.profile-page .profile-header-badges {
    display: none !important;
}

.profile-hero-stats-card {
    display: grid !important;
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)) !important;
    width: min(760px, calc(100% - 190px)) !important;
    margin: 14px 0 0 160px !important;
}

.profile-content-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 24px !important;
}

.profile-content-layout > aside {
    display: block !important;
    width: 280px !important;
    flex: none !important;
}

.profile-tabs-bar {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-tab-btn {
    min-height: 48px !important;
    padding: 0 0 13px !important;
    border-width: 0 0 2px !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.profile-route-experience {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-route-experience__header {
    display: none !important;
}

.profile-route-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.profile-route-map__shell {
    height: 176px !important;
    min-height: 176px !important;
    border-radius: 16px !important;
}

.profile-route-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.profile-route-card {
    flex: none !important;
    border-radius: 16px !important;
}

.profile-content-layout > aside > div,
.profile-sidebar-card {
    border-radius: 20px !important;
    padding: 18px !important;
}

@media (max-width: 1180px) {
    .profile-content-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .profile-content-layout > aside {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
    }
}

@media (max-width: 920px) {
    .profile-page {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .profile-page .profile-header-cover {
        height: 220px !important;
    }

    .profile-page .profile-header-info {
        margin-top: -70px !important;
        padding: 0 16px !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 118px minmax(0, 1fr) !important;
        min-height: 126px !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 118px !important;
    }

    .profile-page .profile-header-avatar {
        width: 116px !important;
        height: 116px !important;
    }

    .profile-page .profile-header-name {
        color: #111827 !important;
        font-size: 24px !important;
        text-shadow: none !important;
    }

    .profile-page .profile-header-meta {
        color: #f97316 !important;
    }

    .profile-page .profile-header-city,
    .profile-page .profile-header-bio {
        color: #64748b !important;
    }

    .profile-hero-stats-card {
        width: 100% !important;
        margin: 14px 0 0 !important;
        grid-template-columns: repeat(5, minmax(112px, 1fr)) !important;
        overflow-x: auto !important;
    }

    .profile-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .profile-page .profile-header-cover {
        height: 190px !important;
    }

    .profile-page .profile-header-info {
        margin-top: -58px !important;
        padding: 0 14px 16px !important;
    }

    .profile-page .profile-header-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-height: 0 !important;
        gap: 0 !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 100% !important;
    }

    .profile-page .profile-header-avatar {
        width: 116px !important;
        height: 116px !important;
    }

    .profile-page .profile-header-main {
        padding-top: 12px !important;
        text-align: center !important;
    }

    .profile-page .profile-header-name {
        justify-content: center !important;
        color: #111827 !important;
        font-size: 22px !important;
        text-shadow: none !important;
    }

    .profile-page .profile-header-identity {
        align-items: center !important;
    }

    .profile-content-layout {
        display: flex !important;
        gap: 16px !important;
        padding: 0 12px 18px !important;
    }

    .profile-content-layout > aside {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .profile-route-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .profile-route-map__shell {
        height: 172px !important;
        min-height: 172px !important;
    }

    .profile-route-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Keep the duplicated template bio nodes mutually exclusive. */
@media (min-width: 768px) {
    .profile-page .profile-header-bio--mobile {
        display: none !important;
    }

    .profile-page .profile-header-main .hidden.md\:block {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .profile-page .profile-header-main .hidden.md\:block {
        display: none !important;
    }

    .profile-page .profile-header-bio--mobile {
        display: -webkit-box !important;
    }
}

/* Current final lock: hero contains identity, stats overlap cover, sidebar is right-aligned. */
@media (min-width: 1024px) {
    .profile-page {
        width: min(calc(100vw - 40px), 1360px) !important;
        max-width: 1360px !important;
    }

    .profile-page > section:first-child {
        margin-bottom: 34px !important;
    }

    .profile-page .profile-header-cover {
        height: 390px !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        box-shadow: 0 22px 54px rgba(15, 23, 42, .14) !important;
    }

    .profile-page .profile-header-cover > .absolute.inset-0 {
        border-radius: inherit !important;
        background: linear-gradient(90deg, rgba(15, 23, 42, .64) 0%, rgba(15, 23, 42, .42) 44%, rgba(15, 23, 42, .10) 100%) !important;
    }

    .profile-page .profile-header-info {
        margin-top: -246px !important;
        padding: 0 38px !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 170px minmax(0, 1fr) !important;
        align-items: center !important;
        min-height: 206px !important;
        gap: 28px !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 170px !important;
        margin-top: 0 !important;
    }

    .profile-page .profile-header-avatar {
        width: 168px !important;
        height: 168px !important;
        box-shadow: 0 24px 56px rgba(15, 23, 42, .26) !important;
    }

    .profile-page .profile-header-main {
        padding-top: 0 !important;
    }

    .profile-page .profile-header-name {
        max-width: 660px !important;
        font-size: 36px !important;
    }

    .profile-page .profile-header-city,
    .profile-page .profile-header-meta {
        color: rgba(255, 255, 255, .90) !important;
    }

    .profile-page .profile-header-bio {
        width: min(680px, 100%) !important;
        max-width: 680px !important;
        max-height: 44px !important;
        margin-top: 10px !important;
        color: rgba(255, 255, 255, .92) !important;
    }

    .profile-hero-stats-card {
        position: relative !important;
        z-index: 15 !important;
        width: min(860px, calc(100% - 502px)) !important;
        margin: -4px 0 0 184px !important;
        box-shadow: 0 20px 54px rgba(15, 23, 42, .14) !important;
    }

    .profile-content-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 292px !important;
        align-items: start !important;
        gap: 26px !important;
    }

    .profile-content-layout > .flex-1 {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .profile-content-layout > aside {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        position: sticky !important;
        top: 88px !important;
        display: block !important;
        width: 292px !important;
        max-width: 292px !important;
        margin-top: -142px !important;
        z-index: 25 !important;
        flex: 0 0 292px !important;
    }

    .profile-secondary-sections {
        margin-top: 18px !important;
    }

    #profile-posts,
    #posts-list {
        margin-top: 18px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-page .profile-header-cover {
        height: 360px !important;
    }

    .profile-page .profile-header-info {
        margin-top: -224px !important;
        padding: 0 28px !important;
    }

    .profile-page .profile-header-grid {
        grid-template-columns: 150px minmax(0, 1fr) !important;
        min-height: 190px !important;
    }

    .profile-page .profile-header-avatar-col {
        width: 150px !important;
    }

    .profile-page .profile-header-avatar {
        width: 148px !important;
        height: 148px !important;
    }

    .profile-hero-stats-card {
        width: min(700px, calc(100% - 462px)) !important;
        margin-left: 164px !important;
    }

    .profile-content-layout {
        grid-template-columns: minmax(0, 1fr) 276px !important;
        gap: 22px !important;
    }

    .profile-content-layout > aside {
        width: 276px !important;
        max-width: 276px !important;
        margin-top: -118px !important;
        flex-basis: 276px !important;
    }
}

@media (max-width: 1023px) {
    .profile-page .profile-header-cover {
        border-radius: 22px !important;
        overflow: hidden !important;
    }
}
/* Align the right sidebar with the hero metrics top edge. */
@media (min-width: 1024px) {
    .profile-content-layout > aside {
        margin-top: -112px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-content-layout > aside {
        margin-top: -92px !important;
    }
}

/* Current final lock: level lives as an avatar badge, metrics stay four columns. */
.profile-page .profile-header-level-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 168px !important;
    min-height: 38px !important;
    margin: -2px auto 0 !important;
    padding: 6px 12px 6px 7px !important;
    gap: 7px !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #111827 !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.profile-page .profile-header-level-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(249, 115, 22, .42) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .22) !important;
}

.profile-page .profile-header-level-card__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    border: 1px solid rgba(249, 115, 22, .22) !important;
    border-radius: 10px !important;
    background: #fff7ed !important;
    color: #f97316 !important;
}

.profile-page .profile-header-level-card__icon svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

.profile-page .profile-header-level-card__value {
    display: inline-flex !important;
    align-items: center !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.profile-page .profile-header-level-card__label {
    display: block !important;
    max-width: 82px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.profile-hero-stats-card {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 767px) {
    .profile-page .profile-header-level-card {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .profile-hero-stats-card {
        grid-template-columns: repeat(4, minmax(112px, 1fr)) !important;
    }
}

/* Current final lock: rank badge spacing and SVG rank icons. */
.profile-page .profile-header-level-card {
    margin: 10px auto 0 !important;
}

.profile-rank-icon--novice {
    color: #8f98a6 !important;
}

.profile-rank-icon--tourist {
    color: #46c76b !important;
}

.profile-rank-icon--explorer {
    color: #3f6ff2 !important;
}

.profile-rank-icon--tracker {
    color: #8f4fd2 !important;
}

.profile-rank-icon--legend {
    color: #ff7a32 !important;
}

.profile-page .profile-header-level-card__icon.profile-rank-icon--novice {
    background: #f8fafc !important;
    border-color: rgba(143, 152, 166, .28) !important;
}

.profile-page .profile-header-level-card__icon.profile-rank-icon--tourist {
    background: #ecfdf3 !important;
    border-color: rgba(70, 199, 107, .24) !important;
}

.profile-page .profile-header-level-card__icon.profile-rank-icon--explorer {
    background: #eef4ff !important;
    border-color: rgba(63, 111, 242, .22) !important;
}

.profile-page .profile-header-level-card__icon.profile-rank-icon--tracker {
    background: #f6f0ff !important;
    border-color: rgba(143, 79, 210, .24) !important;
}

.profile-page .profile-header-level-card__icon.profile-rank-icon--legend {
    background: #fff4ed !important;
    border-color: rgba(255, 122, 50, .26) !important;
}

.profile-page .profile-header-level-card__icon svg,
#achievements-modal .profile-rank-rule-icon svg {
    display: block !important;
}

.profile-page .profile-header-level-card__icon svg {
    width: 18px !important;
    height: 18px !important;
}

#achievements-modal .profile-rank-rules li {
    min-height: 48px !important;
}

#achievements-modal .profile-rank-rule-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
}

#achievements-modal .profile-rank-rule-icon svg {
    width: 44px !important;
    height: 44px !important;
}

/* Current final lock: route cards slider, elevation profiles, and next award card. */
.profile-route-toolbar {
    align-items: center !important;
}

.profile-route-sort {
    align-items: center !important;
    gap: 8px !important;
}

.profile-route-slider-controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.profile-route-slider-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(229, 231, 235, .95) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #475569 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
    cursor: pointer !important;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.profile-route-slider-btn:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(249, 115, 22, .35) !important;
    color: #f97316 !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12) !important;
}

.profile-route-slider-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.profile-route-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 -2px !important;
    padding: 2px 2px 14px !important;
    scroll-padding-left: 2px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.profile-route-grid::-webkit-scrollbar {
    display: none !important;
}

.profile-route-card {
    flex: 0 0 clamp(196px, calc((100% - 48px) / 4), 236px) !important;
    scroll-snap-align: start !important;
    border-radius: 16px !important;
}

.profile-route-card__media {
    aspect-ratio: 1.62 / 1 !important;
}

.profile-route-card__body {
    padding: 11px 12px 10px !important;
}

.profile-route-card__metrics {
    margin-top: 9px !important;
}

.profile-route-card__altitude {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: 8px !important;
}

.profile-route-card__altitude svg {
    display: block !important;
    width: 100% !important;
    height: 32px !important;
    overflow: visible !important;
}

.profile-route-card__altitude-fill {
    fill: rgba(249, 115, 22, .10) !important;
}

.profile-route-card__altitude-line {
    fill: none !important;
    stroke: #ff6b2d !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke !important;
}

.profile-route-card__altitude--easy .profile-route-card__altitude-fill {
    fill: rgba(96, 165, 250, .12) !important;
}

.profile-route-card__altitude--easy .profile-route-card__altitude-line {
    stroke: #60a5fa !important;
}

.profile-route-card__altitude--hard .profile-route-card__altitude-line {
    stroke: #f97316 !important;
}

.profile-route-card__altitude span {
    display: block !important;
    color: #22c55e !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.profile-route-card__altitude--easy span {
    color: #60a5fa !important;
}

.profile-route-card__altitude--hard span {
    color: #f97316 !important;
}

.profile-next-award-card__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.profile-next-award-card__head h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 18px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

.profile-next-award-card__head span {
    color: #94a3b8 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.profile-next-award-card__body {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 12px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #fbfdff !important;
    padding: 12px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.profile-next-award-card__body:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(249, 115, 22, .22) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08) !important;
}

.profile-next-award-card__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    background: #fff7ed !important;
}

.profile-next-award-card__body--blue .profile-next-award-card__icon {
    background: #eff6ff !important;
}

.profile-next-award-card__body--green .profile-next-award-card__icon {
    background: #f0fdf4 !important;
}

.profile-next-award-card__icon img {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}

.profile-next-award-card__content {
    display: flex !important;
    min-width: 0 !important;
    flex: 1 !important;
    flex-direction: column !important;
}

.profile-next-award-card__content strong {
    color: #111827 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
}

.profile-next-award-card__content small {
    display: -webkit-box !important;
    margin-top: 3px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.profile-next-award-card__bar {
    display: block !important;
    width: 100% !important;
    height: 4px !important;
    margin-top: 9px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #e5e7eb !important;
}

.profile-next-award-card__bar span {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: #f97316 !important;
}

.profile-next-award-card__body--blue .profile-next-award-card__bar span {
    background: #3b82f6 !important;
}

.profile-next-award-card__body--green .profile-next-award-card__bar span {
    background: #22c55e !important;
}

.profile-next-award-card__content em {
    margin-top: 5px !important;
    color: #64748b !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

@media (max-width: 1180px) {
    .profile-route-card {
        flex-basis: clamp(204px, calc((100% - 32px) / 3), 248px) !important;
    }
}

@media (max-width: 767px) {
    .profile-route-slider-controls {
        display: none !important;
    }

    .profile-route-grid {
        gap: 12px !important;
        padding-bottom: 12px !important;
    }

    .profile-route-card {
        flex-basis: min(78vw, 280px) !important;
    }
}

/* Final overlay lock: keep the hero "more" menu above sidebar cards. */
.profile-page .profile-header-info,
.profile-page .profile-header-grid,
.profile-page .profile-header-main,
.profile-page .profile-header-main-row,
.profile-page .profile-header-actions,
.profile-page .profile-header-action-row {
    overflow: visible !important;
}

.profile-page .profile-subscription-ring {
    border: 3px solid #9ca3af;
}

.profile-page .profile-subscription-ring--plus {
    border-color: #ff5b14;
}

.profile-page .profile-header-actions,
.profile-page .profile-header-action-row,
.profile-page .profile-header-more-menu {
    position: relative !important;
    z-index: 1200 !important;
}

.profile-page .profile-header-info {
    position: relative !important;
    z-index: 80 !important;
}

.profile-page .profile-header-more-menu[open] {
    z-index: 1500 !important;
}

.profile-page .profile-header-more-menu__dropdown {
    z-index: 1600 !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22) !important;
}

.profile-page .profile-header-routes-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid #fed7c7;
    border-radius: 16px;
    background: #fff7f2;
    color: #d9481c;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(216, 72, 28, .09);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.profile-page .profile-header-routes-button:hover {
    transform: translateY(-1px);
    border-color: #ffae8f;
    background: #fff1e9;
}

.profile-page .profile-header-routes-button img {
    width: 20px;
    height: 20px;
}

.profile-page > section:first-child:has(.profile-header-more-menu[open]),
.profile-page .profile-header-info:has(.profile-header-more-menu[open]) {
    z-index: 1400 !important;
}

/* Final metrics lock: keep the hero stats card fully opaque. */
.profile-page .profile-hero-stats-card {
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.profile-page .profile-hero-stat {
    background: #ffffff !important;
}

.profile-page .profile-hero-stat:not(:last-child) {
    border-right-color: #e5e7eb !important;
}

/* Final profile tabs lock: icon tabs like the reference strip. */
.profile-page .profile-tabs-bar {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-page .profile-tabs-scroll {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    padding: 0 !important;
    padding-right: 12px !important;
}

.profile-page .profile-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 48px !important;
    padding: 0 0 13px !important;
    border-width: 0 0 2px !important;
    border-style: solid !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.profile-page .profile-tab-icon {
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: currentColor !important;
}

.profile-page .profile-tab-btn:hover {
    color: #f97316 !important;
}

.profile-page .profile-tab-btn.border-orange-500,
.profile-page .profile-tab-btn.text-gray-900 {
    border-color: #f97316 !important;
    color: #f97316 !important;
    font-weight: 760 !important;
}

@media (max-width: 767px) {
    .profile-page .profile-tabs-bar {
        margin: 0 12px 18px !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .profile-page .profile-tabs-scroll {
        gap: 24px !important;
        padding-right: 14px !important;
    }

    .profile-page .profile-tab-btn {
        min-height: 44px !important;
        padding: 0 0 11px !important;
        border-width: 0 0 2px !important;
        border-radius: 0 !important;
        background: transparent !important;
        font-size: 12px !important;
        font-weight: 650 !important;
    }

    .profile-page .profile-tab-icon {
        flex-basis: 15px !important;
        width: 15px !important;
        height: 15px !important;
    }
}

/* Final owner cover actions: replace the old cover edit CTA with settings and QR. */
.profile-page .profile-cover-owner-actions {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.profile-page .profile-cover-owner-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(255, 255, 255, .68) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #111827 !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition: transform .18s ease, background .18s ease, color .18s ease !important;
}

.profile-page .profile-cover-owner-action:hover {
    transform: translateY(-1px) !important;
    background: #ffffff !important;
}

.profile-page .profile-cover-owner-action--qr {
    background: rgba(17, 24, 39, .92) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .28) !important;
}

.profile-page .profile-cover-owner-action--qr:hover {
    background: #111827 !important;
}

.profile-page .profile-cover-owner-action svg,
.profile-page .profile-cover-owner-action img {
    width: 21px !important;
    height: 21px !important;
}

@media (max-width: 767px) {
    .profile-page .profile-cover-owner-actions {
        top: 14px !important;
        right: 14px !important;
        gap: 8px !important;
    }

    .profile-page .profile-cover-owner-action {
        width: 42px !important;
        height: 42px !important;
        border-radius: 999px !important;
    }

    .profile-page .profile-cover-owner-action svg,
    .profile-page .profile-cover-owner-action img {
        width: 20px !important;
        height: 20px !important;
    }
}

.profile-contribution {
    margin: 0 0 20px;
    border: 1px solid #e3e8ee;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
}

.profile-contribution__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-contribution__head p {
    margin: 0 0 4px;
    color: #f25c1c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-contribution__head h2 {
    margin: 0;
    color: #172033;
    font-size: 19px;
    font-weight: 900;
}

.profile-contribution__head > img { width: 34px; height: 34px; }

.profile-contribution__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.profile-contribution__stat {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    min-width: 0;
    border-radius: 12px;
    background: #f7f9fb;
    padding: 11px;
}

.profile-contribution__stat img { grid-row: 1 / 3; width: 23px; height: 23px; }
.profile-contribution__stat strong { color: #172033; font-size: 17px; font-weight: 900; line-height: 1; }
.profile-contribution__stat span { overflow: hidden; color: #737f91; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.profile-contribution__impact,
.profile-contribution__empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
}

.profile-contribution__impact strong,
.profile-contribution__empty strong {
    display: block;
    color: #172033;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
}

.profile-contribution__impact span,
.profile-contribution__empty span {
    display: block;
    margin-top: 3px;
    color: #737f91;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.profile-contribution__empty a {
    flex: 0 0 auto;
    padding: 10px 13px;
    border-radius: 12px;
    background: #ff642f;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 767px) {
    .profile-contribution { margin: 0; border-width: 1px 0; border-radius: 0; padding: 16px; }
    .profile-contribution__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-contribution__impact,
    .profile-contribution__empty { align-items: flex-start; flex-direction: column; }
}

/* Profile layout polish v357: align contribution, tabs, and route carousel controls. */
.profile-page > section.profile-contribution {
    box-sizing: border-box !important;
    margin: 0 0 20px !important;
    border: 1px solid #e3e8ee !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    padding: 18px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045) !important;
}

@media (min-width: 1024px) {
    .profile-page .profile-contribution {
        width: calc(100% - 318px);
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-page .profile-contribution {
        width: calc(100% - 298px);
    }
}

.profile-page .profile-tabs-bar {
    overflow: hidden !important;
    margin: 0 0 14px !important;
    padding: 6px !important;
    border: 1px solid #e3e8ee !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045) !important;
}

.profile-page .profile-tabs-scroll {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 0 !important;
}

.profile-page .profile-tab-btn {
    display: inline-flex !important;
    min-width: 0 !important;
    min-height: 42px !important;
    flex: 1 1 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 680 !important;
    text-align: center !important;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

.profile-page .profile-tab-btn:hover {
    background: #f8fafc !important;
    color: #334155 !important;
}

.profile-page .profile-tab-btn.border-orange-500,
.profile-page .profile-tab-btn.text-gray-900 {
    border: 0 !important;
    background: #fff3ec !important;
    color: #f25c1c !important;
    box-shadow: inset 0 0 0 1px rgba(242, 92, 28, .16) !important;
    font-weight: 780 !important;
}

.profile-page .profile-route-carousel {
    position: relative;
    min-width: 0;
}

.profile-page .profile-route-carousel > .profile-route-slider-controls {
    position: absolute !important;
    inset: 0 !important;
    z-index: 12 !important;
    display: block !important;
    pointer-events: none !important;
}

.profile-page .profile-route-carousel .profile-route-slider-btn {
    position: absolute !important;
    top: 50% !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(226, 232, 240, .96) !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #334155 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18) !important;
    pointer-events: auto !important;
    transform: translateY(-50%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.profile-page .profile-route-carousel .profile-route-slider-btn--prev {
    left: 8px !important;
}

.profile-page .profile-route-carousel .profile-route-slider-btn--next {
    right: 8px !important;
}

.profile-page .profile-route-carousel .profile-route-slider-btn:hover {
    border-color: rgba(249, 115, 22, .44) !important;
    color: #f25c1c !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .22) !important;
    transform: translateY(-50%) scale(1.04) !important;
}

.profile-page .profile-route-carousel .profile-route-slider-btn:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .24) !important;
    outline-offset: 2px !important;
}

.profile-page .profile-route-carousel .profile-route-slider-btn:disabled {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1023px) {
    .profile-page .profile-contribution {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .profile-page .profile-contribution {
        margin: 0 !important;
        border-width: 1px 0 !important;
        border-radius: 0 !important;
        padding: 16px !important;
    }

    .profile-page .profile-tabs-bar {
        margin: 0 12px 18px !important;
        padding: 5px !important;
        border: 1px solid #e3e8ee !important;
        border-radius: 14px !important;
        background: #ffffff !important;
    }

    .profile-page .profile-tabs-scroll {
        justify-content: flex-start !important;
        gap: 4px !important;
        padding: 0 !important;
    }

    .profile-page .profile-tab-btn {
        min-height: 40px !important;
        flex: 0 0 auto !important;
        padding: 0 13px !important;
        border: 0 !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }

    .profile-page .profile-route-carousel .profile-route-slider-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .profile-page .profile-route-carousel .profile-route-slider-btn--prev {
        left: 6px !important;
    }

    .profile-page .profile-route-carousel .profile-route-slider-btn--next {
        right: 6px !important;
    }
}

/* Profile hierarchy v358: routes, photos and posts in one flow; contribution in the rail. */
.profile-page .profile-tabs-bar {
    display: none !important;
}

.profile-page .profile-main-sections {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}

.profile-page .profile-main-sections > *,
.profile-page .profile-secondary-sections,
.profile-page .profile-after-posts,
.profile-page #profile-posts,
.profile-page #posts-list {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.profile-page .profile-content-layout > aside .profile-contribution {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #e3e8ee !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .10) !important;
}

.profile-page .profile-content-layout > aside .profile-contribution__head {
    align-items: flex-start;
}

.profile-page .profile-content-layout > aside .profile-contribution__head h2 {
    font-size: 18px !important;
    line-height: 1.12 !important;
}

.profile-page .profile-content-layout > aside .profile-contribution__head > img {
    width: 30px;
    height: 30px;
}

.profile-page .profile-content-layout > aside .profile-contribution__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-page .profile-content-layout > aside .profile-contribution__stat {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
    padding: 10px;
}

.profile-page .profile-content-layout > aside .profile-contribution__stat img {
    width: 20px;
    height: 20px;
}

.profile-page .profile-content-layout > aside .profile-contribution__stat strong {
    font-size: 15px;
}

.profile-page .profile-content-layout > aside .profile-contribution__impact,
.profile-page .profile-content-layout > aside .profile-contribution__empty {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.profile-page .profile-content-layout > aside .profile-contribution__empty a {
    width: 100%;
    text-align: center;
}

@media (min-width: 1024px) {
    .profile-page .profile-content-layout > aside {
        margin-top: -112px !important;
        z-index: 25 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .profile-page .profile-content-layout > aside {
        margin-top: -92px !important;
    }
}

@media (max-width: 1023px) {
    .profile-page .profile-main-sections {
        gap: 16px;
    }

    .profile-page .profile-content-layout > aside .profile-contribution {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .profile-page .profile-main-sections {
        gap: 14px;
    }

    .profile-page .profile-content-layout > aside .profile-contribution {
        border-width: 1px !important;
        border-radius: 18px !important;
        padding: 16px !important;
    }
}

/* Mobile profile refresh: keep the cover edge straight and hero metrics in one row. */
@media (max-width: 767px) {
    .profile-page > section:first-child {
        clip-path: none !important;
        transform: none !important;
    }

    .profile-page .profile-header-cover,
    .profile-page .profile-header-cover img,
    .profile-page .profile-header-cover > .absolute.inset-0 {
        clip-path: none !important;
        transform: none !important;
        border-radius: 0 !important;
    }

    .profile-page .profile-hero-stats-card {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: calc(100% - 24px) !important;
        min-height: 66px !important;
        margin: 12px auto 0 !important;
        border-radius: 18px !important;
    }

    .profile-page .profile-hero-stat {
        min-width: 0 !important;
        gap: 3px !important;
        padding: 8px 3px !important;
        border-right: 1px solid #e5e7eb !important;
    }

    .profile-page .profile-hero-stat strong {
        font-size: clamp(13px, 4vw, 17px) !important;
    }

    .profile-page .profile-hero-stat span:not(.profile-hero-stat__icon) {
        width: 100% !important;
        font-size: 8px !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    .profile-mobile-reference,
    .profile-mobile-reference__visited {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 18px 16px;
        border-top: 1px solid #edf0ee;
        background: #fff;
    }

    .profile-mobile-reference__section {
        min-width: 0;
    }

    .profile-mobile-reference__heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0 0 12px;
        color: #14212b;
    }

    .profile-mobile-reference__heading h3 {
        margin: 0;
        font-size: 17px;
        line-height: 1.2;
        font-weight: 850;
    }

    .profile-mobile-reference__heading > span,
    .profile-mobile-reference__heading a {
        color: #25313a;
        font-size: 21px;
        font-weight: 800;
        text-decoration: none;
    }

    .profile-mobile-reference__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid #eef0ef;
        border-radius: 18px;
        background: #fff;
    }

    .profile-mobile-reference__stat {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        min-height: 74px;
        padding: 10px;
        border-bottom: 1px solid #f0f2f1;
    }

    .profile-mobile-reference__stat:nth-child(odd) {
        border-right: 1px solid #f0f2f1;
    }

    .profile-mobile-reference__stat > span:last-child {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 3px;
    }

    .profile-mobile-reference__stat strong {
        overflow: hidden;
        color: #202b33;
        font-size: 14px;
        line-height: 1.1;
        font-weight: 850;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-reference__stat small {
        color: #737d82;
        font-size: 9px;
        line-height: 1.2;
    }

    .profile-mobile-reference__icon,
    .profile-mobile-reference__activity-icon {
        display: inline-flex;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
    }

    .profile-mobile-reference__icon svg,
    .profile-mobile-reference__activity-icon svg {
        width: 20px;
        height: 20px;
    }

    .profile-mobile-reference__icon--green { color: #218b5d; background: #eef8f1; }
    .profile-mobile-reference__icon--orange { color: #ed8a24; background: #fff4e7; }
    .profile-mobile-reference__icon--blue { color: #5287d7; background: #eff5ff; }
    .profile-mobile-reference__icon--red { color: #ed674f; background: #fff0eb; }

    .profile-mobile-reference__activities,
    .profile-mobile-reference__regions {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 1px 1px 5px;
        scrollbar-width: none;
    }

    .profile-mobile-reference__activities::-webkit-scrollbar,
    .profile-mobile-reference__regions::-webkit-scrollbar { display: none; }

    .profile-mobile-reference__activity {
        display: flex;
        flex: 0 0 72px;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: #7a8185;
        text-align: center;
    }

    .profile-mobile-reference__activity-icon {
        width: 54px;
        height: 54px;
        border: 1px solid #eceeed;
        background: #f5f6f5;
    }

    .profile-mobile-reference__activity:first-child .profile-mobile-reference__activity-icon {
        border-color: #f2b38d;
        background: #fff4ed;
        color: #ef693c;
    }

    .profile-mobile-reference__activity strong {
        max-width: 100%;
        overflow: hidden;
        color: #4e5a60;
        font-size: 9px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-reference__activity small {
        color: #92999c;
        font-size: 8px;
    }

    .profile-mobile-reference__region {
        flex: 0 0 128px;
        overflow: hidden;
        border: 1px solid #edf0ef;
        border-radius: 15px;
        background: #f8f9f8;
        color: #25313a;
        text-decoration: none;
    }

    .profile-mobile-reference__region-cover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 82px;
        overflow: hidden;
        background: #e8eee8;
        color: #e96738;
        font-size: 28px;
    }

    .profile-mobile-reference__region-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-mobile-reference__region > strong,
    .profile-mobile-reference__region > small {
        display: block;
        overflow: hidden;
        margin: 7px 8px 0;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-mobile-reference__region > strong { font-size: 10px; font-weight: 800; }
    .profile-mobile-reference__region > small { margin-top: 3px; margin-bottom: 8px; color: #778187; font-size: 8px; }

    #profile-photos .profile-photo-collage {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, 96px) !important;
        gap: 7px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    #profile-photos .profile-photo-collage__item {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0 !important;
    }

    #profile-photos .profile-photo-collage__item:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    #profile-photos .profile-photo-collage__item:nth-child(n+6) { display: none !important; }

    #profile-photos .profile-photo-collage__image {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        border-radius: 13px !important;
    }
}
