.install-dialog {
  padding: 30px 24px 24px;
  text-align: center;
}

.install-visual {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}

.install-logo {
  width: 86px;
  height: 86px;
  border-radius: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(145deg, #917cff, #5137e8);
  box-shadow: 0 18px 40px #7157ff4a;
}

.install-arrow {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #10131a;
  font-weight: 900;
}

.install-dialog h2 { font-size: 26px; }

.install-description {
  max-width: 330px;
  margin: 12px auto 18px;
  color: #697180;
  font-size: 14px;
  line-height: 1.6;
}

.install-help {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 14px;
  color: #4f5360;
  background: #f1efff;
  font-size: 12px;
  line-height: 1.6;
}

.install-actions { display: grid; gap: 9px; }
.install-actions .button { margin: 0; }

html,
body {
  overscroll-behavior-y: none;
}

.ui-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #697180;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #5137e8;
  background: #f1efff;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

.qr-frame {
  width: 208px;
  height: 208px;
  margin: 26px auto 16px;
  padding: 16px;
  border: 1px solid #e5e8ef;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 16px 35px #27305514;
}

.qr-code {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  color: #697180;
  font-size: 11px;
}

.qr-code img,
.qr-code canvas {
  display: block;
  width: 176px;
  height: 176px;
}

.pull-refresh {
  position: fixed;
  z-index: 90;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  min-width: 190px;
  padding: 9px 14px;
  transform: translate(-50%, -70px);
  border: 1px solid #ffffffcc;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #697180;
  background: #fffffff2;
  box-shadow: 0 10px 30px #27305524;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .18s;
}

.pull-refresh.visible { opacity: 1; }
.pull-refresh.ready { color: #5137e8; }
.pull-refresh span { font-size: 18px; line-height: 1; }
.pull-refresh small { font-size: 11px; font-weight: 800; }
.pull-refresh.refreshing span,
.round-button.is-refreshing { animation: refresh-spin .8s linear infinite; }

@keyframes refresh-spin {
  to { rotate: 360deg; }
}
