.sign-doc {
  border: 1px solid var(--line, #ead6d9);
  background: var(--surface, #fff);
  border-radius: 18px;
  margin: 0 0 18px;
  padding: 18px;
}

.sign-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.sign-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.sign-badge {
  color: #6b5414;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #fff3cd;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
}

.sign-body {
  border: 1px solid var(--line, #ead6d9);
  color: #3a2a2d;
  background: #fffdfd;
  border-radius: 12px;
  max-height: 240px;
  margin-bottom: 14px;
  padding: 14px 16px;
  font-size: .92rem;
  line-height: 1.55;
  overflow: auto;
}

.sign-pad-wrap {
  margin: 6px 0 12px;
  position: relative;
}

.sign-label {
  margin-bottom: 6px;
  font-size: .92rem;
  font-weight: 600;
  display: block;
}

.sign-pad {
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border: 2px dashed #d7b8be;
  border-radius: 12px;
  width: 100%;
  height: 170px;
  display: block;
}

.sign-clear {
  font-size: .85rem;
  position: absolute;
  bottom: 8px;
  right: 10px;
}

.sign-agree {
  align-items: flex-start;
}

.sign-name input {
  width: 100%;
}

@media (max-width: 560px) {
  .sign-pad {
    height: 150px;
  }

  .sign-body {
    max-height: 200px;
  }
}

.sign-who {
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  display: grid;
}

.sign-who .sign-email {
  grid-column: 1 / -1;
}

.sign-who .field {
  margin-bottom: 12px;
  display: block;
}

.sign-who .field > span {
  margin-bottom: 6px;
  font-size: .92rem;
  font-weight: 600;
  display: block;
}

.sign-who .field small {
  color: var(--ink-3, #7a6b7d);
  font-weight: 400;
}

.sign-who input {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}

@media (max-width: 560px) {
  .sign-who {
    grid-template-columns: 1fr;
  }
}

/* flex gap fallback for older iPhones / Samsung Internet */
.no-fg .sign-head > * { margin-right: 10px; margin-bottom: 10px; }
