/* VOLT Scan Beta — additive A/B test layer. Existing Batch CSS remains authoritative. */

.home-identify-methods.volt-scan-ab-ready {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.home-identify-methods.volt-scan-ab-ready .home-identify-method {
  min-width: 0;
}

.home-identify-card.home-identify-card-volt-current,
.home-identify-card.home-identify-card-volt-beta {
  position: relative;
  overflow: hidden;
}

.home-identify-card.home-identify-card-volt-current strong,
.home-identify-card.home-identify-card-volt-beta strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: .08em;
}

.home-identify-card.home-identify-card-volt-current img,
.home-identify-card.home-identify-card-volt-beta img {
  width: min(92%, 250px) !important;
  max-width: min(92%, 250px) !important;
  height: calc(100% - 46px) !important;
  max-height: calc(100% - 46px) !important;
  object-fit: contain !important;
}

.volt-scan-card-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(143,160,184,.38);
  border-radius: 999px;
  background: rgba(6,11,22,.84);
  color: #8fa0b8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.volt-scan-card-badge.beta {
  border-color: rgba(0,227,212,.42);
  color: #00e3d4;
  box-shadow: 0 0 18px rgba(0,227,212,.10);
}

.home-identify-card.home-identify-card-volt-beta {
  border-color: rgba(0,227,212,.26) !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(0,227,212,.11), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(255,71,169,.10), transparent 38%),
    #0d1828 !important;
}

.home-identify-card.home-identify-card-volt-beta:hover,
.home-identify-card.home-identify-card-volt-beta:focus-visible {
  border-color: rgba(0,227,212,.64) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.28), 0 0 28px rgba(0,227,212,.08);
}

.volt-scan-mode-pill {
  position: absolute;
  z-index: 45;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  display: none;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(143,160,184,.45);
  border-radius: 999px;
  background: rgba(6,11,22,.80);
  backdrop-filter: blur(10px);
  color: #8fa0b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  pointer-events: none;
}

.camera-session-open.batch-mode-selected .volt-scan-mode-pill {
  display: inline-flex;
}

.volt-scan-mode-pill.beta {
  border-color: rgba(0,227,212,.52);
  color: #00e3d4;
  box-shadow: 0 0 24px rgba(0,227,212,.10);
}

.volt-scan-beta-stage-badge {
  position: absolute;
  z-index: 31;
  top: calc(max(14px, env(safe-area-inset-top)) + 42px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid rgba(0,227,212,.48);
  border-radius: 999px;
  background: rgba(6,11,22,.78);
  color: #00e3d4;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .11em;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.batch-vision-stage:not(.volt-scan-beta) .volt-scan-beta-stage-badge {
  display: none;
}

.batch-vision-stage.volt-scan-beta .batch-vision-box.failed {
  border-color: #ffd259 !important;
}

.batch-vision-stage.volt-scan-beta .batch-vision-box.failed .batch-vision-match-label {
  color: #ffd259 !important;
}

.batch-vision-card .volt-scan-beta-route {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 4px;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(0,227,212,.28);
  border-radius: 999px;
  color: #00e3d4;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.batch-vision-card .batch-vision-accuracy.volt-scan-beta-state {
  border-color: rgba(0,227,212,.38) !important;
  color: #00e3d4 !important;
}

@media (max-width: 900px) {
  .home-identify-methods.volt-scan-ab-ready {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-identify-methods.volt-scan-ab-ready .home-identify-single {
    grid-column: 1 / -1;
  }

  .home-identify-methods.volt-scan-ab-ready .home-identify-single .home-identify-card {
    aspect-ratio: auto !important;
    height: 84px !important;
    min-height: 84px !important;
  }
}

@media (max-width: 520px) {
  .home-identify-card.home-identify-card-volt-current,
  .home-identify-card.home-identify-card-volt-beta {
    min-height: 116px;
  }

  .home-identify-card.home-identify-card-volt-current img,
  .home-identify-card.home-identify-card-volt-beta img {
    width: 92% !important;
    max-width: 92% !important;
    height: calc(100% - 44px) !important;
    max-height: calc(100% - 44px) !important;
  }

  .home-identify-card.home-identify-card-volt-current small,
  .home-identify-card.home-identify-card-volt-beta small {
    font-size: 9px !important;
    line-height: 1.25;
  }
}


/* VOLT Scan Beta 2 — mixed-object recognition layer. */
.volt-mixed-summary {
  position: absolute;
  z-index: 32;
  top: calc(max(14px, env(safe-area-inset-top)) + 72px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  width: min(92vw, 560px);
  padding: 7px 12px;
  border: 1px solid rgba(32,48,73,.9);
  border-radius: 12px;
  background: rgba(6,11,22,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.volt-mixed-summary.hidden { display:none !important; }
.volt-mixed-summary span {
  color:#f4f7fb;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}
.volt-mixed-summary small {
  color:#8fa0b8;
  font-size:7px;
  line-height:1.25;
  text-align:center;
}

.batch-vision-box .volt-mixed-box-kind {
  position:absolute;
  left:4px;
  top:4px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(6,11,22,.88);
  border:1px solid currentColor;
  color:#28d7d9;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
  pointer-events:none;
}
.batch-vision-box.volt-mixed-part {
  border-color:#f2c94c !important;
  box-shadow:0 0 0 1px rgba(242,201,76,.18),0 0 20px rgba(242,201,76,.08);
}
.batch-vision-box.volt-mixed-part .volt-mixed-box-kind { color:#f2c94c; }
.batch-vision-box.volt-mixed-fig { border-color:#28d7d9 !important; }
.batch-vision-box.volt-mixed-set { border-color:#60d5c8 !important; }
.batch-vision-box.volt-mixed-review {
  border-style:dashed !important;
  border-color:#f2c94c !important;
}
.batch-vision-box.volt-mixed-warning {
  border-color:#ef5aa8 !important;
  box-shadow:0 0 0 1px rgba(239,90,168,.2),0 0 22px rgba(239,90,168,.12);
}
.batch-vision-box.volt-mixed-warning .volt-mixed-box-kind { color:#ef5aa8; }

.batch-vision-card.volt-mixed-card-review {
  border-color:rgba(242,201,76,.45) !important;
}
.batch-vision-card.volt-mixed-card-warning {
  border-color:rgba(239,90,168,.55) !important;
}
.volt-mixed-warning-copy {
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin-top:4px;
  padding:3px 6px;
  border:1px solid rgba(239,90,168,.4);
  border-radius:999px;
  color:#ef5aa8;
  font-size:7px;
  font-weight:900;
  letter-spacing:.06em;
}
.volt-mixed-warning-copy.review {
  border-color:rgba(242,201,76,.38);
  color:#f2c94c;
}

.volt-mixed-assembly-suggestions {
  margin:0 6px 8px;
  padding:10px;
  border:1px solid rgba(242,201,76,.28);
  border-radius:14px;
  background:rgba(242,201,76,.045);
}
.volt-mixed-assembly-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}
.volt-mixed-assembly-head strong {
  color:#f4f7fb;
  font-size:9px;
  letter-spacing:.08em;
}
.volt-mixed-assembly-head span {
  color:#f2c94c;
  font-size:7px;
  font-weight:900;
  letter-spacing:.1em;
}
.volt-mixed-assembly-row {
  display:grid;
  gap:2px;
  padding:7px 0;
  border-top:1px solid rgba(32,48,73,.7);
}
.volt-mixed-assembly-row:first-of-type { border-top:0; }
.volt-mixed-assembly-row strong { color:#f4f7fb; font-size:11px; }
.volt-mixed-assembly-row small { color:#8fa0b8; font-size:8px; }

.volt-mixed-final-card {
  width:min(960px,94vw) !important;
}
.volt-mixed-final-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:10px;
  max-height:min(52vh,520px);
  overflow:auto;
  padding:4px 2px 10px;
}
.volt-mixed-final-item {
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-width:0;
  padding:9px;
  border:1px solid #203049;
  border-radius:14px;
  background:#0d1828;
}
.volt-mixed-final-item.review {
  border-color:rgba(242,201,76,.46);
}
.volt-mixed-final-image {
  aspect-ratio:1;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:10px;
  background:#08111e;
}
.volt-mixed-final-image img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.volt-mixed-final-item > div:last-child {
  display:grid;
  gap:3px;
  min-width:0;
}
.volt-mixed-final-item span {
  color:#28d7d9;
  font-size:7px;
  font-weight:900;
  letter-spacing:.1em;
}
.volt-mixed-final-item strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f4f7fb;
  font-size:11px;
}
.volt-mixed-final-item small { color:#8fa0b8; font-size:8px; }
.volt-mixed-final-item em {
  color:#f2c94c;
  font-size:7px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.05em;
}
.volt-mixed-final-assemblies {
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(242,201,76,.26);
  border-radius:14px;
  background:rgba(242,201,76,.04);
}
.volt-mixed-final-assemblies > strong {
  display:block;
  margin-bottom:6px;
  color:#f2c94c;
  font-size:8px;
  letter-spacing:.1em;
}
.volt-mixed-final-assemblies p {
  margin:4px 0;
  color:#8fa0b8;
  font-size:9px;
}
.volt-mixed-final-assemblies b { color:#f4f7fb; }

@media (max-width:600px) {
  .volt-mixed-summary {
    top:calc(max(12px, env(safe-area-inset-top)) + 66px);
    width:calc(100vw - 24px);
  }
  .volt-mixed-final-grid {
    grid-template-columns:1fr;
    max-height:50vh;
  }
}
