/* Menu focus: overview chrome and picture commands have separate controls. */

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4[hidden] { display:contents !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4 > :not(.imus4-news-banner):not(#imo-us-care-footer-v121) { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #imo-us-direct-rail,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app .bp-tabs,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed > #journey { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4 > .imus4-news-banner { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view="overview"] body #bpLayout #app #chat #feed #imo-us-overview-v4 > .imus4-news-banner { display:flex !important;order:10 !important;flex:0 0 auto !important;margin:8px 0 12px !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #imo-us-direct-ad { display:flex !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view="compact"] body #imo-us-direct-ad { display:none !important;min-height:0 !important;height:0 !important;margin:0 !important;padding:0 !important;border:0 !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed { display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:0 !important;min-width:0 !important;min-height:0 !important;overflow:auto !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed > .conversation { order:50 !important;flex:1 0 auto !important;min-width:0 !important;min-height:0 !important;margin:0 !important;padding:0 0 10px !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed > .sponsor-section { order:60 !important;flex:0 0 auto !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed > .sponsor-section:has(#ads:empty) { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-care-footer-v121 { display:block !important;order:100 !important;position:static !important;flex:0 0 auto !important;width:100% !important;min-height:0 !important;margin:10px 0 0 !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view="overview"] body #bpLayout #app #chat #feed #imo-us-care-footer-v121 { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view="compact"] body #bpLayout #app #chat #feed #imo-us-care-footer-v121 { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #messages > .ws82-intro,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #messages > .us86-welcome,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-chat-view] body #messages > [data-us-direct-intro] { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4[hidden] { display:contents !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4 > :not(.imus4-news-banner):not(#imo-us-care-footer-v121) { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #imo-us-direct-rail,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app .bp-tabs,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed > #journey { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-overview-v4 > .imus4-news-banner { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view="overview"] body #bpLayout #app #chat #feed #imo-us-overview-v4 > .imus4-news-banner { display:flex !important;order:10 !important;flex:0 0 auto !important;margin:8px 0 12px !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #imo-us-direct-ad { display:flex !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view="compact"] body #imo-us-direct-ad { display:none !important;min-height:0 !important;height:0 !important;margin:0 !important;padding:0 !important;border:0 !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed { display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:0 !important;min-width:0 !important;min-height:0 !important;overflow:auto !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed > .conversation { order:50 !important;flex:1 0 auto !important;min-width:0 !important;min-height:0 !important;margin:0 !important;padding:0 0 10px !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed > .sponsor-section { order:60 !important;flex:0 0 auto !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed > .sponsor-section:has(#ads:empty) { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #bpLayout #app #chat #feed #imo-us-care-footer-v121 { display:block !important;order:100 !important;position:static !important;flex:0 0 auto !important;width:100% !important;min-height:0 !important;margin:10px 0 0 !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view="overview"] body #bpLayout #app #chat #feed #imo-us-care-footer-v121 { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view="compact"] body #bpLayout #app #chat #feed #imo-us-care-footer-v121 { display:none !important; }

html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #messages > .ws82-intro,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #messages > .us86-welcome,
html[data-native-us][data-imo-black][data-imo-us-direct][data-imo-us-desktop-ready="129"][data-imo-us-page-layout="131"][data-imo-us-chat-view] body #messages > [data-us-direct-intro] { display:none !important; }

html[data-native-us][data-imo-us-menu-ready="133"] #imo-us-picture-menu [data-us-v4-news-banner="chooser"] {display:none !important;}

/* One named picture-menu entry: the phone keeps its floating launcher. */
html[data-native-us][data-imo-us-chat-view] body #imo-us-menu-toggle-v3 {display:none !important;}
html[data-native-us][data-imo-us-chat-view].imo-us-mobile-ready body #us107-menu-open {display:none !important;}
html[data-native-us][data-imo-us-chat-view]:not(.imo-us-mobile-ready) body #us107-menu-open {width:auto !important;min-width:0 !important;padding:8px 12px !important;white-space:nowrap !important;font:500 13px/1.4 system-ui,sans-serif !important;}

html[data-native-us][data-imo-us-chat-view] {max-width:100% !important;overflow-x:clip !important;}

/* Main chat 1.1: one editable field and a stable send target. */
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer {
  display:flex!important;align-items:center!important;gap:8px!important;
  height:auto!important;min-height:62px!important;max-height:none!important;margin:0!important;width:100%!important;
  border-radius:0!important;
  flex:0 0 auto!important;min-width:0!important;box-sizing:border-box!important;
  padding:8px 10px max(8px,env(safe-area-inset-bottom))!important;
  background:#0b1420!important;border-top:1px solid #2a3a4c!important;
}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer #msg {
  display:block!important;position:relative!important;flex:1 1 0%!important;
  width:0!important;min-width:0!important;max-width:none!important;height:44px!important;
  min-height:44px!important;margin:0!important;padding:10px 12px!important;
  box-sizing:border-box!important;border:1px solid #3c5066!important;border-radius:12px!important;
  background:#111e2e!important;color:#eff5ff!important;-webkit-text-fill-color:#eff5ff!important;
  font:400 16px/22px system-ui,sans-serif!important;pointer-events:auto!important;
  text-align:left!important;cursor:text!important;opacity:1!important;
}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer #msg::placeholder {
  color:#a7b7cc!important;-webkit-text-fill-color:#a7b7cc!important;opacity:1!important;
}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button {
  display:inline-flex!important;position:relative!important;align-items:center!important;justify-content:center!important;
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;
  box-sizing:border-box!important;border-radius:12px!important;font:500 13px/1.2 system-ui,sans-serif!important;
}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button[type="submit"] {
  background:#2e72d2!important;color:white!important;-webkit-text-fill-color:white!important;
  border:1px solid #4a8fe9!important;opacity:1!important;
}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button[type="submit"]:disabled {opacity:.45!important;}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button svg {width:20px!important;height:20px!important;}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > #imo-inline-chat-status {
  position:absolute!important;bottom:100%!important;left:10px!important;right:10px!important;z-index:3!important;
  padding:7px 10px!important;border-radius:8px!important;background:#17283d!important;color:#f2d38a!important;
  font:400 12px/1.4 system-ui,sans-serif!important;
}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > #imo-inline-chat-status[hidden] {display:none!important;}
/* The visible writing field replaces the duplicate compose launcher; voice stays available. */
html[data-native-us][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > #talk-open {display:none!important;}
html[data-imo-inline-chat="1"] #imo-us-mobile-v128 .imm-search-row,
html[data-imo-inline-chat="1"] #imo-kr-start-v136 .ikr136-search-row {display:none!important;}
html[data-imo-inline-chat="1"] #imo-us-mobile-v128 .imm-header-actions,
html[data-imo-inline-chat="1"] #imo-kr-start-v136 .ikr136-header-actions {min-width:0!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
html[data-imo-inline-chat="1"] #imo-us-mobile-v128 .imm-header,
html[data-imo-inline-chat="1"] #imo-kr-start-v136 .ikr136-header {min-width:0!important;}

@media (max-width:767px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
  html[data-imo-black][data-imo-inline-chat="1"] {width:100%!important;max-width:100%!important;overflow-x:clip!important;}
  html[data-imo-black][data-imo-inline-chat="1"] body {max-width:100%!important;overflow-x:clip!important;}
  html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer {
    position:fixed!important;top:auto!important;left:0!important;right:0!important;
    bottom:max(0px,calc(100dvh - var(--imo-main-height,100dvh) - var(--imo-main-top,0px)))!important;
    width:100%!important;max-width:none!important;transform:none!important;z-index:940!important;
  }
  html[data-imo-black][data-imo-inline-chat="1"] body[data-view="chat"] #bpLayout #app .phone,
  html[data-native-us][data-imo-inline-chat="1"] body #bpLayout #app .phone {
    box-sizing:border-box!important;min-height:0!important;max-height:var(--imo-main-height,100dvh)!important;
    padding-bottom:calc(64px + env(safe-area-inset-bottom))!important;
  }
  html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #chat,
  html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #chat > #feed {
    min-width:0!important;min-height:0!important;box-sizing:border-box!important;
  }
  html[data-native-us][data-imo-black][data-imo-inline-chat="1"][data-imo-us-direct][data-imo-us-chat-view] body #imo-us-direct-ad#imo-us-direct-ad {
    box-sizing:border-box!important;width:calc(100% - 16px)!important;min-width:0!important;max-width:calc(100% - 16px)!important;
    height:82px!important;min-height:82px!important;max-height:82px!important;flex:0 0 82px!important;
    margin:6px 8px!important;padding:7px 11px!important;gap:6px!important;border-radius:12px!important;
  }
  html[data-native-us][data-imo-inline-chat="1"] body #imo-us-direct-ad#imo-us-direct-ad .usd-ad-brand {font-size:23px!important;line-height:1.05!important;}
  html[data-native-us][data-imo-inline-chat="1"] body #imo-us-direct-ad#imo-us-direct-ad .usd-ad-copy {font-size:11px!important;line-height:1.3!important;overflow-wrap:anywhere!important;}
  html[data-native-us][data-imo-inline-chat="1"] body #imo-us-direct-ad#imo-us-direct-ad .usd-ad-badge {font-size:9px!important;line-height:1.2!important;}
  html[data-native-us][data-imo-inline-chat="1"] body #imo-us-direct-ad#imo-us-direct-ad .usd-ad-content {min-width:0!important;gap:2px!important;max-width:calc(100% - 38px)!important;}
  html[data-native-us][data-imo-black][data-imo-inline-chat="1"][data-imo-us-direct][data-imo-us-chat-view] body #imo-us-direct-ad#imo-us-direct-ad[data-collapsed="true"] {
    height:36px!important;min-height:36px!important;max-height:36px!important;flex-basis:36px!important;
  }
  html[data-imo-black][data-imo-inline-chat="1"][data-imo-main-typing="true"] body #imo-us-direct-ad#imo-us-direct-ad,
  html[data-imo-black][data-imo-inline-chat="1"][data-imo-main-typing="true"] body #imo-us-overview-v4 > .imus4-news-banner,
  html[data-imo-black][data-imo-inline-chat="1"][data-imo-main-typing="true"] body #imo-korea-hub-v11,
  html[data-imo-black][data-imo-inline-chat="1"][data-imo-main-typing="true"] body #ix-korea-status-v2 {
    display:none!important;
  }
}

html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button[type="submit"] {font-size:0!important;}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button[type="submit"]::after {content:"↑"!important;font:500 24px/1 system-ui,sans-serif!important;}
html[data-imo-black][data-imo-inline-chat="1"] body #bpLayout #app #composer#composer > button[type="submit"] > * {display:none!important;}

@media (max-width:767px), (max-width:1024px) and (max-height:600px) and (pointer:coarse) {
 html[data-imo-black][data-imo-inline-chat="1"][data-imo-main-typing="true"] body #bpLayout #app #chat #feed #imo-us-overview-v4#imo-us-overview-v4 > .imus4-news-banner {display:none!important;}
}
