/* Native USA layout and image-card styles remain the visual owners. */
html[data-country-app] .bp-brand-mark{font-size:28px;font-weight:900;letter-spacing:-2px}
html[data-country-app] .country-picker{font:inherit;color:inherit;background:transparent;border:1px solid #759edb66;border-radius:12px;padding:8px 10px;white-space:nowrap;min-height:40px}
html[data-country-app] .country-home{font-size:13px;white-space:nowrap}
html[data-country-app] .country-promo-photo{width:72px;height:78px;object-fit:cover;border-radius:10px}
html[data-country-app] .country-overview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
html[data-country-app] .country-overview-head h2{font-size:17px;margin:0}
html[data-country-app] .country-overview .bp-tabs{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;background:transparent;border:0;overflow:visible!important}
html[data-country-app] .country-overview .bp-tabs>button{width:100%!important;max-width:none!important;min-width:0!important;flex:none!important;white-space:normal!important}
html[data-country-app] .bp-left h1{font-size:clamp(24px,2.35vw,34px);line-height:1.25;word-break:keep-all}
html[data-country-app] .country-overview .imus4-card{display:flex;flex-direction:column;text-align:start;border:1px solid #759edb40;border-radius:16px;overflow:hidden;background:#10283d;color:inherit;padding:0;min-width:0}
html[data-country-app] .country-overview .imus4-card img{width:100%;height:120px;object-fit:cover}
html[data-country-app] .country-overview .imus4-card>span{padding:12px;display:grid;gap:6px}
html[data-country-app] .country-overview .imus4-card small{font-size:13px;line-height:1.45;color:#b6ccdc}
html[data-country-app] .country-overview .imus4-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
html[data-country-app] [data-country-copy=headline]{white-space:pre-line}
html[data-country-app] .country-source-note{font-size:12px;line-height:1.5;color:#a8becd}
html[data-country-app] #imo-us-picture-menu{width:min(1120px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);box-sizing:border-box}
html[data-country-app] #imo-us-picture-menu .usd-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
html[data-country-app] #imo-us-picture-menu .country-source-note{margin:4px 0 12px}
html[data-country-app] #country-toast:not(:empty){position:fixed;inset:auto 14px 90px;max-width:500px;margin:auto;z-index:2147483646;background:#15364c;border:1px solid #a8c9e5;border-radius:12px;padding:14px;color:white}
.country-detail{color:#eef6ff;background:#091a29;border:1px solid #759edb66;border-radius:16px;padding:0;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.country-detail::backdrop{background:#020d18cc}
.country-detail .dialog-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#102438;padding:12px 16px;z-index:1}
.country-detail .dialog-head h2{font-size:20px;line-height:1.4;margin:0}
.country-detail .dialog-body{padding:18px;line-height:1.65}
.country-detail .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:6px;border:1px solid #759edb70;border-radius:11px;padding:10px 14px;background:#132e46;color:inherit;font:inherit;text-decoration:none}
.country-detail .btn.primary{background:#1b5e9c;border-color:#86c4ff}
.country-detail .facts{display:grid;gap:4px}.country-detail dt{color:#b6ccdc;margin-top:14px;font-size:13px}.country-detail dd{margin:0;overflow-wrap:anywhere}
.country-detail .native-address{display:block;color:#9dd6ff;margin-top:6px}.country-detail .important{border-inline-start:3px solid #e6c486;padding:10px 14px;background:#e6c4860b}.country-detail .important h3{font-size:16px;margin:0}.country-detail .important p{margin:8px 0 0}
.country-detail .dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.country-detail .phrase-card{border:1px solid #759edb44;border-radius:12px;padding:14px;margin:10px 0;background:#102b40}.country-detail .meaning{color:#b6ccdc;margin:0}.country-detail .japanese{font-size:22px;line-height:1.8}.country-detail .source-block{font-size:13px;color:#b6ccdc;border-top:1px solid #759edb44;margin-top:18px;padding-top:14px}.country-detail .source-block a{display:block;color:#9dd6ff}
/* The caret occupies existing vertical padding, so header width never grows. */
#imo90-header-actions #imo-us-country-entry[data-imo-country-picker],a[data-imo-country-picker]{position:relative!important}
#imo-us-country-entry[data-imo-country-picker]::after,a[data-imo-country-picker]::after{content:'▾';position:absolute;inset-inline-start:50%;bottom:0;font-size:8px;line-height:8px;transform:translateX(-50%);pointer-events:none}
.imo-country-menu{box-sizing:border-box;position:fixed;z-index:2147483645;min-width:180px;max-width:calc(100vw - 24px);background:#102438;color:#f3f8ff;border:1px solid #759edb88;border-radius:14px;padding:6px;box-shadow:0 14px 48px #0008}
.imo-country-menu[hidden]{display:none}.imo-country-menu a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;padding:10px 14px;border-radius:10px;font:600 14px/1.45 system-ui,sans-serif;color:inherit;text-decoration:none}.imo-country-menu a:hover,.imo-country-menu a:focus-visible{background:#244867;outline:2px solid #a5d6ff;outline-offset:-2px}
@media(max-width:767px){html[data-country-app] .country-overview{display:none}html[data-country-app] .bp-top{gap:6px;padding:8px 12px}html[data-country-app] .bp-brand>span:last-child{display:none}html[data-country-app] .bp-top-actions{gap:6px}html[data-country-app] .lang-select>span{display:none}html[data-country-app] #us-language{max-width:128px}html[data-country-app] .country-home{font-size:12px}.country-detail{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;padding-bottom:env(safe-area-inset-bottom)}.country-detail .dialog-actions .btn{flex:1 1 42%}.country-detail .dialog-head h2{font-size:18px}}
html[data-country-app][dir=rtl] .imm-caption,html[data-country-app][dir=rtl] .imom133-label{direction:rtl;text-align:right}
/* Japan uses the existing USA welcome/header and the current native PC frame. */
.imo-country-menu a{justify-content:flex-start}
.imo-country-flag{display:inline-block;flex:none;width:27px;height:18px;font-size:20px;line-height:18px}
[data-country="JP"].imo-country-flag,[data-country="JP"].pc145-flag{background:radial-gradient(circle at center,#bc002d 0 31%,#fff 33%);border:1px solid #cfdae2;border-radius:2px;min-width:27px;width:27px;height:18px}
html[data-country-app] #imo-pc145-root .pc145-flag[data-country="JP"]{background:radial-gradient(circle at center,#bc002d 0 31%,#fff 33%)!important;border:1px solid #cfdae2!important;border-radius:2px!important;width:27px!important;min-width:27px!important;height:18px!important}
html[data-country-app][data-imo-pc145] #imo-pc145-root #bpLayout #app>.phone>.bp-tabs{display:none!important}
html[data-country-app] .bp-top .bp-text-link[data-country-menu="JP"]{display:inline-flex!important;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px 5px 8px!important;box-sizing:border-box;font-size:11px}
html[data-country-app] .bp-top .bp-text-link[data-country-menu="JP"]::before{content:'';display:inline-block;width:24px;height:16px;background:radial-gradient(circle at center,#bc002d 0 31%,#fff 33%);border:1px solid #d7e3ed;border-radius:2px}
html[data-country-app] .bp-top .bp-text-link[data-country-menu="JP"]{font-size:0}
html[data-country-app] .country-install{display:inline-flex;align-items:center;justify-content:center;border:1px solid #99afc455;border-radius:10px;color:inherit;background:transparent;min-width:34px;min-height:34px;padding:6px}
html[data-country-app] .country-install svg{width:20px;height:20px}
html[data-country-app][data-country-home="true"] #messages .bubble{display:none!important}
html[data-country-app][data-country-home="true"] .ws82-intro{display:block!important}
html[data-country-app][data-country-home="false"] .ws82-intro{display:none!important}
html[data-country-app] .country-overview[hidden]{display:none!important}
html[data-imo-pc145][data-country-app] .bp-top{display:none!important}
html[data-imo-pc145][data-country-app] #imo-pc145-root .ws82-intro{display:none!important}
html[data-country-app] .ws82-intro{margin:16px 0 12px;border:0;background:transparent;box-shadow:none;padding:0}
html[data-country-app] .us87-welcome{display:flex;gap:14px;align-items:center;margin-bottom:18px}
html[data-country-app] .us87-welcome>img{width:68px;height:82px;object-fit:cover;object-position:50% 10%;border-radius:16px}
html[data-country-app] .us87-welcome strong{font-size:19px;line-height:1.5}
html[data-country-app] .us87-welcome p{font-size:14px;line-height:1.7;color:#c7d9e8;margin:6px 0 0}
html[data-country-app] .us86-home{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html[data-country-app] .us86-home .us86-photo{min-width:0;display:flex;flex-direction:column;gap:0;padding:0;border:1px solid #759edb55;border-radius:12px;overflow:hidden;background:#132c40;color:#f5f5ed;text-align:start}
html[data-country-app] .us86-home .us86-photo img{width:100%;height:96px;object-fit:cover}
html[data-country-app] .us86-home .us86-photo strong{padding:9px 8px;font-size:14px;line-height:1.45}
@media(max-width:767px){
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar{display:flex!important;position:relative!important;flex:none!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0!important;padding:7px 10px!important;justify-content:space-between!important;min-height:56px!important;transform:none!important}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar .bp-brand{position:static!important;inset:auto!important;display:flex!important;flex:none!important;width:auto!important;margin:0!important;padding:0!important;font-size:25px!important}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar .bp-top-actions{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:1!important;width:auto!important;margin:0!important;gap:4px!important}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar .bp-top-actions>*{position:static!important;inset:auto!important;transform:none!important}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar .imo-member-menu-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:32px!important;min-width:32px!important;height:34px!important;padding:5px!important;border:1px solid #829db255!important;border-radius:10px!important;font-size:0!important;background:transparent!important;color:#e4edf5!important}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar .imo-member-menu-button::before{content:'';display:block;width:22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4edf5' stroke-width='1.65'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 22v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center/contain no-repeat}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar a.bp-text-link[data-country-menu="JP"]{display:inline-flex!important;position:relative!important;align-items:center!important;justify-content:center!important;flex:none!important;min-width:28px!important;width:28px!important;height:34px!important;padding:4px 0 8px!important;font-size:0!important}
 html[data-country-app][data-native-us][data-imo-black] body>header.bp-top.imo-member-topbar #us107-menu-open{display:flex!important;flex:none!important;width:32px!important;min-width:32px!important;height:34px!important;padding:5px!important;margin:0!important}
 html[data-country-app][data-native-us][data-imo-black] body{height:100dvh!important;min-height:0!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout{display:flex!important;flex:1 1 0!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout>.bp-side{display:none!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app{display:block!important;flex:1 1 0!important;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app>.phone{display:flex!important;flex-direction:column!important;min-height:0!important;width:100%!important;height:100%!important;padding:0!important;gap:0!important;overflow:hidden!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app>.phone>.topbar{display:none!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app #chat{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-width:0!important;min-height:0!important;width:100%!important;height:auto!important;padding:0!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app #chat #feed{display:block!important;position:relative!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:16px 14px!important;overflow:auto!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app #chat #feed .conversation,html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app #chat #messages{display:block!important;width:100%!important;min-width:0!important;margin:0!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app #chat .ws82-intro{width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0 0 12px!important}
 html[data-country-app][data-native-us][data-imo-black] body #bpLayout #app #composer{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;flex:none!important;position:relative!important;width:calc(100% - 20px)!important;margin:6px 10px max(8px,env(safe-area-inset-bottom))!important;min-height:48px!important}
 html[data-country-app] .bp-top{display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:5px!important;padding:7px 10px!important;min-height:56px!important;box-sizing:border-box}
 html[data-country-app] .bp-top .bp-brand{flex:none!important;min-width:0!important;font-size:25px!important;gap:0!important}
 html[data-country-app] .bp-top .bp-top-tag,html[data-country-app] .bp-top .bp-mark{display:none!important}
 html[data-country-app] .bp-top-actions{display:flex!important;flex:1;justify-content:flex-end;align-items:center;gap:4px!important;min-width:0}
 html[data-country-app] .bp-top #us-language{max-width:86px!important;width:86px!important;min-width:0!important;padding:6px!important;font-size:13px!important;min-height:34px}
 html[data-country-app] .bp-top .imo-member-menu-button,html[data-country-app] .bp-top .imo-common-exit-button,html[data-country-app] .bp-top .us107-menu-open{flex:none!important;min-width:32px!important;width:32px!important;height:34px!important;padding:5px!important}
 html[data-country-app] .topbar .imo-member-menu-button{display:none!important}
 html[data-country-app] .phone>.topbar{display:none!important}
 html[data-country-app] #feed{padding-top:12px!important}
 html[data-country-app] #composer .send{display:flex!important}
 html[data-country-app] #composer{gap:6px!important}
 html[data-country-app] #composer .us107-launch-mic{display:flex!important;align-items:center;justify-content:center;flex:none}
 html[data-country-app] #composer .us107-launch-mic svg{width:20px;height:20px}
 html[data-country-app] .phone>.bp-tabs{display:none!important}
}
@media(max-width:350px){html[data-country-app] .country-install{display:none}html[data-country-app] .bp-top #us-language{width:75px!important;max-width:75px!important}}
/* Keep the native controls horizontal even on a short, narrow phone. */
@media(max-width:767px) and (max-height:600px){
 html[data-country-app] #imo-us-mobile-v128 .imm-footer{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:4px 12px 8px!important}
 html[data-country-app] #imo-us-mobile-v128 .imm-controls{display:flex!important;justify-content:center!important;align-items:center!important;gap:14px!important;min-height:34px!important;flex:none!important}
 html[data-country-app] #imo-us-mobile-v128 .imm-hint{display:none!important}
 html[data-country-app] #imo-us-mobile-v128 .imm-view-actions148{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;flex:none!important}
 html[data-country-app] #imo-us-mobile-v128 .imm-view-actions148>button{min-height:40px!important;width:100%!important;max-width:none!important;white-space:normal!important;word-break:keep-all!important;padding:7px 8px!important}
}
