/* learn/learn.css — 마이크로 청크 학습 시스템 공통 스타일 */

:root {
    --learn-accent: #3d2b1f;
    --learn-gold: #b8860b;
    --learn-bg: #faf8f5;
    --learn-border: #e8e2d9;
    --learn-text: #1a1a1a;
    --learn-muted: #6b6b6b;
    --learn-surface: #ffffff;
    --learn-keyword: #b8860b;
}

/* ── 뷰어 전체화면 레이아웃 ── */
.learn-viewer {
    position: fixed;
    inset: 0;
    background: var(--learn-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    transition: background 0.4s ease;
}

/* ── 학습 인트로 (책 표지 테마) ── */
.learn-intro {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, #543d2f 0%, #2b1d14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden; /* 스크롤 차단 */
    z-index: 20;
}

/* 양장본 도서 표지의 이중 골드박 프레임 효과 */
.learn-intro::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(184, 134, 11, 0.25);
    pointer-events: none;
    z-index: 1;
}
.learn-intro::after {
    content: '';
    position: absolute;
    inset: 22px;
    border: 1.5px solid rgba(184, 134, 11, 0.4);
    pointer-events: none;
    z-index: 1;
}

.learn-intro-back {
    position: fixed;
    top: 20px; left: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 700;
    color: #f3ede2; cursor: pointer;
    font-family: inherit; padding: 8px 18px;
    z-index: 21;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}
.learn-intro-back:hover {
    background: var(--learn-gold);
    color: #fff;
    border-color: var(--learn-gold);
    transform: translateX(-2px);
    box-shadow: 0 6px 16px rgba(184,134,11,0.4);
}

/* 인트로 카드를 투명하게 일체화 */
.learn-intro-card {
    width: 100%;
    max-width: 500px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    animation: introFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes introFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.learn-intro-badge {
    display: inline-block;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px;
    padding: 5px 14px; border-radius: 4px; /* 사각형 봉인인장 느낌 */
    margin-bottom: 18px;
    text-transform: uppercase;
    background: rgba(184, 134, 11, 0.08) !important;
    color: var(--learn-gold) !important;
    border: 1px solid rgba(184, 134, 11, 0.4) !important;
    box-shadow: none;
}

.learn-intro-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.6rem, 5vw, 2.15rem);
    font-weight: 800;
    color: #f6ebd6;
    line-height: 1.45;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    word-break: keep-all;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
/* 고전 문양 장식 */
.learn-intro-title::after {
    content: '❖';
    display: block;
    font-size: 0.95rem;
    color: var(--learn-gold);
    margin-top: 14px;
    margin-bottom: 6px;
    opacity: 0.75;
}

.learn-intro-desc {
    font-size: 0.88rem;
    color: rgba(246, 235, 214, 0.7);
    line-height: 1.65;
    margin-bottom: 20px;
    word-break: keep-all;
    max-width: 380px;
}

.learn-intro-meta {
    display: flex; justify-content: center;
    gap: 8px; margin-bottom: 18px;
}
.learn-intro-meta span {
    font-size: 0.75rem; font-weight: 700;
    color: #eddcc4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 134, 11, 0.25);
    padding: 5px 12px; border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 소제목 차례(목차) 리스트 - 책 본문 목차처럼 상하 구분선만 둔 투명 레이아웃 */
.learn-intro-toc {
    width: 100%;
    max-width: 420px;
    margin: 32px 0;
    padding: 18px 0;
    background: none;
    border-top: 1px solid rgba(184, 134, 11, 0.25);
    border-bottom: 1px solid rgba(184, 134, 11, 0.25);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
}
.learn-intro-toc-header {
    font-family: 'Noto Serif KR', serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--learn-gold);
    letter-spacing: 4px;
    margin-bottom: 16px;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}
.learn-intro-toc-list {
    list-style: none;
    padding: 0 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 190px;
    overflow-y: auto;
}
.learn-intro-toc-list::-webkit-scrollbar {
    width: 4px;
}
.learn-intro-toc-list::-webkit-scrollbar-thumb {
    background: rgba(184, 134, 11, 0.35);
    border-radius: 999px;
}
.learn-intro-toc-list li {
    display: flex;
    font-size: 0.88rem;
    color: rgba(246, 235, 214, 0.85);
    line-height: 1.5;
    align-items: flex-start;
    border-bottom: 1px dashed rgba(184, 134, 11, 0.08);
    padding-bottom: 8px;
}
.learn-intro-toc-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.learn-intro-toc-list li .toc-num {
    font-family: 'Noto Serif KR', serif;
    color: var(--learn-gold);
    font-weight: 700;
    width: 38px;
    flex-shrink: 0;
    font-size: 0.85rem;
    text-align: left;
}
.learn-intro-toc-list li .toc-text {
    font-weight: 500;
    text-align: left;
    word-break: keep-all;
    flex: 1;
}

.learn-intro-goals {
    width: 100% !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.learn-intro-goals::before {
    content: none !important;
    display: none !important;
}
.learn-intro-goals-label {
    font-size: 0.95rem !important; font-weight: 800 !important;
    color: var(--learn-gold) !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}
.learn-intro-goals-list {
    list-style: none !important; padding: 0 !important; margin: 0 0 24px 0 !important;
    display: flex !important; flex-direction: column !important; gap: 12px !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 380px !important;
}
.learn-intro-goals-list li {
    position: relative !important;
    padding-left: 22px !important;
    font-size: 0.85rem !important; font-weight: 600 !important;
    color: var(--learn-text) !important;
    line-height: 1.45 !important;
    word-break: keep-all !important;
    display: block !important;
}
.learn-intro-goals-list li::before {
    content: '✓' !important;
    position: absolute !important; left: 0 !important; top: 2px !important;
    width: 14px !important; height: 14px !important;
    background: rgba(184, 134, 11, 0.08) !important;
    border: 1px solid rgba(184, 134, 11, 0.15) !important;
    color: var(--learn-gold) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.55rem !important;
    font-weight: 900 !important;
}

/* 골드 엠보싱 인장 느낌의 시작 버튼 */
.learn-intro-start {
    width: 100%; max-width: 260px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--learn-gold) 0%, #8c6200 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    font-size: 0.95rem; font-weight: 800;
    font-family: inherit; cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(184, 134, 11, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
}
.learn-intro-start:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(184, 134, 11, 0.5) !important;
    background: linear-gradient(135deg, #d4af37 0%, var(--learn-gold) 100%) !important;
}
.learn-intro-start:active {
    transform: translateY(-1px) !important;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.35),
        0 0 15px rgba(184, 134, 11, 0.3) !important;
}

/* ── 인트로 이전 학습 카드 ── */
.learn-intro-prev-section {
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}
.learn-intro-prev-divider {
    font-size: 0.72rem;
    color: rgba(246, 235, 214, 0.5);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: left;
    padding-left: 4px;
}
.learn-intro-prev-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 14px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: all 0.2s;
    box-sizing: border-box;
}
.learn-intro-prev-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
}
.learn-intro-prev-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e0d5c8;
}
.learn-intro-prev-info {
    flex: 1;
    min-width: 0;
}
.learn-intro-prev-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--learn-gold);
    margin-bottom: 2px;
    text-transform: uppercase;
}
.learn-intro-prev-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f3ede2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.learn-intro-prev-arrow {
    font-size: 1.15rem;
    color: rgba(246, 235, 214, 0.4);
    font-weight: 300;
    padding-left: 4px;
    flex-shrink: 0;
}

/* ── 이어서 학습 배너 ── */
.learn-intro-resume {
    width: 100%;
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.learn-intro-resume-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--learn-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.learn-intro-resume-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.learn-intro-resume-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--learn-gold), #d4af37);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.learn-intro-resume-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(246, 235, 214, 0.7);
}
.learn-intro-resume-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.learn-intro-resume-continue {
    flex: 1;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--learn-gold) 0%, #8c6200 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    touch-action: manipulation;
}
.learn-intro-resume-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.learn-intro-resume-reset {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(246, 235, 214, 0.45);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    text-decoration: underline;
    transition: color 0.15s;
    white-space: nowrap;
    touch-action: manipulation;
}
.learn-intro-resume-reset:hover {
    color: rgba(246, 235, 214, 0.75);
}

/* ── 액션 그룹 & 요약 스킵 버튼 ── */
.learn-intro-action-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.learn-intro-skip-btn {
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(246, 235, 214, 0.55);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s;
    padding: 6px 12px;
}
.learn-intro-skip-btn:hover {
    color: var(--learn-gold);
}

/* ── 목표 화면 내 추가 스타일 ── */
.learn-intro-goals-start {
    width: 100% !important; max-width: 280px !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #8b2c2c, var(--learn-accent)) !important;
    color: #fff !important;
    border: none !important; border-radius: 12px !important;
    font-size: 0.95rem !important; font-weight: 800 !important;
    font-family: inherit !important; cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(139,44,44,0.18) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    touch-action: manipulation !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 20px auto 0 auto !important;
    float: none !important;
    clear: both !important;
}
.learn-intro-goals-start:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(139,44,44,0.28) !important;
    filter: brightness(1.05) !important;
}
.learn-intro-goals-back {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--learn-muted) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    margin: 16px auto 0 auto !important;
    text-decoration: underline !important;
    display: inline-block !important;
    transition: color 0.15s !important;
    float: none !important;
    clear: both !important;
}
.learn-intro-goals-back:hover {
    color: var(--learn-accent) !important;
}

.fade-in-active {
    animation: goalsFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes goalsFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* 모바일 헤더 재배치 — 제목 숨기고 스텝 카운터가 중간 채움 */
@media (max-width: 480px) {
    .learn-progress-wrap { padding-left: 12px; padding-right: 12px; }

    /* 나가기: 화살표만 */
    .learn-back-btn { padding: 6px 10px; font-size: 0.9rem; }
    .back-btn-label { display: none; }

    /* 제목 숨기고, 스텝 카운터가 flex:1로 중간 공간 차지 */
    .learn-sequence-title { display: none; }
    .learn-step-counter {
        flex: 1;
        text-align: left;
        padding-left: 10px;
    }

    /* 오른쪽 아이콘 버튼들 간격 통일 */
    .learn-auto-btn  { margin-left: 6px; }
    .learn-note-btn  { margin-left: 6px; }
    .learn-scroll-btn { margin-left: 6px; }
}

/* 모바일 압축 모드 (스크롤 방지를 위해 모바일 세로가 극도로 낮거나 일반적인 경우 여백 축소) */
@media (max-width: 600px) {
    /* 모바일 이중 프레임 간격 축소 */
    .learn-intro::before { inset: 10px !important; }
    .learn-intro::after { inset: 14px !important; }

    /* 나가기 버튼 노치 간섭 방지 */
    .learn-intro-back {
        top: 20px !important;
        left: 20px !important;
        padding: 6px 14px !important;
        font-size: 0.72rem !important;
    }

    /* 카드 여백 및 폭 */
    .learn-intro-card {
        padding: 10px !important;
        max-width: 100% !important;
    }

    .learn-intro-badge {
        margin-bottom: 14px !important;
        font-size: 0.65rem !important;
        padding: 4px 10px !important;
    }

    /* 제목 크기 조율 */
    .learn-intro-title {
        font-size: 1.45rem !important;
        margin-bottom: 8px !important;
    }
    .learn-intro-title::after {
        margin-top: 10px !important;
        margin-bottom: 4px !important;
        font-size: 0.8rem !important;
    }

    .learn-intro-desc {
        font-size: 0.8rem !important;
        line-height: 1.55 !important;
        margin-bottom: 12px !important;
        padding: 0 10px !important;
    }

    .learn-intro-meta {
        margin-bottom: 12px !important;
        gap: 6px !important;
    }
    .learn-intro-meta span {
        padding: 4px 10px !important;
        font-size: 0.68rem !important;
    }

    /* 모바일용 소제목 차례 박스 컴팩트화 */
    .learn-intro-toc {
        margin: 16px 0 !important;
        padding: 12px 0 !important;
        max-width: 90% !important;
    }
    .learn-intro-toc-header {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        letter-spacing: 3px !important;
    }
    .learn-intro-toc-list {
        max-height: 120px !important; /* 세로 화면이 좁은 폰 배려 */
        gap: 8px !important;
    }
    .learn-intro-toc-list li {
        font-size: 0.78rem !important;
        padding-bottom: 6px !important;
    }
    .learn-intro-toc-list li .toc-num {
        width: 26px !important;
        font-size: 0.78rem !important;
    }

    /* 시작 버튼 컴팩트화 */
    .learn-intro-start {
        padding: 12px 24px !important;
        font-size: 0.88rem !important;
        max-width: 220px !important;
    }
    
    .learn-intro-action-group {
        gap: 6px !important;
    }
    .learn-intro-skip-btn {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
    }
}

/* ── 상단 진행바 영역 ── */
.learn-progress-wrap {
    position: relative;
    padding: 18px 24px 12px;
    background: var(--learn-bg);
    z-index: 10;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.learn-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.learn-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--learn-accent);
    background: #fff;
    border: 1.5px solid var(--learn-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 14px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
}
.learn-back-btn:hover { background: #fff; border-color: var(--learn-accent); transform: translateX(-2px); }
.learn-sequence-title {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Noto Serif KR', serif;
    color: var(--learn-accent);
    letter-spacing: -0.5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    padding: 0 8px;
}
.learn-step-counter {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--learn-accent);
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    touch-action: manipulation;
}
.learn-step-counter:hover { background: rgba(61,43,31,0.07); }

/* 인스타그램 스토리 스타일 진행바 */
.learn-progress-bar {
    display: flex;
    gap: 4px;
    height: 3px;
}
.learn-progress-seg {
    flex: 1;
    background: var(--learn-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.learn-progress-seg-fill {
    position: absolute;
    inset: 0;
    background: var(--learn-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.learn-progress-seg.done .learn-progress-seg-fill { transform: scaleX(1); }
.learn-progress-seg.current .learn-progress-seg-fill {
    transform: scaleX(1);
    background: var(--learn-gold);
}
.learn-progress-seg.seek-preview {
    transform: scaleY(2.5);
    transform-origin: center;
    transition: transform 0.1s;
}
.learn-progress-seg.seek-preview .learn-progress-seg-fill {
    background: var(--learn-gold);
    transform: scaleX(1);
    transition: none;
}
.learn-seek-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: translateX(-50%);
    background: var(--learn-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    padding: 5px 10px;
    border-radius: 6px;
    max-width: 220px;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
}
.learn-seek-tooltip.visible { opacity: 1; }

/* 서브시퀀스 진행바 */
.learn-sub-progress-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--learn-border);
}
.learn-sub-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--learn-gold);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.learn-sub-progress-bar {
    display: flex;
    gap: 4px;
    height: 2px;
}
.learn-sub-progress-seg {
    flex: 1;
    background: #e8e0d0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.learn-sub-progress-seg-fill {
    position: absolute;
    inset: 0;
    background: var(--learn-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.learn-sub-progress-seg.done .learn-sub-progress-seg-fill { transform: scaleX(1); }
.learn-sub-progress-seg.current .learn-sub-progress-seg-fill { transform: scaleX(1); }
.learn-sub-progress-seg.seek-preview {
    transform: scaleY(2.5);
    transform-origin: center;
    transition: transform 0.1s;
}
.learn-sub-progress-seg.seek-preview .learn-sub-progress-seg-fill {
    background: var(--learn-gold);
    transform: scaleX(1);
    transition: none;
}

/* ── 메인 청크 영역 ── */
.learn-chunk-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.learn-chunk-text {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.15rem, 3.5vw, 1.55rem);
    font-weight: 400;
    line-height: 2;
    color: var(--learn-text);
    text-align: center;
    max-width: 680px;
    word-break: keep-all;
    white-space: pre-wrap;
    text-wrap: balance;
    letter-spacing: -0.3px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
}
.learn-chunk-text.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}
.learn-chunk-text.fade-in {
    animation: chunkFadeIn 0.35s ease forwards;
}
@keyframes chunkFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 청크 주석 */
.learn-chunk-annotation {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.77rem;
    font-weight: 400;
    color: var(--learn-muted);
    line-height: 1.75;
    max-width: 480px;
    width: 100%;
    margin-top: 22px;
    text-align: center;
    word-break: keep-all;
    white-space: pre-wrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}
.learn-chunk-annotation::before { content: none; }

/* 참조 텍스트 (본문에서 주석과 연결된 단어/구문) */
.learn-ann-ref {
    border-bottom: 1.5px dotted var(--learn-gold);
    display: inline;
}
.learn-ann-sup {
    color: var(--learn-gold);
    font-size: 0.6em;
    font-weight: 900;
    vertical-align: super;
    line-height: 0;
    margin-left: 1px;
}
.learn-chunk-annotation.fade-out { opacity: 0; transform: translateY(-10px); }
.learn-chunk-annotation.fade-in  { animation: chunkFadeIn 0.35s ease forwards; }
.learn-ann-item {
    display: block;
}
.learn-ann-item::before {
    content: '*';
    color: var(--learn-gold);
    font-size: 0.65em;
    font-weight: 900;
    vertical-align: super;
    margin-right: 3px;
}
.learn-ann-no-ref::before { content: none; }
.learn-ann-star {
    color: var(--learn-gold);
    font-weight: 900;
    margin-right: 3px;
}
.learn-ann-item + .learn-ann-item { margin-top: 8px; }
.learn-ann-label {
    font-weight: 600;
    color: var(--learn-gold);
}

/* 청크 상단 이미지 */
.learn-chunk-img-wrap {
    max-width: 480px;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}
.learn-chunk-img-wrap.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}
.learn-chunk-img-wrap.fade-in {
    animation: chunkFadeIn 0.35s ease forwards;
}
.learn-chunk-img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    border: 1.5px solid var(--learn-border);
}
@media (max-width: 600px) {
    .learn-chunk-img { max-height: 260px; border-radius: 10px; }
    .learn-chunk-img-wrap { margin-bottom: 18px; }
}

/* 키워드 버튼 */
.learn-keyword-btn {
    display: inline;
    background: none;
    border: none;
    border-bottom: 2px solid var(--learn-keyword);
    color: var(--learn-keyword);
    font-family: 'Noto Serif KR', serif;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
    line-height: inherit;
    transition: background 0.15s;
    border-radius: 2px;
    -webkit-tap-highlight-color: transparent;
}
.learn-keyword-btn:hover { background: rgba(184,134,11,0.1); }

/* 키워드 "더 알아보기" 배지 */
.learn-keyword-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--learn-gold);
    color: #fff;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.learn-keyword-badge:hover { opacity: 0.85; }

/* 서브시퀀스 없이 키워드만 강조 */
.learn-keyword-highlight {
    color: var(--learn-keyword);
    font-weight: 700;
    border-bottom: 1.5px solid rgba(184,134,11,0.35);
}

/* 하단 탭 힌트 */
.learn-tap-hint {
    flex-shrink: 0;
    text-align: center;
    padding: 12px 20px 28px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--learn-muted);
    letter-spacing: 0.3px;
    pointer-events: none;
}
.learn-tap-hint.hidden { opacity: 0; }

/* 서브시퀀스 복귀 버튼 */
.learn-return-btn {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--learn-accent);
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(61,43,31,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
}
.learn-return-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 로딩/에러 상태 */
.learn-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--learn-muted);
    text-align: center;
}
.learn-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--learn-border);
    border-top-color: var(--learn-accent);
    border-radius: 50%;
    animation: learnSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes learnSpin { to { transform: rotate(360deg); } }
.learn-state p { font-size: 0.92rem; line-height: 1.7; }
.learn-loading-sub {
    font-size: 0.78rem;
    color: var(--learn-muted);
    margin-top: 4px;
    opacity: 0.7;
    min-height: 1.2em;
}
.learn-state h3 { font-family: 'Noto Serif KR', serif; font-size: 1.1rem; margin: 0 0 10px; color: var(--learn-text); }

/* ── 플래시카드 ── */
.fc-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}
.fc-counter {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--learn-muted);
    margin-bottom: 20px;
}
.fc-scene {
    width: 100%;
    height: 260px;
    perspective: 900px;
    cursor: pointer;
    margin-bottom: 16px;
}
.fc-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-card.flipped { transform: rotateY(180deg); }
.fc-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--learn-surface);
    border: 2px solid var(--learn-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.fc-face.back { transform: rotateY(180deg); background: #f5f1eb; }
.fc-face-label {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--learn-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.fc-face-text {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 500;
    color: var(--learn-text);
    text-align: center;
    line-height: 1.75;
    word-break: keep-all;
}
.fc-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--learn-muted);
    font-weight: 700;
}
.fc-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.fc-nav-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--learn-border);
    background: var(--learn-surface);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--learn-text);
}
.fc-nav-btn:hover { border-color: var(--learn-accent); color: var(--learn-accent); }
.fc-nav-btn.primary { background: var(--learn-accent); border-color: var(--learn-accent); color: #fff; }
.fc-nav-btn.primary:hover { opacity: 0.9; }

/* ── 타임라인 드래그&드롭 ── */
.tl-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}
.tl-instruction {
    font-size: 0.85rem;
    color: var(--learn-muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 600;
}
.tl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 40px;
}
.tl-item {
    background: var(--learn-surface);
    border: 2px solid var(--learn-border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: grab;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    touch-action: none;
}
.tl-item:active { cursor: grabbing; }
.tl-item.dragging {
    opacity: 0.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: scale(1.02);
}
.tl-item.drag-over { border-color: var(--learn-gold); background: #fdf8ed; }
.tl-item.correct { border-color: #2e7d32; background: #e8f5e9; }
.tl-item.incorrect { border-color: #c62828; background: #fce4ec; }
.tl-item-handle {
    color: var(--learn-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}
.tl-item-num {
    width: 28px;
    height: 28px;
    background: var(--learn-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    flex-shrink: 0;
}
.tl-item-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--learn-text);
    line-height: 1.4;
    word-break: keep-all;
}
.tl-item-year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--learn-muted);
    flex-shrink: 0;
}
.tl-submit-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: var(--learn-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s;
}
.tl-submit-btn:hover { opacity: 0.9; }
.tl-result-msg {
    text-align: center;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}
.tl-result-msg.correct { color: #2e7d32; }
.tl-result-msg.incorrect { color: #c62828; }

/* ── 아웃트로 페이지 ── */
.outro-page {
    background: var(--learn-bg);
    min-height: 100vh;
}
.outro-complete-banner {
    position: relative;
    background: #100c09;
    padding: 72px 24px 80px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
/* 따뜻한 amber 글로우 — 중앙 위쪽에 집중 */
.outro-complete-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 50% 0%, rgba(195, 95, 28, 0.42) 0%, transparent 55%),
        radial-gradient(ellipse 45% 45% at 50% 50%, rgba(140, 60, 15, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* 미세 도트 텍스처 */
.outro-complete-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}
.outro-complete-banner > * { position: relative; z-index: 1; }

.outro-complete-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.outro-complete-title {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: clamp(1.55rem, 4vw, 2.4rem);
    font-weight: 800;
    margin: 0 auto 16px;
    letter-spacing: -0.5px;
    line-height: 1.45;
    max-width: 720px;
    color: #ffffff !important;
    text-shadow:
        0 0 60px rgba(220, 140, 60, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.9);
}
.outro-complete-sub {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.75;
    max-width: 460px;
    margin: 0 auto;
    word-break: keep-all;
}
.outro-complete-badge {
    font-family: 'Noto Sans KR', sans-serif;
}

.outro-body { max-width: 740px; margin: 0 auto; padding: 60px 20px 120px; }

.outro-section {
    margin-bottom: 56px;
}
.outro-section-label {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--learn-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.outro-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--learn-border);
}

/* 전체 본문 아티클 영역 */
.outro-article {
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    line-height: 2;
    color: var(--learn-text);
    word-break: keep-all;
}
.outro-article p { margin: 0 0 1.4em; }
.outro-article h2 { font-size: 1.4rem; font-weight: 800; margin: 1.6em 0 0.5em; line-height: 1.4; }
.outro-article h3 { font-size: 1.15rem; font-weight: 800; margin: 1.4em 0 0.4em; line-height: 1.4; }
.outro-article ul, .outro-article ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.outro-article li { margin: 0 0 0.4em; line-height: 1.9; }
.outro-article img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 1.4em auto; }
.outro-article strong { font-weight: 800; }
.outro-article a { color: var(--learn-gold); text-decoration: underline; }
.outro-article hr { border: none; border-top: 1px solid var(--learn-border); margin: 2em 0; }
.outro-footnotes {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--learn-border);
}
.outro-footnotes-title {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--learn-muted);
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.outro-footnote-item {
    font-size: 0.85rem;
    color: var(--learn-muted);
    line-height: 1.7;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}
.outro-footnote-num {
    font-weight: 900;
    color: var(--learn-gold);
    flex-shrink: 0;
}

/* 미니 퀴즈 */
.outro-quiz-card {
    background: var(--learn-surface);
    border: 2px solid var(--learn-border);
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 16px;
}
.outro-quiz-card + .outro-quiz-card { margin-top: 16px; }
.outro-quiz-num {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--learn-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.outro-quiz-question {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--learn-text);
    line-height: 1.6;
    margin-bottom: 18px;
    word-break: keep-all;
}
.outro-ox-btns {
    display: flex;
    gap: 12px;
}
.outro-ox-btn {
    flex: 1;
    padding: 14px 10px;
    border: 2px solid;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
}
.outro-ox-btn.btn-o {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}
.outro-ox-btn.btn-x {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}
.outro-ox-btn span { font-size: 0.82rem; font-weight: 700; }
.outro-ox-btn:not(:disabled):hover { filter: brightness(0.94); transform: translateY(-1px); }
.outro-ox-btn.selected-correct {
    border-color: #15803d; background: #dcfce7; color: #14532d;
    box-shadow: 0 0 0 3px rgba(21,128,61,0.18);
}
.outro-ox-btn.selected-wrong {
    border-color: #b91c1c; background: #fee2e2; color: #7f1d1d;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.18); opacity: 0.75;
}
.outro-ox-btn.correct-answer {
    border-color: #15803d; background: #dcfce7; color: #14532d; opacity: 0.65;
}
.outro-short-input {
    display: flex;
    gap: 10px;
    align-items: stretch;
    overflow: hidden;
}
.outro-short-field {
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
    padding: 12px 16px;
    border: 2px solid var(--learn-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    background: var(--learn-bg);
    color: var(--learn-text);
    outline: none;
    transition: border-color 0.15s;
}
.outro-short-field:focus { border-color: var(--learn-accent); }
.outro-short-submit {
    flex-shrink: 0;
    padding: 12px 22px;
    background: var(--learn-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.outro-short-submit:hover { opacity: 0.9; }
.outro-quiz-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.6;
    display: none;
}
.outro-quiz-feedback.correct {
    background: #f0fdf4; border: 1px solid #86efac; color: #15803d; display: block; border-radius: 8px;
}
.outro-quiz-feedback.wrong {
    background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; display: block; border-radius: 8px;
}
.outro-quiz-explanation {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(21,128,61,0.2);
    font-size: 0.88rem; line-height: 1.65; color: #166534;
}
.outro-quiz-hint-text {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(185,28,28,0.15);
    font-size: 0.88rem; line-height: 1.65; color: #991b1b;
}
.outro-quiz-remedial-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 18px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}
.outro-quiz-remedial-btn:hover { opacity: 0.85; }
.outro-all-correct-banner {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    display: none;
}
.outro-all-correct-banner.show { display: block; }
.outro-all-correct-banner h3 { font-family: 'Noto Serif KR', serif; margin: 0 0 6px; font-size: 1.1rem; }
.outro-all-correct-banner p { margin: 0; font-size: 0.88rem; opacity: 0.9; }

/* 아웃트로 상단 보조 내비게이션 */
.outro-top-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.outro-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: #fff;
    border: 1.5px solid var(--learn-border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--learn-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Noto Sans KR', sans-serif;
}
.outro-nav-btn i { font-size: 0.8rem; }
.outro-nav-btn:hover {
    border-color: var(--learn-accent);
    color: var(--learn-accent);
    background: #fdfaf5;
}

/* 하단 완료 액션 영역 */
.outro-actions {
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 1px solid var(--learn-border);
}
.outro-finish-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--learn-accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(61,43,31,0.2);
    transition: all 0.2s;
}
.outro-finish-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61,43,31,0.25);
}

/* 연관 상품 */
.outro-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.outro-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--learn-surface);
    border: 2px solid var(--learn-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--learn-text);
    transition: all 0.2s;
}
.outro-product-card:hover { border-color: var(--learn-gold); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.outro-product-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.outro-product-thumb--empty {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e8e0d4;
}
.outro-product-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--learn-text);
    padding: 10px 10px 4px;
}
.outro-product-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--learn-gold);
    padding: 0 10px 10px;
}

/* ── 아웃트로: 시리즈 목록 ── */
.outro-series-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.outro-series-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--learn-surface);
    border: 2px solid var(--learn-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--learn-text);
    transition: border-color 0.15s;
}
.outro-series-item--current {
    border-color: var(--learn-gold);
    background: #fdf8f0;
    pointer-events: none;
    cursor: default;
}
.outro-series-item:hover { border-color: var(--learn-gold); }
.outro-series-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.outro-series-thumb--empty {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #e8e0d4;
    flex-shrink: 0;
}
.outro-series-info {
    flex: 1;
    min-width: 0;
}
.outro-series-num {
    font-size: 0.68rem;
    color: var(--learn-muted);
    font-weight: 700;
    margin-bottom: 2px;
}
.outro-series-title {
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.outro-series-badge {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    background: var(--learn-gold);
    color: #fff;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ── 보완 학습 페이지 ── */
.remedial-page {
    background: var(--learn-bg);
    min-height: 100vh;
}
.remedial-header {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(160deg, #f0ece4 0%, var(--learn-bg) 100%);
    border-bottom: 1px solid var(--learn-border);
}
.remedial-header .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: var(--learn-gold);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.remedial-header h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--learn-accent);
    margin: 0 0 10px;
    letter-spacing: -1px;
}
.remedial-header p {
    font-size: 0.88rem;
    color: var(--learn-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
    word-break: keep-all;
}
.remedial-body {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 20px 100px;
}
.remedial-done-btn {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding: 16px;
    background: var(--learn-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.remedial-done-btn.visible { opacity: 1; pointer-events: auto; }
.remedial-done-btn:hover { opacity: 0.9; }

/* ── topics/detail.html 학습 탭 패널 ── */
.learn-panel-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 20px 100px; }
.learn-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.learn-seq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.learn-seq-card {
    background: #fff;
    border: 1.5px solid var(--hub-border, #e8e2d9);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
    color: var(--hub-text, #1a1a1a);
}
.learn-seq-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--learn-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
    z-index: 1;
}
.learn-seq-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); border-color: var(--learn-gold); }
.learn-seq-card:hover::before { transform: scaleX(1); }

/* 썸네일 카드 — 가로형 레이아웃 */
.learn-seq-card.has-thumb {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}
.learn-seq-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.learn-seq-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--learn-border, #e8e2d9);
    transition: opacity 0.2s;
}
.learn-seq-card:hover .learn-seq-thumb { opacity: 0.88; }
.learn-seq-badge { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.5px; padding: 2px 8px; background: var(--learn-gold); color: #fff; border-radius: 3px; align-self: flex-start; }
.learn-seq-badge.level-beginner     { background: #2e7d32; }
.learn-seq-badge.level-intermediate { background: var(--learn-gold); }
.learn-seq-badge.level-advanced     { background: #8b2c2c; }

/* ── 시대·유형 그룹 섹션 ── */
.seq-group { margin-bottom: 44px; }
.seq-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.seq-group-badge {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 3px 14px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
}
.seq-group-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--learn-muted, #6b6b6b);
    white-space: nowrap;
}
.seq-group-line { flex: 1; height: 1px; background: var(--learn-border, #e8e2d9); }
.learn-seq-title { font-family: 'Noto Serif KR', serif; font-size: 1rem; font-weight: 700; color: var(--hub-text, #1a1a1a); line-height: 1.4; word-break: auto-phrase; word-break: keep-all; overflow-wrap: break-word; }
.learn-seq-desc { font-size: 0.82rem; color: var(--hub-muted, #6b6b6b); line-height: 1.6; flex: 1; }
.learn-seq-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.learn-seq-tag { font-size: 0.65rem; font-weight: 900; padding: 2px 6px; background: #f0ece4; color: var(--learn-accent); border-radius: 3px; }
.learn-seq-cta { font-size: 0.8rem; font-weight: 800; color: var(--learn-gold); display: flex; align-items: center; gap: 4px; margin-top: 4px; }

/* ── 카드 보조 진입(복습·문제만) ── */
.learn-seq-item { display: flex; flex-direction: column; }
.learn-seq-item .learn-seq-card { flex: 1; }
.learn-seq-actions { display: flex; gap: 8px; margin-top: 8px; }
.learn-seq-action {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--learn-accent, #3d2b1f);
    background: #fff;
    border: 1.5px solid var(--learn-border, #e8e2d9);
    border-radius: 8px;
    padding: 8px 10px;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
}
.learn-seq-action:hover { border-color: var(--learn-gold); color: var(--learn-gold); background: #fffdf8; transform: translateY(-1px); }

/* ── 플래시카드 뷰어 특화 ── */
.fc-viewer-page {
    background: var(--learn-bg);
    overflow: hidden;
}
.fc-viewer-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    cursor: pointer;
}
.fc-scene-large {
    width: 100%;
    max-width: 440px;
    height: 320px;
    perspective: 1200px;
}
.fc-scene-large .fc-front {
    font-size: 1.4rem;
    line-height: 1.5;
}
.fc-scene-large .fc-back {
    font-size: 1.2rem;
    line-height: 1.7;
}

/* ── 플래시카드 (3D Flip) ── */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.fc-scene {
    height: 200px;
    perspective: 1000px;
}
.fc-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}
.fc-card.is-flipped { transform: rotateY(180deg); }
.fc-front, .fc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid var(--learn-border);
    text-align: center;
    word-break: keep-all;
}
.fc-front {
    background: linear-gradient(135deg, #16222a 0%, #3a6073 100%);
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    border-top: 4px solid var(--learn-gold);
}
.fc-front::before {
    content: 'QUESTION';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
}
.fc-front .fc-card-hint {
    color: rgba(255,255,255,0.6);
}
.fc-back {
    background: linear-gradient(135deg, #fdfaf5 0%, #f7f0e4 100%);
    color: var(--learn-text);
    transform: rotateY(180deg);
    font-size: 1.05rem;
    line-height: 1.7;
    border: 2px solid var(--learn-gold);
}
.fc-back::before {
    content: 'ANSWER';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--learn-gold);
    opacity: 0.7;
}
.fc-card-hint {
    position: absolute;
    bottom: 12px;
    left: 0; right: 0;
    font-size: 0.65rem;
    color: var(--learn-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── 타임라인 ── */
.tl-list {
    position: relative;
    padding-left: 24px;
    margin-top: 20px;
}
.tl-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--learn-border);
}
.tl-item {
    position: relative;
    margin-bottom: 30px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--learn-gold);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--learn-gold);
}
.tl-year {
    display: block;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--learn-gold);
    margin-bottom: 4px;
}
.tl-content {
    font-size: 0.95rem;
    color: var(--learn-text);
    line-height: 1.6;
    word-break: keep-all;
}

/* ── 타임라인 2.0 (아웃트로 모달 전용 — 통일부 스타일) ── */
#outro-modal-tl-list {
    padding-left: 0 !important;
    margin-top: 4px !important;
    gap: 0 !important;
}
#outro-modal-tl-list::before {
    display: none !important;
}

.tl2-item {
    display: flex;
    align-items: stretch;
    position: relative;
}

.tl2-left {
    width: 28px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.tl2-left::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #dcd1c0;
}

.tl2-item--last .tl2-left::before {
    bottom: auto;
    height: 20px;
}

.tl2-dot {
    position: absolute;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b5a2b;
    border: 2px solid #f4ede2;
    box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.25);
    z-index: 1;
}

.tl2-body {
    flex: 1;
    min-width: 0;
    padding: 11px 4px 16px 12px;
}

.tl2-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl2-item--has-detail .tl2-main {
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 6px;
    margin: -4px -6px;
    transition: background 0.15s;
}

.tl2-item--has-detail .tl2-main:hover {
    background: rgba(139, 90, 43, 0.06);
}

.tl2-period {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8b5a2b;
    min-width: 68px;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.tl2-name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1c1815;
    line-height: 1.4;
    word-break: keep-all;
    transition: color 0.15s;
}

.tl2-item--has-detail:hover .tl2-name {
    color: #8b5a2b;
}

.tl2-detail {
    display: none;
    margin-top: 8px;
    padding: 12px 14px;
    background: rgba(139, 90, 43, 0.04);
    border-radius: 10px;
    border-left: 2px solid rgba(139, 90, 43, 0.22);
    word-break: keep-all;
}

.tl2-item.open .tl2-detail {
    display: block;
}

/* 인물 카드 (연표 라인 없음, 항상 펼침) */
.tl2-char-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 2px;
    border-bottom: 1px solid rgba(139, 90, 43, 0.08);
}

.tl2-char-card:last-child {
    border-bottom: none;
}

.tl2-char-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.08);
    border: 1.5px solid rgba(139, 90, 43, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8b5a2b;
}

.tl2-char-avatar svg {
    width: 22px;
    height: 22px;
}

.tl2-char-info {
    width: 72px;
    flex-shrink: 0;
    padding-top: 1px;
}

.tl2-char-name {
    display: block;
    font-size: 0.93rem;
    font-weight: 800;
    color: #1c1815;
    line-height: 1.3;
    word-break: keep-all;
}

/* 한국식 독음 후리가나 — 대표 이름(예: 마오쩌둥) 위에 한국 한자음(예: 모택동)을 작게 표기 */
ruby.kr-ruby {
    ruby-position: over;
    -webkit-ruby-position: before;
    ruby-align: center;
}
ruby.kr-ruby > rt.kr-rt {
    font-size: 0.6em;
    font-weight: 600;
    color: #b45309;
    opacity: 0.85;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
}

.tl2-char-years {
    display: block;
    font-size: 0.7rem;
    color: #8b5a2b;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.tl2-char-desc {
    flex: 1;
    font-size: 0.82rem;
    color: #4b3d33;
    line-height: 1.65;
    word-break: keep-all;
    font-weight: 500;
    padding-top: 2px;
    min-width: 0;
}

.tl2-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(139, 90, 43, 0.15);
    font-size: 0.79rem;
    font-weight: 700;
    color: #8b5a2b;
}

.tl2-type-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tl2-badge-event {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.tl2-badge-char {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tl2-badge-concept {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
    border: 1px solid rgba(13, 148, 136, 0.25);
}

/* 사상/개념 카드 */
.tl2-concept-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 2px;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.tl2-concept-card:last-child {
    border-bottom: none;
}

.tl2-concept-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.08);
    border: 1.5px solid rgba(13, 148, 136, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0d9488;
}

.tl2-concept-icon svg {
    width: 20px;
    height: 20px;
}

.tl2-concept-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.tl2-concept-name {
    display: block;
    font-size: 0.93rem;
    font-weight: 800;
    color: #1c1815;
    line-height: 1.3;
    word-break: keep-all;
    margin-bottom: 6px;
}

.tl2-concept-desc {
    font-size: 0.82rem;
    color: #4b3d33;
    line-height: 1.65;
    font-weight: 500;
    word-break: keep-all;
    margin: 0 0 10px 0;
}

.tl2-concept-figures {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.tl2-concept-fig-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0d9488;
    letter-spacing: 0.01em;
    margin-right: 2px;
    flex-shrink: 0;
}

.tl2-concept-fig-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    background: rgba(13, 148, 136, 0.07);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.6;
}

@media (max-width: 520px) {
    .tl2-concept-card {
        gap: 10px;
        padding: 14px 0;
    }
    .tl2-concept-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .tl2-concept-icon svg { width: 17px; height: 17px; }
    .tl2-concept-name { font-size: 0.88rem; }
    .tl2-concept-desc { font-size: 0.79rem; }
}

.tl2-detail-content {
    font-size: 0.84rem;
    color: #2c2520;
    line-height: 1.65;
    font-weight: 500;
}

@media (max-width: 600px) {
    .tl2-period { min-width: 54px; font-size: 0.74rem; }
    .tl2-name   { font-size: 0.87rem; }

    /* 인물 카드: 모바일에선 설명을 아래 행으로 */
    .tl2-char-card {
        flex-wrap: wrap;
        gap: 4px 14px;
    }
    .tl2-char-info {
        flex: 1;
        min-width: 0;
        width: auto;
    }
    .tl2-char-desc {
        flex: 0 0 100%; /* flex-basis 명시로 강제 줄바꿈 */
        padding-left: 56px; /* avatar(42) + gap(14) 정렬 */
        padding-top: 0;
        margin-top: 0;
    }
}

/* ── 유틸리티 및 퀴즈 보완 ── */
.outro-retry-quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--learn-surface);
    border: 1.5px solid var(--learn-border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--learn-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.outro-retry-quiz-btn:hover { border-color: var(--learn-gold); color: var(--learn-gold); }

.outro-fc-study-btn {
    background: var(--learn-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}
.outro-fc-study-btn:hover { opacity: 0.9; }

/* ── 아웃트로 탭 시스템 (스텝형) ── */
.outro-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    background: #fff;
    padding: 16px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--learn-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.outro-tab {
    background: #f8f8f8;
    border: 1px solid var(--learn-border);
    padding: 8px 20px 8px 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--learn-muted);
    cursor: pointer;
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}
.outro-tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ddd;
    color: var(--learn-muted);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}
.outro-tab.active {
    opacity: 1;
    background: #fff;
    border-color: var(--learn-accent);
    color: var(--learn-accent);
    box-shadow: 0 4px 10px rgba(61,43,31,0.1);
}
.outro-tab.active span {
    background: var(--learn-accent);
    color: #fff;
}

/* 안내 버튼 (가이드) */
.outro-panel-guide {
    margin-top: 60px;
    border-top: 1px dashed var(--learn-border);
    padding-top: 40px;
    display: flex;
    justify-content: center;
}
.outro-guide-btn {
    background: var(--learn-accent);
    color: #fff;
    border: none;
    padding: 18px 36px;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(61,43,31,0.25);
    transition: all 0.3s;
}
.outro-guide-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(61,43,31,0.35);
}
.outro-guide-btn i {
    font-size: 1.2rem;
    animation: bounceRight 1s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.outro-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    padding-bottom: 40px;
}

.outro-panel.active {
    display: block;
}

/* ── 아웃트로 하단 최종 액션 ── */
.outro-next-steps {
    background: #fdfaf5;
    padding: 40px 24px;
    border-radius: 20px;
}
.outro-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0 0;
}
.outro-cta-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 20px;
    border-radius: 20px;
    border: none;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.outro-cta-btn i { font-size: 1.8rem; margin-bottom: 2px; }
.outro-cta-btn span { font-size: 0.8rem; font-weight: 700; opacity: 0.75; letter-spacing: 0.5px; }

/* 시험 버튼: 브랜드 컬러 */
.outro-cta-btn.test {
    background: #8b5a2b !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15) !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
}
.outro-cta-btn.test:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(139, 90, 43, 0.3) !important;
    background: #754b22 !important;
}
.outro-cta-btn.test i {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
.outro-cta-btn.test .outro-cta-title {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
}

/* 상점 버튼: 골드 컬러 */
.outro-cta-btn.shop {
    background: #fff;
    color: var(--learn-gold);
    border: 2px solid var(--learn-gold);
}
.outro-cta-btn.shop:hover { background: #fff; transform: translateY(-8px); box-shadow: 0 15px 40px rgba(184, 134, 11, 0.22); border-color: var(--learn-gold); }

/* 보조 버튼들 */
.outro-sub-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 100px;
    padding-top: 40px;
    border-top: 1px dashed var(--learn-border);
}
.outro-sub-btn {
    background: none;
    border: 1.5px solid var(--learn-border);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--learn-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.outro-sub-btn:hover { background: #fff; border-color: var(--learn-accent); color: var(--learn-accent); }

/* ── 반응형 ── */
@media (max-width: 600px) {
    .outro-final-actions { flex-direction: column; }
    .outro-cta-btn { min-width: unset; padding: 24px 20px; font-size: 1.05rem; }
}

/* ── 자동 넘기기 ── */
.learn-auto-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--learn-muted);
    background: #fff;
    border: 1.5px solid var(--learn-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 10px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    margin-left: 8px;
}
.learn-auto-btn:hover { border-color: var(--learn-gold); color: var(--learn-gold); }
.learn-auto-btn.active { background: var(--learn-gold); border-color: var(--learn-gold); color: #fff; }

/* 요약·문제로 건너뛰기 버튼 (헤더) */
.learn-skip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--learn-muted);
    background: #fff;
    border: 1.5px solid var(--learn-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 10px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    margin-left: 8px;
}
.learn-skip-btn:hover { border-color: var(--learn-gold); color: var(--learn-gold); }
.learn-skip-btn i {
    font-size: 0.88rem;
}

.learn-auto-popover {
    display: none;
    position: absolute;
    right: 24px;
    top: 56px;
    background: #fff;
    border: 1.5px solid var(--learn-border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    z-index: 50;
    min-width: 234px;
}
.learn-auto-popover.open { display: block; }
.learn-auto-popover-title {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--learn-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.learn-auto-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.learn-auto-presets button {
    padding: 5px 11px;
    border: 1.5px solid var(--learn-border);
    background: #f8f8f6;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--learn-accent);
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.15s;
}
.learn-auto-presets button:hover,
.learn-auto-presets button.selected { background: var(--learn-gold); border-color: var(--learn-gold); color: #fff; }
.learn-auto-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--learn-border);
    padding-top: 10px;
}
.learn-auto-custom input {
    width: 56px;
    padding: 5px 8px;
    border: 1.5px solid var(--learn-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--learn-text);
    background: var(--learn-bg);
    outline: none;
    text-align: center;
}
.learn-auto-custom input:focus { border-color: var(--learn-gold); }
.learn-auto-custom span { font-size: 0.82rem; font-weight: 700; color: var(--learn-muted); }
.learn-auto-custom button {
    margin-left: auto;
    padding: 5px 13px;
    background: var(--learn-accent);
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: opacity 0.15s;
}
.learn-auto-custom button:hover { opacity: 0.88; }

.learn-timer-bar-wrap {
    margin-top: 8px;
    height: 2px;
    background: rgba(0,0,0,0.07);
    border-radius: 2px;
    overflow: hidden;
}
.learn-timer-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--learn-gold);
    border-radius: 2px;
}
@keyframes timerBarFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* ── 목차 모달 (바텀시트) ── */
.learn-toc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.learn-toc-sheet {
    background: #fff;
    width: 100%;
    max-height: 72vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: tocSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}
@keyframes tocSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@media (min-width: 600px) {
    .learn-toc-overlay { align-items: center; }
    .learn-toc-sheet {
        width: 480px;
        max-height: 65vh;
        border-radius: 16px;
        animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
}
.learn-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--learn-border);
    flex-shrink: 0;
}
.learn-toc-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    font-weight: 900;
    color: var(--learn-accent);
    letter-spacing: -0.5px;
}
.learn-toc-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--learn-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
}
.learn-toc-close:hover { background: rgba(0,0,0,0.06); }
.learn-toc-list {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0 20px;
    -webkit-overflow-scrolling: touch;
}
.learn-toc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.12s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Noto Sans KR', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
.learn-toc-item:hover,
.learn-toc-item:active { background: #f5f1eb; }
.learn-toc-item.toc-current { background: rgba(184,134,11,0.08); }
.learn-toc-num {
    font-size: 0.68rem;
    font-weight: 900;
    color: var(--learn-muted);
    flex-shrink: 0;
    width: 28px;
    padding-top: 3px;
    text-align: right;
}
.learn-toc-item.toc-current .learn-toc-num { color: var(--learn-gold); }
.learn-toc-text {
    font-size: 0.88rem;
    color: var(--learn-text);
    line-height: 1.55;
    word-break: keep-all;
}
.learn-toc-item.toc-current .learn-toc-text { font-weight: 700; color: var(--learn-accent); }

.learn-toc-section {
    border-bottom: 1px solid rgba(0,0,0,0.03);
    background: rgba(0, 0, 0, 0.005);
}
.learn-toc-section.toc-section-active {
    background: rgba(184, 134, 11, 0.015);
}
.learn-toc-section-header {
    background: rgba(0, 0, 0, 0.02) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.learn-toc-section-header .learn-toc-section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--learn-accent);
    word-break: keep-all;
    flex: 1;
    text-align: left;
}
.learn-toc-section-header.toc-current .learn-toc-section-title {
    color: var(--learn-gold);
}
.learn-toc-section-chevron {
    font-size: 0.8rem;
    color: var(--learn-muted);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 10px;
}
.learn-toc-section.toc-section-active:not(.section-collapsed) .learn-toc-section-chevron,
.learn-toc-section.section-expanded .learn-toc-section-chevron {
    transform: rotate(180deg);
}
.learn-toc-section-body {
    border-left: 2px solid var(--learn-border);
    margin-left: 32px;
    padding-left: 4px;
    display: flex;
    flex-direction: column;
}
.learn-toc-subitem {
    padding-left: 10px !important;
}
.learn-toc-subitem .learn-toc-text {
    font-size: 0.82rem;
    color: var(--learn-muted);
}
.learn-toc-subitem.toc-current .learn-toc-text {
    font-weight: 700;
    color: var(--learn-accent);
}

/* ── 학습 완료 모달 ── */
.learn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s ease;
}

.learn-modal-content {
    background: #fff;
    width: 90%;
    max-width: 360px;
    padding: 40px 24px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.learn-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.learn-modal-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--learn-accent);
    margin-bottom: 12px;
}

.learn-modal-desc {
    font-size: 0.95rem;
    color: var(--learn-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.learn-modal-btn {
    width: 100%;
    background: var(--learn-accent);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.learn-modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(61, 43, 31, 0.3);
}

/* ── 완료 모달: 다음 학습 카드 ── */
.finish-next-section {
    margin-top: 16px;
}

.finish-next-divider {
    font-size: 0.72rem;
    color: var(--learn-muted);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.finish-next-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f0ea;
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: background 0.15s;
}

.finish-next-card:hover {
    background: #ede5da;
}

.finish-next-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e0d5c8;
}

.finish-next-info {
    flex: 1;
    min-width: 0;
}

.finish-next-label {
    font-size: 0.68rem;
    color: var(--learn-muted);
    font-weight: 700;
    margin-bottom: 3px;
}

.finish-next-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--learn-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finish-next-arrow {
    font-size: 1.5rem;
    color: var(--learn-muted);
    flex-shrink: 0;
    line-height: 1;
}

/* ── 유료 잠금 페이월 ── */
.learn-paywall-content { max-width: 440px; }

.learn-paywall-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 4px 0 8px;
}

.learn-paywall-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    padding: 14px 16px;
    border: 1.5px solid #e8e2d8;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.1s;
}

.learn-paywall-product:hover {
    border-color: var(--learn-accent);
    transform: translateY(-1px);
}

.learn-paywall-product-name { font-weight: 800; font-size: 0.95rem; color: #1a1a1a; }
.learn-paywall-product-cta { font-size: 0.82rem; font-weight: 700; color: var(--learn-accent); }

.learn-paywall-btn.primary {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    background: var(--learn-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.learn-paywall-loading { padding: 14px; color: #999; font-size: 0.85rem; }

.learn-paywall-login-note { font-size: 0.82rem; color: #777; margin: 6px 0 0; }
.learn-paywall-login-note a { color: var(--learn-accent); font-weight: 700; text-decoration: none; }
.learn-paywall-login-btn {
    background: none; border: none; padding: 0;
    color: var(--learn-accent); font-weight: 700; font-size: inherit;
    font-family: inherit; cursor: pointer; text-decoration: none;
}
.learn-paywall-login-btn:hover { text-decoration: underline; }

.learn-paywall-exit {
    margin-top: 18px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Noto Sans KR', sans-serif;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 플래시카드 내비게이션 버튼 ── */
.fc-viewer-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--learn-border);
    color: var(--learn-accent);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fc-nav-btn:hover:not(:disabled) {
    background: var(--learn-accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(61,43,31,0.2);
}

.fc-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    background: #f0f0f0;
    color: #bbb;
}

.fc-nav-btn.prev { left: 40px; }
.fc-nav-btn.next { right: 40px; }

/* 모바일 대응 */
@media (max-width: 768px) {
    .fc-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .fc-nav-btn.prev { left: 10px; }
    .fc-nav-btn.next { right: 10px; }
}

/* ── 요약 모달 (다크 Glassmorphism 테마) ── */
.learn-summary-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.learn-summary-content {
    background: rgba(28, 25, 23, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    max-width: 640px !important;
    width: 92% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
    position: relative !important;
    padding: 44px 32px 32px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent !important;
    box-sizing: border-box !important;
}

.learn-summary-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    transition: color 0.15s !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

.learn-summary-close:hover {
    color: #ffffff !important;
}

/* ── 요약 모달 내부 HTML 다크 모드 오버라이드 ── */
.learn-summary-body {
    text-align: left !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

.learn-summary-body * {
    color: #ffffff !important;
}

.learn-summary-body .title {
    font-family: 'Noto Serif KR', serif !important;
    font-size: clamp(1.2rem, 4.5vw, 1.45rem) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 16px !important;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    word-break: keep-all !important;
}

.learn-summary-body .section-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--learn-gold) !important;
    margin-top: 24px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.learn-summary-body .section-body {
    border-left: 2px solid rgba(255, 255, 255, 0.25) !important;
    padding-left: 14px !important;
    margin-bottom: 24px !important;
}

.learn-summary-body p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    margin: 0 0 6px 0 !important;
    word-break: keep-all !important;
}

.learn-summary-body .sub, 
.learn-summary-body p.sub {
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 12px !important;
}

.learn-summary-body .stage {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}

.learn-summary-body .stage strong {
    color: var(--learn-gold) !important;
}

.learn-summary-body .bold, 
.learn-summary-body strong, 
.learn-summary-body b {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.learn-summary-body .grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
}

.learn-summary-body .card {
    background: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
}

.learn-summary-body .card-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
}

.learn-summary-body .card-body {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 8px 0 !important;
}

.learn-summary-body .card-why {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 8px !important;
}

.learn-summary-body .arrow-note, 
.learn-summary-body .arrow {
    font-size: 0.82rem !important;
    color: var(--learn-gold) !important;
    margin-top: 8px !important;
}

/* 모바일 모달 스크롤 및 레이아웃 조절 */
@media (max-width: 600px) {
    .learn-summary-content {
        padding: 36px 20px 20px !important;
        max-height: 85vh !important;
    }
    .learn-summary-body .grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .learn-summary-body .title {
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
    }

    /* 상단 버튼들과 학습 완료 배지 간의 겹침 및 혼잡함 개선 */
    .learn-outro-content .outro-modal-header {
        margin-top: 55px !important;
    }
    
    .learn-outro-content .outro-header-actions {
        top: 14px !important;
        left: 16px !important;
        gap: 6px !important;
    }
    
    .learn-outro-content .outro-header-action-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .learn-outro-content .outro-header-action-btn .btn-text {
        display: none !important;
    }

    .learn-outro-content .outro-header-action-btn i {
        font-size: 0.82rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    
    .learn-outro-content .outro-complete-badge {
        background: none !important;
        color: #8b5a2b !important;
        display: inline-block !important;
        margin-bottom: 6px !important;
        font-size: 0.75rem !important;
        padding: 0 0 2px 0 !important;
        border-radius: 0 !important;
        border-bottom: 1.5px solid #8b5a2b !important;
    }

    .learn-outro-content .outro-complete-title {
        font-size: 1.15rem !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    /* 모바일 정리/퀴즈 탭 개행 방지 및 가로 스크롤 최적화 */
    .learn-outro-content .outro-tabs {
        gap: 6px !important;
        padding: 6px !important;
        margin-bottom: 16px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    
    .learn-outro-content .outro-tab {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .learn-outro-content .outro-tab span {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.6rem !important;
    }
}

/* ── 완료 모달 서브 액션 및 닫기 버튼 ── */
.finish-sub-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}
.learn-modal-btn-sub {
    flex: 1;
    background: #f5f0ea;
    color: var(--learn-accent);
    border: 1px solid var(--learn-border);
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    text-align: center;
}
.learn-modal-btn-sub:hover {
    background: var(--learn-accent);
    color: #fff;
    border-color: var(--learn-accent);
}
.learn-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--learn-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
    z-index: 10;
}
.learn-modal-close:hover {
    color: var(--learn-accent);
}

/* ── 시리즈 목록 보기 버튼 및 모달 ── */
.finish-series-list-btn {
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--learn-gold);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    width: 100%;
    text-align: center;
    transition: color 0.15s;
}
.finish-series-list-btn:hover {
    color: var(--learn-accent);
}

.series-list-content {
    max-width: 440px !important;
    width: 92% !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding: 40px 24px 24px !important;
    border-radius: 16px !important; /* 모달 라운드 통일 */
    position: relative !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(61, 43, 31, 0.2) transparent !important;
    background: #f4ede2 !important; /* 옛날 신문지 베이지 톤앤매너로 교체 */
    border: 1px solid #dcd1c0 !important;
    box-shadow: 0 24px 60px rgba(43, 35, 27, 0.2) !important;
}
.series-list-title {
    font-family: 'Noto Sans KR', sans-serif !important; /* 고딕 계열 헤더 통일 */
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #2c2520 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    border-bottom: 2px double #dcd1c0 !important; /* double 밑줄로 클래식 감성 강화 */
    padding-bottom: 12px !important;
}
.series-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}
.series-item-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.5) !important; /* 신문 종이 덧댐 효과 */
    border: 1px solid #dcd1c0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #2c2520 !important;
    transition: all 0.2s !important;
}
.series-item-card:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: #8b5a2b !important;
    transform: translateY(-1px) !important;
}
.series-item-card.current {
    background: rgba(139, 90, 43, 0.05) !important;
    border-color: #8b5a2b !important;
    border-width: 1.5px !important;
}

/* 회차 배지 디자인 */
.series-item-idx {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #8b5a2b !important;
    white-space: nowrap !important; /* "1편" 줄바꿈 방지 */
    background: rgba(139, 90, 43, 0.08) !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
}

.series-item-info {
    flex: 1 !important;
    text-align: left !important;
}

.series-item-title-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.series-item-title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #2c2520 !important;
    word-break: keep-all !important;
}

/* 현재 배지 */
.series-item-badge {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
    background: #8b5a2b !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.series-item-arrow {
    color: rgba(44, 37, 32, 0.4) !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    margin-left: auto !important;
}
/* ── 통합 아웃트로 모달 스타일 (빈티지 뉴스페이퍼 테마) ── */
.learn-outro-content {
    max-width: 680px !important;
    background: #f4ede2 !important;
    border: 1px solid #dcd1c0 !important;
    box-shadow: 0 30px 70px rgba(43, 35, 27, 0.25) !important;
    color: #2c2520 !important;
    border-radius: 16px !important;
    text-align: left !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 헤더 영역은 가운데 정렬 유지 및 위쪽 버튼과의 간격 확보 */
.learn-outro-content .outro-modal-header {
    text-align: center !important;
    margin-top: 20px !important;
}

/* 좌측 상단 헤더 액션 버튼 (X 닫기 버튼의 반대편 대칭) */
.learn-outro-content .outro-header-actions {
    position: absolute !important;
    top: 16px !important;
    left: 18px !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 10 !important;
}

.learn-outro-content .outro-header-action-btn {
    background: rgba(44, 37, 32, 0.05) !important;
    border: 1px solid rgba(44, 37, 32, 0.1) !important;
    color: #2c2520 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

.learn-outro-content .outro-header-action-btn:hover {
    background: rgba(139, 90, 43, 0.08) !important;
    border-color: rgba(139, 90, 43, 0.25) !important;
    color: #8b5a2b !important;
    transform: translateY(-1px) !important;
}

.learn-outro-content .outro-header-action-btn i {
    font-size: 0.68rem !important;
}

/* 닫기 버튼 색상 변경 */
.learn-outro-close {
    color: rgba(44, 37, 32, 0.5) !important;
}
.learn-outro-close:hover {
    color: #2c2520 !important;
}

/* 완료 타이틀 폰트 크기 및 색상 */
.learn-outro-content .outro-complete-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    color: #2c2520 !important;
    font-family: 'Noto Sans KR', sans-serif !important; /* 고딕 계열 서체로 전환 */
    border-bottom: 2px double #dcd1c0 !important;
    padding-bottom: 12px !important;
    margin-bottom: 15px !important;
    text-shadow: none !important; /* 흐릿하고 지저분한 다크 그림자 제거 */
}

.learn-outro-content .outro-complete-badge {
    background: none !important;
    color: #8b5a2b !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    padding: 0 0 2px 0 !important;
    border-radius: 0 !important;
    letter-spacing: 0.08em !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
    border-bottom: 2px solid #8b5a2b !important;
}

.learn-outro-content .outro-tabs {
    display: flex !important;
    border-bottom: 1px solid #dcd1c0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
    background: rgba(244, 237, 226, 0.96) !important; /* 모달의 신문지 베이지 톤에 맞춤 */
    position: sticky !important;
    top: -44px !important;
    z-index: 100 !important;
    box-shadow: 0 8px 20px rgba(43, 35, 27, 0.08) !important;
    border-radius: 12px !important;
    scrollbar-width: none; /* 파이어폭스 탭바 스크롤 숨김 */
}
.learn-outro-content .outro-tabs::-webkit-scrollbar {
    display: none; /* 크롬/사파리 탭바 스크롤 숨김 */
}

.learn-outro-content .outro-tab {
    background: rgba(44, 37, 32, 0.04) !important;
    border: 1px solid rgba(44, 37, 32, 0.1) !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: rgba(44, 37, 32, 0.6) !important;
    cursor: pointer !important;
    border-radius: 99px !important;
    opacity: 1 !important; /* 기존 .outro-tab의 투명도 0.6 상속 방지 */
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s !important;
}

.learn-outro-content .outro-tab span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: rgba(44, 37, 32, 0.08) !important;
    color: rgba(44, 37, 32, 0.7) !important;
    border-radius: 50% !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    margin-right: 0 !important;
}

.learn-outro-content .outro-tab.active {
    color: #8b5a2b !important; /* 시그니처 전통 브라운 */
    background: rgba(139, 90, 43, 0.08) !important;
    border-color: rgba(139, 90, 43, 0.25) !important;
}

.learn-outro-content .outro-tab.active span {
    background: #8b5a2b !important;
    color: #ffffff !important;
}

/* 정리 탭 본문 뉴스페이퍼 세리프 */
.learn-outro-content .outro-article {
    text-align: left !important;
    color: #1c1815 !important;
    font-size: 0.9rem !important;
    line-height: 1.75 !important;
    font-family: 'Noto Serif KR', serif !important;
}
.learn-outro-content .outro-article p,
.learn-outro-content .outro-article span,
.learn-outro-content .outro-article li,
.learn-outro-content .outro-article td,
.learn-outro-content .outro-article div:not(.card-title):not(.stage) {
    color: #1c1815 !important;
}
.learn-outro-content .outro-article * {
    text-align: left !important;
}

/* 글자 크기 조절 버튼 스타일 */
.font-zoom-btn {
    border: 1.5px solid #dcd1c0 !important;
    background: #fffdf9 !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    color: #4b3d33 !important;
}
.font-zoom-btn:hover {
    border-color: #8b5a2b !important;
    background: #fdf8f0 !important;
    color: #8b5a2b !important;
}
.font-zoom-btn:active {
    background: #f7ede2 !important;
}
.learn-outro-content .outro-article strong,
.learn-outro-content .outro-article b,
.learn-outro-content .outro-article .bold {
    color: #111111 !important;
    font-weight: 800 !important;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.45) 45%, transparent 45%) !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
    display: inline !important;
    box-decoration-break: clone !important;
    -webkit-box-decoration-break: clone !important;
}
.learn-outro-content .outro-article h3,
.learn-outro-content .outro-article h4,
.learn-outro-content .outro-article .section-title {
    color: #8b5a2b !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-weight: 800 !important;
    border-bottom: 1px dashed #dcd1c0 !important;
    padding-bottom: 6px !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    font-size: 1rem !important;
    display: block !important;
}

.learn-outro-content .outro-article .title {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: clamp(1.15rem, 4.5vw, 1.35rem) !important;
    color: #2c2520 !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    border-bottom: 2px solid #2c2520 !important;
    padding-bottom: 12px !important;
    margin-bottom: 22px !important;
    margin-top: 0 !important;
    word-break: keep-all !important;
    display: block !important;
}

/* 인용구 텍스트 스타일 */
.outro-article .quote-text {
    display: block !important;
    text-align: center !important;
    font-style: italic !important;
    color: #8b5a2b !important;
    background: rgba(139, 90, 43, 0.04) !important;
    border-top: 1px solid rgba(139, 90, 43, 0.15) !important;
    border-bottom: 1px solid rgba(139, 90, 43, 0.15) !important;
    padding: 12px 20px !important;
    margin: 18px auto !important;
    max-width: 85% !important;
    border-radius: 6px !important;
    font-family: 'Noto Serif KR', serif !important;
    font-weight: 700 !important;
    font-size: 1.15em !important;
    line-height: 1.6 !important;
}

/* 신문 스크랩 상자 기사 카드 */
.learn-outro-content .outro-article .card,
.learn-outro-content .outro-article .stage {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px dashed rgba(139, 128, 115, 0.5) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    color: #2c2520 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 0.88em !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}
.learn-outro-content .outro-article .card *,
.learn-outro-content .outro-article .stage * {
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.learn-outro-content .outro-article .card strong,
.learn-outro-content .outro-article .card b,
.learn-outro-content .outro-article .stage strong,
.learn-outro-content .outro-article .stage b {
    font-weight: 800 !important;
}
.learn-outro-content .outro-article .card-title {
    color: #8b5a2b !important;
    border-bottom: 1px solid rgba(139, 128, 115, 0.15) !important;
    padding-bottom: 4px !important;
    font-size: 1.1em !important;
    font-weight: 800 !important;
}
.learn-outro-content .outro-article .card-why {
    border-top: 1px dashed rgba(139, 128, 115, 0.2) !important;
    color: #4b3d33 !important;
    opacity: 0.95 !important;
}
.learn-outro-content .outro-article .stage {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(139, 128, 115, 0.15) !important;
}
.learn-outro-content .outro-article .stage strong {
    color: #8b5a2b !important;
}

/* 퀴즈 영역 */
.learn-outro-content .outro-quiz-card {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid #dcd1c0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(43, 35, 27, 0.03) !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}
.learn-outro-content .outro-quiz-num {
    color: #8b5a2b !important;
}
.learn-outro-content .outro-quiz-question {
    color: #2c2520 !important;
}
.learn-outro-content .outro-ox-btn {
    background: #ffffff !important;
    border: 1px solid #c8bda9 !important;
    color: #2c2520 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-ox-btn span {
    color: rgba(44, 37, 32, 0.7) !important; /* 연회색 설명글의 가독성을 높이기 위해 명도 상향 */
    font-weight: 500 !important;
    transition: color 0.2s !important;
}
.learn-outro-content .outro-ox-btn:hover {
    background: rgba(139, 90, 43, 0.05) !important; /* 신문지 테마에 맞는 연한 브라운 틴트 호버 */
    border-color: #8b5a2b !important;
}
.learn-outro-content .outro-ox-btn.selected-correct {
    border-color: #22c55e !important;
    border-width: 2px !important;
    background: rgba(34, 197, 94, 0.1) !important;
    color: #15803d !important;
}
.learn-outro-content .outro-ox-btn.selected-correct span {
    color: #15803d !important;
}
.learn-outro-content .outro-ox-btn.selected-wrong {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #b91c1c !important;
}
.learn-outro-content .outro-ox-btn.selected-wrong span {
    color: #b91c1c !important;
}
.learn-outro-content .outro-ox-btn.correct-answer {
    border-color: #22c55e !important;
    border-width: 2px !important;
    background: rgba(34, 197, 94, 0.05) !important;
    color: #15803d !important;
}
.learn-outro-content .outro-ox-btn.correct-answer span {
    color: #15803d !important;
}

.learn-outro-content .outro-short-field {
    background: #ffffff !important;
    border: 1px solid #c8bda9 !important;
    color: #2c2520 !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-short-field:focus {
    outline: none !important;
    border-color: #8b5a2b !important;
    box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.12) !important; /* 포커스 시 브라운 강조링 */
}
.learn-outro-content .outro-short-field.selected-correct {
    border-color: #22c55e !important;
    border-width: 2px !important;
    background: rgba(34, 197, 94, 0.08) !important;
    color: #15803d !important;
}
.learn-outro-content .outro-short-field.selected-wrong {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
}
.learn-outro-content .outro-short-submit {
    background: #8b5a2b !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: 1px solid #734820 !important;
}
.learn-outro-content .outro-short-submit:hover {
    background: #734820 !important;
    transform: translateY(-1px) !important;
}

/* 퀴즈 피드백 영역 */
.learn-outro-content .outro-quiz-feedback {
    border-radius: 8px !important;
    padding: 12px !important;
    margin-top: 12px !important;
    font-size: 0.85rem !important;
    display: none;
}
.learn-outro-content .outro-quiz-feedback.correct {
    background: rgba(34, 197, 94, 0.08) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    color: #15803d !important;
}
.learn-outro-content .outro-quiz-feedback.wrong {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
}
.learn-outro-content .feedback-explanation {
    margin-top: 6px !important;
    font-size: 0.8rem !important;
    color: rgba(44, 37, 32, 0.75) !important;
    line-height: 1.55 !important;
}
.learn-outro-content .feedback-hint {
    margin-top: 4px !important;
    font-size: 0.78rem !important;
    color: rgba(44, 37, 32, 0.65) !important;
}

/* 퀴즈 가이드 가독성 보정 */
.learn-outro-content .outro-all-correct-banner {
    background: rgba(34, 197, 94, 0.08) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    text-align: center !important;
    margin-top: 20px !important;
}
.learn-outro-content .outro-all-correct-banner h3 {
    color: #16a34a !important;
    margin: 0 0 4px 0 !important;
    font-size: 1rem !important;
}
.learn-outro-content .outro-all-correct-banner p {
    color: rgba(44, 37, 32, 0.8) !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
}

/* 퀴즈 오답 보완학습 버튼 */
.learn-outro-content .outro-quiz-remedial-btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    background: #ffffff !important;
    color: #2c2520 !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 8px !important;
    border: 1px solid #c8bda9 !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-quiz-remedial-btn:hover {
    background: #faf8f5 !important;
    border-color: #8b5a2b !important;
}

/* 퀴즈 다시풀기 버튼 */
.learn-outro-content .outro-retry-quiz-btn {
    background: #ffffff !important;
    border: 1px solid #c8bda9 !important;
    color: #2c2520 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-retry-quiz-btn:hover {
    background: #faf8f5 !important;
}

/* 플래시카드 */
.learn-outro-content .fc-card {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid #dcd1c0 !important;
    transition: transform 0.4s !important;
    box-shadow: 0 4px 15px rgba(43, 35, 27, 0.05) !important;
}
.learn-outro-content .fc-card.is-flipped {
    transform: rotateY(180deg) !important;
}
.learn-outro-content .fc-scene {
    margin-bottom: 12px !important;
}
.learn-outro-content .fc-front {
    color: #2c2520 !important;
}
.learn-outro-content .fc-front .fc-card-hint {
    color: rgba(44, 37, 32, 0.4) !important;
}
.learn-outro-content .fc-back {
    background: rgba(139, 90, 43, 0.05) !important;
    color: #8b5a2b !important;
}
.learn-outro-content .outro-fc-study-btn {
    background: #8b5a2b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    margin-left: auto !important;
}

/* 타임라인 */
.learn-outro-content .tl-list {
    position: relative !important;
    padding-left: 10px !important;
    text-align: left !important;
}
.learn-outro-content .tl-list::before {
    content: '' !important;
    position: absolute !important;
    top: 6px !important;
    bottom: 6px !important;
    left: 14px !important;
    width: 1px !important;
    background: #dcd1c0 !important;
    z-index: 1 !important;
}
.learn-outro-content .tl-dot {
    background: #8b5a2b !important;
    box-shadow: 0 0 6px rgba(139, 90, 43, 0.3) !important;
}
.learn-outro-content .tl-year {
    color: #8b5a2b !important;
}
.learn-outro-content .tl-content {
    color: #2c2520 !important;
}

/* 하단 가이드 버튼 */
.learn-outro-content .outro-panel-guide {
    display: flex !important;
    justify-content: center !important;
    margin-top: 25px !important;
    border-top: 1px solid #dcd1c0 !important;
    padding-top: 16px !important;
}
.learn-outro-content .outro-modal-guide-btn,
.learn-outro-content .outro-guide-btn {
    background: #8b5a2b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: transform 0.2s, background 0.2s !important;
}
.learn-outro-content .outro-modal-guide-btn:hover,
.learn-outro-content .outro-guide-btn:hover {
    transform: translateY(-1px) !important;
    background: #734820 !important;
}

/* 추천 및 상품 */
.learn-outro-content .outro-cta-btn.test {
    background: #8b5a2b !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15) !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.learn-outro-content .outro-cta-btn.test i,
.learn-outro-content .outro-cta-btn.test .outro-cta-emoji {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    margin-bottom: 0 !important;
}
.learn-outro-content .outro-cta-btn.test .outro-cta-title,
.learn-outro-content .outro-cta-btn.test span {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}
.learn-outro-content .outro-cta-btn.shop {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid #dcd1c0 !important;
    color: #2c2520 !important;
}
.learn-outro-content .outro-cta-btn.shop i {
    color: #2c2520 !important;
}
.learn-outro-content .outro-cta-btn.shop span {
    color: rgba(44, 37, 32, 0.6) !important;
}
.learn-outro-content .outro-cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(43, 35, 27, 0.05) !important;
}
.learn-outro-content .outro-cta-btn.test:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(139, 90, 43, 0.25) !important;
    background: #754b22 !important;
}

.learn-outro-content .outro-series-item {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid #dcd1c0 !important;
    color: #2c2520 !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-series-item:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: #8b5a2b !important;
}
.learn-outro-content .outro-series-item--current {
    background: rgba(139, 90, 43, 0.05) !important;
    border-color: #8b5a2b !important;
    pointer-events: none !important;
    cursor: default !important;
}
.learn-outro-content .outro-series-item--current .outro-series-badge {
    background: #8b5a2b !important;
    color: #ffffff !important;
}
.learn-outro-content .outro-series-title {
    color: #2c2520 !important;
}

/* 시리즈 전체 보기 버튼 */
.learn-outro-content .outro-series-all-btn {
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: 1px dashed #c8bda9 !important;
    background: rgba(255, 255, 255, 0.45) !important;
    color: #8b5a2b !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}
.learn-outro-content .outro-series-all-btn:hover {
    background: rgba(139, 90, 43, 0.08) !important;
    border-color: #8b5a2b !important;
    transform: translateY(-1px) !important;
}

.learn-outro-content .outro-product-card {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid #dcd1c0 !important;
    color: #2c2520 !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-product-card:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: #8b5a2b !important;
    transform: translateY(-2px) !important;
}
.learn-outro-content .outro-product-title {
    color: #2c2520 !important;
}
.learn-outro-content .outro-product-price {
    color: #8b5a2b !important;
}

/* 각주 */
.learn-outro-content .outro-footnotes {
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px dashed #dcd1c0 !important;
}
.learn-outro-content .outro-footnotes-title {
    color: #8b5a2b !important;
}
.learn-outro-content .outro-footnote-item span {
    color: #2c2520 !important;
}

/* 하단 내비 버튼 */
.learn-outro-content .outro-sub-nav {
    margin-top: 30px !important;
}
.learn-outro-content .outro-sub-btn {
    border: 1px solid #c8bda9 !important;
    color: #2c2520 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.learn-outro-content .outro-sub-btn:hover {
    background: #faf8f5 !important;
    border-color: #8b5a2b !important;
    color: #8b5a2b !important;
}

/* 완료 후 시리즈 목록보기 팝업 모달이 아웃트로 모달 위에 잘 뜨도록 z-index 조율 */
#series-list-modal {
    z-index: 2200 !important;
}

/* 비활성화 탭 및 가이드 버튼 완전히 숨김 처리 */
.learn-outro-content .outro-tab.hidden,
.learn-outro-content .outro-modal-guide-btn.hidden,
.learn-outro-content .outro-guide-btn.hidden {
    display: none !important;
}

/* ── 요약/아웃트로 목록(bullet) 복구 및 하위 단락 들여쓰기 스타일 개선 ── */
.learn-summary-body ul,
.learn-outro-content .outro-article ul {
    list-style-type: disc !important;
    padding-left: 18px !important;
    margin: 10px 0 !important;
}
.learn-summary-body ol,
.learn-outro-content .outro-article ol {
    list-style-type: decimal !important;
    padding-left: 18px !important;
    margin: 10px 0 !important;
}
.learn-summary-body li,
.learn-outro-content .outro-article li {
    display: list-item !important;
    margin-bottom: 6px !important;
    line-height: 1.65 !important;
}

/* 목록 하단 상세 설명 단락(.sub) 들여쓰기 적용 */
.learn-summary-body .sub,
.learn-summary-body p.sub,
.learn-outro-content .outro-article .sub,
.learn-outro-content .outro-article p.sub {
    margin-left: 18px !important;
    display: block !important;
}

/* ── 단계 흐름(.stage), 섹션 바디(.section-body), 카드(.card) 깔끔한 밸런스 조정 ── */
/* 1) 다크 테마 (학습 중 요약) */
.learn-summary-body .stage {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}
.learn-summary-body .section-body {
    border-left: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 14px !important;
    margin-bottom: 24px !important;
}

/* 2) 라이트 테마 (학습 후 아웃트로 요약) */
.learn-outro-content .outro-article .card {
    background: #ffffff !important; /* 카드 본체는 흰색으로 배경색을 완전히 비움 */
    border: 1px solid rgba(139, 128, 115, 0.22) !important; /* 옅은 실선 테두리 */
    box-shadow: 0 2px 6px rgba(139, 128, 115, 0.02) !important;
}
.learn-outro-content .outro-article .stage {
    background: #efebe2 !important; /* → 가 들어가서 자동으로 만들어진 박스만 한 톤 진한 베이지 적용 */
    border: 1px solid #dfd8cb !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}
.learn-outro-content .outro-article .section-body {
    border-left: 1.5px solid #dcd1c0 !important;
    padding-left: 14px !important;
    margin-bottom: 24px !important;
}

/* 3) 모바일 화면 반응형 그리드 1열 세로 배치 조절 (다크/라이트 공통) */
@media (max-width: 600px) {
    .learn-summary-body .grid,
    .learn-outro-content .outro-article .grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* ── 임시 학습 노트 스타일 ── */
.learn-note-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--learn-text-sub, #8a7a6b);
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.learn-note-btn:hover {
    background: rgba(138, 122, 107, 0.1);
    color: var(--learn-accent, #b8860b);
}
.learn-note-btn.active {
    color: var(--learn-accent, #b8860b);
    background: rgba(184, 134, 11, 0.1);
}

/* ── 스크롤 모드 토글 버튼 ── */
.learn-scroll-btn {
    background: none;
    border: 1.5px solid var(--learn-border);
    font-size: 0.85rem;
    color: var(--learn-text-sub, #8a7a6b);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    touch-action: manipulation;
    margin-left: 6px;
}
.learn-scroll-btn:hover {
    border-color: var(--learn-gold);
    color: var(--learn-gold);
}
.learn-scroll-btn.active {
    color: #fff;
    background: var(--learn-accent, #3d2b1f);
    border-color: var(--learn-accent, #3d2b1f);
}

/* ── 스크롤 모드 레이아웃 ── */
.learn-chunk-area.scroll-mode {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: center;
    cursor: default;
    padding: 0 32px;
    gap: 0;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* 스크롤 카드 — min-height는 JS에서 컨테이너 높이로 설정 */
.learn-scroll-card {
    width: 100%;
    max-width: 680px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 48px 0;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.learn-scroll-card-num {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--learn-gold, #b8860b);
    letter-spacing: 1.5px;
    opacity: 0.45;
    white-space: nowrap;
}
.learn-scroll-card-text {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.15rem, 3.2vw, 1.5rem);
    font-weight: 400;
    line-height: 2.1;
    color: var(--learn-text);
    text-align: center;
    width: 100%;
    word-break: keep-all;
    white-space: pre-wrap;
    text-wrap: balance;
    letter-spacing: -0.3px;
}
.learn-scroll-card .learn-chunk-annotation {
    max-width: 100%;
    text-align: center;
    margin-top: 24px;
}
.learn-scroll-card .learn-chunk-img-wrap {
    margin-bottom: 28px;
    margin-top: 0;
    max-width: 100%;
}
@media (max-width: 600px) {
    .learn-chunk-area.scroll-mode { padding: 0 20px; }
    .learn-scroll-card { padding: 36px 0; }
    .learn-scroll-card-text { font-size: clamp(1.05rem, 4vw, 1.3rem); }
    .learn-scroll-card-num { margin-bottom: 24px; }
}

/* 플로팅 팝업 */
.study-note-popup {
    position: fixed;
    z-index: 1000;
    width: 320px;
    height: 360px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    pointer-events: none;
}
.study-note-popup.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* 팝업 헤더 */
.study-note-header {
    padding: 12px 16px;
    background: rgba(138, 122, 107, 0.08);
    border-bottom: 1px solid rgba(138, 122, 107, 0.12);
    display: flex;
    align-items: center;
    cursor: move;
    user-select: none;
}
.study-note-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #4e3a29;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.study-note-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #8a7a6b;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    width: 24px;
    height: 24px;
}
.study-note-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #dc2626;
}

/* 팝업 바디 */
.study-note-body {
    flex: 1;
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.study-note-textarea {
    flex: 1;
    width: 100%;
    resize: none;
    border: 1px solid rgba(138, 122, 107, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2c2520;
    background: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.study-note-textarea:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    background: #fff;
}

/* 팝업 푸터 */
.study-note-footer {
    padding: 8px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #8a7a6b;
    background: transparent;
}
.study-note-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8a7a6b;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.study-note-status.saving {
    color: #b8860b;
}
.study-note-status.success {
    color: #166534;
}
.study-note-actions {
    display: flex;
    gap: 6px;
}
.study-note-btn-action {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.study-note-btn-save {
    background: #b8860b;
    color: #fff;
}
.study-note-btn-save:hover {
    background: #966f07;
}
.study-note-btn-delete {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.study-note-btn-delete:hover {
    background: rgba(220, 38, 38, 0.15);
}

/* CSS 자체 resize가 작동하도록 popup에 resize:both 설정 */
.study-note-popup.resizable {
    resize: both;
    overflow: hidden;
}

/* 모바일 뷰 (Bottom Sheet 형태로 전환) */
@media (max-width: 768px) {
    .study-note-popup {
        width: 100% !important;
        height: 50vh !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        resize: none !important;
    }
    .study-note-popup.visible {
        transform: translateY(0) scale(1) !important;
    }
    .study-note-popup:not(.visible) {
        transform: translateY(100%) scale(1) !important;
    }
    .study-note-header {
        cursor: default;
    }
}

/* ── 소제목(챕터) 브레이크 페이지 스타일 ── */
.learn-viewer.is-subtitle {
    background: var(--learn-accent) !important;
    transition: background 0.4s ease;
}

/* 상단 영역 */
.learn-viewer.is-subtitle .learn-progress-wrap {
    background: var(--learn-accent) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.learn-viewer.is-subtitle .learn-sequence-title {
    color: #f3ede2 !important;
}
.learn-viewer.is-subtitle .learn-step-counter {
    color: var(--learn-gold) !important;
}
.learn-viewer.is-subtitle .learn-step-counter:hover {
    background: rgba(255,255,255,0.08);
}

/* 상단 버튼들 반전 테마 */
.learn-viewer.is-subtitle .learn-back-btn,
.learn-viewer.is-subtitle .learn-skip-btn,
.learn-viewer.is-subtitle .learn-auto-btn,
.learn-viewer.is-subtitle .learn-note-btn,
.learn-viewer.is-subtitle .learn-scroll-btn {
    background: rgba(255,255,255,0.06) !important;
    color: #f3ede2 !important;
    border-color: rgba(255,255,255,0.15) !important;
}
.learn-viewer.is-subtitle .learn-back-btn:hover,
.learn-viewer.is-subtitle .learn-skip-btn:hover,
.learn-viewer.is-subtitle .learn-auto-btn:hover,
.learn-viewer.is-subtitle .learn-note-btn:hover,
.learn-viewer.is-subtitle .learn-scroll-btn:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: var(--learn-gold) !important;
    color: var(--learn-gold) !important;
}

/* 탭 힌트 */
.learn-viewer.is-subtitle .learn-tap-hint {
    color: rgba(245, 241, 235, 0.45) !important;
}

/* 소제목 본문 글자 스타일 */
.learn-viewer.is-subtitle .learn-chunk-text {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.4rem, 4.5vw, 1.95rem) !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    color: #f3ede2 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 720px;
    padding: 30px 20px;
    position: relative;
}

/* 소제목 텍스트 위아래 골드 데코레이션 선 */
.learn-viewer.is-subtitle .learn-chunk-text::before,
.learn-viewer.is-subtitle .learn-chunk-text::after {
    content: '';
    display: block;
    width: 60px;
    height: 1.5px;
    background: var(--learn-gold);
    margin: 20px auto;
    opacity: 0.65;
}

/* 스크롤 모드에서의 소제목 카드 스타일 */
.learn-scroll-card.is-subtitle {
    background: var(--learn-accent) !important;
    color: #f3ede2 !important;
    border-radius: 16px;
    padding: 60px 40px !important;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(61,43,31,0.15);
    border: 1px solid rgba(184,134,11,0.2) !important;
}
.learn-scroll-card.is-subtitle .learn-scroll-card-text {
    color: #f3ede2 !important;
    font-size: clamp(1.3rem, 4vw, 1.75rem) !important;
    font-weight: 700 !important;
}
.learn-scroll-card.is-subtitle .learn-scroll-card-num {
    color: var(--learn-gold) !important;
    opacity: 0.8;
}

/* 스크롤 소제목 위아래 데코 선 */
.learn-scroll-card.is-subtitle .learn-scroll-card-text::before,
.learn-scroll-card.is-subtitle .learn-scroll-card-text::after {
    content: '';
    display: block;
    width: 50px;
    height: 1.5px;
    background: var(--learn-gold);
    margin: 18px auto;
    opacity: 0.65;
}



