.barcode-result {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.barcode-result.show {
  display: block;
}

.barcode-result.mrz-result--status {
  padding: var(--space-3) var(--space-4);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

#barcode-result-panel[hidden] {
  display: none !important;
}

#barcode-status {
  display: block;
}

#barcode-status[hidden] {
  display: none !important;
}

#view-barcode-reader .bulk-meta {
  display: none;
}

#view-barcode-reader.has-status .bulk-meta {
  display: flex;
}

.barcode-preview.preview.dropzone {
  min-height: 190px;
  height: auto;
  max-height: none;
  padding: var(--space-4);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: auto;
}

.barcode-preview.preview.dropzone:not(.has-image) {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--field-bg) 90%, transparent));
}

.barcode-preview__empty-state {
  justify-items: center;
  width: min(100%, 680px);
  gap: var(--space-2);
  pointer-events: none;
}

.barcode-preview__illustration {
  justify-content: center;
  margin-bottom: var(--space-2);
}

.barcode-preview__icon {
  width: 120px;
  height: auto;
}

.barcode-preview .dropzone-upload-btn {
  pointer-events: auto;
}

#view-barcode-reader .bulk-hero #barcode-clear {
  margin-left: auto;
  align-self: flex-start;
}

#view-barcode-reader .bulk-hero #barcode-clear[hidden] {
  display: none !important;
}

.barcode-preview.has-image {
  min-height: 240px;
  height: 32vh;
  max-height: 380px;
  padding: var(--space-2);
  align-items: center;
  justify-content: center;
  cursor: default;
}

.barcode-preview.has-image .barcode-preview__empty-state {
  display: none;
}

#barcode-selection-rect .selection-rect__badge {
  display: none !important;
}

.barcode-result__data {
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  color: var(--fg);
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .barcode-result__data {
    font-size: 1.34rem;
    line-height: 1.25;
    letter-spacing: .03em;
  }

  .barcode-preview.preview.dropzone {
    min-height: 236px;
    height: auto;
    max-height: none;
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .barcode-preview.preview.dropzone:not(.has-image) {
    height: 236px;
  }

  .barcode-preview__empty-state {
    gap: 6px;
  }

  .barcode-preview__illustration {
    margin-bottom: 0;
  }

  .barcode-preview__icon {
    width: 64px;
    opacity: .88;
  }

  #view-barcode-reader .dropzone-title {
    font-size: .92rem;
  }

  #view-barcode-reader .dropzone-sub {
    max-width: 28ch;
    font-size: .72rem;
    line-height: 1.35;
  }

  #view-barcode-reader .dropzone-upload-btn {
    width: calc(100% - 16px);
    max-width: 324px;
    margin-top: 0;
  }

  #view-barcode-reader .bulk-meta {
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  #view-barcode-reader #barcode-status {
    width: 100%;
    min-height: 0;
    text-align: center;
    font-size: .75rem;
  }

  #view-barcode-reader #barcode-result-panel {
    margin-top: 0;
  }
}

body.mobile-simple-en:not([data-shell-range="desktop"]) #view-barcode-reader.has-result .barcode-preview.preview.dropzone {
  min-height: clamp(188px, 28dvh, 280px);
}

body.mobile-simple-en.pwa:not([data-shell-range="desktop"]) #view-barcode-reader.has-result .barcode-preview.preview.dropzone {
  min-height: clamp(200px, 30dvh, 300px);
}

@media (max-width: 420px) {
  body.mobile-simple-en:not([data-shell-range="desktop"]) #view-barcode-reader .bulk-hero h2 {
    font-size: .96rem;
  }

  body.mobile-simple-en:not([data-shell-range="desktop"]) #view-barcode-reader .bulk-sub {
    font-size: .72rem;
    max-width: 27ch;
  }
}
