:root {
  --mst-portal-ink: #050a10;
  --mst-portal-night: #040912;
  --mst-portal-navy: #17344f;
  --mst-portal-steel: #264c66;
  --mst-portal-blue: #2c6090;
  --mst-portal-cyan: #569bc6;
  --mst-portal-bronze: #8a693c;
  --mst-portal-gold: #c8a878;
  --mst-portal-core: #edd39f;
  --mst-portal-pale: #a4b9ce;
}

html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready {
  --portal-rail-width: clamp(232px, 21vw, 308px);
  grid-template-rows: minmax(430px, 1fr) auto !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(23, 52, 79, 0.3), transparent 36%),
    var(--mst-portal-night) !important;
}

html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready .mst-portal-stage {
  position: relative !important;
  min-height: 430px !important;
  overflow: hidden !important;
  isolation: isolate;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-scene {
  z-index: 1;
  transition: opacity 760ms ease, filter 900ms ease;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-bg {
  transform: translate3d(calc(var(--portal-x) * -18px), calc(var(--portal-y) * -12px), 0) scale(1.025);
  filter: saturate(0.94) contrast(1.08) brightness(0.86);
  transition: transform 900ms cubic-bezier(.2, .7, .2, 1), filter 700ms ease;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-scene::before {
  opacity: 0.32;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-scene::after {
  opacity: 0.18;
}

.mst-portal-canvas,
.mst-portal-reveal,
.mst-portal-geometry-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mst-portal-canvas {
  z-index: 4;
  display: block;
  opacity: 0.24;
  mix-blend-mode: screen;
  transition: opacity 480ms ease;
}

.mst-portal-geometry-fallback {
  z-index: 3;
  display: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 50% 43%, rgba(237, 211, 159, 0.32) 0 2%, transparent 7%),
    repeating-radial-gradient(circle at 50% 43%, transparent 0 7%, rgba(86, 155, 198, 0.2) 7.2% 7.45%, transparent 7.7% 13%),
    conic-gradient(from 30deg at 50% 43%, transparent 0 8%, rgba(44, 96, 144, 0.22) 8.5% 9%, transparent 9.5% 24%, rgba(200, 168, 120, 0.14) 24.5% 25%, transparent 25.5% 100%);
  clip-path: polygon(50% 4%, 92% 25%, 92% 73%, 50% 96%, 8% 73%, 8% 25%);
}

.mst-portal-entry.is-canvas-fallback .mst-portal-geometry-fallback {
  display: block;
}

.mst-portal-reveal {
  z-index: 8;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 9%, rgba(4, 9, 18, 0.12) 20%, rgba(4, 9, 18, 0.94) 66%),
    linear-gradient(180deg, rgba(4, 9, 18, 0.2), rgba(4, 9, 18, 0.94));
}

.mst-portal-controls {
  z-index: 9 !important;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-enter {
  color: var(--mst-portal-pale);
  border: 1px solid rgba(86, 155, 198, 0.5);
  background: linear-gradient(180deg, rgba(23, 52, 79, 0.74), rgba(4, 9, 18, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(164, 185, 206, 0.14),
    0 0 0 1px rgba(44, 96, 144, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 220ms ease;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-enter span {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: inherit;
  opacity: 1;
}

.mst-portal-entry.is-cinematic-ready .mst-portal-enter:hover {
  border-color: rgba(86, 155, 198, 0.82);
  color: #c6d5e2;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(164, 185, 206, 0.2),
    0 0 26px rgba(86, 155, 198, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.32);
}

.mst-portal-entry.is-cinematic-ready .mst-portal-enter:active {
  transform: scale(0.97);
}

.mst-portal-entry.is-cinematic-ready .mst-portal-enter:focus-visible,
.mst-portal-skip:focus-visible,
.mst-portal-replay:focus-visible {
  outline: 2px solid var(--mst-portal-core);
  outline-offset: 3px;
}

.mst-portal-skip {
  position: absolute;
  z-index: 12;
  top: clamp(14px, 2.2vh, 24px);
  right: clamp(14px, 2vw, 28px);
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(164, 185, 206, 0.24);
  border-radius: 999px;
  background: rgba(4, 9, 18, 0.72);
  color: var(--mst-portal-pale);
  font: 800 0.72rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, opacity 240ms ease;
}

.mst-portal-skip:hover {
  border-color: rgba(200, 168, 120, 0.5);
  background: rgba(23, 52, 79, 0.82);
  color: #d5e1eb;
}

.mst-portal-phase-card {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: clamp(18px, 3.6vh, 42px);
  width: min(330px, calc(100% - 40px));
  padding: 11px 14px 12px;
  border: 1px solid rgba(86, 155, 198, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.84), rgba(4, 9, 18, 0.94));
  color: var(--mst-portal-pale);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.mst-portal-phase-title {
  display: block;
  margin-bottom: 3px;
  color: #d5e1eb;
  font: 900 0.76rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mst-portal-phase-copy {
  display: block;
  color: rgba(164, 185, 206, 0.78);
  font: 650 0.68rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mst-portal-phase-track {
  display: block;
  height: 2px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(164, 185, 206, 0.13);
}

.mst-portal-phase-progress {
  display: block;
  width: var(--mst-portal-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--mst-portal-blue), var(--mst-portal-cyan) 66%, var(--mst-portal-gold));
  box-shadow: 0 0 12px rgba(86, 155, 198, 0.35);
}

.mst-portal-rail {
  position: absolute;
  z-index: 6;
  top: clamp(56px, 7.5vh, 88px);
  bottom: clamp(18px, 3vh, 34px);
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: var(--portal-rail-width);
  min-height: 0;
  transition: opacity 520ms ease, transform 760ms cubic-bezier(.2, .8, .2, 1), filter 520ms ease;
}

.mst-portal-rail-left {
  left: clamp(12px, 1.6vw, 24px);
}

.mst-portal-rail-right {
  right: clamp(12px, 1.6vw, 24px);
}

.mst-portal-rail .mst-unified-footer-group {
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  min-height: 0 !important;
  height: auto !important;
  padding: 9px 34px 8px 10px !important;
  overflow: hidden;
  border: 1px solid rgba(86, 155, 198, 0.14) !important;
  border-radius: 11px !important;
  background:
    linear-gradient(180deg, rgba(5, 10, 16, 0.82), rgba(4, 9, 18, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(164, 185, 206, 0.04),
    0 15px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(7px);
}

.mst-portal-rail .mst-unified-footer-title {
  flex: 0 0 auto;
  margin: 0 0 6px !important;
  color: #c6d5e2 !important;
  font-size: clamp(0.63rem, 0.74vw, 0.72rem) !important;
  line-height: 1.05 !important;
}

.mst-portal-rail .mst-unified-footer-links,
.mst-portal-rail .mst-footer-scroll-shell,
.mst-portal-rail .mst-footer-scroll-viewport {
  min-height: 0;
}

.mst-portal-rail .mst-unified-footer-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 10px !important;
  row-gap: 3px !important;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 155, 198, 0.44) transparent;
}

.mst-portal-rail .mst-unified-footer-links a,
.mst-portal-rail .mst-unified-footer-links button {
  min-height: 0 !important;
  padding: 0 !important;
  color: rgba(164, 185, 206, 0.78) !important;
  font-size: clamp(0.56rem, 0.65vw, 0.64rem) !important;
  line-height: 1.22 !important;
  text-decoration: none;
}

.mst-portal-rail .mst-unified-footer-links a:hover,
.mst-portal-rail .mst-unified-footer-links button:hover {
  color: #d5e1eb !important;
}

.mst-portal-rail-scroll-controls {
  position: absolute;
  right: 6px;
  bottom: 7px;
  display: grid;
  gap: 3px;
  opacity: 1;
  transition: opacity 160ms ease;
}

.mst-portal-rail-scroll-controls.is-unneeded {
  opacity: 0;
  pointer-events: none;
}

.mst-portal-rail-scroll-control {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 19px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(86, 155, 198, 0.22);
  border-radius: 5px;
  background: rgba(4, 9, 18, 0.86);
  color: var(--mst-portal-pale) !important;
  font: 800 0.65rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  cursor: pointer;
}

.mst-portal-rail-scroll-control:disabled {
  opacity: 0.3;
  cursor: default;
}

.mst-portal-rail-scroll-control:focus-visible {
  outline: 2px solid var(--mst-portal-core);
  outline-offset: 2px;
}

html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready .mst-portal-footer.mst-portal-dock {
  position: relative !important;
  z-index: 10;
  display: grid !important;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 2fr);
  grid-template-areas:
    "meta meta"
    "partners featured";
  gap: 4px 12px;
  width: 100% !important;
  max-width: none !important;
  min-height: 82px;
  margin: 0 !important;
  padding: 5px clamp(12px, 1.6vw, 24px) 7px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-top: 1px solid rgba(86, 155, 198, 0.16) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.95), rgba(4, 9, 18, 0.99)) !important;
  box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.3);
  transition: opacity 460ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.mst-portal-dock > .mst-unified-footer-top {
  grid-area: meta;
  min-height: 14px;
  margin: 0 !important;
}

.mst-portal-dock > .mst-unified-footer-grid {
  grid-area: partners;
  display: block !important;
  min-width: 0;
}

.mst-portal-dock .mst-unified-footer-group[aria-label="Partners"] {
  display: block !important;
  width: 100%;
  min-height: 50px !important;
  height: 50px !important;
  padding: 5px 8px !important;
  overflow: hidden;
  border-radius: 9px !important;
  background: rgba(0, 0, 0, 0.72) !important;
}

.mst-portal-dock .mst-unified-footer-group[aria-label="Partners"] .mst-unified-footer-title {
  margin-bottom: 3px !important;
}

.mst-portal-dock .mst-unified-footer-group[aria-label="Partners"] .mst-unified-footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  height: 28px;
}

.mst-portal-dock #mstOriginalFeaturedBadges {
  grid-area: featured;
  display: block !important;
  width: 100% !important;
  min-width: 0;
  min-height: 50px !important;
  height: 50px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.mst-portal-dock #mstOriginalFeaturedBadges .mst-home-featured-badges-eyebrow,
.mst-portal-dock #mstOriginalFeaturedBadges .fb-title {
  margin: 0 0 3px !important;
  color: rgba(164, 185, 206, 0.66) !important;
  font-size: 0.58rem !important;
  line-height: 1 !important;
  text-align: left !important;
}

.mst-portal-dock #mstOriginalFeaturedBadges .mst-home-featured-badges-mask,
.mst-portal-dock #mstOriginalFeaturedBadges .fb-viewport {
  max-width: none !important;
  height: 34px;
}

.mst-portal-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(86, 155, 198, 0.28);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(23, 52, 79, 0.72), rgba(4, 9, 18, 0.9));
  color: #c6d5e2;
  font: 800 0.76rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.mst-portal-replay:hover {
  border-color: rgba(200, 168, 120, 0.46);
  color: #d5e1eb;
}

.mst-portal-entry.is-cinematic-opening .mst-portal-enter {
  animation: mstPortalEnterEngage 300ms ease both;
}

.mst-portal-entry.is-cinematic-opening .mst-portal-controls {
  opacity: 0;
  filter: blur(2px);
  transform: translate(-50%, calc(-50% - 10px)) scale(0.98);
  transition: opacity 300ms ease, transform 420ms ease, filter 300ms ease;
}

.mst-portal-entry.is-cinematic-opening .mst-portal-status {
  opacity: 0;
  transition: opacity 340ms ease;
}

.mst-portal-entry.is-cinematic-opening .mst-portal-canvas {
  opacity: 1;
}

.mst-portal-entry.is-canvas-fallback.is-cinematic-opening .mst-portal-geometry-fallback {
  animation: mstPortalFallbackTravel 5.2s cubic-bezier(.2, .72, .18, 1) both;
}

.mst-portal-entry.is-cinematic-opening .mst-portal-phase-card {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mst-portal-entry.is-cinematic-opening .mst-portal-rail-left {
  opacity: 0.44;
  transform: translateX(-10px);
  filter: saturate(0.72) brightness(0.72);
}

.mst-portal-entry.is-cinematic-opening .mst-portal-rail-right {
  opacity: 0.44;
  transform: translateX(10px);
  filter: saturate(0.72) brightness(0.72);
}

.mst-portal-entry.is-cinematic-opening .mst-portal-bg {
  animation: mstPortalImageTravel 5.2s cubic-bezier(.2, .72, .18, 1) both;
}

.mst-portal-entry.is-cinematic-opening .mst-portal-depth,
.mst-portal-entry.is-cinematic-opening .mst-portal-vortex {
  opacity: 0.58;
  animation-duration: 8s;
}

.mst-portal-entry.is-page-revealing .mst-portal-scene {
  opacity: 0.16;
  filter: blur(2px);
}

.mst-portal-entry.is-page-revealing {
  background: transparent !important;
}

.mst-portal-entry.is-page-revealing .mst-portal-rail,
.mst-portal-entry.is-page-revealing .mst-portal-skip {
  opacity: 0;
  pointer-events: none;
}

.mst-portal-entry.is-page-revealing .mst-portal-reveal {
  animation: mstPortalCenterReveal 850ms cubic-bezier(.2, .76, .22, 1) both;
}

.mst-portal-entry.is-cinematic-complete {
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease !important;
}

body[data-page="quick-workflow"].mst-portal-destination-preparing > main.wrap {
  opacity: 0.02;
  filter: blur(10px);
}

body[data-page="quick-workflow"].mst-portal-destination-revealing > main.wrap {
  opacity: 1;
  filter: blur(0);
  transition: opacity 760ms ease, filter 820ms ease;
}

@keyframes mstPortalEnterEngage {
  0% { opacity: 1; transform: scale(1); }
  55% { opacity: 0.78; transform: scale(0.97); }
  100% { opacity: 0; transform: scale(0.99); }
}

@keyframes mstPortalImageTravel {
  0% {
    transform: translate3d(0, 0, 0) scale(1.025);
    filter: saturate(0.94) contrast(1.08) brightness(0.86);
  }
  24% {
    transform: translate3d(0, 0, 0) scale(1.075);
    filter: saturate(1.02) contrast(1.1) brightness(0.78);
  }
  72% {
    transform: translate3d(0, 0, 0) scale(1.18);
    filter: saturate(0.9) contrast(1.12) brightness(0.52);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1.28);
    filter: saturate(0.7) contrast(1.08) brightness(0.24) blur(1px);
  }
}

@keyframes mstPortalCenterReveal {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes mstPortalFallbackTravel {
  0% {
    opacity: 0.18;
    transform: scale(0.72) rotate(0deg);
  }
  35% {
    opacity: 0.48;
    transform: scale(0.92) rotate(3deg);
  }
  78% {
    opacity: 0.7;
    transform: scale(1.14) rotate(-2deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.4) rotate(0deg);
  }
}

@media (max-width: 1120px) {
  html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready {
    --portal-rail-width: clamp(214px, 22vw, 248px);
  }

  .mst-portal-rail .mst-unified-footer-links {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  html.portal-entry-locked,
  html.portal-entry-locked body,
  body.portal-entry-locked {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready .mst-portal-stage {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto !important;
    min-height: 100svh !important;
    padding: clamp(420px, 58svh, 520px) 8px 10px !important;
    overflow: visible !important;
  }

  .mst-portal-entry.is-cinematic-ready .mst-portal-scene,
  .mst-portal-entry.is-cinematic-ready .mst-portal-canvas,
  .mst-portal-entry.is-cinematic-ready .mst-portal-reveal,
  .mst-portal-entry.is-cinematic-ready .mst-portal-geometry-fallback {
    height: clamp(420px, 58svh, 520px);
    bottom: auto;
  }

  .mst-portal-rail {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    height: auto;
    grid-template-rows: repeat(3, minmax(105px, auto));
    transform: none !important;
  }

  .mst-portal-rail-left {
    grid-column: 1;
  }

  .mst-portal-rail-right {
    grid-column: 2;
  }

  .mst-portal-entry.is-cinematic-opening .mst-portal-rail {
    opacity: 0.25;
  }

  .mst-portal-phase-card {
    position: fixed;
    bottom: 18px;
  }

  html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready .mst-portal-footer.mst-portal-dock {
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 620px) {
  html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready .mst-portal-stage {
    grid-template-columns: 1fr;
    padding-top: clamp(410px, 56svh, 500px) !important;
  }

  .mst-portal-rail-left,
  .mst-portal-rail-right {
    grid-column: 1;
  }

  .mst-portal-rail .mst-unified-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body[data-page="quick-workflow"] .mst-portal-entry.is-cinematic-ready .mst-portal-footer.mst-portal-dock {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "partners"
      "featured";
    min-height: 128px;
  }

  .mst-portal-dock #mstOriginalFeaturedBadges {
    height: 46px;
  }

  .mst-portal-skip {
    position: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mst-portal-entry.is-cinematic-ready *,
  .mst-portal-entry.is-cinematic-ready::before,
  .mst-portal-entry.is-cinematic-ready::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .mst-portal-canvas {
    display: none !important;
  }
}
