/* ============================================================================
   기출분석 작업 화면 (EXAMLAB WORKSPACE)
   ============================================================================

   왜 새 파일인가
   --------------
   base.css 는 GPT 시제품에서 통째로 가져온 파일(89KB, minified tailwind + 시안
   스타일)이라 `.panel` `.card` `.stepper` 같은 흔한 이름이 이미 다 잡혀 있다.
   거기에 얹으면 어느 규칙이 이기는지 알 수 없어 화면이 조용히 깨진다.
   그래서 **작업 화면 전용 클래스를 전부 `exl-` 로 시작하도록** 따로 뺐다.

   무엇을 담는가
   -------------
   원장님이 하루 종일 붙잡고 쓰는 **업무 도구** 화면 — 목록·6단계 작업대.
   학부모에게 나가는 **결과지(report.css)와 인스타 카드(insta.css)는 여기 없다.**
   그쪽은 승인된 "잉크와 주묵" 디자인이므로 이 파일이 건드리지 않는다.

   지키는 규칙 (2026-08-23 원장님 지시)
   -----------------------------------
   · 간격은 8px 배수만 · 카드는 흰 배경 + 얇은 선, 테두리와 그림자를 같이 쓰지 않는다
   · 본문 14px 이상, 라벨 13px 이상, 누를 수 있는 것은 40px 이상
   · 상태색은 파랑·초록·주황·빨강 넷뿐 · 그라데이션·유리효과·형광색 없음
   · 이모지를 아이콘으로 쓰지 않는다 (선으로 그린 도형이나 글자만)
   ========================================================================== */

.exl-ws {
  /* ── 색 ── */
  --exl-bg: #f5f7fb;
  --exl-card: #ffffff;
  --exl-ink: #182033;
  --exl-ink-2: #667085;
  --exl-line: #e4e8f0;
  --exl-line-2: #eef1f6;
  --exl-blue: #1d50c8;
  --exl-blue-weak: #eaf0fd;
  --exl-navy: #142a63;
  --exl-ok: #158a5f;
  --exl-ok-weak: #e6f4ee;
  --exl-warn: #d97706;
  --exl-warn-weak: #fdf3e3;
  --exl-err: #d92d20;
  --exl-err-weak: #fdecea;

  /* ── 치수 ── */
  --exl-r: 12px;      /* 작은 모서리 */
  --exl-r-lg: 16px;   /* 카드 모서리 */
  --exl-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --exl-max: 1440px;

  background: var(--exl-bg);
  color: var(--exl-ink);
  font-size: 14px;
  line-height: 1.55;
  /* 결과지(report.css)가 잡아 둔 글꼴을 덮지 않도록 작업화면에만 지정 */
  font-family: Pretendard, "Malgun Gothic", system-ui, sans-serif;
}

/* #page 자체의 여백을 우리가 다시 잡는다 (base.css 값이 화면마다 달랐다) */
#page.exl-ws { padding: 24px 24px 96px; }
.exl-ws .exl-wrap { max-width: var(--exl-max); margin: 0 auto; }

.exl-ws *,
.exl-ws *::before,
.exl-ws *::after { box-sizing: border-box; }

/* ── 글 위계 ─────────────────────────────────────────────────────────── */
.exl-ws h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.2px; }
.exl-ws h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.1px; }
.exl-ws h3 { font-size: 15px; font-weight: 800; }
.exl-ws p { font-size: 14px; }
.exl-muted { color: var(--exl-ink-2); }
.exl-num { font-variant-numeric: tabular-nums; }

/* ============================================================================
   1. 카드 · 버튼 · 배지 — 어느 단계에서나 쓰는 기본 부품
   ========================================================================== */

.exl-card {
  background: var(--exl-card);
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg);
  padding: 24px;
}
/* 테두리와 그림자를 동시에 쓰지 않는다 — 띄워 보일 카드만 그림자로 */
.exl-card.raised { border-color: transparent; box-shadow: var(--exl-shadow); }
.exl-card + .exl-card { margin-top: 16px; }

.exl-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.exl-card-head h2 { margin-bottom: 4px; }
.exl-card-head p { color: var(--exl-ink-2); }

/* ── 버튼 ── */
.exl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-r);
  background: var(--exl-card);
  color: var(--exl-ink);
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.exl-btn:hover:not(:disabled) { background: #f7f9fc; border-color: #d3dae6; }
.exl-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 화면마다 핵심 버튼은 하나만 파랑 */
.exl-btn.primary { background: var(--exl-blue); border-color: var(--exl-blue); color: #fff; }
.exl-btn.primary:hover:not(:disabled) { background: #1a46ad; border-color: #1a46ad; }
.exl-btn.ghost { background: transparent; border-color: transparent; color: var(--exl-ink-2); }
.exl-btn.ghost:hover:not(:disabled) { background: #eef1f6; color: var(--exl-ink); }
.exl-btn.danger { color: var(--exl-err); border-color: #f3cfcb; background: var(--exl-err-weak); }
.exl-btn.danger:hover:not(:disabled) { background: #fbdedb; border-color: #eab8b3; }
.exl-btn.lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.exl-btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.exl-btn.block { width: 100%; }

.exl-btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── 상태 배지 — 파랑·초록·주황·빨강·회색 다섯뿐 ── */
.exl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: #eef1f6; color: #4b5565;
}
.exl-badge.blue { background: var(--exl-blue-weak); color: var(--exl-blue); }
.exl-badge.ok { background: var(--exl-ok-weak); color: var(--exl-ok); }
.exl-badge.warn { background: var(--exl-warn-weak); color: var(--exl-warn); }
.exl-badge.err { background: var(--exl-err-weak); color: var(--exl-err); }
.exl-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.exl-badge.plain::before { display: none; }

/* ── 알림 줄 ── */
.exl-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--exl-r);
  background: var(--exl-blue-weak); color: var(--exl-navy);
  font-size: 14px;
}
.exl-note.warn { background: var(--exl-warn-weak); color: #8a4d05; }
.exl-note.err { background: var(--exl-err-weak); color: #8f1d14; }
.exl-note.ok { background: var(--exl-ok-weak); color: #0d5c40; }
.exl-note b { display: block; margin-bottom: 4px; }
.exl-note-mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: currentColor; color: #fff;
  font-size: 12px; font-weight: 900;
}
.exl-note-mark > span { color: #fff; }

.exl-empty {
  padding: 64px 24px; text-align: center; color: var(--exl-ink-2); font-size: 14px;
}
.exl-loading { padding: 64px 24px; text-align: center; color: var(--exl-ink-2); }

/* ============================================================================
   2. 단계 표시기 — ① 시험정보 → ② 자료등록 → …
   ========================================================================== */

.exl-stepbar {
  display: flex; align-items: stretch; gap: 0;
  background: var(--exl-card);
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg);
  padding: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.exl-step {
  flex: 1 1 0; min-width: 120px;
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 12px;
  border: 0; border-radius: var(--exl-r);
  background: transparent; color: var(--exl-ink-2);
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.exl-step:hover { background: #f4f6fa; }
.exl-step-no {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--exl-line); background: var(--exl-card);
  font-size: 12px; font-weight: 800; color: var(--exl-ink-2);
}
.exl-step-name { display: block; }
.exl-step-sub { display: block; font-size: 11.5px; font-weight: 600; color: var(--exl-ink-2); }

.exl-step.done { color: var(--exl-ink); }
.exl-step.done .exl-step-no { background: var(--exl-ok); border-color: var(--exl-ok); color: #fff; }
.exl-step.current { background: var(--exl-blue-weak); color: var(--exl-blue); }
.exl-step.current .exl-step-no { background: var(--exl-blue); border-color: var(--exl-blue); color: #fff; }
.exl-step.current .exl-step-sub { color: var(--exl-blue); }
.exl-step.locked { color: #98a2b3; }

/* 단계 사이 이음선 — 장식이 아니라 순서를 읽히게 하는 선 */
.exl-step-sep { flex: none; align-self: center; width: 16px; height: 1px; background: var(--exl-line); }

/* ============================================================================
   3. 첫 화면 — 기출분석 목록
   ========================================================================== */

.exl-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.exl-page-head h1 { margin-bottom: 4px; }
.exl-page-head p { color: var(--exl-ink-2); max-width: 720px; }

/* ── 요약 카드 4개 ── */
.exl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.exl-stat {
  background: var(--exl-card); border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg); padding: 16px 20px;
}
.exl-stat dt { font-size: 13px; font-weight: 700; color: var(--exl-ink-2); margin-bottom: 8px; }
.exl-stat dd { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.exl-stat dd small { font-size: 14px; font-weight: 700; color: var(--exl-ink-2); margin-left: 4px; }
.exl-stat.is-warn dd { color: var(--exl-warn); }
.exl-stat.is-ok dd { color: var(--exl-ok); }
.exl-stat.is-blue dd { color: var(--exl-blue); }

/* ── 필터 도구막대 ── */
.exl-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--exl-card); border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg); padding: 12px 16px; margin-bottom: 16px;
}
.exl-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.exl-search input { width: 100%; padding-left: 36px; }
.exl-search-mark {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; border: 1.5px solid var(--exl-ink-2); border-radius: 50%;
  pointer-events: none;
}
.exl-search-mark::after {
  content: ""; position: absolute; right: -5px; bottom: -4px;
  width: 6px; height: 1.5px; background: var(--exl-ink-2); transform: rotate(45deg);
}
.exl-toolbar-sep { width: 1px; align-self: stretch; background: var(--exl-line); margin: 0 4px; }

/* 자주 쓰지 않는 조건은 접어 둔다 */
.exl-more-filters { border-top: 1px solid var(--exl-line-2); margin-top: 12px; padding-top: 12px; width: 100%; }
.exl-more-filters[hidden] { display: none; }
.exl-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* ── 목록 표 ── */
.exl-table-wrap {
  background: var(--exl-card); border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg); overflow: hidden;
}
.exl-table-scroll { overflow-x: auto; }
.exl-table { width: 100%; border-collapse: collapse; min-width: 960px; }
.exl-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #f0f3f8; color: #46506a;
  font-size: 13px; font-weight: 800; text-align: left; white-space: nowrap;
  padding: 12px 16px; border-bottom: 1px solid var(--exl-line);
}
.exl-table tbody td {
  padding: 14px 16px; font-size: 14px;
  border-bottom: 1px solid var(--exl-line-2); vertical-align: middle;
}
.exl-table tbody tr:last-child td { border-bottom: 0; }
.exl-table tbody tr.exl-row { cursor: pointer; }
.exl-table tbody tr.exl-row:hover td { background: #f7f9fc; }
.exl-table td.num, .exl-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.exl-table td.tight, .exl-table th.tight { width: 1%; white-space: nowrap; }
.exl-row-title { font-weight: 700; }
.exl-row-sub { display: block; font-size: 12.5px; color: var(--exl-ink-2); margin-top: 2px; }

/* 진행률 — 막대 하나 + 숫자 */
.exl-progress { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.exl-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.exl-progress-bar > i { display: block; height: 100%; background: var(--exl-blue); border-radius: 999px; }
.exl-progress.is-ok .exl-progress-bar > i { background: var(--exl-ok); }
.exl-progress > b { font-size: 12.5px; font-weight: 700; color: var(--exl-ink-2); font-variant-numeric: tabular-nums; }

/* ── 점 3개 더보기 ── */
.exl-menu { position: relative; display: inline-block; }
.exl-menu-btn {
  width: 40px; height: 40px; border-radius: var(--exl-r);
  border: 1px solid var(--exl-line); background: var(--exl-card);
  color: var(--exl-ink-2); font-size: 18px; line-height: 1; cursor: pointer;
}
.exl-menu-btn:hover { background: #f4f6fa; }
.exl-menu-pop {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  min-width: 168px; padding: 6px;
  background: var(--exl-card); border: 1px solid var(--exl-line);
  border-radius: var(--exl-r); box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}
.exl-menu-pop[hidden] { display: none; }
.exl-menu-pop button {
  display: block; width: 100%; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--exl-ink); font-family: inherit; font-size: 14px; font-weight: 600;
  text-align: left; cursor: pointer;
}
.exl-menu-pop button:hover { background: #f4f6fa; }
.exl-menu-pop button.danger { color: var(--exl-err); }
.exl-menu-pop button.danger:hover { background: var(--exl-err-weak); }
.exl-menu-pop hr { height: 1px; background: var(--exl-line-2); margin: 6px 0; border: 0; }

/* ============================================================================
   4. 입력 — 라벨·입력창을 그리드에 맞춘다 (칸 너비를 제각각 주지 않는다)
   ========================================================================== */

.exl-field { display: block; }
.exl-field > .exl-label,
.exl-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #46506a; margin-bottom: 6px;
}
.exl-req { color: var(--exl-err); font-size: 12px; font-weight: 800; }
.exl-opt { color: var(--exl-ink-2); font-size: 12px; font-weight: 600; }
.exl-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--exl-ink-2); }

.exl-ws input[type="text"],
.exl-ws input[type="number"],
.exl-ws input[type="search"],
.exl-ws input[type="date"],
.exl-ws select,
.exl-ws textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--exl-line); border-radius: var(--exl-r);
  background: var(--exl-card); color: var(--exl-ink);
  font-family: inherit; font-size: 14px; line-height: 1.5;
}
.exl-ws textarea { min-height: 96px; resize: vertical; }
.exl-ws select { appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.exl-ws input:focus, .exl-ws select:focus, .exl-ws textarea:focus {
  outline: none; border-color: var(--exl-blue); box-shadow: 0 0 0 3px var(--exl-blue-weak);
}
.exl-ws input:disabled, .exl-ws textarea:disabled { background: #f4f6fa; color: #98a2b3; }
.exl-ws input.is-missing, .exl-ws select.is-missing { border-color: #eab8b3; background: #fffbfa; }

/* 2열 폼 — 왼쪽/오른쪽 묶음 */
.exl-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.exl-form-col { display: grid; gap: 16px; align-content: start; }
.exl-form-full { display: grid; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--exl-line-2); }

/* 고르기 칩 (학교급·교과·난도 등) */
.exl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.exl-chip {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--exl-line); border-radius: var(--exl-r);
  background: var(--exl-card); color: var(--exl-ink);
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.exl-chip:hover { border-color: #c8d2e2; background: #f7f9fc; }
.exl-chip.on { background: var(--exl-blue); border-color: var(--exl-blue); color: #fff; }
.exl-chip.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }

/* 교과 고르기 — 이름 + 예시 과목 */
.exl-subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.exl-subject {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 14px; text-align: left;
  border: 1px solid var(--exl-line); border-radius: var(--exl-r);
  background: var(--exl-card); color: var(--exl-ink);
  font-family: inherit; cursor: pointer;
}
.exl-subject:hover { border-color: #c8d2e2; background: #f7f9fc; }
.exl-subject.on { border-color: var(--exl-blue); background: var(--exl-blue-weak); }
.exl-subject strong { display: block; font-size: 14px; font-weight: 800; }
.exl-subject small { display: block; font-size: 12px; color: var(--exl-ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.exl-title-preview {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--exl-r);
  background: #f4f6fa; border: 1px solid var(--exl-line-2);
}
.exl-title-preview span { display: block; font-size: 12.5px; font-weight: 700; color: var(--exl-ink-2); margin-bottom: 4px; }
.exl-title-preview strong { font-size: 15px; font-weight: 800; }

/* ============================================================================
   5. 자료 등록 — 업로드 카드 · 파일 요약 · 정답 표
   ========================================================================== */

.exl-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* 아직 파일이 없을 때만 크게 — 올리고 나면 요약으로 접힌다 */
.exl-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 168px; padding: 24px;
  border: 1.5px dashed #cbd5e6; border-radius: var(--exl-r);
  background: #fafbfe; text-align: center; cursor: pointer;
}
.exl-drop:hover, .exl-drop.is-over { border-color: var(--exl-blue); background: var(--exl-blue-weak); }
.exl-drop input[type="file"] { display: none; }
.exl-drop-mark {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--exl-blue); color: var(--exl-blue);
  display: grid; place-items: center; font-size: 15px; font-weight: 900;
}
.exl-drop strong { font-size: 14px; font-weight: 800; }
.exl-drop small { font-size: 12.5px; color: var(--exl-ink-2); }
.exl-drop.compact { min-height: 96px; padding: 16px; }

/* 파일이 있으면 이 요약만 남긴다 */
.exl-files { display: grid; gap: 8px; }
.exl-file {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--exl-line); border-radius: var(--exl-r);
  background: var(--exl-card);
}
.exl-file-kind {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center; background: #f0f3f8;
  font-size: 11px; font-weight: 800; color: #46506a;
}
.exl-file-body { flex: 1; min-width: 0; }
.exl-file-body strong { display: block; font-size: 13.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exl-file-body small { font-size: 12px; color: var(--exl-ink-2); }
.exl-file-del {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--exl-line); background: var(--exl-card);
  color: var(--exl-ink-2); font-size: 15px; line-height: 1; cursor: pointer;
}
.exl-file-del:hover { background: var(--exl-err-weak); border-color: #f3cfcb; color: var(--exl-err); }

/* 정답 입력 표 — 번호와 정답만 빠르게 */
.exl-answer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px;
}
.exl-answer {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--exl-line); border-radius: var(--exl-r);
  background: var(--exl-card);
}
.exl-answer.filled { border-color: #cfe3d8; background: #fbfefc; }
.exl-answer > b {
  flex: none; min-width: 28px; font-size: 13px; font-weight: 800;
  color: var(--exl-ink-2); font-variant-numeric: tabular-nums; text-align: right;
}
.exl-answer input { min-height: 32px; padding: 4px 8px; font-size: 13.5px; }
/* 단답·서술형 — 격자 한 줄을 다 쓰고 정답 전체가 보이게 (2026-10-06) */
.exl-answer.wide { grid-column: 1 / -1; align-items: flex-start; }
.exl-answer.wide > b, .exl-answer.wide .exl-answer-type, .exl-answer.wide .exl-answer-none { margin-top: 2px; }
.exl-answer textarea { flex: 1; min-width: 0; min-height: 32px; padding: 6px 8px; font: inherit; font-size: 13.5px; line-height: 1.45; resize: vertical; white-space: pre-wrap; }
.exl-answer-type {
  flex: none; min-height: 32px; padding: 0 8px;
  border: 1px solid var(--exl-line); border-radius: 8px; background: #f4f6fa;
  color: #46506a; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.exl-answer-type.essay { background: var(--exl-blue-weak); border-color: #cadcf9; color: var(--exl-blue); }
.exl-answer-type.short { background: #f3f0ff; border-color: #d9d0f7; color: #5b43b5; }

/* 블로그에 넣을 카드 고르기 (2026-10-01) */
.exl-blog-pick { margin: 12px 0 14px; padding: 12px; border: 1px solid var(--exl-line); border-radius: 10px; background: #fafbfd; }
.exl-blog-pick-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.exl-blog-theme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.exl-blog-theme > span { font-size: 13px; font-weight: 700; color: #142A63; margin-right: 4px; }
.exl-blog-theme button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 10px; min-height: 32px; border: 1px solid #D5DBE7; border-radius: 6px; background: #fff; color: #142A63; cursor: pointer; }
.exl-blog-theme button.on { background: #142A63; border-color: #142A63; color: #fff; }
.exl-blog-theme small { flex-basis: 100%; font-size: 12.5px; }
.exl-blog-pick-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.exl-blog-pick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 128px; padding: 8px; border: 1px solid var(--exl-line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; text-align: center; }
.exl-blog-pick-item.off { opacity: .45; }
.exl-blog-pick-item b { font-weight: 700; color: var(--exl-ink-2); }
.exl-blog-pick-thumb { display: block; overflow: hidden; border: 1px solid #e3e6ee; border-radius: 4px; background: #fff; pointer-events: none; }
.exl-answer-none {
  flex: none; min-height: 32px; padding: 0 8px;
  border: 1px solid var(--exl-line); border-radius: 8px; background: var(--exl-card);
  color: var(--exl-ink-2); font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.exl-answer-none.on { background: var(--exl-warn-weak); border-color: #eccfa0; color: var(--exl-warn); }

/* 인식 결과 요약 줄 — "총 25문항" 을 분명히 */
.exl-recognized {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--exl-r);
  background: #f4f6fa; border: 1px solid var(--exl-line-2); margin-bottom: 16px;
}
.exl-recognized strong { font-size: 15px; font-weight: 800; }
.exl-recognized .exl-count-input { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.exl-recognized .exl-count-input input { width: 88px; }

/* ============================================================================
   6. AI 분석 실행
   ========================================================================== */

.exl-ai-lead { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.exl-ai-check { display: grid; gap: 8px; }
.exl-ai-check-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--exl-line); border-radius: var(--exl-r);
}
.exl-ai-check-row.ready { border-color: #cfe3d8; background: #fbfefc; }
.exl-ai-check-row.miss { border-color: #eccfa0; background: #fffdf8; }
.exl-ai-check-mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff;
  background: var(--exl-ok);
}
.exl-ai-check-row.miss .exl-ai-check-mark { background: var(--exl-warn); }
.exl-ai-check-row > div { flex: 1; }
.exl-ai-check-row strong { display: block; font-size: 14px; font-weight: 700; }
.exl-ai-check-row small { font-size: 12.5px; color: var(--exl-ink-2); }

.exl-ai-run {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--exl-r-lg);
  background: var(--exl-navy); color: #fff;
}
.exl-ai-run h3 { color: #fff; }
.exl-ai-run p { color: #c3cde6; font-size: 13px; }
.exl-ai-run .exl-btn { background: #fff; border-color: #fff; color: var(--exl-navy); }
.exl-ai-run .exl-btn:hover:not(:disabled) { background: #e8edf8; border-color: #e8edf8; }

/* 진행 상황 */
.exl-ai-progress { display: grid; gap: 12px; }
.exl-ai-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.exl-ai-progress-head strong { font-size: 16px; font-weight: 800; }
.exl-ai-progress-head b { font-size: 20px; font-weight: 800; color: var(--exl-blue); font-variant-numeric: tabular-nums; }
.exl-ai-bar { height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.exl-ai-bar > i { display: block; height: 100%; background: var(--exl-blue); border-radius: 999px; transition: width 0.3s; }
.exl-ai-bar > i.indet { width: 30% !important; animation: exl-indet 1.2s ease-in-out infinite; }
@keyframes exl-indet { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.exl-ai-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.exl-ai-stats > div { padding: 12px; border-radius: var(--exl-r); background: #f4f6fa; text-align: center; }
.exl-ai-stats dt { font-size: 12.5px; font-weight: 700; color: var(--exl-ink-2); }
.exl-ai-stats dd { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============================================================================
   7. 문항 검수 — 왼쪽 탐색 / 가운데 상세 / 오른쪽 요약
   ========================================================================== */

.exl-review-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 16px;
  align-items: start;
}

/* ── 왼쪽: 문항 탐색 ── */
.exl-qnav { position: sticky; top: 16px; }
.exl-qnav-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.exl-qnav-filter { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #46506a; cursor: pointer; }
.exl-qnav-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px;
  max-height: 52vh; overflow-y: auto; padding-right: 4px;
}
.exl-qchip {
  position: relative;
  min-height: 44px; padding: 4px 2px;
  border: 1px solid var(--exl-line); border-radius: 10px;
  background: var(--exl-card); color: var(--exl-ink);
  font-family: inherit; cursor: pointer; text-align: center;
}
.exl-qchip:hover { border-color: #c8d2e2; background: #f7f9fc; }
.exl-qchip.on { border-color: var(--exl-blue); background: var(--exl-blue-weak); }
.exl-qchip b { display: block; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.exl-qchip small { display: block; font-size: 10.5px; color: var(--exl-ink-2); }
/* 오른쪽 위 표시점 — 완료(초록 체크) / 검수필요(주황) / 오류(빨강) */
.exl-qchip-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
}
.exl-qchip-dot.todo { background: var(--exl-warn); }
.exl-qchip-dot.err { background: var(--exl-err); }
.exl-qchip-dot.done { background: var(--exl-ok); }
.exl-qchip.essay { border-left: 3px solid #b8c6e0; }
.exl-qchip.short { border-left: 3px solid #cfc3f2; }

.exl-qnav-legend { display: grid; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--exl-ink-2); }
.exl-qnav-legend span { display: flex; align-items: center; gap: 6px; }
.exl-qnav-legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ── 가운데: 문항 상세 ── */
.exl-qdetail-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--exl-line);
}
.exl-qdetail-no {
  flex: none; min-width: 48px; height: 48px; padding: 0 8px; border-radius: var(--exl-r);
  display: grid; place-items: center; background: var(--exl-navy); color: #fff;
  font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.exl-qdetail-head h2 { flex: 1; min-width: 160px; }
.exl-qdetail-head h2 small { display: block; font-size: 12.5px; font-weight: 600; color: var(--exl-ink-2); }

.exl-qstem {
  padding: 12px 16px; border-radius: var(--exl-r); background: #f4f6fa;
  font-size: 13.5px; color: #46506a; margin-bottom: 16px;
  white-space: pre-wrap; max-height: 168px; overflow-y: auto;
}

/* 분석 내용 묶음 A/B/C */
.exl-group { margin-top: 24px; }
.exl-group:first-of-type { margin-top: 0; }
.exl-group-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid var(--exl-line);
}
.exl-group-mark {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; background: var(--exl-blue-weak); color: var(--exl-blue);
  font-size: 12px; font-weight: 900;
}
.exl-group-head h3 { flex: 1; }
.exl-group-body { display: grid; gap: 16px; }
.exl-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.exl-group-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 긴 글은 넉넉하게 — 표 칸에 우겨 넣지 않는다 */
.exl-longtext textarea { min-height: 80px; }

/* 하단 고정 작업바 */
.exl-actionbar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px;
  background: var(--exl-card); border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg); box-shadow: 0 -2px 8px rgba(16, 24, 40, 0.04);
}
.exl-actionbar .exl-spacer { flex: 1; }
.exl-actionbar .exl-save-state { font-size: 12.5px; color: var(--exl-ink-2); }

/* ── 오른쪽: 시험 요약 ── */
.exl-summary { position: sticky; top: 16px; display: grid; gap: 16px; }
.exl-summary .exl-card { padding: 16px; }
.exl-summary h3 { margin-bottom: 12px; }
.exl-sumlist { display: grid; gap: 8px; }
.exl-sumlist > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
.exl-sumlist dt { color: var(--exl-ink-2); font-weight: 600; }
.exl-sumlist dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.exl-sumlist dd.warn { color: var(--exl-warn); }
.exl-sumlist dd.ok { color: var(--exl-ok); }

/* 난이도·단원 분포 — 격자선 없는 가로 막대 */
.exl-dist { display: grid; gap: 6px; }
.exl-dist-row { display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 8px; font-size: 12.5px; }
.exl-dist-bar { height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.exl-dist-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--exl-navy); }
.exl-dist-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 전체표 편집 ── */
.exl-alltable-wrap { max-height: 68vh; overflow: auto; }
.exl-alltable { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 880px; }
.exl-alltable thead th {
  position: sticky; top: 0; z-index: 3;
  background: #f0f3f8; color: #46506a;
  font-size: 13px; font-weight: 800; text-align: left; white-space: nowrap;
  padding: 10px 12px; border-bottom: 1px solid var(--exl-line);
}
.exl-alltable tbody td { padding: 6px 12px; border-bottom: 1px solid var(--exl-line-2); }
/* 문항번호 열은 가로로 밀어도 붙어 있게 */
.exl-alltable th.stick, .exl-alltable td.stick {
  position: sticky; left: 0; z-index: 2; background: var(--exl-card);
  border-right: 1px solid var(--exl-line);
}
.exl-alltable thead th.stick { z-index: 4; background: #f0f3f8; }
.exl-alltable tbody tr:hover td { background: #f7f9fc; }
.exl-alltable tbody tr:hover td.stick { background: #f7f9fc; }
.exl-alltable input, .exl-alltable select { min-height: 34px; padding: 4px 8px; font-size: 13.5px; }
.exl-alltable td.no { font-weight: 800; font-variant-numeric: tabular-nums; }

.exl-viewtabs { display: flex; gap: 4px; padding: 4px; background: #eef1f6; border-radius: var(--exl-r); }
.exl-viewtabs button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px;
  background: transparent; color: #46506a;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.exl-viewtabs button.on { background: var(--exl-card); color: var(--exl-ink); box-shadow: var(--exl-shadow); }

/* ============================================================================
   8. 총평 — 접이식 섹션
   ========================================================================== */

.exl-acc { display: grid; gap: 8px; }
.exl-acc-item { border: 1px solid var(--exl-line); border-radius: var(--exl-r); background: var(--exl-card); overflow: hidden; }
.exl-acc-item.open { border-color: #c8d2e2; }
.exl-acc-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 8px 16px;
  border: 0; background: transparent; color: var(--exl-ink);
  font-family: inherit; text-align: left; cursor: pointer;
}
.exl-acc-head:hover { background: #f7f9fc; }
.exl-acc-head strong { flex: 1; font-size: 14.5px; font-weight: 800; }
.exl-acc-arrow { flex: none; color: var(--exl-ink-2); font-size: 12px; transition: transform 0.15s; }
.exl-acc-item.open .exl-acc-arrow { transform: rotate(90deg); }
.exl-acc-body { padding: 0 16px 16px; }
.exl-acc-body[hidden] { display: none; }
.exl-acc-auto {
  padding: 12px 16px; border-radius: var(--exl-r); background: #f4f6fa;
  font-size: 13.5px; color: #46506a; margin-bottom: 12px;
}
.exl-acc-auto b { color: var(--exl-ink); }

/* AI 초안과 직접 수정 영역을 눈으로 구분 */
.exl-ai-draft {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px;
  border: 1px dashed #c8d2e2; border-radius: var(--exl-r); background: #fafbfe;
}
.exl-ai-draft > div { flex: 1; min-width: 200px; }
.exl-ai-draft strong { display: block; font-size: 13.5px; font-weight: 800; }
.exl-ai-draft small { font-size: 12.5px; color: var(--exl-ink-2); }
.exl-ai-tag {
  flex: none; height: 22px; padding: 0 8px; border-radius: 6px;
  display: grid; place-items: center; background: var(--exl-navy); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
}

/* ============================================================================
   9. 결과지 단계 — 미리보기 + 작업 버튼
   ========================================================================== */

.exl-result-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.exl-result-meta { display: grid; gap: 4px; }
.exl-result-meta h2 { font-size: 20px; }
.exl-result-meta .exl-result-sub { color: var(--exl-ink-2); font-size: 13.5px; }

.exl-result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.exl-result-actions { position: sticky; top: 16px; display: grid; gap: 16px; }
.exl-action-list { display: grid; gap: 8px; }
.exl-action {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 48px; padding: 8px 14px;
  border: 1px solid var(--exl-line); border-radius: var(--exl-r);
  background: var(--exl-card); color: var(--exl-ink);
  font-family: inherit; text-align: left; cursor: pointer;
}
.exl-action:hover { background: #f7f9fc; border-color: #c8d2e2; }
.exl-action strong { flex: 1; font-size: 14px; font-weight: 700; }
.exl-action small { display: block; font-size: 12px; font-weight: 600; color: var(--exl-ink-2); }
.exl-action-mark {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; background: #f0f3f8; color: #46506a;
  font-size: 11px; font-weight: 800;
}

.exl-preview-frame {
  background: var(--exl-card); border: 1px solid var(--exl-line);
  border-radius: var(--exl-r-lg); padding: 16px; overflow-x: auto;
}
.exl-share-box { display: grid; gap: 8px; }
.exl-share-url { display: flex; gap: 8px; }
.exl-share-url input { font-size: 13px; }

/* ============================================================================
   10. 반응형
   ---------------------------------------------------------------------------
   창 크기를 미디어쿼리로 보지 않고 body[data-ew] 로 본다.
   글씨 크기(zoom)를 키우면 미디어쿼리는 원래 창 크기로 계산되어 어긋난다.
   app.js 의 applyLayoutWidth() 가 '확대를 감안한 실제 폭'을 재서 넣어 준다.
     lg ≥1400 · md 1100~1400 · sm 860~1100 · xs <860
   ========================================================================== */

/* 1100~1400 — 오른쪽 시험요약을 접어 아래로 내린다 (3단 → 2단) */
body[data-ew="md"] .exl-review-layout { grid-template-columns: 200px minmax(0, 1fr); }
body[data-ew="md"] .exl-summary { grid-column: 2; position: static; }
body[data-ew="md"] .exl-summary { grid-template-columns: repeat(2, 1fr); }
/* 요약이 넓어졌으니 출처 이름도 잘리지 않게 (「교과...」→「교과서 2과」) */
body[data-ew="md"] .exl-dist {
  grid-template-columns: fit-content(132px) 1fr 32px; align-items: center;
  column-gap: 8px; font-size: 12.5px;
}
body[data-ew="md"] .exl-dist-row { display: contents; }
body[data-ew="md"] .exl-result-layout { grid-template-columns: minmax(0, 1fr) 240px; }
body[data-ew="md"] .exl-stats { grid-template-columns: repeat(2, 1fr); }
body[data-ew="md"] .exl-ai-lead { grid-template-columns: 1fr 280px; }

/* 860~1100 — 문항 탐색도 가로 줄로 내리고 한 줄에 하나씩 */
body[data-ew="sm"] .exl-review-layout { grid-template-columns: minmax(0, 1fr); }
body[data-ew="sm"] .exl-qnav { position: static; }
body[data-ew="sm"] .exl-qnav-list { max-height: 168px; }
body[data-ew="sm"] .exl-summary { position: static; grid-template-columns: repeat(2, 1fr); }
body[data-ew="sm"] .exl-result-layout { grid-template-columns: minmax(0, 1fr); }
body[data-ew="sm"] .exl-result-actions { position: static; }
body[data-ew="sm"] .exl-stats { grid-template-columns: repeat(2, 1fr); }
body[data-ew="sm"] .exl-2col { grid-template-columns: minmax(0, 1fr); }
body[data-ew="sm"] .exl-form-2col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
body[data-ew="sm"] .exl-ai-lead { grid-template-columns: minmax(0, 1fr); }
body[data-ew="sm"] .exl-group-grid,
body[data-ew="sm"] .exl-group-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-ew="sm"] .exl-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* <860 — 전부 1열 */
body[data-ew="xs"] #page.exl-ws { padding: 16px 16px 96px; }
body[data-ew="xs"] .exl-review-layout { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-qnav, body[data-ew="xs"] .exl-summary, body[data-ew="xs"] .exl-result-actions { position: static; }
body[data-ew="xs"] .exl-qnav-list { max-height: 140px; }
body[data-ew="xs"] .exl-summary { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-result-layout { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-stats { grid-template-columns: repeat(2, 1fr); }
body[data-ew="xs"] .exl-2col { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-form-2col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
body[data-ew="xs"] .exl-ai-lead { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-group-grid,
body[data-ew="xs"] .exl-group-grid.two { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-filter-grid { grid-template-columns: minmax(0, 1fr); }
body[data-ew="xs"] .exl-card { padding: 16px; }
body[data-ew="xs"] .exl-step { min-width: 96px; }
body[data-ew="xs"] .exl-step-sub { display: none; }

/* 인쇄 — 작업 화면 부품은 종이에 나가지 않는다 (결과지만 나간다) */
@media print {
  .exl-stepbar, .exl-actionbar, .exl-toolbar, .exl-result-actions,
  .exl-page-head .exl-btn-row, .exl-viewtabs { display: none !important; }
  #page.exl-ws { background: #fff; padding: 0; }
  .exl-preview-frame { border: 0; padding: 0; }
}

/* 업로드 칸이 셋일 때 (영어 — 시험지·듣기 대본·정답지) */
.exl-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
body[data-ew="md"] .exl-3col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body[data-ew="sm"] .exl-3col,
body[data-ew="xs"] .exl-3col { grid-template-columns: minmax(0, 1fr); }

/* 올린 파일 목록 (2·3단계 업로드 칸) */
.exl-filelist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.exl-filelist li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px;
  align-items: center; padding: 8px 10px;
  background: var(--exl-bg, #F5F7FB); border: 1px solid var(--exl-line, #E3E7EF);
}
.exl-file-name { font-size: 13.5px; color: var(--exl-ink, #142A63); word-break: break-all; }
.exl-filelist li .exl-muted { font-size: 13px; }
.exl-file-act { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.exl-move {
  font-family: inherit; font-size: 13px; color: var(--exl-ink-2, #4A5675);
  background: #fff; border: 1px solid var(--exl-line, #E3E7EF); padding: 5px 8px; cursor: pointer;
}
.exl-move:hover { border-color: var(--exl-blue, #1D50C8); color: var(--exl-blue, #1D50C8); }


/* ============================================================================
   B안 — 흰 사이드바 · 단계 레일 · 오른쪽 「지금 상태」 (2026-09-06 원장님 선택)
   네 작업 화면(학교 기출분석·모의고사 분석·변형문제·제작)이 같은 껍데기 .exl-work-b 를 쓴다.
   본문 안에 제 오른쪽 기둥(.exl-result-layout)이 있는 단계는 상태 기둥을 뺀다(no-side).
   ⚠ 전에는 .exl-stepper / .exl-work-head 에 규칙이 하나도 없어서 단계 버튼이 세로로
      맨몸으로 쌓였다 — 원장님이 "눈에 안 익는다"고 하신 원인 중 하나.
   ========================================================================== */
.exl-work-b { display: grid; grid-template-columns: 188px minmax(0, 1fr) 216px; gap: 16px; align-items: start; }
.exl-work-b.no-side { grid-template-columns: 188px minmax(0, 1fr); }

.exl-work-b > .exl-stepbar,
.exl-work-b > .exl-stepper {
  position: sticky; top: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  margin: 0; padding: 8px; overflow: visible;
  background: var(--exl-card); border: 1px solid var(--exl-line); border-radius: var(--exl-r-lg);
}
.exl-work-b .exl-step {
  flex: none; width: 100%; min-width: 0; min-height: 52px;
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px;
  border: 0; border-radius: var(--exl-r); background: transparent; color: var(--exl-ink-2);
  font-family: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer;
}
.exl-work-b .exl-step:hover { background: #f4f6fa; }
.exl-work-b .exl-step:disabled { color: #98a2b3; cursor: default; }
.exl-work-b .exl-step > b,
.exl-work-b .exl-step-no {
  flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center;
  border: 1.5px solid var(--exl-line); background: var(--exl-card);
  font-size: 12px; font-weight: 800; color: var(--exl-ink-2);
}
.exl-work-b .exl-step > span { display: block; min-width: 0; }
.exl-work-b .exl-step > span strong,
.exl-work-b .exl-step-name { display: block; font-size: 13.5px; }
.exl-work-b .exl-step > span small,
.exl-work-b .exl-step-sub { display: block; font-size: 11.5px; font-weight: 600; color: var(--exl-ink-2); }
.exl-work-b .exl-step.done { color: var(--exl-ink); }
.exl-work-b .exl-step.done > b, .exl-work-b .exl-step.done .exl-step-no { background: var(--exl-ok); border-color: var(--exl-ok); color: #fff; }
.exl-work-b .exl-step.current { background: var(--exl-blue-weak); color: var(--exl-blue); }
.exl-work-b .exl-step.current > b, .exl-work-b .exl-step.current .exl-step-no { background: var(--exl-blue); border-color: var(--exl-blue); color: #fff; }
.exl-work-b .exl-step.current > span small, .exl-work-b .exl-step.current .exl-step-sub { color: var(--exl-blue); }
.exl-work-b .exl-step-sep { display: none; }

.exl-work-main { min-width: 0; }
.exl-work-side { position: sticky; top: 16px; display: grid; gap: 12px; }
.exl-side-card { background: var(--exl-card); border: 1px solid var(--exl-line); border-radius: var(--exl-r-lg); padding: 14px 16px; }
.exl-side-card h3 { font-size: 14px; font-weight: 800; margin: 0 0 8px; }
.exl-side-card dl { margin: 0; display: grid; gap: 6px; }
.exl-side-card dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.exl-side-card dt { color: var(--exl-ink-2); }
.exl-side-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.exl-side-card .autosave { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--exl-line-2); font-size: 12.5px; color: var(--exl-ink-2); }
.exl-side-card .autosave i { width: 8px; height: 8px; border-radius: 50%; background: var(--exl-ok); }

/* 작업 화면 머리 (모의고사·변형문제·제작) */
.exl-work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.exl-work-head h1 { margin: 4px 0 2px; }
.exl-work-head p { color: var(--exl-ink-2); }
.exl-back { border: 0; background: transparent; color: var(--exl-ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.exl-back:hover { color: var(--exl-blue); }

/* 창이 좁으면(노트북·창 반쪽) 레일을 가로 한 줄로 접는다 — 검수 3단 같은 화면이 눌리지 않게 */
@media (max-width: 1360px) {
  .exl-work-b, .exl-work-b.no-side { grid-template-columns: 1fr; }
  .exl-work-b > .exl-stepbar, .exl-work-b > .exl-stepper { position: static; flex-direction: row; flex-wrap: wrap; }
  .exl-work-b .exl-step { width: auto; flex: 1 1 150px; }
  .exl-work-side { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* 목록 위 숫자 — 큰 타일 대신 한 줄 요약 (B안) */
.exl-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; margin-bottom: 16px; }
.exl-stat { background: transparent; border: 0; border-radius: 0; padding: 0; display: flex; align-items: baseline; gap: 8px; }
.exl-stat dt { margin: 0; font-size: 13px; }
.exl-stat dd { font-size: 18px; letter-spacing: 0; }
.exl-stat dd small { font-size: 12px; margin-left: 2px; }

/* 오른쪽 기둥이 화면보다 길면 기둥 안에서 따로 스크롤 (2026-09-10 원장님: "링크 공개 버튼이 없어졌다")
   — sticky 기둥이 화면보다 길면 아래 칸(학생용 링크·완료 처리)이 본문이 끝날 때까지 안 보인다. */
.exl-result-actions, .exl-summary, .exl-work-side {
  max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding-right: 2px;
}
/* 학생용 링크 칸은 기둥 맨 위 */
.exl-result-actions .exl-card-share { order: -1; }

/* ── 배지 색 별칭 (2026-09-14) ─────────────────────────────────────────────
   화면 코드가 오래전부터 `is-ok` · `is-warn` 으로 적고 있었는데 CSS 에는
   `.ok` · `.warn` 만 있어서 **배지가 전부 회색으로 나오고 있었다.** 둘 다 받는다. */
.exl-badge.is-ok   { background: var(--exl-ok-weak);   color: var(--exl-ok); }
.exl-badge.is-warn { background: var(--exl-warn-weak); color: var(--exl-warn); }
.exl-badge.is-err  { background: var(--exl-err-weak);  color: var(--exl-err); }
.exl-badge.is-blue { background: var(--exl-blue-weak); color: var(--exl-blue); }

/* ── 과목별 묶음 (2026-09-14 원장님: "바깥에 나열되어져 있으니까 복잡해") ── */
.exl-group { margin-bottom: 14px; }
.exl-group-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; border: 0; background: transparent;
  border-bottom: 1px solid var(--exl-line);
  font-size: 15px; text-align: left; cursor: pointer; color: inherit;
}
.exl-group-head:hover { background: var(--exl-line-2); }
.exl-group.is-closed .exl-group-head { border-bottom: 0; }
.exl-group-caret { width: 14px; color: #8a93a3; font-size: 12px; }
.exl-group-head b { font-weight: 800; }
.exl-group-head .exl-muted { font-size: 13px; font-weight: 500; }

/* ── 검증에서 걸린 문항 목록 (2026-09-14) ─────────────────────────────────
   원장님: "26개 중 21개 이렇게 나오면 나머지는 어떻게 하라는거야?"
   숫자만 적어 두지 않고 **무엇이·왜·그래서 누를 것**을 한 곳에 놓는다. */
.exl-badlist { list-style: none; margin: 12px 0 0; padding: 0; }
.exl-badlist > li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--exl-line); border-radius: 6px;
  margin-bottom: 6px; background: #fff;
}
.exl-badlist > li > div { min-width: 0; flex: 1; }
.exl-badlist-why { font-size: 14px; color: var(--exl-err); }
.exl-badlist-why b { color: inherit; }
.exl-badlist-stem {
  font-size: 13px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 안내 상자 안에서 **문장 속 굵은 글씨**. `.exl-note b` 가 block 이라 줄이 떨어진다 */
.exl-note b.inline { display: inline; margin: 0; }

/* ══ 과목 카테고리 — 색으로 구분하고, 펼쳐도 머리가 붙어 있다 (2026-09-16 원장님 지시) ══
   원장님: "카테고리 분류한 건 좋은데 **저걸 펼치는 순간 과목 구분이 안 되고**,
            고1·고2도 만들게 되면 **학년 구분도** 필요할 텐데. 색상도 사용해서 수정해 줘."

   세 가지로 푼다.
     ① 묶음 머리를 **화면 위에 붙여 둔다**(sticky) — 길게 펼쳐 스크롤해도 과목 이름이 안 사라진다
     ② 과목마다 **색**을 주고, 그 색 막대를 **머리부터 표까지 왼쪽으로 이어** 한 덩어리로 보이게 한다
     ③ **학년 탭**으로 고1·고2·고3 을 갈라 본다 + 줄마다 학년을 적는다

   ⚠ 색은 **가라앉은 여섯 가지**만 쓴다 — 형광색·그라데이션 금지(작업 화면 규칙).
     `lib/mock.js AREAS` 의 `tone` 이름을 그대로 쓴다. */
.exl-cat {
  --cat: #667085;                    /* 과목 색 (아래에서 갈아 끼운다) */
  --cat-weak: #eef1f6;
  margin-bottom: 14px;
  border-left: 4px solid var(--cat);          /* ② 머리부터 표까지 이어지는 색 막대 */
}
.exl-cat[data-tone="coral"]  { --cat: #b4453a; --cat-weak: #fbeeec; }  /* 국어 */
.exl-cat[data-tone="blue"]   { --cat: #2a5db0; --cat-weak: #ecf1fa; }  /* 수학 */
.exl-cat[data-tone="violet"] { --cat: #1f7a6b; --cat-weak: #e9f4f2; }  /* 영어 */
.exl-cat[data-tone="amber"]  { --cat: #a96a1f; --cat-weak: #faf1e6; }  /* 한국사 */
.exl-cat[data-tone="green"]  { --cat: #4b7a2e; --cat-weak: #eef5e9; }  /* 사회탐구 */
.exl-cat[data-tone="cyan"]   { --cat: #2b6e8f; --cat-weak: #e9f2f6; }  /* 과학탐구 */

.exl-cat .exl-group-head {
  position: sticky; top: 0; z-index: 3;        /* ① 펼쳐도 과목 이름이 위에 남는다 */
  background: var(--cat-weak);
  border-bottom: 1px solid var(--exl-line);
}
.exl-cat .exl-group-head:hover { filter: brightness(0.97); }
.exl-cat .exl-group-head b { color: var(--cat); font-size: 15.5px; }
.exl-cat .exl-group-caret { color: var(--cat); }
/* 과목 표시 네모 — 알약이 아니라 각진 색점 (디자인 규칙) */
.exl-cat-dot {
  flex: none; width: 10px; height: 10px; background: var(--cat);
}
.exl-cat .exl-table thead th { background: var(--cat-weak); color: var(--cat); }

/* 학년 — 표 안에서 한눈에 갈리게 (알약 아님, 각진 표시) */
.exl-grade {
  display: inline-block; padding: 2px 7px; font-size: 12.5px; font-weight: 800;
  color: var(--exl-ink-2); background: var(--exl-line-2); border: 1px solid var(--exl-line);
}
.exl-grade.g3 { color: #142a63; background: #e8edf8; border-color: #cfd9ee; }
.exl-grade.g2 { color: #1f7a6b; background: #e9f4f2; border-color: #cfe4e0; }
.exl-grade.g1 { color: #a96a1f; background: #faf1e6; border-color: #ecdcc4; }

/* ③ 학년 탭 — 고1·고2·고3 이 섞이면 이걸로 가른다 */
.exl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.exl-tab {
  padding: 8px 14px; border: 1px solid var(--exl-line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--exl-ink-2); cursor: pointer;
  border-radius: var(--exl-r);
}
.exl-tab:hover { background: var(--exl-line-2); }
.exl-tab.on { background: var(--exl-navy); border-color: var(--exl-navy); color: #fff; }
.exl-tab i { font-style: normal; font-weight: 600; opacity: .75; margin-left: 5px; }

/* ⚠ **`overflow: hidden` 이 sticky 를 죽인다** (2026-09-16 실측 — 머리가 화면 밖으로 밀려났다).
   `.exl-table-wrap` 은 둥근 모서리를 자르려고 `overflow: hidden` 을 쓰는데, 그 순간
   자식의 `position: sticky` 가 그 상자 안에 갇혀 화면 위에 안 붙는다.
   과목 묶음은 **모서리를 각지게** 두고 overflow 를 푼다 — 왼쪽 색 막대가 경계를 대신한다. */
.exl-cat { overflow: visible; border-radius: 0; }
/* 표 머리행도 sticky 라 과목 머리와 겹친다 — 묶음 안에서는 표 머리를 고정하지 않는다 */
.exl-cat .exl-table thead th { position: static; }

/* 4단계 「확인 필요로 잡힌 이유」 — 칸마다 한 줄, 단추는 줄 끝 (2026-10-01) */
.exl-gaps > div > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-top: 1px solid #E6EAF2; font-size: 13.5px; }
.exl-gaps > div > div:first-of-type { border-top: 0; }
.exl-gaps > div > b { display: block; margin-bottom: 4px; }

/* 인스타 10장(코덱스) 결과 격자 (2026-10-02) */
.exl-carousel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.exl-carousel-grid a { position: relative; display: block; border: 1px solid #D5DBE7; background: #fff; }
.exl-carousel-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.exl-carousel-grid span { position: absolute; left: 6px; top: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(20,42,99,.85); padding: 2px 6px; border-radius: 4px; }
.exl-carousel-grid .exl-redraw { position: absolute; right: 6px; bottom: 6px; font: 700 11.5px/1 inherit; font-family: inherit; color: #142A63; background: rgba(255,255,255,.92); border: 1px solid #D5DBE7; padding: 5px 8px; cursor: pointer; }
.exl-carousel-grid .exl-redraw:disabled { color: #8A94A6; cursor: default; }
.exl-carousel-grid a.is-redrawing img { opacity: .45; }
@media (max-width: 900px) { .exl-carousel-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── 오른쪽 기둥이 화면보다 길 때 아래가 잘리던 문제 (2026-10-03 원장님: 변형문제 4단계 「완료 처리」가 안 보임) ──
   기둥은 sticky(top:16px)라 화면 높이보다 길면 아랫부분이 하단 고정 작업바(.exl-actionbar) 밑에 숨은 채 안 올라온다.
   기둥 높이를 화면 안으로 묶고 그 안에서 스크롤되게 한다. 아래 96px 는 작업바 자리. 좁은 화면(sm·xs)은 기둥이 아래로 쌓이므로 풀어 둔다. */
.exl-result-actions, .exl-summary, .exl-work-side {
  max-height: calc(100vh - 16px - 96px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding-bottom: 4px;
}
body[data-ew="sm"] .exl-result-actions, body[data-ew="xs"] .exl-result-actions,
body[data-ew="xs"] .exl-summary { max-height: none; overflow: visible; }
@media print { .exl-result-actions, .exl-summary, .exl-work-side { max-height: none; overflow: visible; } }

/* 분석표 카드 — 템플릿 10개 고르기 (2026-10-07). 견본 그림은 public/card-styles/<key>.jpg (표지 | 내용 카드, 2:1) */
.cs-tpl-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-top: 12px; }
.cs-tpl-head b { font-size: 15px; }
.cs-tpl-head .exl-muted { font-size: 13px; }
.cs-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
.cs-tpl { position: relative; border: 2px solid #E3E8F0; border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; text-align: left; }
.cs-tpl:hover { border-color: #9DB4E8; }
.cs-tpl.on { border-color: #1D50C8; box-shadow: 0 0 0 3px rgba(29, 80, 200, .18); }
.cs-tpl img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #F5F7FB; }
.cs-tpl-t { padding: 8px 10px 10px; }
.cs-tpl-t b { font-size: 14px; }
.cs-tpl-t em { font-style: normal; font-size: 12px; font-weight: 700; color: #158A5F; margin-left: 6px; }
.cs-tpl-t small { display: block; margin-top: 3px; font-size: 13px; color: #5B6577; line-height: 1.4; }
.cs-tpl.on .cs-tpl-t b { color: #1D50C8; }
.cs-tpl.on::after { content: "선택"; position: absolute; left: 8px; top: 8px; background: #1D50C8; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.cs-tpl-zoom { position: absolute; right: 8px; top: 8px; border: 0; background: rgba(20, 22, 31, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; cursor: zoom-in; min-height: 0; }

/* 기출 6단계 템플릿 고르기 (2026-10-07) — 분석표 카드 .cs-tpl 부품을 작게. half = 견본(표지|내용) 중 오른쪽 내용 카드만 */
.ws-tpl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ws-tpl-grid .cs-tpl img { aspect-ratio: 1 / 1; }
.ws-tpl-grid.half .cs-tpl img { object-fit: cover; object-position: right center; }
.ws-tpl-grid .cs-tpl-t small { font-size: 12.5px; }
.ws-tpl-scroll { max-height: 560px; overflow: auto; padding-right: 4px; margin-bottom: 10px; }

/* 템플릿 과목 탭 (2026-10-07) — 분석표 카드·기출 6단계 공통 */
.tpl-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 10px; border-bottom: 1px solid #E3E8F0; padding-bottom: 8px; }
.tpl-tab { border: 1px solid #D5DCE7; background: #fff; color: #3D4354; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 0; }
.tpl-tab i { font-style: normal; font-weight: 600; font-size: 12px; color: #8A93A3; margin-left: 6px; }
.tpl-tab:hover { border-color: #9DB4E8; }
.tpl-tab.on { background: #142A63; border-color: #142A63; color: #fff; }
.tpl-tab.on i { color: rgba(255,255,255,.75); }

/* 정답 칸의 수식 모양 (2026-10-09) — 분수가 든 정답은 한 칸만: 평소엔 수식(.show-math), 누르면 글자 칸으로 고친다 */
.exl-answer-box { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.exl-answer-box textarea { width: 100%; }
.exl-answer-box.show-math textarea { display: none; }
.exl-answer-box:not(.show-math) .exl-answer-math { display: none; }
.exl-answer-math { font-size: 15px; line-height: 1.9; color: var(--exl-ink, #1f2328); padding: 4px 8px; min-height: 32px;
  border: 1px solid #d9dee8; border-radius: 6px; background: #fff; cursor: text; overflow-x: auto; }
.exl-answer-math:hover { border-color: #b9c4d6; }
.exl-answer-math .katex { font-size: 1.05em; }

/* 꼬리말 학원 고르기 (2026-10-10) */
.ws-brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ws-brand-row select { min-width: 220px; min-height: 36px; }
.ws-brand-add { display: inline-flex; gap: 6px; align-items: center; }
.ws-brand-add[hidden] { display: none; }
.ws-brand-add input { min-height: 34px; width: 150px; }

/* 올릴 학원·학원별 글·발행 기록 (2026-10-10) */
.ws-blog-brand { border: 1px solid var(--exl-line, #E3E7EF); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; background: #FAFBFD; }
.ws-brandpost { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ws-brandpost .exl-field { width: 100%; }
.ws-brandpost textarea { width: 100%; min-height: 220px; font: inherit; font-size: 14px; line-height: 1.6; padding: 8px 10px; }
.ws-publog { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; align-items: center; }
.ws-publog b { font-size: 13px; color: var(--exl-ink, #1F2328); }
.ws-publog .ok { color: #158A5F; }
.ws-publog .bad { color: #D92D20; }
#carousel-card .ws-brand-row { margin: 12px 0 10px; }

.ws-brand-logo { height: 32px; width: auto; max-width: 120px; object-fit: contain; border: 1px solid var(--exl-line, #E3E7EF); border-radius: 4px; padding: 2px; background: #fff; }

/* 문항 해설 영상 카드 — 모의고사 분석 4단계 오른쪽 기둥 (2026-10-11) */
#mk-video-card h3 { margin-bottom: 12px; }
.exl-video { display: block; width: 100%; max-height: 460px; aspect-ratio: 9 / 16; background: #0b0f0d; border-radius: 8px; object-fit: contain; }
#mk-video-card a.exl-btn { text-decoration: none; }

/* HTML 인스타 카드 10장(#card-series)은 화면에서 숨긴다 (2026-10-14 원장님: "HTML 디자인은 일단 안 보이도록, 하단 개별 이미지 다운받는 곳도 안 보이게").
   display:none 으로 하면 표지(1장)를 PNG 로 굽는 cardBlob(#card-0) 이 크기 0 이 되어 블로그 표지가 깨진다 — 화면 밖으로만 밀어 둔다. */
.exl-ws #card-series { position: absolute; left: -99999px; top: 0; width: 1200px; pointer-events: none; }

/* 세로 포스터 (2026-10-14) — 2:3 그림 칸, 문구 칸은 두 줄 짜리를 넓게 */
.cs-po-grid .cs-po-field.wide { grid-column: 1 / -1; }
.cs-po-grid textarea { font-size: 14px; line-height: 1.5; }
.cs-po-images { grid-template-columns: repeat(4, 1fr); }
.cs-po-images img { object-fit: cover; }
.cs-po-grid select { font-size: 14px; padding: 8px 10px; border: 1px solid #D5DBE7; border-radius: 8px; background: #fff; }
.cs-po-images .cs-po-empty { display: flex; align-items: center; justify-content: center; background: #1B1824; color: #D9DCE8; font-size: 14px; }
@media (max-width: 760px) { .cs-po-images { grid-template-columns: repeat(2, 1fr); } }

/* 홍보물 제작 3단계 (2026-10-14 밤) — 단계 탭·결과물 타일·내보내기 목록 */
.cs-steps { display: flex; gap: 8px; margin: 14px 0 12px; }
.cs-step { flex: 1; padding: 12px 14px; border: 1px solid #D5DBE7; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 700; color: #4B5468; cursor: pointer; text-align: left; }
.cs-step.on { border-color: #1E4FD8; background: #1E4FD8; color: #fff; }
.cs-step:disabled { opacity: .5; cursor: not-allowed; }
.cs-busy { border-left: 4px solid #1E4FD8; }
.cs-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
.cs-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 10px; border: 1px solid #D5DBE7; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.cs-tile b { font-size: 14.5px; color: #1B2235; }
.cs-tile small { font-size: 12px; color: #6B7386; }
.cs-tile em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #1E7F4F; }
.cs-tile.on { border-color: #1E4FD8; box-shadow: 0 0 0 2px rgba(30,79,216,.18); }
.cs-out-list { display: flex; flex-direction: column; gap: 8px; }
.cs-out-item { display: grid; grid-template-columns: 24px 220px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #E3E7F0; border-radius: 8px; cursor: pointer; }
.cs-out-thumbs { display: flex; gap: 4px; align-items: center; }
.cs-out-thumbs img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #E3E7F0; }
.cs-out-thumbs.tall img { width: 44px; height: 62px; }
.cs-out-thumbs span { font-size: 12px; color: #6B7386; margin-left: 4px; }
.cs-out-texts { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }   /* 한 줄에 하나, 넓게 (2026-10-14 원장님: 최종 확인 칸이 너무 작다) */
.cs-out-text { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 8px; align-items: center; }
.cs-out-text textarea { grid-column: 1 / -1; width: 100%; max-width: 980px; resize: vertical; }
.cs-out-text > b { font-size: 15px; }
@media (max-width: 1100px) { .cs-tiles { grid-template-columns: repeat(3, 1fr); } }

/* 내보내기 — 글에 넣을 그림 체크 (2026-10-14) */
.cs-pub-inc { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 10px; border: 1px solid #E3E7F0; border-radius: 8px; margin-bottom: 10px; font-size: 13.5px; }
.cs-pub-inc b { margin-right: 4px; }
.cs-pub-inc label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* 인스타 카드 그리는 중 격자 (2026-10-14) */
.cs-draw-tile { position: relative; aspect-ratio: 1 / 1; border: 1px solid #D5DBE7; background: #F2F4F8; overflow: hidden; }
.cs-draw-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-draw-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 13px; color: #6B7386; }
.cs-draw-tile.drawing { background: #E8EEFB; border-color: #1D50C8; }
.cs-draw-tile.drawing .cs-draw-in { color: #1D50C8; animation: csPulse 1.4s ease-in-out infinite; }
.cs-draw-tile.drawn { background: #E9F6EF; border-color: #9FD3B8; }
.cs-draw-tile.drawn .cs-draw-in { color: #158A5F; }
.cs-draw-tile.fail .cs-draw-in { color: #D92D20; }
.cs-draw-tile > span { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.92); color: #1B2235; font-size: 12px; font-weight: 700; }
.cs-po-images a.is-redrawing .cs-po-empty { animation: csPulse 1.4s ease-in-out infinite; }
@keyframes csPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* 목록 올림 칩 — 자동 발행 실패 (2026-10-14) */
.exl-chip.cs-chip-fail { border-color: #D92D20; color: #D92D20; }

/* 홍보물 제작 목록 — 칸 이름 눌러 정렬 · 제목 고치기 (2026-10-15) */
.exl-table th.cs-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.exl-table th.cs-sort:hover { color: #1D50C8; }
.exl-table th.cs-sort.on { color: #142A63; }
.cs-sort-mark { margin-left: 4px; font-size: 11px; color: #98A2B3; }
.exl-table th.cs-sort.on .cs-sort-mark { color: #1D50C8; }
.cs-title-cell { display: flex; align-items: center; gap: 6px; }
.cs-title-edit { border: 1px solid transparent; background: none; color: #98A2B3; font-size: 14px; line-height: 1; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.exl-row:hover .cs-title-edit { color: #1D50C8; border-color: #D0D5DD; }
.cs-title-edit:hover { background: #EEF3FF; }
.cs-title-input { flex: 1; min-width: 220px; font: inherit; font-size: 14px; font-weight: 700; padding: 6px 8px; border: 1px solid #1D50C8; border-radius: 6px; }

/* 학교 기출분석 목록 — 칸 눌러 정렬 · 칸 끝 끌어 너비 조절 (2026-10-16) */
.ws-list-table thead th { position: relative; }
.ws-list-table th.ws-sortable { cursor: pointer; user-select: none; }
.ws-list-table th.ws-sortable:hover { color: #1D50C8; }
.ws-list-table th.on { color: #142A63; }
.ws-sort-mark { margin-left: 4px; font-size: 11px; color: #1D50C8; }
.ws-col-grip { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 2; }
.ws-col-grip::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 4px; width: 1px; background: #D0D5DD; }
.ws-col-grip:hover::after { background: #1D50C8; width: 2px; }
body.ws-col-resizing, body.ws-col-resizing * { cursor: col-resize !important; user-select: none !important; }
.ws-list-table.ws-fixed { table-layout: fixed; }
.ws-list-table.ws-fixed th, .ws-list-table.ws-fixed td { overflow: hidden; text-overflow: ellipsis; }
.ws-list-table.ws-fixed td .exl-row-title, .ws-list-table.ws-fixed td .exl-row-sub { overflow: hidden; text-overflow: ellipsis; }
.ws-posted { display: flex; flex-direction: column; gap: 4px; width: 350px; white-space: normal; }
.ws-posted .exl-chip { white-space: nowrap; flex: 0 0 auto; }
.ws-posted-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ws-posted-row > .exl-muted { font-size: 12px; margin-right: 2px; }
.ws-list-table.ws-fixed td:has(.ws-posted) { overflow: visible; }
/* 기본(너비를 안 끈) 표에서 글자 칸이 눌리지 않게 최소 너비 — 끌어서 정한 뒤(ws-fixed)에는 과장님이 정한 대로 */
.ws-list-table:not(.ws-fixed) th:nth-child(1) { min-width: 130px; }
.ws-list-table:not(.ws-fixed) th:nth-child(2) { min-width: 110px; }
.ws-list-table:not(.ws-fixed) th:nth-child(3) { min-width: 160px; }
/* 화면 아래에 늘 떠 있는 가로 스크롤바 (2026-10-16) */
.ws-hscroll { position: sticky; bottom: 0; z-index: 5; overflow-x: auto; overflow-y: hidden; height: 16px; margin-top: -1px; background: rgba(245, 247, 251, 0.95); border-top: 1px solid #E4E7EC; }
.ws-hscroll > div { height: 1px; }

/* 홍보물 제작 — 직접 올린 그림 (2026-10-21) */
.cs-own { border: 1px solid #E3E7F0; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.cs-own-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cs-own-head .exl-muted { flex: 1; min-width: 220px; font-size: 13px; }
.cs-own-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cs-own-list figure { margin: 0; width: 120px; position: relative; }
.cs-own-list img { width: 120px; height: 150px; object-fit: cover; border: 1px solid #E3E7F0; cursor: zoom-in; display: block; }
.cs-own-list figcaption { font-size: 12px; color: #4A5368; margin-top: 4px; word-break: break-all; }
.cs-own-list button { position: absolute; top: 4px; right: 4px; min-height: 28px; padding: 0 8px; background: #fff; }
