.pdfstudio-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.pdfstudio-detail {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.pdfstudio-detail span {
  display: block;
  margin-bottom: 3px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdfstudio-detail strong {
  display: block;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.pdfstudio-tip,
.pdfstudio-file-stats,
.pdfstudio-result-stats {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.pdfstudio-tip { color: #475569; background: #fff7ed; }
.pdfstudio-file-stats { color: #475569; background: #f1f5f9; }
.pdfstudio-result-stats { color: #047857; background: #ecfdf5; }

@media (max-width: 640px) {
  .pdfstudio-details { grid-template-columns: 1fr; }
  .pdfstudio-tip,
  .pdfstudio-file-stats,
  .pdfstudio-result-stats { grid-column: 1; }
}

body.pdfstudio-embedded {
  pointer-events: auto !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

body.pdfstudio-embedded > main {
  display: none !important;
  min-height: 0 !important;
}

body.pdfstudio-embedded .pdfstudio-hidden-overlay {
  display: none !important;
}

body.pdfstudio-embedded .pdfstudio-tool-page {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  rotate: none !important;
  animation: none !important;
  transition: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .10) !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

body.pdfstudio-embedded .pdfstudio-tool-page > div:first-child {
  border-radius: 24px 24px 0 0;
}

@media (max-width: 640px) {
  body.pdfstudio-embedded .pdfstudio-tool-page {
    border-radius: 18px !important;
  }
}
