/* Employee 사이트 고유 스타일(공통은 foon.css 의 fn-m* 클래스). 모바일 터치 대상은 최소 44px. */

.em .fn-m-top { min-height: 56px; }
.em-back { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; border-radius: 10px; color: var(--fn-ink); }
.em-back:hover { background: var(--fn-surface-2); text-decoration: none; }
.em .fn-m-tabs a { min-height: 50px; justify-content: center; }
.em .fn-m-tabs a:hover { text-decoration: none; }

/* 큰 입력·버튼(모바일) */
.em .fn-input, .em .fn-select { height: 46px; font-size: 16px; border-radius: 10px; }
.em .fn-textarea { font-size: 16px; }
.em .fn-btn.lg { height: 52px; font-size: 16px; border-radius: 14px; }
.em .fn-field > label { font-size: 13.5px; }

/* 인사 · 보조 문구 */
.em-hello { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.em-sub { color: var(--fn-muted); font-size: 13px; }
.em-sec { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.em-sec .more { margin-left: auto; font-size: 13px; font-weight: 600; }

/* 히어로 카드 보조 */
.fn-m-hero .label { font-size: 13px; opacity: .85; font-weight: 600; }
.fn-m-hero .meta { margin-top: 10px; font-size: 13.5px; opacity: .92; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.fn-m-hero .chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.fn-m-hero.done { background: linear-gradient(145deg, #0E9F74 0%, #12B886 60%, #4BD3A9 120%); box-shadow: 0 10px 30px rgba(18, 184, 134, .28); }
.fn-m-hero.stop { background: linear-gradient(145deg, #B4323A, #E03E45); box-shadow: none; }

/* 빠른 버튼 2칸 */
.em-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.em-quick a { display: flex; align-items: center; gap: 10px; padding: 16px; min-height: 64px; border-radius: 16px; background: var(--fn-surface); border: 1px solid var(--fn-line);
  box-shadow: var(--fn-shadow); color: var(--fn-ink); font-weight: 700; font-size: 15px; }
.em-quick a:hover { text-decoration: none; border-color: var(--fn-brand); }
.em-quick .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--fn-brand-soft); color: var(--fn-brand); flex: none; }
.em-quick .ic.on { background: var(--fn-on-soft); color: var(--fn-on); }

/* 오늘 식사구분 목록 */
.em-slot { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fn-line); }
.em-slot:last-child { border-bottom: 0; }
.em-slot .k { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #EEF1F7; color: var(--fn-ink-2); flex: none; }
.em-slot .k.now { background: var(--fn-brand); color: #fff; }
.em-slot .k.done { background: var(--fn-on-soft); color: #0B8A63; }
.em-slot .t { flex: 1; min-width: 0; }

/* 숫자 3칸 요약 */
.em-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.em-stats > div { background: var(--fn-surface-2); border-radius: 12px; padding: 12px 10px; text-align: center; }
.em-stats .v { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.em-stats .l { font-size: 12px; color: var(--fn-muted); font-weight: 600; }

/* 링크 목록(더보기 · 공지) */
.em-links { display: flex; flex-direction: column; }
.em-links a, .em-links button { display: flex; align-items: center; gap: 12px; padding: 14px 2px; min-height: 52px; border: 0; border-bottom: 1px solid var(--fn-line);
  background: none; font: inherit; color: var(--fn-ink); text-align: left; cursor: pointer; width: 100%; font-size: 15px; font-weight: 600; }
.em-links > :last-child { border-bottom: 0; }
.em-links a:hover { text-decoration: none; }
.em-links .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fn-brand-soft); color: var(--fn-brand); flex: none; }
.em-links .grow { flex: 1; min-width: 0; }
.em-links .chev { color: var(--fn-muted); }
.em-count { background: var(--fn-danger); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }

/* 배너(승인 대기 등) */
.em-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--fn-warn-soft); border: 1px solid #F5DD9C; color: #7A5200; font-weight: 600; }
.em-banner:hover { text-decoration: none; }

/* QR 화면 */
.em-qr { text-align: center; padding: 24px 18px; }
.em-qr .fn-qr svg { width: 260px; height: 260px; max-width: 70vw; max-height: 70vw; }
.em-count-bar { height: 6px; border-radius: 999px; background: var(--fn-line); overflow: hidden; margin: 14px auto 6px; max-width: 260px; }
.em-count-bar > i { display: block; height: 100%; background: var(--fn-brand); transition: width 1s linear; }
.em-code { font-family: var(--fn-mono); font-size: 30px; font-weight: 800; letter-spacing: .18em; }

/* 이력: 날짜 머리 */
.em-day { font-size: 13px; font-weight: 700; color: var(--fn-ink-2); margin: 6px 2px -6px; }
.em-row { display: flex; gap: 12px; align-items: flex-start; }
.em-row .grow { flex: 1; min-width: 0; }
.em-row .name { font-weight: 700; font-size: 15px; }

/* 키-값(모바일 2열 고정) */
.em-kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 14px; }
.em-kv dt { color: var(--fn-muted); font-weight: 600; }
.em-kv dd { margin: 0; min-width: 0; word-break: break-all; }

.em-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.em-seg button { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fn-line-strong); background: var(--fn-surface); font: inherit; font-weight: 600; cursor: pointer; }
.em-seg button.active { background: var(--fn-brand); border-color: var(--fn-brand); color: #fff; }

.em-foot { text-align: center; color: var(--fn-muted); font-size: 12px; padding: 8px 0 4px; }

/* 모바일에서 토스트를 탭바 위 가운데로 */
.em ~ .fn-toasts, .fn-toasts { right: 50%; transform: translateX(50%); bottom: 84px; width: calc(100% - 32px); max-width: 440px; }
.fn-toasts .fn-toast { min-width: 0; max-width: none; }
.em .fn-modal { max-width: 440px; }

/* 얼굴관리 — 사진 촬영·미리보기·동의 */
.face-pick { position: relative; cursor: pointer; }
.face-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.face-photo { display: flex; justify-content: center; }
.face-photo img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 3px solid var(--fn-line); background: var(--fn-bg, #f4f5f7); }
.face-consent { border: 1px solid var(--fn-line); border-radius: 12px; padding: 12px 14px; background: var(--fn-bg, #f8f9fb); }
.face-consent dl { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; margin: 8px 0; }
.face-consent dt { color: var(--fn-muted); font-weight: 600; }
.face-consent dd { margin: 0; }
.face-consent .fn-check { align-items: flex-start; }
.face-consent .fn-check input { margin-top: 2px; flex: none; }

/* 얼굴등록 공개 화면(/e/{토큰}) */
.enroll { max-width: 480px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 100vh; background: var(--fn-bg, #f4f5f7); }
.enroll-brand { display: flex; justify-content: center; padding: 8px 0; }
/* 언어 고르기(2026-10-29) — 로고 아래 오른쪽 */
.enroll-lang { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: -8px; color: var(--fn-muted); }
.enroll-lang .fn-select { width: auto; min-width: 150px; height: 36px; font-size: 14px; }
.enroll-steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.enroll-steps span { padding: 4px 10px; border-radius: 999px; background: var(--fn-surface-2); color: var(--fn-muted); font-weight: 600; }
.enroll-steps span.now { background: var(--fn-brand); color: #fff; }
.enroll-steps span.done { background: var(--fn-on-soft); color: #0B8A63; }
.enroll-code { font-size: 28px; letter-spacing: 12px; text-align: center; height: 56px; }
.enroll-agree { align-items: flex-start; line-height: 1.5; }
.enroll-agree input { margin-top: 3px; flex: none; }
.enroll-terms { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; margin: 0 0 8px; }
.enroll-terms dt { color: var(--fn-muted); font-weight: 600; }
.enroll-terms dd { margin: 0; }
.enroll-guide { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--fn-ink-2); }
.em-qr-clock { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-top: 10px; color: var(--fn-ink); }

/* 메뉴 고르기(2026-11-05) — 인증 뒤 기본 식사·추가 메뉴 선택 */
.em-pick { border: 2px solid var(--fn-brand); }
.em-pick .em-sec { display: flex; align-items: center; gap: 8px; }
.em-pick-state { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: #F4F6FB; font-size: 14px; line-height: 1.5; }
.em-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.em-pick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; min-height: 64px; border-radius: 12px;
  border: 1.5px solid var(--fn-line); background: #fff; color: var(--fn-ink); text-align: left; font: inherit; cursor: pointer; }
.em-pick-btn .n { font-weight: 800; font-size: 15px; word-break: keep-all; }
.em-pick-btn .p { font-size: 13px; color: var(--fn-ink-2); }
.em-pick-btn .x { font-size: 12px; color: var(--fn-brand); font-weight: 700; }
.em-pick-btn.on { border-color: var(--fn-brand); background: #EEF2FF; box-shadow: inset 0 0 0 1px var(--fn-brand); }
.em-pick-btn:disabled { opacity: .6; }
/* 메뉴 고르기 — 인증 전 안내(고를 수 있는 메뉴 미리 보기 · 2026-11-06) */
.em-pick-pre { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.em-pick-pre span { padding: 5px 10px; border-radius: 99px; background: #F4F6FB; font-size: 13px; }
.em-pick-pre i { font-style: normal; color: var(--fn-ink-2); margin-left: 2px; }
/* 앱 설치 안내(/install · 2026-11-09) */
.install-big { margin: 8px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.7; }
.install-big li { margin: 6px 0; }
.install-steps ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.install-ico { display: inline-block; padding: 0 4px; border: 1px solid var(--fn-line); border-radius: 4px; font-size: 13px; }
.enroll-install { margin-top: 16px; padding: 14px; border-radius: 12px; background: #F4F6FB; text-align: left; }
