.profile-readable {
    font-size: 14px;
    line-height: 1.6;
}

.profile-readable [class*="text-[9px]"] {
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.profile-readable [class*="text-[10px]"] {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.profile-readable [class*="text-[11px]"] {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.profile-readable [class*="text-[12px]"] {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.profile-readable [class*="text-xs"] {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.profile-readable p,
.profile-readable span,
.profile-readable button,
.profile-readable a,
.profile-readable label {
    letter-spacing: 0;
}

.taildo-profile-page {
    --profile-card-gap: 0.72rem;
    --profile-hero-avatar-size: 6.25rem;
    color: #0f172a;
}

.taildo-profile-page h2,
.taildo-profile-page h3 {
    letter-spacing: 0;
}

.taildo-profile-page .taildo-profile-density-section {
    border-color: #d7e1ec;
    padding: 0.85rem;
}

.taildo-profile-page .taildo-profile-soft-card {
    min-width: 0;
    min-height: 0;
    border-color: #dbe4ef;
}

.taildo-profile-page .taildo-profile-activity-card {
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.taildo-profile-page .taildo-profile-activity-card [class*="text-"] {
    color: inherit !important;
}

.taildo-profile-page .taildo-profile-earned-badges,
.taildo-profile-page .taildo-profile-pending-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.taildo-profile-page .taildo-profile-earned-badge,
.taildo-profile-page .taildo-profile-pending-badge {
    min-width: 0;
    align-items: center;
    min-height: 0;
}

.taildo-profile-page .taildo-profile-earned-badge-name,
.taildo-profile-page .taildo-profile-pending-badge-name {
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.taildo-profile-page .taildo-profile-earned-badge-desc,
.taildo-profile-page .taildo-profile-pending-badge-desc {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.taildo-profile-page .taildo-profile-main-grid > main > section:first-child,
.taildo-profile-page .taildo-profile-main-grid > aside > :first-child {
    margin-top: 0 !important;
}

.taildo-profile-page .taildo-profile-main-grid > aside {
    align-self: start;
}

.taildo-profile-page .taildo-profile-section-title {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    color: #0f172a;
}

.taildo-profile-page .taildo-profile-section-kicker {
    display: block;
    max-width: 100%;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0;
    color: #64748b;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}

.taildo-profile-page .taildo-profile-muted-card {
    border: 1px solid #dbe4ef;
    background: #f8fafc;
}

.taildo-profile-hero-card {
    overflow: hidden;
    border-radius: 18px;
    border-color: #d8e2ee !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.taildo-profile-hero-cover {
    min-height: clamp(178px, 14vw, 232px) !important;
    background-color: #3f6473 !important;
    background-size: cover !important;
    background-position: center !important;
    transition: none !important;
}

.taildo-profile-hero-cover:hover,
.taildo-profile-hero-cover:focus-within {
    background-color: #3f6473 !important;
    background-size: cover !important;
    background-position: center !important;
}

.taildo-profile-cover-shade {
    pointer-events: none;
}

.taildo-profile-hero-body {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #e2e8f0;
    padding: 0 0.9rem 0.9rem;
}

.taildo-profile-avatar-control {
    position: absolute;
    left: 1.05rem;
    top: -3.15rem;
    z-index: 5;
}

.taildo-profile-hero-layout {
    display: grid !important;
    min-height: 4.35rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    padding-top: 0.55rem;
    padding-left: 7.1rem;
}

.taildo-profile-hero-main {
    display: grid !important;
    align-content: center;
    min-width: 0;
}

.taildo-profile-avatar {
    width: var(--profile-hero-avatar-size) !important;
    height: var(--profile-hero-avatar-size) !important;
    border-width: 4px !important;
    border-radius: 1.15rem !important;
    margin-top: 0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.taildo-profile-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.05rem;
}

.taildo-profile-badges {
    display: flex;
    align-items: center;
    gap: 0.3rem !important;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    flex-wrap: wrap !important;
    overflow: visible;
    padding-bottom: 0;
    white-space: normal;
}

.taildo-profile-badges > span {
    flex: 0 0 auto;
    min-width: 0;
    height: 1.35rem;
    padding: 0 0.45rem !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #dbe4ef;
}

.taildo-profile-title {
    color: #0f172a;
    margin-top: 0.22rem !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
}

.taildo-profile-intro {
    margin-top: 0.2rem !important;
    font-size: 12.5px !important;
    line-height: 1.42 !important;
}

.taildo-profile-actions a[href="/profile/privacy"] {
    background: #eef2ff !important;
    color: #3730a3 !important;
    border: 1px solid #c7d2fe !important;
    box-shadow: 0 8px 18px rgba(67, 56, 202, .08);
}

.taildo-profile-actions {
    align-self: center;
    justify-self: end;
}

.taildo-profile-actions:not(.taildo-profile-actions-own) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem !important;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.taildo-profile-actions:not(.taildo-profile-actions-own)::-webkit-scrollbar {
    display: none;
}

.taildo-profile-actions:not(.taildo-profile-actions-own) > :where(a, button, span) {
    flex: 0 0 auto;
    min-height: 2.28rem !important;
    height: 2.28rem !important;
    gap: 0.34rem !important;
    padding-left: 0.58rem !important;
    padding-right: 0.58rem !important;
    border-radius: 0.72rem !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    white-space: nowrap;
}

.taildo-profile-actions:not(.taildo-profile-actions-own) svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
}

.taildo-profile-actions:not(.taildo-profile-actions-own) :where(#profile-follow-count, #profile-like-chip) {
    padding-left: 0.42rem !important;
    padding-right: 0.42rem !important;
}

@media (min-width: 1024px) {
    .taildo-profile-hero-card--multi-actions .taildo-profile-actions:not(.taildo-profile-actions-own) {
        flex-wrap: wrap !important;
        align-content: center;
        overflow-x: visible !important;
        row-gap: 0.4rem !important;
    }
}

.taildo-profile-actions-own {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(7rem, 1fr));
    align-items: center;
    justify-content: end;
    width: min(100%, 22rem);
    max-width: 22rem;
    flex: 0 1 22rem;
    gap: 0.5rem !important;
    padding: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.taildo-profile-actions-own > :where(a, button) {
    min-width: 0;
    width: 100%;
    min-height: 2.45rem;
    height: 2.45rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    border-radius: 0.82rem !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.taildo-profile-actions-own svg {
    flex-shrink: 0;
}

@media (max-width: 1279px) {
    .taildo-profile-hero-layout {
        align-items: center !important;
    }

    .taildo-profile-hero-main {
        width: 100%;
    }
}

@media (min-width: 640px) {
    .taildo-profile-hero-body {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .taildo-profile-avatar-control {
        left: 1.25rem;
    }

    .taildo-profile-hero-layout {
        min-height: 4.55rem;
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
        gap: 0.65rem 1rem;
        padding-left: 7.55rem;
    }
}

@media (min-width: 1024px) {
    .taildo-profile-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(27rem, 32rem);
        gap: 0.65rem 1.25rem;
    }

    .taildo-profile-hero-card--multi-actions .taildo-profile-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(31rem, 38rem);
    }

    .taildo-profile-actions:not(.taildo-profile-actions-own) {
        overflow-x: visible;
    }

    .taildo-profile-actions-own {
        grid-template-columns: repeat(4, minmax(6.7rem, 1fr));
        width: min(100%, 32rem);
        max-width: 32rem;
        flex-basis: 32rem;
        gap: 0.55rem !important;
    }

    .taildo-profile-actions-own > :where(a, button) {
        min-height: 2.65rem;
        height: 2.65rem;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        border-radius: 0.9rem !important;
        font-size: 13px !important;
    }
}

.taildo-profile-summary {
    border-top: 1px solid #e2e8f0;
    gap: 0.75rem !important;
    padding: 0.85rem 0.95rem 0.95rem !important;
}

.taildo-profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem !important;
}

.taildo-profile-info-card {
    min-height: 3.75rem;
    border-radius: 0.85rem !important;
    padding: 0.62rem 0.78rem !important;
}

.taildo-profile-info-value {
    margin-top: 0.18rem !important;
    font-size: 13px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-height: 1.35;
}

.taildo-profile-tags {
    margin-top: 0.58rem !important;
    gap: 0.35rem !important;
}

.taildo-profile-tags > span {
    padding: 0.26rem 0.55rem !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.taildo-profile-relation-card {
    border-radius: 1rem !important;
    padding: 0.75rem !important;
}

.taildo-profile-stats {
    gap: 0.5rem !important;
}

.taildo-profile-stats > div {
    border-radius: 0.85rem !important;
    padding: 0.62rem 0.45rem !important;
}

@media (min-width: 1536px) {
    .taildo-profile-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.taildo-profile-page .taildo-profile-detail-shell {
    padding: 1.15rem;
}

.taildo-profile-page .taildo-profile-detail-grid {
    gap: 0.7rem;
}

.taildo-profile-page .taildo-profile-detail-value,
.taildo-profile-page .taildo-profile-member-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.taildo-profile-page .taildo-profile-connection-panel {
    min-width: 0;
}

.taildo-profile-page .taildo-profile-connection-list {
    align-items: start;
}

.taildo-profile-page .taildo-profile-member-card {
    align-items: flex-start;
}

.taildo-profile-page .taildo-profile-member-card > a {
    align-items: flex-start;
}

.taildo-profile-page .taildo-profile-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.taildo-profile-vibe-button,
.taildo-profile-vibe-mark {
    --td-vibe-accent: #475569;
    --td-vibe-accent-strong: #334155;
    --td-vibe-accent-soft: #f8fafc;
    --td-vibe-accent-line: #cbd5e1;
    --td-vibe-accent-shadow: rgba(71, 85, 105, .16);
}

.taildo-profile-vibe-button[data-vibe-tone="emerald"],
.taildo-profile-vibe-mark[data-vibe-tone="emerald"] {
    --td-vibe-accent: #10b981;
    --td-vibe-accent-strong: #047857;
    --td-vibe-accent-soft: #ecfdf5;
    --td-vibe-accent-line: #a7f3d0;
    --td-vibe-accent-shadow: rgba(16, 185, 129, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="amber"],
.taildo-profile-vibe-mark[data-vibe-tone="amber"] {
    --td-vibe-accent: #f59e0b;
    --td-vibe-accent-strong: #b45309;
    --td-vibe-accent-soft: #fffbeb;
    --td-vibe-accent-line: #fde68a;
    --td-vibe-accent-shadow: rgba(245, 158, 11, .2);
}

.taildo-profile-vibe-button[data-vibe-tone="rose"],
.taildo-profile-vibe-mark[data-vibe-tone="rose"] {
    --td-vibe-accent: #e11d48;
    --td-vibe-accent-strong: #be123c;
    --td-vibe-accent-soft: #fff1f2;
    --td-vibe-accent-line: #fecdd3;
    --td-vibe-accent-shadow: rgba(225, 29, 72, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="sky"],
.taildo-profile-vibe-mark[data-vibe-tone="sky"] {
    --td-vibe-accent: #0284c7;
    --td-vibe-accent-strong: #0369a1;
    --td-vibe-accent-soft: #f0f9ff;
    --td-vibe-accent-line: #bae6fd;
    --td-vibe-accent-shadow: rgba(2, 132, 199, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="violet"],
.taildo-profile-vibe-mark[data-vibe-tone="violet"] {
    --td-vibe-accent: #7c3aed;
    --td-vibe-accent-strong: #6d28d9;
    --td-vibe-accent-soft: #f5f3ff;
    --td-vibe-accent-line: #ddd6fe;
    --td-vibe-accent-shadow: rgba(124, 58, 237, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="indigo"],
.taildo-profile-vibe-mark[data-vibe-tone="indigo"] {
    --td-vibe-accent: #4f46e5;
    --td-vibe-accent-strong: #4338ca;
    --td-vibe-accent-soft: #eef2ff;
    --td-vibe-accent-line: #c7d2fe;
    --td-vibe-accent-shadow: rgba(79, 70, 229, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="orange"],
.taildo-profile-vibe-mark[data-vibe-tone="orange"] {
    --td-vibe-accent: #f97316;
    --td-vibe-accent-strong: #c2410c;
    --td-vibe-accent-soft: #fff7ed;
    --td-vibe-accent-line: #fed7aa;
    --td-vibe-accent-shadow: rgba(249, 115, 22, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="cyan"],
.taildo-profile-vibe-mark[data-vibe-tone="cyan"] {
    --td-vibe-accent: #0891b2;
    --td-vibe-accent-strong: #0e7490;
    --td-vibe-accent-soft: #ecfeff;
    --td-vibe-accent-line: #a5f3fc;
    --td-vibe-accent-shadow: rgba(8, 145, 178, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="pink"],
.taildo-profile-vibe-mark[data-vibe-tone="pink"] {
    --td-vibe-accent: #db2777;
    --td-vibe-accent-strong: #be185d;
    --td-vibe-accent-soft: #fdf2f8;
    --td-vibe-accent-line: #fbcfe8;
    --td-vibe-accent-shadow: rgba(219, 39, 119, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="teal"],
.taildo-profile-vibe-mark[data-vibe-tone="teal"] {
    --td-vibe-accent: #0d9488;
    --td-vibe-accent-strong: #0f766e;
    --td-vibe-accent-soft: #f0fdfa;
    --td-vibe-accent-line: #99f6e4;
    --td-vibe-accent-shadow: rgba(13, 148, 136, .18);
}

.taildo-profile-vibe-button[data-vibe-tone="lime"],
.taildo-profile-vibe-mark[data-vibe-tone="lime"] {
    --td-vibe-accent: #65a30d;
    --td-vibe-accent-strong: #4d7c0f;
    --td-vibe-accent-soft: #f7fee7;
    --td-vibe-accent-line: #d9f99d;
    --td-vibe-accent-shadow: rgba(101, 163, 13, .18);
}

.taildo-profile-vibe-button {
    min-width: 0;
    min-height: 6.15rem;
    height: auto !important;
    align-content: start;
    overflow: visible !important;
    white-space: normal !important;
    border-color: var(--td-vibe-accent-line) !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--td-vibe-accent-soft) 100%) !important;
}

#taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button:hover,
#taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button:focus-visible {
    border-color: var(--td-vibe-accent) !important;
    background: var(--td-vibe-accent-soft) !important;
    box-shadow: 0 12px 26px var(--td-vibe-accent-shadow) !important;
}

.taildo-profile-vibe-button > span:first-child {
    display: flex;
    min-width: 0;
}

.taildo-profile-vibe-button > span:not(:first-child) {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: keep-all;
}

.taildo-profile-vibe-mark {
    width: auto !important;
    min-width: 2.45rem;
    height: 2rem;
    padding: 0 .62rem;
    border: 1px solid var(--td-vibe-accent-line);
    background: var(--td-vibe-accent);
    color: #ffffff !important;
    line-height: 1;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    box-shadow: 0 7px 16px var(--td-vibe-accent-shadow);
}

.taildo-profile-vibe-top-mark {
    min-width: 3rem;
    height: 3rem;
    padding: 0 .82rem;
    font-size: 15px;
}

.taildo-profile-vibe-count {
    border-color: var(--td-vibe-accent-line) !important;
    background: #ffffff !important;
    color: var(--td-vibe-accent-strong) !important;
}

.taildo-profile-vibe-label {
    color: #0f172a !important;
}

.taildo-profile-vibe-hint {
    color: #475569 !important;
}

.taildo-profile-vibe-button.is-active {
    border-color: var(--td-vibe-accent) !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--td-vibe-accent-soft) 100%) !important;
    color: #0f172a !important;
    box-shadow: 0 14px 30px var(--td-vibe-accent-shadow) !important;
}

.taildo-profile-vibe-button.is-active .taildo-profile-vibe-mark {
    border-color: var(--td-vibe-accent-strong) !important;
    background: var(--td-vibe-accent-strong) !important;
    color: #ffffff !important;
}

.taildo-profile-vibe-button.is-active .taildo-profile-vibe-count {
    border-color: var(--td-vibe-accent) !important;
    background: var(--td-vibe-accent) !important;
    color: #ffffff !important;
}

.taildo-profile-vibe-button.is-active .taildo-profile-vibe-label {
    color: #0f172a !important;
}

.taildo-profile-vibe-button.is-active .taildo-profile-vibe-hint {
    color: #334155 !important;
}

html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button {
    border-color: #334155 !important;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button:hover,
html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button:focus-visible,
html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button.is-active {
    border-color: var(--td-vibe-accent) !important;
    background: linear-gradient(180deg, #111827 0%, #172033 100%) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-label,
html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button.is-active .taildo-profile-vibe-label {
    color: #f8fafc !important;
}

html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-hint,
html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button.is-active .taildo-profile-vibe-hint {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-count {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] #taildo-main-content .taildo-layout-content .taildo-profile-page .taildo-profile-vibe-button.is-active .taildo-profile-vibe-count {
    border-color: var(--td-vibe-accent) !important;
    background: var(--td-vibe-accent) !important;
    color: #ffffff !important;
}

.taildo-profile-tabs-shell {
    position: sticky;
    top: 4.75rem;
    z-index: 25;
    margin-top: 0.65rem;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    padding: 0.42rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    backdrop-filter: blur(14px);
}

.taildo-profile-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
    gap: 0.34rem;
}

.taildo-profile-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.taildo-profile-tab.is-active {
    border-color: #7fd0ee;
    background: #0088cf;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 136, 207, .2);
}

.taildo-profile-tab-count {
    display: inline-flex;
    min-width: 1.28rem;
    height: 1.28rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, .14);
    padding: 0 0.34rem;
    font-size: 10px;
    font-weight: 900;
}

.taildo-profile-tab.is-active .taildo-profile-tab-count {
    background: rgba(255, 255, 255, .2);
}

.taildo-profile-tab-new {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    padding: 0.18rem 0.42rem;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.taildo-profile-tab-new[hidden] {
    display: none !important;
}

.taildo-profile-tab-panel[hidden] {
    display: none !important;
}

.taildo-profile-tab-panel {
    margin-top: 0.65rem;
}

@media (min-width: 1280px) {
    .taildo-profile-page .taildo-profile-main-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1536px) {
    .taildo-profile-page .taildo-profile-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.taildo-guest-lock-wrap {
    position: relative;
}

.taildo-guest-lock-blur {
    filter: blur(18px);
    opacity: 0.14;
    transform: scale(1.015);
    transform-origin: top center;
    pointer-events: none;
    user-select: none;
}

.taildo-guest-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.96);
}

.taildo-profile-page > section[hidden]:first-of-type {
    display: none;
}

.profile-more-menu {
    animation: profile-more-in .12s ease;
}

@keyframes profile-more-in {
    from { opacity: 0; transform: translateY(-4px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.taildo-profile-page .taildo-profile-summary {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.taildo-profile-page .taildo-profile-snapshot,
.taildo-profile-page .taildo-profile-relation-card,
.taildo-profile-page .taildo-profile-detail-block {
    border-color: #d8e2ee !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.taildo-profile-page .taildo-profile-snapshot {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .92)),
        radial-gradient(circle at top left, rgba(14, 165, 233, .12), transparent 32%);
}

.taildo-profile-page .taildo-profile-snapshot-head,
.taildo-profile-page .taildo-profile-detail-head {
    min-width: 0;
}

@media (max-width: 1535px) {
    .taildo-profile-page .taildo-profile-summary {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .taildo-profile-page .taildo-profile-snapshot-head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

.taildo-profile-page .taildo-profile-tag-count,
.taildo-profile-page .taildo-profile-completion-chip {
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.taildo-profile-page .taildo-profile-info-card {
    position: relative;
    overflow: hidden;
    min-height: 4.25rem;
    border-color: #dce6f1 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.taildo-profile-page .taildo-profile-info-card--location {
    --profile-info-accent: #e5e7eb;
}

.taildo-profile-page .taildo-profile-info-card--person {
    --profile-info-accent: #e5e7eb;
}

.taildo-profile-page .taildo-profile-info-card--type {
    --profile-info-accent: #e5e7eb;
}

.taildo-profile-page .taildo-profile-info-card--activity {
    --profile-info-accent: #e5e7eb;
}

.taildo-profile-page .taildo-profile-tags-panel,
.taildo-profile-page .taildo-profile-relation-state {
    border-color: #dce6f1 !important;
}

.taildo-profile-page .taildo-profile-empty-chip {
    width: 100%;
    justify-content: center;
}

.taildo-profile-page .taildo-profile-relation-card {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
        radial-gradient(circle at top right, rgba(124, 58, 237, .12), transparent 34%);
}

.taildo-profile-page .taildo-profile-stat-card {
    min-width: 0;
    border: 1px solid #e2e8f0;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.taildo-profile-page .taildo-profile-stat-card p {
    white-space: nowrap;
}

.taildo-profile-page .taildo-profile-detail-block {
    background: #ffffff;
}

.taildo-profile-page .taildo-profile-detail-card,
.taildo-profile-page .taildo-profile-extra-row,
.taildo-profile-page .taildo-profile-favorite-card {
    min-width: 0;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.taildo-profile-page .taildo-profile-detail-card.is-filled,
.taildo-profile-page .taildo-profile-extra-row.is-filled,
.taildo-profile-page .taildo-profile-favorite-card.is-filled {
    border-color: #d9e5f2 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.taildo-profile-page .taildo-profile-detail-card.is-empty,
.taildo-profile-page .taildo-profile-extra-row.is-empty,
.taildo-profile-page .taildo-profile-favorite-card.is-empty {
    border-style: dashed !important;
    background: #f8fafc !important;
}

.taildo-profile-page .taildo-profile-detail-card.is-empty :where(dd, p:last-child),
.taildo-profile-page .taildo-profile-extra-row.is-empty dd,
.taildo-profile-page .taildo-profile-favorite-card.is-empty p:last-child {
    color: #94a3b8 !important;
}

.taildo-profile-page .taildo-profile-extra-group {
    min-width: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.taildo-profile-page .taildo-profile-favorite-card {
    min-height: 5rem;
}

@media (min-width: 768px) {
    .taildo-profile-page .taildo-profile-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .taildo-profile-page .taildo-profile-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .taildo-profile-page .taildo-profile-summary {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    }
}

@media (max-width: 767.98px) {
    .taildo-profile-page .taildo-profile-snapshot,
    .taildo-profile-page .taildo-profile-relation-card {
        border-radius: 0.92rem !important;
        padding: 0.72rem !important;
    }

    .taildo-profile-page .taildo-profile-tag-count,
    .taildo-profile-page .taildo-profile-completion-chip {
        height: auto;
        min-height: 2rem;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .taildo-profile-page {
        padding-bottom: calc(8.25rem + env(safe-area-inset-bottom)) !important;
    }

    .taildo-profile-tabs-shell {
        top: 4.35rem;
        border-radius: 16px;
        padding: 0.42rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .taildo-profile-tabs {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 0.35rem;
    }

    .taildo-profile-tab {
        flex: 0 0 auto;
        min-width: 4.85rem;
        min-height: 2.35rem;
        padding: 0 0.46rem;
        gap: 0.28rem;
        font-size: 11.5px;
        white-space: nowrap;
        word-break: keep-all;
    }

    .taildo-profile-tab > span {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .taildo-profile-tab-count {
        flex: 0 0 auto;
        min-width: 1.2rem;
        height: 1.2rem;
        padding: 0 0.32rem;
        font-size: 10px;
    }

    .taildo-profile-tab-new {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .profile-readable {
        font-size: 15px;
    }

    .profile-readable [class*="text-[13px]"] {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .taildo-profile-page > section {
        border-radius: 16px !important;
    }

    .taildo-profile-hero-card--simple-actions .taildo-profile-hero-cover {
        min-height: 190px !important;
    }

    .taildo-profile-hero-card--multi-actions .taildo-profile-hero-cover {
        min-height: 204px !important;
    }

    .taildo-profile-hero-body {
        padding: 0 0.8rem 0.8rem !important;
    }

    .taildo-profile-avatar-control {
        position: relative;
        left: auto;
        top: auto;
        width: max-content;
        margin-top: -3rem;
    }

    .taildo-profile-hero-layout {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch !important;
        gap: 0.55rem;
        padding-top: 0.62rem;
        padding-left: 0;
    }

    .taildo-profile-hero-main {
        width: 100%;
        align-content: start;
    }

    .taildo-profile-avatar {
        width: 5.25rem !important;
        height: 5.25rem !important;
        border-radius: 1rem !important;
        margin-top: 0 !important;
    }

    .taildo-profile-hero-copy {
        padding-top: 0 !important;
    }

    .taildo-profile-badges {
        gap: 0.22rem !important;
        max-height: none;
        overflow: visible;
    }

    .taildo-profile-badges > span {
        padding: 0.16rem 0.36rem !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .taildo-profile-title {
        font-size: 1.08rem !important;
        line-height: 1.18 !important;
    }

    .taildo-profile-intro {
        margin-top: 0.2rem !important;
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }

    .taildo-profile-actions {
        width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.38rem !important;
        margin-bottom: -0.12rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.12rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .taildo-profile-actions::-webkit-scrollbar {
        display: none;
    }

    .taildo-profile-actions > :where(a, button, span) {
        flex: 0 0 auto;
        min-height: 2.5rem !important;
        height: 2.5rem !important;
        justify-content: center !important;
        padding-left: 0.72rem !important;
        padding-right: 0.72rem !important;
        border-radius: 0.72rem !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .taildo-profile-actions.taildo-profile-actions-own {
        display: grid !important;
        grid-auto-columns: initial;
        grid-auto-flow: initial;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch !important;
        width: 100%;
        max-width: none;
        flex-basis: auto;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .taildo-profile-actions.taildo-profile-actions-own > :where(a, button) {
        width: 100%;
        flex: initial;
        min-width: 0;
        padding-left: 0.42rem !important;
        padding-right: 0.42rem !important;
    }

    .taildo-profile-actions.taildo-profile-actions-own svg {
        display: none;
    }

    .taildo-profile-actions > :only-child {
        max-width: 10rem;
    }

    .taildo-profile-summary {
        padding: 0.75rem !important;
    }

    .taildo-profile-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
    }

    .taildo-profile-info-card {
        min-height: 4rem;
        padding: 0.58rem 0.68rem !important;
    }

    .taildo-profile-info-card:first-child {
        grid-column: 1 / -1;
    }

    .taildo-profile-info-card p:last-child {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .taildo-profile-tags {
        gap: 0.42rem !important;
    }

    .taildo-profile-tags > span {
        padding: 0.32rem 0.6rem !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .taildo-profile-relation-card {
        padding: 0.62rem !important;
    }

    .taildo-profile-stats {
        gap: 0.45rem !important;
    }

    .taildo-profile-stats > div {
        min-width: 0;
        padding: 0.58rem 0.35rem !important;
    }

    .taildo-profile-page .taildo-profile-density-section {
        padding: 0.8rem;
    }

    .taildo-profile-page .taildo-profile-detail-shell {
        padding: 1rem;
    }

    .taildo-profile-page .taildo-profile-detail-grid,
    .taildo-profile-page .taildo-profile-connection-list {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .taildo-profile-page .taildo-profile-member-card {
        padding: 0.8rem !important;
    }

    .taildo-profile-page .taildo-profile-soft-card {
        min-height: 0;
    }

    .taildo-profile-page .taildo-profile-earned-badges,
    .taildo-profile-page .taildo-profile-pending-badges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 374px) {
    .taildo-profile-hero-card--simple-actions .taildo-profile-hero-cover {
        min-height: 180px !important;
    }

    .taildo-profile-hero-card--multi-actions .taildo-profile-hero-cover {
        min-height: 196px !important;
    }

    .taildo-profile-avatar {
        width: 4.9rem !important;
        height: 4.9rem !important;
        margin-top: 0 !important;
    }

    .taildo-profile-intro {
        -webkit-line-clamp: 1 !important;
    }

    .taildo-profile-info-grid {
        gap: 0.42rem !important;
    }
}
