.attendance-camera { margin: 1rem 0 1.1rem; min-width: 0; }
.camera-title { font-size: .9rem; margin: 0 0 8px; }
.camera-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.attendance-camera .camera-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b8c8db;
  border-radius: 10px;
  background: #f5f8fc;
  color: #0b2347;
  font-weight: 650;
}
.camera-launch svg { width: 18px; height: 18px; }
.camera-launch:focus-visible, .camera-dialog button:focus-visible { outline: 3px solid #2876e4; outline-offset: 2px; }
.camera-preview { width: auto; max-width: 8rem; height: 4rem; object-fit: contain; border-radius: 8px; }
.camera-dialog {
  box-sizing: border-box;
  width: min(26rem, calc(100% - 24px));
  max-height: 94vh;
  max-height: 94dvh;
  overflow: auto;
  margin: auto;
  padding: 16px;
  background: white;
  color: #0b2347;
  border: 1px solid #d8e1ee;
  border-radius: 16px;
}
.camera-dialog::backdrop { background: rgb(10 24 42 / 70%); }
.camera-dialog-header, .camera-actions { display: flex; align-items: center; gap: 8px; }
.camera-dialog-header { justify-content: space-between; margin-bottom: 12px; }
.camera-dialog-header h2 { margin: 0; font-size: 1.1rem; }
.camera-dialog button { width: auto; min-height: 44px; }
.camera-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 50vh; max-height: 50dvh; overflow: hidden; border-radius: 10px; background: #112238; }
.camera-video { width: 100%; height: 100%; display: block; object-fit: cover; }
.camera-face-guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 70%; aspect-ratio: 3 / 4; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 100vmax rgb(4 16 32 / 32%); pointer-events: none; }
.camera-actions { margin-top: 12px; flex-wrap: wrap; }
.camera-message { font-size: .85rem; line-height: 1.5; margin: 8px 0 0; }
#attendance-photo-note {
  color: #c62828;
  font-style: italic;
}
.camera-message:empty { display: none; }
.camera-countdown { font-size: .75rem; line-height: 1.6; padding: 9px 10px; background: #edf4fc; color: #38577e!important; border-radius: 8px; margin: 9px 0 0; font-variant-numeric: tabular-nums; }
.camera-countdown[data-urgent=true] { background: #fff2d8; color: #805110!important; }
