/* Scoped: /charts/ and /personal/chats/ only. Does not change sitewide chat grid. */
.cotinder-ht-chatbar[hidden] {
    display: none !important;
}

.cotinder-ht-chatbar {
    margin: 0 0 8px;
}

.cotinder-ht-chatbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cotinder-ht-chatbar__filter {
    border: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.2;
    background: #f1eee9;
    color: #3a332c;
    cursor: pointer;
}

.cotinder-ht-chatbar__filter.is-on {
    background: #2ecc71;
    color: #083318;
    font-weight: 700;
}

.cotinder-ht-chat-tag {
    display: inline-block;
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: #ece7df;
    color: #4a4036;
    flex-shrink: 0;
}

.cotinder-ht-chat-tag[data-tag="meet"] {
    background: #d7f5e3;
    color: #14532d;
}

.cotinder-ht-chat-tag[data-tag="important"],
.cotinder-ht-chat-tag[data-tag="work"] {
    background: #ffe8c8;
    color: #7a3e00;
}

.cotinder-ht-chat-tag[data-tag="spam"] {
    background: #fde2e2;
    color: #7f1d1d;
}

.cotinder-messages .cotinder-messages__composer > .cotinder-ht-composer {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.cotinder-ht-composer {
    display: block;
    margin: 0 0 8px;
}

.cotinder-ht-composer__fold {
    border: 1px solid #e4ddd4;
    border-radius: 10px;
    background: #fff;
}

.cotinder-ht-composer__summary {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.3;
    color: #3a332c;
    list-style: none;
}

.cotinder-ht-composer__summary::-webkit-details-marker {
    display: none;
}

.cotinder-ht-composer__summary::before {
    content: '▸';
    display: inline-block;
    width: 1em;
    color: #8a7e72;
}

.cotinder-ht-composer__fold[open] > .cotinder-ht-composer__summary::before {
    content: '▾';
}

.cotinder-ht-composer__phrases {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 8px 4px;
}

.cotinder-ht-composer__phrase {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #f0ebe4;
    padding: 8px 4px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    background: transparent;
    color: #3a332c;
    cursor: pointer;
}

.cotinder-ht-composer__tool {
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    background: #f6f4f1;
    color: #3a332c;
    cursor: pointer;
}

.cotinder-ht-composer__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 0;
}

.cotinder-ht-composer__stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 0;
}

.cotinder-ht-composer__stickers[hidden] {
    display: none !important;
}

.cotinder-ht-composer__sticker {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f6f4f1;
    font-size: 20px;
    cursor: pointer;
}

.cotinder-ht-composer__sticker.is-locked {
    opacity: 0.45;
}

.cotinder-ht-composer__note {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 4px 10px 10px;
    font-size: 12px;
    color: #5b534a;
}

.cotinder-ht-composer__note input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e4ddd4;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 13px;
}

.cotinder-ht-composer__translated {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #14532d;
    background: #e8f8ee;
    border-radius: 10px;
    padding: 6px 8px;
}

@media (max-width: 767.98px) {
    .cotinder-ht-chatbar__filter {
        font-size: 11px;
        padding: 4px 8px;
    }

    .cotinder-ht-composer__summary {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .cotinder-ht-composer__phrase {
        min-height: 40px;
        font-size: 14px;
    }
}
