/* The overview fits the original workspace. Box pixels and overlay geometry stay proportional. */
body.profile-fit .community-page{height:calc(100dvh - 72px);min-height:0;overflow:hidden}
body.profile-fit.embedded .community-page{height:100dvh}
body.profile-fit #public-profile{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:12px}
.profile-fit .profile-toolbar{grid-column:1/-1;grid-row:1}
.profile-fit .profile-summary{grid-column:1;grid-row:2;min-width:0;align-self:start}
.profile-fit .profile-summary .profile-top{flex-wrap:wrap}
.profile-fit .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0}
.profile-fit .profile-stat:nth-child(2){border:0}
.profile-fit .profile-forecast{flex-direction:column;align-items:start}
.profile-fit .profile-box-panel{grid-column:2;grid-row:2/4;min-height:0;min-width:0;display:flex;flex-direction:column;padding:12px}
.profile-fit .profile-box-panel h2{flex:none}
.profile-fit .box-view{flex:1;min-height:0;display:flex;flex-direction:column}
.profile-fit .box-tabs{flex:none;flex-wrap:wrap;gap:5px;margin-bottom:6px}
.profile-fit .box-tabs button{font-size:.75rem;padding:5px 8px;min-height:32px}
.box-art-stage{flex:1;min-height:0;container-type:size}
.box-art-stage>div{height:100%;display:grid;place-items:center;cursor:zoom-in}
.box-art-stage>div:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.box-art-stage .approved-digital-box{width:min(100cqw,50cqh);height:auto}
.box-art-stage .box-photo{width:100%;height:100%;max-height:100%;object-fit:contain}
.media-panel .box-enlarge-hint{flex:none;text-align:center;font-size:.7rem;margin:6px 0 0;color:var(--gold)}
.profile-fit .profile-status{grid-column:1/-1;margin:0}
.profile-bio{grid-column:1;grid-row:3;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:16px;border:1px solid #736349;background:#10181d}
.profile-bio h2{flex:none;font-size:1.1rem;margin:0 0 10px}
.profile-bio p{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;white-space:pre-wrap;overflow-wrap:anywhere;font:400 .85rem/1.5 Arial,sans-serif;margin:0 0 12px;color:#d3d3cf}
.profile-bio button{flex:none;align-self:start}
.profile-bio button,.profile-sheet button{border:1px solid #8e795b;border-radius:3px;background:#141c21;color:var(--gold);padding:7px 12px;font:700 .85rem 'Barlow Condensed',Arial,sans-serif;cursor:pointer}
.profile-sheet{width:min(900px,calc(100% - 24px));max-height:calc(100% - 24px);padding:0 16px 16px;background:#10181d;border:1px solid #9b825c;border-top:3px solid var(--garnet);color:var(--cream);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--garnet) #15191c}
.profile-sheet::backdrop{background:#000c}
.profile-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:3;background:#10181d;padding:12px 0;border-bottom:1px solid #ffffff25;margin-bottom:12px}
.profile-sheet>header h2{font-size:1.1rem;margin:0}
.profile-sheet .approved-digital-box{width:100%;height:auto}
.profile-sheet .box-photo{max-height:none;height:auto;width:100%}
.profile-sheet .box-display-settings{margin:0;padding-top:0;border-top:0}
.profile-sheet .profile-games{display:block}
.bio-form label{display:block;margin-bottom:8px;font-size:.8rem}
.bio-form textarea{width:100%;min-height:140px;resize:vertical;max-height:35dvh;padding:10px;background:#080d10;color:var(--cream);border:1px solid #646f73;font:400 14px/1.5 Arial,sans-serif}
.bio-form p{font-size:.8rem;color:#c4c9c9}.bio-form .bio-error{color:#ffd0d5}
@media(max-width:600px){
 body.profile-fit .community-page{gap:8px}
 body.profile-fit #public-profile{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:auto auto minmax(0,1fr);gap:8px}
 .profile-fit .profile-summary{grid-column:1/-1;grid-row:2}
 .profile-fit .profile-summary .profile-top{padding:8px 10px;flex-wrap:nowrap}
 .profile-fit .profile-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:8px 3px}
 .profile-fit .profile-stat:nth-child(2){border-right:1px solid var(--line)}
 .profile-fit .profile-forecast{padding:7px 10px;gap:2px}
 .profile-fit .profile-box-panel{grid-column:2;grid-row:3;padding:8px}
 .profile-fit .profile-box-panel h2{font-size:.9rem;margin-bottom:6px}
 .profile-fit .box-tabs{gap:4px}
 .profile-fit .box-tabs button{font-size:.64rem;min-height:27px;padding:4px}
 .profile-bio{grid-column:1;grid-row:3;padding:10px}
 .profile-bio h2{font-size:.92rem;margin-bottom:8px}
 .profile-bio p{font-size:.68rem;line-height:1.4}
 .profile-bio button{font-size:.72rem;padding:6px 8px}
 .media-panel .box-enlarge-hint{font-size:.6rem}
 .profile-sheet{padding:0 10px 10px}
}
