html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #e8edf4;
  font: 12px/1.3 ui-sans-serif, system-ui, sans-serif;
}

#trackCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
  touch-action: none;
}

#trackHud {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(120, 135, 155, .45);
  border-radius: 7px;
  background: rgba(7, 10, 14, .72);
  pointer-events: auto;
  user-select: none;
}

#trackHud a { color: #b9d9ff; text-decoration: none; }
#trackHud a:hover { text-decoration: underline; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.state-dot.good { background: #62d58a; }

#hint {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(7, 10, 14, .55);
  color: rgba(230, 235, 242, .68);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---- Embedded mount-control panel (tracking view) ---- */
.mount-panel {
  position: fixed;
  right: 10px;
  top: 10px;
  bottom: 40px;
  width: 320px;
  max-width: calc(100vw - 20px);
  z-index: 8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(7, 10, 14, .92);
  border: 1px solid rgba(120, 135, 155, .45);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.mount-panel[aria-hidden="true"] { display: none; }

.mount-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-weight: 600;
  color: #b9d9ff;
  border-bottom: 1px solid rgba(120, 135, 155, .4);
  flex-shrink: 0;
}

.mount-panel-head button {
  background: transparent;
  border: none;
  color: #b9d9ff;
  cursor: pointer;
  font-size: 12px;
}

.mount-panel-body {
  overflow-y: auto;
  padding: 8px 10px 12px;
  scrollbar-width: thin;
}

.mount-panel .card { margin-bottom: 12px; }
.mount-panel h2 { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #9fb3c8; margin: 0 0 6px; }

.mount-panel .field, .mount-panel .check {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #cbd5e0;
}
.mount-panel .field.short { flex-direction: row; align-items: center; justify-content: space-between; }
.mount-panel .check { flex-direction: row; align-items: center; gap: 6px; }

.mount-panel input[type="text"],
.mount-panel input[type="number"] {
  background: rgba(20, 26, 34, .9);
  border: 1px solid rgba(120, 135, 155, .35);
  border-radius: 5px;
  color: #e8edf4;
  padding: 4px 6px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

.mount-panel button {
  background: rgba(64, 90, 117, .5);
  border: 1px solid rgba(120, 135, 155, .4);
  border-radius: 5px;
  color: #e8edf4;
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
}
.mount-panel button:hover { background: rgba(79, 110, 143, .65); }

.mount-panel .actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mount-panel .actions .primary { background: #2b6cb0; border-color: #3182ce; font-weight: 600; }
.mount-panel .actions .primary:hover { background: #3182ce; }

.mount-panel .status-grid,
.mount-panel .live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 8px; margin-top: 6px; font-size: 11px; }
.mount-panel .three-col { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mount-panel .two-col { display: flex; gap: 12px; }

.mount-panel .lamp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; vertical-align: middle; margin-right: 4px; }
.mount-panel .lamp.good { background: #62d58a; }

.mount-panel .error-box,
.mount-panel .warning,
.mount-panel .muted { font-size: 10px; color: rgba(230, 235, 242, .6); margin: 4px 0 0; word-break: break-word; }
.mount-panel code { background: rgba(0,0,0,.3); padding: 1px 4px; border-radius: 3px; }
