/* scan.css — the "Scan menu" sheet of scan.js: one full-screen layer over the app */
.scan { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px;
  background: #fff; color: #222; overflow: auto; font: 16px/1.4 system-ui, sans-serif; }
.scan-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.scan-head button { border: 0; background: none; font-size: 28px; line-height: 1; padding: 4px 10px; }
.scan-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.scan-acts button, .scan-file { padding: 12px 18px; border-radius: 10px; border: 1px solid #ccc; background: #f5f5f5; font: inherit; cursor: pointer; }
.scan-acts button:first-child { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.scan-acts button:disabled { opacity: .5; }
.scan-cam { position: relative; flex: 1; min-height: 300px; background: #000; border-radius: 10px; overflow: hidden; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 6% 8%; border: 3px dashed rgba(255, 255, 255, .85); border-radius: 8px; pointer-events: none; }
.scan-zoom { max-height: 55vh; overflow: auto; border: 1px solid #ccc; border-radius: 10px; background: #333; touch-action: pan-x pan-y pinch-zoom; cursor: zoom-in; }
.scan-zoom img { display: block; width: 100%; }
.scan-zoom.real { height: 55vh; cursor: zoom-out; }
.scan-zoom.real img { width: auto; max-width: none; }
.scan-hint { color: #555; font-size: .9em; margin: 4px 0; }
.scan-ask { font-weight: 600; }
.scan-bad { color: #b3261e; font-weight: 600; }
.scan-wait { color: #555; }
.scan-part { font-weight: 600; }
.scan-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scan-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eee; }
.scan-row.off { opacity: .45; }
.scan-row input[type="text"] { font: inherit; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; min-width: 0; }
.scan-row input[type="checkbox"] { width: 22px; height: 22px; }
.scan-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.scan-match, .scan-row select { grid-column: 2 / 4; font-size: 14px; color: #555; }
.scan-said { margin: 0; padding-left: 18px; }
