.mechanics-app .subjects a{color:var(--muted);text-decoration:none;padding:9px 14px;border-radius:8px}.mechanics-app .subjects a.active{background:#e7efe3;color:var(--green)}.mechanics-app .rail nav button{display:flex;width:100%;text-align:left;border:0;background:none;padding:14px 11px;margin:6px 0;gap:12px;font-size:12px}.mechanics-app .rail nav button.selected{background:#e5eee1;color:#28775c}.mechanics-app .rail nav span{color:#98a58f;font-size:11px}.mechanics-app .rail a{color:var(--green)}.mech-lab{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.mech-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line)}.mech-toolbar>span{font-size:12px;color:#537764}.mech-toolbar>div{display:flex;gap:6px}.mech-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px}.mech-center{min-width:0;background:#fbfcf8}.mech-stage{background:radial-gradient(#d9e3d4 .8px,transparent .8px);background-size:24px 24px;min-height:360px;display:flex;align-items:center;justify-content:center}.mech-stage svg{width:100%;max-height:490px;display:block;touch-action:none;user-select:none}.mech-stage text{font-family:inherit;fill:#456354;font-size:14px}.mech-stage .small{font-size:11px;fill:#7d8d7f}.mech-stage .strong{font-size:19px;font-weight:600}.mech-stage [data-hook]{cursor:ew-resize}.mech-stage [data-hook]:focus{outline:none;filter:drop-shadow(0 0 4px #1e7350)}.mech-inspector{padding:24px 20px;border-left:1px solid var(--line)}.mech-inspector h2{font-size:19px;margin:9px 0 20px}.mech-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed #e1e8de;font-size:12px}.mech-result strong{font:15px ui-monospace,Consolas,monospace;color:#32674e;text-align:right}.mech-efficiency{background:#eaf1e3;border-radius:10px;padding:17px;margin-bottom:12px}.mech-efficiency>span{display:block;font-size:12px;color:#687e59}.mech-efficiency strong{font:36px Georgia,serif;display:block;margin:8px 0;color:#3d6848}.mech-efficiency progress{width:100%;height:8px;accent-color:#6b9560}.mech-transport{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line);flex-wrap:wrap}.mech-transport label{display:flex;gap:10px;align-items:center;flex:1;min-width:160px}.mech-transport input{padding:0;width:100%;accent-color:#417e61}.mech-formula{background:#f0f4ea;padding:15px 20px;line-height:1.9;font-size:12px;color:#5c7252}.mech-formula b{color:#2f6044}.mech-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;padding:22px;border-top:1px solid var(--line)}.mech-control label{display:flex;justify-content:space-between;gap:6px;font-size:12px;margin-bottom:9px}.mech-control>div{display:flex;align-items:center;gap:10px}.mech-control input[type=range]{padding:0;min-width:40px;width:100%;accent-color:#3a7d5e}.mech-control input[type=number]{width:83px;font:14px Consolas,monospace;padding:7px}.mech-control select{width:100%}.mech-control small{color:#879681;font-size:10px}.mech-teach{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:22px 0;padding:26px;border:1px solid #dce5d4;border-radius:12px;background:#edf2e6}.mech-teach h2{font-size:20px;font-weight:500;line-height:1.6}.mech-teach h3{font-size:15px;margin:0}.mech-teach p{line-height:1.9;font-size:12px;color:#63765e}.mech-teach .actions{flex-wrap:wrap}.mech-teach summary,.mech-sources summary{cursor:pointer;color:#52704d;font-size:12px}.mech-records{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.mech-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.mech-section-head h2{font-size:18px}.mech-section-head small{font-size:10px;font-weight:400;color:#8c9988;margin-left:10px}.mech-table{overflow:auto;margin-top:14px}.mech-table table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}.mech-table td,.mech-table th{padding:12px;text-align:right;border-bottom:1px solid #e4eade}.mech-table th{color:#6c8061;background:#f4f7ef;font-weight:500}.mech-sources{margin:22px 0;padding:20px;border:1px solid var(--line);border-radius:10px;line-height:1.9;color:#7f8d79;font-size:12px}.mech-sources a{color:#327c63}#mechCheck{font-size:11px;color:#6b865e;line-height:1.6}#mechToast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#264f40;color:#fff;border-radius:9px;padding:12px 22px;z-index:20;display:none}.mech-rope{stroke:#c19751;fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.mech-structure{stroke:#667d70;fill:none;stroke-width:5}.mech-dimension{stroke:#7fa1a7;fill:none;stroke-dasharray:4 4}.mech-load{fill:#dec99c;stroke:#a88e5d;stroke-width:2}.mech-force{stroke:#cb7953;fill:none;stroke-width:3}.mech-note{fill:#eaf1e3;stroke:#d7e2cd}.mech-energy{height:9px;display:flex;overflow:hidden;border-radius:5px;margin-top:10px}.mech-energy span{height:100%}.mech-note-text{font-size:12px!important}.mech-legend{margin:8px 0;color:#738469;font-size:10px}.mech-actions select{max-width:190px}@media(max-width:1100px){.mech-layout{grid-template-columns:minmax(0,1fr) 215px}.mech-inspector{padding:20px 13px}.mech-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.mech-toolbar{flex-wrap:wrap}.mech-stage{min-height:320px}}@media(max-width:760px){.mechanics-app header{height:auto;min-height:66px;flex-wrap:wrap;padding:12px;gap:12px}.mechanics-app .subjects{display:flex;order:3;width:100%;justify-content:center}.mechanics-app .rail{display:block}.mechanics-app .rail nav{display:flex;overflow:auto;gap:4px}.mechanics-app .rail nav button{white-space:nowrap;width:auto;padding:10px}.mech-layout{grid-template-columns:1fr}.mech-inspector{border-left:0;border-top:1px solid var(--line)}#mechResults{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.mech-efficiency{grid-column:1/-1}.mech-stage{min-height:250px}.mech-teach{grid-template-columns:1fr;padding:20px;gap:20px}.mech-controls{padding:16px;gap:15px}.mech-section-head{flex-wrap:wrap}.mech-section-head small{display:block;margin:7px 0}.mech-toolbar button{font-size:11px;padding:7px}.mech-transport{padding:12px}.mech-control label{font-size:11px}.mech-formula{font-size:11px}.mech-records{padding:15px}}

.mech-hint{margin:0;padding:13px 20px;color:#3a7158;background:#edf4e7;font-size:12px;line-height:1.8;border-bottom:1px solid #dde7d5}.mech-stage [data-drag],.mech-stage [data-pick]{cursor:grab}.mech-stage [data-drag]:active{cursor:grabbing}.mech-grip{fill:#f7fbf2;fill-opacity:.85;stroke:#478369;stroke-width:2;stroke-dasharray:3 2}.mech-stage [data-drag="force-angle"] .mech-grip,.mech-stage [data-drag="push-force"] .mech-grip{stroke:#cd8054;fill:#fff2df}.mech-stage [data-drag="water"] .mech-grip{stroke:#458db0;fill:#d5f0f5}.mech-stage [data-drag]:focus{outline:none;filter:drop-shadow(0 0 4px #317759)}.mech-arm{stroke:#2684b4;stroke-width:2.5;fill:none}.mech-radius{stroke:#9ea69d;stroke-dasharray:3 5;fill:none}.mech-stage .arm-label{fill:#177aa9;font-size:13px}.mech-stage svg{overflow:hidden}
.pulley-view {padding:10px 13px 7px;min-width:0;background:#fbfcf8}
.pulley-view[hidden],.mech-stage[hidden] {display:none}
.pulley-bar,.pulley-tools,.pulley-readings {display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.pulley-bar strong {font-size:14px;color:#315e4d;margin-right:auto}
.pulley-view button {font-size:12px;padding:5px 10px}
.pulley-view button[aria-pressed=true] {background:#e4eedf;border-color:#95ac99}
.pulley-space {position:relative;isolation:isolate;overflow:hidden;height:clamp(290px,42vw,440px);border:1px solid #dce6d8;border-radius:8px;margin:8px 0;background:#f3f6ee;touch-action:none;user-select:none;cursor:grab}
.pulley-space.holding,.pulley-space.holding button {cursor:grabbing}
.pulley-space:focus-visible,.pulley-space button:focus-visible {outline:2px solid #287058;outline-offset:-2px}
.pulley-space canvas {position:absolute;inset:0;width:100%;height:100%;display:block}
.pulley-space .tie-label,.pulley-space [data-grab],.pulley-counts span {position:absolute;font:600 12px/1.2 system-ui;white-space:nowrap}
.tie-label {pointer-events:none;color:#675021;transform:translate(calc(-100% - 5px),-65%);background:#fff9e6eb;padding:3px 6px;border-radius:5px}
.pulley-space [data-grab] {cursor:grab;font-size:12px}
.pulley-space .pull-label {background:#23664c;color:white;border:0;transform:translate(8px,-48%);padding:5px 9px}
.pulley-space .load-label {background:#fff7e1;color:#634e2a;border:1px solid #c5b187;transform:translate(-50%,-45%);padding:3px 5px}
.pulley-counts span {pointer-events:none;border-radius:50%;background:#edf6eb;color:#275d49;border:1px solid #789a84;padding:1px 4px;transform:translate(-115%,-50%)}
.pulley-readings {justify-content:space-between;color:#536b5a;font-size:12px;padding:5px 3px}
.pulley-readings b {font-variant-numeric:tabular-nums;color:#21583e}
.pulley-route {font-size:12px;line-height:1.7;margin:5px 2px;color:#72552c}
.pulley-tools {justify-content:space-between;font-size:12px;color:#596d5d}
.pulley-tools label {display:flex;align-items:center;gap:5px}.pulley-tools input {width:15px;height:15px;accent-color:#3a7557}
