/* A compact service hub inside the existing light floating navigation shell. */
body[data-view="profile"] {
  background: #f4f7fc;
}

body[data-view="profile"] .site-header,
body[data-view="profile"] .site-footer {
  display: none;
}

.service-page {
  width: min(100%, var(--discover-width));
  min-height: calc(100dvh - var(--tab-space) - 8px);
  margin-inline: auto;
  background: #f4f7fc;
  color: #132746;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.service-page :is(h1, h2, p) { margin: 0; }
.service-page a { color: inherit; text-decoration: none; }
.service-page button { font-family: inherit; }

.service-content { padding: calc(20px + env(safe-area-inset-top)) 16px 12px; }
.service-intro { margin-bottom: 24px; }
.service-intro h1 { font-size: 28px; font-weight: 720; line-height: 1.25; letter-spacing: -.025em; }
.service-intro p { margin-top: 8px; color: #66758b; font-size: 14px; line-height: 1.55; }

.service-support {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: #e4eeff;
}

.service-support h2 { padding-inline-end: 46px; font-size: 22px; font-weight: 680; line-height: 1.3; }
.service-support p { max-width: 290px; margin-top: 8px; padding-inline-end: 12px; color: #526682; font-size: 14px; line-height: 1.55; }
.service-support__icon { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; color: #1760e9; }

.service-page .service-primary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 9px 20px;
  border: 0;
  border-radius: 11px;
  background: #1464f5;
  color: #fff;
  font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.service-section { margin-top: 24px; }
.service-section__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px !important; font-size: 18px; font-weight: 680; line-height: 1.35; }
.service-section__title::before { content: ""; width: 4px; height: 18px; flex: none; border-radius: 4px; background: #1760e9; }
.service-list { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 2px 9px #263e650a; }

.service-page .service-row {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 0;
  background: #fff;
  color: #132746;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.service-list .service-row + .service-row { border-top: 1px solid #eaf0f7; }
.service-row__icon { display: block; width: 27px; height: 27px; flex: none; color: #6c7a91; }
.service-row__copy { display: block; min-width: 0; flex: 1; }
.service-row__copy strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.service-row__copy small { display: block; margin-top: 4px; color: #68768c; font-size: 12px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.service-row__chevron { display: block; width: 17px; height: 17px; flex: none; color: #78869b; }
.service-page .service-about { min-height: 56px; margin-top: 14px; border-radius: 14px; box-shadow: 0 2px 9px #263e650a; }
.service-page .service-privacy { display: flex; min-height: 44px; width: fit-content; align-items: center; justify-content: center; margin: 12px auto 0; color: #1760cf; font-size: 12px; line-height: 1.45; }

.service-page :is(a, button):focus-visible,
.service-contact :is(a, button):focus-visible { outline: 2px solid #2267fc; outline-offset: 3px; }
.service-page :is(.service-row, .service-primary):focus-visible { outline-offset: -3px; }
.service-page ::selection,
.service-contact ::selection { background: #c7ddfb; color: #17365d; }

.service-contact {
  width: min(calc(100% - 32px), 380px);
  max-height: calc(100dvh - 40px);
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #132746;
  box-shadow: 0 18px 60px #14284c29;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.service-contact::backdrop { background: #14284c52; }
.service-contact header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-contact h2 { margin: 0; padding-top: 4px; font-size: 20px; font-weight: 650; line-height: 1.35; }
.service-contact__close { display: grid; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%; place-items: center; background: #eef3fa; color: #53647c; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.service-contact__description { margin: 12px 0 18px; color: #5f6f86; font-size: 14px; line-height: 1.6; }
.service-contact__channel { display: block; padding: 13px 14px; border-radius: 12px; background: #eef4ff; color: #1754ad; text-decoration: none; overflow-wrap: anywhere; }
.service-contact__channel + .service-contact__channel { margin-top: 9px; }
.service-contact__channel strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; }
.service-contact__channel small { display: block; margin-top: 4px; color: #526b8c; font-size: 12px; line-height: 1.5; }

@media (hover: hover) {
  .service-page .service-primary:hover { background: #1056d5; }
  .service-page .service-row:hover { background: #f8faff; }
  .service-privacy:hover { text-decoration: underline; text-underline-offset: 3px; }
  .service-contact__channel:hover { background: #e3edff; }
  .service-contact__close:hover { background: #e3ebf7; }
}

@media (max-width: 359px) {
  .service-content { padding-inline: 14px; }
  .service-intro { margin-bottom: 20px; }
  .service-intro h1 { font-size: 26px; }
  .service-support { padding: 18px; }
  .service-support h2 { font-size: 21px; }
  .service-support__icon { top: 18px; right: 18px; width: 32px; height: 32px; }
  .service-page .service-row { gap: 12px; padding-inline: 14px; }
}

@media (min-width: 600px) {
  .service-content { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-page :is(.service-primary, .service-row) { transition: none; }
}
