/* ============================================================================
 * 아이티센 PoC 디자인 시스템 (METSAKUUR)
 * ----------------------------------------------------------------------------
 * 앱 캡쳐에서 추출한 색/레이아웃 기준. Tailwind 에 의존하지 않는 독립 스타일시트라
 * tailwind watcher 없이 빌드해도 화면이 그대로 나온다.
 * 폐쇄망 대응: 외부 CDN 없이 로컬 폰트만 사용한다.
 * ==========================================================================*/

@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-display: swap;
  src:
    local('Pretendard Regular'),
    url('../fonts/Pretendard-Regular.subset.woff2') format('woff2'),
    url('../fonts/Pretendard-Regular.subset.woff') format('woff');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-display: swap;
  src:
    local('Pretendard SemiBold'),
    url('../fonts/Pretendard-SemiBold.subset.woff2') format('woff2'),
    url('../fonts/Pretendard-SemiBold.subset.woff') format('woff');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-display: swap;
  src:
    local('Pretendard Bold'),
    local('Pretendard SemiBold'),
    url('../fonts/Pretendard-SemiBold.subset.woff2') format('woff2'),
    url('../fonts/Pretendard-SemiBold.subset.woff') format('woff');
}

:root {
  /* ---- 캡쳐에서 추출한 실제 색상 ---- */
  --mk-green-900: #174924; /* 헤더 / 히어로 */
  --mk-green-600: #057857; /* 기본 버튼 */
  --mk-green-700: #04664a; /* 버튼 눌림 */
  --mk-teal: #008c69; /* 완료 체크, 통과 글자 */

  --mk-mint-50: #ebfbf8; /* 얼굴 일러스트 박스 / 신분증 tip 아이콘 */
  --mk-blue-50: #eff6ff; /* 신분증 일러스트 박스 */
  --mk-blue-100: #dbeaff; /* 얼굴 tip 아이콘 */
  --mk-blue-500: #61a5fa;
  --mk-cyan-500: #00b5dc;

  --mk-cream: #f6fae9; /* 완료 체크 원 */
  --mk-flat: #f6f8f7; /* 결과 카드 */
  --mk-badge: #ebf7f3; /* 통과 뱃지 */
  --mk-amber-50: #fff7d8; /* 안내 노티스 */
  --mk-amber-700: #8a6a00;

  --mk-cam-bg: #0e1712; /* 카메라 화면 배경 */
  --mk-gauge: #f3c301; /* 게이지 진행 */
  --mk-track: #e6e7eb; /* 게이지 트랙 */

  --mk-red-500: #e5484d;
  --mk-red-50: #fdecee;

  --mk-ink: #202020;
  --mk-ink-2: #5a6168;
  --mk-ink-3: #9aa0a6;
  --mk-line: #e9ecee;

  --mk-radius: 20px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.mk {
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    'Malgun Gothic',
    sans-serif;
  color: var(--mk-ink);
  background: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.mk-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ---------------------------------------------------------- 단계 전환 ---- */
.mk-step {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.mk-step.active {
  display: flex;
}

/*
 * 얼굴 등록 - 신분증 인증 OFF (html.mk-noid)
 * 모듈이 첫 화면을 얼굴 촬영 안내로 바꾸기 전까지 신분증 안내 대신 얼굴 촬영 안내를 보여준다.
 * 모듈이 showStep('guide') 를 부르면 신분증 안내의 active 가 빠지므로 이 규칙은 더 이상 걸리지 않는다.
 */
.mk-noid #step-idguide.active {
  display: none;
}

.mk-noid #step-idguide.active ~ #step-guide {
  display: flex;
}

.mk-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #fff;
}

/* ======================================================= 상단 녹색 영역 ====
 * 캡쳐 구조: 짙은 녹색 블록 안에 상단바 + 제목 + 보조문구가 들어가고,
 * 그 아래 흰 카드가 녹색 경계를 타고 올라와 겹친다.
 * ==========================================================================*/
/*
 * 캡쳐 실측(기기 1080px / DPR 2.75 기준):
 *   녹색 블록 높이 359px, 흰 카드가 그 위로 128px 겹쳐 올라온다.
 *   제목 줄 수와 상관없이 녹색 높이는 일정하므로 min-height 로 고정한다.
 */
.mk-head {
  background: var(--mk-green-900);
  color: #fff;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 20px 0;
  min-height: calc(359px + env(safe-area-inset-top, 0px));
}

.mk-head__bar {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.mk-head__back {
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-head__back svg {
  width: 26px;
  height: 26px;
}

.mk-head__bar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.mk-head__brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mk-head__gear {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-head__gear svg {
  width: 26px;
  height: 26px;
}

.mk-pill {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.mk-head__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.34;
  margin: 0 0 10px;
  word-break: keep-all;
}

.mk-head__sub {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  word-break: keep-all;
}

/* 녹색 아래 본문. 카드가 녹색 위로 겹쳐 올라간다. */
.mk-body {
  margin-top: -128px;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 겹치지 않는 본문 (완료 화면) */
.mk-body--flush {
  margin-top: 0;
  padding-top: 34px;
}

/* ----------------------------------------------------------------- 카드 ---- */
.mk-card {
  background: #fff;
  border-radius: var(--mk-radius);
  padding: 22px 20px;
  box-shadow: 0 4px 22px rgba(23, 73, 36, 0.09);
}

.mk-card--flat {
  background: var(--mk-flat);
  box-shadow: none;
}

.mk-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  word-break: keep-all;
}

/*
 * 카드 안에서 두 번째 이후로 오는 제목은 위 요소와 간격을 둔다.
 * 숨어 있는 오류 박스가 사이에 끼어도 적용되도록 인접 선택자(+)를 쓰지 않는다.
 */
.mk-card__title:not(:first-child) {
  margin-top: 26px;
}

/* 일러스트를 감싸는 파스텔 박스 */
.mk-illus-box {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mk-illus-box--mint {
  background: var(--mk-mint-50);
}

.mk-illus-box--blue {
  background: var(--mk-blue-50);
}

.mk-illus {
  width: 150px;
  max-width: 60%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------- 입력폼 ---- */
.mk-field {
  display: block;
}

.mk-field + .mk-field {
  margin-top: 18px;
}

.mk-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-ink-2);
  margin-bottom: 8px;
  word-break: keep-all;
}

.mk-field__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mk-ink-3);
  margin: 7px 0 0;
  word-break: keep-all;
}

/* 카드 안 구분선 + 텍스트 버튼 */
.mk-divider {
  height: 1px;
  background: #f0f2f3;
  margin: 20px 0;
}

.mk-textbtn {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mk-ink-3);
  text-align: center;
  cursor: pointer;
}

.mk-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-size: 16px; /* iOS 자동 확대 방지 */
  font-family: inherit;
  color: var(--mk-ink);
  background: #fff;
  border: 1px solid #d8dde0;
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.mk-input::placeholder {
  color: var(--mk-ink-3);
}

.mk-input:focus {
  border-color: var(--mk-green-600);
  box-shadow: 0 0 0 3px rgba(5, 120, 87, 0.13);
}

/* --------------------------------------------------------------- 버튼 ---- */
.mk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.mk-btn--primary {
  background: var(--mk-green-600);
  color: #fff;
}

.mk-btn--primary:active {
  background: var(--mk-green-700);
}

.mk-btn--primary:disabled {
  background: #c3cbce;
  cursor: not-allowed;
}

.mk-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 결과 화면 하단에 버튼이 두 개일 때 (다시 인증 / 확인) */
.mk-footer .mk-btn + .mk-btn {
  margin-top: 12px;
}

.mk-btn[hidden] {
  display: none;
}

/* 설정 화면 소제목 / 보조 설명 */
.mk-field__group-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--mk-ink-2);
}

.mk-setting-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mk-ink-3);
}

/* --------------------------------------------------------------- 푸터 ---- */
.mk-footer {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

/* ------------------------------------------------- 가운데 알림창 ---- */
.mk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 22, 19, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
}

.mk-modal[hidden] {
  display: none;
}

.mk-modal__box {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 30px 22px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.mk-modal__text {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--mk-ink);
  /* 코드에서 넣은 줄바꿈을 그대로 살린다 */
  white-space: pre-line;
  word-break: keep-all;
}

/* 서버가 준 원문처럼 덧붙는 한 줄 */
.mk-modal__sub {
  margin: -6px 0 18px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: var(--mk-ink-3);
  white-space: pre-line;
  word-break: keep-all;
}

.mk-modal__sub[hidden] {
  display: none;
}

/* 확인/선택 창 (js/poc/Dialog.js) */
.mk-modal__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--mk-ink);
  white-space: pre-line;
  word-break: keep-all;
}

.mk-dialog__message {
  margin: 0 0 22px;
}

.mk-modal__title + .mk-modal__actions {
  margin-top: 18px;
}

.mk-modal__actions {
  display: flex;
  gap: 10px;
}

.mk-modal__actions .mk-btn {
  flex: 1;
  height: 52px;
  font-size: 16px;
}

.mk-btn--ghost {
  background: #fff;
  color: var(--mk-ink-2);
  border: 1px solid #d9dde0;
}

.mk-btn--ghost:active {
  background: #f2f4f5;
}

/* 푸터 하단 공급사 표기 (아이티센 / 아톤) */
.mk-vendor {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mk-ink-3);
}

/* --------------------------------------------------------- 안내 목록 ---- */
.mk-tips {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.mk-tips__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
}

.mk-tips__item + .mk-tips__item {
  border-top: 1px solid #f0f2f3;
}

.mk-tips__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--mk-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-tips__icon--mint {
  background: var(--mk-mint-50);
}

.mk-tips__icon img {
  width: 22px;
  height: 22px;
}

.mk-tips__icon svg {
  width: 21px;
  height: 21px;
}

.mk-tips__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mk-ink-2);
  word-break: keep-all;
}

/* ---------------------------------------------------------------- 토글 ---- */
.mk-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mk-toggle-row__label {
  font-size: 16px;
  font-weight: 600;
  word-break: keep-all;
}

.mk-switch {
  position: relative;
  width: 58px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #c9d1d6;
  cursor: pointer;
  transition: background-color 0.18s;
  flex-shrink: 0;
}

.mk-switch[aria-checked='true'] {
  background: var(--mk-green-600);
}

.mk-switch__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s;
}

.mk-switch[aria-checked='true'] .mk-switch__knob {
  transform: translateX(26px);
}

/* ---------------------------------------------------------------- 알림 ---- */
.mk-alert {
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  padding: 13px 14px;
  word-break: keep-all;
}

.mk-alert--error {
  background: var(--mk-red-50);
  color: #b4262b;
}

.mk-alert--notice {
  background: var(--mk-amber-50);
  color: var(--mk-amber-700);
  font-weight: 600;
  text-align: center;
}

.mk-alert[hidden] {
  display: none;
}

/* 화면 진입 시 공개키 조회 실패 등, 단계와 무관하게 맨 위에 띄우는 알림 */
.mk-page-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
}

.mk-page-alert__text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.mk-page-alert__retry {
  flex-shrink: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ------------------------------------------------------------ 결과 화면 ---- */
/* 결과 화면은 카드가 겹치지 않는다. 실측 녹색 272px / 체크 원 112px */
.mk-head--result {
  min-height: 0;
  padding-bottom: 50px;
  text-align: center;
}

.mk-result-mark {
  width: 112px;
  height: 112px;
  margin: 36px auto 0;
  border-radius: 50%;
  background: var(--mk-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-result-mark svg {
  width: 56px;
  height: 56px;
}

.mk-result-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 10px;
  word-break: keep-all;
  white-space: pre-line;
}

/* 부제목이 비어 있으면 숨긴다 */
/* 결과 화면: 제목/부제목은 남은 공간 가운데, "인증 결과" 카드는 확인 버튼 바로 위에 고정 */
.mk-step--result .mk-scroll {
  display: flex;
  flex-direction: column;
}

.mk-step--result .mk-body--flush {
  flex: 1;
}

.mk-step--result .mk-result-title {
  margin-top: auto;
}

.mk-step--result .mk-body--flush > .mk-card {
  margin-top: auto;
}

.mk-result-sub[hidden] {
  display: none;
}

.mk-result-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mk-ink-2);
  text-align: center;
  margin: 0 0 32px;
  word-break: keep-all;
  white-space: pre-line;
}

.mk-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.mk-result-row__key {
  color: var(--mk-ink-2);
  word-break: keep-all;
}

/* 결과 카드에 행이 여러 개일 때 (고객번호 / 인증 결과) */
.mk-result-row + .mk-result-row {
  margin-top: 14px;
}

.mk-result-row__value {
  font-weight: 700;
  color: var(--mk-ink);
  word-break: break-all;
  text-align: right;
}

.mk-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 999px;
  white-space: nowrap;
}

.mk-badge--pass {
  background: var(--mk-badge);
  color: var(--mk-teal);
}

.mk-badge--fail {
  background: var(--mk-red-50);
  color: #b4262b;
}

/* 수행하지 않은 단계 (예: 신분증 촬영 생략) */
.mk-badge--none {
  background: #f0f2f5;
  color: #6b7280;
}

/* ====================================================== 카메라 / 라이브니스 ==
 * 원형 카메라 + 게이지 아크 화면.
 * ==========================================================================*/
body.mk-camera,
body.mk-camera .mk-shell {
  background: var(--mk-cam-bg);
  color: #fff;
}

.mk-cam-top {
  position: relative;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: env(safe-area-inset-top, 0px);
}

.mk-cam-top__back {
  position: absolute;
  left: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-cam-top__back svg {
  width: 26px;
  height: 26px;
}

.mk-cam-top__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.mk-cam-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 24px;
  gap: 26px;
}

.mk-cam {
  position: relative;
  width: min(74vw, 280px);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.mk-cam__gauge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  transition: transform 0.3s;
}

.mk-cam__circle {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
}

.mk-cam__circle video,
.mk-cam__circle canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.mk-cam__loading {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 23, 18, 0.45);
  pointer-events: none;
}

.mk-cam__loading[hidden] {
  display: none;
}

/* 촬영 후 서버 응답 대기. 정지된 마지막 프레임을 더 눌러 "처리 중" 으로 읽히게 한다. */
.mk-cam__loading--busy {
  background: rgba(14, 23, 18, 0.74);
}

.mk-spinner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: mkSpin 0.9s linear infinite;
}

@keyframes mkSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 정면 안내 중 원 가운데 머무는 스마일 표식 */
.mk-cam__face {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 19;
}

.mk-cam__face.show {
  opacity: 1;
}

.mk-cam__face img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

/* 고개돌림 안내: 궤도 리본 + 화살표 (assets 폴더 제공 이미지) */
.mk-turn-line,
.mk-turn-arrow {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  pointer-events: none;
}

.mk-turn-line {
  width: 69.445%;
  height: 18.75%;
  top: 55.9%;
  z-index: 18;
}

.mk-turn-arrow {
  width: 13.89%;
  height: 13.89%;
  top: 63.8%;
  z-index: 20;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.mk-turn-line.show,
.mk-turn-arrow.show {
  display: block;
}

.mk-turn-arrow.left.show {
  animation: mkArrowLeft 2s ease-in-out infinite;
}

.mk-turn-arrow.right.show {
  animation: mkArrowRight 2s ease-in-out infinite;
}

@keyframes mkArrowLeft {
  0% {
    top: 63.8%;
    left: 50%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 62.3%;
    left: 32%;
    opacity: 0;
  }
}

@keyframes mkArrowRight {
  0% {
    top: 63.8%;
    left: 50%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 62.3%;
    left: 68%;
    opacity: 0;
  }
}

.mk-cam__guide {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: #fff;
  margin: 0;
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

/* 얼굴이 가이드를 벗어났을 때만 뜨는 보조 안내 */
.mk-cam__hint {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  margin: -10px 0 0;
  min-height: 1.5em;
  transition: opacity 0.2s;
  word-break: keep-all;
}

.mk-cam__hint[hidden] {
  display: block;
  visibility: hidden;
}

.mk-cam__ver {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

/* ------------------------------------------------- 신분증 촬영 화면 ---- */
body.mk-idcam-page,
body.mk-idcam-page .mk-shell {
  background: #000;
}

.mk-idcam {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
  overflow: hidden;
}

.mk-idcam video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 캡쳐 기준: 주변을 어둡게 덮지 않고 테두리만 그린다 */
.mk-idcam__guide {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 88%;
  aspect-ratio: 1.58 / 1;
  border: 5px solid #2fbf86;
  border-radius: 16px;
  pointer-events: none;
}

.mk-idcam__back {
  position: absolute;
  left: 10px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-idcam__back svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.mk-idcam__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  padding: 0 20px;
  word-break: keep-all;
}

.mk-shutter-bar {
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 calc(22px + env(safe-area-inset-bottom, 0px));
}

.mk-shutter {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-shutter svg {
  width: 34px;
  height: 34px;
}

.mk-shutter:active {
  background: #d9dde0;
}

/* 촬영 원본을 비율 그대로 보여준다 (잘라내지 않는다) */
.mk-preview {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f0f1f2;
  display: block;
}

[hidden] {
  display: none !important;
}
