.help-widget{--ink:#121219;--muted:#676767;--line:#e0e0e0;--canvas:#f9f9f9;--surface:#fff;--accent:#03f;--accent-hover:#0023b8;--accent-light:#edf1ff;--error:#a0312a;--error-light:#fff3f1;--font:"Flow Inter Tight","Flow PuHuiTi","PingFang SC",sans-serif;font:400 14px/1.6 var(--font);color:var(--ink);right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:40;flex-direction:column;align-items:flex-end;gap:12px;display:flex;position:fixed}.help-widget button{min-height:0;color:inherit;font:inherit;line-height:inherit;cursor:pointer;background:0 0;border:0;border-radius:0;padding:0}.help-widget button:hover:not(:disabled){background:0 0}.help-widget button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.help-widget .help-launcher{background:var(--accent);color:#fff;width:52px;height:52px;font:500 24px/1 var(--font);cursor:pointer;border:0;border-radius:50%;place-items:center;transition:transform .15s,background .15s;display:grid;position:relative;box-shadow:0 4px 14px #1212192e}.help-widget .help-launcher:active{transform:scale(.94)}.help-widget .help-badge{background:#e5484d;border-radius:50%;width:12px;height:12px;position:absolute;top:2px;right:2px;box-shadow:0 0 0 2px #fff}.help-widget .help-launcher:hover:not(:disabled){background:var(--accent-hover)}.help-widget .help-launcher:focus-visible,.help-widget .help-panel button:focus-visible,.help-widget .help-panel textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.help-widget .help-panel{transform-origin:100% 100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;width:380px;height:min(600px,100dvh - 120px);animation:.16s ease-out help-in;display:flex;overflow:hidden;box-shadow:0 12px 32px #12121924}.help-widget .help-head{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:12px 12px 12px 16px;display:flex}.help-widget .help-title{margin-right:auto;line-height:1.3;display:grid}.help-widget .help-title strong{font-size:14px;font-weight:600}.help-widget .help-title small{color:var(--muted);font-size:11px}.help-widget .help-tabs{background:var(--canvas);border-radius:8px;padding:2px;display:flex}.help-widget .help-tabs button,.help-widget .help-new,.help-widget .help-close{font:500 13px/1 var(--font);color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:7px 10px}.help-widget .help-tabs button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line)}.help-widget .help-new:hover:not(:disabled),.help-widget .help-close:hover:not(:disabled){color:var(--accent)}.help-widget .help-new:disabled{opacity:.45;cursor:not-allowed}.help-widget .help-close{padding:4px 8px;font-size:18px}.help-widget .help-log,.help-widget .help-history{flex-direction:column;flex:1;gap:12px;padding:16px;display:flex;overflow-y:auto}.help-widget .help-welcome{color:var(--muted);gap:12px;font-size:13px;display:grid}.help-widget .help-welcome p{color:var(--muted);margin:0}.help-widget .help-here,.help-widget .help-note{font-size:12px}.help-widget .help-examples{gap:8px;display:grid}.help-widget .help-examples button{text-align:left;border:1px solid var(--line);background:var(--surface);font:400 13px/1.5 var(--font);color:var(--ink);cursor:pointer;border-radius:8px;padding:10px 12px}.help-widget .help-examples button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.help-widget .help-msg{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;max-width:88%;padding:10px 12px;font-size:14px;line-height:1.65}.help-widget .help-msg.user{background:var(--accent-light);color:var(--ink);align-self:flex-end}.help-widget .help-msg.assistant{background:var(--canvas);align-self:flex-start}.help-widget .help-msg.pending{color:var(--muted);align-items:center;gap:8px;display:flex}.help-widget .help-dots{gap:3px;display:inline-flex}.help-widget .help-dots i{background:currentColor;border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite help-dot}.help-widget .help-dots i:nth-child(2){animation-delay:.15s}.help-widget .help-dots i:nth-child(3){animation-delay:.3s}.help-widget .help-msg a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.help-widget .help-msg.failed{background:var(--error-light);color:var(--error);flex-wrap:wrap;align-items:center;gap:10px;display:flex}.help-widget .help-retry{font:500 13px/1.2 var(--font);color:var(--error);border:1px solid;border-radius:6px;padding:4px 10px}.help-widget .help-history button{text-align:left;border:0;border-bottom:1px solid var(--line);font:400 14px/1.5 var(--font);color:var(--ink);cursor:pointer;background:0 0;gap:2px;padding:10px 4px;display:grid}.help-widget .help-history button.current span{color:var(--accent)}.help-widget .help-history small{color:var(--muted);font-size:12px}.help-widget .help-empty{color:var(--muted);font-size:13px}.help-widget .help-error{color:var(--error);margin:0 16px 8px;font-size:13px}.help-widget .help-input{border-top:1px solid var(--line);align-items:flex-end;gap:8px;padding:12px;display:flex}.help-widget .help-input textarea{resize:none;border:1px solid var(--line);min-height:40px;max-height:132px;font:400 14px/1.5 var(--font);color:var(--ink);background:var(--surface);border-radius:8px;flex:1;padding:9px 10px}.help-widget .help-input textarea:focus{border-color:var(--accent);outline:none}.help-widget .help-input button{background:var(--accent);color:#fff;height:40px;font:500 14px/1 var(--font);cursor:pointer;border:0;border-radius:8px;padding:0 16px}.help-widget .help-input button:disabled{background:var(--line);color:var(--muted);cursor:not-allowed}@media (max-width:640px){.help-widget{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}.help-widget .help-panel{width:auto;height:auto;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);border:0;border-radius:0;position:fixed;inset:0}.help-widget:has(.help-panel) .help-launcher{display:none}.help-widget .help-input textarea{font-size:16px}.help-widget .help-input button,.help-widget .help-close{min-height:44px}}.help-widget .help-input button:hover:not(:disabled){background:var(--accent-hover)}@keyframes help-in{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}@keyframes help-dot{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.help-widget .help-panel,.help-widget .help-dots i{animation:none}.help-widget .help-launcher{transition:none}}
