/* NESTORA camera capture dialog. Loads after neumorphism.css. No inline styles, no external URLs. */
.cam { width: min(100vw, 560px); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 1px solid var(--panel-border); border-radius: var(--radius-lg);
  background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.cam[open] { display: flex; flex-direction: column; }
.cam::backdrop { background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cam-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); padding-top: max(var(--s-3), env(safe-area-inset-top)); }
.cam-title { margin: 0; font-size: var(--fs-lg); }
.cam-stage { position: relative; background: #0b0a14; aspect-ratio: 4 / 3; max-height: 62dvh; width: 100%; display: grid; place-items: center; overflow: hidden; }
.cam-video, .cam-still { width: 100%; height: 100%; object-fit: contain; background: #0b0a14; }
.cam-video[hidden], .cam-still[hidden] { display: none; }
.cam-video.mirror, .cam-still.mirror { transform: scaleX(-1); }
.cam-badge { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; color: #fff; background: rgb(15 14 23 / .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cam-badge:empty { display: none; }
.cam-msg { margin: 0; padding: var(--s-3) var(--s-4) 0; min-height: 1.4em; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }
.cam-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-6); padding: var(--s-4); padding-bottom: max(var(--s-5), env(safe-area-inset-bottom)); }
.cam-controls[hidden] { display: none; }
.cam-flip[hidden], .cam-done[hidden] { display: none; }
.cam-flip { width: 52px; height: 52px; }
.cam-shutter { width: 76px; height: 76px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: var(--neu-surface); box-shadow: var(--neu-raised); }
.cam-shutter-ring { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-600); box-shadow: inset 0 0 0 4px rgb(255 255 255 / .85); transition: transform var(--dur) var(--ease); }
.cam-shutter:active .cam-shutter-ring { transform: scale(.9); }
.cam-shutter:disabled { opacity: .45; cursor: not-allowed; }
.cam-shutter:focus-visible, .cam-flip:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
:root[data-theme="dark"] .cam-shutter-ring { background: var(--brand-600); box-shadow: inset 0 0 0 4px rgb(20 9 46 / .9); }
@media (max-width: 760px) {
  .cam { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .cam-stage { flex: 1; aspect-ratio: auto; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .cam-shutter-ring { transition: none; } }
@media print { .cam { display: none !important; } }
/* The buttons are hidden until the script confirms a camera path exists */
[data-camera-open][hidden] { display: none !important; }
