* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f5f7; color: #1d2329; }
nav { display: flex; gap: 16px; padding: 10px 16px; background: #1d2329; }
nav a { color: #fff; text-decoration: none; font-weight: 600; }
main { padding: 16px; max-width: 1000px; margin: 0 auto; }
h2 { margin: 24px 0 8px; font-size: 18px; }
input, select, button { font: inherit; padding: 8px 10px; border: 1px solid #b8c0c8; border-radius: 6px; }
button { background: #1d2329; color: #fff; border: 0; cursor: pointer; }
button.secondary { background: #dde1e5; color: #1d2329; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3e6e9; vertical-align: middle; }
td input, td select { width: 100%; }
.muted { color: #6b7580; }
.error { color: #b3261e; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }

/* Search */
.result { cursor: pointer; }
.result:hover { background: #eef1f4; }
video { width: 100%; max-height: 480px; background: #000; border-radius: 8px; }

/* Labels */
#labels { display: none; }
.label { display: inline-block; width: 45%; margin: 2%; padding: 12px; text-align: center; border: 1px dashed #999; page-break-inside: avoid; }
.label img { width: 70%; }
.label .name { font-size: 22px; font-weight: 700; }
@media print {
  body { background: #fff; }
  nav, main > *:not(#labels) { display: none !important; }
  #labels { display: block !important; }
}
#detail tr.scan { cursor: pointer; }
#detail tr.hit { background: #fff3bf; }
nav .me { margin-left: auto; color: #c9d1d9; font-weight: 400; }
nav .me a { margin-left: 8px; font-weight: 400; color: #c9d1d9; }
#login { position: fixed; inset: 0; background: #f4f5f7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; text-align: center; }
code { background: #eef1f4; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
