.studio-heading,
.bench-toolbar,
.bench-tools { display: flex; align-items: center; }
.studio-heading { align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.65rem; }
.studio-heading .eyebrow { margin-bottom: .7rem; }
.studio-heading h2 { font-size: clamp(2.65rem, 5.8vw, 5rem); letter-spacing: -.08em; line-height: .98; }
.studio-heading > p { color: var(--muted); max-width: 22rem; }
.workbench { overflow: hidden; border: 1px solid #2c2c2c; border-radius: .6rem; background: white; }
.bench-toolbar { min-height: 3rem; justify-content: space-between; gap: .7rem; padding: .55rem 1rem; background: #181818; color: white; font: .8rem var(--mono); }
.bench-file { display: inline-flex; align-items: center; gap: .45rem; }
.bench-tools { gap: .9rem; }
#feature-status { color: #d7d7d7; }
#feature-replay { background: #272727; border: 1px solid #777; border-radius: .3rem; padding: .37rem .6rem; color: white; }
#feature-replay:hover { background: #444; }
.bench-layout { display: grid; grid-template-columns: minmax(0, 2.65fr) minmax(13rem, 1fr); }
.press-bed {
  display: grid; place-items: center; padding: clamp(1rem, 4.2vw, 4rem);
  background: radial-gradient(#aaa 1px, transparent 1px) 2px 2px / 12px 12px, #eaeaea;
}
.print-sheet {
  position: relative; isolation: isolate; width: min(100%, 43rem);
  grid-template-rows: 1fr auto;
  align-content: center; padding: clamp(.85rem, 2.4vw, 2rem);
  background: #fff; color: #111; box-shadow: 0 .65rem 1.15rem #0002;
}
.sheet-grid { position: absolute; pointer-events: none; inset: 0; border: 1px solid #353535; }
.sheet-grid::before, .sheet-grid::after { content: ""; position: absolute; height: 1px; background: #888; left: 0; right: 0; top: .56rem; }
.sheet-grid::after { top: auto; bottom: .56rem; }
.sheet-grid i { position: absolute; top: 0; bottom: 0; border-left: 1px dotted #ccc; left: .55rem; }
.sheet-grid i:last-child { left: auto; right: .55rem; }
.sheet-art { grid-column: 1; grid-row: 1 / span 2; position: relative; min-height: clamp(11rem, 21vw, 18rem); isolation: isolate; background: #181818; }
.sheet-art i { position: absolute; inset: 8% 5% 0 5%; border-radius: 48% 48% 0 0; background: repeating-radial-gradient(ellipse at 50% 100%, #eee 0 5%, #171717 5% 9.5%); }
.sheet-art i + i { inset: 8% 5% 0 50%; border-radius: 0 100% 0 0; background: repeating-linear-gradient(143deg, #161616 0 7px, #eee 7px 13px); }
.sheet-head { grid-area: 1 / 2; align-self: end; font-weight: 400; font-size: clamp(2.7rem, 5.9vw, 5.65rem); letter-spacing: -.083em; }
.sheet-head [data-set-line] { display: block; width: fit-content; }
.sheet-head em { font-weight: 400; white-space: nowrap; }
.sheet-body { grid-area: 2 / 2; margin-bottom: .1rem; max-width: 26ch; color: #393939; }
.layer-key { display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem, 2.2vw, 1.8rem); border-left: 1px solid #c2c2c2; }
.layer-key h3 { font-size: 1.2rem; letter-spacing: -.04em; }
.layer-key ol { margin-top: .9rem; border-top: 1px solid var(--line); }
.layer-key li { position: relative; display: grid; gap: .12rem; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.layer-key li span { font-size: .88rem; font-weight: 650; }
.layer-key li code { font-size: .75rem; color: #525252; }
.layer-key .text-link { align-self: flex-start; font-size: .85rem; }
.workbench[data-build-step="grid"] [data-layer="grid"],
.workbench[data-build-step="art"] [data-layer="art"],
.workbench[data-build-step="title"] [data-layer="title"],
.workbench[data-build-step="text"] [data-layer="text"] { background: #efefef; box-shadow: inset 2px 0 #151515; }

@media (prefers-reduced-motion: no-preference) {
  [data-assemble-step][data-part-state="pending"] { opacity: 0; }
  [data-assemble-step][data-part-state="placing"] { animation: studio-set var(--placement-time, 660ms) linear both; }
  .sheet-head[data-part-state="placing"] { animation: none; }
  [data-set-line][data-line-state="pending"] { opacity: 0; }
  [data-set-line][data-line-state="placing"] { animation: studio-set var(--line-time, 400ms) linear both; }
  .sheet-grid[data-part-state="placing"] {
    background: linear-gradient(90deg, transparent calc(50% - 1px), #606060 50%, transparent calc(50% + 1px)),
                linear-gradient(transparent 64%, #999 64.4%, transparent 64.7%);
  }
  .sheet-art[data-part-state="placing"] { animation-name: studio-fit; }
  .sheet-grid[data-part-state="placing"] { animation-name: studio-rule; }
  @keyframes studio-rule {
    from { clip-path: inset(0 99% 97% 0); }
    48% { clip-path: inset(0 0 97% 0); }
    to { clip-path: inset(0); }
  }
  @keyframes studio-fit {
    from { transform: translate(-12px, 5px) scale(.9); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @keyframes studio-set {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
}
@media (max-width: 47rem) {
  .studio-heading { display: block; }
  .studio-heading > p { margin-top: .8rem; }
  .bench-layout { grid-template-columns: 1fr; }
  .press-bed { padding: 1.25rem .9rem; }
  .layer-key { border-left: 0; border-top: 1px solid #bbb; }
  .layer-key ol { display: grid; grid-template-columns: 1fr 1fr; }
  .layer-key li { padding-block: .4rem; }
  .sheet-head { font-size: clamp(2.15rem, 9vw, 4.3rem); }
}
@media (max-width: 25rem) {
  .sheet-body { font-size: .8rem; line-height: 1.35; }
  .sheet-art { min-height: 10.4rem; }
  .bench-tools { gap: .4rem; }
  .bench-toolbar { padding-inline: .6rem; font-size: .72rem; }
}
