/* The depth control changes only the canvas view, never the surrounding interface. */
.pill .depth-toggle {
  flex:none; height:42px; min-width:45px; padding:0 11px;
  border-radius:0 23px 23px 0; font-size:11px; letter-spacing:.03em;
  font-variant-numeric:tabular-nums; color:var(--muted);
}
.pill .depth-toggle[aria-pressed="true"] { color:var(--ice); background:var(--selected,#a8beed20); }
.pill .depth-toggle:hover { background:var(--action-hover,#a8beed15); }
.pill .depth-toggle:focus-visible { outline-offset:-4px; }
.swarm-view { margin-top:14px; }
.swarm-view-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.swarm-view-label { font-size:11px; color:var(--muted); }
.swarm-view-options { display:flex; flex:none; padding:3px; gap:3px; border:1px solid var(--line); border-radius:10px; }
.swarm-view-options button { min-width:43px; min-height:33px; padding:6px 10px; border-radius:7px; font-size:11px; color:var(--muted); }
.swarm-view-options button[aria-pressed="true"] { background:var(--selected,#a8beed20); color:var(--selected-ink,var(--ink)); }
#motionPanel #depthDescription { margin:9px 0 0; font-size:10px; line-height:1.65; }
#motionPanel { max-height:calc(100dvh - 115px); overflow:auto; }
@media(max-width:640px) {
  .pill .depth-toggle { min-width:42px; padding:0 9px; }
}

.swarm-depth-range { display:flex; align-items:center; gap:10px; margin-top:12px; color:var(--muted); font-size:11px; }
.swarm-depth-range input { flex:1; min-width:0; height:24px; accent-color:var(--ice); }
.swarm-depth-range output { min-width:38px; text-align:end; color:var(--ink); font-variant-numeric:tabular-nums; }
.swarm-depth-range:has(input:disabled) { opacity:.5; }

