html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Chat UI */

.chat-shell {
    display: flex;
    height: 100%;
}

.chat-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.chat-list {
    overflow-y: auto;
    flex: 1;
}

.chat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 2px;
}

.chat-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.chat-list-item.active {
    background: rgba(255, 255, 255, 0.12);
}

.chat-list-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.chat-delete {
    opacity: 0;
    transition: opacity 0.15s;
}

.chat-list-item:hover .chat-delete {
    opacity: 1;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 720px;
}

.chat-bubble.user {
    align-self: flex-end;
    max-width: 65%;
}

.chat-bubble.user .chat-bubble-text {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

.chat-bubble-label {
    font-size: 0.75rem;
    opacity: 0.55;
    margin-bottom: 4px;
}

.chat-bubble-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 6px 0;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    animation: chat-typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chat-typing-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 0.9; }
}

.chat-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
