/* partner-help-ai-v1 (owner 2026-11-17 「跟我们后台的方案是一样的」): the help assistant dock of the partner centre — the
   back-office dock (admin-help-dock.css) with this page's variables. The panel is solid: the opaque page canvas under the
   surface colour, so page text never shows through; edge and shadow come only from the --glass-* variables. */
.help-dock{position:fixed;z-index:60;left:24px;bottom:24px;width:min(400px,calc(100vw - 48px));height:min(620px,calc(100dvh - 48px));display:flex;flex-direction:column;min-height:0;border:1px solid var(--glass-edge,var(--line));border-radius:24px;background-color:var(--canvas);background-image:linear-gradient(var(--panel),var(--panel));box-shadow:var(--glass-shadow,none);color:var(--text);overflow:hidden;transform-origin:left bottom;transition:transform .18s ease,opacity .18s ease}
.help-dock[hidden]{display:none}
.help-dock.is-entering{opacity:0;transform:scale(.9)}
.help-dock-head{display:flex;align-items:center;gap:8px;min-height:56px;padding:8px 8px 8px 20px;border-bottom:1px solid var(--line)}
.help-dock .help-dock-head h2{flex:1;min-width:0;margin:0;overflow:hidden;font-size:16px;line-height:24px;font-weight:600;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}
.help-dock .help-dock-text{height:36px;min-height:36px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.help-dock .help-dock-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:var(--text);font-size:18px;line-height:1;cursor:pointer}
.help-dock .help-log{flex:1;min-height:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.help-dock .help-welcome{margin:auto 0;display:grid;gap:12px;text-align:center;justify-items:center}
.help-dock .help-welcome h2{margin:0;font-size:16px;line-height:24px;font-weight:600;letter-spacing:0}
.help-dock .help-welcome p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.help-dock .help-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.help-dock .help-chips button,.help-dock .help-links a,.help-dock .help-support{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;line-height:1.4;text-align:left;text-decoration:none;cursor:pointer}
.help-dock .help-support{font-weight:600}
.help-dock .help-q{align-self:flex-end;max-width:85%;padding:8px 14px;border-radius:16px 16px 4px 16px;background:var(--text);color:var(--panel);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.help-dock .help-a{align-self:flex-start;max-width:92%;min-width:0;display:grid;gap:8px}
.help-dock .help-body{padding:10px 14px;border-radius:16px 16px 16px 4px;background:var(--soft);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.help-dock .help-body p{margin:0}
.help-dock .help-body ol{margin:4px 0 0;padding-left:20px}
.help-dock .help-warn{margin-top:8px!important;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-weight:600}
.help-dock .help-links{display:flex;flex-wrap:wrap;gap:8px}
.help-dock .help-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}
.help-dock .help-form input{flex:1;min-width:0;height:40px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--text);font:inherit;font-size:16px}
.help-dock .help-form button{height:40px;min-height:40px;padding:0 18px;border:0;border-radius:999px;background:var(--text);color:var(--panel);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.help-dock .help-form button:disabled{opacity:.5;cursor:default}
/* phone and narrow windows: a sheet that slides up from the bottom, above the bottom bar */
.help-dock.help-dock-sheet{left:0!important;right:0;bottom:0;width:100%;height:min(86dvh,680px);border-radius:24px 24px 0 0;transform-origin:center bottom;z-index:120}
.help-dock.help-dock-sheet.is-entering{opacity:1;transform:translateY(100%)}
.help-dock.help-dock-sheet .help-form{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.help-dock .help-skel{display:grid;gap:12px;padding:4px 0}
.help-dock .help-skel i{display:block;height:36px;border-radius:16px;background:linear-gradient(90deg,var(--soft) 0%,var(--line) 50%,var(--soft) 100%);background-size:200% 100%;animation:partner-help-sweep 1.4s linear infinite}
.help-dock .help-skel i.r{justify-self:end}
.help-dock .help-skel .w60{width:60%}.help-dock .help-skel .w70{width:70%}.help-dock .help-skel .w80{width:80%}
.help-dock .help-typing{align-self:flex-start;display:inline-flex;gap:4px;padding:12px 14px;border-radius:16px 16px 16px 4px;background:var(--soft)}
.help-dock .help-typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:partner-help-dot 1s ease-in-out infinite}
.help-dock .help-typing i:nth-child(2){animation-delay:.15s}.help-dock .help-typing i:nth-child(3){animation-delay:.3s}
@keyframes partner-help-sweep{to{background-position:-200% 0}}
@keyframes partner-help-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.help-dock{transition:none}.help-dock .help-skel i,.help-dock .help-typing i{animation:none}}
