:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #171719;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1762cf; }

.ios-page {
  width: min(100%, 530px);
  margin-inline: auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) 25px max(36px, env(safe-area-inset-bottom, 0px));
}

.ios-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e3e3e8;
}

.ios-app-icon {
  flex: none;
  display: block;
  width: 98px;
  height: 98px;
  border-radius: 20px;
}

.ios-hero h1 {
  margin: 0 0 5px;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.17;
}

.ios-hero p {
  margin: 0 0 12px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.35;
}

.ios-install-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 5px 15px;
  width: min(154px, 100%);
  border-radius: 999px;
  background: #1761d7;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.ios-install-action:hover { background: #1052bb; }
.ios-instructions,
.ios-section {
  padding-block: 20px;
  border-bottom: 1px solid #e3e3e8;
  font-size: 15px;
  line-height: 1.65;
}
.ios-instructions p,
.ios-section p { margin: 0; }
.ios-instructions p + p { margin-top: 8px; }
.ios-instructions strong { color: #c33931; font-weight: 650; }
.ios-section h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
.ios-section ol { margin: 0 0 12px; padding-left: 1.4em; }
.ios-section li + li { margin-top: 4px; }

.safari-dialog {
  width: min(320px, calc(100% - 38px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #16171b;
  background: #fff;
  overflow: hidden;
}
.safari-dialog::backdrop { background: rgb(0 0 0 / 25%); }
.safari-dialog:not([open]) { display: none; }
.safari-dialog:focus-visible { outline: none; }
.safari-dialog.safari-dialog-fallback[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 5;
  margin: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 25%);
}
body.ios-dialog-open { overflow: hidden; }
.safari-dialog-head {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 130px;
  padding: 25px 25px 24px;
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, #65c5ed, #377bc8 40%, #215eb1);
}
.safari-dialog-head h2 {
  margin: 0 12px 5px 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 750;
}
.safari-dialog-head p { margin: 0; font-size: 13px; line-height: 1.48; }
.safari-compass {
  display: block;
  flex: none;
  filter: drop-shadow(0 2px 5px rgb(0 41 118 / 25%));
}
.safari-close {
  position: absolute;
  inset: 6px 6px auto auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #102950;
  background: transparent;
  cursor: pointer;
}
.safari-close:hover { background: rgb(255 255 255 / 28%); }

.safari-dialog-body { padding: 19px 22px 21px; }
.safari-copy-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  min-height: 40px;
  background: #eef2f5;
}
.safari-copy-row input {
  width: 0;
  min-width: 0;
  flex: 1;
  appearance: none;
  padding: 0 12px 0 14px;
  font-weight: 500;
  line-height: 1.2;
  font-size: 13px;
  font-family: inherit;
  color: #263042;
  border: 0;
  border-radius: 0;
  background: none;
  text-overflow: ellipsis;
}
.safari-copy-row button {
  flex: none;
  min-width: 60px;
  padding: 5px 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, #2f70dd, #197da3);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.safari-copy-row input:focus-visible,
.safari-copy-row button:focus-visible {
  outline: 2px solid #093c94;
  outline-offset: -3px;
}
.ios-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
