.speedy-loading-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.restoring-session .speedy-loading-brand img:first-child { width: min(110px, 31vw); }
.restoring-session .speedy-loading-brand img:last-child { width: min(153px, 43vw); }
.restoring-session .session-restore-track i { background: #1baa83; }

#speedy-rebrand-dialog {
  width: min(580px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  color: #142f25;
  background: #fbfffd;
  border: 1px solid #d8e7df;
  border-radius: 28px;
  box-shadow: 0 30px 100px #112a2755;
}
#speedy-rebrand-dialog::backdrop { background: #102920b8; }
.speedy-rebrand-stage {
  position: relative;
  isolation: isolate;
  height: clamp(170px, 44vw, 236px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 54%, #c4f4df 0%, #e6f9ef 56%, #f2fbf7 100%);
  border-bottom: 1px solid #dbeee4;
}
.speedy-rebrand-track {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 23px, #9ebbab44 24px 25px), repeating-linear-gradient(90deg, transparent 0 23px, #9ebbab44 24px 25px);
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 74%);
}
.speedy-rebrand-stage img { display: block; position: absolute; height: auto; }
.speedy-rebrand-old { width: min(42%, 210px); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; }
.speedy-rebrand-rider { width: clamp(74px, 22%, 123px); left: 50%; top: 39%; transform: translate(-50%, -50%); }
.speedy-rebrand-wordmark { width: min(40%, 188px); left: 50%; top: 77%; transform: translate(-50%, -50%); }
.speedy-rebrand-impact {
  position: absolute;
  left: 50%; top: 50%;
  width: 86px; aspect-ratio: 1;
  border: 2px solid #199873;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.25);
}
.speedy-rebrand-copy { padding: 22px clamp(14px, 5vw, 34px) 28px; text-align: center; }
.speedy-rebrand-copy h2 { margin: 0; font-size: clamp(23px, 6vw, 36px); letter-spacing: -.045em; line-height: 1.1; }
.speedy-rebrand-copy p { margin: 10px 0 16px; color: #4e6359; font-size: 14px; }
.speedy-rebrand-names { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px 7px; margin-bottom: 19px; color: #4e6359; font-size: 11px; }
.speedy-rebrand-names > :first-child, .speedy-rebrand-names strong { padding: 6px 8px; background: #eef2f0; border-radius: 8px; }
.speedy-rebrand-names strong { color: #075e43; background: #def5e9; }
.speedy-rebrand-copy button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; }
.speedy-rebrand-copy button:focus-visible { outline: 2px solid #145f48; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .restoring-session .speedy-loading-brand img:last-child { animation: speedy-loading-wordmark .55s .12s ease-out both; }
  #speedy-rebrand-dialog[open] .speedy-rebrand-old { animation: speedy-old-exit 1.7s .08s both; }
  #speedy-rebrand-dialog[open] .speedy-rebrand-rider { animation: speedy-rider-enter 1.88s .08s both; }
  #speedy-rebrand-dialog[open] .speedy-rebrand-impact { animation: speedy-impact .48s 1.02s ease-out both; }
  #speedy-rebrand-dialog[open] .speedy-rebrand-wordmark { animation: speedy-wordmark-enter .59s 1.49s both; }
  @keyframes speedy-loading-wordmark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes speedy-old-exit {
    0%, 50% { opacity: 1; transform: translate(-50%, -50%); }
    61% { opacity: 1; transform: translate(-37%, -50%) rotate(5deg); animation-timing-function: cubic-bezier(.36,.08,.64,.85); }
    100% { opacity: 0; transform: translate(170%, -90%) rotate(25deg) scale(.7); }
  }
  @keyframes speedy-rider-enter {
    0%, 23% { left: -18%; top: 56%; transform: translate(-50%, -50%) rotate(-10deg); }
    50% { left: 34%; top: 51%; transform: translate(-50%, -50%) rotate(-6deg); animation-timing-function: cubic-bezier(.19,.8,.34,1); }
    66% { left: 50%; top: 35%; transform: translate(-50%, -50%) rotate(6deg); }
    82%, 100% { left: 50%; top: 39%; transform: translate(-50%, -50%) rotate(0); }
  }
  @keyframes speedy-impact {
    from { opacity: .76; transform: translate(-50%, -50%) scale(.25); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
  }
  @keyframes speedy-wordmark-enter {
    from { clip-path: inset(0 100% 0 0); opacity: .6; transform: translate(-50%, -40%); }
    to { clip-path: inset(0); opacity: 1; transform: translate(-50%, -50%); }
  }
}
