/* 현장용(체크인·현장결제) 모바일 화면 */
body.field { background: #0f1729; color: #fff; min-height: 100vh; min-height: 100dvh; }
body.field #boot .login, body.field #boot .card { color: var(--text); }
body.field #boot { background: var(--bg); min-height: 100vh; }
.f-wrap { max-width: 560px; margin: 0 auto; padding: 10px 12px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f-head .t { font-weight: 800; font-size: 1.05rem; }
.f-head .s { color: #9fb0cf; font-size: .82rem; }
.f-head .icon-btn { color: #c9d0de; }
.f-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; background: #1b2640; padding: 5px; border-radius: 14px; }
.f-seg button { border: 0; border-radius: 10px; min-height: 46px; font: inherit; font-weight: 800; font-size: 1.05rem; background: transparent; color: #9fb0cf; cursor: pointer; }
.f-seg button.on { background: var(--gold-2); color: #1b1300; }
.f-seg button small { display: block; font-size: .72rem; font-weight: 600; opacity: .8; }
.f-count { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.f-count div { background: #1b2640; border-radius: 12px; padding: 8px; text-align: center; }
.f-count b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.f-count span { font-size: .75rem; color: #9fb0cf; }
.cam { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam .frame { position: absolute; inset: 14%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.cam .cam-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; gap: 10px; background: #111a2e; }
.f-search { display: flex; gap: 8px; }
.f-search input { background: #1b2640; border-color: #2e3d60; color: #fff; min-height: 50px; font-size: 1.05rem; }
.f-search input::placeholder { color: #7d8db0; }
.f-list { display: flex; flex-direction: column; gap: 6px; }
.f-item { background: #1b2640; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; border: 0; color: #fff; font: inherit; text-align: left; width: 100%; }
.f-item small { color: #9fb0cf; display: block; }
.f-recent { font-size: .85rem; color: #c9d0de; display: flex; flex-direction: column; gap: 4px; }
.f-recent div { display: flex; gap: 8px; }
.f-recent time { color: #7d8db0; font-variant-numeric: tabular-nums; }
.net { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: #1f5134; color: #b8f0cf; }
.net.off { background: #6b1c1c; color: #ffd2d2; }

/* 결과 오버레이 */
.res { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; overflow: auto; color: #fff; }
.res.ok { background: #0f7a41; }
.res.partial { background: #1f57b3; }
.res.done, .res.invalid, .res.notfound { background: #b32121; }
.res.mismatch { background: #b35a00; }
.res.success { background: #0f7a41; justify-content: center; align-items: center; text-align: center; }
.res .big-ic { font-size: 3.2rem; line-height: 1; }
.res h2 { font-size: 1.7rem; font-weight: 900; }
.res .who { font-size: 2rem; font-weight: 900; }
.res .info { background: rgba(0, 0, 0, .18); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 1.05rem; }
.res .info b { font-size: 1.2rem; }
.res .warn { background: rgba(255, 255, 255, .95); color: #7a3d00; border-radius: 12px; padding: 10px 12px; font-weight: 800; }
.res .grow { flex: 1; }
.res .btn { border: 0; }
.res .btn.white { background: #fff; color: #10203d; }
.res .btn.dark { background: rgba(0, 0, 0, .28); color: #fff; }
.res .stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.res .stepper button { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 2rem; font-weight: 900; background: rgba(255, 255, 255, .92); color: #10203d; }
.res .stepper output { font-size: 3rem; font-weight: 900; min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; }
.res .sess-row { display: flex; gap: 8px; flex-wrap: wrap; }
.res .sess-row span { background: rgba(0, 0, 0, .22); border-radius: 99px; padding: 4px 10px; font-size: .9rem; font-weight: 700; }

/* POS */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pos-grid button { background: #1b2640; color: #fff; border: 2px solid transparent; border-radius: 14px; padding: 14px 10px; font: inherit; text-align: left; cursor: pointer; min-height: 78px; }
.pos-grid button b { display: block; font-size: 1.1rem; }
.pos-grid button span { color: #9fb0cf; font-size: .9rem; }
.pos-grid button.on { border-color: var(--gold-2); background: #2a2a1b; }
.f-card { background: #1b2640; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.f-card label { color: #9fb0cf; }
.f-card input, .f-card select { background: #0f1729; border-color: #2e3d60; color: #fff; min-height: 48px; }
.f-card .chip { background: #0f1729; border-color: #2e3d60; color: #c9d0de; }
.f-card .chip.on { background: var(--gold-2); border-color: var(--gold-2); color: #1b1300; }
.f-stepper { display: flex; align-items: center; gap: 12px; }
.f-stepper button { width: 52px; height: 52px; border-radius: 12px; border: 0; background: #0f1729; color: #fff; font-size: 1.6rem; font-weight: 900; }
.f-stepper output { font-size: 2rem; font-weight: 900; min-width: 60px; text-align: center; }
.f-total { font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.f-toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff !important; flex-direction: row !important; }
.f-toggle input { width: 24px; height: 24px; }
body.field .modal { color: var(--text); }
.f-head .ev-select { width: auto; min-height: 28px; padding: 2px 6px; background: #1b2640; color: #fff; border-color: #2e3d60; font-size: .82rem; }
.f-head .ev-name { color: #9fb0cf; }
