html, body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  #sidebar.open { transform: translateX(0); }
  #mainContent { margin-left: 0 !important; }
  #mobileMenuBtn { display: flex !important; }
}

/* Barcode output */
#barcodeOutput svg, #barcodeOutput img {
  max-width: 100%;
  height: auto;
}

/* Scanner crop corners */
.crop-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #6d28d9;
  background: rgba(109, 40, 217, 0.15);
  border-radius: 50%;
  cursor: grab;
  z-index: 10;
  touch-action: none;
}
.crop-corner:active { cursor: grabbing; background: rgba(109, 40, 217, 0.4); }
.crop-canvas-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  user-select: none;
}
.crop-canvas-wrap img { display: block; max-width: 100%; height: auto; }
#cropPolygon { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }