/* VI1 install button + steps sheet (4 Oct 2026). VI1 palette only. */
.vi1-install-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 0 1.1em; border-radius: 999px;
  border: 1.5px solid #8eafec; background: #eaf5ff; color: #293a53; font: inherit; font-weight: 700; cursor: pointer; }
.vi1-install-btn:hover { background: #dcecfd; }
.vi1-install-btn:focus-visible { outline: 3px solid #6587cb; outline-offset: 2px; }
.vi1-install-btn[hidden] { display: none !important; }
:root[data-theme="dark"] .vi1-install-btn { background: #1a3050; color: #eaf5ff; border-color: #436990; }
:root[data-theme="dark"] .vi1-install-btn:hover { background: #22406a; }
.vi1-install-btn.vi1-install-go { border: 0; background: #293a53; color: #fff; }
:root[data-theme="dark"] .vi1-install-btn.vi1-install-go { background: #eaf5ff; color: #293a53; }
.vi1-install-btn.wide { width: 100%; }
.vi1-inst-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; background: rgba(41, 58, 83, .45); padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .vi1-inst-wrap { place-items: center; } }
.vi1-inst-box { width: min(440px, 100%); background: #fff; color: #293a53; border-radius: 24px; padding: 20px 20px 16px; box-shadow: 0 20px 60px rgba(41, 58, 83, .35); font-size: 17px; line-height: 1.45; }
:root[data-theme="dark"] .vi1-inst-box { background: #152033; color: #eaf5ff; }
.vi1-inst-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.vi1-inst-head img { border-radius: 12px; flex: none; }
.vi1-inst-head h3 { margin: 0; font-size: 1.2em; }
.vi1-inst-head p { margin: 2px 0 0; color: #5d6e84; font-size: .9em; }
:root[data-theme="dark"] .vi1-inst-head p, :root[data-theme="dark"] .vi1-inst-note { color: #bac8dc; }
.vi1-inst-box ol { margin: 10px 0 8px; padding-left: 1.3em; display: grid; gap: 8px; }
.vi1-inst-note { margin: 4px 0 10px; color: #5d6e84; font-size: .88em; }
.vi1-inst-ok { width: 100%; min-height: 48px; margin-top: 6px; border: 0; border-radius: 999px; background: #293a53; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
:root[data-theme="dark"] .vi1-inst-ok { background: #eaf5ff; color: #293a53; }
.vi1-standalone .vi1-install-btn { display: none !important; }
.login-install { margin-top: 14px; }
.head-install { min-height: 36px; padding: 0 .75em; font-size: .78em; gap: .3em; flex: none; }
.head-install svg { width: 16px; height: 16px; }
/* top banner (VI1 Call): an in-flow strip at the top of the page */
#install-banner { position: relative; z-index: 60; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 8px 10px 14px; background: var(--panel, #fff); color: var(--ink, #293a53); border-bottom: 1px solid var(--line, #dce6f3); font-size: .9em; line-height: 1.35; }
#install-banner img { border-radius: 12px; flex: none; }
#install-banner .install-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
#install-banner .install-text > span { color: var(--muted, #5d6e84); }
#install-banner button.x { min-height: 44px; min-width: 44px; border: 0; background: none; color: var(--muted, #5d6e84); font-size: 1.4em; cursor: pointer; }
#install-banner .vi1-install-go { flex: none; }
.loginbox .vi1-install-btn { margin-top: 14px; }
.side-foot .vi1-install-btn { width: 100%; margin-bottom: 8px; }
.top .head-install { display: none; }
@media (max-width: 760px) {
  .top .head-install { display: inline-flex; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; flex: none; }
  .top .head-install span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top h1 { min-width: 0; }   /* the title gives way (ellipsis) so the phone top bar never overflows */
  .top { gap: 8px; }
  .top > * { flex-shrink: 0; }
  .top h1, .top #healthpill { flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 380px) { .top { gap: 6px; } .top #healthpill { padding: 5px 8px; } }
.vi1-inst-short .vi1-inst-head { margin-bottom: 4px; }
.vi1-inst-line { font-size: 1.05em !important; color: inherit !important; font-weight: 600; }
