/* Haul IQ — the scan camera's chrome, cam-chrome-1 (DRIVER-SCAN-CAMERA 2026-10-19). On HaulCam's .cam (scan-N/scan.css):
   a dark viewfinder with NOTHING over the paper; the paper chips, the light and Close in a top bar; one status line below
   the picture; the strip of pages taken, Auto, one big shutter and Done in a bottom bar. Every control 44 px, thumb-reach,
   390 x 844 and 360 x 800. Immutable once deployed: a change is cam-chrome-2/. */
.cam.cc { background: #0b0d10; color: #fff; color-scheme: dark; }
.cam.cc .cam-stage { background: #0b0d10; }
/* HaulCam's own chrome steps aside: its words, its quad, its Light / Next paper / Auto / Done / round button and the gate's
   two buttons inside its line. They stay in the DOM (HaulCam and the gate keep painting them); the chrome mirrors them. */
.cam.cc .cam-bar, .cam.cc .cam-say, .cam.cc .cam-light, .cam.cc .cam-next, .cam.cc .cam-any, .cam.cc .cam-held { display: none !important; }
.cam.cc .cam-stage > canvas:not(.cc-marks) { opacity: 0; }
.cam.cc .cam-stage video { object-fit: contain; }
.cc-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* The top bar */
.cc-top { position: relative; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: calc(6px + env(safe-area-inset-top)) 8px 6px 8px; background: #0b0d10; }
.cam.cc .cam-kinds { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 6px 0 0; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; mask-image: none; -webkit-mask-image: none; }
.cam.cc .cam-kinds::-webkit-scrollbar { display: none; }
.cc-top.cc-fade .cam-kinds { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.cam.cc .cam-kind { min-height: 44px; scroll-snap-align: start; }
.cc-title { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; padding-left: 6px; }
.cc-top button, .cc-ctl button, .cc-thumb, .cc-review-acts .btn { min-width: 44px; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.cc-more, .cc-light, .cc-close { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cc-more[hidden], .cc-light[hidden] { display: none; }
.cc-more.back svg { transform: rotate(180deg); }
.cc-light.on { background: #ffd54a; border-color: #ffd54a; color: #1a1400; }
.cc-top svg, .cc-auto svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The one status line */
.cc-status { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 6px 16px; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.3; background: #0b0d10; }
.cc-status:empty { min-height: 44px; }
/* The bottom bar */
.cc-bar { background: #0b0d10; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); }
.cc-strip-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 0; }
.cc-strip { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cc-strip::-webkit-scrollbar { display: none; }
.cc-strip-row.empty .cc-strip { display: none; }
.cc-thumb { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); overflow: hidden; cursor: pointer; }
.cc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-thumb b { position: absolute; right: 2px; bottom: 2px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.cc-count { flex: none; font-size: 14px; color: rgba(255,255,255,.85); white-space: nowrap; }
.cc-strip-row.empty .cc-count { flex: 1 1 auto; }
.cc-ctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cc-auto { justify-self: start; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 56px; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); font: inherit; font-size: 12px; font-weight: 600; }
.cc-auto.on { color: #3ddc84; border-color: rgba(61,220,132,.6); background: rgba(61,220,132,.12); }
.cc-fire-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cc-fire { width: 76px; height: 76px; padding: 0; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.2); cursor: pointer; }
.cc-fire:active { background: rgba(255,255,255,.45); }
.cc-fire.pulse { animation: cc-pulse 1.1s ease-in-out infinite; }
@keyframes cc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,132,.65); } 50% { box-shadow: 0 0 0 12px rgba(61,220,132,0); } }
.cc-fire-label { min-height: 16px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); text-align: center; }
.cc-done { justify-self: end; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; }
/* Looking again at a page */
.cc-review { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #0b0d10; color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); }
.cc-review[hidden] { display: none; }
.cc-review-pic { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cc-review-pic img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.cc-review-where { text-align: center; font-size: 15px; font-weight: 600; padding: 10px 0; }
.cc-review-acts { display: grid; gap: 8px; }
.cc-review-acts .btn { width: 100%; min-height: 48px; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 360px) {
  .cc-auto { width: 56px; }
  .cc-done { padding: 0 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-fire.pulse { animation: none; box-shadow: 0 0 0 4px rgba(61,220,132,.65); }
  .cam.cc .cam-kinds { scroll-behavior: auto; }
}
