:root{--ground:#f4f2ed;--paper:#f4f2ed;--ink:#0b0b0b;--secondary:#6f6d67;--teal:#0b0b0b;--ochre:#f3b229;--rule:#c8c6c0;--select:#f8df9c;--motion:180ms;color:var(--ink);background:var(--ground);font-family:Inter,'Helvetica Neue',Arial,sans-serif;font-synthesis:none;line-height:1.5;color-scheme:light;accent-color:var(--teal)}
*{box-sizing:border-box}body{margin:0}::selection{background:var(--ochre);color:var(--ink)}:focus-visible{outline:3px solid var(--teal);outline-offset:4px}button,input{font:inherit}button{border:1px solid var(--rule);border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:8px 14px;font-weight:600;transition:background var(--motion),border-color var(--motion)}button:hover:not(:disabled){background:var(--select);border-color:#b7ad9b}button:disabled{opacity:.48;cursor:default}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}h1,h2,h3,p{margin:0}button,input,output,progress{font-variant-numeric:tabular-nums}
.topbar{height:68px;display:flex;align-items:center;padding:0 32px;border-bottom:1px solid var(--rule);background:var(--paper);gap:28px}.brand{font-family:Inter,'Helvetica Neue',Arial,sans-serif;font-size:31px;color:var(--ink);text-decoration:none;white-space:nowrap;line-height:1}.study{font-size:14px;border-left:1px solid #b8b1a4;padding-left:25px;white-space:nowrap}.topbar nav{margin-left:auto;display:flex;gap:12px}.topbar nav button{border-color:transparent;font-size:14px}
.workspace{display:grid;grid-template-columns:20% 58% 22%;min-height:calc(100svh - 68px)}.parts-panel,.inspector{background:var(--paper);padding:32px 24px;display:flex;flex-direction:column}.parts-panel{border-right:1px solid var(--rule)}.kit-intro h1{font-size:36px;font-weight:700;line-height:1.25;letter-spacing:-.03em}.kit-intro p{color:var(--secondary);font-size:15px;margin-top:18px}.parts-list{display:flex;flex-direction:column;gap:12px;margin-top:30px}.part-row{width:100%;height:115px;padding:12px 14px;display:flex;justify-content:flex-start;text-align:left;border:1px solid transparent;background:#f1ede4;gap:16px}.part-row[aria-pressed=true]{border-color:#b68c38;background:var(--select)}.part-row img{width:76px;height:88px;object-fit:contain}.part-row .piece-copy{flex:1}.part-row .piece-name{font-weight:700;font-size:19px;display:block;margin-bottom:8px}.piece-status{font-size:13px;color:var(--secondary);display:flex;align-items:center;gap:7px}.state-dot{width:9px;height:9px;border-radius:50%;background:#b68c38;display:inline-block;flex-shrink:0}.is-attached .state-dot{background:var(--teal)}.part-row[aria-pressed=true] .piece-name:after{content:'›';float:right;color:#906720}.progress-block{margin-top:auto;padding-top:36px}.progress-block>p{border-top:1px solid var(--rule);padding-top:22px;font-size:19px}.progress-block strong{font-size:25px;font-weight:500}progress{width:100%;height:12px;border:0;border-radius:8px;overflow:hidden;margin:13px 0;display:block;background:#e3ded3}progress::-webkit-progress-bar{background:#e3ded3}progress::-webkit-progress-value{background:var(--ochre);border-radius:8px}progress::-moz-progress-bar{background:var(--ochre)}#save-state{font-size:11px;color:var(--secondary);display:block}.text-button{border:0;padding:5px 0;justify-content:flex-start;font-size:13px;min-height:36px}.text-button:hover:not(:disabled){background:transparent;text-decoration:underline;text-underline-offset:4px}.progress-block .text-button{margin-top:10px;font-size:12px}
.stage{position:relative;min-width:0;overflow:hidden;background:#eee5d8;min-height:600px}#scene{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none}#scene:focus-visible{outline-offset:-5px}.view-tools{position:absolute;top:18px;right:18px}.view-tools button{font-size:12px;background:#faf7f0dd;border:0;min-height:34px;padding:6px 11px}.view-tools svg{width:17px;height:17px}.stage-guide{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);display:flex;align-items:center;gap:10px;padding:12px 20px;border-radius:32px;background:#faf7f0ed;box-shadow:0 5px 16px #65523a12;pointer-events:none;white-space:nowrap;color:#45534d}.stage-guide p{font-size:12px}.stage-guide svg{width:18px;height:22px}.loading{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:var(--ground);color:var(--secondary)}.loading[hidden]{display:none}.loading-mark{width:28px;height:28px;border:3px solid var(--rule);border-top-color:var(--teal);border-radius:50%;animation:load 1s linear infinite}@keyframes load{to{transform:rotate(360deg)}}.loading.is-error{padding:35px;text-align:center}.loading.is-error .loading-mark{display:none}
.inspector{border-left:1px solid var(--rule);padding:28px 22px}.selected-block>span{font-size:14px;font-weight:600}.selected-piece{display:flex;gap:16px;align-items:center;margin-top:18px;min-height:115px}.selected-piece img{width:100px;height:115px;object-fit:contain;background:#f0ebe1;border-radius:10px}.selected-piece h2{font-size:23px;letter-spacing:-.025em}.selected-piece p{font-size:13px;color:var(--secondary);margin-top:10px;display:flex;align-items:center;gap:8px}.rotation-block,.depth-block,.hint-block{border-top:1px solid var(--rule);margin-top:24px;padding-top:23px}.inspector h3,.depth-block label{font-size:16px;font-weight:700}.rotation-row{display:grid;grid-template-columns:1fr 36px minmax(44px,1fr) 36px;gap:7px;align-items:center;margin-top:10px;font-size:14px}.rotation-row:first-child{margin-top:20px}.rotation-row button{min-height:35px;min-width:35px;padding:0;background:#e6e5da;border:0;font-size:20px;font-weight:400}.rotation-row output{text-align:center;font-size:14px;background:#f0ebe1;line-height:35px;border-radius:6px}.control-help{font-size:11px;color:var(--secondary);margin-top:10px}.depth-row{display:flex;align-items:center;gap:12px;margin-top:18px}.depth-row input{width:100%;min-width:0;cursor:pointer}input[type=range]{appearance:none;height:6px;background:#dcd9ce;border-radius:6px}input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:var(--teal);border:0}input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--teal);border:0}.depth-row output{min-width:62px;text-align:center;border:1px solid var(--rule);border-radius:7px;padding:6px 8px;font-size:14px}.checkbox{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;cursor:pointer}.checkbox input{width:17px;height:17px;margin:0}.hint-block p{font-size:13px;line-height:1.8;color:var(--secondary);margin-top:16px}.hint-block .text-button{margin-top:12px}.hint-block svg{width:17px;height:17px}.assembly-actions{display:grid;gap:10px;margin-top:auto;padding-top:24px}.assembly-actions button{width:100%;min-height:55px;font-size:19px}.assembly-actions svg{width:25px;height:25px}.primary{background:var(--ochre);border-color:transparent}.primary:hover:not(:disabled){background:#c69b43;border-color:transparent}.feedback{font-size:12px;line-height:1.7;min-height:41px;color:var(--secondary);margin-top:14px}.feedback[data-kind=error]{color:#8a3a25}.completion{position:absolute;top:20px;left:24px;background:var(--paper);padding:22px 26px;border-radius:12px;box-shadow:0 10px 30px #45392322;max-width:260px}.completion[hidden]{display:none}.completion h2{font-size:23px}.completion p{font-size:13px;color:var(--secondary);margin-top:12px;line-height:1.8}.completion button{font-size:12px;margin-top:15px}
@media(min-width:1450px){.parts-panel{padding:35px 24px}.parts-list{margin-top:32px;gap:16px}.part-row{height:130px}.part-row img{width:86px;height:100px}.inspector{padding:29px 24px}.selected-piece{min-height:150px}.selected-piece img{width:118px;height:130px}.rotation-block,.depth-block,.hint-block{margin-top:30px;padding-top:25px}.assembly-actions button{height:62px}}
@media(max-width:1150px) and (min-width:821px){.workspace{grid-template-columns:21% 54% 25%}.parts-panel,.inspector{padding:23px 16px}.kit-intro h1{font-size:29px}.part-row{padding:9px;height:97px;gap:9px}.part-row img{width:50px;height:70px}.part-row .piece-name{font-size:16px}.selected-piece{gap:10px}.selected-piece img{width:65px;height:90px}.selected-piece h2{font-size:20px}.rotation-row{gap:4px;grid-template-columns:1fr 31px 40px 31px}.rotation-row button{min-width:31px}.stage-guide{white-space:normal;width:90%;padding:10px 14px}.stage-guide p{font-size:11px}}
@media(max-width:820px){.topbar{height:auto;min-height:64px;padding:15px 18px;gap:12px;flex-wrap:wrap}.brand{font-size:26px}.study{font-size:11px;padding-left:12px}.topbar nav{gap:2px}.topbar nav button{padding:7px;min-height:36px}.topbar nav button span{display:none}.workspace{display:flex;flex-direction:column;min-height:0}.stage{order:0;min-height:420px;height:55svh;max-height:650px}.parts-panel{order:1;display:block;padding:20px;border-right:0;border-bottom:1px solid var(--rule)}.kit-intro{display:flex;align-items:center;justify-content:space-between;gap:15px}.kit-intro h1{font-size:24px}.kit-intro p{font-size:12px;margin:0}.kit-intro br{display:none}.parts-list{margin-top:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.part-row{height:108px;padding:8px 4px;flex-direction:column;gap:0;text-align:center}.part-row img{width:52px;height:54px}.part-row .piece-name{font-size:14px;margin:0}.piece-status{font-size:10px;justify-content:center;gap:4px}.part-row[aria-pressed=true] .piece-name:after{display:none}.progress-block{padding-top:15px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}.progress-block>p{font-size:13px;padding:0;border:0}.progress-block strong{font-size:18px}.progress-block progress{flex:1;margin:0;min-width:90px}.progress-block #save-state{font-size:10px}.progress-block .text-button{margin:0;margin-left:auto}.inspector{order:2;padding:20px;border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}.selected-block{grid-column:1/-1;display:flex;align-items:center;gap:22px}.selected-piece{margin:0;min-height:0;gap:13px}.selected-piece img{width:48px;height:55px}.selected-piece h2{font-size:20px}.selected-piece p{margin-top:2px}.rotation-block,.depth-block,.hint-block{padding-top:17px;margin-top:0}.rotation-row{grid-template-columns:1fr 30px 40px 30px;gap:4px;font-size:12px}.rotation-row button{min-width:30px;min-height:32px}.rotation-row output{line-height:32px;font-size:12px}.rotation-block h3,.depth-block label{font-size:14px}.hint-block{grid-column:1}.assembly-actions{margin:0;padding:0;grid-column:2}.assembly-actions button{min-height:48px;font-size:17px}.feedback{grid-column:1/-1;margin:0;min-height:0}.stage-guide{bottom:15px;white-space:normal;max-width:calc(100% - 24px);width:max-content;padding:9px 14px}.stage-guide p{font-size:10px;line-height:1.6}.completion{top:16px;left:16px;padding:16px 18px;max-width:210px}.completion h2{font-size:19px}.view-tools{top:12px;right:12px}.depth-row{flex-direction:column;align-items:flex-start;gap:14px}.depth-row input{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{--motion:0ms}.loading-mark{animation:none}}
@media(min-width:821px){.workspace{height:calc(100svh - 68px);min-height:0}.parts-panel,.inspector{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b6b5a7 var(--paper)}.stage{min-height:0}.part-row{height:clamp(82px,12svh,130px);flex-shrink:0}.parts-list{margin-top:24px}.progress-block{padding-top:24px}}
@media(min-width:821px) and (max-height:900px){.parts-panel,.inspector{padding:22px 20px}.kit-intro h1{font-size:30px}.kit-intro p{margin-top:12px}.part-row img{width:65px;height:76px}.selected-piece{min-height:93px;margin-top:12px}.selected-piece img{width:78px;height:92px}.rotation-block,.depth-block,.hint-block{margin-top:16px;padding-top:15px}.hint-block p{margin-top:10px}.assembly-actions{padding-top:16px}.assembly-actions button{min-height:46px}.feedback{margin-top:10px;min-height:35px}}

/* Narrow workbench: kit above the model, selected-piece controls below. */
@media(max-width:820px){
 body{overflow:auto}
 .topbar{height:64px;min-height:64px;padding:12px 16px;flex-wrap:nowrap}.brand{font-size:23px}.study{display:none}
 .workspace{height:calc(100svh - 64px);min-height:732px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:160px minmax(280px,1fr) 292px}
 .parts-panel{display:block;grid-row:1;order:0;padding:10px 16px;border-right:0;border-bottom:1px solid var(--rule);overflow:hidden}
 .kit-intro h1{font-size:20px}.kit-intro p{font-size:12px}
 .parts-list{margin-top:9px;gap:7px}.part-row{height:69px;padding:4px;flex-direction:column;gap:0}.part-row img{width:32px;height:24px}.part-row .piece-name{font-size:13px}.piece-status{font-size:12px}.state-dot{width:6px;height:6px}
 .progress-block{padding-top:6px;gap:6px 10px}.progress-block>p{font-size:12px}.progress-block strong{font-size:16px}.progress-block progress{height:7px;min-width:36px}.progress-block #save-state{display:none}.progress-block .text-button{font-size:12px;min-height:30px;padding:2px 0;margin:0}.progress-block svg{width:15px;height:15px}
 .stage{grid-row:2;order:1;height:auto;min-height:0;max-height:none}
 .inspector{display:grid;grid-row:3;order:2;overflow-y:auto;padding:10px 16px;gap:6px 18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:26px 72px 72px 42px auto;border-top:1px solid var(--rule)}
 .selected-block{display:flex;grid-column:1/-1;grid-row:1;gap:0}.selected-block>span{display:none}.selected-piece{margin:0;gap:12px;min-height:0}.selected-piece img{display:none}.selected-piece>div{display:flex;align-items:center;gap:12px}.selected-piece h2{font-size:17px}.selected-piece h2:after{content:' controls'}.selected-piece p{margin:0;font-size:12px}
 .rotation-block{grid-column:1;grid-row:2/4}.depth-block{grid-column:2;grid-row:2}.hint-block{grid-column:2;grid-row:3}.rotation-block,.depth-block,.hint-block{border:0;padding:0;margin:0}.control-help,.hint-block p{display:none}
 .rotation-row:first-child{margin-top:7px}.rotation-row{margin-top:4px;grid-template-columns:1fr 36px 36px 36px;gap:4px}.rotation-row button{min-height:36px;min-width:36px}.rotation-row output{line-height:36px}
 .depth-row{flex-direction:row;margin-top:10px;gap:6px}.depth-row output{min-width:42px;padding:4px;font-size:12px}.checkbox{font-size:12px;gap:5px;min-height:28px}.checkbox input{width:17px;height:17px}.hint-block .text-button{margin-top:0;font-size:12px;min-height:36px}
 .assembly-actions{grid-row:4;grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0}.assembly-actions button{min-height:42px;font-size:16px}.assembly-actions svg{width:19px;height:19px}
 .feedback{grid-row:5;font-size:12px;line-height:1.4;min-height:17px}.stage-guide{white-space:normal;bottom:10px;padding:6px 12px}.stage-guide p{font-size:12px;line-height:1.4}.view-tools button{font-size:12px}
}
@media(max-width:360px){.parts-panel{padding-inline:10px}.part-row{flex-direction:column;height:69px;gap:0}.part-row img{width:27px;height:29px}.piece-status{font-size:11px}.rotation-row{grid-template-columns:1fr 32px 30px 32px}.rotation-row button{min-width:32px}.inspector{padding-inline:10px;column-gap:12px}}

/* TZIB playground identity; assembly geometry and layout are unchanged. */
.brand{font-size:25px;font-weight:800;letter-spacing:.12em}.back-link{color:var(--ink);font-size:14px;text-underline-offset:4px;align-self:center;margin-right:10px}
button{border-radius:999px;border-color:#0b0b0b;font-weight:500}.primary{background:var(--ochre);border:1px solid var(--ink)}.primary:hover:not(:disabled){background:#e7a51c;border-color:var(--ink)}
.part-row{height:clamp(70px,10svh,100px);background:transparent;border-color:var(--rule);border-radius:12px;padding:16px 18px}.part-row[aria-pressed=true]{background:var(--ochre);border-color:var(--ink)}.part-row[aria-pressed=true] .piece-name:after{color:var(--ink)}.piece-status{color:var(--secondary)}.state-dot{background:var(--ink)}.is-attached .state-dot{background:var(--ink)}
.selected-piece{min-height:55px;margin-top:12px}.stage{background:var(--paper)}.stage-guide,.view-tools button{background:#f4f2eded;color:var(--ink)}.rotation-row button{background:#e6e4df;border:1px solid transparent}.rotation-row output{background:transparent}.parts-panel,.inspector{scrollbar-color:var(--secondary) var(--paper)}
@media(max-width:820px){.brand{font-size:20px}.back-link{font-size:12px;margin-right:2px}.topbar nav{gap:2px}.topbar nav button{width:34px;padding:6px;min-height:36px}.kit-intro h1{font-size:19px}.kit-intro p{font-size:12px}.part-row{height:69px;justify-content:center;padding:8px 3px;flex-direction:column;border-radius:10px}.part-row .piece-name{font-size:13px;line-height:1.4}.piece-status{font-size:11px;white-space:nowrap}.selected-piece{min-height:0;margin:0}.selected-piece h2{font-size:16px}.selected-piece p{font-size:11px}.progress-block .text-button{font-size:11px}.checkbox{font-size:12px}.rotation-row>span{font-size:11px}.stage-guide p{font-size:11px}}

@media(max-width:360px){.kit-intro h1{font-size:17px;white-space:nowrap}.kit-intro p{font-size:12px}.part-row{padding-inline:1px}.part-row .piece-name{font-size:12px;white-space:nowrap}.part-row .piece-status{font-size:10px}}

.back-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;min-height:42px;margin-right:0}.back-link:hover{text-decoration:underline}.back-link svg{width:18px;height:18px}
@media(max-width:820px){.part-row{align-items:center;justify-content:center;text-align:center}.part-row .piece-copy{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.part-row .piece-name{margin:0}.part-row .piece-status{justify-content:center}.back-link{font-size:12px;gap:5px}.back-link svg{width:16px;height:16px}}

/* Keep the finished robot visible while inspecting it on small screens. */
@media(max-width:820px){
 .completion{left:16px;right:16px;top:16px;max-width:none;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
 .completion h2{font-size:16px;line-height:1.2}
 .completion p{display:none}
 .completion button{margin:0;min-height:44px;flex-shrink:0;padding:8px 12px}
 .stage:has(.completion:not([hidden])) .view-tools{top:88px}
}

/* Canvas owns scene gestures; ordinary controls preserve native page zoom. */
html{height:100%}
body{height:100svh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.topbar{flex-shrink:0;height:calc(68px + env(safe-area-inset-top,0px));min-height:calc(68px + env(safe-area-inset-top,0px));padding-top:calc(12px + env(safe-area-inset-top,0px));padding-bottom:12px}
.workspace{flex:1;min-height:0;height:auto}
.parts-panel,.inspector{min-height:0;overscroll-behavior-y:contain}
button,a,input,label{touch-action:manipulation}
#scene{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.stage-guide,.completion{pointer-events:none}
.completion button{pointer-events:auto}
@media(max-width:820px){
 body{overflow:hidden}
 .topbar{height:calc(64px + env(safe-area-inset-top,0px));min-height:calc(64px + env(safe-area-inset-top,0px))}
 .workspace{height:auto;min-height:0;grid-template-rows:160px minmax(0,1fr) 292px}
 .parts-panel{overflow-y:auto}
 .stage-guide{bottom:10px;padding:7px 12px}
}
@media(max-width:820px) and (max-height:740px){
 .topbar{height:calc(56px + env(safe-area-inset-top,0px));min-height:calc(56px + env(safe-area-inset-top,0px));padding-top:calc(8px + env(safe-area-inset-top,0px));padding-bottom:8px}
 .workspace{grid-template-rows:144px minmax(0,1fr) clamp(170px,32dvh,236px)}
 .parts-panel{padding-block:8px}
 .kit-intro p{display:none}
 .part-row{height:60px}
 .progress-block{padding-top:5px}
 .inspector{align-content:start}
}
@media(max-width:820px) and (max-height:480px){
 .topbar{height:calc(48px + env(safe-area-inset-top,0px));min-height:calc(48px + env(safe-area-inset-top,0px));padding-top:calc(4px + env(safe-area-inset-top,0px));padding-bottom:4px}
 .workspace{grid-template-rows:92px minmax(0,1fr) 100px}
 .parts-panel{display:grid;grid-template-columns:1fr auto;grid-template-rows:24px 44px;gap:4px 8px;padding:8px 12px}
 .kit-intro{grid-column:1;grid-row:1;align-self:center}
 .kit-intro h1{font-size:16px}
 .parts-list{grid-column:1/-1;grid-row:2;margin:0}
 .part-row{height:44px;padding:2px}
 .part-row .piece-copy{gap:0}
 .progress-block{grid-column:2;grid-row:1;padding:0;gap:6px;flex-wrap:nowrap;align-self:center}
 .progress-block>p{font-size:11px;white-space:nowrap}
 .progress-block strong{font-size:12px}
 .progress-block progress{display:none}
 .progress-block .text-button{min-height:24px;font-size:11px}
 .progress-block svg{display:none}
 .stage-guide{max-width:calc(100% - 16px);gap:6px}
 .stage-guide svg{display:none}
}

/* Phone workbench prioritizes the canvas; secondary tools expand on request. */
#more-tools{display:none}
@media(max-width:600px) and (min-height:481px){
 .topbar{height:calc(48px + env(safe-area-inset-top,0px));min-height:calc(48px + env(safe-area-inset-top,0px));padding-top:calc(4px + env(safe-area-inset-top,0px));padding-bottom:4px}
 .workspace{grid-template-rows:96px minmax(0,1fr) 184px}
 .workspace.tools-expanded{grid-template-rows:96px minmax(0,1fr) 254px}
 .parts-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:24px 52px;padding:8px 10px;gap:4px 8px}
 .kit-intro{grid-row:1;grid-column:1;align-self:center}.kit-intro h1{font-size:15px}.kit-intro p{display:none}
 .progress-block{grid-row:1;grid-column:2;align-self:center;flex-wrap:nowrap;padding:0;gap:6px}.progress-block>p{font-size:11px;white-space:nowrap}.progress-block strong{font-size:13px}.progress-block progress,.progress-block svg{display:none}.progress-block .text-button{font-size:11px;min-height:24px;margin:0}
 .parts-list{grid-row:2;grid-column:1/-1;margin:0;height:52px;padding:0 2px 6px;grid-auto-columns:132px}.part-row{height:44px;padding:2px 6px}.part-row .piece-copy{gap:0}.part-row .piece-name{font-size:12px}
 .inspector{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:24px 64px 44px 20px;gap:4px;padding:8px 10px;align-content:start}
 .selected-block{grid-column:1/-1;grid-row:1;min-width:0;gap:8px;justify-content:space-between}
 #more-tools{display:inline-flex;order:1;flex-shrink:0;min-height:24px;padding:2px 10px;font-size:12px}
 .selected-piece{min-width:0}.selected-piece>div{min-width:0;gap:8px}.selected-piece h2{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-piece h2:after{content:''}.selected-piece p{display:none}
 .rotation-block{grid-column:1/-1;grid-row:2}.rotation-block h3{display:none}
 #rotations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .rotation-row,.rotation-row:first-child{margin:0;grid-template-columns:1fr 1fr;grid-template-rows:16px 44px;gap:4px}
 .rotation-row>span{grid-column:1;grid-row:1;font-size:11px}.rotation-row output{grid-column:2;grid-row:1;line-height:16px;font-size:11px;text-align:right}
 .rotation-row button{grid-row:2;min-height:44px;min-width:44px}.rotation-row button[data-step="-1"]{grid-column:1}.rotation-row button[data-step="1"]{grid-column:2}
 .depth-block,.hint-block .checkbox{display:none}
 .hint-block,.assembly-actions{display:contents}
 .assembly-actions button{grid-row:3;min-height:44px;font-size:14px;gap:4px;padding:6px}.assembly-actions #attach{grid-column:1}.assembly-actions #detach{grid-column:2}.assembly-actions svg{width:16px;height:16px}
 .hint-block #hint{grid-row:3;grid-column:3;min-height:44px;font-size:12px;text-align:center;justify-content:center;border:1px solid var(--ink);padding:4px 6px;margin:0;line-height:1.2}.hint-block #hint svg{display:none}
 .feedback{grid-row:4;grid-column:1/-1;line-height:1.3;font-size:11px;min-height:0}
 .tools-expanded .inspector{grid-template-rows:24px 64px 66px 44px 20px}
 .tools-expanded .depth-block{display:block;grid-row:3;grid-column:1/3;padding-top:4px}.tools-expanded .depth-row{margin-top:8px}.tools-expanded .depth-row input{min-height:6px}
 .tools-expanded .hint-block .checkbox{display:flex;grid-row:3;grid-column:3;align-self:center;white-space:normal;line-height:1.3;min-height:44px}
 .tools-expanded .assembly-actions button,.tools-expanded .hint-block #hint{grid-row:4}.tools-expanded .feedback{grid-row:5}
 .stage-guide{padding:5px 8px;bottom:8px}.stage-guide svg{display:none}.stage-guide p{font-size:10px}
}

/* Put each phone rotation angle beside its own axis name. */
@media(max-width:600px) and (min-height:481px){
 #rotations{column-gap:8px}
 .rotation-row{position:relative}
 .rotation-row>span{display:none}
 .rotation-row output{grid-column:1/-1;text-align:center;font-size:12px;font-weight:600}
 .rotation-row output:before{content:attr(data-axis) " ";font-weight:700}
 .rotation-row:not(:last-child):after{content:"";position:absolute;top:0;bottom:0;right:-4px;border-right:1px solid var(--rule);pointer-events:none}
}

.rotation-row output{font-size:11px;white-space:nowrap}
@media(max-width:600px) and (min-height:481px){.rotation-row output{font-size:11px}}
