.customer-profile{width:min(820px,100vw);max-width:100vw;padding:24px 28px 40px;background:#fbfcff;color:var(--ink,#20354c)}
.customer-profile .customerhead{align-items:flex-start;margin-bottom:18px}
.customer-profile .customerhead h2{font-size:24px;line-height:1.3;overflow-wrap:anywhere}
.customer-profile .customerhead .closebtn{flex:0 0 36px}
.customer-profile>.flex .btn{min-height:40px}
.profile-form{padding:20px;border:1px solid #dce5ed;border-radius:16px;background:#fff;box-shadow:0 4px 18px #1d406005}
.profile-form fieldset{min-width:0;padding:0;margin:0;border:0}
.profile-form legend{font-size:15px;font-weight:750;margin-bottom:16px;padding:0}
.profile-form .formgrid{gap:14px 16px}
.profile-form .field{min-width:0}
.profile-form .field label{font-size:12px;font-weight:650;color:#496176;margin-bottom:6px}
.profile-form :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;box-sizing:border-box;border:1px solid #d8e2ed;border-radius:9px;background:#fbfdff;padding:9px 11px;font:inherit;font-size:13px;color:inherit}
.profile-form :is(input:not([type=checkbox]),select){min-height:42px}
.profile-form textarea{resize:vertical;line-height:1.6}
.profile-form :is(input,select,textarea):focus-visible{outline:2px solid #5b94c5;outline-offset:2px}
.profile-form small{font-size:11px;line-height:1.6;color:#6c7c8e}
.profile-form #profile-birthday-help{margin-top:-8px}
.profile-relationship{padding:14px;background:#f4f8fc;border:1px solid #dce6ee;border-radius:12px}
.profile-relationship>strong{font-size:13px}
.profile-relationship p{font-size:13px;margin:8px 0}
.profile-relation-fields{display:grid;grid-template-columns:130px auto minmax(0,1fr);align-items:start;gap:10px}
.profile-relation-fields>span{padding-top:11px;font-size:13px}
.profile-relation-search{min-width:0}
[data-profile-relation-results]:not(:empty){padding:5px;border:1px solid #d6e2ed;border-radius:9px;background:#fff;max-height:220px;overflow-y:auto;margin-top:5px}
[data-profile-relation-results]>button{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;min-height:44px;padding:8px;border:0;border-radius:5px;background:transparent;cursor:pointer;color:inherit}
[data-profile-relation-results]>button:hover,[data-profile-relation-results]>button:focus-visible{background:#eaf2fa}
[data-profile-relation-results] strong{font-size:12px;overflow-wrap:anywhere}
[data-profile-relation-selected]{font-size:13px;line-height:1.6;margin-top:10px;overflow-wrap:anywhere}
.profile-save{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;padding-top:18px;border-top:1px solid #e5ebf1;margin-top:16px}
.profile-save [data-profile-save-state]{margin-right:auto;flex:1 1 160px}
.profile-save .btn{min-height:42px}
.profile-history{padding:5px 0}
.profile-history .timelinebody{padding:0}
.profile-history-entry{border:1px solid #dce5ed;border-radius:12px;padding:15px 16px;margin:0 0 10px;background:#fff}
.profile-history-entry:before{display:none}
.profile-history-entry .note{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.profile-history-entry>.spread{align-items:flex-start;gap:8px}
#customer-profile-timeline-more{text-align:center}
.customer-profile .subheading{margin-top:24px}
.customer-profile .subheading h3{font-size:15px}
.customer-profile summary{font-size:12px;cursor:pointer}
@media(max-width:600px){.customer-profile{padding:18px 14px 32px}.customer-profile .avatar.big{display:none}.customer-profile .customerhead h2{font-size:21px}.profile-form{padding:15px 12px}.profile-form .formgrid{grid-template-columns:1fr}.profile-form .full{grid-column:1}.profile-relation-fields{grid-template-columns:minmax(0,1fr) auto}.profile-relation-search{grid-column:1/-1}.profile-form :is(input:not([type=checkbox]),select){min-height:44px;font-size:16px}.profile-form textarea{font-size:16px}.customer-profile .btn{min-height:44px}.profile-history-entry{padding:13px}.profile-save [data-profile-save-state]{flex-basis:100%}}
