:root { color-scheme: light; font: 14px/1.55 system-ui, sans-serif; color: #242424; background: white; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; height: 100dvh; display: flex; flex-direction: column; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: #805035; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid #805035; outline-offset: 3px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e6e6e8; }
header strong { display: block; font: 25px Georgia, serif; letter-spacing: -1px; }
header span { color: #666; font-size: 12px; }
#close { border: 0; background: #f2f2f4; border-radius: 50%; height: 34px; width: 34px; font-size: 25px; }
main { flex: 1; overflow-y: auto; padding: 20px; background: #f6f6f8; overscroll-behavior: contain; }
.message { max-width: 96%; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; overflow-wrap: anywhere; }
.message p { margin: 0; white-space: pre-wrap; }
.message p + p { margin-top: 10px; }
.assistant { background: white; border: 1px solid #e4e4e7; border-bottom-left-radius: 3px; }
.user { margin-left: auto; color: white; background: #282828; border-bottom-right-radius: 3px; }
.muted { font-size: 12px; color: #69696c; }
.error { border-color: #b96d4a; }
.product { border-top: 1px solid #e5e5e5; padding-top: 12px; margin-top: 12px; }
.product strong { display: block; margin-bottom: 7px; }
.product a { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.suggestions button { background: white; border: 1px solid #d6d6da; border-radius: 18px; padding: 8px 12px; font-size: 12px; text-align: left; }
footer { padding: 10px 16px 14px; background: white; border-top: 1px solid #e6e6e8; }
#status { font-size: 12px; color: #666; margin: 0 0 8px; min-height: 18px; }
form { display: flex; align-items: end; gap: 8px; }
textarea { resize: none; flex: 1; width: 100%; min-width: 0; border: 1px solid #d6d6da; border-radius: 12px; padding: 10px; background: white; color: #222; font-size: 16px; }
#send { border: 0; padding: 11px 14px; border-radius: 20px; color: white; background: #282828; }
.footer-links { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; }
details { font-size: 11px; color: #69696c; margin-top: 9px; }
summary { cursor: pointer; }
details p { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
