.recipient-app{margin:0;background:#f5f7fa;color:#163944;min-height:100vh;font-family:Inter,Arial,sans-serif}.recipient-app [hidden]{display:none!important}.recipient-header{padding:24px max(22px,calc((100% - 1140px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid #e8edf0}.recipient-header img{width:180px;height:auto}.recipient-header span{font-size:12px;color:#687f89}.recipient-main{max-width:1140px;margin:38px auto;padding:0 22px;min-height:65vh;outline:none}.recipient-card{background:white;border:1px solid #e4ebef;border-radius:16px;padding:34px;box-shadow:0 4px 16px #12384704}.recipient-narrow{max-width:590px;margin:auto}.recipient-app h1{font-size:27px;line-height:1.3;letter-spacing:-.6px;margin:16px 0}.recipient-app h2{font-size:18px;line-height:1.4;margin-bottom:18px}.recipient-app p{font-size:14px;line-height:1.7;color:#617a85}.recipient-eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#29877b}.recipient-summary{background:#f4f8fa;border-radius:10px;padding:20px;margin:24px 0}.recipient-meta{margin:0;display:grid;gap:15px;grid-template-columns:1fr 1fr}.recipient-meta dt{font-size:11px;color:#70848e;font-weight:400;margin-bottom:5px}.recipient-meta dd{font-size:13px;margin:0;overflow-wrap:anywhere}.recipient-app .form-control{min-height:48px;font-size:16px}.recipient-app .form-label{font-size:13px;font-weight:600}.recipient-app .btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;white-space:normal}.recipient-primary{background:#073b4c!important;color:#fff!important}.recipient-primary:hover{background:#10596a!important}.recipient-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.recipient-actions>.btn{flex:1}.recipient-hint{font-size:12px!important}.recipient-contact{border-top:1px solid #e4ebef;margin-top:28px;padding-top:20px;font-size:12px;color:#6e838d}.recipient-contact a{overflow-wrap:anywhere}.recipient-footer{max-width:1140px;margin:32px auto;padding:0 22px 22px;display:flex;justify-content:space-between;gap:20px;color:#70848e;font-size:11px}.recipient-status-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e8f6ef;color:#158468;font-size:28px;margin-bottom:20px}.recipient-status-icon.warning{background:#fff3e0;color:#a46c12}.recipient-error{padding:13px 16px;background:#fff0f0;border-radius:8px;font-size:13px;color:#a53838;margin:18px 0}.recipient-notice{background:#eef6f5;color:#256a63;border-radius:8px;padding:15px;font-size:13px;margin:18px 0}.recipient-read-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.recipient-read-grid .recipient-card{padding:24px}.recipient-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px;background:#f1f5f7;border-radius:9px 9px 0 0}.recipient-pdf-toolbar .btn{min-height:42px;min-width:42px;padding:8px}.recipient-pdf-controls{display:flex;align-items:center;gap:7px;font-size:12px}.recipient-pdf-surface{overflow:auto;background:#e4eaee;padding:14px;max-height:76vh;min-height:250px;overscroll-behavior:contain}.recipient-pdf-surface canvas{display:block;margin:auto;background:white;box-shadow:0 3px 14px #203c4120}.recipient-consent{display:flex;align-items:flex-start;gap:12px;margin:22px 0;line-height:1.65;font-size:13px}.recipient-consent input{flex-shrink:0;margin-top:4px;width:21px;height:21px}.recipient-code{letter-spacing:.5em;text-align:center;font-size:25px!important;font-variant-numeric:tabular-nums}.recipient-timeline{list-style:none;padding:0;margin:20px 0}.recipient-timeline li{padding:15px 0;border-bottom:1px solid #edf1f4;display:flex;justify-content:space-between;gap:15px;font-size:13px}.recipient-app :focus-visible{outline:3px solid #51a99b;outline-offset:3px}.recipient-downloads{display:grid;gap:12px}.recipient-steps{font-size:12px;color:#68818c;margin-bottom:18px}.recipient-steps strong{color:#073b4c}.recipient-app .btn:disabled{opacity:.55}.recipient-read-grid aside{position:sticky;top:20px}
.recipient-app{display:block;height:auto}.recipient-read-grid>*{min-width:0}.recipient-read-grid .recipient-meta>div:last-child{grid-column:1/-1}
@media(max-width:767px){.recipient-header{padding:18px 20px}.recipient-header img{width:151px}.recipient-header span{max-width:92px;text-align:right;font-size:10px}.recipient-main{margin:22px auto;padding:0 14px}.recipient-card{padding:24px 20px;border-radius:13px}.recipient-app h1{font-size:23px}.recipient-read-grid{grid-template-columns:minmax(0,1fr);gap:18px}.recipient-read-grid aside{position:static}.recipient-read-grid .recipient-card{padding:18px}.recipient-pdf-surface{padding:8px;max-height:65vh}.recipient-actions{flex-direction:column}.recipient-actions>.btn{width:100%}.recipient-meta{gap:15px}.recipient-footer{font-size:10px;padding:0 20px 20px}.recipient-app p{font-size:13px}}
@font-face{font-family:SignatureAllura;src:url('../fonts/assinaturas/allura/Allura-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:SignatureGreatVibes;src:url('../fonts/assinaturas/greatvibes/GreatVibes-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:SignatureSacramento;src:url('../fonts/assinaturas/sacramento/Sacramento-Regular.ttf') format('truetype');font-display:swap}
.signature-font-allura{font-family:SignatureAllura,cursive}.signature-font-greatvibes{font-family:SignatureGreatVibes,cursive}.signature-font-sacramento{font-family:SignatureSacramento,cursive}
.signature-choice{margin:24px 0;padding-top:20px;border-top:1px solid #dce7e7}.signature-choice h2{margin-bottom:8px}.signature-saved-image{display:block;width:100%;aspect-ratio:10/3;object-fit:contain;background:#f7faf9;border:1px solid #e1eae6;border-radius:8px;margin-bottom:10px}.signature-saved-image[hidden]{display:none}
.signature-tabs{display:flex;gap:8px;margin:16px 0 24px}.signature-tabs button{flex:1;border:1px solid #d5e3df;border-radius:8px;padding:12px;background:#f5f9f7;color:#073e4c;font-size:13px}.signature-tabs button[aria-pressed=true],.signature-fonts button[aria-pressed=true]{border-color:#29877b;box-shadow:inset 0 0 0 1px #29877b;background:#edf7f2}.signature-shortcuts{display:flex;flex-wrap:wrap;gap:16px;margin:10px 0 14px}.signature-shortcuts button{border:0;background:none;color:#16756a;font-size:12px;padding:3px 0;text-decoration:underline}.signature-fonts{display:grid;gap:10px}.signature-fonts button{border:1px solid #d5e3df;border-radius:8px;background:white;padding:12px;text-align:left;color:#073e4c}.signature-font-label{display:block;font:11px sans-serif;color:#68818c}.signature-font-sample{display:block;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.6;padding:4px 0}#signature-canvas{width:100%;height:auto;aspect-ratio:10/3;display:block;touch-action:none;border:1px dashed #73a99c;border-radius:8px;background:#f8fbf9;cursor:crosshair}
@media(max-width:520px){.signature-tabs{gap:6px}.signature-tabs button{font-size:12px;padding:10px 6px}.signature-font-sample{padding:0}}

.recipient-flow {
  max-width: 780px;
  margin-inline: auto;
}
.recipient-flow-heading h1 {
  margin: 6px 0 16px;
  overflow-wrap: anywhere;
}
.recipient-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  border-bottom: 1px solid #d7e4e8;
}
.recipient-flow-steps li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: #536a74;
}
.recipient-flow-steps li[aria-current="step"] {
  color: #005e55;
  border-color: #08776a;
}
.recipient-flow-steps .is-complete::before {
  content: "✓" / "";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #096555;
  background: #d8f0e8;
}
.recipient-flow .recipient-card {
  min-width: 0;
}
.recipient-flow .recipient-meta {
  padding: 12px;
  margin-top: 14px;
  border: 1px solid #e4ebef;
  border-radius: 9px;
}
.recipient-flow .recipient-meta > div:last-child {
  grid-column: 1 / -1;
}
.recipient-flow .recipient-primary {
  background: #006f63 !important;
}
.recipient-flow .recipient-primary:hover {
  background: #005d53 !important;
}
.recipient-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.recipient-flow-actions > .btn {
  flex: 1 1 180px;
}
.recipient-flow .signature-choice {
  margin: 0;
  padding: 0;
  border: 0;
}
.signature-editor {
  padding: 14px;
  border: 1px solid #d8e4e8;
  border-radius: 11px;
  background: #f8fbfa;
}
.signature-editor .signature-tabs {
  margin: 0 0 16px;
}
.signature-editor .signature-tabs button {
  min-height: 44px;
}
.recipient-flow .recipient-consent {
  margin-top: 0;
}
.recipient-code-resend.btn {
  padding: 8px 0;
  color: #006f63;
  text-decoration: underline;
}
.recipient-code-resend.btn:disabled {
  color: #526b77;
  opacity: 1;
  text-decoration: none;
}
.recipient-code-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.recipient-code-actions > .btn {
  flex: 1;
  min-width: 0;
}
.recipient-code-back-short {
  display: none;
}
@media (max-width: 480px) {
  .recipient-flow-steps li { font-size: 12px; }
  .recipient-flow-actions > .btn { flex-basis: 100%; }
  .recipient-code-back-full { display: none; }
  .recipient-code-back-short { display: inline; }
}

.recipient-camera {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #d8e4e8;
  border-radius: 16px;
  color: #073e4c;
  background: #fff;
  overflow: auto;
}
.recipient-camera::backdrop {
  background: rgba(8, 30, 42, .7);
}
.recipient-camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.recipient-camera video,
.recipient-camera canvas {
  display: block;
  width: 100%;
  max-height: 62vh;
  max-height: 62dvh;
  object-fit: contain;
  border-radius: 10px;
  background: #073e4c;
}
.recipient-photo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #526b77;
}
.recipient-photo-steps li { padding-bottom: 4px; }
.recipient-photo-steps [aria-current="step"] {
  border-bottom: 2px solid #006f63;
  color: #075c50;
  font-weight: 700;
}
.recipient-camera-live {
  position: relative;
  width: min(100%, calc(62vh * var(--camera-aspect, 1)));
  width: min(100%, calc(62dvh * var(--camera-aspect, 1)));
  margin: 0 auto;
}
.recipient-camera-guide { position: absolute; inset: 0; pointer-events: none; }
.recipient-camera-live video.is-mirrored { transform: scaleX(-1); }
.recipient-camera-face,
.recipient-camera-document {
  position: absolute;
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  border: 2px dashed #fff;
  box-shadow: 0 0 0 1px #102c38, inset 0 0 0 1px #102c38;
  color: #fff;
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 700;
  text-shadow: 0 1px 4px #000, 0 0 3px #000;
  transform: translate(-50%, -50%);
}
.recipient-camera-face {
  left: 50%;
  top: 45%;
  width: min(51%, calc(54% / var(--camera-aspect, 1)));
  aspect-ratio: 4 / 5;
  border-radius: 50%;
}
.recipient-camera-guide.with-document .recipient-camera-face {
  left: 32%;
  width: min(46%, calc(54% / var(--camera-aspect, 1)));
}
.recipient-camera-guide.is-aligned .recipient-camera-face { border-color: #66efbb; }
.recipient-camera-document {
  display: none;
  left: 73%;
  top: 62%;
  width: 33%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}
.recipient-camera-guide.with-document .recipient-camera-document { display: grid; }
.recipient-auto-captured {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #ddf4ec;
  color: #075c50;
  font-weight: 700;
}
.recipient-auto-captured span { margin-right: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .recipient-auto-captured:not([hidden]) { animation: recipient-capture-in .4s ease-out; }
  .recipient-auto-captured:not([hidden]) + canvas { animation: recipient-capture-flash .35s ease-out; }
}
@keyframes recipient-capture-in {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes recipient-capture-flash {
  from { filter: brightness(1.65); }
  to { filter: brightness(1); }
}
.recipient-sign-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin: 0 0 4px;
  color: #526b77;
  font-size: 12px;
}
.recipient-sign-progress > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; }
.recipient-sign-progress strong { color: #075c50; }
.recipient-sign-progress progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 5px;
  background: #dbe6eb;
  color: #008577;
  overflow: hidden;
}
.recipient-sign-progress progress::-webkit-progress-bar { background: #dbe6eb; }
.recipient-sign-progress progress::-webkit-progress-value { background: #008577; border-radius: 5px; }
.recipient-sign-progress progress::-moz-progress-bar { background: #008577; border-radius: 5px; }
.recipient-upload-item {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #d8e4e8;
  border-radius: 10px;
}
.recipient-upload-item [data-photo-saved] { margin-top: 8px; }
.recipient-upload-item [data-photo-inputs] { margin-top: 8px; }
.recipient-upload-item img {
  display: block;
  width: 100%;
  max-height: 220px;
  margin: 8px 0 0;
  border-radius: 8px;
  background: #f2f6f7;
  object-fit: contain;
}
.recipient-upload-success {
  display: block;
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e4f5ee;
  color: #075c50;
  font-weight: 700;
}
.recipient-upload-success span { margin-right: 4px; }
.recipient-upload-link.btn {
  margin: 4px 0 0;
  padding: 8px 0;
  color: #075c50;
  text-decoration: underline;
}
.recipient-upload-item a + .recipient-upload-link { margin-left: 14px; }
.recipient-photo-steps .is-complete::before { content: '✓ '; color: #006f63; }
