* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f1eb;
    color: #292824;
}

.app {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.conversation {
    width: 100%;
    max-width: 760px;
    min-height: calc(100vh - 80px);
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.header {
    padding: 28px 32px;
    border-bottom: 1px solid #e8e5df;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.subtitle {
    margin-top: 4px;
    color: #77736c;
    font-size: 0.9rem;
}

.messages {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.message {
    max-width: 680px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.message-name {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #77736c;
}

.message p {
    margin: 0 0 8px;
}

.message.user {
    margin-left: auto;
    padding: 14px 18px;
    background: #f0ede7;
    border-radius: 14px;
}

.input-area {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e8e5df;
}

textarea {
    flex: 1;
    resize: none;
    border: 1px solid #d8d4cc;
    border-radius: 12px;
    padding: 14px;
    font: inherit;
    outline: none;
}

textarea:focus {
    border-color: #77736c;
}

button {
    align-self: flex-end;
    border: 0;
    border-radius: 12px;
    padding: 14px 22px;
    background: #292824;
    color: white;
    font: inherit;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .app {
        padding: 0;
    }

    .conversation {
        min-height: 100vh;
        border-radius: 0;
    }

    .header,
    .messages {
        padding: 24px 20px;
    }

    .input-area {
        padding: 16px;
    }
}
