.profile-overlay{position:fixed;inset:0;background:#061522ab;display:flex;align-items:center;justify-content:center;padding:18px;z-index:200}
.profile-dialog{width:min(740px,100%);max-height:90vh;overflow:auto;background:white;border-radius:18px;padding:26px;box-shadow:0 22px 70px #09182750;color:#18364c}
.profile-dialog h2{margin:0 0 18px}.profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-field{display:flex;flex-direction:column;gap:7px;min-width:0}.profile-field input,.profile-field select{width:100%;padding:10px;border-radius:9px;border:1px solid #d1e0e9;background:white;color:#18364c}
.profile-members,.profile-actions,.profile-message{grid-column:1/-1}.profile-members #ptRoster{max-height:215px;overflow:auto;padding:8px;border:1px solid #e4edf2;border-radius:12px}
.profile-angler-option{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid #edf2f5;font-size:13px}.profile-angler-option input{width:16px;height:16px}.profile-angler-option span{display:flex;align-items:center;gap:7px;flex:1}.profile-angler-option img{width:32px;height:32px;object-fit:cover;border-radius:50%}
.profile-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:7px}.profile-actions button,.profile-primary,.profile-secondary,.profile-edit-angler,.team-dashboard-header button{border:0;border-radius:9px;background:#126e90;color:white;font-weight:700;padding:10px 13px;cursor:pointer}.profile-actions .profile-cancel,.profile-secondary,.profile-edit-angler{color:#24607b;background:#eaf2f7}.profile-edit-angler{font-size:11px;padding:6px 10px}
.profile-message{color:#c83342;font-size:13px;margin:0}.profiles-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.profiles-head h2{margin:0}
.profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.profile-team{padding:16px;border:1px solid #e4ebf1;border-radius:15px;background:#fff}.profile-team h3{margin:12px 0 4px}.profile-team p,.profile-team small{color:#718697;font-size:12px}.profile-team-image{height:150px;background:#d7ebf1;border-radius:10px;display:grid;place-items:center;font-size:40px;color:#417f9b;overflow:hidden}.profile-team-image img{height:100%;width:100%;object-fit:cover}
.team-dashboard-shell{background:#f5f8fb;min-height:100vh}.team-dashboard-header{background:#0a496d;color:white;display:flex;align-items:center;justify-content:space-between;padding:16px max(24px,calc((100vw - 1160px)/2))}.team-dashboard-header img{width:auto;height:42px}.team-dashboard-header nav{display:flex;align-items:center;gap:18px}.team-dashboard-intro{margin:0 0 24px}.team-dashboard-intro h1{margin:0 0 8px}.team-dashboard-intro a{color:#117b9a;font-weight:700}.team-dashboard-shell #teamRoot{max-width:1160px;margin:0 auto;padding:35px 24px}.team-dashboard-shell .panel{padding:20px}
@media(max-width:620px){.profile-form{grid-template-columns:1fr}.profile-dialog{padding:18px}.profile-grid{grid-template-columns:1fr}}

#ptSearch{width:100%;border:1px solid #d1e0e9;border-radius:10px;padding:12px;margin:9px 0 10px}
.profile-search-empty{padding:14px;color:#688299;font-size:13px;line-height:1.5}
.team-owner-photo{position:relative}
.owner-photo-action{position:absolute;right:11px;bottom:11px;border:0;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;background:#0a7699;color:white;box-shadow:0 2px 12px #0003;cursor:pointer;font-size:20px}
.owner-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.owner-profile-actions button{background:#0c7597;border:0;border-radius:10px;padding:10px 14px;color:white;cursor:pointer;font-weight:700}
.owner-profile-actions #ownerLogout{background:#eaf1f5;color:#32647c}

.profile-section-edit{margin-left:auto;border:1px solid #bbd8e6;background:#eaf5fa;color:#126b8a;border-radius:9px;padding:9px 13px;font:700 12px inherit;cursor:pointer}

.public-profile-hero > div:nth-child(2){min-width:0;flex:1;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.public-profile-hero .owner-profile-actions{align-self:flex-start;margin:0 0 0 auto;flex:0 0 auto;display:flex;align-items:center;gap:10px}
.public-profile-page .section-space .block-head{justify-content:flex-start;gap:12px}
.public-profile-page .profile-section-edit{margin-left:0;flex:0 0 auto}
@media(max-width:850px){.public-profile-hero{flex-wrap:wrap}.public-profile-hero .owner-profile-actions{margin-left:0;align-self:center}}
@media(max-width:620px){.public-profile-hero .owner-profile-actions{align-self:stretch;flex-wrap:wrap}.public-profile-hero .owner-profile-actions button{flex:1}}
