@font-face {
  font-family: Pretendard;
  src: url(/font.otf) format("opentype");
  font-display: swap;
}
:root {
  font:
    16px/1.6 Pretendard,
    "Apple SD Gothic Neo",
    sans-serif;
  color: #222328;
  background: #f3f4f5;
  --action: #a91f2e;
  --muted: #53575e;
  --line: #d6d7da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--action);
}
.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1120px;
  margin: auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  text-decoration: none;
  font:
    700 23px/1.2 Arial,
    sans-serif;
  letter-spacing: -1px;
  color: #23252b;
}
.brand span {
  display: inline-block;
  border-left: 1px solid var(--line);
  margin-left: 14px;
  padding-left: 14px;
  font:
    500 15px Pretendard,
    sans-serif;
  letter-spacing: 0;
}
nav,
.actions,
.head,
.linkrow,
.tabs,
.pages {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.head {
  justify-content: space-between;
  margin-bottom: 20px;
}
.head h1 {
  margin: 0;
}
main {
  max-width: 1056px;
  padding: 52px 32px 80px;
  margin: auto;
}
h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.035em;
  margin: 0 0 0.75em;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1rem;
}
p {
  margin: 0.4em 0 1em;
}
.meta,
small {
  color: var(--muted);
}
.panel,
.paper,
.login,
.signature {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: clamp(18px, 3.5vw, 38px);
  margin-bottom: 18px;
}
.login {
  max-width: 460px;
  margin: 9vh auto;
}
.login h1 {
  font-size: 1.9rem;
}
.alert {
  color: #8e3026;
  font-size: 0.93rem;
}
.note {
  padding: 12px 16px;
  background: #f1f1f3;
  border-left: 3px solid var(--action);
  margin-bottom: 22px;
}
.error:empty {
  display: none;
}
button,
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
  min-height: 42px;
  background: var(--action);
  color: white;
  text-decoration: none;
  padding: 10px 17px;
  border: 1px solid var(--action);
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover,
.btn:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary,
nav button,
.tabs button[aria-pressed="false"] {
  background: white;
  color: var(--action);
  border-color: var(--line);
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--action);
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.danger {
  color: #872e29;
}
.back {
  margin-bottom: 18px;
}
.pages {
  justify-content: flex-end;
  margin-top: 18px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.92rem;
  font-weight: 600;
}
input:not([type="checkbox"]),
textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #a9bbb4;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  color: #222328;
  background: white;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible,
textarea:focus-visible {
  outline: 3px solid #3978c4;
  outline-offset: 3px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.wide {
  grid-column: 1/-1;
}
.stack {
  display: grid;
  gap: 18px;
}
.list {
  padding: 0;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid #e0e8e4;
  vertical-align: middle;
}
th {
  font-weight: 600;
  color: var(--muted);
  background: #f8faf8;
  white-space: nowrap;
  font-size: 0.88rem;
}
.empty {
  text-align: center;
  padding: 42px 18px;
  color: var(--muted);
}
.pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: #eff2f1;
  white-space: nowrap;
  font-size: 0.87rem;
}
.pill.done {
  color: #155848;
  background: #dceee5;
}
.paper {
  max-width: 820px;
  margin: 18px auto;
  padding: clamp(22px, 5vw, 56px);
  overflow-wrap: anywhere;
}
.paper h2 {
  font:
    600 clamp(2rem, 5vw, 2.7rem)/1.2 Georgia,
    serif;
  color: #24252a;
  margin-bottom: 20px;
}
.paper section {
  margin-top: 24px;
}
.paper h3 {
  margin-bottom: 9px;
}
.paper ol {
  padding-left: 23px;
}
.paper li {
  margin: 0.55em 0;
}
.paper footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cells {
  margin: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.cell {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 6em 1fr;
}
.cell dt,
.cell dd {
  padding: 8px 10px;
  margin: 0;
  white-space: pre-wrap;
}
.cell dt {
  background: #f4f4f6;
  font-weight: 600;
}
.candidate,
.review {
  max-width: 820px;
  margin: auto;
}
.signature .tabs {
  margin-bottom: 12px;
}
.signature canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #a9bbb4;
  border-radius: 6px;
  background: #fafcfb;
  touch-action: none;
}
.signature .agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0;
}
.mailrow {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.mailrow h3 {
  margin: 0.3em 0;
}
[hidden] {
  display: none !important;
}
.status {
  margin-bottom: 18px;
}
@media (max-width: 650px) {
  .bar {
    padding: 14px 16px;
  }
  main {
    padding: 28px 14px 60px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .row {
    display: block;
  }
  .cell + .cell {
    border-top: 1px solid var(--line);
  }
  .cell {
    grid-template-columns: 5.8em 1fr;
  }
  .listtable th:nth-child(2),
  .listtable td:nth-child(2) {
    display: none;
  }
  td,
  th {
    padding: 10px 6px;
    font-size: 0.9rem;
  }
  .login {
    margin-top: 6vh;
  }
  nav button {
    font-size: 0.82rem;
    padding: 7px 9px;
    min-height: 36px;
  }
  .brand span {
    margin-left: 8px;
    padding-left: 8px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #23252b;
}
.brand img {
  display: block;
  width: clamp(5.15rem, 12vw, 7.1rem);
  height: auto;
}
.brand span {
  font:
    500 1.05rem/1 Arial,
    sans-serif;
}
.help {
  color: #85212c;
  text-underline-offset: 0.22em;
}
.kicker {
  font:
    700 0.8rem/1.3 Arial,
    sans-serif;
  letter-spacing: 0.15em;
}
.candidate {
  max-width: 900px;
}
.offer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  background: #23252b;
  border-left: 5px solid #b92332;
  color: #fff;
  padding: clamp(1.6rem, 4vw, 3rem);
}
.offer-head h1 {
  margin: 0.45rem 0;
}
.offer-head p:last-child {
  margin: 0;
  color: #e1e2e4;
}
.offer-head .kicker {
  color: #ffa1aa;
}
.due {
  border-left: 1px solid #73757c;
  padding-left: 2rem;
  display: grid;
  gap: 0.2rem;
}
.due span,
.due button {
  font-size: 0.9rem;
}
.due span {
  color: #d9dadd;
}
.due strong {
  font-size: 1.06rem;
}
.due button {
  justify-self: start;
  background: #fff;
  color: #23252b;
  border: 0;
  margin-top: 0.55rem;
}
.paper {
  border-radius: 2px;
  border-top: 3px solid #b92332;
}
.candidate .paper {
  max-width: none;
}
.paper h2 {
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.paper li {
  line-height: 1.75;
}
.signature {
  border-radius: 2px;
  border-top: 3px solid #b92332;
}
.signature canvas {
  max-width: 640px;
  background: linear-gradient(#d9dade, #d9dade) center 76% / 80% 1px no-repeat
    #fcfcfd;
}
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
button:disabled {
  cursor: default;
}
.receipt {
  max-width: 620px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid #b92332;
  margin: 5vh auto;
  padding: clamp(1.6rem, 5vw, 3.4rem);
}
.receipt .kicker {
  color: #a91f2e;
  margin: 0 0 1rem;
}
.receipt h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}
.result-link {
  display: inline-block;
  margin-top: 0.8rem;
  text-underline-offset: 0.25em;
}
.signature h2:focus {
  outline-offset: 4px;
}
@media (max-width: 650px) {
  .bar {
    flex-wrap: wrap;
  }
  .bar nav {
    flex-wrap: wrap;
  }
  .offer-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .due {
    padding: 0.8rem 0 0;
    border: 0;
    border-top: 1px solid #73757c;
  }
  .submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .signature .tabs button,
  .bar nav button {
    min-height: 44px;
  }
  .signature .agree {
    line-height: 1.65;
  }
}

.ms-login {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 20px 0;
  border: 1px solid #536159;
  border-radius: 5px;
  color: #1b2823;
  font-weight: 650;
  text-decoration: none;
}
.ms-login:hover {
  background: #f4f4f6;
}
.ms-mark {
  width: 17px;
  height: 17px;
  background: conic-gradient(
    #7fba00 0 25%,
    #ffb900 0 50%,
    #00a4ef 0 75%,
    #f25022 0
  );
}
.login summary {
  color: var(--muted);
  cursor: pointer;
}
.login details[open] form {
  margin-top: 1rem;
}

.mail-studio {
  min-width: 0;
}
form .mail-studio {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.effect-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.effect-options legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.effect-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.effect-choice:has(:checked) {
  color: #8c1a2b;
  background: #fcf1f3;
  border-color: #a91f33;
}
.effect-choice input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #a91f33;
}
.effect-options:disabled label {
  cursor: default;
}
.effect-status {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 14px;
}
.preview-toolbar [role="group"] {
  display: inline-flex;
}
.preview-toolbar [data-width] {
  min-height: 42px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}
.preview-toolbar [data-width]:first-child {
  border-radius: 5px 0 0 5px;
}
.preview-toolbar [data-width]:last-child {
  border-radius: 0 5px 5px 0;
  border-left: 0;
}
.preview-toolbar [aria-pressed="true"] {
  color: white;
  background: #303039;
}
.mail-stage {
  margin-top: 10px;
  padding: clamp(6px, 2vw, 20px);
  background: #ececef;
  border: 1px solid var(--line);
}
.mail-frame {
  max-width: 680px;
  background: white;
  margin: auto;
  overflow-wrap: anywhere;
}
.mail-stage.phone .mail-frame {
  max-width: 360px;
}
.preview-envelope {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: #27272d;
}
.preview-envelope p {
  margin: 2px 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.mailbox-art {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
}
@media (max-width: 650px) {
  .mail-stage {
    padding: 0;
  }
  .effect-choice {
    padding: 6px 10px;
  }
}

.send-action {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}
.legacy-mail-art {
  max-width: 100%;
  height: auto;
}
