body.kiosk { background: #eef3f6; user-select: none; -webkit-user-select: none; }
body.kiosk input, body.kiosk textarea { user-select: text; -webkit-user-select: text; }
.k-head { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: #0b2a2a; color: #fff; }
.k-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.k-brand > i { background: #2dd4bf; color: #0b2a2a; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.k-brand b { display: block; font: 700 20px 'Outfit', sans-serif; }
.k-brand .muted { color: #9cc2bd; }
.k-clock { text-align: center; }
.k-clock b { display: block; font: 700 34px 'Outfit', sans-serif; letter-spacing: 1px; }
.k-clock span { color: #9cc2bd; font-size: 13px; }
.k-head .btn { padding: 12px 18px; font-size: 15px; }
.k-hint { text-align: center; color: var(--muted); font: 600 16px 'Outfit', sans-serif; margin: 18px 0 6px; }
.k-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 12px 24px 40px; }
.k-tile { font: inherit; color: inherit; width: 100%; min-width: 0; background: #fff; border: 2px solid transparent; border-radius: 18px; padding: 18px 12px; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .1s; }
.k-tile:active { transform: scale(.97); }
.k-tile.in { border-color: #10b981; }
.k-tile .avatar { width: 84px; height: 84px; font-size: 28px; margin: 0 auto 10px; }
.k-tile b { display: block; font: 700 16px 'Outfit', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-tile .small { display: block; margin-top: 4px; }
.k-tile .badge { margin-top: 8px; }
.k-overlay { position: fixed; inset: 0; background: rgba(11, 28, 48, .55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.k-pin { background: #fff; border-radius: 22px; padding: 24px; width: min(380px, 94vw); text-align: center; }
.k-who { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 20px 'Outfit', sans-serif; margin-bottom: 10px; }
.k-who .avatar { width: 80px; height: 80px; font-size: 26px; }
.k-code { width: 100%; font-size: 20px; text-align: center; padding: 12px; margin-bottom: 10px; }
.k-dots { display: flex; justify-content: center; gap: 12px; height: 22px; margin: 8px 0 14px; }
.k-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); }
.k-dots i.on { background: var(--primary); }
.k-pin .login-error { color: var(--bad); font-weight: 600; min-height: 18px; margin-top: 10px; }
.k-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.k-pad button { height: 64px; border-radius: 16px; border: 1px solid var(--border); background: #f8fafc; font: 700 24px 'Outfit', sans-serif; cursor: pointer; color: var(--text); }
.k-pad button:active { background: var(--primary-lt); }
.k-pad button.go { background: var(--primary); color: #fff; border-color: var(--primary); font-size: 18px; }
.k-panel { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; padding: 18px 24px; align-items: start; }
.k-punch { text-align: center; }
.k-cam { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0b1c30; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.k-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.k-cam-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; padding: 16px; font-weight: 600; background: rgba(192, 38, 45, .85); }
.k-state { font: 600 16px 'Outfit', sans-serif; margin-bottom: 12px; }
.k-big { width: 100%; height: 96px; border: 0; border-radius: 20px; font: 800 28px 'Outfit', sans-serif; color: #fff; cursor: pointer; letter-spacing: 1px; margin-bottom: 10px; }
.k-big.in { background: #059669; }
.k-big.out { background: #c2410c; }
.k-big:disabled { opacity: .6; }
.k-info { min-height: 420px; }
.k-done { background: #fff; border-radius: 24px; padding: 30px 40px; text-align: center; width: min(460px, 92vw); }
.k-done img { width: 140px; height: 105px; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto 10px; }
.k-done i { font-size: 56px; color: #059669; }
.k-done.out i { color: #c2410c; }
.k-done h1 { font-size: 28px; margin: 10px 0 4px; }
.k-done p { color: var(--muted); font-size: 16px; margin: 0; }
.k-list .person { padding: 10px 0; }
.k-form { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.k-qrcard { width: min(440px, 94vw); }
.k-qrcard .qr-box { margin: 6px auto 10px; }
.k-qrcard .k-steps { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.k-qrcard .k-qr-title { display: block; font: 700 18px 'Outfit', sans-serif; margin-bottom: 4px; }
.k-qr-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.k-qr-actions .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.k-pending { background: #fff7ed; color: #9a3412; border-radius: 12px; padding: 10px; font-weight: 600; margin-bottom: 12px; }
@media (max-width: 860px) {
  .k-panel { grid-template-columns: 1fr; } .k-head { flex-wrap: wrap; }
}
