        /* chart-neo/wiki.css 전역 body overflow:hidden 무효화 */
        html,
        body {
            height: auto !important;
            min-height: 100%;
            overflow-y: auto !important;
            overflow-x: hidden;
        }

        /* 컨테이너 레이아웃 미세 조정 */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 1rem;
            position: relative;
        }

        .post-detail-container {
            display: flex;
            position: relative;
            margin-top: 1.5rem;
        }

        .post-detail {
            flex: 1;
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--box-shadow);
            overflow-y: visible;
        }

        .post-detail-header {
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--primary-color);
            position: relative;
        }

        .post-detail-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 80px;
            height: 2px;
            background-color: var(--accent-color);
        }

        .post-detail-header h1 {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 1.2rem;
            word-break: break-word;
        }

        .post-detail-meta {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            /* 한 줄 유지 */
            gap: 0.75rem;
            color: #666;
            font-size: 0.95rem;
        }

        .post-detail-meta #post-author {
            color: #444;
            font-weight: 500;
        }

        .post-detail-meta #post-author {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 70%;
            /* 왼쪽 영역에서 과도한 확장 방지 */
        }

        .post-detail-meta #post-date {
            margin-left: auto;
            /* 항상 우측 정렬 */
            white-space: nowrap;
            color: #7a7a7a;
            font-weight: 500;
            letter-spacing: 0.1px;
            flex: 0 0 auto;
        }

        /* 게시글 내용 스타일 개선 */
        .post-detail-content {
            line-height: 1.9;
            color: #333;
            font-size: 1rem;
            /* 폰트 크기 키움 */
        }

        /* Quill 에디터와 동일한 스타일 적용 */
        .post-detail-content p {
            margin: 0 0 1em 0;
            line-height: 1.6;
        }

        .post-detail-content h1,
        .post-detail-content h2,
        .post-detail-content h3,
        .post-detail-content h4,
        .post-detail-content h5,
        .post-detail-content h6 {
            margin-top: 1.5em;
            margin-bottom: 0.5em;
            font-weight: 600;
            line-height: 1.3;
        }

        .post-detail-content ul,
        .post-detail-content ol {
            margin-bottom: 1em;
            padding-left: 2em;
        }

        .post-detail-content li {
            margin-bottom: 0.3em;
        }

        .post-detail-content blockquote {
            border-left: 4px solid var(--color-primary);
            background: #f8f9fa;
            margin: 1rem 0;
            padding: 1rem;
            font-style: italic;
            color: #555;
        }

        .post-detail-content blockquote p {
            margin: 0 0 1rem 0;
        }

        .post-detail-content blockquote p:last-child {
            margin-bottom: 0;
        }

        /* Quill 스타일 호환성 추가 */
        .post-detail-content .ql-size-small {
            font-size: 0.75em;
        }

        .post-detail-content .ql-size-large {
            font-size: 1.5em;
        }

        .post-detail-content .ql-size-huge {
            font-size: 2.5em;
        }

        .post-detail-content h1 {
            font-size: 2em;
            margin-bottom: 0.5em;
        }

        .post-detail-content h2 {
            font-size: 1.5em;
            margin-bottom: 0.5em;
        }

        .post-detail-content ul,
        .post-detail-content ol {
            padding-left: 2em;
            margin-bottom: 1em;
        }

        .post-detail-content pre {
            background-color: #f0f0f0;
            border-radius: 3px;
            padding: 0.5em;
            margin-bottom: 1em;
            white-space: pre-wrap;
        }

        .post-detail-content code {
            background-color: #f0f0f0;
            border-radius: 3px;
            padding: 0 0.3em;
            font-family: monospace;
        }

        .post-detail-content p {
            margin-bottom: 1em;
        }

        .post-detail-content {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .post-detail-content strong {
            font-weight: bold;
        }

        .post-detail-content em {
            font-style: italic;
        }

        .post-detail-content u {
            text-decoration: underline;
        }

        .post-detail-content s {
            text-decoration: line-through;
        }

        /* 인용 블롯 스타일 - 에디터와 동일하게 */
        .post-detail-content .citation-inline {
            display: inline;
            padding: 0 1px;
            margin: 0 1px;
            color: var(--primary-color);
            background-color: rgba(59, 130, 246, 0.12);
            border-radius: 3px;
            text-decoration: none;
            cursor: pointer;
            vertical-align: baseline;
            line-height: 1.4;
            font-size: 0.95em;
            font-weight: normal;
            transition: background-color 0.2s ease;
            border: 1px solid rgba(90, 143, 123, 0.3);
            min-height: 1.2em;
        }

        .post-detail-content .citation-inline:hover {
            background-color: rgba(59, 130, 246, 0.2);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .citations-sidebar {
            position: relative;
            top: 0;
            /* 헤더 아래 20px 고정 */
            right: 0;
            width: 400px;
            max-height: calc(100vh - 120px);
            /* 상하 여백 고려 */
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-color);
            border-radius: var(--border-radius);
            z-index: 90;
            box-shadow: var(--box-shadow);
            margin-left: 30px;
        }

        .citations-sidebar h2 {
            margin: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eee;
            color: var(--primary-color);
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .citations-sidebar-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .citations-sidebar-head h2 {
            flex: 1 1 auto;
        }

        .citations-modal-close {
            display: none;
            margin-right: 0.8rem;
            width: 32px;
            height: 32px;
            border: 1px solid #d8e1ef;
            border-radius: 8px;
            background: #fff;
            color: #344054;
            cursor: pointer;
            align-items: center;
            justify-content: center;
        }

        .citations-modal-backdrop {
            display: none;
        }

        #citations-list-container {
            flex-grow: 1;
            overflow-y: auto;
            padding: 0 1rem 1rem;
            position: relative;
        }

        #citations-list-container::-webkit-scrollbar {
            width: 6px;
        }

        #citations-list-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        #citations-list-container::-webkit-scrollbar-thumb {
            background: #aaa;
            border-radius: 10px;
        }

        .citation-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.2rem;
            margin-bottom: 1rem;
            box-shadow: var(--box-shadow);
            border-top: 4px solid var(--accent-color);
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .citation-card h3 {
            font-size: 1.05rem;
            color: var(--primary-color);
            margin-bottom: 0.8rem;
            padding-bottom: 0.6rem;
            border-bottom: 1px solid #eee;
        }

        .citation-content {
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .citation-original {
            color: #333;
            margin-bottom: 0.6rem;
            padding: 0.6rem;
            background-color: #f9f9f9;
            border-radius: 6px;
            font-weight: 500;
        }

        .citation-translation {
            color: #555;
            font-style: italic;
            padding: 0.6rem;
        }

        .post-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #eee;
        }

        .edit-btn,
        .delete-btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: var(--border-radius);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .edit-btn {
            background-color: var(--primary-color);
            color: white;
        }

        .delete-btn {
            background-color: #dc3545;
            color: white;
        }

        .edit-btn:hover,
        .delete-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        /* 미디어 쿼리 */
        @media (max-width: 992px) {
            .post-detail-container {
                flex-direction: column;
            }

            .citations-sidebar {
                position: relative;
                width: 100%;
                height: auto;
                max-height: 500px;
                margin-top: 2rem;
                margin-left: 0;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 0.75rem;
                margin: 0;
                max-width: 100%;
            }

            .post-detail-container {
                margin-top: 0;
            }

            .post-detail {
                background: none;
                border-radius: 0;
                padding: 1rem 0.5rem;
                box-shadow: none;
                margin: 0;
            }

            .post-detail-header {
                margin-bottom: 1.5rem;
                padding-bottom: 1rem;
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }

            .post-detail-header h1 {
                font-size: 1.3rem;
                line-height: 1.35;
                margin-bottom: 0.4rem;
            }

            .post-detail-meta {
                gap: 0.5rem;
                font-size: 0.8rem;
                line-height: 1.2;
            }

            .post-detail-meta #post-author {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                max-width: 70%;
            }

            .post-detail-meta #post-date {
                white-space: nowrap;
                color: #7a7a7a;
                font-size: 0.78rem;
            }

            .post-detail-content {
                padding: 0 0.5rem;
                font-size: 0.93rem;
                line-height: 1.65;
            }

            .comments-section {
                margin-top: 2rem;
                padding-top: 1.5rem;
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }

            .comments-section h3 {
                font-size: 1.3rem;
                margin-bottom: 1rem;
            }

            .comment {
                background: white;
                border-radius: 8px;
                padding: 0.8rem;
                margin-bottom: 0;
                border: 1px solid #e9ecef;
            }

            .comment-form textarea {
                padding: 0.8rem;
                font-size: 0.9rem;
            }

            .comment-form .btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }

            .citations-sidebar {
                margin-top: 1.5rem;
                padding: 0 0.5rem;
            }

            footer {
                padding: 1.5rem 0.8rem;
                margin-top: 0;
            }

            footer p {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 0.5rem;
            }

            .post-detail {
                padding: 0.5rem 0.25rem;
            }

            .post-detail-header {
                padding-left: 0.25rem;
                padding-right: 0.25rem;
                margin-bottom: 1rem;
            }

            .post-detail-header h1 {
                font-size: 1.15rem;
                margin-bottom: 0.3rem;
            }

            .post-detail-meta {
                gap: 6px;
                font-size: 0.78rem;
            }

            .post-detail-meta #post-date {
                font-size: 0.75rem;
            }

            .post-detail-content {
                padding: 0 0.25rem;
                font-size: 0.9rem;
                line-height: 1.6;
            }

            .comments-section {
                padding-left: 0.25rem;
                padding-right: 0.25rem;
                margin-top: 1.5rem;
            }

            .comments-section h3 {
                font-size: 1.2rem;
            }

            .comment {
                padding: 0.6rem;
                margin-bottom: 0;
                border-radius: 6px;
            }

            .comment-form textarea {
                padding: 0.6rem;
                font-size: 0.85rem;
            }

            .comment-form .btn {
                padding: 0.5rem 1rem;
                font-size: 0.85rem;
            }

            .citations-sidebar {
                padding: 0 0.25rem;
            }

            footer {
                padding: 1rem 0.5rem;
                margin-top: 0;
            }

            footer p {
                font-size: 0.65rem;
            }
        }

        @media (max-width: 425px) {
            footer {
                padding: 0.8rem 0.4rem;
                margin-top: 0;
            }

            footer p {
                font-size: 0.6rem;
            }
        }

        /* 인용 링크 스타일 */
        .post-detail-content a.citation-link {
            color: var(--primary-color);
            text-decoration: none;
            padding: 0 3px;
            margin: 0 2px;
            background-color: rgba(59, 130, 246, 0.12);
            border-radius: 3px;
            transition: var(--transition);
            cursor: pointer;
            line-height: 1.4;
            display: inline-flex;
            align-items: center;
            vertical-align: baseline;
        }

        .post-detail-content a.citation-link:hover {
            background-color: rgba(59, 130, 246, 0.2);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .post-detail-content a.citation-link.active {
            background-color: rgba(59, 130, 246, 0.25);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            font-weight: 500;
        }

        /* 기존 인용 링크 호환성 스타일은 유지 */
        .post-detail-content a:not(.citation-link) {
            color: var(--primary-color);
            text-decoration: none;
            padding: 0 3px;
            margin: 0 2px;
            background-color: rgba(59, 130, 246, 0.12);
            border-radius: 3px;
            transition: var(--transition);
            cursor: pointer;
            line-height: 1.4;
            display: inline;
            vertical-align: baseline;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        /* 인용 카드 강조 스타일 */
        .citation-card.highlighted {
            box-shadow: 0 0 0 3px var(--accent-color), var(--box-shadow);
            animation: pulse-highlight 2s infinite;
            position: relative;
            z-index: 2;
        }

        @keyframes pulse-highlight {
            0% {
                box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.7), var(--box-shadow);
            }

            50% {
                box-shadow: 0 0 0 5px rgba(212, 163, 115, 0.9), var(--box-shadow);
            }

            100% {
                box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.7), var(--box-shadow);
            }
        }

        /* 댓글 섹션 스타일 */
        .comments-section {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 2px solid #eee;
        }

        .comments-section h3 {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
        }

        .comment-form {
            margin-bottom: 2rem;
        }

        .comment-form textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            resize: vertical;
            font-family: inherit;
            font-size: 0.95rem;
            margin-bottom: 1rem;
            transition: border-color 0.3s ease;
        }

        .comment-form textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
        }

        .comment-form .btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .comment-form .btn:hover {
            background-color: var(--primary-color-dark, #2563eb);
            transform: translateY(-1px);
        }

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .comment {
            background: white;
            border-radius: 12px;
            padding: 0.8rem;
            border: 1px solid #e9ecef;
            margin-bottom: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.6rem;
        }

        .comment-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .comment-author img {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
        }

        .comment-author-name {
            font-weight: 500;
            color: #333;
            font-size: 0.9rem;
        }

        .comment-date {
            color: #666;
            font-size: 0.85rem;
        }

        .comment-content {
            color: #555;
            line-height: 1.5;
            margin-bottom: 0.8rem;
            font-size: 0.95rem;
            white-space: pre-wrap;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .comment-actions {
            display: flex;
            gap: 0.8rem;
        }

        .comment-action-btn {
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            font-size: 0.8rem;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .comment-action-btn:hover {
            background-color: #f8f9fa;
            color: #333;
            transform: none;
            box-shadow: none;
        }

        .comment-action-btn.reply-btn:hover {
            color: #28a745;
            transform: none;
        }

        .comment-action-btn.edit-btn:hover {
            color: #fd7e14;
            transform: none;
        }

        .comment-action-btn.delete-btn:hover {
            color: #dc3545;
            transform: none;
        }

        .reply-form {
            margin-top: 0.8rem;
            border: 1px solid #e4e9ef;
            border-radius: 14px;
            background: #ffffff;
            padding: 0.9rem;
        }

        .reply-form textarea {
            width: 100%;
            min-height: 104px;
            border: 0;
            border-radius: 11px;
            background: #f4f7f8;
            color: #1f2937;
            font-size: 0.85rem;
            line-height: 1.6;
            padding: 0.7rem 0.78rem;
            resize: none;
            outline: none;
            margin-bottom: 0;
        }

        .reply-form textarea:focus {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .reply-form .pv-comment-profile {
            display: flex;
            align-items: center;
            gap: 0.62rem;
            margin-bottom: 0.65rem;
        }

        .reply-form .pv-comment-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #eaf2ff;
            color: #1e40af;
            font-size: 0.78rem;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .reply-form .pv-comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .reply-form .pv-comment-author strong {
            display: block;
            color: #24323c;
            font-size: 0.82rem;
            line-height: 1.2;
        }

        .reply-form .pv-comment-author span {
            display: block;
            margin-top: 0.08rem;
            color: #6b7280;
            font-size: 0.72rem;
        }

        .reply-form .pv-comment-bottom {
            margin-top: 0.58rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.45rem;
        }

        .reply-form .pv-comment-actions {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .reply-form .pv-comment-secret {
            border: 1px solid #e0e6ec;
            border-radius: 999px;
            background: #ffffff;
            color: #334155;
            height: 30px;
            padding: 0 0.6rem;
            font-size: 0.74rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            cursor: pointer;
        }

        .reply-form .pv-comment-submit,
        .reply-form .pv-comment-cancel {
            border-radius: 999px;
            height: 30px;
            padding: 0 0.74rem;
            font-size: 0.76rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .reply-form .pv-comment-submit {
            background: #3b82f6;
            color: #ffffff;
        }

        .reply-form .pv-comment-submit:hover {
            background: #2563eb;
        }

        .reply-form .pv-comment-cancel {
            border-color: #e0e6ec;
            background: #ffffff;
            color: #475467;
        }

        .replies {
            margin-top: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .reply {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 0.6rem;
            margin-bottom: 0;
            border: 1px solid #edf2f7;
            position: relative;
        }

        .reply::before {
            content: "└";
            position: absolute;
            left: -15px;
            top: 15px;
            color: #cbd5e0;
            font-size: 1.2rem;
            display: none;
            /* 플랫 레이아웃을 위해 숨김 */
        }

        .reply:last-child {
            margin-bottom: 0;
        }

        .edit-form {
            margin-top: 0.7rem;
            border: 1px solid #e4e9ef;
            border-radius: 14px;
            background: #ffffff;
            padding: 0.9rem;
        }

        .edit-form textarea {
            width: 100%;
            min-height: 104px;
            border: 0;
            border-radius: 11px;
            background: #f4f7f8;
            color: #1f2937;
            font-size: 0.85rem;
            line-height: 1.6;
            padding: 0.7rem 0.78rem;
            resize: none;
            outline: none;
            margin-bottom: 0;
        }

        .edit-form textarea:focus {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .edit-form .pv-comment-bottom {
            margin-top: 0.58rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.45rem;
        }

        .edit-form .pv-comment-actions {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .edit-form .pv-comment-submit,
        .edit-form .pv-comment-cancel {
            border-radius: 999px;
            height: 30px;
            padding: 0 0.74rem;
            font-size: 0.76rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .edit-form .pv-comment-submit {
            background: #3b82f6;
            color: #ffffff;
        }

        .edit-form .pv-comment-submit:hover {
            background: #2563eb;
        }

        .edit-form .pv-comment-cancel {
            border-color: #e0e6ec;
            background: #ffffff;
            color: #475467;
        }

        /* 푸터 스타일 */
        #site-footer {
            padding: 0;
            margin-top: 0;
            border: 0;
            background: transparent;
        }

        footer {
            text-align: center;
            padding: 2rem 1rem;
            margin-top: 0;
            color: #666;
            border-top: 0;
            background: #ffffff;
        }

        footer p {
            font-size: 0.8rem;
            margin: 0;
        }

        .post-view-page {
            background: #ffffff;
            min-height: calc(100vh - 120px);
            padding: 1.25rem 0 2.2rem;
        }

        .container {
            max-width: 1180px;
        }

        .post-detail-container {
            gap: 1.5rem;
            align-items: flex-start;
            justify-content: center;
        }

        .post-detail {
            flex: 0 1 760px;
            max-width: 760px;
            min-width: 0;
            margin: 0 auto;
            border: 0;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
            padding: 0.6rem 0 1.4rem;
        }

        .post-detail-header {
            border-bottom: 1px solid #e8ecef;
            margin-bottom: 1.35rem;
            padding-bottom: 1.1rem;
        }

        .post-detail-header::after {
            display: none;
        }

        .post-detail-header-top {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 1.1rem;
            gap: 1rem;
        }

        .post-nav-group {
            display: inline-flex;
            align-items: center;
            min-width: 0;
        }

        .back-to-list {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.36rem;
            height: 36px;
            padding: 0 0.64rem 0 0.54rem;
            border-radius: 999px;
            border: 1px solid transparent;
            background: transparent;
            color: #667085;
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.18s ease;
        }

        .back-to-list i {
            font-size: 0.74rem;
        }

        .back-to-list:hover {
            border-color: #e4e9ee;
            background: #f8fafc;
            color: #475467;
        }

        .post-header-right {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            margin-left: auto;
        }

        .post-breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 0.42rem;
            margin-bottom: 0;
            color: #6b7280;
            font-size: 0.82rem;
            font-weight: 600;
            line-height: 1;
        }

        .post-breadcrumb-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.8rem;
            margin-bottom: 0.62rem;
        }

        .post-breadcrumb i {
            font-size: 0.64rem;
            color: #98a2b3;
        }

        .post-breadcrumb .crumb-base {
            color: #98a2b3;
            font-weight: 500;
        }

        .post-breadcrumb .crumb-current {
            color: #4f6f9c;
            text-decoration: none;
            font-weight: 700;
        }

        /* 밑줄은 긋지 않는다 — 까닭은 classic-detail.css 의 .cd-breadcrumb a:hover 주석에.
           이 선택자는 theme.dark.css 의 전역 `a:hover` 보다 세서 다크까지 걸린다.
           다크 호버 색은 아래 body[data-theme="dark"] 묶음에 따로 뒀다. */
        .post-breadcrumb .crumb-current:hover {
            color: var(--color-primary-strong);
        }

        .post-detail-header h1 {
            font-size: 2rem;
            margin-bottom: 0.7rem;
            line-height: 1.32;
        }

        .post-detail-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
        }

        .meta-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.82rem;
            border: 0;
            background: #fbfcfc;
            border-radius: 8px;
            padding: 0.34rem 0.56rem;
            color: #475467;
            min-width: 0;
            line-height: 1.2;
        }

        .meta-inline {
            display: inline-flex;
            align-items: center;
            gap: 0.28rem;
            font-size: 0.88rem;
            color: #667085;
            line-height: 1.2;
            white-space: nowrap;
        }

        .meta-inline strong {
            color: #344054;
            font-weight: 600;
        }

        .meta-chip strong {
            color: #1f2937;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #post-views {
            font-size: 0.74rem;
            padding: 0.28rem 0.46rem;
            background: #fafbfd;
            border-color: #edf1f5;
            margin-left: auto;
            width: auto;
        }

        #post-views strong {
            font-size: 0.78rem;
            color: #667085;
            font-weight: 500;
        }

        .post-tag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-top: 0.15rem;
        }

        .post-detail-content {
            max-width: 100%;
        }

        .post-tag {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            border: 1px solid #d5dde5;
            background: #f3f6f9;
            color: #475467;
            padding: 0.34rem 0.72rem;
            font-size: 0.76rem;
            font-weight: 500;
            line-height: 1;
        }

        .post-tag.is-empty {
            opacity: 0.8;
        }

        .post-actions {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0;
            padding-top: 0;
            border-top: 0;
        }

        .post-actions .edit-btn,
        .post-actions .delete-btn {
            border: 1px solid #e2e8ef;
            background: #fcfdff;
            color: #475467;
            border-radius: 999px;
            height: 36px;
            padding: 0 0.9rem;
            font-size: 0.82rem;
            font-weight: 600;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.38rem;
            box-shadow: none;
            transform: none;
            transition: all 0.18s ease;
        }

        .post-actions .edit-btn:hover {
            background: #f7fafc;
            border-color: #d7dee6;
            color: #344054;
            transform: none;
            box-shadow: none;
        }

        .post-actions:empty {
            display: none;
        }

        .post-detail-meta #post-author,
        .post-detail-meta #post-date {
            margin-left: 0;
            max-width: none;
            overflow: visible;
            text-overflow: clip;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
        }

        .post-detail-meta #post-date {
            margin-left: 0.2rem;
            padding-left: 0.6rem;
            border-left: 1px solid #e3e8ef;
        }

        .post-actions .delete-btn {
            border-color: #f0dfe1;
            color: #8b3a3f;
            background: #fffafb;
        }

        .post-actions .delete-btn:hover {
            background: #fff2f3;
            border-color: #e8cbce;
            color: #7c3035;
            transform: none;
            box-shadow: none;
        }

        .citations-sidebar {
            flex: 0 0 390px;
            width: 390px;
            border: 1px solid #e9edf2;
            border-radius: 14px;
            box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
            margin-left: 0;
            background: #fff;
        }

        .citations-sidebar h2 {
            border-bottom: 1px solid #e8ecef;
            margin: 0;
            padding: 1rem 1.1rem 0.85rem;
            font-size: 1.05rem;
            color: #344054;
        }

        #citations-list-container {
            padding: 1rem;
        }

        .citation-card {
            border-top: none;
            border: 1px solid #edf1f5;
            border-radius: 10px;
            box-shadow: none;
            background: #fff;
            margin-bottom: 0.75rem;
        }

        .comments-section {
            border-top: 0;
            margin-top: 2.2rem;
            padding-top: 1.35rem;
        }

        .comments-section h3 {
            color: #344054;
            font-size: 1.1rem;
            margin-bottom: 0.85rem;
        }

        .comments-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0;
        }

        .comments-toolbar-left,
        .comments-toolbar-right {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
        }

        .comments-divider {
            height: 1px;
            background: #e8edf3;
            margin: 0.7rem 0;
        }

        .comments-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.85rem;
        }

        .comments-head h3 {
            margin: 0;
        }

        .comments-count {
            margin-left: 0.35rem;
            color: #2563eb;
            font-size: 1.08rem;
            font-weight: 700;
            vertical-align: baseline;
        }

        .comments-empty-card {
            border: 1px solid #e5edf8;
            border-radius: 12px;
            background: #f8fbff;
            padding: 1rem 1.1rem;
            display: flex;
            align-items: flex-start;
            gap: 0.72rem;
            color: #334155;
        }

        .comments-empty-card i {
            margin-top: 0.08rem;
            color: #3b82f6;
            font-size: 0.95rem;
        }

        .comments-empty-card strong {
            display: block;
            font-size: 0.9rem;
            color: #1e293b;
            margin-bottom: 0.2rem;
        }

        .comments-empty-card p {
            margin: 0;
            font-size: 0.82rem;
            color: #64748b;
            line-height: 1.55;
        }

        .post-like-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border: 1px solid #dbe3ec;
            border-radius: 999px;
            background: #ffffff;
            color: #475467;
            height: 36px;
            padding: 0 0.9rem;
            font-size: 0.84rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .post-like-btn:hover {
            border-color: #cdd8e4;
            background: #f8fafc;
            color: #334155;
        }

        .post-like-btn.is-liked {
            border-color: #bfd5fb;
            background: #eef4ff;
            color: #1d4ed8;
        }

        .post-scrap-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border: 1px solid #dbe3ec;
            border-radius: 999px;
            background: #ffffff;
            color: #475467;
            height: 36px;
            padding: 0 0.9rem;
            font-size: 0.84rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .post-scrap-btn:hover {
            border-color: #cdd8e4;
            background: #f8fafc;
            color: #334155;
        }

        .post-scrap-btn.is-scrapped {
            border-color: #bfd5fb;
            background: #eef4ff;
            color: #1d4ed8;
        }

        .post-export-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border: 1px solid #dbe3ec;
            border-radius: 999px;
            background: #ffffff;
            color: #475467;
            height: 36px;
            padding: 0 0.9rem;
            font-size: 0.84rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .post-export-btn:hover {
            border-color: #cdd8e4;
            background: #f8fafc;
            color: #334155;
        }

        .comments-sort-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border: 1px solid #bfd5fb;
            border-radius: 999px;
            background: #eef4ff;
            color: #1d4ed8;
            height: 32px;
            padding: 0 0.72rem;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .comments-sort-btn:hover {
            border-color: #9cbcf3;
            background: #e4eeff;
            color: #1e40af;
        }

        .comment-form {
            margin-bottom: 1.15rem;
        }

        .pv-comment-shell {
            border: 1px solid #cdddf7;
            border-radius: 14px;
            background: #ffffff;
            padding: 0.95rem;
            box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
        }

        .pv-comment-profile {
            display: flex;
            align-items: center;
            gap: 0.62rem;
            margin-bottom: 0.75rem;
        }

        .pv-comment-avatar {
            position: relative;
            overflow: hidden;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #eaf2ff;
            color: #1e40af;
            font-size: 0.85rem;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .pv-comment-avatar img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        .pv-comment-avatar.has-photo img {
            display: block;
        }

        .pv-comment-avatar.has-photo {
            color: transparent;
        }

        .pv-comment-author strong {
            display: block;
            color: #24323c;
            font-size: 0.88rem;
            line-height: 1.2;
        }

        .pv-comment-author span {
            display: block;
            margin-top: 0.12rem;
            color: #6b7280;
            font-size: 0.76rem;
        }

        .pv-comment-shell textarea {
            width: 100%;
            min-height: 120px;
            border: 0;
            border-radius: 11px;
            background: #f4f7f8;
            color: #1f2937;
            font-size: 0.86rem;
            line-height: 1.6;
            padding: 0.72rem 0.78rem;
            resize: none;
            outline: none;
            margin-bottom: 0;
        }

        .pv-comment-shell textarea:focus {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .pv-comment-bottom {
            margin-top: 0.62rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .pv-comment-secret {
            border: 1px solid #e0e6ec;
            border-radius: 999px;
            background: #ffffff;
            color: #334155;
            height: 32px;
            padding: 0 0.66rem;
            font-size: 0.78rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.32rem;
            cursor: default;
        }

        .pv-comment-submit {
            border: 1px solid transparent;
            border-radius: 999px;
            background: #3b82f6;
            color: #ffffff;
            height: 32px;
            padding: 0 0.85rem;
            font-size: 0.8rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .pv-comment-submit:hover {
            background: #2563eb;
        }

        .comment {
            border: 1px solid #e5e9ef;
            border-radius: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
            box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
            padding: 0.85rem;
        }

        @media (max-width: 992px) {
            .post-detail-meta {
                gap: 0.45rem;
            }

            .citations-sidebar {
                flex: 0 0 340px;
                width: 340px;
            }
        }

        @media (max-width: 768px) {
            .post-view-page {
                padding: 0.7rem 0 1.6rem;
            }

            .post-detail {
                max-width: none;
                padding: 0.3rem 0 1rem;
                border-radius: 0;
                box-shadow: none;
                background: transparent;
            }

            .post-detail-header {
                padding-left: 0;
                padding-right: 0;
            }

            .post-detail-header h1 {
                font-size: 1.34rem;
                margin-bottom: 0.6rem;
            }

            .post-detail-meta {
                gap: 0.45rem;
                margin-bottom: 0.7rem;
            }

            .post-detail-header-top {
                flex-wrap: wrap;
                align-items: flex-start;
            }

            .post-breadcrumb-row {
                width: 100%;
                justify-content: space-between;
            }

            #post-views {
                margin-left: 0;
            }

            .meta-chip {
                font-size: 0.79rem;
            }

            .comments-section {
                margin-top: 1.8rem;
                padding-top: 1.1rem;
            }

            .citations-sidebar {
                display: none !important;
                position: fixed;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                width: min(92vw, 480px);
                max-height: 78vh;
                height: auto;
                margin: 0;
                z-index: 1200;
                border-radius: 14px;
                box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
                background: #fff;
                overflow: hidden;
            }

            .citations-sidebar.is-open {
                display: flex !important;
            }

            .citations-modal-close {
                display: inline-flex;
            }

            .citations-modal-backdrop {
                position: fixed;
                inset: 0;
                display: none;
                background: rgba(15, 23, 42, 0.45);
                z-index: 1190;
            }

            .citations-modal-backdrop.is-open {
                display: block;
            }

            body.citations-modal-open {
                overflow: hidden;
            }
        }

        /* Tablet only: widen post-view body at 768px range */
        @media (min-width: 577px) and (max-width: 768px) {
            .container {
                max-width: 100%;
                padding-left: 0.8rem;
                padding-right: 0.8rem;
            }

            .post-detail-container {
                gap: 0.7rem;
            }

            .post-detail {
                flex: 1 1 100%;
                width: 100%;
                max-width: 100%;
            }
        }

        /* Mobile only: keep near full width with minimal side spacing */
        @media (max-width: 576px) {
            .container {
                max-width: 100%;
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }

            .post-detail-container {
                gap: 0.35rem;
            }

            .post-detail {
                flex: 1 1 100%;
                width: 100%;
                max-width: 100%;
            }
        }

        .citations-load-more-btn {
            margin: 8px 0;
            padding: 8px 12px;
            border: 1px solid #ddd;
            background: #fff;
            border-radius: 6px;
            cursor: pointer;
            width: 100%;
            color: #475467;
            font-size: 0.84rem;
        }

        body[data-theme="dark"] .post-view-page {
            background: transparent;
        }

        body[data-theme="dark"] #site-footer {
            background: transparent !important;
            border: 0 !important;
        }

        body[data-theme="dark"] footer,
        body[data-theme="dark"] .c-footer {
            background: transparent !important;
            border-top: 0 !important;
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .c-footer__brand,
        body[data-theme="dark"] .c-footer__links a,
        body[data-theme="dark"] .c-footer__meta,
        body[data-theme="dark"] footer p {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .post-detail,
        body[data-theme="dark"] .post-detail-content,
        body[data-theme="dark"] #post-content {
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] #post-content>div[style*="background"],
        body[data-theme="dark"] #post-content>div[style*="background-color"] {
            background: transparent !important;
        }

        body[data-theme="dark"] #post-content>div[style*="border"],
        body[data-theme="dark"] #post-content>div[style*="box-shadow"] {
            border: 0 !important;
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] .post-detail-header {
            border-bottom-color: var(--dark-border);
        }

        body[data-theme="dark"] .post-breadcrumb,
        body[data-theme="dark"] .post-breadcrumb .crumb-base {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .post-breadcrumb .crumb-current {
            color: #b8d0eb;
        }

        body[data-theme="dark"] .post-breadcrumb .crumb-current:hover {
            color: #edf0f3;
        }

        body[data-theme="dark"] .post-breadcrumb i {
            color: #7f8a98;
        }

        body[data-theme="dark"] .back-to-list {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .back-to-list:hover {
            border-color: var(--dark-border-2);
            background: #222;
            color: var(--dark-text);
        }

        body[data-theme="dark"] .meta-chip {
            background: #1b1b1b;
            color: var(--dark-text-muted);
            border-color: var(--dark-border);
        }

        body[data-theme="dark"] .meta-chip strong,
        body[data-theme="dark"] .meta-inline strong {
            color: var(--dark-text);
        }

        body[data-theme="dark"] .meta-inline {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] #post-views {
            background: #1b1b1b;
            border-color: var(--dark-border);
        }

        body[data-theme="dark"] #post-views strong {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .post-detail-meta #post-date {
            border-left-color: var(--dark-border);
        }

        body[data-theme="dark"] .post-tag {
            border-color: #2e3a49;
            background: #1f252e;
            color: #c4d0de;
        }

        body[data-theme="dark"] .post-actions .edit-btn,
        body[data-theme="dark"] .post-actions .delete-btn {
            background: #1b1b1b;
            border-color: var(--dark-border);
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .post-actions .edit-btn:hover {
            background: #232323;
            border-color: #3a3a3a;
            color: var(--dark-text);
        }

        body[data-theme="dark"] .post-actions .delete-btn {
            border-color: #6e3640;
            color: #ffb7bf;
            background: #2a1b20;
        }

        body[data-theme="dark"] .post-actions .delete-btn:hover {
            background: #362027;
            border-color: #84414d;
            color: #ffd4d9;
        }

        body[data-theme="dark"] .citations-sidebar,
        html[data-theme="dark"] body .citations-sidebar {
            background: #16191f;
            border-color: #2a313c;
            box-shadow: none;
        }

        body[data-theme="dark"] .citations-sidebar-head h2,
        html[data-theme="dark"] body .citations-sidebar-head h2 {
            color: #d2d8e1 !important;
            border-bottom: 0 !important;
        }

        body[data-theme="dark"] #citations-list-container,
        html[data-theme="dark"] body #citations-list-container {
            border-top: 0 !important;
        }

        body[data-theme="dark"] .citation-card,
        html[data-theme="dark"] body .citation-card {
            background: #1b2028 !important;
            border: 1px solid #3a4453 !important;
            border-top: 0 !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] .citation-card h3,
        html[data-theme="dark"] body .citation-card h3 {
            color: #d7dee8 !important;
            border-bottom-color: #364252 !important;
        }

        body[data-theme="dark"] .citation-original,
        html[data-theme="dark"] body .citation-original {
            background: #232a34 !important;
            color: #d7dee8 !important;
            border: 1px solid #3b4656 !important;
        }

        body[data-theme="dark"] .citations-sidebar .citation-original,
        html[data-theme="dark"] body .citations-sidebar .citation-original {
            background: #25262b !important;
            border: 1px solid #44484f !important;
        }

        body[data-theme="dark"] .citation-translation,
        html[data-theme="dark"] body .citation-translation {
            color: #b2bccb !important;
        }

        body[data-theme="dark"] .post-detail-content .citation-inline,
        body[data-theme="dark"] .post-detail-content a.citation-link,
        body[data-theme="dark"] .post-detail-content a:not(.citation-link),
        html[data-theme="dark"] body .post-detail-content .citation-inline,
        html[data-theme="dark"] body .post-detail-content a.citation-link,
        html[data-theme="dark"] body .post-detail-content a:not(.citation-link) {
            color: #c8d3df !important;
            background-color: rgba(148, 163, 184, 0.12) !important;
            border: 1px solid #4b5563 !important;
        }

        body[data-theme="dark"] .post-detail-content .citation-inline:hover,
        body[data-theme="dark"] .post-detail-content a.citation-link:hover,
        body[data-theme="dark"] .post-detail-content a:not(.citation-link):hover,
        html[data-theme="dark"] body .post-detail-content .citation-inline:hover,
        html[data-theme="dark"] body .post-detail-content a.citation-link:hover,
        html[data-theme="dark"] body .post-detail-content a:not(.citation-link):hover {
            background-color: rgba(148, 163, 184, 0.18) !important;
            border-color: #64748b !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] .post-detail-content a.citation-link.active,
        body[data-theme="dark"] .post-detail-content .citation-inline.active,
        html[data-theme="dark"] body .post-detail-content a.citation-link.active,
        html[data-theme="dark"] body .post-detail-content .citation-inline.active {
            background-color: rgba(148, 163, 184, 0.24) !important;
            border-color: #7b8798 !important;
            color: #e5ebf3 !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] .citations-modal-close,
        html[data-theme="dark"] body .citations-modal-close {
            background: #1f2732;
            color: #ced9e8;
            border-color: #334154;
        }

        body[data-theme="dark"] .post-detail-content .classic-citation-block,
        body[data-theme="dark"] .post-detail-content .chart-citation-block,
        html[data-theme="dark"] body .post-detail-content .classic-citation-block,
        html[data-theme="dark"] body .post-detail-content .chart-citation-block {
            background: #1b2028 !important;
            border: 1px solid #4b5563 !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] .post-detail-content .classic-citation-block .citation-header,
        body[data-theme="dark"] .post-detail-content .chart-citation-block .citation-header,
        html[data-theme="dark"] body .post-detail-content .classic-citation-block .citation-header,
        html[data-theme="dark"] body .post-detail-content .chart-citation-block .citation-header {
            color: #d4dbe6 !important;
        }

        body[data-theme="dark"] .post-detail-content .classic-citation-block .citation-original,
        body[data-theme="dark"] .post-detail-content .chart-citation-block .citation-patient,
        html[data-theme="dark"] body .post-detail-content .classic-citation-block .citation-original,
        html[data-theme="dark"] body .post-detail-content .chart-citation-block .citation-patient {
            background: #25262b !important;
            border: 1px solid #44484f !important;
            color: #d7dee8 !important;
        }

        body[data-theme="dark"] .comments-divider {
            background: var(--dark-border);
        }

        body[data-theme="dark"] .comments-empty-card {
            border-color: #2e3a49;
            background: #1a222d;
            color: #c4d0de;
        }

        body[data-theme="dark"] .comments-empty-card strong {
            color: var(--dark-text);
        }

        body[data-theme="dark"] .comments-empty-card p {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .post-like-btn,
        body[data-theme="dark"] .post-scrap-btn,
        body[data-theme="dark"] .post-export-btn {
            border-color: var(--dark-border-2);
            background: #1b1b1b;
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .post-like-btn:hover,
        body[data-theme="dark"] .post-scrap-btn:hover,
        body[data-theme="dark"] .post-export-btn:hover {
            border-color: #3a3a3a;
            background: #232323;
            color: var(--dark-text);
        }

        body[data-theme="dark"] .post-like-btn.is-liked,
        body[data-theme="dark"] .post-scrap-btn.is-scrapped {
            border-color: var(--color-primary);
            background: color-mix(in srgb, var(--color-primary) 20%, transparent);
            color: #b8d0eb;
        }

        body[data-theme="dark"] .comments-sort-btn {
            border-color: var(--color-primary);
            background: color-mix(in srgb, var(--color-primary) 20%, transparent);
            color: #b8d0eb;
        }

        body[data-theme="dark"] .comments-sort-btn:hover {
            border-color: #4a7fbe;
            background: color-mix(in srgb, var(--color-primary) 28%, transparent);
            color: #d5e6f8;
        }

        body[data-theme="dark"] .pv-comment-shell {
            border-color: var(--dark-border);
            background: #1a1a1a;
            box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 16%, transparent);
        }

        body[data-theme="dark"] .pv-comment-avatar,
        body[data-theme="dark"] .reply-form .pv-comment-avatar {
            background: #203044;
            color: #c5daf2;
        }

        body[data-theme="dark"] .pv-comment-author strong,
        body[data-theme="dark"] .reply-form .pv-comment-author strong,
        body[data-theme="dark"] .comment-author-name {
            color: var(--dark-text);
        }

        body[data-theme="dark"] .pv-comment-author span,
        body[data-theme="dark"] .reply-form .pv-comment-author span,
        body[data-theme="dark"] .comment-date,
        body[data-theme="dark"] .comment-content {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .pv-comment-shell textarea,
        body[data-theme="dark"] .reply-form textarea,
        body[data-theme="dark"] .edit-form textarea {
            background: #202020;
            color: var(--dark-text);
        }

        body[data-theme="dark"] .pv-comment-shell textarea:focus,
        body[data-theme="dark"] .reply-form textarea:focus,
        body[data-theme="dark"] .edit-form textarea:focus {
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent);
        }

        body[data-theme="dark"] .pv-comment-secret,
        body[data-theme="dark"] .reply-form .pv-comment-secret,
        body[data-theme="dark"] .reply-form .pv-comment-cancel,
        body[data-theme="dark"] .edit-form .pv-comment-cancel {
            border-color: var(--dark-border-2);
            background: #1f1f1f;
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .comment {
            border-color: var(--dark-border);
            background: linear-gradient(180deg, #1b1b1b 0%, #171717 100%);
            box-shadow: none;
        }

        body[data-theme="dark"] .reply,
        body[data-theme="dark"] .reply-form,
        body[data-theme="dark"] .edit-form {
            border-color: var(--dark-border);
            background: #1a1a1a;
        }

        body[data-theme="dark"] .comment-action-btn {
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .comment-action-btn:hover {
            background-color: #242424;
            color: var(--dark-text);
        }

        body[data-theme="dark"] .citations-load-more-btn {
            border-color: var(--dark-border-2);
            background: #1f1f1f;
            color: var(--dark-text-muted);
        }

        body[data-theme="dark"] .citations-load-more-btn:hover {
            background: #252525;
            color: var(--dark-text);
        }

        /* Citation behavior/style final overrides */
        .post-view-page,
        .post-view-page .container,
        .post-view-page .post-detail-container {
            overflow: visible !important;
        }

        .post-view-page .post-detail-container {
            align-items: flex-start !important;
        }

        .post-detail-container .citations-sidebar {
            position: relative;
            top: 0;
            align-self: flex-start;
            height: auto;
            max-height: calc(100vh - 220px);
            overflow: hidden;
        }

        .post-detail-container .citations-sidebar #citations-list-container {
            min-height: 0;
        }

        @media (max-width: 992px) {
            .post-detail-container .citations-sidebar {
                position: sticky;
                top: 84px;
            }
        }

        @media (max-width: 768px) {
            .post-detail-container .citations-sidebar {
                position: fixed;
                top: 50%;
            }
        }

        body[data-theme="dark"] .citations-sidebar,
        html[data-theme="dark"] body .citations-sidebar {
            background: #17181b;
            border-color: #4f545d;
            box-shadow: none;
        }

        body[data-theme="dark"] .citations-sidebar h2,
        body[data-theme="dark"] .citations-sidebar-head h2,
        html[data-theme="dark"] body .citations-sidebar h2,
        html[data-theme="dark"] body .citations-sidebar-head h2 {
            color: #cbd3dd !important;
            border-bottom: 0 !important;
        }

        body[data-theme="dark"] #citations-list-container,
        html[data-theme="dark"] body #citations-list-container {
            border-top: 0 !important;
        }

        body[data-theme="dark"] .citation-card,
        html[data-theme="dark"] body .citation-card {
            background: #222328 !important;
            border: 1px solid #4a4f58 !important;
            box-shadow: none !important;
        }

        body[data-theme="dark"] .citation-card.highlighted,
        html[data-theme="dark"] body .citation-card.highlighted {
            border-color: #d7b273 !important;
            box-shadow: 0 0 0 2px rgba(215, 178, 115, 0.5) !important;
        }

        body[data-theme="dark"] .post-detail-content .classic-citation-block,
        body[data-theme="dark"] .post-detail-content .chart-citation-block,
        html[data-theme="dark"] body .post-detail-content .classic-citation-block,
        html[data-theme="dark"] body .post-detail-content .chart-citation-block {
            background: #1f2024 !important;
            border: 1px solid #4f545d !important;
            box-shadow: 0 0 0 1px rgba(79, 84, 93, 0.16) !important;
        }
