.app-release-prompt,
.app-release-prompt * { box-sizing: border-box; }
.app-release-prompt {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: grid;
    place-items: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.app-release-prompt.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.app-release-prompt__backdrop { position: absolute; inset: 0; border: 0; background: rgba(9,16,24,.56); backdrop-filter: blur(12px); }
.app-release-prompt__card {
    position: relative;
    width: min(calc(100% - 36px), 430px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(100,116,139,.2);
    border-radius: 24px;
    color: var(--ink, #172033);
    background: var(--panel, #fff);
    box-shadow: 0 26px 72px rgba(15,23,42,.28);
    transform: translateY(12px) scale(.98);
    transition: transform .2s ease;
}
.app-release-prompt.is-visible .app-release-prompt__card { transform: none; }
[data-theme="dark"] .app-release-prompt__card { color: #f5f7fb; background: #151b27; border-color: rgba(148,163,184,.2); }
.app-release-prompt__body { display: grid; justify-items: center; gap: 12px; text-align: center; }
.app-release-prompt__logo { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.16); }
.app-release-prompt__logo img { width: 100%; height: 100%; object-fit: contain; }
.app-release-prompt__copy { display: grid; gap: 5px; }
.app-release-prompt__copy b { font-size: 1rem; line-height: 1.8; }
.app-release-prompt__copy small { color: var(--muted, #64748b); font-size: .72rem; line-height: 1.9; }
.app-release-prompt__version { min-height: 26px; padding: 4px 10px; border-radius: 9px; color: var(--brand-color, var(--brand, #00a61b)); background: color-mix(in srgb, var(--brand-color, var(--brand, #00a61b)) 10%, transparent); font-size: .68rem; font-weight: 900; }
.app-release-prompt__channels { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.app-release-prompt__channel { min-width: 0; min-height: 52px; padding: 0 10px; border: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; text-decoration: none; font: 900 .74rem inherit; cursor: pointer; }
.app-release-prompt__channel img { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; border-radius: 7px; }
.app-release-prompt__channel.is-bazaar { background: #13a34a; }
.app-release-prompt__channel.is-myket { background: #168fd1; }
.app-release-prompt.is-update .app-release-prompt__channel:is(.is-bazaar,.is-myket) span { font-size: 80%; }
.app-release-prompt__channel.is-direct { background: #273449; }
.app-release-prompt__channel[aria-disabled="true"] { color: #94a3b8; background: #eef2f7; cursor: default; box-shadow: none; }
[data-theme="dark"] .app-release-prompt__channel[aria-disabled="true"] { color: #64748b; background: #202938; }
.app-release-prompt__ios { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.app-release-prompt__ios span { min-height: 82px; padding: 8px 4px; border: 1px solid rgba(100,116,139,.2); border-radius: 15px; display: grid; place-items: center; gap: 6px; background: rgba(148,163,184,.07); }
.app-release-prompt__ios i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--brand-color, var(--brand, #00a61b)); }
.app-release-prompt__ios b { direction: ltr; font-size: .58rem; line-height: 1.4; }
.app-release-prompt__actions { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.app-release-prompt__actions.is-update { grid-template-columns: 1fr; }
.app-release-prompt__actions button { height: 46px; border: 1px solid rgba(100,116,139,.2); border-radius: 14px; color: var(--muted,#64748b); background: transparent; font: 900 .8rem inherit; cursor: pointer; }
.app-release-prompt__actions .is-later { color: var(--brand-color, var(--brand,#00a61b)); background: color-mix(in srgb,var(--brand-color,var(--brand,#00a61b)) 8%,transparent); }
.app-orientation-guard { display: none; }
@media (orientation: landscape) and (pointer: coarse) {
    html.app-portrait-locked body > :not(.app-orientation-guard) { visibility: hidden !important; }
    html.app-portrait-locked .app-orientation-guard { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; padding: 24px; visibility: visible !important; color: #172033; background: #f4f7fb; text-align: center; }
    html.app-portrait-locked .app-orientation-guard > div { display: grid; justify-items: center; gap: 10px; }
    html.app-portrait-locked .app-orientation-guard i { font-size: 2rem; color: var(--brand-color,var(--brand,#00a61b)); }
    html.app-portrait-locked .app-orientation-guard b { font-size: 1rem; }
    html.app-portrait-locked .app-orientation-guard small { color: #64748b; font-size: .72rem; }
}
@media (max-width: 350px) { .app-release-prompt__channels { grid-template-columns: 1fr; } }
