.form-chapter {
  --lab-paper:#f5f5f0; --lab-ink:#141b1d; --lab-dim:#515c60; --lab-line:#c7cecd;
  color:var(--lab-ink); background:var(--lab-paper);
  padding-block:clamp(4.4rem,8vw,8rem);
}
.form-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1.6rem; margin-bottom:clamp(1.8rem,3.2vw,3.1rem); }
.form-heading .eyebrow { display:flex; align-items:center; gap:.7rem; color:#576368; }
.form-heading .eyebrow::before { content:''; width:1.6rem; height:1px; background:#42565e; }
.form-heading h2 { margin:.75rem 0 0; font-size:clamp(3.4rem,6.1vw,6.6rem); line-height:.95; letter-spacing:-.067em; font-weight:490; }
.form-heading h2 em { font:italic 1.07em/.97 var(--serif); color:#435968; letter-spacing:-.04em; }
html:lang(zh) .form-heading h2 { font-size:clamp(2.5rem,5.35vw,5.7rem); line-height:1.09; }
html:lang(zh) .form-heading h2 em { font-family:'Songti SC',STSong,serif; font-style:normal; }
.form-enter,.form-room-head button { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; border:1px solid #aeb8b8; color:inherit; background:transparent; border-radius:2rem; padding:.65rem 1rem; font-weight:550; font-size:.9rem; white-space:nowrap; }
.form-enter svg { width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:1.5; }
.form-enter:hover,.form-room-head button:hover { background:#e5ecec; }
.form-work { display:grid; grid-template-columns:minmax(0,1.53fr) minmax(0,.73fr); align-items:center; gap:clamp(2rem,6vw,6.5rem); }
.form-room-head { display:none; }
.form-visual { min-width:0; }
.form-field { position:relative; isolation:isolate; overflow:hidden; height:clamp(350px,34.5vw,536px); border:1px solid #d5dad6; border-radius:.2rem; background:radial-gradient(ellipse at 24% 4%,#fafbf7 0,transparent 68%),linear-gradient(143deg,#e8eae5 0%,#e6e9e6 67%,#d7deda 100%); }
.form-field canvas,.form-field > img { display:block; position:absolute; inset:0; width:100%; height:100%; }
.form-field canvas { touch-action:pan-y; cursor:grab; }
.form-field canvas:active { cursor:grabbing; }
.form-field > img { object-fit:contain; }
.form-work[data-photo-kind=portrait] .form-field > img { background:#fff; padding:3rem 1rem 1rem; }
.form-work[data-photo-kind=detail] .form-field > img { background:#eeefea; }
.form-visual-head { display:flex; align-items:center; justify-content:space-between; gap:.45rem; position:absolute; inset:.9rem .9rem auto; pointer-events:none; }
.form-model-switch,.form-view-switch { padding:3px; display:flex; border:1px solid #c8ceca; border-radius:2rem; background:#f9faf6e8; pointer-events:auto; }
.form-view-switch { background:#eff1eddd; }
.form-model-switch button,.form-view-switch button { background:none; color:#4a5557; border:0; border-radius:2rem; font-size:.8rem; font-weight:570; padding:.37rem .79rem; line-height:1.2; }
.form-view-switch button { padding:.34rem .64rem; }
.form-model-switch button[aria-pressed=true],.form-view-switch button[aria-pressed=true] { background:#242d30; color:white; }
.form-rail { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; min-height:3.15rem; border-bottom:1px solid var(--lab-line,#c7cecd); gap:.5rem; }
.form-hint,.form-tools button { font-size:.81rem; color:#4e5b60; }
.form-tools { display:flex; gap:.2rem; align-items:center;}
.form-tools button { padding:.45rem .55rem; border:0; border-radius:3rem; background:none; }
.form-tools button:hover,.form-tools button[aria-pressed=true] { background:#e1e8e7; color:#15242b;}
.form-anchor { position:absolute; z-index:1; display:block; width:0; height:0; pointer-events:none; color:#263b4b; font:560 .74rem/1.3 var(--mono); }
.form-anchor i { position:absolute; left:.34rem; top:.12rem; width:2rem; height:1px; background:#607a8a; transform-origin:left center; transform:rotate(30deg); }
.form-anchor span { position:absolute; left:1.95rem; top:1.05rem; padding:.16rem .45rem; border:1px solid #b7c4c7; border-radius:.2rem; white-space:nowrap; background:#f3f6f0ea; }
.form-anchor[data-direction=left] i { left:-.34rem; transform:rotate(150deg); }
.form-anchor[data-direction=left] span { left:auto; right:1.95rem; }
.form-editorial { min-width:0; padding:1rem 0 2.5rem; }
.form-device-title small,.form-studio-brand { display:inline-flex; font-weight:770; font-size:1.05rem; letter-spacing:-.075em; line-height:1; }
.form-device-title h3 { margin:.4rem 0 1.1rem; font:italic 400 clamp(2.9rem,4.6vw,4.9rem)/.96 var(--serif); letter-spacing:-.045em; }
html:lang(zh) .form-device-title h3 { font:450 clamp(2.1rem,3.6vw,3.65rem)/1.1 Geist,'PingFang SC',sans-serif; }
.form-explanation { min-height:5.1rem; }
.form-explanation p { max-width:34ch; margin:0; font-size:clamp(.99rem,1.15vw,1.17rem); line-height:1.55; color:var(--lab-dim,#515c60); text-wrap:pretty; }
.form-parts { margin-top:1.2rem; display:grid; }
.form-parts button { display:flex; gap:.74rem; align-items:center; text-align:left; font-size:clamp(.99rem,1.18vw,1.17rem); padding:.7rem .15rem; border:0; border-top:1px solid var(--lab-line,#c7cecd); color:#546168; background:none; }
.form-parts button:last-of-type { border-bottom:1px solid var(--lab-line,#c7cecd); }
.form-parts button i { width:.58rem; height:.58rem; border-radius:50%; border:1px solid #7e8e93; }
.form-parts button[aria-pressed=true],.form-parts button:hover { color:#163f75; }
.form-parts button[aria-pressed=true] i { background:#526f8f; border-color:#293e56; box-shadow:inset 0 0 0 2px #e5eceb; }
.form-light,.form-screen { margin-top:1.2rem; display:flex; align-items:center; gap:.8rem; font-size:.83rem; color:#45545b; }
.form-light input { flex:1; min-width:0; max-width:12rem; accent-color:#425b77; cursor:ew-resize; }
.form-screen select { font:inherit; border:1px solid #bfc7c8; padding:.3rem .6rem; color:inherit; background:#f2f4ef; }
.form-work:not(.in-room) .form-light,.form-work:not(.in-room) .form-screen { display:none; }

.product-room { --lab-line:#b5c0c3; position:fixed; inset:0; margin:0; border:0; padding:0; max-width:none; max-height:none; width:100%; height:100vh; height:100dvh; color:#1b242b; background:#ecf0ed; }
.product-room::backdrop { background:#121b28b8; }
html:has(.product-room[open]) { overflow:hidden; }
.product-room .form-work { width:100%; min-height:100dvh; padding:calc(4.6rem + env(safe-area-inset-top)) clamp(1.1rem,4.3vw,5rem) max(1.3rem,env(safe-area-inset-bottom)); grid-template-columns:minmax(0,1.8fr) minmax(0,.64fr); gap:clamp(1.5rem,4vw,4.2rem); }
.form-work.in-room .form-room-head { display:flex; position:absolute; z-index:3; top:0; left:0; width:100%; align-items:center; justify-content:space-between; padding:max(.8rem,env(safe-area-inset-top)) clamp(1rem,4.3vw,5rem) .8rem; border-bottom:1px solid var(--lab-line); }
.form-studio-brand { gap:.65rem; align-items:center; }
.form-studio-brand i { width:1px; height:.9rem; background:#849297; }
.form-studio-brand span { font:500 .92rem/1.3 Geist,'PingFang SC',sans-serif; letter-spacing:0; }
.form-room-head button { background:#f4f6f1; padding:.45rem .8rem; }
.product-room .form-field { height:clamp(360px,73dvh,980px); }
.product-room .form-editorial { padding-block:1rem; }
@media(max-width:800px) {
  .form-work,.product-room .form-work { grid-template-columns:1fr; gap:1.1rem; }
  .form-field { height:clamp(275px,75vw,495px); }
  .form-editorial { padding:.7rem 0 0; }
  .form-device-title { display:flex; align-items:baseline; gap:.72rem; }
  .form-device-title h3 { margin:0; font-size:2.7rem; }
  .form-explanation { min-height:0; margin-top:.8rem; }
  .form-explanation p { max-width:49ch;}
  .form-parts { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1.1rem; }
  .form-parts button:last-of-type { border-bottom:0; }
  .product-room .form-work { align-content:start; }
  .product-room .form-field { height:clamp(235px,44dvh,420px); }
}
@media(max-width:560px) {
  .form-chapter { padding-block:3.75rem 3rem; }
  .form-heading { align-items:flex-start; flex-direction:column; gap:1.2rem; margin-bottom:1.35rem; }
  .form-heading h2 { font-size:3.05rem; }
  .form-enter { padding:.5rem .82rem; font-size:.83rem; }
  .form-visual-head { inset:.6rem .55rem auto; }
  .form-model-switch button,.form-view-switch button { font-size:.77rem; padding:.35rem .65rem; }
  .form-hint,.form-tools button { font-size:.74rem; }
  .form-tools button { padding:.42rem .37rem; }
  .form-parts button { font-size:.94rem; }
  .product-room .form-work { padding-inline:.8rem; }
}
@media(max-width:800px) {
  .form-work.in-room .form-room-head { position:fixed; background:#edf1eef5; backdrop-filter:blur(10px); }
}

/* In the wide studio, the same model fills the room. Its side panel never covers the optical centre. */
@media(min-width:900px) {
  .product-room .form-work { display:block; padding:0; position:relative; height:100dvh; min-height:525px; overflow:hidden; }
  .product-room .form-room-head { position:absolute; z-index:5; background:linear-gradient(#edf0ede8,#edf0edb0); }
  .product-room .form-visual { position:absolute; inset:3.82rem 0 0; }
  .product-room .form-field { height:100%; border:0; border-radius:0; background:radial-gradient(ellipse at 71% 48%,#f7f8f2 1%,#e9ede8 42%,#dbe3df 86%); }
  /* The optical macro can fill the frame. Keep ink legible over every finish and orbit. */
  .product-room .form-field::after { content:''; position:absolute; z-index:0; inset:0 auto 0 0; width:53%; pointer-events:none; background:linear-gradient(90deg,#e9ede9 0%,#e9ede9fc 54%,#e9ede9eb 62%,#e9ede900 100%); }
  .product-room .form-visual-head { z-index:3; left:38%; right:clamp(2.2rem,4.5vw,7rem); top:1.35rem; }
  .product-room .form-rail { position:absolute; bottom:1.3rem; left:39%; right:clamp(2rem,4.5vw,6rem); border-block:1px solid #93a3a340; z-index:3; background:#edf1ec99; padding-inline:.55rem; backdrop-filter:blur(6px); }
  .product-room .form-editorial { position:absolute; z-index:2; left:clamp(2rem,4.8vw,7rem); top:max(5rem,calc(50% - 14rem)); width:clamp(16.5rem,25vw,26rem); padding:0; }
  .product-room .form-device-title small { color:#4a5660; font:600 .82rem/1.4 var(--mono); letter-spacing:.10em; }
  .product-room .form-device-title h3 { font-size:clamp(3.6rem,5.9vw,6.2rem); }
  .product-room .form-parts { margin-top:clamp(.85rem,2.1vh,1.5rem); }
  .product-room .form-parts button { padding:.61rem .05rem; }
  .product-room .form-field > img { left:37%; width:56%; background:transparent!important; mix-blend-mode:multiply; }
  .product-room .form-field .form-anchor { z-index:3; }
}
@media(min-width:900px) and (max-height:670px) {
  .product-room .form-device-title h3 { font-size:3rem; margin-bottom:.5rem; }
  .product-room .form-explanation { min-height:0; }
  .product-room .form-explanation p { font-size:.94rem; }
  .product-room .form-parts button { padding:.4rem .05rem; }
  .product-room .form-light,.product-room .form-screen { margin-top:.6rem; }
}
.form-screen { display:block; border:0; margin:1.25rem 0 0; padding:0; min-width:0; }
.form-screen legend { font-size:.83rem; color:#4a595e; padding:0; margin:0 0 .48rem; }
.form-screen > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.35rem; max-width:22rem; }
.form-screen label { cursor:pointer; position:relative; }
.form-screen input { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.form-screen label > span { display:grid; gap:.33rem; place-items:center; border:1px solid #bdc7c8; border-radius:.37rem; padding:.42rem .20rem; color:#41535b; }
.form-screen i { display:block; width:min(100%,3.7rem); aspect-ratio:2.28; border-radius:18% / 33%; background-image:url('/assets/website/display-strip.webp'); background-repeat:no-repeat; background-size:300% 100%; }
.form-work[data-device=portable] .form-screen i { background-image:url('/assets/website/portable-display-strip.webp'); aspect-ratio:1.94; border-radius:13% / 24%; }
.form-screen .screen-sample-listening { background-position:0 center; }
.form-screen .screen-sample-working { background-position:50% center; }
.form-screen .screen-sample-standby { background-position:100% center; }
.form-screen b { font:540 .78rem/1.25 Geist,'PingFang SC',sans-serif; }
.form-screen input:checked + span { border-color:#526d80; background:#f8faf6; color:#203c4b; }
.form-screen input:focus-visible + span { outline:3px solid #507099; outline-offset:2px; }
@media(min-width:900px) and (max-height:690px) { .form-screen i { display:none; } }
.form-screen-still { position:absolute; inset:0; display:grid; place-items:center; }
.form-screen-still i { display:block; width:min(65%,34rem); aspect-ratio:2.26; background:url('/assets/website/display-strip.webp') 100% center/300% 100% no-repeat; border-radius:12% / 25%; box-shadow:0 .55rem 1.4rem #1d34352e; }
.form-work[data-device=portable] .form-screen-still i { width:min(61%,29rem); aspect-ratio:1.85; background-image:url('/assets/website/portable-display-strip.webp'); }
.form-work[data-studio-state=listening] .form-screen-still i { background-position:0 center; }
.form-work[data-studio-state=working] .form-screen-still i { background-position:50% center; }
@media(min-width:900px) { .product-room .form-screen-still { left:28%; } }
