
/* Responsive layout review: retain the city palette and existing feed */
.feed-tabs button{white-space:nowrap}
.search-area{position:relative;margin-bottom:23px;flex-shrink:0}
.search-area .search-box{margin-bottom:0}
.left-rail>*{flex-shrink:0}
#locals{flex:0 0 auto;max-height:none;overflow:visible}
.left-bottom{padding-top:20px}
.account-button>span:nth-child(2),.local-person>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.guest-avatar,.local-person img{flex-shrink:0}
.clip-author{min-width:0;flex-wrap:wrap;row-gap:6px}
.clip-profile{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;padding:0;text-align:left;color:inherit;border-radius:8px}
.clip-profile:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}
.clip-profile img{flex-shrink:0}.clip-profile strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clip-caption p{overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.clip-tags{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.comment-context>span{min-width:0;overflow-wrap:anywhere}.comment-context img{flex-shrink:0}
.dialog-header,.comment-context,.comment-compose{flex-shrink:0}
.app-dialog,.app-dialog.profile-dialog{padding:0!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:hidden}
#dialogContent{padding:50px 28px 28px;max-height:calc(100dvh - 34px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--raised) transparent}
.app-dialog .close-dialog{position:absolute;z-index:3;top:10px;right:12px;background:var(--surface);width:34px;height:34px;box-shadow:0 0 0 5px var(--surface)}
.app-dialog .close-dialog:hover{background:var(--raised)}
#dialogContent h2,#dialogContent h3,#dialogContent p,.account-status{overflow-wrap:anywhere}
#dialogContent>.modal-kicker{display:block;padding-right:12px}
.app-dialog input,.app-dialog textarea,.app-dialog select{min-width:0;max-width:100%}
.app-dialog .studio-form input,.app-dialog .studio-form textarea,.app-dialog .studio-form select{margin:0;font-size:16px}
.app-dialog label{display:block}
.app-dialog input[type=file]{font-size:13px;overflow:hidden}
button:disabled{cursor:not-allowed}
.social-options button{min-width:0}.wallet-options button .provider-monogram{flex-shrink:0}
.profile-cover{height:100px}.profile-heading{display:grid;grid-template-columns:90px minmax(0,1fr) auto;align-items:end;gap:16px;padding:0 10px;margin-top:-22px}
.profile-avatar{display:block;position:relative;width:90px;height:90px;aspect-ratio:1;overflow:hidden;min-height:0;text-align:center;line-height:78px}
.profile-avatar img{display:block;width:100%;height:100%;max-width:100%;min-height:0;object-fit:cover;object-position:center 25%}
.profile-heading>div:nth-child(2){min-width:0;padding-top:28px}
.profile-heading h2{line-height:1.08;margin:0 0 5px!important;overflow-wrap:anywhere}
.profile-heading span{display:block;overflow-wrap:anywhere}
.profile-heading .profile-edit,.app-dialog .profile-heading>.solid-button{width:auto;min-width:100px;margin:0 0 3px;padding:10px 18px;white-space:nowrap;align-self:end;font-size:16px}
.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere}
.profile-counts{flex-wrap:wrap;gap:10px 24px}.profile-counts>span{white-space:nowrap}
.profile-tabs{min-width:0;scrollbar-width:thin}.profile-tabs button{flex:1 0 auto;font-family:'Barlow Condensed',sans-serif;font-size:16px;padding:12px 14px}
.profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-grid button{min-width:0;isolation:isolate}.profile-grid img{position:absolute;inset:0;display:block}.profile-grid span{overflow-wrap:anywhere;line-height:1.3}
.profile-footer{flex-wrap:wrap;justify-content:flex-start;gap:4px 10px}.profile-footer button:last-child{margin-left:auto}
.character-list article>div,.generation-status>div{min-width:0;overflow-wrap:anywhere}.character-dossier{overflow-wrap:anywhere}
.studio-steps button{min-width:0}.reward-prizes,.reward-tiers{grid-template-columns:repeat(3,minmax(0,1fr))}.reward-prizes article,.reward-tiers article{min-width:0;overflow-wrap:anywhere}
.reward-balance strong{font-variant-numeric:tabular-nums;font-size:clamp(30px,5vw,42px);overflow-wrap:anywhere}
.reward-leaders button{min-width:0;flex-wrap:wrap}.reward-leaders button>span{min-width:0;overflow-wrap:anywhere}
.people-results{position:absolute;inset:calc(100% + 8px) 0 auto;margin:0;max-height:min(360px,50dvh)}
.people-results button>span{min-width:0;overflow-wrap:anywhere}.people-results img,.search-avatar{flex:0 0 40px;height:40px}
.mobile-search-box{position:relative;z-index:6;flex-shrink:0}.mobile-search-box .people-results{left:12px;right:12px;top:calc(100% - 4px)}
@media(min-width:761px) and (max-width:1000px){
 .app-shell{grid-template-columns:64px minmax(0,1fr);padding-right:22px;gap:20px}.right-rail{display:none}.left-rail{overflow-y:auto;overflow-x:hidden}.search-area{display:none}
 .feed-header{justify-content:space-between;gap:16px}.mobile-search{display:grid;flex-shrink:0}.mobile-search-box:not([hidden]){display:block;padding:4px 0 12px}.mobile-search-box input{width:100%;padding:12px 16px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);font:inherit}
 .comments-dialog{right:20px}.nav-item{min-height:48px}.upload-button{display:flex;font-size:0;padding:12px;width:44px;margin:18px auto 0}.upload-button svg{width:20px;height:20px}.left-bottom{margin-top:24px}
}
@media(max-width:760px){
 .feed-header{gap:6px;padding:0 10px}.mobile-logo{flex:none}.feed-tabs{min-width:0}.feed-tabs button{font-size:15px;padding:8px 10px}.mobile-search{flex-shrink:0;width:32px;height:36px}
 .clip-profile{max-width:100%}.clip-profile img{width:28px;height:28px}.clip-caption{bottom:50px;right:70px}.clip-caption p{font-size:17px;margin-top:10px}.clip-author .follow{font-size:11px;padding:4px 9px}.clip-author{column-gap:8px}
 .clip-actions{gap:8px}.clip-actions .action-group button{width:38px;height:38px}.clip-actions .action-group small{font-size:10px}
 #dialogContent{padding:50px 20px 24px;max-height:calc(100dvh - 26px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .app-dialog,.app-dialog.profile-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-width:calc(100vw - 20px)}
 .profile-cover{height:84px;padding:16px;font-size:10px;letter-spacing:2px}.profile-heading{grid-template-columns:72px minmax(0,1fr);padding:0;gap:12px;align-items:center}.profile-avatar{width:72px;height:72px;line-height:60px;font-size:30px}
 .profile-heading>div:nth-child(2){padding-top:28px}.profile-heading h2{font-size:26px!important}.profile-heading span{font-size:12px}.profile-heading .profile-edit,.app-dialog .profile-heading>.solid-button{grid-column:1/-1;justify-self:start;margin-top:3px;min-width:128px}
 .profile-counts{margin:0 0 20px;gap:8px 16px}.profile-bio{margin:18px 0!important;font-size:15px!important}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-footer button:last-child{margin-left:0}
 .profile-grid span{font-size:13px;padding:30px 10px 10px}.social-options{gap:7px}.social-options button{padding:12px 8px}.app-dialog input,.app-dialog textarea,.app-dialog select{font-size:16px}
 .reward-prizes,.reward-tiers{grid-template-columns:1fr}.comments-dialog{max-width:100%;max-height:calc(100dvh - 12px)}
}
@media(max-width:360px){.mobile-logo{font-size:26px}.feed-tabs button{font-size:14px;padding:8px}.feed-header{padding:0 8px;gap:3px}.clip-author strong{font-size:16px}.clip-profile{gap:6px}.clip-caption{left:12px}.profile-heading h2{font-size:24px!important}}
@media(max-height:600px) and (max-width:760px){.clip-actions{bottom:49px;gap:3px}.clip-actions .action-group button{width:30px;height:30px}.clip-actions .action-group small{font-size:8px}.clip-caption p{-webkit-line-clamp:2;font-size:15px}.clip-tags{font-size:9px}.feed-header{height:50px;min-height:50px}.clip-top{top:8px}}
