.sign-exact {
  background: #eff8ff;
  color: #102a56;
  font-family: RobotoLocal, Roboto, Arial, sans-serif;
}

.sign-exact button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.sign-exact .ix-status {
  background: #fff;
}

.sign-toolbar {
  min-height: 57px;
  padding: 0 14px 0 40px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  background: #fff;
  position: relative;
  z-index: 2;
}

.sign-toolbar .sign-back {
  width: 32px;
  height: 32px;
  margin-left: -4px;
  padding: 4px;
  display: grid;
  place-items: center;
}

.sign-toolbar .sign-back svg {
  width: 24px;
  height: 24px;
}

.sign-toolbar h1 {
  min-width: 0;
  margin: 4px 0 0;
  overflow: hidden;
  color: #102a56;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.sign-toolbar .sign-save {
  min-width: 0;
  margin-top: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #1570ef;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.sign-toolbar .sign-save:disabled {
  opacity: .5;
}

.sign-page {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: auto;
  padding: 34px 38px 118px;
  background: #eff8ff;
}

.page-badge {
  position: absolute;
  left: 0;
  top: 28px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 0 16px 16px 0;
  background: #d1e9ff;
  color: #102a56;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.sign-paper {
  width: 100%;
  min-height: 660px;
  margin: 0 auto;
  padding: 48px 42px 34px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.sign-paper h2 {
  margin: 0 0 14px;
  color: #a6abb2;
  font-size: 28px;
  line-height: 34px;
  font-weight: 300;
  letter-spacing: 0;
}

.sign-paper p {
  margin: 0 0 12px;
  color: #102a56;
  font-size: 10px;
  line-height: 12px;
}

.sign-paper .mark {
  background: #fff58d;
}

.sig-ink {
  width: 170px;
  height: 60px;
  margin: 16px 0 0 auto;
  display: block;
}

.sig-ink path {
  fill: none;
  stroke: var(--ink);
  stroke-width: var(--w);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.add-sign {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 108px;
  padding: 16px 20px 24px;
  background: #fff;
  color: #102a56;
  text-align: center;
  z-index: 3;
}

.add-sign p {
  margin: 0;
  color: #102a56;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.empty-add-sign {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1.5px dashed #1573ef !important;
  border-radius: 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  color: #1570ef !important;
  font-family: Inter, RobotoLocal, Roboto, Arial, sans-serif;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.empty-add-sign svg {
  width: 24px;
  height: 24px;
}

.sign-rail {
  height: 72px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  text-align: center;
}

.sign-rail button {
  flex: 0 0 auto;
}

.sign-rail .sign-tile {
  position: relative;
  width: auto !important;
  min-width: 60px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 0 !important;
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1570ef !important;
  font-size: 10px !important;
  line-height: 12px;
  font-weight: 400 !important;
}

.sign-rail .sign-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border: 1.5px dashed #1573ef;
  border-radius: 12px;
}

.sign-rail .sign-tile svg {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  z-index: 1;
}

.sign-rail .sign-tile span {
  position: absolute;
  left: 0;
  top: 64px;
  width: 60px;
  white-space: nowrap;
}

.sign-thumb {
  position: relative;
  width: 72px !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 6px 12px 6px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1570ef !important;
  font-size: 10px !important;
  line-height: 12px;
  font-weight: 400 !important;
}

.sign-thumb::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 60px;
  height: 60px;
  border: 1px solid #d1e9ff;
  border-radius: 8px;
  background: #fff;
}

.sign-thumb svg.sig-ink {
  position: absolute;
  left: 5px;
  bottom: 22px;
  width: 50px;
  height: 24px;
  margin: 0;
  z-index: 1;
}

.sign-thumb span {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 60px;
  z-index: 2;
}

.sign-thumb i {
  position: absolute;
  right: 0;
  top: -6px;
  width: 24px;
  height: 24px;
  z-index: 3;
  border-radius: 50%;
  background: transparent;
  font-style: normal;
  line-height: 0;
}

.sign-thumb i svg {
  width: 24px;
  height: 24px;
}

.sign-thumb.on::before {
  box-shadow: inset 0 0 0 2px #1570ef;
}

.sign-sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, .30);
}

.sign-sheet section {
  width: 100%;
  padding: 16px 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.sign-sheet button {
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 12px 216px 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #102a56;
  font-family: Inter, RobotoLocal, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: left;
}

.sign-sheet svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.scan-sign-demo {
  background: #eff8ff;
}

.scan-sign-page {
  flex: 1;
  min-height: 0;
  display: block;
  padding: 40px 20px 56px;
  background: #eff8ff;
}

.scan-sign-crop {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, .25);
}

.scan-sign-crop svg {
  width: 70%;
  max-width: 236px;
  height: 34%;
}

.scan-sign-crop path {
  fill: none;
  stroke: #1c274c;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scan-sign-crop span {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 4px solid #1570ef;
  background: transparent;
}

.scan-sign-crop span:nth-child(2) {
  left: 24px;
  top: 24px;
}

.scan-sign-crop span:nth-child(3) {
  right: 24px;
  top: 24px;
}

.scan-sign-crop span:nth-child(4) {
  right: 24px;
  bottom: 24px;
}

.scan-sign-crop span:nth-child(5) {
  left: 24px;
  bottom: 24px;
}

.scan-sign-modes {
  min-height: 104px;
  padding: 16px 60px 24px;
  display: flex;
  justify-content: center;
  gap: 60px;
  background: #fff;
}

.scan-sign-modes button {
  min-width: 80px;
  min-height: 56px;
  padding: 8px;
  border-radius: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  background: transparent;
  color: #788697;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.scan-sign-modes button.on {
  color: #1570ef;
  font-weight: 400;
}

.scan-sign-modes svg {
  width: 24px;
  height: 24px;
}

.placed-sig {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed #1570ef;
  background: rgba(255, 255, 255, .68);
}

.placed-sig .sig-ink {
  width: 90%;
  height: 60px;
  margin: 0;
}

.placed-tools {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.placed-tools button {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #fff;
  color: #102a56;
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(16, 42, 86, .18);
}

.draw-page {
  flex: 1;
  overflow: auto;
  padding: 64px 16px 0;
  background: #eff8ff;
  color: #102a56;
}

.draw-pad {
  width: 100%;
  min-height: 430px;
  border: 1.5px dashed #ebeef2 !important;
  border-radius: 16px !important;
  display: grid;
  place-items: center;
  background: #fff !important;
  color: #1c274c;
  font-size: 16px;
}

.draw-pad .sig-ink {
  width: 80%;
  height: 150px;
  margin: 0;
}

.draw-page label,
.draw-page p {
  margin-top: 32px;
  color: #102a56;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.draw-page label {
  display: grid;
  gap: 8px;
}

.draw-page input {
  width: 100%;
  accent-color: #1570ef;
}

.color-pick {
  margin-top: 16px;
  display: flex;
  gap: 18px;
}

.color-pick button {
  width: 40px;
  height: 40px;
  border: 4px solid transparent;
  border-radius: 50%;
  background: var(--c);
}

.color-pick button.on {
  border-color: #1570ef;
  box-shadow: inset 0 0 0 4px #fff;
}
