.cp-capture {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: white;
  color: #182136;
  overflow: auto;
  overscroll-behavior: contain;
}
.capture-shell {
  width: 100%;
  max-width: 510px;
  margin: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.cp-capture.is-camera {
  background: #000;
  color: #fff;
}
.is-camera .capture-shell {
  height: 100dvh;
  min-height: 0;
}
.capture-header {
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.capture-header > span {
  font-size: 15px;
  font-weight: 600;
}
.capture-icon {
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 27px;
  cursor: pointer;
  display: inline-block;
}
.capture-modes {
  display: flex;
  width: 180px;
  border: 1px solid #272727;
  border-radius: 24px;
  padding: 3px;
}
.capture-modes button {
  flex: 1;
  border: 0;
  background: none;
  color: #aaa;
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 22px;
}
.capture-modes [aria-selected="true"] {
  background: #7443ff;
  color: #fff;
}
.capture-modes [data-mode="price"][aria-selected="true"] {
  background: #d4ffac;
  color: #111;
}
.capture-caption {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin: 0 0 14px;
}
.capture-finder-area {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  position: relative;
}
.capture-finder {
  position: relative;
  width: min(76vw, 318px);
  aspect-ratio: 0.65;
  max-height: 100%;
  border: 1px dashed #656565;
  border-radius: 8px;
  overflow: hidden;
}
.capture-finder video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.capture-finder > p {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: white;
  text-shadow: 0 1px 6px #000;
}
.capture-finder i {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: #7443ff;
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.capture-finder i:nth-of-type(1) {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
}
.capture-finder i:nth-of-type(2) {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
}
.capture-finder i:nth-of-type(3) {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
}
.capture-finder i:nth-of-type(4) {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
}
.capture-notice {
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 12px;
  color: #ddd;
  background: #000b;
  border-radius: 8px;
  margin: 0;
  padding: 6px;
}
.capture-notice:empty {
  display: none;
}
.capture-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px max(36px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.capture-controls > button {
  background: none;
  border: 0;
  color: white;
  font-size: 10px;
  line-height: 1.4;
  min-width: 54px;
  cursor: pointer;
}
.capture-controls > button > span {
  display: block;
  font-size: 29px;
  margin-bottom: 5px;
}
.capture-controls > .capture-shutter {
  width: 68px;
  height: 68px;
  border: 3px solid #7443ff;
  border-radius: 50%;
  padding: 4px;
  min-width: 68px;
}
.capture-shutter span {
  background: white;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}
.capture-shutter:disabled {
  opacity: 0.45;
}
.capture-body {
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.capture-body h1 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.8px;
}
.capture-photo {
  background: white;
  border: 0;
  color: #7443ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.capture-photo img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}
.capture-photo small {
  font-size: 12px;
}
.capture-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e3ea;
  padding: 14px;
  border-radius: 10px;
  text-align: left;
  background: white;
  color: inherit;
}
.capture-selection strong {
  font-size: 18px;
}
.capture-selection small,
.capture-result small {
  display: block;
  font-size: 12px;
  color: #697285;
  margin-top: 6px;
}
.capture-grades {
  display: flex;
  gap: 9px;
}
.capture-grades button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: inherit;
}
.capture-grades [aria-pressed="true"] {
  color: #7443ff;
  background: #f1eaff;
  border-color: #7443ff;
}
.capture-cert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.capture-cert input,
.capture-search input {
  font: inherit;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.capture-auto {
  font-size: 12px;
  color: #687080;
  margin: 0;
}
.capture-ownership {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.capture-ownership input {
  margin-top: 5px;
  accent-color: #7443ff;
}
.capture-error {
  color: #b93636;
  font-size: 13px;
  padding: 0 16px;
  margin: 0;
}
.capture-error:empty {
  display: none;
}
.capture-shell footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
}
.capture-primary {
  width: 100%;
  padding: 17px;
  border: 0;
  background: #7443ff;
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
.capture-primary:disabled {
  opacity: 0.4;
  cursor: default;
}
.capture-identify {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  text-align: center;
  line-height: 1.25;
}
.capture-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #7443ff;
  border-radius: 50%;
  animation: capture-spin 1s linear infinite;
}
@keyframes capture-spin {
  to {
    transform: rotate(360deg);
  }
}
.capture-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}
.capture-search input {
  width: 100%;
}
.capture-search-results {
  padding: 0 20px 20px;
}
.capture-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  background: white;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.capture-result img {
  width: 52px;
  height: 76px;
  object-fit: contain;
}
.capture-result > span:first-of-type {
  flex: 1;
}
.capture-status {
  padding: 18px;
  border-radius: 10px;
  background: #f1eaff;
  font-size: 20px;
  font-weight: 600;
}
.capture-receipt-photo {
  width: 80px;
  height: 114px;
  object-fit: contain;
}
@media (max-height: 720px) {
  .capture-finder {
    width: 230px;
  }
  .capture-header {
    height: 56px;
  }
  .capture-controls {
    padding-top: 14px;
    padding-bottom: 20px;
  }
}

.cp-capture.is-camera {
  --capture-accent: #7443ff;
}
.cp-capture.is-camera[data-mode="price"] {
  --capture-accent: #d4ffac;
}
.capture-finder i {
  border-color: var(--capture-accent);
}
.capture-controls > .capture-shutter {
  border-color: var(--capture-accent);
}
.capture-controls > button > span svg {
  display: block;
  margin: 0 auto 6px;
  width: 25px;
  height: 25px;
}
.capture-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.capture-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -14px;
  color: #697285;
}
.capture-review-heading button {
  padding: 10px 0 10px 20px;
  border: 0;
  background: white;
  color: #1b3069;
  font-size: 14px;
  cursor: pointer;
}
.capture-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  border-block: 1px solid #e2e3ea;
  padding-block: 16px;
}
.capture-summary > button {
  padding: 0;
  border: 0;
  background: white;
  cursor: pointer;
}
.capture-summary img {
  display: block;
  width: 64px;
  height: 94px;
  object-fit: contain;
}
.capture-summary > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 14px;
}
.capture-summary small {
  font-size: 12px;
  color: #697285;
}
.capture-summary strong {
  font-weight: 500;
  line-height: 1.4;
}
.capture-discard {
  border: 0;
  background: white;
  color: #697285;
  font-size: 13px;
  cursor: pointer;
  padding: 10px;
}
.fair-value-compact {
  font-size: 16px;
  font-weight: 600;
  color: #1b3069;
  margin-top: 6px;
}

.capture-fair-value .fair-value-compact {
  min-height: 26px;
  display: flex;
  align-items: center;
}
.capture-fair-value:has(.fair-value-compact) {
  min-height: 52px;
}

.capture-body.is-value{gap:12px;padding:16px}.capture-value-photo{height:180px;width:100%;object-fit:contain}.capture-value-title{display:flex;flex-direction:column;gap:4px}.capture-value-title small{color:#697386;font-size:13px}.capture-value-title strong{font-size:22px;line-height:26px;font-weight:600}.capture-grade-select{align-self:flex-start;width:132px;border:1px solid #e2e5eb;padding:10px;background:white;color:#172238;font-size:12px}.capture-pop{display:flex;border:1px solid #e2e5eb;border-radius:8px;overflow:hidden}.capture-pop>div{flex:1;padding:12px;display:flex;flex-direction:column;gap:8px}.capture-pop small{font-size:11px;color:#697386}.capture-pop span{font-size:13px;color:#697386}.capture-pop strong{font-size:20px}.capture-pop .is-selected{background:#f1eaff}.capture-sales h2{font-size:18px;margin:0 0 10px}.capture-sale{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e2e5eb;padding:9px 0}.capture-sale>div{display:flex;flex-direction:column;gap:3px}.capture-sale>div:last-child{text-align:right}.capture-sale strong{font-size:13px;font-weight:500}.capture-sale small{font-size:11px;color:#697386}.capture-sales>a{display:inline-block;margin-top:12px;font-size:13px}
.capture-reference{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;line-height:1.6;font-size:13px}.capture-reference strong{display:block}.capture-reference p{margin:6px 0}.capture-reference small{color:var(--muted)}
