.studio-chat{position:fixed;z-index:20;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));font:16px/1.45 system-ui,sans-serif;color:var(--chat-text,#faf4e9)}
.studio-chat button,.studio-chat textarea{font:inherit}
.studio-chat button{cursor:pointer}
.studio-chat button:disabled{cursor:wait;opacity:.65}
.studio-chat-launch,.studio-chat-send{border:0;border-radius:8px;background:var(--chat-accent,#ffbd65);color:#211609;font-weight:750!important;padding:10px 15px;min-height:44px}
.studio-chat-panel{background:var(--chat-surface,#222324);border:1px solid #ffffff30;border-radius:14px;width:min(390px,calc(100vw - 32px));box-shadow:0 12px 45px #0008;margin:0 0 10px;overflow:hidden}
.studio-chat-head,.studio-chat-form,.studio-chat-links{display:flex;gap:8px;align-items:center;padding:10px 12px}
.studio-chat-head{justify-content:space-between;border-bottom:1px solid #ffffff30}
.studio-chat-close{border:0;background:none;color:inherit;min-width:44px;min-height:44px}
.studio-chat-log{display:grid;gap:8px;align-content:start;max-height:min(36dvh,300px);min-height:70px;overflow:auto;padding:12px}
.studio-chat-log p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 10px;background:#ffffff10;border-radius:7px}
.studio-chat-log .visitor{background:#ffbd6526}
.studio-chat textarea{width:100%;min-width:0;padding:8px;resize:vertical;max-height:90px;background:#171819;color:inherit;border:1px solid #ffffff45;border-radius:7px}
.studio-chat-links{flex-wrap:wrap;font-size:14px;border-top:1px solid #ffffff30}
.studio-chat-links a,.studio-chat-copy{color:var(--chat-accent,#ffbd65);text-decoration:underline}
.studio-chat-copy{background:none;border:0;padding:0}
.studio-chat-note{margin:0;padding:4px 12px;font-size:13px;color:#d8d0c3}
