.chat-widget{position:fixed;left:16px;bottom:58px;z-index:12;width:min(330px,calc(100vw - 32px));font:12px/1.5 "Segoe UI",Arial,sans-serif;color:#edf2e5;background:linear-gradient(145deg,#142c28eb,#101f1bd9);border:1px solid #b6c6a638;border-top:2px solid #b9d58b88;border-radius:12px;padding:10px;box-shadow:0 8px 28px #0003;pointer-events:none}
/* Idle messages and whitespace pass through to the pitch. Only explicit chat
   controls receive clicks; opening the editor enables scrolling/selection. */
.chat-widget button,.chat-widget[data-editing=true] form,.chat-widget[data-editing=true] .chat-log{pointer-events:auto}
.chat-header{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#bacbb9}
.chat-widget button{border:1px solid #bac5ac38;background:#273d3488;color:#e5ead8;font:600 10px "Segoe UI",sans-serif;padding:5px 8px;border-radius:6px;cursor:pointer}
.chat-widget button:hover{background:#3b5544}.chat-widget button:focus-visible{outline:2px solid #d7eaa7;outline-offset:2px}
.chat-header button:first-child{color:#e5d6a3;letter-spacing:.035em}
.chat-log{height:105px;overflow-y:hidden;overflow-wrap:anywhere;user-select:none;margin-top:7px;scrollbar-width:thin}
.chat-widget[data-editing=true] .chat-log{overflow-y:auto;user-select:text}
.chat-log>div{padding:4px 7px;margin:3px 0;border-radius:5px;background:#d9e6be06;border-left:2px solid #bad09435}
.chat-log strong{color:#e0cd9b;font-weight:650}.chat-log span{color:#e4ebdd}
.chat-typing-status{min-height:16px;font-size:10px;font-style:italic;color:#aec3ad}
.chat-widget form{display:flex;gap:6px;margin-top:6px}
.chat-widget input{min-width:0;flex:1;width:auto!important;background:#0c1c17ed!important;border:1px solid #b2cd8f77!important;color:#f4f0e0!important;padding:9px!important;border-radius:7px!important;font-size:12px!important}
.chat-error{font-size:10px;color:#f2b6a4}.chat-error:empty{display:none}
.chat-widget[data-collapsed=true]{width:max-content;max-width:calc(100vw - 32px)}
.chat-widget[data-editing=true]{width:min(360px,calc(100vw - 32px));border-color:#bfd39880}
.chat-quick-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-top:7px;border-top:1px solid #bbc5af25;padding-top:7px;font-size:9px;color:#b2c3ab}
.quickchat-options{display:flex;flex-wrap:wrap;gap:4px 8px}.quickchat-option{white-space:nowrap}.quickchat-option kbd{font:9px ui-monospace,monospace;color:#afbdad;margin-right:3px}
.quickchat-goal{color:#f7d47a;font-family:Impact,"Arial Narrow",sans-serif;letter-spacing:.04em;font-weight:700}
.quickchat-shoot{color:#ffb2a1;font-family:"Trebuchet MS",sans-serif;font-weight:800;font-style:italic}
.quickchat-pass{color:#9edce7;font-family:Consolas,monospace;font-weight:700}
.quickchat-nice{color:#c3e99d;font-family:Georgia,serif;font-weight:700;font-style:italic}
.chat-quick-controls button{flex-shrink:0}.chat-quick-controls button[aria-pressed=true]{color:#f2db92;border-color:#d5bb7277}
.chat-widget[data-collapsed=true] .quickchat-options{display:none}
@media(max-width:700px){.chat-widget{left:10px;bottom:48px;width:245px;max-width:calc(100vw - 20px);padding:8px}.chat-log{height:75px}.chat-widget[data-editing=true]{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 20px)}}

.chat-widget[data-editing=false]:has(.chat-log:empty) .chat-log{height:0;margin-top:0}
.chat-typing-status:empty{min-height:0}
