/* Text chat on /kitt (2026-09-26): typed messages for when there is no microphone */
.text-chat {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 32px));
    z-index: 8500;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: Rajdhani, Arial, sans-serif;
}
.text-chat-log {
    max-height: 132px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.text-chat-log:empty { display: none; }
.text-chat-line {
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(20, 0, 0, 0.82);
    border: 1px solid rgba(255, 0, 51, 0.35);
    color: #f2f2f2;
    font-size: 15px;
    line-height: 1.35;
}
.text-chat-line.user { align-self: flex-end; border-color: rgba(255, 170, 0, 0.45); }
.text-chat-line.kitt strong { color: #ff3355; }
.text-chat-form { display: flex; gap: 8px; }
.text-chat-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 17px;
    color: #fff;
    background: rgba(10, 0, 0, 0.88);
    border: 1px solid #ff0033;
    border-radius: 6px;
    outline: none;
}
.text-chat-input:focus { box-shadow: 0 0 0 2px rgba(255, 0, 51, 0.45); }
.text-chat-send {
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #c4002a;
    border: 1px solid #ff0033;
    border-radius: 6px;
    cursor: pointer;
}
.text-chat-send:disabled, .text-chat-input:disabled { opacity: 0.6; cursor: wait; }
