.demo-3d-page {
  min-width: 320px;
  overflow: hidden;
  color: #12211d;
  background: #eef2ed;
}

.demo-3d-page .site-header {
  color: #10201b;
  background: rgba(248, 250, 247, .97);
  border-color: rgba(12, 32, 27, .14);
}

.demo-3d-page main {
  padding-top: 0;
}

.demo3d-stage {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
  background: #e6ece8;
}

#demo-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

#demo-3d-canvas:active {
  cursor: grabbing;
}

#demo-3d-canvas.is-locked,
#demo-3d-canvas.is-locked:active {
  cursor: default;
}

.demo3d-stage::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(73, 91, 83, .12);
}

.demo3d-topbar,
.demo3d-commandbar,
.demo3d-inspector,
.demo3d-log-drawer,
.demo3d-selection,
.demo3d-help,
.demo3d-mobile-controls {
  font-family: Onest, Arial, sans-serif;
}

.demo3d-topbar {
  position: absolute;
  z-index: 8;
  top: 16px;
  right: 20px;
  left: 20px;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 7px 9px 7px 15px;
  color: #10201b;
  background: rgba(250, 252, 249, .92);
  border: 1px solid rgba(30, 62, 52, .18);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(44, 64, 55, .1);
  backdrop-filter: blur(18px);
}

.demo3d-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.demo3d-context img {
  width: 68px;
  height: auto;
}

.demo3d-context span,
.demo3d-context strong,
.demo3d-context small {
  min-width: 0;
  display: block;
}

.demo3d-context strong {
  overflow: hidden;
  color: #13231f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo3d-context small {
  margin-top: 2px;
  color: #65756f;
  font-size: 8px;
}

.demo3d-view-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  background: #e7ece8;
  border: 1px solid #cbd5cf;
  border-radius: 5px;
}

.demo3d-view-switch button {
  min-width: 92px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #63736d;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}

.demo3d-view-switch button:hover:not(:disabled) {
  color: #0e201a;
  background: #f4f7f3;
}

.demo3d-view-switch button.active {
  color: #f7faf7;
  background: #12765a;
}

.demo3d-view-switch button:disabled {
  cursor: default;
  opacity: .4;
}

.demo3d-view-switch svg,
.demo3d-top-actions svg {
  width: 14px;
  height: 14px;
}

.demo3d-top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo3d-top-actions a,
.demo3d-top-actions button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: #43544e;
  background: #edf1ed;
  border: 1px solid #cad4ce;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.demo3d-top-actions a:hover,
.demo3d-top-actions button:hover {
  color: #0d1c17;
  background: #fff;
}

.demo3d-top-actions button.is-active {
  color: #f7faf7;
  background: #12765a;
  border-color: #12765a;
}

.demo3d-top-actions button:last-child {
  width: 38px;
  padding: 0;
}

.demo3d-commandbar {
  position: absolute;
  z-index: 7;
  top: 84px;
  right: 20px;
  left: 20px;
  min-height: 50px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 6px;
  color: #173029;
  background: rgba(247, 250, 247, .86);
  border: 1px solid rgba(30, 62, 52, .16);
  border-radius: 5px;
  box-shadow: 0 9px 26px rgba(44, 64, 55, .08);
  backdrop-filter: blur(15px);
}

.demo3d-floors {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #e7ece8;
  border: 1px solid #cbd5cf;
  border-radius: 4px;
}

.demo3d-floors > span {
  padding: 0 8px;
  color: #71817b;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo3d-floors button {
  width: 44px;
  height: 30px;
  color: #5f7069;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.demo3d-floors button.active {
  color: #0a1914;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 56, 47, .12);
}

.demo3d-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
}

.demo3d-metrics > div {
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-left: 1px solid #d3dcd6;
}

.demo3d-metrics > div:first-child {
  border-left: 0;
}

.demo3d-metrics small {
  color: #71817b;
  font-size: 7px;
  text-transform: uppercase;
}

.demo3d-metrics strong {
  color: #12231d;
  font-size: 15px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.demo3d-online {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #12765a;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo3d-online i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #62ed71;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(98, 237, 113, .7);
}

.demo3d-inspector {
  position: absolute;
  z-index: 12;
  top: 146px;
  right: 20px;
  bottom: 20px;
  width: 360px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #15251f;
  background: rgba(250, 252, 249, .97);
  border: 1px solid rgba(30, 62, 52, .2);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(42, 61, 53, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 32px));
  transition: opacity 180ms ease, transform 240ms ease;
}

.demo3d-inspector.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.demo3d-inspector > header,
.demo3d-log-drawer > header,
.demo3d-charge > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo3d-inspector > header > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #12765a;
}

.demo3d-inspector > header svg {
  width: 17px;
  height: 17px;
}

.demo3d-inspector > header small,
.demo3d-log-drawer header small {
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.demo3d-inspector > header button,
.demo3d-log-drawer > header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #53645d;
  background: #edf1ed;
  border: 1px solid #d2dbd5;
  border-radius: 4px;
  cursor: pointer;
}

.demo3d-inspector h1 {
  margin: 15px 0 0;
  font-size: 27px;
  line-height: 1.05;
}

.demo3d-inspector > p {
  margin: 8px 0 0;
  color: #687871;
  font-size: 10px;
  line-height: 1.5;
}

.demo3d-camera-feed {
  position: relative;
  min-height: 178px;
  margin: 15px 0 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, transparent 46%, rgba(255, 255, 255, .18) 47%, rgba(255, 255, 255, .18) 48%, transparent 49%),
    linear-gradient(180deg, #87938e, #65736d);
  border-radius: 5px;
}

.demo3d-camera-feed::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 18, 16, .06), rgba(9, 18, 16, .72));
}

.demo3d-camera-feed img {
  width: 100%;
  height: 178px;
  display: block;
  object-fit: cover;
}

.demo3d-camera-feed.is-empty img,
.demo3d-camera-feed.is-closed img,
.demo3d-camera-feed.is-object img {
  opacity: 0;
}

.demo3d-camera-feed.is-empty::before,
.demo3d-camera-feed.is-closed::before,
.demo3d-camera-feed.is-object::before {
  position: absolute;
  inset: 38px 44px 20px;
  content: "";
  border: 2px solid rgba(240, 245, 241, .52);
  border-bottom: 0;
  transform: perspective(180px) rotateX(8deg);
}

.demo3d-camera-feed figcaption {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
}

.demo3d-camera-feed figcaption span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo3d-camera-feed figcaption i {
  width: 6px;
  height: 6px;
  background: #62ed71;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(98, 237, 113, .7);
}

.demo3d-camera-feed > strong {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 12px;
  left: 13px;
  font-size: 18px;
}

.demo3d-place {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0 0;
  border-top: 1px solid #d4ddd7;
  border-left: 1px solid #d4ddd7;
}

.demo3d-place > div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #d4ddd7;
  border-bottom: 1px solid #d4ddd7;
}

.demo3d-place dt {
  color: #75847e;
  font-size: 7px;
  text-transform: uppercase;
}

.demo3d-place dd {
  margin: 4px 0 0;
  color: #14231e;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.demo3d-place > .is-emphasis {
  background: #edf7f3;
}

.demo3d-place > .is-emphasis dd {
  color: #08795b;
  font-size: 11px;
}

.demo3d-charge {
  margin-top: 12px;
  padding: 12px;
  background: #e7f6f2;
  border-left: 3px solid #14a87c;
}

.demo3d-charge[hidden] {
  display: none;
}

.demo3d-charge header {
  color: #12694f;
  font-size: 9px;
  font-weight: 750;
}

.demo3d-charge header span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo3d-charge header svg {
  width: 14px;
  height: 14px;
}

.demo3d-charge header b {
  color: #53645e;
  font-size: 8px;
}

.demo3d-charge > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 11px;
}

.demo3d-charge > div span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.demo3d-charge small {
  color: #71847d;
  font-size: 7px;
}

.demo3d-charge strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo3d-charge > i {
  height: 5px;
  display: block;
  margin-top: 10px;
  overflow: hidden;
  background: #c9ddd6;
  border-radius: 4px;
}

.demo3d-charge > i b {
  width: 0;
  height: 100%;
  display: block;
  background: #14a87c;
  border-radius: 4px;
  transition: width 300ms ease;
}

.demo3d-plate-field {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.demo3d-plate-field[hidden] {
  display: none;
}

.demo3d-plate-field span {
  color: #71817b;
  font-size: 7px;
  text-transform: uppercase;
}

.demo3d-plate-field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: #14231e;
  background: #fff;
  border: 1px solid #cbd7d0;
  border-radius: 4px;
  outline: 0;
  font: 750 12px/1 Onest, Arial, sans-serif;
  text-transform: uppercase;
}

.demo3d-plate-field input:focus {
  border-color: #159471;
  box-shadow: 0 0 0 2px rgba(21, 148, 113, .12);
}

.demo3d-route-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.demo3d-route-settings[hidden] {
  display: none;
}

.demo3d-route-settings label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.demo3d-route-settings span {
  color: #71817b;
  font-size: 7px;
  text-transform: uppercase;
}

.demo3d-route-settings select {
  width: 100%;
  min-height: 38px;
  padding: 0 30px 0 9px;
  overflow: hidden;
  color: #193028;
  background: #fff;
  border: 1px solid #cbd7d0;
  border-radius: 4px;
  outline: 0;
  font: 700 8px/1.25 Onest, Arial, sans-serif;
  text-overflow: ellipsis;
}

.demo3d-route-settings select:focus {
  border-color: #159471;
  box-shadow: 0 0 0 2px rgba(21, 148, 113, .12);
}

.demo3d-object-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.demo3d-object-actions button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #24362f;
  text-align: left;
  background: #edf1ed;
  border: 1px solid #d2dcd6;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 750;
}

.demo3d-object-actions button:hover {
  color: #0b1b15;
  background: #fff;
  border-color: #aebfb5;
}

.demo3d-object-actions button[hidden] {
  display: none;
}

.demo3d-object-actions button:first-child,
.demo3d-object-actions button.charge-action {
  color: #f6faf7;
  background: #12765a;
  border-color: #12765a;
}

.demo3d-object-actions svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.demo3d-route-guide {
  margin-top: 12px;
  padding: 12px;
  color: #173029;
  background: #e8f3ed;
  border-left: 3px solid #12765a;
}

.demo3d-route-guide[hidden] {
  display: none;
}

.demo3d-route-guide header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.demo3d-route-guide header span,
.demo3d-route-guide header small,
.demo3d-route-guide header strong {
  min-width: 0;
  display: block;
}

.demo3d-route-guide header small {
  color: #537168;
  font-size: 7px;
}

.demo3d-route-guide header strong {
  margin-top: 3px;
  font-size: 10px;
}

.demo3d-route-guide header > b {
  flex: 0 0 auto;
  color: #08795b;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.demo3d-route-guide ol {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.demo3d-route-guide li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 7px;
  padding: 8px 0;
  border-top: 1px solid #cadcd4;
}

.demo3d-route-guide li b {
  color: #08795b;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.demo3d-route-guide li span {
  color: #4f635b;
  font-size: 8px;
  line-height: 1.45;
}

.demo3d-workflow {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  background: #fff1df;
  border-left: 3px solid #ff9e35;
}

.demo3d-workflow[hidden] {
  display: none;
}

.demo3d-workflow span,
.demo3d-workflow small,
.demo3d-workflow strong {
  display: block;
}

.demo3d-workflow small {
  color: #8e765b;
  font-size: 7px;
  text-transform: uppercase;
}

.demo3d-workflow strong {
  margin-top: 3px;
  font-size: 9px;
}

.demo3d-workflow button {
  min-height: 35px;
  color: #f8faf8;
  background: #6b4b25;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 750;
}

.demo3d-log-drawer {
  position: absolute;
  z-index: 11;
  top: 146px;
  bottom: 20px;
  left: 20px;
  width: 330px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  color: #15251f;
  background: rgba(250, 252, 249, .97);
  border: 1px solid rgba(30, 62, 52, .2);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(42, 61, 53, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 32px));
  transition: opacity 180ms ease, transform 240ms ease;
}

.demo3d-log-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.demo3d-log-drawer header div {
  display: grid;
  gap: 4px;
}

.demo3d-log-drawer header small {
  color: #12765a;
}

.demo3d-log-drawer header strong {
  font-size: 19px;
}

.demo3d-log-drawer ol {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.demo3d-log-drawer li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid #d7dfda;
}

.demo3d-log-drawer time {
  color: #768780;
  font-size: 8px;
}

.demo3d-log-drawer li span,
.demo3d-log-drawer li strong,
.demo3d-log-drawer li small {
  min-width: 0;
  display: block;
}

.demo3d-log-drawer li strong {
  font-size: 9px;
}

.demo3d-log-drawer li small {
  margin-top: 3px;
  color: #708078;
  font-size: 8px;
  line-height: 1.4;
}

.demo3d-log-drawer > button {
  min-height: 38px;
  color: #475952;
  background: #edf1ed;
  border: 1px solid #d2dcd6;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 750;
}

.demo3d-selection {
  position: absolute;
  z-index: 7;
  bottom: 20px;
  left: 50%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 7px 6px 13px;
  color: #162720;
  background: rgba(250, 252, 249, .94);
  border: 1px solid rgba(30, 62, 52, .2);
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(44, 64, 55, .13);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.demo3d-selection[hidden] {
  display: none;
}

.demo3d-selection span,
.demo3d-selection small,
.demo3d-selection strong {
  display: block;
}

.demo3d-selection small {
  color: #72827b;
  font-size: 7px;
  text-transform: uppercase;
}

.demo3d-selection strong {
  margin-top: 2px;
  font-size: 10px;
}

.demo3d-selection button {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #f7faf8;
  background: #12765a;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 750;
}

.demo3d-selection button svg {
  width: 13px;
  height: 13px;
}

.demo3d-help {
  position: absolute;
  z-index: 6;
  bottom: 20px;
  left: 20px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  color: #53655d;
  background: rgba(250, 252, 249, .87);
  border: 1px solid rgba(30, 62, 52, .16);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}

.demo3d-help span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
}

.demo3d-help svg {
  width: 13px;
  height: 13px;
  color: #12765a;
}

.demo3d-mobile-controls {
  display: none;
}

.demo3d-toast {
  position: absolute;
  z-index: 20;
  bottom: 82px;
  left: 50%;
  max-width: min(440px, calc(100% - 32px));
  padding: 11px 15px;
  color: #f7faf7;
  background: #12765a;
  border-radius: 4px;
  box-shadow: 0 16px 44px rgba(43, 61, 53, .22);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.demo3d-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo3d-toast.error {
  background: #c84552;
}

.demo3d-fallback {
  position: absolute;
  z-index: 30;
  inset: 0;
  place-content: center;
  padding: 28px;
  color: #14231e;
  text-align: center;
  background: #eef2ed;
}

.demo3d-fallback:not([hidden]) {
  display: grid;
}

.demo3d-fallback strong {
  font-size: 28px;
}

.demo3d-fallback p {
  margin: 10px 0 0;
  color: #687871;
}

.demo3d-fallback a {
  margin: 18px auto 0;
  padding: 11px 16px;
  color: #f7faf7;
  background: #12765a;
  border-radius: 4px;
  font-weight: 750;
}

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

  .demo3d-context span,
  .demo3d-top-actions span {
    display: none;
  }

  .demo3d-top-actions a,
  .demo3d-top-actions button {
    width: 38px;
    padding: 0;
  }

  .demo3d-metrics {
    grid-template-columns: repeat(5, 1fr);
  }

  .demo3d-metrics > div {
    grid-template-columns: 1fr;
    gap: 2px;
    justify-items: center;
  }

  .demo3d-online {
    display: none;
  }
}

@media (max-width: 820px) {
  .demo3d-topbar {
    top: 10px;
    right: 10px;
    left: 10px;
    min-height: 52px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 5px 6px 5px 10px;
  }

  .demo3d-context img {
    width: 55px;
  }

  .demo3d-view-switch {
    justify-self: center;
  }

  .demo3d-view-switch button {
    min-width: 42px;
    min-height: 34px;
    padding: 0 9px;
  }

  .demo3d-view-switch button span {
    display: none;
  }

  .demo3d-commandbar {
    top: 69px;
    right: 10px;
    left: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .demo3d-metrics > div {
    padding-inline: 6px;
  }

  .demo3d-metrics small {
    font-size: 6px;
  }

  .demo3d-metrics strong {
    font-size: 13px;
  }

  .demo3d-inspector {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: calc(100dvh - 68px);
    padding: 18px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform: translateY(104%);
  }

  .demo3d-inspector.open {
    transform: translateY(0);
  }

  .demo3d-log-drawer {
    top: 132px;
    right: 10px;
    bottom: 82px;
    left: 10px;
    width: auto;
    transform: translateY(16px);
  }

  .demo3d-log-drawer.open {
    transform: translateY(0);
  }

  .demo3d-help,
  .demo3d-selection {
    display: none;
  }

  .demo3d-mobile-controls {
    position: absolute;
    z-index: 8;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 6px;
    background: rgba(250, 252, 249, .94);
    border: 1px solid rgba(30, 62, 52, .2);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(44, 64, 55, .16);
    backdrop-filter: blur(14px);
  }

  .demo3d-mobile-controls button {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #44564e;
    background: #edf1ed;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 8px;
    font-weight: 750;
  }

  .demo3d-mobile-controls button:first-child {
    color: #f7faf7;
    background: #12765a;
  }

  .demo3d-mobile-controls button:disabled {
    opacity: .42;
  }

  .demo3d-mobile-controls svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 520px) {
  .demo3d-top-actions a {
    display: none;
  }

  .demo3d-top-actions button:nth-child(2) {
    display: none;
  }

  .demo3d-commandbar {
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 5px;
  }

  .demo3d-floors {
    height: 42px;
  }

  .demo3d-floors > span {
    display: none;
  }

  .demo3d-floors button {
    width: 38px;
    height: 34px;
  }

  .demo3d-metrics > div:nth-child(3),
  .demo3d-metrics > div:nth-child(4) {
    display: none;
  }

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

  .demo3d-metrics > div:nth-child(5) {
    border-left: 1px solid #d3dcd6;
  }

  .demo3d-inspector {
    padding: 16px 14px max(14px, env(safe-area-inset-bottom));
  }

  .demo3d-inspector h1 {
    font-size: 23px;
  }

  .demo3d-camera-feed,
  .demo3d-camera-feed img {
    min-height: 152px;
    height: 152px;
  }

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

  .demo3d-route-settings {
    grid-template-columns: 1fr;
  }

  .demo3d-object-actions button {
    min-height: 43px;
  }

  .demo3d-toast {
    bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo3d-inspector,
  .demo3d-log-drawer,
  .demo3d-toast {
    transition: none;
  }
}
