* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #222;
    background: #f4f4f1;
}
main {
    max-width: 752px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}
h1 { margin: 0 0 16px; font-size: 1.6em; }
.settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    margin-bottom: 20px;
}
.settings label { display: block; font-size: 0.85em; color: #555; }
.settings select, .settings textarea { width: 100%; padding: 6px; font: inherit; }
.settings textarea { display: block; resize: vertical; }
.settings .wide { grid-column: 1 / -1; }
.settings .check { display: flex; align-items: center; gap: 8px; }
.settings .check label { font-size: 0.9em; }
@media screen and (max-width: 500px) {
    .settings { grid-template-columns: 1fr; }
}
.chat {
    font-family: 'Courier New', Courier, monospace;
    padding: 8px 8px 8px 38px;
    text-indent: -30px;
    color: white;
}
.user { background-color: rgb(52, 53, 65); }
.chatbot { background-color: rgb(68, 70, 85); border-bottom: 1px solid #666; }
.quoted { color: #6F6; }
#input {
    display: block;
    width: 100%;
    height: 200px;
    padding: 8px;
    border: none;
    font-size: 15px;
    color: white;
    background-color: rgb(52, 53, 65);
}
#input:focus { outline: none; }
.submitbutton { width: 100%; padding: 8px; font-size: 1em; }
.speak { margin-top: 0.5em; text-indent: 0; }
.speak audio { height: 32px; max-width: 100%; }
.speak-error { display: block; font-size: 0.85em; opacity: 0.7; }
.speak-error[hidden] { display: none; }
