/* Install the app ("Add to Home Screen"): the app bar button, the sign-in link and the steps for iPhone and iPad */
.app-install { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--color-bar-fg, #fff);
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.app-install:hover { border-color: var(--rr-highlight, #fff); }
.app-install:focus-visible { outline: 2px solid var(--rr-highlight, #fff); outline-offset: 2px; }
.app-install svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .app-install span { display: none; } .app-install { padding: 6px; } }
.app-install[hidden], .auth-install[hidden] { display: none !important; }
.auth-install { display: block; margin: 14px auto 0; background: none; border: none; color: inherit; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .85; }
.auth-install:hover { opacity: 1; }
/* the steps */
.inst-back { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.inst-back[hidden] { display: none; }
.inst-sheet { width: 100%; max-width: 440px; background: var(--color-panel, #fff); color: var(--color-fg, #111); border-radius: 16px; padding: 20px 20px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.inst-sheet h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; }
.inst-steps { margin: 0 0 10px; padding-left: 1.3em; line-height: 1.5; }
.inst-steps li { margin: 0 0 8px; }
.inst-share { vertical-align: -3px; }
.inst-note { margin: 0 0 14px; font-size: 13px; color: var(--color-fg-muted, #555); }
.inst-sheet .inst-close { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: var(--rr-green-4, #008a3e); color: #fff; font: inherit; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.inst-sheet .inst-close:hover { background: var(--rr-green-5, #006f32); }
/* the code sign-in on the sign-in card */
.auth .code-form { display: flex; gap: 8px; margin-top: 10px; }
.auth .code-form[hidden] { display: none; }
.auth .code-form input { flex: 1 1 auto; min-width: 0; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
/* phones: while the install button shows, the clock makes room for it (it returns once the app is installed) */
@media (max-width: 480px) { .app-install:not([hidden]) ~ .app-clock { display: none; } }
