/*
 * SongDrop Public Profile – Creator Dashboard Redesign v1
 * Dezent indigo/violett abgesetzt, kompakt, kantig und einklappbar.
 */

.sd-profile-dashboard {
    --dash-accent: #8d8aff;
    --dash-accent-rgb: 141, 138, 255;
    --dash-cyan: #75dbff;
    --dash-green: #74f0bb;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: 18px;
    padding: 0;
    border: 1px solid rgba(141, 138, 255, .24);
    border-radius: 23px 9px 23px 9px;
    background:
        linear-gradient(106deg, rgba(16, 18, 44, .96) 0%, rgba(7, 20, 38, .95) 52%, rgba(7, 30, 39, .92) 100%);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .035);
}

.sd-profile-dashboard::before,
.sd-profile-dashboard::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.sd-profile-dashboard::before {
    inset: 0;
    opacity: .78;
    background:
        linear-gradient(90deg, transparent 0 6%, rgba(141, 138, 255, .10) 6.1% 6.25%, transparent 6.35% 93.6%, rgba(0, 217, 255, .10) 93.7% 93.85%, transparent 93.95%),
        repeating-linear-gradient(90deg, rgba(174, 228, 255, .025) 0 1px, transparent 1px 44px);
    mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.sd-profile-dashboard::after {
    right: -105px;
    bottom: -135px;
    width: 350px;
    height: 300px;
    border: 1px solid rgba(141, 138, 255, .18);
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(141, 138, 255, .17), transparent 60%);
    box-shadow:
        -50px -45px 100px rgba(0, 217, 255, .09),
        inset 0 0 38px rgba(141, 138, 255, .05);
    transform: rotate(-22deg);
}

.sd-profile-dashboard__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    padding: 17px 20px 16px;
    border-bottom: 1px solid rgba(128, 209, 255, .11);
}

.sd-profile-dashboard__head::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: -1px;
    width: min(260px, 26%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dash-accent), #00d9ff);
    box-shadow: 0 0 12px rgba(141, 138, 255, .5);
}

.sd-profile-dashboard__identity,
.sd-profile-dashboard__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sd-profile-dashboard__identity {
    gap: 14px;
}

.sd-profile-dashboard__signal {
    position: relative;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(141, 138, 255, .42);
    border-radius: 12px 5px 12px 5px;
    background: linear-gradient(145deg, rgba(141, 138, 255, .25), rgba(0, 217, 255, .08));
    box-shadow:
        0 0 18px rgba(141, 138, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.sd-profile-dashboard__signal::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(126, 231, 255, .15);
    border-radius: 6px 2px 6px 2px;
}

.sd-profile-dashboard__signal i {
    position: relative;
    z-index: 1;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #92e8ff, #8a85ff);
    box-shadow: 0 0 10px rgba(117, 219, 255, .64);
    animation: sdDashSignal 1.75s ease-in-out infinite;
}

.sd-profile-dashboard__signal i:nth-child(1) { height: 9px; animation-delay: -.44s; }
.sd-profile-dashboard__signal i:nth-child(2) { height: 17px; animation-delay: -.22s; }
.sd-profile-dashboard__signal i:nth-child(3) { height: 12px; }

.sd-profile-dashboard .sd-public-kicker {
    margin: 0 0 4px;
    color: #86dfff;
    font-size: 9px;
    letter-spacing: .14em;
}

.sd-profile-dashboard__head h2 {
    margin: 0;
    color: #ecf9ff;
    font-size: clamp(20px, 2.3vw, 30px);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.sd-profile-dashboard__head h2 em {
    color: #b4adff;
    font-style: normal;
    font-weight: 800;
}

.sd-profile-dashboard__summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #9fb4c0;
    border: 1px solid rgba(117, 219, 255, .16);
    border-radius: 999px;
    background: rgba(0, 7, 15, .32);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .055em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.sd-profile-dashboard__summary b {
    color: #cbf5ff;
    font-size: 10px;
    font-weight: 950;
}

.sd-profile-dashboard__summary i {
    color: #827dff;
    font-style: normal;
}

.sd-profile-dashboard__toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 12px;
    color: #b8cbd6;
    border: 1px solid rgba(141, 138, 255, .26);
    border-radius: 9px 4px 9px 4px;
    background: rgba(5, 11, 29, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .065em;
    line-height: 1;
    text-transform: uppercase;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sd-profile-dashboard__toggle:hover,
.sd-profile-dashboard__toggle:focus-visible {
    color: #f2fcff;
    border-color: rgba(141, 138, 255, .60);
    background: rgba(141, 138, 255, .11);
    box-shadow: 0 8px 22px rgba(141, 138, 255, .13);
    outline: none;
    transform: translateY(-1px);
}

.sd-profile-dashboard__toggle b {
    color: #a9f7ff;
    font-size: 15px;
    line-height: 1;
    transition: transform .32s cubic-bezier(.2,.85,.2,1);
}

.sd-profile-dashboard.is-collapsed .sd-profile-dashboard__toggle b {
    transform: rotate(180deg);
}

.sd-profile-dashboard__body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .42s cubic-bezier(.2,.85,.2,1);
}

.sd-profile-dashboard__body-inner {
    min-height: 0;
    overflow: hidden;
    padding: 15px 20px 20px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .20s ease .13s, transform .42s cubic-bezier(.2,.85,.2,1), padding .42s cubic-bezier(.2,.85,.2,1);
}

.sd-profile-dashboard.is-collapsed .sd-profile-dashboard__body {
    grid-template-rows: 0fr;
}

.sd-profile-dashboard.is-collapsed .sd-profile-dashboard__body-inner {
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .12s ease, transform .32s ease, padding .42s cubic-bezier(.2,.85,.2,1);
}

.sd-profile-dashboard__grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    margin: 0 !important;
}

.sd-profile-dashboard__metric,
.sd-profile-dashboard__member,
.sd-profile-dashboard__status {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(128, 209, 255, .13) !important;
    border-radius: 13px 5px 13px 5px !important;
    background:
        linear-gradient(135deg, rgba(8, 16, 37, .74), rgba(5, 19, 30, .56)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.sd-profile-dashboard__metric::before,
.sd-profile-dashboard__member::before,
.sd-profile-dashboard__status::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--dash-accent), transparent);
    box-shadow: 0 0 12px rgba(141, 138, 255, .52);
    opacity: .82;
    transition: width .22s ease, opacity .22s ease;
}

.sd-profile-dashboard__metric:hover,
.sd-profile-dashboard__member:hover,
.sd-profile-dashboard__status:hover {
    z-index: 1;
    border-color: rgba(141, 138, 255, .38) !important;
    background:
        linear-gradient(135deg, rgba(18, 20, 54, .86), rgba(6, 28, 42, .74)) !important;
    box-shadow:
        0 13px 30px rgba(0, 0, 0, .20),
        0 0 24px rgba(141, 138, 255, .09),
        inset 0 1px 0 rgba(255, 255, 255, .045);
    transform: translateY(-3px);
}

.sd-profile-dashboard__metric:hover::before,
.sd-profile-dashboard__member:hover::before,
.sd-profile-dashboard__status:hover::before {
    width: 76px;
    opacity: 1;
}

.sd-profile-dashboard__metric {
    grid-column: span 3;
    min-height: 88px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px 13px !important;
    box-sizing: border-box;
}

.sd-profile-dashboard__metric-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    color: #ccd9ff;
    border: 1px solid rgba(141, 138, 255, .28);
    border-radius: 9px 3px 9px 3px;
    background: linear-gradient(145deg, rgba(141, 138, 255, .21), rgba(0, 217, 255, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
    transition: transform .22s ease, color .22s ease, box-shadow .22s ease;
}

.sd-profile-dashboard__metric:hover .sd-profile-dashboard__metric-icon {
    color: #fff;
    box-shadow: 0 0 18px rgba(141, 138, 255, .19);
    transform: rotate(-7deg) scale(1.08);
}

.sd-profile-dashboard__metric > div,
.sd-profile-dashboard__member > div {
    min-width: 0;
    display: grid;
}

.sd-profile-dashboard__metric > div > span,
.sd-profile-dashboard__member > div > span,
.sd-profile-dashboard__status .users_public_hero_status__copy > span {
    color: #86a4b2 !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    letter-spacing: .11em !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
}

.sd-profile-dashboard__metric strong {
    margin-top: 5px;
    color: #f0fbff !important;
    font-size: 25px !important;
    font-weight: 950 !important;
    letter-spacing: -.05em;
    line-height: .95;
}

.sd-profile-dashboard__metric small,
.sd-profile-dashboard__member small {
    margin-top: 5px;
    color: #829ca8 !important;
    font-size: 9px !important;
    line-height: 1.2;
}

.sd-profile-dashboard__metric.is-votes .sd-profile-dashboard__metric-icon { color: #c3adff; }
.sd-profile-dashboard__metric.is-followers .sd-profile-dashboard__metric-icon { color: #89e8ff; }
.sd-profile-dashboard__metric.is-likes .sd-profile-dashboard__metric-icon { color: #ffd5ee; }

.sd-profile-dashboard__member {
    grid-column: span 4;
    min-height: 94px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 15px !important;
    box-sizing: border-box;
}

.sd-profile-dashboard__member-mark {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    color: #a7f4ff;
    border: 1px solid rgba(117, 219, 255, .28);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, .17), rgba(0, 217, 255, .02) 63%);
    box-shadow: 0 0 18px rgba(0, 217, 255, .12);
    font-size: 22px;
    line-height: 1;
}

.sd-profile-dashboard__member strong {
    margin-top: 6px;
    color: #effaff !important;
    font-size: clamp(21px, 2vw, 29px) !important;
    font-weight: 950 !important;
    letter-spacing: -.06em;
    line-height: .95;
}

.sd-profile-dashboard__status {
    grid-column: span 8;
    min-height: 94px;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px !important;
    box-sizing: border-box;
}

.sd-profile-dashboard__status .users_public_hero_status__mood {
    width: 39px !important;
    height: 39px !important;
    display: grid;
    place-items: center;
    color: #002119 !important;
    border: 0 !important;
    border-radius: 11px 4px 11px 4px !important;
    background: linear-gradient(145deg, #b3aaff, #00e5b4) !important;
    box-shadow: 0 9px 22px rgba(0, 229, 180, .13);
    font-size: 20px !important;
}

.sd-profile-dashboard__status.is-empty .users_public_hero_status__mood {
    color: #a9b8c0 !important;
    border: 1px solid rgba(117, 219, 255, .18) !important;
    background: rgba(117, 219, 255, .07) !important;
    box-shadow: none;
}

.sd-profile-dashboard__status .users_public_hero_status__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.sd-profile-dashboard__status .users_public_hero_status__copy strong {
    overflow: hidden;
    color: #eefdff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: -.02em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-profile-dashboard__status .users_public_hero_status__copy p {
    overflow: hidden;
    margin: 0 !important;
    color: #a1bac4 !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-profile-dashboard__status .users_public_hero_status__copy small {
    color: #718d99 !important;
    font-size: 8px !important;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.2;
}

.sd-profile-dashboard__status .users_public_hero_status__edit {
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 10px !important;
    color: #cceeff !important;
    border: 1px solid rgba(117, 219, 255, .22) !important;
    border-radius: 9px 3px 9px 3px !important;
    background: rgba(0, 217, 255, .055) !important;
    box-shadow: none !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.sd-profile-dashboard__status .users_public_hero_status__edit:hover,
.sd-profile-dashboard__status .users_public_hero_status__edit:focus-visible {
    color: #fff !important;
    border-color: rgba(0, 217, 255, .58) !important;
    background: rgba(0, 217, 255, .13) !important;
    outline: none;
    transform: translateY(-1px);
}

.sd-profile-dashboard__status .users_public_hero_status__edit b {
    color: #91f7ff;
    font-size: 13px;
    line-height: 1;
}

@keyframes sdDashSignal {
    0%, 100% { transform: scaleY(.68); opacity: .55; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
    .sd-profile-dashboard__metric {
        grid-column: span 6;
    }

    .sd-profile-dashboard__member,
    .sd-profile-dashboard__status {
        grid-column: span 12;
    }
}

@media (max-width: 720px) {
    .sd-profile-dashboard__head {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 16px;
    }

    .sd-profile-dashboard__tools {
        width: 100%;
        justify-content: space-between;
    }

    .sd-profile-dashboard__body-inner {
        padding: 12px 16px 16px;
    }

    .sd-profile-dashboard__head::after {
        right: 16px;
    }

    .sd-profile-dashboard__toggle {
        min-height: 32px;
    }
}

@media (max-width: 540px) {
    .sd-profile-dashboard {
        border-radius: 18px 6px 18px 6px;
    }

    .sd-profile-dashboard__identity {
        align-items: flex-start;
    }

    .sd-profile-dashboard__head h2 {
        font-size: 23px;
    }

    .sd-profile-dashboard__summary {
        display: none;
    }

    .sd-profile-dashboard__tools {
        justify-content: flex-end;
    }

    .sd-profile-dashboard__grid {
        gap: 8px;
    }

    .sd-profile-dashboard__metric {
        grid-column: span 12;
        min-height: 66px;
        padding: 10px 12px !important;
    }

    .sd-profile-dashboard__metric strong {
        font-size: 23px !important;
    }

    .sd-profile-dashboard__member,
    .sd-profile-dashboard__status {
        grid-column: span 12;
        min-height: 80px;
    }

    .sd-profile-dashboard__status {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sd-profile-dashboard__status .users_public_hero_status__edit {
        grid-column: 2;
        justify-self: start;
    }

    .sd-profile-dashboard__status .users_public_hero_status__copy p {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-profile-dashboard *,
    .sd-profile-dashboard::before,
    .sd-profile-dashboard::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}


/* ==========================================================================
   Expanded Layout Hotfix v2
   The collapsed dashboard header stays untouched. These rules only repair
   the expanded desktop/tablet grid and neutralize competing legacy profile
   grid rules from users-public-profile.css / public-profile-dashboard.css.
   ========================================================================== */

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* The old public-profile stat rules may set their own grid spans.
   Reset them explicitly before defining this module's compact layout. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
    grid-row: auto !important;
    justify-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Four compact metrics in one clean row. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric {
    grid-column: auto !important;
    min-height: 96px !important;
    height: 96px !important;
}

/* Second row: member date and status share the whole width 50/50. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member {
    grid-column: span 2 !important;
    min-height: 112px !important;
    height: 112px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
    grid-column: span 2 !important;
    min-height: 112px !important;
    height: 112px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
}

/* Existing status styles were designed for the previous large card.
   These overrides keep the status compact and stop labels/text/buttons
   from overlapping. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__mood {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: start !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy > span,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy strong,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy p,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy > span {
    margin-bottom: 4px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy strong {
    margin-bottom: 3px !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
    white-space: normal !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy small {
    margin-top: 5px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__edit {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: end !important;
    justify-self: end !important;
    position: static !important;
    min-width: max-content !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* A little extra balance on cards now that they live in a tighter grid. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric {
    gap: 11px !important;
    padding: 14px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric-icon {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member {
    gap: 13px !important;
    padding: 16px !important;
}

/* Tablet: two stats per row, then member/status as full clean rows. */
@media (max-width: 980px) {
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric {
        grid-column: auto !important;
        min-height: 86px !important;
        height: 86px !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member,
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
        grid-column: span 2 !important;
        min-height: 104px !important;
        height: auto !important;
    }
}

/* Mobile: one card per row and status action moves below its copy if needed. */
@media (max-width: 640px) {
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric,
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member,
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
        grid-column: 1 !important;
        height: auto !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        row-gap: 10px !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__edit {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
    }
}


/* ==========================================================================
   Content Structure Hotfix v3
   Keeps the colors / outer dashboard exactly as they are and rebuilds only
   the inside of the expanded statistic and status cards into clear rows.
   ========================================================================== */

/* Remove legacy public-profile decoration that makes the inner cards look
   like overlapping circles / floating capsules. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric::after,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member::after,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status::after {
    content: none !important;
    display: none !important;
}

/* Every small stat card gets a simple, consistent two-column structure:
   icon | label, value, explanation */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric-icon {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 9px 3px 9px 3px !important;
    background:
        linear-gradient(145deg, rgba(141, 138, 255, .24), rgba(0, 217, 255, .10)) !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric > div,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member > div {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    align-content: center !important;
    justify-items: start !important;
    gap: 3px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric > div > span,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member > div > span {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #8aa8b7 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    letter-spacing: .12em !important;
    line-height: 1.1 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric strong,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member strong {
    position: static !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #f2fcff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 25px !important;
    font-weight: 950 !important;
    letter-spacing: -.055em !important;
    line-height: 1 !important;
    text-align: left !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric small,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member small {
    position: static !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #7c99a6 !important;
    background: transparent !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Keep the larger date card just as structured: mark | label/date/helper. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member-mark {
    position: static !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px 3px 10px 3px !important;
    background:
        linear-gradient(145deg, rgba(0, 217, 255, .18), rgba(141, 138, 255, .13)) !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member strong {
    font-size: clamp(24px, 2vw, 30px) !important;
}

/* Status card:
   [mood icon] [label + mood pill / text / updated] [action]
   Nothing floats, nothing overlaps. */
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 13px !important;
    padding: 16px 18px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__mood {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: start !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px 3px 10px 3px !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
        "label mood"
        "text text"
        "updated updated" !important;
    align-content: center !important;
    gap: 4px 9px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy > span {
    position: static !important;
    grid-area: label !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #8aa8b7 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    letter-spacing: .12em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy strong {
    position: static !important;
    grid-area: mood !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    max-width: 140px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    overflow: hidden !important;
    color: #c9faff !important;
    border: 1px solid rgba(0, 217, 255, .24) !important;
    border-radius: 999px !important;
    background: rgba(0, 217, 255, .07) !important;
    box-shadow: none !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
    line-height: 1 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy p {
    position: static !important;
    grid-area: text !important;
    display: -webkit-box !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #e8f8ff !important;
    background: transparent !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy small {
    position: static !important;
    grid-area: updated !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #718d99 !important;
    background: transparent !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .025em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__edit {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    min-width: max-content !important;
    min-height: 33px !important;
    margin: 0 !important;
    padding: 0 11px !important;
}

/* Keep inner layout intact on smaller widths. */
@media (max-width: 980px) {
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric,
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member {
        padding: 14px 15px !important;
    }
}

@media (max-width: 640px) {
    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        row-gap: 10px !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__edit {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "label"
            "mood"
            "text"
            "updated" !important;
    }

    .sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__copy strong {
        justify-self: start !important;
    }
}


/* ==========================================================================
   PNG Dashboard Icons v4
   Six optional image slots. If a file is missing, the existing text/symbol
   icon remains visible automatically as a clean fallback.
   ========================================================================== */

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric-icon,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member-mark,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__mood {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    isolation: isolate;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__icon-fallback {
    position: relative !important;
    z-index: 1;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    background: transparent !important;
    font: inherit !important;
    line-height: 1 !important;
    opacity: 1;
    transform: scale(1);
    transition: opacity .18s ease, transform .22s ease, filter .18s ease;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric-icon > img,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member-mark > img,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__mood > img {
    position: absolute !important;
    z-index: 2;
    inset: 3px !important;
    display: block !important;
    width: calc(100% - 6px) !important;
    height: calc(100% - 6px) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0;
    filter: drop-shadow(0 0 7px rgba(112, 225, 255, .18));
    transform: scale(.78);
    transition: opacity .20s ease, transform .26s cubic-bezier(.2,.85,.2,1), filter .22s ease;
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric-icon.has-dashboard-image > img,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member-mark.has-dashboard-image > img,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__mood.has-dashboard-image > img {
    opacity: 1;
    transform: scale(1);
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric-icon.has-dashboard-image .sd-profile-dashboard__icon-fallback,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member-mark.has-dashboard-image .sd-profile-dashboard__icon-fallback,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status .users_public_hero_status__mood.has-dashboard-image .sd-profile-dashboard__icon-fallback {
    opacity: 0;
    transform: scale(.62);
    filter: blur(2px);
}

.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__metric:hover .sd-profile-dashboard__metric-icon.has-dashboard-image > img,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__member:hover .sd-profile-dashboard__member-mark.has-dashboard-image > img,
.sd-public-profile-insights.sd-profile-dashboard .sd-profile-dashboard__status:hover .users_public_hero_status__mood.has-dashboard-image > img {
    filter: drop-shadow(0 0 12px rgba(125, 230, 255, .34));
    transform: scale(1.08);
}
