/* The two small invitation bars: "Install the app" and "Get alerts". Colours: the site's own variables only. */
.appbar { position: fixed; left: 8px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1200; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 48px 10px 16px; min-height: 52px; max-width: 560px; margin: 0 auto; box-sizing: border-box; border-radius: 16px; background: var(--msg-surface); color: var(--msg-text); border: 1px solid var(--msg-border); box-shadow: 0 10px 34px color-mix(in srgb, var(--msg-black) 45%, transparent); font-size: 15px; transform: translateY(calc(100% + 40px)); transition: transform .38s cubic-bezier(.2, .85, .25, 1); }
.appbar.is-in { transform: none; }
body:has(.ch-bar) .appbar { bottom: calc(84px + env(safe-area-inset-bottom)); } /* a phone has the footer bar: the invitation sits above it */
@media (prefers-reduced-motion: reduce) { .appbar { transition: none; } }
.appbar[hidden] { display: none; }
.appbar b { font-weight: 800; }
.appbar .ab-t { flex: 1 1 200px; min-width: 0; }
.appbar .ab-go, .ab-card .ab-go { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--msg-accent); color: var(--msg-on-accent); font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.appbar .ab-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--msg-muted); font-size: 24px; cursor: pointer; }
.ab-sheet { position: fixed; inset: 0; z-index: 1350; background: color-mix(in srgb, var(--msg-black) 65%, transparent); display: grid; place-items: end center; }
.ab-card { animation: ab-up .3s cubic-bezier(.2, .85, .25, 1); width: min(100%, 460px); background: var(--msg-surface); color: var(--msg-text); border-radius: 18px 18px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--msg-border); }
.ab-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.ab-card ol { margin: 10px 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.ab-card .ab-go { width: 100%; justify-content: center; }

@keyframes ab-up { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ab-card { animation: none; } }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) and (min-aspect-ratio: 3/2) { .appbar { display: none; } } /* a phone held sideways shows pictures, not invitations */
