.chat-input-mention-popover {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    margin-bottom: 4px;
    background: #f2f2eb;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    z-index: 1070;
    font-family: Volter, Volter_Goldfish, "Ubuntu", sans-serif;
    image-rendering: pixelated;
}

.chat-input-mention-popover-header {
    height: 24px;
    padding: 0 8px;
    background: #30728c;
    border-bottom: 2px solid #000;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-family: UbuntuCondensed, Ubuntu, sans-serif;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-input-mention-popover-header-dot {
    width: 8px;
    height: 8px;
    background: #ffdc4c;
    border: 1px solid #000;
    border-radius: 50%;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.chat-input-mention-popover-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-input-mention-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    transition: background 0.08s linear, border-color 0.08s linear;
}

.chat-input-mention-row:hover {
    background: rgba(48, 114, 140, 0.12);
}

.chat-input-mention-row.is-selected {
    background: #30728c;
    border-color: #000;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chat-input-mention-row-tile {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #000;
    background: #cfcfc4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.chat-input-mention-row.is-selected .chat-input-mention-row-tile {
    background: #1f5a72;
}

.chat-input-mention-row-tile.is-alias {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffdc4c 0%, #f0a91c 100%);
    color: #4a2b00;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
}

.chat-input-mention-row.is-selected .chat-input-mention-row-tile.is-alias {
    background: linear-gradient(180deg, #ffe97a 0%, #f9bd44 100%);
}

.chat-input-mention-row-tile .avatar-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    background-repeat: no-repeat;
    background-position: -22px -32px;
    background-size: auto;
}

.chat-input-mention-row-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    gap: 0;
}

.chat-input-mention-row-name {
    font-family: UbuntuCondensed, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.1;
    color: #2c2c2c;
    font-weight: 700;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-input-mention-row.is-selected .chat-input-mention-row-name {
    color: #fff;
}

.chat-input-mention-row-desc {
    font-size: 10px;
    line-height: 1.1;
    color: #6b6b6b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-input-mention-row.is-selected .chat-input-mention-row-desc {
    color: #d6e6ee;
}

.chat-input-mention-row-kind {
    font-size: 9px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 8px;
    border: 1px solid #000;
    background: #cfe6ef;
    color: #1c3d4c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chat-input-mention-row-kind.is-alias {
    background: #ffe97a;
    color: #5a3a00;
}

.chat-input-mention-row.is-selected .chat-input-mention-row-kind {
    background: #ffdc4c;
    color: #4a2b00;
}

.chat-input-command-popover {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    margin-bottom: 4px;
    background: #f2f2eb;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    z-index: 1070;
    font-family: Volter, Volter_Goldfish, "Ubuntu", sans-serif;
    image-rendering: pixelated;
}

.chat-input-command-popover-header {
    height: 24px;
    padding: 0 8px;
    background: #2f8d4a;
    border-bottom: 2px solid #000;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-family: UbuntuCondensed, Ubuntu, sans-serif;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-input-command-popover-header-dot {
    width: 8px;
    height: 8px;
    background: #ffdc4c;
    border: 1px solid #000;
    border-radius: 50%;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.chat-input-command-popover-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-input-command-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    transition: background 0.08s linear, border-color 0.08s linear;
}

.chat-input-command-row:hover {
    background: rgba(47, 141, 74, 0.12);
}

.chat-input-command-row.is-selected {
    background: #2f8d4a;
    border-color: #000;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chat-input-command-row-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #000;
    background: linear-gradient(180deg, #b6e6c4 0%, #5ec07d 100%);
    color: #1a4a28;
    font-weight: 700;
    font-size: 14px;
    font-family: UbuntuCondensed, Ubuntu, sans-serif;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.chat-input-command-row.is-selected .chat-input-command-row-tile {
    background: linear-gradient(180deg, #c8f0d5 0%, #7ed79a 100%);
}

.chat-input-command-row-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    gap: 0;
}

.chat-input-command-row-name {
    font-family: UbuntuCondensed, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.1;
    color: #2c2c2c;
    font-weight: 700;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-input-command-row.is-selected .chat-input-command-row-name {
    color: #fff;
}

.chat-input-command-row-desc {
    font-size: 10px;
    line-height: 1.1;
    color: #6b6b6b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-input-command-row.is-selected .chat-input-command-row-desc {
    color: #d9efde;
}