/* The paid path: application (preapply.html), product (product.html), consultation request (consult.html) and the two card-test
   return pages (payment-test-*.html). The design's layout from handoff v5 E0~E12 (C0-product · C1~C8 · MC · CW · C10) and K7 · K8.
   Loaded after style.css (and after preapply/page.css on the application page). Words, ids, names, data hooks and element order
   stay as the pages and their scripts make them, so the application is styled by structure (aria-label · data-role · tag).
   A [hidden] attribute or the shared .hidden class always wins inside the application: rules below may set display. */

/* ---------- Shared pieces (K8: 52px fields on paper, 52px outlined and 56px filled buttons) ---------- */
main.apply-page select, main.consult-page select {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232D2528' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* ---------- Application (preapply.html) ---------- */
#preapply-app [hidden], #preapply-app .hidden { display: none !important; }
/* One centred column (the design's form column; the page has no summary column, so the column is the board's 560px form widened a step). */
main.apply-page > * { max-width: 720px; margin-left: auto; margin-right: auto; }
main.apply-page > h1 { margin-top: 16px; margin-bottom: 8px; }
#entry-status { margin-top: 0; color: var(--mn-ink2); font-size: 15px; }
main.apply-page > #toast:not(.hidden) { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--mn-error); background: var(--mn-paper); font-weight: 600; }

#preapply-app { font-size: 15px; line-height: 1.7; }
#preapply-app fieldset { margin: 0; padding: 0; border: 0; }
#preapply-app legend { padding: 0; margin: 0 0 16px; color: var(--mn-ink2); font-size: 14px; font-weight: 600; }
/* The two panel heads (새 신청 · 내 신청) and the read-out head: the board's serif step titles. */
#preapply-app h2 { margin: 56px 0 20px; padding-top: 24px; border-top: 1px solid var(--mn-charcoal); font-family: var(--mn-font-serif); font-size: 28px; font-weight: 400; line-height: 1.3; }
#preapply-app h3 { margin: 32px 0 12px; font-family: var(--mn-font-serif); font-size: 24px; font-weight: 400; line-height: 1.35; }
#preapply-app h4 { margin: 32px 0 12px; font-size: 16px; font-weight: 700; }
/* The parts of the new-application form read as the board's steps (상담 시간 · 입금 정보). */
#preapply-app form[aria-label="새 사전 신청"] h4 { margin: 48px 0 16px; padding-top: 20px; border-top: 1px solid var(--mn-line); font-family: var(--mn-font-serif); font-size: 24px; font-weight: 400; line-height: 1.35; }

/* A field: its name above a full-width 52px control (C1 · C2 · K7). */
#preapply-app .field { display: block; margin: 0 0 20px; }
#preapply-app .field > span:first-child { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
#preapply-app .field > small { display: block; margin-top: 6px; color: var(--mn-ink2); font-size: 13px; line-height: 1.6; }
#preapply-app .field > input:not([type="checkbox"]):not([type="radio"]), #preapply-app .field > select, #preapply-app .field > textarea { display: block; width: 100%; }

/* The application uses the same score rows as the calculator, inside its narrower form. */
.preapply-score-fields .row {
  display: grid; grid-template-columns: 7rem repeat(4, minmax(0, 1fr)); gap: 8px;
  align-items: center; margin: 0; padding: 12px 0; border-top: 1px solid var(--mn-line);
}
.preapply-score-fields .raw-split-row { grid-template-columns: 7rem repeat(3, minmax(0, 1fr)); }
.preapply-score-fields .raw-score-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.preapply-score-fields :is(input, select) { width: 100%; min-width: 0; }
.preapply-score-fields .out-of { white-space: nowrap; font-size: 14px; color: var(--mn-ink2); }
.preapply-score-fields .raw-split-hint { font-size: 14px; }
.preapply-score-fields .field-error { grid-column: 1 / -1; }
.preapply-score-summary p { margin: 0; }
/* 원장 2399: under the application's lines on the lookup page, its scores and the way to the member's own on the account page. */
[data-role="lookup-scores"] { margin: 16px 0 0; }
.lookup-scores-link { display: inline-flex; align-items: center; min-height: 44px; }
#preapply-app .preapply-hopes .field > small.field-error { font-size: 14px; color: var(--mn-error); }
@media (max-width: 639px) {
  .preapply-score-fields .row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .preapply-score-fields .row > :is(strong, input, .out-of) { grid-column: span 2; }
  .preapply-score-fields .row > :is(select, .raw-score-part),
  .preapply-score-fields .row:has(> select) > strong { grid-column: span 3; }
  .preapply-score-fields .row:has([name="foreign_grade"]) > strong { grid-column: 1 / -1; }
}
#preapply-app .field > input[hidden], #preapply-app .field > small[hidden] { display: none; }
#preapply-app input:not([type="checkbox"]):not([type="radio"]), #preapply-app select { height: 52px; padding-left: 14px; font-size: 16px; }
@media (max-width: 389px) {
  #preapply-app .preapply-score-fields .row > input[type="number"] { padding-inline: 3px; }
  #preapply-app .preapply-score-fields select[name="foreign_subject"] { padding-left: 8px; }
}
#preapply-app textarea { min-height: 96px; padding: 12px 14px; font-size: 16px; resize: vertical; }
#preapply-app input:not([type="checkbox"]):not([type="radio"]):not(.bad):not(:disabled), #preapply-app select:not(.bad):not(:disabled), #preapply-app textarea:not(.bad):not(:disabled) { background-color: var(--mn-paper); }
#preapply-app input:not([type="checkbox"]):not([type="radio"]):not(.bad):not(:disabled):hover, #preapply-app select:not(.bad):not(:disabled):hover, #preapply-app textarea:not(.bad):not(:disabled):hover { border-color: var(--mn-charcoal); }
#preapply-app input:disabled, #preapply-app select:disabled, #preapply-app textarea:disabled { background-color: var(--mn-disabled-bg); border-color: var(--mn-disabled-bg); color: var(--mn-disabled-text); cursor: not-allowed; }
#preapply-app input[readonly]:not(:disabled) { background-color: var(--mn-tint-hover); }
/* K7 error look: a field the visitor left invalid, as the browser tells it, gets the 2px error border. */
#preapply-app .field > input:user-invalid, #preapply-app .field > select:user-invalid, #preapply-app .field > textarea:user-invalid { border: 2px solid var(--mn-error); }
/* A tick box: the box beside its sentence, the sentence wrapping under itself (C6 확인과 동의). Without :has the box sits inline. */
#preapply-app .field > input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; vertical-align: top; accent-color: var(--mn-charcoal); }
#preapply-app .field:has(> input[type="checkbox"]) { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; margin: 0; font-size: 15px; line-height: 1.6; cursor: pointer; }

/* Buttons: outlined 52px by default; the form's main actions are the full-width filled 56px button (C1~C6 다음 · 신청). */
#preapply-app button { min-height: 52px; padding: 0 22px; font-size: 15px; margin: 0 8px 12px 0; }
#preapply-app form[aria-label="새 사전 신청"] button[type="submit"], #preapply-app form[aria-label="최종 확인 및 동의"] button[type="submit"] {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 32px 0 0; font-size: 16px;
}
#preapply-app form[aria-label="새 사전 신청"] button[type="submit"]:not(:disabled), #preapply-app form[aria-label="최종 확인 및 동의"] button[type="submit"]:not(:disabled) { background: var(--mn-burgundy); border-color: var(--mn-burgundy); color: var(--mn-ivory); }
#preapply-app form[aria-label="새 사전 신청"] button[type="submit"]:not(:disabled):hover, #preapply-app form[aria-label="최종 확인 및 동의"] button[type="submit"]:not(:disabled):hover { background: var(--mn-burgundy-deep); border-color: var(--mn-burgundy-deep); }
#preapply-app form[aria-label="새 사전 신청"] button[type="submit"]:not(:disabled):active, #preapply-app form[aria-label="최종 확인 및 동의"] button[type="submit"]:not(:disabled):active { background: var(--mn-burgundy-pressed); }
/* 원장 2433 1 (D-CC3 UXUI_APPLY_FLOW_2433 3 · 4): what the student is — six boxes, each a line of 44px to press, two to a row
   from 481px. The four that say the year come first; the two that add to them stand 12px apart (a gap, no line, no words).
   직접 입력's field comes right under the boxes, in from the left by the box and its gap. The line that says a field or
   the boxes are wrong stands right under them, and takes no room while it says nothing. */
#preapply-app .status-group { min-width: 0; margin: 0 0 20px; }
#preapply-app .status-group > legend { margin: 0 0 8px; color: inherit; font-size: 15px; line-height: 1.5; }
#preapply-app .status-group > p:not(.field-error) { margin: 0 0 8px; color: var(--mn-ink2); font-size: 13px; line-height: 1.6; }
#preapply-app .status-choices { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
#preapply-app .status-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
#preapply-app .status-choice > input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--mn-burgundy); }
#preapply-app .status-choice[data-status-group="year"] + .status-choice[data-status-group="more"] { margin-top: 12px; }
#preapply-app .status-other { padding-left: 28px; }
#preapply-app .status-other > input { display: block; width: 100%; }
#preapply-app .field-error { display: block; margin: 4px 0 0; color: var(--mn-error); font-size: 14px; line-height: 1.6; }
#preapply-app .field-error:empty { display: none; }
@media (min-width: 481px) {
  #preapply-app .status-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #preapply-app .status-choice[data-status-group="more"] { margin-top: 12px; }
  #preapply-app .status-other { grid-column: 1 / -1; }
}
#preapply-app form[aria-label="최종 확인 및 동의"] > fieldset > button[type="button"] { display: flex; align-items: center; justify-content: center; width: 100%; margin: 12px 0 0; }

/* Lines the page writes: a failure is the K7 alert box; a status line is the quiet note under its control. */
#preapply-app p[role="alert"]:not(:empty) { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--mn-error); background: var(--mn-paper); color: var(--mn-error); font-weight: 600; line-height: 1.6; }
#preapply-app p[role="status"] { margin: 8px 0 16px; color: var(--mn-ink2); font-size: 14px; }
#preapply-app p[role="status"]:empty { margin: 0; }
#preapply-app p[data-role="payment-deadline-preview"] { margin: 0 0 20px; color: var(--mn-charcoal); font-size: 15px; font-weight: 600; }
#preapply-app p[data-role="card-return-notice"], #preapply-app p[data-role="sms-banner"], #preapply-app p[data-role^="contact-notice"] { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--mn-charcoal); background: var(--mn-paper); color: var(--mn-charcoal); font-size: 15px; }
#preapply-app p.status[data-role="early-start-note"] { margin: -8px 0 20px; color: var(--mn-charcoal); font-size: 14px; }

/* The sign-in choice and the guest phone box (C1 휴대폰 인증). */
#preapply-app section[aria-label="신청자 확인"] > p { margin: 0 0 12px; }
/* 원장 2433 2 (UXUI_APPLY_FLOW_2433 5 · 7): the way to the other half of the page is a link in text, 44px tall to press; the
   button that says how another student applies is a second button, its panel right under it. */
#preapply-app .apply-way { margin: 0 0 12px; }
#preapply-app .apply-way > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
#preapply-app .sibling-help { margin: 0 0 24px; }
#preapply-app .sibling-help > p { margin: 0 0 12px; }
#preapply-app section[aria-label="신청자 확인"] > .auth-note { color: var(--mn-ink2); font-size: 14px; line-height: 1.6; }
#preapply-app fieldset[aria-label="비회원 휴대폰 인증"] { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mn-charcoal); }
#preapply-app fieldset[aria-label="비회원 휴대폰 인증"] > legend { float: left; width: 100%; margin-bottom: 24px; color: var(--mn-charcoal); font-family: var(--mn-font-serif); font-size: 28px; font-weight: 400; line-height: 1.3; }
#preapply-app fieldset[aria-label="비회원 휴대폰 인증"] > legend + * { clear: both; }
#preapply-app fieldset[aria-label="비회원 휴대폰 인증"] > button { margin: -4px 0 24px; }

/* Rows of a read-out (최종 확인 · 신청 조회): name column and value between hair lines (C6 · C7 · F1). */
#preapply-app dl { display: grid; grid-template-columns: 148px minmax(0, 1fr); margin: 0 0 16px; border-bottom: 1px solid var(--mn-line); }
#preapply-app dl > dt, #preapply-app dl > dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--mn-line); }
#preapply-app dl > dt { padding-right: 12px; color: var(--mn-ink2); font-size: 14px; }
#preapply-app dl > dd { font-size: 15px; font-variant-numeric: tabular-nums; }
#preapply-app dl > dd ul { margin: 6px 0 0; padding-left: 18px; }

/* The tendency guide: the board's five rows (C3 선택 · 이름 · 이런 학생에게 맞습니다), then the notes. */
#preapply-app section[aria-label="지원 성향 설명"] { margin: -4px 0 28px; }
#preapply-app section[aria-label="지원 성향 설명"] > p { margin: 0 0 10px; }
#preapply-app section[aria-label="지원 성향 설명"] dl { grid-template-columns: 116px minmax(0, 1fr); margin: 12px 0 16px; border-top: 1px solid var(--mn-charcoal); }
#preapply-app section[aria-label="지원 성향 설명"] dl > dt { color: var(--mn-charcoal); font-size: 15px; font-weight: 600; }
#preapply-app section[aria-label="지원 성향 설명"] dl > dt:first-of-type, #preapply-app section[aria-label="지원 성향 설명"] dl > dt:first-of-type + dd { border-top: 0; }
#preapply-app section[aria-label="지원 성향 설명"] ul, #preapply-app [data-role="consent-text"] ul { margin: 8px 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.75; }
#preapply-app section[aria-label="지원 성향 설명"] li, #preapply-app [data-role="consent-text"] li { margin: 0 0 8px; }

/* Final check and consents (C6): the read-out, the notes, the conditions text, then the ticks between hair lines. */
#preapply-app section[aria-label="최종 신청 내용 확인"] > h3 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mn-charcoal); font-size: 28px; }
#preapply-app form[aria-label="최종 확인 및 동의"] { margin-top: 24px; }
#preapply-app form[aria-label="최종 확인 및 동의"] > fieldset > p { margin: 0 0 12px; }
#preapply-app p[data-role="owner-review-notice"], #preapply-app p[data-role="owner-review-notice-a8"] { padding: 14px 16px; border: 1px solid var(--mn-charcoal); background: var(--mn-paper); font-size: 15px; }
#preapply-app section[aria-label="자료 제출과 예약 변경"] p, #preapply-app [data-role="consent-text"] p { font-size: 14px; line-height: 1.75; }
#preapply-app [data-role="consent-text"] { margin: 24px 0; padding-top: 8px; border-top: 1px solid var(--mn-line); }
#preapply-app [data-role="consent-text"] h4 { margin: 24px 0 8px; font-size: 16px; }
#preapply-app form[aria-label="최종 확인 및 동의"] > fieldset > .field:has(> input[type="checkbox"]) { border-top: 1px solid var(--mn-line); }
#preapply-app p[data-role="alert-notice-a7"], #preapply-app p[data-role="alert-notice"] { margin: 0 0 12px; padding-left: 32px; color: var(--mn-ink2); font-size: 13px; line-height: 1.7; }

/* Required and optional consents on the final application step. */
#preapply-app .consent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  border-top: 1px solid var(--mn-line);
}
#preapply-app .consent-row > .field:has(> input[type="checkbox"]) {
  align-items: center;
  min-height: 48px;
  border-top: 0;
}
#preapply-app .consent-row > .field > input { margin-top: 0; }
#preapply-app .consent-row > button[data-role="consent-view"],
#preapply-app button.consent-doc-button,
#preapply-app .consent-sheet button {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  font-size: 14px;
}
#preapply-app .consent-row > .consent-panel,
#preapply-app .consent-row > p { grid-column: 1 / -1; }
#preapply-app .consent-row > .consent-error {
  margin: 0 0 12px;
  color: var(--mn-error);
  font-weight: 600;
}
#preapply-app .consent-panel {
  min-width: 0;
  margin-bottom: 12px;
  padding: 16px;
  background: var(--mn-paper);
}
.consent-content, .consent-legal-body { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.consent-content p, .consent-content ul, .consent-legal-body p { margin: 0 0 12px; }
.consent-content ul, .consent-content ol { padding-left: 1.4em; }
.consent-content > :last-child { margin-bottom: 0; }
html.consent-scroll-locked, html.consent-scroll-locked body { overflow: hidden; }
dialog.consent-sheet {
  width: min(680px, calc(100% - 32px));
  max-width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;
  border: 1px solid var(--mn-line2);
  color: var(--mn-charcoal);
  background: var(--mn-paper);
}
dialog.consent-sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.consent-sheet::backdrop { background: rgb(0 0 0 / 45%); }
.consent-sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--mn-line);
}
#preapply-app .consent-sheet-head h3 { margin: 0; min-width: 0; font-size: 18px; }
.consent-sheet .consent-sheet-close { flex: none; }
.consent-sheet-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.consent-legal-body { min-width: 0; }
.consent-legal-body table { width: 100%; }
.consent-legal-body th, .consent-legal-body td { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  dialog.consent-sheet {
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    border-bottom: 0;
  }
  .consent-sheet-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* My applications and the lookup (F1 · F2): the list scrolls sideways on a phone, the number field and its button side by side. */
#preapply-app section[aria-label="내 신청"] > div { max-width: 100%; overflow-x: auto; }
#preapply-app section[aria-label="내 신청"] table { min-width: 560px; margin: 0 0 16px; font-size: 14px; }
#preapply-app section[aria-label="내 신청"] caption { padding: 0 0 8px; color: var(--mn-ink2); font-size: 13px; text-align: left; }
#preapply-app section[aria-label="내 신청"] td:first-child, #preapply-app section[aria-label="내 신청"] td button { white-space: nowrap; }
#preapply-app section[aria-label="내 신청"] td button { min-height: 44px; margin: 0; padding: 0 14px; font-size: 14px; }
#preapply-app form[aria-label="신청 조회"] { margin: 24px 0 8px; }
#preapply-app form[aria-label="신청 조회"] > fieldset { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
#preapply-app form[aria-label="신청 조회"] .field { flex: 1 1 260px; margin: 0; }
#preapply-app form[aria-label="신청 조회"] button { margin: 0; }
#preapply-app section[aria-label="신청 조회 결과"] h3 { padding-top: 24px; border-top: 1px solid var(--mn-charcoal); font-size: 28px; }
#preapply-app section[aria-label="신청 조회 결과"] section, #preapply-app section[aria-label="신청 조회 결과"] form { margin: 32px 0 0; padding-top: 4px; border-top: 1px solid var(--mn-line); }

/* The saved application result. Its controls and progress list do not appear in the entry form. */
#preapply-app .application-result-number {
  display: block; margin-top: 8px; color: var(--mn-ink2);
  font: 500 15px/1.6 var(--mn-font-sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
#preapply-app .application-progress {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin: 20px 0 24px; padding: 0;
}
#preapply-app .application-progress > li {
  display: flex; align-items: center; gap: 4px; min-width: 0; padding-top: 6px;
  border-top: 3px solid var(--mn-line); color: var(--mn-ink2); font-size: 14px; white-space: nowrap;
}
#preapply-app .application-progress > [data-step-state="done"] { color: var(--mn-charcoal); border-color: var(--mn-charcoal); }
#preapply-app .application-progress > [aria-current="step"] { color: var(--mn-burgundy); border-color: currentColor; font-weight: 700; }
#preapply-app .application-step-dot { display: none; }
#preapply-app [data-step-state="done"] > .application-step-dot {
  display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
#preapply-app .application-step-done {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#preapply-app section.application-payment.preapply-payment {
  margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px;
}
#preapply-app .application-payment > dl { margin: 0; border-bottom: 0; }
#preapply-app .application-payment > dl > :nth-child(-n+2) { border-top: 0; }
#preapply-app .application-payment dd {
  min-width: 0; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
#preapply-app .application-copy-row {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(64%); align-items: center; column-gap: 12px;
}
#preapply-app .application-copy-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; }
#preapply-app .application-copy-button { width: auto; min-width: 44px; min-height: 44px; margin: 0; padding: 6px 12px; }
#preapply-app .application-copy-status { min-width: 0; color: var(--mn-ink2); font-size: 14px; }
#preapply-app .application-copy-status:empty { position: absolute; }
#preapply-app .application-price-crossing > span { display: block; }
#preapply-app .application-next { margin: 0 0 24px; padding-left: 1.75em; }
#preapply-app .application-next > li { padding: 8px 0; border-bottom: 1px solid var(--mn-line); }
#preapply-app .application-action { margin: 16px 0; border-top: 1px solid var(--mn-line); }
#preapply-app .application-action > summary { min-height: 44px; padding: 10px 0; font-weight: 600; cursor: pointer; }
#preapply-app details.application-action > :is(form, section) { margin-top: 0; padding-top: 8px; border-top: 0; }

@media (max-width: 639px) {
  #preapply-app .application-progress > li { font-size: 13px; }
  #preapply-app section.application-payment.preapply-payment { padding: 12px; }
  #preapply-app .application-copy-row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  #preapply-app .application-copy-action { justify-content: flex-start; }
}
#preapply-app section[aria-label="카드 결제창"] { padding: 4px 20px 16px; border: 1px solid var(--mn-line); background: var(--mn-paper); }
#preapply-app p[data-role="application-contact"] { margin-top: 24px; color: var(--mn-ink2); font-size: 14px; }

/* ---------- Consultation request (consult.html): the same form look ---------- */
main.consult-page > * { max-width: 720px; margin-left: auto; margin-right: auto; }
main.consult-page #f > .row { display: block; margin: 0 0 20px; }
main.consult-page #f > .row > label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
main.consult-page #f > .row > label:has(> input[type="checkbox"]) { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--mn-line); border-bottom: 1px solid var(--mn-line); font-weight: 400; cursor: pointer; }
main.consult-page #f input:not([type="checkbox"]) { height: 52px; padding: 0 14px; font-size: 16px; font-weight: 400; background-color: var(--mn-paper); }
main.consult-page #f textarea { min-height: 120px; padding: 12px 14px; font-size: 16px; font-weight: 400; background-color: var(--mn-paper); resize: vertical; }
main.consult-page #f input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mn-charcoal); }
main.consult-page #f > button.primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 32px; font-size: 16px; }
main.consult-page #done:not(.hidden) { padding: 14px 16px; border: 1px solid var(--mn-charcoal); background: var(--mn-paper); font-size: 15px; font-weight: 600; }
main.consult-page #toast:not(.hidden) { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--mn-error); background: var(--mn-paper); font-weight: 600; }

/* ---------- Product (product.html, C0-product): content on the left, the price and the entry button on the right ---------- */
main.product-page { max-width: none; }
main.product-page > p[data-live] { margin: 16px 0 0; }
main.product-page > p[data-live] img { width: 64px; height: 64px; }
main.product-page > h1 { margin: 16px 0 12px; font-size: 40px; line-height: 1.25; letter-spacing: -0.015em; }
main.product-page > .lead { max-width: 720px; margin: 0 0 8px; color: var(--mn-ink2); font-size: 17px; }
main.product-page > .review-notice { max-width: 720px; margin: 24px 0; }
.product-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; margin-top: 40px; }
.product-layout > .product-buy { grid-column: 2; grid-row: 1; }
/* The price column stays in view while the content scrolls; not while the tall card-test box is in it (it would be cut off). */
.product-layout > .product-buy:not(:has(> section.card)) { position: sticky; top: 24px; }
.product-layout > .product-body { grid-column: 1; grid-row: 1; }
/* Price block: a charcoal rule, the early price large, the standard price as one row, the entry button filled. */
main.product-page .product-buy > section { margin: 0; }
.product-buy > section:first-child { padding-top: 18px; border-top: 1px solid var(--mn-charcoal); }
.product-buy h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.product-buy .grid { display: block; }
.product-buy article.card { padding: 14px 0; border: 0; border-bottom: 1px solid var(--mn-line); border-radius: 0; background: transparent; }
.product-buy article.card h3 { margin: 0; color: var(--mn-ink2); font-size: 14px; font-weight: 600; }
.product-buy article.card p { margin: 0; color: var(--mn-ink2); font-size: 13px; line-height: 1.6; }
main.product-page .product-buy article.card p.price { margin: 4px 0 6px; color: var(--mn-charcoal); font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
main.product-page .product-buy article.card + article.card p.price { font-size: 22px; }
.product-buy > section > p { margin: 12px 0 0; color: var(--mn-ink2); font-size: 13px; line-height: 1.7; }
.product-buy .actions { margin: 20px 0 0; }
.product-buy #preapply-start { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 22px; border-radius: var(--mn-radius); font-size: 16px; font-weight: 600; }
.product-buy a#preapply-start { border: 1px solid var(--mn-burgundy); background: var(--mn-burgundy); color: var(--mn-ivory); text-decoration: none; transition: background-color var(--mn-motion-color); }
.product-buy a#preapply-start:hover { border-color: var(--mn-burgundy-deep); background: var(--mn-burgundy-deep); color: var(--mn-ivory); }
.product-buy a#preapply-start:active { background: var(--mn-burgundy-pressed); }
.product-buy #preapply-status { margin: 8px 0 0; color: var(--mn-charcoal); font-size: 14px; }
/* The card test box (before sales only) sits under the price, as the board's 'test' note. */
main.product-page .product-buy > section.card { margin-top: 32px; padding: 16px 18px; }
.product-buy > section.card h2 { font-size: 15px; }
.product-buy > section.card p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.product-buy > section.card .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.product-buy > section.card button { width: 100%; min-height: 52px; font-size: 15px; }
/* Content sections: the board's serif heads and rows between hair lines. */
main.product-page .product-body > section { margin: 0 0 56px; }
main.product-page .product-body > section:last-child { margin-bottom: 0; }
.product-body h2 { margin: 0 0 16px; font-family: var(--mn-font-serif); font-size: 30px; font-weight: 400; line-height: 1.3; letter-spacing: -0.015em; }
.product-body p, .product-body li { font-size: 15px; line-height: 1.75; }
.product-body ul { margin: 0 0 16px; padding: 0; list-style: none; border-bottom: 1px solid var(--mn-line); }
.product-body li { padding: 14px 0; border-top: 1px solid var(--mn-line); }

/* ---------- Card-test return pages (payment-test-*.html, C8-cardtest): one centred 560px column ---------- */
main.toss-result { max-width: none; }
main.toss-result > :not(footer) { max-width: 560px; margin-left: auto; margin-right: auto; }
main.toss-result > h1 { margin-top: 16px; margin-bottom: 24px; }
main.toss-result [data-toss-test-status] { padding: 14px 0; border-top: 1px solid var(--mn-line); border-bottom: 1px solid var(--mn-line); font-size: 15px; }
main.toss-result [data-toss-test-result]:empty { display: none; }
main.toss-result section a[href="/product.html"] { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 24px; padding: 0 22px; border: 1px solid var(--mn-charcoal); border-radius: var(--mn-radius); color: var(--mn-charcoal); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color var(--mn-motion-color); }
main.toss-result section a[href="/product.html"]:hover { background: var(--mn-tint-hover); }

/* ---------- The business footer of the product and card-test pages sits inside <main>: drawn edge to edge as on every other page ---------- */
html:has(main.product-page), html:has(main.toss-result) { overflow-x: clip; }
main.product-page, main.toss-result { padding-bottom: 0; }
main.product-page > .review-footer, main.toss-result > .review-footer { margin: 64px calc(50% - 50vw) 0; padding-left: max(24px, calc((100vw - 1120px) / 2)); padding-right: max(24px, calc((100vw - 1120px) / 2)); }

/* ---------- Phone width (the shared breakpoint of style.css) ---------- */
@media (max-width: 480px) {
  #preapply-app h2, #preapply-app section[aria-label="최종 신청 내용 확인"] > h3, #preapply-app section[aria-label="신청 조회 결과"] h3, #preapply-app fieldset[aria-label="비회원 휴대폰 인증"] > legend { font-size: 24px; }
  #preapply-app form[aria-label="새 사전 신청"] h4 { font-size: 22px; }
  #preapply-app dl { grid-template-columns: 104px minmax(0, 1fr); }
  #preapply-app section[aria-label="지원 성향 설명"] dl { grid-template-columns: 96px minmax(0, 1fr); }
  #preapply-app button { width: 100%; margin-right: 0; }
  #preapply-app section[aria-label="내 신청"] td button { width: auto; }
  main.product-page > h1 { font-size: 30px; }
  main.product-page > .review-footer, main.toss-result > .review-footer { padding-left: 16px; padding-right: 16px; }
  .product-body h2 { font-size: 26px; }
  main.product-page .product-body > section { margin-bottom: 48px; }
}
/* Below the design's PC width (tokens: 1023px and less = the mobile form; C0-product-m): one column, the price block first. */
@media (max-width: 1023px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 24px; }
  .product-layout > .product-buy { grid-column: 1; grid-row: 1; }
  .product-layout > .product-buy:not(:has(> section.card)) { position: static; }
  .product-layout > .product-body { grid-column: 1; grid-row: 2; }
}
/* Under 300px (a phone at 200 % zoom) a 96–104px name column left the sentence beside it one or two words a line
   (the tendency guide's five rows ran 70 lines): each name stands over its sentence. */
@media (max-width: 300px) {
  #preapply-app dl, #preapply-app section[aria-label="지원 성향 설명"] dl { grid-template-columns: minmax(0, 1fr); }
  #preapply-app dl > dt { padding-bottom: 0; }
  #preapply-app dl > dd { border-top: 0; padding-top: 2px; }
}

/* 원장 2439 · 2441 · 2442 (묶음 85 고친 흐름 · D-CC4 STEPS_CONTRACT_85 5 절 클래스 · D-CC3 UXUI_APPLY_FLOW85_2439 1 · 2 · 4 절).
   The bundle's tokens file is not loaded: its --mn-paper is the site's --mn-ivory, so only the site's names are used here.
   Its muted text (#857A7D, 3.5 ~ 3.9 : 1) is --mn-ink2 here; no text under 13px.
   The band the steps' frame draws:
     nav.apply-band > ol.apply-band-bar > li[data-state="done|current|next"] > (button|span).apply-band-step  (name in text)
                    > p.apply-band-row > span.apply-band-count + span.apply-band-name + span.apply-band-saved
   A step: section.apply-step[data-step] > h1.apply-step-head(tabindex -1) … div.apply-step-foot > button.apply-next */
.apply-flow { max-width: 430px; margin: 0 auto; }
.apply-flow [hidden] { display: none !important; }
.apply-band { padding: 10px 20px 11px; border-bottom: 1px solid var(--mn-line); background: var(--mn-ivory); }
.apply-band-bar { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.apply-band-bar > li { flex: 1 1 0; min-width: 0; margin: 0; }
/* A step of the bar is a segment of 3px drawn on top of a press area of 44px (bundle 85 검수 32); its name is read, not shown, on a
   phone. The line under the bar is laid over the lower part of that area and lets presses through, so the band is no taller. */
.apply-band-step { position: relative; display: block; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-top: 3px solid var(--mn-line); border-radius: 0; background: transparent; color: var(--mn-charcoal); font: inherit; font-size: 13px; text-align: left; }
.apply-band-bar > li[data-state="done"] > .apply-band-step { border-top-color: var(--mn-charcoal); }
.apply-band-bar > li[data-state="current"] > .apply-band-step { border-top-color: var(--mn-burgundy); font-weight: 700; }
button.apply-band-step { cursor: pointer; }
button.apply-band-step:hover { background: var(--mn-tint-hover); }
button.apply-band-step:focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 2px; }
.apply-band-step > .apply-band-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.apply-band-row { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; row-gap: 2px; margin: -36px 0 7px; pointer-events: none; }
.apply-band-count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.apply-band-name { margin-left: 10px; font-weight: 600; }
.apply-band-saved { margin-left: auto; color: var(--mn-ink2); font-size: 13px; white-space: nowrap; }
.apply-step { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 28px 20px 32px; }
.apply-step-head { margin: 0; font-family: var(--mn-font-serif); font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 76px; }
.apply-step-head:focus { outline: none; }
.apply-step-head:focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 4px; }
.apply-step h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; }
.apply-step legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.apply-step-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.apply-next { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 22px; border: 1px solid var(--mn-burgundy); border-radius: var(--mn-radius); background: var(--mn-burgundy); color: var(--mn-ivory); font-size: 16px; font-weight: 600; cursor: pointer; }
.apply-next:hover { border-color: var(--mn-burgundy-deep); background: var(--mn-burgundy-deep); }
.apply-next:active { background: var(--mn-burgundy-pressed); }
.apply-next:focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 2px; }
/* Sending: the button keeps its colour and its name (never a dimmed disabled button), and takes no second press. */
.apply-next[aria-busy="true"] { cursor: progress; }
.apply-flow .field-error:not(:empty) { margin-top: 4px; }
/* The sheet (보기) and the two confirmations: the consent sheet's form, on the bundle's ivory. */
dialog.apply-sheet { width: min(640px, calc(100% - 32px)); max-width: 100%; max-height: 90vh; max-height: 90dvh; padding: 24px 20px 28px; border: 1px solid var(--mn-line2); color: var(--mn-charcoal); background: var(--mn-ivory); overflow: auto; overscroll-behavior: contain; }
dialog.apply-sheet::backdrop { background: rgb(43 36 38 / 48%); }
dialog.apply-sheet > :first-child { margin-top: 0; }
dialog.apply-sheet h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.45; }
dialog.apply-sheet h2:focus { outline: none; }
@media (max-width: 480px) {
  dialog.apply-sheet { inset: auto 0 0; width: 100%; margin: 0; border-width: 1px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  .apply-flow { max-width: 560px; }
  .apply-step-head { scroll-margin-top: 96px; }
  /* On a wide screen the bar shows each step's name under its segment. */
  .apply-band-step { padding-top: 6px; }
  .apply-band-row { margin: 2px 0 0; pointer-events: auto; }
  .apply-band-step > .apply-band-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .apply-band-bar > li[data-state="next"] > .apply-band-step { color: var(--mn-ink2); }
}

/* Steps 5 · 6 and the waiting receipt (D-CC5 c2fe2ac4 · its class names of 11:56; D-CC3 UXUI_APPLY_FLOW85_2439 9 ~ 11 절;
   bundle 85 AP5 · AP5c · AP6). The account box, the copy rows and the price crossing keep the lookup's .application-* form. */
.apply-pay, .apply-received, .apply-wait { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.apply-pay p, .apply-received p, .apply-wait p { margin: 0; line-height: 1.6; }
.apply-pay-lead, .apply-received-lead { font-size: 15px; }
.apply-pay-seat { font-weight: 600; font-variant-numeric: tabular-nums; }
.apply-pay-rule, .apply-pay-typed, .apply-pay-before, .apply-pay-ask, .apply-received-note { color: var(--mn-ink2); font-size: 14px; }
.apply-received-due { font-size: 17px; font-variant-numeric: tabular-nums; }
.apply-received-due > strong { color: var(--mn-burgundy); }
/* The page's own button rule (#preapply-app button, 52px) outranks .apply-next: the step's next button is 56px again here. */
#preapply-app .apply-next { min-height: 56px; margin: 0; }
/* 입금했습니다 (filled, the step's next button) over 나중에 입금할게요 (outlined), both the column's width. */
.apply-pay-actions, .apply-received-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
#preapply-app .apply-pay-actions > button, #preapply-app .apply-received-actions > * { width: 100%; margin: 0; }
.apply-lookup { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
/* The five things after the application (AP6): a line down the left, a ring for each — filled once done, the burgundy ring
   with its dot now, a grey ring next — the title and its line beside it. */
.apply-progress { margin: 0; padding: 0; list-style: none; }
.apply-progress > li { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 0 18px 34px; }
.apply-progress > li::before { content: ''; position: absolute; top: 0; left: 0; box-sizing: border-box; width: 22px; height: 22px; border: 2px solid var(--mn-line2); border-radius: 50%; background: var(--mn-ivory); }
.apply-progress > li:not(:last-child)::after { content: ''; position: absolute; top: 26px; bottom: -4px; left: 10px; width: 2px; background: var(--mn-line); }
.apply-progress > li[data-step-state="done"]::before { border-color: var(--mn-charcoal); background: var(--mn-charcoal); }
.apply-progress > li[aria-current="step"]::before { border-color: var(--mn-burgundy); background: radial-gradient(circle, var(--mn-burgundy) 0 5px, var(--mn-ivory) 5.5px); }
.apply-progress-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.apply-progress-text { color: var(--mn-charcoal); font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.apply-progress > li[data-step-state="next"] > * { color: var(--mn-ink2); }
.apply-received-list { margin: 0; }
/* The 입금했나요 confirmation (AP5c): the amount, account and name first, the optional field, then 네 over 아직. */
dialog.apply-paid dl { margin: 0 0 16px; }
dialog.apply-paid .field { margin: 0 0 12px; }
/* The page's #preapply-app .field > small (grey, 13px) outranks the error class: the dialog's two smalls are told apart here. */
#preapply-app dialog.apply-paid .field > small:not(.field-error) { display: block; margin-top: 4px; color: var(--mn-ink2); font-size: 14px; line-height: 1.6; }
#preapply-app dialog.apply-paid .field > small.field-error { display: block; margin-top: 4px; color: var(--mn-error); font-size: 14px; line-height: 1.6; }
#preapply-app dialog.apply-paid .field > small.field-error:empty { display: none; }
dialog.apply-paid #apply-paid-note { margin: 0 0 12px; color: var(--mn-ink2); font-size: 14px; line-height: 1.6; }
#preapply-app dialog.apply-paid .apply-paid-yes, #preapply-app dialog.apply-paid .apply-paid-no { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0 0 12px; }
#preapply-app dialog.apply-paid .apply-paid-yes { min-height: 56px; }
#preapply-app dialog.apply-paid .apply-paid-no { margin-bottom: 0; }

/* D-CC4 273aecb1 (넘김 3/3 · its class names of 12:24), measured on the real page in Chrome at 390 before this: the radios of
   성별 and 교과 성적 수준 were 16px lines side by side, the steps sat 20px further in than the page's own column, and the
   preparation group's name read as small grey help. Only the site's tokens. */
/* In the page, its column already has the side gutter: the band and the steps add none of their own. */
#preapply-app .apply-band, #preapply-app .apply-step { padding-left: 0; padding-right: 0; }
/* The first step's boxes: the opening line as a quiet note (원장 2546 ⑱: the line under 전체 동의하기 is gone). */
#preapply-app .apply-consents > p { margin: 0; color: var(--mn-ink2); font-size: 14px; line-height: 1.6; }
/* 성별 · 교과 성적 수준: the legend reads as a field's name, its help under it, each choice a 44px line to press. */
#preapply-app .choice-group { min-width: 0; margin: 24px 0 0; }
#preapply-app .choice-group > legend { margin: 0 0 4px; color: var(--mn-charcoal); font-size: 15px; font-weight: 600; line-height: 1.5; }
#preapply-app .choice-group > p { margin: 0 0 8px; color: var(--mn-ink2); font-size: 13px; line-height: 1.6; }
#preapply-app .choice-group > label.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 20px 0 0; font-size: 15px; cursor: pointer; }
#preapply-app .choice-group > label.choice > input { flex: none; margin: 0; }
/* 상담 준비 (선택): the group's name is a head like the step's other groups. */
#preapply-app .prep-group > legend { margin: 8px 0 8px; color: var(--mn-charcoal); font-size: 17px; font-weight: 700; line-height: 1.45; }
/* 입금 · 영수증 정보 (선택): a 44px line to open, its fields under it. */
#preapply-app details.apply-more > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
#preapply-app details.apply-more[open] > summary { margin-bottom: 8px; }
/* The minor's line: a note the eye stops at, above the checks it announces. */
#preapply-app [data-role="minor-note"] { margin: 0; padding: 8px 12px; border-left: 3px solid var(--mn-burgundy); background: var(--mn-paper); font-size: 14px; line-height: 1.6; }
/* D-CC4 12046d3e: a field's own error line sits right under it as small.field-error. The page's #preapply-app .field > small
   (help: grey, 13px) outranks #preapply-app .field-error, so the error took the help's grey: the error class wins here. */
#preapply-app .field > small.field-error { margin-top: 4px; color: var(--mn-error); font-size: 14px; }
#preapply-app .field > small.field-error:empty { display: none; }

/* D-CC4 647b90e5 (P 12:38 고침 10): the booking terms read again on step 4, 이전 · 닫기 in the header over the steps, and the
   닫기 confirmation. */
/* 예약 및 환불 조건 on step 4: a group of the step (17px head, no rule), the terms at the reading size, above the notice. */
#preapply-app [data-role="booking-terms"] > h2 { margin: 0 0 8px; padding-top: 0; border-top: 0; font-family: var(--mn-font-sans); font-size: 17px; font-weight: 700; line-height: 1.45; }
#preapply-app [data-role="booking-terms"] > p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
/* 이전 · 닫기 in the site header, as the free path's .ff-head: two plain words, 44px to press each. */
header.site .apply-head { display: flex; gap: 4px 28px; }
header.site .apply-head :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--mn-charcoal); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
header.site .apply-head :is(a, button):hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
header.site .apply-head :is(a, button):focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 2px; }
/* The 닫기 confirmation: its sentence, then 닫기 and 계속하기 side by side, in that order (the focus starts on 계속하기). */
#preapply-app dialog.apply-leave > p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; }
#preapply-app .apply-leave-actions { display: flex; gap: 8px; }
#preapply-app .apply-leave-actions > button { flex: 1 1 0; min-width: 0; margin: 0; }

/* D-CC5 a28e814a (2439 · 2446): step 3's tendency as five radios, the chosen one's line under them, the refund sentence, and
   two 도움말 that open the long texts. The bundle's AP3: the chosen line in a bordered paper box (name 15 bold, text 14), the
   refund sentence at 14 in ink, 도움말 as a plain row between two hairlines (15 · 600), not a framed 52px button.
   The group's own `.choice-group > p` (13px grey) would take both lines: these two class rules outrank it. */
#preapply-app .choice-group > p.tendency-chosen { margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--mn-line); background: var(--mn-paper); color: var(--mn-charcoal); font-size: 14px; line-height: 1.6; }
#preapply-app .choice-group > p.tendency-chosen > strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; }
#preapply-app .choice-group > p.tendency-refund { margin: 8px 0 0; color: var(--mn-charcoal); font-size: 14px; line-height: 1.6; }
#preapply-app button.help-toggle { display: flex; align-items: center; width: 100%; min-height: 48px; margin: 12px 0 0; padding: 0; border: 0; border-top: 1px solid var(--mn-line); border-bottom: 1px solid var(--mn-line); border-radius: 0; background: none; color: var(--mn-charcoal); font-size: 15px; font-weight: 600; text-align: left; }
#preapply-app button.help-toggle:hover { background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
#preapply-app button.help-toggle::after { content: ""; width: 7px; height: 7px; margin: 0 4px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
#preapply-app button.help-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
#preapply-app .help-panel { padding: 12px 0 16px; border-bottom: 1px solid var(--mn-line); color: var(--mn-charcoal); font-size: 14px; line-height: 1.7; }
#preapply-app .help-panel :is(p, ul, table) { margin: 0 0 8px; }
#preapply-app .help-panel h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }

/* D-CC5 b33d8a68 (2437 ②, P apply_flow85 7 절): under the entry button the product page says what follows an application, in
   four numbered steps, and leads to the lookup. It reads with the price column (a hairline above, 14 in ink, the step's name
   bold); 신청 조회 is a link 44 high to press, not a 19px line of text. Shown only while sales are open (data-live). */
.product-buy .apply-how { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--mn-line); color: var(--mn-charcoal); font-size: 14px; line-height: 1.6; }
.product-buy .apply-how > h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.product-buy .apply-how > ol { margin: 0; padding: 0 0 0 20px; }
.product-buy .apply-how > ol > li { margin: 0 0 6px; padding-left: 2px; }
.product-buy .apply-how > ol > li > strong { margin-right: 4px; font-weight: 700; }
.product-buy .apply-how > p { margin: 8px 0 0; color: var(--mn-ink2); font-size: 14px; }
.product-buy .apply-how > p > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mn-charcoal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* X 13:14 K2: step 2's '회원이면 로그인하고 불러오기' stands alone on its line, 18 high to press. It takes 44, as the page's other
   standing links. */
#preapply-app [data-role="scores-login"] { margin: 8px 0 0; }
#preapply-app [data-role="scores-login"] > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }

/* D-CC4 3e894861 (X 13:14 K1): the current step's reading sentence ('6단계 가운데 2단계 · 신청자와 성적') is its own span,
   for screen readers only at every width; the step's name beside it stays the name. Placed after the wide-screen rule that
   shows .apply-band-label, so nothing brings the sentence back on a wide screen. */
.apply-band-step > .apply-band-read { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 원장 2468 · REQ#H-1122-1723 (대조 표 6bf0bf18 A1 · A2 · A6 · A11 · A13; bundle 85 AP1 ~ AP6 · AW4 -m, AP5 · AP6 -pc).
   Class names as promised on LANE_D 17:2x: the steps' own button rows, aside.apply-aside, [data-role=age14-box] and
   [data-role=wait-before-seat], header .apply-back.
   A1: on a phone or a tablet the step's buttons stand in a band held to the screen's foot while the step is read (the
   bundle's sticky band: ivory, a hairline over it, 12/20/16). It is the step's last part, so it never stands over a line of
   the step once the step's end is reached; while a field is being typed in (the keyboard is up) it stays in its place
   instead, so it never covers the field or what is typed. */
@media (max-width: 1023px) {
  :is(.apply-step-foot, .apply-pay-actions, .apply-received-actions):last-child { position: sticky; bottom: 0; z-index: 2; margin: 8px 0 -32px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); gap: 8px; background: var(--mn-ivory);
    /* the band's ivory and its hairline reach the screen's edges without widening the page (both are drawn, not laid out) */
    border-top: 1px solid var(--mn-line); border-image: linear-gradient(var(--mn-line), var(--mn-line)) 1 / 1px 0 0 / 0 100vmax;
    box-shadow: 0 0 0 100vmax var(--mn-ivory); clip-path: inset(0 -100vmax); }
  .apply-step:has(:is(input:not([type="checkbox"], [type="radio"]), select, textarea):focus) :is(.apply-step-foot, .apply-pay-actions, .apply-received-actions) { position: static; }
  html:has(.apply-flow) { scroll-padding-bottom: 120px; }
  .apply-aside { display: none; }
}
/* A2: on a wide screen steps 5 and 6 are the 560 column and, beside it, a column that follows the scroll under the 80px header
   (the bundle's AP5 · AP6 -pc: 960 wide, 72 apart; a dark rule over it, rows of 84 + the rest between hairlines). */
@media (min-width: 1024px) {
  main.apply-page > :has(.apply-step > .apply-aside), .apply-flow:has(.apply-step > .apply-aside) { max-width: 960px; }
  .apply-step:has(> .apply-aside) { display: grid; grid-template-columns: 560px minmax(0, 1fr); column-gap: 72px; row-gap: 24px; align-items: start; }
  .apply-step:has(> .apply-aside) > :not(.apply-aside) { grid-column: 1; }
  .apply-step > .apply-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--mn-charcoal); }
}
.apply-aside h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.apply-aside :is(p, dl) { margin: 0; font-size: 14px; line-height: 1.6; }
.apply-aside dl { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
.apply-aside :is(dt, dd) { margin: 0; padding: 11px 0; border-top: 1px solid var(--mn-line); }
.apply-aside dt { color: var(--mn-ink2); font-weight: 400; }
.apply-aside dd { font-variant-numeric: tabular-nums; }
.apply-aside a.apply-aside-edit { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--mn-charcoal); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* A6 · A13: the under-14 notice in the place of the next button, and step 4's note when the chosen day is before the waiting
   list's last day: a box on paper, its sentences at reading size, its button or link 44 high. */
#preapply-app :is([data-role="age14-box"], [data-role="wait-before-seat"]) { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 16px; border: 1px solid var(--mn-line2); background: var(--mn-paper); color: var(--mn-charcoal); }
#preapply-app :is([data-role="age14-box"], [data-role="wait-before-seat"]) p { margin: 0; font-size: 14px; line-height: 1.6; }
#preapply-app :is([data-role="age14-box"], [data-role="wait-before-seat"]) :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; }
/* A11: 이전 in the header is the bundle's '‹' to the eye; its word stays its name for a screen reader. */
header.site .apply-head .apply-back { position: relative; font-size: 0; }
header.site .apply-head .apply-back::before { content: "‹"; font-size: 28px; line-height: 1; }
header.site .apply-head .apply-back:hover { text-decoration: none; }

/* D-CC4 f790f88f (A5 · P 덧 10): the student's birthday as three lists. The legend reads as a field's name and its help
   under it, as 학생 신분 below (.status-group); the three lists stand in one row across the column (year a little wider),
   8 apart, and the group keeps the field's room under it. */
#preapply-app .birth-group { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
#preapply-app .birth-group > legend { margin: 0 0 8px; color: var(--mn-charcoal); font-size: 15px; font-weight: 600; line-height: 1.5; }
#preapply-app .birth-group > p:not(.field-error) { margin: 0 0 8px; color: var(--mn-ink2); font-size: 13px; line-height: 1.6; }
#preapply-app .birth-picks { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
#preapply-app .birth-picks > select { width: 100%; min-width: 0; margin: 0; }

/* D-CC4 e2df863d (A9 · bundle 85 AP1): the four documents above the consent boxes are one line of words, as the bundle draws
   them (14 in ink, each 44 high to press, ' · ' between); the page's framed 52px button rule does not take them. */
#preapply-app p[data-role="consent-docs"] { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; margin: 4px 0 8px; color: var(--mn-ink2); font-size: 14px; line-height: 1.6; }
#preapply-app p[data-role="consent-docs"] > button.consent-doc-link { display: inline-flex; align-items: center; width: auto; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--mn-charcoal); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
#preapply-app p[data-role="consent-docs"] > button.consent-doc-link:hover { background: none; text-decoration-thickness: 2px; }
#preapply-app p[data-role="consent-docs"] > button.consent-doc-link:focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 2px; }

/* D-CC5 ced77a71 (A2 · A3 · 2473; its class names of 17:48): the summary on step 5 (a fold in the step, the side column on a
   wide screen) and the next things on step 6. The page's own h2 (28 serif, a dark rule 24 above it, 56 over that) is the
   steps' old section head: in the column the head is a quiet 15 · 700, the column's own dark rule above it. The summary is
   rows of 84 + the rest between hairlines (the bundle's AP5 -pc); the next things a list of names over their lines. On a
   wide screen the fold stays out, the column showing the same rows. */
#preapply-app .apply-aside h2 { margin: 0 0 8px; padding: 0; border: 0; font-family: var(--mn-font-sans); font-size: 15px; font-weight: 700; line-height: 1.45; }
#preapply-app dl.apply-summary-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 0; margin: 0; font-size: 14px; line-height: 1.6; }
#preapply-app dl.apply-summary-list > :is(dt, dd) { margin: 0; padding: 11px 0; border-top: 1px solid var(--mn-line); }
#preapply-app dl.apply-summary-list > dt { padding-right: 12px; color: var(--mn-ink2); font-weight: 400; }
#preapply-app dl.apply-summary-list > dd { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#preapply-app details.apply-pay-summary { border-top: 1px solid var(--mn-line); border-bottom: 1px solid var(--mn-line); }
#preapply-app details.apply-pay-summary > summary { display: flex; align-items: center; min-height: 48px; font-size: 15px; font-weight: 600; cursor: pointer; }
#preapply-app details.apply-pay-summary[open] > summary { margin-bottom: 4px; }
#preapply-app details.apply-pay-summary a.apply-summary-edit, #preapply-app .apply-aside a.apply-aside-edit { display: inline-flex; align-items: center; min-height: 44px; color: var(--mn-charcoal); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
#preapply-app ol.apply-aside-next { margin: 0; padding: 0; list-style: none; }
#preapply-app ol.apply-aside-next > li { padding: 11px 0; border-top: 1px solid var(--mn-line); font-size: 14px; line-height: 1.6; }
#preapply-app ol.apply-aside-next > li > strong { display: block; font-size: 15px; font-weight: 700; }
#preapply-app ol.apply-aside-next > li > span { color: var(--mn-ink2); }
#preapply-app .apply-pay-hold { font-size: 15px; font-weight: 600; }
@media (min-width: 1024px) {
  #preapply-app .apply-step:has(> .apply-aside) details.apply-pay-summary { display: none; }
}

/* D-CC4 d57aa790 (A7 · bundle 85 AP2p): the scores confirmed in the free diagnosis read as a card under step 2's sentence —
   on paper in a hairline frame, its head (the stage and the day) 13 grey, a subject a line at 15 with tabular figures. */
#preapply-app .preapply-score-loaded { margin: 8px 0 0; padding: 14px 16px; border: 1px solid var(--mn-line); background: var(--mn-paper); }
#preapply-app .preapply-score-loaded > p.preapply-score-stage { margin: 0 0 6px; color: var(--mn-ink2); font-size: 13px; line-height: 1.6; }
#preapply-app .preapply-score-loaded .preapply-score-summary > p { font-size: 15px; line-height: 1.7; font-variant-numeric: tabular-nums; }

/* REQ#H-1122-1819 (X-Codex2 둘째 눈 APPLY85_GAP2 4f180639 '고침', apply.css 몫 여섯; bundle 85 AP1 ~ AP6 · AW5). */
/* ① the copy rows of step 5 on a phone: name and value, then 복사 on the same line, a long value wrapping in its cell. */
@media (max-width: 639px) {
  #preapply-app .apply-pay .application-copy-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  #preapply-app .apply-pay .application-copy-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
  #preapply-app .apply-pay .application-copy-action { justify-content: flex-end; }
}
/* ② a step gone by is a button and took the page's 52px button and its 12px under it: every cell of the bar is the same
   44 high with nothing under it. */
#preapply-app .apply-band-bar button.apply-band-step { min-height: 44px; margin: 0; padding: 0; font-size: 13px; }
/* Owner, 11/23 19:3x (REQ#H-1123-1930 ㉑): after an application, '추가 신청이 필요하신가요?' is as wide and as tall as '신청 조회' above
   it, with a hairline over it again. */
#preapply-app .apply-step > .sibling-toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 33px 0 0; }
#preapply-app .apply-step > .sibling-toggle::before { content: ''; position: absolute; top: -17px; right: 0; left: 0; border-top: 1px solid var(--mn-line); }
/* Owner, 11/23 19:3x (REQ#H-1123-1930 ⑭): on a phone or a tablet too the band stood in the steps' 430 column while the applicant's
   box under it took the page's 720. While the six steps are offered the page is one column at every width: the title, the
   applicant's box, the band and the step share the steps' own column (430; 560 from 1024; 960 beside a column, below). */
main.apply-page:has(#preapply-app > .apply-flow[data-role="apply-band"]:not([hidden])) > :is(h1, #entry-status, #preapply-app) { max-width: 430px; }
/* ③ on a wide screen the bar is the bundle's 1120 band with each step's number and name (AP5 · AP6 -pc); the phone's line
   under it (n / 6 · the name · steps left) is the phone's. */
@media (min-width: 1024px) {
  /* Owner, 11/23 19:2x (원장 2541 · REQ#H-1123-1925b ⑭): the bar no longer stands out of the page's column (it was the bundle's
     1120 band and looked broken over the narrow body). It is the column of the step under it, with the same left edge: 560, or
     960 for the steps with a column beside them (the same condition as the rule at 596). */
  #preapply-app:has(.apply-step > .apply-aside) .apply-flow[data-role="apply-band"] { max-width: 960px; }
  main.apply-page:has(#preapply-app > .apply-flow[data-role="apply-band"]:not([hidden])) > :is(h1, #entry-status, #preapply-app) { max-width: 560px; }
  main.apply-page:has(#preapply-app > .apply-flow[data-role="apply-band"]:not([hidden])):has(.apply-step > .apply-aside) > :is(h1, #entry-status, #preapply-app) { max-width: 960px; }
  .apply-band-bar { counter-reset: band; }
  .apply-band-bar > li { counter-increment: band; }
  .apply-band-step > .apply-band-label::before { content: counter(band) "\00A0\00A0"; font-variant-numeric: tabular-nums; }
  .apply-band > .apply-band-row { display: none; }
}
/* ④ the page's old section head (#preapply-app h2: 56 over, a dark rule, 28 serif) took the paid check's head and step 6's
   '신청 내용': the check's head is 22 with nothing over it, '신청 내용' a small bold head. */
#preapply-app dialog.apply-paid > h2 { margin: 0 0 16px; padding: 0; border: 0; font-family: var(--mn-font-sans); font-size: 22px; font-weight: 700; line-height: 1.4; }
#preapply-app .apply-received h2 { margin: 8px 0 0; padding: 0; border: 0; font-family: var(--mn-font-sans); font-size: 15px; font-weight: 700; line-height: 1.45; }
/* ⑤ 탐구 1 · 2 on a phone: the name, the list, the score and its maximum on one line (the bundle's AP2), not the list
   filling the first line and the score under it. */
@media (max-width: 639px) {
  .preapply-score-fields .row:has(> select[name^="inquiry"]) { grid-template-columns: auto minmax(0, 1fr) 72px auto; }
  .preapply-score-fields .row:has(> select[name^="inquiry"]) > :is(strong, select, input, .out-of) { grid-column: auto; }
}
/* ⑥ after the application: 나중에 입금할게요 is a quiet line of words under 입금했습니다, and 신청 조회 the filled 56px button. */
#preapply-app .apply-pay-actions > button.apply-later { min-height: 44px; border: 0; background: none; color: var(--mn-charcoal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
#preapply-app .apply-pay-actions > button.apply-later:hover { background: none; text-decoration-thickness: 2px; }
#preapply-app :is(.apply-received-actions, .apply-wait) .apply-lookup { display: flex; width: 100%; min-height: 56px; margin: 0; padding: 0 22px; border: 1px solid var(--mn-burgundy); border-radius: var(--mn-radius); background: var(--mn-burgundy); color: var(--mn-ivory); font-size: 16px; font-weight: 600; text-decoration: none; }
#preapply-app :is(.apply-received-actions, .apply-wait) .apply-lookup:hover { border-color: var(--mn-burgundy-deep); background: var(--mn-burgundy-deep); }
#preapply-app :is(.apply-received-actions, .apply-wait) .apply-lookup:focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 2px; }
/* D-CC4 8e8bee32 (둘째 눈 ③ · ④): the chosen time, now a line after the memo outside the calendar, keeps the calendar's
   '고른 상담' box; the consent sheet ends with a 닫기 the sheet's whole width (the bundle's AP1s), over the safe area. */
#preapply-app [data-role="picked-summary"] > .slot-calendar-selection { display: grid; gap: 2px; margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--mn-line); background: var(--mn-paper); }
#preapply-app [data-role="picked-summary"] > .slot-calendar-selection > strong { color: var(--mn-ink2); font-size: 13px; font-weight: 400; line-height: 1.6; }
#preapply-app [data-role="picked-summary"] > .slot-calendar-selection > p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.consent-sheet-foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mn-line); }
#preapply-app .consent-sheet .consent-sheet-foot > button.consent-sheet-end { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; }
/* D-CC4 5b3b137f (막음 B2 · 원장 2479): what a minor confirms stands open under its box — the whole row's width, in from the
   box's text, at reading size on paper in a hairline frame (the approved words as they are). */
#preapply-app .consent-row > #preapply-minor-confirmation { grid-column: 1 / -1; margin: 0 0 4px 32px; padding: 12px 14px; border: 1px solid var(--mn-line); background: var(--mn-paper); font-size: 14px; line-height: 1.7; }
/* X-Codex2 적어 둠 #25 (허브 18:50 · bundle 85 AP6): a step done has a check in its filled ring, and the line it has passed
   is dark; now and next as before, and '(완료)' still read. The check is drawn, not read (its alternative text is empty). */
.apply-progress > li[data-step-state="done"]::before { content: "\2713"; content: "\2713" / ""; display: flex; align-items: center; justify-content: center; color: var(--mn-ivory); font-size: 13px; font-weight: 700; line-height: 1; }
.apply-progress > li[data-step-state="done"]:not(:last-child)::after { background: var(--mn-charcoal); }
/* X-Codex2 적어 둠 #22 (허브 18:50 · P 18:51 '번호' · '성향' · '설명'): the tendency guide as a table with its column
   heads. It stays the column's width at 320 (fixed columns: the number 44, the name 96, the description the rest, words
   wrapping in their cells), heads 13 grey over a dark rule, rows between hairlines. */
#preapply-app section[aria-label="지원 성향 설명"] table { width: 100%; margin: 12px 0 16px; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
#preapply-app section[aria-label="지원 성향 설명"] th { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--mn-charcoal); color: var(--mn-ink2); font-size: 13px; font-weight: 600; text-align: left; vertical-align: bottom; }
#preapply-app section[aria-label="지원 성향 설명"] td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--mn-line); vertical-align: top; overflow-wrap: anywhere; }
#preapply-app section[aria-label="지원 성향 설명"] :is(th, td):first-child { width: 44px; font-variant-numeric: tabular-nums; }
#preapply-app section[aria-label="지원 성향 설명"] :is(th, td):nth-child(2) { width: 96px; color: var(--mn-charcoal); font-weight: 600; }
#preapply-app section[aria-label="지원 성향 설명"] th:nth-child(2) { color: var(--mn-ink2); }
