/* Native USA layout and image-card styles remain the visual owners. */
html[data-country-app][data-native-us][data-imo-us-menu-ready="133"] #imo-us-picture-menu .imom133-label{flex:0 0 auto!important;height:auto!important;min-height:104px!important;max-height:none!important;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:12px!important}
html[data-country-app] .imom133-caption{font-size:16px!important;line-height:1.4!important;font-weight:700;white-space:normal!important}
html[data-country-app] .imom133-caption,html[data-country-app] .imom133-description{flex-shrink:0}
html[data-country-app] .imom133-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;color:#bbcede;font-weight:400}
html[data-country-app] .country-map-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #759edb88;border-radius:10px;color:#e8f1fa;text-decoration:none;background:#15374c;font-size:14px;white-space:nowrap}
.country-place-photo{margin:0 0 16px}.country-place-photo img{display:block;width:100%;max-height:280px;object-fit:cover;border-radius:12px}.country-place-photo figcaption{font-size:13px;line-height:1.5;color:#b8cedd;margin-top:6px}
.country-purpose{font-size:16px;line-height:1.75;margin:0 0 14px}.country-map-scope{font-size:13px;color:#a9d2ed;line-height:1.6}
.country-original,.country-japanese-phrases{border:1px solid #759edb44;border-radius:12px;padding:12px 14px;margin:14px 0;background:#12304744}
@media(max-width:767px){html[data-country-app] #imo-us-picture-menu .usd-head{flex-wrap:wrap;gap:8px}.country-detail .dialog-body{padding:14px}.country-purpose{font-size:16px}.country-place-photo img{max-height:220px}}
#country-boot-art{display:none}
html[data-country-startup="pending"] #country-boot-art{display:block;position:fixed;inset:0;width:100%;height:100dvh;z-index:2147483646;background:#081425;pointer-events:none}
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}
html[data-country-app] #vn-detail .dialog-head{padding:12px 16px;top: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}
/* Japan is visible below the USA label inside the same existing country slot. */
a[data-imo-country-picker][data-imo-country-options="JP"]::before{content:'';position:absolute;inset-inline-start:calc(50% - 15px);bottom:2px;width:16px;height:10px;border:1px solid #d7e3ed;border-radius:2px;background:radial-gradient(circle at center,#bc002d 0 30%,#fff 33%);pointer-events:none}
a[data-imo-country-picker]::after{font-size:13px;line-height:12px;bottom:1px;color:#f1cf86;text-shadow:0 1px 2px #0008}
a[data-imo-country-picker][data-imo-country-options="JP"]::after{inset-inline-start:calc(50% + 7px)}
.pc145-countries a[data-imo-country-picker]>span{transform:translateY(-4px)}
.pc145-countries a[data-imo-country-picker]{min-height:40px}
.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="JP"][data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>a.bp-text-link[data-country-menu="JP"]::before{background:radial-gradient(circle at center,#bc002d 0 31%,#fff 33%)!important;border:1px solid #cfdae2;border-radius:2px}

.country-reply-ad{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:120px;aspect-ratio:3/1;margin:14px 0!important;overflow:hidden;border-radius:14px}
#country-source-catalogue{display:none!important}

[data-country="TH"].imo-country-flag,[data-country="TH"].pc145-flag{background:linear-gradient(#a51931 0 16.66%,#f4f5f8 16.66% 33.33%,#2d2a4a 33.33% 66.66%,#f4f5f8 66.66% 83.33%,#a51931 83.33%)!important;border:1px solid #cfdae2;border-radius:2px;min-width:27px;width:27px;height:18px}
html[data-country-app="VN"][data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>a.bp-text-link[data-country-menu="VN"]::before{background:linear-gradient(#a51931 0 16.66%,#f4f5f8 16.66% 33.33%,#2d2a4a 33.33% 66.66%,#f4f5f8 66.66% 83.33%,#a51931 83.33%)!important;border:1px solid #cfdae2;border-radius:2px}

.country-photo-credits{display:block;margin:4px 2px 0;color:#b8cfe5;font:11px/1.5 system-ui,sans-serif;text-align:end;min-height:18px}#imo-us-mobile-v128 .country-photo-credits{grid-column:1/-1;justify-self:end;margin:0;font-size:10px}

[data-country="VN"].imo-country-flag,[data-country="VN"].pc145-flag{background:url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Cpath fill=%22%23da251d%22 d=%22M0 0h30v20H0z%22/%3E%3Cpath fill=%22%23ff0%22 d=%22m15 3 1.65 5.1H22l-4.33 3.15 1.65 5.1L15 13.2l-4.32 3.15 1.65-5.1L8 8.1h5.35z%22/%3E%3C/svg%3E') center/cover no-repeat!important;border:1px solid #cfdae2;border-radius:2px;min-width:27px;width:27px;height:18px}
html[data-country-app="VN"][data-native-us][data-imo-black][data-imo-us-direct] body>.bp-top.imo-member-topbar>.bp-top-actions>a.bp-text-link[data-country-menu="VN"]::before{background:url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Cpath fill=%22%23da251d%22 d=%22M0 0h30v20H0z%22/%3E%3Cpath fill=%22%23ff0%22 d=%22m15 3 1.65 5.1H22l-4.33 3.15 1.65 5.1L15 13.2l-4.32 3.15 1.65-5.1L8 8.1h5.35z%22/%3E%3C/svg%3E') center/cover no-repeat!important}

@media(max-width:767px){html[data-country-app="VN"][data-native-us][data-imo-black][data-imo-us-direct] body #feed .ws82-intro[data-us-direct-intro]:not([hidden]){display:block!important}html[data-country-app="VN"] body #feed .ws82-intro .us87-welcome{display:flex!important}html[data-country-app="VN"] body #feed .ws82-intro .us86-home{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

@media(max-width:359px){html[data-country-app="VN"] body header.bp-top .bp-top-actions #us107-menu-open,html[data-country-app="VN"] body header.bp-top .bp-top-actions #imo-savorip-theme-toggle,html[data-country-app="VN"] body header.bp-top .bp-top-actions .imo-common-exit-button{width:28px!important;min-width:28px!important;padding:1px!important;flex:0 0 28px!important}html[data-country-app="VN"] body header.bp-top .bp-top-actions #us-language{width:68px!important;min-width:0!important;max-width:68px!important}}

@media(max-width:359px){html[data-country-app="VN"][data-native-us].imo-us-mobile-ready[data-imo-us-menu148] body #us107-menu-open#us107-menu-open{width:28px!important;min-width:28px!important;max-width:28px!important;padding:1px!important;flex:0 0 28px!important}html[data-country-app="VN"][data-native-us] body #us-language#us-language{width:68px!important;min-width:0!important;max-width:68px!important;flex:0 0 68px!important}}
