.vision-screen {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: #000;
  color: var(--text-primary);
  --scope-light: 0.2;
}

.vision-screen:focus {
  border-color: transparent;
  box-shadow: none;
}

.camera-preview {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 600px;
  object-fit: cover;
  opacity: calc(0.24 + var(--scope-light) * 0.56);
  filter: saturate(1.1) contrast(1.08);
  background: #000;
}

#sample-canvas {
  display: none;
}

.scope-overlay {
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(112, 231, 255, 0.38);
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(112, 231, 255, 0.12);
}

.scope-overlay::before,
.scope-overlay::after {
  content: "";
  position: absolute;
  background: rgba(112, 231, 255, 0.34);
}

.scope-overlay::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.scope-overlay::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.scope-overlay span {
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: var(--warm);
  border-style: solid;
}

.scope-overlay span:nth-child(1) {
  left: -1px;
  top: -1px;
  border-width: 4px 0 0 4px;
}

.scope-overlay span:nth-child(2) {
  right: -1px;
  top: -1px;
  border-width: 4px 4px 0 0;
}

.scope-overlay span:nth-child(3) {
  right: -1px;
  bottom: -1px;
  border-width: 0 4px 4px 0;
}

.scope-overlay span:nth-child(4) {
  left: -1px;
  bottom: -1px;
  border-width: 0 0 4px 4px;
}

.vision-header,
.vision-readout,
.vision-metrics,
.vision-footer {
  position: relative;
  z-index: 2;
}

.vision-header {
  height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vision-header h1 {
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(112, 231, 255, 0.3);
}

.vision-button {
  width: 92px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: rgba(28, 30, 33, 0.9);
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.vision-readout {
  height: 326px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.vision-readout strong {
  font-size: 58px;
  line-height: 0.92;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(112, 231, 255, 0.34);
}

.vision-readout span {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
}

.vision-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vision-metrics div {
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-metrics span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.vision-metrics strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.vision-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.vision-screen[data-scene="dark"] .vision-readout strong {
  color: var(--accent-strong);
}

.vision-screen[data-scene="motion"] .vision-readout strong {
  color: var(--warm);
}

.vision-screen[data-scene="bright"] .vision-readout strong {
  color: #ffffff;
}
