.member-menu{position:relative;margin-left:auto}
.member-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 8px 6px 6px;border-radius:10px;cursor:pointer;color:var(--navy);font-weight:750}
.member-menu>summary::-webkit-details-marker{display:none}
.member-menu>summary:hover{background:var(--soft)}
.member-menu>summary:focus-visible{outline:3px solid rgba(8,124,117,.3);outline-offset:2px}
.member-menu-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:var(--navy);color:white;display:grid;place-items:center;font-family:var(--display);font-weight:700;border:1px solid rgba(21,56,69,.15)}
.member-menu-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}
.member-menu-arrow{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}
.member-menu[open] .member-menu-arrow{transform:rotate(225deg) translateY(-1px)}
.member-menu-panel{position:absolute;top:calc(100% + 9px);right:0;z-index:70;width:240px;padding:8px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px rgba(21,56,69,.16)}
.member-menu-identity{padding:11px 12px 13px;border-bottom:1px solid var(--line);margin-bottom:6px}
.member-menu-identity strong,.member-menu-identity span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-menu-identity strong{color:var(--navy);font-size:.9rem}.member-menu-identity span{color:var(--muted);font-size:.76rem;margin-top:3px}
.member-menu-panel a,.member-menu-panel button{width:100%;display:flex;align-items:center;gap:9px;padding:10px 11px;border:0;border-radius:8px;background:transparent;color:var(--charcoal);font:inherit;font-size:.84rem;text-decoration:none;text-align:left;cursor:pointer}
.member-menu-panel a:hover,.member-menu-panel button:hover{background:var(--soft);color:var(--navy)}
.member-menu-panel form{margin:5px 0 0;padding-top:5px;border-top:1px solid var(--line)}

.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.profile-id-input{display:flex;align-items:center;border:1px solid #aebcbe;border-radius:8px;background:white;overflow:hidden}
.profile-id-input:focus-within{outline:3px solid rgba(8,124,117,.23);outline-offset:2px;border-color:var(--teal)}
.profile-id-input>span{padding:0 0 0 13px;color:var(--muted);font-weight:750}
.profile-id-input input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
.field-success{margin:0;color:#16675f;font-size:.8rem;display:flex;gap:7px;align-items:center}
.field-success::before{content:"✓";font-weight:900}
.access-quiet-form{display:flex!important;justify-content:center;margin-top:20px}

.profile-editor-hero{background:var(--ivory);border-bottom:1px solid var(--line);padding:28px 0 38px}
.profile-cover-preview{height:clamp(190px,25vw,320px);border-radius:16px;background:linear-gradient(135deg,var(--navy),#1d5965);background-position:center;background-size:cover;position:relative;border:1px solid rgba(21,56,69,.12)}
.profile-avatar-shell{position:absolute;left:32px;bottom:-52px;width:126px;height:126px}
.profile-avatar-preview{width:126px;height:126px;border-radius:50%;border:5px solid var(--ivory);background:var(--navy);display:grid;place-items:center;color:white;font-family:var(--display);font-size:2.6rem;font-weight:700;overflow:hidden}
.profile-avatar-preview img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-image-edit{position:absolute;z-index:4;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:white;border:1px solid rgba(21,56,69,.18);box-shadow:0 7px 18px rgba(21,56,69,.18);color:var(--navy);cursor:pointer;transition:transform .18s ease,background .18s ease,color .18s ease}
.profile-image-edit:hover{transform:translateY(-1px);background:var(--teal);color:white}.profile-image-edit:focus-within{outline:3px solid rgba(8,124,117,.3);outline-offset:2px}
.profile-image-edit svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.profile-image-edit--cover{top:16px;right:16px}.profile-image-edit--avatar{right:-5px;bottom:3px;width:38px;height:38px}
.profile-file-input{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.profile-editor-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;padding:72px 14px 0 176px}
.profile-editor-heading h1{font-size:clamp(2.5rem,5vw,4.5rem);margin:.05em 0 .12em}.profile-editor-heading p{margin:0;color:var(--slate)}
.profile-editor-actions{display:flex;gap:10px;flex-wrap:wrap}
.profile-upload-queue{display:flex;gap:12px;flex-wrap:wrap;padding:18px 14px 0 176px}
.profile-upload-item{display:grid;grid-template-columns:44px 18px minmax(0,1fr);align-items:center;gap:10px;min-width:230px;max-width:320px;padding:8px 12px 8px 8px;background:white;border:1px solid var(--line);border-radius:11px;box-shadow:0 4px 13px rgba(21,56,69,.06)}
.profile-upload-thumb{width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--soft);border:1px solid var(--line)}.profile-upload-thumb--cover{border-radius:7px}
.profile-upload-thumb img{width:100%;height:100%;object-fit:cover;display:block}.profile-upload-item strong,.profile-upload-item small{display:block}.profile-upload-item strong{color:var(--navy);font-size:.78rem}.profile-upload-item small{color:var(--muted);font-size:.72rem;margin-top:2px}
.profile-upload-spinner,.button-spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(8,124,117,.24);border-top-color:var(--teal);border-radius:50%;animation:profile-spin .75s linear infinite;opacity:0}
.profile-upload-item.is-loading .profile-upload-spinner{opacity:1}.button-spinner{border-color:rgba(255,255,255,.38);border-top-color:white;opacity:1;margin-right:7px;vertical-align:-2px}
@keyframes profile-spin{to{transform:rotate(360deg)}}
.profile-editor-shell{padding-block:40px 110px}
.profile-form{display:grid;gap:22px}
.profile-section{background:white;border:1px solid var(--line);border-radius:14px;padding:clamp(24px,4vw,38px);display:grid;gap:26px}
.profile-section--visibility{grid-template-columns:minmax(0,1fr) minmax(260px,.65fr);align-items:center;background:var(--soft)}
.profile-section--sensitive{border-left:4px solid var(--amber)}
.profile-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;border-bottom:1px solid var(--line);padding-bottom:22px}
.profile-section h2{font-size:clamp(1.65rem,3vw,2.35rem);margin:.08em 0 .25em}.profile-section p{color:var(--slate)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-form .field{display:grid;gap:7px}.profile-form .field label{font-weight:750;color:var(--navy);font-size:.9rem}
.profile-form input[type="text"],.profile-form input[type="url"],.profile-form input[type="tel"],.profile-form input[type="date"],.profile-form select,.profile-form textarea{width:100%;min-height:48px;border:1px solid #aebcbe;border-radius:8px;background:white;padding:11px 12px;color:var(--charcoal);font:inherit}
.profile-form textarea{resize:vertical;line-height:1.55}.profile-form input:focus,.profile-form select:focus,.profile-form textarea:focus{outline:3px solid rgba(8,124,117,.22);outline-offset:2px;border-color:var(--teal)}
.profile-form small,.optional{color:var(--muted);font-size:.76rem;font-weight:500}
.switch-row,.visibility-toggle,.inline-share{display:flex;align-items:flex-start;gap:11px;color:var(--charcoal);font-size:.84rem}
.switch-row input,.visibility-toggle input,.inline-share input{width:18px;height:18px;accent-color:var(--teal);flex:0 0 auto;margin-top:2px}
.switch-row strong,.switch-row small{display:block}.switch-row strong{color:var(--navy);font-size:.95rem}.switch-row small{margin-top:4px;line-height:1.5}
.visibility-toggle{white-space:nowrap;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fffdf8}
.inline-share{margin-top:4px}.inline-share--section{padding-top:18px;border-top:1px solid var(--line);font-weight:700;color:var(--navy)}
.health-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.health-options label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fffdf8;font-size:.84rem}.health-options input{width:18px;height:18px;accent-color:var(--teal);flex:0 0 auto;margin-top:1px}
.health-storage-note{margin:0;padding:13px 15px;border-left:3px solid var(--teal);background:var(--soft);color:var(--navy)!important;font-size:.8rem;line-height:1.55}
.profile-save-bar{position:sticky;bottom:14px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 12px 35px rgba(21,56,69,.14);backdrop-filter:blur(10px)}
.profile-save-bar strong,.profile-save-bar span{display:block}.profile-save-bar strong{color:var(--navy);font-size:.86rem}.profile-save-bar span{color:var(--muted);font-size:.76rem;margin-top:3px}
.profile-save-bar button:disabled{cursor:wait;opacity:.78}

.member-profile-hero{background:var(--ivory);border-bottom:1px solid var(--line)}
.member-profile-cover{height:clamp(210px,29vw,390px);background:linear-gradient(135deg,var(--navy),#1d5965);background-position:center;background-size:cover}
.member-profile-intro{display:flex;gap:28px;align-items:flex-end;margin-top:-72px;padding-bottom:34px}
.member-profile-avatar{width:150px;height:150px;border-radius:50%;border:6px solid var(--ivory);background:var(--navy);display:grid;place-items:center;overflow:hidden;color:white;font-family:var(--display);font-size:3rem;font-weight:700;flex:0 0 auto}
.member-profile-avatar img{width:100%;height:100%;object-fit:cover}.member-profile-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;flex:1;padding-bottom:8px}.member-profile-id{color:var(--teal)!important;font-weight:800;margin:0}.member-profile-heading h1{font-size:clamp(2.5rem,5vw,4.7rem);margin:.04em 0 .08em}.member-profile-role{color:var(--slate);margin:0}
.member-profile-shell{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:70px;padding-block:60px 110px}.member-profile-main{display:grid;gap:56px}.member-profile-section{border-bottom:1px solid var(--line);padding-bottom:48px}.member-profile-section h2,.member-profile-aside h2{font-size:clamp(1.55rem,2.5vw,2.2rem)}.profile-bio{font-size:1.04rem;line-height:1.8;max-width:72ch}
.profile-facts{display:grid;margin:0}.profile-facts>div{display:grid;grid-template-columns:210px 1fr;gap:24px;padding:14px 0;border-bottom:1px solid var(--line)}.profile-facts dt{color:var(--muted);font-size:.84rem}.profile-facts dd{margin:0;color:var(--navy);font-weight:700}.profile-facts--compact>div{grid-template-columns:1fr;gap:4px}.profile-facts--compact dd{font-size:.92rem}
.affiliation-summary{display:grid;gap:5px;padding:20px;border-left:3px solid var(--teal);background:var(--soft)}.affiliation-summary strong{color:var(--navy)}.affiliation-summary span{color:var(--slate);font-size:.82rem}
.profile-badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.profile-badge-grid article{display:flex;gap:13px;padding:17px;border:1px solid var(--line);border-radius:10px}.profile-badge-grid article>span{color:var(--teal);font-size:1.3rem}.profile-badge-grid strong{color:var(--navy)}.profile-badge-grid p{font-size:.8rem;color:var(--slate);margin:4px 0 0}
.profile-list{border-top:1px solid var(--line)}.profile-list>a,.profile-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.profile-list strong,.profile-list span{display:block}.profile-list strong{color:var(--navy)}.profile-list div span{color:var(--muted);font-size:.78rem;margin-top:3px}.profile-list>a:hover strong{color:var(--teal)}
.member-profile-aside{display:grid;align-content:start;gap:18px}.member-profile-aside>section{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fffdf8}.member-profile-aside h2{font-size:1.3rem}.profile-health-list{display:grid;gap:8px;padding-left:20px;color:var(--slate);font-size:.84rem}.profile-sensitive-note,.profile-disclaimer{color:var(--muted);font-size:.76rem;line-height:1.5}.profile-links{display:grid}.profile-links a{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:.86rem;text-decoration:none}.profile-disclaimer{padding:0 6px}

.cropper-open{overflow:hidden}.cropper-modal{position:fixed;inset:0;z-index:200}.cropper-backdrop{position:absolute;inset:0;background:rgba(10,35,42,.72);backdrop-filter:blur(3px)}
.cropper-dialog{position:relative;width:min(calc(100% - 28px),700px);max-height:calc(100dvh - 32px);overflow:auto;margin:16px auto;padding:22px;background:white;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.cropper-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:14px}.cropper-heading h2{display:flex;align-items:center;gap:8px;font-family:var(--text);font-size:1rem;line-height:1.3;margin:0;color:var(--navy);font-weight:800}.cropper-heading h2 span:first-child{letter-spacing:.1em;text-transform:uppercase;color:var(--teal);font-size:.78rem}.cropper-title-separator{color:var(--muted);font-weight:500}
.cropper-close{width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--soft);color:var(--navy);cursor:pointer}.cropper-close:hover{background:var(--teal);color:white}.cropper-close:focus-visible{outline:3px solid rgba(8,124,117,.3);outline-offset:2px}.cropper-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cropper-stage{display:grid;place-items:center;padding:16px;background:#102f39;border-radius:12px;overflow:auto}.crop-canvas{max-width:100%;max-height:56dvh;height:auto;cursor:grab;touch-action:none}.crop-canvas:active{cursor:grabbing}.crop-canvas--avatar{border-radius:50%}.cropper-controls{display:grid;grid-template-columns:auto 1fr;gap:10px 18px;align-items:center;padding:18px 2px}.cropper-controls p{grid-column:1/-1;color:var(--muted);font-size:.8rem;margin:0}.cropper-controls input{width:100%;accent-color:var(--teal)}.cropper-actions{display:flex;justify-content:flex-end;gap:10px}

@media(max-width:900px){.profile-section--visibility,.member-profile-shell{grid-template-columns:1fr}.form-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}.member-profile-shell{gap:40px}.member-profile-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-editor-heading{padding-left:0;align-items:flex-start;flex-direction:column}.profile-upload-queue{padding-left:0}.profile-avatar-shell{left:22px}}
@media(max-width:650px){.member-menu-name{display:none}.member-menu-panel{position:fixed;left:12px;right:12px;top:78px;width:auto}.form-grid,.form-grid--three,.health-options,.profile-badge-grid,.member-profile-aside{grid-template-columns:1fr}.profile-section-heading{flex-direction:column}.visibility-toggle{white-space:normal}.profile-save-bar{align-items:stretch;flex-direction:column}.profile-save-bar .button{width:100%;justify-content:center}.member-profile-intro{align-items:flex-start;flex-direction:column;margin-top:-58px}.member-profile-avatar{width:116px;height:116px}.member-profile-heading{width:100%;align-items:flex-start;flex-direction:column}.profile-facts>div{grid-template-columns:1fr;gap:4px}.profile-editor-actions{width:100%}.profile-editor-actions .button{flex:1;justify-content:center}.profile-upload-queue{display:grid}.profile-upload-item{max-width:none;min-width:0}.cropper-dialog{padding:16px}.cropper-stage{padding:8px}.cropper-actions .button{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){.profile-upload-spinner,.button-spinner{animation:none}.profile-image-edit,.member-menu-arrow{transition:none}}
