/* CI 8 presentation only. Existing form ownership and visibility remain intact. */
.profile-detail-layout{display:grid;gap:24px;align-items:start}
.profile-detail-sidebar{position:sticky;min-width:0;max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;padding:4px}
.profile-detail-main{min-width:0;background:var(--fliq8-surface);border:1px solid var(--fliq8-divider);border-radius:8px}
.profile-detail-sidebar .profile-identity-card{flex-direction:column;}
.profile-detail-sidebar .profile-photo{min-width:0;}
.profile-detail-sidebar .profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-detail-sidebar .profile-identity h2{font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.profile-detail-sidebar .profile-identity p{line-height:1.5;overflow-wrap:anywhere}
.profile-detail-identity{padding:16px 12px;border-bottom:1px solid var(--fliq8-divider);margin-bottom:16px}
.profile-detail-identity h3{margin:0;overflow-wrap:anywhere}
.profile-section-links{display:grid;gap:4px}
.profile-section-links a{display:grid;gap:4px;text-decoration:none;overflow-wrap:anywhere}
.profile-section-links strong{font-size:14px;line-height:1.4;font-weight:600}
.profile-section-links span{font-size:12px;line-height:1.5;color:var(--fliq8-secondary)}
.profile-section-links a:hover{background:var(--fliq8-muted)}
.profile-section-links a[aria-current=location] strong{font-weight:700}
.profile-section-links a:focus-visible{outline:3px solid var(--fliq8-focus);outline-offset:2px}
.profile-detail-main .profile-form{display:block;margin:0;padding:0}
.profile-detail-main .profile-detail-section{margin:0;border:0;border-bottom:1px solid var(--fliq8-divider);background:transparent;scroll-margin-block:24px}
.profile-detail-section>h2,.profile-detail-section>h3{margin:0 0 24px;}
.profile-detail-section .card-heading{align-items:flex-start;flex-wrap:wrap}
.profile-detail-section .card-heading h2{line-height:1.2}
.profile-detail-main .form-grid{max-width:800px;}
.profile-detail-main label{margin:0;min-width:0}
.profile-detail-main :is(input){min-width:0;max-width:100%}
.profile-field-group{border-top:1px solid var(--fliq8-divider)}
.profile-field-group>h3,.profile-field-group>h4{margin:0 0 16px;}
.profile-detail-main #profileMeasurementsSection{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.profile-detail-main #profileMeasurementsSection>h2{margin:0}
.profile-detail-main #profileMeasurementsSection>.card>h2{line-height:1.3;margin-bottom:16px}
.profile-detail-main #measurementForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0;max-width:800px}
.profile-detail-main #measurementForm button{align-self:end}
.profile-detail-main .document-grid,.profile-detail-main .bike-grid,.profile-detail-main .file-grid{grid-template-columns:minmax(0,1fr)}
.profile-detail-main .document-card form{padding:0}
.profile-detail-main>.supporting,.profile-detail-main>#athleteFormError{margin:16px 24px}
dialog.profile-detail-dialog{width:min(1440px,calc(100vw - 32px));}
.profile-detail-dialog .profile-detail-sidebar{top:16px;max-height:calc(100dvh - 80px)}
.profile-detail-dialog .profile-detail-layout{grid-template-columns:240px minmax(0,1fr)}
@media(max-width:1199px){}
@media(max-width:767px){
 .profile-detail-dialog .profile-detail-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .profile-detail-sidebar,.profile-detail-dialog .profile-detail-sidebar{position:static;max-height:none;overflow:visible;padding:4px}
 .profile-section-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .profile-section-links a{background:var(--fliq8-muted);}
 .profile-detail-sidebar .profile-identity-card{flex-direction:row;}
 .profile-detail-sidebar .profile-photo{flex-shrink:0}
 .profile-detail-sidebar .profile-identity{min-width:0}
 .profile-detail-identity{padding:12px 0}
 .profile-detail-main .form-grid,.profile-detail-main #measurementForm{grid-template-columns:minmax(0,1fr)}
 .profile-detail-main>.supporting,.profile-detail-main>#athleteFormError{margin:16px}
}
@media print{.profile-detail-sidebar{display:none}.profile-detail-layout{display:block}.profile-detail-main{border:0}.profile-detail-main .profile-detail-section{break-inside:avoid}}
