/* Guided dashboard специалиста (/) */

.sd-section {
    margin-bottom: 1.25rem;
}

.sd-section--progress {
    margin-bottom: 1.25rem;
}

/* Stage hero → следующая секция (тот же ритм, что у .dash-section) */
.sd-section--stage-hero {
    margin-bottom: 1.25rem;
}

.sd-section--stage-hero + .sd-section,
.sd-section--stage-hero + .col-12.dash-section {
    margin-top: 0;
}

.sd-section--platform-activity {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Отступ после project hero — как у остальных секций главной */
.sd-section--project-hero {
    margin-bottom: 1.25rem;
}

.sd-section--project-hero:last-of-type {
    margin-bottom: 1.25rem;
}

.sd-section--project-hero + .sd-section {
    margin-top: 0;
}

.sd-section.dash-resumes-block + .sd-section--project-hero {
    margin-top: 0;
}

/* Кнопки как на гостевой главной (home-guest.css) */
.sd-dashboard .hg-cta-fill {
    background: rgb(22, 157, 142);
    border: 1px solid rgb(22, 157, 142);
    color: #fff !important;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sd-dashboard .hg-cta-fill:hover {
    background: rgb(20, 138, 125);
    border-color: rgb(20, 138, 125);
    color: #fff !important;
}

.sd-dashboard .hg-cta-fill:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.35);
}

.sd-dashboard .hg-cta-outline {
    background: transparent;
    color: #117b72 !important;
    border: 2px solid #18b9a7;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sd-dashboard .hg-cta-outline:hover {
    background: rgba(22, 157, 142, 0.08);
    color: #0d5c56 !important;
    border-color: #169d8e;
}

.sd-dashboard .hg-cta-outline:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(22, 157, 142, 0.22);
}

.sd-dashboard .btn-sm.hg-cta-fill,
.sd-dashboard .btn-sm.hg-cta-outline {
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

.sd-dashboard .sd-project-hero__actions .hg-cta-outline {
    border-width: 1px;
    border-color: #cfe8e3;
    color: #5f736f !important;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.85);
}

.sd-dashboard .sd-project-hero__actions .hg-cta-outline:hover {
    border-color: #b8dcd4;
    color: #3d534e !important;
    background: rgba(22, 157, 142, 0.06);
}

/* Профиль */
.sd-profile-wrap {
    margin-bottom: 0;
}

.sd-dashboard .sd-profile-wrap > .dash-profile-row {
    margin-bottom: 1.25rem;
}

.sd-profile-banner-wrap {
    margin-bottom: 0.75rem;
}

.dash-profile-row--no-premium .dash-profile-hero {
    flex: 1 1 100%;
    max-width: 100%;
}

.sd-profile-wrap .dash-profile-name {
    margin: 0 0 0.35rem;
}

.sd-profile-wrap .dash-profile-meta {
    margin: 0 0 0.5rem;
}

.sd-profile-wrap .dash-profile-about {
    margin: 0 0 0.65rem;
}

.sd-profile-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    margin-top: 0;
    font-size: 0.875rem;
}

.sd-profile-indicator {
    color: var(--bs-body-color);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.sd-profile-indicator:hover {
    color: #07c0a1;
    border-bottom-color: rgba(7, 192, 161, 0.45);
}

.sd-profile-indicator--empty {
    color: #6c757d;
}

.sd-profile-indicator--nopriz {
    border-bottom: none;
    cursor: default;
}

.sd-profile-indicators .dash-nopriz-verified-badge--hero {
    font-size: 0.72rem;
    padding: 0.16rem 0.55rem;
}

.sd-profile-indicator-sep {
    color: #adb5bd;
    user-select: none;
}

.sd-profile-spec {
    font-weight: 500;
}

/* Onboarding / прогресс профиля */
.sd-onboarding.sd-progress-block,
.sd-onboarding {
    padding: 1.75rem 1.65rem;
    border: 1px solid rgba(7, 192, 161, 0.18);
    background: linear-gradient(135deg, #f8fffe 0%, #f4fbfb 100%);
}

.sd-onboarding__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.35;
}

.sd-onboarding__lead {
    color: #5c6b73;
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sd-onboarding-progress {
    margin-bottom: 1.35rem;
}

.sd-onboarding-progress__label {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.sd-onboarding-progress__track {
    --sd-progress: 0%;
    position: relative;
    height: 16px;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(7, 192, 161, 0.08) 0%, rgba(7, 192, 161, 0.16) 100%);
    box-shadow:
        inset 0 1px 2px rgba(34, 39, 42, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.75),
        0 1px 0 rgba(255, 255, 255, 0.65);
    overflow: hidden;
    transition: box-shadow 0.35s ease;
}

.sd-onboarding-progress__track--v2.is-filling {
    box-shadow:
        inset 0 1px 2px rgba(34, 39, 42, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.75),
        0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 0 1px rgba(7, 192, 161, 0.12),
        0 0 18px rgba(7, 192, 161, 0.22);
}

.sd-onboarding-progress__bar {
    position: relative;
    width: var(--sd-progress);
    height: 100%;
    min-width: 0;
    border-radius: 999px;
    overflow: hidden;
    will-change: width;
}

.sd-onboarding-progress__track--v2 .sd-onboarding-progress__bar {
    background: linear-gradient(
        90deg,
        #059a82 0%,
        #07c0a1 25%,
        #4ec9a8 50%,
        #07c0a1 75%,
        #65cd9a 100%
    );
    background-size: 220% 100%;
    box-shadow:
        0 1px 3px rgba(7, 192, 161, 0.35),
        0 4px 14px rgba(7, 192, 161, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(6, 127, 108, 0.18);
}

.sd-onboarding-progress__track--v2.is-animated .sd-onboarding-progress__bar {
    animation: sd-progress-flow 1.35s linear infinite;
}

.sd-onboarding-progress__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.sd-onboarding-progress__track--v2 .sd-onboarding-progress__shine {
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 40%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.12) 60%,
        transparent 100%
    );
    background-size: 180% 100%;
    animation: sd-progress-shimmer 1.35s ease-in-out infinite;
}

.sd-onboarding-progress__wave {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.28) 48%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.28) 52%,
        transparent 100%
    );
    transform: translateX(-120%);
    animation: sd-progress-wave 1.05s ease-in-out infinite;
    pointer-events: none;
}

.sd-onboarding-progress__track--v2.is-animated .sd-onboarding-progress__wave {
    opacity: 1;
}

.sd-onboarding-progress__track--v2:not(.is-animated) .sd-onboarding-progress__wave {
    opacity: 0;
}

.sd-onboarding-progress__teaser {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 12%;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg, #059a82 0%, #07c0a1 45%, #65cd9a 100%);
    background-size: 200% 100%;
    box-shadow:
        0 0 10px rgba(7, 192, 161, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sd-onboarding-progress__track--v2.is-empty.is-animated {
    animation: sd-progress-track-invite 2.6s ease-in-out infinite;
}

.sd-onboarding-progress__track--v2.is-empty.is-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(7, 192, 161, 0.14) 45%,
        rgba(101, 205, 154, 0.22) 50%,
        rgba(7, 192, 161, 0.14) 55%,
        transparent 100%
    );
    background-size: 35% 100%;
    animation: sd-progress-track-sweep 2.6s ease-in-out infinite;
    pointer-events: none;
}

.sd-onboarding-progress__track--v2.is-empty.is-animated .sd-onboarding-progress__teaser {
    opacity: 1;
    animation:
        sd-progress-teaser-travel 2.6s ease-in-out infinite,
        sd-progress-teaser-glow 1.3s ease-in-out infinite,
        sd-progress-flow 1.35s linear infinite;
}

@keyframes sd-progress-teaser-travel {
    0% {
        left: 3px;
        width: 8%;
    }
    50% {
        left: 44%;
        width: 14%;
    }
    100% {
        left: calc(100% - 11%);
        width: 8%;
    }
}

@keyframes sd-progress-teaser-glow {
    0%,
    100% {
        filter: brightness(0.9);
        box-shadow:
            0 0 8px rgba(7, 192, 161, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        filter: brightness(1.12);
        box-shadow:
            0 0 16px rgba(7, 192, 161, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }
}

@keyframes sd-progress-track-invite {
    0%,
    100% {
        box-shadow:
            inset 0 1px 2px rgba(34, 39, 42, 0.08),
            inset 0 -1px 0 rgba(255, 255, 255, 0.75),
            0 1px 0 rgba(255, 255, 255, 0.65),
            0 0 0 0 rgba(7, 192, 161, 0);
    }
    50% {
        box-shadow:
            inset 0 1px 2px rgba(34, 39, 42, 0.08),
            inset 0 -1px 0 rgba(255, 255, 255, 0.75),
            0 1px 0 rgba(255, 255, 255, 0.65),
            0 0 0 1px rgba(7, 192, 161, 0.1),
            0 0 16px rgba(7, 192, 161, 0.18);
    }
}

@keyframes sd-progress-track-sweep {
    0% {
        background-position: -40% 0;
    }
    100% {
        background-position: 140% 0;
    }
}

@keyframes sd-progress-flow {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

@keyframes sd-progress-shimmer {
    0% {
        background-position: 130% 0;
    }
    100% {
        background-position: -130% 0;
    }
}

@keyframes sd-progress-wave {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(280%);
    }
}

/* Вариант 1: спокойный shimmer + кружок на краю — вернуть класс --v1 на track */
.sd-onboarding-progress__track--v1 .sd-onboarding-progress__bar {
    background: linear-gradient(90deg, #06b08f 0%, #07c0a1 42%, #4ec9a8 78%, #65cd9a 100%);
    background-size: auto;
    box-shadow:
        0 1px 3px rgba(7, 192, 161, 0.35),
        0 4px 14px rgba(7, 192, 161, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(6, 127, 108, 0.18);
    transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-onboarding-progress__track--v1.is-animated .sd-onboarding-progress__bar::after {
    opacity: 1;
}

.sd-onboarding-progress__track--v1 .sd-onboarding-progress__bar::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(35%, -50%);
    background: radial-gradient(circle at 35% 35%, #eafff8 0%, #65cd9a 55%, #07c0a1 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.35),
        0 0 12px rgba(7, 192, 161, 0.55);
    opacity: 0;
    transition: opacity 0.35s ease 0.85s;
}

.sd-onboarding-progress__track--v1 .sd-onboarding-progress__shine {
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.08) 65%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: sd-progress-shimmer-v1 2.8s ease-in-out infinite;
}

.sd-onboarding-progress__track--v1[data-sd-progress="0"] .sd-onboarding-progress__bar::after {
    display: none;
}

@keyframes sd-progress-shimmer-v1 {
    0% {
        background-position: 120% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-onboarding-progress__bar {
        will-change: auto;
    }

    .sd-onboarding-progress__track--v2.is-filling {
        box-shadow:
            inset 0 1px 2px rgba(34, 39, 42, 0.08),
            inset 0 -1px 0 rgba(255, 255, 255, 0.75),
            0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .sd-onboarding-progress__track--v2.is-animated .sd-onboarding-progress__bar,
    .sd-onboarding-progress__track--v2 .sd-onboarding-progress__shine,
    .sd-onboarding-progress__track--v2 .sd-onboarding-progress__wave {
        animation: none;
    }

    .sd-onboarding-progress__track--v2 .sd-onboarding-progress__shine {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
        background-size: auto;
    }

    .sd-onboarding-progress__track--v2.is-empty.is-animated,
    .sd-onboarding-progress__track--v2.is-empty.is-animated::after,
    .sd-onboarding-progress__track--v2.is-empty.is-animated .sd-onboarding-progress__teaser {
        animation: none;
    }

    .sd-onboarding-progress__track--v2.is-empty .sd-onboarding-progress__teaser {
        opacity: 0.7;
        left: 3px;
        width: 12%;
    }

    .sd-onboarding-progress__track--v2.is-empty.is-animated::after {
        background-position: 50% 0;
        opacity: 0.5;
    }

    .sd-onboarding-progress__track--v1 .sd-onboarding-progress__bar {
        transition: none;
    }

    .sd-onboarding-progress__track--v1 .sd-onboarding-progress__shine {
        animation: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
        background-size: auto;
    }

    .sd-onboarding-progress__track--v1 .sd-onboarding-progress__bar::after {
        transition: none;
    }
}

.sd-onboarding-steps {
    list-style: none;
    padding: 0;
    margin: 1.35rem 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.sd-onboarding-steps__item {
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.sd-onboarding-steps__item--done {
    color: #2d6a5f;
}

.sd-onboarding-steps__item--done > span:not(.sd-onboarding-steps__check) {
    color: #0a7f6c;
    font-weight: 600;
    text-shadow:
        0 0 18px rgba(7, 192, 161, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.45);
}

.sd-onboarding-steps__check {
    color: #07c0a1;
    flex-shrink: 0;
}

.sd-onboarding-steps__circle {
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    display: inline-block;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.sd-onboarding-steps__link {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.sd-onboarding-steps__link:hover {
    color: #07c0a1;
}

.sd-onboarding-steps__item--collapsible {
    display: none;
}

.sd-onboarding-steps.is-expanded .sd-onboarding-steps__item--collapsible {
    display: flex;
}

.sd-onboarding-steps-toggle {
    margin-top: 1rem;
    border: none;
    background: none;
    color: #07c0a1;
    font-size: 0.875rem;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.sd-onboarding__cta-wrap {
    margin-top: 1rem;
}

.sd-onboarding-achievement__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(7, 192, 161, 0.12);
    color: #0a7f6c;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.sd-onboarding-achievement__text {
    color: #5c6b73;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Project hero */
.sd-project-hero {
    border: 1px solid rgba(7, 192, 161, 0.22);
    background: linear-gradient(145deg, #e8f9f6 0%, #f6fffd 45%, #ffffff 100%);
    padding: 1.35rem 1.5rem;
}

.sd-project-hero__inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.sd-project-hero__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(7, 192, 161, 0.15);
    color: #07c0a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
}

.sd-project-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.sd-project-hero__lead {
    color: #5c6b73;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.sd-project-hero__note {
    color: #5c6b73;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.sd-project-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 0;
}

.sd-project-hero__portfolio-link {
    font-size: 0.9rem;
    color: #07c0a1;
    text-decoration: none;
    flex: 1 1 100%;
    margin: 0;
}

.sd-project-hero__portfolio-link:hover {
    text-decoration: underline;
}

/* Resume compact */
.sd-resume-compact {
    padding: 1.1rem 1.25rem;
    border: 1px solid #e8ecef;
}

.sd-resume-compact__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.sd-resume-compact__lead {
    color: #5c6b73;
    font-size: 0.9rem;
    margin: 0 0 0.85rem;
}

.sd-resume-compact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Early access */
.sd-early-access.dash-early-community-note,
.dash-early-community-note.sd-early-access {
    background: linear-gradient(135deg, #f0faf8 0%, #e8f6f3 55%, #f5faf9 100%);
    border: 1px solid rgba(7, 192, 161, 0.28);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(7, 192, 161, 0.06);
}

.sd-early-access .dash-early-community-note__icon {
    background: rgba(7, 192, 161, 0.14);
    color: #0a8f78;
}

.sd-early-access .dash-early-community-note__title {
    color: #1a4a42;
}

.sd-early-access .dash-early-community-note__text {
    color: #3d5c56;
}

.sd-early-access__list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.sd-early-access__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #5c6b73;
}

.sd-early-access__list .bi {
    color: #07c0a1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Шаги «Как работает подтверждение» — не кнопки */
.sd-step-card {
    padding: 1rem 1.1rem;
    border: 1px solid #e4ecea;
    border-radius: 0.65rem;
    background: #fafcfc;
    cursor: default;
    box-shadow: none;
    transition: none;
}

.sd-step-card:hover {
    transform: none;
    box-shadow: none;
}

.sd-step-card__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(7, 192, 161, 0.12);
    color: #0a7f6c;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.sd-step-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #212529;
}

.sd-step-card__text {
    font-size: 0.875rem;
    color: #5c6b73;
    margin: 0;
    line-height: 1.45;
}

.ppe-section-wrap + .ppe-section-wrap {
    margin-top: 0;
}

/* Activity feed */
.sd-platform-activity__heading {
    margin-bottom: 0.65rem;
}

.sd-activity {
    padding: 1.15rem 1.25rem;
    border: 1px solid #e8ecef;
}

.sd-activity__lead {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0 0 0.85rem;
}

.sd-activity__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f2f4;
    font-size: 0.9rem;
}

.sd-activity__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sd-activity__text {
    line-height: 1.4;
}

.sd-activity__time {
    font-size: 0.8125rem;
    color: #8a9499;
    white-space: nowrap;
}

.sd-activity__item:last-child {
    border-bottom: none;
}

.sd-activity__icon {
    color: #07c0a1;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.sd-activity__skeleton {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
}

.sd-skeleton {
    display: block;
    background: linear-gradient(90deg, #eef1f3 25%, #f6f8f9 50%, #eef1f3 75%);
    background-size: 200% 100%;
    animation: sd-skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 6px;
}

.sd-skeleton--icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-skeleton--line {
    height: 0.85rem;
    flex: 1;
}

@keyframes sd-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.sd-activity__cta {
    margin-top: 0.75rem;
}

/* Premium reward */
.sd-premium-reward {
    position: relative;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(7, 192, 161, 0.15);
    background: #fafcfc;
    overflow: hidden;
}

.sd-premium-reward__glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(7, 192, 161, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.sd-premium-reward__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    position: relative;
}

.sd-premium-reward__text {
    color: #5c6b73;
    font-size: 0.9rem;
    margin: 0 0 0.85rem;
    position: relative;
}

.sd-premium-reward__cta {
    position: relative;
}

/* Publications compact */
.sd-publications-compact {
    padding: 0.85rem 1rem;
}

.sd-publications-compact__summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.sd-publications-compact__summary::-webkit-details-marker {
    display: none;
}

.sd-publications-compact__body {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: #5c6b73;
}

/* Sticky CTA — только mobile */
.sd-sticky-cta {
    display: none;
}

@media (max-width: 767.98px) {
    .sd-sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e8ecef;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .sd-sticky-cta[hidden] {
        display: none !important;
    }

    body.sd-dashboard.sd-has-sticky-cta {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 992px) {
    .sd-onboarding.sd-progress-block,
    .sd-onboarding {
        padding: 2rem 2.25rem;
    }

    .sd-onboarding-steps {
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem 2rem;
    }
}

@media (max-width: 767.98px) {
    .sd-onboarding.sd-progress-block,
    .sd-onboarding {
        padding: 1.5rem 1.25rem;
    }

    .sd-project-hero__inner {
        flex-direction: column;
    }

    .sd-project-hero__title {
        font-size: 1.25rem;
    }

    .sd-project-hero__actions .btn {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .sd-resume-compact__actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 419.98px) {
    .sd-resume-compact__actions {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .sd-onboarding-steps__item--collapsible {
        display: flex;
    }

    .sd-onboarding-steps-toggle {
        display: none;
    }
}

/* Stage hero (S0–S3) */
.sd-stage-hero {
    border: 1px solid rgba(7, 192, 161, 0.28);
    background: linear-gradient(145deg, #dff7f2 0%, #f4fffc 40%, #ffffff 100%);
    padding: 1.5rem 1.6rem;
    box-shadow: 0 8px 28px rgba(7, 192, 161, 0.1);
    text-align: left;
}

.sd-stage-hero__inner {
    display: block;
}

.sd-stage-hero--invite {
    padding: 1.75rem 2rem;
}

.sd-stage-hero--invite .sd-stage-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
}

.sd-stage-hero--invite .sd-stage-hero__icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(47, 158, 68, 0.12);
    color: #2f9e44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
}

.sd-stage-hero--invite .sd-stage-hero__body {
    flex: 1;
    min-width: 0;
}

.sd-stage-hero__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.sd-stage-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2f9e44;
    background: rgba(47, 158, 68, 0.1);
    border: 1px solid rgba(47, 158, 68, 0.28);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin: 0;
    max-width: 100%;
}

.sd-stage-hero__head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
}

.sd-stage-hero__head-row .sd-stage-hero__title {
    flex: 1 1 12rem;
    width: auto;
}

.sd-stage-hero__achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
    background: rgba(7, 192, 161, 0.12);
    color: #0a7f6c;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.sd-stage-hero__head .sd-stage-hero__title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    width: 100%;
}

.sd-stage-hero__lead {
    color: #5c6b73;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.sd-stage-hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.sd-stage-hero__benefits li {
    font-size: 0.9rem;
    color: #3d534e;
}

.sd-stage-hero__benefits .bi {
    color: #07c0a1;
    margin-right: 0.25rem;
}

.sd-stage-hero__benefits--cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.35rem;
    width: 100%;
    max-width: none;
}

.sd-stage-hero__benefits--cards li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(7, 192, 161, 0.16);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.sd-stage-hero__benefits--cards .bi {
    flex-shrink: 0;
    margin: 0.1rem 0 0;
    font-size: 1rem;
}

.sd-stage-hero__benefits--cards li span {
    flex: 1;
    min-width: 0;
}

.sd-stage-hero__hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0 0 1rem;
}

.sd-stage-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.15rem;
}

.sd-stage-hero--invite .sd-stage-hero__actions {
    padding-top: 0.25rem;
}

.sd-stage-hero__cta-tertiary {
    font-size: 0.9rem;
    color: #07c0a1;
    text-decoration: none;
    padding: 0.35rem 0.15rem;
}

.sd-stage-hero__cta-tertiary:hover {
    text-decoration: underline;
}

.sd-stage-hero__preview {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(7, 192, 161, 0.35);
}

.sd-stage-hero__preview-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.sd-stage-hero__preview-lead {
    font-size: 0.9rem;
    color: #5c6b73;
}

.sd-onboarding-progress__status {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #07c0a1;
    line-height: 1.45;
}
}

/* Resume status card */
.sd-resume-section.dash-resumes-block > .dash-section-title {
    margin-bottom: 1rem;
}

.sd-resume-status-card .dash-resume-status-unpublished {
    background: rgba(255, 193, 7, 0.2);
    color: #9a6700;
    border: 1px solid rgba(255, 193, 7, 0.45);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.sd-resume-status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.sd-resume-status-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maintext);
    text-decoration: none;
}

.sd-resume-status-card__title:hover {
    color: #07c0a1;
}

.sd-resume-status-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.875rem;
}

.sd-resume-status-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sd-resume-section__more {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Portfolio cards (1–4 projects) */
.sd-portfolio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.sd-portfolio-card {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sd-portfolio-card:hover {
    border-color: rgba(7, 192, 161, 0.45);
    box-shadow: 0 4px 14px rgba(7, 192, 161, 0.12);
}

.sd-portfolio-card__top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.sd-portfolio-card__status {
    color: #07c0a1;
    font-weight: 500;
}

.sd-portfolio-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--blacky);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sd-portfolio-card__address {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sd-portfolio-card__meta {
    font-size: 0.85rem;
    color: #5c6b73;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sd-portfolio-card__contribution {
    font-size: 0.8125rem;
    color: #5c6b73;
    margin-top: 0.35rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sd-portfolio-card__contribution-label {
    font-weight: 600;
    color: #4a5960;
}

/* Reputation block */
.sd-reputation-block__lead {
    color: #5c6b73;
    font-size: 0.95rem;
    margin: -0.35rem 0 0.85rem;
}

.sd-reputation-block .dash-card-confirmed-experience {
    background: linear-gradient(135deg, rgba(7, 192, 161, 0.06) 0%, rgba(255, 255, 255, 1) 55%);
    border-color: rgba(7, 192, 161, 0.18);
}

.sd-reputation-block .connections-dashboard-stats--empty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-reputation-block .dash-connections-empty.sd-reputation-empty {
    text-align: left;
    padding: 1.65rem 1.85rem;
    margin-top: 0.25rem;
}

.sd-reputation-empty__layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.sd-reputation-empty__icon-wrap {
    flex-shrink: 0;
}

.sd-reputation-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(47, 158, 68, 0.12);
    color: #2f9e44;
    font-size: 1.65rem;
}

.sd-reputation-empty__main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.sd-reputation-block .dash-connections-empty-title {
    text-align: left;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    display: block;
    width: 100%;
}

.sd-reputation-empty__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #5c6b73;
    max-width: 36rem;
}

.sd-reputation-block .dash-connections-empty-actions {
    text-align: left;
    margin-top: 0.25rem;
}

.sd-reputation-empty__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    max-width: none;
}

.sd-reputation-empty__benefits li {
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
    padding: 0.7rem 0.85rem 0.7rem 1.35rem;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(7, 192, 161, 0.14);
    border-radius: 10px;
}

.sd-reputation-empty__benefits li::before {
    content: '✓';
    position: absolute;
    left: 0.55rem;
    top: 0.72rem;
    color: #07c0a1;
    font-weight: 700;
}

@media (min-width: 576px) {
    .sd-reputation-empty__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.35rem;
    }
}

@media (max-width: 991.98px) {
    .sd-reputation-empty__benefits {
        grid-template-columns: 1fr;
    }
}

.sd-reputation-compact .connections-graph-inline {
    display: none;
}

/* Education accordion */
.sd-education-accordion {
    padding: 1.15rem 1.25rem;
}

.sd-education-accordion__heading {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
}

.sd-education-accordion__previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.sd-education-preview {
    padding: 0.75rem 0.85rem;
    background: #f8fafb;
    border-radius: 12px;
    border: 1px solid #eef1f3;
}

.sd-education-preview__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.sd-education-preview__text {
    font-size: 0.8rem;
    color: #5c6b73;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sd-education-accordion__panel {
    padding-top: 1rem;
    border-top: 1px solid #eef1f3;
    margin-top: 0.75rem;
}

.sd-education-accordion__subsection {
    margin-bottom: 1.75rem;
}

.sd-education-accordion__subsection:last-child {
    margin-bottom: 0;
}

.sd-education-accordion__panel .ppe-section__title {
    margin-top: 0;
}

.sd-education-accordion__panel .ppe-checklist-card {
    margin-bottom: 0;
}

/* Feed + premium */
.sd-feed-block {
    padding: 1.1rem 1.25rem;
}

.sd-platform-activity__heading {
    margin-bottom: 0.75rem;
}

.sd-premium-reward--formed .sd-premium-reward__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.sd-premium-reward--formed .sd-premium-reward__benefits li {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.sd-premium-reward--formed .sd-premium-reward__benefits .bi {
    color: #07c0a1;
    margin-right: 0.35rem;
}

@media (max-width: 991.98px) {
    .sd-stage-hero__benefits--cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .sd-stage-hero--invite {
        padding: 1.35rem 1.25rem;
    }

    .sd-stage-hero--invite .sd-stage-hero__inner {
        flex-direction: column;
        gap: 1rem;
    }

    .sd-stage-hero__head .sd-stage-hero__title,
    .sd-stage-hero__title {
        font-size: 1.35rem;
    }

    .sd-stage-hero__actions .btn {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .sd-resume-status-card {
        flex-direction: column;
        align-items: stretch;
    }

}
