﻿a,
button,
span[role="button"],
input {
    -webkit-tap-highlight-color: transparent;
}

.app-height-100dvh {
    height: 100dvh !important;
}

html[x-main-theme="play"] {
    --theme-mid-opacity: rgba(31, 33, 40, .7);
    --theme-high-opacity: rgba(31, 33, 40, .95);
}

    html[x-main-theme="play"] .card {
        border: none;
    }

    html[x-main-theme="play"] .list--item_active {
        background-color: rgba(0, 0, 0, .07);
    }

        html[x-main-theme="play"] .list--item_active:active {
            background-color: rgba(0, 0, 0, .37);
        }

[x-main-theme="game"] {
    --theme-dividers-2: rgba(255, 255, 255, .2);
    --theme-card-2: #1d2532;
    --theme-card-3: #2e3a4a;
}

    [x-main-theme="game"] .card {
        border-radius: .9375rem;
        border: none !important;
    }

    [x-main-theme="game"] .border-divider {
        border-color: var(--theme-dividers-2);
    }

.theme-bg-card-2 {
    background-color: var(--theme-card-2) !important;
}

.theme-bg-card-3 {
    background-color: var(--theme-card-3) !important;
}

[x-main-theme="game"] .border-divider {
    border-color: var(--theme-dividers-2);
}

.navbar--item {
    border-bottom: 2px solid;
    cursor: pointer;
}

    .navbar--item:not(.navbar--item_active, :hover) {
        border-color: transparent;
    }

#blazor-error-ui {
    display: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.invalid {
    color: #F44336;
}

.app-theme-bg-background {
    background-color: #1F2128 !important;
    background-color: var(--theme-background, #1F2128) !important;
}

.app-theme-bg-card {
    background-color: #242731 !important;
    background-color: var(--theme-card, #242731) !important;
}

.app-theme-bg-mid-opacity {
    background-color: rgba(31, 33, 40, .7) !important;
    background-color: var(--theme-mid-opacity, rgba(31, 33, 40, .7)) !important;
}

.app-theme-bg-high-opacity {
    background-color: rgba(31, 33, 40, .95) !important;
    background-color: var(--theme-high-opacity, rgba(31, 33, 40, .95)) !important;
}

.app-btn_close {
    top: -1.25rem;
    right: .625rem;
    z-index: 10;
    width: 3.0375em;
    padding: 1.9375em !important;
}

.app-item-number {
    position: absolute;
    bottom: 0;
    right: .25rem;
    color: black;
    text-shadow: 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

.app-overflow-x-auto {
    overflow-x: auto;
}

.list--item {
    width: 100%;
    outline: 0;
    border: none;
}

.tooltip:hover .tooltip--content {
    display: block;
    top: 50%;
    left: 50%;
    opacity: 0.95;
    z-index: 999;
}

.tooltip--content {
    position: absolute;
    display: none;
}

.new-dialog--card .card {
    border-radius: 0 !important;
    z-index: 1;
}

@media (min-width: 992px) {
    .new-dialog--card::before,
    .new-dialog--card::after {
        content: '';
        position: absolute;
        background-color: #485669;
        border-radius: 15px;
        z-index: 0;
    }

    .new-dialog--card::before {
        top: -7px;
        left: 7px;
        width: 150px;
        height: 150px;
    }

    .new-dialog--card::after {
        bottom: -7px;
        right: 7px;
        width: 200px;
        height: 80px;
    }

    .new-dialog--card .card {
        border-radius: 15px !important;
    }
}

.dialog--card::before,
.dialog--card::after {
    content: '';
    position: absolute;
    background-color: #485669;
    border-radius: 15px;
    z-index: 0;
}

.dialog--card::before {
    top: -7px;
    left: 7px;
    width: 150px;
    height: 150px;
}

.dialog--card::after {
    bottom: -7px;
    right: 7px;
    width: 200px;
    height: 80px;
}

.dialog--card .card {
    border-radius: 15px;
    z-index: 1;
}

.menu_origin-top-right {
    right: 0;
}

.mobile-height-100dvh {
    height: 100dvh !important;
}

@media (min-width: 992px) {
    .mobile-height-100dvh {
        height: auto !important;
    }
}

/*@media (min-width: 992px) {
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px #ff0000;
        border-radius: 10px;
        opacity: 0.5;
    }

    ::-webkit-scrollbar {
        width: 5px;
        opacity: 0.5;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 10px;
        opacity: 0.5;
        -webkit-box-shadow: inset 0 0 6px #00ff00;
    }
}*/
.meter {
    height: 0.3125rem;
    position: relative;
    overflow: hidden;
}

    .meter span {
        display: block;
        height: 100%;
    }

.progress {
    animation: progressBar 60s ease-in-out;
    animation-fill-mode: both;
}

@keyframes progressBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.chat-page {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.chat-page--inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    min-height: 0;
    padding: 0 1rem;
}

.chat-page--header {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 1rem 0 0.5rem;
}

.chat-page--title-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-page--back {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 0;
    text-decoration: none;
}

.chat-page--title {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.125rem;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .chat-page--title {
        font-size: 1.5rem;
    }
}

.chat-page--link-action {
    display: inline;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #2196F3;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.chat-list--item + .chat-list--item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid var(--theme-dividers, rgba(255, 255, 255, 0.06));
}

.chat-list--item {
    position: relative;
    padding: 0.625rem 0.75rem;
}

.chat-list--item__row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
}

.chat-list--item__unread {
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    pointer-events: none;
}

.chat-list--item__unread_visible {
    background-color: var(--theme-fg-A400, #ff9800);
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.55);
}

.chat-list--item__avatar {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.chat-list--item__avatar_empty {
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
}

.chat-list--item__urgency {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.chat-list--item__urgency_warn {
    background-color: rgba(255, 152, 0, 0.18);
    color: #ffb74d;
}

.chat-list--item__urgency_alert {
    background-color: rgba(244, 67, 54, 0.18);
    color: #ef5350;
}

.chat-list--item__quick-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.chat-list--item__quick-action {
    padding: 0.125rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.chat-list--item__quick-action:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.chat-list--item__quick-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-list--item_focused {
    background-color: rgba(255, 255, 255, 0.06);
    outline: 1px solid var(--theme-fg-A400, #ff9800);
    outline-offset: -1px;
}

.inbox-tab-count {
    margin-left: 0.375rem;
    padding: 0.0625rem 0.375rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.6875rem;
    font-weight: 600;
}

.inbox-tab-count_alert {
    background-color: rgba(244, 67, 54, 0.25);
    color: #ef5350;
}

.inbox-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    flex: 0 0 auto;
}

.inbox-settings-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.inbox-filter-row {
    row-gap: 0.5rem;
}

.inbox-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.inbox-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.inbox-filter-chip:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.inbox-filter-chip input[type="radio"] {
    display: none;
}

.inbox-filter-chip_active {
    border-color: rgba(255, 152, 0, 0.45);
    background-color: rgba(255, 152, 0, 0.08);
    color: #ff9800;
}

.inbox-filter-chip_active:hover {
    border-color: rgba(255, 152, 0, 0.65);
    background-color: rgba(255, 152, 0, 0.14);
}

/*
 * Mobile: telas estreitas tem espaço pra empilhar o meta (status + tempo + assumir) abaixo do corpo do item da
 * lista, em vez de espremê-los na coluna direita; e as tabs (5 abas com contadores) precisam de scroll horizontal
 * em vez de quebrar/clipar.
 */
.navbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
    }

    .navbar--item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .chat-list--item__row {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .chat-list--item__body {
        flex: 1 1 calc(100% - 2.5rem);
        min-width: 0;
    }

    .chat-list--item__meta {
        flex: 1 1 100%;
        text-align: left;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.375rem 0.625rem;
        padding-top: 0.125rem;
    }

    .chat-list--item__meta br {
        display: none;
    }

    .chat-list--item__quick-actions {
        margin-top: 0;
        margin-left: auto;
    }

    .inbox-tab-count {
        margin-left: 0.25rem;
        padding: 0.0625rem 0.3125rem;
    }
}

.chat-list--item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.chat-list--item__meta {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

.chat-list--item__preview {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.25rem 0 0 0;
}

.chat-page--link-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-page--actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.chat-page--messages {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    padding: 0.5rem 0;
}

.chat-page--footer {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 0.5rem 0 0.75rem;
}

.chat-page--closed-banner {
    margin: 0;
    text-align: center;
}

.chat-thread {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.chat-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-bottom: 0.375rem;
}

.chat-row_mine {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.chat-row_other {
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}

.chat-row_continuation {
    margin-top: -0.125rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.5rem 0.75rem 0.375rem 0.75rem;
    border-radius: 0.75rem;
    color: #fff;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.chat-bubble_mine {
    background-color: #2e3a4a;
    background-color: var(--theme-card-3, #2e3a4a);
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble_other {
    background-color: #1d2532;
    background-color: var(--theme-card-2, #1d2532);
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble_staff {
    background-color: #1c2b28;
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble--sender {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.125rem;
}

.chat-bubble--content {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.chat-bubble--time {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 0.125rem;
    line-height: 1;
}

.chat-bubble--edited {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.35);
    margin-right: 0.3rem;
}

.chat-bubble--actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-right: 0.3rem;
    padding-bottom: 0.25rem;
    visibility: hidden;
}

.chat-row:hover .chat-bubble--actions {
    visibility: visible;
}

.chat-bubble--action-btn {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.625rem;
    padding: 0;
    -webkit-transition: color 0.15s ease, background-color 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.chat-bubble--action-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-bubble--action-btn_danger:hover {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.15);
}


.chat-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    color: var(--theme-secondary, rgba(255, 255, 255, 0.6));
    padding: 1.5rem 0;
}

.chat-date-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.625rem 0;
}

.chat-date-separator::before,
.chat-date-separator::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-date-separator__pill {
    flex: 0 0 auto;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    color: var(--theme-primary, rgba(255, 255, 255, 0.75));
}

.chat-new-message-pill {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: none;
    background-color: var(--theme-fg-A400, #ff9800);
    color: #fff;
    font-size: 0.8125rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.chat-new-message-pill:hover {
    opacity: 0.9;
}

.chat-composer--counter {
    align-self: flex-end;
    padding: 0 1rem;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    color: var(--theme-secondary, rgba(255, 255, 255, 0.5));
}

.chat-composer--counter_warn {
    color: var(--theme-fg-A400, #ff9800);
}

.chat-empty_directed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 2rem 1rem 0.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.chat-empty_directed--icon {
    font-size: 2.5rem;
    color: var(--theme-A400, #F50057);
}

.chat-empty_directed--title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-primary, #fff);
}

.chat-empty_directed--hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--theme-secondary, rgba(255, 255, 255, 0.6));
}

.chat-empty_directed--arrow {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    color: var(--theme-A400, #F50057);
    animation: chat-empty-arrow-bounce 1.4s ease-in-out infinite;
}

@keyframes chat-empty-arrow-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

.chat-composer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-edit-indicator {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid var(--theme-fg-A400, #ff9800);
    background: rgba(255, 152, 0, 0.08);
    border-radius: 0 0.25rem 0.25rem 0;
}

.chat-edit-indicator--cancel {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-size: 0.6875rem;
    padding: 0;
    -webkit-transition: color 0.15s ease, background-color 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.chat-edit-indicator--cancel:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.chat-composer {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background-color: #202937;
    background-color: var(--theme-card, #202937);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-composer:focus-within {
    border-color: var(--theme-A400, #F50057);
    box-shadow: 0 0 0 3px rgba(245, 0, 87, 0.15);
}

.chat-composer_highlight {
    border-color: var(--theme-A400, #F50057);
    animation: chat-composer-pulse 2s ease-in-out infinite;
}

.chat-composer_highlight:focus-within {
    animation: none;
}

@keyframes chat-composer-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 0, 87, 0.45);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(245, 0, 87, 0);
    }
}

.chat-composer--field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    background-color: transparent;
    border: none;
    outline: none;
    resize: none;
    padding: 0.5rem 0.5rem;
    margin: 0;
    color: #fff;
    font: inherit;
    line-height: 1.4;
    min-height: 1.5rem;
    max-height: 8rem;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
    /* Auto-grow nativo até max-height. Em navegadores antigos, cai pro min-height + scroll interno. */
    field-sizing: content;
}

.chat-composer--field::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-composer--field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-composer--send {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #F50057;
    background-color: var(--theme-A400, #F50057);
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-transition: background-color 0.15s, opacity 0.15s;
    transition: background-color 0.15s, opacity 0.15s;
}

.chat-composer--send:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* === Conversation menus (character & actions dropdowns) === */

.conv-menus {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.5rem;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 0.5rem;
}

.conv-menu {
    position: relative;
}

.conv-menu--backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
}

.conv-menu--trigger {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.75);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    -webkit-transition: border-color 0.15s, background-color 0.15s, color 0.15s;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.conv-menu--trigger:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
}

.conv-menu--trigger-chevron {
    font-size: 0.625rem;
    opacity: 0.7;
}

.conv-menu--list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.375rem);
    z-index: 99;
    min-width: 13rem;
    padding: 0.375rem 0;
    margin: 0;
    list-style: none;
    background-color: #202937;
    background-color: var(--theme-card, #202937);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.conv-menu--item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: background-color 0.12s, color 0.12s;
    transition: background-color 0.12s, color 0.12s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.conv-menu--item:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 1);
}

.conv-menu--item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.conv-menu--item .fa-solid,
.conv-menu--item .fa-regular {
    width: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

.conv-menu--divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 0.3125rem 0;
}

/* === Resolve panel === */

.conv-resolve-panel {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.875rem;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0.625rem 0.875rem;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
}

.conv-resolve-panel--info {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.125rem;
}

.conv-resolve-panel--name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.conv-resolve-panel--description {
    font-size: 0.8125rem;
}

.conv-resolve-panel--actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.5rem;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* === Mail notification link (near composer) === */

.conv-notify-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    padding: 0 0.25rem 0.125rem;
}

.conv-notify-link {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    background: none;
    border: none;
    color: #2196F3;
    font: inherit;
    font-size: 0.8125rem;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.85;
    -webkit-transition: opacity 0.15s;
    transition: opacity 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.conv-notify-link:hover:not(:disabled) {
    opacity: 1;
}

.conv-notify-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .conv-menu--trigger-label {
        display: none;
    }
}
