:root {
  color-scheme: light;
  --entry-background: #fff;
  --entry-chrome: #f7f7f7;
  --entry-heading: #191919;
  --entry-muted: #737373;
  --entry-chrome-text: #909399;
  --entry-progress-track: #e9ebee;
  --entry-progress-start: #07c160;
  --entry-progress-end: #8cc739;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--entry-background);
  color: var(--entry-heading);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.entry-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 7px;
}

.entry-topbar {
  display: flex;
  flex: 0 0 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 16px;
  border-top: 1px solid #eaeaea;
  background: var(--entry-chrome);
  color: var(--entry-chrome-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.entry-main {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform: translateY(51.5px);
}

/* Reuse the actual indicator pixels from the supplied reference screenshot. */
.loading-status-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  overflow: hidden;
}

.loading-status-pulse { display: none; }

/* The live indicator uses the source page's native status primitive and pulse.
   The supplied image remains the exact frozen reference-frame asset. */
html[data-loading-animation] .loading-status-icon { overflow: visible; }
html[data-loading-animation] .loading-status-icon img { display: none; }
html[data-loading-animation] .loading-status-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30vw;
  height: 30vw;
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
  background: var(--entry-progress-start);
  transform: scale(.8);
  animation: source-status-pulse 2s ease infinite;
}
.loading-status-pulse::after {
  content: "✓";
  color: white;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10vw;
  line-height: normal;
}
html[data-loading-animation="paused"] .loading-status-pulse { animation-play-state: paused; }

.loading-status-icon img {
  position: absolute;
  top: -282px;
  left: -202px;
  display: block;
  width: 501px;
  max-width: none;
  height: 686px;
}

.loading-panel h1 {
  margin: 20px 16px 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 31px;
  text-align: center;
}

.loading-progress {
  width: 82.4%;
  max-width: 411px;
  height: 6px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--entry-progress-track);
}

.loading-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--entry-progress-start) 20%, var(--entry-progress-end) 80%);
  transition: width .8s cubic-bezier(.34, 1.56, .64, 1);
}
html[data-loading-step="0"] .loading-progress-fill { width: 25%; }
html[data-loading-step="1"] .loading-progress-fill { width: 50%; }
html[data-loading-step="2"] .loading-progress-fill { width: 75%; }
html[data-loading-step="3"] .loading-progress-fill { width: 100%; }

.loading-description {
  margin: 28px 16px 0;
  color: var(--entry-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
}

.entry-footer {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  background: var(--entry-chrome);
  color: var(--entry-chrome-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

@keyframes source-status-pulse {
  0% { transform: scale(.8); box-shadow: 0 0 0 0 rgb(7 193 96 / .4); }
  70% { transform: scale(.9); box-shadow: 0 0 0 10px rgb(7 193 96 / 0); }
  100% { transform: scale(.8); box-shadow: 0 0 0 0 rgb(7 193 96 / 0); }
}

@media (max-width: 319px) {
  html[data-loading-animation] .loading-status-pulse { width: 25vw; height: 25vw; }
}

@media (min-width: 414px) and (max-width: 539px) {
  html[data-loading-animation] .loading-status-pulse { max-width: 90px; max-height: 90px; }
  .loading-status-pulse::after { font-size: 8vw; }
}

@media (min-width: 768px) {
  html[data-loading-animation] .loading-status-pulse { width: 100px; height: 100px; }
  .loading-status-pulse::after { font-size: 50px; }
}

@media (max-height: 500px) {
  .loading-panel { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress-fill { transition: none; }
  html[data-loading-animation] .loading-status-pulse { animation: none; }
}

@media (forced-colors: active) {
  .loading-progress { border: 1px solid CanvasText; }
  .loading-progress-fill { background: Highlight; }
}
