.accessory-panel{margin-top:18px;min-width:0;padding:20px 24px}
.robot-status-inner{grid-template-columns:minmax(124px,.7fr) minmax(240px,1.35fr) minmax(0,4.3fr)}
.movement-pad-distance{display:flex;flex:none;align-items:stretch;gap:8px;min-width:0}
.toolbar-distance{position:relative;display:flex;flex:0 0 88px;flex-direction:column;justify-content:center;min-width:0;min-height:44px;box-sizing:border-box;padding:3px 0 3px 9px;border-left:1px solid var(--line);cursor:help}
.robot-status-band .toolbar-distance .state-label{margin-bottom:2px;font-size:9px;letter-spacing:.3px;white-space:nowrap}
.accessory-distance-reading{margin:0;font-size:18px;font-weight:700;color:#176b5b;font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap}.accessory-distance-reading small{font-size:10px;font-weight:500;margin-left:3px}
.toolbar-distance:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:4px}
.toolbar-distance-detail{display:none;position:absolute;top:calc(100% + 7px);right:0;z-index:30;width:220px;max-width:calc(100vw - 32px);box-sizing:border-box;margin:0;padding:8px 10px;border-radius:7px;background:var(--navy);color:#fff;font-size:11px;line-height:1.4;overflow-wrap:anywhere;box-shadow:0 4px 14px #152d3926}
.toolbar-distance:hover .toolbar-distance-detail,.toolbar-distance:focus .toolbar-distance-detail{display:block}
@media(max-width:1300px){.robot-status-inner{grid-template-columns:minmax(132px,1fr) minmax(0,2fr)}.robot-status-band .movement-card{grid-column:1/-1;grid-row:2}.robot-status-band .movement-card{flex-wrap:wrap}.robot-status-band .movement-controls{flex:1 1 600px;flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:650px){.robot-status-inner{grid-template-columns:minmax(0,1fr)}.robot-status-band .movement-card{grid-column:1;grid-row:3}.robot-status-band .movement-controls{display:grid;flex:none;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.movement-pad-distance{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.toolbar-distance{min-width:0;padding-left:12px}.robot-status-band .toolbar-distance .state-label{font-size:10px}}
.accessory-led-guide{margin-top:14px;font-size:.8rem;line-height:1.5;color:#294e59}.accessory-led-guide summary{cursor:pointer;font-weight:600;min-height:30px}.accessory-led-guide>p{margin:8px 0}
.led-status-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:6px;margin:10px 0}
.led-status-example{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:7px 5px;min-width:0;border:1px solid #d3e1dc;border-radius:7px;background:#f7faf9;color:#23483f;font:inherit;cursor:pointer;text-align:center}
.led-status-example:hover,.led-status-example[aria-pressed="true"]{border-color:#167b6b;background:#e9f4ef}.led-status-example:focus-visible{outline:3px solid #167b6b;outline-offset:2px}
.led-status-label{display:block;max-width:100%;font-size:.76rem;font-weight:600;line-height:1.2;min-height:2.4em;overflow-wrap:anywhere}
.led-status-detail{box-sizing:border-box;min-height:64px;margin:8px 0;padding:9px 12px;border-left:3px solid #167b6b;border-radius:4px;background:#f0f7f3;font-size:.76rem;line-height:1.4;overflow-wrap:anywhere}.led-status-detail strong{display:block;color:#23483f;margin-bottom:2px}
.led-status-sample{display:block;width:96px;max-width:100%;height:auto;aspect-ratio:2/1;flex-shrink:0;overflow:hidden;border-radius:5px;background:#14251f;shape-rendering:crispEdges}
.led-preview-background{fill:#14251f}.led-preview-dot-off{fill:#293b34}.led-preview-dot-on{fill:#ff6565}
.led-preview-frame{opacity:0;animation-duration:var(--led-frame-duration);animation-delay:calc(var(--led-frame-index)*var(--led-frame-step));animation-iteration-count:infinite;animation-timing-function:steps(1,end)}.led-preview-first{opacity:1}
.led-status-sample[data-led-frames="2"] .led-preview-frame{animation-name:led-guide-2}.led-status-sample[data-led-frames="3"] .led-preview-frame{animation-name:led-guide-3}.led-status-sample[data-led-frames="4"] .led-preview-frame{animation-name:led-guide-4}.led-status-sample[data-led-frames="8"] .led-preview-frame{animation-name:led-guide-8}.led-status-sample[data-led-frames="11"] .led-preview-frame{animation-name:led-guide-11}
.accessory-led-guide:not([open]) .led-preview-frame{animation-play-state:paused}
@keyframes led-guide-2{0%{opacity:1}50%,100%{opacity:0}}@keyframes led-guide-3{0%{opacity:1}33.333333%,100%{opacity:0}}@keyframes led-guide-4{0%{opacity:1}25%,100%{opacity:0}}@keyframes led-guide-8{0%{opacity:1}12.5%,100%{opacity:0}}@keyframes led-guide-11{0%{opacity:1}9.090909%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.led-status-sample[data-led-frames] .led-preview-frame{animation:none;opacity:0}.led-status-sample[data-led-frames] .led-preview-first{opacity:1}}
@media(max-width:420px){.led-status-examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.led-status-example{padding:6px 3px}.led-status-label{font-size:.66rem;min-height:3.6em}.led-status-sample{width:80px}}
.accessory-panel .voice-panel-header{gap:12px;flex-wrap:wrap}.accessory-panel .voice-panel-header h2{margin:0}
.accessory-panel button,.accessory-panel select,.accessory-panel input{min-height:44px;max-width:100%;box-sizing:border-box}.accessory-panel .text-button{min-width:64px}
.accessory-grid{display:grid;grid-template-columns:minmax(0,1fr);margin-top:14px}
.accessory-display h3{margin:0 0 10px;font-size:.9rem;color:#294e59}.accessory-display{min-width:0}
.accessory-matrix-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.accessory-matrix-header .microcopy{margin:0 0 12px;overflow-wrap:anywhere}
.accessory-brightness{display:flex;align-items:center;gap:8px;font-size:.8rem;max-width:100%}.accessory-brightness select{min-width:64px;width:auto;border:1px solid #b7c9d1;border-radius:8px;padding:8px;background:#fbfdfe;color:#183540;font:inherit}
.accessory-icon-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}.accessory-icon-buttons .button{flex:1 1 78px;padding-inline:12px}
.accessory-text-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.accessory-text-form .field{display:grid;gap:6px;font-size:.8rem;min-width:0;margin:0}.accessory-text-form input{width:100%;min-width:0;border:1px solid #b7c9d1;border-radius:8px;padding:10px 12px;background:#fbfdfe;color:#183540;font:inherit}
.accessory-status{margin:14px 0 0;overflow-wrap:anywhere;color:#315b62}.accessory-command-help{margin:8px 0 0;overflow-wrap:anywhere}
@media(max-width:650px){.accessory-panel{padding:18px}}
@media(max-width:420px){.accessory-panel{padding:16px}.accessory-text-form{grid-template-columns:minmax(0,1fr)}.accessory-text-form>.button{width:100%}.accessory-matrix-header{display:block}.accessory-brightness{margin-bottom:12px}.accessory-icon-buttons .button{flex-basis:calc(50% - 8px)}}

/* Keep the complete toolbar on one row in a desktop browser side panel. */
@media(min-width:960px) and (max-width:1300px) {
  .robot-status-inner { grid-template-columns:minmax(112px,.8fr) minmax(210px,1.5fr) minmax(570px,4fr); gap:8px; padding-inline:16px; }
  .robot-status-band .status-group { padding-inline:8px; }
  .robot-status-band .movement-card { grid-column:auto; grid-row:auto; gap:8px; flex-wrap:nowrap; }
  .robot-status-band .movement-summary { flex:1 1 88px; }
  .robot-status-band .movement-summary strong { font-size:12px; text-align:left; }
  .robot-status-band .movement-controls { flex:0 0 auto; flex-wrap:nowrap; justify-content:flex-end; gap:6px; }
  .robot-status-band .arm-switch { padding-inline:7px; gap:6px; }
  .robot-status-band .arm-switch>span:last-child { max-width:64px; white-space:normal; }
  .robot-status-band .arm-switch .switch { width:34px; height:22px; }
  .robot-status-band .arm-switch .switch:after { width:16px; height:16px; }
  .robot-status-band .arm-switch>input:checked+.switch:after { transform:translateX(12px); }
  .robot-status-band #stopButton { padding-inline:9px; gap:5px; font-size:12px; }
  .robot-status-band .rest-position-button { max-width:82px; padding-inline:7px; white-space:normal; }
  .robot-status-band .movement-pad-toggle { max-width:none; padding-inline:7px 18px; gap:5px; }
  .robot-status-band #movementPadToggle>.movement-pad-icon { width:20px; height:20px; }
  .robot-status-band .movement-pad-distance { gap:6px; }
  .robot-status-band .toolbar-distance { flex-basis:78px; width:78px; padding-left:6px; }
}
