/* Brake-shoes-press-against explainer: a cutaway S-cam drum brake workbench. Foot valve, brake chamber, pushrod,
   slack adjuster, S-cam, two shoes on their anchor pins and a turning drum, with a wedge and disc comparison.
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .bs-*.
   Shared geometry with the script: drum centre 236,138; camshaft 168.34,138; anchor pins 304.47,123.45 and
   304.47,152.55; foot pedal hinge 16,114. Without script the stylesheet's pose shows a firm 50 PSI press in
   adjustment: shoes against the inside of the drum, rod out 1.24 inches, adjuster at 89 degrees. */
.bs-page{--bs-amber:var(--sbp-amber,#ffb400);--bs-air:#5fd8ff;--bs-hot:#ff7a1a;--bs-red:#ef4444;--bs-ok:#31d67b;--bs-console:#151b20}
.bs-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.bs-demo{padding-block:64px 72px;background:var(--paper)}
.bs-demo-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel" "read panel";grid-template-rows:auto auto 1fr;gap:18px 40px;align-items:start}
.bs-head{grid-area:head}
.bs-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#222a30,#0d1114 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.bs-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1418}
.bs-read{grid-area:read;display:grid;gap:14px;min-width:0}
.bs-panel{grid-area:panel;display:grid;gap:16px;min-width:0}
.bs-ctrl,.bs-notes{display:grid;gap:14px;min-width:0}

/* tell-tales above the picture; script on */
.bs-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.bs-stage.is-js .bs-hud{display:flex}
.bs-chip{display:inline-flex;align-items:center;gap:7px;margin:0;padding:6px 10px 6px 8px;border-radius:8px;background:#080b0d;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap}
.bs-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--bs-ok);box-shadow:0 0 8px rgb(49 214 123/.7);transition:background .2s,box-shadow .2s}
.bs-chip span{color:#a9b3b8;font-weight:600}
.bs-chip b{color:#e8eef0;font-weight:800}
.bs-stage[data-mode="fade"] .bs-chip-mode i{background:var(--bs-hot);box-shadow:0 0 10px rgb(255 122 26/.9)}
.bs-stage[data-mode="adjust"] .bs-chip-mode i{background:var(--bs-red);box-shadow:0 0 10px rgb(239 68 68/.85)}
.bs-stage[data-mode="type"] .bs-chip-mode i{background:var(--bs-air);box-shadow:0 0 10px rgb(95 216 255/.8)}
.bs-stage[data-contact="off"] .bs-chip-drum i{background:var(--bs-ok)}
.bs-stage[data-contact="on"] .bs-chip-drum i{background:var(--bs-amber);box-shadow:0 0 10px rgb(255 180 0/.8)}
.bs-stage[data-contact="off"] .bs-chip-shoes i{background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166}
.bs-stage[data-contact="on"] .bs-chip-shoes i{background:var(--bs-amber);box-shadow:0 0 10px rgb(255 180 0/.8)}

/* the picture: backdrop and labels */
.bs-bg{fill:#0f1418}
.bs-label{fill:#c9d3d8;font-size:7.4px;font-weight:800;letter-spacing:.05em;text-anchor:middle;paint-order:stroke;stroke:#0d1215;stroke-width:2.4px;stroke-linejoin:round}
.bs-label.is-start{text-anchor:start}
.bs-label.is-end{text-anchor:end}
.bs-label-top{fill:#eef3f5;font-size:8.4px;letter-spacing:.04em}
.bs-label-small{font-size:5.8px;fill:#e2e8ea;letter-spacing:.06em;text-transform:uppercase}
.bs-leader{fill:none;stroke:#7d8b92;stroke-width:.8;stroke-dasharray:2 1.6}
.bs-tag-dot{fill:#0b0f12;stroke:#6d7a80;stroke-width:1.2;transition:fill .15s,stroke .15s}
.bs-tag-num{fill:#c9d3d8;font-size:7px;font-weight:900;text-anchor:middle}
.bs-tag-text{fill:#c9d3d8;font-size:7.4px;font-weight:800;letter-spacing:.03em;paint-order:stroke;stroke:#0d1215;stroke-width:2.4px;stroke-linejoin:round;transition:fill .15s}
.bs-tag-text.is-end{text-anchor:end}
.bs-tag.is-on .bs-tag-dot,.bs-stage.is-static .bs-tag-dot{fill:var(--bs-amber);stroke:#ffe3a1}
.bs-tag.is-on .bs-tag-num,.bs-stage.is-static .bs-tag-num{fill:#1a1206}
.bs-tag.is-on .bs-tag-text,.bs-stage.is-static .bs-tag-text{fill:#ffd27a}
.bs-arc-label{fill:#fff3d6;font-size:6.2px;font-weight:900;letter-spacing:.2em;text-transform:uppercase;text-anchor:middle;paint-order:stroke;stroke:#221710;stroke-width:2px;stroke-linejoin:round;pointer-events:none}

/* the foot brake valve and the air hose */
.bs-floor{fill:#2a3237}
.bs-plunger{fill:#aab4b8;stroke:#20282d;stroke-width:.6;transform-box:view-box;transform:translateY(4.75px)}
.bs-valve-body{fill:url(#bs-g-housing);stroke:#0b0f12;stroke-width:1}
.bs-valve-line{fill:none;stroke:#1a2024;stroke-width:1}
.bs-pedal{transform-box:view-box;transform-origin:16px 114px;transform:rotate(6.67deg)}
.bs-treadle{fill:#3b454b;stroke:#0b0f12;stroke-width:1}
.bs-treadle-ribs{fill:none;stroke:#1d2327;stroke-width:1.4;stroke-linecap:round}
.bs-hinge{fill:#aab4b8;stroke:#20282d;stroke-width:1}
.bs-hose{fill:none;stroke:#2c353a;stroke-width:5;stroke-linecap:round}
.bs-hose-air{fill:none;stroke:var(--bs-air);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:3 5;opacity:0;transition:opacity .2s}
.bs-stage[data-air="on"] .bs-hose-air{opacity:.95}
.bs-stage.is-js[data-air="on"] .bs-hose-air{animation:bs-flow .5s linear infinite}
@keyframes bs-flow{to{stroke-dashoffset:-8}}

/* backing plate, drum and hub */
.bs-gap{fill:none;stroke:#040607;stroke-width:2}
.bs-plate-bolts circle{fill:#3a444a;stroke:#0b0f12;stroke-width:.8}
.bs-halo{fill:none;stroke:#ff6a1a;stroke-width:14;opacity:0;transition:opacity .5s}
.bs-drum-size{transform-box:view-box;transform-origin:236px 138px;transition:transform .7s cubic-bezier(.3,1.2,.5,1)}
.bs-spin{transform-box:view-box;transform-origin:236px 138px}
.bs-drum-body{fill:url(#bs-g-drum);stroke:#0b0f12;stroke-width:.8;transition:fill .4s}
.bs-fins{fill:none;stroke:#3a4247;stroke-width:4.4;transition:stroke .4s}
.bs-drum-face{fill:none;stroke:#eef3f4;stroke-width:.9;opacity:.75}
.bs-drum-holes circle{fill:#1a2024;stroke:#7d878c;stroke-width:.6}
.bs-drum-index{fill:none;stroke:#f4f1e6;stroke-width:3;stroke-linecap:round;opacity:.85}
.bs-glow{opacity:.86;transition:opacity .15s}
.bs-glow-blur{fill:none;stroke:#ff9a3c;stroke-width:6;opacity:.9}
.bs-glow-line{fill:none;stroke:#ffe2a0;stroke-width:1.8;stroke-linecap:round}
.bs-glow-part{display:none}
.bs-stage[data-mode="fade"] .bs-glow-full,.bs-stage[data-mode="adjust"] .bs-glow-full{display:none}
.bs-stage[data-mode="fade"] .bs-glow-part,.bs-stage[data-mode="adjust"] .bs-glow-part{display:inline}
.bs-cold{fill:none;stroke:#8fdcff;stroke-width:.9;stroke-dasharray:3 3;opacity:0;transition:opacity .4s}
.bs-hub-ring{fill:none;stroke:#2a3237;stroke-width:1}
.bs-studs circle{fill:url(#bs-g-steel);stroke:#2a3237;stroke-width:.6}
.bs-spindle{fill:#20282d;stroke:#6d7a80;stroke-width:1}
.bs-nut{fill:#8d999e;stroke:#2a3237;stroke-width:.8}

/* the hot drum: glows, expands past its dashed cold size */
.bs-stage[data-mode="fade"] .bs-drum-size{transform:scale(1.0217)}
.bs-stage[data-mode="fade"] .bs-drum-body{fill:url(#bs-g-hot)}
.bs-stage[data-mode="fade"] .bs-fins{stroke:#9a2a10}
.bs-stage[data-mode="fade"] .bs-halo{opacity:.5}
.bs-stage[data-mode="fade"] .bs-cold{opacity:.85}
.bs-stage[data-mode="fade"] .bs-lining{fill:#7a4524}
.bs-stage.is-js[data-mode="fade"] .bs-halo{animation:bs-heat 1.6s ease-in-out infinite}
@keyframes bs-heat{50%{opacity:.25}}

/* the return spring and the brake shoes */
.bs-rspring{fill:none;stroke:#e0c35a;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.bs-shoe{transform-box:view-box}
.bs-shoe-up{transform-origin:304.47px 123.45px;transform:rotate(0deg)}
.bs-shoe-lo{transform-origin:304.47px 152.55px;transform:rotate(0deg)}
.bs-web{fill:#6b767c;stroke:#20282d;stroke-width:.7}
.bs-web-holes circle,.bs-hook{fill:#151b1f}
.bs-boss{fill:#7d898f;stroke:#20282d;stroke-width:.7}
.bs-table{fill:url(#bs-g-steel);stroke:#20282d;stroke-width:.6}
.bs-lining{fill:url(#bs-g-lining);stroke:#2a1e14;stroke-width:.6;transition:fill .4s}
.bs-lining-worn{display:none}
.bs-stage[data-mode="adjust"] .bs-lining-new{display:none}
.bs-stage[data-mode="adjust"] .bs-lining-worn{display:inline}
.bs-lining-tex{fill:none;stroke:#9a8064;stroke-width:.5;stroke-dasharray:1 2.4;opacity:.6}
.bs-stage[data-mode="adjust"] .bs-lining-tex{display:none}
.bs-rivets circle{fill:#c4ad86}
.bs-roller{fill:url(#bs-g-steel);stroke:#20282d;stroke-width:.8}
.bs-roller-pin{fill:#20282d}
.bs-pin{fill:url(#bs-g-steel);stroke:#0b0f12;stroke-width:1}

/* the brake chamber, pushrod, slack adjuster and S-cam */
.bs-port{fill:#6d7a80;stroke:#20282d;stroke-width:.6}
.bs-housing{fill:url(#bs-g-housing);stroke:#0b0f12;stroke-width:1}
.bs-cavity{fill:#0b1013;stroke:#000;stroke-width:.6}
.bs-air{opacity:.8;transition:opacity .15s}
.bs-cspring{fill:none;stroke:#aab4b8;stroke-width:1.5;stroke-linejoin:round}
.bs-diaphragm{fill:none;stroke:#050607;stroke-width:3.2;stroke-linecap:round}
.bs-pushplate{fill:#c9d0d3;stroke:#20282d;stroke-width:.5}
.bs-clamp,.bs-clamp-bolt{fill:#8d999e;stroke:#20282d;stroke-width:.8}
.bs-vent circle{fill:#e6f6ff;opacity:0}
.bs-stage.is-js[data-vent="on"] .bs-vent circle{transform-box:fill-box;transform-origin:center;animation:bs-puff .7s ease-out infinite}
.bs-stage.is-js[data-vent="on"] .bs-vent circle:nth-child(2){animation-delay:.2s}
.bs-stage.is-js[data-vent="on"] .bs-vent circle:nth-child(3){animation-delay:.4s}
@keyframes bs-puff{from{transform:scale(.4);opacity:.8}to{transform:scale(2);opacity:0}}
.bs-rod{stroke:#d5dcdf;stroke-width:3.4;stroke-linecap:round;transition:stroke .15s}
.bs-arm,.bs-cam{transform-box:view-box;transform-origin:168.34px 138px;transform:rotate(-14.26deg)}
.bs-arm-bar{fill:#8d999e;stroke:#20282d;stroke-width:.8;transition:stroke .15s}
.bs-arm-body{fill:#5c676d;stroke:#20282d;stroke-width:.8;transition:stroke .15s}
.bs-arm-worm{fill:none;stroke:#c9d0d3;stroke-width:1.2;stroke-dasharray:1.4 1}
.bs-arm-grease{fill:#e0c35a}
.bs-arm-hub{fill:#4a555b;stroke:#20282d;stroke-width:1}
.bs-arm-eye{fill:#aab4b8;stroke:#20282d;stroke-width:.8}
.bs-arm-pin{fill:#20282d}
.bs-cam-body{fill:url(#bs-g-steel);stroke:#1a2024;stroke-width:.9;transition:stroke .15s}
.bs-cam-shaft{fill:#3b454b;stroke:#0b0f12;stroke-width:1}
.bs-cam-spline{fill:none;stroke:#c9d0d3;stroke-width:1}
/* the part each lit step reaches picks up the amber */
.bs-stage:is([data-step="2"],[data-step="3"],[data-step="4"],[data-step="5"]) .bs-rod{stroke:#ffd27a}
.bs-stage:is([data-step="3"],[data-step="4"],[data-step="5"]) .bs-arm-body,.bs-stage:is([data-step="3"],[data-step="4"],[data-step="5"]) .bs-arm-bar{stroke:#ffb400;stroke-width:1.2}
.bs-stage:is([data-step="4"],[data-step="5"]) .bs-cam-body{stroke:#ffb400;stroke-width:1.3}
.bs-stage[data-stroke="over"] .bs-rod{stroke:#ff8a80}

/* compare: S-cam, wedge and disc; shown in the Wedge / Disc condition */
.bs-cmp{opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.bs-stage[data-mode="type"] .bs-cmp{opacity:1;visibility:visible}
.bs-cmp-bg{fill:#0b1013;stroke:#ffffff;stroke-opacity:.08}
.bs-cmp-title{fill:#fff;font-size:10px;font-weight:800;text-anchor:middle;letter-spacing:.02em}
.bs-cmp-card{fill:#141b20;stroke:#2c363c;stroke-width:1}
.bs-cmp-card.is-common{stroke:var(--bs-amber);stroke-opacity:.7}
.bs-cmp-name{fill:#fff;font-size:10px;font-weight:800;text-anchor:middle}
.bs-cmp-tagline{fill:#9fb0b8;font-size:7px;font-weight:700;text-anchor:middle;letter-spacing:.04em}
.bs-cmp-tagline.is-common{fill:var(--bs-amber)}
.bs-cmp-cap{fill:#c9d3d8;font-size:7.4px;font-weight:700;text-anchor:middle}
.bs-cmp-rule{fill:none;stroke:#ffffff;stroke-opacity:.12;stroke-width:1}
.bs-cmp-small{fill:#8f9ba1;font-size:6.6px;font-weight:800;text-anchor:middle;letter-spacing:.1em;text-transform:uppercase}
.bs-cmp-against{fill:#ffd27a;font-size:9px;font-weight:900;text-anchor:middle}
.bs-cmp-foot{fill:#8f9ba1;font-size:7px;font-weight:700;text-anchor:middle}
.bs-mini-drum{fill:#5d676d;fill-rule:evenodd;stroke:#0b0f12;stroke-width:.8}
.bs-mini-plate{fill:#12181c}
.bs-mini-glow{opacity:0;transition:opacity .15s}
.bs-mini-glow circle{fill:none;stroke:#ffb347;stroke-width:2.4}
.bs-mini-glow rect{fill:#ffb347}
.bs-mini-shoe,.bs-mini-cam,.bs-mini-wedge,.bs-mini-pad,.bs-mini-lever{transform-box:view-box}
.bs-mini-web{fill:#6b767c;stroke:#20282d;stroke-width:.5}
.bs-mini-lining{fill:#6a523c;stroke:#2a1e14;stroke-width:.5}
.bs-mini-pin{fill:#c9d0d3;stroke:#0b0f12;stroke-width:.7}
.bs-mini-cam{transform-origin:37px 124px}
.bs-mini-cam path{fill:#c9d0d3;stroke:#1a2024;stroke-width:.6}
.bs-mini-hub{fill:#3b454b;stroke:#0b0f12;stroke-width:.7}
.bs-mini-chamber{fill:#3b444a;stroke:#0b0f12;stroke-width:.8}
.bs-mini-rod{fill:none;stroke:#d5dcdf;stroke-width:2.4;stroke-linecap:round}
.bs-mini-wedge-body{fill:#e0c35a;stroke:#6e5410;stroke-width:.7;stroke-linejoin:round}
.bs-mini-axle{fill:#3b454b}
.bs-mini-hubflange{fill:#5c676d;stroke:#20282d;stroke-width:.6}
.bs-mini-rotor{fill:#8d969b;stroke:#20282d;stroke-width:.7}
.bs-mini-vents{fill:none;stroke:#3b444a;stroke-width:1.4}
.bs-mini-caliper{fill:#4a555b;stroke:#0b0f12;stroke-width:.7}
.bs-mini-pad-back{fill:#aab4b8}
.bs-mini-screw{fill:none;stroke:#c9d0d3;stroke-width:1.2}
.bs-mini-lever{transform-origin:254px 96px}
.bs-mini-lever path{fill:none;stroke:#8d999e;stroke-width:3;stroke-linecap:round}
.bs-mini-lever circle{fill:#5c676d;stroke:#0b0f12;stroke-width:.7}
.bs-mini-shoe[data-bs-mini="scam-up"]{transform-origin:91.66px 119.62px}
.bs-mini-shoe[data-bs-mini="scam-lo"]{transform-origin:91.66px 128.38px}
.bs-mini-shoe[data-bs-mini="wedge-l"],.bs-mini-shoe[data-bs-mini="wedge-r"]{transform-origin:180px 153px}

/* readouts and the five-step chain */
.bs-meters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bs-meter{display:grid;gap:4px;margin:0;padding:10px 11px 11px;border-radius:12px;background:linear-gradient(180deg,#1d252b,#12181c);box-shadow:inset 0 1px 0 rgb(255 255 255/.06);min-width:0}
.bs-meter-name{color:#a9b3b8;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;line-height:1.2}
.bs-meter-val{color:#fff;font-size:21px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.bs-bar{position:relative;display:block;height:6px;margin-top:2px;border-radius:3px;background:#070a0c;box-shadow:inset 0 0 0 1px rgb(255 255 255/.08)}
.bs-fill{position:absolute;inset:0 auto 0 0;border-radius:3px;background:var(--bs-air);transition:width .15s}
.bs-fill-psi{width:83.33%}
.bs-fill-stroke{width:49.78%;background:#d5dcdf}
.bs-fill-angle{width:48.33%;background:#d5dcdf}
.bs-fill-force{width:81%;background:var(--bs-amber)}
.bs-mark{position:absolute;top:-3px;bottom:-3px;width:2px;border-radius:1px}
.bs-mark-limit{left:80%;background:var(--bs-red)}
.bs-mark-square{left:50%;background:var(--bs-ok)}
.bs-stage[data-stroke="over"]~.bs-read .bs-fill-stroke,.bs-stage[data-stroke="over"]~.bs-read .bs-fill-angle{background:var(--bs-red)}
.bs-stage[data-mode="fade"]~.bs-read .bs-fill-force,.bs-stage[data-mode="adjust"]~.bs-read .bs-fill-force{background:var(--bs-hot)}
.bs-chain{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.bs-step{position:relative;display:grid;align-content:start;gap:6px;min-width:0;padding:10px 9px 11px;border-radius:12px;background:var(--white,#fffffc);box-shadow:inset 0 0 0 1px var(--line,rgb(0 0 0/.12));color:var(--ink);font-size:14px;font-weight:700;line-height:1.25;transition:opacity .2s,box-shadow .2s}
.bs-step b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#2a3237;color:#fff;font-size:13px;font-weight:900;transition:background .2s,color .2s}
.bs-step:not(:last-child)::after{content:"";position:absolute;top:18px;right:-8px;width:8px;height:8px;border-top:2px solid #8f9ba1;border-right:2px solid #8f9ba1;transform:translateX(-1px) rotate(45deg) scale(.7)}
.bs-chain:not(.is-live) .bs-step b,.bs-step.is-on b{background:var(--bs-amber);color:#1a1206}
.bs-step.is-on{box-shadow:inset 0 0 0 2px var(--bs-amber)}
.bs-chain.is-live .bs-step:not(.is-on){opacity:.5}

/* controls: one dark console; every button the same dark face with white text and an amber ring */
.bs-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.bs-ask[hidden],.bs-controls[hidden]{display:none}
.bs-ask b{font-weight:800}
.bs-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#232b31,var(--bs-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e8eef0}
.bs-slider{display:grid;gap:4px;padding:10px 12px 8px;border-radius:12px;background:#0b0f12;box-shadow:inset 0 0 0 1px rgb(255 255 255/.08)}
.bs-slider-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px;color:#dfe6e9;font-size:15px;font-weight:700}
.bs-slider-out{color:var(--bs-air);font-size:22px;font-weight:900;font-variant-numeric:tabular-nums}
.bs-range-wrap{position:relative;display:block;height:40px}
.bs-range-wrap::before{content:"";position:absolute;left:0;right:0;top:15px;height:10px;border-radius:5px;background:#1d252b;box-shadow:inset 0 0 0 1px rgb(255 255 255/.12)}
.bs-range-fill{position:absolute;left:0;top:15px;height:10px;width:14px;border-radius:5px;background:linear-gradient(90deg,#19a9d6,var(--bs-air))}
.bs-range{position:relative;display:block;width:100%;height:40px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.bs-range::-webkit-slider-runnable-track{height:10px;background:transparent;border:0}
.bs-range::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-9px;border:3px solid #0b0f12;border-radius:50%;background:radial-gradient(circle at 38% 32%,#fff3c4,var(--bs-amber) 55%,#a36f00);box-shadow:0 0 0 2px rgb(255 180 0/.35),0 4px 10px rgb(0 0 0/.6)}
.bs-range::-moz-range-track{height:10px;background:transparent;border:0}
.bs-range::-moz-range-thumb{width:22px;height:22px;border:3px solid #0b0f12;border-radius:50%;background:radial-gradient(circle at 38% 32%,#fff3c4,var(--bs-amber) 55%,#a36f00);box-shadow:0 0 0 2px rgb(255 180 0/.35),0 4px 10px rgb(0 0 0/.6)}
.bs-range:focus{outline:none}
.bs-range:focus-visible{outline:3px solid var(--bs-amber);outline-offset:2px;border-radius:8px}
.bs-ticks{display:flex;justify-content:space-between;margin:0;color:#8f9ba1;font-size:12px;font-weight:700}
.bs-row{display:grid;gap:8px}
.bs-row-press{grid-template-columns:repeat(3,minmax(0,1fr))}
.bs-row-press .bs-btn{flex-direction:column;align-items:flex-start;gap:5px;padding:9px 10px}
.bs-row-mode{grid-template-columns:repeat(2,minmax(0,1fr))}
.bs-row-name{margin:2px 0 -4px;color:#a9b3b8;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.bs-btn{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;padding:9px 11px;border:0;border-radius:12px;background:linear-gradient(180deg,#303a41,#1b2227);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #06090b,0 8px 16px -10px rgb(0 0 0/.7);color:#fff;font:inherit;font-size:15px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.bs-btn:hover{background:linear-gradient(180deg,#38434b,#20282d)}
.bs-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #06090b}
.bs-btn[aria-pressed="true"]{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--bs-amber),0 1px 0 #06090b}
.bs-btn:focus-visible{outline:3px solid var(--bs-amber);outline-offset:3px}
.bs-name{display:grid;gap:3px;min-width:0}
.bs-name small{color:#a9b3b8;font-size:13px;font-weight:600}
.bs-btn[aria-pressed="true"] .bs-name small{color:#ffd27a}
.bs-icon{flex:none;width:40px;height:28px}
.bs-icon-floor{fill:#3d464b}
.bs-icon-plate{fill:#d7dddd}
.bs-btn[aria-pressed="true"] .bs-icon-plate{fill:var(--bs-amber)}
.bs-icon-pin{fill:#e9eef0}
.bs-icon-air{fill:none;stroke:var(--bs-air);stroke-width:2;stroke-linecap:round}
.bs-icon-drum{fill:none;stroke:#8d999e;stroke-width:3}
.bs-icon-drum.is-hot{stroke:var(--bs-hot)}
.bs-icon-shoe{fill:none;stroke:#d7dddd;stroke-width:2.4;stroke-linecap:round}
.bs-icon-cam{fill:#d7dddd}
.bs-icon-flame{fill:#ffb347}
.bs-icon-ruler{fill:#3d464b}
.bs-icon-ticks{fill:none;stroke:#d7dddd;stroke-width:1.4}
.bs-icon-arrow{fill:none;stroke:#ff8a80;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bs-icon-wedge{fill:#e0c35a}
.bs-icon-disc{fill:#d7dddd}
.bs-icon-pad{fill:none;stroke:var(--bs-amber);stroke-width:2.6;stroke-linecap:round}
.bs-reset{justify-self:start;min-height:46px;padding:8px 16px 8px 13px;gap:8px}
.bs-reset-icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bs-status{display:block;min-height:8.7em;padding:12px 14px 12px 16px;border-left:5px solid var(--bs-amber);border-radius:0 10px 10px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45;transition:border-color .2s}
.bs-stage[data-contact="off"]~.bs-panel .bs-status{border-left-color:#8f9ba1}
.bs-stage[data-mode="fade"]~.bs-panel .bs-status{border-left-color:var(--bs-hot)}
.bs-stage[data-mode="adjust"]~.bs-panel .bs-status{border-left-color:var(--bs-red)}
.bs-stage[data-mode="type"]~.bs-panel .bs-status{border-left-color:var(--bs-air)}
.bs-text{margin:0;max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

@media (min-width:761px){
  .bs-page .sbp-film-frame.is-wide{aspect-ratio:auto;padding-bottom:58px;background:#0b0d0f}
  .bs-page .sbp-film-frame.is-wide video{aspect-ratio:16/9;width:100%;height:auto}
  .bs-page .sbp-film-frame.is-wide .sbp-play{bottom:58px}
  .bs-page .sbp-film-frame.is-wide .sbp-sound-on{left:12px;right:auto;top:auto;bottom:10px}
  .bs-page .sbp-film-frame.is-wide .sbp-pause{right:12px;top:auto;bottom:10px}
}
@media (max-width:1100px) and (min-width:901px){
  .bs-meters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bs-step{font-size:13px}
}
@media (max-width:900px){
  .bs-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "ctrl" "read" "notes";grid-template-rows:none;gap:16px}
  .bs-panel{display:contents}
  .bs-ctrl{grid-area:ctrl}
  .bs-notes{grid-area:notes}
}
@media (max-width:760px){
  .bs-demo{padding-block:36px 44px}
  .bs-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .bs-svg{border-radius:8px}
  .bs-hud{gap:5px;padding:0 0 8px}
  .bs-chip{padding:5px 7px 5px 6px;font-size:11.5px;gap:5px}
  .bs-chip i{width:8px;height:8px}
  .bs-ctrl,.bs-notes,.bs-read{gap:10px}
  .bs-ask{font-size:18px}
  .bs-controls{gap:10px;margin-inline:-8px;padding:12px 10px}
  .bs-row{gap:6px}
  .bs-btn{min-height:54px;padding:8px 9px;gap:8px;font-size:15px}
  .bs-icon{width:34px;height:24px}
  .bs-name small{font-size:12px}
  .bs-meters{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .bs-meter{padding:8px 10px 9px}
  .bs-meter-name{font-size:11px}
  .bs-meter-val{font-size:19px}
  .bs-chain{gap:5px}
  .bs-step{padding:8px 5px 9px;gap:5px;font-size:12px;line-height:1.2}
  .bs-step b{width:22px;height:22px;font-size:12px}
  .bs-step:not(:last-child)::after{right:-6px;top:16px}
  .bs-status{min-height:10.2em;padding:10px 12px;font-size:15px}
  .bs-text{font-size:16px}
  .bs-label,.bs-tag-text{font-size:9px;letter-spacing:.01em}
  .bs-label-top{font-size:9.6px}
  .bs-label-small{font-size:7.6px;letter-spacing:.02em}
  .bs-arc-label{font-size:7.8px;letter-spacing:.12em}
  .bs-cmp-cap{font-size:8.6px}
  .bs-cmp-small{font-size:7.6px;letter-spacing:.05em}
  .bs-cmp-against{font-size:9.4px}
  .bs-cmp-foot{font-size:8.2px}
}
@media (max-width:480px){
  .bs-row-press .bs-btn{flex-direction:column;justify-content:center;gap:4px;padding:8px 4px;text-align:center}
  .bs-row-press .bs-name small{display:none}
  .bs-row-mode .bs-icon{display:none}
}
@media (max-width:380px){
  .bs-step{font-size:11px;padding-inline:4px}
}
@media (prefers-reduced-motion:reduce){
  .bs-page .bs-demo *{transition:none!important;animation:none!important}
}
