/* R20: retain the existing responsive page, PWA viewport and desktop side panels.
   Only the two native command rails give their space back to the conversation. */
html[data-imo-black][data-imo-tools] .r20-tools-button{
 display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
 width:auto!important;min-width:44px!important;height:44px!important;flex:0 0 auto!important;
 padding:0 10px!important;font:500 13px/1.25 system-ui,sans-serif!important;white-space:nowrap!important;
 border:1px solid #93afd655!important;border-radius:12px!important;background:#1e2b43!important;color:#dce7fc!important;
}
html[data-imo-black][data-imo-tools] .r20-tools-button svg{width:17px!important;height:17px!important;flex:none!important}
html[data-imo-black][data-imo-tools] .r20-tools-button[aria-expanded="false"]{background:#253d70!important;border-color:#9abafa70!important}
html[data-imo-black][data-imo-tools="closed"] body #bpLayout #app .phone{
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:66px minmax(0,1fr) auto!important;
}
html[data-imo-black][data-imo-tools="closed"] body #bpLayout #app #chat{grid-column:1/-1!important;grid-row:2!important}
html[data-imo-black][data-imo-tools="closed"] body #bpLayout #app #rightRail,
html[data-imo-black][data-imo-tools="closed"] body #bpLayout #app #bottomNav,
html[data-imo-black][data-imo-tools="closed"] body #bpLayout #app .bp-action-dock{display:none!important;visibility:hidden!important;pointer-events:none!important}
html[data-imo-black][data-imo-tools] body #app #feed #bpWelcome>p{max-width:none!important;overflow-wrap:anywhere!important}
html[data-imo-black][data-imo-tools] .bp-toast{bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
/* One greeting and a small sponsor strip leave the feed available for dialogue. */
html[data-imo-black][data-imo-tools] body #app #feed #bpWelcome{padding:8px 0 12px!important;max-width:480px!important;margin:0 auto!important;flex:none!important}
html[data-imo-black][data-imo-tools] body #app #feed .bp-hello-character{width:64px!important;height:72px!important;min-height:72px!important;flex-basis:64px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-imo-black][data-imo-tools] body #app #feed .bp-hello-character img{object-fit:contain!important}
html[data-imo-black][data-imo-tools] body #app #feed #bpWelcome h2{font-size:28px!important;line-height:1.25!important}
html[data-imo-black][data-imo-tools] body #app #feed #bpWelcome>p{font-size:15px!important;margin:12px 0 0!important;line-height:1.55!important}
html[data-imo-black] .r20-owner-manage{display:block;margin-top:12px;color:#c1cfe9;text-align:center;font-size:13px;text-underline-offset:4px}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-list{width:100%;min-width:0;box-sizing:border-box;border:1px solid #98aed42e;border-radius:16px;overflow:hidden;background:#141c2a;margin:4px 0 14px}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row{margin:0;padding:0;border:0;border-radius:0;border-bottom:1px solid #98aed424;background:transparent}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row:last-of-type{border-bottom:0}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row[hidden]{display:none!important}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;box-sizing:border-box;cursor:pointer;font:14px/1.45 system-ui,sans-serif;color:#e6edfb}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row>summary::-webkit-details-marker{display:none}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row>summary:after{content:'⌄';color:#9fb2cf;font-size:18px;flex:none}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row[open]>summary:after{content:'⌃'}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row>summary strong{flex:1;font-weight:550;overflow-wrap:anywhere;min-width:0}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-row>summary small{white-space:nowrap;font-size:12px;font-weight:400;color:#b1c1da}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-number{font-size:12px;font-weight:500;color:#9fb9df;min-width:14px}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-detail>.imo-r8-card{margin:0!important;padding:0 14px 14px!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-detail h3{display:none!important}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-detail .imo-r6-card__meta{font-size:11px!important;opacity:.8}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-detail .imo-r6-card__actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-detail button{flex:0 1 auto!important;min-height:44px!important;width:auto!important;padding:8px 14px!important;font-size:13px!important}
html[data-imo-black][data-imo-tools] body #app #feed .r20-more-places{display:block;width:100%;min-height:44px;border:0;border-top:1px solid #98aed424;border-radius:0;background:transparent;color:#adc8ff;font:13px/1.4 system-ui;cursor:pointer}
html[data-imo-black][data-imo-tools] body #app #feed .r20-reply-choices{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px;max-width:100%}
html[data-imo-black][data-imo-tools] body #app #feed .r20-reply-choices>button{min-height:44px;padding:9px 15px;border:1px solid #92acd448;border-radius:999px;background:#1c2a40;color:#dae7ff;font:14px/1.4 system-ui,sans-serif;cursor:pointer;overflow-wrap:anywhere}
html[data-imo-black][data-imo-tools] body #app #feed .r20-place-list :focus-visible,html[data-imo-black][data-imo-tools] body #app #feed .r20-reply-choices :focus-visible{outline:2px solid #b8cfff;outline-offset:-3px}
/* Compact phone presentation. Desktop type sizes and promo panels remain native. */
@media(max-width:767px){
 html[data-imo-black][data-imo-tools] .bp-chat-heading{gap:6px!important}
 html[data-imo-black][data-imo-tools] .r20-tools-button{font-size:12px!important;padding:0 8px!important;gap:4px!important}
 html[data-imo-black][data-imo-tools] body #app .bp-heading-text small{display:none!important}
 html[data-imo-black][data-imo-tools] body #app .bp-heading-text strong{font-size:16px!important}
 html[data-imo-black][data-imo-tools] body #app .bp-character-button{
  width:36px!important;flex-basis:36px!important;height:44px!important;border:0!important;border-radius:0!important;background:transparent!important;
 }
 html[data-imo-black][data-imo-tools] body #app .bp-character-button .bp-avatar{object-fit:contain!important;background:transparent!important}
 html[data-imo-black][data-imo-tools] body #app .bp-location-button{width:40px!important;height:44px!important;flex-basis:40px!important}
 html[data-imo-black][data-imo-tools] body #app .bp-mobile-menu{width:40px!important;flex-basis:40px!important}
 html[data-imo-black][data-imo-tools] body #app #feed{padding:14px 12px 20px!important}
 html[data-imo-black][data-imo-tools] body #app #feed .bp-hello-character{
  width:52px!important;height:64px!important;min-height:64px!important;flex-basis:52px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;animation:none!important;
 }
 html[data-imo-black][data-imo-tools] body #app #feed .bp-hello-character img{object-fit:contain!important;animation:none!important}
 html[data-imo-black][data-imo-tools] body #app #feed .bp-hello-label{font-size:13px!important}
 html[data-imo-black][data-imo-tools] body #app #feed #bpWelcome h2{font-size:25px!important;line-height:1.25!important}
 html[data-imo-black][data-imo-tools] body #app #feed #bpWelcome>p{font-size:15px!important;line-height:1.55!important}
 html[data-imo-black][data-imo-tools] body #app #feed .bp-suggestions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 html[data-imo-black][data-imo-tools] body #app #feed .bp-suggestion{font-size:14px!important;min-height:52px!important;padding:10px 8px!important;gap:6px!important;align-items:center!important}
 html[data-imo-black][data-imo-tools] body #app #composer{margin-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:420px){
 html[data-imo-black][data-imo-tools="open"] body #app #feed .bp-suggestions{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-height:500px){
 html[data-imo-black][data-imo-tools="closed"] body #bpLayout #app .phone{grid-template-rows:54px minmax(0,1fr) auto!important}
}
