/* ─── SCANNER UI & CARRIER PILLS ─── */

.carrier-selector-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carrier-selector-strip::-webkit-scrollbar { display: none; }

.carrier-item-btn {
  padding: 8px 12px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.carrier-item-btn:hover {
  background: var(--surface-cream-strong);
  color: var(--ink);
}
.carrier-item-btn.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  font-weight: 600;
}

/* ─── VIEWFINDER ─── */
.viewfinder-dark-box {
  flex: 1;
  background: var(--surface-dark);
  border-radius: var(--rounded-xl);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.viewfinder-crosshair {
  width: 220px;
  height: 140px;
  border: 2px solid rgba(250, 249, 245, 0.7);
  border-radius: 14px;
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(24, 23, 21, 0.45);
  pointer-events: none; /* Let clicks pass through to video */
}
.viewfinder-guide-tag {
  position: absolute;
  top: 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--on-dark);
  background: rgba(37, 35, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.floating-match-card {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--hairline);
  z-index: 10;
}
.room-display-serif {
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.04em;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.carrier-pill-badge {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  font-size: 11px;
}

/* ─── QUICK NUMPAD ─── */
.quick-numpad-container {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 16px;
}
.numpad-display {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
#numpad-input {
  flex: 1;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  outline: none;
}
.numpad-btn-clear {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  cursor: pointer;
}
.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.num-key {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 14px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.1s;
}
.num-key:active {
  background: var(--primary-bg);
  transform: scale(0.95);
}

/* Dark mode adjustments */
[data-theme="dark"] .carrier-item-btn.active {
  background: var(--on-dark);
  color: var(--surface-dark);
}
[data-theme="dark"] .num-key {
  background: var(--surface-dark-elevated);
}

/* ── Scan Line Animation ── */
@keyframes scanline {
  0%   { top: 20%; opacity: 1; }
  50%  { top: 75%; opacity: 0.6; }
  100% { top: 20%; opacity: 1; }
}

/* ── Sheet Numpad Keys (Compact for mobile screen) ── */
.sheet-num-key {
  height: 44px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.1s;
  touch-action: manipulation;
}
.sheet-num-key:active {
  background: var(--primary);
  color: #fff;
  transform: scale(0.95);
}
[data-theme="dark"] .sheet-num-key {
  background: var(--surface-dark-elevated);
}

/* ── Shelf Selector Buttons (Compact Pills) ── */
.shelf-btn {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1.5px solid var(--hairline);
  background: var(--surface-card);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  touch-action: manipulation;
}
.shelf-btn.active-shelf {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.shelf-btn:active {
  transform: scale(0.95);
}

/* ── Bottom Sheet Slide Animation ── */
#intake-sheet.sheet-open {
  transform: translateY(0) !important;
}
[data-theme="dark"] #intake-sheet {
  background: var(--surface-dark);
}
[data-theme="dark"] .shelf-btn {
  background: var(--surface-dark-elevated);
}
