body {
    background-color: #142F40 !important;
    color: #F2E7DC !important;
}

/* Scanner & layout helpers live here. Keep it tiny & reusable. */

video, #reader {
    max-width: 99%;
}
/* Full-screen overlay */
.overlay {
  position: fixed;
  inset: 0;
  /* background: rgba(0,0,0,0.4); */
  display: grid;
  place-items: center;
  z-index: 1050; /* above page content */
}
/* .overlay-box {
  background: #fff;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
} */

/* Log panel */
.log {
  max-height: 260px;
  overflow: auto;
  background-color: #fafafa;
}
.log-entry {
  padding: .375rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: opacity .8s ease;
  word-break: break-word;
}
.log-entry:last-child { border-bottom: 0; }
.log-entry.fade-out { opacity: 0; }
