.printer-workshop-screen {
  background: #090a0b;
  color: #f7f7f4;
}

.printer-v2-container {
  width: min(1280px, calc(100% - 48px));
}

.fdm-scene {
  --fdm-progress: 0%;
  --fdm-part-progress: 0%;
  --fdm-head-left: 22%;
  --fdm-head-top: 30%;
  --fdm-trace-left: 22%;
  --fdm-trace-top: 48%;
  display: grid;
  grid-template-columns: minmax(250px, .58fr) minmax(620px, 1.42fr);
  grid-template-areas:
    "heading visual"
    "panel visual";
  gap: 16px 30px;
  align-items: start;
}

.fdm-scene__heading {
  grid-area: heading;
  align-self: end;
}

.fdm-scene__heading span {
  color: #a5a8aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fdm-scene__heading h1 {
  max-width: 8ch;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: .96;
}

.fdm-guide-scene .fdm-scene__heading h1 {
  max-width: none;
  font-size: clamp(36px, 3.3vw, 44px);
}

.fdm-scene__heading p {
  max-width: 390px;
  margin-top: 14px;
  color: #d4d5d5;
  font-size: 16px;
  line-height: 1.4;
}

.fdm-scene__visual {
  position: relative;
  grid-area: visual;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  background: #141618;
  box-shadow: 0 28px 70px rgb(0 0 0 / 40%);
}

.fdm-scene__field-cta {
  position: absolute;
  z-index: 45;
  right: 20%;
  bottom: calc(7% + 8px);
  left: 20%;
  width: auto;
  min-height: 52px;
  padding-block: 10px;
  transform: none;
  box-shadow: 0 16px 34px rgb(0 0 0 / 42%), 0 0 0 1px rgb(255 255 255 / 8%);
}

.fdm-scene__field-cta:hover,
.fdm-scene__field-cta:focus-visible {
  transform: none;
  box-shadow: 0 18px 38px rgb(0 0 0 / 48%), 0 0 0 4px rgb(91 87 255 / 22%);
}

.fdm-scene__visual:has(.fdm-scene__field-cta) .fdm-printer__brand {
  display: none;
}

.fdm-guide-scene__field-action {
  position: absolute;
  z-index: 45;
  right: 20%;
  bottom: calc(7% + 8px);
  left: 20%;
}

.fdm-guide-scene__field-action .btn {
  width: 100%;
  min-height: 52px;
  box-shadow: 0 16px 34px rgb(0 0 0 / 42%), 0 0 0 1px rgb(255 255 255 / 8%);
}

.fdm-guide-scene__field-action .btn:hover,
.fdm-guide-scene__field-action .btn:focus-visible {
  box-shadow: 0 18px 38px rgb(0 0 0 / 48%), 0 0 0 4px rgb(91 87 255 / 22%);
}

.fdm-scene__visual:has(.fdm-guide-scene__field-action) .fdm-printer__brand {
  display: none;
}

.fdm-scene__speed-control {
  position: absolute;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(10 11 13 / 88%);
  padding: 5px 6px 5px 11px;
  color: #b9bcbd;
  box-shadow: 0 12px 28px rgb(0 0 0 / 34%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fdm-scene__speed-control button {
  min-width: 46px;
  min-height: 38px;
  border: 1px solid rgb(205 255 122 / 42%);
  border-radius: 999px;
  background: #292d26;
  color: #cdff7a;
  font: 800 14px/1 Graphik, Arial, sans-serif;
  cursor: pointer;
}

.fdm-scene__speed-control button:hover:not(:disabled),
.fdm-scene__speed-control button:focus-visible {
  border-color: #cdff7a;
  box-shadow: 0 0 0 4px rgb(205 255 122 / 12%);
}

.fdm-scene__speed-control button.is-active,
.fdm-scene__speed-control button:disabled {
  border-color: #cdff7a;
  background: #cdff7a;
  color: #17200b;
  opacity: 1;
}

.fdm-printer {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 50% 54%, #353a3e 0, #191c1e 43%, #090a0b 82%);
  perspective: 950px;
}

.fdm-printer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 9% 3%;
  height: 11%;
  border-radius: 50%;
  background: rgb(0 0 0 / 64%);
  filter: blur(20px);
}

.fdm-printer__ambient {
  position: absolute;
  z-index: -1;
  left: 21%;
  right: 21%;
  top: 13%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 221 171 / 13%), transparent 68%);
}

.fdm-extrusion {
  position: absolute;
  z-index: 4;
  border: 1px solid #4d5357;
  background:
    linear-gradient(90deg, #08090a 0 13%, #373d41 14% 31%, #111315 32% 49%, #50565a 50% 66%, #151719 67% 84%, #070809 85%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 4%), 4px 7px 11px rgb(0 0 0 / 35%);
}

.fdm-extrusion--post-left,
.fdm-extrusion--post-right {
  top: 8%;
  width: 4.2%;
  height: 71%;
  border-radius: 3px;
}

.fdm-extrusion--post-left { left: 12%; }
.fdm-extrusion--post-right { right: 12%; }

.fdm-extrusion--top {
  left: 10.5%;
  right: 10.5%;
  top: 7%;
  height: 5.1%;
  border-radius: 3px;
  background:
    linear-gradient(#4e5458 0 11%, #0a0b0c 12% 36%, #303539 37% 63%, #090a0b 64% 88%, #4b5155 89%);
}

.fdm-extrusion--base-left,
.fdm-extrusion--base-right {
  bottom: 8%;
  width: 43%;
  height: 6.2%;
  border-radius: 4px;
  transform: perspective(500px) rotateX(64deg);
}

.fdm-extrusion--base-left { left: 7%; }
.fdm-extrusion--base-right { right: 7%; }

.fdm-z-rail {
  position: absolute;
  z-index: 3;
  top: 15%;
  width: 1.3%;
  height: 59%;
  border-radius: 999px;
  background: linear-gradient(90deg, #242729, #d4d8da 48%, #35393c);
  box-shadow: 0 0 0 1px #090a0b;
}

.fdm-z-rail--left { left: 18%; }
.fdm-z-rail--right { right: 18%; }

.fdm-z-rail::after {
  content: "";
  position: absolute;
  inset: 0 28%;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgb(0 0 0 / 58%) 4px 5px);
}

.fdm-z-motor {
  position: absolute;
  z-index: 5;
  bottom: 18%;
  width: 8%;
  aspect-ratio: 1;
  border: 1px solid #454a4d;
  border-radius: 5px;
  background: linear-gradient(135deg, #303437, #101214);
  box-shadow: 0 7px 10px rgb(0 0 0 / 36%);
}

.fdm-z-motor--left { left: 14.5%; }
.fdm-z-motor--right { right: 14.5%; }

.fdm-printer__x-axis {
  position: absolute;
  z-index: 7;
  left: 16%;
  right: 16%;
  top: 31%;
  height: 6.2%;
  filter: drop-shadow(0 7px 7px rgb(0 0 0 / 45%));
}

.fdm-printer__x-rail {
  position: absolute;
  inset: 0;
  border: 1px solid #4e5458;
  border-radius: 3px;
  background: linear-gradient(#4b5155 0 9%, #08090a 10% 34%, #2c3033 35% 66%, #08090a 67% 91%, #454b4f 92%);
}

.fdm-printer__belt {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 43%;
  height: 15%;
  background: repeating-linear-gradient(90deg, #050506 0 4px, #292b2c 4px 6px);
}

.fdm-printer__cable {
  position: absolute;
  z-index: 8;
  top: 5%;
  left: 9%;
  width: 83%;
  height: 36%;
  overflow: visible;
  fill: none;
  stroke: #151719;
  stroke-linecap: round;
  stroke-width: 11;
  filter: drop-shadow(0 2px 1px rgb(255 255 255 / 7%));
}

.fdm-printer__cable path:last-child {
  stroke: #41474b;
  stroke-width: 3;
}

.fdm-printer__filament {
  position: absolute;
  z-index: 3;
  right: 3%;
  top: 10%;
  width: 15%;
  aspect-ratio: 1;
}

.fdm-printer__spool {
  position: absolute;
  inset: 8%;
  border: 11px solid #34383b;
  border-radius: 50%;
  background: radial-gradient(circle, #090a0b 0 20%, #777d80 21% 27%, #151719 28%);
  box-shadow: 0 7px 12px rgb(0 0 0 / 45%);
}

.fdm-printer__feed {
  position: absolute;
  left: -54%;
  top: 22%;
  width: 74%;
  height: 44%;
  border-top: 2px solid #d9d5c9;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.fdm-printer__work-light {
  position: absolute;
  z-index: 2;
  left: 23%;
  right: 23%;
  top: 37%;
  height: 48%;
  background: radial-gradient(ellipse at 50% 63%, rgb(255 222 172 / 20%), transparent 67%);
  opacity: .55;
  transition: opacity 300ms ease;
}

.fdm-printer__bed {
  position: absolute;
  z-index: 6;
  left: 24%;
  right: 24%;
  bottom: 22%;
  height: 25%;
  transform: perspective(650px) rotateX(59deg);
  transform-origin: 50% 100%;
}

.fdm-printer__bed-surface {
  position: absolute;
  inset: 0;
  border: 1px solid #92989b;
  border-radius: 7px;
  background: linear-gradient(145deg, #51575a, #191c1e 64%, #090a0b);
  box-shadow: 0 14px 0 #0b0c0d, 0 18px 17px rgb(0 0 0 / 46%), inset 0 1px rgb(255 255 255 / 16%);
}

.fdm-printer__bed-grid {
  position: absolute;
  inset: 8%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px) 0 0 / 22px 22px;
}

.fdm-printer__bed-carriage {
  position: absolute;
  z-index: -1;
  left: 11%;
  right: 11%;
  bottom: -20%;
  height: 24%;
  border-radius: 3px;
  background: linear-gradient(#555b5f, #111315);
}

.fdm-latch-print {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 27%;
  width: 30%;
  height: 39%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 7px rgb(0 0 0 / 56%));
  pointer-events: none;
}

.fdm-latch-print__model,
.fdm-latch-print__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fdm-latch-print__model {
  z-index: 2;
  clip-path: inset(calc(100% - var(--fdm-part-progress)) 0 0);
  filter: brightness(1.08) contrast(1.04);
  opacity: 0;
  transition: clip-path 80ms linear, opacity 160ms ease;
}

.fdm-latch-print__ghost {
  z-index: 1;
  clip-path: inset(0 0 var(--fdm-part-progress) 0);
  filter: brightness(0) saturate(100%) invert(27%) sepia(99%) saturate(4975%) hue-rotate(241deg) brightness(99%) contrast(113%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: clip-path 80ms linear, opacity 180ms ease;
}

.fdm-scene[data-latch-state="printingLegs"] .fdm-latch-print__model,
.fdm-scene[data-latch-state="printingPlate"] .fdm-latch-print__model,
.fdm-scene[data-latch-state="printingNeck"] .fdm-latch-print__model,
.fdm-scene[data-latch-state="completed"] .fdm-latch-print__model,
.fdm-scene.is-printed .fdm-latch-print__model {
  opacity: 1;
}

.fdm-scene[data-latch-state="printingLegs"] .fdm-latch-print__ghost,
.fdm-scene[data-latch-state="printingPlate"] .fdm-latch-print__ghost,
.fdm-scene[data-latch-state="printingNeck"] .fdm-latch-print__ghost {
  opacity: .2;
}

.fdm-latch-print__active-layer {
  position: absolute;
  z-index: 3;
  left: 13%;
  right: 13%;
  top: calc(100% - var(--fdm-part-progress));
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffad62 34% 66%, transparent);
  box-shadow: 0 0 8px rgb(255 173 98 / 62%);
  opacity: 0;
  transform: translateY(-50%);
}

.fdm-scene[data-latch-state="printingLegs"] .fdm-latch-print__active-layer,
.fdm-scene[data-latch-state="printingPlate"] .fdm-latch-print__active-layer,
.fdm-scene[data-latch-state="printingNeck"] .fdm-latch-print__active-layer {
  opacity: .9;
}

.fdm-latch-print__ready-glow {
  position: absolute;
  z-index: 0;
  inset: 10% -4% -4%;
  border-radius: 48%;
  background: radial-gradient(circle, rgb(205 255 122 / 28%), transparent 66%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.fdm-scene[data-latch-state="completed"] .fdm-latch-print__ready-glow,
.fdm-scene.is-printed .fdm-latch-print__ready-glow {
  opacity: 1;
}

.fdm-print-part {
  --fdm-latch-mask: url("assets/task1/latch-v1.png");
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 27%;
  width: 30%;
  height: 39%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 7px rgb(0 0 0 / 56%));
  pointer-events: none;
}

.fdm-print-part.is-reinforced-part {
  width: 31%;
  height: 42%;
}

.fdm-print-part__model,
.fdm-print-part__contour,
.fdm-print-part__infill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(calc(100% - var(--fdm-part-progress)) 0 0);
}

.fdm-print-part__contour,
.fdm-print-part__infill {
  -webkit-mask: var(--fdm-latch-mask) center / contain no-repeat;
  mask: var(--fdm-latch-mask) center / contain no-repeat;
  transition: opacity 100ms linear;
}

.fdm-print-part__first-layer {
  position: absolute;
  z-index: 6;
  left: 16%;
  right: 16%;
  bottom: 4%;
  height: 8%;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #e7e0d2 0 2px, #aaa397 2px 4px);
  box-shadow: 0 2px 2px rgb(0 0 0 / 38%);
  opacity: 0;
}

.fdm-print-part__model {
  display: block;
  object-fit: contain;
  opacity: 0;
  filter: brightness(1.12) contrast(1.08);
  transition: opacity 120ms linear, clip-path 80ms linear;
}

.fdm-scene[data-fdm-phase="first-layer"] .fdm-print-part__first-layer { opacity: .9; }
.fdm-scene[data-fdm-phase="contour"] .fdm-print-part__first-layer,
.fdm-scene[data-fdm-phase="infill"] .fdm-print-part__first-layer,
.fdm-scene[data-fdm-phase="growth"] .fdm-print-part__first-layer,
.fdm-scene[data-fdm-phase="top-layers"] .fdm-print-part__first-layer,
.fdm-scene[data-fdm-phase="cooling"] .fdm-print-part__first-layer,
.fdm-scene[data-fdm-phase="complete"] .fdm-print-part__first-layer,
.fdm-scene.is-printed .fdm-print-part__first-layer { opacity: .32; }

.fdm-print-part__contour {
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 7px, rgb(255 245 225 / 72%) 8px 9px),
    #bdb6aa;
  opacity: 0;
}

.fdm-print-part__infill {
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgb(255 250 237 / 88%) 7px 9px),
    repeating-linear-gradient(-45deg, #a9a398 0 7px, #d7d0c3 7px 9px);
  opacity: 0;
}

.fdm-scene[data-fdm-phase="first-layer"] .fdm-print-part__model { opacity: .52; }
.fdm-scene[data-fdm-phase="contour"] .fdm-print-part__model { opacity: .68; }
.fdm-scene[data-fdm-phase="infill"] .fdm-print-part__model { opacity: .78; }
.fdm-scene[data-fdm-phase="growth"] .fdm-print-part__model { opacity: .9; }
.fdm-scene[data-fdm-phase="top-layers"] .fdm-print-part__model { opacity: .97; }

.fdm-scene[data-fdm-phase="contour"] .fdm-print-part__contour,
.fdm-scene[data-fdm-phase="top-layers"] .fdm-print-part__contour { opacity: 1; }
.fdm-scene[data-fdm-phase="infill"] .fdm-print-part__infill,
.fdm-scene[data-fdm-phase="growth"] .fdm-print-part__infill { opacity: 1; }
.fdm-scene[data-fdm-phase="cooling"] .fdm-print-part__model,
.fdm-scene[data-fdm-phase="complete"] .fdm-print-part__model,
.fdm-scene.is-printed .fdm-print-part__model { opacity: 1; }

.fdm-print-part__material-mark {
  position: absolute;
  z-index: 8;
  right: 13%;
  bottom: 16%;
  border: 1px solid rgb(127 137 255 / 72%);
  border-radius: 5px;
  background: rgb(35 39 58 / 90%);
  padding: 3px 5px;
  color: #e5e7ff;
  font: 700 8px/1 ui-monospace, monospace;
  letter-spacing: .04em;
  opacity: 0;
}

.fdm-scene.is-material-modification[data-fdm-phase="infill"] .fdm-print-part__material-mark,
.fdm-scene.is-material-modification[data-fdm-phase="growth"] .fdm-print-part__material-mark,
.fdm-scene.is-material-modification[data-fdm-phase="top-layers"] .fdm-print-part__material-mark,
.fdm-scene.is-material-modification[data-fdm-phase="cooling"] .fdm-print-part__material-mark,
.fdm-scene.is-material-modification[data-fdm-phase="complete"] .fdm-print-part__material-mark,
.fdm-scene.is-material-modification.is-printed .fdm-print-part__material-mark {
  opacity: 1;
}

.fdm-scene.is-material-modification .fdm-print-part__model {
  filter: saturate(.72) sepia(.1) hue-rotate(185deg) brightness(.98);
}

.fdm-print-part__ready-glow {
  position: absolute;
  z-index: -1;
  inset: 14% 3% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(205 255 122 / 28%), transparent 68%);
  opacity: 0;
}

.fdm-scene.is-printed .fdm-print-part__ready-glow,
.fdm-scene[data-fdm-phase="complete"] .fdm-print-part__ready-glow {
  opacity: 1;
}

.fdm-print-trace {
  position: absolute;
  z-index: 6;
  left: var(--fdm-trace-left);
  top: var(--fdm-trace-top);
  width: 25%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(238 226 207 / 0%), #eee2cf 35%, rgb(238 226 207 / 0%));
  opacity: 0;
  transform: translate(-50%, -50%);
}

.fdm-guide-print {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 27%;
  width: 38%;
  height: 33%;
  transform: translateX(-50%) perspective(520px) rotateX(57deg) rotateZ(-3deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 8px rgb(0 0 0 / 52%));
  pointer-events: none;
}

.fdm-guide-print__base {
  position: absolute;
  inset: 26% 6% 8%;
  border: 2px solid #171b1e;
  border-radius: 7px 3px 7px 3px;
  background: #69747d;
  box-shadow: inset 0 -9px 0 rgb(18 22 25 / 18%);
  opacity: var(--guide-base);
  transform: scaleY(var(--guide-base));
  transform-origin: 50% 100%;
}

.fdm-guide-print__base::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(228 237 242 / 22%);
  border-radius: 4px;
}

.fdm-guide-print__wall {
  position: absolute;
  z-index: 4;
  border: 2px solid #171b1e;
  background: #7d8992;
  box-shadow: inset 0 -7px 0 rgb(18 22 25 / 16%);
  transform-origin: 50% 100%;
}

.fdm-guide-print__wall--first {
  left: 6%;
  bottom: 8%;
  width: 17%;
  height: 88%;
  border-radius: 7px 3px 3px 7px;
  opacity: var(--guide-first-wall);
  transform: scaleY(var(--guide-first-wall));
}

.fdm-guide-print__wall--second {
  right: 6%;
  bottom: 8%;
  width: 78%;
  height: 25%;
  border-radius: 3px 7px 3px 3px;
  opacity: var(--guide-second-wall);
  transform: scaleX(var(--guide-second-wall));
  transform-origin: 0 50%;
}

.fdm-guide-print__corner {
  position: absolute;
  z-index: 5;
  left: 6%;
  bottom: 8%;
  width: 31%;
  height: 42%;
  border-bottom: 6px solid #9ba7af;
  border-left: 6px solid #9ba7af;
  border-radius: 0 0 0 8px;
  opacity: var(--guide-corner);
}

.fdm-guide-print__top-layer {
  position: absolute;
  z-index: 6;
  left: 6%;
  right: 6%;
  bottom: 8%;
  height: 88%;
  border-bottom: 3px solid rgb(225 233 238 / 72%);
  border-left: 3px solid rgb(225 233 238 / 72%);
  border-radius: 0 0 0 7px;
  opacity: var(--guide-top);
}

.fdm-guide-print.is-v2 .fdm-guide-print__base {
  background: #365f73;
}

.fdm-guide-print.is-v2 .fdm-guide-print__wall {
  background: #47788e;
}

.fdm-guide-print__v2-mark {
  position: absolute;
  z-index: 8;
  right: 12%;
  top: 38%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 18px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 4px;
  background: #173746;
  color: #d9edf6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: var(--guide-top);
}

.fdm-guide-print__pad {
  position: absolute;
  z-index: 10;
  width: 25px;
  height: 16px;
  border: 2px solid #171a1c;
  border-radius: 7px;
  background: linear-gradient(#555d61, #252a2d);
  box-shadow: 0 3px 4px rgb(0 0 0 / 32%), inset 0 1px rgb(255 255 255 / 18%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.fdm-guide-print__pad.is-one { left: 11%; top: 38%; }
.fdm-guide-print__pad.is-two { right: 11%; top: 38%; }
.fdm-guide-print__pad.is-three { left: 11%; bottom: 13%; }
.fdm-guide-print__pad.is-four { right: 11%; bottom: 13%; }

.fdm-guide-scene.is-second-version.is-printed .fdm-guide-print__pad,
.fdm-guide-scene.is-second-version[data-guide-phase="guide-complete"] .fdm-guide-print__pad {
  opacity: 1;
  transform: translateY(0);
}

.fdm-guide-print__ready-glow {
  position: absolute;
  z-index: -1;
  inset: 12% -5% -5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(205 255 122 / 30%), transparent 68%);
  opacity: 0;
}

.fdm-guide-scene.is-printed .fdm-guide-print__ready-glow,
.fdm-guide-scene[data-guide-phase="guide-complete"] .fdm-guide-print__ready-glow {
  opacity: 1;
}

.fdm-guide-scene.is-ready .fdm-guide-print {
  opacity: 0;
}

.fdm-guide-scene.is-printed .fdm-printer__status-light,
.fdm-guide-scene[data-guide-phase="guide-complete"] .fdm-printer__status-light {
  background: #cdff7a;
  box-shadow: 0 0 12px rgb(205 255 122 / 48%);
}

.fdm-guide-scene.is-printed .fdm-printer__work-light,
.fdm-guide-scene[data-guide-phase="guide-complete"] .fdm-printer__work-light {
  opacity: .88;
}

.fdm-guide-panel__controls {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 10px 10px;
}

.fdm-guide-panel__controls .btn {
  width: 100%;
  min-height: 42px;
  margin: 0;
}

.fdm-guide-panel__controls span {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgb(205 255 122 / 22%);
  border-radius: 10px;
  color: #cdff7a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* Shared FDM printer: physical stamp */
.fdm-stamp-print {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 24%;
  width: 28%;
  height: 34%;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  pointer-events: none;
}

.fdm-stamp-print__base,
.fdm-stamp-print__face,
.fdm-stamp-print__collar,
.fdm-stamp-print__handle,
.fdm-stamp-print__top {
  position: absolute;
  left: 50%;
  display: block;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 7%) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #ece9df, #b9b5aa 58%, #87847c);
  box-shadow: inset 0 1px rgb(255 255 255 / 48%), 0 10px 18px rgb(0 0 0 / 32%);
}

.fdm-stamp-print__base {
  bottom: 3%;
  width: var(--stamp-print-width, 112px);
  height: 22%;
  border: 1px solid #77756f;
  border-radius: 16px 16px 10px 10px;
  opacity: var(--stamp-base);
  transform: translateX(-50%) perspective(360px) rotateX(62deg) scaleY(var(--stamp-base));
  transform-origin: center bottom;
}

.fdm-stamp-print[data-shape="rectangle"] .fdm-stamp-print__base,
.fdm-stamp-print[data-shape="rectangle"] .fdm-stamp-print__face { border-radius: 5px; }

.fdm-stamp-print[data-shape="capsule"] .fdm-stamp-print__base,
.fdm-stamp-print[data-shape="capsule"] .fdm-stamp-print__face { border-radius: 999px; }

.fdm-stamp-print__face {
  z-index: 2;
  bottom: 7%;
  display: grid;
  place-items: center;
  width: calc(var(--stamp-print-width, 112px) - 20px);
  height: 15%;
  border: max(2px, calc(var(--stamp-print-line) * 1px)) solid #3f3e3a;
  border-radius: 12px;
  color: #272724;
  opacity: var(--stamp-face);
  transform: translateX(-50%) perspective(360px) rotateX(62deg) scale(var(--stamp-face));
  font-size: clamp(8px, 1.2vw, 14px);
  font-weight: 800;
  letter-spacing: .06em;
}

.fdm-stamp-print__face b {
  line-height: 1;
  opacity: var(--stamp-relief);
  text-shadow: 0 calc(var(--stamp-print-relief) * 1px) #9a978e;
  transform: translateY(calc((1 - var(--stamp-relief)) * 5px));
  transition: opacity 90ms linear, transform 90ms linear;
}

.fdm-stamp-print__face i {
  position: absolute;
  inset: 18%;
  border: max(1px, calc(var(--stamp-print-line) * .7px)) solid currentColor;
  border-radius: inherit;
  opacity: var(--stamp-relief);
}

.fdm-stamp-print__collar {
  z-index: 3;
  bottom: 16%;
  width: 43%;
  height: 13%;
  border: 1px solid #77756f;
  border-radius: 8px;
  opacity: var(--stamp-handle);
  transform: translateX(-50%) scaleY(var(--stamp-handle));
  transform-origin: center bottom;
}

.fdm-stamp-print__handle {
  z-index: 4;
  bottom: 25%;
  width: 44%;
  height: 43%;
  overflow: hidden;
  border: 1px solid #6d6b66;
  border-radius: 25px 25px 13px 13px / 20px 20px 11px 11px;
  opacity: var(--stamp-handle);
  transform: translateX(-50%) scaleY(var(--stamp-handle));
  transform-origin: center bottom;
}

.fdm-stamp-print__handle::before,
.fdm-stamp-print__handle::after {
  position: absolute;
  top: 26%;
  bottom: 18%;
  width: 10%;
  border-radius: 999px;
  background: #6f6d67;
  content: "";
}

.fdm-stamp-print__handle::before { left: 17%; }
.fdm-stamp-print__handle::after { right: 17%; }

.fdm-stamp-print__top {
  z-index: 5;
  bottom: 65%;
  width: 36%;
  height: 9%;
  border-radius: 50%;
  opacity: var(--stamp-top);
  transform: translateX(-50%) scale(var(--stamp-top));
}

.fdm-stamp-print__ready-glow {
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  bottom: -4%;
  height: 38%;
  border-radius: 50%;
  background: rgb(199 255 0 / 20%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.fdm-stamp-scene.is-printed .fdm-stamp-print__ready-glow,
.fdm-stamp-scene[data-stamp-phase="stamp-complete"] .fdm-stamp-print__ready-glow { opacity: 1; }

.fdm-print-trace--stamp { width: 16%; }

.fdm-stamp-scene[data-stamp-phase="stamp-preparation"] .fdm-print-trace--stamp,
.fdm-stamp-scene[data-stamp-phase="stamp-finishing"] .fdm-print-trace--stamp,
.fdm-stamp-scene[data-stamp-phase="stamp-complete"] .fdm-print-trace--stamp {
  opacity: 0;
}

.fdm-stamp-scene[data-stamp-phase="stamp-base"] .fdm-print-trace--stamp,
.fdm-stamp-scene[data-stamp-phase="stamp-relief"] .fdm-print-trace--stamp,
.fdm-stamp-scene[data-stamp-phase="stamp-handle"] .fdm-print-trace--stamp {
  opacity: .82;
}

/* Shared FDM printer: case 3 helmet wrapper */
.fdm-helmet-print {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 24%;
  width: 36%;
  height: 42%;
  transform: translateX(-50%);
  transform-style: preserve-3d;
  pointer-events: none;
}

.fdm-helmet-print__ghost,
.fdm-helmet-print__model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: perspective(520px) rotateX(47deg) translateY(10%);
  transform-origin: 50% 78%;
}

.fdm-helmet-print__ghost {
  opacity: .12;
  filter: var(--helmet-print-filter, none) grayscale(.35) drop-shadow(0 12px 10px rgb(0 0 0 / 40%));
}

.fdm-helmet-print__model {
  clip-path: inset(calc(100% - var(--helmet-print-progress, 0%)) 0 0);
  filter: var(--helmet-print-filter, none) drop-shadow(0 14px 10px rgb(0 0 0 / 58%));
  transition: clip-path 70ms linear;
}

.fdm-helmet-print__ready-glow {
  position: absolute;
  z-index: -1;
  left: 5%;
  right: 5%;
  bottom: -3%;
  height: 38%;
  border-radius: 50%;
  background: rgb(205 255 122 / 28%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.fdm-helmet-scene.is-printed .fdm-helmet-print__ready-glow,
.fdm-helmet-scene[data-helmet-phase="helmet-complete"] .fdm-helmet-print__ready-glow { opacity: 1; }

.fdm-print-trace--helmet { width: 22%; }
.fdm-helmet-scene[data-helmet-phase="helmet-preparation"] .fdm-print-trace--helmet,
.fdm-helmet-scene[data-helmet-phase="helmet-finishing"] .fdm-print-trace--helmet,
.fdm-helmet-scene[data-helmet-phase="helmet-complete"] .fdm-print-trace--helmet { opacity: 0; }

.fdm-helmet-panel .fdm-panel__remove { width: calc(100% - 24px); margin: 0 12px 12px; }
.fdm-helmet-scene .fdm-scene__heading p { max-width: 38ch; }

.fdm-stamp-stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 0 10px 10px;
}

.fdm-stamp-panel .fdm-panel__summary div:nth-child(2) strong {
  overflow: visible;
  font-size: 10px;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.fdm-stamp-stage-list span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 8px;
  color: #898e90;
  background: #17191a;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.15;
}

.fdm-stamp-stage-list span:last-child {
  grid-column: 1 / -1;
}

.fdm-stamp-stage-list i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a8acae;
  background: #292c2e;
  font-size: 9px;
  font-style: normal;
}

.fdm-stamp-stage-list span.is-current {
  border-color: rgb(135 131 255 / 70%);
  color: #fff;
  background: rgb(65 60 255 / 16%);
}

.fdm-stamp-stage-list span.is-current i {
  color: #fff;
  background: #413cff;
}

.fdm-stamp-stage-list span.is-done {
  color: #d9efbb;
  background: rgb(205 255 122 / 7%);
}

.fdm-stamp-stage-list span.is-done i {
  color: #17210d;
  background: #cdff7a;
}

.fdm-stamp-panel__controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.fdm-stamp-panel__controls .btn,
.fdm-stamp-panel__controls .fdm-panel__accelerate {
  width: 100%;
  min-height: 48px;
}

.fdm-stamp-scene.is-second-version .fdm-stamp-print__base,
.fdm-stamp-scene.is-second-version .fdm-stamp-print__collar,
.fdm-stamp-scene.is-second-version .fdm-stamp-print__handle,
.fdm-stamp-scene.is-second-version .fdm-stamp-print__top {
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #d9d8ec, #a3a1c7 58%, #716f9a);
}

.fdm-scene[data-fdm-phase="first-layer"] .fdm-print-trace,
.fdm-scene[data-fdm-phase="contour"] .fdm-print-trace,
.fdm-scene[data-fdm-phase="infill"] .fdm-print-trace,
.fdm-scene[data-fdm-phase="growth"] .fdm-print-trace,
.fdm-scene[data-fdm-phase="top-layers"] .fdm-print-trace {
  opacity: .76;
}

.fdm-print-trace--latch {
  width: 7%;
  height: 6px;
  background: radial-gradient(ellipse, rgb(255 173 98 / 88%), rgb(255 173 98 / 18%) 48%, transparent 72%);
  filter: blur(1px);
}

.fdm-scene[data-latch-state="printingLegs"] .fdm-print-trace--latch,
.fdm-scene[data-latch-state="printingPlate"] .fdm-print-trace--latch,
.fdm-scene[data-latch-state="printingNeck"] .fdm-print-trace--latch {
  opacity: .9;
}

.fdm-printer__carriage {
  position: absolute;
  z-index: 12;
  left: var(--fdm-head-left);
  top: var(--fdm-head-top);
  width: 10%;
  height: 16%;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.fdm-printer__carriage-body {
  position: absolute;
  inset: 0 0 24%;
  border: 1px solid #565b5f;
  border-radius: 7px;
  background: linear-gradient(135deg, #3e4346, #111315 60%, #050607);
  box-shadow: 5px 8px 12px rgb(0 0 0 / 44%), inset 0 1px rgb(255 255 255 / 11%);
}

.fdm-printer__fan {
  position: absolute;
  left: 16%;
  top: 17%;
  width: 44%;
  aspect-ratio: 1;
  border: 2px solid #111;
  border-radius: 50%;
  background: radial-gradient(circle, #0a0b0c 0 15%, #63686b 16% 19%, #17191b 20% 58%, #050607 59%);
}

.fdm-printer__fan i {
  position: absolute;
  inset: 24%;
  border: 3px dashed #616669;
  border-radius: 50%;
  animation: fdm-fan-spin 900ms linear infinite;
}

.fdm-printer__heat-block {
  position: absolute;
  left: 38%;
  bottom: 13%;
  width: 28%;
  height: 26%;
  border-radius: 2px;
  background: linear-gradient(90deg, #70533a, #e2b57f 48%, #5b402c);
  box-shadow: 0 0 10px rgb(255 174 94 / 16%);
}

.fdm-printer__nozzle {
  position: absolute;
  left: 46%;
  bottom: -1%;
  width: 12%;
  height: 18%;
  background: linear-gradient(90deg, #6c4a2d, #f0bd7e 50%, #5b3b24);
  clip-path: polygon(18% 0, 82% 0, 100% 70%, 62% 100%, 38% 100%, 0 70%);
}

.fdm-printer__heat-haze {
  position: absolute;
  left: 33%;
  bottom: -20%;
  width: 42%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 169 86 / 28%), transparent 70%);
  filter: blur(5px);
  opacity: .7;
}

.fdm-scene[data-fdm-phase="heating"] .fdm-printer__heat-haze {
  animation: fdm-heat-breathe 1.2s ease-in-out infinite;
}

.fdm-scene[data-fdm-phase="cooling"] .fdm-printer__heat-haze,
.fdm-scene[data-fdm-phase="complete"] .fdm-printer__heat-haze,
.fdm-scene[data-fdm-phase="completed"] .fdm-printer__heat-haze,
.fdm-scene.is-printed .fdm-printer__heat-haze {
  opacity: 0;
}

.fdm-printer__base {
  position: absolute;
  z-index: 10;
  left: 9%;
  right: 9%;
  bottom: 7%;
  height: 11%;
  border: 1px solid #4d5255;
  border-radius: 7px 7px 12px 12px;
  background: linear-gradient(#3a3f42, #111315 44%, #08090a);
  box-shadow: 0 13px 16px rgb(0 0 0 / 42%), inset 0 1px rgb(255 255 255 / 8%);
}

.fdm-printer__brand {
  position: absolute;
  left: 4%;
  top: 42%;
  color: #969b9e;
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .08em;
}

.fdm-printer__status-light {
  position: absolute;
  right: 4%;
  top: 39%;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffad62;
  box-shadow: 0 0 10px rgb(255 173 98 / 42%);
}

.fdm-scene.is-printed .fdm-printer__status-light,
.fdm-scene[data-fdm-phase="complete"] .fdm-printer__status-light,
.fdm-scene[data-fdm-phase="completed"] .fdm-printer__status-light {
  background: #cdff7a;
  box-shadow: 0 0 12px rgb(205 255 122 / 48%);
}

.fdm-scene.is-printed .fdm-printer__work-light,
.fdm-scene[data-fdm-phase="complete"] .fdm-printer__work-light,
.fdm-scene[data-fdm-phase="completed"] .fdm-printer__work-light {
  opacity: .88;
}

.fdm-panel {
  grid-area: panel;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 18px;
  background: #1d2022;
  box-shadow: 0 15px 34px rgb(0 0 0 / 22%);
}

.fdm-panel__summary {
  display: grid;
  grid-template-columns: 1.18fr .82fr 1fr;
  gap: 1px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 7%);
}

.fdm-scene.is-first-version .fdm-panel__summary {
  opacity: .62;
}

.fdm-scene.is-first-version.is-setup .fdm-scene__heading p {
  color: #969a9c;
}

.fdm-panel__time-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0 10px 10px;
  color: #9fa3a5;
  font-size: 10px;
  line-height: 1.3;
}

.fdm-panel__time-note strong {
  color: #d5d7d7;
  font-weight: 600;
}

.fdm-panel__time-note span {
  color: #cdff7a;
  white-space: nowrap;
}

.fdm-panel__time-note--reality {
  gap: 14px;
  padding: 10px 18px 18px;
  font-size: 13px;
  line-height: 1.35;
}

.fdm-panel__time-note--reality strong {
  max-width: 19ch;
  color: #f1f2f2;
  font-weight: 650;
}

.fdm-panel__time-note--reality strong b {
  display: inline-block;
  margin-top: 2px;
  border-radius: 5px;
  background: rgb(205 255 122 / 11%);
  padding: 2px 5px;
  color: #cdff7a;
  font-size: 15px;
  font-weight: 800;
}

.fdm-panel__time-note--reality span {
  font-size: 12px;
  font-weight: 700;
}

.fdm-panel__summary div {
  min-width: 0;
  padding: 9px 11px;
  background: #1c1e20;
}

.fdm-panel__summary span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 5px;
  background: rgb(126 122 255 / 12%);
  padding: 3px 6px;
  color: #aaa7ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fdm-panel__summary strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdm-panel__summary div:nth-child(3) strong {
  white-space: normal;
  line-height: 1.15;
}

.fdm-file-grid {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.fdm-file-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 11px;
  background: #272a2c;
  padding: 5px 8px;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.fdm-file-card:hover,
.fdm-file-card.is-selected {
  border-color: #cdff7a;
  background: #313532;
}

.fdm-file-card.is-selected {
  box-shadow: inset 3px 0 #cdff7a;
}

.fdm-file-preview {
  position: relative;
  height: 46px;
  overflow: hidden;
  border-radius: 7px;
  background: radial-gradient(circle, #5c6062, #17191a 70%);
}

.fdm-file-preview img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-7deg);
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 42%));
}

.fdm-file-preview__cube {
  position: absolute;
  left: 31%;
  top: 25%;
  width: 36%;
  aspect-ratio: 1;
  border: 1px solid #e4e0d7;
  background: linear-gradient(135deg, #eee9df, #9d9990);
  box-shadow: 7px 6px #67645f;
  transform: skewY(-9deg);
}

.fdm-file-preview__guide {
  position: absolute;
  left: 19%;
  right: 17%;
  top: 27%;
  height: 47%;
  border: 4px solid #c2beb4;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  transform: perspective(80px) rotateX(18deg);
}

.fdm-file-card__copy {
  min-width: 0;
}

.fdm-file-card__copy strong,
.fdm-file-card__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fdm-file-card__copy strong {
  font: 700 11px/1.25 ui-monospace, monospace;
}

.fdm-file-card__copy small {
  margin-top: 3px;
  color: #aeb1b2;
  font-size: 10px;
}

.fdm-panel__feedback {
  display: grid;
  gap: 2px;
  margin: 0 10px 10px;
  border-radius: 9px;
  padding: 7px 9px;
  color: #d7d8d8;
  font-size: 10px;
  line-height: 1.25;
}

.fdm-panel__feedback strong { color: #fff; }
.fdm-panel__feedback.is-success { background: rgb(205 255 122 / 10%); }
.fdm-panel__feedback.is-warning { background: rgb(255 116 95 / 10%); }

.fdm-panel__progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.fdm-panel__progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #08090a;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 9%);
}

.fdm-panel__progress span {
  display: block;
  width: var(--fdm-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #413cff, #8783ff);
}

.fdm-panel__progress-row > strong {
  min-width: 34px;
  color: #fff;
  font: 700 11px/1 ui-monospace, monospace;
  text-align: right;
}

.fdm-panel__controls {
  display: grid;
  grid-template-columns: .75fr .65fr 1.2fr;
  gap: 7px;
  padding: 0 10px 10px;
}

.fdm-panel__controls button {
  min-height: 42px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 10px;
  background: #111315;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fdm-panel__controls button:hover:not(:disabled) {
  border-color: #cdff7a;
}

.fdm-panel__controls button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.fdm-panel__controls .fdm-panel__start:not(:disabled) {
  border-color: #5a56ff;
  background: #413cff;
}

.fdm-panel__controls .fdm-panel__accelerate {
  grid-column: 1 / -1;
  border-color: rgb(205 255 122 / 32%);
  color: #cdff7a;
}

.fdm-panel__controls--second:empty { display: none; }

.fdm-panel__controls--direct {
  grid-template-columns: 1fr;
}

.fdm-panel__controls--direct .fdm-panel__start,
.fdm-panel__controls--direct .fdm-panel__accelerate {
  grid-column: 1;
}

.fdm-panel__remove {
  width: calc(100% - 20px);
  margin: 0 10px 10px;
}

@keyframes fdm-fan-spin {
  to { transform: rotate(360deg); }
}

@keyframes fdm-heat-breathe {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: .78; transform: scale(1.08); }
}

@media (max-width: 1100px) {
  .fdm-scene {
    grid-template-columns: minmax(230px, .55fr) minmax(560px, 1.45fr);
    gap: 14px 22px;
  }

  .fdm-printer { min-height: 560px; }
  .fdm-scene__heading h1 { font-size: 43px; }
}

@media (min-width: 901px) and (max-height: 820px) {
  .fdm-scene.is-files {
    gap: 8px 30px;
  }

  .fdm-scene.is-files .fdm-scene__heading h1 {
    margin-top: 5px;
    font-size: clamp(36px, 3.5vw, 46px);
  }

  .fdm-scene.is-files .fdm-scene__heading p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.3;
  }

  .fdm-scene.is-files .fdm-panel__summary div {
    padding: 6px 8px;
  }

  .fdm-scene.is-files .fdm-file-grid {
    gap: 4px;
    padding: 6px 8px;
  }

  .fdm-scene.is-files .fdm-file-card {
    min-height: 45px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 7px;
    padding: 4px 7px;
  }

  .fdm-scene.is-files .fdm-file-preview {
    height: 35px;
  }

  .fdm-scene.is-files .fdm-panel__feedback {
    margin: 0 8px 6px;
    padding: 5px 7px;
  }

  .fdm-scene.is-files .fdm-panel__progress-row {
    padding: 7px 8px;
  }

  .fdm-scene.is-files .fdm-panel__time-note {
    padding: 0 8px 7px;
    font-size: 9px;
  }

  .fdm-scene.is-files .fdm-panel__controls {
    gap: 6px;
    padding: 0 8px 8px;
  }

  .fdm-scene.is-files .fdm-panel__controls button {
    min-height: 38px;
  }
}

@media (max-width: 900px) {
  .fdm-scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "visual"
      "panel";
  }

  .fdm-scene__heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 20px;
  }

  .fdm-scene__heading h1 { max-width: none; }

  .fdm-panel__controls button {
    min-height: 48px;
  }
}

@media (max-width: 767px) {
  .printer-workshop-screen {
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .printer-v2-container {
    width: min(100% - 24px, 1280px);
  }

  .fdm-scene {
    gap: 12px;
  }

  .fdm-scene.is-setup,
  .fdm-scene.is-printed {
    grid-template-areas:
      "heading"
      "panel"
      "visual";
  }

  .fdm-scene.is-first-version.is-setup,
  .fdm-scene.is-first-version.is-printed {
    grid-template-areas:
      "heading"
      "visual"
      "panel";
  }

  .fdm-guide-scene.is-printed {
    grid-template-areas:
      "heading"
      "panel"
      "visual";
  }

  .fdm-helmet-scene.is-printed {
    grid-template-areas:
      "heading"
      "visual"
      "panel";
  }

  .fdm-scene__heading {
    display: block;
  }

  .fdm-scene__heading h1 {
    margin-top: 6px;
    font-size: clamp(34px, 10.4vw, 42px);
    line-height: .98;
  }

  .fdm-scene__heading p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.35;
  }

  .fdm-scene__visual {
    border-radius: 18px;
  }

  .fdm-scene__speed-control {
    right: 10px;
    bottom: 10px;
  }

  .fdm-scene__speed-control button {
    min-width: 50px;
    min-height: 44px;
    font-size: 15px;
  }

  .fdm-printer {
    min-height: 440px;
  }

  .fdm-helmet-scene .fdm-printer { min-height: 390px; }
  .fdm-helmet-print { bottom: 22%; width: 64%; height: 52%; }

  .fdm-printer__filament {
    right: 1%;
    width: 18%;
  }

  .fdm-printer__brand { font-size: 8px; }

  .fdm-scene.is-first-version .fdm-panel,
  .fdm-scene.is-second-version .fdm-panel {
    border-radius: 14px;
  }

  .fdm-scene.is-first-version .fdm-panel__summary,
  .fdm-scene.is-second-version .fdm-panel__summary {
    grid-template-columns: 1.25fr .72fr 1fr;
  }

  .fdm-scene.is-first-version .fdm-panel__summary div:nth-child(3),
  .fdm-scene.is-second-version .fdm-panel__summary div:nth-child(3) {
    grid-column: auto;
  }

  .fdm-scene.is-first-version .fdm-panel__summary div,
  .fdm-scene.is-second-version .fdm-panel__summary div {
    padding: 6px 7px;
  }

  .fdm-scene.is-first-version .fdm-panel__summary span,
  .fdm-scene.is-second-version .fdm-panel__summary span {
    min-height: 0;
    padding: 0;
    background: transparent;
    font-size: 7px;
  }

  .fdm-scene.is-first-version .fdm-panel__summary strong,
  .fdm-scene.is-second-version .fdm-panel__summary strong {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .fdm-scene.is-first-version .fdm-panel__summary div:nth-child(3) strong,
  .fdm-scene.is-second-version .fdm-panel__summary div:nth-child(3) strong {
    overflow: hidden;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fdm-scene.is-first-version .fdm-panel__progress-row,
  .fdm-scene.is-second-version .fdm-panel__progress-row {
    gap: 7px;
    padding: 6px 8px 4px;
  }

  .fdm-scene.is-first-version .fdm-panel__progress,
  .fdm-scene.is-second-version .fdm-panel__progress {
    height: 4px;
  }

  .fdm-scene.is-first-version .fdm-panel__progress-row > strong,
  .fdm-scene.is-second-version .fdm-panel__progress-row > strong {
    min-width: 28px;
    font-size: 9px;
  }

  .fdm-panel__summary div {
    padding: 8px 9px;
  }

  .fdm-panel__summary strong {
    font-size: 10px;
  }

  .fdm-file-grid {
    grid-template-columns: 1fr;
  }

  .fdm-file-card {
    min-height: 62px;
  }

  .fdm-panel__controls {
    grid-template-columns: 1fr 1fr;
  }

  .fdm-panel__controls button {
    min-height: 48px;
    font-size: 12px;
  }

  .fdm-panel__controls .fdm-panel__start {
    grid-column: 1 / -1;
  }

  .fdm-panel__controls .fdm-panel__accelerate {
    grid-column: 1 / -1;
  }

  .fdm-print-part {
    bottom: 28%;
    width: 36%;
    height: 37%;
  }

  .fdm-latch-print {
    bottom: 28%;
    width: 36%;
    height: 37%;
  }

  .fdm-scene.is-first-version .fdm-panel__time-note,
  .fdm-scene.is-second-version .fdm-panel__time-note {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 3px 8px 8px;
    font-size: 9px;
    line-height: 1.15;
  }

  .fdm-scene.is-first-version .fdm-panel__time-note--reality strong,
  .fdm-scene.is-second-version .fdm-panel__time-note--reality strong {
    max-width: none;
    font-size: 9px;
  }

  .fdm-scene.is-first-version .fdm-panel__time-note--reality strong b,
  .fdm-scene.is-second-version .fdm-panel__time-note--reality strong b {
    display: inline;
    margin: 0;
    padding: 1px 3px;
    font-size: 10px;
  }

  .fdm-scene.is-first-version .fdm-panel__time-note--reality span,
  .fdm-scene.is-second-version .fdm-panel__time-note--reality span {
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
  }

  .fdm-scene.is-second-version .fdm-panel {
    border-radius: 12px;
  }

  .fdm-scene.is-second-version .fdm-panel__summary {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1fr);
  }

  .fdm-scene.is-second-version .fdm-panel__summary > div,
  .fdm-scene.is-second-version .fdm-panel__summary > div:nth-child(3) {
    grid-column: auto;
    padding: 5px 6px;
  }

  .fdm-scene.is-second-version .fdm-panel__summary span {
    font-size: 6px;
  }

  .fdm-scene.is-second-version .fdm-panel__summary strong,
  .fdm-scene.is-second-version .fdm-panel__summary div:nth-child(3) strong {
    overflow: hidden;
    margin-top: 2px;
    font-size: 8px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fdm-scene.is-second-version .fdm-panel__progress-row {
    padding: 5px 7px 2px;
  }

  .fdm-scene.is-second-version .fdm-panel__time-note {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    padding: 2px 7px 6px;
    font-size: 8px;
    line-height: 1.1;
  }

  .fdm-scene.is-second-version .fdm-panel__time-note strong,
  .fdm-scene.is-second-version .fdm-panel__time-note span {
    min-width: 0;
    font-size: 8px;
    white-space: nowrap;
  }

  .fdm-printer__fan i,
  .fdm-printer__heat-haze { animation-duration: 2.2s; }

  .fdm-printer__heat-haze { display: none; }
  .fdm-printer__ambient { filter: none; }

  .fdm-stamp-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 9px 9px;
  }

  .fdm-stamp-stage-list span {
    min-height: 34px;
    padding: 6px;
    font-size: 9px;
  }

  .fdm-stamp-print {
    width: 36%;
    height: 36%;
  }
}

@media (max-width: 390px) {
  .fdm-printer { min-height: 420px; }
  .fdm-printer__cable { stroke-width: 9; }
}

.fdm-scene.is-reduced-motion .fdm-print-trace--latch,
.fdm-scene.is-reduced-motion .fdm-latch-print__active-layer {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .fdm-printer__fan i,
  .fdm-printer__heat-haze {
    animation: none;
  }

  .fdm-printer__carriage,
  .fdm-panel__progress span,
  .fdm-latch-print__model,
  .fdm-latch-print__ghost,
  .fdm-latch-print__ready-glow,
  .fdm-print-part,
  .fdm-stamp-print__base,
  .fdm-stamp-print__face,
  .fdm-stamp-print__face b,
  .fdm-stamp-print__collar,
  .fdm-stamp-print__handle,
  .fdm-stamp-print__top {
    transition: none;
  }

}
