.desktop-guide-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(500px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 34px 34px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #eee6f5;
  border-radius: 28px;
  background: #fff;
  color: #584567;
  box-shadow: 0 24px 90px #31213f29;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #d9cae7 transparent;
}

.desktop-guide-dialog::backdrop {
  background: #30223f78;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.desktop-guide-dialog button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.desktop-guide-dialog button:focus-visible,
.desktop-guide-panel:focus-visible {
  outline: 3px solid #ad8dce;
  outline-offset: 3px;
}

.desktop-guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #f6f1fa;
  color: #9580a6;
}

.desktop-guide-close:hover {
  background: #ede3f6;
  color: #765494;
}

.desktop-guide-close svg,
.desktop-guide-tip > svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-guide-header {
  text-align: center;
}

.desktop-guide-phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 19px;
  border: 1px solid #e7d9f2;
  border-radius: 23px;
  background: #f1e9f9;
  color: #8b66b1;
}

.desktop-guide-phone > .ph {
  font-size: 42px;
  line-height: 1;
}

.desktop-guide-phone > span {
  position: absolute;
  right: -5px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #9876bd;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.desktop-guide-header h2 {
  margin: 0;
  color: #564067;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: .4px;
  line-height: 1.5;
}

.desktop-guide-header p {
  margin: 8px 0 24px;
  color: #806b8c;
  font-size: 13px;
  line-height: 1.85;
}

.desktop-guide-tabs {
  display: flex;
  gap: 5px;
  margin: 0 0 26px;
  padding: 5px;
  border: 1px solid #eee6f5;
  border-radius: 13px;
  background: #f6f2fa;
}

.desktop-guide-tabs > button {
  flex: 1;
  min-width: 0;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #796685;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.desktop-guide-tabs > button[aria-selected="true"] {
  border-color: #e6d9f0;
  background: #fff;
  color: #8460a6;
  box-shadow: 0 2px 5px #73518b08;
}

.desktop-guide-panel {
  border-radius: 10px;
}

.desktop-guide-panel[hidden] {
  display: none;
}

.desktop-guide-steps {
  display: grid;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-guide-steps > li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.desktop-guide-number {
  display: grid;
  flex: 0 0 29px;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-top: 1px;
  border-radius: 10px;
  background: #eee4f7;
  color: #7d579f;
  font-size: 13px;
  font-weight: 650;
}

.desktop-guide-steps h3 {
  margin: 0;
  color: #6c537f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.desktop-guide-steps p {
  margin: 5px 0 0;
  color: #806b8c;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.desktop-guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 25px;
  padding: 13px 14px;
  border: 1px solid #eee5f5;
  border-radius: 13px;
  background: #faf7fd;
  color: #7d6889;
}

.desktop-guide-tip > svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.desktop-guide-tip strong {
  display: block;
  margin: 0 0 4px;
  color: #7d6889;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}

.desktop-guide-tip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.desktop-guide-done {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 23px 0 0;
  padding: 12px 16px;
  border: 1px solid #8763ad;
  border-radius: 12px;
  background: #8763ad;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.desktop-guide-done:hover {
  background: #79549f;
}

@media (max-width: 440px) {
  .desktop-guide-dialog {
    padding: 28px 23px 23px;
    border-radius: 25px;
  }

  .desktop-guide-phone {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
    border-radius: 21px;
  }

  .desktop-guide-phone > .ph {
    font-size: 38px;
  }

  .desktop-guide-header h2 {
    font-size: 24px;
  }

  .desktop-guide-header p {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .desktop-guide-tabs {
    margin-bottom: 22px;
  }

  .desktop-guide-steps {
    gap: 19px;
  }

  .desktop-guide-steps > li {
    gap: 11px;
  }

  .desktop-guide-steps h3 {
    font-size: 13px;
  }

  .desktop-guide-tip {
    margin-top: 22px;
    padding: 12px;
  }

  .desktop-guide-done {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-guide-dialog[open] {
    animation: none;
  }

  .desktop-guide-dialog button {
    transition: none;
  }
}

.profile-desktop-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 18px 0 0; padding: 15px 12px; border: 1px solid #e9ddf2;
  border-radius: 12px; background: #fbf8fe; color: #705185;
  text-align: left; font-size: 14px; cursor: pointer;
}
.profile-desktop-entry > .ph { margin-left: auto; color: #b19ac2; }
.profile-desktop-entry:focus-visible { outline: 2px solid #a580c6; outline-offset: 3px; }
.profile-desktop-icon { position: relative; display: grid; place-items: center; width: 29px; height: 29px; }
.profile-desktop-icon > .ph { font-size: 27px; }
.profile-desktop-icon > b { position: absolute; top: 6px; font-size: 12px; font-weight: 500; }
