.pdfkitolto-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdfkitolto-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.pdfkitolto-submit {
  background: #0f172a;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.pdfkitolto-save {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5f5;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.pdfkitolto-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}

.pdfkitolto-save-status {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

.pdfkitolto-section-bar {
  width: min(900px, 100%);
  margin: 0 auto 8px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pdfkitolto-section-title {
  font-weight: 600;
  color: #0f172a;
}

.pdfkitolto-section-info {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #0ea5e9;
  background: #fff;
  color: #0ea5e9;
  font-weight: 700;
  cursor: pointer;
}

.pdfkitolto-page {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
  aspect-ratio: calc(var(--page-width) / var(--page-height));
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  --scale: 1;
}

.pdfkitolto-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdfkitolto-layer {
  position: absolute;
  inset: 0;
}

.pdfkitolto-field {
  position: absolute;
  display: block;
}

.pdfkitolto-field input,
.pdfkitolto-field textarea {
  width: 100%;
  height: 100%;
  padding: 0.5rem 0.4rem;
  border: 1px solid #22d3ee;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  font-size: 18px;
  letter-spacing: normal;
}

.pdfkitolto-field input.pdfkitolto-number {
  letter-spacing: 10.5px;
}

.pdfkitolto-modal[hidden] {
  display: none !important;
}

.pdfkitolto-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.pdfkitolto-modal-card {
  width: min(420px, 90vw);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.pdfkitolto-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdfkitolto-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.pdfkitolto-modal-title {
  font-weight: 600;
  color: #0f172a;
}

.pdfkitolto-help-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdfkitolto-help-status {
  font-size: 12px;
  color: #0f172a;
}

.pdfkitolto-help-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #0ea5e9;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}
