/* wspólne dla strony i aplikacji: panel admina, skaner biletów, „Zobacz jako” (public/admin.js) */
/* panel admina: uprawnienia */
.perm { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--t1); transition: border-color .2s, background .2s; }
.perm.on { border-color: var(--pink-line); background: var(--pink-dim); }
.perm:disabled { opacity: .5; cursor: not-allowed; }
.perm-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #000; }
.perm.on .perm-box { background: var(--pink); border-color: var(--pink); }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px; font: 600 10px/1 var(--d); background: var(--pink-dim); color: var(--pink); }
.badge.off { background: var(--surface-3); color: var(--t3); }
.sel { height: 50px; border-radius: 14px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2); font: 400 15px/1 var(--d); color: var(--t1); width: 100%; }

/* skaner biletów */
.scanbox { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #000; }
.scanbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanframe { position: absolute; inset: 14%; pointer-events: none; }
.scanframe i { position: absolute; width: 38px; height: 38px; border: 4px solid #fff; border-radius: 6px; }
.scanframe i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scanframe i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scanframe i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scanframe i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scanline { position: absolute; left: 6%; right: 6%; height: 2px; background: #FF0059; box-shadow: 0 0 14px #FF0059; animation: scanmove 2.2s ease-in-out infinite alternate; }
@keyframes scanmove { from { top: 8%; } to { top: 92%; } }
.scanres { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: #fff; }
.scanres.on { display: flex; animation: scanpop .25s ease; }
.scanres.ok, .scanres.undone { background: rgba(9, 120, 64, .94); }
.scanres.used, .scanres.invalid, .scanres.error { background: rgba(190, 0, 50, .94); }
.scanres b { font: 800 34px/1 var(--d); letter-spacing: -.02em; }
.scanres span { font: 600 16px/1.3 var(--d); }
.scanres .mono { color: rgba(255,255,255,.85); }
.scanicon { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
@keyframes scanpop { from { transform: scale(.94); opacity: 0; } }
.scanmsg { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; color: #fff; text-align: center; font: 400 13px/1.4 var(--d); }
.scanmsg b { font-size: 16px; }
.scaninput { flex: 1; height: 44px; border-radius: 12px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--t1); font: 500 16px/1 var(--m); }
/* pasek „Zobacz jako” */
#viewasbar { position: fixed; z-index: 400; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); padding: 8px 14px; border-radius: 100px;
  background: #FFC53D; color: #000; font: 500 12px/1 var(--d); box-shadow: 0 8px 24px rgba(0,0,0,.35); border: 0; cursor: pointer; white-space: nowrap; }
.staff-scan { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; padding: 32px 20px; border: 1px solid var(--pink-line); border-radius: 28px; background: var(--pink-dim); color: var(--t1); }
.staff-scan > span:first-child { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 32px; background: var(--pink); color: #000; }
.staff-scan strong { font: 600 24px/1.1 var(--d); letter-spacing: -.04em; }
.staff-scan > span:last-child { color: var(--t2); font-size: 14px; }
.staff-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.staff-stats .card { padding: 20px; }
.staff-stats strong { display: block; margin-top: 10px; font: 600 40px/1 var(--d); letter-spacing: -.04em; }
.staff-entry { display: flex; align-items: center; gap: 12px; padding: 16px; }
.staff-entry strong { font-size: 14px; }
.staff-entry-icon { color: var(--pink); }
.staff-entry-icon.ok { color: var(--ok); }
.staff-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 20px; text-align: center; }

.intchips { display: flex; flex-wrap: wrap; gap: 8px; }
.intchips .chip { padding: 9px 14px; }
