/* Aplikasi karyawan (mobile) — melengkapi style.css */
body.m { background: var(--bg); min-height: 100vh; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
#app { max-width: 520px; margin: 0 auto; padding: 16px 16px 24px; padding-top: calc(16px + env(safe-area-inset-top)); }
.m-splash { min-height: 80vh; display: grid; place-items: center; }
.logo.big { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }

.m-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.m-head .avatar { width: 52px; height: 52px; font-size: 16px; }
.m-head h1 { font-size: 18px; margin: 0; }
.m-head small { color: var(--muted); display: block; }
.m-hero { background: linear-gradient(135deg, #2459d6, #1a3f9e); color: #fff; border-radius: 16px; padding: 18px; }
.m-hero .t { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m-hero .d { opacity: .85; }
.m-hero .row { display: flex; gap: 10px; margin-top: 14px; }
.m-hero .box { flex: 1; background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; }
.m-hero .box small { display: block; opacity: .8; font-size: 12px; }
.m-hero .box b { font-size: 20px; font-variant-numeric: tabular-nums; }
.m-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; }
.m-card h3 { margin-bottom: 6px; }
.m-card.warn { background: var(--warn-soft); border-color: #f2d49b; }
.m-card.bad { background: var(--bad-soft); border-color: #f3c0c5; }
.m-card.ok { background: var(--ok-soft); border-color: #b9e4cc; }
.m-list .item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-list .item:last-child { border-bottom: 0; }
.m-list .item small { color: var(--muted); display: block; }
.m-auth { padding-top: 6vh; }
.m-auth .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.m-auth form { display: grid; gap: 12px; }
.m-auth input, .m-auth select { padding: 12px; font-size: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e9edf5; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 9px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

nav.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; flex-direction: row; gap: 0; justify-content: center; padding: 0 0 env(safe-area-inset-bottom); z-index: 600; }
nav.m-tabs[hidden] { display: none; }
body.m { padding-bottom: 0; }
body.m:has(nav.m-tabs:not([hidden])) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.m-tabs a { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; border-radius: 0; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.m-tabs a:hover { background: none; color: var(--primary); }
.m-tabs a.active { background: none; }
.m-tabs a span { font-size: 20px; }
.m-tabs a.active { color: var(--primary); }

.m-cam { position: fixed; inset: 0; background: #000; z-index: 800; display: flex; flex-direction: column; }
.m-cam .cam { flex: 1; border-radius: 0; display: grid; place-items: center; }
.m-cam .cam video { max-height: 100%; width: 100%; object-fit: cover; height: 100%; }
.m-cam .cam canvas { object-fit: cover; }
.m-cam .top { position: absolute; top: 0; left: 0; right: 0; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; display: flex; justify-content: space-between; align-items: center; color: #fff; z-index: 2; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.m-cam .top button { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; }
.m-cam .panel { background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.m-cam .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.m-cam .guide { position: absolute; left: 50%; top: 45%; width: 62vw; max-width: 300px; aspect-ratio: 3/4; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 12px; }
.progress > div { height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.done-ico { font-size: 56px; text-align: center; }
