.mycn-chat-interpretation-status-row {
    display: flex;
    width: fit-content;
    max-width: 92%;
    align-items: center;
    gap: 8px;
    margin: 8px auto 12px;
    padding: 7px 10px;
    border: 1px solid #ead9ac;
    border-radius: 999px;
    background: #fff8e6;
    color: #805b10;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0;
}

.mycn-chat-interpretation-status-row.is-ready {
    border-color: #b7dfca;
    background: #ebfbee;
    color: #17633e;
}

.mycn-chat-interpretation-status-row.is-failed {
    border-color: #efc1c1;
    background: #fff1f1;
    color: #a61e1e;
}

.mycn-chat-interpretation-live {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.mycn-chat-interpretation-status-row.is-ready .mycn-chat-interpretation-live {
    background: #087f5b;
    box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.14);
}

.mycn-chat-interpretation-status-row.is-failed .mycn-chat-interpretation-live {
    background: #c92a2a;
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.12);
}

.mycn-chat-interpretation-status-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mycn-chat-interpretation-retry {
    flex: 0 0 auto;
    margin: 0 0 0 2px;
    padding: 3px 7px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mycn-chat-interpretation-retry[hidden] {
    display: none;
}

.mycn-chat-interpretation-row {
    display: flex;
    margin-bottom: 8px;
}

.mycn-chat-interpretation-row.is-own {
    justify-content: flex-end;
}

.mycn-chat-interpretation-row.is-remote {
    justify-content: flex-start;
}

.mycn-chat-interpretation-bubble {
    width: fit-content;
    max-width: 84%;
    padding: 9px 11px;
    border-radius: 12px;
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.floating-chat-bubble.mycn-chat-interpretation-bubble,
.guest-chat-bubble.mycn-chat-interpretation-bubble,
.chat-popup-bubble.mycn-chat-interpretation-bubble {
    box-sizing: border-box;
}

.mycn-chat-interpretation-bubble.is-remote {
    border-bottom-left-radius: 0;
}

.mycn-chat-interpretation-bubble.is-own {
    border-bottom-right-radius: 0;
}

.mycn-chat-interpretation-speaker {
    display: block;
    margin-bottom: 3px;
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    opacity: 0.65;
    letter-spacing: 0;
}

.mycn-chat-interpretation-source {
    color: inherit;
    font-size: 14px;
    line-height: 20px;
    white-space: pre-wrap;
}

.mycn-chat-interpretation-translation {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid currentColor;
    color: inherit;
    font-size: 12px;
    line-height: 18px;
    opacity: 0.72;
    white-space: pre-wrap;
}

.support-context-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.support-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border: 1px solid #d8e0db;
    border-radius: 4px;
    background: #f6f8f7;
    color: #39463f;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0;
}

.support-context-badge.is-mycntutor {
    border-color: #9ed6bd;
    background: #eaf8f1;
    color: #126344;
}

.support-context-language {
    padding-left: 5px;
    border-left: 1px solid currentColor;
    font-weight: 600;
    opacity: 0.78;
}

.support-context-selector {
    display: flex;
    max-width: 260px;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-secondary, #68746d);
    font-size: 11px;
    line-height: 16px;
}

.support-context-selector select {
    min-width: 0;
    height: 30px;
    flex: 1;
    border: 1px solid var(--border, #cfd8d2);
    border-radius: 4px;
    background: var(--bg-dark, #fff);
    color: var(--text-primary, #17211b);
    font-size: 11px;
    letter-spacing: 0;
}

@media (prefers-color-scheme: dark) {
    .mycn-chat-interpretation-status-row {
        border-color: #6a5428;
        background: #302816;
        color: #f5d58e;
    }

    .mycn-chat-interpretation-status-row.is-ready {
        border-color: #34785d;
        background: #143e2e;
        color: #bcebd6;
    }

    .mycn-chat-interpretation-status-row.is-failed {
        border-color: #6c3030;
        background: #2f1b1b;
        color: #ffb4b4;
    }

    .chat-popup-bubble.mycn-chat-interpretation-bubble.is-remote {
        border-color: #46534b !important;
        background: #27332c !important;
        color: #f2f5f3 !important;
    }

    .support-context-badge {
        border-color: #46534b;
        background: #27332c;
        color: #dce5df;
    }

    .support-context-badge.is-mycntutor {
        border-color: #34785d;
        background: #143e2e;
        color: #bcebd6;
    }
}
