/* Android install prompt. Native dialog owns background inertness and keyboard focus. */
.install-prompt {
    position: fixed; inset: 0; margin: auto; width: min(576px, calc(100vw - 32px));
    height: fit-content; max-width: none; max-height: calc(100dvh - 32px); overflow: auto;
    overscroll-behavior: contain; display: grid; grid-template-columns: 158px minmax(0, 1fr);
    align-items: center; gap: 22px; padding: 27px 30px 26px 20px; border: 1px solid #e8c9a9;
    border-radius: 27px; color: #19314e; font-family: var(--font);
    background: radial-gradient(ellipse at 8% 25%, #ffe1b5 0, transparent 55%), linear-gradient(125deg, #fff3e4, #fffdfa 75%);
    box-shadow: 0 22px 70px #3f2f252d, 0 3px 12px #5e392310;
    animation: install-prompt-enter .25s ease-out both;
}
.install-prompt:not([open]) { display: none; }
.install-prompt::backdrop { background: #14273d52; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.install-prompt :is(a, button):focus-visible { outline: 3px solid #b47545; outline-offset: 3px; }
.install-prompt-close { position: absolute; top: 7px; right: 7px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #69747a; display: grid; place-items: center; padding: 0; cursor: pointer; }
.install-prompt .install-prompt-close:focus-visible { outline: 2px solid #b47545; outline-offset: -6px; }
.install-prompt-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.install-prompt-copy { min-width: 0; }
.install-prompt-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: #7e6248; line-height: 1.5; }
.install-prompt-brand img { height: 25px; width: 25px; border-radius: 7px; }
.install-prompt-brand > span { font: 600 1rem/1.5 Arial, sans-serif; }
.install-prompt-brand small { font-size: .8125rem; color: #8b7c6b; padding-left: 8px; border-left: 1px solid #dfd0bd; }
.install-prompt h2 { font: 700 1.9375rem/1.2 "Amindo Heading", var(--font); margin: 0 0 12px; color: #19314e; overflow-wrap: anywhere; }
.install-prompt-copy > p:not(.install-prompt-footnote) { font-size: 1.0625rem; line-height: 1.7; color: #66727a; margin: 0 0 18px; overflow-wrap: anywhere; }
.install-prompt-store { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; width: 100%; padding: 10px 14px; border: 1px solid #19334c; border-radius: 13px; color: white; background: #1e3852; box-shadow: 0 5px 14px #19314e19; font-size: 1.125rem; line-height: 1.5; text-decoration: none; text-align: center; }
.install-prompt-store:hover { background: #294966; color: white; }
.install-prompt-store svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.install-prompt-footnote { font-size: .8125rem; line-height: 1.6; color: #727d82; margin: 10px 0 0; text-align: center; }
.install-demo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; min-width: 0; }
.install-phone { width: 134px; height: 260px; flex-shrink: 0; padding: 5px; border-radius: 25px; background: #203247; box-shadow: 8px 13px 18px #7b5b4326; transform: rotate(-5deg); }
.install-phone-screen { height: 100%; position: relative; overflow: hidden; border-radius: 19px; background: radial-gradient(ellipse at 83% 22%, #f9cd97 0, transparent 50%), linear-gradient(160deg, #e7d3be, #e2c09d 58%, #8496a2); padding: 0 9px; }
.install-phone-camera { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); height: 8px; width: 33px; border-radius: 8px; background: #203247; }
.install-phone-brand { display: block; text-align: center; margin-top: 37px; color: #365169; font: 400 19px/1.5 Arial, sans-serif; }
.install-widget { margin-top: 16px; padding: 11px 9px; border: 1px solid #ffffffa1; border-radius: 17px; background: linear-gradient(130deg, #fffdf9e8, #ffebcfde); box-shadow: 0 5px 12px #70533c12; }
.install-widget-location { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 1.6; color: #365169; }
.install-widget-weather { display: flex; align-items: center; justify-content: center; min-height: 62px; gap: 4px; }
.install-widget-weather strong { font-size: 34px; line-height: 1.5; font-weight: 400; letter-spacing: -2px; color: #284155; }
.install-widget-weather :is(img, .wx-icon) { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.install-widget-weather img:only-child { width: 72px; height: 72px; }
.install-widget-caption { display: block; font-size: 8px; line-height: 1.5; color: #617383; overflow-wrap: anywhere; }
.install-phone-home { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); height: 3px; width: 38px; border-radius: 3px; background: #243f515c; }
.install-demo-label { font-size: .75rem; line-height: 1.6; color: #8c6b4b; text-align: center; }
@keyframes install-prompt-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 650px) {
    .install-prompt { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); grid-template-columns: 86px minmax(0, 1fr); gap: 13px; padding: 25px 17px 22px 12px; border-radius: 23px; }
    .install-prompt-close { top: 0; right: 0; }
    .install-prompt-close svg { width: 16px; height: 16px; }
    .install-prompt-brand { gap: 6px; margin-bottom: 8px; }
    .install-prompt-brand img { width: 20px; height: 20px; border-radius: 5px; }
    .install-prompt-brand > span { font-size: .875rem; }
    .install-prompt-brand small { display: none; }
    .install-prompt h2 { font-size: 1.4375rem; line-height: 1.2; margin-bottom: 9px; }
    .install-prompt-copy > p:not(.install-prompt-footnote) { font-size: .9375rem; line-height: 1.6; margin-bottom: 14px; }
    .install-prompt-store { min-height: 44px; font-size: 1rem; gap: 7px; padding: 7px 9px; border-radius: 10px; }
    .install-prompt-store svg { width: 17px; height: 17px; }
    .install-prompt-footnote { font-size: .75rem; margin-top: 8px; }
    .install-phone { width: 85px; height: 166px; padding: 3.5px; border-radius: 17px; }
    .install-phone-screen { border-radius: 12px; padding-inline: 5px; }
    .install-phone-camera { height: 6px; width: 26px; top: 4px; }
    .install-phone-brand { margin-top: 24px; font-size: 13px; }
    .install-widget { margin-top: 10px; padding: 7px 6px; border-radius: 11px; }
    .install-widget-location { font-size: 7px; }
    .install-widget-weather { min-height: 37px; gap: 0; }
    .install-widget-weather strong { font-size: 25px; letter-spacing: -1px; }
    .install-widget-weather :is(img, .wx-icon) { width: 33px; height: 33px; }
    .install-widget-weather img:only-child { width: 46px; height: 46px; }
    .install-widget-caption { font-size: 6px; }
    .install-phone-home { width: 27px; height: 2px; bottom: 3px; }
    .install-demo { gap: 10px; }
    .install-demo-label { font-size: .6875rem; }
}
@media (max-width: 370px) {
    .install-prompt { grid-template-columns: 73px minmax(0, 1fr); gap: 10px; padding-left: 10px; padding-right: 14px; }
    .install-phone { width: 73px; height: 150px; }
    .install-prompt h2 { font-size: 1.3125rem; }
    .install-prompt-store { font-size: .9375rem; }
    .install-prompt-copy > p:not(.install-prompt-footnote) { font-size: .875rem; }
    .install-widget-weather strong { font-size: 21px; }
    .install-widget-weather .wx-icon { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .install-prompt { animation: none; } }
@media print { .install-prompt { display: none !important; } }
