/* ─── Setup guide: steps + 3D fold model ─── */
.cc_0a6rg038_ype3Iv37X4 .sg__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cc_0a6rg038_ype3Iv37X4 .sg__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: center;
  }
}

.cc_0a6rg038_ype3Iv37X4 .sg__text {
  margin-top: 0.75rem;
  max-width: 34rem;
}

.cc_0a6rg038_ype3Iv37X4 .sg__steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.cc_0a6rg038_ype3Iv37X4 .sg__step {
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: var(--fk-radius);
  background: none;
  font: inherit;
  font-size: var(--fk-fs-sm);
  line-height: 1.5;
  color: var(--fk-ink-2);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fk-dur) var(--fk-ease), color var(--fk-dur) var(--fk-ease);
}

.cc_0a6rg038_ype3Iv37X4 .sg__step:hover {
  background: var(--fk-panel);
  color: var(--fk-ink);
}

.cc_0a6rg038_ype3Iv37X4 .sg__steps li.is-on .sg__step {
  background: var(--fk-kraft-soft);
  color: var(--fk-ink);
}

.cc_0a6rg038_ype3Iv37X4 .sg__n {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fk-panel);
  font-size: var(--fk-fs-xs);
  font-weight: 700;
  transition: background-color var(--fk-dur) var(--fk-ease), color var(--fk-dur) var(--fk-ease);
}

.cc_0a6rg038_ype3Iv37X4 .sg__steps li.is-past .sg__n {
  background: var(--fk-kraft-soft);
  color: var(--fk-kraft);
}

.cc_0a6rg038_ype3Iv37X4 .sg__steps li.is-on .sg__n {
  background: var(--fk-ink);
  color: #fff;
}

.cc_0a6rg038_ype3Iv37X4 .sg__note {
  margin: 1rem 0 0;
  padding-inline: 0.75rem;
}

.cc_0a6rg038_ype3Iv37X4 .sg__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  margin-inline: 0.75rem;
}

/* ─── Viewer ─── */
.cc_0a6rg038_ype3Iv37X4 .sg__viewer {
  container-type: inline-size;
  min-width: 0;
  padding: 1rem 1rem 1.25rem;
  border-radius: calc(var(--fk-radius) * 1.5);
  background: var(--fk-panel);
}

.cc_0a6rg038_ype3Iv37X4 .sg__controls {
  width: min(28rem, 100%);
  margin-inline: auto;
}

.cc_0a6rg038_ype3Iv37X4 .sg__progress {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(20, 21, 27, 0.1);
}

.cc_0a6rg038_ype3Iv37X4 .sg__progress span {
  display: block;
  height: 100%;
  background: var(--fk-ink); /* progress, not an action: no red */
  transform-origin: left;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cc_0a6rg038_ype3Iv37X4 .sg__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.875rem;
}

.cc_0a6rg038_ype3Iv37X4 .sg__caption {
  margin: 0;
  color: var(--fk-ink-2);
  font-weight: 600;
}

/* ─── 3D fold model ───
   Sizes are the blank's proportions in px (base 220 × 160, walls 75 high); the rig is
   scaled to the viewer's width. Each panel darkens slightly as it folds. */
.cc_0a6rg038_ype3Iv37X4 .fm-stage {
  --k-base: #d9ac78;
  --k-dark: #7c4f22;
  --w: 220px;
  --d: 160px;
  --h: 75px;
  --flap: 71px;
  --th: 3.5px;
  --scale: 0.54;
  /* Walls up (0 → 0.125) and lid down (0.62 → 0.87): the rig moves and grows with them so
     the standing lid and the flat blank both stay inside the stage. */
  --rise: clamp(0, var(--fkt) * 8, 1);
  --shut: clamp(0, (var(--fkt) - 0.62) * 4, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(320px, 78cqw, 490px);
  perspective: 2500px;
  perspective-origin: 50% 45%;
  overflow: clip;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
  transition: --fkt var(--fm-dur, 1400ms) cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Narrow phones: the flat blank is the widest state. */
@container (max-width: 340px) {
  .cc_0a6rg038_ype3Iv37X4 .fm-stage {
    --scale: 0.47;
  }
}

@container (max-width: 300px) {
  .cc_0a6rg038_ype3Iv37X4 .fm-stage {
    --scale: 0.41;
  }
}

@container (min-width: 560px) {
  .cc_0a6rg038_ype3Iv37X4 .fm-stage {
    --scale: 0.74;
  }
}

@container (min-width: 640px) {
  .cc_0a6rg038_ype3Iv37X4 .fm-stage {
    --scale: 0.82;
  }
}

.cc_0a6rg038_ype3Iv37X4 .fm-shadow {
  position: absolute;
  bottom: calc(11% + var(--shut) * 9%);
  left: 50%;
  width: 58%;
  height: 48px;
  translate: -50% 0;
  background: radial-gradient(ellipse at center, rgba(20, 21, 27, 0.28) 0%, transparent 70%);
  filter: blur(14px);
  opacity: calc(0.32 + var(--fkt) * 0.42);
  scale: calc(0.84 + var(--fkt) * 0.16) calc(1 - var(--fkt) * 0.18);
}

.cc_0a6rg038_ype3Iv37X4 .fm-rig {
  transform-style: preserve-3d;
  translate: 0 calc((8px + var(--rise) * 40px - var(--shut) * 36px) * var(--scale) / 0.62);
  scale: calc(var(--scale) * (1 + var(--shut) * 0.2));
}

.cc_0a6rg038_ype3Iv37X4 .fm-box {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(54deg) rotateZ(-34deg) translateY(calc((1 - var(--fkt)) * 78px));
}

.cc_0a6rg038_ype3Iv37X4 .fm-p {
  position: absolute;
  transform-style: preserve-3d;
  --k-cut: rgba(58, 36, 14, calc(0.62 - var(--fkt) * 0.4));
  --k-fold: rgba(214, 34, 34, calc(0.58 - var(--fkt) * 0.5));
  --s: 0;
  --k: 0;
  --tint: 0;
  --p: clamp(0, (var(--fkt) - var(--s)) * var(--k), 1);
  --e: var(--p);
  background-color: color-mix(in srgb, var(--k-base), var(--k-dark) calc(var(--e) * var(--tint) * 1%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 10px rgba(0, 0, 0, 0.04);
}

/* Ease each panel's own progress: slow start, slow finish. */
@supports (width: calc(1px * cos(0deg))) {
  .cc_0a6rg038_ype3Iv37X4 .fm-p {
    --e: calc(0.5 - 0.5 * cos(var(--p) * 180deg));
  }
}

.cc_0a6rg038_ype3Iv37X4 .fm-cut {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cc_0a6rg038_ype3Iv37X4 .fm-cut path {
  fill: none;
  stroke: var(--k-cut);
  stroke-width: 1.15px;
  vector-effect: non-scaling-stroke;
}

/* Board thickness on the two edges that face the viewer when closed. */
.cc_0a6rg038_ype3Iv37X4 .fm-edge-t::before, .cc_0a6rg038_ype3Iv37X4 .fm-edge-b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--th);
  background-color: color-mix(in srgb, var(--k-base), #fff 22%);
  background-image: repeating-linear-gradient(90deg, rgba(122, 80, 34, 0.25) 0 1px, transparent 1px 4.5px);
}

.cc_0a6rg038_ype3Iv37X4 .fm-edge-t::before {
  top: 0;
  transform-origin: top;
  transform: rotateX(-90deg);
}

.cc_0a6rg038_ype3Iv37X4 .fm-edge-b::after {
  bottom: 0;
  transform-origin: bottom;
  transform: rotateX(90deg);
}

/* Fold lines (dashed) are part of the drawing, not decoration. */
.cc_0a6rg038_ype3Iv37X4 .fm-base, .cc_0a6rg038_ype3Iv37X4 .fm-wall, .cc_0a6rg038_ype3Iv37X4 .fm-side, .cc_0a6rg038_ype3Iv37X4 .fm-lid, .cc_0a6rg038_ype3Iv37X4 .fm-tongue {
  outline: 1px dashed var(--k-fold);
  outline-offset: -1px;
}

.cc_0a6rg038_ype3Iv37X4 .fm-base {
  width: var(--w);
  height: var(--d);
  left: calc(var(--w) / -2);
  top: calc(var(--d) / -2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 calc(6px + var(--fkt) * 24px) rgba(88, 55, 20, calc(0.05 + var(--fkt) * 0.16));
}

.cc_0a6rg038_ype3Iv37X4 .fm-slot {
  position: absolute;
  width: 8px;
  height: 26px;
  background: color-mix(in srgb, #fff, var(--k-dark) calc(var(--fkt) * 75%));
}

.cc_0a6rg038_ype3Iv37X4 .fm-slot--tl {
  left: 0;
  top: 23px;
}
.cc_0a6rg038_ype3Iv37X4 .fm-slot--bl {
  left: 0;
  bottom: 23px;
}
.cc_0a6rg038_ype3Iv37X4 .fm-slot--tr {
  right: 0;
  top: 23px;
}
.cc_0a6rg038_ype3Iv37X4 .fm-slot--br {
  right: 0;
  bottom: 23px;
}

/* Front and back walls */
.cc_0a6rg038_ype3Iv37X4 .fm-wall {
  left: 0;
  width: 100%;
  height: var(--h);
  --s: 0;
  --k: 7.692;
  --tint: 14;
}

.cc_0a6rg038_ype3Iv37X4 .fm-wall--front {
  top: 100%;
  transform-origin: top;
  transform: rotateX(calc(var(--e) * 90deg));
}

.cc_0a6rg038_ype3Iv37X4 .fm-wall--back {
  bottom: 100%;
  transform-origin: bottom;
  transform: rotateX(calc(var(--e) * -90deg));
}

/* Corner ears on the walls */
.cc_0a6rg038_ype3Iv37X4 .fm-ear {
  top: 0;
  width: var(--flap);
  height: 100%;
  --s: 0.1;
  --k: 10;
  --tint: 24;
}

.cc_0a6rg038_ype3Iv37X4 .fm-ear--fl {
  right: 100%;
  transform-origin: right;
  clip-path: polygon(100% 10%, 0% 25%, 0% 100%, 100% 100%);
  transform: rotateY(calc(var(--e) * 90deg)) translateZ(calc(var(--e) * var(--th)));
}

.cc_0a6rg038_ype3Iv37X4 .fm-ear--fr {
  left: 100%;
  transform-origin: left;
  clip-path: polygon(0% 10%, 100% 25%, 100% 100%, 0% 100%);
  transform: rotateY(calc(var(--e) * -90deg)) translateZ(calc(var(--e) * var(--th)));
}

.cc_0a6rg038_ype3Iv37X4 .fm-ear--bl {
  right: 100%;
  transform-origin: right;
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 75%);
  transform: rotateY(calc(var(--e) * 90deg)) translateZ(calc(var(--e) * var(--th)));
}

.cc_0a6rg038_ype3Iv37X4 .fm-ear--br {
  left: 100%;
  transform-origin: left;
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 0% 90%);
  transform: rotateY(calc(var(--e) * -90deg)) translateZ(calc(var(--e) * var(--th)));
}

/* Side walls with their double-folded inner flaps */
.cc_0a6rg038_ype3Iv37X4 .fm-side {
  top: 0;
  width: var(--h);
  height: 100%;
  --s: 0.2;
  --k: 9.091;
  --tint: 18;
}

.cc_0a6rg038_ype3Iv37X4 .fm-side--l {
  right: 100%;
  transform-origin: right;
  transform: rotateY(calc(var(--e) * 90deg));
}

.cc_0a6rg038_ype3Iv37X4 .fm-side--r {
  left: 100%;
  transform-origin: left;
  transform: rotateY(calc(var(--e) * -90deg));
}

.cc_0a6rg038_ype3Iv37X4 .fm-inner {
  top: 0;
  width: calc(var(--h) + 8px);
  height: 100%;
  --s: 0.29;
  --k: 9.091;
  --tint: 23;
}

.cc_0a6rg038_ype3Iv37X4 .fm-inner--l {
  right: 100%;
  transform-origin: right;
  clip-path: polygon(100% 0%, 10.2% 0%, 10.2% 15%, 0% 15%, 0% 31.25%, 10.2% 31.25%, 10.2% 68.75%, 0% 68.75%, 0% 85%, 10.2% 85%, 10.2% 100%, 100% 100%);
  transform: rotateY(calc(var(--e) * 178deg)) translateZ(calc(var(--e) * var(--th) * -1));
}

.cc_0a6rg038_ype3Iv37X4 .fm-inner--r {
  left: 100%;
  transform-origin: left;
  clip-path: polygon(0% 0%, 89.8% 0%, 89.8% 15%, 100% 15%, 100% 31.25%, 89.8% 31.25%, 89.8% 68.75%, 100% 68.75%, 100% 85%, 89.8% 85%, 89.8% 100%, 0% 100%);
  transform: rotateY(calc(var(--e) * -178deg)) translateZ(calc(var(--e) * var(--th) * -1));
}

/* Lid, its dust flaps and the front lock tongue with its two tabs */
.cc_0a6rg038_ype3Iv37X4 .fm-lid {
  bottom: 100%;
  left: 0;
  width: 100%;
  height: var(--d);
  transform-origin: bottom;
  --s: 0.61;
  --k: 5.556;
  --tint: 5;
  background-image: linear-gradient(206deg, rgba(255, 255, 255, calc(var(--fkt) * 0.18)) 0%, rgba(255, 255, 255, 0) 58%, rgba(90, 56, 20, calc(var(--fkt) * 0.07)) 100%);
  transform: rotateX(calc(var(--e) * -90deg));
}

.cc_0a6rg038_ype3Iv37X4 .fm-dust {
  top: 0;
  width: var(--flap);
  height: 100%;
  --s: 0.42;
  --k: 6.25;
  --tint: 25;
}

.cc_0a6rg038_ype3Iv37X4 .fm-dust--l {
  right: 100%;
  transform-origin: right;
  clip-path: polygon(100% 0.6%, 0% 8%, 0% 92%, 100% 99.4%);
  transform: rotateY(calc(var(--e) * 90deg)) translateZ(calc(var(--e) * var(--th)));
}

.cc_0a6rg038_ype3Iv37X4 .fm-dust--r {
  left: 100%;
  transform-origin: left;
  clip-path: polygon(0% 0.6%, 100% 8%, 100% 92%, 0% 99.4%);
  transform: rotateY(calc(var(--e) * -90deg)) translateZ(calc(var(--e) * var(--th)));
}

.cc_0a6rg038_ype3Iv37X4 .fm-tongue {
  bottom: 100%;
  left: 0;
  width: 100%;
  height: calc(var(--h) - 2px);
  transform-origin: bottom;
  --s: 0.89;
  --k: 9.091;
  --tint: 12;
  transform: rotateX(calc(var(--e) * -90deg)) translateZ(calc(var(--e) * var(--th) * -1));
}

.cc_0a6rg038_ype3Iv37X4 .fm-tab {
  top: 0;
  width: 48px;
  height: calc(100% - 4px);
  --s: 0.81;
  --k: 11.111;
  --tint: 26;
}

.cc_0a6rg038_ype3Iv37X4 .fm-tab--l {
  right: 100%;
  transform-origin: right;
  border-radius: 100% 0 0 0;
  transform: rotateY(calc(var(--e) * 90deg)) translateZ(calc(var(--e) * var(--th)));
}

.cc_0a6rg038_ype3Iv37X4 .fm-tab--r {
  left: 100%;
  transform-origin: left;
  border-radius: 0 100% 0 0;
  transform: rotateY(calc(var(--e) * -90deg)) translateZ(calc(var(--e) * var(--th)));
}

@media (prefers-reduced-motion: reduce) {
  .cc_0a6rg038_ype3Iv37X4 .fm-stage, .cc_0a6rg038_ype3Iv37X4 .sg__progress span, .cc_0a6rg038_ype3Iv37X4 .sg__step, .cc_0a6rg038_ype3Iv37X4 .sg__n {
    transition-duration: 0.01ms !important;
  }
}
