.ocr-main {
  max-width: 880px;
}

.ocr-panel,
.ocr-purchase {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(24, 54, 46, .14);
  border-radius: 1.25rem;
  background: #fffefa;
  box-shadow: 0 16px 40px rgba(24, 54, 46, .06);
}

.ocr-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ocr-panel-heading h2 {
  margin: .35rem 0 0;
  color: #18362e;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.ocr-mark {
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #e8eee8;
  color: #285d4f;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.ocr-access,
.ocr-status,
.ocr-help,
.ocr-note,
.ocr-purchase p {
  color: #53615b;
  line-height: 1.6;
}

.ocr-access {
  min-height: 1.5rem;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.ocr-label {
  display: block;
  margin: 1rem 0 .45rem;
  color: #18362e;
  font-weight: 650;
}

.ocr-panel input[type="file"],
.ocr-panel select,
.ocr-panel textarea {
  width: 100%;
  border: 1px solid #c9d2cc;
  border-radius: .7rem;
  background: #fff;
  color: #18362e;
  font: inherit;
}

.ocr-panel input[type="file"],
.ocr-panel select {
  min-height: 3rem;
  padding: .65rem .8rem;
}

.ocr-panel input[type="file"]:focus-visible,
.ocr-panel select:focus-visible,
.ocr-panel textarea:focus-visible,
.ocr-panel button:focus-visible {
  outline: 3px solid #7ba58d;
  outline-offset: 2px;
}

.ocr-help {
  margin: .45rem 0 1.2rem;
  font-size: .9rem;
}

.ocr-panel .launch-button {
  margin: 1.25rem .5rem 0 0;
}

.ocr-panel form[aria-busy="true"] .ocr-status::before {
  display: inline-block;
  width: .9rem;
  height: .9rem;
  margin-right: .55rem;
  border: 2px solid #c9d2cc;
  border-top-color: #285d4f;
  border-radius: 50%;
  content: "";
  vertical-align: -.1rem;
  animation: ocr-spin .8s linear infinite;
}

@keyframes ocr-spin {
  to { transform: rotate(360deg); }
}

.ocr-buy {
  background: #285d4f;
}

.ocr-panel .ocr-secondary {
  background: #e8eee8;
  color: #18362e;
}

.ocr-result {
  margin-top: 1.75rem;
}

.ocr-panel textarea {
  min-height: 16rem;
  padding: .8rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .9rem;
  line-height: 1.55;
}

.ocr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.ocr-note {
  margin: 1.25rem .3rem;
  font-size: .93rem;
}

.ocr-purchase {
  margin-top: 1rem;
}

.ocr-purchase p {
  margin: 0;
}

.ocr-main .hidden {
  display: none !important;
}

@media (max-width: 540px) {
  .ocr-panel-heading {
    align-items: flex-start;
  }
}
