/* MSW AI Exchange: responsive controls for its standalone layout. */
body.msw4-exchange :is(button, input[type="button"], input[type="submit"]) { min-width: 44px !important; min-height: 44px !important; }
body.msw4-exchange :is(.x4-sidebar nav a, .n10-start > a, .n10-help a, .x5-button, .x4-hero-actions a, .x5-profile, .t9-register-link, .n10-tool-tabs a, .x5-footer a) { min-height: 44px; }
body.msw4-exchange :is(.n10-help a, .n10-tool-tabs a, .x5-footer a) { display: inline-flex; align-items: center; }
body.msw4-exchange .x4-topbar { height: auto; min-height: 60px; }
body.msw4-exchange .x4-topbar > label { flex: 1 1 0; min-width: 0; }
body.msw4-exchange .x4-topbar > :is(button, a) { flex-shrink: 0; }
body.msw4-exchange .x5-profile { min-width: 44px; justify-content: center; }
body.msw4-exchange :is(.x4-topbar input, .n10-nav-search input, .x4-main select, .x4-main input:not([type="checkbox"]):not([type="radio"])) { min-height: 44px; min-width: 0; max-width: 100%; }
body.msw4-exchange .x4-hero { height: auto !important; }
body.msw4-exchange .x4-hero-actions { flex-wrap: wrap; }
body.msw4-exchange :is(.t9-controls > *, .n10-input-grid > *) { min-width: 0; }
body.msw4-exchange .x4-sidebar { overscroll-behavior: contain; scroll-padding-block: 12px; }
html:has(body.msw4-exchange) { scroll-padding-top: 76px; }
@media (max-width: 991px) {
 body.msw4-exchange { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; }
 html:has(body.msw4-exchange) { scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
 body.msw4-exchange #msw-onecall-button { height: calc(52px + env(safe-area-inset-bottom, 0px)) !important; min-height: 52px; padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: border-box; }
}
@media (max-width: 760px) {
 body.msw4-exchange .x4-sidebar { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 52px - env(safe-area-inset-bottom, 0px)); padding-bottom: 16px; }
 body.msw4-exchange :is(.x4-topbar input, .n10-nav-search input, .x4-main select, .x4-main input:not([type="checkbox"]):not([type="radio"])) { font-size: 16px; }
 body.msw4-exchange .t9-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
