.shared-profile-card {
    border-radius: 16px;
}

.shared-profile-photo-avatar {
    width: 96px !important;
    height: 96px !important;
    border-radius: 12px !important;
    border: 2px solid var(--mud-palette-lines-default);
}

.shared-profile-skeleton {
    border-radius: 16px;
}

/* Staff / elevated profile surface */
.user-profile-page {
    max-width: 1120px;
}

.user-profile-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--mud-palette-text-primary);
}

@media (min-width: 600px) {
    .user-profile-hero-title {
        font-size: 2rem;
    }
}

.user-profile-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--mud-palette-tertiary) 18%, white);
    color: var(--mud-palette-tertiary);
}

.user-profile-status-pill.is-inactive {
    background: color-mix(in srgb, var(--mud-palette-text-secondary) 14%, white);
    color: var(--mud-palette-text-secondary);
}

.user-profile-card {
    border-radius: 16px !important;
    background: var(--mud-palette-surface);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.user-profile-section-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-tertiary) 16%, white);
    color: var(--mud-palette-tertiary);
}

.user-profile-section-icon.is-security {
    background: color-mix(in srgb, var(--mud-palette-error) 12%, white);
    color: var(--mud-palette-error);
}

.user-profile-field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 6px;
}

.user-profile-field-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    word-break: break-word;
}

.user-profile-verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--mud-palette-success) 16%, white);
    color: var(--mud-palette-success);
    white-space: nowrap;
}

.user-profile-verified-badge.is-unverified {
    background: color-mix(in srgb, var(--mud-palette-warning) 18%, white);
    color: #b45309;
}

.user-profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mud-palette-success);
    display: inline-block;
    flex-shrink: 0;
}

.user-profile-status-dot.is-inactive {
    background: var(--mud-palette-text-secondary);
}

.user-profile-meta-card {
    border-radius: 14px !important;
    background: var(--mud-palette-surface);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
}

.user-profile-meta-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--mud-palette-tertiary);
}

.user-profile-meta-card .user-profile-meta-body {
    padding: 14px 16px 14px 18px;
}

/* Elevated photo card */
.user-profile-photo-card {
    text-align: center;
}

.user-profile-photo-frame {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto 16px;
}

.user-profile-photo-avatar-lg {
    width: 148px !important;
    height: 148px !important;
    border-radius: 22px !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.user-profile-photo-camera {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 3px solid var(--mud-palette-surface);
    background: var(--mud-palette-tertiary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.user-profile-photo-camera:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-profile-photo-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-profile-photo-hint {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 16px;
}

.user-profile-btn-dark {
    background: #111827 !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    width: 100%;
}

.user-profile-btn-dark:hover {
    background: #1f2937 !important;
}

.user-profile-btn-accent {
    background: var(--mud-palette-tertiary) !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    width: 100%;
}

.user-profile-btn-accent:hover {
    filter: brightness(0.95);
}

.user-profile-security-field .mud-input-outlined .mud-input-outlined-border {
    border-radius: 12px !important;
}

.user-profile-security-field .mud-input-slot,
.user-profile-security-field .mud-input {
    background: color-mix(in srgb, var(--mud-palette-background) 85%, white);
}

@media (max-width: 599px) {
    .user-profile-photo-frame,
    .user-profile-photo-avatar-lg {
        width: 128px;
        height: 128px;
    }

    .user-profile-photo-avatar-lg {
        width: 128px !important;
        height: 128px !important;
        border-radius: 18px !important;
    }
}
