.staff-workspace { display: grid; gap: 1.5rem; }
.staff-nav { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .15rem; scrollbar-width: thin; }
.staff-nav-link { display: inline-flex; min-height: 2.75rem; flex: 0 0 auto; align-items: center; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; padding: .65rem 1rem; color: #334155; font-size: .875rem; font-weight: 700; text-decoration: none; }
.staff-nav-link:hover { border-color: #94a3b8; background: #f8fafc; color: #0f172a; }
.staff-nav-link:focus-visible { outline: 3px solid #d1fae5; outline-offset: 2px; }
.staff-nav-link--active { border-color: #059669; background: color-mix(in srgb, #059669 7%, white); color: #065f46; }
.staff-page-header { display: flex; flex-direction: column; gap: 1rem; }
.staff-page-header h1 { margin: 0; color: #0f172a; font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.staff-page-header p { max-width: 65ch; margin: .5rem 0 0; color: #475569; font-size: 1rem; line-height: 1.5; }
.staff-primary, .staff-secondary { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; border-radius: .75rem; padding: .7rem 1rem; font-size: .875rem; font-weight: 800; text-decoration: none; }
.staff-primary { border: 1px solid #059669; background: #059669; color: #fff; }
.staff-primary:hover { border-color: #047857; background: #047857; }
.staff-secondary { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.staff-secondary:hover { border-color: #94a3b8; background: #f8fafc; color: #0f172a; }
.staff-primary:focus-visible, .staff-secondary:focus-visible { outline: 3px solid #d1fae5; outline-offset: 2px; }
.staff-primary:disabled { cursor: wait; border-color: #94a3b8; background: #94a3b8; }
.staff-panel { border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; padding: 1rem; }
.staff-lookup { display: grid; gap: 1rem; }
.staff-field { display: grid; gap: .5rem; }
.staff-field label { color: #1e293b; font-size: .875rem; font-weight: 700; }
.staff-input { min-height: 2.875rem; width: 100%; border: 1px solid #cbd5e1; border-radius: .75rem; padding: .7rem .9rem; color: #0f172a; font-size: 1rem; outline: none; }
.staff-input::placeholder { color: #64748b; opacity: 1; }
.staff-input:focus { border-color: #059669; box-shadow: 0 0 0 3px #d1fae5; }
.staff-scanner { display: grid; gap: 1rem; border-radius: .75rem; background: #060b12; padding: 1rem; color: #fff; }
.staff-scanner-copy { color: #cbd5e1; font-size: .875rem; line-height: 1.5; }
.staff-camera { display: none; width: 100%; min-height: 14rem; max-height: 28rem; border-radius: .75rem; background: #0f172a; object-fit: cover; }
.staff-camera[data-active="true"] { display: block; }
.staff-scanner-status { min-height: 1.5rem; margin: 0; color: #e2e8f0; font-size: .875rem; line-height: 1.5; }
.ticket-state { display: flex; gap: .85rem; align-items: flex-start; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1rem; }
.ticket-state-dot { width: .75rem; height: .75rem; flex: 0 0 auto; margin-top: .3rem; border-radius: 9999px; background: #64748b; }
.ticket-state--valid { border-color: color-mix(in srgb, #059669 30%, white); background: color-mix(in srgb, #059669 7%, white); color: #065f46; }
.ticket-state--valid .ticket-state-dot { background: #059669; }
.ticket-state--warning { border-color: color-mix(in srgb, #d97706 30%, white); background: color-mix(in srgb, #d97706 8%, white); color: #0f172a; }
.ticket-state--warning .ticket-state-dot { background: #d97706; }
.ticket-state--danger { border-color: color-mix(in srgb, #dc2626 25%, white); background: color-mix(in srgb, #dc2626 7%, white); color: #0f172a; }
.ticket-state--danger .ticket-state-dot { background: #dc2626; }
.ticket-state strong { display: block; color: inherit; }
.ticket-state p { margin: .2rem 0 0; color: inherit; font-size: .875rem; line-height: 1.5; }
.staff-ticket-details { display: grid; gap: 1.25rem; }
.staff-detail-list { display: grid; gap: .85rem; margin: 0; }
.staff-detail-list div { min-width: 0; }
.staff-detail-list dt { color: #64748b; font-size: .875rem; font-weight: 600; }
.staff-detail-list dd { margin: .2rem 0 0; overflow-wrap: anywhere; color: #0f172a; font-size: 1rem; font-weight: 700; }
.staff-pitch-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.staff-pitch-row { display: grid; gap: .25rem; border-top: 1px solid #e2e8f0; padding-top: .85rem; }
.staff-pitch-row:first-child { border-top: 0; padding-top: 0; }
.staff-pitch-row strong { color: #0f172a; }
.staff-pitch-row span { color: #475569; font-size: .875rem; line-height: 1.5; }
.staff-booking-list { display: grid; gap: .75rem; }
.staff-booking { display: grid; gap: 1rem; border-top: 1px solid #e2e8f0; padding: 1rem 0; }
.staff-booking:first-child { border-top: 0; padding-top: 0; }
.staff-booking:last-child { padding-bottom: 0; }
.staff-booking-main { min-width: 0; }
.staff-booking-main h2 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 800; }
.staff-booking-main p { margin: .3rem 0 0; overflow-wrap: anywhere; color: #475569; font-size: .875rem; line-height: 1.5; }
.staff-empty { display: grid; justify-items: start; gap: .6rem; padding: 2rem 0; }
.staff-empty strong { color: #0f172a; font-size: 1rem; }
.staff-empty p { max-width: 65ch; margin: 0; color: #475569; line-height: 1.5; }

.ticket-page { display: grid; gap: 1rem; max-width: 56rem; margin-inline: auto; padding-bottom: 2.5rem; }
.ticket-pass { overflow: hidden; border: 1px solid #cbd5e1; border-radius: 1rem; background: #fff; }
.ticket-pass-header { display: flex; flex-direction: column; gap: 1.25rem; background: #060b12; padding: 1.5rem; color: #fff; }
.ticket-pass-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ticket-pass-kind { color: #d1fae5; font-size: .875rem; font-weight: 700; }
.ticket-pass-title { margin: 0; color: #fff; font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.ticket-pass-status { display: inline-flex; min-height: 2rem; align-items: center; align-self: flex-start; border-radius: 9999px; background: #d1fae5; padding: .35rem .75rem; color: #065f46; font-size: .875rem; font-weight: 800; }
.ticket-pass-status--used { background: #e2e8f0; color: #334155; }
.ticket-pass-body { display: grid; gap: 1.5rem; padding: 1.25rem; }
.ticket-pass-summary { display: grid; gap: .75rem; }
.ticket-pass-date { margin: 0; color: #0f172a; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.ticket-pass-time { margin: 0; color: #047857; font-size: 2.25rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ticket-pass-location { margin: 0; color: #475569; font-size: 1rem; line-height: 1.5; }
.ticket-pass-meta { display: grid; gap: .85rem; margin: 0; }
.ticket-pass-meta dt { color: #64748b; font-size: .875rem; font-weight: 600; }
.ticket-pass-meta dd { margin: .2rem 0 0; overflow-wrap: anywhere; color: #0f172a; font-size: 1rem; font-weight: 700; }
.ticket-pass-pitches { border-top: 1px solid #e2e8f0; padding-top: 1.25rem; }
.ticket-pass-pitches h2, .ticket-pass-qr h2 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 800; }
.ticket-pass-qr { display: grid; justify-items: center; gap: .75rem; border-top: 1px dashed #94a3b8; padding-top: 1.5rem; text-align: center; }
.ticket-pass-qr p { max-width: 36rem; margin: 0; color: #475569; font-size: .875rem; line-height: 1.5; }
.ticket-qr-box { min-width: 10.25rem; min-height: 10.25rem; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; padding: 1rem; }
.ticket-code { max-width: 100%; overflow-wrap: anywhere; border-radius: .5rem; background: #f1f5f9; padding: .55rem .75rem; color: #0f172a; font-size: .875rem; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.ticket-payment-ref { margin: 0; overflow-wrap: anywhere; color: #64748b; font-size: .875rem; }
.ticket-actions { display: flex; flex-direction: column; gap: .5rem; }

@media (min-width: 40rem) {
  .staff-page-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .staff-panel { padding: 1.5rem; }
  .staff-detail-list, .ticket-pass-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-booking { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ticket-pass-header { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 2rem; }
  .ticket-pass-body { padding: 2rem; }
  .ticket-actions { flex-direction: row; }
}

@media print {
  body * { visibility: hidden !important; }
  #ticketCard, #ticketCard * { visibility: visible !important; }
  #ticketCard { position: absolute; inset: 0 auto auto 0; width: 100%; border: 1px solid #cbd5e1 !important; }
  #ticketCard .ticket-pass-header { background: #060b12 !important; color: #fff !important; print-color-adjust: exact; }
  .ticket-actions, header, footer { display: none !important; }
  @page { size: auto; margin: 8mm; }
}

@media (prefers-reduced-motion: reduce) {
  .staff-nav-link, .staff-primary, .staff-secondary { scroll-behavior: auto; transition: none; }
}
