.app-shell.has-chat{grid-template-columns:264px minmax(0, 1fr) var(--chat-w,380px)}.chat-dock{background:var(--desk-surface);border-left:1px solid var(--desk-border-strong);z-index:40;grid-area:1/3;min-width:0;height:100dvh;display:flex;position:sticky;top:0}.chat-dock.chat-tucked{visibility:hidden}.chat-resizer{cursor:col-resize;touch-action:none;z-index:2;width:10px;position:absolute;top:0;bottom:0;left:-5px}.chat-resizer:after{content:"";width:2px;transition:background var(--desk-duration) var(--desk-ease);background:0 0;position:absolute;top:0;bottom:0;left:4px}.chat-resizer:hover:after,.chat-resizer:focus-visible:after{background:var(--desk-brand)}.chat-resizer:focus-visible{outline:none}.chat-tab{z-index:45;writing-mode:vertical-rl;border:1px solid var(--desk-border-strong);border-radius:var(--desk-radius-md) 0 0 var(--desk-radius-md);background:var(--desk-surface-raised);color:var(--desk-text);cursor:pointer;box-shadow:var(--desk-shadow-md);border-right:0;align-items:center;gap:.4rem;padding:.8rem .45rem;font-size:.8rem;font-weight:600;display:flex;position:fixed;top:42%;right:0}.chat-tab:hover{background:var(--desk-brand-soft)}.chat-tab svg{writing-mode:horizontal-tb;transform:rotate(90deg)}.chat-panel{width:100%;min-width:0;height:100%;min-height:0;color:var(--desk-text);flex-direction:column;display:flex}.chat-head{border-bottom:1px solid var(--desk-border);align-items:center;gap:.65rem;padding:.8rem .9rem;display:flex}.chat-mark{background:var(--desk-brand-soft);width:34px;height:34px;color:var(--desk-brand);border-radius:10px;flex:none;place-items:center;display:grid}.chat-head-copy{flex:1;min-width:0}.chat-title{margin:0;font-size:1rem;font-weight:700;line-height:1.2}.chat-sub{color:var(--desk-text-muted);white-space:nowrap;text-overflow:ellipsis;margin:.1rem 0 0;font-size:.78rem;overflow:hidden}.chat-head-actions{flex:none;gap:.1rem;display:flex}.chat-icon-btn{width:30px;height:30px;color:var(--desk-text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;text-decoration:none;display:grid}.chat-icon-btn:hover{background:var(--desk-overlay-soft);color:var(--desk-text)}.chat-icon-btn:focus-visible{outline:2px solid var(--desk-brand);outline-offset:1px}.chat-messages{flex-direction:column;flex:1;gap:.9rem;min-height:0;padding:1rem .9rem;display:flex;overflow-y:auto}.chat-empty{padding:.25rem 0}.chat-empty-title{color:var(--desk-text);margin:0 0 .3rem;font-size:1.1rem;font-weight:700}.chat-empty-copy{color:var(--desk-text-muted);margin:0 0 1rem;font-size:.88rem;line-height:1.5}.chat-starters{flex-direction:column;gap:.45rem;display:flex}.chat-starter{border:1px solid var(--desk-border-strong);background:var(--desk-surface-raised);color:var(--desk-text);font:inherit;text-align:left;cursor:pointer;transition:border-color var(--desk-duration) var(--desk-ease), background var(--desk-duration) var(--desk-ease);border-radius:12px;justify-content:space-between;align-items:center;gap:.5rem;padding:.65rem .85rem;font-size:.87rem;display:flex}.chat-starter:after{content:"→";color:var(--desk-text-dim)}.chat-starter:hover:not(:disabled){border-color:var(--desk-brand);background:var(--desk-brand-soft)}.chat-starter:focus-visible{outline:2px solid var(--desk-brand);outline-offset:1px}.chat-starter:disabled{opacity:.55;cursor:not-allowed}.chat-msg{align-items:flex-start;gap:.55rem;max-width:100%;display:flex}.chat-msg-user{justify-content:flex-end}.chat-avatar{background:var(--desk-brand-soft);width:26px;height:26px;color:var(--desk-brand);border-radius:50%;flex:none;place-items:center;margin-top:2px;display:grid}.chat-msg-body{min-width:0;max-width:calc(100% - 2.2rem)}.chat-msg-user .chat-msg-body{max-width:88%}.chat-msg-text{background:var(--desk-overlay-soft);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;padding:.6rem .8rem;font-size:.9rem;line-height:1.5}.chat-msg-assistant .chat-msg-text{border-top-left-radius:4px}.chat-msg-user .chat-msg-text{background:var(--desk-brand-soft);border-top-right-radius:4px}.chat-msg-error .chat-msg-text{background:var(--desk-neg-soft)}.chat-msg-notice .chat-msg-text{color:var(--desk-text-muted)}.chat-typing{align-items:center;gap:4px;padding:.85rem .9rem;display:inline-flex}.chat-typing i{background:var(--desk-text-dim);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite chat-dot}.chat-typing i:nth-child(2){animation-delay:.15s}.chat-typing i:nth-child(3){animation-delay:.3s}@keyframes chat-dot{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.chat-typing i{opacity:.6;animation:none}}.chat-unavailable{color:var(--desk-warn);margin:0 .9rem .5rem;font-size:.82rem}.chat-composer{border-top:1px solid var(--desk-border);padding:.7rem .9rem .85rem}.chat-box{border:1px solid var(--desk-border-strong);background:var(--desk-surface-raised);transition:border-color var(--desk-duration) var(--desk-ease), box-shadow var(--desk-duration) var(--desk-ease);border-radius:16px;align-items:flex-end;gap:.4rem;padding:.3rem .3rem .3rem .85rem;display:flex}.chat-box:focus-within{border-color:var(--desk-brand);box-shadow:0 0 0 3px var(--desk-brand-soft)}.chat-input{resize:none;min-width:0;max-height:140px;color:var(--desk-text);font:inherit;background:0 0;border:0;outline:0;flex:1;padding:.4rem 0;font-size:.92rem;line-height:1.45}.chat-input::placeholder{color:var(--desk-text-dim)}.chat-send{background:var(--desk-brand);color:#fff;cursor:pointer;width:34px;height:34px;transition:background var(--desk-duration) var(--desk-ease);border:0;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.chat-send:disabled{background:var(--desk-overlay-soft);color:var(--desk-text-dim);cursor:not-allowed}.chat-send:focus-visible{outline:2px solid var(--desk-brand);outline-offset:2px}.chat-meta{min-height:1.1rem;color:var(--desk-text-muted);justify-content:space-between;align-items:center;gap:.5rem;margin:.5rem .2rem 0;font-size:.78rem;display:flex}.chat-credits.is-low{color:var(--desk-warn)}.chat-credits.is-zero{color:var(--desk-neg)}.chat-count{color:var(--desk-text-dim)}.chat-foot{color:var(--desk-text-muted);margin:.3rem .2rem 0;font-size:.75rem;line-height:1.4}.chat-foot a{color:inherit;text-decoration:underline}.chat-sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.chat-page{max-width:820px;margin:0 auto}.chat-page .chat-panel{border:1px solid var(--desk-border-strong);border-radius:var(--desk-radius-lg);background:var(--desk-surface);height:calc(100dvh - 3.5rem)}@media (min-width:961px){.app-shell .betslip-btn,.app-shell .nba-slip-toast{right:calc(1.5rem + var(--chat-offset,0px))}.app-shell .betslip-overlay,.app-shell .nba-slip-overlay{right:var(--chat-offset,0px)}.app-shell .betslip-panel,.app-shell .nba-slip-panel{right:var(--chat-offset,0px);transform:translateX(calc(100% + var(--chat-offset,0px) + 1.5rem));transition:transform var(--desk-duration) var(--desk-ease), right var(--desk-duration) var(--desk-ease)}.app-shell .betslip-panel.open,.app-shell .nba-slip-panel.open{transform:translate(0)}.app-shell .betslip-btn{transition:right var(--desk-duration) var(--desk-ease)}}@media (max-width:960px){.app-shell.has-chat{grid-template-columns:1fr}.chat-dock{z-index:120;height:auto;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);border-left:0;position:fixed;inset:0}.chat-resizer,.chat-tab,.chat-wide-btn{display:none}.chat-page .chat-panel{height:calc(100dvh - 8.5rem - env(safe-area-inset-bottom,0px))}}
