/* 로그인 뒤 화면의 디자인입니다. 휴대폰에서 정리한 색, 글꼴, 카드, 단추, 입력칸을 PC에도 쓰고,
   PC에서는 위쪽 흰 머리말 띠 아래로 칸을 넓게 펼칩니다.
   인트로, 로그인, PDF·인쇄는 동화풍을 유지합니다. 그래서 모든 규칙을 @media screen 안에 두고,
   로그인 뒤에만 보이는 #app과 #helperView 같은 화면, 또는 body.app-open(mobile-shell.js가 붙임) 아래에만 적용합니다.
   1부는 모든 너비, 2부는 휴대폰 배치, 3부는 PC와 태블릿입니다. */

/* ── 1부: 모든 너비 ── */
@media screen {
  /* 알림 칸 */
  body.sb-theme.curriculum-app.readable-app.app-open :is(#status, .status) { font-weight: 500; color: var(--ms-amber); background: var(--ms-amber-soft); border: 0; border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(.status.ok, #status.ok) { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open :is(.status.error, #status.error) { color: var(--ms-coral); background: var(--ms-coral-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open :is(.status.loading, #status.loading) { color: var(--ms-muted); background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .pdf-making__meter { height: 8px; background: var(--ms-track); border: 0; border-radius: 4px; }
  body.sb-theme.curriculum-app.readable-app.app-open .pdf-making__meter i { background: var(--ms-meter); border-right: 0; animation: pdfMakingFill 16s cubic-bezier(.15, .7, .3, 1) both; }

  /* 등급·유형 표시 */
  body.sb-theme.curriculum-app.readable-app.app-open .sh-level { padding: 0 8px; font-weight: 700; border: 0; border-radius: 7px; }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-level--core { color: var(--ms-coral); background: var(--ms-coral-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-level--recommended { color: var(--ms-amber); background: var(--ms-amber-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-level--suggested { color: var(--ms-mint); background: var(--ms-mint-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-level--advanced { color: var(--ms-violet); background: var(--ms-violet-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-type { padding: 0 7px; font-weight: 600; border: 0; border-radius: 7px; }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-offer { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-offer--fixed { color: var(--ms-green); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-offer--none { color: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-list li::marker { color: var(--ms-muted); }

  /* ── 과목선택도우미 ── */
  body.sb-theme.curriculum-app.readable-app #helperView { color: var(--ms-text); }
  body.sb-theme.curriculum-app.readable-app #helperView :is(h3, h4, h5) { color: var(--ms-ink); }
  body.sb-theme.curriculum-app.readable-app #app #helperView :is(input, select) { color: var(--ms-ink); background-color: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #app #helperView :is(input, select):focus { border-color: var(--ms-ink); box-shadow: 0 0 0 1px var(--ms-ink); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs { gap: 2px; padding: 3px; background: var(--ms-track); border-radius: 13px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab[aria-pressed] { color: var(--ms-muted); background: none; border: 0; border-radius: 10px; box-shadow: none; transform: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab[aria-pressed="true"] { color: var(--ms-ink); background: var(--ms-card); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tab strong { font-weight: 600; letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tab[aria-pressed="true"] strong { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-year label { color: var(--ms-muted); font-size: calc(14px * var(--reading-scale, 1)); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context.is-set { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context.is-set::before { display: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__text span { font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__text strong { color: var(--ms-ink); font-weight: 700; letter-spacing: -.02em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-link { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #app #helperView .sh-search input { background: var(--ms-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6480' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.500-3.500'/%3E%3C/svg%3E") 14px center / 18px no-repeat; padding-left: 42px; border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chip { color: var(--ms-text); font-weight: 600; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 999px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chip:hover { background: var(--ms-soft); border-color: var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chip[aria-pressed="true"] { color: var(--ms-fill-ink); background: var(--ms-fill); border-color: var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track h3 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track p { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track__topics i { color: var(--ms-text); background: var(--ms-soft); border: 0; border-radius: 7px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-count { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app :is(#helperView, #helperSubjectModal) .sh-empty { color: var(--ms-muted); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-empty--action strong { color: var(--ms-ink); font-weight: 700; }

  /* 학과 카드 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major:nth-child(3n + 2) { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; transform: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major:hover { background: var(--ms-card); border-color: #d9d0ba; box-shadow: none; transform: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major.is-chosen { background: var(--ms-card); border-color: var(--ms-fill-line); box-shadow: inset 0 0 0 1px var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major__track { color: var(--ms-green); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major strong { color: var(--ms-ink); font-weight: 700; letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major__hint { color: var(--ms-coral); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major__intro { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major__depts { color: var(--ms-text); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major__levels { border-top: 0; }

  /* 학과 상세 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-back { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-back:hover { color: var(--ms-ink); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__track { color: var(--ms-green); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head h3 { letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head p { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chosen { color: var(--ms-green); font-weight: 700; background: var(--ms-green-soft); border: 0; border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs::before,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs::after { display: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__head h4 { letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__head p { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__group { border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__label span:not(.sh-level) { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__label b { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subject,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__group--core .sh-subject,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__group--recommended .sh-subject { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subject:hover { background: var(--ms-soft); border-color: var(--ms-line); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subject__name { color: var(--ms-ink); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-footnote { color: var(--ms-muted); border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-about__card { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-about__card h4 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-depts > h4 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept[open] > summary { background: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept > summary strong { color: var(--ms-ink); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept > summary strong::after { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept > summary span { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept__body { border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-inline { color: var(--ms-text); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-depts > h4 span { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-offers { color: var(--ms-text); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-offers b { color: var(--ms-ink); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView :is(.sh-rest-offers, .sh-major-nation) { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView :is(.sh-rest-offers, .sh-major-nation) h5 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation { border: 1px solid var(--ms-line); border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation > summary { color: var(--ms-ink); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation > summary::after { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation > summary b { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation dt { color: var(--ms-muted); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation dd { color: var(--ms-text); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-nation dd i, body.sb-theme.curriculum-app.readable-app #helperView .sh-nation__note { color: var(--ms-muted); }

  /* 과목 찾기 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-segment { gap: 2px; padding: 3px; background: var(--ms-track); border: 0; border-radius: 13px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-segment button { color: var(--ms-muted); font-weight: 600; background: none; border-radius: 10px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-segment button[aria-pressed="true"] { color: var(--ms-ink); font-weight: 700; background: var(--ms-card); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-filters label { color: var(--ms-muted); font-size: calc(13px * var(--reading-scale, 1)); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-result-group h4 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-rows { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-rows__head { font-weight: 600; background: var(--ms-soft); border-bottom: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row + .sh-row { border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row:hover { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row__name { color: var(--ms-ink); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row__track { color: var(--ms-violet); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row__summary { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row__credits { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row__go { color: #a9a493; }

  /* 모의수강신청 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary::before,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-preview::before { display: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary h3 { letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-stamp { padding: 2px 10px; color: var(--ms-coral); font-size: calc(13px * var(--sh-s)); font-weight: 700; letter-spacing: 0; background: var(--ms-coral-soft); border: 0; border-radius: 999px; rotate: none; opacity: 1; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-stamp.is-done { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact.is-ok { background: var(--ms-soft); border: 0; border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact.is-over { background: var(--ms-coral-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact dt { font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact dd { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact dd b { color: var(--ms-ink); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact.is-ok dd b { color: var(--ms-green); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact.is-over dd b { color: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact__note { font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-meter { height: 6px; background: var(--ms-track); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-meter i { background: var(--ms-meter); }
  body.sb-theme.curriculum-app.readable-app #helperView .is-ok .sh-meter i { background: var(--ms-green); }
  body.sb-theme.curriculum-app.readable-app #helperView .is-over .sh-meter i { background: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary__foot { border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-msg { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-msg .sh-link { color: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-confirm { background: var(--ms-coral-soft); border: 0; border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-confirm p { color: var(--ms-coral); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-note { color: var(--ms-violet); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-preview { background: var(--ms-amber-soft); border: 0; border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-preview h4 { letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-preview p { color: var(--ms-text); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-adds__sem { background: var(--ms-card); border: 0; border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-adds__sem li + li { border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-more summary { color: var(--ms-ink); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-grades small { color: var(--ms-muted); font-weight: 600; background: rgba(255, 253, 248, .7); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-grades small.is-done { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-grades button[aria-pressed="true"] small { color: var(--ms-ink); background: var(--ms-track); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem + .sh-sem { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__head,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem + .sh-sem .sh-sem__head { background: none; border-bottom: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__head h4 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__credits { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__credits.is-over b { color: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__none { color: var(--ms-muted); font-weight: 500; background: var(--ms-soft); border: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup { padding: 0; background: none; border: 0; border-radius: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup--extra { padding: 10px 6px 6px; background: var(--ms-violet-soft); border: 0; border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__head { margin: 0 4px 4px; padding: 0; border-bottom: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__head h5 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__choose { color: var(--ms-amber); font-weight: 700; background: var(--ms-amber-soft); border: 0; border-radius: 6px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__extra { color: var(--ms-violet); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__count { color: var(--ms-muted); font-weight: 600; background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__count b { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__count.is-done,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__count.is-done b { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__msg { color: var(--ms-amber); font-weight: 600; background: var(--ms-amber-soft); border: 0; border-radius: 10px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick { background: transparent; border: 0; border-radius: 10px; }
  body.sb-theme.curriculum-app.readable-app #helperView button.sh-pick:hover { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick[aria-pressed="true"],
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick[aria-pressed="true"]:hover { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick__box { background: var(--ms-card); border: 1.5px solid #c9c1ad; border-radius: 6px; font-size: 15px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick__box::after { translate: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick[aria-pressed="true"] .sh-pick__box { color: var(--ms-fill-ink); background: var(--ms-fill); border-color: var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick__name { color: var(--ms-ink); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick__credits { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .is-full .sh-pick[aria-pressed="false"] .sh-pick__name { color: var(--ms-muted); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickrow.is-dup .sh-pick { background: var(--ms-coral-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick-info { min-height: 32px; color: var(--ms-muted); font-weight: 600; background: none; border: 1px solid var(--ms-line); border-radius: 9px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick-info:hover { color: var(--ms-ink); border-color: var(--ms-line); background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick-info--none { border: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-fixed { padding-top: 10px; border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-fixed > summary { color: var(--ms-text); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-fixed > summary::before { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick__dot { background: #d9d2bf; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-check h3 { letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-card { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-card h4 { font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-card h4 b { background: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-card .sh-list { color: var(--ms-text); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-todo button { background: var(--ms-soft); border: 0; border-radius: 9px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-todo b { color: var(--ms-coral); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-ok { color: var(--ms-green); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table th,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table td { border-bottom: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table thead th { font-weight: 600; background: none; border-bottom: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table tbody th { font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table tbody tr:last-child > * { border-top: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table td span { font-weight: 700; border-radius: 6px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table .is-ok td span { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table .is-short td span { color: var(--ms-amber); background: var(--ms-amber-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-credit-table tr:hover :is(th, td) { background: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-foot { color: var(--ms-muted); }

  /* 과목정보 창 */
  body.sb-theme #helperSubjectModal { background: rgba(34, 42, 85, .5); backdrop-filter: none; }
  body.sb-theme #helperSubjectModal .modal-panel { background: var(--ms-card); border: 0; border-radius: 20px; box-shadow: none; }
  body.sb-theme #helperSubjectModal .modal-panel::before { display: none; }
  body.sb-theme #helperSubjectModal .modal-head { background: none; border-bottom: 1px solid var(--ms-hair); border-radius: 20px 20px 0 0; }
  body.sb-theme #helperSubjectModal .modal-body { border-radius: 0 0 20px 20px; }
  body.sb-theme.curriculum-app.readable-app #helperSubjectModal .modal-head .btn { min-height: 40px; padding: 2px 8px; color: var(--ms-ink) !important; background: none !important; border: 0 !important; border-radius: 12px; box-shadow: none !important; transform: none; }
  #helperSubjectModal .modal-head > strong { color: var(--ms-ink); font-weight: 800; }
  #helperSubjectModal .sh-dialog-tabs { gap: 2px; padding: 3px; background: var(--ms-track); border: 0; border-radius: 13px; }
  #helperSubjectModal .sh-dialog-tabs button { color: var(--ms-muted); font-weight: 600; border-radius: 10px; }
  #helperSubjectModal .sh-dialog-tabs button[aria-pressed="true"] { color: var(--ms-ink); font-weight: 700; background: var(--ms-card); }
  #helperSubjectModal .sh-facts div { background: var(--ms-soft); border: 0; border-radius: 14px; }
  #helperSubjectModal .sh-facts dt { color: var(--ms-muted); font-weight: 500; }
  #helperSubjectModal .sh-facts dd { color: var(--ms-ink); font-weight: 700; }
  #helperSubjectModal .sh-summary { color: var(--ms-text); background: var(--ms-soft); border: 0; border-radius: 14px; }
  #helperSubjectModal .sh-section > h4 { color: var(--ms-ink); font-weight: 700; }
  #helperSubjectModal .sh-note { color: var(--ms-amber); background: var(--ms-amber-soft); border: 0; border-radius: 12px; }
  #helperSubjectModal .sh-note.sh-note--special { color: var(--ms-violet); background: var(--ms-violet-soft); }
  #helperSubjectModal .sh-offers__item { background: var(--ms-green-soft); border: 0; border-radius: 14px; }
  #helperSubjectModal .sh-offers__item strong { color: var(--ms-ink); font-weight: 700; }
  #helperSubjectModal .sh-learn__label { font-weight: 700; border: 0; border-radius: 7px; }
  #helperSubjectModal .sh-learn__area { border-bottom: 1px solid var(--ms-hair); }
  #helperSubjectModal .sh-learn { background: none; border: 1px solid var(--ms-line); border-radius: 14px; }
  #helperSubjectModal .sh-ideas { background: var(--ms-violet-soft); border: 0; border-radius: 12px; }
  #helperSubjectModal .sh-evidence__item { background: none; border: 1px solid var(--ms-line); border-radius: 14px; }
  #helperSubjectModal .sh-evidence__note { color: var(--ms-amber); }

  /* ── 편제표: 문서 모양은 인쇄본과 같게 두고 둘레만 맞춥니다 ── */
  #planView { color: var(--ms-text); }
  #planView .pv-toolbar label { color: var(--ms-muted); font-size: calc(14px * var(--reading-scale, 1)); font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app #app #planView select { color: var(--ms-ink); background-color: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #app #planView select:focus { border-color: var(--ms-ink); box-shadow: 0 0 0 1px var(--ms-ink); }
  #planView .pd-toolbar p { color: var(--ms-muted); font-size: calc(13px * var(--reading-scale, 1)); line-height: 1.45; }
  #planRenderArea .pd-sheet { border-color: var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }

  /* ── 나의 교육과정의 접는 칸: 막대와 고리에서 크레용 무늬를 뺍니다 ── */
  #app .student-dashboard.curriculum-board .board-disclosure-body { border-top: 1px solid var(--ms-hair); }
  #app .student-dashboard.curriculum-board .board-disclosure > summary:hover { background: none; }
  #app .student-dashboard.curriculum-board .dashboard-advisory { color: var(--ms-text); background: var(--ms-violet-soft); border: 0; border-radius: 12px; }
  #app .student-dashboard.curriculum-board .course-kind,
  #app #planView :is(.course-kind-pill, .course-kind-legend span) { border-width: 1px; border-radius: 7px; }
  #app .student-dashboard.curriculum-board .dashboard-mark { border-width: 0; border-radius: 7px; }
  #app .student-dashboard.curriculum-board .dashboard-mark.is-good { color: var(--ms-green); background: var(--ms-green-soft); }
  #app .student-dashboard.curriculum-board .dashboard-mark:not(.is-good) { color: var(--ms-coral); background: var(--ms-coral-soft); }
  #app .student-dashboard.curriculum-board .board-meter { height: 8px; background: var(--ms-track); border: 0; border-radius: 4px; }
  #app .student-dashboard.curriculum-board .board-meter > span { background: var(--ms-meter); }
  #app .student-dashboard.curriculum-board .board-meter.is-over > span,
  #app .student-dashboard.curriculum-board .board-group.needs-review .board-meter > span { background: var(--ms-coral); }
  #app .student-dashboard.curriculum-board .board-chart-track > span { background: var(--ms-meter); border: 0; border-radius: 4px 4px 0 0; }
  /* 교과군 요약: 이름과 수치를 다섯 칸으로 나눠 한 줄에 놓습니다 */
  #app .student-dashboard.curriculum-board #dashboard-groups { container: board-groups / inline-size; }
  #app .student-dashboard.curriculum-board #dashboard-groups > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px 8px; }
  #app .student-dashboard.curriculum-board #dashboard-groups > summary > strong { grid-column: 1; grid-row: 1; }
  #app .student-dashboard.curriculum-board #dashboard-groups > summary > .dashboard-mark { grid-column: 2; grid-row: 1; }
  #app .student-dashboard.curriculum-board #dashboard-groups > summary > .board-disclosure-caption { grid-column: 3; grid-row: 1; margin: 0; color: var(--ms-muted); font-size: calc(13.5px * var(--reading-scale, 1)); }
  #app .student-dashboard.curriculum-board #dashboard-groups > summary > .board-chevron { grid-column: 4; grid-row: 1; }
  #app .student-dashboard.curriculum-board #dashboard-groups .board-group-preview {
    grid-column: 1 / -1; grid-row: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); flex: none; gap: 0; width: 100%; box-sizing: border-box; padding: 9px 2px;
    background: var(--ms-soft); border-radius: 13px;
  }
  #app .student-dashboard.curriculum-board .board-group-preview > span {
    display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 3px; min-width: 0; padding: 0 2px; color: var(--ms-muted);
    font-size: min(calc(12px * var(--reading-scale, 1)), 3.3vw); line-height: 1.3; white-space: nowrap; border-left: 1px solid var(--ms-line);
  }
  #app .student-dashboard.curriculum-board .board-group-preview > span:first-child { border-left: 0; }
  #app .student-dashboard.curriculum-board .board-group-preview i { grid-column: 1 / -1; justify-self: center; margin-bottom: 1px; color: var(--ms-text); font-size: min(calc(12.5px * var(--reading-scale, 1)), 3.4vw); font-style: normal; font-weight: 600; }
  #app .student-dashboard.curriculum-board .board-group-preview b { padding: 0; color: var(--ms-ink); font-size: min(calc(17px * var(--reading-scale, 1)), 5vw); font-weight: 800; letter-spacing: -.02em; }
  #app .student-dashboard.curriculum-board .board-group-preview .is-short b { color: var(--ms-coral); }
  @container board-groups (min-width: 700px) {
    #app .student-dashboard.curriculum-board #dashboard-groups > summary { grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 10px 14px; }
    #app .student-dashboard.curriculum-board #dashboard-groups .board-group-preview { grid-column: 2; grid-row: 1; justify-self: center; max-width: 520px; }
    #app .student-dashboard.curriculum-board #dashboard-groups > summary > .dashboard-mark { grid-column: 3; }
    #app .student-dashboard.curriculum-board #dashboard-groups > summary > .board-disclosure-caption { grid-column: 4; }
    #app .student-dashboard.curriculum-board #dashboard-groups > summary > .board-chevron { grid-column: 5; }
  }

  #app .student-dashboard.curriculum-board .board-composition { border-bottom: 1px solid var(--ms-hair); }
  /* 원그래프 가운데: 나침반 눈금 안에 교표를 같은 중심으로 놓고, 합계는 교표 아래에 띠로 얹습니다 */
  #app .student-dashboard.curriculum-board .board-composition-dial { stroke: #dfcf9f; stroke-width: 4px; stroke-dasharray: 1 9; pointer-events: none; }
  #app .student-dashboard.curriculum-board .board-composition-total { position: absolute; inset: 0; display: block; }
  #app .student-dashboard.curriculum-board .board-composition-seal { position: absolute; top: 50%; left: 50%; display: block; width: 50%; aspect-ratio: 1; translate: -50% -50%; background: url("/storybook/school-logo.webp") center / contain no-repeat; }
  #app .student-dashboard.curriculum-board .board-composition-sum {
    position: absolute; top: 73%; left: 50%; display: flex; align-items: baseline; gap: 3px; margin: 0; padding: 2px 10px; translate: -50% -50%; color: var(--ms-muted); white-space: nowrap;
    font-size: calc(11.5px * var(--reading-scale, 1)); font-weight: 600; line-height: 1.35; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 999px; box-shadow: 0 1px 0 var(--ms-line);
  }
  #app .student-dashboard.curriculum-board .board-composition-sum strong { color: var(--ms-ink); font-size: calc(15px * var(--reading-scale, 1)); font-weight: 800; letter-spacing: -.02em; }
  #app .student-dashboard.curriculum-board .board-composition-chart svg { filter: none; }
  #app .student-dashboard.curriculum-board .board-composition-track { stroke: var(--ms-track); }
  #app .student-dashboard.curriculum-board .board-composition-hatch,
  #app .student-dashboard.curriculum-board .board-composition-outline { display: none; }
  #app .student-dashboard.curriculum-board .board-composition-divider { stroke: var(--ms-card); }
  #app .student-dashboard.curriculum-board .board-composition-legend li { border-bottom: 1px solid var(--ms-hair); }
  #app .student-dashboard.curriculum-board .board-composition-swatch { border: 0; border-radius: 4px; background: var(--group-color); }
  #app .student-dashboard.curriculum-board :is(.board-next button, .board-next a) { color: var(--ms-ink); }
  #app .student-dashboard.curriculum-board .board-next li > span { color: var(--ms-muted); }

  /* ── 공유·사용법·안내·앱 설치·비밀번호 창 ── */
  body.sb-theme.curriculum-app.readable-app.app-open :is(#shareModal, #manualModal, #noticeModal, #installModal, #teacherPasswordModal) { background: rgba(34, 42, 85, .5); backdrop-filter: none; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#shareModal, #manualModal, #noticeModal, #installModal, #teacherPasswordModal) .modal-panel { color: var(--ms-ink); background: var(--ms-card); border: 0; border-radius: 20px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#shareModal .share-head, #manualModal .manual-head, #noticeModal .notice-head, #installModal .install-head, #teacherPasswordModal .tp-head) { background: none; border-bottom: 1px solid var(--ms-hair); border-radius: 20px 20px 0 0; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#shareModal .share-head, #manualModal .manual-head, #noticeModal .notice-head, #installModal .install-head) .btn { min-height: 40px; padding: 2px 8px; font-weight: 700; color: var(--ms-ink) !important; background: none !important; border: 0 !important; border-radius: 12px; box-shadow: none !important; transform: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #shareModal .share-body > button { border: 1px solid var(--ms-line); border-radius: 14px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #shareModal .share-kakao { border-color: #fee500; }
  body.sb-theme.curriculum-app.readable-app.app-open #shareModal .share-copy { color: var(--ms-ink); background: var(--ms-card); }
  body.sb-theme.curriculum-app.readable-app.app-open #shareModal .share-copy:hover { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #manualModal .manual-bar { background: none; border-bottom: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app.app-open #manualModal .manual-tabs button { color: var(--ms-text); font-weight: 600; background: var(--ms-card); border: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #manualModal .manual-tabs button[aria-pressed="true"] { color: var(--ms-fill-ink); background: var(--ms-fill); border-color: var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #noticeModal .notice-eyebrow { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app.app-open #noticeModal .notice-preview { color: var(--ms-amber); background: var(--ms-amber-soft); border: 0; border-radius: 10px; }
  body.sb-theme.curriculum-app.readable-app.app-open #noticeModal .notice-foot { background: none; border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app.app-open #noticeModal .notice-snooze button { color: var(--ms-ink); font-weight: 600; background: var(--ms-card); border: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #noticeModal .notice-snooze button:hover { background: var(--ms-soft); border-color: var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#noticeModal .notice-next, #teacherPasswordModal .tp-submit, #installModal .install-open-browser) { color: var(--ms-action-ink); background: var(--ms-action); border: 0; border-radius: 12px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#noticeModal .notice-next, #teacherPasswordModal .tp-submit, #installModal .install-open-browser):hover { background: var(--ms-action-hover); }
  body.sb-theme.curriculum-app.readable-app.app-open #installModal .install-steps li { background: var(--ms-soft); border: 0; border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open #installModal .install-copy { border-top: 1px solid var(--ms-hair); }
  body.sb-theme.curriculum-app.readable-app.app-open #installModal .install-copy-row input { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open #installModal .install-copy-row button { color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint { color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint-icon { background: var(--ms-green); border: 0; }
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint-actions button { border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint-primary,
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint-primary:hover { color: var(--ms-action-ink); background: var(--ms-action); border-color: var(--ms-action); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint-close { color: var(--ms-ink); background: var(--ms-card); }
  body.sb-theme.curriculum-app.readable-app.app-open .install-hint-close:hover { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .install-toast { background: var(--ms-ink); border: 0; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherPasswordModal .tp-eyebrow { color: var(--ms-muted); font-weight: 600; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherPasswordModal .tp-form input { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherPasswordModal .tp-form input:focus-visible { border-color: var(--ms-ink); outline: 0; box-shadow: 0 0 0 1px var(--ms-ink); }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherPasswordModal .tp-done__text { color: var(--ms-green); background: var(--ms-green-soft); border: 0; border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherPasswordModal .tp-later { color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherPasswordModal .tp-later:hover { background: var(--ms-soft); border-color: var(--ms-line); }

  /* ── 관리자 도구 ── */
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review__stat { background: var(--ms-soft); border: 0; border-radius: 14px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review__stat.is-attention { background: var(--ms-amber-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review__stat.is-warning { background: var(--ms-coral-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review__tabs { background: var(--ms-track); border: 0; }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView :is(.admin-review__table-wrap, .admin-review__block, .admin-review__grid-wrap) { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review .admin-review__table th,
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review .admin-review__grid thead th { color: var(--ms-muted); background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review .admin-review__grid tfoot :is(th, td) { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review__eyebrow { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review .admin-review__semesters button { border: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review .admin-review__semesters button[aria-pressed="true"] { color: var(--ms-fill-ink); background: var(--ms-fill); border-color: var(--ms-fill-line); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .admin-review__bar { height: 8px; background: var(--ms-track); border: 0; border-radius: 4px; }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__eyebrow { color: var(--ms-muted); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__audience label { color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__audience label:has(input:checked) { border-color: var(--ms-fill-line); box-shadow: inset 0 0 0 1px var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__badge.is-active { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__badge.is-scheduled { color: var(--ms-amber); background: var(--ms-amber-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__badge.is-ended { color: var(--ms-muted); background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open #adminView .notice-admin__empty { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; }

  /* ── 성장 포트폴리오의 도장 ── */
  :is(#growthView, #growthAiModal) .gb-stamp { font-weight: 700; border: 0; border-radius: 7px; }
  :is(#growthView, #growthAiModal) :is(.gb-stamp--rank1, .gb-stamp--core) { color: var(--ms-coral); background: var(--ms-coral-soft); border: 0; }
  :is(#growthView, #growthAiModal) :is(.gb-stamp--rank2, .gb-stamp--recommended) { color: var(--ms-amber); background: var(--ms-amber-soft); border: 0; }
  :is(#growthView, #growthAiModal) :is(.gb-stamp--rank3, .gb-stamp--suggested) { color: var(--ms-mint); background: var(--ms-mint-soft); border: 0; }
  :is(#growthView, #growthAiModal) .gb-stamp--muted { color: var(--ms-muted); background: var(--ms-soft); }
  #app #growthView .gb-tool__note { border: 1px solid var(--ms-line); border-radius: 10px; }
  /* 종류마다 아래쪽 내용 길이가 조금씩 달라도 상자 높이가 흔들리지 않게 합니다 */
  #app #growthView .gb-tool { min-height: 430px; box-sizing: border-box; }
  #app #growthView .gb-tool:has(.gb-kinds--two, .gb-kinds--four) { min-height: 515px; }
  #app #growthView .gb-tool__close { border-radius: 10px; }
  #app #growthView .gb-pill--track { color: var(--ms-fill-ink); background: var(--ms-fill); border-color: var(--ms-fill-line); }
  #app #growthView .gb-pill--rank1 { background: var(--ms-coral-soft); border-color: var(--ms-coral-soft); }
  #app #growthView .gb-pill--rank1 b { color: var(--ms-coral); }
  #app #growthView :is(.gb-pane__term, .gb-strip__arrow) { color: var(--ms-coral); }
  #app #growthView .gb-tab__now { background: var(--ms-coral); }

  /* ── 고르기 칸 ── */
  body.sb-theme.curriculum-app.readable-app.app-open #app select { border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
}

/* ── 2부: 휴대폰 배치 ── */
@media screen and (max-width: 650px) {
  body.sb-theme.curriculum-app.readable-app.app-open :is(#status, .status) { padding: 10px 14px; font-size: calc(14px * var(--reading-scale, 1)); line-height: 1.45; }

  /* 단추 */
  body.sb-theme.curriculum-app.readable-app :is(#helperView, #planView, #helperSubjectModal .modal-body) .btn:not(.ghost):not(.secondary) {
    min-height: 48px; padding: 6px 18px; font-size: calc(16px * var(--reading-scale, 1)); font-weight: 700; color: var(--ms-card) !important;
    background: var(--ms-ink) !important; border: 0 !important; border-radius: 14px; box-shadow: none !important; transform: none;
  }
  body.sb-theme.curriculum-app.readable-app :is(#helperView, #planView, #helperSubjectModal .modal-body) .btn:is(.ghost, .secondary) {
    min-height: 48px; padding: 6px 18px; font-size: calc(15px * var(--reading-scale, 1)); font-weight: 700; color: var(--ms-ink) !important;
    background: var(--ms-card) !important; border: 1px solid var(--ms-line) !important; border-radius: 14px; box-shadow: none !important; transform: none;
  }
  body.sb-theme.curriculum-app.readable-app :is(#helperView, #planView) .btn:disabled { opacity: .45 !important; }

  /* 등급·유형 */
  body.sb-theme.curriculum-app.readable-app.app-open .sh-level { min-height: 24px; font-size: calc(12.5px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app.app-open .sh-type { min-height: 22px; font-size: calc(12px * var(--reading-scale, 1)); }

  /* 과목선택도우미 머리: 입학년도와 관심 학과는 설정 줄 두 칸인 한 장의 카드로 묶습니다 */
  body.sb-theme.curriculum-app.readable-app #helperView { margin-top: 0; }
  body.sb-theme.curriculum-app.readable-app #app #helperView :is(input, select) { min-height: 46px; box-sizing: border-box; font-size: calc(16px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-toolbar { gap: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab[aria-pressed] { min-height: 42px; padding: 2px 4px; text-align: center; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tab strong { font-size: calc(15px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-year {
    justify-content: space-between; gap: 12px; box-sizing: border-box; min-height: 48px; padding: 0 8px 0 16px;
    background: var(--ms-card); border: 1px solid var(--ms-line); border-bottom: 0; border-radius: var(--ms-radius) var(--ms-radius) 0 0;
  }
  body.sb-theme.curriculum-app.readable-app #app #helperView .sh-year select { flex: none; width: auto; min-width: 0; min-height: 44px; padding: 0 28px 0 8px; font-size: calc(15px * var(--reading-scale, 1)); font-weight: 700; text-align: right; background-color: transparent; border: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context.is-set { gap: 10px; margin-top: 0; padding: 12px 16px 14px; border-radius: 0 0 var(--ms-radius) var(--ms-radius); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__text { justify-content: space-between; gap: 2px 12px; width: 100%; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__text strong { font-size: calc(15px * var(--reading-scale, 1)); text-align: right; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__text em { flex: 1 0 100%; font-size: calc(13px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__actions { flex-wrap: nowrap; gap: 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__actions .btn { flex: 1 1 0; width: auto; min-width: 0; min-height: 42px; padding: 4px 8px; font-size: calc(14px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-context__actions .sh-link { flex: none; padding: 6px 8px; white-space: nowrap; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-panel { margin-top: 14px; }

  /* 찾기와 칩 */
  body.sb-theme.curriculum-app.readable-app #app #helperView .sh-search input { height: 46px; padding-right: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chips { gap: 6px; margin: 10px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chips::-webkit-scrollbar { display: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chip { min-height: 36px; padding: 0 13px; font-size: calc(14px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track { gap: 10px; margin-top: 12px; padding: 14px 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track h3 { font-size: calc(17px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track p { font-size: calc(14px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-track__topics i { padding: 1px 9px; font-size: calc(13px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-count { margin: 14px 0 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-empty--action strong { font-size: calc(17px * var(--reading-scale, 1)); }

  /* 학과 카드와 상세 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-majors { gap: 10px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major:nth-child(3n + 2) { gap: 3px; padding: 14px 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major strong { font-size: calc(18px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-major__levels { gap: 5px; margin-top: 7px; padding-top: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-back { min-height: 40px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail { margin-top: 2px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head { gap: 14px; padding: 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head > div:first-child { flex-basis: 100%; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__track { font-size: calc(13px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head h3 { margin: 0 0 6px; font-size: calc(23px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__head p { font-size: calc(15px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__actions { gap: 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__actions .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 6px 8px; white-space: nowrap; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-detail__actions .btn:not(.secondary) { flex-grow: 1.5; font-size: calc(15px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-chosen { flex: 1 1 0; display: grid; place-items: center; min-height: 48px; box-sizing: border-box; border-radius: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs { margin-top: 12px; padding: 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__head h4 { font-size: calc(19px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__group { margin-top: 16px; padding-top: 14px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__label { margin-bottom: 4px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__label .sh-level { min-height: 26px; padding: 0 10px; font-size: calc(14px * var(--reading-scale, 1)); }
  /* 과목을 한 칸씩 띄우지 않고 한 카드 안의 줄로 묶습니다 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subjects { gap: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subject,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__group--core .sh-subject,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-recs__group--recommended .sh-subject { position: relative; gap: 3px; padding: 11px 22px 11px 0; background: none; border: 0; border-bottom: 1px solid var(--ms-hair); border-radius: 0; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subject:last-child { border-bottom: 0; padding-bottom: 2px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-subject::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border-top: 2px solid #c9c1ad; border-right: 2px solid #c9c1ad; transform: rotate(45deg); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-about { gap: 10px; margin-top: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-about__card { padding: 14px 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-about__card h4 { font-size: calc(16px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-depts { margin-top: 18px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-depts > h4 { font-size: calc(17px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept { margin-top: 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept > summary { padding: 12px 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept > summary strong { font-size: calc(16px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-dept__body { padding: 2px 16px 14px; }

  /* 과목 찾기 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-segment button { min-height: 40px; padding: 2px 8px; font-size: calc(15px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-filters__search { grid-column: 1 / -1; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-filters__search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-filters label { margin-bottom: 2px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-result-group { margin-top: 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-result-group h4 { margin-bottom: 8px; font-size: calc(16px * var(--reading-scale, 1)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-row__name { font-size: calc(16px * var(--reading-scale, 1)); }

  /* 모의수강신청 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary { padding: 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary h3 { font-size: calc(18px * var(--sh-s)); font-weight: 800; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-facts { gap: 6px; margin-top: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact.is-ok { padding: 10px 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-fact dd b { font-size: calc(22px * var(--sh-s)); font-weight: 800; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-summary__foot { gap: 8px; margin-top: 12px; padding-top: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-msg { flex-basis: 100%; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-actions { gap: 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-actions .btn { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 6px 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-actions .btn:first-child { flex-basis: 100%; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-preview { margin-top: 12px; padding: 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-preview h4 { font-size: calc(18px * var(--sh-s)); font-weight: 800; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-adds { gap: 8px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-grades { margin-top: 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-sems { gap: 12px; margin-top: 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__head,
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem + .sh-sem .sh-sem__head { padding: 12px 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__head h4 { font-size: calc(17px * var(--sh-s)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__credits b { font-size: calc(18px * var(--sh-s)); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-sem__body { gap: 16px; padding: 14px 12px 12px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pickgroup__head h5 { font-size: calc(16px * var(--sh-s)); }
  body.sb-theme.curriculum-app.readable-app #helperView button.sh-pick:hover { background: none; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-pick[aria-pressed="true"]:hover { background: var(--ms-soft); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-check { margin-top: 20px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-check h3 { font-size: calc(19px * var(--sh-s)); font-weight: 800; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-check__grid { gap: 10px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-card { padding: 14px 16px; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-card h4 { font-size: calc(16px * var(--sh-s)); }

  /* 과목정보 창 */
  #helperSubjectModal .modal-head > strong { font-size: calc(20px * var(--reading-scale, 1)); }
  #helperSubjectModal .sh-facts { gap: 6px; margin-top: 12px; }
  #helperSubjectModal .sh-facts div { padding: 10px 12px; }
  #helperSubjectModal .sh-facts dd { font-size: calc(16px * var(--reading-scale, 1)); }
  #helperSubjectModal .sh-summary { margin-top: 12px; padding: 12px 14px; }
  #helperSubjectModal .sh-section { margin-top: 20px; }
  #helperSubjectModal .sh-section > h4 { font-size: calc(17px * var(--reading-scale, 1)); }
  #helperSubjectModal .sh-offers__item { padding: 10px 14px; }
  #helperSubjectModal .sh-learn { padding: 14px; }
  #helperSubjectModal .sh-evidence__item { padding: 12px 14px; }

  /* 편제표 */
  #planView { margin-top: 0; }
  #planView .pv-toolbar {
    justify-content: space-between; gap: 12px; min-height: 48px; box-sizing: border-box; padding: 0 8px 0 16px; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px;
  }
  body.sb-theme.curriculum-app.readable-app #app #planView .pv-toolbar select { flex: none; width: auto; min-width: 0; min-height: 44px; padding: 0 28px 0 8px; font-size: calc(15px * var(--reading-scale, 1)); font-weight: 700; text-align: right; background-color: transparent; border: 0; box-shadow: none; }
  #planView .pd-toolbar { gap: 6px; margin: 10px 0 12px; }
  #planView .pd-toolbar .pd-print-button { flex: 1 1 100%; }

  /* 교사의 학생별 대시보드 카드 */
  body.sb-theme.curriculum-app.readable-app #teacherTools.panel { padding: 16px; background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #teacherTools .section-title { margin: 0 0 12px; }
  body.sb-theme.curriculum-app.readable-app #teacherTools h3 { margin: 0; font-size: calc(18px * var(--reading-scale, 1)); letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app #teacherTools .tools-description,
  body.sb-theme.curriculum-app.readable-app #teacherTools .section-title .badge { display: none; }
  body.sb-theme.curriculum-app.readable-app #teacherTools .select-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
  body.sb-theme.curriculum-app.readable-app #teacherTools .select-row > div { min-width: 0; }
  body.sb-theme.curriculum-app.readable-app #teacherTools label[for="studentId"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.sb-theme.curriculum-app.readable-app #app #teacherTools #studentId { height: 48px; min-height: 48px; box-sizing: border-box; padding: 0 14px; font-size: calc(16px * var(--reading-scale, 1)); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app #teacherTools #searchBtn { min-width: 76px; min-height: 48px; padding: 0 16px; font-size: calc(16px * var(--reading-scale, 1)); font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app #teacherTools #downloadCurrentCurriculumPdfBtn { grid-column: 2; grid-row: 2; min-height: 48px; padding: 0 12px; font-size: calc(15px * var(--reading-scale, 1)); font-weight: 700; white-space: nowrap; }
  body.sb-theme.curriculum-app.readable-app #teacherTools .select-row.is-empty #downloadCurrentCurriculumPdfBtn { display: none; }
}

/* ── 3부: PC와 태블릿(651px 이상). 머리말은 위 띠로 두고 넓은 화면에 맞게 칸을 펼칩니다 ── */
@media screen and (min-width: 651px) {
  /* 흰 머리말 띠는 몸통 바탕에 그립니다. clip-path를 쓰면 프로필 창이 잘립니다. */
  body.sb-theme.curriculum-app.readable-app.app-open {
    --sb-wobble: var(--ms-radius); --sb-wobble-sm: 12px; --sb-lift: none; --shadow: none; --ms-bar: 72px;
    /* PC는 화면에 여유가 있으니 버튼과 고른 항목에 동화풍 색을 씁니다. 박스 모양은 휴대폰과 같습니다. */
    --ms-muted: #6b6558;
    --ms-action: #d2442e;
    --ms-action-hover: #bc3a26;
    --ms-action-ink: #fff;
    --ms-fill: #ffdf85;
    --ms-fill-ink: var(--ms-ink);
    --ms-fill-line: #e7b23a;
    --ms-fill-soft: #5e5230;
    --ms-fill-track: rgba(44, 53, 102, .14);
    --ms-fill-bar: var(--sb-red, #e0533d);
    --ms-spark: var(--sb-red, #e0533d);
    --ms-meter: #3f9a62;
    --ms-row-on: #fff3cf;
    --pd-sticky-top: var(--ms-bar);
    padding-bottom: 0;
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    letter-spacing: -.02em;
  }
  html:has(> body.sb-theme.curriculum-app.readable-app.app-open) { scroll-padding-top: 84px; }
  body.app-open :is(#growthView, #growthAiModal) { --gb-paper: var(--ms-card); --gb-dash: var(--ms-hair); --gb-wobble: var(--ms-radius); --gb-stamp-r: 8px; --gb-field-r: 12px; }
  body.app-open #helperView { --sh-paper: var(--ms-card); --sh-dash: var(--ms-hair); --sh-wobble: var(--ms-radius); --sh-wobble-sm: 12px; --sh-stamp: 8px; }
  body.sb-theme.curriculum-app.readable-app.app-open :focus-visible { outline: 2px solid var(--ms-ink); outline-offset: 2px; }
  body.sb-theme.curriculum-app.readable-app #app.page { width: min(1320px, calc(100% - clamp(32px, 8vw, 120px))); margin: 0 auto; padding: 0 0 56px; }

  /* 머리말: 로고, 메뉴, 가·프로필을 한 줄에 둡니다 */
  #app .app-topbar { position: sticky; top: 0; z-index: 15; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; height: var(--ms-bar); min-height: 0; margin: 0; padding: 0; color: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; clip-path: none; transform: none; animation: none; }
  #app .app-topbar:hover { background: none; }
  /* 흰 띠는 화면 끝까지 그리지만 그림자라 가로 넘침을 만들지 않습니다. 프로필 창이 잘리지 않게 clip-path는 가상 요소에만 씁니다. */
  #app .app-topbar::before,
  #app .app-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; display: block; width: auto; rotate: none; translate: none; transform: none; clip-path: inset(0 -100vmax); }
  #app .app-topbar::before { top: 0; height: auto; background: var(--ms-card); box-shadow: 0 0 0 100vmax var(--ms-card); }
  #app .app-topbar::after { top: auto; height: 1px; background: var(--ms-line); box-shadow: 0 0 0 100vmax var(--ms-line); }
  body.phone-sheet-open #app .app-topbar { z-index: 19; }
  #app .app-brand { order: 1; flex: none; }
  #app .app-brand .app-logo.sb-app-logo { flex: none; width: 38px !important; height: 38px !important; }
  #app .app-title { width: 150px; margin: 0; }
  #app .app-navigation { position: static; order: 2; display: flex; gap: 2px; width: auto; height: var(--ms-bar); margin: 0 auto 0 36px; padding: 0; background: none; border: 0; }
  #app .app-navigation button {
    position: relative; display: flex; flex-direction: row; align-items: center; gap: 8px; height: var(--ms-bar); min-width: 0; min-height: 0; margin: 0; padding: 0 16px; color: var(--ms-muted);
    font-size: calc(16px * var(--reading-scale, 1)); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; white-space: nowrap; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  }
  #app .app-navigation button:is(:hover, :active) { color: var(--ms-ink); background: #fff8e6; box-shadow: none; transform: none; }
  #app .app-navigation button[aria-current] .app-nav-icon { color: var(--sb-red, #e0533d); }
  #app .app-navigation button:focus-visible { outline: 2px solid var(--ms-ink); outline-offset: -4px; }
  #app .app-navigation button[aria-current],
  #app .app-navigation button[aria-current]:is(:hover, :active) { color: var(--ms-ink); font-weight: 700; background: none; box-shadow: none; }
  #app .app-navigation button[aria-current]::before { content: ""; position: absolute; left: 50%; bottom: 0; z-index: 2; width: 22px; height: 7px; margin-left: -11px; background: var(--sb-red, #e0533d); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
  #app .app-nav-icon { width: 22px; height: 22px; }
  #app .app-phone-actions { order: 3; }

  /* 내 정보: 프로필 단추 아래의 작은 창 */
  #app .app-utilities {
    position: absolute; top: calc(var(--ms-bar) - 6px); right: 0; z-index: 19; display: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 0;
    width: min(340px, 100%); max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); box-sizing: border-box; overflow-y: auto; padding: 16px 18px 8px;
    color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: 0 10px 28px rgba(44, 53, 102, .16);
  }
  body.phone-sheet-open #app .app-utilities { display: flex; }
  body.phone-sheet-open .phone-sheet-scrim { position: fixed; inset: 0; z-index: 18; display: block; width: 100%; height: 100%; padding: 0; background: none; border: 0; }
  #app .app-utilities > button:not(.hidden):not([hidden]) { display: flex; }

  /* 단추 */
  body.sb-theme.curriculum-app.readable-app.app-open :is(.btn, .btn:not(.secondary):not(.ghost)) {
    min-height: 44px; padding: 8px 18px; font-size: calc(15px * var(--reading-scale, 1)); font-weight: 700;
    border: 1px solid var(--ms-line) !important; border-radius: 14px; box-shadow: none !important; transform: none;
  }
  body.sb-theme.curriculum-app.readable-app.app-open .btn:not(.secondary):not(.ghost) { color: var(--ms-action-ink) !important; background: var(--ms-action) !important; border-color: var(--ms-action) !important; }
  body.sb-theme.curriculum-app.readable-app.app-open .btn:is(.secondary, .ghost) { color: var(--ms-ink) !important; background: var(--ms-card) !important; }
  body.sb-theme.curriculum-app.readable-app.app-open .btn:not(:disabled):hover,
  body.sb-theme.curriculum-app.readable-app.app-open .btn:not(:disabled):active { transform: none; box-shadow: none !important; }
  body.sb-theme.curriculum-app.readable-app.app-open .btn:not(.secondary):not(.ghost):not(:disabled):hover { background: var(--ms-action-hover) !important; border-color: var(--ms-action-hover) !important; }
  body.sb-theme.curriculum-app.readable-app.app-open .btn.secondary:not(:disabled):hover,
  body.sb-theme.curriculum-app.readable-app.app-open .btn.ghost:not(:disabled):hover { color: var(--ms-ink) !important; background: var(--ms-soft) !important; }
  body.sb-theme.curriculum-app.readable-app.app-open .btn:disabled { opacity: .5 !important; box-shadow: none !important; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#planView, #helperSubjectModal, #teacherTools, #adminView) .btn:not(.secondary):not(.ghost) { color: var(--ms-action-ink) !important; background: var(--ms-action) !important; border: 1px solid var(--ms-action) !important; box-shadow: none !important; border-radius: 14px; font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#planView, #helperSubjectModal, #teacherTools, #adminView) .btn.secondary { color: var(--ms-ink) !important; background: var(--ms-card) !important; border: 1px solid var(--ms-line) !important; box-shadow: none !important; border-radius: 14px; font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#planView, #helperSubjectModal, #teacherTools, #adminView) .btn:disabled { opacity: .5 !important; }
  body.sb-theme.curriculum-app.readable-app.app-open #helperSubjectModal .modal-head .btn:not(.secondary):not(.ghost) { min-height: 40px; padding: 2px 8px; color: var(--ms-ink) !important; background: none !important; border: 0 !important; }
  body.sb-theme.curriculum-app.readable-app.app-open #helperSubjectModal .modal-head .btn:not(.secondary):not(.ghost):not(:disabled):hover { background: var(--ms-soft) !important; }
  body.sb-theme.curriculum-app.readable-app.app-open .app-external-links #openCourseSiteBtn,
  body.sb-theme.curriculum-app.readable-app.app-open .app-external-links #openMockEnrollmentBtn { color: var(--ms-coral) !important; background: var(--ms-coral-soft) !important; border: 0 !important; border-radius: 14px; box-shadow: none !important; font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app.app-open .app-external-links #openMockEnrollmentBtn { color: var(--ms-amber) !important; background: var(--ms-amber-soft) !important; }

  /* 입력칸과 글자 */
  body.sb-theme.curriculum-app.readable-app.app-open #app :is(input, select),
  body.sb-theme.curriculum-app.readable-app.app-open .modal :is(input, select) { color: var(--ms-ink); background-color: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #app :is(input, select):focus,
  body.sb-theme.curriculum-app.readable-app.app-open .modal :is(input, select):focus { border-color: var(--ms-ink); box-shadow: 0 0 0 1px var(--ms-ink); outline: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #app label,
  body.sb-theme.curriculum-app.readable-app.app-open .modal label { color: var(--ms-muted); font-size: calc(14px * var(--reading-scale, 1)); font-weight: 500; }

  /* 카드와 창 */
  body.sb-theme.curriculum-app.readable-app.app-open :is(.panel, .modal-panel) { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  body.sb-theme.curriculum-app.readable-app.app-open .modal { background: rgba(34, 42, 85, .5); backdrop-filter: none; }
  body.sb-theme.curriculum-app.readable-app.app-open .modal-panel::before { display: none; }
  body.sb-theme.curriculum-app.readable-app.app-open .modal-head { color: var(--ms-ink); background: none; border-bottom: 1px solid var(--ms-hair); border-radius: var(--ms-radius) var(--ms-radius) 0 0; }
  body.sb-theme.curriculum-app.readable-app.app-open .modal-body { border-radius: 0 0 var(--ms-radius) var(--ms-radius); }
  body.sb-theme.curriculum-app.readable-app.app-open .badge { color: var(--ms-amber); background: var(--ms-amber-soft); border: 0; border-radius: 8px; font-weight: 700; }
  body.sb-theme.curriculum-app.readable-app.app-open .badge.info { color: var(--ms-violet); background: var(--ms-violet-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .badge.good { color: var(--ms-green); background: var(--ms-green-soft); }
  body.sb-theme.curriculum-app.readable-app.app-open .section-title h3,
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools h3 { color: var(--ms-ink); letter-spacing: -.03em; }
  body.sb-theme.curriculum-app.readable-app.app-open .site-footer { color: var(--ms-muted); font-weight: 500; }

  /* 나의 교육과정 */
  #app #result { margin-top: 0; }
  #app .app-context { margin-top: 0; }
  #app .app-external-links { width: auto; }
  body.sb-theme .student-dashboard.curriculum-board .board-summary-item:not(:first-child) { border-right: 0; }

  /* 교사 도구: 제목과 학번 칸을 한 줄에 두어 명단과 교육과정을 위로 올립니다 */
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools.panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 28px; margin-top: 20px; padding: 14px 20px; border: 1px solid var(--ms-line); }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools > :not(.section-title):not(.tools-grid) { grid-column: 1 / -1; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools .section-title { margin: 0; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools .tools-description,
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools .section-title .badge { display: none; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools label[for="studentId"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools .tools-grid { margin: 0; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools .tools-grid .select-row:first-child { display: flex; align-items: center; gap: 10px; margin: 0; }
  body.sb-theme.curriculum-app.readable-app.app-open #teacherTools .tools-grid .select-row:first-child > div { flex: 1 1 auto; min-width: 0; }

  /* 과목선택도우미 */
  body.sb-theme.curriculum-app.readable-app #helperView,
  #planView,
  #app #growthView { margin-top: 22px; }
  body.sb-theme.curriculum-app.readable-app.app-open #helperView .sh-tab { min-height: 58px; padding: 6px 16px; }
  body.sb-theme.curriculum-app.readable-app.app-open #helperView .sh-tab span { opacity: 1; font-weight: 500; }
  body.sb-theme.curriculum-app.readable-app.app-open #helperView .sh-mock-grades { padding: 3px; }

  /* 성장 포트폴리오: PC에만 있는 칸 */
  #app #growthView.gb-has-scope .sh-head { margin-bottom: 4px; padding-top: 0; }
  #app #growthView .gb-scope { align-items: center; }
  #app #growthView .gb-class__main { gap: 12px; }
  #app #growthView .gb-strip__who { padding: 0 12px 0 0; border-right: 1px solid var(--ms-hair); border-bottom: 0; }
  #app #growthView .gb-strip__end { width: auto; }
  #app #growthView .gb-items { border-right: 1px solid var(--ms-hair); }
  #app #growthView .gb-tool { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  #app #growthView .gb-tool::before { display: none; }
  #app #growthView .gb-tool__busy { background: var(--ms-amber-soft); border: 0; border-radius: 10px; }
  #app #growthView .gb-tool__busy-bar { height: 8px; background: var(--ms-track); border: 0; }
  #app #growthView .gb-tool__busy-bar i { background: var(--ms-meter); }
  #app #growthView .gb-peek { background: var(--ms-soft); border: 0; border-radius: 12px; }
  #app #growthView .gb-tool__reset { border-top: 1px solid var(--ms-hair); }
  #app #growthView .gb-lv--core { color: var(--ms-coral); background: var(--ms-coral-soft); }
  #app #growthView .gb-lv--recommended { color: var(--ms-amber); background: var(--ms-amber-soft); }
  #app #growthView .gb-note-card { border-left: 1px solid var(--ms-line); }
  #app #growthView :is(.gb-target-list li, .gb-results li) { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  #app #growthView .gb-results li.is-picked { background: var(--ms-row-on); }

  /* 교사: 학급·상태 고르기는 가운데 작은 창으로 엽니다 */
  #app #growthView .gb-sheet-layer { align-items: center; justify-content: center; }
  #app #growthView .gb-sheet--pick { width: min(440px, calc(100% - 40px)); height: auto; max-height: calc(100vh - 80px); padding: 18px 22px 22px; border-radius: 20px; }
  #app #growthView .gb-sheet--pick .gb-sheet__grip { display: none; }
  #app #growthView .gb-sheet--pick .gb-postits { flex-wrap: nowrap; }
  #app #growthView .gb-sheet--pick .gb-postit { min-width: 0; }
  #app #growthView .gb-pick { cursor: pointer; }

  /* 명렬표: 넓으므로 이름과 진로를 한 줄에 둡니다 */
  #app #growthView .gb-roster__head { padding: 0 12px 0 16px; }
  #app #growthView .gb-line { min-height: 48px; padding: 6px 12px 6px 16px; cursor: pointer; }
  #app #growthView .gb-line:hover { background: #fbf8f0; }
  #app #growthView .gb-line.is-on { background: var(--ms-row-on); }
  #app #growthView .gb-line__who { display: flex; align-items: center; gap: 14px; }
  #app #growthView .gb-line__name { flex: none; width: calc(96px * var(--reading-scale, 1)); }
  #app #growthView .gb-line__goal { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--reading-scale, 1)); }
  #app #growthView :is(.gb-roster__col, .gb-line__num, .gb-line__mark) { width: 52px; }
  #app #growthView :is(.gb-roster__col--wide, .gb-line__wide) { width: 62px; }
  #app #growthView .gb-phone-finder { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: center; gap: 10px 12px; margin-top: 6px; }
  #app #growthView .gb-phone-finder [data-gb-table] { grid-column: 1 / -1; }

  /* 학생 패널: 바탕은 카드, 태블릿에서는 오른쪽 서랍 */
  #app #growthView .gb-panel,
  #app #growthView .gb-card.gb-panel { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: none; }
  #app #growthView .gb-panel__head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  #app #growthView .gb-panel__nav { grid-column: 2; }
  #app #growthView .gb-panel__stat { min-height: 66px; }
  #app #growthView .gb-class__scrim { background: rgba(34, 42, 85, .5); }

  /* 마법나침반 창 */
  #growthAiModal :is(.gb-empty-box, .gb-running) { background: var(--ms-soft); border: 0; border-radius: 14px; }
  #growthAiModal .gb-running__bar { height: 8px; background: var(--ms-track); border: 0; border-radius: 4px; }
  #growthAiModal .gb-running__bar i { background: var(--ms-meter); border-right: 0; }
  #growthAiModal .gb-mini-btn { color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
  #growthAiModal .gb-mini-btn:hover { background: var(--ms-soft); }
  #growthAiModal .gb-sk :is(textarea, input[type="text"], select) { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  #growthAiModal .gb-sk :is(textarea, input[type="text"], select):focus { border-color: var(--ms-ink); box-shadow: 0 0 0 1px var(--ms-ink); }
  #growthAiModal .gb-sk-intro { background: var(--ms-soft); border: 0; border-radius: 14px; }
  #growthAiModal .gb-sk-step { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 14px; }
  #growthAiModal .gb-sk-step legend > span.gb-tone--warn { border: 0; }
  #growthAiModal .gb-sk-course { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: none; }
  #growthAiModal .gb-sk-course:hover { background: var(--ms-soft); border-color: var(--ms-line); }
  #growthAiModal .gb-sk-course.is-on { background: var(--ms-soft); border-color: var(--ms-fill-line); box-shadow: inset 0 0 0 1px var(--ms-fill-line); }
  #growthAiModal .gb-sk-level { color: var(--ms-ink); background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 10px; box-shadow: none; transform: none; }
  #growthAiModal .gb-sk-level:hover { background: var(--ms-soft); }
  #growthAiModal .gb-sk-level.is-on { color: var(--ms-fill-ink); background: var(--ms-fill); border-color: var(--ms-fill-line); box-shadow: none; transform: none; }
  #growthAiModal .gb-sk-strength { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 10px; box-shadow: none; }
  #growthAiModal .gb-sk-strength.is-on { background: var(--ms-green-soft); border-color: var(--ms-green); box-shadow: none; }
  #growthAiModal .gb-sk-hints li { background: var(--ms-soft); }
  #growthAiModal .gb-sk-memo { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  #growthAiModal .gb-sk-memo:focus-within { border-color: var(--ms-ink); box-shadow: 0 0 0 1px var(--ms-ink); }
  #growthAiModal .gb-sk-memo.is-on { background: var(--ms-soft); border-color: var(--ms-line); }
  #growthAiModal .gb-sk-seg { background: var(--ms-track); border: 0; border-radius: 12px; }
  #growthAiModal .gb-sk-segbtn:hover { background: none; }
  #growthAiModal .gb-sk-runbar { background: var(--ms-soft); border: 0; border-radius: 14px; box-shadow: none; }
  #growthAiModal .gb-sk-runbar__text { border-width: 1px; border-style: solid; border-radius: 10px; }
  #growthAiModal .gb-sk-draft { background: var(--ms-card); border: 1px solid var(--ms-line); border-radius: 12px; }
  #growthAiModal .gb-sk-gaps { background: var(--ms-green-soft); border: 0; border-radius: 12px; }
  #growthAiModal .gb-sk-sources { background: var(--ms-soft); border: 0; border-radius: 12px; }
  #growthAiModal .gb-sk .gb-status { border-width: 1px; border-style: solid; border-radius: 10px; }
}

/* 좁은 태블릿: 메뉴 이름을 줄여 머리말이 한 줄에 들어오게 합니다 */
@media screen and (min-width: 651px) and (max-width: 1099px) {
  #app .app-nav-extra { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  #app .app-navigation { margin-left: 16px; }
  #app .app-navigation button { gap: 6px; padding: 0 10px; font-size: min(calc(15px * var(--reading-scale, 1)), 17px); }
}
/* 관리자 메뉴가 더해진 다섯 칸이거나 글자 크기를 키우면(가) 1100px 이상에서도 메뉴가 한 줄에 들어가지 않아,
   마지막 메뉴가 둘째 줄로 내려가 본문을 가립니다. 줄이 바뀌는 폭(약 20px 여유)까지는 위와 같은 줄인 이름을 씁니다. */
@media screen and (min-width: 1100px) and (max-width: 1159px) {
  :is(#app .app-navigation:has(#openAdminBtn:not([hidden])), body:is([data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation) .app-nav-extra { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  :is(#app .app-navigation:has(#openAdminBtn:not([hidden])), body:is([data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation) { margin-left: 16px; }
  :is(#app .app-navigation:has(#openAdminBtn:not([hidden])), body:is([data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation) button { gap: 6px; padding: 0 10px; font-size: min(calc(15px * var(--reading-scale, 1)), 17px); }
}
@media screen and (min-width: 1160px) and (max-width: 1199px) {
  body:is([data-reading-step="1"], [data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation:has(#openAdminBtn:not([hidden])) .app-nav-extra { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  body:is([data-reading-step="1"], [data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation:has(#openAdminBtn:not([hidden])) { margin-left: 16px; }
  body:is([data-reading-step="1"], [data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation:has(#openAdminBtn:not([hidden])) button { gap: 6px; padding: 0 10px; font-size: min(calc(15px * var(--reading-scale, 1)), 17px); }
}
@media screen and (min-width: 1200px) and (max-width: 1239px) {
  body:is([data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation:has(#openAdminBtn:not([hidden])) .app-nav-extra { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  body:is([data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation:has(#openAdminBtn:not([hidden])) { margin-left: 16px; }
  body:is([data-reading-step="2"], [data-reading-step="3"]) #app .app-navigation:has(#openAdminBtn:not([hidden])) button { gap: 6px; padding: 0 10px; font-size: min(calc(15px * var(--reading-scale, 1)), 17px); }
}
@media screen and (min-width: 1240px) and (max-width: 1299px) {
  body[data-reading-step="3"] #app .app-navigation:has(#openAdminBtn:not([hidden])) .app-nav-extra { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  body[data-reading-step="3"] #app .app-navigation:has(#openAdminBtn:not([hidden])) { margin-left: 16px; }
  body[data-reading-step="3"] #app .app-navigation:has(#openAdminBtn:not([hidden])) button { gap: 6px; padding: 0 10px; font-size: min(calc(15px * var(--reading-scale, 1)), 17px); }
}
/* 관리자가 글자를 키우면 861~899px에서도 줄인 이름으로 넘쳐, 그 아래 폭처럼 앱 이름을 감춥니다. */
@media screen and (min-width: 861px) and (max-width: 899px) {
  body:is([data-reading-step="1"], [data-reading-step="2"], [data-reading-step="3"]) #app .app-topbar:has(#openAdminBtn:not([hidden])) .app-title { display: none; }
}
/* 그래도 넘치는 폭에서는 메뉴가 둘째 줄로 내려가 본문을 가리지 않고 메뉴 안에서 옆으로 밀립니다. */
@media screen and (min-width: 651px) {
  #app .app-navigation { flex-wrap: nowrap; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  #app .app-navigation::-webkit-scrollbar { display: none; }
}
/* 학생 패널이 오른쪽 서랍일 때: 이전·다음 옆에 닫기 단추를 둡니다 */
@media screen and (min-width: 651px) and (max-width: 1239px) {
  #app #growthView .gb-panel,
  #app #growthView .gb-card.gb-panel { border-width: 0 0 0 1px; border-radius: 0; }
  #app #growthView .gb-panel__head { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 2px; }
  #app #growthView .gb-panel__close { grid-column: 3; width: 44px; height: 44px; color: var(--ms-muted); background: none; border: 0; box-shadow: none; }
}
@media screen and (min-width: 651px) and (max-width: 860px) {
  #app .app-title { display: none; }
  #app .app-nav-icon { display: none; }
}

/* 넓은 화면의 칸 나누기 */
@media screen and (min-width: 1000px) {
  /* 우리 반 요약: 왼쪽 진행률, 오른쪽 숫자 칸 */
  #app #growthView .gb-class__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 28px; align-items: center; padding: 16px 18px; }
  #app #growthView .gb-class__hero-top { grid-column: 1; padding: 0; }
  #app #growthView .gb-class__bar { grid-column: 1; margin: 12px 0 0; }
  #app #growthView .gb-class__cells { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; gap: 6px; }
  #app #growthView .gb-class__cell { min-height: 78px; background: var(--ms-soft); border-radius: 14px; }
  #app #growthView .gb-class__cell.is-on { background: var(--ms-fill); }
  #app #growthView .gb-class__cell strong { font-size: calc(22px * var(--reading-scale, 1)); }
  #app #growthView .gb-class__cell span { font-size: calc(13px * var(--reading-scale, 1)); }
}
@media screen and (min-width: 1100px) {
  /* 나의 교육과정: 왼쪽 요약, 오른쪽 학년별 과목 */
  body.sb-theme .student-dashboard.curriculum-board { grid-template-columns: 380px minmax(0, 1fr); grid-auto-rows: min-content; align-items: start; gap: 14px 24px; margin-top: 14px; }
  body.sb-theme .student-dashboard.curriculum-board .board-overview { grid-column: 1 / -1; }
  body.sb-theme .student-dashboard.curriculum-board :is(.board-summary, .phone-quick-links, .board-disclosure, .board-next, .board-generated-at) { grid-column: 1; }
  body.sb-theme .student-dashboard.curriculum-board .board-courses { grid-column: 2; grid-row: 2 / span 12; margin-top: 0; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="year"] .board-semesters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  /* 왼쪽 칸이 좁으니 비중 고리와 범례를 위아래로 둡니다 */
  body.sb-theme .student-dashboard.curriculum-board .board-composition-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.sb-theme .student-dashboard.curriculum-board .board-composition-legend { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  /* 교사가 명단을 펴 두면 폭이 좁으니 요약을 위로 올리고 과목을 넓게 둡니다 */
  body.sb-theme .sp-desk.is-docked .student-dashboard.curriculum-board { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  body.sb-theme .sp-desk.is-docked .student-dashboard.curriculum-board :is(.board-summary, .phone-quick-links, .board-disclosure, .board-next, .board-generated-at) { grid-column: 1; }
  body.sb-theme .sp-desk.is-docked .student-dashboard.curriculum-board .board-courses { grid-column: 1; grid-row: auto; }
  /* 3개년 보기는 왼쪽 칸을 풀어 화면을 다 씁니다 */
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] { grid-template-columns: minmax(0, 1fr); }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-courses { grid-column: 1; grid-row: auto; }
}
@media screen and (min-width: 1240px) {
  /* 우리 반: 왼쪽 명렬표, 오른쪽 학생 패널 */
  #app #growthView .gb-class { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
  #app #growthView .gb-class__side { display: block; position: sticky; top: calc(var(--ms-bar) + 16px); bottom: auto; }
  #app #growthView .gb-panel,
  #app #growthView .gb-card.gb-panel { position: static; display: grid; max-height: calc(100vh - var(--ms-bar) - 32px); max-height: calc(100dvh - var(--ms-bar) - 32px); padding: 18px 20px; }
}

/* ── 동화풍 색 덧입히기(PC). 칸 모양은 그대로 두고 색만 바꿉니다 ── */
@media screen and (min-width: 651px) {
  body.sb-theme .student-dashboard.curriculum-board { margin-top: 14px; }
  body.sb-theme .student-dashboard.curriculum-board .board-overview h2 { width: fit-content; background: linear-gradient(transparent 68%, #ffe79a 68% 94%, transparent 94%); }
  body.sb-theme .student-dashboard.curriculum-board .board-semester > header { background: #fff8e6; }
  body.sb-theme .student-dashboard.curriculum-board .course-detail > summary:hover { background: #fffaf0; }

  #app #growthView .gb-tool__note.gb-tone--note { background: #fff8e6; }

  /* 토글: 고른 칸을 노랗게 채우고 아래 선과 작은 별을 더합니다 */
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab[aria-pressed="true"],
  body.sb-theme.curriculum-app.readable-app #helperView .sh-segment button[aria-pressed="true"],
  body.sb-theme.curriculum-app.readable-app #helperSubjectModal .sh-dialog-tabs button[aria-pressed="true"],
  #app #growthView .gb-postit.is-on,
  #app #growthView .gb-postit.is-on:hover,
  body.sb-theme.curriculum-app.readable-app.app-open .sp-seg:not(.sp-seg--grade) button.is-on { color: var(--ms-fill-ink); background: var(--ms-fill); box-shadow: inset 0 0 0 1px var(--ms-fill-line), 0 1px 0 var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-mock-grades button[aria-pressed="true"] small { color: var(--ms-fill-ink); background: rgba(255, 253, 248, .6); }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab { position: relative; }
  body.sb-theme.curriculum-app.readable-app #helperView .sh-tabs .sh-tab[aria-pressed="true"]::after {
    content: ""; position: absolute; top: 8px; right: 10px; width: 11px; height: 11px; background: var(--ms-spark);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#growthView .gb-chip.is-on, #growthView .gb-pick.is-on, .sp-chip.is-on, .sp-seg--grade button.is-on, #helperView .sh-chip[aria-pressed="true"]) { box-shadow: 0 1px 0 var(--ms-fill-line); }
  body.sb-theme.curriculum-app.readable-app.app-open :is(#growthView .gb-tab.is-on, #growthView .gb-mt.is-on, #growthView .gb-hr-tab.is-on) { box-shadow: inset 0 0 0 1px var(--ms-fill-line), 0 1px 0 var(--ms-fill-line); }

  /* 학년 탭: 노랑·민트·분홍 */
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs { gap: 8px; padding: 0; background: none; border-radius: 0; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button:nth-child(n) { position: relative; color: var(--ms-ink); border: 1px solid transparent; border-radius: 13px; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button:nth-child(1) { background: #fff4d2; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button:nth-child(2) { background: #e3f3ee; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button:nth-child(3) { background: #fde8ea; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button[aria-pressed="true"]:nth-child(1) { background: #ffdf85; border-color: #e7b23a; box-shadow: 0 1px 0 #e7b23a; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button[aria-pressed="true"]:nth-child(2) { background: #bfe6dc; border-color: #7cc4b4; box-shadow: 0 1px 0 #7cc4b4; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button[aria-pressed="true"]:nth-child(3) { background: #fbc9cf; border-color: #ee9aa6; box-shadow: 0 1px 0 #ee9aa6; }
  body.sb-theme .student-dashboard.curriculum-board .board-year-tabs button[aria-pressed="true"]::after {
    content: ""; position: absolute; top: 6px; right: 9px; width: 10px; height: 10px; background: var(--ms-spark);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  }

  /* 3개년 보기: 칸 너비에 맞춰 학년과 학기를 나눕니다 */
  body.sb-theme .student-dashboard.curriculum-board .board-courses { container: board / inline-size; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .phone-quick-links { display: none; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-courses { display: flex; flex-direction: column; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-section-heading { order: -2; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-legend { order: -1; margin-bottom: 10px; padding-top: 0; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-year-heading { margin-bottom: 8px; padding: 9px 14px; color: var(--ms-ink); border-radius: 12px; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-year:nth-child(1) .board-year-heading { background: #ffdf85; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-year:nth-child(2) .board-year-heading { background: #bfe6dc; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-year:nth-child(3) .board-year-heading { background: #fbc9cf; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-year-heading h4 { font-size: calc(17px * var(--reading-scale, 1)); font-weight: 800; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-year-heading > span { font-size: calc(14px * var(--reading-scale, 1)); font-weight: 700; }

  @container board (min-width: 900px) {
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-years { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semesters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  }
  @container board (min-width: 640px) and (max-width: 899.98px) {
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-years { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semesters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  }
  @container board (max-width: 639.98px) {
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-years { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semesters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  }
  /* 과목은 줄이지 않고 한 줄에 이름과 학점만 둡니다. 이수 구분은 줄 색으로 보여 주고 글자는 화면 읽기 프로그램에 남깁니다. */
  @container board (min-width: 640px) {
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semester { border-radius: 14px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semester > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 6px; padding: 9px 12px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semester h4 { font-size: calc(14.5px * var(--reading-scale, 1)); }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semester > header p { font-size: calc(12px * var(--reading-scale, 1)); white-space: nowrap; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-semester > header p > span { margin: 0 2px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; min-height: 40px; padding: 7px 11px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-main { grid-column: 1; grid-row: 1; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-title { font-size: calc(14px * var(--reading-scale, 1)); font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-main .course-group,
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-credit > span,
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail > summary > .board-chevron { display: none; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail .course-kind { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-credit { grid-column: 2; grid-row: 1; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-credit strong { font-size: calc(14px * var(--reading-scale, 1)); font-weight: 700; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-alert { grid-column: 1 / -1; grid-row: 2; font-size: calc(12.5px * var(--reading-scale, 1)); }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail[data-kind="designated"] > summary { background: var(--ms-green-soft); }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail[data-kind="selection"] > summary { background: var(--ms-violet-soft); }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail[data-kind="external"] > summary { background: var(--ms-mint-soft); }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail[data-kind="enrichment"] > summary { background: var(--ms-amber-soft); }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail-body { padding: 10px 11px 12px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail-body dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .course-detail-body :is(dt, dd) { font-size: calc(13px * var(--reading-scale, 1)); }
  }
}
/* 3개년 보기에서는 요약을 한 줄로 줄여 과목이 바로 보이게 합니다 */
@media screen and (min-width: 900px) {
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary { grid-template-columns: auto auto auto auto minmax(60px, 1fr) auto; gap: 0 16px; padding: 12px 20px; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-item:first-child > span { grid-row: 1; grid-column: 1; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-item:first-child > strong { grid-row: 1; grid-column: 2; font-size: calc(26px * var(--reading-scale, 1)); line-height: 1.2; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-item:first-child > strong small { font-size: calc(15px * var(--reading-scale, 1)); }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-item:nth-child(2) { grid-row: 1; grid-column: 3; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-item:nth-child(3) { grid-row: 1; grid-column: 4; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-meter { grid-row: 1; grid-column: 5; margin: 0; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-status strong { grid-row: 1; grid-column: 6; }
  body.sb-theme .student-dashboard.curriculum-board[data-view="all"] .board-summary-status span:not(.board-status-symbol) { display: none; }
}
