#accountDialog{width:min(640px,calc(100vw - 24px));max-height:90dvh;background:#fffdf8}
.member-profile-heading{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center;margin:20px 0}
.member-avatar{display:inline-flex;width:72px;height:72px;border-radius:50%;align-items:center;justify-content:center;object-fit:cover;flex:none;background:#dce6d3;color:#314c38;font:650 24px system-ui}
.avatar-clay{background:#f0ddce;color:#81543d}.avatar-blue{background:#dce9ec;color:#355b6c}.avatar-gold{background:#f0e6c5;color:#735c25}.avatar-plum{background:#e6dfe9;color:#684d72}
#memberOverview .member-kicker{font-size:10px;letter-spacing:1.4px;margin:0 0 6px;color:#65745c}
#memberOverview h3{margin:0;font-size:22px;line-height:1.3;overflow-wrap:anywhere}
#memberOverview .member-profile-heading p:last-child{margin:8px 0 0;font-size:12px;line-height:1.6}
#memberOverview>[data-profile-edit]{min-height:44px}
.member-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 12px;padding:16px 8px;border-radius:12px;background:#eef2e7}
.member-stats div{text-align:center}.member-stats strong{display:block;font-size:24px}.member-stats span{display:block;font-size:11px;margin-top:5px}
#memberOverview .member-thanks{font-size:12px;line-height:1.6;color:#62715b}
.member-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.member-shortcuts button{min-height:44px;font-size:12px;white-space:normal}
.member-login-settings{border-top:1px solid #d9e0d2;padding-top:8px}
#profileEditor,.member-reviews-dialog{width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #c8d5bd;border-radius:16px;padding:24px;background:#fffdf8;color:#294335}
#profileEditor::backdrop,.member-reviews-dialog::backdrop{background:#203b3266}
.member-close{float:right;min-height:44px}.member-reviews-dialog h2,#profileEditor h2{font-size:26px;clear:both;padding-top:12px}
#profileEditor p,.member-reviews-dialog p{font-size:13px;line-height:1.6}
#profileEditor label{display:block;margin:16px 0;font-size:13px;font-weight:600}
#profileEditor label:not(.profile-publish) input:not([type=file]),#profileEditor select{display:block;width:100%;min-height:44px;padding:10px;margin-top:6px;border:1px solid #b7c7aa;border-radius:8px;background:white;color:inherit;font:inherit}
#profileEditor .profile-publish{display:flex;gap:10px;font-size:12px;font-weight:500;line-height:1.6;padding:12px;background:#eef2e7;border-radius:8px}
.profile-publish input{width:20px;height:20px;flex:none;accent-color:#34573d}
.profile-avatar-preview{display:flex;justify-content:center;margin:16px 0}.profile-avatar-preview .member-avatar{width:96px;height:96px;font-size:32px}
#profileEditor .profile-upload input{display:block;margin-top:10px;max-width:100%;min-height:44px;font:inherit;font-weight:400}
.profile-save-status{font-weight:600}.member-reviews-dialog article{border-top:1px solid #dbe3d4;padding:12px 0}
.review-member{display:flex;gap:10px;align-items:center;margin-bottom:12px}.review-member .member-avatar{width:40px;height:40px;font-size:14px}.review-member strong{font-size:14px;overflow-wrap:anywhere}.review-member-about{font-size:12px;margin:8px 0}.review-member-about summary{min-height:44px;padding:12px 0;cursor:pointer}
#memberOverview button:focus-visible,#profileEditor :is(input,select,button):focus-visible{outline:3px solid #a64e29;outline-offset:3px}
@media(max-width:700px){#accountDialog{padding:18px}.member-profile-heading{grid-template-columns:60px minmax(0,1fr);gap:12px}.member-profile-heading .member-avatar{width:60px;height:60px;font-size:20px}#memberOverview h3{font-size:20px}#accountDialog .account-actions{gap:8px}#accountDialog .account-actions>*{padding:10px;font-size:12px}#profileEditor,.member-reviews-dialog{padding:18px}.member-stats{padding:12px 4px}.member-stats span{font-size:10px}}
.review-member-link{display:inline-flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;color:inherit;padding:4px;min-height:48px;max-width:100%;cursor:pointer}.review-member-link:hover strong{text-decoration:underline}.review-member-link .member-avatar{flex:none}
.review-member-link:focus-visible,.author-profile-dialog button:focus-visible,.author-photo-dialog button:focus-visible{outline:3px solid #a64e29;outline-offset:3px}
.author-profile-dialog{width:min(720px,calc(100vw - 24px));max-width:none;max-height:90dvh;padding:0;border:1px solid #b9c8b1;border-radius:20px;background:#fffdf8;color:#263e34;overflow-y:auto;overscroll-behavior:contain}
.author-profile-dialog::backdrop,.author-photo-dialog::backdrop{background:rgb(28 49 39 / 48%)}
.author-profile-main{padding:24px}.author-profile-heading{display:flex;gap:16px;align-items:center}.author-profile-heading>div{min-width:0}.author-profile-heading h2{font-size:24px;line-height:1.25;margin:6px 0;overflow-wrap:anywhere}.author-profile-heading p{margin:4px 0;font-size:13px}.author-profile-heading .author-profile-kicker{font-size:10px;letter-spacing:1.4px;color:#62715b}.author-about{border-top:1px solid #d9e0d2}.author-about summary{padding:14px 0;min-height:44px;cursor:pointer}.author-about p{overflow-wrap:anywhere}.author-badges{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.author-content h3{font-size:19px;margin:20px 0 14px}.author-photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.author-photo-grid figure{margin:0;min-width:0}.author-photo-grid button{display:block;width:100%;padding:0;border:1px solid #d9e0d2;border-radius:12px;overflow:hidden;background:#eef2e7;cursor:zoom-in}.author-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}.author-photo-grid figcaption{font-size:12px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}
.author-review{border-top:1px solid #d9e0d2;padding:16px 0}.author-review h4{font-size:16px;margin:0 0 8px;overflow-wrap:anywhere}.author-review p{overflow-wrap:anywhere}.author-review-rating{font-size:13px;color:#53674d}.author-review-photo{padding:0;border:0;border-radius:8px;overflow:hidden;cursor:zoom-in}.author-review-photo img{display:block;object-fit:cover;width:120px;height:120px}.author-review>button.secondary{min-height:44px}
.author-profile-controls{position:sticky;bottom:0;background:#fffdf8;border-top:1px solid #d9e0d2;padding:12px 24px calc(12px + env(safe-area-inset-bottom));display:flex;gap:12px;align-items:center;justify-content:space-between;z-index:1}.author-profile-controls [role=group]{display:flex;gap:8px}.author-profile-controls button{min-height:44px;white-space:normal;font-size:12px;padding:10px 12px}.author-profile-controls [aria-pressed=true]{background:#263e34;color:#fff;border-color:#263e34}
.author-photo-dialog{max-width:calc(100vw - 24px);width:min(880px,calc(100vw - 24px));max-height:92dvh;padding:16px;background:#fffdf8;border:1px solid #b9c8b1;border-radius:16px;overflow:auto}.author-photo-dialog>button{display:block;margin:0 0 12px auto;min-height:44px}.author-photo-dialog>img{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;margin:auto;object-fit:contain}.author-photo-dialog p{font-size:13px;overflow-wrap:anywhere}
@media(max-width:700px){.author-profile-main{padding:18px}.author-profile-heading{gap:12px}.author-profile-heading .member-avatar{width:60px;height:60px;font-size:20px}.author-profile-heading h2{font-size:21px}.author-profile-controls{padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:6px}.author-profile-controls button{padding:10px 8px;font-size:11px}.author-profile-controls [role=group]{gap:6px}.author-photo-grid{gap:12px}}
.author-photo-grid>figure:only-child{grid-column:1/-1}.author-photo-grid>figure:only-child img{object-fit:contain;max-height:420px;background:#fff}

.member-profile-actions{display:flex;gap:8px;flex-wrap:wrap}.member-profile-actions button{min-height:44px}.author-preview-note{margin:0 0 16px;padding:12px;border-radius:8px;background:#eef2e7;font-size:12px;line-height:1.6}

@media(max-width:700px){.author-profile-controls.is-own-preview{flex-wrap:wrap;gap:8px}.author-profile-controls.is-own-preview [role=group]{flex-basis:100%}.author-profile-controls.is-own-preview [role=group] button{flex:1}.author-profile-controls.is-own-preview>[data-author-edit],.author-profile-controls.is-own-preview>[data-author-close]{flex:1;font-size:12px}}
