:root{--ink:#21382d;--muted:#758078;--green:#2d5540;--lime:#d7e8a4;--paper:#fafbf8;--line:#e2e7de}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,select,input{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;background:white;padding:9px 13px}button:hover{border-color:#8fa48a;background:#f2f6ea}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #a0bc5e;outline-offset:3px}header{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:white;border-bottom:1px solid var(--line)}a{color:inherit}.brand{display:flex;align-items:center;text-decoration:none;line-height:1.1;gap:5px}.brand b{font-size:38px;letter-spacing:-5px;margin-right:7px}.brand span{font-size:24px;font-weight:300}.brand small{display:block;font-size:8px;letter-spacing:1.7px;margin-top:7px}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb span{margin:0 15px;color:#b4bdb1}.demo{background:#eaf0df;padding:7px 32px;font-size:10px;letter-spacing:1.3px}.demo span{letter-spacing:0;margin-left:18px;font-size:11px;color:#52604a}main{display:grid;grid-template-columns:244px minmax(400px,1fr) 330px;min-height:calc(100vh - 120px)}aside{padding:27px 22px;background:#f3f5ee;border-right:1px solid var(--line)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#76836d}h1{font-size:35px;line-height:1;margin:18px 0 12px;letter-spacing:-1px}h1 span{display:block;font-size:20px;line-height:1.3;font-weight:450;letter-spacing:-.4px;margin-top:13px}.spec{font-size:12px;color:var(--muted);margin-bottom:20px}.selectlabel{display:block;font-size:11px;margin-bottom:5px}select{width:100%;background:transparent;border:1px solid #cdd7c5;padding:8px;border-radius:6px;font-size:11px}.progress{margin:21px 0 16px;font-size:10px;color:#6c7868}.progress>div{height:3px;background:#dfe5d7;margin-top:8px}.progress i{display:block;background:var(--green);height:100%;transition:width .4s}nav{display:grid;gap:3px}nav button{border:0;border-radius:6px;text-align:left;background:transparent;font-size:12px;padding:7px 8px;display:flex;align-items:center;gap:9px}nav button span{border:1px solid #d2dacd;border-radius:50%;width:23px;height:23px;display:inline-grid;place-items:center;font-size:10px;flex-shrink:0}nav button[aria-current=step]{background:white;color:var(--green);box-shadow:0 2px 8px #21382d08;font-weight:600}nav button[aria-current=step] span{background:var(--green);color:white;border-color:var(--green)}nav button.done span{background:#e0ebc8}.asidefoot{font-size:9px;color:#808a7b;margin-top:22px;line-height:1.8}.workspace{padding:29px 24px 0;min-width:0}.stagehead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px}.stagehead h2{font-size:23px;font-weight:500;letter-spacing:-.7px;margin:7px 0 0}.stagehead button{font-size:11px;white-space:nowrap;background:transparent}.visual{position:relative;border:1px solid #e0e6d9;border-radius:14px;overflow:hidden;height:min(63vh,650px);min-height:430px;background:radial-gradient(ellipse at center,#fcfdf8,#edf1e7)}#viewer{width:100%;height:100%;touch-action:none}canvas{display:block}.viewbadge{position:absolute;top:18px;left:18px;font-size:9px;letter-spacing:1px;color:#677761;pointer-events:none}.viewbadge>span:first-child{display:inline-block;width:5px;height:5px;background:#5a7a3b;border-radius:50%;margin-right:4px}.viewtools{position:absolute;bottom:37px;width:100%;display:flex;justify-content:center;gap:5px}.viewtools button{font-size:10px;padding:7px 9px;background:#ffffffda;backdrop-filter:blur(8px)}.draghelp{position:absolute;bottom:12px;width:100%;text-align:center;font-size:9px;color:#87917e;pointer-events:none}#partTag{position:absolute;right:18px;top:18px;font-size:10px;background:#ffffffbd;padding:4px 8px;border-radius:4px;pointer-events:none}.under{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 0}.metric{font-size:9px;color:#86917f}.metric span{display:block;font-size:18px;color:var(--ink);line-height:1.2}.under button{font-size:10px;background:none;border:0;text-align:right}article{padding:35px 24px;border-left:1px solid var(--line);background:white;display:flex;flex-direction:column}h3{font-size:25px;line-height:1.2;font-weight:500;letter-spacing:-.6px;margin:12px 0 15px}article p{font-size:13px;color:#64705f;margin:0 0 17px}#instructions{counter-reset:instruction}#instructions p{position:relative;padding-left:29px;font-size:12px;margin-bottom:14px;color:#394b36}#instructions p:before{counter-increment:instruction;content:counter(instruction);position:absolute;left:0;top:1px;background:#eef2e8;border-radius:50%;width:19px;height:19px;text-align:center;font-size:10px}.need{margin:12px 0 17px;padding-top:16px;border-top:1px solid var(--line)}h4{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;margin:0 0 10px}#needs{display:flex;flex-wrap:wrap;gap:6px}#needs span{font-size:10px;background:#f4f6f0;border-radius:4px;padding:5px 8px}.tip{font-size:11px;background:#f0f4e8;border-left:2px solid #acbf88;padding:12px 13px;line-height:1.7;margin-bottom:17px}.tip strong{display:block;font-size:10px;margin-bottom:3px}.bottomnav{display:flex;gap:8px;margin-top:auto;padding-top:20px}.primary{background:var(--green);color:white;flex:1;font-size:12px;border-color:var(--green)}.primary:hover{background:#38684e;color:white}button:disabled{opacity:.4;cursor:default}#restart{font-size:10px;border:0;background:none;color:#7a8672;margin-top:7px}#checks label{display:flex;gap:8px;font-size:11px;padding:6px 0}input[type=checkbox]{accent-color:var(--green)}#interactive label{font-size:11px;display:block;margin-bottom:7px}#interactive select,#interactive input{margin-bottom:12px}#interactive input[type=number]{width:90px;border:1px solid var(--line);padding:6px;border-radius:5px}#detail{display:none;position:absolute;inset:52px 13px 83px;background:#f8faf5;border-radius:6px;overflow:auto}#detail img{width:100%;height:100%;object-fit:contain}#detail svg{width:100%;height:100%;min-height:260px}#detail.visible{display:block}dialog{width:min(880px,94vw);max-height:90vh;border:1px solid var(--line);border-radius:14px;padding:25px;color:var(--ink)}dialog::backdrop{background:#15271f80;backdrop-filter:blur(4px)}.modalhead{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-25px;background:white;z-index:1}.modalhead h2{font-size:23px}#modalBody img{max-width:100%;display:block;margin:15px auto}#modalBody p,#modalBody li{font-size:13px}#modalBody table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:9px}.sourceLink{display:inline-block;margin:10px 15px 10px 0}.hint{font-size:10px;color:#7b816e}@media(min-width:1550px){main{grid-template-columns:270px 1fr 370px}.workspace{padding:35px 40px}article{padding:40px 30px}.visual{height:65vh}}@media(max-width:1100px){main{grid-template-columns:190px minmax(310px,1fr) 285px}aside{padding:24px 14px}.workspace{padding:27px 15px 0}article{padding:30px 18px}.stagehead h2{font-size:20px}.viewtools{flex-wrap:wrap}.breadcrumb{display:none}}@media(max-width:820px){header{height:70px;padding:0 18px}.brand b{font-size:30px}.brand span{font-size:20px}header button{font-size:11px}.demo{padding:7px 18px}.demo span{display:none}main{display:flex;flex-direction:column}aside{border:0;padding:18px}h1{font-size:28px;margin:0}h1 span,.spec,.asidefoot,.selectlabel{display:none}aside>.eyebrow{display:none}aside select{width:auto;position:absolute;right:18px;top:120px}.progress{margin:12px 0}nav{display:flex;overflow-x:auto;padding-bottom:4px}nav button{white-space:nowrap;flex-shrink:0}.workspace{padding:12px 14px 0}.stagehead{margin-bottom:14px}.visual{height:440px;min-height:350px}.under{padding:12px 0}article{border-top:1px solid var(--line);padding:23px}.bottomnav{margin-top:10px}h3{font-size:24px}}
/* PLAN3D interface: original typography, charcoal header and neutral panels. */
@font-face{font-family:Inter;src:url('assets/Inter-Variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{--ink:#313131;--muted:#737373;--green:#3b3b3b;--lime:#e4e4e4;--paper:#f6f6f6;--line:#dedede}body{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header{background:#2c2c2c;color:white;height:76px;padding:0 25px}.brand{gap:18px}.brand img{object-fit:contain}.brand .planlogo{width:115px;height:45px;filter:brightness(0) invert(1)}.brand .rblogo{width:118px;height:44px}.brand i{height:34px;width:1px;background:#666}.breadcrumb{color:#bbb}header button{color:white;background:#434343;border-color:#575757;font-size:12px}header button:hover{background:#555}.demo{background:#ebebeb;color:#444;border-bottom:1px solid #d7d7d7}.demo span{color:#747474}aside{background:white}h1 span{font-size:18px}nav button[aria-current=step]{background:#ededed;box-shadow:none}nav button.done span{background:#ededed}nav button[aria-current=step] span{background:#3b3b3b}.progress>div{background:#e7e7e7}select{border-color:#d7d7d7}.eyebrow{color:#787878}.workspace{background:#f5f5f5}.visual{border-color:#ddd;background:white;border-radius:8px;min-height:510px;height:66vh}.viewbadge{color:#666;z-index:2}.viewbadge>span:first-child{background:#e77928}.viewtools{bottom:50px;gap:4px;flex-wrap:wrap;padding:0 9px;z-index:4}.viewtools button{font-size:10px;background:#fff;border-color:#d6d6d6}.viewtools button[aria-pressed=true]{background:#3b3b3b;color:white}.draghelp{color:#777;bottom:15px}#partTag{background:#f2f2f2;color:#666;max-width:42%;text-align:right;z-index:2}.tip{background:#f3f3f3;border-left-color:#e77928}.need span{background:#f1f1f1}#instructions p{border:1px solid transparent;padding:9px 7px 9px 31px;margin:0 0 5px;border-radius:5px;font-size:11px;color:#666;transition:background .3s}#instructions p:before{left:5px;top:10px;background:#efefef}#instructions p.active{background:#fff7f0;border-color:#f2d1b7;color:#333}#instructions p.active:before{background:#e77928;color:white}.need{margin-top:18px}article{padding:25px 20px}.primary{background:#3b3b3b}.primary:hover{background:#515151}#gestureProgress{display:flex;gap:5px;margin:7px 0 15px}#gestureProgress button{flex:1;height:4px;padding:0;font-size:0;border:0;border-radius:2px;background:#e4e4e4}#gestureProgress button[aria-pressed=true]{background:#e77928}#gesture{position:absolute;bottom:94px;left:18px;right:18px;background:#fffefa;border:1px solid #ebd7c7;border-left:3px solid #e77928;border-radius:5px;padding:9px 12px;display:flex;align-items:center;gap:9px;z-index:3;pointer-events:none}#gesture b{font-size:9px;white-space:nowrap;color:#a55e2b}#gesture span{font-size:10px;line-height:1.4;color:#555;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#closeup{position:absolute;width:175px;right:16px;top:56px;background:#fffffff5;border:1px solid #ddd;border-radius:6px;pointer-events:none;z-index:2}#closeup[hidden]{display:none}#closeup svg{width:100%;display:block}#detail{z-index:5}#viewer{background:white}.footcontrol{background:#f3f3f3;border-radius:6px;padding:10px;margin:12px 0}.footcontrol input{width:100%;accent-color:#e77928}.footbuttons{display:flex;gap:5px}.footbuttons button{flex:1;font-size:10px;padding:7px}.hint{font-size:10px!important;line-height:1.5;margin:8px 0 0!important}.adjust{background:#f5f5f5;padding:10px;font-size:12px;margin:10px 0}#hingeDoc{font-size:11px}.levelbubble{animation:none}.paused .levelbubble{animation-play-state:paused}@keyframes bubble{0%,12%{transform:translateX(22px)}65%,100%{transform:translateX(0)}}
@media(min-width:1550px){main{grid-template-columns:250px 1fr 390px}.visual{height:70vh}}@media(max-width:1100px){main{grid-template-columns:185px minmax(310px,1fr) 310px}.workspace{padding:22px 12px 0}.stagehead h2{font-size:18px}.stagehead button{font-size:10px}.viewtools button{font-size:9px;padding:6px}.visual{min-height:500px}#closeup{width:140px}}
@media(max-width:820px){header{height:68px;padding:0 14px}.brand{gap:10px}.brand .planlogo{width:76px;height:34px}.brand .rblogo{width:87px;height:32px}.brand i{height:24px}header button{font-size:9px;padding:8px}.demo{padding:7px 15px}aside{padding:15px}aside select{top:110px;width:180px;font-size:10px}h1{font-size:25px}.workspace{padding:12px 12px 0}.visual{height:60vh;min-height:470px;max-height:620px}.stagehead{margin-bottom:12px}.stagehead h2{font-size:20px}.viewtools{bottom:43px}#gesture{bottom:85px;left:10px;right:10px;display:block;padding:7px 10px}#gesture b{display:block;margin-bottom:4px}#gesture span{font-size:10px}#closeup{width:115px;top:53px;right:9px}.viewbadge{top:15px;left:12px;font-size:8px}#partTag{right:10px;top:12px;font-size:8px;max-width:43%}.draghelp{font-size:8px}.under{gap:5px}.under button{font-size:9px}.metric span{font-size:16px}article{padding:23px 20px}#instructions p{font-size:13px;line-height:1.7;padding-top:10px;padding-bottom:10px}.bottomnav{position:sticky;bottom:0;background:white;padding:12px 0 8px;z-index:6}#needs span{font-size:11px}.tip{font-size:12px}.primary{font-size:13px}.footbuttons button{font-size:12px}.asidefoot{display:none}}
@media(prefers-reduced-motion:reduce){.levelbubble{animation:none}}
.brand .planlogo{filter:none;width:44px;height:44px}.brand .rblogo{width:145px}.brand{gap:15px}#viewer canvas{width:100%;height:100%}@media(max-width:820px){.brand .planlogo{width:34px;height:34px}.brand .rblogo{width:104px}.brand{gap:10px}}
/* Keep the drawing clear of the animated caption and controls. */
#viewer{height:calc(100% - 150px)}@media(max-width:820px){#viewer{height:calc(100% - 180px)}#gesture{bottom:115px}.viewtools{bottom:43px}}
.hardware-photo{padding:10px;position:relative;background:#fff;border-radius:6px}.hardware-photo img{display:block;width:100%;height:130px;object-fit:contain}.hardware-photo span{position:absolute;top:8px;right:8px;font-size:16px;font-weight:700;background:#fff;padding:2px 5px}.hardware-photo p{font-size:10px;text-align:center;color:#444;line-height:1.4;margin:6px 0 3px}.hardware-photo small{display:block;font-size:8px;color:#888;text-align:center}@media(max-width:820px){.hardware-photo{padding:6px}.hardware-photo img{height:85px}.hardware-photo p{font-size:8px}.hardware-photo small{font-size:7px}.hardware-photo span{font-size:12px}}

#instructions p.active{background:#e77928;border-color:#e77928;color:#fff}#instructions p.active:before{background:#fff;color:#b64f0b}

.assembly-hardware{background:white;border-radius:6px;padding:8px}.assembly-hardware>div{position:relative;padding:6px 3px}.assembly-hardware>div+div{border-top:1px solid #e8e8e8;margin-top:6px;padding-top:12px}.assembly-hardware img{display:block;width:100%;height:85px;object-fit:contain}.assembly-hardware b{position:absolute;right:1px;top:2px;background:white;color:#333;font-size:20px;padding:2px 4px}.assembly-hardware p{font-size:12px;color:#333;text-align:center;margin:6px 0 2px;line-height:1.3}@media(max-width:820px){.assembly-hardware img{height:60px}.assembly-hardware b{font-size:16px}.assembly-hardware p{font-size:10px}}
.hinge-detail{padding:7px;background:white;border-radius:6px}.hinge-detail img{display:block;width:100%;height:auto}.hinge-detail p{font-size:11px;line-height:1.4;text-align:center;margin:5px 2px 8px;color:#333}

#closeup:has(.hinge-detail){width:210px}.hinge-detail small{display:block;text-align:center;font-size:9px;color:#777;margin-bottom:5px}@media(max-width:820px){#closeup:has(.hinge-detail){width:155px}}

/* Present the mounted hinge in the same upright orientation as the cabinet. */
.hinge-installed-upright{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:#f5f5f5}
.hinge-installed-upright img{position:absolute;width:150%;max-width:none;height:100%;object-fit:cover;left:-25%;top:0;transform:rotate(-90deg) scale(.9)}

/* Navigation: high-contrast hover and keyboard focus. */
#steps button:hover,#steps button:focus-visible{background:#383838;color:#fff}
#steps button:hover span,#steps button:focus-visible span{background:transparent;color:#fff;border-color:#fff}

.family-back{display:block;color:inherit;font-size:13px;margin:14px 0 20px}.family-back:hover{color:#e77928}

/* Fixed desktop panels: independent scrolling, permanently visible next-step controls. */
@media(min-width:821px){
 html,body{height:100%;overflow:hidden}
 body{height:100dvh;display:grid;grid-template-rows:76px auto minmax(0,1fr)}
 body>header{height:76px;min-height:0}
 body>main{height:100%;min-height:0;overflow:hidden;align-items:stretch}
 main>aside{height:100%;min-height:0;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#aaa #f1f1f1}
 main>.workspace{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding-bottom:18px}
 .workspace>.stagehead{flex:0 0 auto}
 .workspace>.visual{flex:1 1 0;min-height:0;height:auto;max-height:none}
 main>article{height:100%;min-height:0;overflow:hidden;padding:0;display:flex;flex-direction:column}
 .instruction-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:25px 20px 10px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#aaa #f1f1f1}
 .instruction-scroll #instructions{max-height:none;overflow:visible}
 .instruction-footer{flex:0 0 auto;background:#fff;border-top:1px solid var(--line);padding:12px 20px 8px;z-index:6}
 .instruction-footer .bottomnav{margin:0;padding:0;position:static}
 .instruction-footer #restart{display:block;width:100%;margin:7px 0 0}
 main>aside::-webkit-scrollbar,.instruction-scroll::-webkit-scrollbar{width:8px}
 main>aside::-webkit-scrollbar-track,.instruction-scroll::-webkit-scrollbar-track{background:#f1f1f1}
 main>aside::-webkit-scrollbar-thumb,.instruction-scroll::-webkit-scrollbar-thumb{background:#aaa;border-radius:8px;border:2px solid #f1f1f1}
 #closeup{max-height:calc(100% - 130px);overflow:auto}
}
@media(max-width:820px){.instruction-scroll,.instruction-footer{display:contents}}
/* End fixed desktop panels. */

/* Sticky combination summary, with steps scrolling underneath its glass background. */
@media(min-width:821px){
 main>aside{--side-pad-x:22px;--side-pad-y:27px;isolation:isolate}
 .combination-summary{position:sticky;top:calc(-1 * var(--side-pad-y));z-index:8;margin:calc(-1 * var(--side-pad-y)) calc(-1 * var(--side-pad-x)) 0;padding:var(--side-pad-y) var(--side-pad-x) 1px;background:rgba(255,255,255,.86);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid rgba(220,220,220,.6)}
 .combination-summary .progress{margin-bottom:16px}
}
@media(min-width:821px) and (max-width:1100px){main>aside{--side-pad-x:14px;--side-pad-y:24px}}
@media(max-width:820px){.combination-summary{display:contents}}
/* End sticky combination summary. */
