/* Native-app feel: prevent iOS Safari's automatic form-field zoom. */
@media (max-width: 1024px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  select,
  textarea,
  [contenteditable="true"] {
    font-size: 16px !important;
  }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.pwa-install-button {
  position: fixed; z-index: 25; right: 16px; bottom: max(22px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid #d7ff8a;
  border-radius: 999px; padding: 9px 12px; background: #062d22; color: #fff;
  box-shadow: 0 4px 14px #062d2225; font: 700 12px 'DM Sans', sans-serif; cursor: pointer;
}
.pwa-install-button svg { width: 17px; height: 17px; flex: none; }
.pwa-install-button[hidden] { display: none !important; }
.pwa-install-help { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 22px; background: #061d16a8; }
.pwa-install-help[hidden] { display: none !important; }
.pwa-install-card { width: min(100%, 360px); padding: 24px; border-radius: 18px; background: #fff; color: #17221c; box-shadow: 0 18px 70px #0003; font: 14px/1.55 'DM Sans', sans-serif; }
.pwa-install-card h2 { margin: 0 0 10px; font: 800 20px 'Manrope', sans-serif; }
.pwa-install-card button { margin-top: 16px; border: 0; border-radius: 9px; background: #062d22; color: #fff; padding: 11px 16px; font-weight: 700; }
@media (display-mode: standalone) { .pwa-install-button { display: none !important; } }
@media (max-width: 820px) { .pwa-install-button { bottom: calc(88px + env(safe-area-inset-bottom)); right: 12px; padding:8px 10px; } }
/* Quiet app-native pull-to-refresh and last-updated label. */
.mr-refresh-indicator{position:fixed;z-index:9998;top:-46px;left:50%;transform:translate(-50%,0);display:flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid #e6eee7;border-radius:999px;background:#fff;color:#28533b;box-shadow:0 6px 22px #062d2212;font:600 11px 'DM Sans',sans-serif;transition:transform .18s ease,opacity .18s ease;opacity:0;pointer-events:none}
.mr-refresh-indicator.pulling,.mr-refresh-indicator.refreshing{opacity:1}
.mr-refresh-spinner{width:14px;height:14px;border:2px solid #dce9dc;border-top-color:#176842;border-radius:50%;display:inline-block}
.mr-refresh-indicator.refreshing .mr-refresh-spinner{animation:mr-refresh-spin .65s linear infinite}
.mr-refresh-stamp{padding:0 18px 4px;color:#8a978e;font:500 10px 'DM Sans',sans-serif;text-align:right}
.topbar .mr-refresh-stamp{padding:0;margin-left:auto;margin-right:8px;white-space:nowrap}
@keyframes mr-refresh-spin{to{transform:rotate(360deg)}}
@media(min-width:821px){.mr-refresh-stamp{padding:0 0 6px}.mr-refresh-indicator{display:none}}

/* Keep the install affordance out of the primary form action and system gesture area. */
.pwa-install-button{bottom:calc(18px + env(safe-area-inset-bottom));max-width:min(220px,calc(100vw - 24px))}
@media(max-width:600px){.pwa-install-button{bottom:calc(82px + env(safe-area-inset-bottom));right:12px}}
