:root {
  color-scheme: dark;
  --bg: #080c11;
  --surface: #0e141c;
  --surface-2: #121a24;
  --surface-3: #17212d;
  --line: #263241;
  --line-soft: #1c2733;
  --ink: #edf3f8;
  --muted: #8c9aaa;
  --muted-2: #657487;
  --blue: #4e8ef7;
  --blue-strong: #2f70dc;
  --cyan: #56c2dc;
  --green: #35c58a;
  --amber: #e2ad48;
  --red: #e05d5d;
  --red-dark: #b83e46;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

body {
  min-width: 320px;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.primary-button,
.secondary-button,
.danger-button,
.warning-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
}

.primary-button:hover:not(:disabled) {
  background: var(--blue-strong);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.secondary-button:hover:not(:disabled) {
  border-color: #40536a;
  background: var(--surface-3);
}

.danger-button {
  background: var(--red-dark);
  color: #fff;
}

.danger-button:hover {
  background: #9f313a;
}

.warning-button {
  background: var(--amber);
  color: #17110a;
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.warning-button:active {
  transform: translateY(1px);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}

.icon-button:hover {
  border-color: #40536a;
  background: var(--surface-3);
  color: var(--ink);
}

/* Login */

.login-screen {
  position: relative;
  display: grid;
  grid-template-rows: 72px 1fr 54px;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.login-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #071018;
}

.login-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: brightness(0.35) contrast(1.2) saturate(0.78) hue-rotate(160deg);
}

.login-visual-shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.56);
}

.login-visual::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(86, 194, 220, 0.12);
  content: "";
}

.scan-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28%;
  z-index: 3;
  width: 1px;
  background: rgba(86, 194, 220, 0.42);
  box-shadow: 0 0 18px rgba(86, 194, 220, 0.42);
  animation: sweep 8s ease-in-out infinite alternate;
}

@keyframes sweep {
  to { left: 72%; }
}

.coordinate-mark {
  position: absolute;
  z-index: 4;
  color: rgba(164, 218, 231, 0.6);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.mark-a { left: 3vw; bottom: 12vh; }
.mark-b { right: 3vw; top: 17vh; }

.login-header,
.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
}

.login-header {
  border-bottom: 1px solid rgba(164, 218, 231, 0.16);
  background: rgba(5, 10, 16, 0.62);
}

.login-footer {
  border-top: 1px solid rgba(164, 218, 231, 0.12);
  color: rgba(210, 226, 235, 0.56);
  font-size: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(86, 194, 220, 0.55);
  border-radius: 6px;
  background: #10202c;
  color: var(--cyan);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.login-environment {
  color: #b3c1cd;
  font-size: 13px;
}

.login-environment i,
.status-dot,
[data-status-dot] {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.login-content {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(48px, 8vw, 140px);
  width: min(1220px, calc(100% - 48px));
  margin: auto;
}

.product-intro {
  max-width: 690px;
}

.product-intro h1 {
  margin: 14px 0 18px;
  font-size: 64px;
  line-height: 1.06;
}

.product-intro h1 span {
  color: #b8d8e4;
  font-size: 0.65em;
  font-weight: 680;
}

.product-intro > p:last-of-type {
  color: #b3c2cd;
  font-size: 17px;
  line-height: 1.7;
}

.intro-metrics {
  display: flex;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid rgba(164, 218, 231, 0.22);
  border-bottom: 1px solid rgba(164, 218, 231, 0.22);
}

.intro-metrics span {
  display: grid;
  gap: 4px;
  min-width: 130px;
  padding: 16px 24px 16px 0;
  color: #8ea1af;
  font-size: 12px;
}

.intro-metrics span + span {
  padding-left: 24px;
  border-left: 1px solid rgba(164, 218, 231, 0.18);
}

.intro-metrics strong {
  color: #eaf7fb;
  font-size: 19px;
}

.login-panel {
  padding: 34px;
  border: 1px solid rgba(115, 162, 185, 0.48);
  border-radius: 8px;
  background: rgba(8, 17, 26, 0.93);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.login-panel-heading {
  margin-bottom: 28px;
}

.login-panel-heading h2 {
  margin: 7px 0 8px;
  font-size: 25px;
}

.login-panel-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.field-label {
  display: block;
  margin: 17px 0 8px;
  color: #ced8e1;
  font-size: 13px;
  font-weight: 700;
}

.input-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #2b3948;
  border-radius: 6px;
  background: #091019;
  color: var(--muted-2);
}

.input-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(78, 142, 247, 0.13);
}

.input-shell input {
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.input-shell input::placeholder {
  color: #536173;
}

.input-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.login-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.form-error {
  min-height: 20px;
  margin-top: 13px;
  color: #ff8a8a;
  font-size: 13px;
}

.login-button {
  width: 100%;
  min-height: 48px;
}

.login-button svg {
  margin-left: auto;
}

.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 12px;
}

.login-security svg {
  width: 15px;
}

/* Application shell */

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.command-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(245px, 1fr) auto minmax(330px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #0b1118;
}

.app-brand {
  width: fit-content;
  padding: 0;
  background: transparent;
}

.app-brand small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-self: stretch;
}

.nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 124px;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.nav-button::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: transparent;
  content: "";
}

.nav-button:hover,
.nav-button.active {
  color: var(--ink);
}

.nav-button.active::after {
  background: var(--blue);
}

.nav-button.active svg {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.mode-pill,
.health-badge,
.inline-state,
.tiny-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.mode-pill.real,
.inline-state.danger {
  border-color: rgba(224, 93, 93, 0.45);
  color: #ff9595;
}

.inline-state.live {
  border-color: rgba(53, 197, 138, 0.4);
  color: var(--green);
}

.header-icon {
  position: relative;
}

.alert-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #0b1118;
  border-radius: 9px;
  background: var(--red);
  color: white;
  font-size: 10px;
}

.user-button {
  display: grid;
  grid-template-columns: 36px auto 16px;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.user-button:hover {
  background: var(--surface-2);
}

.user-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #3a4a5b;
  border-radius: 50%;
  color: #b8c4d0;
}

.user-button > span:nth-child(2) {
  display: grid;
}

.user-button strong {
  font-size: 13px;
}

.user-button small {
  color: var(--muted);
  font-size: 10px;
}

.user-button .chevron {
  width: 14px;
}

.header-popover {
  position: absolute;
  top: 56px;
  right: 20px;
  z-index: 50;
  width: 330px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111923;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.popover-title,
.section-row,
.drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.popover-title span,
.section-row > span,
.drawer-heading span {
  color: var(--muted);
  font-size: 11px;
}

.notification-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.notification-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #c4ced8;
  font-size: 12px;
  line-height: 1.45;
}

.notification-item svg {
  width: 16px;
  color: var(--amber);
}

.user-popover {
  width: 230px;
}

.user-popover > div {
  display: grid;
  gap: 3px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
}

.user-popover span {
  color: var(--muted);
  font-size: 12px;
}

.user-popover button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 10px 7px;
  border-radius: 5px;
  background: transparent;
  color: #d6dee6;
}

.user-popover button:hover {
  background: var(--surface-3);
}

.workspace-root {
  min-height: calc(100vh - var(--header-height));
}

.dashboard-view {
  display: grid;
  grid-template-columns: 260px minmax(480px, 1fr) 320px;
  min-height: calc(100vh - var(--header-height));
}

.site-sidebar,
.device-inspector {
  min-width: 0;
  background: var(--surface);
}

.site-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.sidebar-heading,
.operator-row,
.sidebar-section {
  border-bottom: 1px solid var(--line);
}

.sidebar-heading {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 750;
}

.tiny-status {
  min-height: 23px;
  padding: 0 8px;
  font-size: 10px;
}

.operator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.operator-row > div {
  display: grid;
  gap: 3px;
}

.operator-row small {
  color: var(--muted);
  font-size: 10px;
}

.operator-row strong {
  font-size: 13px;
}

.tree-heading,
.plain-list-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #d6dfe7;
}

.tree-heading {
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 700;
}

.tree-heading span,
.plain-list-button span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tree-heading svg,
.plain-list-button svg {
  width: 16px;
  color: var(--muted);
}

.tree-heading .tree-chevron {
  transition: transform 150ms ease;
}

.tree-heading[aria-expanded="false"] .tree-chevron {
  transform: rotate(-90deg);
}

.device-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  width: calc(100% - 16px);
  margin: 8px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.device-list-item:hover,
.device-list-item.selected {
  border-color: rgba(78, 142, 247, 0.34);
  background: rgba(78, 142, 247, 0.09);
}

.device-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #314052;
  border-radius: 6px;
  background: #121d28;
  color: var(--cyan);
}

.device-icon.large {
  width: 44px;
  height: 44px;
}

.device-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.device-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-copy small,
.device-state {
  color: var(--muted);
  font-size: 10px;
}

.device-state {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-status-dot="robot"].online {
  background: var(--green);
}

[data-status-dot="robot"].offline {
  background: var(--red);
}

.sidebar-section {
  padding: 14px 8px;
}

.sidebar-label {
  padding: 0 8px 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.plain-list-button {
  min-height: 40px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12px;
}

.plain-list-button:hover,
.plain-list-button.active {
  background: var(--surface-3);
}

.plain-list-button small {
  color: var(--muted-2);
}

.sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.sidebar-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-footer svg {
  width: 15px;
}

.sidebar-footer strong {
  overflow-wrap: anywhere;
  color: #c9d3dc;
}

.operations-map {
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr);
  min-width: 0;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  background: #0c1219;
}

.breadcrumb {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.section-toolbar h2 {
  font-size: 16px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.tool-button.active {
  border-color: rgba(78, 142, 247, 0.55);
  color: #bcd5ff;
}

.map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #10171d;
}

.map-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-map-stage {
  min-height: 560px;
}

.map-top-status,
.map-legend,
.map-scale {
  position: absolute;
  border: 1px solid rgba(73, 91, 108, 0.72);
  border-radius: 5px;
  background: rgba(10, 16, 22, 0.88);
  backdrop-filter: blur(5px);
}

.map-top-status {
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 11px;
  color: #c7d1da;
  font-size: 11px;
}

.map-top-status span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 7px;
}

.map-tools .icon-button {
  background: rgba(11, 17, 24, 0.92);
}

.map-legend {
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding: 8px 10px;
  color: #aebac5;
  font-size: 10px;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-legend.compact {
  bottom: 9px;
  left: 9px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.robot { background: var(--cyan); }
.legend-dot.path { background: var(--blue); }
.legend-dot.waypoint { background: var(--green); }
.legend-dot.charging { background: var(--amber); }

.map-scale {
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
}

.map-scale > span {
  width: 48px;
  border-top: 2px solid #d5dee6;
}

.map-scale small {
  color: #c2ccd5;
  font-size: 10px;
}

.device-inspector {
  border-left: 1px solid var(--line);
}

.inspector-header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.device-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.device-title-row h2 {
  margin-top: 3px;
  font-size: 16px;
}

.health-badge {
  margin-top: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.metric-cell {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.metric-cell span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.metric-cell svg {
  width: 14px;
}

.metric-cell strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.inspector-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.inspector-section h3,
.console-heading h3 {
  font-size: 13px;
}

.inspector-section > p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.control-lease-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.control-lease-line strong {
  color: #d9e4ec;
}

.current-task-section > strong {
  display: block;
  margin-top: 12px;
  font-size: 13px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #25303c;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 220ms ease;
}

.enter-control-button {
  width: calc(100% - 36px);
  margin: 16px 18px;
}

.enter-control-button svg:last-child {
  margin-left: auto;
}

.compact-history,
.activity-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.history-row,
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 9px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #101821;
}

.history-row strong,
.activity-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row span,
.activity-row span,
.history-row small,
.activity-row small {
  color: var(--muted);
  font-size: 10px;
}

.history-row small,
.activity-row small {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

/* Device control */

.control-view {
  min-width: 0;
  background: #080c11;
}

.telemetry-ribbon {
  display: grid;
  grid-template-columns: 106px minmax(170px, 1.2fr) repeat(7, minmax(92px, 0.72fr)) auto auto;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: #0d131b;
}

.back-to-dashboard,
.telemetry-device,
.ribbon-metric {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.back-to-dashboard {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.back-to-dashboard svg {
  transform: rotate(180deg);
}

.telemetry-device {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.telemetry-device > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.telemetry-device strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-device small {
  overflow: hidden;
  color: var(--green);
  font-size: 10px;
  text-overflow: ellipsis;
}

.ribbon-metric {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 11px;
}

.ribbon-metric span {
  color: var(--muted-2);
  font-size: 9px;
}

.ribbon-metric strong {
  overflow: hidden;
  color: #cbd5de;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ribbon-metric.safety strong {
  color: var(--green);
}

.arm-button,
.disarm-button {
  align-self: center;
  min-height: 40px;
  margin: 0 8px;
  padding: 0 13px;
  white-space: nowrap;
}

.disarm-button {
  margin-left: 0;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(310px, 31%) minmax(600px, 1fr);
  gap: 8px;
  padding: 8px;
}

.control-left-column {
  display: grid;
  grid-template-rows: minmax(380px, 1.65fr) minmax(220px, 0.8fr);
  gap: 8px;
  min-width: 0;
}

.control-map-section,
.diagnostic-section,
.control-main-stage,
.control-activity-drawer {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.control-map-section,
.diagnostic-section {
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
}

.compact-toolbar,
.monitor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.compact-toolbar > div,
.monitor-toolbar > div:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.compact-toolbar strong,
.monitor-toolbar strong {
  font-size: 12px;
}

.compact-toolbar span,
.monitor-toolbar span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-map-stage {
  min-height: 330px;
}

.diagnostic-frame {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: #080b0f;
}

.diagnostic-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.diagnostic-frame > .point-cloud-label {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(86, 194, 220, 0.42);
  border-radius: 4px;
  background: rgba(4, 10, 15, 0.78);
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.diagnostic-frame svg {
  width: 13px;
}

.lidar-frame {
  isolation: isolate;
}

.control-main-stage {
  display: grid;
  grid-template-rows: 46px minmax(360px, 1fr) auto;
}

.monitor-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(185px, 1fr);
}

.segmented-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1017;
}

.segmented-control button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.segmented-control button.active {
  background: var(--surface-3);
  color: #cfe0f5;
}

.segmented-control svg {
  width: 13px;
}

.monitor-live-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.monitor-live-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.monitor-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.monitor-tool {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  background: #0a1017;
}

.monitor-tool:not(:disabled):active {
  transform: translateY(1px);
}

.tool-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  border: 1px solid #101721;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.monitor-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #05080c;
}

.monitor-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.camera-feed {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #020407;
  object-fit: contain;
}

.sensor-unavailable {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: #070b10;
  color: var(--muted);
}

.sensor-unavailable strong {
  color: #cbd4dc;
  font-size: 15px;
}

.sensor-unavailable > span:last-child {
  font-size: 11px;
  text-align: center;
}

.lidar-frame .sensor-unavailable {
  background: rgba(7, 11, 16, 0.92);
}

.empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.monitor-hud {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  min-width: 90px;
  padding: 7px 9px;
  border-left: 2px solid var(--cyan);
  background: rgba(4, 9, 14, 0.72);
}

.monitor-hud span {
  color: var(--muted-2);
  font: 9px Consolas, monospace;
}

.monitor-hud strong {
  overflow: hidden;
  color: #d8e6ec;
  font: 11px Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-hud.top-left { top: 14px; left: 14px; }
.monitor-hud.top-right { top: 14px; right: 14px; text-align: right; border-right: 2px solid var(--cyan); border-left: 0; }
.monitor-hud.bottom-left { bottom: 14px; left: 14px; }
.monitor-hud.bottom-right { right: 14px; bottom: 14px; text-align: right; border-right: 2px solid var(--cyan); border-left: 0; }

.control-console {
  display: grid;
  grid-template-columns: minmax(310px, 1.05fr) minmax(330px, 1.2fr) minmax(220px, 0.72fr);
  border-top: 1px solid var(--line);
}

.control-console > section {
  min-width: 0;
  padding: 13px;
}

.control-console > section + section {
  border-left: 1px solid var(--line);
}

.console-heading {
  display: flex;
  min-height: 35px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.console-heading .kicker {
  margin-bottom: 3px;
  font-size: 8px;
}

.motion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.joystick-cluster {
  display: grid;
  width: 100%;
  max-width: 300px;
  grid-template-columns: 100px 52px 100px;
  align-items: end;
  justify-content: center;
  justify-self: center;
  gap: 12px;
}

.joystick-control {
  display: grid;
  width: 100px;
  min-width: 0;
  justify-items: center;
  gap: 6px;
}

.joystick-heading {
  display: flex;
  width: 100%;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
}

.joystick-heading strong {
  color: #c9d4de;
  font-size: 10px;
}

.joystick-heading span {
  overflow: hidden;
  color: var(--cyan);
  font: 9px Consolas, monospace;
  text-overflow: ellipsis;
}

.joystick-base {
  position: relative;
  width: 100px;
  height: 100px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #314052;
  border-radius: 50%;
  background: #0b121a;
  color: #8495a6;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms ease, background 150ms ease;
}

.joystick-base:hover:not(:disabled),
.joystick-base.active {
  border-color: var(--blue);
  background: #101b29;
  color: #ddebff;
}

.joystick-base::before,
.joystick-base::after {
  position: absolute;
  z-index: 0;
  content: "";
  background: #263546;
  pointer-events: none;
}

.move-joystick::before {
  top: 15px;
  bottom: 15px;
  left: calc(50% - 0.5px);
  width: 1px;
}

.move-joystick::after {
  top: calc(50% - 0.5px);
  right: 15px;
  left: 15px;
  height: 1px;
}

.joystick-ring {
  position: absolute;
  inset: 21px;
  z-index: 1;
  border: 1px solid #263546;
  border-radius: 50%;
  pointer-events: none;
}

.joystick-axis {
  position: absolute;
  top: calc(50% - 0.5px);
  right: 15px;
  left: 15px;
  z-index: 0;
  height: 1px;
  background: #263546;
  pointer-events: none;
}

.direction-indicator {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #0b121a;
  color: #718296;
  pointer-events: none;
}

.direction-indicator svg {
  width: 13px;
  height: 13px;
}

.direction-indicator.north { top: 4px; left: calc(50% - 9px); }
.direction-indicator.south { bottom: 4px; left: calc(50% - 9px); }
.direction-indicator.west { top: calc(50% - 9px); left: 4px; }
.direction-indicator.east { top: calc(50% - 9px); right: 4px; }

.direction-indicator.rotation svg {
  width: 14px;
  height: 14px;
}

.direction-indicator.active {
  background: #173152;
  color: #91bdff;
}

.joystick-knob {
  --joystick-x: 0px;
  --joystick-y: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #50657c;
  border-radius: 50%;
  background: #1c2a39;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  transform: translate(calc(-50% + var(--joystick-x)), calc(-50% + var(--joystick-y)));
  transition: border-color 100ms ease, background 100ms ease, transform 50ms linear;
}

.joystick-knob i {
  width: 7px;
  height: 7px;
  border: 1px solid #7890a9;
  border-radius: 50%;
  background: #263b51;
}

.joystick-base.active .joystick-knob {
  border-color: #76aaff;
  background: #24466f;
}

.joystick-stop {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-content: center;
  justify-items: center;
  gap: 2px;
  border: 1px solid rgba(224, 93, 93, 0.65);
  border-radius: 50%;
  background: #251418;
  color: #ff9292;
  touch-action: manipulation;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.joystick-stop:hover,
.joystick-stop.active,
.joystick-stop:active {
  border-color: #ff8c8c;
  background: #442127;
  transform: scale(0.96);
}

.joystick-stop svg {
  width: 17px;
  height: 17px;
}

.joystick-stop span {
  font-size: 8px;
  font-weight: 750;
}

.live-motion-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.live-motion-metrics > div {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 7px;
}

.live-motion-metrics > div + div {
  border-left: 1px solid var(--line-soft);
}

.live-motion-metrics span,
.live-motion-metrics small {
  color: var(--muted-2);
  font-size: 8px;
}

.live-motion-metrics strong {
  overflow: hidden;
  color: var(--cyan);
  font: 13px Consolas, monospace;
  text-overflow: ellipsis;
}

.task-button-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  gap: 5px;
  margin: 9px 0;
}

.task-button-grid button {
  display: grid;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111a24;
  color: #bdc8d2;
  font-size: 9px;
}

.task-button-grid button:hover:not(:disabled) {
  border-color: var(--blue);
  color: #dbe9ff;
}

.task-button-grid svg {
  width: 17px;
}

.target-control {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 6px;
}

.target-control select {
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d151e;
  font-size: 10px;
}

.target-control button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 10px;
}

.target-control svg {
  width: 14px;
}

.task-progress-row {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}

.task-message {
  min-height: 16px;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-actions {
  display: grid;
  gap: 7px;
  margin: 9px 0;
}

.safety-actions button {
  min-height: 39px;
  font-size: 10px;
}

.safety-console > p {
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.control-activity-drawer {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(420px, 1.35fr);
  gap: 0;
  margin: 0 8px 8px;
}

.control-activity-drawer > section {
  min-width: 0;
  padding: 12px;
}

.control-activity-drawer > section + section {
  border-left: 1px solid var(--line);
}

.activity-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Dialogs and toast */

.command-dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid #344456;
  border-radius: 8px;
  background: #111923;
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

.command-dialog::backdrop {
  background: rgba(2, 5, 9, 0.72);
  backdrop-filter: blur(3px);
}

.command-dialog form {
  padding: 24px;
}

.photo-dialog {
  width: min(760px, calc(100vw - 28px));
}

.photo-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.photo-dialog-heading > .icon-button svg {
  transform: rotate(45deg);
}

.photo-preview {
  position: relative;
  min-height: 300px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #05080c;
}

.photo-preview img {
  display: block;
  width: 100%;
  height: min(48vh, 430px);
  object-fit: contain;
}

.photo-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.photo-empty svg {
  width: 28px;
  height: 28px;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  gap: 7px;
  margin-top: 9px;
  overflow-x: auto;
}

.photo-list button {
  min-width: 70px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #080d13;
}

.photo-list button.active {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.photo-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-dialog .dialog-actions a {
  text-decoration: none;
}

.dialog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(53, 197, 138, 0.35);
  border-radius: 50%;
  background: rgba(53, 197, 138, 0.08);
  color: var(--green);
}

.dialog-icon.warning {
  border-color: rgba(226, 173, 72, 0.38);
  background: rgba(226, 173, 72, 0.08);
  color: var(--amber);
}

.dialog-copy h2 {
  margin: 5px 0 10px;
  font-size: 20px;
}

.dialog-copy > p:last-child,
.settings-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.safety-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c131b;
  color: #cbd4dc;
  font-size: 12px;
  line-height: 1.45;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.settings-note {
  margin-top: 10px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  padding: 12px;
  border: 1px solid #344456;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: #121a24;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  color: #d8e0e7;
  font-size: 12px;
  line-height: 1.4;
}

.toast.error {
  border-left-color: var(--red);
}

.toast svg {
  width: 16px;
  color: var(--green);
}

.toast.error svg {
  color: var(--red);
}

@media (max-width: 1360px) {
  .dashboard-view {
    grid-template-columns: 230px minmax(440px, 1fr) 290px;
  }

  .telemetry-ribbon {
    grid-template-columns: 92px minmax(150px, 1fr) repeat(7, minmax(78px, 0.65fr)) auto;
  }

  .disarm-button {
    display: none;
  }

  .control-console {
    grid-template-columns: 1fr 1.15fr;
  }

  .safety-console {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }

  .safety-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1120px) {
  .command-header {
    grid-template-columns: auto 1fr auto;
  }

  .app-brand small,
  .mode-pill,
  .ribbon-metric:nth-of-type(5),
  .ribbon-metric:nth-of-type(6) {
    display: none;
  }

  .dashboard-view {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .device-inspector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .inspector-header,
  .metric-grid,
  .inspector-section {
    border-right: 1px solid var(--line);
  }

  .enter-control-button {
    align-self: center;
  }

  .telemetry-ribbon {
    grid-template-columns: 94px minmax(150px, 1fr) repeat(5, minmax(80px, 1fr)) auto;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .control-left-column {
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 330px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 58px;
  }

  .login-screen {
    grid-template-rows: 62px 1fr 44px;
    overflow: auto;
  }

  .login-header,
  .login-footer {
    padding: 0 18px;
  }

  .login-environment,
  .coordinate-mark {
    display: none;
  }

  .login-content {
    grid-template-columns: 1fr;
    gap: 25px;
    width: min(520px, calc(100% - 28px));
    padding: 30px 0;
  }

  .product-intro h1 {
    margin: 9px 0;
    font-size: 38px;
  }

  .product-intro > p:last-of-type {
    font-size: 13px;
  }

  .intro-metrics {
    display: none;
  }

  .login-panel {
    padding: 24px;
  }

  .command-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 10px;
  }

  .app-brand > span:nth-child(2),
  .header-icon,
  .user-button > span:nth-child(2),
  .user-button .chevron {
    display: none;
  }

  .app-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .primary-nav {
    justify-content: center;
  }

  .nav-button {
    min-width: 92px;
    font-size: 11px;
  }

  .user-button {
    display: block;
    min-height: 40px;
    padding: 2px;
  }

  .dashboard-view {
    display: block;
  }

  .site-sidebar {
    border-right: 0;
  }

  .operator-row,
  .sidebar-section,
  .sidebar-footer {
    display: none;
  }

  .tree-group {
    border-bottom: 1px solid var(--line);
  }

  .operations-map {
    grid-template-rows: 62px auto;
  }

  .dashboard-map-stage {
    min-height: 470px;
    aspect-ratio: 4 / 5;
  }

  .map-toolbar {
    padding: 0 11px;
  }

  .tool-button {
    padding: 0 8px;
    font-size: 10px;
  }

  .device-inspector {
    display: block;
  }

  .telemetry-ribbon {
    display: flex;
    overflow-x: auto;
    min-height: 66px;
  }

  .telemetry-ribbon > * {
    flex: 0 0 auto;
  }

  .back-to-dashboard {
    width: 92px;
  }

  .telemetry-device {
    width: 180px;
  }

  .ribbon-metric {
    width: 92px;
  }

  .arm-button {
    margin-right: 10px;
  }

  .control-grid {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .control-left-column {
    grid-template-columns: 1fr;
    grid-template-rows: 420px 240px;
  }

  .control-main-stage {
    grid-template-rows: 46px 390px auto;
  }

  .monitor-toolbar {
    grid-template-columns: minmax(120px, 1fr) auto;
  }

  .monitor-toolbar > div:first-child {
    display: none;
  }

  .monitor-live-state {
    display: none;
  }

  .monitor-hud {
    min-width: 72px;
  }

  .monitor-hud strong {
    max-width: 130px;
    font-size: 9px;
  }

  .control-console {
    grid-template-columns: 1fr;
  }

  .control-console > section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .safety-console {
    grid-column: auto;
  }

  .motion-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .control-activity-drawer {
    grid-template-columns: 1fr;
    margin: 0 6px 6px;
  }

  .control-activity-drawer > section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 430px) {
  .brand-lockup {
    font-size: 16px;
  }

  .login-panel {
    padding: 20px;
  }

  .login-options {
    align-items: flex-start;
  }

  .header-actions {
    gap: 2px;
  }

  .nav-button {
    min-width: 82px;
    padding: 0 6px;
  }

  .nav-button svg {
    display: none;
  }

  .dashboard-map-stage {
    min-height: 430px;
  }

  .map-top-status {
    right: 62px;
    overflow: hidden;
  }

  .map-top-status span:last-child {
    display: none;
  }

  .motion-layout {
    grid-template-columns: 1fr;
  }

  .joystick-cluster {
    justify-self: center;
  }

  .live-motion-metrics {
    min-height: 72px;
  }

  .task-button-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .target-control,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .monitor-stage {
    min-height: 330px;
  }

  .photo-preview {
    min-height: 220px;
  }

  .photo-list {
    grid-template-columns: repeat(6, 86px);
  }

  .monitor-hud.top-right,
  .monitor-hud.bottom-right {
    right: 8px;
  }

  .monitor-hud.top-left,
  .monitor-hud.bottom-left {
    left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Keep the selected robot visible at both desktop and handheld widths. */
.robot-selector { display: grid; gap: 2px; color: #9aafbf; font-size: 11px; }
.robot-selector[hidden] { display: none; }
.robot-selector select { width: clamp(120px, 16vw, 220px); padding: 5px 7px; border: 1px solid #304454; border-radius: 5px; background: #111b25; color: #edf7ff; font: inherit; font-size: 12px; }
