.input-area {
    padding: 8px 16px calc(8px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-input);
    flex-shrink: 0;
}

.input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 768px;
    margin: 0 auto;
}

.input-row textarea {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    resize: none;
    font-size: 16px;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}

.input-row textarea:focus {
    border-color: var(--accent);
}

.input-row textarea::placeholder {
    color: var(--text-tertiary);
}

.attachment-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    max-width: 768px;
    margin: 0 auto;
}

.attachment-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.attachment-chip .remove {
    cursor: pointer;
    opacity: 0.6;
    font-size: 14px;
    transition: opacity 0.15s;
}

.attachment-chip .remove:hover {
    opacity: 1;
}

/* Voice input button */
.mic-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
}

.mic-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.mic-btn.listening {
    background: var(--danger);
    color: white;
    animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
