/* Keep one approved background visible until native language selection and weather finish. */
html[data-imo-weather-boot]{background:#071027 url('/static/imo-opening-v161/korea.webp?v=161.0.0') center/contain no-repeat!important}
html[data-imo-weather-boot][data-native-us]{background-image:url('/static/imo-opening-v161/usa.webp?v=161.0.0')!important}
html[data-imo-weather-boot][data-imo-black] body{background:transparent!important}
html[data-imo-weather-boot] body>:not(#imo-entry-r28):not(#imo-kr-start-language-v136):not(#imo-us-mobile-language-v128):not(#imo-weather-page-v3){visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(min-width:768px),(min-width:640px) and (orientation:landscape){
html[data-imo-weather-boot]{background-image:url('/static/imo-opening-v162/korea-pc.webp?v=162.0.0')!important}
html[data-imo-weather-boot][data-native-us]{background-image:url('/static/imo-opening-v162/usa-pc.webp?v=162.0.0')!important}}
html[data-imo-weather-boot] #imo-entry-r28 .r28-entry-figure,
html[data-imo-weather-boot] #imo-entry-r28 .r28-entry-brand,
html[data-imo-weather-boot] #imo-entry-r28 .r28-entry-actions{display:none!important}
#imo-entry-r28:not([data-imo-language-visible="1"]) .r28-entry-panel,
#imo-kr-start-language-v136:not([data-imo-language-visible="1"]) .ikr136-entry-panel,
#imo-us-mobile-language-v128:not([data-imo-language-visible="1"]) .imm-entry-panel{opacity:0;visibility:hidden;pointer-events:none;animation:imo-language-fallback-fix1 0s 4.5s forwards}
@keyframes imo-language-fallback-fix1{to{opacity:1;visibility:visible;pointer-events:auto}}
html body :is(#imo-entry-r28,#imo-kr-start-language-v136,#imo-us-mobile-language-v128) .imo-opening-art,
html body :is(#imo-entry-r28,#imo-kr-start-language-v136,#imo-us-mobile-language-v128) .imo-opening-art img,
html body :is(#imo-entry-r28,#imo-kr-start-language-v136,#imo-us-mobile-language-v128) .imo-opening-art picture{animation:none!important;transition:none!important;transform:none!important;opacity:1!important}
html body dialog#imo-weather-page-v3{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;background:#102a42!important;overflow:hidden!important;z-index:2147483500!important;color:#f3f7fc;visibility:visible!important;opacity:1!important;pointer-events:auto!important;animation:none!important;transition:none!important;transform:none!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-imo-weather-v3-state="weather"] body>dialog#imo-weather-page-v3:not(#imo-entry-r28):not(#imo-entry-recovery-r57){visibility:visible!important;opacity:1!important;pointer-events:auto!important}
html body dialog#imo-weather-page-v3::backdrop{background:#102a42;backdrop-filter:none}
html body dialog#imo-weather-page-v3 iframe[data-imo-weather-frame]{display:block!important;position:absolute!important;inset:0!important;border:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;background:#102a42;transform:none!important}
html body dialog#imo-weather-page-v3 :not(iframe[data-imo-weather-frame]):not([data-imo-weather-owned]):not(:has(iframe[data-imo-weather-frame])){display:none!important}
html body dialog#imo-weather-page-v3 :has(iframe[data-imo-weather-frame]){display:contents!important}
html body dialog#imo-weather-page-v3 [data-imo-weather-owned][hidden]{display:none!important}
.imo-weather-retry-continue{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);z-index:2;padding:14px 26px;border:1px solid #d9e5ef77;border-radius:24px;background:#081b33;color:white;min-height:48px;cursor:pointer}
#imo-chat-weather-v3{pointer-events:none!important;z-index:2147482000}

/* Only the existing main chat receives this typography. Opening and weather are separate. */
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed#feed{
 font-size:14px!important;line-height:1.5!important;letter-spacing:0!important;
 padding:10px 12px!important;
}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed :is(.bubble,.imo-r8-bubble,.imo-r6-bubble,.bp-msg,.user,.msg-user,.message-user){
 font-size:14px!important;line-height:1.5!important;font-weight:400!important;
 letter-spacing:0!important;padding:8px 11px!important;margin-top:5px!important;margin-bottom:5px!important;
}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed :is(.bubble,.imo-r8-bubble,.imo-r6-bubble,.bp-msg) :is(p,li){
 font-size:inherit!important;line-height:1.5!important;
}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed :is(.bubble,.imo-r8-bubble,.imo-r6-bubble,.bp-msg) p{margin:0 0 7px!important}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed :is(.bubble,.imo-r8-bubble,.imo-r6-bubble,.bp-msg) p:last-child{margin-bottom:0!important}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed :is(.bubble,.bp-msg,.card,.imo-r8-card,.imo-r6-card) :is(h2,h3){
 font-size:15px!important;line-height:1.4!important;font-weight:600!important;margin:0 0 7px!important;
}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed #bpWelcome{padding-top:8px!important;padding-bottom:8px!important}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed #bpWelcome h2{font-size:21px!important;line-height:1.35!important;margin-bottom:8px!important}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed #bpWelcome>p{font-size:13px!important;line-height:1.5!important;margin-bottom:12px!important}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #chat #feed .bp-suggestion{font-size:13px!important;line-height:1.4!important;min-height:48px!important;padding:9px 10px!important}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #composer#composer#composer{
 min-height:54px!important;padding-top:5px!important;padding-bottom:5px!important;
}
html[data-imo-chat-polish="3.3"] body #bpLayout #app #composer#composer#composer #msg{
 height:44px!important;line-height:22px!important;font-weight:400!important;letter-spacing:0!important;padding-top:4px!important;padding-bottom:4px!important;
}
@media(min-width:1024px) and (hover:hover){
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-hero{height:clamp(184px,23vh,220px)!important;min-height:184px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-hero .pc145-welcome{padding:24px 28px 14px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-hero h1{font-size:30px!important;line-height:1.28!important;font-weight:600!important;letter-spacing:-.025em!important;margin:0 0 8px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-hero p{font-size:14px!important;line-height:1.5!important;margin:0 0 10px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters{padding:0 28px 12px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters .pc145-starter-heading{margin:0 0 8px!important;gap:8px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters h2{font-size:15px!important;line-height:1.4!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters .pc145-starter-heading p{font-size:11px!important;line-height:1.4!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters button{height:108px!important;padding:10px 12px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters button strong{font-size:15px!important;line-height:1.35!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root #imo-pc145-starters button small{margin-top:3px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root[data-conversation="true"] #imo-pc145-hero{height:76px!important;min-height:76px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root[data-conversation="true"] #imo-pc145-hero .pc145-welcome{padding:11px 24px!important}
 html[data-imo-chat-polish="3.3"] #imo-pc145-root[data-conversation="true"] #imo-pc145-hero h1{font-size:20px!important;line-height:1.3!important;margin-bottom:4px!important}
 html[data-imo-chat-polish="3.3"] body #bpLayout #app #composer#composer#composer #msg{font-size:14px!important}
}
/* Keep native mobile input at 16px to avoid browser focus zoom; trim its surrounding space. */
@media(max-width:1023px),(hover:none){
 html[data-imo-chat-polish="3.3"] body #bpLayout #app #composer#composer#composer #msg{font-size:16px!important}
}
