@font-face {
  font-family: "Seal Black Han v1";
  src: url("assets/seal-fonts/v1/BlackHanSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Seal Gowun Batang v1";
  src: url("assets/seal-fonts/v1/GowunBatang-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Seal Dokdo v1";
  src: url("assets/seal-fonts/v1/Dokdo-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Seal Gowun Dodum v1";
  src: url("assets/seal-fonts/v1/GowunDodum-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Seal Chosun Gungseo v2";
  src: url("assets/seal-fonts/v2/ChosunGs.TTF") format("truetype");
}

.seal-view { min-height: 10px; margin: 8px 0; }
.contract-seal {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80px;
  min-height: 58px;
  padding: 3px;
  border: 2px solid #982b36;
  border-radius: 7px;
  color: #982b36;
  font: 700 .75rem/1.15 system-ui, sans-serif;
  overflow-wrap: anywhere;
  text-align: center;
}
.signed-ink { display: block; max-width: 94pt; height: 25pt; object-fit: contain; }
.seal-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-block: 6px; }
.seal-options[hidden] { display: none; }
.seal-options button { display: grid; place-items: center; }
.employee-mark { display: inline-block; color: #982b36; border: 1px solid #982b36; padding: 1px 4px; }
.seal-oval { border-radius: 48%; }
.seal-round { border-radius: 50%; aspect-ratio: 1; min-width: 22px; text-align: center; }
.seal-square { border-radius: 2px; }
.seal-vertical { border-radius: 3px; writing-mode: vertical-rl; }
.employee-inline-ink { display: inline-block; height: 14pt; vertical-align: middle; }
.employee-section-canvas { width: 100%; height: 130px; background: white; border: 1px solid #64746a; touch-action: none; }
.original-signature-row .contract-seal { width: 62pt; min-height: 27pt; font-size: 7pt; }
.contract-seal.owner-name-seal {
  --seal-diameter: 86px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--seal-diameter);
  height: var(--seal-diameter);
  min-height: 0;
  border-radius: 50%;
  font-size: calc(var(--seal-diameter) * var(--seal-name-scale, .21));
  font-weight: 400;
  line-height: 1.07;
}
.owner-name-seal > span { max-width: 72%; overflow-wrap: anywhere; }
.owner-font-oval { font-family: "Seal Black Han v1", "Seal Gowun Dodum v1", sans-serif; }
.owner-font-round { font-family: "Seal Gowun Batang v1", serif; }
.owner-font-square { font-family: "Seal Dokdo v1", "Seal Gowun Batang v1", serif; }
.owner-name-seal-v2.owner-font-square { font-family: "Seal Chosun Gungseo v2", "Seal Gowun Batang v1", serif; }
.owner-font-vertical { font-family: "Seal Gowun Dodum v1", sans-serif; }
.owner-name-seal-v2 .seal-name-grid, .owner-name-seal-v2 .seal-name-stack {
  display: grid;
  justify-items: center;
  line-height: .98;
}
.owner-name-seal-v2 .seal-name-grid { grid-template-columns: repeat(2, 1em); }
.owner-name-seal-v2 .seal-name-stack { grid-template-columns: 1em; }
.original-signature-row .contract-seal.owner-name-seal { --seal-diameter: 47pt; }
.original-signature-row.signed-row { align-items: center; }
.signature-list { padding-inline-start: 20px; }
.signature-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.signature-share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 8px; margin-block: 10px; }
.signature-share-row button { min-height: 44px; min-width: 44px; }
.signature-share-row p { grid-column: 1 / -1; margin: 0; }
.signature-share-row p:empty { display: none; }
#employee-correction { width: 100%; resize: vertical; }
#employee-document { overflow: auto; }
#employee-document.original-measuring { display: block; position: fixed; inset-inline-start: -10000px; visibility: hidden; }
#employee-document:not(.original-measuring) .original-contract-page { zoom: var(--employee-zoom, 1); }
#employee-zoom { position: sticky; top: 0; z-index: 1; padding: 4px; background: var(--surface, #fff); }
#employee-zoom[hidden], .employee-print-placeholder { display: none; }
.employee-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 44px;
  max-width: 100%;
  padding: 2px 6px;
  border: 2px solid #a52637;
  border-radius: 4px;
  background: #fff;
  color: #831c2a;
  font: inherit;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.employee-slot:focus-visible { outline: 2px solid #183fb5; outline-offset: 2px; }
#employee-document .original-privacy-field .employee-slot { padding-inline: 10px; font-size: 11pt; font-weight: 700; }
#employee-workspace button { touch-action: manipulation; }
#employee-field-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 24px));
  max-height: 88dvh;
  overflow: auto;
  padding: 16px;
  border: 1px solid #64746a;
  border-radius: 8px;
  color: #16211b;
  background: #fff;
}
#employee-field-dialog::backdrop { background: rgb(0 0 0 / .52); }
#employee-field-dialog h2 { margin-top: 0; }
#employee-field-dialog button { min-height: 44px; }
#employee-field-dialog input, #employee-field-dialog select { font-size: 16px; }
#employee-field-dialog [aria-pressed="true"], #employee-zoom [aria-pressed="true"] { outline: 2px solid #183fb5; outline-offset: -2px; }
#employee-field-error { color: #831c2a; }
#employee-next-field { display: none; }
@media screen and (max-width: 600px) {
  #employee-workspace :is(input, textarea, #employee-actions button, #employee-verify button, #employee-zoom button),
  #employee-field-dialog :is(input, select) {
    min-height: 44px;
    font-size: 1rem;
  }
  #employee-workspace :is(#employee-submit, #employee-completed button) { width: 100%; }
  #employee-completed button + button { margin-top: 8px; }
  #employee-zoom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid #aebaae;
    border-radius: 8px;
  }
  #employee-zoom[hidden] { display: none; }
  #employee-zoom [aria-pressed="true"] { background: #28503a; color: #fff; }
  #employee-next-field:not([hidden]) { display: block; grid-column: 1 / -1; }
  #employee-field-dialog label { font-size: .9375rem; line-height: 1.4; }
  #employee-field-dialog .actions { display: flex; flex-wrap: wrap; gap: 8px; }
  #employee-field-dialog .actions > button { flex: 1 1 auto; }
}
@media print {
  #store-signing, #employee-verify, #employee-summary, #employee-actions, #employee-status,
  #employee-zoom, #employee-field-dialog, #employee-document .employee-slot { display: none; }
  .employee-print-placeholder { display: inline; }
  #employee-document:not(.original-measuring) .original-contract-page { zoom: 1; }
  #employee-workspace.wrap { margin: 0; padding: 0; max-width: none; }
  #employee-document { overflow: visible; }
  #employee-workspace:not(.employee-signed) #employee-document { display: none; }
}
