/* 새김 출제실: 고등 국어 변형 문제 출제 시연 (passage). 인상: 교무실 책상 위의 시험지와 자주색 색인 띠 */

.ps {
  --bg: #F1EFF5;
  --surface: #FFFFFF;
  --surface-2: #F7F5FA;
  --text: #1E1A24;
  --muted: #665F70;
  --line: #D9D3E0;
  --line-strong: #BDB4C9;
  --primary: #8A1C5B;
  --primary-soft: #FBEFF5;
  --accent: #F4C430;
  --ok: #1F7A4D;
  --ok-soft: #EAF5EF;
  --warn: #A65A00;
  --warn-soft: #FFF6EA;
  --danger: #C2311F;
  --danger-soft: #FCECEA;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ps { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
:where(.ps) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.ps) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ps) :where(a) { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ps :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- 안내 띠·머리말 ---------- */
.ps-band { height: 28px; line-height: 28px; text-align: center; padding: 0 12px; background: #E4E0EA; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.ps-head__inner { max-width: 1240px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; min-width: 0; }
.ps-brand__mark { width: 28px; height: 28px; flex: none; }
.ps-brand__name { font-weight: 800; font-size: 18px; color: var(--primary); letter-spacing: -0.01em; white-space: nowrap; }
.ps-brand__sub { font-size: 12.5px; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line); white-space: nowrap; }
.ps-head__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.ps-user { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ps-user select { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 28px 0 10px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; }
.ps-nav { border-top: 1px solid var(--line); }
.ps-nav__inner { max-width: 1240px; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; }
.ps-nav__item { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.ps-nav__item:hover { color: var(--text); }
.ps-nav__item.is-on { color: var(--primary); border-bottom-color: var(--primary); }

.ps-main { max-width: 1240px; margin: 0 auto; padding: 20px 20px 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }

/* ---------- 버튼·표시 ---------- */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ps-btn:hover { border-color: var(--primary); }
.ps-btn:disabled { opacity: .45; cursor: not-allowed; }
.ps-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.ps-btn--primary:hover { background: #741649; }
.ps-btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.ps-btn--ghost:hover { color: var(--text); border-color: var(--line); }
.ps-btn--sm { font-size: 14px; padding: 0 12px; }
.ps-btn--lg { min-height: 52px; font-size: 17px; padding: 0 28px; }
.ps-link { background: none; border: none; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 6px; }
.ps-icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--text); }
.ps-icon-btn--sm { width: 36px; height: 36px; border-color: transparent; color: var(--muted); }
.ps-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--primary); letter-spacing: .02em; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.tag--bank { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.tag--mock { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.tag--ans, .tag--ok { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.tag--past { border-color: #7A6F86; color: #4F4659; background: #F1EEF4; }

/* 시그니처: 검증 도장(테두리형, 글자와 기호를 함께) */
.stamp { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border: 1.5px solid currentColor; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.stamp::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.stamp b { font-family: var(--mono); font-size: 14px; }
.stamp--pass { color: var(--ok); background: var(--ok-soft); }
.stamp--pass::before { content: "✓"; }
.stamp--fixed { color: var(--warn); background: var(--warn-soft); }
.stamp--fixed::before { content: "↻"; }
.stamp--check { color: var(--warn); background: #fff; border-style: dashed; }
.stamp--check::before { content: "!"; font-weight: 800; }
.stamp--sm { font-size: 12px; padding: 1px 7px 1px 4px; }
.stamp--sm::before { width: 13px; height: 13px; font-size: 8.5px; }

/* 스위치 */
.ps-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.ps-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-switch__track { width: 44px; height: 26px; border-radius: 13px; background: #CFC8D8; position: relative; flex: none; }
.ps-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ps-switch input:checked + .ps-switch__track { background: var(--primary); }
.ps-switch input:checked + .ps-switch__track .ps-switch__thumb { left: 21px; }
.ps-switch input:focus-visible + .ps-switch__track { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- 공고 대응표·알림 ---------- */
.ps-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: none; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 6px 18px rgba(30,26,36,.28); }
.ps-dialog { width: min(780px, calc(100% - 24px)); max-height: 86vh; border: none; border-radius: 12px; padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(30,26,36,.3); }
.ps-dialog::backdrop, .sheet::backdrop { background: rgba(30, 26, 36, .45); }
.ps-dialog__body { padding: 18px 20px 20px; }
.ps-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ps-dialog__title { font-size: 21px; font-weight: 800; }
.ps-map { list-style: none; margin: 0; padding: 0; }
.ps-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ps-map__need { color: var(--text); }
.ps-map__show { color: var(--primary); font-weight: 600; text-decoration: none; }
.ps-map__show:hover { text-decoration: underline; }
.ps-map__show--none { color: var(--muted); }
.ps-dialog__foot { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ps-toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: min(560px, calc(100% - 32px)); padding: 11px 16px; border-radius: 10px; background: var(--text); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(30,26,36,.3); }
.ps-toast[hidden] { display: none; }
.demo-notice { max-width: 1240px; margin: 0 auto; padding: 0 20px 88px; font-size: 12px; color: var(--muted); }

/* ---------- 종이(시험지·학습지): 종이 폭 기준 단위(cqw)로 그려 어느 폭에서도 같은 조판 ---------- */
.pp { display: flex; flex-direction: column; gap: 20px; }
.paper { position: relative; width: 100%; aspect-ratio: 210 / 297; container-type: inline-size; background: #fff; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 1px 3px rgba(30, 26, 36, .12); overflow: hidden; color: #111; }
.paper__in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5.2cqw 6cqw 3.6cqw; font-family: var(--serif); font-size: 1.5cqw; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.paper__head { display: flex; align-items: center; gap: 2cqw; padding-bottom: 1.1cqw; margin-bottom: 1.8cqw; border-bottom: .35cqw solid #111; flex: none; }
.paper__aca { font-weight: 700; font-size: 1.6cqw; }
.paper__ttl { flex: 1; text-align: center; font-weight: 700; font-size: 2.3cqw; letter-spacing: -.01em; }
.paper__subj { border: .2cqw solid #111; padding: .2cqw 1.2cqw; font-size: 1.5cqw; font-weight: 700; }
.paper__body { flex: 1; min-height: 0; column-count: 2; column-gap: 4cqw; column-rule: .12cqw solid #888; column-fill: auto; }
.paper__foot { flex: none; text-align: center; margin-top: 1.2cqw; font-family: var(--mono); font-size: 1.3cqw; }
.paper__empty { column-span: all; text-align: center; color: #555; padding-top: 30cqw; font-size: 1.8cqw; }
.paper [data-roll] { display: inline-block; text-indent: 0; }

.pg__range { font-weight: 700; margin: 0 0 1cqw; }
.pg__text { border: .14cqw solid #111; padding: 1.4cqw 1.6cqw; margin: 0 0 1.8cqw; text-align: justify; word-break: normal; }
.pg__text p { text-indent: 1.5cqw; }
.pg__text p + p { margin-top: .3cqw; }
.pg__text u { text-underline-offset: .35cqw; }
.pg__text--poem { text-align: left; }
.pg__text--poem p { text-indent: 0; }
.poem__title { text-align: center; font-weight: 700; margin-bottom: 1cqw !important; }
.poem__author { font-weight: 400; margin-left: 2cqw; font-size: .92em; }
.poem__st + .poem__st { margin-top: 1cqw !important; }
.pg__fig { margin: 1.2cqw 0 0; text-align: center; break-inside: avoid; }
.pg__fig svg { width: 94%; height: auto; display: block; margin: 0 auto; }
.pg__fig figcaption { font-size: 1.35cqw; }

.q { break-inside: avoid; margin: 0 0 1.9cqw; }
.q__stem { padding-left: 2.6cqw; text-indent: -2.6cqw; margin-bottom: .7cqw; }
.q__no { font-weight: 700; }
.q__box { position: relative; border: .14cqw solid #111; padding: 1.5cqw 1.5cqw 1cqw; margin: 1.2cqw 0 1cqw 2.6cqw; }
.q__box p { margin: 0; }
.q__boxlbl { position: absolute; top: -1.1cqw; left: 50%; transform: translateX(-50%); background: #fff; padding: 0 1cqw; font-size: 1.35cqw; }
.q__ch { list-style: none; margin: 0; padding: 0 0 0 2.6cqw; }
.q__ch li { padding-left: 2.1cqw; text-indent: -2.1cqw; }
.q__cn { margin-right: .5cqw; }

.paper--ans .paper__body { column-count: 2; column-fill: balance; }
.ans__ttl { column-span: all; text-align: center; font-size: 2.3cqw; font-weight: 700; margin: .4cqw 0 1.4cqw; }
.ans__ttl small { font-size: .65em; font-weight: 400; }
.ans__grid { column-span: all; list-style: none; margin: 0 0 2cqw; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: .14cqw solid #111; border-left: .14cqw solid #111; }
.ans__grid li { display: flex; justify-content: center; align-items: baseline; gap: 1.2cqw; padding: .55cqw 0; border-right: .14cqw solid #111; border-bottom: .14cqw solid #111; }
.ans__grid b { font-weight: 700; }
.ans__it { break-inside: avoid; margin: 0 0 1.3cqw; }
.ans__hd { margin-bottom: .2cqw; }
.ans__hd b { display: inline-block; min-width: 3.2cqw; text-align: center; border: .14cqw solid #111; margin-right: 1cqw; font-weight: 700; }
.ans__hd span { font-weight: 700; }

/* 시그니처: 번호가 바뀐 자리만 아래에서 굴러 올라온다 */
.is-roll { display: inline-block; animation: ps-roll .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes ps-roll {
  0% { transform: translateY(85%); opacity: 0; color: var(--primary); }
  60% { opacity: 1; color: var(--primary); }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .is-roll { animation: none; } }

/* 학습지 */
.paper--ho .paper__body { column-count: 1; }
.ho__top { text-align: center; margin-bottom: 1.6cqw; }
.ho__ttl { font-size: 2.9cqw; font-weight: 700; }
.ho__meta { font-size: 1.45cqw; color: #333; margin-top: .3cqw !important; }
.ho__sec { margin: 0 0 1.8cqw; break-inside: avoid; }
.ho__sec h4 { font-size: 1.75cqw; font-weight: 700; border-left: .55cqw solid #111; padding-left: 1cqw; margin-bottom: .9cqw; }
.ho__sec--text .pg__text { margin-bottom: 0; }
.ho__tbl { width: 100%; border-collapse: collapse; }
.ho__tbl th, .ho__tbl td { border: .12cqw solid #111; padding: .7cqw 1.2cqw; text-align: left; vertical-align: middle; }
.ho__tbl th { width: 22%; background: #F3F1F6; font-weight: 700; }
.ho__tbl td .blank { width: 100%; }
.blank { display: inline-block; min-width: 50%; height: 1.3em; border-bottom: .14cqw solid #111; vertical-align: bottom; }
.blank--name { min-width: 16cqw; }
.blank--in { min-width: 80%; }
.ho__q { margin: 0; padding-left: 2.6cqw; }
.ho__q li { margin-bottom: 1.1cqw; }
.ho__qq { font-weight: 700; }
.ho__qa { margin-top: .4cqw !important; padding: .7cqw 1.1cqw; background: #F6F4F8; border-left: .4cqw solid #888; }
.ho__qa b, .ho__tip b { margin-right: .8cqw; }
.ho__lines .blank { display: block; width: 100%; height: 2.6cqw; }
.ho__tip { font-size: 1.42cqw; color: #222; margin-top: .3cqw !important; }
.ho__sec--talk { border: .14cqw dashed #111; padding: 1.2cqw 1.4cqw .4cqw; }
.ho__struct { display: grid; gap: 1.2cqw; }
.hs__top { border: .2cqw solid #111; text-align: center; padding: .8cqw; font-weight: 700; }
.hs__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.hs__box { border: .14cqw solid #111; padding: .7cqw .9cqw; display: flex; flex-direction: column; gap: .3cqw; text-align: center; align-items: center; justify-content: center; min-height: 6cqw; }
.hs__box b { font-weight: 700; }
.hs__box > span { align-self: stretch; }
.hs__box .blank { width: 80%; min-width: 0; flex: none; }
.hs__box--wide .blank { width: auto; flex: 1; }
.hs__flow, .hs__bottom { display: flex; align-items: stretch; gap: .6cqw; }
.hs__flow .hs__box { flex: 1; }
.hs__box--wide { flex: 1; flex-direction: row; gap: .6cqw; min-height: 4.6cqw; }
.hs__arrow { align-self: center; font-size: 1.8cqw; }

/* ---------- 출제 결과(/) ---------- */
.rs { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 20px; align-items: start; }
.rs-tabs { display: none; }
.rs-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 4px; }
.rs-sum__eyebrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rs-sum__title { font-size: 20px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.01em; }
.rs-sum__sub { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.rs-stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-sum__hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.rs-dist { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rs-dist__k { font-size: 14px; font-weight: 700; }
.rs-dist__k span { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.rs-dist__bars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.rs-dist__bars li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 26px; align-items: center; gap: 8px; min-height: 22px; }
.rs-dist__n { font-size: 16px; }
.rs-dist__bar { height: 10px; background: #ECE8F1; border-radius: 5px; overflow: hidden; }
.rs-dist__bar i { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.rs-dist__bars b { text-align: right; font-size: 14px; }
.rs-dist__bars--sm li { min-height: 18px; }
.rs-dist__fix { margin-top: 10px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 10px 12px; }
.rs-dist__fix p { font-size: 13.5px; margin-bottom: 8px; }
.rs-dist__fix[hidden] { display: none; }

.rs-list { padding: 12px 0 0; }
.rs-list__head { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.rs-list__head h2 { font-size: 16px; font-weight: 800; }
.rs-list__head span { font-size: 12.5px; color: var(--muted); }
.rs-grp__head { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rs-grp__ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.rs-rows { list-style: none; margin: 0; padding: 0; }
.rs-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.rs-grp:last-child .rs-row:last-child { border-bottom: none; }
.rs-row__chk { width: 48px; flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rs-row__chk input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.rs-row__main { flex: 1; min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 56px; padding: 8px 12px 8px 0; background: none; border: none; text-align: left; cursor: pointer; }
.rs-row__main:hover { background: #FAF8FC; }
.rs-row__no { font-weight: 700; font-size: 16px; color: var(--primary); text-align: center; }
.rs-row__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rs-row__stem { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rs-row__meta { font-size: 12.5px; color: var(--muted); }
.rs-row__ok { color: var(--ok); font-weight: 600; }
.rs-row.is-out .rs-row__main { opacity: .5; }
.rs-row.is-out .rs-row__no { color: var(--muted); }
.rs-row.is-out .rs-row__stem { text-decoration: line-through; text-decoration-color: var(--muted); }
.rs-actions__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-note { font-size: 12.5px; color: var(--muted); margin-top: 8px !important; }
.rs-paper { min-width: 0; }
.rs-paper__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.rs-paper__head h2 { font-size: 17px; font-weight: 800; }
.rs-paper__meta { font-size: 13.5px; color: var(--muted); }

/* 검증 기록 시트 */
.sheet { margin: 0 0 0 auto; inset: 0 0 0 auto; width: min(700px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border: none; padding: 0; background: var(--surface); color: var(--text); box-shadow: -10px 0 40px rgba(30, 26, 36, .25); }
.sheet--paper { width: min(920px, 100%); background: var(--bg); }
.sheet__in { display: flex; flex-direction: column; height: 100%; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.sheet__title { font-size: 18px; font-weight: 800; margin-top: 2px; }
.sheet__tools { display: flex; align-items: center; gap: 8px; }
.sheet__body { flex: 1; overflow: auto; padding: 16px 20px 40px; }
.sheet--paper .pp { margin-top: 12px; }
.vr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vr-reason { font-size: 13.5px; font-weight: 700; color: var(--danger); }
.vr-note { font-size: 13px; color: var(--muted); margin-top: 8px !important; }
.vr-sec { margin-top: 20px; }
.vr-sec h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.vr-hint { font-size: 13px; color: var(--muted); margin-bottom: 8px !important; }
.vr-passage { position: relative; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #FCFBFD; font-family: var(--serif); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.vr-passage p + p { margin-top: 6px; }
.vr-passage sup { font-family: var(--mono); font-size: 10px; color: var(--primary); margin-right: 2px; vertical-align: super; }
.vr-passage .s.is-hl { background: var(--accent); color: var(--text); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 1px 2px; border-radius: 2px; }
.vr-fig { margin: 10px 0 0; text-align: center; }
.vr-fig svg { width: 100%; max-width: 380px; height: auto; }
.vr-fig figcaption { font-size: 13px; }
.vr-src { font-family: var(--font); font-size: 12px; color: var(--muted); margin-top: 8px !important; }
.vr-box { border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; font-family: var(--serif); font-size: 14.5px; }
.vr-box b { font-family: var(--font); font-size: 12.5px; color: var(--muted); }
.vr-choices { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.vr-ch { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; font-size: 14.5px; }
.vr-ch:hover { border-color: var(--line-strong); }
.vr-ch[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.vr-ch__n { font-size: 17px; flex: none; }
.vr-ch__t { flex: 1; min-width: 0; }
.vr-why { font-size: 13.5px; margin-top: 8px !important; min-height: 1.5em; }
.vr-why span { color: var(--muted); margin-left: 4px; }
.vr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vr-ai { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; }
.vr-ai__k { font-size: 13px; font-weight: 800; }
.vr-ai__k span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.vr-ai__ans { font-weight: 800; font-size: 15.5px; margin: 4px 0 !important; }
.vr-verdict { display: inline-flex; align-items: center; margin-top: 8px !important; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 6px; font-size: 13.5px; font-weight: 800; }
.vr-verdict--ok { color: var(--ok); background: var(--ok-soft); }
.vr-verdict--bad { color: var(--danger); background: var(--danger-soft); }
.vr-steps { list-style: none; margin: 0; padding: 0; }
.vr-steps li { border-left: 3px solid var(--line); margin-left: 8px; padding: 2px 0 14px 14px; font-size: 14px; }
.vr-steps li:last-child { border-left-color: var(--ok); }
.vr-steps__k { font-weight: 800; margin-bottom: 2px !important; display: flex; align-items: center; gap: 8px; }
.vr-steps__k b { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 50%; font-size: 12px; margin-left: -26px; background: var(--surface); }
.vr-old { color: var(--danger); }
.vr-diff s { color: var(--muted); }
.vr-diff u { text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.vr-decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vr-hist { list-style: none; margin: 0; padding: 0; }
.vr-hist li { font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* ---------- 새 출제(/new) ---------- */
.cp { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; }
.cp-head h1 { font-size: 24px; font-weight: 800; }
.cp-head p { color: var(--muted); margin-top: 4px; }
.cp-step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cp-step__no { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--primary); color: var(--primary); border-radius: 50%; font-weight: 700; font-size: 14px; }
.cp-step__head h2 { font-size: 18px; font-weight: 800; }
.cp-step__meta { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.cp-step__meta .tag { margin-left: 4px; }
.cp-paste { border: 2px dashed var(--line-strong); border-radius: 10px; padding: 12px; background: #FBFAFD; }
.cp-paste__label { display: block; font-weight: 700; margin-bottom: 6px; }
.cp-paste__box { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; resize: vertical; background: #fff; }
.cp-paste__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cp-paste__note { font-size: 12.5px; color: var(--muted); margin-top: 6px !important; }
.cp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.cp-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.cp-card--cap { border-color: var(--primary); box-shadow: inset 4px 0 0 var(--primary); }
.cp-card--new { border-style: dashed; }
.cp-card__lbl { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.cp-card__ttl { font-size: 16px; font-weight: 800; margin: 6px 0 8px; }
.cp-card__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.cp-card__meta dt { font-size: 12px; color: var(--muted); }
.cp-card__meta dd { margin: 0; font-size: 14px; font-weight: 600; }
.cp-card__open { margin-top: 10px; width: 100%; }
.cp-card__note { font-size: 12.5px; color: var(--muted); margin-top: 8px !important; }
.cp-cap { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #FBFAFD; }
.cp-cap[hidden] { display: none; }
.cp-cap__k { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 700; margin-bottom: 8px !important; }
.cp-cap__img svg, .cp-cap__img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cp-ocr { font-family: var(--serif); font-size: 15px; line-height: 1.75; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; max-height: 440px; overflow: auto; word-break: keep-all; }
.cp-ocr p { margin-bottom: 8px; }
.ocr-flag { background: #FFF1C7; color: var(--text); border-bottom: 2px dashed var(--warn); padding: 0 2px; }
.ocr-flag.is-fixed { background: var(--ok-soft); border-bottom-color: var(--ok); }
.cp-ocr__fig { display: flex; gap: 12px; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; font-family: var(--font); font-size: 13.5px; }
.cp-ocr__thumb { width: 150px; flex: none; border: 1px solid var(--line); border-radius: 4px; padding: 4px; background: #fff; }
.cp-ocr__thumb svg { width: 100%; height: auto; display: block; }
.cp-ocr__fix { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.cp-ocr__fix[hidden] { display: none; }
.cp-cond__sel { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-cond__sel label { display: flex; flex-direction: column; gap: 4px; }
.cp-cond__sel span { font-size: 13px; color: var(--muted); font-weight: 600; }
.cp-cond__sel select { min-height: 44px; min-width: 150px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; background: #fff; font-size: 15px; }
.cp-counts { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cp-counts__row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) 64px; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.cp-counts__row--head { border-top: none; background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 600; }
.cp-counts__p small { display: block; font-size: 12px; color: var(--muted); }
.cp-counts__sum { text-align: center; font-weight: 700; font-size: 16px; }
.cp-step-in { display: inline-flex; align-items: center; gap: 6px; }
.cp-step-in__k { display: none; font-size: 13px; color: var(--muted); font-weight: 600; min-width: 18px; }
.cp-step-in__b { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.cp-step-in__b:hover { border-color: var(--primary); color: var(--primary); }
.cp-step-in b { min-width: 22px; text-align: center; font-size: 16px; }
.cp-mix { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.cp-mix .cp-step-in__k { display: inline; }
.cp-mix__note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.cp-total { margin-top: 12px !important; font-size: 15px; }
.cp-total b { color: var(--primary); font-family: var(--font); font-weight: 800; }
.cp-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.cp-band[hidden] { display: none; }
.cp-plan { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cp-plan.is-stale .cp-plan__row:not(.cp-plan__row--head) { opacity: .45; }
.cp-plan__row { display: grid; grid-template-columns: 48px 62px 92px 74px minmax(0, 1fr) 104px; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.cp-plan__row--head { border-top: none; background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-weight: 700; }
.cp-plan__row--head small { font-weight: 400; }
.cp-plan__no { font-weight: 700; color: var(--primary); }
.cp-plan__ans { font-size: 18px; color: var(--primary); }
.cp-plan__dist { padding: 10px 12px; border-top: 1px solid var(--line); background: #FBFAFD; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.cp-run__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cp-run__bar p { font-size: 13.5px; color: var(--muted); }
.cp-prog[hidden] { display: none; }
.cp-prog__steps { list-style: none; padding: 0; margin: 14px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-prog__steps li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--muted); background: #fff; }
.cp-prog__steps li.is-on { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.cp-prog__steps li.is-done { border-color: var(--ok); color: var(--ok); }
.cp-prog__steps li.is-done::before { content: "✓ "; }
.cp-prog__cells { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cp-prog__cells li { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 2px; text-align: center; font-size: 11.5px; color: var(--muted); background: #fff; line-height: 1.3; }
.cp-prog__cells b { display: block; font-size: 14px; color: var(--text); }
.cp-prog__cells li.is-made { border-color: #9C93A8; color: var(--text); }
.cp-prog__cells li.is-pass { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.cp-prog__cells li.is-err { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.cp-prog__cells li.is-fixed { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.cp-prog__cells li.is-check { border-color: var(--warn); border-style: dashed; color: var(--warn); }
.cp-prog__msg { margin-top: 10px !important; font-weight: 600; }
.cp-foot { font-size: 13px; color: var(--muted); margin-top: 12px !important; }

/* ---------- 문제 은행(/bank) ---------- */
.bk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.bk-head h1 { font-size: 24px; font-weight: 800; }
.bk-head p { color: var(--muted); margin-top: 4px; }
.bk-head__sum { display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.bk-head__sum b { color: var(--text); font-size: 16px; }
.bk-filter { display: grid; gap: 6px; }
.bk-frow { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; align-items: start; }
.bk-frow__k { font-size: 13.5px; font-weight: 700; color: var(--muted); padding-top: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-on::before { content: "✓ "; }
.bk-count { font-size: 14px; margin-top: 4px !important; }
.bk-count b { color: var(--primary); font-size: 18px; }
.bk-count span { color: var(--muted); }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 16px; }
.bk-list { padding: 0; overflow: hidden; }
.bk-tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 88px 70px 132px 112px; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border-top: 1px solid var(--line); }
.bk-tr[hidden] { display: none; }
.bk-tr--head { border-top: none; background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-weight: 700; padding-top: 10px; padding-bottom: 10px; }
.bk-tr--head span:first-child { text-align: center; }
.bk-chk { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bk-chk input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.bk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 44px; padding: 6px 4px; background: none; border: none; text-align: left; cursor: pointer; border-radius: 6px; }
.bk-main:hover { background: #FAF8FC; }
.bk-p { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-stem { font-size: 14.5px; font-weight: 600; }
.bk-mtags { display: none; font-size: 12.5px; color: var(--muted); }
.bk-c { font-size: 13.5px; }
.bk-c--src { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bk-c--ed { color: var(--muted); font-size: 13px; }
.bk-c--ed.is-new { color: var(--primary); font-weight: 700; }
.bk-empty { padding: 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.bk-empty[hidden] { display: none; }
.bk-basket { position: sticky; top: 12px; }
.bk-basket__head { display: flex; align-items: baseline; justify-content: space-between; }
.bk-basket__head h2 { font-size: 17px; font-weight: 800; }
.bk-basket__head b { color: var(--primary); font-size: 20px; }
.bk-basket__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow: auto; }
.bk-basket__list li { display: flex; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.bk-basket__list li > .num { color: var(--primary); font-weight: 700; min-width: 18px; }
.bk-basket__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
li.bk-basket__empty { color: var(--muted); font-size: 13px; border: none; padding: 6px 0; display: block; }
.bk-basket__k { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 12px !important; }
.bk-basket__lv { font-size: 14px; }
.bk-basket__btns { display: grid; gap: 8px; margin-top: 14px; }
.bk-strip { display: none; }
.ed { display: grid; gap: 12px; }
.ed__p { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed__f { display: grid; gap: 4px; }
.ed__f span { font-size: 13px; font-weight: 700; color: var(--muted); }
.ed textarea, .ed input[type="text"] { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font-size: 15px; background: #fff; }
.ed input[type="text"] { min-height: 44px; }
.ed__ch { border: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ed__ch legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; padding: 0; }
.ed__opt { display: flex; align-items: center; gap: 8px; }
.ed__n { font-size: 17px; flex: none; }
.ed__opt.is-ans input { border-color: var(--ok); }
.ed__who { font-size: 13.5px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.ed__btns { display: flex; gap: 8px; }
.ed .vr-sec { margin-top: 6px; }

/* ---------- 수업 자료(/handout) ---------- */
.ho-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.ho-side { position: sticky; top: 12px; display: grid; gap: 14px; }
.ho-side h1 { font-size: 22px; font-weight: 800; }
.ho-side__lead { font-size: 14px; color: var(--muted); }
.ho-side__check { font-size: 13px; color: var(--muted); }
.ho-side__check .stamp { margin-right: 4px; vertical-align: middle; }
.ho-side__hint { font-size: 13px; color: var(--muted); margin-top: -6px !important; }
.ho-pick, .ho-secs { border: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ho-pick legend, .ho-secs legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; padding: 0; }
.ho-pick__opt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.ho-pick__opt input { width: 18px; height: 18px; accent-color: var(--primary); }
.ho-pick__opt > span:first-of-type { flex: 1; min-width: 0; }
.ho-pick__opt.is-on { border-color: var(--primary); background: var(--primary-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg__btn { min-height: 44px; border: none; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.seg__btn + .seg__btn { border-left: 1px solid var(--line-strong); }
.seg__btn.is-on { background: var(--primary); color: #fff; }
.ho-dl { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.ho-dl__k { font-size: 13.5px; font-weight: 700; }
.ho-preview { min-width: 0; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1100px) {
  .bk-tr { grid-template-columns: 44px minmax(0, 1fr) 80px 64px 120px; }
  .bk-tr > :last-child { display: none; }
}
@media (max-width: 960px) {
  .ps-main { padding: 14px 14px 32px; }
  .rs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 4px 0 8px; }
  .rs-tabs__btn { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; }
  .rs-tabs__btn.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
  .rs-tabs__n { font-family: var(--mono); font-size: 12px; font-weight: 500; }
  .rs-side { position: static; max-height: none; overflow: visible; }
  .rs[data-view="list"] .rs-paper { display: none; }
  .rs[data-view="paper"] .rs-side { display: none; }
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-basket { position: static; }
  .bk-strip { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(30, 26, 36, .08); }
  .bk-strip > span { flex: 1; font-size: 14px; }
  .bk-strip b { color: var(--primary); font-size: 17px; }
  .ps--bank .ps-fab { bottom: 76px; }
  .ps--bank .demo-notice { padding-bottom: 150px; }
  .ho-wrap { grid-template-columns: minmax(0, 1fr); }
  .ho-side { position: static; }
}
@media (max-width: 760px) {
  .cp-cap { grid-template-columns: minmax(0, 1fr); }
  .cp-counts__row--head { display: none; }
  .cp-counts__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
  .cp-counts__p { grid-column: 1 / -1; }
  .cp-counts__row .cp-step-in { grid-column: 1; }
  .cp-counts__sum { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
  .cp-counts__sum::before { content: "합계 "; font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 600; display: block; }
  .cp-step-in__k { display: inline; }
  .cp-plan__row.cp-plan__row--head { display: none; }
  .cp-plan__row { display: flex; flex-wrap: wrap; gap: 2px 10px; }
  .cp-plan__row > span:nth-child(3), .cp-plan__row > span:nth-child(4) { font-size: 13px; color: var(--muted); }
  .cp-plan__what { flex-basis: 100%; order: 5; }
  .cp-plan__ans { margin-left: auto; order: 4; }
  .cp-prog__cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bk-tr--head { display: none; }
  .bk-tr { grid-template-columns: 44px minmax(0, 1fr); gap: 4px; padding: 4px 8px 4px 2px; }
  .bk-tr > .bk-c { display: none; }
  .bk-mtags { display: block; }
  .bk-frow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bk-frow__k { padding-top: 4px; }
  .vr-two { grid-template-columns: minmax(0, 1fr); }
  .ps-map li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 560px) {
  .ps-band__long { display: none; }
  .ps-head__inner { padding: 6px 12px; }
  .ps-brand__sub, .ps-user__k { display: none; }
  .ps-brand__name { font-size: 16px; }
  .ps-user select { max-width: 96px; padding-right: 20px; }
  .ps-head__tools .ps-btn span { display: none; }
  .ps-head__tools .ps-btn { padding: 0 12px; }
  .ps-nav__inner { padding: 0 4px; gap: 0; }
  .ps-nav__item { flex: 1; padding: 0 4px; font-size: 14px; }
  .ps-main { padding: 12px 12px 28px; }
  .card { padding: 14px; }
  .rs-list { padding-top: 12px; }
  .rs-row__main { grid-template-columns: 26px minmax(0, 1fr); row-gap: 4px; }
  .rs-row__main > .stamp { grid-column: 2; justify-self: start; }
  .sheet__head { padding: 12px 14px; }
  .sheet__body { padding: 14px 14px 36px; }
  .sheet__tools .ps-btn { padding: 0 10px; }
  .cp-card__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-ocr__fig { flex-direction: column; align-items: flex-start; }
}

/* ---------- 인쇄: 시험지·학습지만 A4 ---------- */
@media screen { .print-area { display: none; } }
@media print {
  @page { size: A4; margin: 0; }
  body.ps { background: #fff; }
  body.ps > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; }
  .print-area .paper { width: 210mm; height: 297mm; aspect-ratio: auto; border: none; border-radius: 0; box-shadow: none; margin: 0; break-after: page; page-break-after: always; }
  .print-area .paper:last-child { break-after: auto; page-break-after: auto; }
}
