.comment-respond {
    margin: 18px 20px 0;
    padding: 18px 20px;
    background-color: #fff;
    border: 1px solid #e9edf1;
    border-radius: 6px;
}

.comment-respond .comment-reply-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2d3d;
    border-bottom: 1px solid #e9edf1;
}

.comment-respond .cancel-comment-reply a {
    color: #98a2ad;
    font-size: 13px;
    text-decoration: none;
}

.comment-respond .cancel-comment-reply a:hover {
    color: #1573b8;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #5a6b7b;
    font-size: 13px;
}

.comment-form .required {
    margin-left: 2px;
    color: #d9534f;
}

.comment-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    flex: 1 1 200px;
    min-width: 0;
}

.comment-form-comment {
    margin-top: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    background-color: #f7f9fb;
    border: 1px solid #e3ebf2;
    border-radius: 4px;
    color: #1f2d3d;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1573b8;
    box-shadow: 0 0 0 1px #1573b8;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #aab6c2;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

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

.comment-form .submit {
    padding: 8px 26px;
    background-color: #1573b8;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}

.comment-form .submit:hover {
    background-color: #1268a5;
}

.comment-form .submit:active {
    transform: translateY(1px);
}

.logged-in-as {
    margin: 0 0 12px;
    color: #5a6b7b;
    font-size: 13px;
}

.logged-in-as .username {
    color: #1573b8;
}

.comments-title {
    margin: 18px 20px 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2d3d;
}

.comments-closed {
    margin: 18px 20px 0;
    padding: 16px 20px;
    background-color: #f5f8fb;
    border: 1px solid #e3ebf2;
    border-radius: 6px;

    color: #5a6b7b;
    font-size: 14px;
    text-align: center;
}

html.dark .comment-respond {
    background-color: #1c2128;
    border-color: #2c3440;
}

html.dark .comment-respond .comment-reply-title {
    color: #e6edf3;
    border-bottom-color: #2c3440;
}

html.dark .comment-respond .cancel-comment-reply a {
    color: #8b949e;
}

html.dark .comment-respond .cancel-comment-reply a:hover {
    color: #85b4ff;
}

html.dark .comment-form label {
    color: #8b949e;
}

html.dark .comment-form input[type="text"],
html.dark .comment-form input[type="email"],
html.dark .comment-form input[type="url"],
html.dark .comment-form textarea {
    background-color: #161b22;
    border-color: #2c3440;
    color: #c9d1d9;
}

html.dark .comment-form input:focus,
html.dark .comment-form textarea:focus {
    border-color: #6ca0ff;
    box-shadow: 0 0 0 1px #6ca0ff;
}

html.dark .comment-form input::placeholder,
html.dark .comment-form textarea::placeholder {
    color: #6a7686;
}

html.dark .comment-form .submit {
    background-color: #1f6feb;
    color: #fff;
}

html.dark .comment-form .submit:hover {
    background-color: #388bfd;
}

html.dark .logged-in-as {
    color: #8b949e;
}

html.dark .logged-in-as .username {
    color: #6ca0ff;
}

html.dark .comments-title {
    color: #e6edf3;
}

html.dark .comments-closed {
    background-color: #1c2128;
    border-color: #2c3440;
    color: #8b949e;
}

@media screen and (max-width: 640px) {
    .comment-respond {
        margin: 14px 16px 0;
        padding: 14px 16px;
    }

    .comment-form-fields {
        gap: 12px;
    }

    .comments-title,
    .comments-closed {
        margin-left: 16px;
        margin-right: 16px;
    }
}

.mty-cf-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.mty-cf-bar label {
    margin-bottom: 0;
}

.mty-cf-tool {
    padding: 3px 11px;
    background-color: #f2f6fa;
    border: 1px solid #dbe6f0;
    border-radius: 999px;
    color: #1573b8;
    font-size: 12.5px;
    font-family: inherit;
    line-height: 1.7;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.mty-cf-tool:hover {
    background-color: #e7f0f9;
    border-color: #b9d3e8;
}

.mty-cf-tool[aria-expanded="true"] {
    background-color: #1573b8;
    border-color: #1573b8;
    color: #fff;
}

.mty-cf-tool-av {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mty-cf-tool-av-img {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.mty-cf-tool-av-img[hidden] {
    display: none;
}

.mty-cf-panel {
    margin: 0 0 10px;
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid #e3ebf2;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(31, 45, 61, .06);
}

.mty-cf-panel[hidden] {
    display: none;
}

.mty-cf-panel-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid #eef2f6;
    font-size: 13px;
    color: #1f2d3d;
}

.mty-cf-panel-tip {
    color: #98a2ad;
    font-size: 12px;
}

.mty-cf-panel-clear {
    margin-left: auto;
    padding: 2px 9px;
    background: none;
    border: 1px solid #dbe6f0;
    border-radius: 999px;
    color: #5a6b7b;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.mty-cf-panel-clear:hover {
    color: #1573b8;
    border-color: #b9d3e8;
}

.mty-cf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 6px;
    max-height: 232px;
    padding: 2px;
    overflow-x: hidden;
    overflow-y: auto;
}

.mty-cf-grid-av {
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
}

.mty-cf-face {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.mty-cf-face:hover {
    background-color: #f2f6fa;
    border-color: #cfe0ee;
}

.mty-cf-face.is-on {
    background-color: #e7f0f9;
    border-color: #1573b8;
}

.mty-cf-face img {
    display: block;
    width: 22px;
    height: 22px;
    max-width: none;
    object-fit: contain;
}

.mty-cf-face-av img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.mty-cf-loading {
    grid-column: 1 / -1;
    padding: 14px;
    color: #98a2ad;
    font-size: 13px;
    text-align: center;
}

.mty-face,
.comm-content .eleImg {
    display: inline-block;
    width: 22px;
    height: 22px;
    max-width: none;
    margin: 0 1px;
    object-fit: contain;
    vertical-align: -4px;
}

.comm-content .eleImg {
    background: none;
    border: none;
}

html.dark .mty-cf-tool {
    background-color: #21262d;
    border-color: #303a45;
    color: #6ca0ff;
}

html.dark .mty-cf-tool:hover {
    background-color: #2a313a;
    border-color: #3d4b5a;
}

html.dark .mty-cf-tool[aria-expanded="true"] {
    background-color: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
}

html.dark .mty-cf-panel {
    background-color: #1c2128;
    border-color: #2c3440;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

html.dark .mty-cf-panel-hd {
    color: #e6edf3;
    border-bottom-color: #2c3440;
}

html.dark .mty-cf-panel-tip {
    color: #8b949e;
}

html.dark .mty-cf-panel-clear {
    border-color: #303a45;
    color: #8b949e;
}

html.dark .mty-cf-panel-clear:hover {
    color: #85b4ff;
    border-color: #3d4b5a;
}

html.dark .mty-cf-face {
    background-color: #161b22;
}

html.dark .mty-cf-face:hover {
    background-color: #21262d;
    border-color: #3d4b5a;
}

html.dark .mty-cf-face.is-on {
    background-color: #1f2b3a;
    border-color: #1f6feb;
}

html.dark .mty-cf-loading {
    color: #8b949e;
}

@media screen and (max-width: 640px) {
    .mty-cf-bar {
        gap: 6px;
    }

    .mty-cf-tool {
        padding: 3px 9px;
        font-size: 12px;
    }

    .mty-cf-grid {
        grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
        max-height: 196px;
    }

    .mty-cf-grid-av {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }

    .mty-cf-face img {
        width: 20px;
        height: 20px;
    }

    .mty-cf-face-av img {
        width: 34px;
        height: 34px;
    }

    .mty-cf-panel {
        padding: 9px 10px;
    }
}
