/* Only installed web apps receive chrome; the normal site and Android shell keep their UI. */
html.igold-standalone { overscroll-behavior-y: contain; }
.igold-standalone .igold-app-refresh {
    position: fixed; z-index: 2147483000; top: max(12px, env(safe-area-inset-top, 0px)); left: 50%;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; max-width: calc(100vw - 32px); padding: 10px 16px;
    border: 1px solid #cfac6266; border-radius: 28px; background: #101a2bf5; color: #f5dfad;
    box-shadow: 0 8px 28px #0003; font-weight: 600; font-size: 13px; line-height: 1.5; font-family: inherit;
    opacity: 0; transform: translate(-50%, -90px); pointer-events: none;
    transition: opacity .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent;
}
.igold-standalone .igold-app-refresh[data-state="pulling"],
.igold-standalone .igold-app-refresh[data-state="ready"],
.igold-standalone .igold-app-refresh[data-state="loading"],
.igold-standalone .igold-app-refresh:focus-visible {
    opacity: 1; transform: translate(-50%, var(--igold-pull-offset, 0px)); pointer-events: auto;
}
.igold-standalone .igold-app-refresh:focus-visible { outline: 3px solid #dfb962; outline-offset: 3px; }
.igold-standalone .igold-app-refresh__icon { display: inline-block; font-size: 23px; line-height: 1; }
.igold-standalone .igold-app-refresh[data-state="ready"] { background: #cfac62; color: #101a2b; }
.igold-standalone .igold-app-refresh[data-state="loading"] .igold-app-refresh__icon { animation: igold-refresh-turn .85s linear infinite; }
.igold-standalone .igold-app-status {
    position: fixed; z-index: 2147482999; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 50%;
    box-sizing: border-box; width: max-content; max-width: min(440px, calc(100vw - 28px));
    transform: translateX(-50%); padding: 12px 18px; border: 1px solid #cfac6266;
    border-radius: 18px; background: #101a2bf5; color: #f5dfad; box-shadow: 0 8px 28px #0003;
    font-family: inherit; font-size: 13px; line-height: 1.8; text-align: center; direction: rtl;
    pointer-events: none;
}
.igold-standalone .igold-app-status[hidden] { display: none !important; }
@keyframes igold-refresh-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .igold-standalone .igold-app-refresh { transition: none; }
    .igold-standalone .igold-app-refresh[data-state="loading"] .igold-app-refresh__icon { animation: none; }
}
@media print { .igold-app-refresh, .igold-app-status { display: none !important; } }
