/* Mobile search: real input over the transparent botanical source artwork. */
html.mw230 body .hub-search {
 position:relative;isolation:isolate;overflow:visible!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 min-height:44px;padding:0 32px 0 39px!important;
}
html.mw230 body .hub-search::before {
 content:'';position:absolute;inset:-7px -13px -7px -17px;
 z-index:-1;pointer-events:none;
 background:url('/assets/mobile-compat-v236/search-v260.png') center/100% 100% no-repeat;
}
html.mw230 body .hub-search>svg,html.mw230 body .hub-search>kbd {display:none!important;}
html.mw230 body .hub-search input {
 min-width:0;width:100%;height:44px;padding:0!important;
 background:transparent!important;color:#effff7!important;
 border:0!important;outline:none!important;box-shadow:none!important;
 font-size:13px!important;text-shadow:0 1px 3px #00180f;
}
html.mw230 body .hub-search input::placeholder {color:#c1dace!important;opacity:1;}
html.mw230 body .hub-search:focus-within {outline:1px solid #a7ffce;outline-offset:3px;border-radius:24px;}
@media(max-width:370px){html.mw230 body .hub-search input{font-size:11px!important;}html.mw230 body .hub-search{padding-left:28px!important;padding-right:28px!important;}}


/* A sub-16px input invites iOS focus zoom. Keep this invariant at every width.
   Do not disable user pinch zoom or alter the verified viewport/safe-area code. */
html.mw230 body .hub-search input,
html.mw230 body .hub-search input:focus {
 font-size:16px!important;
 transform:none!important;
 border:0!important;outline:none!important;box-shadow:none!important;
}
html.mw230 body .hub-search,
html.mw230 body .hub-search:focus-within {
 outline:none!important;outline-offset:0!important;
 border:0!important;box-shadow:none!important;
}
/* Indicate focus with the existing artwork, never a second drawn frame. */
html.mw230 body .hub-search:focus-within::before {filter:brightness(1.08);}
html.mw230 body .hub-search input::placeholder {font-size:13px;}
@media(max-width:370px){html.mw230 body .hub-search input::placeholder{font-size:11px;}}


/* Reuse the supplied panel pixels. Crop away the screenshot's outer landscape
   in the decorative layer only; the live avatar/leaves remain overflow-visible. */
html body .hub-conversation-list>button:has(>.hub-avatar) {
 position:relative!important;isolation:isolate;overflow:visible!important;
 background:transparent!important;border-color:transparent!important;
 border-radius:17px!important;box-shadow:none!important;
 margin-bottom:6px;
}
html body .hub-conversation-list>button:has(>.hub-avatar)::before {
 content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
 border-radius:inherit;
 background-image:url('/assets/mobile-compat-v236/chat-panel-source-v262.png');
 background-size:104.1% 200.3%;background-position:50.6% 44.1%;
 background-repeat:no-repeat;opacity:.76;
}
html body .hub-conversation-list>button.active:has(>.hub-avatar)::before,
html body .hub-conversation-list>button:focus-visible:has(>.hub-avatar)::before {opacity:1;}
@media(hover:hover){html body .hub-conversation-list>button:hover:has(>.hub-avatar)::before{opacity:.95;}}
html body .hub-conversation-list>button:has(>.hub-avatar) strong {color:#eefbf5;}
html body .hub-conversation-list>button:has(>.hub-avatar) small {color:#bfd5cb;}


/* Only the mobile chat route; retain the dock on the desktop and other apps. */
html.mw230.mw-chat-full303{--mw-dock:0px!important}
html.mw230.mw-chat-full303 body .mw-dock{display:none!important}
html.mw230.mw-chat-full303:not(.mw-keyboard) body .workspace-screen{padding-bottom:var(--mw-safe-bottom,0px)!important}
html.mw230 body .mw-chats-back303{display:none}
html.mw230.mw-chat-full303 body .workspace-stage .hub-directory>header{padding-left:66px!important}
html.mw230.mw-chat-full303 body .workspace-stage .hub-directory>header .mw-chats-back303{display:flex!important;position:absolute;left:12px;top:24px;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border:1px solid #38665f;border-radius:50%;background:#06211d;color:#a4dfd6;font-size:32px;line-height:1;cursor:pointer;touch-action:manipulation}


/* Reuse WELLY's existing glass palette for mobile direct conversations only. */
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-context-strip,
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-composer {
 background:rgba(0,23,19,.88)!important;
 border:1px solid rgba(24,105,86,.6)!important;
 border-radius:32px!important;box-shadow:none!important;
 padding:8px!important;
}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-context-strip{gap:10px!important;min-height:68px!important}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-message {
 background:transparent!important;border:0!important;box-shadow:none!important;gap:4px!important;
}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-message>div {
 background:rgba(0,27,23,.83)!important;
 border:1px solid rgba(24,91,77,.4)!important;
 border-radius:24px!important;box-shadow:none!important;
 padding:13px 14px 9px!important;
}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-message.user>div {
 background:rgba(0,85,64,.65)!important;
 border-color:rgba(12,134,111,.6)!important;
}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-message>div>strong{color:#89d8cb!important}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-message p{color:#e6ede9!important;text-shadow:none!important}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-message-meta{color:#9cafaa!important}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-input-shell textarea {
 background:rgba(0,17,14,.6)!important;border:1px solid #165c4d!important;
 box-shadow:none!important;color:#eef5f0!important;
}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .chat-primary-action,
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .mobile-chat-back {
 background:rgba(0,23,19,.8)!important;border:1px solid #145d4e!important;
 box-shadow:none!important;color:#a4dfd6!important;
}
/* Keep the reply action accessible without the platform's boxed emoji artwork. */
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .reply302-action {
 float:none!important;flex:0 0 28px!important;align-self:center!important;
 min-width:28px!important;width:28px!important;min-height:44px!important;
 font-size:0!important;border:0!important;background:transparent!important;
 color:#9bcec5!important;padding:0!important;opacity:.7;
}
html.mw230 body .workspace-stage .chat-shell:has(.chat-context-strip.direct) .reply302-action::before {
 content:"";display:block;width:20px;height:20px;margin:auto;background:currentColor;
 -webkit-mask:url('/assets/chat-icons/message-circle.svg') center/contain no-repeat;
 mask:url('/assets/chat-icons/message-circle.svg') center/contain no-repeat;
}


html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button{
 position:relative!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;align-items:center!important;
 gap:12px!important;min-height:78px!important;height:auto!important;padding:12px!important;
 border:1px solid rgba(83,133,120,.5)!important;border-radius:24px!important;background:rgba(0,26,22,.52)!important;box-shadow:none!important;
}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button>span:nth-child(2){min-width:0!important;display:block!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button strong{display:block!important;font-size:16px!important;line-height:22px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button small{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;white-space:normal!important;font-size:14px!important;line-height:20px!important;color:#b0c0c4!important;margin-top:3px!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button>i{position:absolute!important;top:13px!important;right:13px!important;font-size:12px!important;color:#acbfc3!important;font-style:normal!important;background:none!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button>i:before{display:none!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts)>button>b{position:absolute!important;right:13px!important;bottom:12px!important;display:flex!important;align-items:center;justify-content:center;min-width:24px;height:24px;box-sizing:border-box;padding:0 6px;border-radius:20px;background:#a0eadc!important;color:#052620!important;font-size:13px!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list:not(.contacts) .hub-chat-folder-add{display:none!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list .hub-avatar[data-orb259]{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list .hub-avatar[data-orb259]::before{filter:saturate(.4) brightness(.8)!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-conversation-list .hub-avatar[data-orb259=green]::before{filter:saturate(.65) brightness(.85)!important}


/* Approved compact chat-list header. No changes to conversation or folder actions. */
html.mw230.mw-chat-full303 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 position:relative!important;min-height:56px!important;height:56px!important;
 box-sizing:border-box!important;padding:0 0 0 48px!important;margin:0 0 12px!important;gap:8px!important;
}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306 .kicker,
html.mw230 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306 .clean271-tagline{display:none!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306>div:first-of-type{min-width:0!important;flex:1!important}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306 h2{
 font-family:inherit!important;font-size:22px!important;font-weight:600!important;line-height:28px!important;
 margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html.mw230.mw-chat-full303 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306 .mw-chats-back303{
 left:0!important;top:6px!important;width:44px!important;height:44px!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306 .hub-directory-actions{
 display:flex!important;position:static!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;
}
html.mw230 body .workspace-stage .workspace-chat-hub .hub-directory>header.compact306 .hub-directory-actions .hub-icon-button{
 border:0!important;background:transparent!important;box-shadow:none!important;
 width:44px!important;height:44px!important;min-width:44px!important;padding:10px!important;color:#a4dfd6!important;
}
