/* Mobile access notices and the trial export picker. */
#mobileComing, #mobileRotateNotice {
  position: fixed; inset: 0; z-index: 2147483647; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem; overflow: auto; background: #1a2540;
  color: #fff; text-align: center; font-family: 'Sora', sans-serif;
}
#mobileComing h1, #mobileRotateNotice h1 { font-size: 1.5rem; line-height: 1.25; }
#mobileComing p, #mobileRotateNotice p { max-width: 22.5rem; color: #e0e6f0; font-size: 0.9375rem; line-height: 1.6; }
#mobileComing button { min-height: 3rem; padding: 0.75rem 1.25rem; border: 0; border-radius: 0.625rem; background: #fff; color: #1a2540; font: 600 0.9375rem 'Sora', sans-serif; cursor: pointer; }
html.mobile-access-blocked { overflow: hidden; }
#mobFilterSheet .mob-filter-section { display: block; font-size: 0.8125rem; color: #475569; text-transform: none; letter-spacing: 0; }
#mobSpecSelect { width: 100%; min-height: 3rem; margin: 0 0 1.25rem; padding: 0.75rem; border: 1px solid #b8c3d4; border-radius: 0.625rem; background: #fff; color: #1a2540; font: 1rem 'Sora', sans-serif; }
#mobSpecSelect:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
#trialSelectModal .trial-export-dialog { width: 100%; max-width: 31.25rem; padding: 0; overflow: hidden; border-radius: 1.25rem; max-height: 90vh; max-height: 90dvh; text-align: left; }
.trial-export-header { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; padding: 1.25rem; background: #1a2540; color: #fff; flex-shrink: 0; }
#trialSelectTitle { color: #fff; margin: 0; font-size: 1.25rem; line-height: 1.3; }
#trialSelectSub { margin: 0.375rem 0 0; font-size: 0.8125rem; color: #e0e6f0; line-height: 1.5; }
#trialSelectModal button { font-family: 'Sora', sans-serif; cursor: pointer; }
#trialSelectModal .trial-export-close { width: 2.75rem; height: 2.75rem; flex-shrink: 0; border: 0; border-radius: 0.625rem; background: #34415c; color: white; font-size: 1.75rem; line-height: 1; }
#trialSelectScope { flex-shrink: 0; }
#trialSelectScope label { padding: 0.625rem; border: 1px solid #d7deea; border-radius: 0.625rem; font-size: 0.8125rem; }
#trialSelectScope label:has(:checked) { background: #edf3ff; border-color: #2563eb; }
#trialSelectScope input { border-radius: 50%; }
.trial-export-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem; padding: 0.5rem 1.25rem; flex-shrink: 0; border-bottom: 1px solid #e5eaf1; }
.trial-export-selection label { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
#trialSelectCount { font-size: 0.75rem; color: #52617a; }
#trialSelectAll, #trialSelectList input { width: 1.375rem; height: 1.375rem; accent-color: #2563eb; flex-shrink: 0; }
#trialSelectList { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1.25rem 1rem; flex: 1 1 auto; line-height: 1.5; color: #475569; }
#trialSelectList .trial-export-row { min-height: 4.5rem; gap: 0.75rem; padding: 0.875rem 0; align-items: flex-start; }
#trialSelectList .trial-export-row span { min-width: 0; overflow-wrap: anywhere; }
#trialSelectList strong { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
#trialSelectList small { font-size: 0.75rem; color: #52617a; }
#trialSelectList small::before { display: none; }
.trial-export-footer { display: flex; gap: 0.625rem; padding: 1rem 1.25rem; border-top: 1px solid #e5eaf1; flex-shrink: 0; background: #fff; }
.trial-export-footer button { min-height: 3rem; padding: 0.75rem 1rem; border: 0; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 600; }
.trial-export-cancel { background: #edf0f5; color: #334155; }
#trialSelectDownloadBtn { flex: 1; background: #2563eb; color: #fff; }
#trialSelectRetry { margin: 0.5rem 1.25rem 1rem; min-height: 2.75rem; border: 1px solid #b8c3d4; border-radius: 0.625rem; background: #fff; color: #1a2540; flex-shrink: 0; }
#trialSelectModal button:focus-visible, #trialSelectModal input:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #trialSelectModal { padding: 0; align-items: flex-end; }
  #trialSelectModal .trial-export-dialog { width: 100%; max-width: none; max-height: 94vh; max-height: 94dvh; height: 94vh; height: 94dvh; border-radius: 1.25rem 1.25rem 0 0; }
  #trialSelectScope { grid-template-columns: 1fr; margin-top: 0.75rem; gap: 0.375rem; }
  #trialSelectScope label { min-height: 2.75rem; }
  .trial-export-footer { padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  #trialSelectModal, #trialSelectModal .modal { transition: none; }
}

#mobFilterSheet .mob-sort-opt { min-height: 2.75rem; }

.trial-export-grabber { display: none; }
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  .mobile-sheet-grabber {
    display: flex !important; position: sticky; top: 0; z-index: 2;
    align-items: center; justify-content: center;
    width: 100% !important; height: 2.75rem !important; min-height: 2.75rem;
    margin: 0 !important; padding: 0; border: 0; border-radius: 0 !important;
    background: #fff !important; flex-shrink: 0;
    touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  }
  .mobile-sheet-grabber::after { content: ''; width: 2.25rem; height: 0.25rem; border-radius: 0.125rem; background: #a7b0bf; }
  .mobile-sheet-grabber:active { cursor: grabbing; }
  .mobile-sheet-grabber:focus-visible { outline: 2px solid #2563eb; outline-offset: -4px; }
  #mobFilterSheet { padding-top: 0; }
  #mobSpDetailBanner { touch-action: auto; }
  #trialSelectModal .trial-export-grabber { background: #1a2540 !important; }
  #trialSelectModal .trial-export-header { padding-top: 0; }
}

/* Discover search and filters toggle together, below the top bar. */
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileClinic #mobileDiscoverTab { top: 3.625rem; padding-top: 1rem; overflow-y: auto; overscroll-behavior: contain; }
  #mobileDiscoverTab #mobSearchBar { display: flex; visibility: hidden; pointer-events: none; position: static; inset: auto; flex-shrink: 0; height: 3rem; padding: 0; margin: 0 0.125rem 0.75rem; border: 0; box-shadow: none; background: transparent; gap: 0.5625rem; }
  #mobSearchBar .mob-search-field { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1; height: 3rem; padding: 0 0.75rem; background: #fff; border: 1px solid #d7dce7; border-radius: 0.75rem; color: #748096; }
  #mobSearchBar .mob-search-field:focus-within { border-color: #2563eb; }
  #mobSearchBar #mobSearchInput { width: 100%; height: 2.875rem; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 1rem; }
  #mobSearchInput::-webkit-search-cancel-button { -webkit-appearance: none; }
  #mobSearchClear { display: flex; align-items: center; justify-content: center; height: 2.75rem; width: 1.75rem; flex-shrink: 0; border: 0; background: transparent; color: #53627f; }
  #mobSearchClear[hidden] { display: none; }
  #mobSearchBar #mobFilterBtn { position: relative; width: 3rem; height: 3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #d7dce7; border-radius: 0.75rem; background: #fff; color: #1a2540; font-size: 1.25rem; }
  #mobSearchBar #mobFilterBtn.has-criteria, #mobSearchBar #mobFilterBtn.active { background: #1a2540; color: #fff; border-color: #1a2540; }
  #mobSearchBtn { position: relative; }
  #mobSearchBtn.has-criteria::after { content: ''; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #86efac; position: absolute; top: 0.0625rem; right: 0.0625rem; }
  #mobileDiscoverTab #mobileTrialNotifBanner { position: static; inset: auto; margin: 0 0.125rem 0.5rem; }
  #mobileDiscoverTab #mobileSwipeDeck { flex: 1 0 auto; min-height: 11.25rem; }
  #mobileDiscoverTab .mob-swipe-card { top: 0; translate: none; max-height: none; }
  #mobileDiscoverTab .mob-swipe-card.top-card { position: relative; }
  #mobileDiscoverTab #mobileSwipeEmpty { position: relative; min-height: 11.25rem; }
}
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileDiscoverTab .mob-card-body { flex: 0 0 auto; overflow: visible; overscroll-behavior: auto; }
}

@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileDiscoverTab #mobSearchBar.open { visibility: visible; pointer-events: auto; }
}

/* Floating glass navigation: clinic and sponsor phones only. */
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileBottomNav.ct-glass-nav, #mobileSpBottomNav.ct-glass-nav {
    --glass-index: 0; --glass-count: 3; --glass-light: 50%;
    left: 4%; right: auto; bottom: calc(.625rem + env(safe-area-inset-bottom, 0px));
    width: 92%; height: 4.75rem; padding: .375rem;
    display: flex; border: 1px solid rgba(255,255,255,.9); border-radius: 3rem;
    background: #f1f3f8;
    box-shadow: 0 .5rem 1.75rem rgba(26,37,64,.17), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(107,120,146,.16);
    isolation: isolate;
  }
  #mobileSpBottomNav.ct-glass-nav { --glass-count: 2; }
  .ct-glass-nav::before {
    content: ''; position: absolute; pointer-events: none; z-index: 0;
    left: .375rem; top: .375rem; bottom: .375rem;
    width: calc((100% - .75rem) / var(--glass-count)); box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.92); border-radius: 2.5rem;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 #fff, 0 .125rem .5rem rgba(26,37,64,.09);
    transform: translateX(calc(var(--glass-index) * 100%)) scaleX(var(--glass-stretch, 1));
    transition: transform .48s cubic-bezier(.22,1.35,.4,1), background .18s ease;
  }
  .ct-glass-nav::after {
    content: ''; position: absolute; pointer-events: none; inset: 0; border-radius: inherit;
    background: radial-gradient(ellipse at var(--glass-light) 0%, rgba(255,255,255,.65), transparent 62%);
    opacity: .35; transition: opacity .2s ease;
  }
  .ct-glass-nav.ct-glass-pressed::after { opacity: .85; }
  .ct-glass-nav.ct-glass-pressed::before { background: rgba(255,255,255,.88); }
  .ct-glass-nav .mbn-item {
    z-index: 1; min-width: 0; min-height: 3.875rem; border-radius: 2.5rem;
    padding: .375rem 0; gap: .25rem; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s cubic-bezier(.22,1.35,.4,1);
  }
  .ct-glass-nav .mbn-item:active { transform: scale(.94); }
  .ct-glass-nav .mbn-item i { font-size: 1.5rem; color: #59667e; }
  .ct-glass-nav .mbn-item span:not(.mob-nav-notif-badge) { font-size: .6875rem; line-height: 1.3; color: #59667e; }
  .ct-glass-nav .mbn-item.active i, .ct-glass-nav .mbn-item.active span:not(.mob-nav-notif-badge) { color: #192640; }
  .ct-glass-nav .mbn-item:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
  .ct-glass-nav .mob-nav-notif-badge { top: .0625rem; border-width: 1px; }
  /* Let content pass underneath the glass, with room to scroll the last row clear. */
  #mobileClinic #mobileDiscoverTab, #mobileClinic #mobileMyTrialsTab,
  #mobileClinic #mobileContactsTab, #mobileSponsor #mobileSpTrialsTab,
  #mobileSponsor #mobileSpArchiveTab {
    bottom: 0; padding-bottom: calc(6.125rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(6.125rem + env(safe-area-inset-bottom, 0px));
  }
  #mobileSponsor .mob-sp-fab { bottom: calc(6.375rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  @supports ((backdrop-filter: blur(1rem)) or (-webkit-backdrop-filter: blur(1rem))) {
    #mobileBottomNav.ct-glass-nav, #mobileSpBottomNav.ct-glass-nav {
      background: rgba(247,249,255,.62);
      -webkit-backdrop-filter: blur(1.25rem) saturate(1.6);
      backdrop-filter: blur(1.25rem) saturate(1.6);
    }
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  #mobileBottomNav.ct-glass-nav, #mobileSpBottomNav.ct-glass-nav {
    background: #f1f3f8; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .ct-glass-nav::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-glass-nav::before, .ct-glass-nav::after, .ct-glass-nav .mbn-item { transition: none; }
  .ct-glass-nav .mbn-item:active { transform: none; }
}

/* Horizontal scrubbing moves only the lens until release. Vertical scroll and zoom remain native. */
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  .ct-glass-nav, .ct-glass-nav .mbn-item { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
  .ct-glass-nav.ct-glass-dragging::before { transition: none; }
  .ct-glass-nav.ct-glass-dragging .mbn-item:active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-glass-nav::before { transform: translateX(calc(var(--glass-index) * 100%)); }
}

.ct-pull-refresh { display: none; }
.ct-refresh-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileClinic #mobileDiscoverTab { transform: translateY(var(--ct-pull-distance, 0px)); transition: transform .22s ease; }
  #mobileClinic #mobileDiscoverTab.ct-pull-tracking { transition: none; }
  #mobileClinic .ct-pull-refresh {
    display: flex; position: fixed; z-index: 795; top: 4.125rem; left: 50%; transform: translateX(-50%);
    align-items: center; justify-content: center; gap: .5rem; max-width: 92%; min-height: 2.75rem;
    padding: .5rem .875rem; border: 1px solid #d7deea; border-radius: 2rem;
    background: #fff; color: #1a2540; font: 600 .75rem 'Sora', sans-serif;
    box-shadow: 0 .25rem .75rem #1a25401a; opacity: 0; pointer-events: none;
  }
  #mobileClinic .ct-pull-refresh.ct-pull-visible, #mobileClinic .ct-pull-refresh:focus-visible { opacity: 1; pointer-events: auto; }
  .ct-pull-icon { display: inline-block; font-size: 1.25rem; line-height: 1; }
  .ct-pull-loading .ct-pull-icon { animation: ct-refresh-spin .85s linear infinite; }
  @keyframes ct-refresh-spin { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
  #mobileClinic #mobileDiscoverTab { transition: none; }
  .ct-pull-loading .ct-pull-icon { animation: none; }
}

@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileClinic:has(#mobileDiscoverTab:not(.active)) .ct-pull-refresh { display: none; }
}

/* Light branded header; existing page labels remain available to assistive technology. */
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileClinic #mobTopBar, #mobileSponsor #mobSpTopBar {
    background: #e8eaf2; color: #192640; padding-inline: 4%; gap: .75rem;
  }
  #mobileClinic .mob-header-brand, #mobileSponsor .mob-header-brand {
    width: 70%; max-width: 13.5rem; min-width: 0; height: 3rem;
    display: flex; align-items: center;
  }
  .mob-header-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
  .mob-header-logo[hidden], .mob-header-fallback[hidden] { display: none; }
  .mob-header-fallback { color: #192640; font: 700 .875rem/1.25 'Sora', sans-serif; }
  #mobileClinic .mob-page-name, #mobileSponsor .mob-page-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  #mobTopBar .mob-top-icons, #mobSpTopBar .mob-top-icons { margin-left: auto; gap: .5rem; flex-shrink: 0; }
  #mobTopBar .mob-icon-btn, #mobSpTopBar .mob-icon-btn {
    width: 2.75rem; height: 2.75rem; flex-shrink: 0;
    color: #192640; background: #fff; border: 1px solid #edf0f5;
    box-shadow: 0 .125rem .5rem rgba(26,37,64,.04); font-size: 1.375rem;
  }
  #mobTopBar .mob-icon-btn.active, #mobSpTopBar .mob-icon-btn.active { background: #e3eaf5; border-color: #b8c6dc; }
  #mobTopBar .mob-icon-btn:focus-visible, #mobSpTopBar .mob-icon-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
  #mobTopBar #mobSearchBtn.has-criteria::after { background: #059669; border: 1px solid #fff; }
}

@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileDetailSheet #mobileDetailBanner { padding-top: 1rem; }
}

@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileDetailSheet #mobileDetailInner { min-height: 100%; display: flex; flex-direction: column; }
  #mobileDetailSheet #mobileDetailBody { flex: 1; }
  #mobileDetailSheet #mobileDetailActions {
    position: sticky; bottom: 0; z-index: 2; flex-shrink: 0; background: #fff;
    gap: .5rem; padding: .75rem .875rem calc(.875rem + env(safe-area-inset-bottom, 0px));
  }
  #mobileDetailActions .mob-action-no, #mobileDetailActions .mob-action-yes { min-width: 0; }
  #mobileDetailActions button i { font-size: .875rem; }
}


/* Trial details use the same backdrop + draggable bottom-sheet pattern as Contacts. */
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileClinic #mobileDetailSheet {
    background: rgba(15,23,50,.45); overflow: hidden; align-items: flex-end;
  }
  #mobileClinic #mobileDetailSheet.open { display: flex; }
  #mobileDetailSheet #mobileDetailInner {
    width: 100%; min-height: 0; max-height: 85vh; max-height: 85dvh;
    background: #fff; border-radius: 1.25rem 1.25rem 0 0;
    overflow-y: auto; overscroll-behavior: contain; isolation: isolate;
    box-shadow: 0 -.5rem 2rem rgba(15,23,50,.12);
  }
  #mobileDetailSheet.open #mobileDetailInner { animation: ct-trial-sheet-enter .24s ease-out; }
  #mobileDetailSheet #mobileDetailHandle { flex-shrink: 0; z-index: 3; }
  #mobileDetailSheet #mobileDetailBanner, #mobileDetailSheet #mobileDetailBody { flex-shrink: 0; }
  @keyframes ct-trial-sheet-enter { from { translate: 0 2rem; opacity: .5; } to { translate: 0 0; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  #mobileDetailSheet.open #mobileDetailInner { animation: none; }
}

@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  /* Initial dialog focus is silent visually; keyboard focus on controls stays visible. */
  #mobileDetailSheet #mobileDetailInner:focus { outline: none; }
  #mobileDetailSheet .mob-detail-desc, #mobSpDetailSheet .mob-detail-desc { font-size: .9375rem; line-height: 1.65; }
}

/* Tablet retains the phone interaction model with comfortable content widths. */
@media (min-width: 768px) and (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileClinic #mobileDiscoverTab, #mobileClinic #mobileMyTrialsTab, #mobileClinic #mobileContactsTab,
  #mobileSponsor #mobileSpTrialsTab, #mobileSponsor #mobileSpArchiveTab {
    width: 92%; max-width: 46rem; left: 50%; right: auto; translate: -50% 0;
  }
  #mobileBottomNav.ct-glass-nav, #mobileSpBottomNav.ct-glass-nav {
    width: 76%; max-width: 36rem; left: 50%; translate: -50% 0;
  }
  #mobileClinic #mobileDetailSheet, #mobContactSheet, #mobFilterModal, #mobSpDetailSheet, #trialSelectModal { justify-content: center; }
  #mobileDetailSheet #mobileDetailInner, #mobContactSheetInner, #mobFilterSheet,
  #mobSpDetailInner, #trialSelectModal .trial-export-dialog { width: 100%; max-width: 46rem; }
  #mobileSponsor .mob-sp-fab { right: max(4%, calc((100% - 46rem) / 2)); }
}

/* Restore the desktop Rolodex artwork behind tablet Discover cards only. */
@media (min-width: 768px) and (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #mobileDiscoverTab #mobileSwipeDeck {
    width: 84%; margin: 0 auto 8rem; flex: 0 0 auto; isolation: isolate;
  }
  #mobileDiscoverTab #mobileSwipeDeck:has(.top-card)::before {
    content: ''; position: absolute; inset: 0 -15% -8rem; z-index: -1;
    background: url('rolodex-base-background.png') center bottom / contain no-repeat;
    pointer-events: none;
  }
  #mobileDiscoverTab #mobileSwipeDeck:not(:has(.top-card)) { width: 100%; margin-bottom: 0; }
}

/* Login-only installation invitation; standalone launches omit it. */
#appInstallBanner { display: none; }
@media (max-width: 1440px) and (pointer: coarse) and (hover: none) {
  #loginWrapper #appInstallBanner:not([hidden]) {
    display: block; width: calc(100% - 2rem); max-width: 23.75rem;
    margin: 1.25rem auto auto; padding: 0 .25rem; box-sizing: border-box;
    text-align: center; color: #192640;
  }
  #appInstallBanner strong { font-size: .875rem; line-height: 1.4; }
  #appInstallBanner p { margin: .375rem 0 .875rem; font-size: .75rem; line-height: 1.5; color: #52617a; }
  #appInstallBanner .app-install-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
  #appInstallBanner button { flex: 1 1 8rem; min-width: 0; min-height: 3rem; padding: .75rem .5rem; border: 1px solid #192640; border-radius: .75rem; background: #192640; color: #fff; font: 600 .75rem 'Sora',sans-serif; cursor: pointer; }
  #appInstallBanner #appInstallIos { background: #fff; color: #192640; }
  #appInstallBanner button:disabled { opacity: .65; cursor: wait; }
}
#appInstallGuide {
  width: 92%; max-width: 26rem; max-height: 85vh; max-height: 85dvh; overflow-y: auto;
  margin: auto; padding: 1.5rem; border: 1px solid #dce3ef; border-radius: 1.25rem;
  color: #192640; background: #fff; font-family: 'Sora',sans-serif;
}
#appInstallGuide::backdrop { background: rgba(15,23,50,.5); }
#appInstallGuide h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
#appInstallGuide p, #appInstallGuide li { font-size: .875rem; line-height: 1.65; }
#appInstallGuide ol { padding-left: 1.25rem; margin: 1rem 0; }
#appInstallGuide li + li { margin-top: .625rem; }
#appInstallGuide button { width: 100%; min-height: 2.75rem; padding: .75rem; border: 0; border-radius: .625rem; background: #192640; color: #fff; font: 600 .875rem 'Sora',sans-serif; cursor: pointer; }
#appInstallBanner button:focus-visible, #appInstallGuide button:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
