#homeHealthChat .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

#homeHealthChat .chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

#homeHealthChat .chat-message-user {
    align-self: flex-end;
    background-color: #6a8880;
    color: #ffffff;
}

#homeHealthChat .chat-message-assistant {
    align-self: flex-start;
    background-color: #eef2f1;
    color: #222222;
}

#homeHealthChat .chat-message-pending {
    color: #969696;
    font-style: italic;
}

#homeHealthChat .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#homeHealthChat .chat-header h1 {
    margin-bottom: 0;
}

#homeHealthChat .chat-header form[hidden] {
    display: none;
}

#homeHealthChat .chat-confirm {
    align-self: flex-start;
    max-width: 85%;
    padding: 12px 14px;
    border: 2px solid #6a8880;
    border-radius: 8px;
}

#homeHealthChat .chat-confirm-summary {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.4;
    margin-bottom: 12px;
}

#homeHealthChat .chat-confirm-remaining {
    font-size: 0.9em;
    color: #6a6a6a;
    margin-bottom: 12px;
}

#homeHealthChat .chat-confirm-actions {
    display: flex;
    gap: 10px;
}

#homeHealthChat .chat-confirm-closed {
    border-color: #d0d0d0;
    color: #969696;
}

#homeHealthChat .chat-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 4px 6px 4px 12px;
    background-color: #eef2f1;
    border-radius: 16px;
}

#homeHealthChat .chat-attachment[hidden] {
    display: none;
}

#homeHealthChat .chat-attachment-name {
    overflow-wrap: anywhere;
    font-size: 14px;
}

#homeHealthChat .chat-input-box {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 8px;
    padding: 6px 6px 6px 12px;
    border: 1px solid #a4d3c9;
    border-radius: 22px;
    background-color: #ffffff;
}

#homeHealthChat .chat-input-box:focus-within {
    border-color: #6a8880;
}

#homeHealthChat .chat-input-box textarea {
    flex: 1;
    min-width: 0;
    max-height: 200px;
    margin: 0;
    padding: 7px 0 7px 4px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    resize: none;
    overflow-y: auto;
    line-height: 18px;
    font-family: inherit;
}

#homeHealthChat .chat-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 6px;
    background-color: transparent;
    border-radius: 50%;
    fill: #969696;
    cursor: pointer;
}

#homeHealthChat .chat-icon-button:hover {
    background-color: transparent;
    fill: #6a8880;
}

#homeHealthChat .chat-attachment-remove {
    width: 24px;
    height: 24px;
    padding: 4px;
}

#homeHealthChat .chat-send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 50%;
    fill: #ffffff;
}

#homeHealthChat .chat-form-busy .chat-icon-button {
    fill: #d0d0d0;
    cursor: not-allowed;
}

#homeHealthChat .chat-capabilities-toggle {
    display: block;
    margin-top: 10px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#homeHealthChat .chat-capabilities-toggle:hover {
    background-color: transparent;
    color: #6a8880;
}

