.rotate-reset {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: #45454f;
  font: inherit;
  padding: 8px 0;
  cursor: pointer;
}
.rotate-choices,
.html-choices,
.html-checks {
  border: 0;
  padding: 0;
  margin: 18px 0;
  min-width: 0;
}
.rotate-choices legend,
.html-choices legend,
.html-checks legend {
  font-weight: 500;
  margin-bottom: 8px;
}
.rotate-choices button,
.html-choices button {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  gap: 7px;
  padding: 9px;
  border: 2px solid transparent;
  background: #f5f5fa;
  border-radius: 7px;
  box-shadow: 0 2px 3px #0002;
  cursor: pointer;
  color: #666670;
  font: inherit;
  font-size: 14px;
}
.rotate-choices button {
  min-height: 62px;
  flex: 1;
}
.rotate-choices {
  display: flex;
  gap: 6px;
}
.rotate-choices button span {
  font-size: 23px;
}
.rotate-choices button[aria-pressed='true'],
.html-choices button[aria-pressed='true'] {
  border-color: #e5322d;
  color: #cc2722;
}
.pdf-file-card.rotate-muted .file-preview,
.pdf-file-card.rotate-muted h3 {
  opacity: 0.5;
}
.html-workspace .html-area {
  padding: 22px;
  min-width: 0;
  background: #f5f5fa;
  overflow: auto;
  max-height: calc(100dvh - 60px);
}
.html-state {
  text-align: center;
  margin: 65px auto;
  max-width: 560px;
}
.html-state p {
  margin: 14px 0;
}
.html-state h2 {
  font-size: 24px;
}
.html-paper {
  margin: 0 auto 16px;
  width: 100%;
  background: white;
  box-shadow: 0 2px 6px #0002;
}
.html-paper img {
  display: block;
  width: 100%;
  height: auto;
  color: transparent;
}
.html-options label,
.html-add-form label {
  display: block;
  font-size: 16px;
  margin: 12px 0;
}
.html-options select,
.html-options input[name='url'],
.html-add-form input {
  display: block;
  width: 100%;
  border: 1px solid #b5b5c0;
  border-radius: 5px;
  background: white;
  padding: 10px;
  font: inherit;
  margin-top: 6px;
}
.html-options .html-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.html-check input {
  accent-color: #df352f;
  width: 18px;
  height: 18px;
}
.html-url-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.html-url-row button {
  padding: 7px;
  border: 0;
  border-radius: 5px;
  background: #f5f5fa;
  font-size: 21px;
}
.html-options hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 14px 0;
}
.html-choices {
  display: flex;
  gap: 6px;
}
.html-choices button {
  flex: 1;
  height: 74px;
}
.html-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: white;
}
.html-actions .process-button {
  margin: 0;
  flex: 1;
  min-width: 0;
  width: auto;
}
.html-actions .secondary {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 7px;
}
.html-url-tab {
  font-size: 17px;
  font-weight: 500;
  border-bottom: 2px solid #e5322d;
  padding: 12px;
}
.html-add-form [role='alert'] {
  color: #ad241c;
}
.html-add-form footer button {
  padding: 10px 30px;
}
.html-spinner {
  display: inline-block;
  width: 52px;
  height: 52px;
  border: 5px solid #ddd;
  border-top-color: #e5322d;
  border-radius: 50%;
  animation: html-spin 0.85s linear infinite;
}
@keyframes html-spin {
  to {
    transform: rotate(360deg);
  }
}
.pdf-processing .html-spinner {
  width: 104px;
  height: 104px;
  border-width: 10px;
}
@media (max-width: 700px) {
  .html-workspace .html-area {
    min-height: 200px;
    max-height: 50vh;
    padding: 12px;
  }
  .html-state {
    margin: 26px auto;
  }
  .html-actions {
    padding: 8px 12px;
  }
}
