* {
  box-sizing: border-box;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18333d;
  background: #edf4f3;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
.demo-stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 12px;
  background: radial-gradient(circle at 50% 38%, #fff 0, #f4f8f7 32%, #e8f0ef 100%);
}
.demo-toolbar {
  width: min(920px, 100%);
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-brand img {
  width: 40px;
  height: 40px;
}
.demo-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-brand strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.demo-brand span {
  color: #75838b;
  font-size: 12px;
}
.role-switch {
  display: flex;
  justify-self: end;
  margin: 0;
  padding: 4px;
  border: 1px solid #dbe6e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}
.role-switch button {
  min-width: 88px;
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 8px;
  color: #64767d;
  background: transparent;
  cursor: pointer;
}
.role-switch button[aria-pressed="true"] {
  color: #fff;
  background: #087f87;
  box-shadow: 0 3px 10px rgba(8, 127, 135, 0.16);
}
.role-switch button:focus-visible,
.back-button:focus-visible,
.account-toggle:focus-visible,
.account-close:focus-visible {
  outline: 2px solid #087f87;
  outline-offset: 2px;
}
.account-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #dbe6e4;
  border-radius: 9px;
  color: #087f87;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.account-toggle svg,
.account-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.account-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #64767d;
  background: transparent;
  cursor: pointer;
}
.device {
  flex: 0 0 auto;
  width: 452px;
  height: min(810px, calc(100dvh - 142px));
  min-height: 570px;
  padding: 10px;
  border: 1px solid #18333d;
  border-radius: 44px;
  background: #18333d;
  box-shadow:
    0 24px 60px rgba(24, 51, 61, 0.18),
    0 4px 14px rgba(24, 51, 61, 0.1);
}
.demo-layout {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: 452px minmax(260px, 300px);
  justify-content: center;
  align-items: start;
  gap: 32px;
}
.demo-layout > .device {
  grid-column: 1;
  grid-row: 1;
}
.demo-accounts {
  grid-column: 2;
  grid-row: 1;
  margin-top: 44px;
  border: 1px solid #d6e3e0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(24, 51, 61, 0.04);
}
.demo-accounts > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}
.demo-accounts > summary::-webkit-details-marker {
  display: none;
}
.demo-accounts > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #75838b;
  border-bottom: 1.5px solid #75838b;
  transform: rotate(45deg);
}
.demo-accounts[open] > summary::after {
  transform: rotate(225deg);
}
.account-role {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 6px;
  background: #e6f3f1;
  color: #087f87;
  font-size: 12px;
  font-weight: 500;
}
.account-content {
  padding: 0 20px 20px;
}
.account-intro,
.account-hint,
.account-scope,
.copy-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.account-intro,
.account-scope {
  color: #75838b;
}
.account-field {
  margin-top: 18px;
}
.account-label {
  display: block;
  margin-bottom: 7px;
  color: #53666e;
  font-size: 12px;
}
.account-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.account-value code {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  user-select: all;
}
.copy-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #d2e2df;
  border-radius: 7px;
  background: #f4faf8;
  color: #087f87;
  cursor: pointer;
  font-size: 12px;
}
.copy-button:hover {
  background: #e6f3f1;
}
.copy-button:focus-visible,
.demo-accounts summary:focus-visible {
  outline: 2px solid #087f87;
  outline-offset: 3px;
}
.account-hint {
  margin-top: 18px;
  color: #53666e;
}
.copy-status {
  min-height: 22px;
  margin-top: 5px;
  color: #087f87;
}
.backend-accounts {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e4edeb;
  font-size: 12px;
}
.backend-accounts summary {
  cursor: pointer;
  color: #53666e;
}
.backend-account {
  margin: 14px 0;
}
.backend-password-label {
  margin-top: 10px;
}
.backend-account a {
  display: inline-block;
  margin-bottom: 7px;
  color: #087f87;
  text-decoration: none;
}
.account-scope {
  margin-top: 18px;
}
@media (max-width: 1040px) {
  .demo-toolbar { grid-template-columns: 1fr auto auto; gap: 12px; }
  .account-toggle { display: inline-flex; }
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .demo-layout > .device {
    justify-self: center;
  }
  .demo-accounts[popover] {
    position: fixed;
    inset: 82px 20px auto auto;
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100dvh - 100px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #d6e3e0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 51, 61, 0.16);
  }
  .demo-accounts > summary { padding-right: 54px; cursor: default; pointer-events: none; }
  .demo-accounts > summary::after { display: none; }
  .account-close { display: grid; }
}
.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
}
.status-bar {
  flex: 0 0 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 22px 0;
  color: #10262f;
  font-size: 11px;
  font-weight: 600;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-icons svg {
  width: 16px;
  height: 11px;
  fill: currentColor;
}
.status-icons .battery {
  width: 23px;
}
.status-icons .battery > rect:first-child {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.45;
}
.status-icons .battery-level {
  fill: currentColor;
}
.mini-navigation {
  flex: 0 0 48px;
  display: grid;
  grid-template-columns: 82px 1fr 82px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #edf1f1;
  background: #fff;
}
.navigation-side {
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
}
.navigation-title {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.back-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #18333d;
  background: transparent;
  cursor: pointer;
}
.back-button[hidden] {
  display: none;
}
.back-button:hover {
  background: #f0f5f4;
}
.back-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.capsule {
  justify-self: end;
  justify-content: space-evenly;
  width: 78px;
  border: 1px solid #d8dedf;
  border-radius: 17px;
}
.capsule-dots {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
}
.capsule-dots b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #18333d;
}
.capsule i {
  width: 1px;
  height: 18px;
  background: #e1e5e6;
}
.capsule-circle {
  width: 13px;
  height: 13px;
  border: 2px solid #18333d;
  border-radius: 50%;
}
.application-frames {
  position: relative;
  flex: 1;
  min-height: 0;
}
.application-frames iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}
.application-frames iframe[hidden] {
  display: none;
}
.home-indicator {
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  background: #fff;
}
.home-indicator span {
  width: 120px;
  height: 4px;
  border-radius: 4px;
  background: #18333d;
}
.demo-note {
  margin: 0;
  color: #75838b;
  font-size: 12px;
}
.noscript {
  position: fixed;
  inset: auto 20px 20px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}
.noscript a {
  margin: 0 6px;
  color: #087f87;
}
@media (max-width: 640px) {
  .demo-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .demo-accounts[popover] {
    inset: 66px 12px auto auto;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100dvh - 78px);
  }
  .demo-accounts > summary {
    min-height: 50px;
    padding: 9px 54px 9px 16px;
    font-size: 14px;
  }
  .account-content {
    padding: 0 16px 16px;
  }
  .demo-stage {
    gap: 0;
    padding: 0;
    background: #fff;
  }
  .demo-toolbar {
    min-height: 58px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 7px 12px;
    border-bottom: 1px solid #e4ebea;
  }
  .demo-brand img {
    width: 32px;
    height: 32px;
  }
  .demo-brand div {
    display: none;
  }
  .role-switch button {
    min-width: 70px;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
  }
  .device {
    width: 100%;
    height: calc(100dvh - 58px);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-screen {
    border-radius: 0;
  }
  .status-bar {
    flex-basis: 24px;
  }
  .demo-note {
    display: none;
  }
}
@media (max-height: 700px) and (min-width: 641px) {
  .demo-stage {
    padding-top: 10px;
  }
  .demo-toolbar {
    min-height: 44px;
  }
  .device {
    height: 570px;
  }
}
