/* RealStack AI — scoped, lightweight, no framework or remote assets. */
#rs-la-root{position:fixed;right:24px;bottom:24px;z-index:70;font-family:Inter,system-ui,sans-serif;color:#f3f5f3;text-align:left;font-size:14px;line-height:1.5}
#rs-la-root *{box-sizing:border-box}
#rs-la-toggle{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 17px;border:1px solid #3a5034;border-radius:999px;background:#10180e;color:#f3f5f3;box-shadow:0 8px 30px #0008;cursor:pointer;font:inherit;font-weight:600}
#rs-la-toggle svg,.rs-la-mark svg{width:24px;height:24px;color:#39ff14}
#rs-la-toggle b{color:#39ff14;font-weight:600}
.rs-la-dot{width:6px;height:6px;border-radius:50%;background:#39ff14}
#rs-la-panel{display:flex;flex-direction:column;width:390px;height:600px;max-height:calc(100dvh - 48px);overflow:hidden;border:1px solid #34402f;border-radius:22px;background:#0d100d;box-shadow:0 20px 70px #0009}
#rs-la-panel[hidden]{display:none}
#rs-la-root.is-open #rs-la-toggle{display:none}
#rs-la-head{display:flex;align-items:center;gap:11px;padding:18px;border-bottom:1px solid #253022;background:linear-gradient(130deg,#172313,#0d100d)}
.rs-la-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #384931;border-radius:13px;background:#1d3015;flex-shrink:0}
#rs-la-title{margin:0;color:#f3f5f3;font-size:16px;font-weight:650;letter-spacing:-.02em}
#rs-la-subtitle{margin:2px 0 0;color:#adbba7;font-size:11px}
#rs-la-close{margin-left:auto;align-self:flex-start;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#bac4b7;font:inherit;font-size:24px;cursor:pointer}
#rs-la-close:hover{background:#253022;color:white}
#rs-la-messages{flex:1;min-height:90px;padding:18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#364630 transparent}
.rs-la-message{margin:0 0 16px;overflow-wrap:anywhere}
.rs-la-author{display:block;margin-bottom:5px;font-size:10px;letter-spacing:.045em;color:#99bc8e}
.rs-la-message p{margin:0 0 9px;font-size:13px;line-height:1.65;color:#e1e7df}
.rs-la-message ul{margin:8px 0;padding-left:18px}
.rs-la-message li{margin:6px 0;font-size:13px;color:#e1e7df}
.rs-la-message li::marker{color:#39ff14}
.rs-la-message[data-role=user]{margin-left:26px;padding:11px 13px;background:#1b2617;border:1px solid #304129;border-radius:14px 14px 3px 14px}
.rs-la-message[data-role=user] p{margin-bottom:0}
.rs-la-message[data-role=user] .rs-la-author{color:#bdcbb7}
.rs-la-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.rs-la-sources span{flex-basis:100%;font-size:10px;color:#a6b29f}
.rs-la-sources a{padding:4px 8px;border:1px solid #34442d;border-radius:8px;font-size:11px;color:#c4edb4;text-decoration:none;max-width:100%}
#rs-la-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 10px}
#rs-la-suggestions[hidden]{display:none}
#rs-la-suggestions button{padding:7px 10px;text-align:left;border:1px solid #34422f;border-radius:10px;background:#151c12;color:#dce8d6;font:inherit;font-size:11px;cursor:pointer}
#rs-la-status{min-height:0;margin:0;padding:0 18px;font-size:11px;color:#b8e2a7}
#rs-la-status:not(:empty){padding-bottom:10px}
#rs-la-form{display:flex;gap:7px;padding:12px;border-top:1px solid #263022}
#rs-la-input{flex:1;width:0;min-width:0;min-height:44px;border:1px solid #36432f;border-radius:11px;background:#151b12;color:white;font:inherit;font-size:16px;padding:10px}
#rs-la-input::placeholder{color:#9ba895;font-size:12px}
#rs-la-send{flex:0 0 auto;min-height:44px;padding:8px 13px;border:1px solid #39ff14;border-radius:11px;background:#39ff14;color:#0b1508;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
#rs-la-send:disabled{opacity:.55;cursor:wait}
#rs-la-panel footer{padding:0 16px 14px}
#rs-la-handoff{display:block;width:100%;min-height:38px;border:1px solid #34442d;border-radius:9px;background:transparent;color:#b9ed9d;font:inherit;font-size:12px;cursor:pointer}
#rs-la-privacy,#rs-la-contact-note{margin:8px 0 0;font-size:10px;color:#a4b09e;line-height:1.5}
#rs-la-contact-note:empty{display:none}
#rs-la-root :focus-visible{outline:2px solid #8bff72;outline-offset:3px}
.rs-la-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){#rs-la-root{right:12px;left:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));display:flex;justify-content:flex-end}#rs-la-panel{width:100%;height:580px;max-height:calc(100dvh - 116px - env(safe-area-inset-bottom,0px));border-radius:18px}#rs-la-head{padding:14px}#rs-la-messages{padding:14px}#rs-la-suggestions{padding-left:14px;padding-right:14px}#rs-la-form{padding:10px}#rs-la-panel footer{padding:0 12px 12px}}
@media(prefers-reduced-motion:reduce){#rs-la-root *{scroll-behavior:auto}}
