.ts-main,
body {
    background:
        radial-gradient(circle at top right, rgba(45,125,210,.06), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, #f8fbfe 100%);
}



@media (max-width: 900px) {
    .ts-sidebar.open {
     margin-top: 15% !important;
  }

    .ts-main {
    margin-top: 15% !important;
  }
}


@media (max-width: 600px) {
    .ts-sidebar.open {
    margin-top: 20% !important;
  }
   .ts-main {
    margin-top: 20% !important;
  }
}

.ts-profile-wrap {
    max-width: none;
    margin: 0 auto; padding: 0 6px;
}

.ts-public-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(25% - 9px);
    gap: 12px;
    align-items: start;
}

.ts-public-main,
.ts-public-side {
    min-width: 0;
}

.ts-profile-hero {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-2);
    padding: 22px 24px;
    margin-bottom: 22px;
}

.ts-profile-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ts-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 88px;
    background: #f3f6fa;
    border: 3px solid #fff;
    box-shadow: 0 10px 22px -14px rgba(20,36,60,.35);
}

.ts-profile-meta {
    flex: 1;
    min-width: 0;
}

.ts-profile-name {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}
.ts-profile-name.is-name-long { font-size: 1.35rem; }
.ts-profile-name.is-name-xlong { font-size: 1.15rem; }

.ts-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-600));
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
}

.ts-verify-badge.ts-admin-badge {
    background: linear-gradient(135deg, var(--brand), var(--green));
}

.ts-verify-badge.ts-admin-badge-institute {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.ts-profile-subtitle {
    color: var(--ink-soft);
    font-size: .98rem;
    margin-bottom: 6px;
}

.ts-profile-muted {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: .92rem;
}

.ts-profile-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ts-identity-sep {
    color: #cbd5e1;
    font-weight: 400;
    user-select: none;
}

.ts-profile-link {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1;
    text-decoration: none;
    transition: color .18s, transform .18s;
}

.ts-profile-link:hover,
.ts-profile-link:focus {
    color: var(--brand, #2D7DD2);
    transform: translateY(-1px);
}

.ts-profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ts-profile-metrics {

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ts-metric-chip {
    min-width: 110px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
    padding: 10px 12px;
    text-align: center;
}

.ts-metric-value {
    color: var(--brand-700);
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 4px;
}

.ts-metric-label {
    color: var(--ink-soft);
    font-size: .76rem;
    font-weight: 700;
}

.ts-profile-section {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-1);
    margin-bottom: 22px;
    overflow: hidden;
}

.ts-profile-section-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ts-profile-section-title {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-profile-section-body {
    padding: 20px;
}

.ts-inline-iconbtn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .18s ease;
    text-decoration: none;
}

.ts-inline-iconbtn:hover {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-100);
}

.ts-entity-list {
    display: grid;
    gap: 16px;
}

.ts-entity-item {

    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.ts-entity-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ts-entity-subtitle {
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-weight: 600;
}

.ts-entity-meta {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 10px;
}

.ts-entity-text {
    color: var(--ink);
    line-height: 1.65;
    margin: 0;
}

.ts-skill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ts-skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 8px 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
    color: var(--ink);
    font-weight: 600;
}

.ts-delete-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.ts-about-copy {
    color: var(--ink);
    line-height: 1.75;
    white-space: pre-line;
    margin: 0;
}

.ts-publication-link a {
    word-break: break-word;
}

.ts-side-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    margin-bottom: 22px;
}

.ts-side-card .card-body {
    padding: 18px;
}

.ts-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-profile-mini img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f6fa;
}

.ts-feed-btn {
    border-radius: 999px;
}

@media (max-width: 900px) {
    .ts-public-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ts-profile-hero {
        padding: 16px;
        border-radius: 18px;
    }

    .ts-profile-top {
        align-items: flex-start;
        gap: 14px;
    }

    .ts-profile-avatar {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .ts-profile-name {
        font-size: 1.25rem;
    }
    .ts-profile-name.is-name-long { font-size: 1.1rem; }
    .ts-profile-name.is-name-xlong { font-size: 1rem; }

    .ts-profile-subtitle,
    .ts-profile-muted {
        font-size: .88rem;
    }

    .ts-profile-section-head,
    .ts-profile-section-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ts-entity-title {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .ts-profile-actions .btn {
        width: 100%;
    }

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

    .ts-metric-chip {
        min-width: 0;
    }
}
.ts-profile-cover {
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-bottom: 18px;
}

