/* Centered document preparation, separate from the PDF editor layout. */
.esign-home {
  width: min(100%, 960px);
  margin-inline: auto;
  padding-block: 12px 28px;
}
.esign-home-header {
  text-align: center;
  margin-bottom: 30px;
}
.esign-home-header .eyebrow {
  margin: 0 0 10px;
}
.esign-home-header h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}
.esign-home-header > p:not(.eyebrow) {
  margin: 12px 0 0;
  font-size: 20px;
  color: #587064;
}
.esign-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: #526b5c;
}
.esign-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
}
.esign-steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #dce1d5;
  border-radius: 50%;
  background: #fffefa;
  color: #8a743e;
  font-size: 13px;
}
.esign-home .esign-upload {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
  padding: clamp(24px, 4vw, 40px);
  border-top: 3px solid #a99a6b;
  box-shadow: 0 10px 32px #253e3010;
}
.esign-home .esign-upload > h2 {
  text-align: center;
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.2;
}
.esign-home .esign-upload form {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 20px;
}
.esign-home .document-upload > .upload-label {
  display: none;
}
.esign-home .document-upload-zone {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 13px;
  min-height: 210px;
  padding: 26px;
}
.esign-home .upload-copy {
  flex: initial;
  width: 100%;
}
.esign-home .upload-copy strong {
  font-size: 19px;
}
.esign-home .upload-copy small {
  font-size: 15px;
}
.esign-home .upload-emblem {
  width: 44px;
  height: 48px;
  border-radius: 11px;
}
.esign-home .upload-browse {
  padding: 9px 18px;
  font-size: 14px;
  width: auto;
}
.esign-home .upload-announcement:empty {
  display: none;
}
.esign-import-option {
  border-bottom: 1px solid #e1e5dc;
}
.esign-import-option > summary {
  padding: 0 0 16px;
  cursor: pointer;
  color: #315a45;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  list-style-position: inside;
}
.esign-import-option > div {
  padding-bottom: 16px;
}
.esign-import-option .fine {
  margin: 12px 0 0;
  font-size: 15px;
}
.esign-home .esign-upload .button.primary {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}
.esign-upload-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #657465;
  font-size: 14px;
  text-align: center;
}
.esign-file-help summary {
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}
.esign-file-help summary::-webkit-details-marker {
  display: none;
}
.esign-file-help p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}
.esign-home > .esign-feedback {
  max-width: 720px;
  margin-inline: auto;
}
.esign-home > .esign-feedback:empty {
  display: none;
}
.esign-home .saved-signature-card {
  max-width: 720px;
  margin: 0 auto 24px;
}
.esign-document-library {
  border-top: 1px solid #dde2d7;
  padding-top: 28px;
}
.esign-docs-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 18px;
}
.esign-docs-heading h2 {
  margin: 0;
  font-size: 24px;
}
.esign-empty-documents {
  text-align: center;
  color: #657465;
  font-size: 16px;
  margin: 0;
}
@media (max-width: 540px) {
  .esign-home {
    padding-top: 4px;
  }
  .esign-home-header {
    margin-bottom: 24px;
  }
  .esign-steps {
    gap: 10px 14px;
    margin-top: 20px;
  }
  .esign-steps li {
    font-size: 14px;
    gap: 6px;
  }
  .esign-steps b {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .esign-home .esign-upload {
    padding: 24px 20px;
  }
  .esign-home .esign-upload > h2 {
    font-size: 25px;
    margin-bottom: 24px;
  }
  .esign-home .document-upload-zone {
    min-height: 200px;
    padding: 24px 16px;
  }
  .esign-home .upload-copy strong {
    font-size: 18px;
  }
  .esign-home .upload-copy small {
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  #app #esign.esign-editor[data-editor-step="2"] .esign-step-panel > h2,
  #app #esign.esign-editor[data-editor-step="2"] .esign-step-hint {
    display: none;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-tool-section-heading {
    margin: 10px 0 8px;
    font-size: 13px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-placement-hint {
    margin: 8px 0;
    font-size: 12px;
  }
  #app
    #esign.esign-editor[data-editor-step="2"]
    .esign-placement-hint:not(:has(+ .text-button)) {
    line-height: 1.4;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-step-navigation {
    margin-top: 12px;
    padding-top: 12px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-save-row {
    margin-top: 8px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-recipient-option {
    min-height: 39px;
    padding: 8px 10px;
  }
}
/* A single active preparation step keeps the PDF editor focused. */
.esign-editor {
  max-width: 1320px;
  margin-inline: auto;
}
.esign-editor .page-heading {
  margin-bottom: 18px;
  padding-bottom: 18px;
}
.esign-editor .page-heading h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.esign-editor .page-heading .eyebrow {
  font-size: 12px;
}
.esign-editor .page-heading .muted {
  font-size: 16px;
  margin-top: 8px;
}
.esign-editor .esign-document-bar {
  gap: 12px;
  margin-bottom: 22px;
  font-size: 15px;
}
#esign-editor-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: #e9ede4;
  border: 1px solid #dce2d5;
  border-radius: 14px;
  margin: 0 0 24px;
}
#esign-editor-steps .esign-step-button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #5e7062;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  font-size: 16px;
  min-width: 0;
  min-height: 50px;
}
#esign-editor-steps .esign-step-button b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid #c9d3c2;
  border-radius: 50%;
  font-size: 13px;
}
#esign-editor-steps .esign-step-button.selected {
  background: #fffefa;
  color: #204a37;
  box-shadow: 0 2px 8px #213c2d0d;
}
#esign-editor-steps .esign-step-button.selected b {
  background: #215b44;
  border-color: #215b44;
  color: white;
}
#esign-editor-steps .esign-step-button:not(.selected):hover {
  background: #f4f6f0;
  color: #284e38;
}
.esign-step-panel {
  padding: 26px;
}
.esign-step-panel > .eyebrow {
  font-size: 12px;
  margin: 0 0 12px;
}
.esign-step-panel > h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.esign-step-panel .esign-step-hint {
  font-size: 16px;
  line-height: 1.55;
  color: #617464;
  margin: 0 0 22px;
}
.esign-step-panel > label {
  margin: 16px 0;
}
.esign-step-panel .esign-recipients:empty {
  display: none;
}
.esign-step-panel .esign-person {
  padding: 12px;
  margin: 12px 0;
  border-radius: 10px;
}
.esign-step-panel .esign-person strong {
  font-size: 16px;
}
.esign-step-panel .esign-person small {
  font-size: 13px;
}
.esign-step-panel form[data-esign-form="recipient"] {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.esign-step-panel .button.full {
  margin-top: 10px;
}
.esign-step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3e7dd;
}
.esign-step-navigation .primary {
  margin-left: auto;
}
.esign-step-navigation:empty {
  display: none;
}
.esign-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.esign-save-row .text-button {
  padding-inline: 0;
  font-size: 14px;
}
.esign-save-row > span {
  color: #6b796a;
  font-size: 13px;
}
.esign-document-options {
  margin: 16px 4px;
  color: #6c7768;
  font-size: 14px;
}
.esign-document-options > summary {
  cursor: pointer;
}
.esign-placement-hint {
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #607460;
}
.esign-field-advanced,
.esign-placed-fields {
  margin-top: 16px;
  font-size: 14px;
}
.esign-field-advanced summary,
.esign-placed-fields summary {
  cursor: pointer;
  font-weight: 650;
  color: #4f6854;
}
.esign-field-advanced .esign-position-grid {
  margin-top: 14px;
}
.esign-review-summary {
  display: grid;
  gap: 10px;
}
.esign-review-summary > div {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 12px;
  background: #f1f4ec;
  border: 1px solid #e1e6d9;
  border-radius: 10px;
}
.esign-review-summary strong,
.esign-review-summary small {
  display: block;
  overflow-wrap: anywhere;
}
.esign-review-summary small {
  font-size: 13px;
  margin-top: 4px;
  color: #6b7866;
}
.esign-review-summary > div > span:first-child {
  min-width: 0;
}
.esign-review-check {
  font-size: 12px;
  font-weight: 700;
  color: #27623f;
  flex-shrink: 0;
}
.esign-review-check.needed {
  color: #9b5836;
}
.esign-review-count {
  margin: 16px 0;
  font-size: 15px;
  font-weight: 600;
}
.esign-review-warning {
  font-size: 14px;
  background: #fff6e6;
  border-radius: 8px;
  padding: 12px;
  color: #805d2e;
}
.esign-step-panel .esign-review-consent {
  font-size: 15px;
  line-height: 1.5;
  align-items: start;
}
.esign-audit > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.esign-audit > summary::-webkit-details-marker {
  display: none;
}
.esign-audit > summary > span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7767;
}
.esign-audit-content {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .esign-editor .esign-layout {
    display: flex;
    flex-direction: column;
  }
  .esign-editor .esign-sidebar {
    order: -1;
    width: 100%;
    display: block;
  }
  .esign-editor .esign-viewer-panel {
    width: 100%;
  }
  .esign-editor[data-editor-step="1"] .esign-viewer-panel {
    display: none;
  }
  .esign-editor .esign-step-panel {
    padding: 22px;
  }
  .esign-editor .esign-sidebar .esign-document-options {
    margin-bottom: 4px;
  }
}
@media (max-width: 540px) {
  #esign-editor-steps {
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
  }
  #esign-editor-steps .esign-step-button {
    flex-direction: column;
    font-size: 13px;
    gap: 6px;
    padding: 10px 4px;
  }
  #esign-editor-steps .esign-step-button b {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }
  .esign-editor .esign-document-bar {
    gap: 8px;
  }
  .esign-editor .esign-document-bar .button {
    font-size: 13px;
    padding: 10px;
  }
  .esign-review-summary > div {
    align-items: start;
  }
  .esign-review-check {
    font-size: 11px;
  }
}
#app #esign.esign-editor .page-heading {
  margin-bottom: 12px;
  padding-bottom: 16px;
  gap: 16px;
}
#app #esign.esign-editor .page-heading h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -1px;
}
#app #esign.esign-editor .page-heading .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}
#app #esign.esign-editor .page-heading .muted {
  font-size: 15px;
  margin-top: 8px;
}
#app #esign.esign-editor .page-heading > .button {
  min-height: 38px;
  font-size: 14px;
  padding: 9px 14px;
}
#esign.esign-editor .esign-feedback:not(:empty):not(.error) {
  padding: 8px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.esign-field-pickers {
  display: grid;
  gap: 16px;
  margin: 20px 0 14px;
}
.esign-field-pickers > label {
  margin: 0;
  min-width: 0;
}
.esign-field-pickers select {
  min-width: 0;
}
.esign-selected-details {
  margin-top: 16px;
  border: 1px solid #dce4d3;
  border-radius: 10px;
  background: #f3f6ee;
}
.esign-selected-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.esign-selected-details > summary::-webkit-details-marker {
  display: none;
}
.esign-selected-details > summary strong {
  overflow-wrap: anywhere;
}
.esign-selected-details > summary span {
  flex-shrink: 0;
  font-size: 12px;
  color: #64805c;
}
.esign-selected-details .esign-selected {
  margin: 0;
  padding-top: 0;
  border: 0;
}
@media (max-width: 900px) {
  .esign-editor .esign-field-pickers {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 18px;
  }
  .esign-editor .esign-step-panel > .eyebrow {
    display: none;
  }
  .esign-editor .esign-step-panel .esign-step-hint {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .esign-editor .esign-step-navigation {
    margin-top: 18px;
    padding-top: 16px;
  }
}
@media (max-width: 540px) {
  #app #esign.esign-editor .page-heading .eyebrow {
    display: none;
  }
  #app #esign.esign-editor .page-heading .button {
    min-height: 34px;
    font-size: 13px;
    padding: 8px 12px;
  }
  .esign-editor .esign-field-pickers > label {
    font-size: 14px;
  }
}
@font-face {
  font-family: "IW Signature";
  src: url("/vendor/signature.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
.library-folders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.library-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d9e2d0;
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  font: inherit;
  color: #47623a;
  cursor: pointer;
}
.library-folder strong {
  font-size: 28px;
  color: #245039;
}
.library-folder.selected {
  background: #edf3e4;
  border-color: #9cb581;
  box-shadow: inset 0 -3px #8da86e;
}
.library-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.library-form-grid input[type="file"] {
  max-width: 100%;
  font-size: 14px;
}
.library-form-grid > .fine {
  grid-column: 1/-1;
  margin: 0;
}
.library-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin: 26px 0;
}
.library-document {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 28px;
}
.library-doc-mark {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 76px;
  background: #eef2e8;
  border: 1px solid #dae3d1;
  border-radius: 8px;
  color: #5a7449;
}
.library-doc-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.library-doc-info h3 {
  margin: 12px 0 8px;
}
.library-doc-info p {
  margin: 8px 0;
}
.library-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #74826c;
}
.library-doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 330px;
}
.library-doc-actions .button {
  font-size: 14px;
}
.library-doc-actions .text-button {
  min-width: 110px;
}
.esign-confirm label {
  margin: 18px 0;
}
@media (max-width: 1000px) {
  .library-document {
    flex-wrap: wrap;
  }
  .library-doc-actions {
    max-width: none;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .library-folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .library-toolbar,
  .library-form-grid {
    grid-template-columns: 1fr;
  }
  .library-folder {
    padding: 16px;
    gap: 8px;
    font-size: 13px;
  }
  .library-folder strong {
    font-size: 24px;
  }
  .library-document {
    padding: 22px;
    gap: 16px;
  }
  .library-doc-mark {
    width: 44px;
    height: 56px;
  }
  .library-doc-actions .button {
    flex: 1;
  }
  .library-form-grid input {
    min-width: 0;
  }
}
.esign-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: linear-gradient(110deg, #edf0e6, #f7f3e8);
  border: 1px solid #dbe3d3;
  border-radius: 16px;
  padding: 34px;
  margin-bottom: 30px;
}
.esign-intro h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 8px 0 14px;
}
.esign-intro p {
  max-width: 600px;
  margin: 0;
}
.esign-intro ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.esign-intro li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}
.esign-intro b {
  border: 1px solid #d1dac4;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a7f51;
  font-size: 13px;
}
.esign-upload form {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.esign-upload[hidden] {
  display: none;
}
.esign-upload input[type="file"] {
  max-width: 100%;
  font-size: 15px;
}
.esign-or {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #7b866f;
  font-size: 13px;
}
.esign-or:before,
.esign-or:after {
  content: "";
  height: 1px;
  background: #e1e6d8;
  flex: 1;
}
.esign-feedback {
  padding: 0;
  margin: 0 0 20px;
  color: #24543c;
  overflow-wrap: anywhere;
}
.esign-feedback:not(:empty) {
  padding: 14px 18px;
  border: 1px solid #d1dfc9;
  border-radius: 9px;
  background: #f0f5e9;
}
.esign-feedback.error {
  color: #8d3826;
  background: #fdf1ec;
  border-color: #e7c6ba;
}
.esign-document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px 30px;
}
.esign-document-card h3 {
  margin: 8px 0;
}
.esign-document-card p {
  margin: 6px 0;
}
.esign-document-card > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.esign-document-card > .button {
  flex-shrink: 0;
}
.esign-document-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.esign-document-bar > .badge {
  font-size: 14px;
  padding: 8px 12px;
}
.esign-document-bar > a:first-of-type {
  margin-left: auto;
}
.esign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.esign-viewer-panel {
  border: 1px solid #d7ded0;
  border-radius: 14px;
  background: #e9ece4;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.esign-page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid #dae1d5;
  padding: 14px;
}
.esign-page-controls label {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 0;
  gap: 10px;
}
.esign-page-controls select {
  width: 74px;
  min-height: 40px;
  padding: 8px;
}
.esign-page-controls .button {
  min-height: 40px;
  padding: 8px 15px;
}
.esign-canvas-wrap {
  padding: 16px;
  max-height: 78vh;
  overflow: auto;
  min-height: 250px;
}
.esign-page-stage {
  position: relative;
  background: #fff;
  box-shadow: 0 4px 20px #18322018;
  margin: 0 auto;
  max-width: 100%;
  isolation: isolate;
}
.esign-page-stage canvas {
  display: block;
  max-width: 100%;
}
.esign-field-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.esign-field-layer.placing {
  cursor: crosshair;
}
.esign-field {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  border: 1px dashed var(--field-border, #7c9a69);
  background: var(--field-bg, #eef4e5bb);
  color: #234331;
  font-size: clamp(8px, 1vw, 13px);
  line-height: 1.1;
  padding: 2px 4px;
  overflow: hidden;
  user-select: none;
}
.esign-field > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.esign-field.editable {
  cursor: move;
  touch-action: none;
  overflow: visible;
}
.esign-field.editable > span {
  max-width: 100%;
}
#app #esign .esign-field-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  min-width: 23px;
  min-height: 23px;
  padding: 0;
  margin: 0;
  border: 1px solid #c7d7bf;
  border-radius: 50%;
  background: #fffef9;
  color: #38513b;
  font:
    600 17px/1 Arial,
    sans-serif;
  box-shadow: 0 2px 5px #1d3c2920;
  cursor: pointer;
  touch-action: manipulation;
}
#app #esign .esign-field-delete:hover {
  background: #f6e9e3;
  border-color: #c89380;
  color: #903e29;
}
#app #esign .esign-field-delete:focus-visible {
  outline: 2px solid #28583d;
  outline-offset: 2px;
}
.esign-field.editable:focus-within {
  z-index: 4;
}
.esign-field.selected {
  border: 2px solid #1f6848;
  box-shadow: 0 0 0 2px #fff9;
}
.esign-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-right: 3px solid #1d5c3f;
  border-bottom: 3px solid #1d5c3f;
  cursor: nwse-resize;
}
.recipient-0 {
  --field-border: #749359;
  --field-bg: #ecf4decb;
}
.recipient-1 {
  --field-border: #688baa;
  --field-bg: #e5eef8cb;
}
.recipient-2 {
  --field-border: #aa8a59;
  --field-bg: #fff0d8cb;
}
.recipient-3 {
  --field-border: #9476a8;
  --field-bg: #f0e7f8cb;
}
.recipient-4 {
  --field-border: #a76e7a;
  --field-bg: #f8e7edcb;
}
.recipient-5 {
  --field-border: #6a9995;
  --field-bg: #e1f2efcb;
}
.esign-field.signature-value {
  font-family: "IW Signature", Georgia, serif;
  font-style: italic;
  font-size: clamp(10px, 1.2vw, 22px);
}
.esign-viewer-note {
  padding: 16px;
  margin: 0;
}
.esign-sidebar {
  min-width: 0;
}
.esign-sidebar .panel {
  padding: 24px;
}
.esign-sidebar h2 {
  font-size: 21px;
  margin-bottom: 18px;
}
.esign-sidebar label {
  margin: 16px 0;
}
.esign-sidebar label.check {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  gap: 11px;
}
.esign-sidebar .check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  min-width: 18px;
  margin-top: 4px;
  accent-color: #215b3f;
}
.esign-sidebar .full {
  margin-top: 12px;
}
.esign-sidebar form {
  margin: 16px 0;
}
.esign-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-left: 3px solid var(--field-border);
  background: var(--field-bg);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.esign-person > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.esign-person small {
  display: block;
}
.esign-person .button {
  padding: 6px;
  min-width: 30px;
}
.esign-selected {
  background: #f2f5ed;
  border-radius: 8px;
  padding: 16px;
  margin-top: 18px;
}
.esign-position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.esign-position-grid input {
  width: 100%;
  min-width: 0;
  padding: 8px;
}
.esign-position-grid label {
  font-size: 13px;
  margin: 5px 0;
}
.esign-field-list {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 20px;
}
.esign-field-row {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  border-bottom: 1px solid #e2e8dc;
  padding: 12px;
  font: inherit;
  color: #294b37;
  cursor: pointer;
}
.esign-field-row small {
  display: block;
}
.esign-field-row.active {
  background: #eef4e7;
}
.esign-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e2e6dc;
  padding: 14px 0;
}
.esign-progress strong {
  flex: 1;
}
.esign-progress small {
  flex-basis: 100%;
}
.esign-signature-preview {
  font-family: "IW Signature", Georgia, serif;
  font-style: italic;
  min-height: 90px;
  padding: 22px 12px;
  font-size: 28px;
  background: #fafbf7;
  border-bottom: 1px solid #c7d2c0;
  overflow-wrap: anywhere;
  color: #244a35;
}
.esign-audit {
  margin-top: 30px;
}
.esign-audit code {
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.esign-audit-row {
  border-top: 1px solid #e2e6dd;
  padding: 18px 0;
}
.esign-audit-row > span {
  float: right;
  font-size: 13px;
  color: #6e7a65;
}
.esign-audit-row p {
  margin: 8px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.esign-confirm {
  padding: 30px;
  max-width: 540px;
  width: calc(100% - 32px);
  border: 1px solid #d3ddcc;
  border-radius: 16px;
}
.esign-confirm li {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.esign-confirm::backdrop {
  background: #11251c66;
}
@media (max-width: 1250px) {
  .esign-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .esign-sidebar .panel {
    padding: 20px;
  }
  .esign-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .esign-intro ol {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .esign-intro li {
    gap: 10px;
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .esign-layout {
    grid-template-columns: 1fr;
  }
  .esign-viewer-panel {
    position: static;
  }
  .esign-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .esign-sidebar .panel {
    margin-bottom: 0;
  }
  .esign-sidebar .panel:last-child {
    grid-column: 1/-1;
  }
  .esign-document-bar > a:first-of-type {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .esign-intro {
    padding: 24px;
  }
  .esign-intro h2 {
    font-size: 26px;
  }
  .esign-intro ol {
    flex-direction: column;
  }
  .esign-document-card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
  .esign-sidebar {
    display: block;
  }
  .esign-sidebar .panel {
    margin-bottom: 20px;
  }
  .esign-document-bar {
    gap: 10px;
  }
  .esign-document-bar .button {
    width: 100%;
    font-size: 14px;
  }
  .esign-page-controls {
    gap: 10px;
    padding: 10px;
  }
  .esign-page-controls > span {
    font-size: 13px;
  }
  .esign-audit-row > span {
    float: none;
    display: block;
    margin-top: 5px;
  }
  .esign-position-grid {
    grid-template-columns: 1fr 1fr;
  }
  .esign-field {
    font-size: 9px;
  }
  .esign-confirm .actions {
    flex-wrap: wrap;
  }
  .esign-layout {
    gap: 18px;
  }
}
/* Document selection and saved-deal search */
.upload-label {
  display: block;
  font-weight: 650;
  margin-bottom: 10px;
}
.document-upload-zone {
  flex-direction: row;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  min-height: 120px;
  border: 1px dashed #a7b9a3;
  border-radius: 14px;
  background: linear-gradient(120deg, #f4f7ef, #fff);
  cursor: pointer;
  margin: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.document-upload-zone:hover,
.document-upload-zone:focus-within {
  border-color: #176149;
  box-shadow: 0 0 0 3px #17614918;
}
.document-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.upload-emblem {
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #d2dfcc;
  background: #e9f0e3;
  color: #276047;
}
.upload-emblem svg {
  width: 27px;
  height: 27px;
}
.upload-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.upload-copy strong {
  color: #284c38;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.upload-copy small {
  color: #637762;
  font-size: 13px;
}
.upload-browse {
  border-radius: 8px;
  background: #205b44;
  color: white;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.has-file .document-upload-zone {
  border-style: solid;
  border-color: #96b28c;
}
.upload-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.library-form-grid .document-upload {
  grid-column: 1/-1;
}
.saved-property-picker {
  position: relative;
  min-width: 0;
}
.saved-property-picker > label {
  margin: 0 0 10px;
}
.saved-property-picker > .fine {
  margin: 9px 0 0;
  font-size: 13px;
}
.saved-property-options {
  position: absolute;
  top: 94px;
  left: 0;
  right: 0;
  z-index: 8;
  border: 1px solid #cbdac5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px #203c2826;
  padding: 6px;
  max-height: 280px;
  overflow: auto;
}
.saved-property-options[hidden] {
  display: none;
}
.saved-property-options [role="option"] {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #284e39;
}
.saved-property-options [role="option"]:hover,
.saved-property-options [aria-selected="true"] {
  background: #eef4e7;
}
.saved-property-options strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.saved-property-options small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #72846a;
}
.property-result-icon {
  font-size: 26px;
}
.property-empty {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #6a7963;
}
@media (max-width: 650px) {
  .document-upload-zone {
    padding: 20px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .upload-copy {
    flex-basis: calc(100% - 65px);
  }
  .upload-browse {
    text-align: center;
    width: 100%;
  }
  .saved-property-options {
    top: 94px;
  }
}
.signing-workflow {
  border-top: 3px solid #ab9464;
}
.signing-meter {
  height: 5px;
  border-radius: 5px;
  background: #e7ecdf;
  margin: 12px 0 20px;
  overflow: hidden;
}
.signing-meter span {
  display: block;
  height: 100%;
  background: #447857;
  transition: width 0.25s;
}
#signing-field-progress {
  color: #526c45;
  font-size: 14px;
  font-weight: 650;
}
.signing-field-step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e3e8dc;
  background: transparent;
  padding: 14px 0;
  color: #39533c;
  font: inherit;
  cursor: pointer;
}
.signing-field-step > span:nth-child(2) {
  flex: 1;
}
.signing-field-step > span:last-child {
  font-size: 12px;
  font-weight: 650;
}
.signing-field-step small {
  display: block;
}
.signing-field-step.done > span:first-child {
  color: #2b7850;
}
#esign-finish {
  border-top: 1px solid #dce4d2;
  padding-top: 24px;
  margin-top: 24px;
}
.esign-field.signable {
  cursor: pointer;
  min-height: 28px;
  border: 1.5px solid #b49346;
  background: #fff3c9e8;
  color: #604f22;
  border-radius: 3px;
  font-family: inherit;
  font-style: normal;
  box-shadow: 0 1px 3px #44371915;
}
.esign-field.signable:hover,
.esign-field.signable:focus-visible {
  background: #ffe9a4;
  box-shadow: 0 0 0 3px #b4934633;
  outline: none;
}
.esign-field.field-complete {
  border-color: #4a8a62;
  background: #eef7ecd9;
  color: #245236;
}
.esign-field.field-complete.signature-value {
  font-family: "IW Signature", serif;
  font-style: italic;
}
.esign-field-dialog {
  width: min(500px, calc(100vw - 28px));
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
}
.field-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.field-dialog-heading h2 {
  margin: 8px 0 0;
}
.esign-field-dialog .actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.esign-field-dialog .field-error {
  color: #963e29;
}
@media (max-width: 650px) {
  .esign-field-dialog {
    padding: 22px;
  }
  .esign-field-dialog .actions .button {
    flex: 1;
  }
}
.signature-modes {
  display: flex;
  gap: 5px;
  padding: 4px;
  margin: 20px 0 16px;
  border: 1px solid #dce3d1;
  border-radius: 10px;
  background: #eef2e7;
}
.signature-modes .button {
  flex: 1;
  min-height: 40px;
  padding: 10px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.signature-modes .button.active {
  background: #fffef9;
  color: #285b3e;
  border-color: #cedbc1;
  box-shadow: 0 2px 5px #28442c10;
}
.signature-pad-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #cddbc3;
  border-radius: 9px;
  overflow: hidden;
}
#signature-pad {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  touch-action: none;
  cursor: crosshair;
}
.signature-pad-guide {
  position: absolute;
  bottom: 22%;
  left: 8%;
  right: 8%;
  border-bottom: 1px solid #dce3d4;
  color: #a0ae92;
  font-size: 13px;
  pointer-events: none;
  padding-bottom: 8px;
}
.signature-pad-wrap.has-ink .signature-pad-guide {
  opacity: 0.25;
}
.signature-pad-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.signature-pad-actions > span {
  margin-right: auto;
}
.signature-pad-actions .button {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 12px;
}
.save-signature-choice {
  margin: 20px 0 12px;
}
.saved-signature-preview {
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 100px;
  background: #f6f8f0;
  border-radius: 8px;
  color: #193e2c;
  overflow: hidden;
}
.signature-drawn-art {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 90px;
  color: #193e2c;
}
.signature-typed-art {
  font-family: "IW Signature", serif;
  font-style: italic;
  font-size: 28px;
  overflow-wrap: anywhere;
}
.esign-field > span:has(.signature-drawn-art) {
  width: 100%;
  height: 100%;
}
.esign-field .signature-drawn-art {
  width: 100%;
  height: 100%;
}
.saved-signature-card {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.saved-signature-card > div:first-child {
  flex: 1;
  min-width: 220px;
}
.saved-signature-card .saved-signature-preview {
  width: 250px;
}
@media (max-width: 600px) {
  .signature-pad-actions {
    flex-wrap: wrap;
  }
  .signature-pad-actions > span {
    width: 100%;
  }
  .saved-signature-card .saved-signature-preview {
    width: 100%;
  }
}
/* Documents library: quiet surfaces, clear folders, focused PDF upload. */
#esign.documents-page {
  max-width: 1320px;
  margin: 0 auto;
}
.documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
}
#esign .documents-header h1 {
  margin: 0 0 10px;
}
#esign .documents-header p {
  margin: 0;
  font-size: 20px;
}
.documents-header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.documents-page .library-folders {
  gap: 14px;
  margin: 0 0 32px;
}
.documents-page .library-folder {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe1d9;
  border-radius: 14px;
  background: #fffefa;
  padding: 20px;
  text-align: left;
  color: #53675a;
  box-shadow: 0 2px 4px #263c3203;
  font-weight: 650;
  min-height: 86px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
#app #esign .library-folder strong {
  font-size: 27px;
  font-weight: 720;
  line-height: 1;
  color: #244c3b;
}
.documents-page .library-folder-icon {
  display: grid;
  place-items: center;
  color: #6c846d;
}
.documents-page .library-folder:hover {
  background: #edf2eb;
  border-color: #b5c6b2;
}
.documents-page .library-folder.selected {
  background: #244d3c;
  color: #fffdf3;
  border-color: #244d3c;
  box-shadow: none;
}
.documents-page .library-folder.selected strong,
.documents-page .library-folder.selected .library-folder-icon {
  color: #fffdf3;
}
.library-collection {
  border: 1px solid #dce1d7;
  background: #fbfcf8;
  border-radius: 20px;
  padding: 26px;
}
.library-collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
#esign .library-collection-heading h2 {
  font-size: 24px;
  margin: 0;
}
#library-result-count {
  color: #69796e;
  font-size: 14px;
}
.documents-page .library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  margin: 22px 0 24px;
}
.library-toolbar > label {
  margin: 0;
}
#esign .library-search-box {
  display: flex;
  flex-direction: row;
  height: 50px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d3ddd1;
  border-radius: 10px;
  background: #fff;
  padding: 0 15px;
  color: #68806b;
  min-width: 0;
}
#app #esign .library-search-box input {
  margin: 0;
  padding: 13px 0;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
#esign .library-search-box:focus-within {
  outline: 2px solid #8ba781;
  outline-offset: 2px;
  border-color: #8ba781;
}
.library-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#esign .library-property-filter select {
  margin: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  font-size: 15px;
}
.library-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
#esign .library-document {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 20px;
  padding: 22px;
  background: #fffefa;
  border: 1px solid #dbe2d6;
  border-radius: 15px;
  box-shadow: 0 3px 8px #263c3204;
}
.library-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.documents-page .library-doc-mark {
  width: 44px;
  height: 58px;
  border-radius: 8px;
  background: #f1f4ed;
  border: 1px solid #dde5d7;
  color: #426e51;
  flex-direction: column;
  gap: 2px;
}
.library-doc-mark b {
  font-size: 9px;
  letter-spacing: 1px;
}
.library-card-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.library-category {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  border-radius: 6px;
  padding: 7px 9px;
  border: 1px solid #e1e5dc;
  background: #f1f4ee;
  color: #4c6555;
}
.library-category.category-template {
  color: #476376;
  background: #eef3f7;
  border-color: #dde7ed;
}
.library-category.category-unsigned {
  color: #816b37;
  background: #f8f3e5;
  border-color: #ece2c8;
}
.library-category.category-signed {
  color: #276448;
  background: #eaf3e9;
  border-color: #d7e8d6;
}
#app #esign .library-card-controls .text-button {
  font-size: 14px;
  padding: 5px 2px;
  min-height: 28px;
  color: #657369;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.library-kind {
  color: #657468;
  font-size: 14px;
}
#app #esign .library-doc-info h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0 14px;
  letter-spacing: -0.45px;
  overflow-wrap: anywhere;
}
#app #esign .library-property-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.library-property-line svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.library-signing-status {
  display: block;
  font-size: 12px;
  color: #66816b;
  margin-top: 10px;
}
.library-card-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e8ebe3;
}
#app #esign .library-card-bottom > small {
  font-size: 14px;
  color: #647266;
  display: block;
  margin-bottom: 14px;
}
.documents-page .library-doc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-width: none;
  width: 100%;
}
.documents-page .library-doc-actions.single-action {
  grid-template-columns: 1fr;
}
#app #esign .library-doc-actions .button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  padding: 10px 8px;
  min-height: 42px;
  text-align: center;
}
.library-empty {
  text-align: center;
  padding: 44px 20px 50px;
}
.library-empty-art {
  position: relative;
  width: 90px;
  height: 96px;
  margin: 0 auto 22px;
}
.library-empty-art i {
  position: absolute;
  inset: 8px 0;
  background: #edf1e7;
  border: 1px solid #e1e7d9;
  transform: rotate(-10deg);
  border-radius: 14px;
}
.library-empty-art > span {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  background: #fffefa;
  border: 1px solid #d3dfcb;
  color: #739269;
  border-radius: 14px;
  box-shadow: 0 5px 15px #2a49320b;
}
#app #esign .library-empty h3 {
  margin: 0 0 12px;
  font-size: 25px;
}
#app #esign .library-empty p {
  font-size: 17px;
  max-width: 410px;
  margin: 0 auto 22px;
}
.library-empty > small {
  display: block;
  font-size: 12px;
  color: #80907d;
  margin-top: 16px;
}
.library-privacy {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 4px 10px;
  font-size: 13px;
  color: #5e705e;
}
.library-privacy > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.library-privacy > span svg {
  flex-shrink: 0;
}
.library-privacy details {
  text-align: right;
  max-width: 400px;
}
.library-privacy summary {
  cursor: pointer;
  color: #536c59;
  white-space: nowrap;
}
#app #esign .library-privacy p {
  font-size: 13px;
}
#esign .library-upload-dialog {
  width: min(700px, calc(100% - 32px));
  max-width: 700px;
  max-height: calc(100dvh - 40px);
  border: 1px solid #d1daca;
  border-radius: 20px;
  padding: 0;
  color: #2a4537;
  background: #fffefa;
  overflow: auto;
  box-shadow: 0 24px 100px #1e382e38;
}
.library-upload-dialog::backdrop {
  background: #20382d75;
  backdrop-filter: blur(4px);
}
.library-upload-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 20px;
  background: #fffefa;
  border-bottom: 1px solid #e5e9df;
}
#app #esign .library-upload-heading h2 {
  font-size: 27px;
  line-height: 1.2;
  margin: 0 0 8px;
}
#app #esign .library-upload-heading p {
  font-size: 14px;
  margin: 0;
  color: #61725f;
}
#app #esign .library-close {
  border: 0;
  box-shadow: none;
  background: #f0f3eb;
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
}
.library-upload-body {
  display: grid;
  gap: 22px;
  padding: 24px 28px;
}
.library-upload-body > label {
  margin: 0;
}
.library-upload-body .upload-label {
  display: none;
}
.library-upload-body .document-upload-zone {
  min-height: 136px;
}
.library-upload-body .upload-emblem {
  border: 0;
  background: #e9f0e4;
}
.library-upload-body .upload-announcement:empty {
  display: none;
}
.library-upload-body .upload-announcement {
  margin: 0;
}
.library-metadata-grid,
.library-property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.library-metadata-grid > label,
.library-property-grid > label {
  margin: 0;
}
.library-property-details {
  border: 1px solid #dce4d5;
  background: #fafbf7;
  border-radius: 12px;
  padding: 15px 17px;
}
.library-property-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  font-size: 15px;
}
.library-property-details > summary::-webkit-details-marker {
  display: none;
}
.library-property-details > summary > span {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: #7a8872;
}
.library-property-details[open] > summary > svg:last-child {
  transform: rotate(180deg);
}
.library-property-grid {
  padding-top: 20px;
}
.library-property-grid > .fine {
  grid-column: 1/-1;
  margin: 0;
}
#app #esign .library-property-grid p {
  font-size: 13px;
  line-height: 1.5;
}
#app #esign .library-convert-link {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #7b8675;
}
.library-upload-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fffefa;
  padding: 18px 28px;
  border-top: 1px solid #e5e9df;
}
.library-upload-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.library-upload-status:empty {
  display: none;
}
.library-upload-footer .library-upload-status {
  margin: 0 0 12px;
  font-size: 14px;
}
@media (max-width: 1400px) {
  .library-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .documents-page .library-folder {
    gap: 9px;
    padding: 18px 15px;
    font-size: 14px;
  }
}
@media (max-width: 800px) {
  .documents-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  .documents-header-actions {
    width: 100%;
  }
  .documents-header-actions .button {
    flex: 1;
    justify-content: center;
  }
  .documents-page .library-folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .documents-page .library-toolbar {
    grid-template-columns: 1fr;
  }
  .library-privacy {
    flex-direction: column;
  }
  .library-privacy details {
    text-align: left;
  }
}
@media (max-width: 600px) {
  #esign.documents-page {
    margin-top: 0;
  }
  #esign .documents-header p {
    font-size: 17px;
  }
  .documents-header-actions {
    gap: 9px;
  }
  #app #esign .documents-header-actions .button {
    font-size: 14px;
    padding: 12px 10px;
  }
  .documents-page .library-folder {
    padding: 15px;
    grid-template-columns: 24px 1fr;
    gap: 10px;
  }
  .documents-page .library-folder > span:not(.library-folder-icon) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  #app #esign .library-folder strong {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 25px;
  }
  .documents-page .library-folder-icon {
    justify-self: start;
  }
  .library-collection {
    padding: 19px 14px;
    border-radius: 15px;
  }
  .library-card-grid {
    grid-template-columns: 1fr;
  }
  #esign .library-document {
    padding: 20px;
  }
  .library-collection-heading {
    gap: 8px;
  }
  #esign .library-collection-heading h2 {
    font-size: 21px;
  }
  #library-result-count {
    font-size: 12px;
  }
  .library-empty {
    padding: 28px 8px;
  }
  #app #esign .library-empty h3 {
    font-size: 23px;
  }
  #app #esign .library-empty p {
    font-size: 16px;
  }
  #esign .library-upload-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }
  .library-upload-heading {
    padding: 20px 18px 18px;
  }
  #app #esign .library-upload-heading h2 {
    font-size: 24px;
  }
  .library-upload-body {
    padding: 20px 18px;
    gap: 20px;
  }
  .library-upload-body .document-upload-zone {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .library-upload-body .upload-copy {
    flex-basis: calc(100% - 70px);
  }
  .library-upload-body .upload-browse {
    width: 100%;
    text-align: center;
  }
  .library-metadata-grid,
  .library-property-grid {
    grid-template-columns: 1fr;
  }
  .library-upload-footer {
    padding: 15px 18px;
  }
  .library-upload-footer > div > * {
    flex: 1;
    justify-content: center;
  }
}
#app #esign .library-folder.selected strong {
  color: #fffdf3;
}
.esign-editor[data-editor-step="1"] .esign-viewer-panel,
.esign-editor[data-editor-step="1"] .esign-audit {
  display: none;
}
.esign-editor[data-editor-step="1"] .esign-layout {
  display: block;
  width: min(100%, 760px);
  margin: 28px auto;
}
.esign-editor[data-editor-step="1"] .esign-sidebar {
  display: block;
}
.esign-editor[data-editor-step="1"] #esign-editor-steps {
  max-width: 760px;
  margin-inline: auto;
}
#esign .esign-recipient-card {
  border: 1px solid #d9e2d0;
  border-radius: 13px;
  padding: 18px;
  margin-bottom: 16px;
  background: #f7f9f2;
}
.esign-recipient-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.esign-recipient-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
#esign .esign-recipient-inputs label {
  font-size: 14px;
  margin: 12px 0 0;
}
#esign .esign-add-recipient {
  border-top: 1px solid #e0e5d9;
  padding-top: 24px;
  margin-top: 24px;
}
#esign .esign-add-recipient h3 {
  margin: 0;
  font-size: 19px;
}
.esign-editor[data-editor-step="2"] .esign-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}
.esign-editor[data-editor-step="2"] .esign-sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 14px;
}
.esign-editor[data-editor-step="2"] .esign-viewer-panel {
  grid-column: 2;
  grid-row: 1;
  position: static;
}
#esign .esign-field-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
#esign .esign-field-tool {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 12px;
  font-size: 14px;
  white-space: normal;
  text-align: left;
  background: #f7f9f2;
  border: 1px solid #cfdbc6;
  border-radius: 10px;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#esign .esign-field-tool:active {
  cursor: grabbing;
}
#esign .esign-field-tool.selected {
  border-color: #28583d;
  background: #e8f1df;
  color: #234d39;
}
.esign-tool-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #356449;
}
.esign-drag-preview {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  border: 2px solid #28583d;
  border-radius: 8px;
  padding: 10px 24px;
  background: #ecf4e4ef;
  color: #234d39;
  box-shadow: 0 8px 24px #18342530;
  font: 600 16px sans-serif;
}
#esign-stage.esign-drop-active {
  outline: 3px dashed #558247;
  outline-offset: 4px;
}
/* Document preparation: a quiet tool rail, generous page and page navigator. */
#esign .esign-page-rail {
  display: none;
}
#esign .esign-assignee-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
#app #esign.esign-editor[data-editor-step="2"] .esign-step-panel {
  padding: 22px 18px;
  border-radius: 15px;
  box-shadow: 0 4px 20px #263d2d06;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-step-panel > .eyebrow {
  display: none;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-step-panel h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-step-hint {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
#esign .esign-tool-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: 22px 0 10px;
  color: #526b58;
}
#esign .esign-tool-section-heading .button {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 13px;
}
#esign .esign-recipient-switcher {
  display: grid;
  gap: 7px;
}
#esign .esign-recipient-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid transparent;
  background: #f7f8f2;
  border-radius: 9px;
  box-shadow: none;
}
#esign .esign-recipient-option > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#esign .esign-recipient-option.selected {
  background: #eaf1e3;
  border-color: #8aa47b;
  color: #254f38;
}
.esign-recipient-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #587d50;
  flex: none;
}
.esign-recipient-dot.recipient-1 {
  background: #b38745;
}
.esign-recipient-dot.recipient-2 {
  background: #59888c;
}
.esign-recipient-dot.recipient-3 {
  background: #9b778c;
}
.esign-recipient-dot.recipient-4 {
  background: #6975a0;
}
.esign-recipient-dot.recipient-5 {
  background: #ad765b;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-field-palette {
  grid-template-columns: 1fr;
  margin: 0;
  gap: 5px;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-field-tool {
  min-height: 46px;
  font-size: 15px;
  border-color: transparent;
  border-radius: 9px;
  padding: 8px 10px;
  background: transparent;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-field-tool:hover {
  background: #f0f3e9;
  color: #254f38;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-field-tool.selected {
  background: #e8f0df;
  border-color: #90ab7c;
}
#esign .esign-tool-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #edf1e6;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-placement-hint {
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0;
  color: #667861;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-step-navigation {
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-step-navigation .button {
  font-size: 13px;
  padding: 11px 12px;
}
#app #esign.esign-editor[data-editor-step="2"] .esign-save-row {
  margin-top: 14px;
}
#esign .esign-progress {
  flex-wrap: wrap;
  gap: 8px;
}
#esign .esign-progress small {
  flex-basis: 100%;
}
#esign .esign-progress .text-button {
  padding: 4px 0;
  min-height: 30px;
  font-size: 13px;
}
@media (min-width: 901px) {
  #esign.esign-editor[data-editor-step="2"] .esign-layout {
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-canvas-wrap {
    max-height: calc(100dvh - 285px);
    background: #e9ece4;
    padding: 24px;
  }
  #esign.esign-editor[data-editor-step="2"] .esign-sidebar {
    top: 16px;
  }
}
@media (min-width: 901px) {
  #app #esign.esign-editor .page-heading {
    padding: 0;
    margin: 0 0 16px;
    min-height: 0;
    border: 0;
    align-items: center;
  }
  #app #esign.esign-editor .page-heading::after {
    display: none;
  }
  #app #esign.esign-editor .page-heading h1 {
    font-size: 27px;
    margin: 0;
    letter-spacing: -0.5px;
  }
  #app #esign.esign-editor .page-heading .eyebrow,
  #app #esign.esign-editor .page-heading .muted {
    display: none;
  }
  #app #esign.esign-editor .esign-document-bar {
    margin-bottom: 12px;
  }
  #app #esign.esign-editor #esign-editor-steps {
    margin-bottom: 20px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-tool-section-heading {
    font-size: 14px;
    margin: 18px 0 8px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-placement-hint {
    margin: 10px 0;
  }
}
@media (min-width: 1450px) {
  #esign.esign-editor[data-editor-step="2"] .esign-layout {
    grid-template-columns: 246px minmax(0, 1fr) 145px;
  }
  #esign.esign-editor[data-editor-step="2"] .esign-page-rail {
    display: block;
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: 16px;
    padding: 14px 12px;
    background: #fffef9;
    border: 1px solid #dce3d4;
    border-radius: 14px;
  }
  .esign-page-rail > strong {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 14px;
    color: #607359;
  }
  .esign-page-thumbnails {
    display: grid;
    gap: 14px;
    max-height: calc(100dvh - 220px);
    overflow: auto;
    scrollbar-width: thin;
  }
  #esign .esign-thumbnail {
    display: grid;
    gap: 7px;
    padding: 5px;
    background: #f4f5ee;
    border: 1px solid #e2e6da;
    border-radius: 8px;
    color: #607359;
    font-size: 12px;
    cursor: pointer;
  }
  #esign .esign-thumbnail[aria-current="page"] {
    border-color: #537649;
    background: #e9f0df;
    color: #254c35;
    box-shadow: 0 0 0 1px #537649;
  }
  .esign-thumbnail canvas {
    width: 100%;
    height: auto;
    background: white;
    box-shadow: 0 1px 5px #223d2b12;
  }
}
@media (max-width: 900px) {
  #app #esign.esign-editor[data-editor-step="2"] .esign-recipient-switcher {
    display: flex;
    overflow: auto;
    padding-bottom: 3px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-recipient-option {
    width: auto;
    max-width: 230px;
    flex: none;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-field-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-field-tool {
    border-color: #d9e2cf;
    min-height: 54px;
    background: #f8faf4;
    font-size: 13px;
    padding: 8px;
    gap: 7px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-tool-icon {
    width: 25px;
    height: 28px;
  }
  #app #esign.esign-editor[data-editor-step="2"] .esign-step-panel {
    padding: 18px;
  }
}
@media (max-width: 900px) {
  .esign-editor[data-editor-step="2"] .esign-layout {
    display: flex;
    flex-direction: column;
  }
  .esign-editor[data-editor-step="2"] .esign-sidebar {
    position: static;
    order: -1;
    width: 100%;
  }
  #esign .esign-field-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .esign-editor[data-editor-step="2"] .esign-step-panel {
    padding: 20px;
  }
}
@media (max-width: 540px) {
  .esign-recipient-inputs {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  #esign .esign-field-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #esign .esign-field-tool {
    min-height: 50px;
    padding: 10px;
    font-size: 14px;
  }
}

/* Keep recipient names and editor actions inside the tool rail. */
#app #esign .esign-sidebar,
#app #esign .esign-step-panel,
#app #esign .esign-recipient-switcher {
  min-width: 0;
}
#app #esign .esign-recipient-option {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#app #esign .esign-recipient-option > span:last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
#esign .esign-review-summary > div {
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}
#esign .esign-review-summary > div > span:first-child {
  min-width: 0;
  flex: 1 1 160px;
  overflow-wrap: anywhere;
}
#esign .esign-review-summary small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
#esign .esign-editor-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid #dfe5d8;
  margin-top: 22px;
  padding-top: 18px;
}
#esign .esign-draft-status {
  color: #6b796a;
  font-size: 13px;
  text-align: right;
}
#esign .esign-editor-primary .button {
  width: 100%;
  min-width: 0;
  margin: 0;
  justify-content: center;
  box-sizing: border-box;
  white-space: normal;
}
#esign .esign-editor-secondary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
#app #esign .esign-editor-secondary .button {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
  white-space: normal;
}
#app #esign .esign-editor-secondary .esign-save-button {
  border: 1px solid #d6dfcd;
  border-radius: 9px;
  background: #f7f9f2;
}
#esign .esign-review-warning {
  padding: 16px;
  border: 1px solid #e5d5ae;
  border-radius: 12px;
  background: #fcf5e6;
  color: #755425;
}
#esign .esign-missing-signature + .esign-missing-signature {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8d9ba;
}
#esign .esign-missing-signature p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
}
#esign .esign-missing-signature span {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#esign .esign-missing-signature .button {
  font-size: 14px;
  background: #fffdf6;
}
#esign .esign-completion-mail {
  padding: 20px;
}
#esign .esign-completion-mail summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
#esign .esign-completion-mail summary > span {
  display: block;
  margin-top: 8px;
  font-weight: 400;
  font-size: 13px;
}
#esign .esign-completion-mail > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e1e7db;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#esign .esign-completion-mail > p {
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  #app #esign .esign-field-delete {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    top: -12px;
    right: -12px;
  }
}

#app #esign .esign-editor-footer {
  padding: 18px 0 0;
  margin: 22px 0 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
}
#app #esign .esign-editor-footer > div {
  width: 100%;
  min-width: 0;
}
#app #esign .esign-review-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
#app #esign .esign-review-summary > div > span:first-child {
  width: 100%;
}
#app #esign .esign-review-summary .esign-review-check {
  justify-self: start;
}

#esign .library-template-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid #d6dfcc;
  border-radius: 18px;
  background: #fffef9;
  color: #263e31;
  box-sizing: border-box;
}
.library-template-dialog::backdrop {
  background: #102e2573;
  backdrop-filter: blur(4px);
}
.library-template-dialog > header {
  position: relative;
  padding-right: 40px;
}
.library-template-dialog > header > .button {
  position: absolute;
  right: 0;
  top: 0;
}
#esign .library-template-dialog h2 {
  font-size: 26px;
  margin: 0 0 8px;
}
#esign .template-review-notice {
  background: #fbf4e4;
  border: 1px solid #e3d6b4;
  padding: 16px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.65;
}
.template-form-group {
  border: 1px solid #dce4d3;
  border-radius: 11px;
  margin: 14px 0;
}
.template-form-group > summary {
  padding: 17px;
  font-weight: 700;
  cursor: pointer;
}
.template-form-group > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 18px 20px;
}
#esign .template-form-group label {
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
#esign .template-form-group input,
#esign .template-form-group textarea,
#esign .template-form-group select {
  display: block;
  width: 100%;
  margin-top: 7px;
  box-sizing: border-box;
}
.template-form-group label:has(textarea) {
  grid-column: 1/-1;
}
.template-attachments {
  padding: 18px 0;
}
#esign .template-attachments label {
  gap: 14px;
  padding: 12px 0;
  align-items: center;
}
.template-attachments small {
  display: block;
  color: #687763;
}
.template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 0 0;
  border-top: 1px solid #dfe4d8;
}
@media (max-width: 640px) {
  #esign .library-template-dialog {
    width: calc(100vw - 18px);
    padding: 20px 16px;
  }
  .template-form-group > div {
    grid-template-columns: 1fr;
  }
  .template-actions {
    position: sticky;
    bottom: -20px;
    background: #fffef9;
    padding-bottom: 20px;
  }
}
