/* 고수 허브 — 실제판 전용 디자인 (포스터와 같은 결: 남색 밤하늘 + 코발트 빛 + 흰 카드) */
:root { --glow: radial-gradient(circle at 85% -10%, rgba(26,92,255,.55), rgba(26,92,255,0) 55%); }

/* ── 로그인 ── */
.hub-login { min-height: 100dvh; background: var(--glow), #0B1B45; color: #fff; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.hub-login::before, .hub-login::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(143,176,255,.13); pointer-events: none; }
.hub-login::before { width: 620px; height: 620px; right: -200px; top: -220px; }
.hub-login::after { width: 900px; height: 900px; right: -340px; top: -360px; }
.hub-login .inner { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.hub-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.hub-brand img { width: 72px; height: 72px; }
.hub-brand h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.hub-brand p { font-size: 13px; letter-spacing: .34em; color: #8FB0FF; font-weight: 700; margin-top: 8px; }
.hub-lead { font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; margin-bottom: 26px; }
.hub-lead em { font-style: normal; color: #6F9BFF; }
.hub-card { background: #fff; color: var(--text); border-radius: 24px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
:root[data-theme="dark"] .hub-card { background: #111A33; color: #E8ECF6; }
.hub-card h2 { font-size: 19px; margin-bottom: 6px; }
.hub-card > p { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.pin-input { width: 100%; font: inherit; font-size: 28px; letter-spacing: .5em; text-align: center; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--text); }
.pin-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.pin-input::placeholder, .name-input::placeholder { font-size: 16px; letter-spacing: normal; color: var(--text); opacity: .35; }      /* 10-09 공용 PC: 이름·비밀번호 칸은 흐린 예시 글만 */
.hub-card .btn.primary { height: 52px; font-size: 16px; border-radius: 14px; margin-top: 14px; }
.hub-card .error { display: block; min-height: 20px; margin-top: 10px; color: var(--bad); font-size: 13.5px; text-align: center; }
.name-search { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); margin-bottom: 12px; }
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 50vh; overflow: auto; padding: 2px; }
.names button { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; padding: 12px 4px 10px; cursor: pointer; display: grid; gap: 2px; transition: .15s var(--ease); }
.names button:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.names button b { font-size: 16px; }
.names button small { font-size: 12px; color: var(--text-3); }
.hub-foot { display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #8891A7; font-size: 12.5px; margin-top: 20px; }
.hub-foot img { height: 26px; vertical-align: middle; margin-right: 6px; opacity: .85; }

/* ── 뼈대 ── */
.sidebar .brand img { width: 34px; height: 34px; }
.topbar .hello { font-size: 15px; font-weight: 600; color: var(--text); }
.topbar .hello small { color: var(--text-3); font-weight: 500; margin-left: 6px; }

/* ── 홈 ── */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 28px; color: #fff; background: var(--glow), linear-gradient(135deg, #0B1B45, #13275E); margin-bottom: 20px; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; background: url(/img/hub-mark.svg) center / contain no-repeat; opacity: .12; }
.hero small { color: #8FB0FF; font-weight: 700; letter-spacing: .08em; font-size: 12.5px; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; color: #fff; }
.hero p { color: #B9C3DD; font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); color: var(--text); text-decoration: none; transition: .2s var(--ease); min-height: 170px; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--brand-line); }
.tile .ic { width: 26px; height: 26px; }
.tile .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tile.primary { background: linear-gradient(135deg, #1A5CFF, #3F7BFF); color: #fff; border: 0; }
.tile.primary .ico { background: rgba(255,255,255,.18); color: #fff; }
.tile.primary p { color: rgba(255,255,255,.85); }
.tile h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tile p { font-size: 13.5px; color: var(--text-2); margin-top: -4px; }
.tile .count { position: absolute; right: 20px; top: 20px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.tile .count small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 2px; }

/* ── 완성본 카드 ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.filters button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .filters button.on { background: var(--brand); border-color: var(--brand); }
.searchbox { position: relative; margin-bottom: 12px; }
.searchbox input { width: 100%; font: inherit; padding: 13px 16px 13px 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.searchbox .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.doc { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.doc .band { height: 92px; padding: 16px 20px; color: #fff; background: var(--glow), linear-gradient(135deg, #0B1B45, #1C3272); display: flex; flex-direction: column; justify-content: space-between; }
.doc.analysis .band { background: radial-gradient(circle at 90% 0, rgba(111,155,255,.6), transparent 60%), linear-gradient(135deg, #1A5CFF, #0F3DB8); }
.doc .band small { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #8FB0FF; }
.doc.analysis .band small { color: #DCE6FF; }
.doc .band b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.doc .new { position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: #fff; color: var(--brand); border-radius: 999px; padding: 3px 9px; }
.doc .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.doc .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.doc .chips span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.doc .chips span.g { background: var(--mute-soft); color: var(--text-2); }
.doc .dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.doc .dl.one { grid-template-columns: 1fr; }
.doc .dl .btn { height: 44px; border-radius: 12px; justify-content: center; }
.doc .dl .btn small { opacity: .7; font-weight: 500; margin-left: 2px; }
.doc .meta { font-size: 12.5px; color: var(--text-3); }

/* ── 올리기 ── */
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.up-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2); padding: 24px; }
.up-sec + .up-sec { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.up-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 14px; }
.up-sec h3 b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: grid; place-items: center; }
.school-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.school-chips button { font: inherit; font-size: 13.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.school-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .seg input:checked + span { background: var(--brand); border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.camera { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border: 2px dashed var(--brand-line); border-radius: 18px; background: var(--brand-soft); color: var(--brand); cursor: pointer; text-align: center; padding: 18px; position: relative; }
.camera .ic { width: 34px; height: 34px; }
.camera b { font-size: 17px; }
.camera small { color: var(--text-2); }
.camera input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.send { width: 100%; height: 56px; font-size: 17px; border-radius: 16px; margin-top: 18px; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--sh-1); position: sticky; top: calc(var(--top-h) + 16px); }
.guide h4 { font-size: 15px; margin-bottom: 12px; }
.guide ol { padding-left: 18px; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.guide .tip { margin-top: 14px; font-size: 13px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; color: var(--text-2); }

/* ── 내가 올린 것 ── */
.sent { display: grid; gap: 10px; }
.sent-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sent-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.sent-item .t { flex: 1; min-width: 0; }
.sent-item .t b { display: block; font-size: 15px; }
.sent-item .t small { color: var(--text-3); font-size: 12.5px; }
.sent-item .files { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.day-head { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 18px 0 8px; }
.day-head:first-child { margin-top: 0; }

@media (max-width: 1024px) { .up-grid { grid-template-columns: 1fr; } .guide { position: static; } }
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 0; flex-direction: row; align-items: center; padding: 18px; }
  .tile .count { position: static; margin-left: auto; font-size: 24px; }
  .hero { padding: 24px 20px; border-radius: 20px; }
  .hero h1 { font-size: 23px; }
  .names { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .sent-item { flex-wrap: wrap; }
}

/* 비밀번호 */
.pw-help { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 14px; line-height: 1.5; }
.pw-modal .pw-top { display: flex; align-items: center; gap: 10px; color: var(--brand); margin-bottom: 8px; }
.pw-modal .pw-top h2 { color: var(--text); margin: 0; font-size: 19px; }
.pw-modal .pin-input { font-size: 22px; letter-spacing: .3em; padding: 11px; }
.pw-modal .btn.primary { height: 50px; margin-top: 6px; }
.pw-modal .error { display: block; min-height: 18px; color: var(--bad); font-size: 13px; text-align: center; margin-top: 8px; }
.stat b small { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.name-input { width: 100%; font: inherit; font-size: 22px; font-weight: 700; text-align: center; padding: 13px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); color: var(--text); }
.name-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }

/* ── 통합 앱: 홈 맨 위 빨간 이벤트 띠 ── */
.event-band { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 24px 26px; margin-bottom: 22px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 95% -20%, rgba(255,190,190,.45), rgba(255,255,255,0) 45%), linear-gradient(120deg, #E11D2E, #F0473D 55%, #FF6B4A); box-shadow: 0 14px 34px rgba(225,29,46,.28); }
.event-band::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); }
.event-band .ev-l { flex: 1; min-width: 0; position: relative; z-index: 1; }
.ev-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; }
.ev-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: evPulse 1.4s infinite; }
@keyframes evPulse { 50% { opacity: .25; } }
.event-band h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 6px; color: #fff; line-height: 1.35; word-break: keep-all; }
.event-band p { font-size: 14px; color: rgba(255,255,255,.88); word-break: keep-all; }
.event-band .ev-r { display: grid; gap: 8px; flex: none; position: relative; z-index: 1; }
.ev-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 14px; background: #fff; color: #D71A2A; font-weight: 800; font-size: 16.5px; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: .15s var(--ease); }
.ev-main:hover { transform: translateY(-2px); color: #B31222; }
.ev-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-sub a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.18); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; padding: 0 10px; }
.ev-sub a .ic { width: 16px; height: 16px; }
.ev-sub a b { background: #fff; color: #D71A2A; border-radius: 999px; font-size: 11.5px; padding: 1px 7px; }
@media (max-width: 760px) { .event-band { flex-direction: column; align-items: stretch; padding: 20px; } .event-band h2 { font-size: 19px; } .ev-main { width: 100%; } }

/* 메뉴: 시험지 올리기 강조 · 구역 이름 */
.nav a.hot { color: #fff; background: linear-gradient(120deg, rgba(225,29,46,.9), rgba(240,71,61,.9)); font-weight: 700; }
.nav a.hot .ic { opacity: 1; }
.nav a.hot.active::before { background: #fff; }
.hot-dot { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; background: #fff; color: #D71A2A; border-radius: 999px; padding: 1px 6px; }
.nav .group { font-size: 11px; font-weight: 700; color: #6F7A97; letter-spacing: .04em; padding: 16px 12px 6px; }
.nav .sep { height: 1px; background: var(--side-line); margin: 10px 12px; }
.owner-pick { display: grid; gap: 8px; }
.owner-pick .btn { height: 52px; font-size: 16px; justify-content: center; }
/* 10-06 데스크로 들어가기: 지점 고르기 */
.desk-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.desk-pick .btn { height: 48px; justify-content: center; cursor: pointer; }
.desk-pick input { position: absolute; opacity: 0; pointer-events: none; }
.desk-pick .btn:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; font-weight: 700; }
@media (max-width: 1180px) { .nav a .hot-dot { display: none; } }
.job-card .meta .badge .ic, .job-card .meta i.ic { width: 13px !important; height: 13px !important; padding: 0 !important; background: currentColor !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.job-card .meta .badge::before { display: none; }

/* ── 아이디어 공모 ── */
.idea-band { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: -8px 0 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--text); text-decoration: none; transition: .15s var(--ease); }
.idea-band:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.idea-band .ib-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #FFF4E5; color: #E8590C; flex: none; }
.idea-band div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.idea-band b { font-size: 15px; }
.idea-band span { font-size: 13px; color: var(--text-2); word-break: keep-all; }
.idea-band em { font-style: normal; font-weight: 700; color: #E8590C; }
.idea-band .ib-go { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.idea-prize { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.idea-prize figure { margin: 0; position: relative; }
.idea-prize img { width: 100%; display: block; border-radius: 18px; box-shadow: var(--sh-2); }
.idea-prize figcaption { position: absolute; left: 12px; top: 10px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.92); color: var(--text); padding: 3px 9px; border-radius: 999px; }
.idea-form h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.idea-form { margin-bottom: 18px; }
.idea-post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--sh-1); }
.idea-post + .idea-post { margin-top: 12px; }
.idea-post.is-king { border-color: #FFB4A0; box-shadow: 0 8px 24px rgba(225,29,46,.12); }
.ip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.idea-post h3 { font-size: 17px; margin-bottom: 6px; word-break: keep-all; }
.idea-post p { color: var(--text-2); line-height: 1.7; font-size: 14.5px; word-break: keep-all; }
.ip-note { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; color: var(--text); }
.ip-note .ic { color: var(--brand); margin-top: 3px; }
.ip-coupon { margin-top: 12px; max-width: 420px; }
.ip-coupon img { width: 100%; border-radius: 16px; box-shadow: var(--sh-2); }
.ip-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.like { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.like.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.badge.king { background: #FFE8E0; color: #D9480F; }
.ip-foot select.btn { padding-right: 8px; }
@media (max-width: 720px) { .idea-prize { grid-template-columns: 1fr; } .idea-band .ib-go { display: none; } }

/* ── 퍼펙트 시험지 만들기 ── */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.book-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.book-pick button { font: inherit; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; gap: 2px; }
.book-pick button small { color: var(--text-3); font-size: 12px; }
.book-pick button.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.unit-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-pick button { font: inherit; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.unit-pick button small { color: var(--text-3); margin-left: 2px; }
.unit-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .unit-pick button.on small { color: #B9C3DD; }
.mix-top { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; } .mix-top .field { margin: 0; width: 110px; }
.mix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mix-col { border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; background: var(--surface-2); position: relative; }
.mix-col.short { border-color: var(--bad); }
.mix-star { color: #F59F00; font-size: 15px; letter-spacing: 1px; } .st-off { color: var(--line-strong); }
.mix-col input { width: 64px; font: inherit; font-size: 20px; font-weight: 800; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; padding: 4px; margin: 6px 0 2px; background: var(--surface); color: var(--text); }
.mix-unit { font-size: 12px; color: var(--text-3); margin-left: 3px; } .mix-sub { font-size: 11.5px; color: var(--text-3); }
.mix-sum { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--brand); } .mix-sum.bad { color: var(--bad); }
.pf-preview { margin-top: 24px; }
.pq-list { display: grid; gap: 10px; }
.pq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.pq-no { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; }
.pq-st { color: #F59F00; font-size: 13px; }
.math { font-size: 15px; line-height: 1.8; word-break: keep-all; }
.math .q-box { border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.math .q-box-l { font-size: 12px; font-weight: 700; color: var(--text-3); display: block; }
.math .q-ch { display: grid; gap: 2px; margin-top: 6px; }
.math .fig { display: block; max-width: 280px; max-height: 200px; height: auto; object-fit: contain; margin: 8px 0; background: var(--surface-2); min-height: 20px; border-radius: 6px; }
.pf-out { margin-top: 16px; } .pf-out h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.out-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 1024px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .mix { grid-template-columns: repeat(2, 1fr); } }

.print-view { position: fixed; inset: 0; z-index: 95; background: #EEF0F5; display: flex; flex-direction: column; }
.print-view .pv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #0B1B45; color: #fff; flex-wrap: wrap; }
.print-view .pv-bar b { font-size: 14px; }
.print-view iframe { flex: 1; width: 100%; border: 0; background: #EEF0F5; }
.print-view .pv-tip { margin: 0; padding: 6px 16px; font-size: 12px; color: var(--text-3); background: var(--surface); }

/* 설치 안내 */
.inst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.inst h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.inst ol { padding-left: 18px; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.inst.warn { display: flex; gap: 12px; border-color: #FFB4A0; background: #FFF4EF; } .inst.warn .ic { color: #E8590C; margin-top: 2px; }
.inst.go { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: var(--brand-line); background: var(--brand-soft); flex-wrap: wrap; }
.inst.ok { display: flex; align-items: center; gap: 10px; color: var(--ok); }
.inst p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.hub-inst { text-align: center; color: #6F7A97; font-size: 12px; margin-top: 8px; }
@media (max-width: 900px) { .inst-grid { grid-template-columns: 1fr; } }

.thumbs figure .rm { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(11,27,69,.8); color: #fff; font-size: 12px; cursor: pointer; display: grid; place-items: center; }

.doc-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.doc-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ── 아이디어 공모: 이벤트 느낌 ── */
.idea-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 30px 26px; margin-bottom: 20px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: center;
  background: radial-gradient(circle at 12% 0%, rgba(255,215,90,.55), transparent 40%), radial-gradient(circle at 100% 100%, rgba(46,196,182,.45), transparent 45%), linear-gradient(120deg, #7B2FF7 0%, #F72585 48%, #FF7A3D 100%);
  background-size: 160% 160%; animation: ihMove 9s ease-in-out infinite alternate; box-shadow: 0 18px 44px rgba(247,37,133,.28); }
@keyframes ihMove { to { background-position: 100% 100%; } }
.idea-hero .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.ih-in { position: relative; z-index: 1; }
.ih-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .12em; background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; }
.ih-tag i { width: 8px; height: 8px; border-radius: 50%; background: #FFE066; animation: ihPing 1.6s infinite; }
@keyframes ihPing { 0% { box-shadow: 0 0 0 0 rgba(255,224,102,.8); } 70% { box-shadow: 0 0 0 9px rgba(255,224,102,0); } 100% { box-shadow: 0 0 0 0 rgba(255,224,102,0); } }
.idea-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1.25; margin: 14px 0 10px; color: #fff; }
.idea-hero h1 em { font-style: normal; background: linear-gradient(90deg, #FFE066, #FFFFFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idea-hero p { font-size: 15px; color: rgba(255,255,255,.92); line-height: 1.6; word-break: keep-all; }
.idea-hero p b { color: #FFE066; }
.ih-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ih-chips span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.18); }
.ih-chips .ih-d { background: #fff; color: #F72585; font-weight: 800; } .ih-chips .ih-d b { color: #7B2FF7; }
.ih-prizes { position: relative; z-index: 1; display: grid; gap: 12px; }
.ih-prizes figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.22); transform: rotate(-1.2deg); transition: transform .25s var(--ease); }
.ih-prizes figure.king { transform: rotate(1.2deg); }
.ih-prizes figure:hover { transform: rotate(0) scale(1.02); }
.ih-prizes img { width: 100%; display: block; }
.ih-prizes figcaption { position: absolute; left: 10px; top: 9px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.95); color: #111; padding: 3px 10px; border-radius: 999px; z-index: 2; }
.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite; }
.shine.king::after { animation-delay: 1.8s; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.confetti-full { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 120; }
.idea-prize { display: none; }
.idea-form { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #7B2FF7, #F72585, #FF7A3D) border-box; border: 2px solid transparent; }
.idea-form h3 .ic { color: #F72585; }
.idea-form .btn.primary { background: linear-gradient(120deg, #7B2FF7, #F72585); border: 0; }
.idea-post { border-left: 4px solid #E4E8F0; }
.idea-post:has(.badge.done) { border-left-color: #2EC4B6; }
.idea-post:has(.badge.wait) { border-left-color: #FFB703; }
.idea-post:has(.badge.fail) { border-left-color: #CFD6E3; }
.idea-post.is-king { border-left-color: #F72585; background: linear-gradient(180deg, #FFF5FA, var(--surface) 60%); }
:root[data-theme="dark"] .idea-post.is-king { background: var(--surface); }
.like.on { background: linear-gradient(120deg, #7B2FF7, #F72585); border-color: transparent; }
.idea-band { background: linear-gradient(120deg, #FFF3FA, #FFF8EE); border-color: #FFD1E6; }
:root[data-theme="dark"] .idea-band { background: var(--surface); }
.idea-band .ib-ic { background: linear-gradient(135deg, #7B2FF7, #F72585); color: #fff; }
.ib-ev { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; color: #fff; background: #F72585; border-radius: 999px; padding: 2px 7px; margin-right: 6px; vertical-align: 2px; }
@media (max-width: 860px) { .idea-hero { grid-template-columns: 1fr; padding: 24px 20px; } .idea-hero h1 { font-size: 26px; } }
.job-card .meta .badge i.ic { display: none !important; }

/* ── 아이디어 공모: 진노랑 → 주황 (10-01 원장님) ── */
.idea-hero { color: #2B1600;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,.55), transparent 38%), radial-gradient(circle at 100% 100%, rgba(255,86,0,.45), transparent 50%), linear-gradient(120deg, #FFD000 0%, #FFB000 45%, #FF7A00 100%);
  background-size: 160% 160%; box-shadow: 0 18px 44px rgba(255,138,0,.35); }
.ih-tag { background: #2B1600; color: #FFD000; }
.ih-tag i { background: #FF5A00; }
.idea-hero h1 { color: #2B1600; }
.idea-hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: #D9480F; }
.idea-hero p { color: #4A2A00; }
.idea-hero p b { color: #C2410C; }
.ih-chips span { background: rgba(255,255,255,.55); color: #4A2A00; }
.ih-chips .ih-d { background: #2B1600; color: #FFD000; } .ih-chips .ih-d b { color: #fff; }
.ih-prizes figcaption { background: #2B1600; color: #FFD000; }
.idea-form { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #FFC400, #FF7A00) border-box; }
.idea-form h3 .ic { color: #FF7A00; }
.idea-form .btn.primary { background: linear-gradient(120deg, #FF9F00, #FF6A00); color: #fff; }
.idea-post.is-king { border-left-color: #FF7A00; background: linear-gradient(180deg, #FFF8E6, var(--surface) 60%); }
.like.on { background: linear-gradient(120deg, #FFB000, #FF6A00); }
.idea-band { background: linear-gradient(120deg, #FFF6D6, #FFE9CC); border-color: #FFD48A; }
.idea-band .ib-ic { background: linear-gradient(135deg, #FFC400, #FF7A00); }
.ib-ev { background: #FF6A00; }
.idea-band em { color: #D9480F; }

/* 로그아웃: 폰에서도 보이게 · 홈·사이드바에도 */
@media (max-width: 640px) { .topbar #logout { display: inline-flex !important; } }
.home-logout { border-color: var(--line-strong); }
.side-logout { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--side-text); background: rgba(255,255,255,.06); border: 1px solid var(--side-line); border-radius: 10px; padding: 8px; cursor: pointer; }
.side-logout:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 1180px) { .side-logout span { display: none; } }

/* 받은 시험지 사진 보기 */
.pic-view { position: fixed; inset: 0; z-index: 96; background: #0B1020; display: flex; flex-direction: column; }
.pic-view .pv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #0B1B45; color: #fff; flex-wrap: wrap; }
.pic-view .pv-bar small { color: #B9C3DD; margin-left: 6px; }
.pics { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 16px; justify-items: center; }
.pics figure { margin: 0; width: 100%; max-width: 900px; background: #fff; border-radius: 12px; overflow: hidden; }
.pics img { width: 100%; display: block; }
.pics .ph-load { padding: 60px 16px; text-align: center; color: #8891A7; }
.pics figcaption { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 13px; color: #4A5470; background: #F4F6FA; }
.pic-view .pv-tip { margin: 0; padding: 8px 16px; font-size: 12px; color: #B9C3DD; background: #0B1B45; }

/* 공용 PC: 로그아웃 강조 */
.logout-hint { font-size: 12px; font-weight: 700; color: #D71A2A; background: #FFF0F1; border: 1px solid #FFC9CE; border-radius: 999px; padding: 4px 10px; white-space: nowrap; animation: lgPulse 2.4s ease-in-out infinite; }
@keyframes lgPulse { 50% { opacity: .55; } }
.topbar .logout-btn { border: 1.5px solid #E11D2E; color: #D71A2A; background: #fff; font-weight: 700; }
.topbar .logout-btn:hover { background: #E11D2E; color: #fff; }
:root[data-theme="dark"] .topbar .logout-btn { background: transparent; }
@media (max-width: 640px) { .logout-hint { display: none; } }
.keep { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-top: 12px; cursor: pointer; }
.keep input { width: 17px; height: 17px; }
/* 10-06 로그인 유지 규칙: 개인 PC 체크 · 공용 PC 3분 자동 로그아웃 띠 */
.keep-note { cursor: default; font-size: 12.5px; }
.idle-out { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #8A5A00; background: #FFF6DD; border: 1px solid #F3D58A; }
.keep-tg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); border: 1px solid var(--line, #D9DEEA); border-radius: 999px; padding: 4px 10px; white-space: nowrap; cursor: pointer; }
.keep-tg input { width: 14px; height: 14px; margin: 0; }
.keep-tg.on { color: #0B7A43; border-color: #9ED9B8; background: #EEFAF3; }
:root[data-theme="dark"] .keep-tg.on { background: transparent; }
.idle-bar { position: fixed; left: 0; right: 0; bottom: 84px; margin: 0 auto; width: max-content; z-index: 9999; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 12px; background: #0B1B45; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.idle-bar span { word-break: keep-all; }
.idle-bar button { flex: none; }
@media print { .idle-bar { display: none !important; } }

.up-simple { max-width: 720px; }

/* 모든 화면 위: 뒤로 · 홈으로 */
.page-nav { display: flex; gap: 8px; margin-bottom: 14px; }
.page-nav button, .page-nav a { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.page-nav .pn-back .ic { transform: rotate(180deg); }
.page-nav .pn-home { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.page-nav button:hover, .page-nav a:hover { border-color: var(--brand); }

/* ── 내신 기출·분석지: 중등 / 고등 묶음과 색 구분 ── */
.lv-sec + .lv-sec { margin-top: 30px; }
.lv-head { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; margin: 4px 0 14px; letter-spacing: -.01em; }
.lv-head i { width: 6px; height: 20px; border-radius: 3px; background: #1A5CFF; }
.lv-head small { font-size: 13px; font-weight: 600; color: var(--text-3); }
.lv-sec.mid .lv-head i { background: #0D9488; }
/* 고등 = 남색·코발트(지금 색) / 중등 = 청록·초록 */
.doc.mid .band { background: radial-gradient(circle at 85% -10%, rgba(45,212,191,.55), transparent 55%), linear-gradient(135deg, #064E3B, #0F766E); }
.doc.mid .band small { color: #99F6E4; }
.doc.mid.analysis .band { background: radial-gradient(circle at 90% 0, rgba(153,246,228,.6), transparent 60%), linear-gradient(135deg, #14B8A6, #0D9488); }
.doc.mid.analysis .band small { color: #ECFDF5; }
.doc.mid .new { color: #0D9488; }
.doc.mid .chips span { background: #E6FAF6; color: #0F766E; }
.doc.mid .chips span.g { background: var(--mute-soft); color: var(--text-2); }
.doc.mid .dl .btn.primary { background: #0D9488; border-color: #0D9488; }
.doc.mid .dl .btn.primary:hover { background: #0F766E; border-color: #0F766E; }
:root[data-theme="dark"] .doc.mid .chips span { background: rgba(45,212,191,.16); color: #5EEAD4; }
.filters button.f-mid.on { background: #0D9488; border-color: #0D9488; color: #fff; }
.filters button.f-high.on { background: #1A5CFF; border-color: #1A5CFF; color: #fff; }

.doc .dl .btn { min-width: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.doc .dl .btn small { overflow: hidden; text-overflow: ellipsis; }

/* ═════ 타일 색 (사용 설명서 화면이 씀 — 홈은 10-04부터 home-b2d.css) ═════ */
.tile-c-red { --a: #E11D2E; --b: #FF6B4A; } .tile-c-blue { --a: #1A5CFF; --b: #5B8CFF; } .tile-c-indigo { --a: #4338CA; --b: #7C6BFF; }
.tile-c-green { --a: #059669; --b: #34D399; } .tile-c-orange { --a: #EA580C; --b: #FDBA4C; } .tile-c-teal { --a: #0D9488; --b: #2DD4BF; }
.tile-c-navy { --a: #0B1B45; --b: #1C3272; } .tile-c-sky { --a: #0284C7; --b: #38BDF8; } .tile-c-rose { --a: #DB2777; --b: #FB7185; }
.tile-c-yellow { --a: #F59E0B; --b: #FCD34D; } .tile-c-gray { --a: #475569; --b: #94A3B8; } .tile-c-dark { --a: #111827; --b: #374151; }
.tile-c-yellow, .tile-c-yellow:hover { color: #2B1600; } .tile-c-yellow .it-ic { background: rgba(43,22,0,.12); } .tile-c-yellow em { color: #B45309; }

/* ═════ 시험지 만들기 두 칸 ═════ */
.sector-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; max-width: 560px; }
.sector-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 700; text-decoration: none; }
.sector-tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mixratio { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; } .mixratio input { flex: 1; max-width: 280px; } .mixratio b { color: var(--brand); }
.seg input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }

/* ═════ 반·학생 ═════ */
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cls-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--sh-1); }
.cc-top { display: flex; align-items: center; gap: 8px; } .cc-top b { font-size: 17px; }
.cls-card p { color: var(--text-3); font-size: 13px; margin: 2px 0 10px; }
.cc-names { display: flex; flex-wrap: wrap; gap: 5px; } .cc-names span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* ═════ 채점 ═════ */
.ex-list { display: grid; gap: 8px; }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ex-row:hover { border-color: var(--brand); }
.ex-no { font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--navy); color: #fff; flex: none; }
.ex-t { flex: 1; min-width: 0; } .ex-t b { display: block; } .ex-t small { color: var(--text-3); font-size: 12.5px; }
.gx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.note-card { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); } .note-card .ic { color: #E8590C; }
.gh { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.stu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stu-chips button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.stu-chips button small { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.stu-chips button.done { border-color: #A7E3CB; background: var(--ok-soft); } .stu-chips button.done small { color: var(--ok); }
.stu-chips button.wait { border-color: #FCD34D; background: #FFFBEB; } .stu-chips button.wait small { color: #B45309; }
.stu-chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .stu-chips button.on small { color: #B9C3DD; }
.stu-chips button.add { border-style: dashed; color: var(--text-3); } .stu-chips button:disabled { cursor: default; }
.pad { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 16px 0 8px; }
.pad button { font: inherit; height: 64px; border-radius: 14px; border: 2px solid #A7E3CB; background: var(--ok-soft); color: var(--ok); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 0; }
.pad button b { font-size: 19px; } .pad button small { font-size: 10.5px; opacity: .85; max-width: 60px; overflow: hidden; white-space: nowrap; }
.pad button.x { border-color: #D93036; background: #D93036; color: #fff; }
.pad button.w { border-color: #F59E0B; background: #FFFBEB; color: #B45309; }
.cx { color: var(--bad); }
.save-bar { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--sh-3); z-index: 5; }
.save-bar span { color: #B9C3DD; font-size: 13.5px; } .save-bar input { flex: 1; min-width: 180px; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 10px; border: 0; }
.dcard { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.d-qr { text-align: center; } .d-qr canvas { border-radius: 14px; border: 1px solid var(--line); } .d-qr small { display: block; color: var(--text-3); margin-top: 6px; }
.qr-off { height: 220px; border-radius: 14px; border: 2px dashed var(--line-strong); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--text-3); }
@media (max-width: 760px) { .dcard { grid-template-columns: 1fr; } .save-bar { bottom: calc(var(--tab-h) + 8px); } }

/* ═════ 내 폴더 ═════ */
.fd-cls { margin-bottom: 26px; }
.fd-exam { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.fd-exam summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.fd-exam summary::-webkit-details-marker { display: none; } .fd-exam summary small { color: var(--text-3); }
.fd-stu { border-top: 1px solid var(--line); }
.fd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); } .fd-row:last-child { border-bottom: 0; }
.fd-row b { min-width: 72px; } .fd-row .sc { font-size: 13.5px; color: var(--text-2); } .fd-row .sc i { font-style: normal; color: #B45309; }

/* ═════ 학생 입력 · 학부모 링크 화면 ═════ */
.stu-body, .par-body { background: #0B1B45; }
.stu, .par { max-width: 760px; margin: 0 auto; min-height: 100dvh; padding: 16px; }
.stu header, .par header { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; } .stu header img, .par header img { width: 40px; height: 40px; }
.stu header b, .par header b { display: block; font-size: 17px; } .stu header small, .par header small { color: #B9C3DD; font-size: 12.5px; }
.stu-card { background: var(--surface); color: var(--text); border-radius: 22px; padding: 22px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.stu-card h2 { font-size: 21px; margin-bottom: 4px; } .stu-card > p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.stu-card.done { text-align: center; padding: 50px 18px; } .stu-msg { color: #B9C3DD; text-align: center; padding: 40px 0; }
.stu-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stu-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.stu-names button { font: inherit; padding: 14px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; gap: 2px; }
.stu-names button b { font-size: 17px; } .stu-names button small { font-size: 11.5px; color: var(--text-3); } .stu-names button.done { opacity: .45; }
.stu-qs { display: grid; gap: 8px; }
.stu-q { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.stu-q > b { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; }
.stu-ch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: 1; }
.stu-ch button { font: inherit; font-size: 20px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.stu-ch button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.stu-q input { flex: 1; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); min-width: 0; }
.stu-desc { font-size: 13px; color: var(--text-3); }
.stu-foot { position: sticky; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--navy); color: #fff; }
.par-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.par-bar .tabs.seg { background: rgba(255,255,255,.1); border-radius: 12px; padding: 4px; margin: 0; border: 0; } .par-bar .tabs.seg button { color: #B9C3DD; border-radius: 9px; padding: 8px 16px; } .par-bar .tabs.seg button.active { background: #fff; color: var(--navy); } .par-bar .tabs.seg button.active::after { display: none; }
.par iframe { width: 100%; height: calc(100dvh - 150px); border: 0; border-radius: 16px; background: #EEF0F5; }

/* 채점 순서 표시 · 방법 고르기 */
.gsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 14px; }
.gsteps li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.gsteps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--mute-soft); color: var(--text-3); }
.gsteps li.on { color: var(--text); } .gsteps li.on b { background: var(--brand); color: #fff; }
.gsteps li.ok b { background: var(--ok); color: #fff; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mcard { position: relative; overflow: hidden; font: inherit; text-align: left; border: 0; cursor: pointer; border-radius: 22px; padding: 22px 20px; min-height: 190px; color: #fff; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 24px rgba(11,27,69,.15); transition: transform .18s var(--ease); }
.mcard::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.13); }
.mcard:hover { transform: translateY(-4px); }
.mcard .it-ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.22); display: grid; place-items: center; margin-bottom: 8px; } .mcard .it-ic .ic { width: 28px; height: 28px; }
.mcard b { font-size: 20px; font-weight: 800; position: relative; z-index: 1; } .mcard small { font-size: 13.5px; line-height: 1.5; opacity: .92; word-break: keep-all; position: relative; z-index: 1; }
.mcard em { position: absolute; right: 14px; top: 14px; font-style: normal; font-size: 11px; font-weight: 800; background: #fff; color: #475569; border-radius: 999px; padding: 3px 9px; }
.mcard.off { filter: grayscale(.8); opacity: .6; cursor: not-allowed; }
@media (max-width: 760px) { .method-grid { grid-template-columns: 1fr; } .mcard { min-height: 0; } }

/* 모든 화면 인사말 */
.hello-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; background: linear-gradient(120deg, var(--brand-soft), var(--surface)); border: 1px solid var(--brand-line); }
.hello-bar .avatar { background: var(--brand); color: #fff; }
.hello-bar div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.hello-bar b { font-size: 16.5px; font-weight: 800; } .hello-bar span:not(.avatar) { font-size: 15px; color: var(--text-2); }
.hello-bar small { font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .home-top p { color: var(--text-2); font-size: 15px; }
@media (max-width: 640px) { .hello-bar small { display: none; } }

/* 단원: 대단원 묶음 · 소단원 체크 */
.ugroup { margin-bottom: 12px; } .ugroup:last-of-type { margin-bottom: 0; }
.ug-name { display: block; font-size: 12.5px; font-weight: 800; color: var(--brand); margin-bottom: 6px; letter-spacing: .01em; }
.unit-pick button.soon { opacity: .5; border-style: dashed; } .unit-pick button.soon small { font-size: 11px; }
.unit-pick button.open { box-shadow: 0 0 0 3px var(--brand-line); }
.sub-pick { margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; }
.sub { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.sub input { width: 17px; height: 17px; flex: none; accent-color: var(--brand); } .sub span { flex: 1; word-break: keep-all; } .sub small { color: var(--text-3); font-size: 12px; }
.sub.all { grid-column: 1 / -1; font-weight: 800; border-bottom: 1px dashed var(--brand-line); padding-bottom: 8px; margin-bottom: 2px; }

/* 출제: 학교급 · 최근 설정 · 교재 한 권 · 고정 만들기 */
.lv-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lv-pick button { font: inherit; min-height: 60px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-content: center; gap: 2px; }
.lv-pick button b { font-size: 16px; } .lv-pick button small { font-size: 12px; color: var(--text-3); }
.lv-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .lv-pick button.on small { color: rgba(255,255,255,.75); }
:root[data-theme="dark"] .lv-pick button.on { background: var(--brand); border-color: var(--brand); }
.lv-pick button.soon:not(.on) { opacity: .55; border-style: dashed; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.recent span { font-size: 12.5px; font-weight: 800; color: var(--brand); margin-right: 2px; }
.recent button { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--text); cursor: pointer; text-align: left; }
.one-book { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sticky-make { position: sticky; bottom: 12px; z-index: 6; box-shadow: 0 8px 24px rgba(11,27,69,.28); }
.sticky-make:disabled { opacity: .6; }
@media (max-width: 720px) {
  .seg span { padding: 11px 14px; font-size: 15px; }
  .unit-pick button { min-height: 44px; }
  .sticky-make { bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* 출제: 문항 수 · 난이도 한 번에 · 미리보기 통계 */
.n-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.n-pick button { font: inherit; font-weight: 700; min-width: 52px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.n-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.n-pick input { width: 74px; height: 42px; text-align: center; }
.diff-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.diff-pick button { font: inherit; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; gap: 2px; }
.diff-pick button b { font-size: 15px; } .diff-pick button small { font-size: 11px; color: var(--text-3); }
.diff-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .diff-pick button.on small { color: rgba(255,255,255,.75); }
:root[data-theme="dark"] .n-pick button.on, :root[data-theme="dark"] .diff-pick button.on { background: var(--brand); border-color: var(--brand); }
.mix-line { margin: 10px 0 0; font-size: 14px; color: var(--text-2); } .mix-line em { font-style: normal; color: #E11D2E; font-size: 12px; margin-left: 2px; } .mix-line.bad b { color: inherit; }
.linkbtn { font: inherit; font-size: 13px; border: 0; background: none; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0 4px; text-decoration: underline; }
.opt-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.pv-stat { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 12px; }
.pv-nums { display: flex; flex-wrap: wrap; gap: 22px; } .pv-nums small { display: block; font-size: 12px; color: var(--text-3); } .pv-nums b { font-size: 22px; }
.pv-bars { display: flex; gap: 14px; align-items: flex-end; } .pv-bars div { display: grid; justify-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.pv-bars i { display: block; width: 22px; min-height: 3px; border-radius: 6px 6px 2px 2px; } .pv-bars .pv-n { font-weight: 800; color: var(--text); }
.pv-bars .s1 { background: #38BDF8; } .pv-bars .s2 { background: #22C55E; } .pv-bars .s3 { background: #F59E0B; } .pv-bars .s4 { background: #EF4444; }
@media (max-width: 720px) { .diff-pick { grid-template-columns: repeat(2, 1fr); } }

/* 퍼펙트로 출제: 교재 종류 · 학기 · 시험 */
.bk-kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-kind button { font: inherit; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-content: center; gap: 2px; }
.bk-kind button b { font-size: 15px; } .bk-kind button small { font-size: 12px; color: var(--text-3); }
.bk-kind button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .bk-kind button.on small { color: rgba(255,255,255,.75); }
:root[data-theme="dark"] .bk-kind button.on { background: var(--brand); border-color: var(--brand); }
.bk-kind button.soon:not(.on) { opacity: .55; border-style: dashed; }
.seg-gap { width: 14px; }

/* 출제 탭 세 개 (퍼펙트 · 문제은행 · 학교 기출) */
.sector-tabs.three { grid-template-columns: repeat(3, 1fr); max-width: 780px; }
@media (max-width: 720px) { .sector-tabs.three a { font-size: 13px; padding-left: 6px; padding-right: 6px; } }

/* 지역 네 칸 */
.up-sec .bk-kind:has(> [data-rg]) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .up-sec .bk-kind:has(> [data-rg]) { grid-template-columns: repeat(2, 1fr); } }

/* 원장님께 맡기는 요청 종류 (시험지 · 프린트 올리기) */
.req-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.req-k { cursor: pointer; display: block; }
.req-k input { position: absolute; opacity: 0; pointer-events: none; }
.req-k > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); }
.req-k > span .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.req-k b { font-size: 14.5px; }
.req-k small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.req-k input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.req-k input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
#kNote[hidden] { display: none; }
@media (max-width: 520px) { .req-kinds { grid-template-columns: 1fr; } }
.badge.req-b { margin-right: 4px; vertical-align: 1px; background: var(--brand-soft); color: var(--brand); }
.badge.req-b.k-print { background: #E7F7F4; color: #0D9488; } .badge.req-b.k-odap { background: #FFF1E6; color: #C2410C; } .badge.req-b.k-remake { background: #F1EEFF; color: #4338CA; }
:root[data-theme="dark"] .badge.req-b { background: rgba(255,255,255,.08); }
.req-note { display: block; margin-top: 3px; color: var(--text-2); }
/* 원장님께 문자 팝업 */
.nf-pop { text-align: center; }
.nf-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.nf-sms { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); text-align: left; }
.nf-sms small { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.nf-sms b { font-size: 14.5px; word-break: keep-all; }
.nf-btns { justify-content: center; }
.nf-pop .error { display: block; margin-top: 8px; }
/* 오답노트 요청: 학생 번호 고르기 */
.ask-chips label { cursor: pointer; }
.ask-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ask-chips span { display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text-2); }
.ask-chips input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
/* 시험지 내보내기 옵션 (뽑을 것 · 분할 · 시험지 · 해설지) + 해설 QR 열기 */
#outOpts.out-opts { flex-direction: column; gap: 6px; margin-bottom: 10px; }
.out-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
.out-row .checkline { margin: 4px 0; }
.out-l { flex: none; width: 52px; font-size: 12px; font-weight: 800; color: var(--text-3); letter-spacing: .02em; }
.out-row.dim .seg, .checkline.dim { opacity: .45; }
.out-row .seg span { padding: 6px 12px; font-size: 13px; }
.xpl-btn { flex: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.xpl-btn.on { background: #E8F0FF; border-color: #1A5CFF; color: #1A5CFF; }
/* 출제 미리보기: PC 는 오른쪽에 실제 시험지(인쇄 HTML 축소) · 폰은 「시험지 미리보기」 버튼 */
.pv-live { display: none; }
.pv-main { min-width: 0; }
@media (min-width: 1100px) {
  .pv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); gap: 18px; align-items: start; }
  .pv-main { display: flex; flex-direction: column; }
  .pv-main .pf-out { order: -1; margin-bottom: 14px; }
  .pv-live { display: flex; flex-direction: column; position: sticky; top: calc(var(--top-h, 64px) + 12px); height: calc(100vh - var(--top-h, 64px) - 24px); min-height: 520px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #E6E9F1; }
  .pv-mob { display: none !important; }
}
.pv-live-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0B1B45; color: #fff; font-size: 13px; }
.pv-live-h small { color: #B9C3DD; font-size: 11.5px; }
.pv-live-f { position: relative; flex: 1; min-height: 0; }
.pv-live-f iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #E6E9F1; }
.pv-live-wait { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 700; background: rgba(11,27,69,.85); color: #fff; padding: 4px 12px; border-radius: 99px; }
.pv-live-wait[hidden] { display: none; }
/* 시험지 머리말 디자인 · 색 고르기 */
.th-pick, .col-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.th-pick button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.th-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.th-pick .linkbtn { font-size: 12px; padding: 4px 6px; border: 0; background: none; color: var(--brand, #1A5CFF); }
.col-pick button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px 4px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.col-pick button i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--c) 55%, var(--a) 55%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.col-pick button.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; color: var(--text); }
.paper-hint { flex-basis: 100%; margin-left: 68px; color: #C2410C; font-size: 12.5px; font-weight: 600; }
.paper-hint .linkbtn { font-size: 12.5px; margin-left: 6px; }
/* 테스트지 만들기: 미리보기 학생용 / 선생님용 */
.pv-who { display: inline-flex; gap: 2px; background: rgba(255,255,255,.12); border-radius: 99px; padding: 2px; margin-left: 6px; }
.pv-who button { font: inherit; font-size: 12px; font-weight: 700; border: 0; border-radius: 99px; padding: 3px 10px; background: transparent; color: #B9C3DD; cursor: pointer; }
.pv-who button.on { background: #fff; color: #0B1B45; }
.pv-who { flex: none; } .pv-who button { white-space: nowrap; }
/* ── 단원 트리 (unit-tree.js) — 10-06 새 모양: 작은 회색 꺾쇠 · 세 상태 체크칸 · 들여쓰기로 단계 · 줄 높이 넉넉히 ── */
.ut { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.ut-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ut-bar .ut-q { flex: 0 1 220px; min-width: 140px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.ut-bar .grow { flex: 1; }
.ut-sum { font-size: 12.5px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.ut-sum.on { color: var(--brand); }
.ut-hint { margin: 0; padding: 7px 14px 2px; font-size: 12px; color: var(--text-3); line-height: 1.45; word-break: keep-all; }
.ut-list { max-height: 520px; overflow: auto; padding: 4px 6px 6px; }
.ut-row { --d: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 calc(6px + var(--d) * 22px); border-radius: 8px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; font-size: 14px; color: var(--text); }
.ut-row:hover { background: var(--surface-2); }
.ut-row:focus { outline: none; }
.ut-row:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-line); }
.ut-row.d0 { font-weight: 700; font-size: 14.5px; }
.ut-row.d1 { font-weight: 600; }
.ut-row.lf { font-size: 13.5px; }
.ut-row.soon { opacity: .5; cursor: default; }
.ut-tg { flex: none; width: 16px; height: 16px; display: inline-grid; place-items: center; color: var(--text-3); }
.ut-tg svg { display: block; transition: transform .15s ease; }
.ut-row.open > .ut-tg svg { transform: rotate(90deg); }
.ut-row.br:hover > .ut-tg { color: var(--text-2); }
.ut-ck { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #B9C1D3; border-radius: 5px; background: var(--surface) center / 12px 12px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s; }
.ut-ck:hover:not(:disabled) { border-color: var(--brand); }
.ut-ck:checked { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ut-ck:indeterminate { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ut-ck:disabled { opacity: .45; cursor: default; }
:root[data-theme="dark"] .ut-ck:not(:checked):not(:indeterminate) { border-color: var(--text-3); }
.ut-ck:focus-visible { outline: 2px solid var(--brand-line); outline-offset: 1px; }
.ut-nm { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; padding: 7px 0; }
.ut-n { flex: none; color: var(--text-3); font-size: 12px; font-weight: 600; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.ut-row.on > .ut-n, .ut-row.part > .ut-n { color: var(--brand); }
.ut-none { padding: 12px 14px; }
@media (max-width: 640px) {
  .ut-row { min-height: 44px; padding-left: calc(4px + var(--d) * 16px); gap: 10px; }
  .ut-ck { width: 20px; height: 20px; }
  .ut-bar .ut-q { flex: 1 1 100%; order: 3; }
  .ut-sum { white-space: normal; }
}
/* 단원 트리 PC 가로 칸 (10-06 원장님: 과목을 고르면 대단원을 가로로, 그 밑에 소단원) — unit-tree.js 가 칸 폭 640px 이상 · 화면 900px 이상일 때 .ut-wide */
.ut.ut-wide .ut-list { max-height: min(78vh, 980px); padding: 8px 10px 10px; }
.ut-band + .ut-band { margin-top: 14px; }
.ut .ut-band > .ut-row.ut-hd { min-height: 40px; margin-bottom: 8px; background: var(--surface-2); border-radius: 10px; font-weight: 800; font-size: 15px; }
.ut-band > .ut-row.ut-hd > .ut-tg, .ut-card > .ut-row.ut-hd > .ut-tg { display: none; }
.ut-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; align-items: start; }
.ut-card { --tc: #2F5BFF; border: 1.5px solid color-mix(in srgb, var(--tc) 22%, var(--line)); border-radius: 12px; background: var(--surface); overflow: hidden; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.ut-card.t1 { --tc: #0E8C88; } .ut-card.t2 { --tc: #E8590C; } .ut-card.t3 { --tc: #6741D9; } .ut-card.t4 { --tc: #12A150; } .ut-card.t5 { --tc: #C2255C; }
.ut-card.part { border-color: color-mix(in srgb, var(--tc) 55%, var(--line)); }
.ut-card.on { border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc); }
.ut-card.soon { opacity: .6; }
.ut .ut-card > .ut-row.ut-hd { min-height: 44px; padding: 0 12px; gap: 9px; border-radius: 0; font-weight: 800; font-size: 14.5px; background: color-mix(in srgb, var(--tc) 10%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--tc) 18%, var(--line)); }
.ut .ut-card > .ut-row.ut-hd:hover { background: color-mix(in srgb, var(--tc) 15%, var(--surface)); }
.ut .ut-card > .ut-row.ut-hd .ut-ck:not(:checked):not(:indeterminate) { border-color: color-mix(in srgb, var(--tc) 45%, #B9C1D3); }
.ut-card > .ut-row.ut-hd > .ut-n { color: color-mix(in srgb, var(--tc) 70%, var(--text-3)); }
.ut-cbody { padding: 4px 4px 6px; }
.ut-card .ut-cbody .ut-row { min-height: 34px; gap: 7px; font-size: 13.5px; font-weight: 500; padding: 0 8px 0 calc(6px + var(--k, 0) * 16px); }
.ut-card .ut-cbody .ut-row.k0 { font-weight: 650; --k: 0; } .ut-card .ut-cbody .ut-row.k1 { --k: 1; } .ut-card .ut-cbody .ut-row.k2 { --k: 2; } .ut-card .ut-cbody .ut-row.k3 { --k: 3; }
.ut-card .ut-cbody .ut-row.lf { font-size: 13px; color: var(--text-2); }
.ut-card .ut-cbody .ut-row.on.lf { color: var(--text); }
.ut-card .ut-cbody .ut-row.fx > .ut-tg { width: 0; margin-right: -7px; }
.ut-card .ut-cbody .ut-row.k0.fx { margin-top: 4px; }
.ut-card .ut-cbody .ut-row.k0.fx:first-child { margin-top: 0; }
.ut-card .ut-nm { padding: 6px 0; flex: 1 1 96px; }
.ut-card .ut-row.on > .ut-n, .ut-card .ut-row.part > .ut-n { color: var(--tc); }
.ut-card .ut-ck:checked, .ut-card .ut-ck:indeterminate { background-color: var(--tc); border-color: var(--tc); }
/* 유형 옆 난이도 칩(유형별 문제집): 칸이 좁으면 이름 아래 줄로 */
.ut-card .ut-row.lf { flex-wrap: wrap; row-gap: 0; }
.ut-card .ut-row.lf .ut-dx { margin-left: auto; margin-right: 0; padding-bottom: 4px; }
.ut.ut-compact.ut-wide .ut-card .ut-cbody .ut-row { min-height: 28px; }
/* 출제 · 테스트 화면: 넓게 쓰고 오른쪽 미리보기를 크게 */
.main.wide { max-width: 1840px; }
@media (min-width: 1100px) {
  .main.wide .pv-split { grid-template-columns: minmax(420px, 520px) minmax(0, 1fr); }
  .main.wide .pf-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
.pv-fit { flex: none; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 3px 10px; background: transparent; color: #fff; cursor: pointer; white-space: nowrap; }
.pv-fit:hover { background: rgba(255,255,255,.15); }

/* ───────── 개념서 · 유형서 만들기 (#/cbook · #/tbook) ───────── */
.bl { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 2px 8px; color: #fff; background: var(--navy); white-space: nowrap; }
.bl.l1 { background: #12A150; } .bl.l2 { background: #2F5BFF; } .bl.l3 { background: #E8590C; }
.bl.rep { background: var(--navy); } .bl.sim { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); } .bl.up { background: #D9480F; } .bl.rv { background: #6741D9; }
:root[data-theme="dark"] .bl.sim { color: var(--brand); border-color: var(--brand); }
/* 개념서 (10-03 · 한 단): 기본 문제 · 확인 문제 · 고수되기 · 보기 문제 · 예제 이름표 + 넣을 문제 체크 */
.bl.cb1 { background: #2F6BFF; } .bl.cb2 { background: #0E8C88; } .bl.cb3 { background: #E8590C; } .bl.cbv { background: transparent; color: var(--navy); border: 1.5px solid #2F6BFF; } .bl.ex { background: #3B414D; }
:root[data-theme="dark"] .bl.cbv { color: var(--text); }
.pq-no.ex { width: auto; padding: 0 8px; border-radius: 8px; background: #3B414D; font-size: 12px; }
.cb-cks { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-ck { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 13px; }
.cb-ck input { width: 18px; height: 18px; margin: 0; } .cb-ck small { color: var(--text-3); font-weight: 700; }
.cb-ck.on { border-color: var(--navy); background: var(--surface); } :root[data-theme="dark"] .cb-ck.on { border-color: var(--brand); }
.cb-ck:not(.on) .bl { opacity: .45; }
.cb-rv { align-items: center; } .n-pick.sm button { min-width: 40px; height: 34px; border-radius: 10px; } .n-pick.dim { opacity: .45; }
.bk-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.bk-flow > span:not(.bl) { padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.bk-flow i { font-style: normal; color: var(--text-3); }
.bk-preset { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .bk-preset { grid-template-columns: repeat(2, 1fr); } }
.bk-est { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.bk-est b { color: var(--navy); } :root[data-theme="dark"] .bk-est b { color: var(--brand); }
.bk-est.bad { background: #FFF4E5; color: #8A4B00; } :root[data-theme="dark"] .bk-est.bad { background: #3A2A12; color: #FFD8A8; }
.ut-dx { display: inline-flex; gap: 3px; margin-left: auto; margin-right: 6px; flex: none; }
.ut-dx button { font: inherit; font-size: 11.5px; font-weight: 800; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); cursor: pointer; padding: 0; }
.ut-dx button.on { background: #E8590C; border-color: #E8590C; color: #fff; }
.pq-sec { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 13px; }
.pq-sec span { flex: none; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 99px; padding: 2px 9px; }
.pq-sec b { color: var(--text); } .pq-sec.unit span { background: #2F5BFF; } .pq-sec.type span { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); } .pq-sec.rv span { background: #6741D9; }
.pq-sec.major { padding-top: 10px; border-top: 2px solid var(--navy); }
.bk-notes { margin: 0 0 12px; padding: 12px 14px; font-size: 13.5px; }
.bk-notes summary { cursor: pointer; color: var(--text-2); } .bk-notes ul { margin: 10px 0 0; padding-left: 18px; max-height: 260px; overflow-y: auto; display: grid; gap: 3px; color: var(--text-2); }
.bk-notes li.miss { color: #C2410C; }
.ms-big { margin: 0 0 12px; padding: 12px; border-radius: 14px; background: #FFF4E5; color: #6B3A00; font-size: 13.5px; line-height: 1.55; }
:root[data-theme="dark"] .ms-big { background: #3A2A12; color: #FFD8A8; }
.ms-big p { margin: 0 0 10px; } .ms-parts { display: flex; flex-wrap: wrap; gap: 6px; } .ms-parts .btn.on { outline: 2px solid var(--navy); }
.ms-parts small { opacity: .7; margin-left: 4px; }

/* 개념서 · 유형서 책 디자인 고르기 (10-03) — 카드 = 견본(shadow DOM, 132 × 89px) + 이름 */
.out-row.bd-row { display: block; } .bd-row .out-l { display: block; margin: 2px 0 6px; }
.bd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 8px; width: 100%; min-width: 0; }
.bd-pick button { display: flex; flex-direction: column; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 4px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.bd-pick button.on { border-color: var(--navy, #0B1B45); box-shadow: 0 0 0 2px var(--navy, #0B1B45); color: var(--text); }
.bd-pick button b { font-weight: 700; }
.bd-mini { display: block; width: 132px; height: 89px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
/* 표지 넣기 (10-04): 표지 디자인 10가지 카드 */
.out-row.cv-row { display: block; } .cv-row .out-l { display: block; width: auto; margin: 2px 0 6px; }
.cv-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; width: 100%; min-width: 0; }
.cv-pick button { display: flex; flex-direction: column; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 4px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; min-width: 0; }
.cv-pick button.on { border-color: var(--navy, #0B1B45); box-shadow: 0 0 0 2px var(--navy, #0B1B45); color: var(--text); }
.cv-pick button b { font-weight: 700; white-space: nowrap; }
.cv-mini { display: block; width: 92px; height: 130px; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 3px 10px rgba(11,27,69,.12); pointer-events: none; }
.cv-row1 small { flex: 1 1 100%; }


/* 개념서 미리보기 도구 (10-04): 문제마다 도구 띠 · 문제 더 넣기 · 원장님 변형 작업창 · 미리보기에서 누르면 뜨는 도구 */
.pq.cbq { transition: box-shadow .15s, border-color .15s; }
.pq.cbq.act, .pq.cbq:hover { border-color: #2F6BFF; box-shadow: 0 0 0 2px rgba(47,107,255,.14); }
.pq-tools { display: inline-flex; flex-wrap: wrap; gap: 4px; opacity: .35; transition: opacity .15s; }
.pq.cbq:hover .pq-tools, .pq.cbq.act .pq-tools, .pq.cbq:focus-within .pq-tools { opacity: 1; }
@media (hover: none) { .pq-tools { opacity: 1; } }
.pq-tools .btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.pq-tools .vw-btn, .fpop .vw-btn { background: #6741D9; border-color: #6741D9; color: #fff; }
.fpop { position: fixed; z-index: 95; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 10px; box-shadow: 0 12px 34px rgba(11,27,69,.22); max-width: 330px; }
.fpop-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .fpop-b { display: flex; flex-wrap: wrap; gap: 5px; } .fpop-b .btn.sm { height: 30px; font-size: 12.5px; }
.pk-p { max-width: 640px; } .pk-sub { margin: -6px 0 10px; }
.pk-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; position: sticky; top: -14px; background: var(--surface); padding: 6px 0; z-index: 1; }
.pk-f button { font: inherit; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text-2); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.pk-f button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.pk-list { display: grid; gap: 8px; } .pk-it { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .pk-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pk-it .pq-body img.fig, .vw img.fig { max-width: 60%; max-height: 160px; height: auto; object-fit: contain; display: block; margin: 6px auto; }
html.vw-on, html.vw-on body { overflow: hidden; }
.vw { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 96; background: var(--surface); color: var(--text); border-left: 1px solid var(--line); box-shadow: -14px 0 40px rgba(11,27,69,.2); display: flex; flex-direction: column; }
.vw-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #6741D9; color: #fff; } .vw-h b { display: flex; align-items: center; gap: 6px; font-size: 16px; } .vw-h small { opacity: .85; font-size: 12px; } .vw-h .btn { color: #fff; border-color: rgba(255,255,255,.5); }
.vw-b { flex: 1; overflow-y: auto; padding: 14px 16px 20px; display: grid; gap: 12px; align-content: start; }
.vw-f { display: grid; gap: 5px; } .vw-f > label { font-size: 13px; font-weight: 800; color: var(--text-2); } .vw-f > label small { font-weight: 600; color: var(--text-3); margin-left: 4px; }
.vw textarea, .vw input:not([type=checkbox]) { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); color: var(--text); resize: vertical; box-sizing: border-box; }
.vw textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, "Malgun Gothic", monospace; font-size: 13px; line-height: 1.5; }
.vw-stars { display: flex; gap: 6px; } .vw-stars button { font: inherit; font-weight: 800; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text-2); border-radius: 10px; padding: 5px 14px; cursor: pointer; } .vw-stars button.on { background: #6741D9; border-color: #6741D9; color: #fff; }
.vw-ch { display: grid; gap: 5px; } .vw-ch > div { display: flex; align-items: center; gap: 6px; } .vw-ch span { width: 20px; text-align: center; font-weight: 800; }
.vw-steps { display: grid; gap: 8px; } .vw-step { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; background: var(--surface); }
.vw-step-h { display: flex; align-items: center; gap: 6px; } .vw-step-h b { flex: none; font-size: 12px; color: #fff; background: #6B7385; border-radius: 99px; padding: 2px 9px; } .vw-step-h input { flex: 1; min-width: 0; }
.vw-org summary, .vw-more summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--text-2); } .vw-org .pq-body { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.vw-more { display: grid; gap: 8px; } .vw-more[open] > .vw-f { margin-top: 8px; }
.vw-pv { border: 2px solid #6741D9; border-radius: 14px; overflow: hidden; } .vw-pv-h { background: #F1EDFD; color: #4B2DAA; font-weight: 800; font-size: 13px; padding: 6px 12px; }
:root[data-theme="dark"] .vw-pv-h { background: #2A2246; color: #D9CCFF; }
.vw-pv-b { padding: 12px 14px; } .vw-sol { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; } .vw-sl { font-size: 11px; font-weight: 900; border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; }
.vw-sp { margin-top: 6px; } .vw-sp b { color: #6741D9; font-size: 13px; } .vw-ans { margin-top: 8px; font-weight: 800; }
.vw-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .vw { width: 100vw; border-left: 0; } .pq-tools .btn.sm { height: 34px; } }

.vw-ch[hidden], .out-row[hidden] { display: none !important; }

/* ═════ 문제는 어디서? · 지난번 설정 (10-05 메뉴 정리) ═════ */
.src-row { margin: 0 0 16px; max-width: 820px; }
.src-q { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--text-2); margin: 0 0 8px 2px; letter-spacing: -.01em; }
.src-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.src-opt { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.src-opt:hover { border-color: var(--line-strong); }
.src-opt .src-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.src-opt .src-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.src-opt .src-t b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.src-opt .src-t small { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.src-opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.src-opt.on .src-ic { background: rgba(255,255,255,.16); color: #fff; }
.src-opt.on .src-t small { color: rgba(255,255,255,.78); }
.src-opt.off { opacity: .55; cursor: not-allowed; border-style: dashed; }
.src-opt.off:hover { border-color: var(--line); }
.src-why { margin: 8px 2px 0; font-size: 12.5px; color: var(--text-3); }
.again-btn { height: auto; min-height: 40px; padding: 6px 14px; text-align: left; }
.again-btn > span { display: flex; flex-direction: column; line-height: 1.25; }
.again-btn small { font-size: 11.5px; font-weight: 500; color: var(--text-3); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .src-pick { gap: 6px; }
  .src-opt { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 9px; }
  .src-opt .src-ic { width: 26px; height: 26px; border-radius: 8px; }
  .src-opt .src-t b { font-size: 13px; }
  .src-opt .src-t small { font-size: 11px; }
  .again-btn small { max-width: 220px; }
}

/* 2026-10-05 원장님: 수식 크기를 한글 본문과 맞춤 (KaTeX 기본 1.21em → 1.04em). 맨 바깥 분수는 \dfrac(texpre.js) 로 키워 균형 */
.katex { font-size: 1.04em; }
.katex .mfrac .frac-line { min-height: .05em; }

/* ───────── 개념 문제집 · 유형별 문제집: 문제집 프로젝트 · 단원 목록 · 합치기 (10-05) ───────── */
.bk2-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bk2-title { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.bk2-title input { font: inherit; font-size: 18px; font-weight: 800; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); min-width: 0; width: 100%; }
.bk2-title small { color: var(--text-3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bk2-title select { font: inherit; font-size: 12.5px; padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.bk2-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 13.5px; line-height: 1.55; display: flex; gap: 8px; align-items: flex-start; }
.bk2-grid { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 18px; align-items: start; }
.bk2-side { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 10px; max-height: calc(100vh - 100px); overflow: auto; }
.bk2-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 2px 4px 8px; } .bk2-h small { color: var(--text-3); font-size: 11.5px; }
.ch-list { display: grid; gap: 5px; }
.ch-mj { font-size: 11.5px; font-weight: 800; color: var(--text-3); padding: 8px 4px 2px; }
.ch-it { font: inherit; text-align: left; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "n t st" "n t lv"; align-items: center; gap: 2px 8px; padding: 8px 9px; border-radius: 11px; border: 1.5px solid transparent; background: var(--surface); color: var(--text); cursor: pointer; }
.ch-it:hover { border-color: var(--brand-line); } .ch-it.on { border-color: var(--brand); background: var(--brand-soft); }
.ch-n { grid-area: n; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 11.5px; font-weight: 800; }
.ch-it.on .ch-n { background: var(--brand); color: #fff; }
.ch-t { grid-area: t; min-width: 0; display: grid; } .ch-t b { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; } .ch-t small { font-size: 11px; color: var(--text-3); }
.ch-st { grid-area: st; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 2px 7px; white-space: nowrap; background: var(--line); color: var(--text-3); justify-self: end; }
.ch-st.ok { background: #DCF5E6; color: #157A3D; } .ch-st.fix { background: #FFE7D6; color: #B4500B; } .ch-st.draft { background: var(--brand-soft); color: var(--brand); }
.ch-lv { grid-area: lv; justify-self: end; font-size: 10.5px; font-weight: 800; color: var(--brand); border: 1px solid var(--brand-line); border-radius: 99px; padding: 0 7px; }
h2 .ch-lv { font-size: 12px; vertical-align: middle; margin-left: 4px; }
:root[data-theme="dark"] .ch-st.ok { background: rgba(34, 160, 90, .2); color: #7BE0A5; } :root[data-theme="dark"] .ch-st.fix { background: rgba(230, 120, 40, .2); color: #FFB37A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch-st.ok { background: rgba(34, 160, 90, .2); color: #7BE0A5; } :root:not([data-theme="light"]) .ch-st.fix { background: rgba(230, 120, 40, .2); color: #FFB37A; } }
.bk2-main { min-width: 0; }
.bk2-chh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .bk2-chh b { font-size: 17px; } .ch-mjs { font-size: 12px; color: var(--text-3); width: 100%; }
.bk2-chh .ch-st { font-size: 11.5px; }
.cb-lv { grid-template-columns: repeat(3, 1fr); } .cb-lv button { min-height: 64px; padding: 6px 8px; } .cb-lv button small { line-height: 1.35; }
.mg-bar { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--brand-line); background: var(--surface-2); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mg-l { flex: 1; min-width: 200px; display: grid; gap: 2px; } .mg-l b { display: flex; gap: 6px; align-items: center; } .mg-l small { color: var(--text-3); font-size: 12.5px; }
.mg-t { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .mg-t small { max-width: 300px; }
.mg-opts { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 12px; }
.pj-list { display: grid; gap: 8px; }
.pj-it { display: flex; align-items: center; gap: 8px; }
.pj-open { flex: 1; min-width: 0; font: inherit; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; gap: 2px; }
.pj-open:hover { border-color: var(--brand); } .pj-open b { font-size: 15px; overflow-wrap: anywhere; } .pj-open small { color: var(--text-3); font-size: 12px; }
.ask-bk { display: grid; gap: 10px; } .ask-bk h2 { margin: 0; font-size: 19px; display: flex; gap: 8px; align-items: center; }
.ask-bk .field input, .ask-bk .field textarea { width: 100%; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.ak-chs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; max-height: 240px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; }
.ask-bk.done { text-align: center; justify-items: center; padding: 10px 0; }
@media (max-width: 760px) {
  .bk2-grid { grid-template-columns: minmax(0, 1fr); }
  .bk2-side { position: static; max-height: none; }
  .ch-list { grid-template-columns: minmax(0, 1fr); }
  .cb-lv { grid-template-columns: minmax(0, 1fr); }
  .mg-bar { flex-direction: column; align-items: stretch; } .mg-t { flex-direction: column; align-items: stretch; } .mg-t small { max-width: none; }
}
.ak-chs .checkline { display: flex !important; justify-content: flex-start !important; align-items: center; gap: 8px; text-align: left; width: auto; margin: 0; padding: 4px 2px; font-size: 13.5px; } .ak-chs .checkline input { flex: none; margin: 0; } .ak-chs .checkline small { margin-left: 4px; }
.ak-chs .checkline input[type=checkbox] { width: 18px !important; height: 18px; padding: 0 !important; }

/* ───────── 본사 + 지점 (10-05) ───────── */
.br-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.br-bar .br-l { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); padding: 0 6px; }
.br-bar button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 10px; cursor: pointer; min-height: 36px; }
.br-bar button.on { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .br-bar button.on { background: var(--brand); }
.br-bar.dir { gap: 8px; padding: 9px 12px; font-size: 14px; color: var(--text-2); background: var(--brand-soft); border-color: var(--brand-line); }
.br-bar.dir b { color: var(--brand); }
.br-tag { display: inline-block; font-weight: 700; color: var(--brand); }
.who-tag { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); vertical-align: middle; }
/* 홈 지점 현황 */
.br-home { margin: 0 0 16px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.brh-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.brh-h h2 { margin: 0; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.brh-h small { color: var(--text-2); font-size: 13px; }
.brh-h small b { color: var(--brand); }
.brh-go { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.brh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.brh-card { position: relative; display: block; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.brh-card:hover { border-color: var(--brand-line); }
.brh-card > b { font-size: 15px; }
.brh-card > small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; }
.brh-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0 0; }
.brh-card dl div { text-align: center; }
.brh-card dt { font-size: 11px; color: var(--text-3); }
.brh-card dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.brh-card dd i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 1px; }
.brh-card .hot dd { color: var(--bad); }
.brh-none { font-size: 12.5px; font-weight: 700; color: var(--bad); text-decoration: none; padding: 2px 8px; border-radius: 999px; background: var(--bad-soft); }
.brh-new { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--bad); padding: 2px 8px; border-radius: 999px; }
/* 올리기: 사진 → 종류 → 보내기 */
.req-chips { grid-template-columns: repeat(4, 1fr); }
.req-chips .req-k > span { padding: 10px 12px; min-height: 64px; }
.req-chips .req-k b em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--brand); }
.req-k.off { opacity: .45; }
.up-more summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.up-more summary::-webkit-details-marker { display: none; }
.up-more summary h3 { margin: 0; flex: 1; min-width: 0; }
.up-more summary h3 small { font-weight: 600; margin-left: 4px; }
.up-edit { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--brand); flex: none; }
.up-more[open] .up-edit { display: none; }
.up-more[open] summary { margin-bottom: 10px; }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.note-chips button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 12px; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.note-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.up-send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.camera.has { min-height: 96px; }
/* 요청 목록 */
.sent-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; flex: none; max-width: 52%; }
.st-pick { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-pick button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 10px; min-height: 36px; border: 0; background: var(--surface); color: var(--text-3); cursor: pointer; }
.st-pick button + button { border-left: 1px solid var(--line); }
.st-pick button.on.st-wait { background: var(--surface-2); color: var(--text); }
.st-pick button.on.st-run { background: var(--brand); color: #fff; }
.st-pick button.on.st-done { background: var(--ok); color: #fff; }
.sent-item.s-done { opacity: .82; }
.due { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--text-2); margin-left: 4px; }
.due.soon { color: var(--bad); }
.req-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.req-tags i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.st-note { color: var(--ok) !important; }
.filters button.st-run.on { background: var(--brand); }
/* 관리 */
.add-t h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.add-row input, .add-row select { flex: 1 1 140px; min-width: 0; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.sel-sm { min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; }
.adm-t tr.is-off td { opacity: .55; }
/* 10-07 별명 고치기 · 고정 · 지우기 · 중지된 사람 보기 */
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 2px 8px; }
.adm-off { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 32px; }
.adm-off input { width: 17px; height: 17px; margin: 0; }
.a-nick-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; margin: -4px -8px; border: 1px dashed transparent; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.a-nick-btn .ic { opacity: .45; }
.a-nick-btn:hover, .a-nick-btn:focus-visible { border-color: var(--line); background: var(--brand-soft); }
.a-nick-btn:hover .ic { opacity: 1; }
.a-nick-in { width: 7.5em; min-height: 32px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--brand); background: var(--surface); color: var(--text); font: inherit; }
.nick-fix { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--line); color: var(--text-2); font-size: 11.5px; font-weight: 700; cursor: help; vertical-align: 1px; }
.adm-t .btn.a-del { color: var(--bad); }
/* 10-07 작업관리자 휴대폰: 명단 = 선생님마다 카드 · 선생님 넣기 세로 · 지점 고르기 줄바꿈 */
.add-nick { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.add-nick input { flex: none; width: 100%; }
.adm-t .m-only { display: none; }
.add-nick small { font-size: 12px; color: var(--text-2); padding-left: 4px; line-height: 1.3; }
.br-bar .br-l { white-space: nowrap; flex: none; }
@media (max-width: 720px) {
  .br-bar button { min-height: 40px; padding: 7px 11px; }
  .add-row { flex-direction: column; align-items: stretch; }
  .add-row > input, .add-row > select, .add-nick, .add-row > .btn { flex: none; width: 100%; }
  .add-row input, .add-row select { min-height: 44px; font-size: 16px; }
  .add-row > .btn { min-height: 44px; justify-content: center; }
  .adm-card .table-wrap { overflow: visible; }
  .adm-t, .adm-t tbody { display: block; width: 100%; }
  .adm-t thead { display: none; }
  .adm-t tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 14px 14px 16px; border-bottom: 1px solid var(--line); }
  .adm-t tbody tr:last-child { border-bottom: 0; }
  .adm-t tbody tr:hover { background: transparent; }
  .adm-t td { display: block; padding: 0; border: 0; white-space: normal; }
  .adm-t td.a-name { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
  .adm-t td.a-nick { color: var(--text-2); font-size: 14px; }
  .adm-t .m-only { display: inline-flex; }
  .adm-t td.a-f { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 28px; }
  .adm-t td.a-f::before { content: attr(data-l); flex: none; width: 76px; font-size: 13px; font-weight: 700; color: var(--text-2); }
  .adm-t td.a-f .sel-sm { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; }
  .adm-t td.a-last { font-size: 13px; }
  .adm-t td.a-act { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 4px; }
  .adm-t td.a-act:not(:has(button)) { display: none; }
  .adm-t td.a-act .btn { flex: 1; min-height: 44px; justify-content: center; }
  .adm-t td.a-act .btn.ghost { border: 1px solid var(--line); }
  .a-nick-btn { min-height: 40px; margin: -8px -8px; }
  .a-nick-in { min-height: 44px; font-size: 16px; width: 100%; }
  .adm-off { min-height: 44px; }
}
@media (max-width: 720px) {
  .req-chips { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .req-chips .req-k > span { min-height: 52px; padding: 9px 10px; row-gap: 0; }
  .req-chips .req-k small { display: none; }
  .req-chips .req-k b { font-size: 14px; line-height: 1.25; }
  .req-chips .req-k b em { display: block; font-size: 11px; }
  .up-grid { grid-template-columns: 1fr; }
  .sent-item { flex-wrap: wrap; }
  .sent-act { max-width: 100%; width: 100%; justify-content: flex-start; padding-left: 58px; }
  .brh-grid { grid-template-columns: 1fr 1fr; }
  .brh-card dd { font-size: 16px; }
  .br-bar { flex-wrap: wrap; overflow-x: visible; }      /* 10-07: 옆으로 밀기 대신 줄바꿈(「휘경 동대문본원」 안 잘리게) */
  .br-bar button { flex: none; }
}
@media (max-width: 380px) { .brh-grid { grid-template-columns: 1fr; } }
/* 유형별 문제집 「유형 시작」 (10-05) */
.seg-btn { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-btn button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; min-height: 36px; border: 0; background: var(--surface); color: var(--text-2); cursor: pointer; }
.seg-btn button + button { border-left: 1px solid var(--line); }
.seg-btn button.on { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .seg-btn button.on { background: var(--brand); }
.tb-ts { flex-wrap: wrap; }
.tb-ts-h { flex-basis: 100%; margin-top: 4px; }
/* 10-05 퍼펙트 기본판 · 디자인 칩 */
.ed-box { margin-top: 12px; border: 1.5px solid var(--primary, #2F6BFF); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--primary, #2F6BFF) 5%, transparent); display: grid; gap: 10px; }
.ed-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; } .ed-h small { color: var(--muted, #667); font-size: 12px; }
.ed-tag, .ed-chip { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary, #2F6BFF); border-radius: 99px; padding: 2px 8px; margin-right: 4px; }
.ed-chip.a { background: #8A94AD; }
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; } .ed-l { font-size: 12px; font-weight: 700; min-width: 64px; color: var(--muted, #667); }
.ed-n b { color: var(--primary, #2F6BFF); } .ed-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .ed-go small { font-size: 12px; }
.ed-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 16px 8px; } .ed-f select { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line, #ccd); font: inherit; }
.ed-it { display: block; cursor: pointer; } .ed-it.on { outline: 2px solid var(--primary, #2F6BFF); border-radius: 12px; }
.ed-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line, #dde); }
.bd-chips button { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.bd-sw { display: inline-flex; gap: 2px; } .bd-sw i { width: 12px; height: 12px; border-radius: 3px; display: block; }

/* 10-06 조판 D: 문항 줄 머리 이름표 · 매달린 들여쓰기 (화면 미리보기) */
.hang { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .32em; align-items: baseline; } .hang > .hl { white-space: nowrap; } .hang > .hb { min-width: 0; }
.mrow { display: block; margin: 2px 0 2px 1em; } .hang .mrow, .q-ch .mrow { margin-left: 0; }
.mrow.al { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; }
/* 10-06 조판 B: 선택지 번호 동그라미 · 보기/조건 상자 (화면 미리보기) */
.q-ch .ch { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .4em; align-items: baseline; }
.q-ch .cn { display: inline-grid; place-items: center; box-sizing: border-box; width: 1.32em; height: 1.32em; border-radius: 50%; border: 1px solid currentColor; font-size: .74em; font-weight: 700; line-height: 1; }
.q-box .bx-i { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .45em; align-items: baseline; } .q-box.bx-note .bx-m { display: none; } .q-box.bx-note .bx-i { grid-template-columns: minmax(0, 1fr); }
.q-box .bx-m { font-weight: 700; }
/* 반 카드: 학생 빼기(×) · 학생 더하기 · 더 보기 · 반 지우기 (10-06) */
.cc-names span.st { position: relative; display: inline-flex; align-items: center; gap: 2px; padding-right: 6px; }
.cc-names span.st.hid { display: none; }
.cc-names .st-x { border: 0; background: none; color: var(--text-3); font-size: 14px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .35; border-radius: 50%; }
.cc-names span.st:hover .st-x, .cc-names .st-x:focus { opacity: 1; color: #dc2626; }
@media (pointer: coarse) { .cc-names .st-x { opacity: .7; } }
.cc-names .st-more, .cc-names .st-add { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.cc-names .st-more { background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.cc-names .st-add { background: #eef4ff; border: 1px dashed #93b4f5; color: #1d4ed8; font-weight: 600; }
.cc-names .st-add:hover { background: #dbe7ff; }
.btn.danger-ghost { color: #dc2626; border-color: #fecaca; background: #fff; }
.btn.danger-ghost:hover { background: #fef2f2; }
/* 인쇄 화면 돌아가기 · 홈으로 · 닫기 (10-06) */
.print-view .pv-bar .pv-back, .print-view .pv-bar .pv-home { background: #fff; color: #0B1B45; border: 0; font-weight: 700; }
.print-view .pv-bar .pv-home { background: #FF8A3D; color: #fff; }
.print-view .pv-bar .pv-close { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.print-view .pv-bar .pv-close:hover { background: rgba(255,255,255,.12); }
.print-view .pv-bar .pv-back .ic { transform: rotate(180deg); }

/* ── 10-06 카메라로 채점: 큰 휴대폰 그림 단추(홈 · 채점하기 · 시험 고르기) · 메뉴 「카메라」 꼬리표 · 반 붙이기 ── */
.camcta { display: flex; align-items: center; gap: 18px; padding: 10px 22px 10px 18px; margin: 0 0 14px; border-radius: 18px; color: #fff; text-decoration: none; background: linear-gradient(120deg, #1E3A8A 0%, #155E75 55%, #0D9488 100%); box-shadow: 0 8px 22px rgba(14,40,80,.22); min-height: 124px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.camcta::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.camcta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,40,80,.3); }
.camcta-ph { order: 3; flex: none; width: auto; height: 110px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.camcta-t { order: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.camcta-t b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.camcta-t small { font-size: 14.5px; color: rgba(255,255,255,.88); }
.camcta-go { order: 2; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0F4C5C; font-weight: 800; font-size: 15px; }
.camcta-go .ic { background: #0F4C5C; }
.camcta.home { margin: 0 0 12px; }
@media (max-width: 640px) {
  .camcta { gap: 12px; padding: 8px 14px; min-height: 104px; }
  .camcta-ph { order: 0; height: 90px; }
  .camcta-t b { font-size: 20px; }
  .camcta-t small { font-size: 13px; }
  .camcta-go { display: none; }
  .cam video { max-height: 74vh; }      /* 휴대폰: 카메라 칸 크게 */
}
/* 메뉴 「채점하기」 옆 꼬리표 */
.nav-pair { display: flex; align-items: center; gap: 4px; }
.nav-pair > a:first-child { flex: 1; min-width: 0; }
.nav .nav-pair a.nav-cam { flex: none; gap: 4px; height: 28px; padding: 0 10px; margin-right: 6px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #1E3A8A, #0D9488); }
.nav .nav-pair a.nav-cam .ic { width: 14px; height: 14px; opacity: 1; }
.nav .nav-pair a.nav-cam:hover, .nav .nav-pair a.nav-cam.on { filter: brightness(1.15); color: #fff; }
.nav .nav-pair a.nav-cam::before { display: none; }
/* 시험 고르기 */
.cp-qr { padding: 14px 16px; }
.cp-qr-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-qr-h > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.cp-qr-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.cp-qr-h small { color: var(--text-3); }
.cp-h { font-size: 17px; margin: 18px 0 10px; }
.cp-list { display: flex; flex-direction: column; gap: 10px; }
.cp-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); text-decoration: none; }
.cp-row:hover { border-color: #0D9488; color: var(--text); }
.cp-row.today { border: 2px solid #0D9488; background: color-mix(in srgb, #0D9488 7%, var(--surface)); }
.cp-ph { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(120deg, #1E3A8A, #0D9488); }
.cp-ph .ic { width: 26px; height: 26px; background: #fff; }
.cp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-t b { font-size: 17px; line-height: 1.35; }
.cp-t small { color: var(--text-3); font-size: 13px; }
.cp-new { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: #0D9488; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.cp-nocls { color: #C2410C; font-weight: 700; }
.cp-go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 999px; background: #0D9488; color: #fff; font-weight: 800; font-size: 14px; }
.cp-go .ic { background: #fff; }
@media (max-width: 640px) { .cp-row { padding: 14px; gap: 10px; } .cp-t b { font-size: 16px; } .cp-go { padding: 8px 10px; font-size: 13px; } }
/* 채점: 반 없는 시험에 반 붙이기 */
.gx-att { border: 2px solid #F59E0B; background: color-mix(in srgb, #F59E0B 6%, var(--surface)); display: flex; flex-direction: column; gap: 10px; }
.gx-att-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gx-att-h b { font-size: 16px; }
.gx-att .stu-chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.gx-att.flash { animation: gxFlash 1.4s ease 2; }
@keyframes gxFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } 40% { box-shadow: 0 0 0 6px rgba(245,158,11,.55); } }
.gtabs button.off { opacity: .45; }
/* 내 학습지 줄 「카메라 채점」 */
.btn.ms-cam { background: linear-gradient(120deg, #1E3A8A, #0D9488); color: #fff; border-color: transparent; }
.btn.ms-cam .ic { background: #fff; }
.btn.ms-cam:hover { color: #fff; filter: brightness(1.1); }
/* 10-06 바로 비추기 (#/grade/scan) */
.sc-card .cam { max-width: 760px; margin: 10px 0; }
.sc-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, #0D9488 9%, var(--surface)); border: 1px solid color-mix(in srgb, #0D9488 30%, var(--line)); }
.sc-chip { display: inline-flex; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.sc-chip b { color: #0F766E; }
.sc-btns { align-items: center; }
.sc-pick { margin-left: auto; font-weight: 700; font-size: 14px; }
.sc-ex { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.sc-ex .ex-no { font-size: 11px; padding: 1px 6px; }
.sc-pk { max-height: 56vh; overflow: auto; }
.sc-pk .cp-row { padding: 10px 12px; }
.cp-back { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); border: 1.5px solid #0D9488; }
.cp-back b { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.cp-back small { color: var(--text-3); }
@media (max-width: 640px) { .sc-card .cam { margin: 8px -6px; } .sc-pick { margin-left: 0; width: 100%; text-align: right; } }
/* 10-06 반 전체 맞춤 학습지 */
.xb-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 8px 0; } .xb-bar i { display: block; height: 100%; background: #0D9488; transition: width .2s; }
.xb-list { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow: auto; margin: 10px 0; }
.xb-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.xb-row small { color: var(--text-3); } .xb-row.bad small { color: #C2410C; }
.ms-bd-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ms-bd-h > button[data-fold] { border: 0; background: none; font: inherit; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); padding: 4px 0; }
.ms-bd-h small { color: var(--text-3); }
.xb-btn { border-color: #0D9488; color: #0F766E; }
.ms-tbl tr.ms-bdr td { padding: 6px 12px; background: color-mix(in srgb, #0D9488 7%, var(--surface)); border-top: 1.5px solid color-mix(in srgb, #0D9488 35%, var(--line)); }
.ms-bdr .ms-bd-h > button[data-fold] b { font-size: 14px; }
.ms-bdr .ms-bd-h .btn { width: auto; flex: none; }
@media (max-width: 899px) { .ms-tbl tr.ms-bdr { padding: 0; } .ms-tbl tr.ms-bdr td { display: block; } }
.xb-dz { display: flex; flex-wrap: wrap; gap: 6px; } .xb-dz select { min-width: 0; flex: 1 1 120px; }
.bd-run { position: fixed; inset: 0; z-index: 9999; background: rgba(11,27,69,.35); display: grid; place-items: center; padding: 16px; }
.bd-run-c { background: var(--surface); border-radius: 16px; padding: 18px 20px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.bd-run-t { color: var(--text-3); font-size: 14px; }
/* 10-07 유형별 문제집 ② 난이도 직접 고르기 */
.tb-diff .tb-drow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin-top: 6px; }
.tb-diff .tb-dl { font-size: 13px; font-weight: 700; color: var(--text-2); } .tb-diff .tb-dl small { font-weight: 500; color: var(--text-3); }
.diff-pick.sm button { padding: 5px 4px; border-radius: 10px; grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 5px; } .diff-pick.sm button b { font-size: 14px; }
.diff-pick.sm button.out { opacity: .55; }
.tb-dbadge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.tb-dbadge.man { background: #FFF4E5; border-color: #F5B76B; color: #9A5B00; }
.tb-dpat { margin: 8px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.6; } .tb-dpat small { color: var(--text-3); }
.bk-preset button.base { border-style: dashed; border-color: var(--navy); }
@media (max-width: 480px) { .tb-diff .tb-drow { grid-template-columns: 1fr; gap: 4px; } }
/* 10-07 유형별 문제집 전체 문항 수 */
.tb-tot button.auto { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.1; padding: 0 10px; }
.tb-tot button.auto small { font-size: 11px; font-weight: 500; opacity: .8; }
.tb-tot input { width: 84px; }
.tb-skip small { font-weight: 400; }
