/* Compact social profile: identity left, five people right; stacked on phones. */
.bench-caption{display:block;color:var(--gold);font-size:10px;line-height:1.45;margin-top:7px;overflow-wrap:anywhere;max-width:100%}
.bench-flex-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bench-spot-editor{border:1px solid var(--line);padding:14px;min-width:0;margin:0}
.bench-spot-editor legend{color:var(--gold);font-weight:700;font-size:14px;padding:0 6px}
.bench-edit-preview{width:72px;height:72px;object-fit:contain;border:1px solid #785e40;margin-bottom:12px}
.bench-spot-editor input[type=file]{max-width:100%;font-size:12px;padding:10px 4px}
.bench-photo-only .bench-person-photo img{object-fit:contain;background:var(--deep)}
.bench-photo-only:before,.empty-person:before{content:'\00a0';font-size:11px;line-height:1.35;margin-bottom:7px}
@media(max-width:650px){.bench-photo-only:before,.empty-person:before{font-size:10px}}
@media(max-width:650px){.bench-flex-editor{grid-template-columns:minmax(0,1fr)}.bench-spot-editor input,.bench-spot-editor select{font-size:16px}}
.profile-top-grid{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(360px,1.15fr);gap:22px;align-items:start;margin-bottom:22px}
.profile-top-grid>.panel{margin-bottom:0;min-width:0}
.compact-profile .profile-banner{height:44px}
.compact-profile .profile-banner:after{font-size:33px;top:-2px;opacity:.65}
.compact-profile .profile-body{padding:20px}
.profile-identity-row{display:flex;gap:15px;align-items:center;min-width:0}
.compact-profile .profile-identity-row .avatar{margin:0;width:76px;height:76px;border-radius:14px;font-size:26px}
.compact-profile .profile-name{display:block;min-width:0;margin:0}
.compact-profile .profile-name h1{font-size:24px;line-height:1.2;overflow-wrap:anywhere}
.compact-profile .profile-name .handle{font-size:12px;overflow-wrap:anywhere}
.compact-profile .status{font-size:12px;overflow-wrap:anywhere}
.compact-profile .bio{margin-bottom:0;font-size:13px}
.people-bench-panel{padding:20px}
.people-bench-panel .panel-title{align-items:start;gap:10px;margin-bottom:20px}
.people-bench-panel .eyebrow{color:var(--gold);font-size:9px;display:block;margin-bottom:8px}
.people-bench-panel h2{font-size:18px;overflow-wrap:anywhere}
.people-bench-panel .panel-title button{font-size:11px;flex-shrink:0;padding:7px 8px}
.people-bench{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.bench-person{display:flex;flex-direction:column;align-items:center;text-decoration:none;min-width:0;text-align:center;border-radius:9px}
.bench-person-photo{display:grid;place-items:center;aspect-ratio:1;width:100%;max-width:92px;overflow:hidden;border-radius:9px;border:1px solid #997647;background:linear-gradient(145deg,#382044,#453322);color:var(--bone);font-size:23px;font-weight:750}
.bench-person-photo img{width:100%;height:100%;object-fit:contain}
a.bench-person:hover .bench-person-photo{border-color:var(--gold);box-shadow:0 0 0 2px #e5ba7325}
.bench-person strong{font-size:11px;line-height:1.35;margin-top:9px;max-width:100%;overflow-wrap:anywhere}
.bench-person small{font-size:9px;line-height:1.4;color:var(--muted);margin-top:3px;max-width:100%;overflow-wrap:anywhere}
.empty-person .bench-person-photo{background:#1c1423;border:1px dashed #6c5278;color:#b5a4bc;font:18px ui-monospace,monospace}
.empty-person small{margin-top:9px}
.people-bench-panel>.hint{margin:18px 0 0;font-size:11px}
.bench-editor-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#benchEditor{scroll-margin-top:100px}
#benchEditor .panel-title .hint{margin-bottom:0}
@media(max-width:1000px){.profile-top-grid{grid-template-columns:minmax(0,1fr)}.bench-person-photo{max-width:100px}.bench-editor-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.profile-top-grid{gap:16px}.compact-profile .profile-body{padding:18px}.compact-profile .profile-name h1{font-size:23px}.compact-profile .profile-identity-row .avatar{width:68px;height:68px}.people-bench-panel{padding:18px 14px}.people-bench{gap:7px}.people-bench-panel h2{font-size:17px}.bench-person-photo{font-size:20px}.bench-person strong{font-size:10px}.bench-person small{font-size:8px}.bench-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bench-editor-fields input{font-size:16px}}

/* Classic personal-page structure, using the existing MCS palette and font. */
.compact-profile{max-width:1050px;margin:0 auto}
.compact-profile .page-heading{margin-bottom:16px;border-bottom:1px solid #755b3d;padding-bottom:10px}
.compact-profile .page-heading button{font-size:12px;padding:7px 10px;border-radius:2px}
.profile-top-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"identity bench" "about about";gap:22px;align-items:stretch}
.compact-profile .panel{border-radius:2px;border-color:#785e40;box-shadow:none}
.profile-identity-panel{grid-area:identity}
.profile-about{grid-area:about;padding:0}
.profile-bench-wrap{grid-area:bench;min-width:0;scroll-margin-top:90px}
.profile-bench-wrap .panel{margin-bottom:0;height:100%}
.compact-profile .profile-body{padding:16px}
.compact-profile .profile-name h1{font-size:25px;letter-spacing:-.5px;margin-bottom:5px}
.compact-profile .profile-name{margin-bottom:18px}
.compact-profile .profile-identity-row{align-items:flex-start;gap:13px}
.compact-profile .profile-identity-row .avatar{width:110px;height:128px;border:1px solid #ab8853;border-radius:0;box-shadow:none;font-size:32px}
.profile-intro{min-width:0}
.compact-profile .profile-intro .status{display:block;background:none;margin:0 0 12px;padding:0;font-size:12px;line-height:1.55;color:var(--bone)}
.profile-intro .hint{font-size:11px}
.profile-local-links{font-size:11px;text-align:center;margin-top:14px;line-height:1.8;color:var(--gold)}
.profile-local-links a{text-underline-offset:3px}
.profile-details{border-top:1px solid #785e40}
.profile-details h2{font-size:13px;margin:0;padding:9px 12px;background:#39283f;color:#f0d5a4;letter-spacing:0}
.profile-details dl{display:grid;grid-template-columns:85px minmax(0,1fr);gap:3px;margin:5px;font-size:11px;line-height:1.6}
.profile-details dt{background:#39283f;color:#ead3af;font-weight:700;padding:8px}
.profile-details dd{background:#241a2c;padding:8px;margin:0;overflow-wrap:anywhere}
.compact-profile .panel-title{background:#493521;color:#f3d7a5;padding:9px 12px;margin:0;border-bottom:1px solid #785e40;gap:8px}
.compact-profile .panel-title h2{font-size:14px;letter-spacing:0}
.profile-about-body{padding:15px}
.profile-about-body h3{font-size:13px;color:var(--gold);margin-bottom:6px}
.compact-profile .profile-about .bio{margin:0;font-size:12px;line-height:1.7}
.people-bench-panel{padding:0}
.people-bench-panel .eyebrow{display:none}
.people-bench-panel .panel-title{align-items:center}
.people-bench-panel .panel-title button{padding:3px 0;font-size:10px;color:#f3d7a5;border-radius:0;text-decoration:underline}
.people-bench{padding:15px 12px 0;gap:10px;align-items:start}
.bench-person{border-radius:0}
.bench-person strong{order:-1;color:var(--gold);margin:0 0 7px;font-size:11px}
.bench-person-photo{border-radius:0;max-width:96px;font-size:23px;background:#302138}
.people-bench-panel>.hint{margin:12px;padding:0;font-size:10px}
.compact-profile>section.panel{padding:0}
.compact-profile>section.panel>.panel-title{margin-bottom:14px}
.compact-profile>section.panel>h3{margin:12px 15px;font-size:13px;color:var(--gold)}
.compact-profile>section.panel>.card-grid{padding:0 15px 15px;grid-template-columns:repeat(auto-fill,minmax(125px,160px));gap:12px}
.compact-profile>section.panel>.empty{margin:15px;border-radius:0;padding:18px}
.compact-profile .card-tile{border-radius:2px}
#profile-collections{scroll-margin-top:90px}
.chat-connection{font:9px ui-monospace,monospace;flex-shrink:0;color:var(--gold)}
.chat-body{padding:0 15px 12px}
.chat-body>.hint{font-size:11px;margin-bottom:12px}
.chat-messages{height:260px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);background:#130d1a;padding:10px;scrollbar-color:#73527f #130d1a}
.chat-message{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:1px dotted #493653}
.chat-message:last-child{border-bottom:0}
.chat-avatar{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;overflow:hidden;border:1px solid #9b794b;background:#35233f;color:var(--gold);font-size:11px;text-decoration:none}
.chat-avatar img{width:100%;height:100%;object-fit:cover}
.chat-message-content{flex:1;min-width:0}
.chat-message-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px}
.chat-message-heading>a{color:var(--gold);font-weight:700;overflow-wrap:anywhere}
.chat-message-heading time{font-size:9px;color:var(--muted)}
.chat-message-heading button{font-size:10px;padding:2px 4px;margin-left:auto;border-radius:0}
.chat-message-content p{margin:5px 0 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.chat-empty{margin:12px}
.chat-body form{margin-top:14px}
.chat-body label{margin-bottom:8px}
.chat-body textarea{min-height:65px;border-radius:2px}
.chat-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-compose-footer button{border-radius:2px;font-size:12px}
.chat-compose-footer small{font-size:10px}
.chat-error:empty{display:none}
@media(max-width:1100px){.profile-top-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.compact-profile .profile-identity-row .avatar{width:90px;height:110px}}
@media(max-width:850px){.profile-top-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "bench" "about"}.compact-profile .profile-identity-row .avatar{width:110px;height:128px}}
@media(max-width:650px){.compact-profile .profile-body{padding:15px}.compact-profile .profile-name h1{font-size:24px}.people-bench{gap:7px;padding:14px 10px 0}.bench-person strong{font-size:10px}.compact-profile>section.panel>.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px}.compact-profile .panel-title h2{font-size:13px}.compact-profile .page-heading{gap:8px}.compact-profile .page-heading .eyebrow{font-size:10px}}
@media(max-width:650px){#profile-chat .panel-title{flex-wrap:wrap}.chat-body{padding:0 12px 12px}.chat-body textarea{font-size:16px}.chat-messages{height:240px}.chat-message-heading button{min-height:32px}.chat-compose-footer button{min-height:44px}}

/* Match the row to the owner’s selected number of visible Bench spots. */
.people-bench.bench-size-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.people-bench.bench-size-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.people-bench.bench-size-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.people-bench.bench-size-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.people-bench.bench-size-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.bench-spot-editor[hidden]{display:none}

/* Keep the existing profile frame while showing the complete uploaded photo. */
.compact-profile .profile-identity-row .avatar img{object-fit:contain}

/* Bench photos show their natural portrait/landscape proportions, not square crops. */
.bench-person-photo.bench-photo-natural{display:block;aspect-ratio:auto;overflow:hidden}
.bench-person-photo.bench-photo-natural img{display:block;width:100%;height:auto;object-fit:contain}
.bench-edit-preview{width:auto;height:auto;max-width:min(100%,160px);max-height:160px}

/* Recent member Home feed posts directly beneath blurbs. */
.compact-profile>.profile-feed-panel{padding:0;min-width:0}
.compact-profile>.profile-feed-panel>.panel-title{margin-bottom:0}
.profile-feed-panel #profileFeedPosts{padding:0 16px;min-width:0}
.profile-feed-panel .feed-post{padding:14px 0;overflow-wrap:anywhere}
.profile-feed-panel .feed-post:first-child{border-top:0}
.profile-feed-panel .feed-post>p{margin:9px 0;font-size:13px;line-height:1.55;white-space:pre-wrap}
.profile-feed-panel .social-item-heading{gap:8px}
.profile-feed-panel .social-item-heading a{text-decoration:none}
.profile-feed-avatar{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;overflow:hidden;border:1px solid #967644;color:var(--gold);font-size:13px}
.profile-feed-avatar img{width:100%;height:100%;object-fit:cover}
.profile-feed-paging{padding:0 16px 14px}
.profile-feed-paging button{min-height:44px}
.profile-feed-panel #profileFeedPosts>.profile-feed-empty,.profile-feed-panel #profileFeedPosts>.error{padding:14px 0;margin:0}
@media(max-width:650px){.profile-feed-panel #profileFeedPosts{padding:0 12px}.profile-feed-paging{padding:0 12px 12px}.profile-feed-panel .feed-post{padding:12px 0}}
