:root{--paper:#fff;--background:#f5f7fa;--ink:#18273e;--muted:#66748a;--line:#e3e8ef;--yellow:#ffe500;--blue:#3159a7;--ice:#e8f0fc;--orange:#ed7426;--radius:20px;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--background);font-size:15px}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{cursor:default;opacity:.4}button{transition:background .16s,color .16s,border-color .16s,box-shadow .16s}button:active:not(:disabled){filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button[hidden],[hidden]{display:none!important}a{color:inherit}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;z-index:100;left:20px;top:-80px;background:var(--yellow);padding:14px 20px;border-radius:8px}.skip-link:focus{top:12px}.app-shell{height:100svh;min-height:680px;max-width:1920px;margin:auto;display:flex;flex-direction:column;padding:0 24px}.topbar{height:84px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;text-decoration:none;gap:22px;min-width:0}.brand img{width:205px;height:auto;display:block}.brand-divider{height:26px;width:1px;background:#ccd4df}.brand-title{font-size:19px;font-weight:650;white-space:nowrap;letter-spacing:.025em}.top-actions{display:flex;gap:18px;align-items:center}.experience-label{color:var(--muted);font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:0 22px;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-weight:600;white-space:nowrap}.btn:hover:not(:disabled){border-color:#b9c5d7;background:#f7f9fc}.btn-quiet{border:0;background:transparent;padding:0 10px;font-size:13px}.btn-quiet svg{width:19px;height:19px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:170px minmax(0,1fr) 288px;gap:20px;padding:22px 0 18px}.chapter-rail{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px 14px;display:flex;flex-direction:column;min-height:0}.rail-heading{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.icon-button{border:0;background:transparent;border-radius:12px;min-width:44px;min-height:44px;display:inline-flex;justify-content:center;align-items:center;padding:10px;flex-shrink:0}.icon-button:hover:not(:disabled){background:#edf1f7}.rail-heading .icon-button{min-width:32px;min-height:32px;width:32px;height:32px;padding:7px}.rail-heading svg{width:18px;height:18px}.rail-count{margin:2px 0 16px;font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}.rail-count strong{font-family:Arial,sans-serif;font-size:40px;letter-spacing:-2px;color:var(--ink)}.rail-count b{font-weight:400}.rail-meter{height:5px;background:#e5eaf2;border-radius:3px;margin-bottom:24px;overflow:hidden}.rail-meter i{height:100%;display:block;background:var(--yellow);width:0;transition:width .2s}.chapters{display:flex;flex-direction:column;gap:8px;position:relative}.chapters:before{content:"";position:absolute;left:19px;top:28px;bottom:28px;width:1px;background:var(--line)}.chapter-button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:12px 5px;border-radius:13px;text-align:left;min-height:56px;font-size:14px;position:relative}.chapter-button .chapter-number{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#edf1f7;font-family:Arial,sans-serif;font-weight:600;color:#546884;flex-shrink:0}.chapter-button .chapter-check{width:17px;height:17px;margin-left:auto;color:var(--blue);opacity:0}.chapter-button.done .chapter-check{opacity:1}.chapter-button.selected{background:#fff9c7;font-weight:600}.chapter-button.selected .chapter-number{background:var(--yellow);color:var(--ink)}.chapter-button:hover{background:#f4f6fa}.rail-help{margin-top:auto;display:flex;align-items:center;gap:8px;padding:20px 5px 3px;border:0;background:transparent;font-size:12px;color:var(--muted)}.rail-help svg{width:17px;height:17px}.model-area{min-width:0;min-height:0;display:flex;flex-direction:column}.model-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:66px;padding:0 2px 16px}.heading-kicker{font-size:11px;color:var(--muted);margin-bottom:5px}h1{font-size:23px;font-weight:650;margin:0;line-height:1.3;letter-spacing:-.025em}.mode-tabs{display:flex;padding:4px;background:#e9edf4;border-radius:12px;flex-shrink:0}.mode-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;padding:10px 13px;border-radius:9px;font-size:12px;white-space:nowrap;min-height:40px;color:#5c6b83}.mode-tabs button.selected{background:white;color:var(--ink);box-shadow:0 2px 5px #1e355015}.mode-tabs svg{width:17px;height:17px}.stage{position:relative;flex:1;min-height:280px;isolation:isolate;border:1px solid #dce7f6;border-radius:24px;overflow:clip;background:radial-gradient(ellipse at 50% 10%,#fcfdff 0%,#e9f1fe 70%,#dfeaf9 100%)}.stage-grid{position:absolute;left:-40%;right:-40%;bottom:-45%;height:85%;transform:perspective(500px) rotateX(53deg);background-image:linear-gradient(#fff8 1px,transparent 1px),linear-gradient(90deg,#fff8 1px,transparent 1px);background-size:62px 62px;z-index:-1;opacity:.75;pointer-events:none}.stage:after{content:"";position:absolute;width:65%;height:12%;bottom:14%;left:19%;background:radial-gradient(ellipse,#708cac24,transparent 70%);z-index:-1;pointer-events:none}#scene{display:block;width:100%;height:100%;min-height:280px;touch-action:none;cursor:grab;position:absolute;inset:0}#scene:active{cursor:grabbing}.stage-label{position:absolute;top:18px;left:20px;display:flex;align-items:center;gap:8px;color:#48627f;font-size:12px;padding:8px 12px;background:#ffffffc9;border:1px solid #ffffffc9;border-radius:30px;pointer-events:none}.status-dot{width:6px;height:6px;background:var(--blue);border-radius:50%}.complete-preview{position:absolute;top:16px;right:16px;width:106px;border:1px solid #fff;background:#ffffffd9;border-radius:16px;padding:9px 6px 4px;box-shadow:0 4px 14px #40679715;display:none}.complete-preview span{font-size:11px;color:#536984}.complete-preview img{display:block;width:90px;height:90px;object-fit:contain}.in-guide .complete-preview{display:block}.viewport-tools{position:absolute;left:18px;bottom:18px;border:1px solid #fff;display:flex;align-items:center;padding:4px;border-radius:16px;background:#ffffffed;box-shadow:0 4px 12px #4067970c;gap:2px}.viewport-tools>span{width:1px;height:20px;background:var(--line);margin:0 3px}.viewport-tools .icon-button{min-width:40px;min-height:40px;padding:9px;border-radius:10px}.viewport-tools svg{width:20px;height:20px}.stage-hint{position:absolute;right:20px;bottom:30px;font-size:11px;color:#5d7492;pointer-events:none}.below-stage{padding:12px 2px 0;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);gap:6px;min-height:43px}.below-stage>span{display:flex;gap:6px;align-items:center}.new-part-dot{width:8px;height:8px;border-radius:50%;border:2px solid var(--orange);display:inline-block}.text-button{display:inline-flex;gap:6px;justify-content:center;align-items:center;border:0;background:transparent;padding:6px 2px;min-height:30px;font-size:12px;color:var(--blue);white-space:nowrap}.text-button svg{width:16px;height:16px}.instruction-panel{padding:23px 20px 14px;background:white;border:1px solid var(--line);border-radius:var(--radius);min-height:0;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#cdd7e6 transparent}.step-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.section-label{font-size:11px;color:var(--blue);font-weight:500}.step-heading h2{font-size:22px;line-height:1.4;font-weight:650;letter-spacing:-.025em;margin:9px 0 0}.step-heading>.icon-button{display:none}.intro p{font-size:14px;line-height:1.9;color:var(--muted);margin:15px 0 20px}.model-facts{display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;gap:34px}.model-facts>div{display:flex;flex-direction:column;gap:4px}.model-facts strong{font-family:Arial,sans-serif;font-size:30px;font-weight:600;letter-spacing:-1px}.model-facts span{font-size:11px;color:var(--muted)}.intro-illustration{margin:8px -6px -20px}.intro-illustration img{width:100%;height:auto;max-height:250px;object-fit:contain;mix-blend-mode:multiply}.intro .intro-foot{font-size:11px;line-height:1.7;margin:0 0 12px}.picking-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 12px}.picking-title h3,.instruction-copy h3{font-size:13px;font-weight:600;margin:0}.picking-title>span{font-size:11px;color:var(--muted)}.picking{display:flex;flex-direction:column;gap:8px}.piece{display:flex;align-items:center;padding:8px;background:#f7f9fc;border:1px solid #edf0f5;border-radius:12px;gap:9px;min-height:72px}.piece img{width:63px;height:55px;object-fit:contain;flex-shrink:0}.piece-label{flex:1;min-width:0}.piece-label strong{font-size:12px;font-weight:500;line-height:1.5;display:block;word-break:break-word}.piece-label small{color:var(--muted);font-size:10px;display:block;margin-top:4px}.piece-count{align-self:center;font-family:Arial,sans-serif;font-size:14px;font-weight:600;white-space:nowrap}.instruction-copy{padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}.instruction-copy p{font-size:14px;line-height:1.9;margin:10px 0 0;color:#4b5d74}.component-note{display:flex;gap:8px;color:#66613e;font-size:11px;line-height:1.8;padding:12px;background:#fffbe4;border-radius:10px;margin-top:18px}.component-note svg{width:16px;height:16px;margin-top:2px}.toggle-button{border:1px solid #d8e0eb;background:white;border-radius:9px;padding:9px 12px;min-height:40px;font-size:11px;margin-top:18px;width:100%;color:#546983}.toggle-button[aria-pressed=true]{border-color:var(--blue);color:var(--blue);background:#f0f5ff}.panel-footer{margin-top:auto;padding-top:25px;display:flex;align-items:center;gap:5px;color:#78869a;font-size:10px;line-height:1.6}.panel-footer svg{width:14px;height:14px}.navigation-dock{margin-bottom:20px;min-height:86px;display:flex;align-items:center;gap:18px;background:white;border:1px solid var(--line);border-radius:22px;padding:14px 18px;box-shadow:0 8px 30px #233b6010;flex-shrink:0}.previous{min-width:132px}.reverse{transform:rotate(180deg)}.next{background:var(--yellow);border-color:var(--yellow);min-width:164px;min-height:52px;border-radius:15px}.next:hover:not(:disabled){background:#f5dc00;border-color:#f5dc00}.play-button{width:50px;height:50px;border:1px solid var(--line);border-radius:15px}.play-button svg{width:20px;height:20px;fill:currentColor;stroke-width:1.3}.play-button[aria-pressed=true] svg{fill:none;stroke-width:3}.step-scrubber{flex:1;min-width:0;position:relative;margin:0 15px}.scrubber-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:7px}.scrubber-label .text-button{font-size:11px;min-height:20px;padding:0}#jump{appearance:none;-webkit-appearance:none;display:block;width:100%;height:6px;margin:0;border-radius:5px;background:linear-gradient(to right,var(--yellow) 0 var(--progress,0%),#e5eaf2 var(--progress,0%) 100%);cursor:pointer;position:relative;z-index:1}#jump::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;background:var(--yellow);border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #d4c44e}#jump::-moz-range-thumb{width:14px;height:14px;background:var(--yellow);border:3px solid white;border-radius:50%}.progress-ticks{position:absolute;left:0;right:0;bottom:-4px;display:flex;justify-content:space-between;pointer-events:none;display:none}.progress-ticks i{width:3px;height:3px;background:#cad3e0;border-radius:50%}.loading-state{position:absolute;inset:0;background:#eef4fde8;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:13px;z-index:10;text-align:center;padding:20px}.loading-state strong{font-size:17px;font-weight:500}.loading-state>span:last-child{font-size:12px;color:var(--muted)}.loading-cube{width:62px;height:62px;display:grid;place-items:center;background:white;color:var(--blue);border-radius:18px;box-shadow:0 5px 25px #577cb31a}.loading-cube svg{width:30px;height:30px;animation:breathe 1.4s ease-in-out infinite}@keyframes breathe{50%{opacity:.35;transform:translateY(-4px)}}dialog{padding:0;border:1px solid var(--line);border-radius:22px;color:var(--ink);box-shadow:0 22px 80px #172a4b30;background:white;max-height:85svh}dialog::backdrop{background:#13274366}.steps-dialog{width:min(560px,calc(100vw - 32px))}.dialog-header{padding:24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.dialog-header h2{font-size:22px;margin:6px 0 0}.step-list{padding:10px 14px 18px;max-height:65svh;overflow:auto}.step-list button{display:flex;gap:16px;align-items:center;border:0;border-bottom:1px solid #f0f3f7;background:white;width:100%;text-align:left;min-height:65px;padding:10px 14px;border-radius:10px}.step-list button:hover{background:#f5f7fb}.step-list button.active{background:#fffbd9}.step-list .list-n{font-family:Arial,sans-serif;font-weight:600;font-size:17px;color:#71829a;width:28px;flex-shrink:0}.step-list button.active .list-n{color:var(--ink)}.step-list .list-title{font-size:14px;line-height:1.6}.step-list .list-title small{display:block;color:var(--muted);font-size:11px}.help-dialog{max-width:520px;width:calc(100vw - 32px)}.help-dialog .dialog-header h2{font-size:20px}.help-content{padding:8px 24px 20px;font-size:14px;color:#4b5d74;line-height:1.9}.help-content strong{display:block;color:var(--ink);margin-bottom:3px}.help-note{font-size:12px;background:#fff9df;padding:14px;border-radius:12px}.toast{position:fixed;z-index:1000;bottom:120px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#20334d;color:white;border-radius:12px;padding:13px 22px;box-shadow:0 8px 30px #233b6030;font-size:13px;max-width:calc(100vw - 30px);transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.sheet-handle{display:none}.stage:fullscreen{height:100svh;border-radius:0;background:#e9f1fe}.stage:fullscreen #scene{height:100%}.stage:fullscreen .viewport-tools{bottom:28px}.stage:fullscreen .stage-hint{bottom:40px}
@media(min-width:1500px){.workspace{grid-template-columns:190px minmax(0,1fr) 320px;gap:26px;padding-top:28px}.instruction-panel{padding:27px 25px}.chapter-rail{padding:24px 18px}.topbar{height:92px}.app-shell{padding:0 32px}.model-heading{min-height:77px}.stage{border-radius:28px}.piece{min-height:80px}.piece img{width:74px;height:60px}.piece-label strong{font-size:13px}.instruction-copy p{font-size:15px}}
@media(max-width:1180px) and (min-width:821px){.app-shell{padding:0 18px}.workspace{grid-template-columns:126px minmax(0,1fr) 250px;gap:14px}.chapter-rail{padding:15px 9px}.chapter-button{font-size:12px;gap:6px}.chapter-button .chapter-number{width:26px;height:26px}.chapters:before{left:17px}.chapter-button .chapter-check{display:none}.model-heading{align-items:flex-start}.heading-kicker{display:none}h1{font-size:20px}.mode-tabs button{padding:9px;font-size:11px}.mode-tabs button svg{display:none}.instruction-panel{padding:18px 15px}.step-heading h2{font-size:20px}.stage-hint{display:none}.viewport-tools{left:12px;bottom:14px;gap:0}.viewport-tools .icon-button{min-width:35px;width:35px;padding:8px}.complete-preview{width:90px}.complete-preview img{width:76px;height:76px}.brand img{width:180px}.brand-title{font-size:17px}.next{min-width:140px}.previous{min-width:110px}.step-scrubber{margin:0 4px}}
@media(max-width:820px){body{background:white}.app-shell{padding:0;height:auto;min-height:100svh;display:block}.topbar{height:65px;padding:0 20px;border-bottom:1px solid var(--line);gap:12px}.brand{gap:12px}.brand img{width:158px}.brand-title{font-size:15px}.brand-divider{height:20px}.top-actions{gap:0}.experience-label{display:none}.top-actions .btn{min-width:38px;min-height:44px;padding:8px}.top-actions .btn span{display:none}.workspace{display:flex;flex-direction:column;gap:0;padding:0 0 110px;min-height:0;overflow:visible}.chapter-rail{display:none}.model-area{display:flex;flex-direction:column;min-height:0}.model-heading{height:70px;min-height:70px;padding:14px 20px;align-items:center}.heading-kicker{display:none}h1{font-size:21px}.mode-tabs{padding:0;background:none}.mode-tabs button{min-height:39px;font-size:11px;padding:8px 10px}.mode-tabs button#guideMode{display:none}.mode-tabs button.selected{background:#f0f3f8;box-shadow:none}.mode-tabs svg{width:16px;height:16px}.stage{height:clamp(290px,42svh,470px);min-height:290px;flex:none;border:0;border-radius:0}#scene{min-height:0}.stage-label{top:14px;left:20px;font-size:11px;padding:6px 10px}.complete-preview{width:74px;top:13px;right:15px;padding:6px 3px}.complete-preview img{width:64px;height:64px}.complete-preview span{font-size:9px}.stage-hint{display:none}.viewport-tools{left:18px;bottom:15px;border-radius:14px;padding:3px}.viewport-tools .icon-button{min-width:38px;min-height:38px;width:38px;height:38px;padding:8px}.viewport-tools svg{width:19px;height:19px}.below-stage{padding:7px 20px;min-height:42px;font-size:10px;background:#f9fbfe}.below-stage .text-button{font-size:11px;min-height:30px}.instruction-panel{padding:18px 20px 21px;border:0;border-top:1px solid #eaf0f7;border-radius:22px 22px 0 0;overflow:visible;margin-top:-1px;display:block;position:relative;background:white}.step-heading{align-items:center}.step-heading>.icon-button{display:inline-flex;background:#f3f6fb}.step-heading h2{font-size:21px;line-height:1.45;margin:5px 0 0}.section-label{font-size:11px}.intro p{font-size:14px;margin:12px 0 16px;line-height:1.8}.model-facts{padding:13px 0;gap:38px}.model-facts>div{flex-direction:row;align-items:baseline;gap:7px}.model-facts strong{font-size:25px}.model-facts span{font-size:11px}.intro-illustration,.intro .intro-foot{display:none}.panel-footer{font-size:10px;padding-top:18px}.picking-title{margin:18px 0 10px}.picking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.piece{min-height:70px;gap:6px;padding:7px}.piece img{width:48px;height:48px}.piece-label strong{font-size:11px}.piece-label small{font-size:10px;margin-top:2px}.piece-count{font-size:12px}.picking.one{grid-template-columns:1fr}.picking.one .piece{padding:10px 15px}.picking.one .piece img{width:82px;height:56px}.picking.one .piece-label strong{font-size:13px}.picking.one .piece-count{font-size:16px}.instruction-copy{padding-top:15px;margin-top:17px}.instruction-copy p{font-size:14px;line-height:1.85;margin-top:7px}.component-note{margin-top:12px;padding:9px 12px}.toggle-button{min-height:42px;font-size:12px;margin-top:13px}.navigation-dock{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:0 -5px 24px #28446a09;padding:12px 18px max(12px,env(safe-area-inset-bottom));min-height:82px;gap:10px;background:#fffffffa;flex-wrap:wrap}.step-scrubber{order:-1;flex:none;width:100%;height:18px;margin:0 1px 3px}.scrubber-label{position:absolute;top:-3px;left:0;right:0;font-size:10px;margin:0;pointer-events:none}.scrubber-label .text-button{font-size:10px;min-height:16px;pointer-events:auto}#jump{position:absolute;top:19px;height:3px}#jump::-webkit-slider-thumb{width:10px;height:10px;border-width:2px}.previous{min-width:0;flex:1;padding:0 13px;min-height:46px;gap:8px;border-radius:14px;font-size:14px}.next{min-width:0;flex:1.3;padding:0 14px;min-height:46px;border-radius:14px;font-size:14px;gap:12px}.play-button{width:46px;height:46px;min-width:46px;min-height:46px;border-radius:14px}.navigation-dock .btn svg{width:20px;height:20px}.toast{bottom:140px}.dialog-header{padding:19px 20px}.steps-dialog{max-height:82svh}.step-list{max-height:66svh}.step-list button{min-height:64px}.loading-state strong{font-size:15px}}
@media(max-width:380px){.topbar{padding:0 15px}.brand img{width:138px}.brand-title{font-size:13px}.brand{gap:9px}.model-heading{padding:12px 16px}h1{font-size:19px}.instruction-panel{padding-left:16px;padding-right:16px}.stage{height:300px}.piece img{width:39px;height:43px}.piece-label strong{font-size:10px}.piece-count{font-size:11px}.navigation-dock{padding-left:14px;padding-right:14px;gap:8px}}
@media(max-height:740px) and (min-width:821px){.app-shell{min-height:620px}.topbar{height:68px}.workspace{padding-top:15px;padding-bottom:12px}.model-heading{min-height:58px}.navigation-dock{margin-bottom:12px;min-height:75px;padding-top:10px;padding-bottom:10px}.rail-meter{margin-bottom:14px}.chapter-button{min-height:48px;padding-top:8px;padding-bottom:8px}.intro-illustration img{max-height:140px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){.app-shell{display:block;height:auto;min-height:100svh;padding:0 14px}.topbar{height:54px;padding:0}.brand img{width:155px}.brand-title{font-size:14px}.brand{gap:12px}.experience-label{display:none}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:14px;padding:10px 0 95px}.chapter-rail{display:none}.model-heading{height:44px;min-height:44px;padding:0 2px 10px}.heading-kicker{display:none}h1{font-size:18px}.mode-tabs{background:transparent;padding:0}.mode-tabs button{font-size:10px;min-height:32px;padding:5px 8px}.mode-tabs #guideMode{display:none}.stage{height:calc(100svh - 158px);min-height:190px;flex:none;border-radius:17px}.stage-label{top:10px;left:12px;padding:5px 9px;font-size:10px}.viewport-tools{left:10px;bottom:10px;padding:2px}.viewport-tools .icon-button{min-width:32px;min-height:32px;width:32px;height:32px;padding:7px}.stage-hint{display:none}.complete-preview{width:65px;top:9px;right:9px;padding:3px}.complete-preview img{width:57px;height:57px}.complete-preview span{font-size:8px}.below-stage{display:none}.instruction-panel{padding:13px;margin-top:44px;border:1px solid var(--line);border-radius:15px;height:calc(100svh - 158px);min-height:190px;overflow:auto}.step-heading h2{font-size:17px;margin-top:4px}.step-heading>.icon-button{display:inline-flex;min-width:34px;min-height:34px;width:34px;height:34px}.picking-title{margin-top:14px}.piece{min-height:57px;padding:5px}.piece img{width:51px;height:43px}.piece-label strong{font-size:11px}.piece-count{font-size:12px}.instruction-copy{margin-top:13px;padding-top:12px}.instruction-copy p{font-size:12px;line-height:1.75}.intro p{font-size:12px;margin:8px 0 12px}.model-facts{padding:10px 0}.model-facts strong{font-size:25px}.intro-illustration,.intro .intro-foot,.panel-footer{display:none}.navigation-dock{position:fixed;left:14px;right:14px;bottom:10px;margin:0;z-index:30;min-height:66px;height:66px;flex-wrap:nowrap;border:1px solid var(--line);border-radius:17px;padding:10px 12px;gap:12px}.navigation-dock .previous{flex:none;min-width:100px;min-height:43px}.navigation-dock .next{flex:none;min-width:135px;min-height:43px}.navigation-dock .play-button{min-width:43px;min-height:43px;width:43px;height:43px}.step-scrubber{order:0;flex:1;width:auto;height:auto;margin:0 8px}.scrubber-label{position:static;pointer-events:auto;margin-bottom:8px;font-size:10px}.scrubber-label .text-button{font-size:10px}#jump{position:relative;top:auto;height:4px}.picking{display:flex;flex-direction:column}.picking.one .piece{padding:5px}.picking.one .piece img{width:60px;height:45px}.picking.one .piece-label strong{font-size:11px}.picking.one .piece-count{font-size:12px}}
#jump{height:24px;margin-top:-9px;background-size:100% 6px;background-position:center;background-repeat:no-repeat}
@media(max-width:820px){.workspace{padding-bottom:136px}.step-scrubber{height:24px}#jump{height:24px;top:11px;margin:0;background-size:100% 3px}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){.step-scrubber{height:auto}#jump{position:relative;top:auto;height:24px;margin-top:-9px;background-size:100% 4px}}

/* R3: one continuous step, with on-demand part inspection. */
.mobile-guide-header{display:none}.piece{width:100%;text-align:left;min-height:92px;border-color:#dce4ef;position:relative}.piece img{width:90px;height:72px}.piece-label strong{font-size:13px;font-weight:600}.piece-label small{font-size:11px;color:#536780}.piece-count{font-size:17px}.piece:hover{border-color:#9db2cf;background:#edf3fc}
.below-stage .toggle-button{width:auto;margin:0;min-height:40px;padding:7px 10px}
.piece-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(var(--app-height,100svh) - 24px);overflow:auto}
.piece-dialog .dialog-header{padding:16px 20px;position:sticky;top:0;z-index:2;background:white}.piece-dialog h2{font-size:20px}
.piece-detail{padding:12px 20px 20px}.detail-stage{height:clamp(150px,34svh,310px);position:relative;border-radius:18px;background:#f0f5fc;overflow:hidden;border:1px solid #dfe8f5}
.detail-stage>img,.detail-stage>canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none}.detail-stage>canvas{position:absolute;inset:0;cursor:grab}.detail-stage>canvas:active{cursor:grabbing}
.detail-status{position:absolute;left:12px;right:12px;bottom:8px;font-size:12px;color:#526780;background:#ffffffe8;border-radius:8px;padding:6px;text-align:center}
.detail-tools{display:flex;gap:3px;justify-content:space-between;align-items:center;margin-top:8px}.detail-tools button{min-height:44px}.detail-tools .text-button{font-size:12px;padding:8px}
.detail-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:#526780;font-size:13px}.detail-meta strong{color:var(--ink);font-size:19px}
.detail-hint{margin:8px 0 14px;color:#65788f;font-size:12px;line-height:1.5}.locate-piece{width:100%;background:var(--yellow);border-color:var(--yellow);min-height:46px}
@media(max-width:820px),(max-width:1000px) and (max-height:500px){
  html,body{height:100%;overflow:hidden;overscroll-behavior:none;-webkit-text-size-adjust:100%}
  .app-shell{display:flex;flex-direction:column;padding:0;height:var(--app-height,100vh);min-height:0;overflow:hidden}
  .topbar{height:48px;padding:0 14px;flex:none}.brand{gap:9px;min-height:44px}.brand img{width:140px}.brand-title{font-size:13px}.brand-divider{height:18px}
  .top-actions .btn{width:44px;min-height:44px;padding:10px}.top-actions .btn span,.experience-label{display:none}
  .mobile-guide-header{flex:none;padding:6px 14px;border-bottom:1px solid var(--line);background:white}.in-guide .mobile-guide-header{display:block}
  .mobile-step-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.mobile-step-heading .section-label{font-size:11px;line-height:1.2}.mobile-step-heading h2{font-size:18px;line-height:1.35;margin:2px 0 0;font-weight:650}.mobile-step-heading .icon-button{min-height:44px;min-width:44px;background:#f2f5fa}
  .workspace{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;gap:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding:12px}
  .chapter-rail{display:none}.in-guide .model-heading,.in-guide .instruction-panel .step-heading,.in-guide .panel-footer{display:none}
  .instruction-panel{height:auto;min-height:0;border:0;border-radius:0;margin:0;overflow:visible;flex:none;padding:12px 14px}
  .in-guide .instruction-panel{order:1;padding:8px 12px 6px;border-bottom:1px solid #e2eaf4}
  .picking-title{margin:0 0 6px;gap:8px}.picking-title h3{font-size:13px;font-weight:650}.picking-title>span{font-size:11px;white-space:nowrap;color:#526780}
  .picking{display:grid;grid-template-columns:repeat(var(--types,2),minmax(0,1fr));gap:6px}
  .piece,.picking.one .piece{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:76px auto;align-items:center;gap:4px;min-height:126px;padding:6px;border-radius:12px}
  .piece img,.picking.one .piece img{grid-column:1/-1;grid-row:1;width:100%;height:76px;object-fit:contain}
  .picking[data-types="4"] .piece{grid-template-rows:58px auto;min-height:108px}.picking[data-types="4"] .piece img{height:58px}
  .picking[data-types="3"] .piece{grid-template-rows:66px auto;min-height:116px}.picking[data-types="3"] .piece img{height:66px}
  .piece-label{grid-column:1;grid-row:2;min-width:0}.piece-label strong,.picking.one .piece-label strong{font-size:11px;line-height:1.35;font-weight:600;word-break:normal;overflow-wrap:anywhere}.piece-label small{font-size:10px;line-height:1.4;margin-top:2px}
  .piece-count,.picking.one .piece-count{grid-column:2;grid-row:2;font-size:15px;color:var(--ink);align-self:start;line-height:1.4}
  .picking.one{grid-template-columns:1fr}.picking.one .piece{grid-template-columns:88px minmax(0,1fr) auto;grid-template-rows:auto;min-height:72px;padding:5px 12px;gap:10px}.picking.one .piece img{grid-column:1;grid-row:1;width:88px;height:60px}.picking.one .piece-label{grid-column:2;grid-row:1}.picking.one .piece-label strong{font-size:13px}.picking.one .piece-count{grid-column:3;grid-row:1;font-size:18px;align-self:center}
  .instruction-copy{margin:8px 0 0;padding:0;border:0}.instruction-copy h3{display:none}.instruction-copy p{margin:0;font-size:14px;line-height:1.6;color:#2d435f}
  .in-guide #componentNote{display:none!important}
  .in-guide .model-area{order:2;flex:1;min-height:178px}.model-area{min-height:0;flex:none}
  .model-heading{height:60px;min-height:60px;padding:12px 14px}.stage{flex:1;min-height:134px;height:clamp(230px,40svh,420px);border:0;border-radius:0}.in-guide .stage{height:auto;min-height:134px}#scene{min-height:0}
  .stage-label{top:7px;left:10px;font-size:10px;padding:7px 9px}.complete-preview{top:2px;right:8px;min-height:44px;width:auto;padding:8px 10px;box-shadow:none}.complete-preview img{display:none}.complete-preview span{font-size:11px}
  .below-stage{display:flex;flex:none;min-height:44px;padding:0 8px;gap:4px;background:#f5f8fd}.below-stage>span{display:none}.below-stage .text-button{min-height:44px;font-size:11px}.below-stage .toggle-button{min-height:44px;width:auto;margin:0;padding:8px;font-size:11px}
  .below-stage .viewport-tools{position:static;flex:none;display:flex;gap:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}.viewport-tools .icon-button{min-width:44px;min-height:44px;width:44px;height:44px;padding:10px}.viewport-tools svg{width:20px;height:20px}.viewport-tools>span,.viewport-tools #rotateLeft,.viewport-tools #fullscreen{display:none}
  .navigation-dock{position:relative;inset:auto;z-index:5;flex:none;flex-wrap:wrap;min-height:0;height:auto;width:100%;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));gap:6px;background:white;box-shadow:0 -2px 12px #233b6007}
  .step-scrubber{order:-1;flex:none;width:100%;height:30px;margin:0}.scrubber-label{position:absolute;top:0;left:0;right:0;font-size:11px;margin:0}.scrubber-label .text-button{display:none}#jump{position:absolute;top:8px;height:24px;margin:0;background-size:100% 3px}#jump::-webkit-slider-thumb{width:14px;height:14px;border-width:2px}
  .navigation-dock .previous{flex:0 0 88px;min-width:0;min-height:46px;padding:0 9px;font-size:13px;gap:6px}.navigation-dock .next{flex:1;min-width:0;min-height:46px;padding:0 12px;font-size:14px;gap:8px}.navigation-dock .play-button{min-width:44px;min-height:46px;width:44px;height:46px;padding:10px}.navigation-dock .btn svg{width:18px;height:18px}
  .stage-hint,.intro-illustration,.intro .intro-foot{display:none}.toast{bottom:calc(112px + env(safe-area-inset-bottom,0px));font-size:12px}
  dialog,.steps-dialog{max-height:calc(var(--app-height,100svh) - 24px)}.step-list{max-height:calc(var(--app-height,100svh) - 125px)}.dialog-header{padding:16px 18px}
  .piece-dialog .dialog-header{padding:13px 16px}.piece-dialog h2{font-size:19px}.piece-detail{padding:10px 14px 16px}.detail-tools{margin-top:5px}.detail-meta{margin-top:5px}.detail-meta strong{font-size:18px}.detail-hint{margin:7px 0 12px}
}
@supports(height:100dvh){@media(max-width:820px),(max-width:1000px) and (max-height:500px){.app-shell{height:100dvh}}}
@media(max-width:380px){.brand img{width:130px}.brand-title{font-size:12px}.brand{gap:8px}.mobile-step-heading h2{font-size:17px}.picking{gap:5px}.piece{padding:5px}.piece-label strong{font-size:10px}.piece-count{font-size:14px}.navigation-dock .previous{flex-basis:82px;font-size:12px}.navigation-dock .next{font-size:13px}}
@media(max-width:820px) and (max-height:620px) and (orientation:portrait){.topbar{height:44px}.mobile-guide-header{padding-top:2px;padding-bottom:2px}.mobile-step-heading h2{font-size:17px}.in-guide .instruction-panel{padding-top:6px;padding-bottom:5px}.piece,.picking[data-types] .piece{min-height:96px;grid-template-rows:48px auto;padding:5px;gap:3px}.piece img,.picking[data-types] .piece img{height:48px}.piece-label strong{font-size:10px}.piece-label small{font-size:10px}.picking.one .piece{min-height:64px;grid-template-rows:auto}.picking.one .piece img{height:52px}.instruction-copy{margin-top:6px}.instruction-copy p{font-size:13px;line-height:1.55}.in-guide .model-area{min-height:144px}.in-guide .stage{min-height:100px}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .topbar{height:44px}.mobile-guide-header{padding:2px 14px}.mobile-step-heading{height:44px}.mobile-step-heading>div{display:flex;align-items:baseline;gap:14px}.mobile-step-heading h2{font-size:17px;margin:0}.mobile-step-heading .section-label{font-size:11px}
 .in-guide .workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0;overflow:hidden}.in-guide .model-area{order:1;min-height:0}.in-guide .instruction-panel{order:2;min-height:0;padding:8px 10px;border:0;border-left:1px solid var(--line);overflow:auto}
 .picking{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.piece{min-height:88px;grid-template-rows:42px auto;padding:4px;gap:3px}.piece img{height:42px}.piece-label strong{font-size:10px}.piece-label small{font-size:10px}.piece-count{font-size:14px}.picking.one .piece{grid-template-columns:64px minmax(0,1fr) auto;min-height:66px;padding:4px;gap:6px}.picking.one .piece img{width:64px;height:50px}.picking.one .piece-label strong{font-size:11px}
 .picking:not(.one) .piece{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto;min-height:64px;padding:4px;gap:3px}.picking:not(.one) .piece img{grid-column:1;grid-row:1;width:44px;height:44px}.picking:not(.one) .piece-label{grid-column:2;grid-row:1}.picking:not(.one) .piece-count{grid-column:3;grid-row:1;align-self:center}
 .instruction-copy p{font-size:12px;line-height:1.6}.in-guide .stage{min-height:100px}.below-stage{display:flex}.navigation-dock{flex-wrap:nowrap;padding:7px 14px calc(7px + env(safe-area-inset-bottom,0px));gap:12px}.step-scrubber{order:0;flex:1;width:auto;height:30px}.navigation-dock .previous{order:-1;flex:0 0 100px}.navigation-dock .next{flex:0 0 150px}.navigation-dock .play-button{flex:none}
 .detail-stage{height:180px}.piece-dialog{max-width:700px}.piece-detail{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:8px 18px}.detail-stage{grid-column:1;grid-row:1/5;height:220px}.detail-tools{grid-column:2;grid-row:1}.detail-meta{grid-column:2;grid-row:2}.detail-hint{grid-column:2;grid-row:3}.locate-piece{grid-column:2;grid-row:4}
}

/* R4: a quiet branded header, a real step number, unboxed picking images,
   one uninterrupted model stage, and a single strong primary action. */
.more-view,.mobile-note,.mobile-progress,.mobile-step-count,.mobile-product-name{display:none}
.complete-preview>svg{display:none}
.view-dialog{width:min(440px,calc(100vw - 24px));border-radius:24px}
.view-dialog .dialog-header{padding:18px 20px}.view-dialog h2{font-size:20px;margin:0}
.view-options{padding:6px 18px 18px;display:flex;flex-direction:column;gap:4px}
.view-options .btn,.view-options .toggle-button,.view-options .complete-preview{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:54px;width:100%;margin:0;padding:10px 14px;border:0;border-bottom:1px solid #e9edf3;background:white;border-radius:0;font-size:14px;color:#233a54;box-shadow:none;text-align:left}
.view-options .complete-preview img{display:none}.view-options .complete-preview>svg{display:block;width:20px;height:20px}.view-options .complete-preview span{font-size:14px;color:inherit}
.view-options .toggle-button{padding-right:60px}.view-options .toggle-button:after{content:"";position:absolute;right:12px;top:18px;width:34px;height:20px;border-radius:20px;background:#dce3ed}.view-options .toggle-button:before{content:"";position:absolute;z-index:1;right:28px;top:21px;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 3px #233a5420}
.view-options .toggle-button[aria-pressed=true]:after{background:var(--yellow)}.view-options .toggle-button[aria-pressed=true]:before{right:15px;background:#243850}
@media(max-width:820px),(max-width:1000px) and (max-height:500px){
  :root{--ink:#14283f;--background:#f4f6f9;--yellow:#ffe100;--muted:#6c7b8d}
  body{background:var(--background)}.app-shell{background:var(--background)}
  .topbar{height:52px;padding:0 16px;background:transparent;border:0}.brand{gap:12px}.brand img{width:144px}.brand-divider{display:none}.brand-title{font-size:12px;font-weight:500;color:#526477;letter-spacing:0}.top-actions .btn{background:none;border-radius:50%;color:#344a63}
  .in-guide .mobile-guide-header{padding:2px 16px 8px;background:transparent;border:0}
  .mobile-step-heading{gap:12px;min-height:52px}
  .mobile-step-count{display:flex;align-items:baseline;gap:4px;flex:none;align-self:center;min-width:63px;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}
  .mobile-step-count strong{font-size:32px;line-height:1;letter-spacing:-1.6px;font-weight:700;color:#14283f}.mobile-step-count>span{font-size:11px;letter-spacing:0;color:#7a8797}
  .mobile-step-copy{flex:1;min-width:0}.mobile-step-heading h2{font-size:20px;line-height:1.35;letter-spacing:-.025em;margin:0;font-weight:700}.mobile-product-name{display:block;font-size:11px;color:#62748a;line-height:1.6;margin-top:3px;letter-spacing:.02em}
  .mobile-step-heading .icon-button{width:44px;height:44px;border:1px solid #dfe5ed;background:white;border-radius:14px;color:#53677e}.mobile-step-heading .icon-button svg{width:20px;height:20px}
  .mobile-progress{display:block;height:3px;border-radius:3px;background:#e1e6ee;overflow:hidden;margin-top:8px}.mobile-progress i{display:block;height:100%;background:var(--yellow);border-radius:3px}
  .workspace{gap:0;background:transparent}
  .in-guide .instruction-panel{padding:8px 16px 10px;background:transparent;border:0}
  .picking-title{margin-bottom:7px;align-items:center}.picking-title h3{font-size:13px;font-weight:650;letter-spacing:0}.picking-title>span{font-size:10px;color:#778595}
  .picking{gap:10px}.piece,.picking.one .piece{background:transparent;border:0;border-radius:0;padding:0;min-height:0;grid-template-rows:76px auto;gap:7px;box-shadow:none}
  .piece:hover{background:transparent;border:0}.piece:focus-visible{outline-offset:3px;border-radius:12px}
  .piece img,.picking.one .piece img{height:76px;border-radius:13px;background:#e8eef6;box-shadow:inset 0 0 0 1px #e0e7f0}
  .piece-label strong,.picking.one .piece-label strong{font-size:12px;line-height:1.4;font-weight:600;color:#243b54}.piece-label small{font-size:11px;line-height:1.4;margin-top:2px;color:#64748b}
  .piece-count,.picking.one .piece-count{font-size:17px;font-weight:700;line-height:1.3;color:#14283f;align-self:start}
  .picking[data-types="4"] .piece{grid-template-rows:57px auto;min-height:0;gap:6px}.picking[data-types="4"] .piece img{height:57px}.picking[data-types="4"] .piece-label strong{font-size:10px}.picking[data-types="4"] .piece-count{font-size:14px}
  .picking[data-types="3"] .piece{grid-template-rows:65px auto;min-height:0}.picking[data-types="3"] .piece img{height:65px}.picking[data-types="3"] .piece-label strong{font-size:11px}
  .picking.one .piece{grid-template-columns:88px minmax(0,1fr) auto;grid-template-rows:auto;min-height:66px;gap:12px;background:white;border-radius:14px;padding:3px 12px 3px 3px}.picking.one .piece img{height:60px;width:88px}.picking.one .piece-label strong{font-size:13px}.picking.one .piece-count{font-size:20px;align-self:center}
  .in-guide .model-area{padding:0 12px;min-height:186px;flex:1}
  .model-area{padding:0 12px}.stage{border-radius:24px;border:1px solid #e2e9f2;background:radial-gradient(ellipse at 50% 20%,#fcfdff,#edf3fa 78%);overflow:clip}
  .in-guide .stage{min-height:140px;height:auto;flex:1}.stage-grid{display:none}.stage:after{bottom:15%;background:radial-gradient(ellipse,#526b8b1c,transparent 70%)}
  .stage-label{left:12px;top:10px;background:transparent;border:0;padding:4px 0;font-size:10px;color:#7a8a9d}.stage-label .status-dot{width:5px;height:5px;background:#8fa6c3}
  .stage .more-view{position:absolute;right:8px;top:4px;display:flex;min-height:44px;min-width:44px;border-radius:50%;background:transparent;color:#6d819a}.stage .more-view svg{width:21px;height:21px}
  .stage>.viewport-tools{position:absolute;left:10px;bottom:10px;display:flex;gap:0;padding:2px;border:1px solid white;border-radius:15px;background:#fffffff0;box-shadow:0 3px 13px #2e4b6e0b}
  .stage>.viewport-tools .icon-button{min-width:44px;min-height:44px;width:44px;height:44px;padding:10px;border-radius:12px;color:#526b89}.stage>.viewport-tools svg{width:18px;height:18px}
  .stage>#focusPart{position:absolute;bottom:10px;right:10px;background:#fffffff0;border:1px solid white;border-radius:15px;min-height:48px;padding:8px 12px;font-size:12px;color:#526b89;box-shadow:0 3px 13px #2e4b6e0b}
  .below-stage{display:none!important}
  .mobile-note:not([hidden]){display:block;flex:none;background:white;border-radius:11px;border-left:3px solid var(--yellow);padding:8px 11px;margin:8px 2px 9px;min-height:36px}
  .mobile-note .instruction-copy{padding:0;margin:0;border:0}.mobile-note .instruction-copy p{font-size:13px;line-height:1.65;margin:0;color:#52667f}.mobile-note .instruction-copy h3{display:none}
  .navigation-dock{padding:6px 16px calc(12px + env(safe-area-inset-bottom,0px));gap:10px;background:var(--background);border:0;box-shadow:none;flex-wrap:nowrap;min-height:66px}
  .navigation-dock .step-scrubber{display:none}
  .navigation-dock .previous{flex:0 0 48px;min-width:48px;min-height:48px;padding:0;background:white;border:1px solid #dfe5ed;border-radius:15px;color:#52667f}.navigation-dock .previous span{display:none}.navigation-dock .previous svg{width:20px;height:20px}
  .navigation-dock .next{flex:1;min-height:48px;border-radius:15px;font-size:15px;font-weight:700;background:var(--yellow);border-color:var(--yellow);box-shadow:0 3px 8px #c6b20012;gap:15px}
  .navigation-dock .play-button{width:48px;min-width:48px;height:48px;min-height:48px;border-radius:15px;background:white;border:1px solid #dfe5ed;color:#52667f}
  .toast{bottom:calc(94px + env(safe-area-inset-bottom,0px))}
  .view-dialog{position:fixed;inset:auto 0 max(12px,env(safe-area-inset-bottom,0px));margin:0 auto;max-width:440px;box-shadow:0 12px 60px #14283f30}
  .piece-dialog{border:0;border-radius:24px}.piece-dialog .dialog-header{border-bottom:1px solid #edf1f6}.detail-stage{background:#edf3fa;border-color:#e4ebf4;border-radius:18px}.detail-tools .icon-button{color:#526b89}.locate-piece{border-radius:14px;box-shadow:none;font-size:14px}
  body:not(.in-guide) .model-area{order:1;flex:1;min-height:280px}
  body:not(.in-guide) .model-heading{height:56px;min-height:56px;padding:8px 10px 12px}
  body:not(.in-guide) .stage{height:auto;flex:1;min-height:220px}
  body:not(.in-guide) .stage>#focusPart{display:none}
  body:not(.in-guide) .instruction-panel{order:2;padding:8px 20px;background:transparent}
  body:not(.in-guide) .instruction-panel .step-heading,body:not(.in-guide) .intro>p,body:not(.in-guide) .panel-footer{display:none}
  body:not(.in-guide) .model-facts{border:0;padding:5px 0;gap:32px;justify-content:center}
  body:not(.in-guide) .model-facts strong{font-size:22px;letter-spacing:-.5px}
  body:not(.in-guide) .model-facts span{font-size:11px}
}
@media(max-width:380px){.topbar{padding:0 14px}.brand img{width:134px}.brand-title{font-size:11px}.brand{gap:10px}.in-guide .mobile-guide-header{padding-left:14px;padding-right:14px}.mobile-step-heading{gap:9px}.mobile-step-count{min-width:57px}.mobile-step-count strong{font-size:30px}.mobile-step-heading h2{font-size:18px}.in-guide .instruction-panel{padding-left:14px;padding-right:14px}.picking{gap:7px}.piece-label strong{font-size:11px}.navigation-dock{padding-left:14px;padding-right:14px}.stage>#focusPart{padding:8px 9px}}
@media(max-width:820px) and (max-height:620px) and (orientation:portrait){
  .topbar{height:44px}.in-guide .mobile-guide-header{padding-top:0;padding-bottom:5px}.mobile-step-heading{min-height:44px}.mobile-step-count strong{font-size:28px}.mobile-step-heading h2{font-size:17px}.mobile-product-name{font-size:9px;margin-top:1px}.mobile-progress{height:2px;margin-top:5px}
  .in-guide .instruction-panel{padding-top:5px;padding-bottom:7px}.picking-title{margin-bottom:5px}.piece,.picking[data-types] .piece{grid-template-rows:48px auto;gap:4px;min-height:0;padding:0}.piece img,.picking[data-types] .piece img{height:48px;border-radius:10px}.piece-label strong{font-size:10px}.piece-label small{font-size:10px}.piece-count{font-size:15px}.picking.one .piece{grid-template-rows:auto;min-height:56px;padding:3px 10px 3px 3px}.picking.one .piece img{height:50px}
  .in-guide .model-area{min-height:154px}.in-guide .stage{min-height:112px}.mobile-note:not([hidden]){padding:6px 9px;margin-top:6px;margin-bottom:7px;min-height:30px}.mobile-note .instruction-copy p{font-size:12px;line-height:1.55}.navigation-dock{padding-top:3px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));min-height:59px}
}

/* LYTD1 keeps the R4 workspace language while retaining its own model IDs. */
[hidden]{display:none!important}
.brand-logo{display:inline-flex;align-items:center;justify-content:center;width:72px;height:42px;padding:0 8px;background:var(--yellow);color:#18273e;font-size:18px;font-weight:900;letter-spacing:-.08em}
.top-stat{font-size:12px;color:var(--muted);white-space:nowrap}.top-stat strong{font-family:Arial,sans-serif;font-size:20px;color:var(--ink)}
#bagTabs .bag-tab{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:12px 5px;border-radius:13px;text-align:left;min-height:56px;font-size:14px;position:relative;color:var(--ink)}
#bagTabs .bag-tab:before{content:attr(data-bag);width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#edf1f7;font-family:Arial,sans-serif;font-weight:600;color:#546884;flex-shrink:0}
#bagTabs .bag-tab strong{display:none}#bagTabs .bag-tab span{font-size:14px;color:var(--ink)}#bagTabs .bag-tab.active,#bagTabs .bag-tab:hover{background:#fff9c7}#bagTabs .bag-tab.active:before{background:var(--yellow);color:var(--ink)}#bagTabs .bag-tab.done:after{content:'✓';margin-left:auto;color:var(--blue);font-weight:700}
.stage{isolation:isolate}.stage #modelCanvas{display:block;width:100%;height:100%;min-height:280px;touch-action:none;cursor:grab;position:absolute;inset:0}.stage #modelCanvas:active{cursor:grabbing}.stage:after{pointer-events:none}.stage-error{position:absolute;inset:0;background:#eef4fde8;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:13px;z-index:10;text-align:center;padding:20px;color:var(--ink)}.stage-error span{max-width:340px;color:var(--muted);font-size:12px;line-height:1.6}.stage-error .btn{margin-top:5px}.loading-state small{font-size:11px;color:var(--muted);max-width:300px;line-height:1.6}.loading-cube{font-size:30px;font-weight:700;color:var(--blue);display:grid;place-items:center;width:62px;height:62px;background:#fff;border-radius:18px;box-shadow:0 5px 25px #577cb31a;animation:breathe 1.4s ease-in-out infinite}.stage-label{z-index:2}.focus-hint{position:absolute;right:18px;bottom:22px;padding:10px 12px;background:#ffffffed;border:1px solid #fff;border-radius:13px;color:#526b89;font-size:11px;box-shadow:0 3px 13px #2e4b6e0b;z-index:3}.viewport-tools{z-index:3}.below-stage{padding:12px 2px 0;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);gap:6px;min-height:43px}.below-stage>span{display:flex;gap:6px;align-items:center}.new-part-dot{width:8px;height:8px;border-radius:50%;border:2px solid var(--orange);display:inline-block}.text-button{display:inline-flex;gap:6px;justify-content:center;align-items:center;border:0;background:transparent;padding:6px 2px;min-height:30px;font-size:12px;color:var(--blue);white-space:nowrap}.picking-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 12px}.picking-title h3{font-size:13px;font-weight:600;margin:0}.picking-title>span{font-size:11px;color:var(--muted)}.pick-card{display:block}.helper{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 12px}.pick-list{display:flex;flex-direction:column;gap:8px;max-height:43vh;overflow:auto}.piece-card{display:flex;align-items:center;padding:8px;background:#f7f9fc;border:1px solid #edf0f5;border-radius:12px;gap:9px;min-height:72px;text-align:left}.piece-card:hover{border-color:#b9c5d7;background:#f7f9fc}.piece-thumb{width:63px;height:55px;flex-shrink:0;border-radius:9px}.piece-copy{flex:1;min-width:0}.piece-copy strong{font-size:12px;line-height:1.5;display:block;word-break:break-word;white-space:normal}.piece-copy small{color:var(--muted);font-size:10px;display:block;margin-top:4px}.piece-count{align-self:center;font-family:Arial,sans-serif;font-size:14px;font-weight:600;white-space:nowrap}.component-card{background:#fffbe4;border-color:#f4eaa7}.component-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#fff;color:#8b7b2c;font-size:17px;flex-shrink:0}.panel-footer{margin-top:auto;padding-top:25px;display:flex;align-items:center;gap:5px;color:#78869a;font-size:10px;line-height:1.6}.step-dial{display:none}.finish-gallery{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px}.finish-gallery img{display:block;width:100%;border-radius:14px;background:#f2e7bd}.finish-copy{padding:14px 20px 20px;color:var(--muted);font-size:12px;line-height:1.7}
.navigation-dock{margin-bottom:20px;min-height:86px;display:flex;align-items:center;gap:18px;background:white;border:1px solid var(--line);border-radius:22px;padding:14px 18px;box-shadow:0 8px 30px #233b6010;flex-shrink:0}.navigation-dock .previous{min-width:132px}.navigation-dock .next{background:var(--yellow);border-color:var(--yellow);min-width:164px;min-height:52px;border-radius:15px;color:var(--ink)}.navigation-dock .next:hover{background:#f5dc00;border-color:#f5dc00}.step-scrubber{flex:1;min-width:0;position:relative;margin:0 15px}.scrubber-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:7px}.scrubber-line{height:6px;border-radius:5px;background:#e5eaf2;overflow:hidden}.scrubber-line i{display:block;width:0;height:100%;background:var(--yellow);transition:width .2s}.play-button{width:50px;height:50px;border:1px solid var(--line);border-radius:15px}.model-facts{display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;gap:34px}.model-facts>div{display:flex;flex-direction:column;gap:4px}.model-facts strong{font-family:Arial,sans-serif;font-size:30px;font-weight:600;letter-spacing:-1px}.model-facts span{font-size:11px;color:var(--muted)}.intro-foot{font-size:11px;line-height:1.7;margin:18px 0 0;color:var(--muted)}
@media(max-width:820px){.top-stat{display:none}.brand-logo{width:64px;height:34px;font-size:15px}.experience-label{display:block;font-size:11px}.workspace{padding-bottom:110px}.chapter-rail{display:none}.stage{height:clamp(300px,47svh,500px);min-height:300px;border-radius:0}.instruction-panel{border-radius:22px 22px 0 0}.navigation-dock{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:0 -5px 24px #28446a09;padding:12px 18px max(12px,env(safe-area-inset-bottom));min-height:82px;gap:10px}.navigation-dock .previous{min-width:48px;flex:0 0 48px;padding:0;font-size:0}.navigation-dock .next{flex:1;min-width:0}.step-scrubber{display:none}.play-button{min-width:48px}.pick-list{max-height:none}.piece-card{min-height:70px}.finish-gallery{grid-template-columns:1fr;max-height:56vh;overflow:auto}}
@media(max-width:820px){.navigation-dock .previous::before{content:'←';font-size:20px;line-height:1}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
  .topbar{height:40px}.in-guide .mobile-guide-header{padding:0 14px 5px}.mobile-step-heading{height:40px;min-height:40px}.mobile-step-count{min-width:60px}.mobile-step-count strong{font-size:27px}.mobile-step-copy{display:flex;align-items:baseline;gap:14px}.mobile-step-heading h2{font-size:17px}.mobile-product-name{font-size:10px}.mobile-progress{margin-top:3px;height:2px}
  .in-guide .workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:10px;padding:0 14px}.in-guide .model-area{order:1;min-height:0;padding:0}.in-guide .stage{min-height:120px;border-radius:20px}.in-guide .instruction-panel{order:2;overflow:auto;padding:7px 0 0;background:transparent;border:0}.picking-title h3{font-size:12px}.picking-title>span{font-size:9px}
  .picking:not(.one) .piece{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto;min-height:64px;gap:4px;padding:4px;background:white;border-radius:10px}.picking:not(.one) .piece img{width:44px;height:44px;border-radius:7px}.picking:not(.one) .piece-label strong{font-size:10px}.picking:not(.one) .piece-count{font-size:14px}.picking.one .piece{grid-template-columns:64px minmax(0,1fr) auto;padding:4px;gap:7px}.picking.one .piece img{width:64px;height:52px}
  .mobile-note:not([hidden]){margin:6px 0 0;padding:5px 8px;min-height:28px}.mobile-note .instruction-copy p{font-size:12px;line-height:1.5}.navigation-dock{padding:6px 14px calc(7px + env(safe-area-inset-bottom,0px));min-height:60px}.navigation-dock .previous{flex:0 0 80px}.navigation-dock .previous span{display:inline}.navigation-dock .next{flex:1}.navigation-dock .play-button{flex:none}
}
/* Keep the part inspection canvas and its lighting comparable to the main view. */
.piece-preview{position:relative;height:min(38svh,320px);min-height:220px;background:#f4f7fc;overflow:hidden}.piece-preview canvas{display:block;width:100%;height:100%;touch-action:none}.piece-preview>span{position:absolute;bottom:12px;left:12px;font-size:11px;color:#66748a;pointer-events:none}.piece-meta{padding:14px 18px}.piece-meta p{font-size:13px;line-height:1.7;margin:0 0 12px}

/* Real, cached part geometry replaces the former colour swatches. */
.piece-card .piece-thumb{display:block;width:88px;height:76px;object-fit:contain;background:#f2f5f9;border:1px solid #e4e9f0;border-radius:10px;flex-shrink:0}.piece-card .thumb-pending{display:grid;place-items:center;font-size:11px;color:#66748a}

.camera-view-switch{position:absolute;right:12px;top:12px;z-index:4;display:flex;gap:3px;background:#ffffffed;border:1px solid #dfe7f2;border-radius:12px;padding:3px}.camera-view-switch button{min-height:36px;border:0;border-radius:9px;background:transparent;padding:6px 10px;font-size:12px;color:#526b89}.camera-view-switch button[aria-pressed=true]{background:#e8f0fc;color:#234c91;font-weight:600}.focus-hint{bottom:16px;right:12px;max-width:55%;font-size:10px;pointer-events:none}.viewport-tools{left:12px;bottom:12px}@media(max-width:820px){.stage-label{top:62px;left:12px}.camera-view-switch{top:10px;right:10px}.focus-hint{max-width:57%;bottom:12px}.viewport-tools .icon-button{min-width:34px;min-height:36px;padding:6px}}

.install-controls{position:absolute;right:12px;bottom:12px;z-index:5;border:1px solid #dbe5f2;border-radius:12px;padding:8px;background:#fffffff2;max-width:220px;color:#315783}.install-controls>span{display:block;font-size:11px;line-height:1.4;margin:0 3px 5px}.install-controls>div{display:flex;gap:4px}.install-controls button{border:0;border-radius:8px;background:#e8f0fc;font-size:12px;min-height:36px;padding:6px 9px;color:#244e89}.install-controls button:last-child{background:#fff3a1}@media(max-width:820px){.install-controls{max-width:210px;right:10px;bottom:10px;padding:6px}.install-controls button{padding:5px 8px}}
/* R25: persistent navigation, direct step entry, and a compact building view. */
.lytd-layout .build-toolbar{display:flex;align-items:center;gap:10px;flex:none;padding:10px 0;border-bottom:1px solid var(--line)}
.lytd-layout .build-progress{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.lytd-layout .build-progress strong{font-size:18px;line-height:1.25;font-variant-numeric:tabular-nums;color:var(--ink)}
.lytd-layout .build-progress>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;line-height:1.4}
.lytd-layout .toolbar-button{flex:none;min-height:44px;border:1px solid #dbe3ed;border-radius:12px;padding:0 12px;background:#fff;color:#254d83;font-size:13px;font-weight:600;white-space:nowrap}
.lytd-layout .toolbar-button:active{background:#e8f0fc}
.lytd-layout .toolbar-button:focus-visible,.lytd-layout #jumpStep:focus-visible{outline:3px solid #3159a7;outline-offset:2px}
.lytd-layout .toolbar-button[aria-pressed=true]{background:#e8f0fc;border-color:#aec5e8}
.lytd-layout .orientation-hint{flex:none;margin:0;padding:6px 14px;background:#fff5bf;color:#655519;font-size:12px;line-height:1.5}
.lytd-layout .steps-dialog[open]{display:flex;flex-direction:column;width:min(560px,calc(100vw - 24px));height:min(720px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
.lytd-layout .steps-dialog .dialog-header{flex:none;padding:14px 18px}
.lytd-layout .steps-dialog h2{font-size:21px;margin:4px 0 0}
.lytd-layout .jump-form{flex:none;padding:12px 18px;border-bottom:1px solid var(--line);background:#f6f8fc}
.lytd-layout .jump-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}
.lytd-layout .jump-fields{display:flex;align-items:center;gap:10px}
.lytd-layout #jumpStep{width:100px;min-width:0;height:44px;padding:8px 10px;border:1px solid #b9c9dd;border-radius:10px;background:#fff;font-size:18px;color:var(--ink)}
.lytd-layout #jumpHelp{flex:1;font-size:13px;color:var(--muted)}
.lytd-layout .jump-fields .toolbar-button{background:var(--yellow);border-color:var(--yellow);color:var(--ink);padding:0 20px}
.lytd-layout .jump-error{margin:8px 0 0;font-size:12px;line-height:1.5;color:#ab3324}
.lytd-layout #jumpStep[aria-invalid=true]{border-color:#ab3324}
.lytd-layout .step-list{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
.lytd-layout .directory-row{gap:12px}
.lytd-layout .directory-number{flex:none;min-width:30px;font-weight:700;font-variant-numeric:tabular-nums;color:#3159a7}
.lytd-layout .directory-title{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.lytd-layout .directory-meta{flex:none;font-size:11px;color:var(--muted)}
.lytd-layout.compact-build{overflow:hidden}
.lytd-layout.compact-build .app-shell{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;max-width:none;overflow:hidden;padding:0}
.lytd-layout.compact-build .topbar{height:40px;min-height:40px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:10px}
.lytd-layout.compact-build .brand-logo{height:28px;width:56px;font-size:14px}
.lytd-layout.compact-build .brand-title{font-size:11px}
.lytd-layout.compact-build .top-stat{display:none}
.lytd-layout.compact-build .build-toolbar{padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:8px;min-height:66px;background:#f5f7fa}
.lytd-layout.compact-build .build-progress strong{font-size:17px}
.lytd-layout.compact-build .build-toolbar .toolbar-button{padding:0 10px}
.lytd-layout.compact-build .workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:10px 12px;gap:10px}
.lytd-layout.compact-build .chapter-rail{display:none}
.lytd-layout.compact-build .workspace .model-area{order:0;display:flex;flex:1;min-height:160px;padding:0}
.lytd-layout.compact-build .model-heading,.lytd-layout.compact-build .below-stage{display:none}
.lytd-layout.compact-build .workspace .stage{flex:1;width:100%;height:auto;min-height:0;border:1px solid #dce5f0;border-radius:18px}
.lytd-layout.compact-build .stage #modelCanvas{min-height:0;width:100%;height:100%}
.lytd-layout.compact-build .workspace .instruction-panel{order:1;flex:none;max-height:32vh;max-height:32dvh;min-height:0;height:auto;overflow:auto;border:0;border-radius:0;margin:0;padding:0 2px;background:transparent}
.lytd-layout.compact-build .step-heading,.lytd-layout.compact-build .panel-footer{display:none}
.lytd-layout.compact-build .intro>p{display:none}
.lytd-layout.compact-build .model-facts{display:flex;justify-content:center;padding:4px 0;border:0;gap:32px}
.lytd-layout.compact-build .model-facts strong{font-size:22px}
.lytd-layout.compact-build .pick-list{max-height:none;overflow:visible;gap:6px}
.lytd-layout.compact-build .picking-title{margin:2px 0 6px}
.lytd-layout.compact-build .picking-title h3{font-size:13px}
.lytd-layout.compact-build .helper{font-size:11px;line-height:1.5;margin:0 0 8px}
.lytd-layout.compact-build .piece-card{min-height:68px;padding:6px;gap:8px;flex-shrink:0;background:#fff}
.lytd-layout.compact-build .piece-card .piece-thumb{width:66px;height:56px}
.lytd-layout.compact-build .piece-copy strong{font-size:11px;line-height:1.45}
.lytd-layout.compact-build .piece-copy small{font-size:11px}
.lytd-layout.compact-build .navigation-dock{position:relative;inset:auto;flex:none;display:flex;flex-wrap:nowrap;min-height:64px;width:100%;height:auto;margin:0;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:10px;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff}
.lytd-layout.compact-build .navigation-dock .step-scrubber{display:none}
.lytd-layout.compact-build .navigation-dock .previous{flex:0 0 76px;min-width:0;min-height:44px;padding:0 8px;font-size:12px}
.lytd-layout.compact-build .navigation-dock .previous::before{content:none}
.lytd-layout.compact-build .navigation-dock .next{flex:1;min-width:0;min-height:44px;font-size:14px}
.lytd-layout.compact-build .navigation-dock .play-button{flex:0 0 44px;min-width:44px;min-height:44px;width:44px;height:44px}
.lytd-layout.build-fullscreen .topbar{display:none}
.lytd-layout.build-fullscreen .build-toolbar{padding-top:max(8px,env(safe-area-inset-top))}
.lytd-layout.compact-build .toast{bottom:80px;max-width:calc(100vw - 24px)}
  .lytd-layout.landscape-build .topbar{display:none}
  .lytd-layout.landscape-build .build-toolbar{min-height:58px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}
  .lytd-layout.landscape-build .workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,calc(var(--build-width) * .3),340px);gap:12px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))}
  .lytd-layout.landscape-build .workspace .model-area{min-height:0;height:100%}
  .lytd-layout.landscape-build .workspace .instruction-panel{height:100%;max-height:none;min-height:0;overflow:auto;padding:2px 0}
  .lytd-layout.landscape-build .navigation-dock{min-height:58px;padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .lytd-layout.landscape-build .navigation-dock .next{flex:0 1 240px;margin-left:auto}
  .lytd-layout.landscape-build .stage-label{top:16px;left:12px;font-size:10px}
  .lytd-layout.landscape-build .camera-view-switch{top:8px;right:8px}
  .lytd-layout.landscape-build .install-controls{bottom:8px;right:8px;padding:5px}
  .lytd-layout.landscape-build .steps-dialog .dialog-header{padding:8px 16px}
  .lytd-layout.landscape-build .steps-dialog .section-label{display:none}
  .lytd-layout.landscape-build .jump-form{padding:8px 16px}
  .lytd-layout.landscape-build .jump-form label{margin-bottom:4px}
@media(max-width:360px){
  .lytd-layout.compact-build .build-toolbar{gap:6px;padding-left:10px;padding-right:10px}
  .lytd-layout.compact-build .build-progress strong{font-size:15px}
  .lytd-layout.compact-build .build-toolbar .toolbar-button{padding:0 8px;font-size:12px}
  .lytd-layout .directory-meta{font-size:10px}
}
/* The toolbar already supplies context; keep compact canvases clear of duplicate hints. */
.lytd-layout.compact-build .stage-label,.lytd-layout.compact-build .focus-hint{display:none}

/* R26: rotate the page when the browser keeps its physical viewport portrait. */
.lytd-layout.page-landscape .app-shell{
  position:fixed;top:env(safe-area-inset-top,0px);left:calc(100% - env(safe-area-inset-right,0px));
  width:calc(var(--build-width) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  height:calc(var(--build-height) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
  transform:rotate(90deg);transform-origin:0 0;
}
.lytd-layout.page-landscape .build-toolbar{padding:6px 12px}
.lytd-layout.page-landscape .workspace{padding:8px 12px}
.lytd-layout.page-landscape .navigation-dock{padding:6px 12px}
.lytd-layout.page-landscape .toast{max-width:calc(var(--build-width) - 24px)}
.lytd-layout.page-landscape dialog[open]{
  position:fixed;inset:auto;left:50%;top:50%;margin:0;
  transform:translate(-50%,-50%) rotate(90deg);transform-origin:center;
  max-width:calc(var(--build-width) - 24px);max-height:calc(var(--build-height) - 24px);
}
.lytd-layout.page-landscape .steps-dialog[open]{width:min(560px,calc(var(--build-width) - 24px));height:calc(var(--build-height) - 24px)}
.lytd-layout.landscape-build .piece-dialog[open]{display:flex;flex-direction:column;width:min(640px,calc(var(--build-width) - 24px));height:min(500px,calc(var(--build-height) - 24px));overflow:hidden}
.lytd-layout.landscape-build .piece-dialog .dialog-header{flex:none;padding:8px 16px;min-height:52px}
.lytd-layout.landscape-build .piece-dialog .dialog-header>div{min-width:0}
.lytd-layout.landscape-build .piece-dialog h2{font-size:16px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}
.lytd-layout.landscape-build .piece-dialog .section-label{display:none}
.lytd-layout.landscape-build .piece-preview{flex:1;min-height:100px;height:auto}
.lytd-layout.landscape-build .piece-meta{flex:none;padding:8px 16px}
.lytd-layout.landscape-build .piece-meta p{font-size:11px;line-height:1.4;margin-bottom:6px}
.lytd-layout.landscape-build .piece-meta .btn{min-height:40px;padding:8px 14px}

/* Keep the per-step replay control legible beside a small model. */
.lytd-layout .install-controls>span{font-weight:500}
.lytd-layout .install-controls button{font-weight:600}

/* A quiet card cue follows the one piece currently being demonstrated. */
.lytd-layout .piece-card.is-demonstrating{background:#edf4f8;border-color:#9fb9cb}
.lytd-layout .install-controls{border-color:#dbe5ec;color:#45667e}
.lytd-layout .install-controls>span{font-weight:500;line-height:1.5}

/* Keep view presets outside the canvas so floating pieces remain unobstructed. */
.lytd-layout .model-area{display:flex;flex-direction:column}
.lytd-layout .camera-view-switch{position:static;flex:none;display:flex;justify-content:flex-end;width:100%;max-width:none;margin:0 0 8px;gap:2px;padding:3px;box-sizing:border-box}
.lytd-layout .camera-view-switch button{flex:0 1 70px;min-width:0;min-height:40px;padding:6px 3px;font-size:12px}
.lytd-layout .view-presets{display:contents}
.lytd-layout.compact-build .camera-view-switch button{flex:1}
.lytd-layout .piece-copy strong{font-variant-numeric:tabular-nums}

/* Playback stays beside the parts list, including on short screens. */
.lytd-layout .install-controls{position:static;display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;max-width:none;box-sizing:border-box;margin:0 0 8px;padding:6px;background:#fff;border:1px solid #dbe5ec;border-radius:12px;box-shadow:none}
.lytd-layout .install-controls>span{flex:1;min-width:0;font-size:10px}
.lytd-layout .install-controls>div{flex:none}
.lytd-layout .install-controls button{min-height:36px;padding:5px 7px;font-size:11px;white-space:nowrap}
@media(max-height:640px) and (max-width:820px){.lytd-layout.compact-build:not(.landscape-build) .workspace .instruction-panel{max-height:28dvh}}
@media(max-height:640px) and (max-width:820px){.lytd-layout.compact-build:not(.landscape-build) #pickHelper{display:none}}

/* Picture-led controls leave room for the installation itself. */
.ui-icon{width:28px;height:28px;display:inline-block;flex:none;vertical-align:middle;pointer-events:none}
.lytd-layout .icon-action{display:inline-flex;align-items:center;justify-content:center;gap:0}
.lytd-layout .camera-view-switch .icon-action{min-height:42px;padding:4px;flex:1}
.lytd-layout .build-toolbar .icon-action{width:44px;min-width:44px;padding:4px}
.lytd-layout #visibleStepContext{display:flex;align-items:center;gap:4px}
.lytd-layout #visibleStepContext .ui-icon{width:19px;height:19px}
.lytd-layout .picking-title h3{display:flex;align-items:center;gap:6px}
.lytd-layout .picking-title .ui-icon{width:24px;height:24px}
.lytd-layout #pickHelper{display:none}
.lytd-layout .piece-color{width:20px;height:10px;border:1px solid #0002;border-radius:4px;margin-top:5px}
.lytd-layout .install-controls button{width:44px;height:40px;min-height:40px;padding:5px}
.lytd-layout .install-controls>span{font-size:14px;font-variant-numeric:tabular-nums}
.lytd-layout .navigation-dock .next .ui-icon{width:34px;height:34px}
.lytd-layout .navigation-dock .previous{font-size:0}
.lytd-layout.landscape-build .build-toolbar{min-height:44px;padding-top:2px;padding-bottom:2px}
.lytd-layout.landscape-build .build-progress{display:flex;align-items:center;gap:10px}
.lytd-layout.landscape-build .build-progress strong{font-size:17px}
.lytd-layout.landscape-build .workspace{grid-template-columns:minmax(0,1fr) clamp(170px,calc(var(--build-width) * .24),220px);gap:8px;padding-top:4px;padding-bottom:4px}
.lytd-layout.landscape-build .workspace .model-area{display:grid;grid-template-columns:88px minmax(0,1fr);gap:6px}
.lytd-layout.landscape-build .camera-view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1;grid-row:1;align-self:center;width:88px;margin:0;padding:2px;gap:0}
.lytd-layout.landscape-build .camera-view-switch button{width:40px;height:46px;min-height:46px;padding:4px}
.lytd-layout.landscape-build .workspace .stage{grid-column:2;grid-row:1;height:100%}
.lytd-layout.landscape-build .navigation-dock{min-height:48px;padding-top:2px;padding-bottom:2px}
.lytd-layout.landscape-build .navigation-dock .next{min-height:40px}
.lytd-layout.landscape-build .piece-card .piece-thumb{width:62px;height:54px}
.lytd-layout.landscape-build .piece-card{gap:5px;padding:4px}
.lytd-layout.landscape-build .install-controls{gap:2px;padding:4px;margin-bottom:6px}
.lytd-layout .directory-title,.lytd-layout .directory-meta{display:flex;align-items:center;gap:6px}
.lytd-layout .directory-meta .ui-icon{width:20px;height:20px}

/* Stud dimensions are separate from the number of pieces to take. */
.lytd-layout .piece-dimensions{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:4px;color:#245da8}
.lytd-layout .piece-size-label{font-size:13px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}
.lytd-layout .piece-dimensions svg{display:block;max-width:100%;height:auto;fill:currentColor;opacity:.7}
.lytd-layout .piece-card.is-demonstrating{border-color:#5e8bc3;background:#edf4ff;box-shadow:inset 3px 0 #3473bf}
.lytd-layout .piece-dimensions svg{stroke:none}
.lytd-layout .piece-dimensions{flex-direction:row;align-items:center;flex-wrap:wrap;gap:3px 6px}
@media(max-height:640px) and (max-width:820px){.lytd-layout.compact-build:not(.landscape-build) .workspace .instruction-panel{max-height:31dvh}}

/* R32: pack the picking area into columns while preserving readable part images. */
.lytd-layout #pickList{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));align-content:start;gap:6px}
.lytd-layout #pickList .piece-card{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;min-width:0;min-height:82px;padding:6px;gap:6px}
.lytd-layout #pickList .piece-thumb{width:50px;height:52px;grid-column:1;grid-row:1}
.lytd-layout #pickList .piece-copy{grid-column:2;grid-row:1;min-width:0;padding-top:0}
.lytd-layout #pickList .piece-copy strong{font-size:11px;white-space:nowrap;word-break:normal}
.lytd-layout #pickList .piece-count{position:absolute;grid-area:auto;inset:4px 7px auto auto;margin:0;font-size:13px;line-height:1.2}
.lytd-layout #pickList .piece-dimensions{gap:3px;margin-top:3px}
.lytd-layout #pickList .piece-size-label{font-size:12px}
.lytd-layout #pickList .piece-dimensions svg{max-width:100%}
.lytd-layout #pickList .component-card{grid-column:1/-1;display:flex;min-height:68px}
.lytd-layout #pickList .component-card .piece-copy{padding-top:0}
.lytd-layout.landscape-build #pickList{grid-template-columns:1fr}
.lytd-layout.landscape-build #pickList .piece-card{min-height:72px;grid-template-columns:62px minmax(0,1fr)}
.lytd-layout.landscape-build #pickList .piece-thumb{width:62px;height:54px}

@media(max-height:640px) and (max-width:820px){.lytd-layout.compact-build:not(.landscape-build) .workspace .instruction-panel{max-height:33dvh}}

.lytd-layout #progressPercent{margin-left:auto}
.guide-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 10px;font-size:13px;line-height:1.5;color:#354458}
.guide-caption button{flex:none;background:white;border:1px solid #d8dee5;border-radius:8px;padding:7px 10px;font-size:12px}
.lytd-layout #visibleStepContext{font-size:14px;font-weight:650;color:#25364c;white-space:normal}
.lytd-layout.compact-build .guide-caption{margin:0;padding:3px 12px;background:white;min-height:36px;font-size:12px}
.lytd-layout.compact-build .guide-caption button{min-height:34px;padding:5px 9px}
.lytd-layout .finish-gallery img{background:#eef2f5;object-fit:contain}
.lytd-layout .directory-title{font-size:14px}

.lytd-layout #nextStep::after{content:attr(aria-label);font-size:14px;font-weight:650;line-height:1;white-space:nowrap}
.lytd-layout #nextStep{gap:8px}

.lytd-layout .chapter-jump{display:flex;align-items:center;gap:12px;margin:6px 16px 12px;font-size:13px;color:#304861}
.lytd-layout .chapter-jump select{min-height:34px;max-width:72%;border:1px solid #b5c5d4;border-radius:7px;background:white;padding:4px 8px}
.lytd-layout .finish-gallery{grid-template-columns:1fr;justify-items:center}
.lytd-layout .finish-gallery img{width:min(100%,500px)}
.lytd-layout.landscape-build .workspace .model-area{grid-template-rows:minmax(0,1fr) auto}
.lytd-layout.landscape-build .model-area .guide-caption{grid-column:1/-1;grid-row:2;min-height:32px;line-height:1.35;padding:2px 6px}
.lytd-layout.landscape-build .guide-caption button{min-height:30px}
.lytd-layout.landscape-build .model-area .stage{min-height:0}

.lytd-layout:not(.compact-build) .chapter-rail{min-height:0;overflow:auto}
.lytd-layout:not(.compact-build) .chapters{gap:3px}
.lytd-layout:not(.compact-build) .chapter-button{min-height:38px;padding-block:4px}
.lytd-layout:not(.compact-build) .chapter-rail .rail-help{margin-top:10px}

/* ---- 统一模板 2026-11-21：纸册对照、袋/章与纸本步上下文、颜色名（取自 CDS-01 明盒工作台并通用化） ---- */
.lytd-layout .build-progress #setContext{display:block;color:#495f71;font-size:11px;font-weight:560;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lytd-layout .build-progress #setContext:empty{display:none}
.lytd-layout .build-toolbar{gap:6px}
.lytd-layout .refBtn{white-space:nowrap;cursor:pointer;color:#17475d;background:#e7eff2;border:1px solid #d2e0e6}
.lytd-layout.compact-build .build-toolbar .refBtn{padding:0 8px;font-size:12px;min-height:42px}
.lytd-layout.landscape-build .build-progress{display:flex;flex-direction:column;gap:1px}
.piece-color-name{display:block;font-size:10.5px;line-height:1.25;color:#4b5d70;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lytd-layout .finish-dialog,.lytd-layout .paper-dialog{width:min(680px,94vw);max-height:85dvh;overflow:auto;padding:18px;background:white;border:0;border-radius:16px}
.lytd-layout .finish-dialog p,.lytd-layout .paper-dialog p{font-size:14px;line-height:1.75;color:#385165;margin:8px 0 16px}
.lytd-layout .finish-copy:empty{display:none}
.lytd-layout .paper-dialog img,.fh-pages img{display:block;width:100%;height:auto;border:1px solid #dce5ec;border-radius:8px;background:#eef2f5}
.fh-pages{display:grid;gap:14px}.fh-pages a,.paper-dialog a{color:#17475d;font-size:13px;text-decoration:none}.fh-pages span{display:block;padding:5px 0;font-weight:650}
.lytd-layout .page-landscape .finish-dialog,.lytd-layout .page-landscape .paper-dialog{max-height:var(--build-height)}
.fh-extra{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 14px 10px;font-size:13px;color:#345068}.fh-extra[hidden]{display:none}
.fh-extra input,.fh-extra button{border:1px solid #bcccd5;background:white;border-radius:7px;padding:5px;color:#263e53}.fh-extra input{width:6em}
@media(max-width:370px){.lytd-layout.compact-build .build-toolbar .refBtn{padding:0 5px}}
.lytd-layout .new-part-dot{border-color:#E82143}
.lytd-layout .brand-logo{white-space:nowrap}

/* 透视模式按钮：打开时用品牌红底 */
.viewport-tools #xrayToggle[aria-pressed=true]{background:#E82143;color:#fff}
.viewport-tools #xrayToggle:disabled{opacity:.35}
.viewport-tools #xrayToggle[hidden]{display:none}

/* 图例、试拼核查（2026-11-21，取自住友 V7） */
.edge-legend{position:absolute;top:10px;right:10px;z-index:3;display:flex;gap:10px;padding:5px 9px;border-radius:999px;background:#ffffffe8;box-shadow:0 2px 8px #2e4b6e14;font-size:11px;color:#3a4b5f}
.edge-legend[hidden],.edge-legend span[hidden]{display:none}
.edge-legend span{display:inline-flex;align-items:center;gap:5px}
.edge-legend i{display:inline-block;width:14px;height:0;border-top:2.5px solid #E82143;border-radius:2px}
.edge-legend i.lg-receiver{border-top-color:#7B8BA0}
.guide-caption.is-check #mobileNote{color:#8a4b00}
.guide-caption.is-check{background:#fff7e6}

/* 零件大图「看底面」（2026-11-22，取自飞航四款） */
#pieceView { position:absolute; right:12px; bottom:10px; z-index:1; background:#fff; min-height:36px; }

/* ---- cover (封面引导页) ---- */
.cover{position:fixed;inset:0;z-index:60;overflow-y:auto;background:var(--background);-webkit-overflow-scrolling:touch}
.cover-inner{max-width:1120px;margin:0 auto;padding:16px 16px 40px;display:grid;gap:18px}
.cover-brand{display:flex;align-items:center;gap:12px;min-height:44px;font-size:13px;color:var(--muted)}
.cover-hero{margin:0;border-radius:20px;overflow:hidden;background:#e7edf4}
.cover-hero img{display:block;width:100%;height:auto;max-height:62vh;object-fit:contain}
.cover-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.cover-body h1{font-size:28px;line-height:1.25;margin:0;letter-spacing:.01em}
.cover-lead{margin:0;color:var(--muted);line-height:1.7;font-size:15px}
.cover-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0}
.cover-facts div{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.cover-facts strong{font-size:22px;font-variant-numeric:tabular-nums}
.cover-facts span{font-size:12px;color:var(--muted)}
.cover-primary{width:100%;min-height:56px;font-size:18px;border-radius:16px}
.cover-link{align-self:center;border:0;background:none;color:var(--blue);font-size:14px;padding:10px 12px;min-height:44px;text-decoration:none}
.cover-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cover-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);min-height:76px}
.cover-tile b{font-size:16px}
.cover-tile span{font-size:12.5px;color:var(--muted);line-height:1.5}
.cover-tiles.single{grid-template-columns:1fr}
.cover-guide{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.cover-guide h2{font-size:15px;margin:0 0 8px}
.cover-guide ol{margin:0;padding-left:20px;display:grid;gap:6px;font-size:14px;line-height:1.6;color:#33465c}
.cover-pages{display:flex;gap:10px;overflow-x:auto;margin-top:12px;padding-bottom:4px;scroll-snap-type:x mandatory}
.cover-pages button{flex:0 0 auto;width:150px;border:1px solid var(--line);border-radius:10px;background:#eef2f5;padding:0;overflow:hidden;scroll-snap-align:start;text-align:left}
.cover-pages img{display:block;width:100%;aspect-ratio:1.414;object-fit:cover}
.cover-pages span{display:block;font-size:12px;color:var(--muted);padding:6px 8px}
@media (min-width:900px){.cover-inner{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:36px;padding:28px 32px 48px;align-items:start}.cover-brand{grid-column:1/-1}.cover-hero{position:sticky;top:24px}.cover-body h1{font-size:34px}}
/* ---- electronic manual viewer ---- */
.manual-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:#f5f7fa;display:none;flex-direction:column}
.manual-dialog[open]{display:flex}
.manual-head{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--line);background:var(--paper)}
.manual-head>div{flex:1;min-width:0}
.manual-head h2{font-size:16px;margin:2px 0 0}
.manual-pdf{font-size:14px;color:var(--blue);text-decoration:none;padding:10px 8px}
.manual-dialog .manual-close{display:inline-flex!important;font-size:22px;width:44px;height:44px}
.manual-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:10px;touch-action:pan-y pinch-zoom}
.manual-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;box-shadow:0 2px 14px #13274322;background:white}
.manual-foot{display:flex;align-items:center;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
.manual-foot input{flex:1;min-width:60px;accent-color:var(--blue)}
.manual-foot span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:56px;text-align:center}
.manual-foot .btn{min-width:48px;min-height:44px;padding:0 14px}

/* 拆件器用法入口 */
.guide-actions{display:flex;gap:6px;flex:none}
.cover-separator{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:10px 14px 10px 10px;border:1px solid var(--line);border-radius:16px;background:var(--paper);text-align:left}
.cover-separator img{width:54px;height:72px;object-fit:cover;border-radius:10px;flex:none}
.cover-separator span{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.cover-separator b{font-size:15px}
.cover-separator small{font-size:12.5px;color:var(--muted);line-height:1.45}
.cover-separator i{font-style:normal;color:var(--blue);font-size:18px}
