.chat-launch,.chat-scrim,.chat-panel{--ease:cubic-bezier(.2, 0, 0, 1);--d-press:.12s;--d-state:.24s;--d-reveal:.6s;--d-hero:.9s;--chat-edge:20px}@media (min-width:768px){.chat-launch,.chat-panel{--chat-edge:40px}}@media (min-width:1200px){.chat-launch,.chat-panel{--chat-edge:48px}}.chat-launch{--chat-base:calc(16px + env(safe-area-inset-bottom));right:var(--chat-edge);z-index:62;box-sizing:border-box;border-radius:var(--radius-md);background:var(--raised);width:56px;height:56px;box-shadow:inset 0 0 0 1px var(--surface-line), var(--shadow-lift);color:var(--fg);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;translate:0 calc(-1 * max(var(--chat-base), calc(var(--chat-foot,0px) + 16px)));transition:translate var(--d-state) var(--ease), background var(--d-state) var(--ease), scale var(--d-press) var(--ease);animation:chat-rise var(--d-reveal) var(--ease) backwards;border:0;place-items:center;margin:0;padding:0;display:grid;position:fixed;bottom:0}@media (min-width:768px){.chat-launch{--chat-base:24px}}.chat-launch[data-tracking]{transition:background var(--d-state) var(--ease), scale var(--d-press) var(--ease)}.chat-launch:hover{background:color-mix(in oklab, var(--fg) 12%, var(--raised))}.chat-launch:active{scale:.98}.chat-launch:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.chat-launch .chat-i{width:24px;height:24px}:is(.chat-launch[data-open],.site:has(.ma-float[data-open]) .chat-launch){visibility:hidden}.chat-scrim{z-index:83;background:color-mix(in oklab, var(--ground) 62%, transparent);animation:chat-fade var(--d-state) var(--ease) backwards;position:fixed;inset:0}.chat-panel{top:calc(var(--chat-vv-top,0px) + 12px);z-index:84;box-sizing:border-box;height:calc(var(--chat-vv-height,100dvh) - 12px);border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:var(--raised);color:var(--fg);box-shadow:inset 0 1px 0 var(--surface-line), var(--shadow-lift);font-family:var(--font-ui), system-ui, sans-serif;animation:chat-up var(--d-state) var(--ease) backwards;outline:none;flex-direction:column;font-size:16px;line-height:24px;display:flex;position:fixed;left:0;right:0;overflow:clip}@media (min-width:768px) and (min-height:600px){.chat-panel{top:auto;right:var(--chat-edge);bottom:calc(24px + var(--consent-h,0px));width:400px;height:min(640px, calc(100svh - 144px - var(--consent-h,0px)));border-radius:var(--radius-lg);box-shadow:inset 0 0 0 1px var(--surface-line), var(--shadow-soft);animation-name:chat-rise;left:auto}.chat-grab{display:none}}:where(.chat-panel) button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;margin:0;padding:0}.chat-panel :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.chat-panel .chat-i{flex:none;width:18px;height:18px}.chat-grab{border-radius:var(--radius-xs);background:color-mix(in oklab, var(--fg) 24%, transparent);flex:none;align-self:center;width:36px;height:5px;margin:8px 0 0}.chat-head{box-shadow:0 1px 0 var(--hairline);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 12px 20px;display:flex}.chat-title{font-family:var(--font-display), sans-serif;letter-spacing:-.5px;align-items:center;gap:10px;margin:0;font-size:22px;font-weight:800;line-height:24px;display:flex}.chat-title .mark{width:18px;height:18px;color:var(--fg)}.chat-x{border-radius:var(--radius-sm);background:var(--surface);width:40px;height:40px;box-shadow:inset 0 0 0 1px var(--surface-line);transition:background var(--d-state) var(--ease);flex:none;place-items:center;display:grid}.chat-x:hover{background:color-mix(in oklab, var(--fg) 12%, transparent)}.chat-body{overscroll-behavior:contain;scrollbar-width:none;flex-direction:column;flex:1;gap:16px;min-height:0;padding:22px 20px 20px;display:flex;overflow:hidden auto}.chat-body::-webkit-scrollbar{display:none}.chat-hello{font-family:var(--font-display), sans-serif;letter-spacing:-.9px;margin:0;font-size:30px;font-weight:800;line-height:31px}.chat-who{color:var(--fg2);margin:-6px 0 0;font-size:14px;line-height:20px}.chat-chips{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:4px;display:grid}.chat-panel .chat-chip{box-sizing:border-box;border-radius:var(--radius-sm);width:100%;min-height:48px;box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--fg) 16%, transparent);color:var(--fg);text-align:left;transition:background var(--d-press) var(--ease), box-shadow var(--d-state) var(--ease), scale var(--d-press) var(--ease);justify-content:space-between;align-items:center;gap:12px;padding:0 14px 0 16px;font-size:15px;font-weight:500;line-height:20px;display:flex}.chat-panel .chat-chip:hover{background:color-mix(in oklab, var(--fg) 6%, transparent);box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--fg) 28%, transparent)}.chat-panel .chat-chip:active{scale:.99}.chat-chip .chat-i{width:16px;height:16px;color:var(--fg3)}.chat-msg{overflow-wrap:anywhere;animation:chat-rise var(--d-state) var(--ease) backwards;margin:0}.chat-from{color:var(--fg3);align-items:center;gap:7px;margin:0 0 6px;font-size:13px;font-weight:600;line-height:16px;display:flex}.chat-from .mark{width:13px;height:13px;color:var(--fg)}.chat-bot p,.chat-bot ul,.chat-bot ol{margin:0;font-size:16px;line-height:24px}.chat-bot p+p,.chat-bot p+ul,.chat-bot p+ol,.chat-bot ul+p,.chat-bot ol+p{margin-top:8px}.chat-bot ul,.chat-bot ol{padding-left:22px}.chat-bot a{color:var(--fg);text-decoration:underline;-webkit-text-decoration-color:color-mix(in oklab, var(--fg) 40%, transparent);text-decoration-color:color-mix(in oklab, var(--fg) 40%, transparent);text-underline-offset:3px}.chat-me{box-sizing:border-box;border-radius:var(--radius-md) var(--radius-md) var(--radius-xs) var(--radius-md);background:var(--fg);max-width:82%;color:var(--ground);white-space:pre-wrap;align-self:flex-end;padding:10px 14px;font-size:15px;font-weight:500;line-height:21px}.chat-dots{gap:6px;padding:6px 0 2px;display:inline-flex}.chat-dots span{background:var(--fg2);width:7px;height:7px;animation:chat-breathe var(--d-hero) var(--ease) infinite alternate;border-radius:50%}.chat-dots span:nth-child(2){animation-delay:var(--d-press)}.chat-dots span:nth-child(3){animation-delay:var(--d-state)}.chat-rest{color:var(--fg);align-items:flex-start;gap:10px;font-size:16px;line-height:24px;display:flex}.chat-rest-dot{background:var(--fg3);border-radius:50%;flex:none;width:8px;height:8px;margin-top:8px}.chat-hand{border-radius:var(--radius-md);box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--fg) 16%, transparent);animation:chat-rise var(--d-state) var(--ease) backwards;outline:none;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:16px;display:grid}.chat-field{gap:8px;display:grid}.chat-field label{color:var(--fg2);font-size:14px;font-weight:500;line-height:20px}.chat-field input{box-sizing:border-box;border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:48px;box-shadow:inset 0 0 0 1px var(--surface-line);color:var(--fg);font:inherit;transition:box-shadow var(--d-state) var(--ease);border:0;outline:none;margin:0;padding:0 16px;font-size:16px}.chat-field input:focus{box-shadow:inset 0 0 0 2px var(--accent)}.chat-field input[aria-invalid=true]{box-shadow:inset 0 0 0 1px var(--accent)}.chat-panel .chat-go{isolation:isolate;box-sizing:border-box;border-radius:var(--radius-md);background:var(--accent);width:100%;min-height:48px;color:var(--on-accent);transition:scale var(--d-press) var(--ease);justify-content:center;align-items:center;margin-top:2px;padding:0 20px;font-size:17px;font-weight:600;line-height:22px;display:inline-flex;position:relative;overflow:hidden}.chat-panel .chat-go:before,.chat-panel .chat-send:before{content:"";z-index:-1;background:var(--fg);clip-path:inset(0 50%);transition:clip-path var(--d-state) var(--ease);position:absolute;inset:0}.chat-panel .chat-go:hover:before,.chat-panel .chat-go:focus-visible:before,.chat-panel .chat-send:hover:before,.chat-panel .chat-send:focus-visible:before{clip-path:inset(0)}.chat-panel .chat-go:active,.chat-panel .chat-send:active{scale:.98}.chat-note{color:var(--fg3);margin:-2px 0 0;font-size:13px;line-height:18px}.chat-alert{color:var(--accent);margin:0;font-size:14px;line-height:20px}.chat-hand .chat-alert{margin-top:-2px;font-size:13px;line-height:18px}.chat-sent{align-items:flex-start;gap:14px;display:flex}.chat-sent-tile{border-radius:var(--radius-sm);background:var(--accent);width:40px;height:40px;color:var(--on-accent);flex:none;place-items:center;display:grid}.chat-panel .chat-sent-tile .chat-i{width:22px;height:22px}.chat-tick path{stroke-dasharray:1;stroke-dashoffset:0;animation:chat-draw var(--d-state) var(--ease) var(--d-press) backwards}.chat-sent-title{margin:0;font-size:16px;font-weight:600;line-height:22px}.chat-sent-body{color:var(--fg2);overflow-wrap:anywhere;margin:2px 0 0;font-size:14px;line-height:20px}.chat-foot{padding:12px 16px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -1px 0 var(--hairline);flex:none;gap:10px;display:grid}@media (min-width:768px) and (min-height:600px){.chat-foot{padding-bottom:14px}}.chat-check{width:100%;height:0;position:absolute;overflow:hidden}.chat-check[data-shown]{height:auto;min-height:65px;position:static;overflow:visible}.chat-compose{box-sizing:border-box;border-radius:var(--radius-md);background:var(--surface);min-height:52px;box-shadow:inset 0 0 0 1px var(--surface-line);transition:box-shadow var(--d-state) var(--ease);align-items:center;gap:6px;margin:0;padding:4px;display:flex}.chat-compose:focus-within{box-shadow:inset 0 0 0 1px var(--fg)}.chat-compose input[type=text]{box-sizing:border-box;border-radius:var(--radius-sm);appearance:none;min-width:0;height:44px;color:var(--fg);font:inherit;background:0 0;border:0;outline:none;flex:auto;margin:0;padding:0 8px 0 14px;font-size:16px;line-height:22px}.chat-compose input[type=text]::placeholder,.chat-field input::placeholder{color:var(--fg3);opacity:1}.chat-panel .chat-send{isolation:isolate;border-radius:var(--radius-sm);background:var(--accent);width:44px;height:44px;color:var(--on-accent);transition:scale var(--d-press) var(--ease);flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.chat-panel .chat-send .chat-i{width:20px;height:20px}.chat-mail{color:var(--fg3);text-align:center;margin:0;font-size:13px;line-height:18px}.chat-mail a{color:var(--fg2);text-decoration:underline;-webkit-text-decoration-color:color-mix(in oklab, var(--fg) 30%, transparent);text-decoration-color:color-mix(in oklab, var(--fg) 30%, transparent);text-underline-offset:3px}.chat-sr,.chat-trap{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@keyframes chat-rise{0%{opacity:0;transform:translateY(8px)}}@keyframes chat-up{0%{opacity:0;transform:translateY(24px)}}@keyframes chat-fade{0%{opacity:0}}@keyframes chat-breathe{0%{opacity:.25;transform:translateY(1px)}to{opacity:1;transform:translateY(-1px)}}@keyframes chat-draw{0%{stroke-dashoffset:1px}}@media (prefers-reduced-motion:reduce){.chat-launch,.chat-scrim,.chat-panel,.chat-panel *,.chat-panel :before,.chat-panel :after{transition:none!important;animation:none!important}}
