/* ===========================
   CAMERA SETTINGS 운영자 카메라 설정 (대기 화면 톱니 → 비밀번호 → 패널)
   =========================== */

/* 대기 화면 톱니 버튼 (우측 상단) */
.idle-settings-btn {
  position: absolute;
  top: 2.5cqw;
  right: 2.5cqw;
  width: 9cqw;
  height: 9cqw;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.idle-settings-btn svg {
  width: 5cqw;
  height: 5cqw;
}
.idle-settings-btn:active {
  transform: scale(0.95);
}

/* 인증 모달 — 로그아웃 인증 모달(_idle.html)과 동일 규격. fixed 오버레이라 px 단위 사용 (cqw는 컨테이너 기준이라 비대해짐) */
.camset-backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.camset-auth {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  width: 85%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Pretendard", sans-serif;
}
.camset-auth-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 22px;
  color: #222;
  text-align: center;
}
.camset-auth-desc {
  margin: -8px 0 12px;
  font-size: 14px;
  color: #999;
  text-align: center;
}
.camset-auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d9d9d9;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  background: #f5f5f5;
  outline: none;
  box-sizing: border-box;
}
.camset-auth-error {
  margin: 0;
  font-size: 14px;
  color: #ff3333;
  background: #fff0f0;
  border-radius: 12px;
  padding: 12px 16px;
}
.camset-auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.camset-auth-actions .camset-btn {
  padding: 14px 0;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
}
.camset-auth-actions .camset-btn--ghost {
  background: #fff;
  border: 1.5px solid #d9d9d9;
  color: #666;
  font-weight: 600;
}

/* 패널 */
.camset-screen {
  background: #ffffff;
  padding: 5.15cqw;
  gap: 4cqw;
}
.camset-header {
  flex-shrink: 0;
}
.camset-title {
  margin: 0;
  font-weight: 700;
  font-size: 5.15cqw;
  line-height: 6.87cqw;
  color: #222;
  text-align: center;
}
.camset-sub {
  margin: 0;
  text-align: center;
  font-size: 3cqw;
  color: #999;
}

/* 프리뷰: 촬영 화면과 같은 비율·같은 크롭이 보이도록 */
.camset-preview-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camset-preview {
  height: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  border: 1.72cqw solid #222;
  border-radius: 4.29cqw;
  background: #222;
  overflow: hidden;
  position: relative;
}
.camset-preview--landscape {
  height: auto;
  width: 100%;
  max-height: 100%;
}
.camset-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 촬영 영역 가이드: 프레임 자체가 촬영 영역이므로 안쪽 여백선과 머리 위치 힌트만 */
.camset-guide {
  position: absolute;
  inset: 4%;
  border: 0.3cqw dashed rgba(255, 255, 255, 0.7);
  border-radius: 2cqw;
  pointer-events: none;
}
.camset-guide-head {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 34%;
  height: 46%;
  transform: translateX(-50%);
  border: 0.3cqw dashed rgba(255, 255, 255, 0.45);
  border-radius: 50% 50% 45% 45%;
}
.camset-guide-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  text-align: center;
  font-size: 2.6cqw;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 1cqw rgba(0, 0, 0, 0.8);
}

/* 슬라이더 */
.camset-controls {
  flex-shrink: 0;
  display: grid;
  gap: 2.2cqw;
}
.camset-row {
  display: grid;
  grid-template-columns: 22cqw 1fr 14cqw;
  align-items: center;
  gap: 2.5cqw;
}
.camset-label {
  font-weight: 600;
  font-size: 3.43cqw;
  color: #222;
}
.camset-label small {
  font-weight: 400;
  color: #999;
  font-size: 2.6cqw;
}
.camset-range {
  width: 100%;
  accent-color: #222;
  height: 6cqw;
}
.camset-range:disabled {
  opacity: 0.35;
}
.camset-value {
  font-variant-numeric: tabular-nums;
  font-size: 3.2cqw;
  color: #444;
  text-align: right;
}
.camset-hint {
  margin: -1cqw 0 0;
  font-size: 2.8cqw;
  color: #b45309;
  text-align: center;
}

/* 버튼 */
.camset-actions {
  flex-shrink: 0;
  display: flex;
  gap: 3cqw;
}
.camset-btn {
  flex: 1;
  padding: 3.8cqw 4cqw;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4.29cqw;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 3.8cqw;
  cursor: pointer;
}
.camset-btn:disabled {
  opacity: 0.5;
}
.camset-btn--ghost {
  background: #f0f0f0;
  color: #222;
}
