[hidden] {
  display: none !important;
}

.workbench {
  --sketch: 0;
  --surface: 1;
  --structure: 1;
  --drawing: 1;
  --grid: 0;
  --wire-draw: 0;
  --lift: 0px;
  --tilt: 0deg;
}
.edition {
  display: none;
}
.experience-jump {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 22px;
  color: #53779a;
  transform: rotate(-3deg);
}
.experience-jump:hover {
  color: var(--red);
}
.workbench:not(.is-built) .preview-tools {
  opacity: 0.35;
}

.assembly-invitation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.assembly-invitation > .handwritten {
  font-size: 22px;
  line-height: 1.1;
  color: #4f7196;
}
.tour-controls {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
}
#autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-size: 10px;
  color: #778897;
  text-align: left;
}
#autoplay-icon {
  color: var(--red);
  font-size: 15px;
}
#autoplay-toggle:hover {
  color: var(--red);
}
#replay-build {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 0;
  font-size: 10px;
  color: #778897;
}
#replay-build > span:first-child {
  font-size: 19px;
  color: var(--red);
}
#replay-build:hover {
  color: var(--red);
}
.hero-controls {
  align-items: center;
}
.progress-track {
  min-height: 50px;
}
.progress-fill {
  transition: none;
}
.progress-track::before,
.progress-fill {
  top: 5px;
}
.progress-track button {
  position: absolute;
  padding-top: 26px;
  width: max-content;
  transform: translateX(-50%);
}
.progress-track button[data-stage='0'] {
  left: 7px;
  transform: none;
}
.progress-track button[data-stage='1'] {
  left: calc(33.333% + 2.333px);
}
.progress-track button[data-stage='2'] {
  left: calc(66.667% - 2.333px);
}
.progress-track button[data-stage='3'] {
  right: 7px;
  transform: none;
}
.progress-track button i {
  display: none;
}
.progress-track button::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid #8a9ba9;
  background: var(--paper);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: calc(50% - 3px);
}
.progress-track button.active::before {
  border-color: var(--red);
}
.progress-track button[data-stage='0']::before {
  left: -3px;
}
.progress-track button[data-stage='3']::before {
  left: auto;
  right: -3px;
}
#build-progress {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 100%;
  height: 44px;
  top: -16px;
  left: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
  z-index: 5;
}
#build-progress::-webkit-slider-runnable-track {
  height: 1px;
  background: transparent;
}
#build-progress::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--paper);
  box-shadow:
    0 0 0 1px var(--red),
    0 2px 5px #65332725;
}
#build-progress::-moz-range-track {
  height: 1px;
  background: transparent;
}
#build-progress::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--red);
}
#build-progress:focus-visible {
  outline: 1px dashed #c54d3570;
  outline-offset: 0;
  border-radius: 3px;
}
.progress-group > p {
  margin-top: 0;
}
.assembly-finish {
  color: #60798f;
  font:
    21px/1.4 'Workshop Notes',
    cursive;
  text-align: center;
  margin: 20px auto 0;
  opacity: 0.2;
  transition: opacity 0.4s;
}
.assembly-finish.visible {
  opacity: 1;
}
.hero-baseline {
  border-bottom: 0;
  padding-bottom: 0;
}
.hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.workbench .tracing-back {
  opacity: calc(0.25 + var(--structure) * 0.32);
  transform: rotate(calc(-5deg + var(--structure) * 4deg));
}
.workbench[data-stage] .diagram-nodes {
  opacity: calc(0.2 + var(--structure) * 0.8);
}
.workbench[data-stage] .diagram-node {
  transform: none;
}
.workbench[data-stage] .connector-lines {
  opacity: 1;
}
.workbench .wire {
  stroke-dasharray: 1;
  stroke-dashoffset: var(--wire-draw);
}
.workbench .return-wire {
  opacity: calc(0.65 * var(--structure));
}
.workbench .diagram-detail {
  opacity: var(--structure);
}
.workbench .brief mark::after {
  transform-origin: left;
  transform: rotate(-1deg) scaleX(calc(0.15 + var(--structure) * 0.85));
}
.workbench[data-stage] #preview {
  opacity: 1;
  transform: none;
}
.changing #preview {
  animation: none;
}
.workbench .diagram-node {
  transition: none;
}

.preview-shell {
  container-type: inline-size;
  container-name: example;
  position: relative;
  margin-inline: auto;
  max-width: 100%;
  min-width: 0;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.workbench #scenario-quote {
  min-height: var(--quote-height, 0px);
}
.workbench #scenario-note {
  min-height: var(--note-height, 0px);
}
.workbench #preview {
  min-height: var(--preview-height, 0px);
}
.scene-measurement {
  position: fixed !important;
  left: -10000px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}
.scene-measurement #scenario-quote,
.scene-measurement #scenario-note,
.scene-measurement #preview {
  min-height: 0;
}
.scene-measurement .preview-shell {
  transition: none;
}
.device-ghost {
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: center top;
  pointer-events: none;
  z-index: 6;
}
.device-transition .preview-shell {
  view-transition-name: studio-preview;
  transition: none;
}
::view-transition-group(studio-preview) {
  animation-duration: 0.65s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(studio-preview),
::view-transition-new(studio-preview) {
  height: 100%;
  animation-duration: 0.45s;
}
::view-transition-old(root),
::view-transition-new(root),
::view-transition-group(root) {
  animation: none;
}
html {
  scrollbar-gutter: stable;
}
.preview-shell.is-resizing {
  transition: none;
}
#preview {
  position: relative;
  display: block;
  min-height: 0;
  width: 100%;
  perspective: 900px;
}
.preview-live {
  position: relative;
  opacity: var(--surface);
  transform: translateY(var(--lift)) rotate(var(--tilt));
  filter: grayscale(calc(1 - var(--surface)));
  transform-origin: 45% 85%;
}
.sketch-layer {
  position: absolute;
  inset: 0;
  opacity: var(--sketch);
  color: #5e7894;
  pointer-events: none;
  transform: rotate(-1deg);
}
.sketch-layer > svg {
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: visible;
}
.sketch-layer path {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--drawing));
}
.sketch-note {
  position: absolute;
  left: 26px;
  top: -25px;
  font-size: 22px;
  color: #54779a;
  transform: rotate(-6deg);
}
.grid-note {
  position: absolute;
  right: 15px;
  bottom: 9px;
  font-size: 18px;
  color: var(--red);
}
.preview-grid {
  position: absolute;
  inset: 10px;
  opacity: var(--grid);
  border: 1px solid #6e91b066;
  background-image:
    linear-gradient(#6e91b033 1px, transparent 1px),
    linear-gradient(90deg, #6e91b033 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.resize-grip {
  position: absolute;
  right: -18px;
  top: calc(50% - 30px);
  width: 36px;
  height: 60px;
  padding: 0;
  cursor: ew-resize;
  touch-action: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.2s;
}
.resize-grip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid #c9d2d8;
  border-radius: 12px;
  box-shadow: 0 3px 7px #142d4215;
  width: 24px;
  height: 42px;
  margin: auto;
  font-size: 17px;
  color: var(--red);
}
.is-built .resize-grip {
  opacity: 1;
}
.resize-grip:hover > span,
.resize-grip:focus-visible > span {
  border-color: var(--red);
}
.preview-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.preview-tools > .handwritten {
  color: #557796;
  font-size: 19px;
  line-height: 1.1;
}
.viewport-switch {
  display: flex;
  flex-shrink: 0;
  gap: 7px;
}
.viewport-switch button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8293a1;
}
.viewport-switch button[aria-pressed='true'] {
  color: var(--red);
  border-color: #c54d3540;
}
.viewport-switch svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}
.preview-caption {
  margin-top: 8px;
}

.mini-menu {
  padding: 8px 0 8px 8px;
}
.mini-menu i {
  width: 13px;
  height: 1px;
  background: #8599a7;
}
.demo-navigation {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin: -4px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce2e4;
}
.demo-navigation button {
  font-size: 10px;
  padding: 6px 0;
}
.demo-navigation button:hover {
  color: var(--red);
}
.mini-about {
  font-size: 11px;
  line-height: 1.6;
  color: #657e91;
  padding: 10px 0 17px;
}
.website-demo-contact {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #d8e0e4;
}
.website-demo-status {
  font-size: 10px;
  line-height: 1.6;
  color: #46715b;
}

@container example (max-width: 285px) {
  .window-bar {
    padding-inline: 10px;
  }
  .window-label {
    font-size: 8px;
  }
  .window-demo {
    font-size: 7px;
  }
  .website-preview {
    padding: 16px;
  }
  .mini-site-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mini-site-body img {
    grid-row: 1;
    height: 128px;
    width: 100%;
  }
  .mini-site-body h3 {
    max-width: 100%;
    font-size: 26px;
  }
  .mini-site-body p {
    font-size: 10px;
  }
  .mini-site-body .mini-button {
    font-size: 10px;
    width: 100%;
    justify-content: space-between;
  }
  .mini-site-footer {
    gap: 5px;
    margin-top: 16px;
  }
  .preview-body,
  .api-preview .preview-body {
    padding: 18px 15px;
  }
  .preview-body h3,
  .api-preview h3 {
    font-size: 25px;
  }
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .calendar-grid {
    gap: 3px;
  }
  .calendar-day {
    font-size: 10px;
  }
  .times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .times > span,
  .booking-confirm {
    grid-column: 1 / -1;
  }
  .time-slot {
    font-size: 10px;
    padding: 9px 2px;
  }
  .booking-confirm {
    font-size: 10px;
  }
  .booking-message {
    font-size: 10px;
  }
  .crm-window {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 14px 12px;
  }
  .crm-status {
    grid-column: 1 / -1;
  }
  .crm-record {
    font-size: 9px;
  }
  .demo-form label {
    font-size: 10px;
  }
  .demo-form input,
  .demo-form textarea {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .assembly-invitation {
    gap: 12px;
    align-items: flex-start;
  }
  .assembly-invitation > .handwritten {
    font-size: 20px;
  }
  #replay-build {
    font-size: 9px;
  }
  .tour-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  #autoplay-toggle {
    font-size: 9px;
  }
}

@media (max-width: 1150px) {
  .experience-jump {
    position: static;
    display: inline-block;
    font-size: 21px;
    margin-top: 13px;
  }
}

@media (max-width: 600px) {
  .assembly-invitation {
    margin-bottom: 25px;
  }
  .assembly-invitation > .handwritten {
    font-size: 21px;
    max-width: 210px;
  }
  #replay-build {
    max-width: 100px;
    text-align: left;
    line-height: 1.4;
  }
  .hero-controls {
    gap: 25px;
  }
  .preview-tools > .handwritten {
    font-size: 20px;
  }
  .assembly-finish {
    font-size: 21px;
    margin-top: 23px;
  }
  .resize-grip {
    right: -16px;
  }
  .sketch-note {
    top: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-shell,
  .assembly-finish,
  .resize-grip {
    transition: none;
  }
}
