:root{
  --pe-setup-navy:#123553;
  --pe-setup-blue:#168ee0;
  --pe-setup-green:#10b981;
  --pe-setup-line:#d8e4ed;
  --pe-setup-soft:#f1f7fb;
  --pe-setup-text:#18344c;
  --pe-setup-muted:#6f8495;
}
html.pe-setup-probing body>*{visibility:hidden!important}
html.pe-setup-active,body.pe-setup-active{overflow:hidden!important}
body.pe-setup-active>#peSetupRoot{visibility:visible!important}
#peSetupRoot{
  position:fixed;
  inset:0;
  z-index:2147483647;
  overflow:auto;
  overscroll-behavior:contain;
  background:#edf4f8;
  color:var(--pe-setup-text);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  -webkit-font-smoothing:antialiased;
}
#peSetupRoot *{box-sizing:border-box}
#peSetupRoot button,#peSetupRoot input{font:inherit}
#peSetupRoot button{-webkit-tap-highlight-color:transparent;cursor:pointer}
.peSetupPage{min-height:100%;background:linear-gradient(180deg,#f8fbfd 0,#eef5f9 55%,#e8f1f6 100%)}
.peSetupTop{
  height:76px;
  padding:0 max(24px,calc((100vw - 1120px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#fff;
  border-bottom:1px solid var(--pe-setup-line);
  box-shadow:0 5px 20px rgba(35,71,98,.06);
}
.peSetupBrand{display:flex;align-items:center;gap:12px}
.peSetupBrand>span{
  width:44px;height:44px;border-radius:15px;display:grid;place-items:center;
  background:linear-gradient(145deg,#168ee0,#096fc0);color:#fff;font-size:15px;font-weight:900;
  box-shadow:0 8px 18px rgba(22,142,224,.24);
}
.peSetupBrand div{display:flex;flex-direction:column;gap:1px}
.peSetupBrand strong{font-size:19px;line-height:1.2;color:#153650}
.peSetupBrand small{font-size:12px;color:#7b8d9c;font-weight:700}
.peSetupShell{width:min(1080px,calc(100% - 40px));margin:0 auto;padding:36px 0 24px}
.peSetupIntro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 4px 26px}
.peSetupIntro>div:first-child>span{display:block;margin-bottom:5px;color:#168ee0;font-size:13px;font-weight:900;letter-spacing:.04em}
.peSetupIntro h1{margin:0;font-size:34px;line-height:1.25;color:#123553;letter-spacing:-.04em}
.peSetupIntro p{margin:8px 0 0;color:#718696;font-size:15px}
.peSetupProgress{
  list-style:none;margin:0 0 14px;padding:12px 18px;display:grid;grid-template-columns:repeat(4,1fr);
  background:#fff;border:1px solid var(--pe-setup-line);border-radius:16px;
}
.peSetupProgress li{position:relative;min-height:46px;display:flex;align-items:center;justify-content:center;gap:9px;color:#98a8b5}
.peSetupProgress li:not(:last-child)::after{content:"";position:absolute;right:-17%;width:34%;height:2px;background:#e2eaf0}
.peSetupProgress li>span{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#eaf0f4;color:#8395a4;font-size:12px;font-weight:900}
.peSetupProgress li>b{font-size:13px}
.peSetupProgress li.active,.peSetupProgress li.done{color:#1478bd}
.peSetupProgress li.active>span{background:#168ee0;color:#fff;box-shadow:0 4px 12px rgba(22,142,224,.26)}
.peSetupProgress li.done>span{background:#e3f7ef;color:#0a9c6b}
.peSetupProgress li.done::after{background:#8bd9bd}
.peSetupCard{
  min-height:530px;padding:30px;background:#fff;border:1px solid var(--pe-setup-line);border-radius:20px;
  box-shadow:0 18px 42px rgba(43,77,102,.08);
}
.peSetupSectionHead{display:flex;align-items:center;gap:14px;padding-bottom:22px;border-bottom:1px solid #e4ebf0}
.peSetupIcon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#eef8ff;font-size:25px;flex:none}
.peSetupSectionHead h2{margin:0;color:#153650;font-size:23px;letter-spacing:-.025em}
.peSetupSectionHead p{margin:5px 0 0;color:#778a99;font-size:13px;word-break:keep-all}
.peSetupFormGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:26px}
.peSetupField{min-width:0;display:flex;flex-direction:column;gap:8px}
.peSetupField>span{font-size:13px;font-weight:800;color:#39566d;text-align:center}
.peSetupField input,.peSetupAddRow input,.peSetupPeriod input{
  width:100%;height:52px;padding:0 14px;border:1px solid #cfdbe4;border-radius:12px;
  background:#fff;color:#18344c;outline:none;text-align:center;font-weight:700;
  transition:border-color .16s,box-shadow .16s;
}
.peSetupField input:focus,.peSetupAddRow input:focus,.peSetupPeriod input:focus{
  border-color:#168ee0;box-shadow:0 0 0 4px rgba(22,142,224,.11);
}
.peSetupField input::placeholder,.peSetupAddRow input::placeholder{color:#abb8c2;font-weight:500}
.peSetupField small{font-size:11px;color:#7d909f;text-align:center;word-break:keep-all}
.peSetupWide{grid-column:1/-1}
.peSetupYearField{max-width:360px}
.peSetupInfo,.peSetupWarning{
  margin-top:24px;padding:13px 16px;border-radius:12px;background:#f2f8fc;color:#577183;
  font-size:12px;font-weight:700;text-align:center;word-break:keep-all;
}
.peSetupCurriculum{display:flex;flex-direction:column;gap:18px}
.peSetupCurriculum>.peSetupSectionHead{margin-bottom:0}
.peSetupBlock{padding:20px;border:1px solid #dbe5ec;border-radius:16px;background:#fbfdfe}
.peSetupBlockHead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.peSetupBlockHead h3{margin:0;font-size:16px;color:#183a54}
.peSetupBlockHead p{margin:4px 0 0;color:#7e909e;font-size:12px;word-break:keep-all}
.peSetupBlockHead>b{padding:7px 11px;border-radius:999px;background:#edf6fb;color:#1680c8;font-size:11px;white-space:nowrap}
.peSetupSemesterChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.peSetupToggle{
  min-height:48px;border:1px solid #d2dde5;border-radius:12px;background:#fff;color:#51697c;
  display:flex;align-items:center;justify-content:center;gap:9px;font-weight:800;
}
.peSetupToggle span,.peSetupGradeToggle span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e7edf2;color:#687f90}
.peSetupToggle.active{border-color:#55b9ef;background:#eff9ff;color:#1174b7;box-shadow:inset 0 0 0 1px #55b9ef}
.peSetupToggle.active span{background:#16a975;color:#fff}
.peSetupPeriodGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.peSetupPeriod{min-width:0;margin:0;padding:13px 14px 15px;border:1px solid #d9e4eb;border-radius:13px;background:#fff}
.peSetupPeriod legend{padding:0 7px;color:#16805f;font-size:12px;font-weight:900}
.peSetupPeriod>label{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:8px;margin-top:8px}
.peSetupPeriod>label>span{text-align:center;font-size:11px;font-weight:800;color:#536c7e}
.peSetupPeriod input{height:42px;font-size:12px}
.peSetupGradeList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.peSetupGrade{min-width:0;padding:12px;border:1px solid #dce5eb;border-radius:13px;background:#f5f8fa;opacity:.68}
.peSetupGrade.active{background:#fff;opacity:1;border-color:#bee0f2}
.peSetupGradeToggle{
  width:100%;height:38px;margin:0 0 10px;border:0;border-radius:10px;background:transparent;color:#4f6577;
  display:flex;align-items:center;justify-content:center;gap:7px;
}
.peSetupGrade.active .peSetupGradeToggle{color:#1478b9}
.peSetupGrade.active .peSetupGradeToggle span{background:#16a975;color:#fff}
.peSetupClassGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.peSetupClassGrid button{
  min-width:0;height:34px;padding:0;border:1px solid #dae3e9;border-radius:8px;background:#fff;color:#718493;
  font-size:11px;font-weight:800;text-align:center;
}
.peSetupClassGrid button.active{background:#168ee0;color:#fff;border-color:#168ee0}
.peSetupClassGrid button:disabled{cursor:not-allowed}
.peSetupTwinBlocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.peSetupAddRow{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:8px}
.peSetupAddRow input{height:44px}
.peSetupAddRow button{
  height:44px;border:0;border-radius:10px;background:#168ee0;color:#fff;font-size:12px;font-weight:900;text-align:center;
}
.peSetupChips{min-height:48px;margin-top:12px;display:flex;align-content:flex-start;flex-wrap:wrap;gap:7px}
.peSetupChips>span{height:34px;padding:0 4px 0 12px;display:flex;align-items:center;gap:5px;border:1px solid #cee1ed;border-radius:999px;background:#f0f8fc}
.peSetupChips b{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34566e;font-size:12px}
.peSetupChips button{width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:#7e93a2;font-size:18px;line-height:1;text-align:center}
.peSetupChips>p{width:100%;margin:11px 0;color:#9baab5;font-size:12px;text-align:center}
.peSetupReviewGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:26px}
.peSetupReviewGrid article{min-width:0;min-height:120px;padding:17px;border:1px solid #dae5ec;border-radius:14px;background:#fbfdfe;text-align:center}
.peSetupReviewGrid article>span{display:block;color:#7b8e9c;font-size:11px;font-weight:800}
.peSetupReviewGrid article>b{display:block;margin-top:9px;color:#163a55;font-size:16px;overflow-wrap:anywhere}
.peSetupReviewGrid article>p{margin:7px 0 0;color:#688092;font-size:12px;line-height:1.5;word-break:keep-all}
.peSetupConsent{margin-top:24px;padding:14px 16px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #cfe0ea;border-radius:12px;background:#f5fafc;color:#35566e;font-size:13px;font-weight:800;text-align:center}
.peSetupConsent input{width:19px;height:19px;accent-color:#168ee0}
.peSetupMessage{margin:18px 0 0;padding:12px 14px;border-radius:11px;text-align:center;font-size:12px;font-weight:800}
.peSetupMessage.error{background:#fff0f0;color:#cb3a3a;border:1px solid #ffd0d0}
.peSetupMessage.info{background:#eef8ff;color:#1377ba;border:1px solid #cce9fa}
.peSetupActions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e5ecf1}
.peSetupActions button{
  min-height:50px;border-radius:12px;font-weight:900;text-align:center;display:flex;align-items:center;justify-content:center;
}
.peSetupBack{border:1px solid #cfdbe4;background:#fff;color:#516a7c}
.peSetupNext{border:0;background:linear-gradient(135deg,#168ee0,#0b75c4);color:#fff;box-shadow:0 8px 18px rgba(22,142,224,.2)}
.peSetupNext:disabled{opacity:.55;cursor:wait}
.peSetupFooter{padding:0 20px 22px;color:#94a4af;font-size:11px;text-align:center}
.peSetupLoading{display:grid;place-items:center}
.peSetupLoading>div{display:flex;flex-direction:column;align-items:center;gap:14px;color:#446277}
.peSetupLoading span{width:36px;height:36px;border:4px solid #dbe9f2;border-top-color:#168ee0;border-radius:50%;animation:peSetupSpin .7s linear infinite}
@keyframes peSetupSpin{to{transform:rotate(360deg)}}
.peSetupCompletePage,.peSetupErrorPage{display:grid;place-items:center;padding:24px}
.peSetupComplete,.peSetupErrorCard{
  width:min(540px,100%);padding:42px 34px;background:#fff;border:1px solid var(--pe-setup-line);border-radius:22px;
  box-shadow:0 22px 60px rgba(34,72,99,.14);text-align:center;
}
.peSetupCompleteIcon,.peSetupErrorCard>span{width:72px;height:72px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:#e5f8f0;color:#0da874;font-size:38px;font-weight:900}
.peSetupComplete>span{color:#0d9870;font-size:13px;font-weight:900}
.peSetupComplete h1,.peSetupErrorCard h1{margin:7px 0 9px;color:#153650;font-size:25px;word-break:keep-all}
.peSetupComplete>p,.peSetupErrorCard p{margin:0;color:#718696;font-size:14px;line-height:1.6;word-break:keep-all}
.peSetupComplete>div:not(.peSetupCompleteIcon){margin:23px 0;padding:14px;border-radius:12px;background:#f1f7fa;display:flex;justify-content:center;gap:12px}
.peSetupComplete>div span{color:#708492}.peSetupComplete>div strong{color:#153b56}
.peSetupComplete button,.peSetupErrorCard button{width:100%;height:52px;border:0;border-radius:12px;background:#168ee0;color:#fff;font-weight:900;text-align:center}
.peSetupComplete small{display:block;margin-top:12px;color:#94a3ae}
.peSetupErrorCard>span{background:#fff2e7;color:#e88722}
.peSetupErrorCard button{margin-top:23px}

@media(max-width:900px){
  .peSetupShell{width:min(100% - 28px,820px);padding-top:24px}
  .peSetupIntro{align-items:stretch}
  .peSetupGradeList{grid-template-columns:1fr}
  .peSetupClassGrid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .peSetupTwinBlocks{grid-template-columns:1fr}
  .peSetupCard{padding:24px}
}
@media(max-width:640px){
  .peSetupTop{height:66px;padding:0 14px}
  .peSetupBrand>span{width:39px;height:39px;border-radius:13px}
  .peSetupBrand strong{font-size:17px}
  .peSetupShell{width:100%;padding:16px 12px}
  .peSetupIntro{display:block;margin:0 3px 16px;text-align:center}
  .peSetupIntro h1{font-size:27px}.peSetupIntro p{font-size:13px;word-break:keep-all}
  .peSetupProgress{padding:9px 5px;border-radius:13px}
  .peSetupProgress li{gap:0}.peSetupProgress li>b{display:none}
  .peSetupProgress li:not(:last-child)::after{right:-25%;width:50%}
  .peSetupCard{min-height:0;padding:18px 14px;border-radius:16px}
  .peSetupSectionHead{gap:11px;padding-bottom:16px}
  .peSetupIcon{width:43px;height:43px;border-radius:13px;font-size:21px}
  .peSetupSectionHead h2{font-size:19px}.peSetupSectionHead p{font-size:11px}
  .peSetupFormGrid{grid-template-columns:1fr;gap:14px;margin-top:19px}
  .peSetupYearField{max-width:none}
  .peSetupBlock{padding:14px 11px}
  .peSetupBlockHead{align-items:flex-start}.peSetupBlockHead p{max-width:230px}
  .peSetupPeriodGrid{grid-template-columns:1fr}
  .peSetupPeriod>label{grid-template-columns:48px minmax(0,1fr)}
  .peSetupClassGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .peSetupReviewGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .peSetupReviewGrid article{min-height:110px;padding:14px 10px}
  .peSetupActions{position:sticky;bottom:-18px;margin-inline:-14px;padding:14px;background:#fff;border-radius:0 0 16px 16px;z-index:2}
  .peSetupComplete,.peSetupErrorCard{padding:34px 20px}
}
@media(max-width:380px){
  .peSetupSemesterChoices{grid-template-columns:1fr}
  .peSetupReviewGrid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  #peSetupRoot *{scroll-behavior:auto!important;animation-duration:.01ms!important}
}
