body.pdf-check-body {
  min-height: 100vh;
  background: #f5f7f8;
  color: #15231f;
}

.pdf-check-header {
  border-bottom: 1px solid #dce3e0;
  background: #ffffff;
}

.pdf-check-header__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 1rem;
}

.pdf-check-brand {
  color: #15231f;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.pdf-check-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 1rem;
}

.pdf-check-nav a {
  color: #53635e;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.pdf-check-main {
  padding: 4rem 0 5rem;
}

.pdf-check-intro,
.pdf-check-tool,
.pdf-check-result,
.pdf-check-catalog,
.pdf-check-how {
  width: min(760px, 100%);
  margin-inline: auto;
}

.pdf-check-intro {
  margin-bottom: 2rem;
}

.pdf-check-kicker {
  margin: 0 0 0.65rem;
  color: #176b55;
  font-size: 0.82rem;
  font-weight: 800;
}

.pdf-check-intro h1 {
  max-width: 680px;
  margin: 0;
  color: #15231f;
  font-size: 3.35rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.pdf-check-lead {
  max-width: 650px;
  margin: 1rem 0 0;
  color: #52625d;
  font-size: 1.05rem;
  line-height: 1.85;
}

.pdf-check-tool {
  padding: 1.35rem;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px -36px rgba(21, 35, 31, 0.65);
}

.pdf-check-dropzone {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 2rem;
  border: 2px dashed #93a7a0;
  border-radius: 6px;
  background: #f8faf9;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.pdf-check-dropzone.is-dragover {
  border-color: #176b55;
  background: #edf7f3;
}

.pdf-check-dropzone.is-busy {
  opacity: 0.68;
}

.pdf-check-dropzone__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid #be3b31;
  border-radius: 3px;
  color: #a62f28;
  font-size: 0.78rem;
  font-weight: 800;
}

.pdf-check-dropzone h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.5;
}

.pdf-check-dropzone p {
  margin: 0.5rem 0 1.25rem;
  color: #66756f;
}

.pdf-check-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid #176b55;
  border-radius: 5px;
  background: #176b55;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pdf-check-button:hover {
  background: #105441;
  color: #ffffff;
  text-decoration: none;
}

.pdf-check-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pdf-check-button--secondary {
  border-color: #b8c5c0;
  background: #ffffff;
  color: #30433c;
}

.pdf-check-button--secondary:hover {
  background: #f2f5f4;
  color: #15231f;
}

.pdf-check-privacy {
  margin: 0.9rem 0 0;
  color: #53635e;
  font-size: 0.88rem;
  text-align: center;
}

.pdf-check-status,
.pdf-check-error {
  width: min(760px, 100%);
  min-height: 54px;
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border-radius: 5px;
  background: #ffffff;
  color: #3e504a;
  text-align: center;
}

.pdf-check-error {
  border: 1px solid #efb5b0;
  background: #fff5f4;
  color: #8e2d26;
}

.pdf-check-result {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid #cfd9d5;
  border-top: 5px solid #176b55;
  border-radius: 8px;
  background: #ffffff;
}

.pdf-check-result[data-result='mixed'] {
  border-top-color: #b36b00;
}

.pdf-check-result[data-result='image'] {
  border-top-color: #b33a32;
}

.pdf-check-result__summary {
  padding: 1.6rem;
}

.pdf-check-result__label {
  margin: 0 0 0.45rem;
  color: #176b55;
  font-size: 0.82rem;
  font-weight: 800;
}

.pdf-check-result[data-result='mixed'] .pdf-check-result__label {
  color: #9a5a00;
}

.pdf-check-result[data-result='image'] .pdf-check-result__label {
  color: #a2332c;
}

.pdf-check-result h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.45;
}

.pdf-check-result__description {
  margin: 0.75rem 0 0;
  color: #52625d;
  line-height: 1.8;
}

.pdf-check-result__numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
  border-block: 1px solid #e2e8e5;
}

.pdf-check-result__numbers div {
  padding: 0.85rem 0;
}

.pdf-check-result__numbers div + div {
  padding-left: 1rem;
  border-left: 1px solid #e2e8e5;
}

.pdf-check-result__numbers span,
.pdf-check-result__numbers strong {
  display: block;
}

.pdf-check-result__numbers span {
  color: #687771;
  font-size: 0.8rem;
}

.pdf-check-result__numbers strong {
  margin-top: 0.15rem;
  font-size: 1.15rem;
}

.pdf-check-pages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnosis-page {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-bottom: 1px solid #e2e8e5;
}

.diagnosis-page span {
  color: #176b55;
  font-weight: 800;
}

.diagnosis-page--partial span {
  color: #9a5a00;
}

.diagnosis-page--image span {
  color: #a2332c;
}

.diagnosis-page small {
  color: #687771;
  text-align: right;
}

.pdf-check-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.6rem 1.6rem;
}

.pdf-check-how {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #cfd9d5;
}

.pdf-check-catalog {
  margin-top: 4rem;
}

.pdf-check-catalog__heading {
  max-width: 690px;
}

.pdf-check-catalog__heading h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.45;
}

.pdf-check-catalog__heading > p:last-child {
  margin: 0.8rem 0 0;
  color: #53635e;
  line-height: 1.85;
}

.pdf-check-analysis-preview {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px -36px rgba(21, 35, 31, 0.65);
}

.pdf-check-analysis-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1rem;
}

.pdf-check-analysis-preview__header span {
  color: #687771;
  font-size: 0.78rem;
  font-weight: 700;
}

.pdf-check-analysis-preview__header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
}

.pdf-check-analysis-preview__header > strong {
  padding: 0.25rem 0.45rem;
  border: 1px solid #b8c5c0;
  border-radius: 3px;
  color: #53635e;
  font-size: 0.75rem;
  white-space: nowrap;
}

.pdf-check-analysis-preview__summary {
  margin: 0;
  padding: 0 1.5rem 1.3rem;
  color: #30433c;
  font-size: 1.02rem;
  line-height: 1.85;
}

.pdf-check-analysis-list {
  border-top: 1px solid #e2e8e5;
}

.pdf-check-analysis-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid #e2e8e5;
}

.pdf-check-analysis-item > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdf-check-analysis-item > div span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff3dc;
  color: #995a00;
  font-weight: 800;
}

.pdf-check-analysis-item--unknown > div span {
  background: #edf0f2;
  color: #4c5b56;
}

.pdf-check-analysis-item p {
  margin: 0;
  color: #40534c;
  line-height: 1.65;
}

.pdf-check-analysis-item small {
  color: #687771;
  white-space: nowrap;
}

.pdf-check-analysis-locked {
  padding: 0.6rem 1.5rem 1.2rem;
  background: #f6f8f7;
}

.pdf-check-analysis-locked > div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dfe6e3;
  color: #53635e;
}

.pdf-check-analysis-locked > div strong {
  color: #176b55;
  font-size: 0.78rem;
}

.pdf-check-analysis-locked p {
  margin: 1rem 0 0;
  color: #53635e;
  font-size: 0.9rem;
  line-height: 1.7;
}

.pdf-check-analysis-preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid #dfe6e3;
}

.pdf-check-analysis-preview__footer > div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.pdf-check-analysis-preview__footer > div span {
  color: #53635e;
}

.pdf-check-how h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.pdf-check-how p {
  margin: 0;
  color: #53635e;
  line-height: 1.8;
}

.pdf-check-footer {
  padding: 2rem 0;
  border-top: 1px solid #dce3e0;
  background: #ffffff;
  color: #687771;
}

.pdf-check-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdf-check-footer p {
  margin: 0;
}

.pdf-check-footer a {
  color: #40534c;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .pdf-check-header__inner,
  .pdf-check-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .pdf-check-nav {
    margin-left: 0;
  }

  .pdf-check-main {
    padding-top: 2.5rem;
  }

  .pdf-check-intro h1 {
    font-size: 2rem;
  }

  .pdf-check-tool,
  .pdf-check-dropzone {
    padding: 1rem;
  }

  .pdf-check-dropzone {
    min-height: 230px;
  }

  .diagnosis-page {
    grid-template-columns: 1fr auto;
    padding-inline: 1rem;
  }

  .pdf-check-catalog__heading h2 {
    font-size: 1.55rem;
  }

  .pdf-check-analysis-preview__header,
  .pdf-check-analysis-preview__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pdf-check-analysis-item {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.75rem;
    padding-inline: 1rem;
  }

  .pdf-check-analysis-item p {
    grid-column: 1 / -1;
  }

  .pdf-check-analysis-item small {
    grid-column: 1 / -1;
  }

  .pdf-check-analysis-locked {
    padding-inline: 1rem;
  }

  .pdf-check-analysis-preview__footer .pdf-check-button {
    width: 100%;
  }

  .diagnosis-page small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .pdf-check-result__actions {
    align-items: stretch;
    flex-direction: column;
  }
}
