* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Malgun Gothic", sans-serif; color: #1f2937; background: #eef2f7; }
main { width: min(880px, calc(100% - 32px)); margin: 24px auto; padding: 28px; background: #fff; border: 1px solid #d7dee8; border-radius: 10px; }
.page-header { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 20px; text-align: center; }
.logo-image { display: block; width: 215px; max-width: 64vw; height: auto; }
h1 { margin: 0; color: #17283b; font-size: 28px; line-height: 1.4; word-break: keep-all; }
h1 .term { display: block; color: #0f4c81; font-size: .72em; margin-bottom: 3px; }
.education-card { display: grid; gap: 10px; padding: 16px; border: 1px solid #c9d7e6; border-radius: 8px; background: #f4f8fc; line-height: 1.65; }
.education-item { display: grid; grid-template-columns: 115px 1fr; gap: 12px; }
.education-item strong { color: #0b4779; }
.education-item b { color: #17283b; }
.notice { margin: 0; padding-top: 10px; border-top: 1px solid #d7e2ed; color: #475569; font-size: 15px; }
.period-status { margin: 12px 0; color: #0f4c81; line-height: 1.5; font-size: 15px; text-align: center; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 13px 12px; border: 1px solid transparent; border-radius: 6px; font: 700 17px Arial, "Malgun Gothic", sans-serif; cursor: pointer; }
.mode-tabs button { background: #eef2f6; color: #475569; border-color: #c5ced9; }
.mode-tabs button.active, .primary { background: #0f4c81; color: #fff; }
.primary:hover, .mode-tabs button.active:hover { background: #0b3d68; }
button:disabled { opacity: .6; cursor: not-allowed; }
:focus-visible { outline: 3px solid #78aadd; outline-offset: 3px; }
.panel { padding: 20px; border: 1px solid #d7e0ec; border-radius: 8px; background: #fcfdff; }
h2 { font-size: 21px; margin: 0 0 18px; color: #17283b; }
.panel-guide { margin: -5px 0 20px; font-size: 15px; line-height: 1.6; color: #475569; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input, select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #b8c2d1; border-radius: 6px; font-size: 16px; color: #1f2937; background: #fff; }
.field-help { color: #64748b; font-size: 13px; line-height: 1.5; margin: 7px 0 0; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 18px; padding: 14px; background: #f0f6fd; border: 1px solid #b8cbe0; border-radius: 7px; line-height: 1.6; font-size: 15px; }
.agree input { flex: 0 0 20px; width: 20px; min-height: 20px; margin: 4px 0 0; }
.agree strong { display: block; color: #0f4c81; margin-bottom: 4px; }
form > .primary { margin-top: 20px; min-height: 54px; font-size: 18px; }
.result { margin: 16px 0 0; white-space: pre-line; text-align: center; line-height: 1.6; font-weight: 700; overflow-wrap: anywhere; }
.result:empty { display: none; }
.error { color: #c52b25; }
.success { color: #087566; }
.school-field { position: relative; }
.school-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px; max-height: 260px; overflow-y: auto; padding: 4px 0; background: #fff; border: 1px solid #b8c2d1; border-radius: 6px; box-shadow: 0 8px 20px #1f293726; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; }
.school-option { display: block; border: 0; border-radius: 0; padding: 12px 14px; text-align: left; background: #fff; color: #111827; font-size: 16px; font-weight: 400; touch-action: pan-y; }
.school-option:hover, .school-option:focus, .school-option.active { background: #e4f1f0; color: #075d59; }
.school-empty { padding: 14px; color: #6b7280; }
.school-manual-option { width: calc(100% - 8px); margin: 4px; padding: 12px 14px; border: 0; border-top: 1px solid #d7dee8; background: #f7f9fc; color: #0f4c81; text-align: left; font-size: 15px; line-height: 1.45; touch-action: pan-y; }
.no-match .school-empty { color: #b42318; font-weight: 700; text-align: center; }
.no-match .school-manual-option { border: 1px solid #8eabc5; text-align: center; background: #eef6fd; }
.school-manual-guide { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: #5b6573; }
.school-list-return { width: auto; margin-top: 7px; padding: 8px 11px; border: 1px solid #aebdcb; background: #fff; color: #0f4c81; font-size: 14px; }
.cancel-detail { margin-top: 18px; padding: 16px; border: 1px solid #d7e0ec; border-radius: 7px; line-height: 1.8; overflow-wrap: anywhere; }
.cancel-detail p { white-space: pre-line; }
.danger { background: #b42318; color: #fff; }
.secondary { background: #fff; color: #1f2937; border-color: #b8c2d1; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: center; padding: 18px; background: #11182799; }
.modal { width: min(490px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; border-radius: 12px; padding: 26px; background: #fff; }
.modal h2 { text-align: center; color: #087566; line-height: 1.5; }
.modal h2.error { color: #c52b25; }
.completion-details { white-space: pre-line; padding: 16px; line-height: 1.9; background: #f4f8fc; border: 1px solid #d7e0ec; border-radius: 7px; overflow-wrap: anywhere; }
.modal-notice { line-height: 1.65; color: #475569; font-size: 15px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.hidden, [hidden] { display: none !important; }
@media (max-width: 600px) {
  main { width: calc(100% - 20px); margin: 10px auto; padding: 20px 14px; }
  h1 { font-size: 23px; }
  .education-item { grid-template-columns: 1fr; gap: 1px; }
  .education-card { padding: 13px; font-size: 15px; }
  .panel { padding: 18px 13px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .mode-tabs { gap: 7px; }
  .mode-tabs button { padding: 12px 6px; font-size: 16px; }
  .modal { padding: 22px 18px; }
}
