html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #111418;
  color: #eef2f2;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  overflow: hidden;
}

canvas {
  display: block;
}

button,
select,
label {
  font: inherit;
}

.app-header {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid #283038;
  background: rgba(17, 20, 24, 0.96);
  box-sizing: border-box;
  color: #eef2f2;
  font-size: 26px;
  font-weight: 400;
  line-height: 34px;
}

.app-version {
  margin-left: 10px;
  color: #8b949b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  vertical-align: baseline;
}

.app-version a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-version a:hover {
  color: #c8d0d5;
}

.toolbar {
  position: fixed;
  z-index: 5;
  top: 52px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid #283038;
  background: rgba(17, 20, 24, 0.94);
  box-sizing: border-box;
}

.toolbar button,
.toolbar select {
  height: 32px;
  border: 1px solid #3b454e;
  border-radius: 6px;
  background: #1d242a;
  color: #eef2f2;
}

.toolbar button {
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}

.toolbar button:disabled,
.toolbar select:disabled {
  color: #7f8b95;
  cursor: default;
}

.toolbar button.calibrate-pulse:not(:disabled) {
  animation: calibrate-text-pulse 1.2s ease-in-out infinite;
}

@keyframes calibrate-text-pulse {
  0%,
  100% {
    color: #eef2f2;
  }

  50% {
    color: #fff35a;
  }
}

.toolbar select {
  min-width: 260px;
  max-width: 42vw;
  padding: 0 8px;
}

.toolbar select.quality-select {
  min-width: 156px;
  max-width: 156px;
}

.toolbar select.camera-resolution-select {
  min-width: 118px;
  max-width: 118px;
}

.toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  color: #c8d0d5;
  white-space: nowrap;
}

.toolbar input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.toolbar input[type="range"] {
  width: 112px;
}

.z-scale-floating {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 28px;
  height: 132px;
  color: #8b949b;
  font-size: 10px;
  pointer-events: auto;
}

.z-scale-floating input[type="range"] {
  width: 112px;
  height: 18px;
  margin: 46px 0 0;
  transform: rotate(-90deg);
  transform-origin: center;
}

.mesh-interpolation-floating {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 28px;
  color: #8b949b;
  font-size: 10px;
  line-height: 12px;
  pointer-events: auto;
}

.mesh-interpolation-floating label {
  display: flex;
  justify-content: center;
  width: 20px;
  height: 18px;
}

.mesh-interpolation-floating input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.spacer {
  flex: 1 1 auto;
}

.status {
  max-width: 38vw;
  overflow: hidden;
  color: #aeb9c1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

video {
  display: none;
}
