body { margin: 0; background: #f5f5f5; color: #222; font: 16px/1.5 system-ui, sans-serif; }
main { max-width: 760px; margin: 32px auto; padding: 0 20px 32px; }
h1 { font-size: 26px; } h2 { font-size: 20px; }
label { display: block; margin: 12px 0 5px; }
.row { display: flex; gap: 8px; }
input, textarea, button, select { box-sizing: border-box; font: inherit; padding: 9px 12px; border: 1px solid #999; border-radius: 4px; }
input { flex: 1; min-width: 0; } textarea { display: block; width: 100%; resize: vertical; margin-bottom: 8px; }
button { cursor: pointer; background: #fff; white-space: nowrap; } button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid #245ba8; outline-offset: 2px; }
#error { color: #a11919; } #ownership { color: #735600; }
#messages { min-height: 150px; max-height: 440px; overflow-y: auto; border: 1px solid #ccc; background: #fff; padding: 12px; }
.message { margin: 0 0 12px; padding: 10px; background: #f0f0f0; border-radius: 4px; }
.message.guest { margin-left: 28px; background: #edf4ff; }
.message.assistant { margin-right: 28px; }
.message p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message small { color: #555; }
.chat-list { width: 100%; border-collapse: collapse; background: #fff; }
.chat-list th, .chat-list td { text-align: left; padding: 12px; border-bottom: 1px solid #ddd; }
.chat-list tbody tr { cursor: pointer; }
.chat-time { font-variant-numeric: tabular-nums; }
.chat-list tbody tr:hover, .chat-list tbody tr:focus-within { background: #edf4ff; }
#existing-chats { flex-wrap: wrap; }
@media (max-width: 480px) { .row { flex-direction: column; } main { margin-top: 16px; } }
