* {
    box-sizing: border-box;
}


body {

    margin: 0;

    padding: 30px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        #eeeeee;

}



.container {

    width: 1000px;

    max-width: 100%;

    margin: auto;

}



h2 {

    margin-top: 0;

}



.toolbar {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

}



select,
button {

    padding: 10px;

    border-radius: 5px;

    border: 1px solid #bbb;

}



button {

    cursor: pointer;

    background: #ffffff;

}



button:hover {

    background: #f5f5f5;

}



button:disabled {

    opacity: .5;

    cursor: not-allowed;

}

#newConversation {
  margin-inline-start: auto;
  white-space: nowrap;
}

#chat {

    height: 550px;

    overflow-y: auto;

    padding: 20px;

    background: white;

    border-radius: 8px;

    border: 1px solid #ccc;
margin-block-end: 8px;
}



.row {

    display: flex;

    margin-bottom: 20px;

}



.row.user {

    justify-content: flex-end;

}



.row.assistant {

    justify-content: flex-start;

}



.row > div {

    max-width: 75%;

}



.sender {

    font-size: 12px;

    color: #777;

    margin-bottom: 4px;

}



.bubble {

    padding: 12px 16px;

    border-radius: 12px;

    white-space: pre-wrap;

    line-height: 1.4;

}



.user .bubble {

    background:
        #d7ebff;

}



.assistant .bubble {

    background:
        #eeeeee;

}



.input-area {

    margin-top: 20px;

}



textarea {

    width: 100%;

    height: 120px;

    resize: vertical;

    padding: 12px;

    font-size: 15px;

    border-radius: 6px;

    border: 1px solid #bbb;

}



.controls {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 10px;

}



#status {

    color: #666;

    font-style: italic;

}

dialog{

    border:none;

    border-radius:10px;

    padding:25px;

    width:420px;

    box-shadow:0 0 25px rgba(0,0,0,.25);

}

dialog::backdrop{

    background:rgba(0,0,0,.45);

}

.dialogButtons{

    display:flex;

    justify-content:flex-end;

    gap:10px;

    margin-top:20px;

}

.dialogButtons button{

    min-width:110px;

}

.bottom {
  margin-block-start: .25rem;
}