.ac-comments-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    gap: 24px;
    margin: 44px 0;
    color: #1e2633;
}

.ac-comments-title {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #d9e2ec;
    padding-top: 24px;
}

.ac-comments-title span {
    color: #c43d2b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ac-comments-title strong {
    max-width: 820px;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.ac-comments-column,
.ac-form-column {
    min-width: 0;
}

.ac-comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #b9c7d6;
    border-radius: 8px;
    background: #f7fafc;
    color: #64748b;
}

.ac-comment {
    padding: 16px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.ac-comment[data-level="1"] {
    margin-left: 42px;
    border-left: 3px solid #164f8f;
}

.ac-inner {
    display: flex;
    gap: 14px;
}

.ac-avatar {
    flex: 0 0 auto;
}

.ac-letter-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
}

.ac-body {
    min-width: 0;
    flex: 1;
}

.ac-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ac-head strong {
    color: #111827;
    font-size: 15px;
}

.ac-date {
    color: #7b8794;
    font-size: 12px;
    white-space: nowrap;
}

.ac-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.ac-text p {
    margin: 0 0 10px;
}

.ac-text blockquote {
    margin: 10px 0;
    padding: 10px 12px;
    border-left: 3px solid #c43d2b;
    background: #f8fafc;
    color: #475569;
}

.ac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ac-actions button,
#ac-show-more,
.ac-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #f8fafc;
    color: #263241;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ac-actions button {
    padding: 7px 11px;
    font-size: 13px;
}

.ac-actions button:hover,
#ac-show-more:hover {
    border-color: #164f8f;
    color: #164f8f;
}

#ac-form {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

#ac-reply-label {
    margin-bottom: 14px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

#ac-form input[type="text"] {
    width: 100%;
    height: 44px;
    margin-bottom: 12px;
    padding: 0 13px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
}

#ac-form input[type="text"]:focus,
#ac-editor:focus {
    border-color: #164f8f;
    box-shadow: 0 0 0 3px rgba(22, 79, 143, .12);
    outline: none;
}

.ac-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #d7e0ea;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f8fafc;
}

.ac-toolbar button,
#ac-emoji-panel button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #263241;
    cursor: pointer;
}

.ac-toolbar button:hover,
#ac-emoji-panel button:hover {
    background: #e8eef5;
}

.ac-toolbar svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

#ac-emoji-panel {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    border-right: 1px solid #d7e0ea;
    border-left: 1px solid #d7e0ea;
    background: #ffffff;
}

#ac-editor {
    min-height: 132px;
    padding: 12px;
    border: 1px solid #d7e0ea;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    color: #111827;
    line-height: 1.55;
}

#ac-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.ac-submit-btn {
    width: 100%;
    margin-top: 14px;
    padding: 0 18px;
    border-color: #c43d2b;
    background: #c43d2b;
    color: #ffffff;
}

.ac-submit-btn:hover {
    border-color: #a93022;
    background: #a93022;
}

.ac-submit-btn:disabled {
    opacity: .65;
    cursor: wait;
}

#ac-show-more {
    margin-top: 18px;
    padding: 0 18px;
}

#ac-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    max-width: min(360px, calc(100vw - 32px));
    flex-direction: column;
    gap: 10px;
}

.ac-notification {
    padding: 12px 16px;
    border-radius: 8px;
    background: #263241;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .2);
    transition: opacity .25s ease, transform .25s ease;
}

.ac-notification.success {
    background: #11715f;
}

.ac-notification.error {
    background: #c43d2b;
}

.ac-notification.is-hidden {
    opacity: 0;
    transform: translateY(8px);
}

@media (max-width: 980px) {
    .ac-comments-wrapper {
        grid-template-columns: 1fr;
    }

    #ac-form {
        position: static;
    }
}

@media (max-width: 560px) {
    .ac-comments-wrapper {
        gap: 18px;
        margin: 32px 0;
    }

    .ac-comments-title strong {
        font-size: 22px;
    }

    .ac-comment {
        padding: 13px;
    }

    .ac-comment[data-level="1"] {
        margin-left: 18px;
    }

    .ac-inner {
        gap: 10px;
    }

    .ac-letter-avatar {
        width: 36px;
        height: 36px;
    }

    .ac-head {
        flex-direction: column;
        gap: 2px;
    }
}
