.studio-chat{--chat-bg:#102a29;--chat-panel:#173735;--chat-line:#31534b;--chat-text:#edf7f2;--chat-muted:#b3ccc3;--chat-accent:var(--accent,#b9ee79);position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--chat-lift,0px));z-index:45;color:var(--chat-text);--buncss-light: ;--buncss-dark:initial;color-scheme:dark;isolation:isolate;font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.studio-chat *{box-sizing:border-box}.studio-chat button,.studio-chat textarea{font:inherit}.studio-chat button{cursor:pointer;color:var(--chat-text);background:var(--chat-panel);border:1px solid var(--chat-line);border-radius:10px;min-height:36px;padding:7px 11px}.studio-chat button:hover{border-color:var(--chat-accent)}.studio-chat button:disabled{opacity:.5;cursor:default}.studio-chat :focus-visible{outline:3px solid var(--chat-accent);outline-offset:2px}.chat-bubble.chat-bubble{position:relative;background:var(--chat-bg);border:2px solid var(--chat-accent);border-radius:50%;width:64px;height:64px;padding:3px;box-shadow:0 6px 25px #0006}.chat-bee{overflow:visible;transform-origin:center;flex-shrink:0;width:48px;height:48px}.chat-bubble .chat-bee{width:54px;height:54px}.chat-unread{position:absolute;background:var(--chat-accent);color:#102a29;border:2px solid var(--chat-bg);border-radius:14px;min-width:24px;height:24px;padding:1px 5px;font-weight:800;top:-6px;right:-6px}.chat-window{display:flex;max-height:calc(100dvh - 32px - var(--chat-lift,0px));background:var(--chat-bg);border:1px solid var(--chat-line);overflow:hidden;border-radius:18px;flex-direction:column;width:360px;max-width:calc(100vw - 32px);height:480px;box-shadow:0 16px 64px #0007}.chat-header{display:flex;border-bottom:1px solid var(--chat-line);flex-shrink:0;align-items: center;gap:8px;padding:10px 12px}.chat-header>div{flex:1;min-width:0}.chat-header strong{display:block;font-size:15px}.chat-header small{display:block;color:var(--chat-muted);font-size:11px}.chat-header button{width:36px;padding:5px;font-size:20px;line-height:1}.chat-messages{overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-gutter:stable;flex:1;min-height:0;padding:12px}.chat-message{position:relative;background:var(--chat-panel);border-radius:12px;margin:0 22px 10px 0;padding:10px 12px}.chat-message.chat-own{background:#214c3c;margin-left:22px;margin-right:0}.chat-message-meta{display:flex;color:var(--chat-muted);flex-wrap:wrap;align-items:baseline;gap:5px;font-size:11px}.chat-message-meta strong{color:var(--chat-text)}.chat-message-meta span{border:1px solid #729c7c;border-radius:4px;padding:0 3px;font-size:9px}.chat-message-meta .chat-waiting{color:#f1d48f;border-color:#d8b25a}.chat-message-meta time{margin-left:auto;font-size:10px}.chat-message p{color:var(--chat-text);white-space:pre-wrap;margin:5px 0 0;line-height:1.5}.chat-message .chat-delete{color:var(--chat-muted);background:0 0;min-height:28px;margin-top:5px;padding:2px 6px;font-size:10px}.chat-deleted{color:var(--chat-muted);font-style:italic}.chat-pending{opacity:.8}.chat-pending small{color:var(--chat-muted)}.chat-empty{display:flex;text-align:center;color:var(--chat-muted);flex-direction:column;align-items: center;padding:22px 12px}.chat-empty .chat-bee{width:80px;height:80px;margin-bottom:12px}.chat-empty strong{color:var(--chat-text)}.chat-empty p{margin:8px 0}.chat-composer{border-top:1px solid var(--chat-line);flex-shrink:0;padding:10px 12px}.chat-composer textarea{display:block;border:1px solid var(--chat-line);color:var(--chat-text);resize:none;background:#0c2222;border-radius:10px;width:100%;min-height:64px;max-height:120px;margin:0;padding:10px}.chat-composer textarea::placeholder{color:var(--chat-muted)}.chat-composer>div{display:flex;justify-content:space-between;align-items: center;margin-top:8px}.chat-composer small{color:var(--chat-muted);font-size:10px}.chat-composer button[type=submit]{background:var(--chat-accent);color:#102a29;border:0;font-weight:700}.chat-composer .chat-limit{color:#ffaaa0}.chat-composer>div.chat-attachment{border:1px dashed var(--chat-line);border-radius:10px;justify-content:flex-start;gap:8px;min-width:0;margin:0 0 8px;padding:6px 8px;font-size:12px}.chat-attachment progress{accent-color:var(--chat-accent);flex:1;min-width:40px}.chat-attachment-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.chat-attachment button{min-height:28px;padding:2px 8px;font-size:11px}.chat-composer .chat-attach{padding:4px 10px;font-size:16px}.chat-composer>div:last-child small{margin-left:8px;margin-right:auto}.chat-message a{color:var(--chat-accent);text-decoration:underline;overflow-wrap:anywhere}.chat-file{border:1px solid var(--chat-line);overflow:hidden;background:#0c2222;border-radius:10px;margin-top:8px}.chat-file-preview{display:block;background:#071615}.chat-file-preview img{display:block;object-fit:contain;width:100%;max-height:180px}.chat-file-info{display:flex;align-items: center;gap:8px;min-width:0;padding:8px 10px 4px}.chat-file-info>div{display:flex;flex-direction:column;min-width:0}.chat-file-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.chat-file-info small{color:var(--chat-muted);font-size:10px}.chat-file-actions{display:flex;flex-wrap:wrap;gap:6px;padding:4px 10px 8px}.chat-message .chat-file-actions a,.chat-file-actions button{border:1px solid var(--chat-line);background:var(--chat-panel);color:var(--chat-text);text-decoration:none;display:inline-flex;border-radius:8px;align-items: center;min-height:28px;padding:4px 9px;font-size:11px}.chat-message .chat-pending-file{color:var(--chat-muted)}.chat-notice{background:#1f4a37;padding:8px 12px;font-size:12px}.chat-error{overflow:auto;background:#4b2927;max-height:110px;padding:8px 12px;font-size:12px}.chat-error button{min-height:30px;margin:4px;font-size:11px}.chat-new{align-self: center;margin:4px;font-size:12px}.chat-footer{padding:0 12px 8px}.chat-footer button{color:var(--chat-muted);background:0 0;border:0;min-height:28px;padding:2px 5px;font-size:10px}.chat-confirm{background:var(--chat-panel);padding:12px}.chat-confirm p{margin:0 0 8px}.chat-confirm button{margin:2px}.chat-load{width:100%;margin-bottom:10px;font-size:12px}.chat-sr-only{position:absolute;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0}.studio-chat-full{display:flex;padding:env(safe-area-inset-top)env(safe-area-inset-right)env(safe-area-inset-bottom)env(safe-area-inset-left);background:#071615e8;inset:0}.studio-chat-full .chat-window{border-radius:0;width:100%;max-width:none;height:100%;max-height:none}.studio-chat-full .chat-messages,.studio-chat-full .chat-composer{padding-left:max(16px,50% - 450px);padding-right:max(16px,50% - 450px)}.studio-chat-full .chat-message{max-width:760px}.studio-chat-full .chat-message.chat-own{margin-left:auto}.studio-chat-full .chat-header{padding:12px 20px}.studio-chat-full .chat-footer{text-align:center}.chat-bee-message{animation:.45s ease-in-out 3 chat-bee-hop}.chat-bee-sent{animation:.5s ease-in-out 2 chat-bee-wiggle}.chat-bee-reconnecting{animation:1.8s ease-in-out infinite chat-bee-wait}.chat-bee-message .chat-bee-wings,.chat-bee-sent .chat-bee-wings{animation:.15s ease-in-out 8 chat-bee-flutter;transform-origin:40px 28px}@keyframes chat-bee-hop{50%{transform:translateY(-5px)}}@keyframes chat-bee-wiggle{25%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}}@keyframes chat-bee-wait{50%{opacity:.5;transform:translateY(3px)}}@keyframes chat-bee-flutter{50%{transform:scaleX(.8)}}@media (max-width:600px){.studio-chat{right:max(12px,env(safe-area-inset-right));bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--chat-lift,0px))}.chat-window{width:calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));max-height:calc(70dvh - env(safe-area-inset-bottom) - var(--chat-lift,0px));border-radius:16px;max-width:none;height:480px}.chat-composer textarea{font-size:16px}.studio-chat-full{inset:0}.studio-chat-full .chat-window{border-radius:0;width:100%;height:100%;max-height:none}.chat-header button{min-width:40px;min-height:40px}}@media (prefers-reduced-motion:reduce){.studio-chat .chat-bee,.studio-chat .chat-bee *{animation:none!important;transition:none!important}}.device-setup{border:1px solid var(--border);background:var(--panel);text-align:left;border-radius:9px;margin:18px 0 26px;padding:18px}.device-setup-heading{display:flex;justify-content:space-between;align-items: center;gap:12px;margin-bottom:16px;font-size:13px}.device-setup-heading small{font-size:10px}.device-setup-grid{display:grid;grid-template-columns:minmax(0,1.5fr)minmax(0,1fr);align-items: start;gap:18px}.device-camera{position:relative;aspect-ratio:16/9;overflow:hidden;display:grid;color:#a4b4a5;background:#0c131a;border:1px solid #2d3945;border-radius:7px;place-items: center}.device-camera>span{text-align:center;font-size:35px}.device-camera video{object-fit:contain;width:100%;height:100%;transform:scaleX(-1)}.device-camera.is-detail video{object-fit:none}.device-camera .res-badge{position:absolute;color:#fff;font-variant-numeric:tabular-nums;pointer-events:none;background:#0009;border-radius:6px;padding:3px 8px;font:600 12px/1.4 inherit;bottom:8px;left:8px}.device-camera video[hidden]{display:none}.device-inputs label{margin:0 0 12px;font-size:11px}.device-inputs select{padding:8px;font-size:11px}.mic-status{color:#97a58e;margin:10px 0 6px;font-size:10px}.mic-meter{overflow:hidden;background:#29352a;border-radius:4px;height:8px}.mic-meter span{background:var(--accent);display:block;height:100%;transition:width 80ms}.device-flags{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.device-flags label{display:flex;align-items: center;gap:5px;font-size:10px}.device-flags input{width:15px;height:15px;margin:0}.device-setup-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 12px}.device-error{color:#ffadb9;font-size:11px;line-height:1.5}.device-setup>small{font-size:10px}@media (max-width:600px){.device-setup-grid{grid-template-columns:1fr}.device-camera{aspect-ratio:16/9}.device-setup-heading{align-items: start}.device-setup-actions .button{font-size:10px}}.device-quality-info{display:block;opacity:.75;margin:-4px 0 6px;font-size:12px}
