.staff-panel {
  position: absolute;
  right: 20px;
  top: 112px;
  bottom: 16px;
  width: 272px;
  background: linear-gradient(165deg, rgba(25, 35, 52, 0.95) 0%, rgba(12, 18, 35, 0.97) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 8;
  padding: 10px;
  color: #f1f5f9;
  font-weight: 700;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  overflow-y: auto;
}

.cashier-overview {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 9px;
}

.cashier-overview .overview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
  min-width: 0;
  flex: 1;
}

.cashier-overview .overview-row b {
  font-family: 'VT323', monospace;
  font-size: 13px;
}

.cashier-overview .overview-row.ready b { color: #4ade80; }
.cashier-overview .overview-row.standby b { color: #fbbf24; }
.cashier-overview .overview-row.busy b { color: #fb7185; }
.cashier-overview .overview-row.off b { color: #64748b; }

.manager-card {
  border: 1px solid rgba(180, 130, 70, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.25), rgba(30, 20, 10, 0.2));
  padding: 5px 8px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  transition: all 0.25s ease;
}

.manager-card:hover {
  border-color: rgba(180, 130, 70, 0.4);
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.35), rgba(30, 20, 10, 0.3));
  transform: translateY(-1px);
}

.manager-card.selected {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.1);
}

.manager-card.selected::after {
  content: '▶ CLICK A LANE WITH ISSUE';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: #67e8f9;
  background: rgba(0, 0, 0, 0.75);
  text-align: center;
  padding: 2px 4px;
  border-radius: 0 0 10px 10px;
  animation: calloutBlink 0.8s steps(2, end) infinite;
}

.manager-card strong {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
}

.manager-card.needs-help {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15);
  animation: managerAlert 1.5s ease-in-out infinite;
}

.manager-card.needs-help .manager-alert-badge {
  display: block;
  margin-top: 3px;
  width: fit-content;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #fef2f2;
  background: #dc2626;
  padding: 2px 5px;
  border-radius: 3px;
  animation: calloutBlink 0.7s steps(2, end) infinite;
}

.manager-avatar {
  width: 34px;
  height: 42px;
  position: relative;
  image-rendering: auto;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.45));
}

.manager-avatar::before,
.manager-avatar::after,
.manager-head,
.manager-shirt,
.manager-badge {
  position: absolute;
}

.manager-head {
  left: 9px;
  top: 0;
  width: 16px;
  height: 14px;
  border: 2px solid #3f210f;
  border-radius: 3px 3px 2px 2px;
  background: #f2c49b;
}

.manager-avatar::before {
  content: '';
  left: 4px;
  top: 12px;
  width: 26px;
  height: 15px;
  border: 2px solid #1e3a8a;
  border-radius: 2px;
  background: #3b82f6;
}

.manager-shirt {
  left: 8px;
  top: 15px;
  width: 18px;
  height: 18px;
  border: 2px solid #111827;
  border-radius: 1px;
  background: #f8fafc;
}

.manager-badge {
  right: 6px;
  top: 20px;
  width: 8px;
  height: 8px;
  border: 2px solid #7f1d1d;
  border-radius: 2px;
  background: #facc15;
  box-shadow: 0 0 4px rgba(250, 204, 21, 0.4);
}

.manager-avatar::after {
  content: '';
  left: 6px;
  top: 30px;
  width: 22px;
  height: 10px;
  border: 2px solid #020617;
  border-radius: 0 0 2px 2px;
  background: #1f2937;
}

.manager-copy {
  min-width: 0;
}

.manager-hint {
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
}

.cashier-pool {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.staff-card {
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.4);
  padding: 4px 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.staff-card:hover,
.staff-card.selected {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(30, 58, 95, 0.4);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.1);
}

.staff-card.locked {
  background: rgba(43, 29, 22, 0.5);
  border-color: rgba(124, 45, 18, 0.4);
}

.staff-card.off {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(100, 116, 139, 0.2);
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.staff-card.ready {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.08);
}

.staff-card.busy {
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.1);
  animation: busyPulse 2s ease-in-out infinite;
}

.staff-card.standby {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.08);
  background: rgba(47, 33, 13, 0.3);
}

.staff-card.busy::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(239, 68, 68, 0.18) 50%, transparent 100%);
  transform: translateX(-130%);
  animation: statusSweep 2.2s linear infinite;
}

.staff-card.affordable {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(27, 42, 32, 0.5);
}

.staff-card .mini-sprite {
  margin: 0 auto 4px;
  width: 22px;
  height: 34px;
  position: relative;
  overflow: visible;
  image-rendering: auto;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.4));
}

.mini-sprite::before,
.mini-sprite::after,
.mini-head,
.mini-cap,
.mini-apron {
  position: absolute;
}

.mini-head {
  left: 6px; top: 3px;
  width: 10px; height: 10px;
  background:
    radial-gradient(circle at 3px 5px, #0a0910 0.8px, transparent 1.4px),
    radial-gradient(circle at 7px 5px, #0a0910 0.8px, transparent 1.4px),
    #f2c49b;
  border: 2px solid #40220f;
  border-radius: 2px 2px 1px 1px;
}

.mini-cap {
  left: 4px; top: 0;
  width: 14px; height: 4px;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border: 2px solid #450a0a;
  border-radius: 3px 3px 0 0;
}

.mini-sprite::before {
  content: '';
  left: 2px; top: 13px;
  width: 18px; height: 11px;
  background: var(--cashier);
  border: 2px solid #134e4a;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.mini-apron {
  left: 7px; top: 16px;
  width: 8px; height: 9px;
  background: #fff;
  border: 2px solid #111827;
}

.mini-sprite::after {
  content: '';
  left: 3px; top: 24px;
  width: 16px; height: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(0,0,0,0.4) calc(50% - 1px) 50%, transparent 50%),
    linear-gradient(180deg, #374151, #1f2937);
  border: 2px solid #020617;
  border-radius: 0 0 2px 2px;
}

.staff-meta {
  font-size: 12px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.staff-status-pill {
  margin: 2px auto 3px;
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 2px 8px;
  font-family: 'VT323', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #94a3b8;
  background: rgba(51, 65, 85, 0.4);
  transition: all 0.3s ease;
}

.staff-status-pill.ready {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.1);
}

.staff-status-pill.busy {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.1);
}

.staff-status-pill.off {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

.staff-status-pill.standby {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.1);
}

.countdown-strip {
  height: 3px;
  border: none;
  border-radius: 3px;
  background: rgba(51, 65, 85, 0.3);
  margin-top: 5px;
  overflow: hidden;
}

.countdown-fill {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #f97316, #f43f5e);
  box-shadow: 0 0 4px rgba(249, 115, 22, 0.4);
  transition: transform 0.08s linear;
}

.staff-meta .assignment { color: #7dd3fc; font-size: 11px; line-height: 1.1; }
.staff-meta .unlock-cost { color: #fbbf24; font-size: 11px; }

