/* The signature editor is an illustration, with three restrained depth planes. */
.review.theme-v4 .ni-section:has(+ .ns-section) {
  background:
    linear-gradient(
      to bottom,
      #0b0e2800 calc(100% - 120px),
      #0b0e28),
    radial-gradient(
      ellipse at 72% 73%,
      #35347750,
      transparent 52%),
    #0b0e28;
}
.review.theme-v4 .ns-section {
  --ns-night: #0b0e28;
  container-type: inline-size;
  container-name: signatures;
  --ns-lavender: #a69bff;
  --ns-violet: #6551f5;
  color: #f6f4ff;
  background:
    linear-gradient(
      to bottom,
      #0b0e2800 calc(100% - 110px),
      #0b0e28),
    radial-gradient(
      ellipse at 50% 82%,
      #343d8c45,
      transparent 63%),
    var(--ns-night);
  padding-block: 56px 44px;
}
.review.theme-v4 .section.ns-section > .wrap {
  inline-size: min(1200px, calc(100% - 112px));
  padding-block-end: 0;
  border: 0;
}
.ns-section .ns-copy {
  text-align: center;
  margin-block-end: 32px;
}
.ns-section .ns-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: #b8afff;
  font-size: 13px;
  letter-spacing: .15em;
  line-height: 1.6;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.ns-section .ns-kicker::before,
.ns-section .ns-kicker::after {
  content: "";
  inline-size: 46px;
  block-size: 1px;
  background: #8f81ed;
  flex: none;
}
.review.theme-v4 .ns-section h2 {
  font-family: var(--title);
  font-size: clamp(42px, 4.25vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
  max-inline-size: 1100px;
  margin: 0 auto;
  text-wrap: balance;
}
.ns-section h2 > span {
  display: block;
}
.ns-section .ns-accent {
  color: var(--ns-lavender);
}
.ns-section .ns-lead {
  color: #bdb6f4;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.5;
  margin: 16px 0 0;
}
.ns-section .ns-scene {
  --ns-arrive-offset: 12px;
  --ns-arrive-tilt: 1.8deg;
  --ns-arrive-roll: -.12deg;
  margin: 0;
  perspective: 2200px;
}
.ns-section .ns-window {
  position: relative;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  padding: 6px;
  border: 1px solid #8179c599;
  border-radius: 24px;
  background:
    linear-gradient(
      140deg,
      #333578,
      #191c54);
  box-shadow:
    0 26px 55px -30px #000b,
    0 5px 14px #0004,
    inset 0 1px 0 #c9c7ff52;
  transform: none;
  transform-origin: 50% 55%;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}
.ns-section .ns-sidebar {
  padding: 19px 10px 28px;
  border-radius: 18px 0 0 18px;
  color: #d5d2f0;
  background:
    linear-gradient(
      130deg,
      #15182a,
      #101326);
}
.ns-section .brand {
  gap: 12px;
  padding-inline: 5px;
  margin-block-end: 28px;
  color: #f7f5ff;
}
.ns-section .brand img {
  inline-size: 30px;
  block-size: 30px;
}
.ns-section .brand > span {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .22em;
}
.ns-section .ns-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
}
.ns-section .ns-sidebar li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 11px;
  border-radius: 5px;
}
.ns-section .ns-sidebar li.is-selected {
  color: #fff;
  background:
    linear-gradient(
      90deg,
      #343188,
      #21225d);
  box-shadow: inset 3px 0 var(--ns-violet);
}
.ns-section .icon {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
}
.ns-section .ns-app {
  min-inline-size: 0;
  color: #17164c;
  background: #f7f8ff;
  border-radius: 0 18px 18px 0;
}
.ns-section .ns-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 25px;
  border-block-end: 1px solid #e4e4f3;
  font-size: 14px;
  color: #625a9e;
}
.ns-section .ns-breadcrumb > span:first-child {
  font-size: 12px;
  letter-spacing: .2em;
}
.ns-section .ns-breadcrumb .icon {
  inline-size: 12px;
  block-size: 12px;
}
.ns-section .ns-breadcrumb strong {
  font-weight: 550;
  color: #5141c3;
}
.ns-section .ns-editor-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 21px 24px 15px;
}
.ns-section .ns-editor-header > .icon {
  color: var(--ns-violet);
  margin-block-start: 3px;
}
.ns-section .ns-editor-header h3 {
  font: 600 17px/1.4 var(--body);
  color: #17164c;
  margin: 0;
}
.ns-section .ns-editor-header p {
  font-size: 14px;
  color: #655e94;
  margin: 2px 0 0;
}
.ns-section .ns-close {
  margin-inline-start: auto;
  padding: 3px;
  border: 1px solid #d9d4ff;
  border-radius: 5px;
  color: var(--ns-violet);
  flex: none;
}
.ns-section .ns-close .icon {
  inline-size: 15px;
  block-size: 15px;
  display: block;
}
.ns-section .ns-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  margin-inline: 18px;
  border: 1px solid #e2e3f3;
  border-radius: 9px;
  background: #fafaff;
}
.ns-section .ns-canvas {
  min-inline-size: 0;
  padding: 10px 17px 0;
  background:
    linear-gradient(
      135deg,
      #f6f6ff,
      #eceffd60);
  border-radius: 9px 0 0 9px;
}
.ns-section .ns-sheet {
  position: relative;
  padding: 39px 40px 24px;
  background: #fff;
  border: 1px solid #e9e9f4;
  box-shadow: 0 2px 14px #28249b0e;
}
.ns-section .ns-document-title {
  color: #1b194b;
  font: 500 24px/1.25 var(--title);
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 33px;
  text-wrap: balance;
}
.ns-section .ns-lines {
  display: grid;
  gap: 10px;
  margin-block-end: 34px;
}
.ns-section .ns-lines i {
  block-size: 6px;
  border-radius: 4px;
  background: #e1e3f4;
}
.ns-section .ns-lines i:first-child {
  inline-size: 39%;
}
.ns-section .ns-lines i:nth-child(3) {
  inline-size: 86%;
}
.ns-section .ns-lines i:nth-child(4) {
  inline-size: 45%;
  margin-block-end: 9px;
}
.ns-section .ns-lines i:last-child {
  inline-size: 90%;
}
.ns-section .ns-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.ns-section .ns-field {
  min-inline-size: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}
.ns-section .ns-field-label {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 9px;
  color: #342c74;
}
.ns-section .ns-signature-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 84px;
  padding: 15px 10px;
  border: 1px dashed #9687f0;
  background: #f9f8ff;
  color: #6f62b1;
  font-size: 14px;
  text-align: center;
}
.ns-section .ns-signature-area > .icon {
  inline-size: 19px;
  block-size: 19px;
}
.ns-section .ns-handles {
  position: absolute;
  inset: -3px;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 3px 3px,
      #fff 1.5px,
      #9687f0 1.5px,
      #9687f0 2.5px,
      transparent 3px) top left,
    radial-gradient(
      circle at calc(100% - 3px) 3px,
      #fff 1.5px,
      #9687f0 1.5px,
      #9687f0 2.5px,
      transparent 3px) top right,
    radial-gradient(
      circle at 3px calc(100% - 3px),
      #fff 1.5px,
      #9687f0 1.5px,
      #9687f0 2.5px,
      transparent 3px) bottom left,
    radial-gradient(
      circle at calc(100% - 3px) calc(100% - 3px),
      #fff 1.5px,
      #9687f0 1.5px,
      #9687f0 2.5px,
      transparent 3px) bottom right;
  background-repeat: no-repeat;
  background-size: 7px 7px;
}
.ns-section .ns-page-mark {
  inline-size: 24%;
  block-size: 5px;
  border-radius: 4px;
  background: #e1e3f4;
  margin-block-start: 33px;
  margin-inline-start: auto;
}
.ns-section .ns-tools {
  min-inline-size: 0;
  padding: 12px;
  border-inline-start: 1px solid #e2e3f3;
}
.ns-section .ns-signer,
.ns-section .ns-tool-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px;
  margin-block-end: 6px;
  border: 1px solid #e0e0ee;
  border-radius: 5px;
  color: #292843;
  background: #ffffff70;
}
.ns-section .ns-signer > i {
  inline-size: 11px;
  block-size: 11px;
  background: #ef737b;
  border-radius: 50%;
  flex: none;
}
.ns-section .ns-plus {
  margin-inline-start: auto;
  font-size: 20px;
  line-height: 1;
}
.ns-section .ns-field-types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ns-section .ns-field-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 5px 10px;
  border: 1px solid #e1e1ee;
  border-radius: 4px;
  font-size: 14px;
  color: #302e47;
  text-align: center;
  flex: 1 0 calc(33.333% - 4px);
  min-inline-size: min-content;
  overflow-wrap: normal;
}
.ns-section .ns-field-type:last-child {
  flex-grow: 0;
}
.ns-section .ns-field-type [data-msg] {
  overflow-wrap: normal;
}
.ns-section .ns-grip {
  position: absolute;
  inset-inline-start: 5px;
  inset-block-start: 17px;
  inline-size: 5px;
  block-size: 13px;
  background:
    radial-gradient(
      circle,
      #a5a3b8 1px,
      transparent 1px) 0 0 / 3px 4px;
}
.ns-section .ns-editor-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-block-start: 1px solid #e6e5f1;
  margin-block-start: 7px;
}
.ns-section .ns-certification {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5f56a3;
  font-size: 14px;
}
.ns-section .ns-certification .icon {
  inline-size: 23px;
  block-size: 23px;
}
.ns-section .ns-done {
  display: inline-block;
  background: #5c49ec;
  color: #fff;
  border-radius: 5px;
  padding: 10px 18px;
  font-size: 14px;
}
.ns-section figcaption {
  margin-block-start: 22px;
  text-align: end;
  font-size: 14px;
  color: #9a99c7;
}
.ns-section [data-signatures-state=playing] .ns-window {
  animation: ns-window-arrive 3s cubic-bezier(.22, .61, .36, 1) both;
}
.ns-section [data-signatures-state=playing] .ns-sheet {
  animation: ns-sheet-arrive .7s ease-out both;
}
.ns-section [data-signatures-state=playing] .ns-tools {
  animation: ns-tools-arrive .7s ease-out both;
}
.ns-section [data-signatures-state=playing] [data-signature-role=client] .ns-signature-area {
  animation: ns-field-place .9s ease-in-out .6s;
}
.ns-section [data-signatures-state=playing] [data-signature-role=agency] .ns-signature-area {
  animation: ns-field-place .9s ease-in-out 1.3s;
}
@keyframes ns-window-arrive {
  0% {
    transform: translateY(var(--ns-arrive-offset)) rotateX(var(--ns-arrive-tilt)) rotateZ(var(--ns-arrive-roll));
  }
  24%, 100% {
    transform: none;
  }
}
@keyframes ns-sheet-arrive {
  from {
    transform: translateY(4px);
  }
  to {
    transform: none;
  }
}
@keyframes ns-tools-arrive {
  from {
    transform: translateY(2px);
  }
  to {
    transform: none;
  }
}
@keyframes ns-field-place {
  0%, 100% {
    background: #f9f8ff;
    border-color: #9687f0;
    box-shadow: 0 0 0 0 #6551f500;
  }
  45% {
    background: #eeebff;
    border-color: #5c44f0;
    box-shadow: 0 0 0 3px #6551f52e;
  }
}
@container signatures (max-width: 1150px) {
  .ns-section .ns-window {
    grid-template-columns: 151px minmax(0, 1fr);
  }
  .ns-section .ns-sidebar {
    padding-inline: 6px;
  }
  .ns-section .brand {
    gap: 8px;
  }
  .ns-section .brand > span {
    font-size: 14px;
    letter-spacing: .15em;
  }
  .ns-section .ns-sidebar li {
    gap: 9px;
    padding-inline: 8px;
    font-size: 14px;
  }
  .ns-section .ns-workspace {
    grid-template-columns: minmax(0, 1fr) 212px;
    margin-inline: 12px;
  }
  .ns-section .ns-sheet {
    padding: 32px 24px 22px;
  }
  .ns-section .ns-fields {
    gap: 22px;
  }
  .ns-section .ns-tools {
    padding: 10px 8px;
  }
  .ns-section .ns-grip {
    display: none;
  }
}
@container signatures (max-width: 900px) {
  .review.theme-v4 .section.ns-section > .wrap {
    inline-size: calc(100% - 64px);
  }
  .ns-section .ns-window {
    grid-template-columns: minmax(0, 1fr);
    padding: 5px;
    border-radius: 18px;
  }
  .ns-section .ns-sidebar {
    display: none;
  }
  .ns-section .ns-app {
    border-radius: 12px;
  }
  .ns-section .ns-workspace {
    grid-template-columns: minmax(0, 1fr) 202px;
  }
  .ns-section .ns-breadcrumb {
    padding: 13px 20px;
  }
  .ns-section .ns-sheet {
    padding: 30px 25px 22px;
  }
  .ns-section .ns-fields {
    gap: 24px;
  }
  .ns-section .ns-field-label {
    font-size: 15px;
  }
  .ns-section .ns-editor-header {
    padding-inline: 20px;
  }
}
@container signatures (max-width: 650px) {
  .review.theme-v4 .section.ns-section > .wrap {
    inline-size: calc(100% - 36px);
  }
  .ns-section .ns-copy {
    margin-block-end: 28px;
  }
  .ns-section .ns-kicker {
    font-size: 12px;
    letter-spacing: .12em;
    gap: 12px;
    margin-block-end: 19px;
  }
  .ns-section .ns-kicker::before,
  .ns-section .ns-kicker::after {
    inline-size: 18px;
  }
  .review.theme-v4 .ns-section h2 {
    font-size: clamp(34px, 8.8vw, 40px);
    line-height: 1.13;
    letter-spacing: -.03em;
  }
  .ns-section .ns-lead {
    font-size: 19px;
    margin-block-start: 16px;
  }
  .ns-section .ns-scene {
    --ns-arrive-offset: 7px;
    --ns-arrive-tilt: 0deg;
    --ns-arrive-roll: 0deg;
    perspective: none;
  }
  .ns-section .ns-window {
    padding: 4px;
    transform: none;
    border-radius: 14px;
  }
  .ns-section .ns-breadcrumb {
    padding: 13px 14px;
    gap: 7px;
    font-size: 14px;
  }
  .ns-section .ns-breadcrumb > span:first-child,
  .ns-section .ns-breadcrumb > .icon:first-of-type {
    display: none;
  }
  .ns-section .ns-breadcrumb strong {
    flex-basis: 100%;
  }
  .ns-section .ns-breadcrumb > .icon {
    display: none;
  }
  .ns-section .ns-editor-header {
    gap: 9px;
    padding: 17px 14px 16px;
  }
  .ns-section .ns-close {
    display: none;
  }
  .ns-section .ns-editor-header h3 {
    font-size: 17px;
  }
  .ns-section .ns-editor-header p {
    font-size: 14px;
    line-height: 1.5;
  }
  .ns-section .ns-workspace {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 8px;
  }
  .ns-section .ns-canvas {
    padding: 7px;
    border-radius: 9px 9px 0 0;
  }
  .ns-section .ns-sheet {
    padding: 26px 18px 20px;
  }
  .ns-section .ns-document-title {
    font-size: 21px;
    margin-block-end: 25px;
  }
  .ns-section .ns-lines {
    gap: 8px;
    margin-block-end: 24px;
  }
  .ns-section .ns-lines i {
    block-size: 5px;
  }
  .ns-section .ns-lines i:nth-child(n+5) {
    display: none;
  }
  .ns-section .ns-lines i:nth-child(4) {
    margin-block-end: 0;
  }
  .ns-section .ns-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .ns-section .ns-signature-area {
    min-block-size: 75px;
    padding: 12px;
  }
  .ns-section .ns-page-mark {
    margin-block-start: 24px;
  }
  .ns-section .ns-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-inline-start: 0;
    border-block-start: 1px solid #e2e3f3;
    padding: 12px;
  }
  .ns-section .ns-signer,
  .ns-section .ns-tool-row {
    padding: 8px;
    margin: 0;
    font-size: 14px;
  }
  .ns-section .ns-plus,
  .ns-section .ns-date-row {
    display: none;
  }
  .ns-section .ns-field-types {
    grid-column: 1 / -1;
    gap: 4px;
  }
  .ns-section .ns-field-type {
    flex: 1 0 calc(50% - 4px);
    flex-direction: row;
    padding: 10px 6px;
    font-size: 14px;
  }
  .ns-section .ns-editor-footer {
    padding: 12px;
    gap: 10px;
  }
  .ns-section .ns-certification {
    gap: 6px;
    flex: 1;
  }
  .ns-section .ns-done {
    padding: 9px 13px;
  }
  .ns-section figcaption {
    margin-block-start: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-section [data-signatures-state] .ns-window,
  .ns-section [data-signatures-state] .ns-sheet,
  .ns-section [data-signatures-state] .ns-tools,
  .ns-section [data-signatures-state] .ns-signature-area {
    animation: none;
  }
}
@media (max-width: 900px) {
  .review.theme-v4 .ns-section {
    padding-block: 60px 40px;
  }
}
@media (max-width: 650px) {
  .review.theme-v4 .ns-section {
    padding-block: 48px 32px;
  }
}
