/* Header icons only. Native input, results, advertisements and history are outside this file's scope. */
:root{--imo-h3-member:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23d8e7ff%22%20stroke-width%3D%221.7%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3C%2Fsvg%3E");--imo-h3-install:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23d8e7ff%22%20stroke-width%3D%221.7%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E");--imo-h3-us:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2020%22%3E%3Crect%20width%3D%2230%22%20height%3D%2220%22%20rx%3D%222%22%20fill%3D%22white%22%2F%3E%3Cpath%20stroke%3D%22%23bb3040%22%20stroke-width%3D%221.5%22%20d%3D%22M0%20.75h30M0%203.8h30M0%206.9h30M0%2010h30M0%2013.1h30M0%2016.2h30M0%2019.25h30%22%2F%3E%3Cpath%20fill%3D%22%23223966%22%20d%3D%22M0%200h13v10.8H0z%22%2F%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M2%202h1v1H2zm4%200h1v1H6zm4%200h1v1h-1zM4%204h1v1H4zm4%200h1v1H8zM2%206h1v1H2zm4%200h1v1H6zm4%200h1v1h-1zM4%208h1v1H4zm4%200h1v1H8z%22%2F%3E%3C%2Fsvg%3E");--imo-h3-kr:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2020%22%3E%3Crect%20width%3D%2230%22%20height%3D%2220%22%20rx%3D%222%22%20fill%3D%22white%22%2F%3E%3Cg%20transform%3D%22translate%2815%2010%29%20rotate%2833.7%29%22%3E%3Ccircle%20r%3D%225%22%20fill%3D%22%23c83c4c%22%2F%3E%3Cpath%20d%3D%22M-5%200a5%205%200%200%200%2010%200%202.5%202.5%200%200%200-5%200%202.5%202.5%200%200%201-5%200%22%20fill%3D%22%23244b9b%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%23172030%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22m3%205%203-2m-2%204%203-2m-2%204%203-2M22%2013l3-2m-2%204%203-2m-2%204%203-2M3%2015l3%202m-2-4%203%202m-2-4%203%202M22%203l3%202m-2-4%203%202m-2-4%203%202%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");}

/* Keep native text and listeners intact. Only the visible button label becomes an icon. */
#imo90-header-actions{display:flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important}
#imo-us-country-entry,
html[data-native-us] .bp-top-actions>a.bp-text-link,
#imo-header-token-v3,
.bp-chat-heading>#bpMobileAccount,
.bp-top-actions>.imo-member-menu-button,
.bp-chat-heading>.imo-member-menu-button,
#imo90-install,#ws84-settings{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;
 padding:3px!important;margin:0!important;border:1px solid #415878!important;border-radius:9px!important;background-color:#162b45!important;
 color:#d8e7ff!important;font-size:0!important;line-height:1!important;white-space:nowrap!important;text-decoration:none!important;overflow:hidden!important;
}
#imo-us-country-entry::before{content:"";display:block;width:25px;height:18px;background:var(--imo-h3-us) center/contain no-repeat}
html[data-native-us] .bp-top-actions>a.bp-text-link::before{content:"";display:block;width:25px;height:18px;background:var(--imo-h3-kr) center/contain no-repeat}
#imo-header-token-v3 img{display:block;width:24px!important;height:24px!important;object-fit:contain!important}
.bp-chat-heading>#bpMobileAccount::before,.bp-top-actions>.imo-member-menu-button::before,.bp-chat-heading>.imo-member-menu-button::before{content:"";display:block;width:23px;height:23px;background:var(--imo-h3-member) center/contain no-repeat}
#imo90-install>svg,#imo90-install>span{display:none!important}
#imo90-install::before,#ws84-settings::before{content:"";display:block;width:23px;height:23px;background:var(--imo-h3-install) center/contain no-repeat}
@media(max-width:900px){
 html[data-imo-black]:not([data-native-us]) body #bpLayout #app .bp-chat-heading{gap:2px!important;flex-wrap:nowrap!important;min-width:0!important}
 html[data-imo-black]:not([data-native-us]) body #bpLayout #app .bp-chat-heading :is(.bp-mobile-menu,.bp-location-button,.bp-moment-top){box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:4px!important;margin:0!important}
 html[data-native-us] body>.bp-top.imo-member-topbar{flex-wrap:nowrap!important;gap:4px!important;padding:4px 6px!important;min-height:44px!important}
 html[data-native-us] body>.bp-top>.bp-top-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;gap:3px!important;margin-left:auto!important}
 html[data-native-us] body>.bp-top .bp-top-tag{display:none!important}
}
@media(max-width:380px){
 html[data-imo-black]:not([data-native-us]) body #bpLayout #app .bp-chat-heading>.bp-heading-text{display:none!important}
 html[data-native-us] body>.bp-top>.bp-brand{font-size:0!important;gap:0!important;flex:0 0 26px!important;min-width:26px!important;margin:0!important}
 html[data-native-us] body>.bp-top>.bp-brand>.bp-mark{font-size:14px!important;width:26px!important;height:28px!important}
}
/* Respect native account visibility; do not reintroduce a replaced account link. */
#bpMobileAccount[hidden],#bpMobileAccount[data-member-menu-replaced="v1"],.imo-member-menu-button[hidden],#imo90-install[hidden]{display:none!important}
/* Keep the requested icon controls in one row on the supplied 329px phone width. */
@media(max-width:380px){
 html[data-native-us] body>.bp-top.imo-member-topbar{padding-inline:4px!important;gap:3px!important}
 html[data-native-us] body>.bp-top>.bp-top-actions{gap:2px!important}
 html[data-native-us] body>.bp-top>.bp-top-actions>:is(#trip-open,#ws84-settings,#us107-menu-open,.usd-photo){box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:3px!important}
}
/* Match the native install stylesheet's two-ID important declarations. */
#imo90-header-actions #imo-us-country-entry,
#imo90-header-actions #imo90-install{font-size:0!important;padding:3px!important}
/* Specificity is intentionally stronger than the unchanged native header styles,
   which may be loaded later. These rules only format requested icon controls. */
@media(max-width:900px){
 html[data-imo-black]:not([data-native-us]) body #bpLayout #app .bp-chat-heading>:is(#bpMobileAccount,.imo-member-menu-button){box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:3px!important;font-size:0!important}
 html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>:is(a.bp-text-link,.imo-member-menu-button,#ws84-settings){display:inline-flex!important;font-size:0!important}
}
@media(max-width:350px){
 html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar{box-sizing:border-box!important;padding-inline:4px!important;gap:2px!important;flex-wrap:nowrap!important}
 html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar .bp-brand{box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;font-size:0!important;gap:0!important;padding:0!important}
 html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar .bp-brand>.bp-mark{box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;font-size:14px!important;margin:0!important}
 html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions{gap:1px!important;min-width:0!important;flex-wrap:nowrap!important}
 html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>:is(a.bp-text-link,#imo-header-token-v3,.imo-member-menu-button,.usd-photo,#trip-open,#ws84-settings,#us107-menu-open){box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 29px!important;width:29px!important;min-width:29px!important;max-width:29px!important;height:32px!important;min-height:32px!important;padding:1px!important;margin:0!important}
}
/* Native hidden/replaced state still wins over icon presentation. */
html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>:is(a.bp-text-link,#imo-header-token-v3,.imo-member-menu-button,.usd-photo,#trip-open,#ws84-settings,#us107-menu-open)[hidden],
html[data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>:is(a.bp-text-link,#imo-header-token-v3,.imo-member-menu-button,.usd-photo,#trip-open,#ws84-settings,#us107-menu-open)[data-member-menu-replaced="v1"]{display:none!important}

/* Only the redundant main-page planning row and existing menu presentation. */
html[data-imo-black] body[data-view="chat"]:not(.journey33-open) #chat > #imo-visitor-context-v19,
html[data-imo-black] body[data-view="chat"]:not(.journey33-open) #chat > #imo-travel-origin {
  display: none !important;
}
/* Keep the original checkbox label, keyboard action and localized name. */
html[data-imo-black] body #bpLayout #app .phone:has(#imo-nav-state-r26) #chat #imo-rail-open-r25.r26-nav-handle {
  inset: 50% auto auto 0 !important;
  transform: translateY(-50%) !important;
}

/* IMO_MEMBER_ICON_116_BEGIN
   Keep the Korean header's existing member artwork and native account action.
   Explicit flex sizing prevents the icon from collapsing beside translated text. */
html[data-native-us][data-imo-black][data-imo-us-direct] body > .bp-top.imo-member-topbar > .bp-top-actions > button.imo-member-menu-button {
  font-size:0!important;line-height:0!important;padding:0!important;gap:0!important;
  align-items:center!important;justify-content:center!important;overflow:hidden!important;
}
html[data-native-us][data-imo-black][data-imo-us-direct] body > .bp-top.imo-member-topbar > .bp-top-actions > button.imo-member-menu-button::before {
  content:""!important;display:block!important;flex:0 0 23px!important;
  width:23px!important;min-width:23px!important;max-width:23px!important;height:23px!important;
  background:var(--imo-h3-member) center/contain no-repeat!important;pointer-events:none!important;
}
/* IMO_MEMBER_ICON_116_END */

/* IMO_COUNTRY_ICON_117_BEGIN
   The US header links to Korea with the same native flag artwork as the Korean header.
   Retain the destination text in the link for its accessible name. */
html[data-native-us][data-imo-black][data-imo-us-direct] body > .bp-top.imo-member-topbar > .bp-top-actions > a.bp-text-link {
  font-size:0!important;line-height:0!important;padding:0!important;gap:0!important;
  align-items:center!important;justify-content:center!important;overflow:hidden!important;
}
html[data-native-us][data-imo-black][data-imo-us-direct] body > .bp-top.imo-member-topbar > .bp-top-actions > a.bp-text-link::before {
  content:""!important;display:block!important;flex:0 0 25px!important;
  width:25px!important;min-width:25px!important;max-width:25px!important;height:18px!important;
  background:var(--imo-h3-kr) center/contain no-repeat!important;pointer-events:none!important;
}
/* IMO_COUNTRY_ICON_117_END */
