/* WEB-015: isolated local-help UI; native modal owns focus and background inertness. */
#captale-help{--ch-bg:#151515;--ch-fg:#f5f5f5;--ch-muted:#b8b8bd;--ch-accent:#baa5ee;font:14px/1.55 system-ui,Arial,sans-serif;color:var(--ch-fg)}
#captale-help button,#captale-help input{font:inherit;touch-action:manipulation}#captale-help button{cursor:pointer}#captale-help button:focus-visible,#captale-help a:focus-visible,#captale-help input:focus-visible{outline:2px solid var(--ch-accent);outline-offset:3px}#captale-help [hidden]{display:none!important}
#captale-help .ch-launch{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:20px;z-index:80;display:flex;align-items:center;gap:6px;border:1px solid #baa5ee77;border-radius:40px;padding:3px 16px 3px 5px;background:#19171e;color:#eee;box-shadow:0 8px 28px #0008;min-height:58px}#captale-help .ch-launch img{object-fit:contain}#captale-help .ch-launch span{font-size:12px;font-weight:700}
#captale-help .ch-panel{position:fixed;inset:auto auto max(16px,env(safe-area-inset-bottom)) 20px;margin:0;width:min(398px,calc(100vw - 40px));max-width:none;height:min(680px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ffffff30;border-radius:22px;background:var(--ch-bg);color:var(--ch-fg);box-shadow:0 20px 80px #000b;overflow:hidden;font:14px/1.55 system-ui,Arial,sans-serif;text-align:left}#captale-help .ch-panel[open]{display:flex;flex-direction:column}#captale-help .ch-panel::backdrop{background:#0005}
#captale-help[data-side=right] .ch-launch,#captale-help[data-side=right] .ch-panel{left:auto;right:20px}
#captale-help .ch-heading{display:flex;align-items:center;gap:10px;padding:16px;border-bottom:1px solid #ffffff19}#captale-help .ch-heading>div{flex:1;min-width:0}#captale-help h2{font-size:19px;letter-spacing:-.3px;line-height:1.25;margin:0}#captale-help .ch-heading p{font-size:11px;margin:4px 0 0;color:var(--ch-muted)}#captale-help .ch-close{width:44px;height:44px;margin:0;border:1px solid #ffffff24;border-radius:50%;background:transparent;color:#eee;font-size:24px;padding:0;flex-shrink:0}
#captale-help .ch-toolbar{display:flex;gap:8px;padding:9px 16px;border-bottom:1px solid #ffffff12}#captale-help .ch-toolbar button{min-height:44px;padding:5px 13px;background:#ffffff04;border:1px solid #ffffff20;border-radius:9px;color:var(--ch-muted);margin:0;font-size:12px}#captale-help .ch-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:16px;scrollbar-width:thin}#captale-help .ch-start{color:#ddd;font-size:13px;margin-bottom:14px}#captale-help .ch-choices{display:flex;flex-wrap:wrap;gap:8px}#captale-help .ch-choices>p{flex-basis:100%;margin:0;color:var(--ch-muted);font-size:12px}#captale-help .ch-choices button{min-height:44px;padding:9px 12px;border-radius:12px;border:1px solid #baa5ee40;background:#baa5ee0c;color:#e4d9fa;margin:0;font-size:12px;text-align:left;max-width:100%}#captale-help .ch-status{font-size:12px;color:var(--ch-muted);margin-bottom:10px}
#captale-help .ch-message{padding:13px;border-radius:13px;background:#222;border:1px solid #ffffff13;margin:0 0 12px;overflow-wrap:anywhere;font-size:13px}#captale-help .ch-user{background:#baa5ee1c;margin-left:25px;color:#eee}#captale-help h3{font-size:14px;line-height:1.4;margin:0 0 6px;letter-spacing:0}#captale-help .ch-message p{font-size:13px;color:#d0d0d0;margin:0;max-width:none}#captale-help .ch-message a,#captale-help .ch-message button{display:inline-flex;align-items:center;min-height:44px;margin:10px 0 0;padding:7px 11px;border:1px solid #baa5ee66;border-radius:9px;background:transparent;color:#d8c7f6;text-decoration:underline;font-size:12px}
#captale-help .ch-form{padding:12px 16px 6px;border-top:1px solid #ffffff20;margin:0;display:block}#captale-help label{display:block;font-size:11px;color:var(--ch-muted);margin-bottom:7px}#captale-help .ch-form>div{display:flex;gap:8px}#captale-help input{min-width:0;width:100%;min-height:44px;border:1px solid #ffffff30;border-radius:10px;background:#0c0c0c;color:#f4f4f4;padding:9px 10px;box-sizing:border-box;font-size:16px}#captale-help .ch-form button{border:0;border-radius:10px;background:var(--ch-accent);color:#171020;font-weight:700;padding:8px 13px;min-height:44px;margin:0;font-size:12px}#captale-help .ch-note{padding:4px 16px 12px;margin:0;font-size:10px;color:var(--ch-muted);max-width:none}
@media(max-width:599px){#captale-help .ch-launch{left:12px;bottom:max(12px,env(safe-area-inset-bottom))}#captale-help .ch-panel,#captale-help[data-side=right] .ch-panel{left:8px;right:auto;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100vw - 16px);height:min(680px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);border-radius:19px}#captale-help[data-side=right] .ch-launch{right:12px;left:auto}}
@media(prefers-color-scheme:light){#captale-help{--ch-bg:#1b1b1b}}
@media(prefers-reduced-motion:reduce){#captale-help *{scroll-behavior:auto}}

/* WEB-017: avatar only, fixed right by explicit owner instruction. */
#captale-help .ch-launch,#captale-help[data-side=right] .ch-launch{left:auto;right:max(20px,env(safe-area-inset-right));width:64px;height:64px;min-height:64px;padding:6px;gap:0;justify-content:center;border-radius:50%;box-sizing:border-box}
#captale-help .ch-launch span{display:none}
@media(min-width:600px){#captale-help .ch-panel,#captale-help[data-side=right] .ch-panel{left:auto;right:20px}}
@media(max-width:599px){#captale-help .ch-launch,#captale-help[data-side=right] .ch-launch{right:max(12px,env(safe-area-inset-right))}}
@media(max-height:500px){#captale-help .ch-launch,#captale-help[data-side=right] .ch-launch{right:40px}}
