/* Hosted member view: reuse the accepted product palette, type and controls. */
.remote-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100dvh}
.remote-shell .rail{min-width:0;max-height:100dvh;overflow:auto;position:sticky;top:0}
.remote-shell .rail-inner{display:flex;flex-direction:column;min-height:100%;padding:20px 14px;gap:20px;position:static;max-height:none;overflow:visible}
.remote-shell .brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.remote-shell .nav{display:grid;gap:4px}.remote-shell .nav button{text-align:left;justify-content:space-between;width:100%;border:0;background:transparent;color:inherit}
.remote-shell .nav button[aria-current=page]{background:#f8f5ee;color:#21352f}
.remote-shell .nav button .count{margin-left:8px}.remote-shell .org-name{overflow-wrap:anywhere}
.remote-main{display:flex;flex-direction:column;gap:18px;padding:28px clamp(16px,3vw,40px);min-width:0;max-width:1180px;width:100%;margin-inline:auto}
.remote-page-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}.remote-page-head h1{font-size:2rem}
.remote-page-head .btn-row{margin-top:4px}.remote-connection{color:var(--muted);font-size:.875rem}
.remote-join{max-width:510px;margin:clamp(24px,8vh,96px) auto;padding:28px;display:grid;gap:20px}
.remote-join .brand{display:flex;align-items:center;gap:12px}.remote-join .brand img{width:56px;height:56px;border-radius:50%}
.remote-join .brand strong{font:1.85rem var(--serif)}.remote-join h1{font-size:2rem}
.remote-menu{display:none}.remote-nav-wrap{display:grid;gap:18px}.remote-bottom{margin-top:auto;display:grid;gap:10px}
.remote-theme{display:flex;flex-wrap:wrap;gap:6px}.remote-theme .btn{padding:8px;flex:1;border-color:#587060;background:transparent;color:#f8f5ee}
.remote-theme .btn[aria-pressed=true]{background:#f8f5ee;color:#21352f}.remote-theme-label{font-size:.8rem;color:#bac8bc}
.remote-join .remote-theme-label{color:var(--muted)}.remote-join .remote-theme .btn{color:var(--ink);border-color:var(--line);background:var(--surface)}
.remote-join .remote-theme .btn[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.remote-shell .rail .remote-menu{background:transparent;color:#f8f5ee;border-color:#587060;flex:none}
.remote-message{display:grid;gap:8px;border-bottom:1px solid var(--line);padding:16px 0;min-width:0}
.remote-message .body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.remote-message header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.875rem}
.remote-message time{color:var(--muted)}.remote-message .btn-row{gap:6px}.remote-message .btn{font-size:.82rem;min-height:44px}
.remote-feed{display:grid;gap:0}.remote-composer{display:grid;gap:10px;border:1px solid var(--line);background:var(--surface);padding:16px;border-radius:9px}
.remote-reactions,.remote-attachments{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.remote-attachments{display:grid;gap:8px}.remote-attachments li{display:grid;gap:3px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px}
.remote-attachments strong,.remote-attachments small,.remote-imported{overflow-wrap:anywhere;word-break:break-word}
.remote-composer textarea{min-height:96px}.remote-composer .btn-row{justify-content:space-between}.remote-composer .btn-row>div{display:flex;flex-wrap:wrap;gap:8px}
.remote-list{display:grid;gap:12px}.remote-card{display:grid;gap:10px;border:1px solid var(--line);padding:18px;border-radius:9px;background:var(--surface)}
.remote-card p{white-space:pre-wrap;overflow-wrap:anywhere}.remote-section{display:grid;gap:12px}.remote-action{display:grid;gap:8px;border-left:3px solid var(--brass);padding:12px;background:var(--brass-soft)}
.remote-action p{overflow-wrap:anywhere;white-space:pre-wrap}.remote-chat-list{display:grid;gap:10px}.remote-chat-list .btn{display:grid;text-align:left;justify-content:stretch;gap:4px;align-items:start}
.remote-chat-list small{color:var(--muted);font-weight:400}.remote-empty{padding:24px 0;color:var(--muted)}
.remote-status:empty{display:none}.remote-status{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);padding:10px 16px;background:var(--ink);color:var(--ground);border-radius:8px;z-index:10}
@media(max-width:820px){.remote-shell{grid-template-columns:1fr}.remote-shell .rail{position:static;max-height:none}.remote-shell .rail-inner{padding:12px 16px;gap:12px;min-height:0}.remote-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.remote-menu{display:inline-flex}.remote-nav-wrap{display:none}.remote-nav-wrap.open{display:grid}.remote-bottom{margin-top:0}.remote-main{padding:20px 16px 32px}.remote-join{margin:24px 12px;padding:20px}.remote-page-head h1{font-size:1.8rem}}
@media(max-width:360px){.remote-brand-row{flex-wrap:wrap}.remote-brand-row .brand{min-width:0;max-width:100%}.remote-brand-row .brand strong{overflow-wrap:anywhere}.remote-theme .btn:last-child{flex-basis:100%}.remote-composer{padding:12px}.remote-composer .btn-row{align-items:stretch;gap:10px}.remote-composer .btn-row>div{width:100%}.remote-composer .primary{flex:1}.remote-page-head .btn-row{width:100%}.remote-page-head .btn-row>.btn{flex:1}}

/* Adapt the accepted product conversation.css / conversation-density.css hierarchy.
   Only the conversation owns viewport height; Home retains normal page scrolling. */
.remote-shell.is-conversation{height:100dvh;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.is-conversation>.rail{min-height:0;height:100%;overflow:auto;overscroll-behavior:contain}
.is-conversation>.remote-main{min-height:0;overflow:hidden;padding:0;gap:0;max-width:none}
.is-conversation .remote-connection{margin:0;padding:8px clamp(14px,3vw,36px);font-size:.8125rem;flex:none}
.is-conversation .remote-main>.notice{margin:0;max-height:16dvh;overflow:auto;flex:none}
.remote-conversation{min-height:0;min-width:0;flex:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.remote-conversation>.remote-page-head{padding:16px clamp(18px,3vw,36px) 12px;border-bottom:1px solid var(--line);max-height:26dvh;overflow:auto;overscroll-behavior:contain;gap:12px;align-items:center}
.conversation-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 220px}
.conversation-title>div{min-width:0}.conversation-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);font:600 .9375rem/1 var(--sans);flex:none}
.remote-conversation .remote-page-head h1{font:600 1.1875rem/1.35 var(--sans);margin:0;letter-spacing:0;overflow-wrap:anywhere}
.remote-conversation .remote-page-head p{margin:3px 0 0;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.remote-conversation .remote-page-head .btn-row{margin:0;gap:8px;flex:none}
.remote-conversation>.remote-feed{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px clamp(18px,3vw,36px) 18px;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.remote-message{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;column-gap:10px;row-gap:0;padding:0;border:0;flex:none}
.message-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font:600 .75rem/1 var(--sans);object-fit:contain;align-self:start}
.message-avatar.is-staffmor{border:0;background:transparent}.message-main{min-width:0;display:grid;gap:4px}
.remote-message .msg-head{align-items:center;gap:4px 8px;font-size:.9375rem;line-height:1.4}.remote-message time,.remote-message .edited{font-size:.8125rem;color:var(--muted)}
.remote-message .msg-reply{margin-left:auto;min-height:28px;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:500 .8125rem/1.4 var(--sans);cursor:pointer}
.remote-message .msg-reply:hover,.remote-message .msg-reply:focus-visible{color:var(--ink);background:var(--surface-2)}
.remote-message .message-main>.body{margin:0;width:fit-content;max-width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font:400 1rem/1.65 var(--sans)}
.remote-message.speaker-you .message-main>.body{background:var(--surface-2);border-left:3px solid var(--brass);padding-left:10px}
.remote-conversation>.remote-composer{margin:0  clamp(14px,3vw,36px) max(16px,env(safe-area-inset-bottom));padding:12px;max-height:40dvh;overflow:auto;overscroll-behavior:contain;gap:8px;min-width:0}
.remote-conversation .remote-composer textarea{min-height:56px;max-height:24dvh;padding:4px 2px;border:0;background:transparent;font:400 1rem/1.55 var(--sans)}
.remote-conversation .remote-composer .hint{font-size:.8125rem;margin:0}
.remote-conversation :is(button,a,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(pointer:coarse){.remote-message .msg-reply{min-height:44px}}
@media(max-width:820px){
 .remote-shell.is-conversation{grid-template-rows:auto minmax(0,1fr)}
 .is-conversation>.rail{height:auto;overflow:visible;position:relative;z-index:3}
 .is-conversation .remote-nav-wrap.open{position:absolute;inset:100% 0 auto;max-height:calc(100dvh - 76px);overflow:auto;overscroll-behavior:contain;padding:18px;background:#21352f;border-bottom:1px solid #425949;box-shadow:0 8px 16px #0002}
 .remote-conversation>.remote-page-head{padding:12px 14px 10px;gap:8px}.conversation-title{flex-basis:170px;gap:10px}
 .remote-conversation .remote-page-head h1{font-size:1.125rem}.remote-conversation .remote-page-head p{font-size:.8125rem}
 .remote-conversation>.remote-feed{padding:14px;gap:12px}.remote-message{grid-template-columns:28px minmax(0,1fr);column-gap:8px}
 .message-avatar{width:28px;height:28px;font-size:.6875rem}.remote-message .message-main>.body{padding:8px 10px}.remote-message.speaker-you .message-main>.body{padding-left:8px}
 .remote-message .msg-reply{min-height:44px}.remote-conversation>.remote-composer{margin:0 14px max(12px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){.remote-conversation .remote-page-head .btn-row{width:100%}.remote-conversation .remote-page-head .btn-row .btn{flex:1 1 auto}.conversation-title{flex-basis:100%}}

.remote-attachments .btn{width:fit-content}.remote-image{display:block;max-width:100%;max-height:50dvh;object-fit:contain;border-radius:6px}
/* Enlarged narrow layouts keep a usable feed; secondary header/composer controls
   remain reachable in their own scroll regions without pushing typing off-screen. */
@media(max-width:380px){.remote-conversation>.remote-page-head{max-height:22dvh}.remote-conversation>.remote-composer{max-height:30dvh}}
