/* User profile page — ultra-modern shell (PageSpeed: external, cacheable) */
#main-content.with-sidebar {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

#main-content > .up-root,
#main-content.with-sidebar > .up-root {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.up-root {
    --up-ink: #0f172a;
    --up-muted: #334155;
    --up-line: #e2e8f0;
    --up-card: #ffffff;
    --up-accent: #9333ea;
    --up-accent2: #2563eb;
    --up-radius: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0 auto;
    max-width: min(1360px, 100%);
    padding: 0.45rem 0.5rem;
    color: var(--up-ink);
    display: block;
}

.up-font-14 .up-profile-slot,
.up-font-14 .up-profile-slot p,
.up-font-14 .up-profile-slot li,
.up-font-14 .up-profile-slot a,
.up-font-14 .up-profile-slot span,
.up-font-14 .up-profile-slot label {
    font-size: 14px !important;
}

.up-profile-slot {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Reset legacy buddypress / home.css floats inside userpage */
.up-profile-slot #item-body,
.up-profile-slot .intern-paddingpro {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.up-profile-slot #divnprofilecontainer,
.up-profile-slot #divnewprofilecontainer {
    width: 100%;
    max-width: 100%;
}

/* Profile hero — photo 1/3 + cover/name 2/3 on desktop */
.up-profile-slot .nprofilecontainer,
.up-profile-slot .newprofilecontainer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.12);
    float: none !important;
    flex-wrap: nowrap !important;
}

.up-profile-slot .profilecontainer2 #item-header-content,
.up-profile-slot .nprofilecontainer2 #item-header-content,
.up-profile-slot .profilecontainer2 .user-profile-info,
.up-profile-slot .nprofilecontainer2 .user-profile-info {
    color: #fff;
    text-align: center;
    margin-top: .35rem;
}

.up-profile-slot .profilecontainer2 .user-nicename a,
.up-profile-slot .nprofilecontainer2 .user-nicename a,
.up-profile-slot .profilecontainer2 .user-designation,
.up-profile-slot .profilecontainer2 .user-department,
.up-profile-slot .profilecontainer2 .user-slogan,
.up-profile-slot .nprofilecontainer2 .user-designation,
.up-profile-slot .nprofilecontainer2 .user-department,
.up-profile-slot .nprofilecontainer2 .user-slogan {
    color: rgba(255, 255, 255, 0.94) !important;
}

.up-profile-slot .nprofilecontainer2,
.up-profile-slot .profilecontainer2,
.up-profile-slot #item-header-avatar {
    float: none !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    background: linear-gradient(165deg, #1e1b4b 0%, #4338ca 55%, #6d28d9 100%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.45rem;
    border-radius: 14px 0 0 14px;
    box-sizing: border-box;
}

.up-profile-slot #item-header-avatar .profilepic {
    flex: 0 0 auto;
    align-self: center;
}

.up-profile-slot .nprofilecontainer1,
.up-profile-slot .profilecontainer1 {
    float: none !important;
    flex: none !important;
    min-width: 0;
    min-height: 130px !important;
    max-height: none !important;
    width: 100%;
    border-radius: 0 14px 14px 0;
    position: relative;
    box-sizing: border-box;
    display: block;
}

.up-profile-slot .profilecoverphoto {
    max-width: none !important;
    width: 100%;
    min-height: 120px;
    max-height: 100%;
    height: auto;
    border-radius: 0 14px 14px 0;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3f5efb 0%, #fc466b 100%);
    background-position: center;
    background-size: cover;
}

.up-profile-slot .up-progressive__lqip {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    transform: scale(1.08);
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.up-profile-slot .up-progressive--cover .up-progressive__media {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.up-profile-slot .up-progressive--cover .up-progressive__full {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.up-profile-slot .up-progressive--cover.is-loaded .up-progressive__full {
    opacity: 1;
}

.up-profile-slot .up-progressive--cover.is-loaded .up-progressive__lqip {
    opacity: 0;
}

.up-profile-slot .profilecoverphoto .camlga,
.up-profile-slot .profilecoverphoto .btn-cover-upload {
    position: relative;
    z-index: 4;
}

.up-profile-slot #item-header {
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    float: none !important;
}

.up-profile-slot .up-progressive--avatar,
.up-profile-slot .up-avatar-frame {
    --up-avatar-size: clamp(112px, 15vw, 160px);
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: var(--up-avatar-size) !important;
    height: var(--up-avatar-size) !important;
    min-width: var(--up-avatar-size);
    min-height: var(--up-avatar-size);
    max-width: var(--up-avatar-size);
    max-height: var(--up-avatar-size);
    flex: 0 0 var(--up-avatar-size);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    vertical-align: middle;
}

.up-profile-slot .up-progressive--avatar .up-progressive__lqip {
    position: absolute;
    inset: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
}

.up-profile-slot .up-progressive--avatar .up-progressive__media,
.up-profile-slot .up-progressive--avatar .up-progressive__media > a {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.up-profile-slot .up-progressive--avatar picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.up-profile-slot .up-progressive--avatar img,
.up-profile-slot #item-header-avatar img.avatar,
.up-profile-slot #item-header-avatar img.up-progressive__full,
.up-profile-slot #item-header-avatar #imghead,
.up-profile-slot #item-header-avatar #imghead2 {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    aspect-ratio: auto !important;
}

.up-profile-slot .up-progressive--avatar .up-progressive__full {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.up-profile-slot .up-progressive--avatar.is-loaded .up-progressive__full {
    opacity: 1;
}

.up-profile-slot .up-progressive--avatar.is-loaded .up-progressive__lqip {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .up-profile-slot .up-progressive__lqip,
    .up-profile-slot .up-progressive__full {
        transition: none;
    }
}

.up-profile-slot .userprofiledetail {
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    box-sizing: border-box;
    text-align: center;
}

.up-profile-slot #item-header-content,
.up-profile-slot .user-profile-info {
    width: 100% !important;
    margin: 0 !important;
    max-width: 100%;
    text-align: center;
}

.up-profile-slot .user-nicename {
    margin: 0 0 .15rem;
    line-height: 1.25;
}

.up-profile-slot .user-nicename a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, .95rem + .4vw, 1.35rem);
}

.up-profile-slot .user-designation,
.up-profile-slot .user-department,
.up-profile-slot .user-slogan {
    font-size: clamp(.8rem, .75rem + .25vw, .95rem) !important;
    padding: .05rem 0;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.up-profile-slot #item-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.6rem;
}

.up-profile-slot .profile-authorpod-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
    padding: 0.58rem 1.2rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #5b21b6 !important;
    text-decoration: none !important;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.up-profile-slot .profile-authorpod-link:hover,
.up-profile-slot .profile-authorpod-link:focus {
    color: #4c1d95 !important;
    text-decoration: none !important;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.up-profile-slot .profile-authorpod-link:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.up-profile-slot .profile-authorpod-link .fa-headphones {
    margin-right: 0;
    font-size: 0.95em;
}

.up-profile-slot .profilepic {
    padding: 0 !important;
    margin: 0 auto;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
    align-self: center;
}

.up-profile-slot .profilepic > .up-progressive--avatar,
.up-profile-slot .profilepic > .up-avatar-frame {
    margin: 0 auto;
}

.up-profile-slot .status-sipl,
.up-profile-slot .status-text-container {
    display: block;
    text-align: center;
    margin: 0 0 0.35rem;
    font-size: .85rem !important;
    line-height: 1.45;
    color: var(--up-muted);
}

/* Profile actions — full-width bar above details */
.up-profile-slot .up-profile-actions {
    width: 100%;
    max-width: 100%;
    margin: 0.3rem 0 0;
    padding: 0;
    box-sizing: border-box;
}

.up-profile-slot .up-profile-actions > div {
    width: 100%;
}

.up-profile-slot .intern-boxnew {
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    width: 100%;
    padding: 0.2rem 0.25rem;
    text-align: center;
    box-sizing: border-box;
}

.up-profile-slot .up-profile-actions .intern-boxnew {
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--up-line);
}

.up-profile-slot .profile-button-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none;
    width: 100%;
    max-width: 100%;
}

/* Hide empty profile button slots (hidden ASP.NET controls leave blank <li>) */
.up-profile-slot .profile-button-container > li:empty,
.up-profile-slot .profile-button-container > li:not(:has(a, button, input[type="submit"], input[type="button"])) {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

.up-profile-slot .profile-button-container > li {
    float: none !important;
    display: inline-flex !important;
    width: 5.25rem !important;
    min-width: 5.25rem !important;
    max-width: 5.25rem !important;
    flex: 0 0 5.25rem;
    margin: 0 !important;
}

.up-profile-slot .profile-button-container li a,
.up-profile-slot .profile-button-container li .admin_a,
.up-profile-slot .profile-button-container li input[type="submit"],
.up-profile-slot .profile-button-container li button,
.up-profile-slot .profile-button-container li input[type="button"] {
    width: 5.25rem !important;
    min-width: 5.25rem !important;
    max-width: 5.25rem !important;
    height: 5.25rem !important;
    min-height: 5.25rem !important;
    max-height: 5.25rem !important;
    padding: 0.35rem 0.25rem !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12) !important;
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
    hyphens: auto;
    text-align: center;
    color: #1e293b !important;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}

.up-profile-slot .profile-button-container li a:hover,
.up-profile-slot .profile-button-container li .admin_a:hover,
.up-profile-slot .profile-button-container li input[type="submit"]:hover,
.up-profile-slot .profile-button-container li button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
}

.up-profile-slot .profile-button-container svg {
    width: 18px !important;
    height: 17px !important;
    margin: 0 auto !important;
    flex-shrink: 0;
}

.up-profile-slot .profile-button-container li a i.fa,
.up-profile-slot .profile-button-container li .fa {
    font-size: 18px !important;
    line-height: 1;
    margin: 0 auto !important;
    flex-shrink: 0;
}

.up-profile-slot .profile-button-container .count,
.up-profile-slot .profile-button-container .no-count {
    display: block;
    font-size: 0.55rem !important;
    line-height: 1;
    margin-top: 0.05rem;
    font-weight: 600;
}

/* Details / contact block below hero + actions */
.up-profile-slot .detailscontainer {
    margin-top: 0.35rem;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.up-profile-slot .userposts {
    margin: 0 0 0.3rem;
    text-align: left;
}

.up-profile-slot .userposts > span {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--up-ink);
}

.up-profile-slot .mainpostwallcat,
.up-profile-slot .comments-summery3,
.up-profile-slot .contact-container {
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    box-sizing: border-box;
}

.up-profile-slot .up-profile-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.25rem;
    width: 100%;
    align-items: start;
}

.up-profile-slot .up-profile-details-col--skills {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

.up-profile-slot .up-profile-details-col--skills li.viewlable {
    grid-template-columns: minmax(0, 50px) minmax(0, 1fr);
}

.up-profile-slot .up-profile-details-col--skills li.viewlable .personal {
    max-width: 50px;
    width: 100%;
    box-sizing: border-box;
}

.up-profile-slot .up-profile-details-col--skills li.viewlable > span:not(.personal) {
    grid-column: 2;
    min-width: 0;
}

@media (min-width: 768px) {
    .up-profile-slot .up-profile-details-col--personal {
        max-width: min(100%, 34rem);
    }
}

.up-profile-slot .up-profile-details-col {
    min-width: 0;
    width: 100%;
}

/* Personal details card — ultra-modern */
.up-profile-slot .up-personal-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid var(--up-line);
    border-radius: var(--up-radius);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.15rem 1.25rem 1.05rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.up-profile-slot .up-personal-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid #eef2f7;
}

.up-profile-slot .up-personal-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.up-profile-slot .up-personal-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.28);
}

.up-profile-slot .up-personal-card__badge svg {
    display: block;
}

.up-profile-slot .up-personal-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--up-ink);
    line-height: 1.25;
}

.up-profile-slot .up-personal-card__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 51, 234, 0.35);
    background: rgba(147, 51, 234, 0.06);
    color: var(--up-accent) !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.up-profile-slot .up-personal-card__edit:hover {
    background: rgba(147, 51, 234, 0.12);
    border-color: rgba(147, 51, 234, 0.55);
    transform: translateY(-1px);
}

.up-profile-slot .up-personal-fields {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.up-profile-slot .up-personal-field {
    display: grid;
    grid-template-columns: minmax(7.5rem, 34%) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.75);
    border-bottom: 1px solid #eef2f7 !important;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.up-profile-slot .up-personal-field:hover {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.up-profile-slot .up-personal-field__label {
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b !important;
    line-height: 1.35;
}

.up-profile-slot .up-personal-field__body {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.up-profile-slot .up-personal-field__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf4;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}

.up-profile-slot .up-personal-field__text,
.up-profile-slot .up-personal-field .profiledetails {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: var(--up-ink) !important;
    line-height: 1.4;
    word-break: break-word;
    min-width: 0;
}

@media (max-width: 480px) {
    .up-profile-slot .up-personal-card {
        padding: 1rem 0.9rem 0.9rem;
    }

    .up-profile-slot .up-personal-card__head {
        flex-wrap: wrap;
    }

    .up-profile-slot .up-personal-card__edit {
        width: 100%;
        justify-content: center;
    }

    .up-profile-slot .up-personal-field {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        align-items: start;
    }

    .up-profile-slot .up-personal-field__label {
        padding-bottom: 0.1rem;
    }
}

.up-profile-slot ul.viul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.up-profile-slot li.viewlable {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: .2rem .45rem;
    padding: 0.28rem 0;
    border-bottom: 1px solid #f1f5f9;
    float: none !important;
    width: 100%;
    box-sizing: border-box;
}

.up-profile-slot li.viewlable:last-child {
    border-bottom: none;
}

.up-profile-slot li.viewlable img {
    float: none !important;
    grid-column: 1;
    justify-self: start;
}

.up-profile-slot li.viewlable .profileheading {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: .92rem;
    margin: 0 0 .25rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.up-profile-slot li.viewlable .personal {
    font-weight: 500;
    color: var(--up-muted);
    font-size: .82rem;
}

.up-profile-slot li.viewlable .profiledetails {
    font-weight: 500;
    color: var(--up-ink);
    font-size: .86rem;
    word-break: break-word;
}

.up-profile-slot li.viewlable a.martop,
.up-profile-slot li.viewlable #btnedit {
    float: none !important;
    grid-column: 2;
    justify-self: end;
    font-size: .78rem !important;
    white-space: nowrap;
}

.up-profile-slot .comments-summerytitle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.5rem;
    margin: 0;
}

/* Public view: hide owner-only chrome */
.up-profile-slot.up-public-view .edit-profile-icon,
.up-profile-slot.up-public-view #logout-li,
.up-profile-slot.up-public-view #liadmin,
.up-profile-slot.up-public-view #liregister,
.up-profile-slot.up-public-view #lnkapprove,
.up-profile-slot.up-public-view #btnedit {
    display: none !important;
}

@media (max-width: 768px) {
    .up-profile-slot .nprofilecontainer,
    .up-profile-slot .newprofilecontainer {
        grid-template-columns: 1fr;
    }

    .up-profile-slot .nprofilecontainer2,
    .up-profile-slot .profilecontainer2 {
        border-radius: 14px 14px 0 0;
        padding: 0.55rem 0.5rem 0.45rem;
    }

    .up-profile-slot .nprofilecontainer1,
    .up-profile-slot .profilecontainer1 {
        border-radius: 0 0 14px 14px;
        min-height: 110px !important;
    }

    .up-profile-slot .profilecoverphoto {
        border-radius: 0 0 14px 14px;
        min-height: 100px;
        max-height: 130px;
    }

    .up-profile-slot .userprofiledetail {
        min-height: 110px;
        padding: 0.55rem 0.5rem;
    }

    .up-profile-slot li.viewlable {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .up-profile-slot li.viewlable a.martop,
    .up-profile-slot li.viewlable #btnedit {
        grid-column: 1;
        justify-self: start;
        margin-top: .35rem;
    }
}

.up-profile-slot .profilepic img,
.up-profile-slot img[id*="imgprofile"],
.up-profile-slot img[id*="profilephoto"] {
    object-fit: cover !important;
}

.up-profile-slot::after {
    content: "";
    display: table;
    clear: both;
}

.up-shell {
    box-sizing: border-box;
    border-radius: var(--up-radius);
    background: var(--up-card);
    border: 1px solid var(--up-line);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    padding: 0.5rem 0.55rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.up-error {
    margin: 0 0 0.45rem 0;
    border-radius: 12px;
    border: 1px solid #fecaca;
    color: #991b1b;
    background: #fef2f2;
    padding: .8rem .95rem;
    font-size: .92rem;
}

.up-main { display: block; min-width: 0; }

.up-activity-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--up-line);
}

.up-activity-wrap,
.up-cat-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.up-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0.75rem;
    margin-top: 0;
    align-items: start;
}

@media (min-width: 960px) {
    .up-dash-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: start;
    }
}

.up-panel {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(145deg, #fafafa 0%, #fff 50%);
    border: 1px solid var(--up-line);
    border-radius: var(--up-radius);
    padding: 0.55rem 0.6rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
}

.up-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .3rem .5rem;
    margin-bottom: 0.4rem;
    row-gap: .35rem;
}

.up-panel-title {
    margin: 0;
    font-size: clamp(.92rem, .9rem + 0.22vw, 1.02rem);
    font-weight: 600;
    color: var(--up-accent);
    letter-spacing: .02em;
    line-height: 1.25;
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
}

.up-view-all {
    flex-shrink: 0;
    font-size: .74rem;
    font-weight: 600;
    color: var(--up-accent2);
    text-decoration: none;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
}

.up-view-all:hover { background: rgba(37, 99, 235, 0.12); }

/* Horizontal card carousel — JS scroll stepping with touch swipe */
.up-carousel {
    position: relative;
    min-width: 0;
}

.up-carousel__frame {
    position: relative;
    min-width: 0;
}

.up-carousel__toolbar {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.1rem;
    pointer-events: none;
}

.up-carousel__arrow {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 181, 253, 0.62);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.36) 0%, rgba(233, 213, 255, 0.26) 100%);
    color: #6b21a8;
    text-decoration: none;
    box-shadow:
        0 10px 24px rgba(88, 28, 135, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

button.up-carousel__arrow {
    margin: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.up-carousel__arrow span {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.up-carousel__arrow--prev span {
    transform: rotate(-135deg) translateX(1px);
}

.up-carousel__arrow--next span {
    transform: rotate(45deg) translateX(-1px);
}

button.up-carousel__arrow:hover:not(:disabled):not(.is-disabled) {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(216, 180, 254, 0.34) 100%);
    border-color: rgba(167, 139, 250, 0.78);
    box-shadow:
        0 12px 28px rgba(107, 33, 168, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
    color: #581c87;
    transform: translateY(-1px) scale(1.02);
}

button.up-carousel__arrow:active:not(:disabled):not(.is-disabled) {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.33) 0%, rgba(216, 180, 254, 0.25) 100%);
    box-shadow:
        0 6px 16px rgba(107, 33, 168, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

button.up-carousel__arrow:focus-visible {
    outline: 2px solid rgba(216, 180, 254, 0.95);
    outline-offset: 2px;
    border-color: rgba(167, 139, 250, 0.9);
    box-shadow:
        0 0 0 4px rgba(126, 34, 206, 0.26),
        0 10px 24px rgba(88, 28, 135, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.up-carousel__arrow.is-disabled,
button.up-carousel__arrow:disabled {
    opacity: 0.42;
    visibility: visible;
    pointer-events: none;
    cursor: default;
    color: rgba(107, 33, 168, 0.55);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, rgba(233, 213, 255, 0.12) 100%);
    border-color: rgba(196, 181, 253, 0.35);
    box-shadow: 0 4px 10px rgba(88, 28, 135, 0.12);
}

.up-carousel:not(:has(.up-carousel__slide)) .up-carousel__toolbar,
.up-carousel:has(.up-carousel__slide:only-child) .up-carousel__toolbar {
    display: none;
}

.up-card-list,
.up-carousel__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0.15rem 2.15rem 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.up-card-list::-webkit-scrollbar,
.up-carousel__track::-webkit-scrollbar {
    display: none;
}

.up-carousel__slide {
    position: relative;
    flex: 0 0 min(260px, 72vw);
    width: min(260px, 72vw);
    max-width: min(260px, 72vw);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
}

.up-carousel__slide > .up-post-card,
.up-carousel__slide > .up-rec-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.up-card-list > .up-post-card,
.up-card-list > .up-rec-card {
    flex: 0 0 min(260px, 72vw);
    width: min(260px, 72vw);
    max-width: min(260px, 72vw);
    scroll-snap-align: start;
}

.up-post-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .45rem;
    align-items: start;
    padding: 0.4rem 0.45rem;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.up-post-card:hover {
    border-color: rgba(147, 51, 234, 0.35);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.up-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
    display: block;
}

.up-post-body { min-width: 0; }

.up-post-title {
    font-weight: 600;
    font-size: .86rem;
    line-height: 1.35;
    margin: 0 0 .2rem 0;
    color: var(--up-ink);
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.up-post-meta {
    font-size: .68rem;
    color: var(--up-muted);
    margin-bottom: .25rem;
}

.up-snippet {
    font-size: .75rem;
    color: var(--up-muted);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-rec-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 0.4rem 0.45rem;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    background: #fff;
}

.up-rec-card a.up-rec-title {
    font-weight: 600;
    font-size: .84rem;
    color: var(--up-accent2);
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.up-rec-card a.up-rec-title:hover { text-decoration: underline; }

.up-rec-text {
    font-size: .75rem;
    color: var(--up-muted);
    margin: .35rem 0 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.up-rec-foot {
    margin-top: .5rem;
    font-size: .66rem;
    color: var(--up-muted);
}

.up-rec-comments {
    display: inline-block;
    padding: .22rem .55rem;
    font-size: .66rem;
    margin-top: .15rem;
}

.up-cat-section {
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--up-line);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.up-cat-section-title {
    font-size: .94rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    color: var(--up-ink);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.up-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem 0.6rem;
}

@media (min-width: 640px) {
    .up-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .up-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.up-cat-widget {
    box-sizing: border-box;
    min-width: 0;
    border-radius: var(--up-radius);
    border: 1px solid var(--up-line);
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    padding: 0.45rem 0.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.up-cat-widget-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0 0 0.35rem 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--up-ink);
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.up-cat-widget-title .up-cat-title-text {
    flex: 1 1 auto;
    min-width: 0;
}

.up-cat-svg-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 0;
}

.up-cat-svg-wrap svg {
    width: 22px;
    height: 22px;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--up-ink) !important;
    fill: var(--up-ink) !important;
}

.up-cat-icon-fallback {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(37, 99, 235, 0.2));
    border: 1px solid var(--up-line);
}

.up-mini-list { display: flex; flex-direction: column; gap: .25rem; }

.up-mini-row {
    display: flex;
    gap: .35rem;
    align-items: flex-start;
    padding: 0.28rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.up-mini-row:last-child { border-bottom: none; padding-bottom: 0; }

.up-mini-row a {
    font-size: clamp(.82rem, .8rem + 0.15vw, .9rem);
    font-weight: 500;
    color: var(--up-ink);
    text-decoration: none;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.up-mini-row a:hover { color: var(--up-accent2); }

.up-empty {
    font-size: .78rem;
    color: var(--up-muted);
    padding: .5rem 0;
}

/* Hide legacy profile widgets below hero — userpage provides dedicated activity grids */
.up-profile-slot .awards.awardslate,
.up-profile-slot .mypostrightpanel,
.up-profile-slot .projectlblmsg,
.up-profile-slot .recom,
.up-profile-slot [id$="_pnlproject"],
.up-profile-slot [id*="reqrec"],
.up-profile-slot br + br {
    display: none !important;
}

.up-profile-slot .detailscontainer {
    margin-bottom: 0;
}

/* Data grids — stable columns, no horizontal bleed on Hindi titles */
.up-dash-grid .up-panel {
    overflow: hidden;
}

.up-panel-head .up-view-all {
    white-space: nowrap;
}

.up-post-card,
.up-rec-card {
    max-width: 100%;
    overflow: hidden;
}

.up-post-body,
.up-rec-card {
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 959px) {
    .up-dash-grid {
        gap: 0.65rem;
    }

    .up-panel-head {
        flex-direction: row;
        align-items: flex-start;
    }

    .up-panel-title {
        flex: 1 1 auto;
    }
}

@media (min-width: 768px) {
    .up-root { padding: 0.5rem 0.65rem; }
    .up-shell { padding: 0.55rem 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    .up-root * { transition: none !important; }
}
