:root{color-scheme:dark;background:#091723;color:#eaf8fa;font:15px/1.5 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0}
.widget{max-width:52rem;margin:auto;padding:clamp(.8rem,4vw,1.2rem);display:grid;grid-template-rows:auto minmax(8rem,1fr) auto auto auto;min-height:100dvh;gap:.65rem}
header{display:flex;gap:.75rem;align-items:center;padding-bottom:.7rem;border-bottom:1px solid #2c5061}h1,p{margin:0}h1{font-size:1.15rem;line-height:1.25}
header p,small,label{color:#b2c8d2;font-size:.85rem}
.conversation{max-height:45dvh;overflow:auto;padding:.45rem .2rem;display:flex;flex-direction:column;align-items:flex-start;gap:.65rem}
.message{max-width:94%;border-radius:.7rem;padding:.6rem .75rem;background:#163646;overflow-wrap:anywhere;white-space:pre-wrap}
.message.user{align-self:flex-end;background:#24535a}
.compose{display:flex;gap:.4rem;margin-top:.25rem}.compose input{flex:1;min-width:0}
input,button{font:inherit;padding:.6rem .7rem;border-radius:.55rem;border:1px solid #467584;min-height:42px}
input{color:inherit;background:#0c2330}button{background:#92eff2;color:#091923;font-weight:740;cursor:pointer}
button:disabled{opacity:.65;cursor:wait}:is(button,input,a):focus-visible{outline:2px solid #ddfbfd;outline-offset:2px}
footer{display:flex;align-items:start;justify-content:space-between;gap:.7rem;line-height:1.35}
footer a{color:#9cf3f5;font-weight:700;white-space:nowrap;font-size:.85rem}.status:empty{display:none}.status{color:#ffd9c4;font-size:.85rem}
