/* ════════════════════════════════════════
   iOS Camera Module — fullscreen viewfinder overlay
   Extracted from index.html inline <style> block (M-09)
   to avoid requiring 'unsafe-inline' in style-src CSP.
════════════════════════════════════════ */

.ios-cam-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: #000;
  display: none;
  flex-direction: column;
  align-items: stretch;
}
.ios-cam-overlay.active { display: flex; }

/* Top bar: cancel + badge */
.ios-cam-topbar {
  position: relative; z-index: 9501;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: max(env(safe-area-inset-top, 12px), 12px) 16px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, transparent 100%);
}
.ios-cam-cancel-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px; font-family: inherit; font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
}
.ios-cam-cancel-btn:active { background: rgba(255,255,255,0.3); }
.ios-cam-badge {
  background: rgba(0,61,165,0.88);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px; font-family: inherit; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}

/* Live video preview */
.ios-cam-video {
  flex: 1;
  width: 100%; min-height: 0;
  object-fit: cover;
  display: block;
  background: #111;
}

/* Bottom bar: hint + shutter */
.ios-cam-bottombar {
  position: relative; z-index: 9501;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding: 20px 0 max(env(safe-area-inset-bottom, 28px), 28px);
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, transparent 100%);
}
.ios-cam-hint {
  color: rgba(255,255,255,0.8);
  font-size: 13px; font-family: inherit;
  text-align: center;
  margin: 0;
}

/* Shutter button — outer ring + inner disc */
.ios-cam-shutter {
  width: 82px; height: 82px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.85);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s;
}
.ios-cam-shutter:active { border-color: #fff; }
.ios-cam-shutter-inner {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.1s ease, opacity 0.1s;
}
.ios-cam-shutter:active .ios-cam-shutter-inner {
  transform: scale(0.87);
  opacity: 0.85;
}
