.help-fab{position:fixed;right:22px;bottom:22px;z-index:60;display:grid;place-items:center;width:52px;height:52px;border:0;border-radius:50%;background:var(--primary);color:var(--primary-fg);box-shadow:0 8px 24px rgba(0,0,0,.22);cursor:pointer;transition:transform .15s ease}.help-fab:hover{transform:translateY(-2px)}.help-fab:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.help-panel{position:fixed;right:22px;bottom:22px;z-index:70;display:flex;flex-direction:column;width:400px;height:min(640px,calc(100vh - 44px));height:min(640px,calc(100dvh - 44px));border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--card);color:var(--card-fg);box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden}.help-head{display:flex;align-items:center;gap:4px;padding:10px 10px 10px 14px;border-bottom:1px solid var(--border)}.help-head-icon{display:grid;place-items:center;width:30px;height:30px;margin-right:4px;border-radius:50%;background:var(--primary);color:var(--primary-fg)}.help-head-title{flex:1 1;min-width:0;font-weight:650;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.help-head .icon-btn:disabled{opacity:.4;cursor:default}.help-messages{flex:1 1;min-height:0;overflow-y:auto;padding:16px 14px;overscroll-behavior:contain}.help-welcome{padding:8px 2px}.help-greeting{margin:0 0 4px;font-size:16px;font-weight:650}.help-greeting-note{margin:0 0 16px;color:var(--muted-fg);font-size:13px}.help-suggestions{display:flex;flex-direction:column;gap:8px}.help-suggestion{padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg);color:var(--fg);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}.help-suggestion:hover:not(:disabled){border-color:var(--ring);background:var(--muted)}.help-suggestion:disabled{opacity:.5;cursor:default}.help-turn+.help-turn{margin-top:18px}.help-question{width:-moz-fit-content;width:fit-content;max-width:85%;margin:0 0 10px auto;padding:8px 12px;border-radius:14px 14px 4px 14px;background:var(--primary);color:var(--primary-fg);font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.help-answer{min-width:0}.help-answer .md-text{font-size:14px}.help-thinking{display:inline-flex;align-items:center;gap:6px;color:var(--muted-fg);font-size:13px}.help-meta{margin:6px 0 0;color:var(--muted-fg);font-size:12.5px}.help-failed{flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--radius-md);background:var(--destructive-bg);color:var(--destructive);font-size:13px}.help-failed,.help-rate{display:flex;margin-top:6px}.help-rate{gap:2px}.help-rate .icon-btn{width:28px;height:28px;color:var(--muted-fg)}.help-rate .icon-btn.active{color:var(--primary);background:var(--muted)}.help-link-btn{padding:0;border:0;background:none;color:var(--primary);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.help-link-btn:disabled{opacity:.5;cursor:default}.help-foot{padding:10px 12px;border-top:1px solid var(--border)}.help-notice{margin-bottom:8px;padding:8px 10px;border-radius:var(--radius-md);background:var(--info-bg);color:var(--fg);font-size:13px;line-height:1.45}.help-input{display:flex;align-items:flex-end;gap:8px;padding:6px 6px 6px 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg)}.help-input:focus-within{border-color:var(--ring)}.help-input textarea{flex:1 1;min-width:0;max-height:120px;padding:6px 0;border:0;outline:none;resize:none;background:transparent;color:var(--fg);font:inherit;font-size:14.5px;line-height:1.45;field-sizing:content}.help-send{flex:none;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--primary);color:var(--primary-fg);cursor:pointer}.help-send:disabled{opacity:.35;cursor:default}.help-foot-line{display:flex;justify-content:space-between;gap:8px;margin-top:7px;font-size:12px}.help-foot-line,.help-guide-link{align-items:center;color:var(--muted-fg)}.help-guide-link{display:inline-flex;gap:4px;margin-left:auto}.help-guide-link:hover{color:var(--fg)}.help-history{flex:1 1;min-height:0;overflow-y:auto;padding:8px}.help-note{display:flex;justify-content:center;gap:6px;margin:18px 0;color:var(--muted-fg);font-size:13.5px}.help-note.error{color:var(--destructive)}.help-history-item{display:flex;align-items:center;gap:4px;border-radius:var(--radius-md)}.help-history-item.active,.help-history-item:hover{background:var(--muted)}.help-history-open{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:9px 10px;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}.help-history-title{font-size:14px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.help-history-date{color:var(--muted-fg);font-size:12px}@media (max-width:640px){.help-fab{right:16px;bottom:16px;width:48px;height:48px}.help-panel{inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none}.help-foot{padding-bottom:max(10px,env(safe-area-inset-bottom))}.help-input textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){.help-fab{transition:none}}