/* The approved Nearby header, shared without changing page content. */
html body .unified-header-shell>header.unified-header,
html body #flirt-nearby-preview .unified-header-shell>header.unified-header{
 display:grid!important;grid-template-columns:minmax(0,1fr) 88px 116px!important;column-gap:16px!important;align-items:center!important;height:140px!important;min-height:140px!important;padding:0 8px!important;box-sizing:border-box!important;transform:none!important;position:relative!important;flex:none!important;width:100%!important;margin:0!important
}
html body header.unified-header>.hello{grid-column:1!important;grid-row:1!important;display:flex;gap:8px;align-items:center;min-width:0!important;max-width:100%!important;overflow:hidden;justify-self:start;color:inherit;text-decoration:none}
html body header.unified-header>.hello img{width:40px!important;height:40px!important;object-fit:cover;border-radius:50%;flex:none}
html body header.unified-header>.hello span{font-size:14px;line-height:1.2;min-width:0;overflow-wrap:anywhere}
html body header.unified-header>.hello b{font-size:18px}
html body header.unified-header>.unified-brand{grid-column:2!important;grid-row:1!important;width:88px!important;height:88px!important;display:block!important;justify-self:center!important;transform:none!important;margin:0!important}
html body header.unified-header>img.unified-brand,html body header.unified-header>.unified-brand img{width:88px!important;height:88px!important;object-fit:contain!important;transform:rotate(-16deg)!important;margin:0!important}
html body header.unified-header>.status{grid-column:3!important;grid-row:1!important;width:116px!important;min-width:116px!important;justify-self:end!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:7px!important;transform:none!important}
html body header.unified-header>.status>div{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:center!important;width:116px!important;gap:5px!important;padding:0!important;margin:0!important}
html body header.unified-header>.status button{width:22px!important;min-width:22px!important;min-height:44px!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;position:relative!important}
html body header.unified-header>.status button svg{width:19px!important;height:19px!important}
html body header.unified-header>.status>span{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
html body header.unified-header>.status>span i{display:inline-block;width:10px;height:10px;background:#15e850;border-radius:50%}
html body .large-logout-replaced{display:none!important}
html body .unified-header-shell>.unified-session{margin:3px 8px 0;text-align:center;font-size:12px;line-height:1.3;padding:0;border:0;background:none}
html body .unified-header-shell>.unified-session a,html body .unified-header-shell>.unified-session button{color:inherit;background:none;border:0;padding:0;min-height:0;font:inherit;text-decoration:none;cursor:pointer;box-shadow:none}
html body .unified-header-shell>.quick-access{display:flex;align-items:center;justify-content:flex-start;min-height:36px;padding:0 8px;box-sizing:border-box;background:#080304;border-bottom:1px solid #462029;color:#fff;font-size:12px}
html body .unified-header-shell>.quick-access label{display:flex;align-items:center;gap:5px;margin:0;font-size:12px}
html body .unified-header-shell>.quick-access select{width:124px;max-width:45vw;height:36px;min-height:36px;font-size:12px;padding:4px 8px;background:#13070c;color:#fff;border:1px solid #462029;border-radius:8px}
html body header.unified-header [hidden],html body header.unified-header>[hidden],html body header.unified-header>.status>[hidden],html body .unified-header-shell>.unified-session[hidden]{display:none!important}
@media(max-width:600px){html body .unified-header-shell>header.unified-header,html body #flirt-nearby-preview .unified-header-shell>header.unified-header{height:96px!important;min-height:96px!important}html body header.unified-header>.hello img{width:28px!important;height:28px!important}html body header.unified-header>.hello span{font-size:12px}html body header.unified-header>.hello b{font-size:14px}html body header.unified-header>.status>span{font-size:12px}}

/* Only the session line and the requested visible back controls. */
html body .app .trial,html body .app .trial a,html body .app .trial button,html body .app .trial span,
html body #flirt-nearby-preview .trial,html body #flirt-nearby-preview .trial a,html body #flirt-nearby-preview .trial button,html body #flirt-nearby-preview .trial span,
html body .unified-header-shell>.trial,html body .unified-header-shell>.trial a,html body .unified-header-shell>.trial button,html body .unified-header-shell>.trial span{color:#fff!important}
html body .site-page-back{display:block;width:fit-content;min-height:28px;margin:4px 0;padding:4px 8px;border:0;background:transparent;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}

/* Let the greeting fit without splitting words into vertical letters. */
html body header.unified-header>.hello{width:100%;flex-wrap:wrap;gap:4px}
html body header.unified-header>.hello>span{flex-shrink:0;max-width:100%;white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}
html body header.unified-header>.hello b{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){
 html body .unified-header-shell>header.unified-header,
 html body #flirt-nearby-preview .unified-header-shell>header.unified-header{column-gap:6px!important}
}

/* Keep the greeting directly beneath the member's round photo. */
html body .unified-header-shell>header.unified-header>.hello{width:max-content;flex-direction:column;flex-wrap:nowrap;align-items:center;text-align:center}
html body .unified-header-shell>header.unified-header>.hello>img:not([hidden]){display:block}

/* Session control belongs on the language row. */
html body .unified-header-shell>.quick-access>.unified-session{margin-left:auto;padding:0 0 0 8px;flex-shrink:0;font-size:12px;line-height:1.3;color:#fff}
html body .unified-header-shell>.quick-access .unified-logout{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:4px 0;background:none;border:0;border-radius:0;color:#fff;font:inherit;text-decoration:none;cursor:pointer;box-shadow:none}
html body .unified-header-shell>.quick-access>.unified-session[hidden],html body .unified-header-shell>.trial[data-session-replaced]{display:none!important}
body.real-accounts main.app:has(#exchanges-page:not([hidden])[data-exchange-kind=flirt])>#members-back,body.real-accounts main.app:has(#exchanges-page:not([hidden])[data-exchange-kind=message])>#members-back,body.real-accounts main.app:has(#exchanges-page:not([hidden])[data-exchange-kind=favorite])>#members-back{display:block;margin:4px 8px}
html body .unified-header-shell>.quick-access{flex-wrap:nowrap!important;column-gap:6px;align-items:center}
html body .unified-header-shell>.quick-access label,html body .unified-header-shell>.quick-access select{min-width:0!important;flex-shrink:1}
