/* ===========================================================
   챌린지 상세 — 흰 배경 · 선/각진 박스로 구분 · 그림자 없음
   토큰: --primary #2563eb
   =========================================================== */
.cd {
  background: #fff;
  min-height: 100vh;
  padding: 26px 20px 80px;
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Pretendard, Roboto, "Apple SD Gothic Neo", sans-serif;
}
.cd-wrap { max-width: 1060px; margin: 0 auto; }

/* hidden 속성은 항상 우선 (display 규칙이 덮어쓰지 않도록) */
[hidden] { display: none !important; }

.cd-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #57606a; font-size: 13.5px; font-weight: 600; text-decoration: none;
  margin-bottom: 18px; transition: color .15s;
}
.cd-back:hover { color: var(--primary); }

/* ── Hero ─────────────────────────────────────────────────── */
.cd-hero { border-bottom: 2px solid #1f2328; padding-bottom: 22px; margin-bottom: 22px; }
.cd-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 13px; }
.cd-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 11px; word-break: keep-all; }
.cd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: #57606a; }
.cd-meta-i b { color: #1f2328; font-weight: 700; }
.cd-dot { color: #c4c9cf; }
.cd-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px;
  color: #57606a; background: #f4f5f7; border: 1px solid #e0e3e7; padding: 2px 8px;
}

/* 칩 — 모두 각진 사각 */
.cd-cat, .cd-tier, .cd-mode, .cd-pill {
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 0; line-height: 1.3;
}
.cd-cat { background: #eef2ff; color: #4338ca; }
.cd-cat--web { background: #e0f2fe; color: #0369a1; }
.cd-cat--pwn { background: #fee2e2; color: #b91c1c; }
.cd-cat--reversing { background: #f3e8ff; color: #7e22ce; }
.cd-cat--crypto { background: #dcfce7; color: #15803d; }
.cd-cat--forensics { background: #fef3c7; color: #b45309; }
.cd-cat--misc { background: #e5e7eb; color: #374151; }

.cd-tier { display: inline-flex; align-items: center; gap: 6px; background: #f1f3f5; color: #374151; }
.cd-tier i { width: 7px; height: 7px; background: currentColor; }
.cd-tier--intro { color: #0e7490; background: #cffafe; }
.cd-tier--easy { color: #15803d; background: #dcfce7; }
.cd-tier--normal { color: #1d4ed8; background: #dbeafe; }
.cd-tier--hard { color: #c2410c; background: #ffedd5; }
.cd-tier--insane { color: #b91c1c; background: #fee2e2; }

.cd-mode { background: #f1f3f5; color: #374151; border: 1px solid #e5e7eb; }
.cd-pill--solved { background: #15803d; color: #fff; }
.cd-pill--mine { background: #4338ca; color: #fff; }
.cd-pill--draft { background: #e5e7eb; color: #57606a; }
.cd-pill--pending { background: #fde68a; color: #92400e; }
.cd-pill--rejected { background: #fecaca; color: #991b1b; }

/* 핵심 지표 타일 — 각진 셀, 좌측 컬러 바 */
.cd-tiles { display: flex; flex-wrap: wrap; gap: 0; margin-top: 20px; border: 1px solid #e5e7eb; }
.cd-tile {
  flex: 1; min-width: 120px; padding: 14px 18px; position: relative;
  border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 3px;
}
.cd-tile:last-child { border-right: none; }
.cd-tile-v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cd-tile-v em { font-style: normal; font-size: 13px; font-weight: 700; color: #8b949e; margin-left: 3px; }
.cd-tile-k { font-size: 12px; color: #8b949e; font-weight: 600; }
.cd-tile--pt .cd-tile-v { color: var(--primary); }
.cd-tile--pt { background: #f7faff; }
.cd-tile-mine { color: #15803d; font-weight: 700; }
.cd-tile-down { color: #b45309; font-weight: 600; cursor: help; }

/* ── Layout ───────────────────────────────────────────────── */
.cd-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.cd-col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cd-col-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }

.cd-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 0; padding: 20px; }
.cd-h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #f0f1f3; }
.cd-num { font-size: 12px; font-weight: 700; color: #57606a; background: #f1f3f5; padding: 1px 8px; }

/* ── VM 실행 ───────────────────────────────────────────────── */
.cd-run { border-left: 3px solid var(--primary); }
.cd-run-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cd-run-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cd-run-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd2d9; flex-shrink: 0; }
.cd-run.is-live .cd-run-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.cd-run-title { font-size: 15px; font-weight: 700; }
.cd-run-sub { font-size: 12.5px; color: #57606a; margin-top: 2px; }
.cd-run-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cd-run-out { margin-top: 16px; border-top: 1px solid #f0f1f3; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cd-run-line { display: flex; align-items: stretch; border: 1px solid #e5e7eb; }
.cd-run-key {
  flex-shrink: 0; width: 48px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: #8b949e; background: #f7f8fa; border-right: 1px solid #e5e7eb; text-transform: uppercase;
}
.cd-run-val {
  flex: 1; padding: 9px 11px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px; color: #1f2328; overflow-x: auto; white-space: nowrap; background: #fff;
}
a.cd-run-link { color: var(--primary); text-decoration: none; cursor: pointer; }
a.cd-run-link:hover { text-decoration: underline; }
.cd-copy {
  flex-shrink: 0; padding: 0 13px; border: none; border-left: 1px solid #e5e7eb; background: #f7f8fa;
  font-size: 12px; font-weight: 700; color: #374151; cursor: pointer; transition: background .15s, color .15s;
}
.cd-copy:hover { background: #eef0f3; color: var(--primary); }
.cd-copy.is-done { color: #16a34a; }

/* ── 설명 ─────────────────────────────────────────────────── */
.cd-desc-body { font-size: 15px; line-height: 1.75; color: #24292f; overflow-wrap: anywhere; word-break: break-word; }
.cd-desc-body * { max-width: 100%; }
.cd-desc-body :first-child { margin-top: 0; }
.cd-desc-body :last-child { margin-bottom: 0; }
.cd-desc-body h1, .cd-desc-body h2, .cd-desc-body h3 { font-weight: 700; line-height: 1.3; margin: 1.4em 0 .6em; }
.cd-desc-body h1 { font-size: 21px; } .cd-desc-body h2 { font-size: 18px; } .cd-desc-body h3 { font-size: 16px; }
.cd-desc-body p { margin: 0 0 1em; }
.cd-desc-body a { color: var(--primary); text-decoration: underline; }
.cd-desc-body ul, .cd-desc-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.cd-desc-body li { margin: .25em 0; }
.cd-desc-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: #f1f3f5; padding: .15em .4em; }
.cd-desc-body pre { background: #0d1117; color: #e6edf3; padding: 14px 16px; overflow: auto; font-size: 13px; line-height: 1.6; margin: 0 0 1em; }
.cd-desc-body pre code { background: none; padding: 0; color: inherit; }
.cd-desc-body blockquote { border-left: 3px solid #d0d7de; padding: 2px 0 2px 14px; color: #57606a; margin: 0 0 1em; }
.cd-desc-body img { max-width: 100%; }
.cd-empty { color: #8b949e; font-size: 14px; text-align: center; padding: 20px 0; margin: 0; }

/* ── 첨부 파일 ─────────────────────────────────────────────── */
.cd-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5e7eb; background: #fafbfc; }
.cd-file-ico { font-size: 16px; }
.cd-file-name { flex: 1; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.cd-file-dl {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  color: var(--primary); text-decoration: none; padding: 5px 10px; border: 1px solid #cdddff; background: #fff; transition: background .15s;
}
.cd-file-dl:hover { background: #eff4ff; }

/* ── 버튼 (각진) ──────────────────────────────────────────── */
.cd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: 0;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1;
  transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.cd-btn--primary { background: var(--primary); color: #fff; }
.cd-btn--primary:hover { background: #1d4ed8; }
.cd-btn--soft { background: #f1f3f5; color: #374151; border-color: #e5e7eb; }
.cd-btn--soft:hover { background: #e9ecef; }
.cd-btn--danger { background: #fff; color: #dc2626; border-color: #f3b4b4; }
.cd-btn--danger:hover { background: #fef2f2; }
.cd-btn--ghost { background: #fff; color: var(--primary); border-color: #cdddff; }
.cd-btn--ghost:hover { background: #eff4ff; }
.cd-open svg { display: block; }
.cd-run-remain {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: #15803d;
  background: #ecfdf3; border: 1px solid #bbf7d0; padding: 6px 10px; font-variant-numeric: tabular-nums;
}
.cd-btn--block { width: 100%; }
.cd-btn:disabled { opacity: .5; cursor: not-allowed; }
.cd-btn.is-loading { position: relative; color: transparent !important; }
.cd-btn.is-loading::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: cd-spin .7s linear infinite;
}
.cd-btn--danger.is-loading::after { border-color: rgba(220,38,38,.35); border-top-color: #dc2626; }
@keyframes cd-spin { to { transform: rotate(360deg); } }

/* ── 사이드: 공통 헤더 ────────────────────────────────────── */
.cd-author-head, .cd-tags-head, .cd-flag-head, .cd-solvers-head {
  font-size: 12px; font-weight: 700; color: #8b949e; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px;
}

/* ── 출제자 ───────────────────────────────────────────────── */
.cd-author-body { display: flex; align-items: center; gap: 12px; }
.cd-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid #e5e7eb; background: #f1f3f5; }
.cd-avatar--ini { display: grid; place-items: center; font-size: 19px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); border: none; }
.cd-author-info { min-width: 0; }
.cd-author-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 2px; }
.cd-author-link { color: inherit; text-decoration: none; }
.cd-author-link:hover { text-decoration: underline; color: var(--primary); }
.cd-author-name .role-badge-wrap { display: inline-flex; }
.cd-author-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12.5px; color: #57606a; margin-top: 3px; }
.cd-author-stats b { color: #1f2328; }
.cd-author .cd-btn--soft { margin-top: 14px; }

/* ── 플래그 제출 ───────────────────────────────────────────── */
.cd-flag.is-solved { border-color: #86efac; }
.cd-flag-done { font-size: 12.5px; color: #15803d; background: #dcfce7; padding: 8px 11px; margin-bottom: 10px; }
.cd-flag-field {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid #e0e3e7;
  padding: 0 12px; background: #fff; transition: border-color .15s; margin-bottom: 10px;
}
.cd-flag-field:focus-within { border-color: var(--primary); }
.cd-flag-prefix { color: #adb5bd; font-size: 15px; }
.cd-flag-input { flex: 1; border: none; outline: none; background: none; padding: 11px 0; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.cd-flag-msg { font-size: 13px; margin-top: 10px; min-height: 18px; font-weight: 600; }
.cd-flag-msg:empty { margin-top: 0; min-height: 0; }
.cd-flag-msg.is-ok { color: #15803d; }
.cd-flag-msg.is-err { color: #dc2626; }
.cd-flag-msg.is-warn { color: #b45309; }
.cd-lock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8b949e; }
.cd-lock-reasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; color: #8b949e; }
.cd-lock-reasons li::before { content: "· "; }
.cd-login-cta { text-decoration: none; transition: border-color .15s, color .15s; }
a.cd-login-cta:hover { color: var(--primary); border-color: var(--primary); }

/* ── 태그 (스포일러) ───────────────────────────────────────── */
.cd-tags { position: relative; }
.cd-tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; transition: filter .2s; min-height: 26px; }
.cd-tags-wrap.is-blur { filter: blur(7px); pointer-events: none; user-select: none; }
.cd-tag { font-size: 12.5px; font-weight: 600; color: #4338ca; background: #eef2ff; padding: 4px 11px; }
.cd-tags-reveal {
  position: absolute; inset: 30px 0 0; margin: auto; height: fit-content; width: fit-content;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12.5px; color: #57606a; background: rgba(255,255,255,.94); border: 1px solid #e5e7eb;
  padding: 7px 14px; transition: border-color .15s, color .15s;
}
.cd-tags-reveal:hover { border-color: var(--primary); color: var(--primary); }
.cd-tags.is-revealed .cd-tags-reveal { display: none; }

/* ── 푼 사람 ───────────────────────────────────────────────── */
.cd-solvers-head { display: flex; align-items: center; justify-content: space-between; }
.cd-solvers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 40px; transition: opacity .15s; }
.cd-solver { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f4f5f7; }
.cd-solver:last-child { border-bottom: none; }
.cd-solver-rank { width: 22px; flex-shrink: 0; text-align: center; font-size: 12.5px; font-weight: 700; color: #8b949e; }
.cd-solver-rank.is-first { font-size: 15px; }
.cd-solver-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid #e5e7eb; }
.cd-solver-av--ini { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #64748b, #475569); border: none; }
.cd-solver-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-fb { flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: #ef4444; padding: 2px 6px; border-radius: 4px; }
/* 최초 풀이 경과시간 — FIRST BLOOD 배지 때문에 닉네임이 짤리지 않도록 한 줄 내려서 캡션으로 */
.cd-fb-after { flex-basis: 100%; margin: 1px 0 0 32px; font-size: 11px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.cd-fb-after::before { content: "↳"; margin-right: 4px; color: #cbd5e1; }
.cd-solvers-empty { font-size: 12.5px; color: #8b949e; line-height: 1.6; padding: 6px 0; }
.cd-solvers-list.is-loading { opacity: .5; }
.cd-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f1f3; }
.cd-pager-btn { width: 30px; height: 30px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-size: 14px; color: #374151; transition: background .15s; }
.cd-pager-btn:hover:not(:disabled) { background: #f1f3f5; }
.cd-pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.cd-pager-now { font-size: 12.5px; color: #57606a; font-weight: 600; min-width: 56px; text-align: center; }

/* ── 스포일러 모달 (그림자 없이 테두리로) ─────────────────── */
.cd-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.cd-modal[hidden] { display: none; }
.cd-modal-back { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.cd-modal-box {
  position: relative; background: #fff; border: 2px solid #1f2328; padding: 28px 26px; max-width: 380px; width: 100%;
  text-align: center; animation: cd-pop .16s ease;
}
@keyframes cd-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cd-modal-ico { font-size: 34px; margin-bottom: 8px; }
.cd-modal-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.cd-modal-text { font-size: 13.5px; color: #57606a; line-height: 1.6; margin: 0 0 20px; }
.cd-modal-actions { display: flex; gap: 10px; }
.cd-modal-actions .cd-btn { flex: 1; padding: 11px; }

/* ── 풀이 / 질문 작성 섹션 ─────────────────────────────────── */
.cd-h2 .cd-qa-all { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
.cd-h2 .cd-qa-all:hover { text-decoration: underline; }
.cd-lock--lg { padding: 16px; border: 1px dashed #e0e3e7; background: #fafbfc; justify-content: center; font-size: 13.5px; }
.cd-lock-sub { color: #adb5bd; }

.cd-post-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cd-post-title, .cd-post-body {
  width: 100%; border: 1px solid #e0e3e7; background: #fff; padding: 10px 12px; font-size: 14px;
  font-family: inherit; color: #1f2328; resize: vertical; transition: border-color .15s;
}
.cd-post-title:focus, .cd-post-body:focus { outline: none; border-color: var(--primary); }
.cd-post-foot { display: flex; align-items: center; gap: 12px; }
.cd-post-msg { flex: 1; font-size: 12.5px; font-weight: 600; }
.cd-post-msg.is-ok { color: #15803d; }
.cd-post-msg.is-err { color: #dc2626; }
.cd-post-empty { font-size: 13px; color: #8b949e; text-align: center; padding: 14px 0; margin: 0; }

.cd-av-sm { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid #e5e7eb; }
.cd-av-sm--ini { display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); border: none; }

/* 풀이 목록 (제목+작성자 행 → 클릭 시 모달) */
.cd-wu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cd-wu-item { display: flex; align-items: center; gap: 4px; border-top: 1px solid #f0f1f3; }
.cd-wu-item:first-child { border-top: none; }
.cd-wu-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 0; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cd-wu-open:hover .cd-wu-title { color: var(--primary); }
.cd-wu-rows { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-wu-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-wu-by { font-size: 12px; color: #8b949e; display: flex; align-items: center; gap: 4px; }
.cd-wu-write { margin-bottom: 16px; }
/* 공식 풀이: '공식' 파란 볼드 강조 + 항목 살짝 강조(최상단 정렬은 서버에서) */
.cd-wu-official { color: var(--primary); font-weight: 800; }
.cd-wu-item--official .cd-wu-open { background: linear-gradient(90deg, rgba(37,99,235,0.05), transparent 60%); }
.cd-wu-item--official { border-left: 3px solid var(--primary); padding-left: 8px; }
/* ⋮ 메뉴 */
.cd-wu-menu { position: relative; flex-shrink: 0; }
.cd-wu-kebab { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: #8b949e; border-radius: 6px; }
.cd-wu-kebab:hover { background: #f1f3f5; color: #1f2328; }
.cd-wu-pop { position: absolute; right: 0; top: 30px; z-index: 20; background: #fff; border: 1px solid #e5e7eb; min-width: 92px; }
.cd-wu-pop[hidden] { display: none; }
.cd-wu-del { display: block; width: 100%; text-align: left; padding: 9px 13px; border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: #dc2626; }
.cd-wu-del:hover { background: #fef2f2; }
/* 풀이 보기 모달 — 크기 고정(내용에 따라 변하지 않고 스크롤) · 모서리 5px */
.cd-wu-modal-box { position: relative; margin: auto; width: min(820px, 94vw); height: min(82vh, 820px); background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 18px 50px rgba(15,23,42,.22); display: flex; flex-direction: column; overflow: hidden; }
.cd-wu-modal-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; }
.cd-wu-modal-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cd-wu-modal-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden; border: 1px solid #e5e7eb; }
.cd-wu-modal-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-wu-modal-av--ini { display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); border: none; }
.cd-wu-modal-title { font-size: 16px; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-wu-modal-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cd-wu-modal-date { font-size: 12.5px; color: #8b949e; white-space: nowrap; }
.cd-wu-modal-x { flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; font-size: 14px; color: #57606a; border-radius: 5px; }
.cd-wu-modal-x:hover { background: #fef2f2; color: #dc2626; border-color: #f3b4b4; }
.cd-wu-modal-body { flex: 1; min-height: 0; padding: 18px; overflow: auto; font-size: 14px; }
/* 풀이 본문 내 콜아웃/이미지 (Quill 라이브러리 출력) */
.cd-desc-body .callout { border-left: 4px solid #f59e0b; background: #fffbeb; padding: 12px 14px; border-radius: 5px; margin: 10px 0; line-height: 1.6; }
.cd-desc-body .callout-danger { border-left-color: #ef4444; background: #fef2f2; }
.cd-desc-body img { border-radius: 5px; }

/* 닉네임 옆 역할 뱃지 */
.cd-rb { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }

/* 질문 목록 */
.cd-qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cd-qa-item { border-top: 1px solid #f0f1f3; }
.cd-qa-link { display: flex; align-items: center; gap: 10px; padding: 11px 0; text-decoration: none; color: inherit; }
.cd-qa-link:hover .cd-qa-title { color: var(--primary); }
.cd-qa-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-qa-meta { flex-shrink: 0; font-size: 12px; color: #8b949e; }

/* ── 첨부 파일 (사이드바: 리스트 없이 동작 버튼만) ─────────── */
.cd-att-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: #8b949e; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.cd-att-hint { font-size: 12.5px; color: #57606a; line-height: 1.6; margin: 0 0 14px; }
.cd-att-hint b { color: #1f2328; }
.cd-att-actions { display: flex; flex-direction: column; gap: 8px; }
.cd-btn svg { display: block; flex-shrink: 0; }


/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cd-grid { grid-template-columns: 1fr; }
  .cd-col-side { position: static; }
  .cd-title { font-size: 24px; }
  .cd-tiles { flex-wrap: wrap; }
  .cd-tile { min-width: 33%; border-bottom: 1px solid #e5e7eb; }
  .cd-run-top { flex-direction: column; align-items: stretch; }
  .cd-run-actions { justify-content: stretch; }
  .cd-run-actions .cd-btn { flex: 1; }
}
