.profile-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 72px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.profile-tabs__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    color: var(--ink);
    border: 1px solid rgb(23 58 82 / 14%);
    border-radius: 999px;
    font-weight: 600;
    background: #fff;
}

.profile-tabs__link:hover,
.profile-tabs__link.is-active {
    color: #fff;
    border-color: var(--ink);
    background: var(--ink);
}

.profile-units {
    padding: 0;
}

.profile-units .product-grid__list {
    width: 100%;
}

.profile-unit {
    display: block;
}

.profile-unit__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: inherit;
    background: linear-gradient(135deg, #fff8d8, var(--mint));
}

.profile-unit__progress {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.profile-unit__progress-label {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
    color: #36566b;
    font-size: 14px;
}

.profile-unit__progress-label strong {
    color: var(--ink);
}

.profile-unit__progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(23 58 82 / 10%);
}

.profile-unit__progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--coral);
}

.profile-edit {
    margin: 0 auto;
}

.profile-edit .form {
    width: min(100%, 680px);
    margin: 0 auto;
}

.profile-edit__message {
    width: min(100%, 680px);
    margin: 0 auto 20px;
    padding: 14px 18px;
    color: var(--ink);
    border-radius: 16px;
    background: var(--mint);
}

.profile-details {
    display: grid;
    gap: 28px;
    margin: 0 auto;
}

.profile-details h2 {
    color: var(--ink);
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    text-align: center;
}

.profile-details__list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.profile-details__list > div {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgb(23 58 82 / 10%);
    border-radius: 16px;
    background: #f8fbfc;
}

.profile-details__list dt {
    color: #36566b;
    font-size: 14px;
    font-weight: 600;
}

.profile-details__list dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.profile-details__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.profile-details__actions .default-page__action {
    margin-top: 0;
}

.profile-details__logout-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    cursor: pointer;
    color: #b42318;
    border: 1px solid rgb(180 35 24 / 32%);
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    background: #fff;
}

.profile-details__logout-button:hover {
    background: #fff1f0;
}

.profile-empty {
    margin: 0 auto;
}
