@import url("./vendor/fonts/fonts.css");
:root {
  color-scheme: light;
  --bg: #f0f4f9;
  --panel: #fff;
  --surface: #f8fafd;
  --surface-container: #e9eef6;
  --text: #1f1f1f;
  --muted: #5e6267;
  --line: #dce0e5;
  --outline: #747775;
  --primary: #0b57d0;
  --on-primary: #fff;
  --primary-container: #d3e3fd;
  --on-primary-container: #041e49;
  --hover: #e8edf4;
  --error: #b3261e;
  --error-container: #f9dedc;
  --success: #146c2e;
  --shadow: 0 1px 3px #1f1f1f1a, 0 2px 6px #1f1f1f0a;
  --map-bg: #f1f4f0;
  --map-road: #d0d6db;
  --map-edge: #a6b0b8;
  --map-grid: #dfe5dd;
  --map-mark: #fff;
  --map-divider: #858e91;
  --map-label: #45515b;
  --map-camera: #775a15;
  --map-route: #547a9e;
  --map-green: #137333;
  --map-red: #b3261e;
  --map-yellow: #8c6600;
  --mint: var(--primary);
  --blue: var(--primary);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131314;
  --panel: #1e1f20;
  --surface: #242628;
  --surface-container: #2d3035;
  --text: #e3e3e3;
  --muted: #b0b4b9;
  --line: #3c4043;
  --outline: #8e918f;
  --primary: #a8c7fa;
  --on-primary: #062e6f;
  --primary-container: #0842a0;
  --on-primary-container: #d3e3fd;
  --hover: #30343a;
  --error: #f2b8b5;
  --error-container: #601410;
  --success: #a8dab5;
  --shadow: 0 1px 4px #0005;
  --map-bg: #202725;
  --map-road: #3e474e;
  --map-edge: #69777f;
  --map-grid: #303b36;
  --map-mark: #b4c0c4;
  --map-divider: #b9b3a1;
  --map-label: #bdc7ce;
  --map-camera: #e2c275;
  --map-route: #99b6d0;
  --map-green: #81c995;
  --map-red: #f28b82;
  --map-yellow: #fdd663;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 "Roboto",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: transparent;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover,
.button:hover {
  background: var(--hover);
}
button:active,
.button:active {
  box-shadow: inset 0 0 0 100px #80808012;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}
.primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}
.primary:hover {
  background: var(--primary);
  box-shadow: var(--shadow);
  filter: brightness(0.96);
}
.tonal {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: transparent;
}
.danger {
  color: var(--error);
  border-color: var(--line);
}
.danger:hover {
  background: var(--error-container);
}
.ghost {
  border-color: transparent;
  background: transparent;
}
.small {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}
.icon-button {
  width: 40px;
  padding: 8px;
  flex-shrink: 0;
}
.icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  width: 24px;
  height: 24px;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
  overflow: hidden;
  vertical-align: middle;
}
input,
select,
textarea {
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  width: 100%;
  min-width: 0;
  outline-offset: 2px;
}
select {
  background-color: var(--panel);
  padding-right: 28px;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--text);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  vertical-align: middle;
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--primary);
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: var(--primary-container);
  border-radius: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 8px;
  height: 26px;
  background: var(--primary);
  border: 2px solid var(--panel);
  border-radius: 6px;
  margin-top: -9px;
  box-shadow: 0 0 0 2px var(--panel);
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background: var(--primary-container);
  border-radius: 8px;
}
input[type="range"]::-moz-range-progress {
  height: 8px;
  background: var(--primary);
  border-radius: 8px;
}
input[type="range"]::-moz-range-thumb {
  width: 6px;
  height: 24px;
  background: var(--primary);
  border: 2px solid var(--panel);
  border-radius: 6px;
}
input:disabled {
  opacity: 0.4;
  cursor: default;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin: 16px 0 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.3px;
}
h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
h3 {
  font-size: 15px;
  font-weight: 500;
}
p {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 28px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  padding: 0 12px;
}
.logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--primary-container);
  color: var(--primary);
  border-radius: 12px;
  flex-shrink: 0;
}
.logo .icon {
  font-size: 26px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 6px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 28px;
  color: var(--muted);
  font-weight: 500;
  min-height: 52px;
}
.nav a:hover {
  background: var(--hover);
}
.nav a.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.sidebar footer {
  margin-top: auto;
  padding: 0 20px;
  color: var(--muted);
  font-size: 12px;
}
main {
  min-width: 0;
  margin: 16px 16px 16px 0;
  padding: 24px 32px 40px;
  background: var(--panel);
  border-radius: 24px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  min-height: 40px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-control {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.theme-control select {
  width: auto;
  min-height: 36px;
  border: 0;
  padding: 8px 24px 8px 8px;
  font-size: 13px;
  background: transparent;
  cursor: pointer;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-container);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.heading p {
  margin-top: 8px;
  max-width: 650px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  gap: 20px;
}
.cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  min-width: 0;
}
.metric {
  font-size: 30px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 0;
  letter-spacing: -0.3px;
}
.metric span {
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stats.network-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  padding: 18px 20px;
  background: var(--surface);
  border-radius: 16px;
}
.stat small {
  font-size: 13px;
  color: var(--muted);
}
.card-scene {
  height: 170px;
  border-radius: 12px;
  margin: -8px -8px 20px;
  overflow: hidden;
  background: var(--map-bg);
}
.card-scene svg {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.card-foot .button {
  padding-inline: 12px;
}
.cards h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.cards p {
  margin-top: 6px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}
.canvas-panel {
  padding: 0;
  overflow: hidden;
}
.canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 62px;
}
.canvas-toolbar button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
}
.canvas-toolbar button.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.map {
  width: 100%;
  display: block;
  min-height: 420px;
  max-height: 660px;
  touch-action: none;
  background: var(--map-bg);
}
.map .handle {
  cursor: grab;
}
.map .anchor {
  cursor: crosshair;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.inspector {
  max-height: 830px;
  overflow: auto;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child {
  border-bottom: 0;
}
.item span {
  overflow-wrap: anywhere;
}
.item .ghost {
  text-align: left;
  justify-content: flex-start;
  padding-left: 0;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.empty {
  text-align: center;
  padding: 64px 24px;
}
.empty .icon {
  width: 48px;
  height: 48px;
  font-size: 48px;
  color: var(--muted);
  margin-bottom: 16px;
}
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 32px);
  max-height: 60vh;
  overflow: auto;
  white-space: pre-wrap;
  padding: 16px 24px;
  border: 0;
  border-radius: 8px;
  background: #303133;
  color: #f1f3f4;
  box-shadow: var(--shadow);
}
.notice.error {
  background: var(--error-container);
  color: var(--error);
}
[hidden] {
  display: none !important;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  background: var(--surface);
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:hover {
  background: var(--surface);
}
.scroll {
  overflow: auto;
}
.chart {
  width: 100%;
  height: 190px;
}
.chart text {
  fill: var(--muted);
  font-size: 10px;
}
.chart line {
  stroke: var(--line);
}
.demo-body {
  height: 100dvh;
  overflow: hidden;
}
.demo-header {
  height: 72px;
  padding: 12px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.demo-header .brand {
  padding: 0;
}
.demo-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  height: 100dvh;
  gap: 12px;
  padding: 12px 12px 12px 0;
}
.controls {
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.controls h2 {
  font-size: 20px;
}
.controls h3 {
  margin: 20px 0 4px;
}
.controls .run-controls {
  gap: 6px;
  flex-wrap: nowrap;
}
.controls .run-controls button {
  padding-inline: 12px;
}
.controls .connection-options {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px 12px;
  background: var(--panel);
}
.viewport {
  position: relative;
  min-width: 0;
  background: var(--map-bg);
  border-radius: 24px;
  overflow: hidden;
}
#scene {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  pointer-events: none;
  max-width: min(420px, calc(100% - 180px));
}
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.overlay h2 {
  font-size: 18px;
}
.overlay .eyebrow {
  color: var(--muted);
  font-size: 13px;
}
.scene-bottom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.scene-bottom .glass {
  padding: 12px 18px;
}
.scene-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scene-metrics p {
  font-size: 12px;
  white-space: nowrap;
}
.scene-help {
  font-size: 12px;
  color: var(--muted);
  max-width: 170px;
}
.control-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.camera-buttons {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.camera-buttons button {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: var(--shadow);
  justify-content: flex-start;
  border-radius: 12px;
  padding: 10px 14px;
}
.camera-buttons button.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: transparent;
}
.live-number {
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.connection {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 400;
}
.range-label output {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-container);
  padding: 2px 8px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  padding: 14px 0;
  list-style-position: inside;
}
details[open] > summary {
  margin-bottom: 4px;
}
.loading {
  padding: 48px;
  color: var(--muted);
}
.lane-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.success-text {
  color: var(--success);
}
.error-text {
  color: var(--error);
}
@media (min-width: 1700px) {
  main {
    padding-inline: 48px;
  }
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 8px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .nav a {
    padding-inline: 16px;
    gap: 10px;
  }
  main {
    padding: 24px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .inspector {
    max-height: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scene-help {
    display: none;
  }
  .demo-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .controls {
    padding: 20px;
  }
  .overlay {
    max-width: calc(100% - 174px);
    left: 16px;
    top: 16px;
  }
  .glass {
    padding: 12px 16px;
  }
  .scene-metrics {
    gap: 14px;
  }
  .camera-buttons {
    right: 16px;
    top: 16px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    gap: 16px;
  }
  .sidebar footer {
    display: none;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    scrollbar-width: none;
  }
  .nav a {
    padding: 10px 14px;
    min-height: 44px;
    white-space: nowrap;
    font-size: 13px;
    gap: 8px;
  }
  .nav a .icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  .sidebar > div {
    min-width: 0;
    width: 100%;
  }
  main {
    margin: 0 8px 8px;
    padding: 20px 16px;
    border-radius: 20px;
  }
  .topbar {
    margin-bottom: 24px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb .icon {
    display: none;
  }
  .theme-control {
    gap: 0;
  }
  .theme-control select {
    max-width: 130px;
    font-size: 12px;
  }
  .theme-control .icon {
    font-size: 20px;
    width: 20px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 28px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stats,
  .stats.network-stats {
    gap: 8px;
  }
  .stats.network-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 14px 12px;
  }
  .stat small {
    font-size: 11px;
  }
  .metric {
    font-size: 26px;
  }
  .panel {
    padding: 18px;
  }
  .canvas-panel {
    padding: 0;
  }
  .map {
    min-height: 340px;
  }
  .canvas-toolbar {
    padding: 10px;
  }
  .demo-body {
    height: auto;
    overflow: auto;
  }
  .demo-header {
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .demo-header .brand {
    font-size: 18px;
  }
  .demo-header-actions {
    gap: 6px;
    margin-left: auto;
  }
  .demo-header-actions .back-label {
    display: none;
  }
  .demo-layout {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    padding: 0 8px 16px;
    gap: 8px;
  }
  .viewport {
    height: 65vh;
    height: 65dvh;
    min-height: 480px;
    max-height: 700px;
    border-radius: 20px;
  }
  .controls {
    padding: 24px 16px;
  }
  .overlay {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 100px);
    padding: 12px;
    box-shadow: none;
  }
  .overlay h2 {
    font-size: 15px;
  }
  .overlay .eyebrow {
    font-size: 12px;
  }
  .overlay .hint {
    font-size: 11px;
  }
  .camera-buttons {
    top: 12px;
    right: 12px;
    max-width: 80px;
    gap: 4px;
  }
  .camera-buttons button {
    font-size: 11px;
    padding: 8px;
    min-height: 34px;
    justify-content: center;
  }
  .camera-buttons .icon {
    display: none;
  }
  .scene-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .scene-bottom .glass {
    padding: 12px;
    width: 100%;
  }
  .scene-metrics {
    gap: 8px;
    justify-content: space-between;
  }
  .scene-metrics p {
    font-size: 10px;
  }
  .live-number {
    font-size: 22px;
  }
  .scene-help {
    display: none;
  }
  .controls .run-controls button {
    min-height: 44px;
    flex: 1;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.camera-picker {
  display: none;
}
.camera-buttons {
  max-height: calc(100% - 112px);
  overflow: auto;
}
@media (max-width: 760px) {
  .camera-buttons {
    display: none;
  }
  .camera-picker {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 112px;
    padding: 9px 22px 9px 10px;
    font-size: 12px;
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .overlay {
    max-width: calc(100% - 148px);
  }
}

/* Compact simulation controls, shared across desktop and mobile. */
.demo-back {
  margin: 0 0 20px;
  padding-left: 0;
}
.scene-toolbar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 168px;
}
.scene-toolbar .theme-control,
.scene-toolbar .camera-picker {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.scene-toolbar .theme-control {
  padding: 0 8px;
}
.scene-toolbar .theme-control select {
  min-width: 0;
  width: 100%;
}
.scene-toolbar .camera-picker {
  display: block;
  position: static;
  width: 100%;
  font-size: 13px;
  padding: 10px 12px;
}
.demo-body .overlay {
  max-width: calc(100% - 228px);
}
@media (max-width: 760px) {
  .demo-layout {
    padding-top: 8px;
  }
  .scene-toolbar {
    top: 12px;
    right: 12px;
    width: 124px;
  }
  .scene-toolbar .theme-control {
    padding: 0 4px;
    gap: 2px;
  }
  .scene-toolbar .theme-control .icon {
    display: none;
  }
  .scene-toolbar .theme-control select,
  .scene-toolbar .camera-picker {
    font-size: 12px;
  }
  .demo-body .overlay {
    max-width: calc(100% - 160px);
  }
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 12px;
  cursor: pointer;
  font-weight: 500;
}
.switch-row input {
  appearance: none;
  width: 48px;
  height: 28px;
  padding: 0;
  border-radius: 20px;
  border: 2px solid var(--outline);
  background: var(--surface-container);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.switch-row input::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: var(--outline);
  transition: transform 0.15s;
}
.switch-row input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.switch-row input:checked::after {
  background: var(--on-primary);
  transform: translateX(20px);
}
.telemetry-flow {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.telemetry-flow p {
  margin: 6px 0 0;
}
#telemetry-detail {
  overflow-wrap: anywhere;
}

/* The raised content panel owns scrolling; the application frame stays put. */
@media screen {
  body:has(> .shell) {
    height: 100dvh;
    overflow: hidden;
  }
  .shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .shell > .sidebar {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    position: static;
  }
  .shell > main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}
@media screen and (max-width: 760px) {
  .shell {
    display: flex;
    flex-direction: column;
  }
  .shell > .sidebar {
    height: auto;
    flex-shrink: 0;
    max-height: 35dvh;
  }
  .shell > main {
    flex: 1;
  }
}
/* Sage accents for the administration shell, including the OpenCV page. */
@media screen {
  body:has(> .shell) {
    --bg: #f1f5ef;
    --surface: #f7faf5;
    --surface-container: #e8f0e4;
    --primary: #386641;
    --on-primary: #fff;
    --primary-container: #d6e9ce;
    --on-primary-container: #183b22;
    --hover: #e7efe2;
    --mint: var(--primary);
    --blue: var(--primary);
  }
  :root[data-theme="dark"] body:has(> .shell) {
    --bg: #121612;
    --panel: #1d221e;
    --surface: #242b25;
    --surface-container: #2c362e;
    --primary: #a7d4a5;
    --on-primary: #13371e;
    --primary-container: #2e5136;
    --on-primary-container: #d1ebcd;
    --hover: #303e32;
  }
}
