.startup-screen {
  --startup-gutter: clamp(24px, 8vw, 40px);
  --startup-ink: #102744;
  --startup-muted: #526881;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(120px, 1fr) auto;
  justify-items: center;
  gap: clamp(14px, 3svh, 26px);
  box-sizing: border-box;
  max-width: 480px;
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(clamp(26px, 7svh, 58px) + env(safe-area-inset-top, 0px))
    var(--startup-gutter)
    calc(clamp(24px, 6svh, 47px) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f5f9fe 54%, #f9fbff 100%);
  color: var(--startup-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.startup-identity {
  display: grid;
  justify-items: start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  animation: startup-brand-in 420ms ease-out both;
}

.startup-emblem {
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  margin-bottom: 13px;
  box-sizing: border-box;
  border: 1px solid #e2eaf4;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 5px 14px #0b2c5712;
}

.startup-brand-mark {
  display: block;
  width: 52px;
  height: 52px;
}

.startup-screen h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(30px, 8.8vw, 40px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.startup-tagline {
  margin: 0;
  color: var(--startup-muted);
  font-size: 15px;
  line-height: 1.45;
}

.startup-art {
  position: relative;
  align-self: stretch;
  width: calc(100% + 2 * var(--startup-gutter));
  min-width: 0;
  margin: 0;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 13%, #000 85%, transparent);
}

.startup-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.startup-bottom {
  box-sizing: border-box;
  width: 100%;
}

.startup-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #dbe5f1;
}

.startup-progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #214f88, #6d9bc6);
  transition: width 200ms linear;
}

.startup-loading-copy,
.startup-error {
  margin: 11px 0 0;
  color: var(--startup-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.startup-screen .startup-retry {
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid #c8d9ed;
  border-radius: 10px;
  background: #fff;
  color: var(--startup-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.startup-retry:focus-visible {
  outline: 2px solid #1f4d91;
  outline-offset: 3px;
}

@media (max-height: 540px) {
  .startup-screen { grid-template-rows: auto minmax(100px, 1fr) auto; gap: 12px; }
  .startup-emblem { width: 48px; margin-bottom: 5px; border-radius: 13px; }
  .startup-brand-mark { width: 38px; height: 38px; }
  .startup-screen h1 { font-size: 28px; }
  .startup-art img { object-position: 50% 40%; }
}

@keyframes startup-brand-in {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .startup-identity { animation: none; }
  .startup-progress > i { transition: none; }
}

.startup-resume{box-sizing:border-box;max-width:480px;min-height:100svh;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#f6f8fa;color:#526780;padding:24px;font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:15px;text-align:center}.startup-resume-spinner{width:24px;height:24px;border:2px solid #dce6f2;border-top-color:#1f4d91;border-radius:50%;animation:startup-resume-spin .8s linear infinite}.startup-resume button{border:1px solid #cbd9ea;border-radius:10px;padding:12px 24px;background:#fff;color:#1f4d91;font:inherit}.startup-resume p{margin:0;line-height:1.7}@keyframes startup-resume-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.startup-resume-spinner{animation:none}}

.startup-resume--welcome{width:100%;max-width:var(--mintian-page-width,390px);justify-content:flex-start;padding:120px 0 0;background:#fff;font:14px/1.5 system-ui,sans-serif}
.startup-resume--welcome h1{margin:0}
@media(max-width:360px){.startup-resume--welcome{padding-top:104px}}
@media(orientation:landscape) and (max-height:540px){.startup-resume--welcome{padding-top:84px}}
@media(min-width:600px) and (min-height:480px) and (pointer:coarse),
      (min-width:600px) and (min-height:480px) and (horizontal-viewport-segments:2){
  .startup-resume--welcome{max-width:var(--mintian-page-width,840px)}
}

.mintian-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 320px);
  color: #1b315f;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}
.mintian-auth-brand img { display: block; flex: none; width: 76px; height: 76px; }
.mintian-auth-brand-name { min-width: 0; overflow-wrap: anywhere; text-align: start; }
@media (orientation: landscape) and (max-height: 540px) {
  .mintian-auth-brand img { width: 64px; height: 64px; }
}

