/* Scaling drills (physics/assets/tools/scaling-drills.js). OWNED BY THIS TOOL
   ONLY. Loaded by the tool's script. */
.sd-view{display:flex;flex-direction:column;gap:6px;min-height:0;flex:1;justify-content:center;}
.sd-pic{min-height:0;flex:1 1 auto;display:flex;}
.sd-pic svg{width:100%;height:auto;max-height:340px;}
.sd-view > .sd-vtoggle,.ls-root .sd-view > .sd-vtoggle.tseg{display:none;}
.sd-bar svg{width:100%;height:auto;max-height:250px;}
.sd-eq{margin:0;text-align:center;font:700 18px var(--font-ui);}
.sd-eq b{color:var(--cink);}
.sd-svg text{fill:var(--ink);font-family:var(--font-ui);}
.sd-pic,.sd-fig{--sd-b1:#F3D27A;--sd-b2:#B88A2E;--sd-m1:#E6EAEC;--sd-m2:#8E989F;--sd-w1:#E2BC85;--sd-w2:#B98A4E;--sd-c1:#3C8CC4;--sd-c2:#1F5F8E;
  --sd-p1:#9FD3F2;--sd-p2:#2C78B0;--sd-h1:#5FA9DA;--sd-h2:#A8D6F2;--sd-t1:#F4E6CF;--sd-t2:#E2CBA6;--sd-ink2:#4A545B;--sd-road:#5D666C;}
:root[data-theme="dark"] .sd-pic,:root[data-theme="dark"] .sd-fig{--sd-b1:#D9B65E;--sd-b2:#8E6A22;--sd-m1:#AEB6BC;--sd-m2:#5E686F;--sd-w1:#B98C55;--sd-w2:#8A6534;--sd-c1:#4A9AD2;--sd-c2:#2A6A9A;
  --sd-p1:#7DBDE6;--sd-p2:#1F5F8E;--sd-h1:#2A6E9C;--sd-h2:#3F8FC2;--sd-t1:#5B5040;--sd-t2:#463C2F;--sd-ink2:#1C2328;--sd-road:#3A4146;}
.sd-g-b1{stop-color:var(--sd-b1);} .sd-g-b2{stop-color:var(--sd-b2);} .sd-g-m1{stop-color:var(--sd-m1);} .sd-g-m2{stop-color:var(--sd-m2);}
.sd-g-w1{stop-color:var(--sd-w1);} .sd-g-w2{stop-color:var(--sd-w2);} .sd-g-c1{stop-color:var(--sd-c1);} .sd-g-c2{stop-color:var(--sd-c2);}
.sd-g-p1{stop-color:var(--sd-p1);} .sd-g-p2{stop-color:var(--sd-p2);} .sd-g-h1{stop-color:var(--sd-h1);} .sd-g-h2{stop-color:var(--sd-h2);}
.sd-g-t1{stop-color:var(--sd-t1);} .sd-g-t2{stop-color:var(--sd-t2);}
.sd-h{font:900 12px var(--font-ui);fill:var(--muted) !important;letter-spacing:.02em;}
.sd-h-a{fill:var(--cink) !important;}
.sd-chip{fill:var(--surface2);stroke:var(--line);stroke-width:1.2;}
.sd-chip-a{fill:var(--ctint, var(--surface2));stroke:var(--cink);stroke-opacity:.35;}
.sd-cap{font:700 12.5px var(--font-ui);fill:var(--muted) !important;}
.sd-cap2{font:800 12.5px var(--font-ui);fill:var(--muted) !important;}
.sd-cap .sd-y,.sd-cap2 .sd-y{fill:var(--cink) !important;font-weight:900;}
.sd-al{font:900 13px var(--font-ui);fill:var(--ink) !important;}
.sd-tl{font:800 12px var(--font-ui);fill:var(--muted) !important;}
.sd-dl{font:900 13px var(--font-ui);fill:var(--ink) !important;}
.sd-ml{font:900 11px var(--font-ui);fill:#3B2A06 !important;}
.sd-mut{font:700 13px var(--font-ui);fill:var(--muted) !important;}
.sd-div{stroke:var(--line);stroke-width:2;stroke-dasharray:4 5;}
.sd-dim{stroke:var(--muted);stroke-width:1.3;fill:none;}
.sd-rest{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;opacity:.7;}
.sd-arc{fill:none;stroke:var(--muted);stroke-width:1.2;stroke-dasharray:2 4;opacity:.8;}
.sd-wood{stroke:#7A5426;stroke-width:1;}
.sd-metal{stroke:var(--sd-ink2);stroke-width:1;}
.sd-pin{fill:var(--sd-ink2);}
.sd-string{stroke:var(--ink);stroke-width:1.5;}
.sd-bobo{stroke:#6E5114;stroke-width:1.2;}
.sd-brass{stroke:#6E5114;stroke-width:1.2;}
.sd-groove{stroke:#6E5114;stroke-opacity:.45;stroke-width:1;}
.sd-coil{fill:none;stroke:var(--sd-m2);stroke-linejoin:round;stroke-linecap:round;}
.sd-coil2{fill:none;stroke:var(--sd-m1);stroke-linejoin:round;stroke-linecap:round;opacity:.9;}
.sd-ubar{fill:var(--phys-s4);}
.sd-axis{stroke:var(--muted);stroke-width:1.5;}
.sd-road{fill:var(--sd-road);}
.sd-lane{stroke:#F2D25C;stroke-width:1.6;stroke-dasharray:12 10;}
.sd-carb{stroke:var(--sd-c2);stroke-width:1.2;}
.sd-glass{fill:#DDEFF9;opacity:.9;}
:root[data-theme="dark"] .sd-glass{fill:#9CC4DA;}
.sd-tire{fill:#22282C;}
.sd-hub{fill:#B9C2C8;}
.sd-hatch{stroke:var(--phys-s2);stroke-width:3;}
.sd-skid{stroke:var(--phys-s2);stroke-width:1;}
.sd-cone{fill:#F07C2A;stroke:#9C4510;stroke-width:1;}
.sd-tbar{fill:var(--phys-s2);fill-opacity:.8;}
.sd-start{stroke:var(--ink);stroke-width:2;stroke-dasharray:4 3;}
.sd-orbit{fill:none;stroke:var(--muted);stroke-width:1.2;stroke-dasharray:4 4;}
.sd-planet{stroke:var(--sd-p2);stroke-width:1.2;}
.sd-moon{stroke:var(--sd-ink2);stroke-width:1;}
.sd-panel{fill:#2F6FA8;stroke:#163E63;stroke-width:.8;}
.sd-satb{fill:#D8B14A;stroke:#6E5114;stroke-width:.8;}
.sd-grass{fill:#6BAF5A;}
.sd-soil{fill:#8B6A44;}
:root[data-theme="dark"] .sd-grass{fill:#3F7A33;} :root[data-theme="dark"] .sd-soil{fill:#5A4329;}
.sd-wall{stroke:var(--muted);stroke-width:1;}
.sd-ghost{fill:var(--sd-b1);fill-opacity:.28;stroke:var(--sd-b2);stroke-opacity:.5;stroke-width:1;}
.sd-water{stroke:none;}
.sd-pipe{stroke:#5C6B73;stroke-width:4;fill:none;stroke-linejoin:round;}
:root[data-theme="dark"] .sd-pipe{stroke:#A9BAC3;}
.sd-tracer{stroke:#fff;stroke-width:3.2;stroke-linecap:round;opacity:.92;}
.sd-tilef{stroke:#9C7B4A;stroke-width:2;}
.sd-bed{stroke:#5E7D3A;stroke-width:2;}
.sd-bed{fill:#9CC77A;} :root[data-theme="dark"] .sd-bed{fill:#3E6A30;}
.sd-grout{stroke:#9C7B4A;stroke-width:1;fill:none;stroke-opacity:.8;}
:root[data-theme="dark"] .sd-grout,:root[data-theme="dark"] .sd-tilef{stroke:#C9A877;}
.sd-orig{fill:none;stroke:var(--phys-s1);stroke-width:2.4;stroke-dasharray:5 3;}
.sd-crust{fill:#D9A35B;stroke:#9C6A2A;stroke-width:1.5;}
.sd-cheese{fill:#F6D776;}
:root[data-theme="dark"] .sd-crust{fill:#A87838;} :root[data-theme="dark"] .sd-cheese{fill:#C9A84A;}
.sd-pep{fill:#C2412D;stroke:#8E2A1B;stroke-width:.6;}
.sd-ctop{fill:var(--sd-t1);stroke:#9C7B4A;stroke-width:1.6;}
.sd-cside{fill:var(--sd-t2);stroke:#9C7B4A;stroke-width:1.6;filter:brightness(.88);}
.sd-cfront{fill:var(--sd-t2);stroke:#9C7B4A;stroke-width:1.6;}
:root[data-theme="dark"] .sd-ctop,:root[data-theme="dark"] .sd-cside,:root[data-theme="dark"] .sd-cfront{stroke:#C9A877;}
.sd-sym{font:900 18px var(--font-ui);}
.sd-k{font:800 15px var(--font-mono);}
.sd-y{fill:var(--cink) !important;}
.sd-b0{fill:var(--muted);fill-opacity:.35;}
.sd-b1{fill:var(--phys-s1);}
.sd-b1.y{fill:var(--cink);}
.sd-bq{fill:none;stroke:var(--cink);stroke-width:2;stroke-dasharray:5 4;}
.sd-surf{stroke:#2C78B0;stroke-width:1.5;}
.sd-glassw{fill:none;stroke:var(--muted);stroke-width:3;stroke-linejoin:round;}
.sd-ybar{fill:var(--cink);}
.sd-flag{fill:var(--phys-s3);stroke:var(--ink);stroke-width:1.5;}
.sd-cl{font:900 11px var(--font-ui);fill:#fff !important;}
.sd-hand{fill:#E8B98F;stroke:#9C6A3A;stroke-width:1;}
.sd-track{fill:none;stroke:var(--sd-road);stroke-width:14;stroke-opacity:.35;}
.sd-traj{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 4;}
.sd-diver{fill:#2B3236;} .sd-mask{fill:#F2D25C;} .sd-tankd{fill:#F07C2A;}
:root[data-theme="dark"] .sd-diver{fill:#11171A;}
.sd-jet{fill:none;stroke:#3F8FC2;stroke-width:4;stroke-linecap:round;}
.sd-rod{stroke:var(--sd-ink2);stroke-width:3;stroke-linecap:round;}
:root[data-theme="dark"] .sd-rod{stroke:#AEB6BC;}
.sd-tarc{fill:none;stroke:var(--phys-s4);stroke-width:3;stroke-linecap:round;}
.sd-fwin{fill:var(--surface2);opacity:.85;}
.sd-spoke{stroke:var(--sd-m2);stroke-width:4;stroke-linecap:round;}
.sd-dotm{fill:var(--phys-s2);}
.sd-leg{stroke:#7A5426;stroke-width:3;}
.sd-box{fill:#C99A5B;stroke:#7A5426;stroke-width:1.2;}
.sd-tape{stroke:#F2D25C;stroke-width:3;}
.sd-cush{fill:var(--phys-s4);fill-opacity:.55;stroke:var(--phys-s4);stroke-width:1.2;}
.sd-egg{fill:#FBF3E4;stroke:#B79E78;stroke-width:1.2;}
.sd-list{margin:6px 0;padding-left:20px;display:grid;gap:4px;}
.sd-dock{display:flex;flex-direction:column;gap:10px;}
.sd-dock .bt-select select{width:100%;}
.sd-fig{margin:0;display:flex;flex-direction:column;gap:6px;}
.sd-fig svg{width:100%;height:auto;max-height:220px;}
@media (max-width:899px){
  .sd-view > .sd-vtoggle,.ls-root .sd-view > .sd-vtoggle.tseg{display:inline-flex;align-self:flex-start;flex:none;}
  .sd-view.no-pic > .sd-vtoggle,.ls-root .sd-view.no-pic > .sd-vtoggle.tseg{display:none;}
  .sd-vtoggle button{min-height:36px !important;}
  .sd-view.show-pic:not(.no-pic) .sd-bar,.sd-view.show-bar .sd-pic{display:none;}
  .sd-pic svg,.sd-bar svg{max-height:none;}
  .sd-eq{font-size:16px;}
  /* phone: the Picture/Bars toggle sits in the pill row and the picture keeps
     the height (its caption already states the result). */
  .ls-root .ls-stage-body:has(> .sd-view),.ls-root .ls-stage-body:has(.sd-view.show-pic){position:static;}
  .ls-root .sd-view > .sd-vtoggle.tseg{position:absolute;top:10px;right:12px;z-index:2;}
  .ls-root .sd-view.show-pic:not(.no-pic) .sd-eq{display:none;}
  .sd-pic svg{max-height:100%;}
  .sd-pic .sd-cap,.sd-pic .sd-cap2{font-size:16px;} .sd-pic .sd-tl{font-size:15px;} .sd-pic .sd-dl,.sd-pic .sd-al{font-size:17px;} .sd-pic .sd-h{font-size:14px;}
}
@media (min-width:900px){
  .sd-view{display:flex;flex-direction:column;align-items:stretch;gap:6px;}
  .sd-pic{flex:1 1 auto;min-height:0;align-items:center;justify-content:center;}
  .sd-pic svg{max-height:100%;height:100%;}
  .sd-bar{flex:none;display:flex;justify-content:center;}
  .sd-pic:not([hidden]) + .sd-bar svg{max-height:min(190px,24vh);width:auto;max-width:100%;}
  .sd-pic[hidden] + .sd-bar{flex:1 1 auto;}
  .sd-pic[hidden] + .sd-bar svg{max-height:420px;}
}
