:root{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:#344c44;background:#faf8ef;font-synthesis:none;--mint:#d9eee3;--green:#24624f;--ink:#344c44;--wood:#ce9d67;--line:#dce2d6}*{box-sizing:border-box}body{margin:0;background-image:radial-gradient(#607a5120 .7px,transparent .7px);background-size:12px 12px}button,select,textarea{font:inherit;color:inherit}button,select{min-height:44px}button{border:1.5px solid #c8d6c9;border-radius:12px;padding:10px 16px;background:#fffef9;cursor:pointer;transition:background .15s,box-shadow .15s}button:hover:not(:disabled){background:#eaf4e9;box-shadow:0 2px 0 #bacdc1}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #db8840;outline-offset:4px}button.primary{background:var(--green);color:white;border-color:var(--green);font-weight:700;box-shadow:0 4px 0 #173f33}button.primary:hover:not(:disabled){background:#317761}h1,h2,p{margin:0}h2{font-size:20px;line-height:1.5}p{line-height:1.75}.site-header{max-width:1120px;margin:auto;padding:24px 24px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce2d6}.brand{text-decoration:none;color:#3e5a4b;font-size:15px;font-weight:700;display:flex;align-items:center;gap:9px}.brand-mark{font-size:30px;color:#5e9273}.private-tag{font-size:12px;border:1px dashed #a7b7a4;border-radius:20px;padding:5px 11px}main{max-width:1040px;margin:auto;padding:0 24px}.intro{display:flex;justify-content:space-between;align-items:center;padding:38px 6px 30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#67816c;margin-bottom:8px}h1{font-size:43px;letter-spacing:1px;line-height:1.3;font-weight:850}.title-star{color:#c18f4f;font-size:35px;margin-left:18px}.subtitle{margin-top:12px;font-size:15px;color:#718075}.intro-doodle{font-family:serif;font-size:19px;transform:rotate(-7deg);border-bottom:2px dashed #acbfa7;padding:8px 24px;color:#6c8f73;line-height:1.8}.intro-doodle span{margin-left:45px}.mobile-only{display:none}.task-card{border:1.5px solid #bdcfc0;border-radius:20px 24px 18px 22px;background:#e7f2e5;display:flex;align-items:center;min-height:152px;margin-bottom:24px;padding:18px 23px 18px 10px;box-shadow:0 5px 0 #dde6d6;gap:18px}.teacher-crop{height:126px;width:114px;flex-shrink:0;overflow:hidden;align-self:flex-end;border-radius:0 0 40px 40px}.teacher-crop img{width:107px;max-width:none;margin:0 0 0 4px}.teacher-copy{flex:1}.teacher-copy h2{font-size:21px;margin-bottom:5px}.teacher-copy p:last-child{font-size:14px}.steps{display:flex;gap:9px}.steps button{width:62px;min-height:70px;padding:8px 3px;border-radius:14px;background:#f5f8ed;font-weight:800;font-size:20px}.steps button span{display:block;font-size:10px;margin-top:4px;font-weight:500}.steps button.active{background:#326b53;border-color:#326b53;color:white;box-shadow:0 4px 0 #a8c1aa}.steps button.done:after{content:'✓';font-size:11px;margin-left:4px}.lab-card,.equipment-card,.notebook{background:#fffdf6;border:1.5px solid #d3dbc9;border-radius:22px;padding:24px 28px;box-shadow:0 6px 0 #e9e9dc;margin-bottom:24px}.lab-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.tiny-label{font-size:10px;letter-spacing:1.7px;color:#829080;font-weight:700}.lab-top h2{font-size:19px;margin-top:5px}.status-pill{font-size:11px;white-space:nowrap;padding:8px 12px;border-radius:30px;background:#eef3e8;color:#67805d}.bench{height:350px;position:relative;margin:8px 0 0;background:linear-gradient(transparent 86%,#f2e6cf 86%,#f2e6cf 87%,transparent 87%)}#diagram{width:100%;height:350px;overflow:visible;position:absolute;inset:0}.side-label{position:absolute;top:18px;font-size:12px;color:#7b897a;letter-spacing:3px}.left-label{left:12%}.right-label{right:12%}.bench-caption{position:absolute;bottom:12px;width:100%;text-align:center;font-size:11px;color:#85907c}.weight{position:absolute;min-width:44px;width:44px;height:44px;padding:2px 0;border:2px solid #8b7659;border-radius:9px 9px 12px 12px;background:linear-gradient(120deg,#e6d6b2,#b7c4aa);box-shadow:inset 2px 2px #fff7,0 3px 0 #9f987d;transform:translateX(-50%);touch-action:none;user-select:none;font-size:12px;font-weight:800;z-index:3}.weight small{font-size:8px;display:block;line-height:1.2}.weight.selected{outline:3px solid #d88844;outline-offset:3px}.weight.ghost{opacity:.35}.rack-total{position:absolute;transform:translateX(-50%);font-size:11px;white-space:nowrap;font-weight:700;color:#55694f;z-index:1}.direction-note{text-align:center;font-size:12px;padding:8px 10px;background:#f8f5e9;border-radius:8px;margin-top:2px}.readouts{display:flex;align-items:center;gap:26px;max-width:680px;margin:20px auto 0}.reading{flex:1;min-width:0;text-align:center;background:#eef4e9;border:1px dashed #c8d7bd;padding:14px 10px;border-radius:15px}.right-reading{background:#faf0dc;border-color:#dfcfac}.reading>span{font-size:12px;font-weight:700}.reading strong{display:block;font-size:32px;letter-spacing:1px;margin:3px 0}.reading strong small{font-size:13px;font-weight:500;letter-spacing:0}.reading p{font-size:11px;line-height:1.6;min-height:18px}.balance-symbol{font-size:27px;color:#809376}.net-line{font-size:12px;text-align:center;margin-top:12px}.centered{text-align:center;margin-top:3px;font-size:9px}.actions{display:flex;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap}.actions .primary{min-width:255px;min-height:51px}.actions .primary span{float:right;margin-left:22px}.current-status{text-align:center;font-size:11px;color:#71816b;margin-top:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-heading>span{font-size:13px}.section-heading .eyebrow{margin-bottom:4px}.helper{font-size:12px;color:#7b8274;margin:12px 0}.tray{display:flex;min-height:90px;align-items:center;justify-content:center;gap:20px;border:2px dashed #d2c5a8;border-radius:14px;background:#f6efdd;padding:16px;margin-top:15px}.tray .weight{position:relative;left:auto!important;top:auto!important;transform:none}.tray .slot{width:44px;height:44px;border:1px dashed #d7cbb2;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#b7b09d;font-size:11px}.weight-list{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.weight-list button{font-size:11px;padding:7px 10px;flex:1;min-width:110px}.weight-list button.selected{outline:2px solid #d88844}.small-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.small-actions button{font-size:12px}.picker{padding:16px;border:2px solid #abc6aa;border-radius:14px;background:#f1f6e9;margin-top:14px}.picker-title{display:flex;align-items:center;justify-content:space-between}.picker-title strong{font-size:14px}.side-buttons{display:flex;gap:9px;margin-top:10px}.side-buttons button{flex:1}.side-buttons button.active{background:#c9e2cd;border-color:#678c6c}.distance-row{display:flex;justify-content:center;align-items:center;gap:22px;margin:14px 0}.distance-row button{width:48px;font-size:22px;padding:4px}.distance-row output{min-width:130px;text-align:center;font-weight:800}.picker-actions{display:flex;gap:9px}.picker-actions>*{flex:1}.notebook{background:repeating-linear-gradient(#fffdf6,#fffdf6 31px,#e9eddc 32px)}.notebook>p{font-size:13px;margin:10px 0}.notebook-actions{display:flex;gap:9px;flex-wrap:wrap}details{margin-top:18px;border-top:1px solid #d9e0cd;padding-top:12px}summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;font-weight:700}textarea{width:100%;border:1px solid #bccdb9;border-radius:8px;padding:10px;background:#fffefa;margin:9px 0}label{font-size:13px}.record{background:#fffdf7;border:1px solid #d7dfcf;padding:12px;border-radius:10px;margin-bottom:8px;font-size:12px}.record header{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.record p{line-height:1.7}.record button{font-size:11px;margin-top:8px}.data-card{padding:6px 10px;font-size:12px}.data-card p{font-size:12px}.data-card select{max-width:100%;margin:14px 0;padding:5px;border:1px solid #c7d3c1;border-radius:8px;background:#fffdf6}footer{padding:34px 10px 30px;text-align:center;color:#87927e;font-size:11px}footer strong{color:#6b8068;font-size:14px}footer p{margin-top:8px}.alert{background:#fff0dc;border:2px solid #cc9051;border-radius:14px;margin:20px 0;padding:18px;font-size:13px}.alert button{margin:8px}.alert label{display:block}.alert input{min-width:24px;min-height:24px;vertical-align:middle}.drag-preview{position:fixed;pointer-events:none;background:#fffdeb;border:2px solid #b38a53;border-radius:10px;padding:7px 11px;z-index:50;font-size:12px;box-shadow:0 3px 12px #24392d26;max-width:230px}.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#2b5142;color:#fff;padding:12px 20px;border-radius:12px;z-index:80;font-size:13px;max-width:90vw;box-shadow:0 4px 20px #0002}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{border:1px solid #bbcbb6;border-radius:20px;padding:25px;width:min(800px,94vw);max-height:90vh;color:var(--ink);background:#fffdf5}dialog::backdrop{background:#29433470}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:20px}.dialog-heading button{min-width:44px}.compare-selectors{display:flex;gap:15px;margin:20px 0}.compare-selectors label{flex:1;min-width:0}.compare-selectors select{display:block;width:100%;margin-top:6px;border-radius:8px;padding:6px;min-width:0}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:14px}.comparison article{min-width:0;background:#f0f5e8;padding:15px;border:1px dashed #bdcdb1;border-radius:12px;font-size:13px}.comparison article:last-child{background:#fbefd9}.comparison h3{margin-top:0;font-size:16px}.comparison p{margin:8px 0}.comparison .big{font-size:24px;font-weight:800}.comparison .small{font-size:11px;color:#73816a}body[data-released="true"] .weight{transition:top .35s,left .35s}body[data-isolated="true"] .lab-card{opacity:.7}@media(min-width:1000px){.equipment-card{padding:25px 30px}.tray{gap:34px}}@media(max-width:650px){.site-header{padding:16px 17px 12px}.brand{font-size:12px}.brand-mark{font-size:26px}.private-tag{font-size:10px;padding:4px 7px}main{padding:0 14px}.intro{padding:27px 4px 23px}h1{font-size:32px}.title-star{font-size:26px;margin-left:7px}.subtitle{font-size:13px;margin-top:9px}.intro-doodle{display:none}.task-card{padding:12px 12px 12px 3px;gap:8px;flex-wrap:wrap;min-height:0;margin-bottom:20px;border-radius:17px}.teacher-crop{width:78px;height:102px;align-self:center}.teacher-crop img{width:85px;margin-left:0}.teacher-copy{min-width:190px}.teacher-copy h2{font-size:17px}.teacher-copy p:last-child{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1.1px}.steps{width:100%;padding-left:6px;gap:7px}.steps button{flex:1;width:auto;min-height:44px;padding:7px;display:flex;justify-content:center;align-items:center;gap:9px;font-size:16px}.steps button span{margin:0;font-size:11px}.lab-card,.equipment-card,.notebook{padding:18px 13px;border-radius:17px;margin-bottom:20px}.lab-top h2{font-size:16px}.tiny-label{font-size:8px}.status-pill{padding:7px 8px;font-size:9px}.bench{margin-left:-6px;margin-right:-6px}.side-label{font-size:10px}.readouts{gap:9px;margin-top:14px}.reading{padding:12px 5px}.reading strong{font-size:25px}.reading strong small{font-size:10px}.reading p{font-size:10px}.balance-symbol{font-size:21px}.actions{gap:9px;margin-top:17px}.actions .primary{min-width:0;width:100%;font-size:14px}.actions .secondary{flex:1;font-size:12px}.direction-note{font-size:11px}.net-line{font-size:11px}.section-heading h2{font-size:19px}.tray{gap:5px;padding:14px 0}.tray .weight,.tray .slot{flex-shrink:0}.helper{font-size:11px}.weight-list{gap:6px}.weight-list button{min-width:85px;font-size:10px;padding:6px}.small-actions{gap:7px}.small-actions button{font-size:11px;padding:8px 10px}.picker{padding:12px}.picker-actions button{font-size:12px;padding:10px 8px}.distance-row{gap:12px}.comparison{gap:8px}.comparison article{padding:11px;font-size:11px}.comparison h3{font-size:14px}.comparison .big{font-size:20px}.compare-selectors{gap:8px}.dialog-heading h2{font-size:18px}dialog{padding:17px}.mobile-only{display:initial}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}[hidden]{display:none!important}

.weight-list button{touch-action:none;user-select:none}

/* Keep the inventory beside the beam on wide screens, immediately below on mobile.
   No sticky overlay: the four-weight hanging envelope and page scrolling stay clear. */
.bench-workspace{display:grid;grid-template-columns:minmax(0,1fr) 148px;align-items:start;gap:18px}
.bench-workspace .bench{min-width:0}
.bench-tray{margin-top:92px;padding:12px 9px 10px;background:#f8f1df;border:1px solid #ded0b0;border-radius:14px}
.tray-heading{text-align:center}.tray-heading h3{font-size:13px;margin:0 0 4px}.tray-heading span{font-size:11px;color:#7c7d64}
.bench-tray .tray{display:grid;grid-template-columns:repeat(2,44px);gap:10px 12px;justify-content:center;min-height:0;padding:10px 0;margin:8px 0 0;border:0;background:transparent}
.bench-tray>p{font-size:10px;text-align:center;margin-top:7px;color:#7c7d64}
@media(max-width:850px){
 .bench-workspace{display:block}
 .bench-tray{margin-top:0;padding:9px 0 8px}
 .tray-heading{display:flex;justify-content:center;align-items:center;gap:12px}.tray-heading h3{margin:0;font-size:12px}
 .bench-tray .tray{display:flex;gap:5px;padding:0;margin-top:8px;min-height:44px;border:0}
 .bench-tray>p{margin-top:6px}
 .direction-note{margin-top:10px}
}

/* The brand remains a reachable link on narrow touch screens. */
.brand{min-height:44px;min-width:44px}

/* Every hanging item remains an actual44px control. Layout computes only local
   vertical staggering and reserves each rack's full label/control envelope. */
#hung-weights .rack-total{transform:none;white-space:normal;text-align:center;line-height:16px;background:#fffdf6e8;border-radius:5px;font-size:11px;pointer-events:none}
#hung-weights .rack-total span,#hung-weights .rack-total strong{display:block}
#hung-weights .rack-total strong{font-size:11px}

.weight small{font-size:10px}
