.studio-chat { position: fixed !important; z-index: 2147480000 !important; top: auto !important; right: 1.25rem; bottom: 1.25rem !important; left: auto !important; transform: translateZ(0) !important; font-family: 'DM Sans', Arial, sans-serif; }
.studio-chat-toggle { display: inline-flex; min-height: 3.2rem; align-items: center; gap: .55rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .65rem 1rem; background: #f04b3f; color: #fff; font: inherit; font-size: .82rem; font-weight: 800; box-shadow: 0 .85rem 2rem rgba(0,0,0,.3), 0 0 1.5rem rgba(240,75,63,.26); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.studio-chat-toggle:hover { transform: translateY(-2px); background: #ff5f54; }
.studio-chat-toggle svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.studio-chat-panel { position: absolute; right: 0; bottom: 4.15rem; display: grid; width: min(23rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 1.15rem; background: rgba(13,22,39,.97); box-shadow: 0 1.2rem 3rem rgba(0,0,0,.42); backdrop-filter: blur(22px); }
.studio-chat-panel[hidden] { display: none; }
.studio-chat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .85rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.studio-chat-panel header div { position: relative; padding-left: 1rem; }
.studio-chat-status { position: absolute; top: .36rem; left: 0; width: .45rem; height: .45rem; border-radius: 50%; background: #67e8a9; box-shadow: 0 0 .7rem #67e8a9; }
.studio-chat-panel header p { margin: 0; color: #fff; font-size: .9rem; font-weight: 800; }
.studio-chat-panel header small { color: rgba(255,255,255,.57); font-size: .68rem; }
.studio-chat-close { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.35rem; cursor: pointer; }
.studio-chat-messages { display: grid; max-height: 15rem; min-height: 10rem; gap: .55rem; overflow-y: auto; padding: .9rem; }
.studio-chat-message { width: fit-content; max-width: 88%; margin: 0; border-radius: .8rem .8rem .8rem .2rem; padding: .65rem .75rem; color: rgba(255,255,255,.9); background: rgba(255,255,255,.09); font-size: .78rem; line-height: 1.45; }
.studio-chat-message.visitor { justify-self: end; border-radius: .8rem .8rem .2rem .8rem; background: rgba(240,75,63,.9); color: #fff; }
.studio-chat-prompts { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .9rem .75rem; }
.studio-chat-prompts button { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .34rem .55rem; background: transparent; color: rgba(255,255,255,.74); font: inherit; font-size: .65rem; cursor: pointer; }
.studio-chat-prompts button:hover { border-color: rgba(240,75,63,.8); color: #fff; }
.studio-chat-form { display: flex; gap: .45rem; padding: .75rem .9rem; border-top: 1px solid rgba(255,255,255,.1); }
.studio-chat-form input { min-width: 0; flex: 1; height: 2.5rem; border: 1px solid rgba(255,255,255,.14); border-radius: .65rem; padding: 0 .7rem; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .78rem; }
.studio-chat-form button { width: 2.5rem; border: 0; border-radius: .65rem; background: #f04b3f; color: #fff; font-size: 1.05rem; cursor: pointer; }
.studio-chat-panel footer { display: flex; justify-content: space-between; gap: .75rem; padding: 0 .9rem .85rem; }
.studio-chat-panel footer a { color: #f8a39c; font-size: .67rem; text-decoration: none; }
.studio-chat-panel footer a:hover { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 768px) { .studio-chat { position: fixed !important; top: auto !important; right: 1rem; bottom: calc(6.15rem + env(safe-area-inset-bottom)) !important; left: auto !important; } .studio-chat-toggle span { display: none; } .studio-chat-toggle { width: 3.25rem; justify-content: center; padding: 0; } .studio-chat-panel { bottom: 4rem; } }
