@charset "UTF-8";

:root {
    --comments-comment-avatar-filter: none;
    --comments-comment-title-color: #007e5a;
    --comments-comment-disabled-color: #727272;
    --comments-comment-positive-color: #007e5a;
    --comments-comment-error-color: #d80000;
    --comments-comment-area-color: #202020;
    --comments-comment-area-selection-color: #babbba;
    --comments-comment-area-caret-color: #198d6c;
    --comments-comment-area-bg-color: #f6f6f6;
    --comments-comment-area-focus-color: #a8a8a8;
    --comments-comment-bg-color: #fefefe;
    --comments-comment-more-bg-color: #f9f9f9;
    --comments-comment-border-color: #d8d8d8;
    --comments-comment-subtitle-color: #202020;
    --comments-comment-text-color: #444444;
    --comments-comment-super-color: #007e5a;
    --comments-comment-button-color: #020202;
    --comments-comment-gray-color: #676767;
    --comments-comment-focus-color: #000000;
    --comments-comment-image: linear-gradient(#fefefe,
            #e3e3e3);
}

:root.scheme-dark {
    --comments-comment-avatar-filter: invert(0.75);
    --comments-comment-title-color: #009f67;
    --comments-comment-disabled-color: #888888;
    --comments-comment-positive-color: #03c185;
    --comments-comment-error-color: #ff6b6b;
    --comments-comment-area-color: #e4e4e7;
    --comments-comment-area-selection-color: #444444;
    --comments-comment-area-caret-color: #03c185;
    --comments-comment-area-bg-color: #1e1e1e;
    --comments-comment-area-focus-color: #4a4b4a;
    --comments-comment-bg-color: #1e1e1e;
    --comments-comment-more-bg-color: #272727;
    --comments-comment-border-color: #4a4b4a;
    --comments-comment-subtitle-color: #dde2e0;
    --comments-comment-text-color: #d4d4d8;
    --comments-comment-super-color: #009f67;
    --comments-comment-button-color: #e4e4e7;
    --comments-comment-gray-color: #888888;
    --comments-comment-focus-color: #eeeeee;
    --comments-comment-image: linear-gradient(#272727,
            #202020);
}

@media (prefers-color-scheme: dark) {
    :root.scheme-default {
        --comments-comment-avatar-filter: invert(0.75);
        --comments-comment-title-color: #009f67;
        --comments-comment-disabled-color: #888888;
        --comments-comment-positive-color: #03c185;
        --comments-comment-error-color: #ff6b6b;
        --comments-comment-area-color: #e4e4e7;
        --comments-comment-area-selection-color: #444444;
        --comments-comment-area-caret-color: #03c185;
        --comments-comment-area-bg-color: #1e1e1e;
        --comments-comment-area-focus-color: #4a4b4a;
        --comments-comment-bg-color: #1e1e1e;
        --comments-comment-more-bg-color: #272727;
        --comments-comment-border-color: #4a4b4a;
        --comments-comment-subtitle-color: #dde2e0;
        --comments-comment-text-color: #d4d4d8;
        --comments-comment-super-color: #009f67;
        --comments-comment-button-color: #e4e4e7;
        --comments-comment-gray-color: #888888;
        --comments-comment-focus-color: #eeeeee;
        --comments-comment-image: linear-gradient(#272727,
                #202020);
    }
}

main .user-comments {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    margin-bottom: 28px;
}

main .user-comments section {
    width: 1050px;
    border: 1px solid var(--comments-comment-border-color);
    border-radius: 4px;
    background-color: var(--comments-comment-bg-color);
}

main .user-comments .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 21px;
    border-bottom: 1px solid var(--comments-comment-border-color);
}

main .user-comments .head h2 {
    font-size: 23px;
    margin: 0;
    padding: 0;
    color: var(--comments-comment-title-color);
}

main .user-comments .head button {
    display: none;
    font-size: clamp(15px, 4vw, 17px);
    padding: 3px 7px;
    background-color: transparent;
    color: var(--comments-comment-positive-color);
    border: 1px solid var(--comments-comment-positive-color);
    border-radius: 4px;
    cursor: pointer;
    transition: font-weight 0.12s ease;
}

main .user-comments .head button:not(:disabled):hover {
    font-weight: bold;
}

main .user-comments .head button:disabled {
    border-color: var(--comments-comment-disabled-color);
    color: var(--comments-comment-disabled-color);
    cursor: not-allowed;
}

main .user-comments .head button:focus-visible {
    outline: 2px solid var(--comments-comment-focus-color);
    outline-offset: -2px;
}

main .user-comments .head>div {
    display: flex;
    justify-content: center;
    gap: 3px 8px;
    align-items: center;
    margin-left: 8px;
}

main .user-comments .head a {
    font-size: 16px;
    color: var(--comments-comment-positive-color);
    text-decoration: none;
    transition: font-weight 0.12s ease;
}

main .user-comments .head a:hover {
    text-decoration: underline;
    font-weight: bold;
}

main .user-comments .head a:focus-visible {
    outline: 2px solid var(--comments-comment-focus-color);
    border-radius: 2px;
    text-decoration: underline;
}

main .user-comments .editor {
    display: none;
    width: 100%;
}

main .user-comments .editor form {
    position: relative;
    width: 100%;
    height: fit-content;
}

main .user-comments .editor label {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 16px;
    color: var(--comments-comment-gray-color);
    z-index: -1;
}

main .user-comments .editor textarea {
    display: block;
    width: 100%;
    height: auto;
    padding: 10px 20px;
    line-height: 1.5em;
    min-height: 75px;
    max-height: 430px;
    min-width: 100%;
    max-width: 100%;
    font-size: 18px;
    font-family: inherit;
    margin: 0;
    caret-color: var(--comments-comment-area-caret-color);
    color: var(--comments-comment-area-color);
    background-color: var(--comments-comment-area-bg-color);
    scroll-margin-top: initial;
    border: none;
}

main .user-comments .editor textarea::selection {
    background-color: var(--comments-comment-area-selection-color);
    color: currentColor;
}

main .user-comments .editor textarea::placeholder {
    color: var(--comments-comment-gray-color);
    font-size: 18px;
}

main .user-comments .editor textarea:focus {
    outline: 1px solid var(--comments-comment-area-focus-color);
    border-radius: 2px;
}

main .user-comments .editor>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 18px;
    font-size: 15px;
    background-color: var(--comments-comment-more-bg-color);
    border-top: 1px solid var(--comments-comment-border-color);
    border-bottom: 1px solid var(--comments-comment-border-color);
}

main .user-comments .editor>div .count {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    color: var(--comments-comment-gray-color);
}

main .user-comments .editor>div .info {
    display: none;
    color: var(--comments-comment-text-color);
}

main .user-comments .editor>div .info.success {
    color: var(--comments-comment-positive-color);
}

main .user-comments .editor>div .info.error {
    color: var(--comments-comment-error-color);
}

main .user-comments ul {
    list-style: none;
    margin: 0;
    padding: 0 18px;
}

main .user-comments li {
    display: block;
    padding: 19px 0;
}

main .user-comments li:not(:first-child) {
    border-top: 1px solid var(--comments-comment-border-color);
}

main .user-comments .user {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

main .user-comments .user>div {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    min-height: 30px;
    align-items: center;
    flex-grow: 0;

}

main .user-comments .user>div:last-child {
    justify-content: flex-end;
    flex-grow: 1;
}

main .user-comments .user img {
    border-radius: 50%;
    width: 27px;
    height: 27px;
    filter: var(--comments-comment-avatar-filter);
}

main .user-comments .user h3 {
    width: fit-content;
    display: inline-block;
    margin: 0;
    padding-bottom: 2px;
    font-size: 19px;
    font-weight: bold;
    vertical-align: top;
    line-height: 1.3em;
    color: var(--comments-comment-subtitle-color);
    min-width: 40%;
}

main .user-comments .user h3.super {
    color: var(--comments-comment-super-color);
}

main .user-comments .user time {
    display: inline-block;
    font-size: 16px;
    margin-left: 36px;
    color: var(--comments-comment-gray-color);
}

main .user-comments .user button {
    padding: 1px 6px;
    font-size: 15px;
    background-color: transparent;
    border: none;
    color: var(--comments-comment-gray-color);
    transition: color 0.12s ease;
    white-space: nowrap;
    cursor: pointer;
}

main .user-comments .user button:disabled {
    color: var(--comments-comment-disabled-color);
    cursor: not-allowed;
}

main .user-comments .user button:not(:disabled):hover {
    color: var(--comments-comment-button-color);
}

main .user-comments .user button:focus-visible {
    color: var(--comments-comment-button-color);
    outline: 2px solid var(--comments-comment-focus-color);
    border-radius: 3px;
}

main .user-comments .comment {
    display: block;
    margin: 0;
    padding-left: 36px;
    font-size: 17px;
    color: var(--comments-comment-text-color);
    word-spacing: 1px;
    line-height: 1.6em;
    white-space: pre-wrap;
}

main .user-comments .load {
    display: block;
    width: 100%;
    height: 40px;
}

main .user-comments .load button {
    position: relative;
    width: inherit;
    height: inherit;
    padding: 4px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    background-color: var(--comments-comment-more-bg-color);
    color: var(--comments-comment-text-color);
    transition: color 0.12s ease;
}

main .user-comments .load button:disabled {
    color: var(--comments-comment-gray-color);
    cursor: text;
}

main .user-comments .load button:not(:disabled):hover {
    color: var(--comments-comment-positive-color);
}

main .user-comments .load button:focus-visible {
    color: var(--comments-comment-positive-color);
    outline: 2px solid var(--comments-comment-focus-color);
    outline-offset: -2px;
    border-radius: 3px;
}

main .user-comments .load button.loading::before {
    position: absolute;
    display: block;
    content: "";
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    cursor: default;
    opacity: 0.5;
    background-image: var(--comments-comment-image);
}

main .user-comments .tools {
    display: none;
    position: fixed;
    right: 15px;
    bottom: 30px;
    z-index: 2;
    width: 50px;
    height: 50px;
}

main .user-comments .tools button {
    display: none;
    width: inherit;
    height: inherit;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--comments-comment-border-color);
    background-color: var(--comments-comment-more-bg-color);
    box-shadow: 0 1px 4px var(--comments-comment-border-color);
    cursor: pointer;
    opacity: 0.88;
    transition: transform 0.2s ease;
}

main .user-comments .tools button:hover {
    border-color: var(--comments-comment-positive-color);
}

main .user-comments .tools button:active {
    transform: translateY(-2px);
}

main .user-comments .tools button:focus-visible {
    outline: 2px solid var(--comments-comment-positive-color);
    outline-offset: -2px;
}

main .user-comments .tools img {
    width: 36px;
    height: 36px;
    margin-top: 5px;
    filter: var(--comments-img-hover-filter);
}