.profile-details {
    --honey-accent: #f4267d;
    padding: clamp(20px, 4vw, 36px);
    margin-block: 24px;
    border: 1px solid #f3e5eb;
    border-radius: 24px;
    background: linear-gradient(125deg, #fff8fb, #f5fcfc);
    color: #303044;
}
.profile-details h2 { margin: 0 0 12px; font-size: 24px; }
.profile-details__intro { margin: 0 0 24px; line-height: 1.6; }
.profile-details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.profile-details__field { min-width: 0; }
.profile-details__field label, .profile-details legend { display: block; font-weight: 600; margin-bottom: 10px; }
.profile-details__field select, .profile-details__field input[type="date"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #dedee7; border-radius: 12px; background: white; color: inherit; font: inherit; }
.profile-details :is(select, input):focus-visible { outline: 3px solid #f4267d66; outline-offset: 3px; }
.profile-details__pets { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.profile-details__pets #id_pets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-details__pets label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile-details__pets input { appearance: auto; width: 18px; height: 18px; accent-color: var(--honey-accent); }
.profile-details__hint { margin-top: 14px; font-size: 14px; color: #656575; }
.profile-details dl { margin: 0; }
.profile-details dt { font-size: 14px; color: #656575; }
.profile-details dd { margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 600px) {
    .profile-details__grid { grid-template-columns: 1fr; }
}
.profile-details__field input[type="number"],.profile-details__field input[type="text"] { width:100%; min-height:48px; padding:10px 12px; border:1px solid #dedee7; border-radius:12px; background:white; color:inherit; font:inherit; }

.person.profile-summary { grid-template-columns:minmax(0,1fr); }
.profile-section-card { background:#fff; box-shadow:0 4px 18px #55394c06; }
.profile-section-card > header { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:18px; }
.profile-section-card > header a { color:#a72560; font-size:14px; flex:none; }
.profile-section-card > header { align-items:center; }
.profile-section-card > header h2 { display:flex; align-items:center; gap:12px; margin:0; }
.profile-section-icon { width:28px; height:28px; flex-shrink:0; color:#ff1766; }
.profile-section-icon > * { color:inherit; }
.profile-section-card [data-profile-section-edit] { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; color:#57529b; border-radius:10px; }
.profile-section-card [data-profile-section-edit] .profile-section-icon { width:23px; height:23px; color:inherit; }
.profile-section-card [data-profile-section-edit]:focus-visible { outline:3px solid #f4267d66; outline-offset:2px; }
.profile-section-card dd { overflow-wrap:anywhere; }
.profile-section-dialog { width:min(760px,calc(100% - 24px)); max-width:760px; max-height:90dvh; padding:28px; border:1px solid #efdeea; border-radius:24px; color:#303044; background:#fff; }
.profile-section-dialog::backdrop { background:#24162488; }
.profile-section-dialog > button { display:flex; align-items:center; justify-content:center; padding:0; margin-left:auto; border:0; background:#fff0f6; border-radius:50%; width:40px; height:40px; font-size:26px; line-height:1; cursor:pointer; }
.profile-section-dialog > button svg { width:20px; height:20px; }
.profile-section-form h2 { margin:0 0 16px; }
.profile-section-form .profile-details__pets > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-section-form textarea,.profile-section-form input[type=url] { width:100%; padding:12px; border:1px solid #dedee7; border-radius:12px; background:#fff; font:inherit; }
.profile-section-form .profile-details__field:has(textarea) { grid-column:1 / -1; }
.profile-section-form textarea { min-height:180px; resize:vertical; }
.profile-section-form input[type=checkbox],.profile-account-controls input[type=checkbox] { appearance:auto; width:18px; height:18px; accent-color:#f4267d; }
.profile-section-form .errorlist,.profile-section-error { color:#a91f45; }
.profile-section-actions,.profile-account-controls { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-block:24px; }
.profile-account-controls label { display:flex; align-items:center; gap:8px; }
.profile-account-controls button { padding:0; border:0; background:none; font:inherit; color:#a72560; cursor:pointer; }
.profile-section-status:empty { display:none; }
.ad-heading.profile-ad-heading { min-width:0; flex-direction:column; align-items:stretch; justify-content:center; gap:16px; }
.profile-ad-heading > .profile-ad-heading__actions { display:flex; flex-wrap:wrap; flex:0 1 auto; gap:12px; }
.profile-ad-heading__actions > .btn { flex:1 1 200px; min-width:0; max-width:100%; width:auto; height:auto; min-height:44px; padding:10px 16px; white-space:normal; overflow-wrap:anywhere; text-align:center; }
@media(max-width:600px) { .profile-section-dialog { padding:20px; }.profile-section-card > header h2 { font-size:20px; }.profile-section-form .profile-details__pets > div { grid-template-columns:1fr; } }
.profile-section-card .profile-details__grid { grid-template-columns:minmax(0,1fr); gap:0; }
.profile-section-card .profile-details__grid > div { display:grid; grid-template-columns:minmax(0,38%) minmax(0,1fr); gap:16px; padding:11px 0; border-bottom:1px solid #f2edf4; }
.profile-section-card .profile-details__grid > div:last-child { border-bottom:0; }
.profile-section-card dt { color:#64548f; line-height:1.5; overflow-wrap:anywhere; }
.profile-section-card dd { margin:0; min-width:0; }
@media(max-width:400px) {
 .profile-section-card .profile-details__grid > div { grid-template-columns:minmax(0,43%) minmax(0,1fr); gap:12px; }
 .profile-section-card dt,.profile-section-card dd { font-size:13px; }
}
details.profile-account-controls { display:block; }
.profile-account-controls > summary { color:#816b91; cursor:pointer; padding:10px 0; font-size:13px; }
.profile-account-controls__items { display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; padding:16px; border:1px solid #eee5ef; border-radius:16px; background:#fff; }
.profile-account-controls__items > :is(label,a,button) { font-size:13px; }
