.nevv-sdp-profiles {
    width: 100%;
}

.nevv-sdp-profiles__header {
    margin-bottom: 18px;
}

.nevv-sdp-profiles__header h1 {
    margin: 0 0 8px;
    color: var(--nevv-sdp-h1-color, #111827);
    font-size: var(--nevv-sdp-h1-size, 32px);
    line-height: 1.15;
}

.nevv-sdp-profiles__lead {
    margin: 0;
    color: var(--nevv-sdp-text-description-color, #52606d);
    font-size: var(--nevv-sdp-text-description-size, 14px);
}

.nevv-sdp-profiles-topbar-label {
    display: inline-flex;
    align-items: center;
    min-height: var(--nevv-sdp-control-height, 42px);
    color: var(--nevv-sdp-text-normal-color, #1f2933);
    font-size: var(--nevv-sdp-text-normal-size, 16px);
    font-weight: 700;
}

.nevv-sdp-profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.nevv-sdp-profile-summary__avatar {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid var(--nevv-sdp-border-card, #d8dbe2);
    flex: 0 0 auto;
}

.nevv-sdp-profile-summary__body {
    min-width: 0;
}

.nevv-sdp-profile-summary__hint {
    margin: 8px 0 0;
    color: var(--nevv-sdp-text-description-color, #52606d);
    font-size: var(--nevv-sdp-text-description-size, 14px);
}

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

@media (min-width: 860px) {
    .nevv-sdp-profile-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

.nevv-sdp-profile-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 150px;
    text-decoration: none;
    color: var(--nevv-sdp-text-normal-color, #1f2933);
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.nevv-sdp-profile-tile:hover,
.nevv-sdp-profile-tile:focus-visible {
    transform: translateY(-2px);
    border-color: var(--nevv-sdp-btn-other-bg, #334155);
    outline: none;
}

.nevv-sdp-profile-tile__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--nevv-sdp-btn-other-bg, #334155);
}

.nevv-sdp-profile-tile__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nevv-sdp-profile-tile__title {
    display: block;
    color: var(--nevv-sdp-h3-color, #111827);
    font-size: var(--nevv-sdp-h3-size, 20px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
}

.nevv-sdp-profile-tile__description {
    display: block;
    color: var(--nevv-sdp-text-description-color, #52606d);
    font-size: var(--nevv-sdp-text-description-size, 14px);
    line-height: 1.35;
}

.nevv-sdp-profiles-placeholder,
.nevv-sdp-personal-data {
    max-width: 920px;
}

.nevv-sdp-profile-data-list {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
}

.nevv-sdp-profile-data-list__row {
    display: grid;
    grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nevv-sdp-border-card, #d8dbe2);
}

.nevv-sdp-profile-data-list dt {
    font-weight: 700;
    color: var(--nevv-sdp-text-normal-color, #1f2933);
}

.nevv-sdp-profile-data-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--nevv-sdp-text-description-color, #52606d);
}

@media (max-width: 560px) {
    .nevv-sdp-profile-summary {
        align-items: flex-start;
    }

    .nevv-sdp-profile-summary__avatar {
        width: 54px;
        height: 54px;
    }

    .nevv-sdp-profile-tile {
        min-height: 138px;
    }

    .nevv-sdp-profile-tile__title {
        font-size: 16px;
    }

    .nevv-sdp-profile-data-list__row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: stretch;
    }
}

.nevv-sdp-profile-data-list__value {
    display: block;
}

.nevv-sdp-profile-data-list__hint {
    display: block;
    margin-top: 4px;
    color: var(--nevv-sdp-text-description-color, #52606d);
    font-size: var(--nevv-sdp-text-description-size, 14px);
}

.nevv-sdp-profile-data-list__action {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.nevv-sdp-profile-data-list__action--empty {
    min-width: 1px;
}

@media (max-width: 560px) {
    .nevv-sdp-profile-data-list__action {
        justify-content: flex-start;
    }

    .nevv-sdp-profile-data-list__action--empty {
        display: none;
    }
}

.nevv-sdp-profile-modal[hidden] {
    display: none;
}

.nevv-sdp-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.nevv-sdp-profile-modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--nevv-sdp-modal-overlay-bg, rgba(0,0,0,0.55));
}

.nevv-sdp-profile-modal__panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    background: var(--nevv-sdp-modal-bg, var(--nevv-sdp-bg-card, #ffffff));
    border: 1px solid var(--nevv-sdp-modal-border, var(--nevv-sdp-border-card, #d8dbe2));
    border-radius: var(--nevv-sdp-radius-global, 12px);
    color: var(--nevv-sdp-modal-text-color, var(--nevv-sdp-text-normal-color, #1f2933));
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.nevv-sdp-profile-modal__header,
.nevv-sdp-profile-modal__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--nevv-sdp-border-card, #d8dbe2);
}

.nevv-sdp-profile-modal__footer {
    justify-content: flex-end;
    border-top: 1px solid var(--nevv-sdp-border-card, #d8dbe2);
    border-bottom: 0;
}

.nevv-sdp-profile-modal__header h2 {
    flex: 1 1 auto;
    margin: 0;
    color: var(--nevv-sdp-h2-color, #111827);
    font-size: var(--nevv-sdp-h2-size, 26px);
}

.nevv-sdp-profile-modal__close {
    width: var(--nevv-sdp-button-height, 42px);
    height: var(--nevv-sdp-button-height, 42px);
    border-radius: var(--nevv-sdp-radius-global, 12px);
    border: 1px solid var(--nevv-sdp-border-card, #d8dbe2);
    background: var(--nevv-sdp-btn-cancel-bg, #e5e7eb);
    color: var(--nevv-sdp-btn-cancel-color, #111827);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.nevv-sdp-profile-modal__body {
    padding: 18px;
}

.nevv-sdp-profile-form {
    display: grid;
    gap: 14px;
}

.nevv-sdp-profile-form__field,
.nevv-sdp-profile-form__readonly {
    display: grid;
    gap: 6px;
}

.nevv-sdp-profile-form__label,
.nevv-sdp-profile-form__field span {
    font-weight: 700;
    color: var(--nevv-sdp-text-normal-color, #1f2933);
}

.nevv-sdp-profile-form__field input,
.nevv-sdp-profile-form__field select {
    min-height: var(--nevv-sdp-control-height, 42px);
    border-radius: var(--nevv-sdp-radius-global, 12px);
    border: 1px solid var(--nevv-sdp-input-border, #cbd5e1);
    background: var(--nevv-sdp-input-bg, #ffffff);
    color: var(--nevv-sdp-input-color, #111827);
    font-size: var(--nevv-sdp-input-font-size, 15px);
    padding: 8px 12px;
}

.nevv-sdp-profile-form__field select {
    background: var(--nevv-sdp-select-bg, #ffffff);
    color: var(--nevv-sdp-select-color, #111827);
    border-color: var(--nevv-sdp-select-border, #cbd5e1);
    font-size: var(--nevv-sdp-select-font-size, 15px);
}

@media (max-width: 560px) {
    .nevv-sdp-profile-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .nevv-sdp-profile-modal__panel {
        max-height: calc(100vh - 20px);
    }

    .nevv-sdp-profile-modal__footer {
        flex-wrap: wrap;
    }
}

.nevv-sdp-profile-log {
    max-width: 920px;
}

.nevv-sdp-profile-log__list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.nevv-sdp-profile-log__item {
    padding: 12px;
    border: 1px solid var(--nevv-sdp-border-card, #d8dbe2);
    border-radius: var(--nevv-sdp-radius-global, 12px);
    background: color-mix(in srgb, var(--nevv-sdp-bg-card, #ffffff) 94%, #000000 6%);
}

.nevv-sdp-profile-log__item h3 {
    margin: 0 0 6px;
    color: var(--nevv-sdp-h3-color, #111827);
    font-size: var(--nevv-sdp-h3-size, 20px);
}

.nevv-sdp-profile-log__item p {
    margin: 6px 0 0;
}

.nevv-sdp-profile-log__meta {
    color: var(--nevv-sdp-text-description-color, #52606d);
    font-size: var(--nevv-sdp-text-description-size, 14px);
}
