/*
 * 강좌 탭형 페이지 공통 스타일 (Web/강좌/<번호_강좌명>/ 강의 페이지 공용)
 * 사용법: <link rel="stylesheet" href="../../assets/course-tabs.css">
 *         <link rel="stylesheet" href="../../assets/course-design-system.css">
 *         <body data-course-theme="fabmetric" data-course-layout="tabs">
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --primary: #2D6A4F;
  --primary-light: #52B788;
  --primary-pale: #D8F3DC;
  --accent: #F77F00;
  --accent-light: #FFC300;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface2: #F5F5F0;
  --border: #E8E8E0;
  --text: #1A1A18;
  --text-muted: #6B6B65;
  --text-light: #9B9B94;
  --code-bg: #1E2027;
  --code-text: #ABB2BF;
  --code-keyword: #C678DD;
  --code-string: #98C379;
  --code-comment: #5C6370;
  --code-number: #D19A66;
  --code-func: #61AFEF;
  --r1: #E74C3C;
  --r2: #3498DB;
  --r3: #27AE60;
  --badge-1: #E8F5E9;
  --badge-1t: #1B5E20;
  --badge-2: #E3F2FD;
  --badge-2t: #0D47A1;
  --badge-3: #FFF3E0;
  --badge-3t: #E65100;
  --shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Header ─────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
  color: white;
  padding: 60px 40px 50px;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.header-inner { max-width: 900px; margin: 0 auto; position: relative; }
.header-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.site-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.site-header h1 span { color: #95D5B2; }
.site-header p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.header-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.7);
}
.meta-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ── Navigation ──────────────────────────── */
.nav-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: 0;
}
.nav-tab {
  padding: 16px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--primary); background: var(--surface2); }
.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-pale);
}
.nav-tab .session-num {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-right: 6px;
}
.nav-tab.active .session-num {
  background: var(--primary);
  color: white;
}

/* ── Main Layout ──────────────────────────── */
.main { max-width: 900px; margin: 0 auto; padding: 48px 20px; }

.session-pane { display: none; }
.session-pane.active { display: block; }

/* ── Section Header ──────────────────────── */
.session-header {
  display: flex; align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.session-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.session-icon.green { background: var(--primary-pale); }
.session-icon.blue  { background: #E3F2FD; }
.session-icon.orange{ background: #FFF3E0; }
.session-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.session-header p  { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ── Objective Box ───────────────────────── */
.objectives {
  background: var(--primary-pale);
  border: 1px solid #B7E4C7;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.objectives h3 {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 14px;
}
.obj-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.obj-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #1B5E20;
}
.obj-check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px;
}

/* ── Content Cards ───────────────────────── */
.content-section { margin-bottom: 40px; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.section-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.section-title { font-size: 20px; font-weight: 700; }
.section-desc { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ── Concept Box ─────────────────────────── */
.concept-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.concept-box.highlight {
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.concept-box h4 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.concept-box p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── Analogy Box ─────────────────────────── */
.analogy {
  background: #FFFBF0;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.analogy-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.analogy p { color: #6D4C41; line-height: 1.6; margin: 0; }
.analogy strong { color: #BF360C; }

/* ── Code Block ──────────────────────────── */
.code-wrap {
  background: var(--code-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-lg);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: #282C34;
  border-bottom: 1px solid #3E4451;
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28C840; }
.code-title {
  font-size: 12px; color: #5C6370;
  font-family: 'JetBrains Mono', monospace;
}
.copy-btn {
  background: #3E4451; border: none;
  color: #ABB2BF; font-size: 12px;
  padding: 4px 12px; border-radius: 6px;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.15s;
}
.copy-btn:hover { background: #4B5263; color: white; }
.copy-btn.copied { background: #3A553A; color: #98C379; }
pre {
  padding: 20px 22px;
  overflow-x: auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--code-text);
  tab-size: 4;
}
.kw  { color: var(--code-keyword); }
.str { color: var(--code-string); }
.cmt { color: var(--code-comment); font-style: italic; }
.num { color: var(--code-number); }
.fn  { color: var(--code-func); }
.op  { color: #56B6C2; }

/* ── Output Block ────────────────────────── */
.output-block {
  background: #F8F9FA;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  white-space: pre;
  overflow-x: auto;
}
.output-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ── API Reference Table ─────────────────── */
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.api-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.api-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.api-table tr:last-child td { border-bottom: none; }
.api-table tr:nth-child(even) td { background: var(--surface2); }
.api-table code {
  background: #F0F0EA;
  color: #2D6A4F;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Quiz Box ────────────────────────────── */
.quiz-section {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  color: white;
}
.quiz-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.quiz-title .icon {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
}
.quiz-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
  font-size: 15px;
  display: flex; gap: 12px;
}
.quiz-item:last-child { margin-bottom: 0; }
.quiz-num {
  font-weight: 700; color: #95D5B2;
  min-width: 24px;
}
.quiz-item p { color: rgba(255,255,255,0.9); line-height: 1.6; }
.quiz-hint {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: 6px;
}

/* ── Tip Box ─────────────────────────────── */
.tip-box {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.tip-box.info    { background: #E3F2FD; border: 1px solid #90CAF9; }
.tip-box.warning { background: #FFF3E0; border: 1px solid #FFCC02; }
.tip-box.success { background: var(--primary-pale); border: 1px solid #95D5B2; }
.tip-icon { font-size: 18px; flex-shrink: 0; }
.tip-box p { font-size: 14px; line-height: 1.65; margin: 0; }
.tip-box.info p    { color: #0D47A1; }
.tip-box.warning p { color: #E65100; }
.tip-box.success p { color: #1B5E20; }

/* ── Summary Card ────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
}
.summary-card .fn-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}
.summary-card .fn-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.5;
}

/* ── Graph type cards ────────────────────── */
.graph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.graph-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.graph-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.graph-icon { font-size: 32px; margin-bottom: 10px; }
.graph-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.graph-use  { font-size: 12px; color: var(--text-muted); }

/* ── Progress Bar ────────────────────────── */
.progress-wrap { margin: 40px 0 24px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 60px;
}

/* ── Responsive ──────────────────────────── */
/* ── Notebook link / Practice toggles ─── */
.notebook-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--primary);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.notebook-link:hover { background: var(--primary-pale); }
.practice-toggle {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.practice-toggle > summary {
  padding: 12px 18px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.practice-toggle[open] > summary { border-bottom: 1px solid var(--border); }
.practice-toggle > .toggle-body { padding: 4px 18px 16px; }
.practice-toggle > .toggle-body > p { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.check-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
.check-list li::before { content: '☐'; flex-shrink: 0; color: var(--primary); }
.step-list { margin: 12px 0 0 20px; font-size: 14px; line-height: 1.8; }
[data-course-layout="tabs"] .nav-inner { overflow-x: auto; }
.prompt-block pre { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  body[data-course-layout="tabs"] .nav-inner .nav-tab { flex: 0 0 auto; min-width: max-content; }
  .site-header { padding: 40px 20px 36px; }
  .main { padding: 32px 16px; }
  .nav-tab { padding: 14px 16px; font-size: 13px; }
  .session-header { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════
   02·03 강좌에서 쓰는 추가 구성요소 (01 강좌 스타일에 맞춤)
   ══════════════════════════════════════════════════════════ */
:root {
  /* 기존 강의 본문 인라인 스타일이 참조하는 색 이름 */
  --blue: #0969da;
  --green: #1a7f37;
  --orange: #bc4c00;
  --red: #cf222e;
  --purple: #8250df;
  --yellow: #9a6700;
  --teal: #1f883d;
  --text-mid: #424a53;
  --text-dim: #57606a;
  --bg2: #f6f8fa;
  --bg3: #eaeef2;
}

/* ── 한 탭 안에 여러 단계가 있을 때의 단계 제목 ── */
.part-header {
  display: flex; align-items: center; gap: 14px;
  margin: 56px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.session-header + .part-header { margin-top: 0; }
.part-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.part-title { font-size: 21px; font-weight: 700; line-height: 1.35; }
.part-desc { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ── 본문 문단·목록 ── */
.content-section > p,
.session-pane > p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.session-pane > h3 { font-size: 15px; font-weight: 700; margin: 20px 0 10px; }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.plain-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
.plain-list li::before { content: '•'; flex-shrink: 0; color: var(--primary); }

/* ── 알림 상자 보완 ── */
.tip-box.danger { background: #FEF2F2; border: 1px solid #FCA5A5; }
.tip-box.danger p { color: #991B1B; }
.tip-box p a { color: inherit; font-weight: 700; }
.tip-box p code, .content-section p code, .session-pane p code, li code {
  background: #F0F0EA; color: var(--primary);
  padding: 1px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}

/* ── 코드 실행 결과 ── */
.code-wrap + .output-block { margin-top: -20px; }
.output-block { margin-bottom: 20px; }

/* ── 표 ── */
.tbl-wrap { overflow-x: auto; margin: 16px 0 20px; }
.tbl-wrap .api-table { margin-bottom: 0; }

/* ── 카드 그리드 ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px;
  box-shadow: var(--shadow);
}
.card-icon { font-size: 26px; margin-bottom: 8px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── 흐름도 ── */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.flow-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.flow-arrow { color: var(--text-light); font-size: 18px; }

/* ── 숫자 카드 · 비교 상자 (03 강좌 데이터 소개) ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.stat-card .v { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-card .l { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-blue .v { color: var(--blue); }
.stat-green .v { color: var(--green); }
.stat-red .v { color: var(--red); }
.compare-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 20px; }
.compare-side {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow);
}
.compare-side h5 { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.compare-side .num { font-size: 22px; font-weight: 700; }
.compare-side .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.compare-side.now { border-color: #FCA5A5; }

/* ── 그래프 미리보기 ── */
.chart-preview {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 14px 0;
}
.chart-preview-label {
  font-size: 12px; font-weight: 700; color: var(--text-light);
  letter-spacing: 1px; margin-bottom: 10px;
}

/* ── 배지 ── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-green  { background: rgba(26,127,55,.15);  color: var(--green); }
.badge-blue   { background: rgba(9,105,218,.15);  color: var(--blue); }
.badge-orange { background: rgba(188,76,0,.15);   color: var(--orange); }
.badge-red    { background: rgba(207,34,46,.15);  color: var(--red); }
.new-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 4px; background: #FEF2F2; color: #B91C1C;
  font-size: 11px; font-weight: 700; vertical-align: middle;
}

/* ── 인사이트 목록 · 함수 레퍼런스 (03 강좌 정리) ── */
.insight-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.insight-list li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; line-height: 1.7;
}
.insight-list li .num { color: var(--purple); font-weight: 700; margin-right: 8px; }
.summary-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.fn-list { list-style: none; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.9; color: var(--text-muted); }

/* ── 학습 목표 목록: 긴 인라인 코드가 있어도 줄바꿈되도록 flex 대신 블록 + 절대 위치 체크 ── */
.obj-list li { display: block; position: relative; padding-left: 30px; overflow-wrap: anywhere; }
.obj-list li .obj-check { position: absolute; left: 0; top: 2px; margin-top: 0; }
