.ProfessionalProfileRoot {
    --pro-bg: #0f1726;
    --pro-bg-strong: #0b1220;
    --pro-panel: rgba(255, 255, 255, 0.06);
    --pro-border: rgba(255, 255, 255, 0.12);
    --pro-text: var(--text-color, #eef4ff);
    --pro-muted: var(--unselected-text-color, rgba(238, 244, 255, 0.72));
    --pro-accent: #ff8a3d;
    --pro-accent-alt: #18b6b9;
    --pro-success: #37d39a;
    --pro-warning: #ffd166;
    --pro-error: #ff6b6b;
    min-height: 100%;
    color: var(--pro-text);
}

html.light-theme .ProfessionalProfileRoot {
    --pro-bg: #ffffff;
    --pro-bg-strong: #f7fafc;
    --pro-panel: rgba(42, 55, 84, 0.07);
    --pro-border: rgba(42, 55, 84, 0.12);
    --pro-text: var(--text-color, #2a3754);
    --pro-muted: var(--unselected-text-color, rgba(42, 55, 84, 0.72));
}

.ProfessionalProfileShell {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.ProfessionalProfileHero,
.ProfessionalProfileSidebarCard,
.ProfessionalProfileFormSection,
.ProfessionalProfileSkillGroup {
    border: 1px solid var(--pro-border);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        var(--pro-bg);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.ProfessionalProfileHero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.16), transparent 28%),
        radial-gradient(circle at left center, rgba(24, 182, 185, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(24, 182, 185, 0.08)),
        var(--pro-bg-strong);
}

.ProfessionalProfileEyebrow,
.ProfessionalProfileSectionKicker {
    margin: 0;
    color: var(--pro-muted);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ProfessionalProfileHero h1,
.ProfessionalProfileSectionHeader h2,
.ProfessionalProfileSidebarCard h2 {
    margin: 8px 0 0;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.02;
}

.ProfessionalProfileLead {
    margin: 16px 0 0;
    max-width: 68ch;
    color: var(--pro-muted);
    line-height: 1.7;
}

.ProfessionalProfileHeroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ProfessionalProfilePrimaryAction,
.ProfessionalProfileGhostAction {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--pro-border);
    cursor: pointer;
}

.ProfessionalProfilePrimaryAction {
    background: linear-gradient(135deg, var(--pro-accent), #ff6f61);
    color: #fff;
    border: none;
}

.ProfessionalProfileGhostAction {
    background: transparent;
    color: var(--pro-text);
}

.ProfessionalProfileHeroStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ProfessionalProfileStatCard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--pro-panel);
    border: 1px solid var(--pro-border);
}

.ProfessionalProfileStatCard span {
    color: var(--pro-muted);
    font-size: 0.84rem;
}

.ProfessionalProfileStatCard strong {
    font-size: 1.15rem;
}

.ProfessionalProfileSyncBadge[data-sync-tone='success'] {
    color: var(--pro-success);
}

.ProfessionalProfileSyncBadge[data-sync-tone='pending'] {
    color: var(--pro-warning);
}

.ProfessionalProfileSyncBadge[data-sync-tone='error'] {
    color: var(--pro-error);
}

.ProfessionalProfileGrid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ProfessionalProfileSidebar {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 18px;
}

.ProfessionalProfileSidebarCard {
    padding: 18px;
}

.ProfessionalProfileCoverageBar {
    height: 12px;
    margin-top: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.ProfessionalProfileCoverageBar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pro-accent), var(--pro-accent-alt));
}

.ProfessionalProfileCounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.ProfessionalProfileCounts div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--pro-panel);
}

.ProfessionalProfileCounts strong {
    font-size: 1.1rem;
}

.ProfessionalProfileCounts span,
.ProfessionalProfileSidebarText {
    color: var(--pro-muted);
    line-height: 1.6;
}

.ProfessionalProfilePriorityList {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.ProfessionalProfilePriorityItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--pro-panel);
    border: 1px solid var(--pro-border);
}

.ProfessionalProfileMiniEmpty {
    color: var(--pro-muted);
}

.ProfessionalProfileStatusMessage {
    margin-top: 8px;
}

.ProfessionalProfileContent {
    display: grid;
    gap: 18px;
}

.ProfessionalProfileFormSection {
    padding: 22px;
}

.ProfessionalProfileSectionHeader {
    margin-bottom: 18px;
}

.ProfessionalProfileFields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ProfessionalProfileFieldFull {
    grid-column: 1 / -1;
}

.ProfessionalProfileFields label,
.ProfessionalProfileRangeWrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ProfessionalProfileFields span,
.ProfessionalProfileRangeWrap span {
    font-size: 0.88rem;
    color: var(--pro-muted);
}

.ProfessionalProfileFields input,
.ProfessionalProfileFields select,
.ProfessionalProfileFields textarea,
.ProfessionalProfileSkillControls select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-panel);
    color: var(--pro-text);
}

.ProfessionalProfileFields textarea {
    min-height: 130px;
    resize: vertical;
}

.ProfessionalProfileSkillGroups {
    display: grid;
    gap: 14px;
}

.ProfessionalProfileSkillGroup {
    padding: 18px;
}

.ProfessionalProfileSkillGroupBody {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.ProfessionalProfileSkillRow {
    padding: 14px;
    border-radius: 18px;
    background: var(--pro-panel);
    border: 1px solid var(--pro-border);
}

.ProfessionalProfileSkillHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ProfessionalProfileSkillHead h4 {
    margin: 0;
}

.ProfessionalProfileSkillHead p {
    margin: 6px 0 0;
    color: var(--pro-muted);
}

.ProfessionalProfileSkillTarget {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.14);
    color: var(--pro-accent);
    white-space: nowrap;
}

.ProfessionalProfileSkillControls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-top: 14px;
}

.ProfessionalProfileRangeWrap input[type='range'] {
    padding: 0;
}

.ProfessionalProfileRangeWrap output {
    color: var(--pro-text);
    font-size: 0.88rem;
}

@media (max-width: 1120px) {
    .ProfessionalProfileHero,
    .ProfessionalProfileGrid,
    .ProfessionalProfileFields,
    .ProfessionalProfileSkillControls {
        grid-template-columns: 1fr;
    }

    .ProfessionalProfileSidebar {
        position: static;
    }

    .ProfessionalProfileHeroStats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .ProfessionalProfileShell {
        padding: 12px;
    }

    .ProfessionalProfileHero,
    .ProfessionalProfileFormSection,
    .ProfessionalProfileSidebarCard,
    .ProfessionalProfileSkillGroup {
        border-radius: 20px;
        padding: 16px;
    }

    .ProfessionalProfileHeroStats,
    .ProfessionalProfileCounts {
        grid-template-columns: 1fr;
    }
}
