.install-app-link {
  display: none;
  appearance: none;
  border: 1px solid rgba(23, 33, 43, 0.13);
  background: rgba(247, 249, 247, 0.98);
  color: var(--green, #34745a);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(16, 24, 32, 0.08);
}

.install-app-link:hover,
.install-app-link:focus-visible {
  border-color: rgba(52, 116, 90, 0.38);
  background: #fff;
  outline: none;
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.12);
}

.install-app-link-icon {
  display: block;
  width: 38px;
  height: 38px;
}

.install-app-link-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.install-phone,
.install-phone-speaker,
.install-phone-home {
  fill: none;
  stroke: #1d2d55;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-plus-circle {
  fill: var(--green, #34745a);
  stroke: #fff;
  stroke-width: 2;
}

.install-plus {
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.install-app-link-label {
  display: block;
  white-space: nowrap;
  font-size: 0.67rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.install-app-overlay[hidden] {
  display: none;
}

.install-app-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 32, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.install-app-dialog-open {
  overflow: hidden;
}

.install-app-dialog {
  position: relative;
  width: min(470px, 100%);
  max-height: min(680px, calc(100dvh - 32px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 22px;
  background: #fff;
  color: var(--ink, #17212b);
  box-shadow: 0 28px 80px rgba(16, 24, 32, 0.28);
}

.install-app-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 50%;
  background: #f7f9f7;
  color: #35424d;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.install-app-close:hover,
.install-app-close:focus-visible {
  border-color: rgba(242, 106, 44, 0.38);
  color: var(--orange, #f26a2c);
  outline: none;
}

.install-app-logo {
  display: block;
  width: 118px;
  max-width: 38%;
  height: auto;
  margin-bottom: 14px;
}

.install-app-kicker {
  margin: 0 0 7px;
  color: var(--orange, #f26a2c);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.install-app-dialog h2 {
  margin: 0;
  padding-right: 34px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.install-app-copy,
.install-app-note {
  margin: 12px 0 0;
  color: var(--muted, #64717d);
  font-size: 0.95rem;
  line-height: 1.55;
}

.install-app-instructions {
  margin-top: 19px;
}

.install-app-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-app-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line, #dfe5e1);
  border-radius: 14px;
  background: var(--surface-soft, #f7f9f7);
  font-size: 0.92rem;
  line-height: 1.4;
}

.install-app-steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft, #fff1e9);
  color: var(--orange, #f26a2c);
  font-size: 0.8rem;
  font-weight: 900;
}

.install-app-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.install-app-done {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--navy, #101820);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.install-app-done:hover,
.install-app-done:focus-visible {
  background: #1c2a35;
  outline: 3px solid rgba(242, 106, 44, 0.2);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .install-app-overlay {
    place-items: end center;
    padding: 12px;
  }

  .install-app-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 23px 20px 20px;
    border-radius: 22px 22px 16px 16px;
  }

  .install-app-dialog h2 {
    font-size: 1.65rem;
  }

}


@media (max-width: 760px) {
  .site-end-signoff {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 68px;
    margin-top: -10px;
    padding: 0 100px 6px 0;
    text-align: left;
  }

  .site-end-signoff > strong {
    font-size: 0.82rem;
    line-height: 1.12;
    letter-spacing: 0.045em;
  }

  .site-end-signoff > span {
    margin-top: 2px;
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .site-end-signoff .install-app-link {
    position: absolute;
    right: 0;
    top: -20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 84px;
    min-width: 84px;
    height: 82px;
    margin: 0;
    padding: 7px 7px 8px;
    gap: 4px;
    border-radius: 14px;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .install-app-dialog {
    animation: install-app-enter 180ms ease-out;
  }

  @keyframes install-app-enter {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}


/* System dark mode for install UI */
@media (prefers-color-scheme: dark) {
  .install-app-link {
    background: rgba(29, 41, 36, 0.98);
    border-color: rgba(237, 243, 240, 0.14);
    color: var(--green, #72b594);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  }

  .install-app-link:hover,
  .install-app-link:focus-visible {
    background: #24312b;
    border-color: rgba(114, 181, 148, 0.44);
  }

  .install-phone,
  .install-phone-speaker,
  .install-phone-home {
    stroke: #dce6e1;
  }

  .install-app-overlay {
    background: rgba(5, 9, 7, 0.72);
  }

  .install-app-dialog {
    background: #17211d;
    color: var(--ink, #edf3f0);
    border-color: rgba(237, 243, 240, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  }

  .install-app-close {
    background: #202c27;
    border-color: rgba(237, 243, 240, 0.12);
    color: #dce6e1;
  }

  .install-app-done {
    background: #314039;
    color: #fff;
  }

  .install-app-done:hover,
  .install-app-done:focus-visible {
    background: #3b4d44;
  }
}
