/* Minimal stylesheet; same-origin file because the content policy forbids inline styles. */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #1c1f23; background: #f6f7f8; }
.top { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid #e1e4e8; }
.brand { font-weight: 600; color: #1c1f23; text-decoration: none; }
.top nav a, .top nav button { margin-left: .8rem; color: #1b6b45; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
form.inline { display: inline; }
main { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.chat-wrap { display: flex; gap: 1rem; }
.convs { width: 220px; display: flex; flex-direction: column; gap: .3rem; }
.convs a { padding: .4rem .6rem; border-radius: 6px; color: #1c1f23; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convs a.active, .convs a:hover { background: #e3efe8; }
.convs .new { background: #1b6b45; color: #fff; text-align: center; }
.chat { flex: 1; min-width: 0; }
#log { height: 60vh; overflow-y: auto; background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; padding: .8rem; }
.m { margin: .5rem 0; padding: .6rem .8rem; border-radius: 8px; max-width: 85%; overflow-wrap: anywhere; }
.m.user { background: #e3efe8; margin-left: auto; white-space: pre-wrap; }
.m.assistant { background: #f0f1f3; }
pre { background: #1c1f23; color: #f6f7f8; padding: .6rem; border-radius: 6px; overflow-x: auto; }
#form { display: flex; gap: .5rem; margin-top: .6rem; }
#msg { flex: 1; padding: .5rem; font: inherit; border: 1px solid #c5c9ce; border-radius: 6px; resize: vertical; }
button[type=submit] { padding: .5rem 1rem; background: #1b6b45; color: #fff; border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
button[disabled] { opacity: .5; cursor: wait; }
.status { color: #a32; min-height: 1.4rem; margin: .3rem 0; }
.note { font-size: .85rem; color: #5a6068; }
.card { max-width: 420px; margin: 2rem auto; background: #fff; padding: 1.5rem; border: 1px solid #e1e4e8; border-radius: 8px; }
.card label { display: block; margin-top: .8rem; }
.card input[type=text], .card input[type=email], .card input[type=password], .card input[type=tel] { width: 100%; padding: .5rem; border: 1px solid #c5c9ce; border-radius: 6px; font: inherit; }
.err { color: #a32; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }   /* honeypot field, hidden from people */
@media (max-width: 700px) { .chat-wrap { flex-direction: column; } .convs { width: 100%; flex-direction: row; overflow-x: auto; } }
