#studio-chat{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;font:15px/1.45 system-ui,sans-serif;color:#f7f2ea}
#studio-chat [hidden]{display:none}
#studio-chat button{font:inherit;cursor:pointer}
#studio-chat .sc-launch,#studio-chat button[type=submit]{border:1px solid #ebc888;background:#e0ba76;color:#191611;font-weight:650;padding:10px 16px;border-radius:8px}
#studio-chat .sc-launch{border-radius:24px;box-shadow:0 3px 18px #0006}
#sc-panel{width:min(355px,calc(100vw - 32px));height:min(450px,calc(100dvh - 40px));display:flex;flex-direction:column;background:#171614;border:1px solid #67553a;border-radius:16px;box-shadow:0 10px 35px #0009;overflow:hidden;text-align:left}
#studio-chat .sc-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 8px 16px;border-bottom:1px solid #433b31}
#studio-chat .sc-close{width:40px;height:40px;color:#fff;background:transparent;border:0;font-size:24px}
#studio-chat .sc-log{flex:1;min-height:0;overflow:auto;padding:14px;color:#d6d0c8;overscroll-behavior:contain}
#studio-chat .sc-log p{width:fit-content;max-width:88%;padding:8px 12px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 9px;color:#fff}
#studio-chat .sc-log small{display:block;font-size:11px;color:#e0c99f}
#studio-chat .sc-client{margin-left:auto!important;background:#493d2d}
#studio-chat .sc-master{background:#30302e}
#studio-chat .sc-status{padding:0 14px;color:#e8c993}
#studio-chat form{display:grid;gap:6px;padding:10px 14px 14px;margin:0;border:0;background:transparent}
#studio-chat label{font-size:13px}
#studio-chat textarea{box-sizing:border-box;min-height:48px;max-height:90px;width:100%;padding:8px;border:1px solid #786b58;border-radius:6px;background:#211f1c;color:#fff;font:16px/1.35 system-ui;resize:vertical}
#studio-chat button:disabled{opacity:.6}

#studio-chat input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #786b58;border-radius:6px;background:#211f1c;color:#fff;font:16px/1.35 system-ui}
#studio-chat form{overflow-y:auto}
