.article-body-content .article-code-block,
.article-review-content .article-code-block {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 28px 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #30394d;
    border-radius: 12px;
    background: #171d2b;
    box-shadow: 0 12px 28px rgba(23, 29, 43, .12);
}

.article-code-block__toolbar {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px 8px 16px;
    border-bottom: 1px solid #30394d;
    background: #222a3b;
}

.article-code-block__language {
    overflow: hidden;
    color: #c5cce0;
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.article-code-block__copy {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #465169;
    border-radius: 8px;
    background: #2d374c;
    color: #f4f7ff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.article-code-block__copy:hover,
.article-code-block__copy:focus-visible {
    border-color: #8d7cf2;
    background: #3c4660;
    color: #fff;
}

.article-code-block__copy:focus-visible {
    outline: 3px solid rgba(141, 124, 242, .3);
    outline-offset: 2px;
}

.article-code-block__copy.is-copied {
    border-color: #39b987;
    background: #164d3d;
    color: #d9fff0;
}

.article-body-content .article-code-block pre,
.article-review-content .article-code-block pre {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 20px !important;
    overflow-x: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: #171d2b !important;
    color: #f4f7ff !important;
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.7;
    tab-size: 4;
    white-space: pre;
    box-sizing: border-box;
}

.article-body-content .article-code-block pre code,
.article-review-content .article-code-block pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit;
}

.article-body-content :not(pre) > code,
.article-review-content :not(pre) > code {
    padding: 2px 6px;
    border: 1px solid #dfdafd;
    border-radius: 6px;
    background: #f2efff;
    color: #4d36b7;
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
    font-size: .9em;
}

@media (max-width: 575px) {
    .article-code-block__toolbar { padding-left: 12px; }

    .article-code-block__copy span { display: none; }

    .article-body-content .article-code-block pre,
    .article-review-content .article-code-block pre {
        padding: 16px !important;
        font-size: 13px;
    }
}
