/* Shared guided flow. The advanced editor keeps the workspace layout. */
.cfg-workspace-tools {
  display: none;
}

.configurator-page[data-cfg-view="guided"] .cfg-mobile-shell {
  display: flex !important;
  width: min(100%, 1120px);
  align-self: center;
}

.configurator-page[data-cfg-view="guided"] .cfg-save-status {
  align-self: center;
  width: min(calc(100% - 16px), 1120px);
  margin-top: 4px;
  color: #e4e8ef;
  background: #1d2028;
  border: 1px solid #3a404b;
}

.cfg-mobile-shell .cfg-step-card-title {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  text-wrap: balance;
}

.cfg-mobile-shell .cfg-step-card-sub {
  color: #bfc6d1;
  font-size: 1rem;
}

.cfg-mobile-shell .cfg-step-card {
  overscroll-behavior: contain;
}

.cfg-start-heading {
  display: grid;
  gap: 8px;
  max-width: 44rem;
}

.configurator-page[data-cfg-view="guided"][data-cfg-step="0"] [data-cfg-layout-shortcut],
.configurator-page[data-cfg-view="guided"][data-cfg-step="0"] .cfg-mobile-progress {
  display: none;
}

.cfg-layout-entry {
  flex: 0 0 auto;
  display: grid;
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
  color: #f4f6fa;
  background: linear-gradient(120deg, #2b1c25, #211e2a 78%);
  border: 1px solid #865661;
  border-radius: 16px;
}

.cfg-layout-entry-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.cfg-mobile-shell .cfg-layout-entry .cfg-step-card-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  text-wrap: initial;
}

.cfg-layout-entry-copy p {
  max-width: 44ch;
  margin: 0;
  color: #e1d9e1;
  font-size: .9375rem;
  line-height: 1.45;
}

.cfg-layout-entry .cfg-layout-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding-inline: 16px;
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

.cfg-layout-entry-button:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.cfg-layout-entry-preview {
  display: none;
}

.cfg-layout-entry-plan {
  position: relative;
  width: min(76%, 265px);
  aspect-ratio: 2.2;
  border: 2px solid #aeb8cc;
  background-color: #263044;
  isolation: isolate;
}

.cfg-layout-entry-plan > span {
  position: absolute;
}

.cfg-layout-entry-wall {
  inset: 0 auto 42% 44%;
  border-left: 2px solid #aeb8cc;
}

.cfg-layout-entry-route {
  inset: 19% 18% 20%;
  border: 2px dashed #ffd183;
  border-left: 0;
  border-bottom: 0;
}

.cfg-layout-entry-coverage {
  width: 35%;
  height: 68%;
  background: #5dc59355;
}

.cfg-layout-entry-coverage-a {
  top: 19%;
  left: 18%;
  clip-path: polygon(0 0, 65% 45%, 2% 100%);
}

.cfg-layout-entry-coverage-b {
  top: 19%;
  right: 18%;
  clip-path: polygon(100% 0, 30% 45%, 96% 100%);
}

.cfg-layout-entry-camera {
  top: 19%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f47987;
  box-shadow: 0 0 0 1px #ffe5e9;
  transform: translate(50%, -35%);
}

.cfg-layout-entry-camera-a {
  left: 18%;
  transform: translate(-45%, -35%);
}

.cfg-layout-entry-camera-b {
  right: 18%;
}

.cfg-layout-entry-rack {
  right: 18%;
  bottom: 13%;
  width: 16px;
  height: 23px;
  border: 1px solid #dfedff;
  border-radius: 2px;
  background: repeating-linear-gradient(#5d7192 0 2px, #273448 2px 5px);
  transform: translateX(55%);
}

.cfg-system-choices {
  display: grid;
  gap: 10px;
  margin-block: 6px;
}

.cfg-system-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 80px;
  padding: 14px;
  text-align: left;
  font: inherit;
  color: #f4f6fa;
  border: 1px solid #454b56;
  border-radius: 14px;
  background: #1b1d24;
  cursor: pointer;
}

.cfg-system-choice:hover {
  border-color: #e5747f;
  background: #242128;
}

.cfg-system-choice:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.cfg-system-choice svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #ff98a1;
  background: #38252c;
  border-radius: 11px;
}

.cfg-system-choice-copy {
  display: grid;
  gap: 4px;
}

.cfg-system-choice-copy strong {
  font-size: 1.06rem;
  line-height: 1.25;
}

.cfg-system-choice-copy small {
  font-size: .73em;
  color: #c6cbd4;
  white-space: nowrap;
}

.cfg-system-choice-copy > span {
  font-size: .875rem;
  line-height: 1.45;
  color: #bfc6d1;
}

.cfg-system-choice-arrow {
  font-size: 1.25rem;
  color: #ff98a1;
}

.cfg-start-return {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .875rem;
  color: #bfc6d1;
}

.cfg-mobile-shell .cfg-wizard-zone .cfg-structure-item-btn {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 16px;
  min-height: 56px;
  padding: 10px 14px;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.cfg-wizard-zone-meta {
  color: #c7cdd7;
}

.cfg-wizard-zone-state {
  color: #a9e7cb;
}

.cfg-wizard-zone-state[data-cfg-review-state="pending"] {
  color: #ffcc8f;
}

.cfg-mobile-layout-button {
  flex: 0 0 auto;
  min-height: 44px;
  letter-spacing: normal;
  text-transform: none;
}

@media (min-width: 761px) {
  .cfg-workspace-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 2px 8px;
    color: #cdd1da;
    font-size: .875rem;
  }

  .cfg-workspace-tools > span {
    margin-inline-end: auto;
  }

  .cfg-workspace-tools button {
    min-height: 44px;
    letter-spacing: normal;
    text-transform: none;
  }

  .configurator-page[data-cfg-view="guided"] .cfg-mobile-topbar {
    display: none;
  }

  .configurator-page[data-cfg-view="guided"] .cfg-workspace-tools {
    width: min(100%, 1120px);
    align-self: center;
  }

  .cfg-mobile-shell .cfg-step-card {
    padding: clamp(18px, 3vw, 32px);
  }

  .cfg-mobile-shell [data-cfg-mobile-step="0"] {
    justify-content: flex-start;
  }

  .cfg-layout-entry {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .cfg-layout-entry .cfg-layout-entry-button {
    width: fit-content;
  }

  .cfg-layout-entry-preview {
    display: grid;
    min-height: 138px;
    place-items: center;
    border: 1px solid #514757;
    border-radius: 12px;
    background:
      repeating-linear-gradient(0deg, transparent 0 15px, #ffffff09 15px 16px),
      repeating-linear-gradient(90deg, transparent 0 15px, #ffffff09 15px 16px),
      #191e2b;
  }

  .cfg-system-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-block: 12px;
  }

  .cfg-system-choice {
    grid-template: auto 1fr / minmax(0, 1fr) auto;
    align-items: start;
    min-height: 160px;
    padding: 18px;
  }

  .cfg-system-choice-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cfg-mobile-shell .cfg-mobile-bottom {
    justify-content: flex-end;
  }

  .cfg-mobile-shell .cfg-mobile-nav-btn {
    flex: 0 1 auto;
    min-width: 126px;
  }
}

@media (min-width: 960px) {
  .cfg-mobile-shell .cfg-wizard-zone .cfg-structure-item-btn {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
}

@media (min-width: 761px) and (max-height: 450px) {
  .cfg-mobile-shell {
    --cfg-m-progress: 32px;
    --cfg-m-bottom: 56px;
  }

  .cfg-mobile-shell [data-cfg-mobile-step="0"] {
    gap: 8px;
    justify-content: flex-start;
    padding: 12px;
  }

  .cfg-start-heading {
    gap: 4px;
    max-width: none;
  }

  .cfg-start-heading .cfg-step-card-sub {
    font-size: .875rem;
  }

  .cfg-system-choices {
    margin-block: 2px;
  }

  .cfg-system-choice {
    grid-template: 1fr / auto minmax(0, 1fr);
    gap: 8px;
    min-height: 96px;
    padding: 10px;
  }

  .cfg-system-choice-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .cfg-system-choice-copy strong {
    font-size: .9375rem;
  }

  .cfg-system-choice-arrow {
    display: none;
  }
}
