/* Keep scroll inside the result track, not on the whole phone screen. */
html[data-imo-black] body #bpLayout #app #chat{min-width:0!important;max-width:100%!important}
html[data-imo-black] body #bpLayout #app #feed{min-width:0!important;max-width:100%!important;overflow-x:hidden!important;touch-action:pan-x pan-y pinch-zoom!important;padding-bottom:120px!important}
html[data-imo-black] body #bpLayout #app #feed :is(.imo-pq-root,.imo-pq-nearby,.imo-pq-later,.imo-nearby-thumbnails-v85,.imo-v2-carousel,.imo-company-v2){box-sizing:border-box;min-width:0!important;width:100%!important;max-width:100%!important;overflow-wrap:anywhere}
html[data-imo-black] body #bpLayout #app :is(.imo-pq-pilot-grid,.imo-v2-track,.imo-pq-nearby-list,.imo-pq-cards,.imo-company-track-v2){box-sizing:border-box;display:flex!important;grid-template-columns:none!important;gap:10px!important;min-width:0!important;max-width:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y pinch-zoom!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 2px 12px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
html[data-imo-black] body #bpLayout #app .imo-pq-pilot-grid>button{flex:0 0 132px!important;min-width:0!important;min-height:112px!important;scroll-snap-align:start;white-space:normal!important}
.imo-pq-pilot-grid>button>img{display:block;width:100%;height:78px;object-fit:cover}.imo-pq-pilot-grid>button>span{display:block;padding:7px 5px}
html[data-imo-black] body #bpLayout #app :is(.imo-v2-track,.imo-pq-nearby-list,.imo-pq-cards,.imo-company-track-v2)>article{flex:0 0 min(238px,82%)!important;min-width:0!important;max-width:100%!important;scroll-snap-align:start}
html[data-imo-black] body #bpLayout #app #feed :is(.imo-company-v2,.imo-company-guide-v2,.imo-company-nearby-v2,.imo-company-mock-v2){box-sizing:border-box;padding:12px;margin:10px 0;border:1px solid #496d9f;border-radius:14px;background:#0d2145;color:#f1f6ff;max-width:100%;overflow-wrap:anywhere}
.imo-company-v2 h3,.imo-company-v2 h4{margin:7px 0;font-size:15px}.imo-company-v2 p,.imo-company-v2 small{font-size:12px;line-height:1.55}
.imo-company-guide-v2>img{display:block;width:100%;max-height:180px;object-fit:cover;border-radius:10px}.imo-company-guide-v2 small{display:block;margin-top:6px;color:#b7cef2}
.imo-company-place-v2{box-sizing:border-box;background:#142b50;border:1px solid #496d9f;border-radius:12px;padding:10px}.imo-company-actions-v2{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.imo-company-v2 button,.imo-company-v2 a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:8px 11px;color:#f1f6ff;border:1px solid #6e91c8;background:#173f86;border-radius:10px;white-space:normal;text-decoration:none;font:inherit;font-size:12px;cursor:pointer}
.imo-company-v2 :focus-visible{outline:3px solid #b6d3ff;outline-offset:2px}.imo-company-v2 button:disabled{opacity:.6}
html[data-imo-black] body #bpLayout #app .imo-company-mock-v2{border-color:#ad934d;background:#24241d}.imo-company-mock-v2 strong{font-size:12px;color:#efd98f}
/* The fixed trip/together controls should not cover the scrollable results. */
@media(max-width:600px){html[data-imo-black] body:not(.journey33-open) #bpLayout #app :is(#imo-journey-entry-r34,#imo-together-entry-r29){max-width:125px!important;font-size:12px!important;min-height:40px!important}}

/* V3: independent brand guide and nearby results; compact cards on phones. */
html[data-imo-black] body #bpLayout #app #feed .imo-company-v2{padding:0!important;border:0!important;background:transparent!important}
html[data-imo-black] body #bpLayout #app #feed .imo-company-guide-v2{margin:8px 0!important;padding:10px!important}
html[data-imo-black] body #bpLayout #app #feed .imo-company-guide-v2>img{width:96px!important;height:72px!important;max-height:72px!important;object-fit:cover;float:left;margin:0 12px 8px 0}
html[data-imo-black] body #bpLayout #app #feed .imo-company-guide-v2::after{content:"";display:block;clear:both}
html[data-imo-black] body #bpLayout #app #feed .imo-company-guide-v2>button{display:flex!important;width:100%!important;clear:both;margin-top:10px}
html[data-imo-black] body #bpLayout #app #feed .imo-company-nearby-v2{margin:8px 0!important}
html[data-imo-black] body #bpLayout #app #feed .imo-company-mock-v2{box-sizing:border-box;max-width:100%;padding:12px;margin:12px 0;border:1px solid #ad934d;border-radius:14px;color:#f1f6ff}
html[data-imo-black] .imo-company-mock-v2 a{color:#c0d8ff}
