:root {
  --color-brand: #18468b;
  --color-heading: #153966;
  --color-copy: #334b64;
  --color-canvas: #eaf2f8;
  --color-white: #ffffff;
  --layout-max-width: 1600px;
  --screen-gutter: clamp(24px, 5vw, 96px);
  --shell-header-height: clamp(104px, 16svh, 160px);
  --shell-footer-height: calc(85px + env(safe-area-inset-bottom, 0px));
  --hero-enter-distance: 24px;
  --hero-enter-duration: 2500ms;
  --hero-shadow-opacity: 0.18;
  --mobile-veil-opacity: 1;
  --mobile-background-position: 40% center;
  --background-side-veil: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.776) 0%,
    rgba(255, 255, 255, 0.736) 32%,
    rgba(255, 255, 255, 0.368) 54%,
    rgba(232, 243, 251, 0.032) 75%
  );
  --background-top-veil: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.9) 40%,
    rgba(240, 247, 252, 0.48) 65%,
    rgba(227, 239, 248, 0.12) 100%
  );
  font-family: "Open Sans", Arial, sans-serif;
  font-synthesis: none;
  color: var(--color-copy);
  background: var(--color-canvas);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-size: 16px;
}

.guide-app {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding-top: var(--shell-header-height);
  padding-bottom: var(--shell-footer-height);
}

.guide-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--background-side-veil),
    var(--color-canvas) url("../assets/images/guide-background.webp") center / cover no-repeat;
}

.guide-shell-bar {
  width: min(calc(100% - 2 * var(--screen-gutter)), var(--layout-max-width));
  margin-inline: auto;
}

.guide-shell-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  height: var(--shell-header-height);
  padding-top: clamp(24px, 6.3svh, 56px);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0));
  pointer-events: none;
}

.guide-shell-home {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

.guide-shell-home:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 6px;
}

.guide-shell-logo {
  width: clamp(124px, 14.4svh, 180px);
  height: auto;
}

.guide-shell-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 5;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(21 57 102 / 0.12);
  background: rgb(255 255 255 / 0.95);
}

.guide-shell-navigation {
  display: grid;
  min-height: 52px;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 16px;
}

#guide-back-button {
  grid-column: 1;
  grid-row: 1;
}

.guide-forward-button {
  grid-column: 3;
  grid-row: 1;
}

.guide-shell-footer.is-welcome {
  padding-top: 17px;
  border-top: 0;
  background: var(--color-heading);
}

.guide-shell-footer.is-welcome .guide-forward-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  font-size: 20px;
}

.guide-shell-footer.is-welcome .guide-forward-button:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -6px;
}

img {
  display: block;
  max-width: 100%;
}

/* A single background and a centered desktop composition. */

.welcome-screen {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--shell-header-height) - var(--shell-footer-height));
  display: grid;
  place-items: center;
}

.welcome-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  align-items: center;
  gap: clamp(32px, 3vw, 64px);
  width: min(calc(100% - 2 * var(--screen-gutter)), var(--layout-max-width));
  padding: 24px 0;
}

.welcome-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
}

.welcome-title {
  order: 2;
  margin: 0;
  width: max-content;
  max-width: calc(100% + clamp(0px, 12vw, 192px));
  color: var(--color-heading);
  font-size: clamp(22px, min(5.5svh, 3.4vw), 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.welcome-title:focus {
  outline: none;
}

.welcome-product-line,
.welcome-product-kind {
  display: block;
}

.welcome-product-kind {
  font-size: clamp(24px, min(6.5svh, 4.8vw), 80px);
}

.welcome-description {
  order: 3;
  max-width: 100%;
  margin: 12px 0 0;
  color: var(--color-heading);
  font-size: clamp(16px, min(2.4svh, 2vw), 28px);
  font-weight: 400;
  line-height: 1.35;
}

.welcome-description strong {
  font-weight: 700;
}

.welcome-trademark {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
}

.welcome-subtitle {
  order: 1;
  margin: 0 0 clamp(4px, 0.4svh, 6px);
  color: #ce3b2a;
  font-size: clamp(16px, min(2.2svh, 2.4vw), 28px);
  font-weight: 700;
  line-height: 1.25;
}

.welcome-subtitle-mobile {
  display: none;
}

/* The shadow shares the image container, so both scale together. */

.welcome-device {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 480px, calc(58svh * 2 / 3));
  margin: 0;
}

.welcome-device::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 54%;
  bottom: 0;
  width: 52%;
  height: 2%;
  border-radius: 50%;
  background: rgb(24 44 62 / var(--hero-shadow-opacity));
  filter: blur(7px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-image {
  position: relative;
  top: -30px;
  width: 100%;
  height: auto;
  animation: hero-enter var(--hero-enter-duration) cubic-bezier(0.22, 0.74, 0.24, 1) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(var(--hero-enter-distance));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Phone and tablet layouts are isolated in mobile.css and tablet.css. */



.guide-screen {
  min-height: calc(100svh - var(--shell-header-height) - var(--shell-footer-height));
  height: calc(100svh - var(--shell-header-height) - var(--shell-footer-height));
  overflow-y: auto;
  display: grid;
  align-items: start;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  width: min(calc(100% - 2 * var(--screen-gutter)), var(--layout-max-width));
  margin-inline: auto;
  min-height: 100%;
  padding-block: 24px;
}

.guide-content {
  min-width: 0;
  max-width: 660px;
}

.guide-step-label {
  margin: 0 0 10px;
  color: #ce3b2a;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
}

.guide-title {
  margin: 0 0 clamp(24px, 3svh, 36px);
  color: var(--color-heading);
  font-size: clamp(30px, 3.8vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.guide-title:focus {
  outline: none;
}

.guide-lead {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(19px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.guide-lead-line {
  display: block;
}

.guide-lead-line:last-child {
  margin-bottom: 20px;
}

.guide-title-line {
  display: block;
}

/* Synchronous measurement of the actual Initialization screen. */

.is-measuring {
  position: fixed;
  top: var(--shell-header-height);
  left: 0;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
  z-index: -2;
  contain: layout;
  display: grid !important;
}

.has-shared-heading-position .guide-screen:not(.is-measuring) .guide-content {
  align-self: start;
  padding-top: max(0px, calc(var(--guide-heading-offset) - 24px - var(--guide-step-heading-gap)));
}

.has-shared-heading-position .welcome-layout {
  min-height: calc(100svh - var(--shell-header-height) - var(--shell-footer-height));
}

.has-shared-heading-position .welcome-content {
  align-self: start;
  padding-top: max(0px, calc(var(--guide-heading-offset) - 24px - clamp(16px, min(2.2svh, 2.4vw), 28px) * 1.25 - clamp(4px, 0.4svh, 6px)));
}



.guide-description {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.65;
}

.guide-description + .guide-description {
  margin-top: 16px;
}

#device-information .guide-description,
#basic-setup-complete .guide-description {
  margin-top: 0;
}

.guide-description-accent {
  display: block;
  color: #ce3b2a;
  font-weight: 700;
}

.guide-button {
  min-width: 112px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--color-heading);
  border-radius: 4px;
  background: var(--color-heading);
  color: var(--color-white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.guide-button-secondary {
  background: rgb(255 255 255 / 0.5);
  color: var(--color-heading);
}

.guide-button:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 4px;
}

.guide-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.initialization-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 2vw, 24px);
  justify-self: center;
  width: min(100%, 640px);
}

.initialization-device {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgb(21 57 102 / 0.16);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.9);
}

.initialization-device-image {
  width: 100%;
  height: auto;
  max-height: clamp(200px, 42svh, 400px);
  object-fit: contain;
  border-radius: 6px;
}

.initialization-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  text-align: center;
}

.initialization-card-title {
  margin: 0 0 4px;
  color: var(--color-heading);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.3;
}

.guide-update-note,
.initialization-card-description {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}

.upgrade-instruction-button {
  padding: 0;
  border: 0;
  color: #efab08;
  background: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.upgrade-instruction-button:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: 3px;
}

.upgrade-dialog {
  width: min(1040px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100svh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(21 57 102 / 0.2);
  border-radius: 12px;
  color: var(--color-copy);
  background: var(--color-white);
  box-shadow: 0 24px 80px rgb(21 57 102 / 0.22);
}

.upgrade-dialog::backdrop {
  background: rgb(21 38 58 / 0.5);
}

.upgrade-dialog-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 26px);
  font-size: 16px;
  line-height: 1.6;
}

.upgrade-dialog-header {
  position: relative;
  flex: 0 0 auto;
  padding: 24px 32px 20px;
  border-bottom: 1px solid #dce5ef;
}

.upgrade-dialog-header .guide-step-label {
  padding-right: 44px;
  font-size: 14px;
}

.upgrade-dialog-title {
  margin: 0 44px 8px 0;
  color: var(--color-heading);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.upgrade-dialog-title:focus,
.upgrade-step h3:focus {
  outline: none;
}

#upgrade-instruction-summary {
  margin: 0;
  max-width: 720px;
}

.upgrade-dialog-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: white;
  color: var(--color-heading);
  cursor: pointer;
}

.upgrade-dialog-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.upgrade-step-navigation {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.upgrade-step-navigation button {
  width: 52px;
  height: 44px;
  padding: 0;
  border: 1px solid #b9cde1;
  border-radius: 6px;
  background: white;
  color: var(--color-heading);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.upgrade-step-navigation button[aria-current="step"] {
  color: white;
  background: var(--color-heading);
  border-color: var(--color-heading);
}

.upgrade-dialog-close:focus-visible,
.upgrade-step-navigation button:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 3px;
}

.upgrade-dialog-body {
  flex: 1 1 auto;
  height: 420px;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 32px;
  overscroll-behavior: contain;
}

@media (min-width: 680px) {
  /* Trim 25px above and below while preserving the panels' usable height. */

  #upgrade-instruction-dialog .upgrade-dialog-body {
    height: 370px;
    padding-block: 3px;
  }
}

.upgrade-step {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
  min-height: 100%;
}

.upgrade-step[hidden] {
  display: none;
}

.upgrade-step-copy {
  min-width: 0;
  align-self: start;
  padding-top: 32px;
}

.upgrade-step h3 {
  margin: 0 0 18px;
  color: var(--color-heading);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.upgrade-heading-line {
  display: block;
}

.upgrade-step p {
  margin: 0 0 16px;
}

.upgrade-step p:last-child {
  margin-bottom: 0;
}

.upgrade-step[aria-labelledby="upgrade-connect-title"] .upgrade-step-copy p,
.upgrade-step[aria-labelledby="upgrade-import-title"] .upgrade-step-copy p {
  margin-bottom: 0;
}

.upgrade-file-count {
  color: #ce3b2a;
  font-weight: 700;
}

.upgrade-step-note {
  padding: 12px 16px;
  border-left: 3px solid #3977af;
  border-radius: 0 6px 6px 0;
  background: #eef4fa;
}

.upgrade-file-list {
  margin: 16px 0;
  padding-left: 28px;
  list-style: decimal;
}

.upgrade-file-list li + li {
  margin-top: 10px;
}

.upgrade-file-list code {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #b9cde1;
  border-radius: 6px;
  color: var(--color-heading);
  background: white;
  font-family: inherit;
  font-weight: 700;
}

.upgrade-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  min-height: 300px;
  margin: 0;
  padding: 24px 20px 20px;
  border: 1px solid #d4dfeb;
  border-radius: 12px;
  background: linear-gradient(145deg, white, #eef4fa);
  color: var(--color-heading);
}

.upgrade-flow-illustration {
  gap: 24px;
}

.upgrade-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.upgrade-flow-node {
  display: grid;
  place-items: center;
  min-width: 140px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid #b9cde1;
  border-radius: 10px;
  background: white;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.upgrade-flow-node.is-accent {
  border-color: #9abada;
  background: #e7f0f8;
}

.upgrade-flow-node small {
  color: var(--color-copy);
  font-size: 12px;
  font-weight: 600;
}

.upgrade-flow-arrow {
  color: #3977af;
  font-size: 34px;
  line-height: 1;
}

.upgrade-flow-file-pair {
  display: grid;
  gap: 10px;
}

.upgrade-flow-file-pair .upgrade-flow-node {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 16px;
}

.upgrade-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid #dce5ef;
  background: white;
}

.upgrade-step-counter {
  font-size: 14px;
  white-space: nowrap;
}

.upgrade-dialog-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 20px;
}

.upgrade-dialog-tools .upgrade-step-navigation {
  margin-top: 0;
}

.guide-action-button.upgrade-dd-help {
  margin-left: auto;
  border-color: #ad3023;
  background: #ce3b2a;
  color: white;
  font-weight: 700;
  box-shadow: 0 3px 10px rgb(173 48 35 / 16%);
}

.guide-action-button.upgrade-dd-help:hover {
  border-color: #942b20;
  background: #ad3023;
}

.guide-action-button.upgrade-dd-help:focus-visible {
  outline-color: #ce3b2a;
  outline-offset: 3px;
}

.dd-version-summary {
  margin: 0;
  max-width: 720px;
}

.dd-version-dialog .upgrade-dialog-body {
  height: 526px;
}

.dd-step-navigation {
  overflow-x: auto;
  padding-bottom: 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.dd-step-navigation button {
  flex: 0 0 44px;
  width: 44px;
}

.dd-screen-illustration {
  gap: 8px;
  padding: 12px 16px;
}

.dd-device {
  width: min(100%, 260px);
}

.dd-original-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: auto;
}

.dd-original-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 430px;
  height: auto;
  object-fit: contain;
}

.dd-photo-press {
  position: absolute;
  overflow: hidden;
  border-radius: 3px;
  background: #3977af;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}

.dd-photo-press img {
  position: absolute;
  width: 277.7778%;
  max-width: none;
  max-height: none;
  height: auto;
  filter: grayscale(1) contrast(1.8) invert(1) brightness(2);
  mix-blend-mode: screen;
}

.dd-original-stage-connect .dd-photo-press {
  left: 13.3%;
  top: 55.7%;
  width: 36%;
  height: 7.6%;
}

.dd-original-stage-connect .dd-photo-press img {
  left: -36.9444%;
  top: -732.8947%;
}

.dd-original-stage-menu .dd-photo-press {
  left: 51.2245%;
  top: 30.6542%;
  width: 36.1224%;
  height: 6.9782%;
}

.dd-original-stage-menu .dd-photo-press img {
  width: 276.8362%;
  left: -141.8079%;
  top: -439.2857%;
}

.dd-photo-press.is-pressing {
  animation: trex-menu-press 2800ms ease-in-out infinite;
}

.dd-original-stage .dd-photo-press img {
  border-radius: 0;
}

.dd-device-display > * {
  font-size: 3.8cqw;
}

.dd-display-header {
  display: grid;
  grid-template-columns: 17% minmax(0, 1fr);
  align-items: center;
  gap: 3%;
  flex: 0 0 13.5%;
  padding: 2%;
  background: linear-gradient(120deg, #91bcd9, #4079a8);
  color: white;
}

.dd-display-header.is-manufacturer {
  grid-template-columns: minmax(0, 1fr);
  color: #202b38;
  background: #dceaf5;
}

.dd-display-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  border: 1px solid #98aebe;
  border-radius: 2px;
  color: #27323e;
  background: #dce9f2;
  font-size: 3.9cqw;
  line-height: 1.2;
}

.dd-close-symbol {
  font-size: 7cqw;
  font-weight: 700;
  line-height: 1;
}

.dd-display-identity {
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  min-width: 0;
}

.dd-display-identity strong {
  font-size: 4.9cqw;
  font-weight: 500;
  line-height: 1.1;
}

.dd-display-identity span {
  font-size: 3.25cqw;
  line-height: 1.1;
}

.dd-display-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}

.dd-display-row {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-height: 0;
  padding: 2% 2.5%;
  border-bottom: 1px solid #a7bacb;
  font-size: 4.05cqw;
  line-height: 1.15;
}

.dd-scroll-marker {
  flex: 0 0 3.2%;
  text-align: center;
  font-size: 4cqw;
  line-height: 1;
}

.dd-display-cancel {
  display: grid;
  place-items: center;
  flex: 0 0 11%;
  border-top: 1px solid #a7bacb;
  background: #dce8f2;
  font-size: 4.5cqw;
}

@media (prefers-reduced-motion: reduce) {
  .dd-photo-press.is-pressing {
    animation: none;
    opacity: 1;
  }
}





.guide-media {
  display: grid;
  place-items: center;
  margin: 0;
  min-width: 0;
}

.guide-media-frame {
  position: relative;
  width: min(100%, 680px);
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgb(21 57 102 / 28%);
  border-radius: 16px;
  background: #040404;
  box-shadow: 0 16px 42px rgb(21 57 102 / 13%), 0 2px 8px rgb(21 57 102 / 5%);
}

.guide-media-video,
.guide-media-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
}

.guide-media-poster,
.guide-media-frame.is-static .guide-media-video {
  display: none;
}

.guide-media-frame.is-static .guide-media-poster {
  display: block;
}

.guide-sound-button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgb(21 57 102 / 18%);
  border-radius: 50%;
  background: rgb(255 255 255 / 95%);
  color: var(--color-heading);
  box-shadow: 0 3px 12px rgb(0 0 0 / 16%);
  cursor: pointer;
}

.guide-sound-button:hover {
  background: #fff;
  border-color: var(--color-heading);
}

.guide-sound-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-sound-button[aria-pressed="true"] .guide-sound-muted,
.guide-sound-button[aria-pressed="false"] .guide-sound-waves {
  display: none;
}

.guide-sound-button:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 3px;
}

.guide-sound-button[hidden] {
  display: none;
}



@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }
}

/* Connection media and segment controls. */

.guide-media-cues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.guide-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(21 57 102 / 24%);
  border-radius: 6px;
  background: white;
  color: var(--color-heading);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.guide-action-button span {
  font-weight: 800;
}

.guide-action-button[aria-pressed="true"] {
  background: var(--color-heading);
  color: white;
}

.guide-action-button:focus-visible {
  outline: 3px solid var(--color-heading);
  outline-offset: 3px;
}

.guide-media-reference {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
}

.guide-media-frame.is-reference .guide-media-reference {
  display: block;
}

.guide-hart-reference {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.guide-hart-reference > :is(video, img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-hart-fallback {
  display: none;
}

:is(.is-static, .is-reference-error) .guide-hart-video {
  display: none;
}

:is(.is-static, .is-reference-error) .guide-hart-fallback {
  display: block;
}

.guide-media-frame.is-reference .guide-media-video,
.guide-media-frame.is-reference .guide-media-poster {
  display: none;
}

.guide-connection-frame.guide-media-frame {
  padding: 0;
}

.guide-connection-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 12px 20px;
  border-bottom: 1px solid #d4dfeb;
  background: #fff;
}

.guide-connection-kicker {
  color: #ce3b2a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guide-connection-phase {
  color: var(--color-heading);
  font-size: 18px;
  white-space: nowrap;
}

.guide-connection-visual {
  padding: 8px;
  background: #000000;
}

.guide-connection-card-footer {
  padding: 14px 20px 16px;
  border-top: 1px solid #d4dfeb;
  background: #fff;
}

.guide-connection-caption {
  min-height: 48px;
  margin: 0;
  color: var(--color-copy);
  font-size: 16px;
  line-height: 1.5;
}



.guide-media-frame.guide-connection-frame .guide-connection-card-footer .guide-media-cues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 0;
}

.guide-connection-card-footer .guide-action-button {
  min-width: 0;
}



.trex-media {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

.trex-photo-stage {
  position: relative;
}

.trex-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* The overlay uses the photograph's coordinates; it never edits screen text. */

/* Match body widths and card sizes while preserving each photograph's ratio. */

.trex-photo-canvas {
  width: 100%;
  aspect-ratio: 939 / 1589;
  display: grid;
  align-items: center;
}

.trex-photo-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: var(--trex-artwork-ratio, 836 / 1370);
  max-width: 100%;
  margin-inline: auto;
}

/* Reuse the exact photographed icon and label inside the pressed tile. */

.trex-menu-press {
  position: absolute;
  left: 13%;
  top: 12.5%;
  width: 24%;
  height: 15.4%;
  overflow: hidden;
  border-radius: 3px;
  background: #3977af;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}

.trex-menu-press img {
  position: absolute;
  left: -54.1667%;
  top: -81.1688%;
  width: 416.6667%;
  max-width: none;
  height: auto;
  filter: grayscale(1) contrast(1.8) invert(1) brightness(2);
  mix-blend-mode: screen;
}

.trex-menu-press.is-pressing {
  animation: trex-menu-press 2800ms ease-in-out infinite;
}

.trex-menu-press-configure {
  left: 70.1%;
  top: 59.74%;
  width: 20.22%;
  height: 7.44%;
}

.trex-menu-press-configure img {
  left: -346.6864%;
  top: -802.957%;
  width: 494.5598%;
  filter: brightness(0.8) contrast(2.4);
}

.guide-forward-button.is-replay {
  padding-inline: 16px;
  white-space: nowrap;
}

@keyframes trex-menu-press {
  0%, 15%, 55%, 100% {
    opacity: 0;
  }

  22%, 42% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trex-menu-press.is-pressing {
    animation: none;
    opacity: 1;
  }
}

/* Source-matched display drawings use the same unmodified TREX photograph. */

/* Step 4 swaps only the LCD; the same Home enclosure stays in place. */
[data-trex-launch-sequence] .trex-menu-press.is-pressing {
  animation: trex-menu-press 1200ms ease-in-out 1;
}

.trex-detection-display {
  position: absolute;
  left: 9.8086%;
  top: 5.5474%;
  width: 80.3828%;
  height: 65.6934%;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}

.trex-detection-photo {
  position: absolute;
  left: -26.1905%;
  top: -20%;
  width: 152.381%;
  max-width: none;
  height: auto;
}

.trex-launch-overview-display {
  container-type: inline-size;
}

.trex-launch-overview-photo {
  position: absolute;
  left: -12.6488%;
  top: -8.7583%;
  width: 125.1488%;
  max-width: none;
  height: auto;
}

.trex-launch-overview-time {
  position: absolute;
  left: 44.2%;
  top: 0.9%;
  width: 11.8%;
  height: 3.1%;
  display: grid;
  place-items: center;
  background: linear-gradient(110deg, #2d3943, #303d46);
  color: #fff;
  font: 3.125cqw / 1 Arial, sans-serif;
}

/* Cover the static wheel in the photo with a matching live, transparent SVG. */
.trex-detection-loading {
  position: absolute;
  left: 42.2619%;
  top: 54.6667%;
  width: 15.4762%;
  height: 11.5556%;
  background: linear-gradient(#eef4fa, #eef5fb);
}

.trex-detection-spinner {
  display: block;
  width: 100%;
  height: 100%;
  color: #97a5bb;
}

[data-launch-phase="detection"] .trex-detection-spinner {
  animation: trex-detection-spin 3.333333s linear infinite;
}

@keyframes trex-detection-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  [data-trex-launch-sequence] .trex-menu-press.is-pressing {
    animation: none;
    opacity: 1;
  }
  [data-launch-phase="detection"] .trex-detection-spinner {
    animation: none;
  }
}

.trex-device-display {
  position: absolute;
  left: 9.93%;
  top: 5.62%;
  width: 80.62%;
  height: 65.79%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  container-type: inline-size;
  font-family: Arial, sans-serif;
  font-size: 3.5cqw;
  color: #202b38;
  background: linear-gradient(115deg, #edf6fc, #dfedf8);
}

.trex-device-display * {
  flex-shrink: 0;
}

.trex-display-icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.trex-display-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3%;
  flex: 0 0 4.2%;
  padding-inline: 2%;
  color: white;
  background: #343d48;
  font-size: 3cqw;
  line-height: 1;
}

.trex-display-time {
  position: absolute;
  left: 47%;
  font-weight: 600;
}

.trex-display-header {
  display: grid;
  grid-template-columns: 18% 60% 17%;
  align-items: center;
  gap: 2%;
  flex: 0 0 13.5%;
  padding: 2% 2%;
  color: white;
  background: linear-gradient(120deg, #91bcd9, #4079a8);
}

.trex-display-back,
.trex-display-alerts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2%;
  height: 100%;
  border: 1px solid #6b7f91;
  border-radius: 2px;
  color: #27323e;
  background: linear-gradient(120deg, #edf4f8, #cadbea);
  font-size: 3.4cqw;
}

.trex-display-back {
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 50%);
  padding-left: 10%;
}

.trex-display-back .trex-display-icon {
  stroke-width: 4;
}

.trex-display-back[type="button"] {
  font-family: inherit;
  cursor: pointer;
  background-image: none;
  background-color: #e3edf5;
}

.trex-display-back[type="button"]:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: -3px;
}

.trex-display-alerts .trex-display-icon {
  width: 1.7em;
  height: 1.7em;
}

.trex-display-identity {
  display: flex;
  flex-direction: column;
  gap: 1%;
  min-width: 0;
  font-size: 3.2cqw;
  line-height: 1.15;
}

.trex-display-identity strong {
  margin-top: 2%;
  font-size: 4.6cqw;
  font-weight: 600;
}

.trex-display-header.is-information {
  grid-template-columns: 100%;
}

.trex-display-body {
  flex: 1 1 0;
  min-height: 0;
}

.trex-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 17.1%;
  padding-inline: 2.4%;
  border-bottom: 1px solid #a7bacb;
  font-size: 4.1cqw;
  line-height: 1.1;
}

.trex-display-row .trex-display-icon {
  color: #507797;
  width: 1.1em;
  height: 1.1em;
}

.trex-display-navigation {
  display: flex;
  flex: 0 0 12%;
}

.trex-display-navigation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
  width: 25%;
  color: white;
  background: #44546a;
  border-right: 1px solid #9aa7b5;
  font-size: 3.3cqw;
  line-height: 1;
}

.trex-display-navigation-item .trex-display-icon {
  width: 2.2em;
  height: 2.2em;
}

.trex-display-navigation-item.is-selected {
  color: #33475a;
  background: #cfdfed;
}

.trex-display-field {
  position: relative;
  height: 16%;
  padding: 2% 2.4%;
  border-bottom: 1px solid #a7bacb;
}

.trex-display-field-label {
  display: block;
  font-size: 3.8cqw;
  line-height: 1.1;
}

.trex-display-field-value {
  display: block;
  padding: 2% 5% 0;
  text-align: right;
  font-size: 3.8cqw;
}

.trex-display-field-value.is-centered {
  text-align: center;
}

.trex-display-field .trex-display-icon {
  position: absolute;
  right: 2%;
  top: 40%;
  width: 4cqw;
  height: 4cqw;
  color: #6586a3;
}

.trex-display-actions {
  display: flex;
  flex: 0 0 10%;
  color: #4b5660;
  background: #dae4ed;
}

.trex-display-action {
  display: grid;
  place-items: center;
  width: 50%;
  border-right: 1px solid #a7bacb;
  font-size: 4cqw;
}

.trex-display-action[type="button"] {
  padding: 0;
  border: 0;
  border-right: 1px solid #a7bacb;
  border-radius: 0;
  font-family: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.trex-display-action[type="button"]:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: -3px;
}

.guide-final-photo {
  overflow: hidden;
}

.guide-final-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.trex-display-modal-heading {
  flex: 0 0 25.5%;
  padding: 3% 2.4%;
  border-bottom: 1px solid #a7bacb;
  font-size: 4.4cqw;
}

.trex-display-message {
  flex: 1 1 0;
  padding: 3% 2.4%;
  font-size: 4.1cqw;
  line-height: 1.25;
}

.trex-display-message p {
  margin: 0;
}

.trex-screen-target.is-pressing {
  animation: trex-screen-press 2800ms ease-in-out infinite;
}

.trex-screen-target.is-pressing .trex-display-icon {
  color: inherit;
}

/* Step 9 changes only the LCD and keeps one enclosure throughout. */
.trex-finish-photo-display {
  position: absolute;
  left: 9.93%;
  top: 5.62%;
  width: 80.62%;
  height: 65.79%;
  overflow: hidden;
  border-radius: 2px;
  container-type: inline-size;
}

.trex-finish-photo-display > img {
  position: absolute;
  max-width: none;
  height: auto;
}

.trex-finish-disconnect > img {
  left: -12.2785%;
  top: -8.5086%;
  width: 124.0506%;
}

.trex-finish-home > img {
  left: -12.2024%;
  top: -8.4444%;
  width: 124.4048%;
}

.trex-finish-time {
  position: absolute;
  left: 44.2%;
  top: 1.1%;
  width: 13%;
  height: 3.7%;
  display: grid;
  place-items: center;
  background: #1c2b37;
  color: #fff;
  font: 600 3.9cqw / 1 Arial, sans-serif;
}

.trex-finish-disconnect-ok {
  position: absolute;
  left: 49.6%;
  top: 70.6%;
  width: 49.5%;
  height: 10.8%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #dbe5ed;
  color: #4b5660;
  font: 5.4cqw / 1 Arial, sans-serif;
  cursor: pointer;
}

.trex-finish-disconnect-ok:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: -3px;
}

[data-trex-finish-sequence] .trex-screen-target.is-pressing {
  animation-iteration-count: 1;
}

@keyframes trex-screen-press {
  0%, 15%, 55%, 100% {
    background-color: transparent;
    color: #202b38;
  }

  22%, 42% {
    background-color: #3977af;
    color: white;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trex-screen-target.is-pressing {
    animation: none;
    background-color: #3977af;
    color: white;
  }
}



/* Open presentation from composition A, scoped to main-guide Steps 4â€“10. */

.guide-open-media {
  --guide-open-media-height: clamp(520px, 66.5svh, 600px);
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 680px);
  height: var(--guide-open-media-height);
  min-width: 0;
  padding: 20px;
}

.guide-open-media .trex-photo-panel {
  width: min(100%, 360px, calc((var(--guide-open-media-height) - 42px) * 939 / 1589));
}

.guide-open-media .guide-final-photo {
  width: 100%;
}



.setup-done-mobile-punctuation {
  display: none;
}



