/* LotDone v0.6.4 camera controls.
   Supplemental only: the approved black/white/gold theme remains in styles.css. */
.camera-dialog-card { width: min(100%, 720px); }
.live-camera-frame {
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.live-camera-frame video { pointer-events: none; }
.camera-focus-reticle {
  position: absolute;
  z-index: 4;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 22px rgba(212,175,55,.48);
  pointer-events: none;
  animation: camera-focus-pulse .42s ease-out;
}
.camera-focus-reticle::before,
.camera-focus-reticle::after {
  content: "";
  position: absolute;
  background: #d4af37;
}
.camera-focus-reticle::before { left: 50%; top: 8px; bottom: 8px; width: 1px; }
.camera-focus-reticle::after { top: 50%; left: 8px; right: 8px; height: 1px; }
.camera-focus-reticle.success { border-color: #60c68d; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 22px rgba(96,198,141,.5); }
.camera-focus-reticle.failed { border-color: #f1b452; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 22px rgba(241,180,82,.45); }
@keyframes camera-focus-pulse { from { transform: scale(1.35); opacity: .35; } to { transform: scale(1); opacity: 1; } }

.camera-control-panel {
  margin: 12px 0 8px;
  padding: 12px;
  border: 1px solid rgba(180,135,30,.58);
  border-radius: 16px;
  color: var(--ink, #111);
  background: var(--surface, #fff);
  box-shadow: 0 5px 18px rgba(0,0,0,.07);
}
.camera-control-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.camera-lens-row { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.camera-lens-row label {
  color: var(--muted, #666);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.camera-lens-row select {
  max-width: 210px;
  min-height: 36px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--line-strong, #aaa);
  border-radius: 10px;
  color: var(--ink, #111);
  background: var(--surface, #fff);
  font-size: 12px;
  font-weight: 750;
}
.camera-capability-copy { color: var(--muted, #666); font-size: 10px; text-align: right; }
.camera-zoom-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.camera-zoom-presets button {
  min-height: 40px;
  padding: 7px 4px;
  border: 1px solid var(--line-strong, #aaa);
  border-radius: 999px;
  color: var(--ink, #111);
  background: var(--surface-2, #f2f2f2);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.camera-zoom-presets button.active {
  color: #111;
  border-color: #b58438;
  background: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,.22);
}
.camera-zoom-presets button:disabled { opacity: .3; cursor: not-allowed; }
.camera-zoom-slider-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) 44px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--muted, #666);
  font-size: 11px;
  font-weight: 800;
}
.camera-zoom-slider-row input { width: 100%; accent-color: #c99b2f; }
.camera-zoom-slider-row output { color: var(--ink, #111); font-size: 12px; text-align: right; }
.camera-focus-hint { margin-top: 8px; text-align: center; }

@media (prefers-color-scheme: dark) {
  .camera-control-panel { color: #f7f7f7; background: rgba(18,24,32,.98); }
  .camera-lens-row select { color: #f7f7f7; border-color: #4b5563; background: #111820; }
  .camera-zoom-presets button { color: #f7f7f7; border-color: #4b5563; background: #151d27; }
  .camera-zoom-presets button.active { color: #111; border-color: #d4af37; background: #d4af37; }
  .camera-zoom-slider-row output { color: #fff; }
}

@media (max-width: 520px) {
  .camera-dialog-card { padding-inline: 12px; }
  .camera-control-summary { align-items: stretch; flex-direction: column; }
  .camera-capability-copy { text-align: left; }
  .camera-lens-row { justify-content: space-between; }
  .camera-lens-row select { max-width: 72%; }
  .camera-zoom-presets { gap: 5px; }
  .camera-zoom-presets button { min-height: 38px; font-size: 12px; }
}
.camera-native-note {
  margin: 7px 2px 0;
  color: var(--muted, #666);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
.camera-native-note strong { color: #b58438; }
