.page-content code, .page-content pre {
    background-color: var(--border-color)
}

.single-page {
    position: relative;
    margin: 40px 0;
    background-color: var(--bg-primary);
    color: var(--text-primary)
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px
}

.page-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 20px 0;
    font-weight: 600
}

.page-content {
    line-height: 1.7
}

.page-content p {
    margin-bottom: 1.25rem
}

.group-meta p {
    margin-bottom: 5px
}

.page-content h2, h3, h4, h5 {
    font-size: 20px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500
}

.page-content a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: opacity .2s;
    font-weight: 500
}

.page-content a:hover {
    opacity: .8
}

.page-content ol, .page-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem
}

.page-content li {
    margin-bottom: .5rem
}

.page-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0
}

.page-content code {
    color: var(--text-primary);
    padding: .2rem .4rem;
    border-radius: 4px;
    font-size: .9em;
    font-family: Monaco, 'Courier New', monospace
}

.page-content pre {
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0
}

.page-content pre code {
    background-color: transparent;
    padding: 0
}

.error-404-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px
}

.error-404-container {
    max-width: 600px;
    text-align: center
}

.error-404-image {
    margin-bottom: 40px
}

.error-404-image img {
    max-width: 100%;
    height: auto;
    width: 400px
}

.error-404-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3
}

.error-404-description {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 40px
}

.error-404-search {
    margin-bottom: 30px
}

.btn-return-home {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: .3s
}

.btn-return-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

@media (max-width: 768px) {
    .error-404-wrapper {
        padding: 40px 20px
    }

    .error-404-image img {
        width: 280px
    }

    .error-404-title {
        font-size: 24px
    }

    .error-404-description {
        font-size: 14px
    }
}

@media (max-width: 480px) {
    .error-404-image img {
        width: 220px
    }

    .error-404-title {
        font-size: 20px
    }
}

#respond {
    margin-top: 30px;
}

.ich-tool-page #comments {
    display: none;
}

.comments-area {
    margin-top: 30px;
    max-width: 100%
}

#comments li, #comments ol, #comments ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.comment-reply-title, .comment-reply-title small {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px
}

#cancel-comment-reply-link:before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    margin-left: 5px;
    background-color: var(--text-secondary);
    opacity: .3;
    margin-right: 10px;
    position: relative
}

.comment-form-comment {
    margin-bottom: 5px
}

.comment-form-author, .comment-form-email {
    display: inline-block;
    margin-bottom: 5px;
    vertical-align: top
}

.comment-form-author {
    width: 49.5%
}

.comment-form-email {
    width: 50%
}

.comment-form-author input, .comment-form-email input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: 0;
    transition: .2s;
    margin-bottom: 5px
}

#comment:focus, .comment-form-author input:focus, .comment-form-email input:focus {
    border-color: var(--accent-color)
}

.comment-form-author input::placeholder, .comment-form-email input::placeholder {
    color: var(--text-secondary)
}

#comment, .comment-form-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: .85rem;
    color: var(--text-primary);
    resize: none;
    outline: 0;
    transition: .2s;
    line-height: 1.3333
}

#comment:focus {
    background: var(--bg-primary)
}

#comment::placeholder {
    color: var(--text-secondary)
}

.form-submit {
    margin: 8px 0 0;
    text-align: right
}

.form-submit input[type=submit] {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit
}

.form-submit input[type=submit]:hover {
    opacity: .9
}

.form-submit input[type=submit]:disabled, .load-more-comments:disabled {
    opacity: .6;
    cursor: not-allowed
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px
}

.comment-list {
    padding: 0;
    margin: 0
}

.comment-list > li {
    margin-bottom: 16px;
    padding: 0
}

.comment-body {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    align-items: flex-start
}

.comment-author {
    flex-shrink: 0;
    line-height: 0
}

.comment-author .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border-color)
}

.comment-bubble {
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word
}

.comment-author-name {
    margin-bottom: 2px
}

.comment-author-name .fn {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none
}

.comment-content {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.3333;
    margin: 0;
    padding: 0
}

.comment-content p {
    margin: 0
}

.comment-content a {
    text-decoration: none
}

.comment-content a:hover {
    text-decoration: underline
}

.comment-meta time, .meta-separator {
    color: var(--text-secondary);
    font-size: 12px
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0 12px;
    flex-wrap: wrap
}

.comment-meta time {
    font-weight: 400
}

#cancel-comment-reply-link, .comment-edit-link, .comment-reply-link, .edit-comment-btn {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .1s
}

#cancel-comment-reply-link:hover, .comment-edit-link:hover, .comment-reply-link:hover, .edit-comment-btn:hover {
    text-decoration: underline;
    color: var(--accent-color)
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0
}

.comment-list .children {
    margin: 8px 0 0 40px !important;
    padding: 0;
    position: relative
}

.comment-list .children::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 8px;
    width: 2px;
    background: var(--border-color)
}

.comment-list .children > li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 16px;
    width: 16px;
    height: 2px;
    background: var(--border-color)
}

.comment-list .children > li {
    margin-bottom: 8px;
    position: relative
}

.comment-list .children .comment-author .avatar {
    width: 28px;
    height: 28px
}

.comment-list .children .children {
    margin-left: 40px
}

.comment-list .children .children::before {
    left: -24px
}

.comment-list .children .children > li::before {
    left: -24px;
    top: 14px
}

.load-more-comments {
    display: block;
    width: auto;
    padding: 8px 16px;
    margin: 16px auto;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px
}

.load-more-comments:hover {
    background: var(--border-color);
    color: var(--text-primary)
}

.comment_error {
    background: #ffebe9;
    color: #c41e3a;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 14px
}

:root[data-theme=dark] .comment_error {
    background: #3a1f1f;
    color: #ff6b6b
}

.no-comments {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    font-size: 15px
}

.comment-author .fn, .comment-author .says, .comment-form-author label, .comment-form-email label, .comment-notes, .form-allowed-tags, .logged-in-as {
    display: none
}

.comment.new-comment {
    animation: .4s ease-out fadeInComment
}

.comment.new-comment .comment-bubble {
    box-shadow: 0 0 0 2px var(--accent-color)
}

.temp-comment {
    opacity: .7;
    transition: opacity .3s
}

.temp-comment.pending-comment {
    border-left: 3px solid orange
}

.temp-comment.moderation-comment {
    border-left: 3px solid #2196f3
}

.comment.updating {
    opacity: .7;
    position: relative
}

.comment.updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .5);
    pointer-events: none
}

.pending-indicator {
    margin-left: 8px;
    font-size: .85em;
    color: orange;
    font-weight: 400
}

.comment-error {
    background-color: #ffebee;
    border-left: 3px solid #f44336 !important;
    animation: .5s shake
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0)
    }
    25% {
        transform: translateX(-10px)
    }
    75% {
        transform: translateX(10px)
    }
}

.just-edited, .just-posted {
    animation: 2s highlight
}

@keyframes highlight {
    0% {
        background-color: #fff3cd
    }
    100% {
        background-color: transparent
    }
}

@keyframes fadeInComment {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width: 640px) {
    .comment-form-author, .comment-form-email {
        display: block;
        width: 100%;
        margin-right: 0
    }

    .comment-list .children {
        margin-left: 32px !important
    }

    .comment-list .children::before {
        left: -20px
    }

    .comment-list .children > li::before {
        left: -20px;
        width: 12px
    }

    .comment-author .avatar {
        width: 28px !important;
        height: 28px !important
    }

    .comment-list .children .comment-author .avatar {
        width: 24px !important;
        height: 24px !important
    }

    .comment-bubble {
        max-width: calc(100vw - 120px)
    }

    #comment {
        font-size: 15px
    }
}