.signature-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
}
.signature-intro {
  margin: 48px 0 24px;
  max-width: 760px;
}
.signature-intro h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.04em;
  margin: 16px 0;
}
.signature-relation {
  border: 1px solid #2463a5;
  color: #2463a5;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 3px;
}
.signature-relation.client {
  border-color: #7950ad;
  color: #7950ad;
}
.signature-shell button,
.signature-shell .primary {
  border-radius: 5px;
}
.signature-preview {
  width: 100%;
  height: 480px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}
.signature-status {
  font-size: 12px;
}
.signature-status.completed {
  color: #167a49;
}
.signature-status.pending,
.signature-status.sending,
.signature-status.uncertain {
  color: #a76413;
}
.signature-status.declined {
  color: #b83535;
}
.pdf-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  flex-wrap: wrap;
  font-size: 13px;
}
.pdf-toolbar button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 6px;
}
.pdf-paper {
  position: relative;
  margin: 0 auto;
  background: white;
  max-width: 900px;
  border: 1px solid #dedfe2;
  line-height: 0;
  box-shadow: 0 6px 24px #00000009;
}
.pdf-paper canvas {
  display: block;
  width: 100%;
  height: auto;
}
.stamp-overlay {
  position: absolute;
  border: 1px solid #111;
  background: #fffffff2;
  color: #111;
  text-align: left;
  padding: 10px;
  line-height: 1.4;
  cursor: move;
  touch-action: none;
  overflow: hidden;
}
.stamp-overlay strong,
.stamp-overlay span {
  display: block;
  font-size: clamp(8px, 1vw, 12px);
}
.signature-reader {
  padding: 20px;
  background: #f6f7f8;
  border-radius: 12px;
  margin: 24px 0;
}
.signature-reader h2 {
  margin: 0;
  font-size: 20px;
}
.signature-reader .checkline {
  margin: 20px 0;
}
.signature-shell docuseal-form {
  display: block;
  margin: 24px 0;
}

.pdf-scroll {
  overflow: auto;
  max-height: 72vh;
  padding: 8px;
  background: #f5f6f7;
}
.stamp-size {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.stamp-size input {
  width: 140px;
  accent-color: #111;
}
.stamp-size output {
  min-width: 54px;
}

@media (max-width: 680px) {
  .signature-shell {
    padding: 24px 16px;
  }
  .signature-intro {
    margin-top: 28px;
    overflow-wrap: anywhere;
  }
  .signature-reader {
    padding: 12px;
  }
  .pdf-toolbar {
    gap: 8px;
  }
  .pdf-toolbar button {
    min-width: 44px;
    min-height: 44px;
  }
  .pdf-toolbar [data-hint] {
    flex: 1 1 100%;
    line-height: 1.5;
  }
  .stamp-size {
    flex: 1 1 100%;
    margin: 8px 0;
  }
  .stamp-size input {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 44px;
  }
  .pdf-scroll {
    padding: 6px;
    max-height: 65dvh;
    overscroll-behavior: contain;
  }
  .stamp-overlay {
    padding: 3px;
    min-height: 0;
    border-radius: 2px;
  }
  .stamp-overlay strong,
  .stamp-overlay span {
    font-size: 7px;
  }
  .signature-shell .customer-actions > * {
    width: 100%;
  }
}
