room-explorer{display:block;--re-header-height:64px;--re-stage-height:0px;color:var(--ink,#202830)}
.re-choice{display:flex;align-items:center;gap:16px 24px;flex-wrap:wrap;margin:0 0 18px;font:13px/1.5 var(--sans,"Segoe UI",sans-serif)}
.re-choice label{display:flex;align-items:center;gap:12px;font-weight:600}
.re-choice select{min-height:44px;padding:8px 34px 8px 12px;border:1px solid var(--control-border,#897b72);border-radius:4px;background:var(--panel,#fffcf9);color:inherit;font:inherit}
.re-choice p{margin:0;color:var(--muted,#605750);font-size:12px}
room-explorer :is(.rr-bench,.rd-bench){overflow:visible}
.re-stage{display:contents}
.re-primary:empty{display:none}
.re-trip{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px;padding:14px 28px 0;font:11px/1.6 var(--mono,monospace);color:var(--muted,#605750)}
.re-trip [data-backend]{margin-left:auto;max-width:none;font-size:inherit;text-align:left}
.re-trip p{flex-basis:100%;margin:0;font:12px/1.6 var(--sans,sans-serif);color:var(--muted,#605750)}
room-explorer .rr-missionbar [data-dock]{margin:0;font:inherit;width:auto;padding:0}
room-explorer [data-room-mount]>:is(room-rover,room-drone){max-width:none}
room-explorer[data-touch-controls] .rd-keyboard-hint{display:none}
room-explorer[data-touch-controls] .rd-flight-help{flex-basis:100%;min-width:0;margin:0;line-height:1.6}
room-explorer[data-touch-controls] .rd-flight-help br{display:none}
.re-button-controls{flex-basis:100%;width:100%;font:12px/1.6 var(--sans,sans-serif)}
.re-button-controls>summary{min-height:44px;align-content:center;cursor:pointer}
.re-button-controls .rd-hold-controls{margin-top:4px;max-width:none}
@media(max-width:720px){
  room-explorer{--re-view-height:clamp(140px,25svh,230px)}
  .re-choice{gap:6px 14px;margin-bottom:12px}.re-choice label{width:100%;justify-content:space-between}.re-choice select{flex:1;max-width:240px}.re-choice p{font-size:11px}
  .re-stage{display:block;position:sticky;top:var(--re-header-height);z-index:5;background:var(--paper,#f4efea);padding:4px 0 8px;box-shadow:0 12px 18px -19px #20283088}
  room-explorer :is(.rr-missionbar,.rd-flightbar){min-height:36px;padding:5px 12px;gap:4px 10px;font-size:11px;border:0}
  room-explorer .rd-flightbar strong{width:auto;flex:1;font-size:11px}
  room-explorer .rd-flightbar [data-height]{font-size:10px}
  room-explorer :is(.rr-tabs,.rd-tabs){display:flex}
  room-explorer :is(.rr-tabs,.rd-tabs) button{min-height:40px;font-size:12px;padding:7px 12px}
  room-explorer :is(.rr-views,.rd-views){display:block;min-height:0}
  room-explorer [data-room-stage] :is(.rr-room,.rd-room){height:var(--re-view-height);min-height:0;border-radius:6px}
  room-explorer :is(.rr-camera,.rd-camera){top:8px;left:8px;gap:4px}
  room-explorer :is(.rr-camera,.rd-camera) button{min-height:36px;padding:5px 10px;font-size:11px}
  room-explorer :is(.rr-drive-surface,.rd-drive-surface){inset:52px 8px 8px}
  room-explorer :is(.rr-drive-surface,.rd-drive-surface)>span{padding:4px 7px;font-size:9px}
  room-explorer :is([data-control-mode=autonomy],[data-control-mode=guided],[data-control-mode=paused],[data-control-mode=replay]) [data-drive-surface]>span{visibility:hidden}
  room-explorer :is(.rr-loading,.rd-loading){gap:8px;padding:12px;overflow:auto;justify-content:safe center}
  room-explorer :is(.rr-loading,.rd-loading)>strong{flex:none;font-size:12px;line-height:1.4}
  room-explorer :is(.rr-loading,.rd-loading) progress{flex:none;height:12px;min-height:12px;margin:0}
  room-explorer :is(.rr-loading,.rd-loading)>button{flex:none;min-height:44px;font-size:12px}
  room-explorer [data-room-stage] :is(.rr-map-panel,.rd-scan){height:var(--re-view-height);min-height:0;padding:8px 12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,.65fr);grid-template-rows:auto minmax(0,1fr);gap:6px 10px;border:0;border-radius:6px;overflow:hidden;align-items:stretch}
  room-explorer :is(.rr-map-title,.rd-scan-title){grid-column:1/-1;gap:8px;align-items:baseline}
  room-explorer :is(.rr-map-title,.rd-scan-title) h4{font-size:16px}
  room-explorer :is(.rr-map-title,.rd-scan-title)>span{font-size:10px}
  room-explorer [data-room-stage] :is(.rr-map-panel,.rd-scan) canvas{width:auto;height:auto;min-height:0;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:contain;margin:0;place-self:center}
  room-explorer :is(.rr-map-legend,.rd-legend){display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;margin:0;font-size:9px;line-height:1.4}
  room-explorer :is(.rr-views,.rd-views)[data-mobile-view=room] :is(.rr-map-panel,.rd-scan),room-explorer :is(.rr-views,.rd-views)[data-mobile-view=map] :is(.rr-room,.rd-room){display:none}
  .re-primary{display:flex;gap:8px;padding:8px 0 0}
  .re-primary>button{min-height:44px;padding:8px 14px;font-size:12px;flex:1}
  .re-primary>button[data-action=pause]{flex:0 0 85px;background:var(--raised,#eee7e0);border-color:transparent}
  .re-trip{padding:12px 12px 0;gap:5px 12px;font-size:10px}
  .re-trip [data-backend]{margin-left:0}
  .re-trip p{font-size:11px}
  room-explorer :is(.rr-live-controls,.rd-controls){padding:12px 12px 0}
  room-explorer :is(.rr-toolbar,.rd-toolbar){gap:6px}
  room-explorer :is(.rr-toolbar,.rd-toolbar)>button{flex:1;min-height:40px;padding:7px 9px;font-size:11px}
  room-explorer :is(.rr-driving,.rd-pilot){padding-top:12px;margin-top:0;gap:12px}
  room-explorer .rd-stick{width:82px;height:82px}room-explorer .rd-stick [data-stick-knob]{left:24px;top:24px}
  room-explorer .rd-hold-controls{min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));flex-basis:100%}
  room-explorer :is(.rd-status,.rr-status){padding-inline:12px}
  room-explorer :is(.rd-settings,.rr-settings){margin-inline:12px}
  room-explorer :is(.rdc-panel,.rd-notes,.rr-notes){padding-inline:12px}
  room-explorer :is(.rr-driving,.rd-pilot,robot-decisions,details,button,select,[tabindex]){scroll-margin-top:calc(var(--re-header-height) + var(--re-stage-height) + 12px)}
}
@media(max-width:720px) and (max-height:500px){
  .re-stage{position:static;box-shadow:none}
  room-explorer{--re-view-height:180px}
  room-explorer :is(.rr-driving,.rd-pilot,robot-decisions,details,button,select,[tabindex]){scroll-margin-top:calc(var(--re-header-height) + 12px)}
}
