/* Shared model controls: native range inputs, quiet view buttons and playback dock. */
:root{--model-accent:#226b83;--model-track:#dce7ee;--model-gradient:linear-gradient(90deg,#397cbb,#32a7ac)}
html body input[type=range].model-range{appearance:none;-webkit-appearance:none;height:32px;min-height:32px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;accent-color:#268da1}
html body input[type=range].model-range::-webkit-slider-runnable-track{height:7px;border:0;border-radius:99px;background:var(--model-gradient) left/var(--range-fill,0%) 100% no-repeat,var(--model-track);box-shadow:inset 0 1px 2px #214c6512}
html body input[type=range].model-range::-moz-range-track{height:7px;border:0;border-radius:99px;background:var(--model-gradient) left/var(--range-fill,0%) 100% no-repeat,var(--model-track)}
html body input[type=range].model-range::-moz-range-progress{background:transparent}
html body input[type=range].model-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin-top:-6.5px;border:3px solid white;border-radius:50%;background:linear-gradient(135deg,#3984b9,#299da5);box-shadow:0 0 0 1px #77a9bb66,0 2px 5px #1c54642e}
html body input[type=range].model-range::-moz-range-thumb{width:14px;height:14px;border:3px solid white;border-radius:50%;background:linear-gradient(135deg,#3984b9,#299da5)}
html body input[type=range].model-range:focus-visible{outline:2px solid #408fa9;outline-offset:2px}
html body .model-ui-button{background:#f7fafc;color:#315c70;border:1px solid #c9dce4;border-radius:8px;min-height:44px;cursor:pointer}
html body .model-ui-button:is(.active,.on,[aria-pressed=true]){background:var(--model-accent);color:white;border-color:var(--model-accent)}
html body.night-mode .model-ui-button{background:#203d4d;color:#e5f1f6;border-color:#486675}
html body.night-mode .model-ui-button:is(.active,.on,[aria-pressed=true]){background:#28768c;color:white;border-color:#4a9bb0}
.model-bottom-controls{position:absolute;inset:auto 0 0;height:64px;z-index:30;border-top:1px solid #d5eaf00b;background:linear-gradient(180deg,#102b3900,#081d2a40)}
.model-motion-controls{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;gap:6px}
.model-motion-controls[hidden]{display:none}
.model-motion-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d9edf245;border-radius:9px;background:#14334230;color:#d5e6ed;cursor:pointer;touch-action:manipulation}
.model-motion-controls button[aria-pressed=true]{background:#d8edf21f;border-color:#c7e4ef88;color:white}
.model-motion-controls button:hover{background:#d6edf22b}
.model-motion-controls button:focus-visible{outline:2px solid #d5eff7;outline-offset:3px}
.model-motion-controls button:disabled{opacity:.3;cursor:default}
.model-motion-controls svg{width:21px;height:21px;fill:currentColor;pointer-events:none}
.model-expand-control{position:absolute;right:12px;top:12px;z-index:30;width:44px;height:44px;display:grid;place-items:center;border:1px solid #b8d2dd;border-radius:9px;background:#edf6f9e8;color:#22556b;cursor:pointer}
.model-expand-control svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
