.poker-ai-launcher{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(90px + env(safe-area-inset-bottom));z-index:18;isolation:isolate}
.poker-ai-launcher[hidden],.poker-ai-dialog:not([open]){display:none}
.poker-ai-launch{display:flex;align-items:center;gap:0;height:54px;padding:4px;border:1px solid var(--line);border-radius:30px;background:var(--soft);color:var(--ink);box-shadow:0 5px 20px #07160d24;overflow:hidden;white-space:nowrap;transition:background 240ms,border-color 240ms,box-shadow 240ms}
.poker-ai-chip{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--accent);color:var(--paper);border:3px dashed var(--paper);box-shadow:inset 0 0 0 2px var(--accent),0 2px 0 color-mix(in srgb,var(--ink) 20%,transparent)}
.poker-ai-chip:before{content:'';position:absolute;inset:3px;border:1px solid currentColor;border-radius:50%;opacity:.5}
.poker-ai-chip span{font-family:Syne,-apple-system,BlinkMacSystemFont,sans-serif;font-weight:700;font-size:13px;letter-spacing:-1px;line-height:1}
.poker-ai-label{display:grid;grid-template-columns:1fr;opacity:1;transition:grid-template-columns 300ms cubic-bezier(.2,.8,.2,1),opacity 180ms}
.poker-ai-label>span{overflow:hidden;min-width:0;padding:0 14px 0 9px;font-size:13px;font-weight:600;transition:padding 300ms}
.poker-ai-launcher.is-compact .poker-ai-label{grid-template-columns:0fr;opacity:0}
.poker-ai-launcher.is-compact .poker-ai-label>span{padding:0}
.poker-ai-launcher.is-compact .poker-ai-launch{border-color:transparent;background:transparent;box-shadow:none}
.poker-ai-launcher.is-arriving .poker-ai-chip{animation:poker-ai-arrival 950ms cubic-bezier(.2,.8,.2,1) both}
.poker-ai-launcher.is-arriving:before{content:'';position:absolute;inset:-5px;border:1px solid var(--accent);border-radius:40px;z-index:-1;pointer-events:none;animation:poker-ai-halo 1100ms 150ms ease-out both}
.poker-ai-launcher.is-arriving .poker-ai-label{animation:poker-ai-label-in 500ms 250ms both}
.poker-ai-inline{display:flex;align-items:center;gap:10px;min-height:54px;border:1px solid var(--line);border-radius:14px;background:var(--soft);padding:7px 12px;width:100%;margin-top:18px;color:var(--ink);text-align:left;font-size:13px}
.poker-ai-inline>.icon{margin-left:auto;width:17px}.poker-ai-inline .poker-ai-chip{width:34px;height:34px;flex-basis:34px}.poker-ai-inline .poker-ai-chip span{font-size:11px}
body.poker-ai-open{overflow:hidden}
.poker-ai-dialog{padding:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);width:min(440px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);height:740px;margin:auto 16px auto auto;border-radius:24px;box-shadow:0 15px 70px #08140c45;overflow:hidden}
.poker-ai-dialog::backdrop{background:#07130b40;backdrop-filter:blur(2px)}
.poker-ai-dialog[open]{animation:poker-ai-panel-in 260ms cubic-bezier(.2,.8,.2,1)}
.poker-ai-panel{height:100%;display:flex;flex-direction:column;gap:12px;padding:18px 20px 14px;min-height:0}
.poker-ai-handle{display:none;width:34px;height:4px;border-radius:5px;background:var(--line);margin:0 auto}
.poker-ai-header{display:flex;align-items:center;gap:10px;flex:none}.poker-ai-header>div{flex:1;min-width:0}.poker-ai-header h2{font-size:19px;letter-spacing:-.5px}.poker-ai-header .icon-button{width:38px;height:44px;border-radius:12px}.poker-ai-header .icon{width:18px}
.poker-ai-transcript{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto;padding:5px 3px 8px;display:flex;flex-direction:column;gap:15px}.poker-ai-transcript h3{font-size:17px}.poker-ai-empty{font-size:13px;color:var(--muted)}
.poker-ai-message{font-size:13px;line-height:1.65;overflow-wrap:anywhere;flex:none}.poker-ai-message p{white-space:pre-wrap}.poker-ai-speaker{display:block;font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);margin-bottom:5px}.poker-ai-message.user{align-self:flex-end;border-radius:15px 15px 4px 15px;background:var(--soft);border:1px solid var(--line);padding:9px 13px;max-width:90%}.poker-ai-message.user .poker-ai-speaker{font-size:9px}.poker-ai-message.assistant{padding:0 3px}.poker-ai-pending{color:var(--muted)}
.poker-ai-turn-context{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.poker-ai-input-area{display:flex;flex-direction:column;gap:6px;flex:none;min-width:0}
.poker-ai-suggestions{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px 2px;min-width:0}.poker-ai-suggestions[hidden]{display:none}.poker-ai-suggestions::-webkit-scrollbar{display:none}.poker-ai-suggestions button{flex:none;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:22px;color:var(--muted);white-space:nowrap;text-align:left;font-size:11px}.poker-ai-suggestions button:hover:not(:disabled),.poker-ai-suggestions button:focus-visible{background:var(--soft);color:var(--ink);border-color:var(--accent)}
.poker-ai-compose{display:flex;align-items:flex-end;gap:8px;background:var(--soft);border:1px solid var(--line);border-radius:15px;padding:8px;flex:none}.poker-ai-compose:focus-within{border-color:var(--accent)}.poker-ai-compose textarea{flex:1;min-width:0;resize:vertical;max-height:120px;min-height:48px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px;padding:6px;line-height:1.4}.poker-ai-compose textarea::placeholder{color:var(--muted)}.poker-ai-compose>button{display:grid;place-items:center;min-width:40px;width:40px;height:40px;border-radius:11px;background:var(--accent);color:var(--paper)}.poker-ai-compose>button .icon{transform:rotate(-90deg);width:19px}
:root .poker-ai-compose textarea{background:transparent}
.poker-ai-feedback{font-size:12px;color:var(--muted);flex:none;max-height:100px;overflow:auto}.poker-ai-feedback:empty{display:none}.poker-ai-feedback button{display:block;font-size:12px;min-height:32px}
.poker-ai-thinking{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);padding:5px 0;flex:none}.poker-ai-thinking span{margin-left:6px}.poker-ai-thinking i{width:4px;height:4px;background:var(--accent);border-radius:50%;animation:poker-ai-thinking 1.2s ease-in-out 6}.poker-ai-thinking i:nth-child(2){animation-delay:120ms}.poker-ai-thinking i:nth-child(3){animation-delay:240ms}
@keyframes poker-ai-arrival{0%{transform:translateY(24px) rotate(-110deg) scale(.6);opacity:0}55%{transform:translateY(-6px) rotate(12deg) scale(1.06);opacity:1}78%{transform:translateY(1px) rotate(-7deg) scale(.98)}100%{transform:none;opacity:1}}
@keyframes poker-ai-halo{0%{transform:scale(.92);opacity:0}25%{opacity:.5}100%{transform:scale(1.2);opacity:0}}
@keyframes poker-ai-label-in{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
@keyframes poker-ai-panel-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes poker-ai-thinking{0%,70%,100%{opacity:.35;transform:none}35%{opacity:1;transform:translateY(-3px)}}
@media(min-width:768px){.poker-ai-launcher{bottom:24px;right:28px}}
@media(max-width:767px){.poker-ai-dialog{position:fixed;inset:var(--poker-ai-viewport-top,0px) 0 auto;width:100%;max-height:none;height:var(--poker-ai-viewport-height,100dvh);margin:0;border:0;border-radius:0}.poker-ai-panel{padding:max(12px,env(safe-area-inset-top)) 18px max(14px,env(safe-area-inset-bottom));gap:10px}.poker-ai-handle{display:none}.poker-ai-header{gap:7px}.poker-ai-header h2{font-size:18px}.poker-ai-header .icon-button{width:36px}.poker-ai-header .poker-ai-chip{width:38px;height:38px;flex-basis:38px}.poker-ai-compose textarea{font-size:16px}.poker-ai-launcher{right:16px}}
@media(prefers-reduced-motion:reduce){.poker-ai-launcher *,.poker-ai-launcher:before,.poker-ai-dialog,.poker-ai-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-motion:reduce){.poker-ai-launcher:before{display:none}}
body[data-motion="off"] :is(.poker-ai-launcher,.poker-ai-launcher *,.poker-ai-dialog,.poker-ai-dialog *){animation:none!important;transition:none!important}body[data-motion="off"] .poker-ai-launcher:before{animation:none!important;opacity:0}

.poker-ai-older{align-self:center;flex:none;min-height:44px;font-size:12px;color:var(--muted)}
