* { box-sizing: border-box; }
:root { color: #142a29; background: #eef3ef; font: 16px system-ui,sans-serif; }
body { margin: 0; }
header { padding: 18px max(5vw,20px); background: #143531; color: #fff; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
header a { color: inherit; text-decoration: none; }
header > a { font-size: 1.65rem; font-weight: 800; letter-spacing: -.08em; }
header span { color: #9adaaf; }
nav { display: flex; gap: 18px; }
main { max-width: 790px; margin: 48px auto; padding: 0 20px; }
.intro p { margin: 0 0 8px; color: #34675a; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.06; margin: 0 0 22px; letter-spacing: -.055em; }
.panel { background: #fff; border: 1px solid #d3dfd7; border-radius: 20px; padding: clamp(16px, 4vw, 30px); }
#status { color: #39635b; font-weight: 650; }
#messages { list-style: none; padding: 0; max-height: 380px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
#messages li { padding: 10px 14px; background: #eef3ef; border-radius: 14px; max-width: 90%; align-self: start; white-space: pre-wrap; overflow-wrap: anywhere; }
#messages .customer { background: #d8ede0; align-self: flex-end; }
#messages .assistant { background: #eef3ef; align-self: flex-start; }
#messages .operator { background: #e2ebf5; align-self: flex-start; }
.message-author { display: block; margin-bottom: 4px; font-size: .75rem; color: #314e49; }
#messages .system { align-self: center; font-size: .9rem; text-align: center; }
label { display: block; font-weight: 650; margin-bottom: 6px; }
input,textarea { width: 100%; border: 1px solid #96aea3; padding: 10px; font: inherit; border-radius: 8px; color: inherit; margin-bottom: 10px; }
textarea { resize: vertical; }
button { background: #195a49; color: white; border: none; border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.actions, #queue { display: flex; flex-wrap: wrap; gap: 8px; }
#queue { margin-bottom: 18px; }
#error { color: #8f2525; margin-bottom: 0; }
.button-like { display: inline-block; margin: 0; background: #fff; color: #195a49; border: 1px solid #195a49; border-radius: 8px; padding: 9px 14px; font-weight: 650; cursor: pointer; }
.button-like input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.button-like:focus-within { outline: 2px solid #195a49; outline-offset: 2px; }
#attachment { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#preview { max-height: 90px; max-width: 160px; border-radius: 8px; border: 1px solid #d3dfd7; }
#remove-image { background: #fff; color: #8f2525; border: 1px solid #c9a3a3; }
button.secondary { background: #fff; color: #195a49; border: 1px solid #195a49; }
button.secondary.live { background: #8f2525; color: #fff; border-color: #8f2525; }
#recording { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
#audio-preview { max-width: 100%; }
#remove-audio { background: #fff; color: #8f2525; border: 1px solid #c9a3a3; }
.image-tag { display: block; font-size: .85rem; color: #314e49; margin-bottom: 2px; }
[hidden] { display: none !important; }

