/* Installation UI only. The embedded website is not styled or reloaded. */
.install-prompt {
  --ink: #202321;
  --muted: #686d67;
  --page-surface: #fcfcf9;
  --card-surface: #f2f3ee;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--page-surface);
  color: var(--ink);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: light;
}
.install-prompt:not([open]),
.install-prompt[hidden],
.install-prompt [hidden] { display: none !important; }
.install-prompt::backdrop { background: var(--page-surface, #fcfcf9); }
.install-prompt *,
.install-prompt *::before,
.install-prompt *::after { box-sizing: border-box; }
.install-prompt button,
.install-prompt a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.install-prompt button { font: inherit; }
.install-prompt :focus-visible { outline: 3px solid #386746; outline-offset: 5px; }
.install-shell { display: flex; flex-direction: column; min-height: 100%; }
.install-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  padding: max(26px, env(safe-area-inset-top, 0px)) max(36px, env(safe-area-inset-right, 0px)) 22px max(36px, env(safe-area-inset-left, 0px));
  background: var(--page-surface);
}
.install-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
.install-brand img { display: block; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; }
.install-brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.install-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #dfe2da;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.install-close svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.install-close:hover { background: #e9ece4; }
.install-main {
  width: 100%;
  max-width: 1176px;
  margin: auto;
  padding: 35px max(32px, env(safe-area-inset-right, 0px)) 45px max(32px, env(safe-area-inset-left, 0px));
}
.install-intro { margin: 0 auto 45px; text-align: center; }
.install-eyebrow { margin: 0 0 14px; color: #5d675c; font-size: 11px; font-weight: 650; letter-spacing: 2.4px; }
.install-intro h1 { margin: 0; font-size: clamp(44px, 6.5vw, 80px); line-height: 1.08; font-weight: 650; letter-spacing: -.065em; }
.install-intro > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 17px; letter-spacing: -.25px; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.device-card {
  position: relative;
  min-width: 0;
  padding: 36px 20px 23px;
  border: 1px solid #e4e7df;
  border-radius: 24px;
  background: var(--card-surface);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}
.device-card.is-current { --card-surface: #fff; border-color: #2e3d30; }
.device-card.is-selected { border-color: #58715a; }
.device-badge { position: absolute; top: 12px; right: 14px; color: #48614b; font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .2px; }
.device-badge::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: #557e51; }
.device-art { display: grid; place-items: center; height: 112px; margin: 8px 0 20px; }
.platform-logo { display: block; width: 88px; height: 88px; }
.android-art { color: #25804d; }
.android-art .platform-logo { width: 82px; height: 82px; }
.apple-art { color: #252a26; }
.apple-logo { width: 83px; height: 83px; }
.windows-art { color: #2478cc; }
.windows-logo { width: 78px; height: 78px; }
.mac-art { color: #4a514b; }
.mac-logo { width: 108px; height: 93px; }
.device-card h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.65px; }
.device-caption { min-height: 19px; margin: 8px -8px 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.device-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 11px 10px;
  border: 1px solid #daddd3;
  border-radius: 12px;
  background: #fcfcf9;
  color: var(--ink);
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.device-action svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.device-action:hover { background: #e6eae0; border-color: #b3bbae; }
.is-current .device-action { border-color: var(--ink); background: var(--ink); color: #fff; }
.is-current .device-action:hover { background: #3a493d; border-color: #3a493d; }
.device-action:disabled { cursor: progress; opacity: .55; }
.install-help { margin: 22px 0 0; padding: 18px 24px 22px; border: 1px solid #dfe4d9; border-radius: 18px; background: #f1f4ec; scroll-margin-top: 110px; }
.help-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -6px -10px 4px 0; }
.help-heading h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.25px; }
.help-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; background: transparent; color: #5d675d; cursor: pointer; }
.help-close:hover { background: #e2e8da; }
.help-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.help-steps { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 9px 18px; margin: 0; font-size: 13px; line-height: 1.65; }
.help-steps dt { color: #54634f; font-weight: 650; }
.help-steps dd { margin: 0; overflow-wrap: anywhere; }
.help-note { margin: 10px 0 0; font-size: 12px; color: #60695b; }
.help-message { margin: 0; font-size: 14px; }
.install-footer { flex-shrink: 0; padding: 6px 20px max(25px, env(safe-area-inset-bottom, 0px)); color: #6b7266; text-align: center; font-size: 12px; letter-spacing: .1px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .device-card:hover { transform: translateY(-3px); }
}
@media (max-width: 900px) {
  .install-main { max-width: 690px; padding-top: 25px; padding-bottom: 30px; }
  .install-intro { margin-bottom: 30px; }
  .install-intro h1 { font-size: 62px; }
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .device-card { padding: 28px 23px 20px; }
  .device-art { height: 90px; margin: 4px 0 12px; }
  .device-caption { margin-bottom: 18px; }
}
@media (max-width: 540px) {
  .install-header { gap: 12px; padding: max(16px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 13px max(20px, env(safe-area-inset-left, 0px)); }
  .install-brand { gap: 8px; font-size: 15px; }
  .install-brand img { width: 32px; height: 32px; border-radius: 10px; }
  .install-close { width: 44px; height: 44px; }
  .install-main { padding: 19px max(18px, env(safe-area-inset-right, 0px)) 25px max(18px, env(safe-area-inset-left, 0px)); }
  .install-intro { margin-bottom: 25px; }
  .install-eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 2px; }
  .install-intro h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .install-intro > p:last-child { margin-top: 12px; font-size: 13px; }
  .device-grid { gap: 11px; }
  .device-card { padding: 28px 14px 14px; border-radius: 20px; }
  .device-badge { top: 10px; right: 11px; font-size: 8px; }
  .device-art { height: 72px; margin: 3px 0 13px; }
  .platform-logo { width: 65px; height: 65px; }
  .android-art .platform-logo { width: 62px; height: 62px; }
  .apple-logo { width: 62px; height: 62px; }
  .windows-logo { width: 58px; height: 58px; }
  .mac-logo { width: 83px; height: 72px; }
  .device-card h2 { font-size: 17px; letter-spacing: -.5px; }
  .device-caption { min-height: 29px; margin: 5px -5px 10px; font-size: 10px; line-height: 1.4; }
  .device-action { min-height: 44px; padding: 10px 8px; gap: 7px; border-radius: 10px; font-size: 12px !important; }
  .device-action svg { width: 16px; height: 16px; }
  .install-help { margin-top: 15px; padding: 13px 16px 18px; scroll-margin-top: 88px; }
  .help-steps { grid-template-columns: 1fr; gap: 2px; font-size: 12px; }
  .help-steps dd + dt { margin-top: 9px; }
  .help-note { font-size: 11px; }
  .install-footer { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); font-size: 10px; }
}
@media (max-width: 350px) {
  .device-card { padding-left: 10px; padding-right: 10px; }
  .device-card h2 { font-size: 15px; }
  .device-caption { font-size: 9px; }
  .device-action { font-size: 11px !important; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .install-prompt *, .install-prompt *::before, .install-prompt *::after { transition: none !important; scroll-behavior: auto !important; }
}
/* Launch detection belongs to install.js. Fullscreen CSS alone could hide
   the dialog in an ordinary tab (and leave the iframe inert underneath). */
