/* Isolate help from both site typography and conversation control styles. */
.sfb-visual-guide { display:inline-flex; flex:0 0 auto; }
html body .sfb .sfb-guide-open { appearance:none; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:7px 12px; border:1px solid var(--sfb-line,#b9b9b9); border-radius:10px; background:transparent; color:inherit!important; font:inherit; font-size:13px; white-space:nowrap; cursor:pointer; }
html body .sfb-guide-dialog { box-sizing:border-box; width:min(1000px,calc(100vw - 24px)); max-width:none; height:min(900px,calc(100dvh - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:0; border:1px solid #ccc; border-radius:18px; background:#faf9f6; color:#202020; font:14px/1.65 system-ui,sans-serif; box-shadow:0 20px 80px #0005; }
html body .sfb-guide-dialog[open] { display:flex; flex-direction:column; }
.sfb-guide-dialog::backdrop { background:#0009; }
html body .sfb-guide-dialog * { box-sizing:border-box; }
html body .sfb-guide-dialog [hidden] { display:none!important; }
html body .sfb-guide-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 22px; background:#fff; border-bottom:1px solid #ddd; }
html body .sfb-guide-dialog h2 { margin:0; font-size:23px; line-height:1.4; color:#202020!important; }
html body .sfb-guide-dialog button { appearance:none; font:inherit; cursor:pointer; border:1px solid #bbb; border-radius:8px; padding:8px 12px; min-height:44px; background:#fff; color:#202020!important; }
html body .sfb-guide-header button { flex:0 0 auto; }
html body .sfb-guide-nav { display:flex; flex:0 0 auto; gap:7px; padding:12px 22px; overflow-x:auto; border-bottom:1px solid #ddd; }
html body .sfb-guide-nav button { white-space:nowrap; font-size:13px; }
html body .sfb-guide-nav button[aria-pressed=true] { background:#202020; border-color:#202020; color:#fff!important; }
html body .sfb-guide-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px 22px; }
html body .sfb-guide-dialog h3 { margin:0 0 4px; font-size:22px; color:#202020!important; }
html body .sfb-guide-intro { margin:0 0 20px; color:#555!important; }
html body .sfb-guide-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
html body .sfb-guide-card { min-width:0; margin:0; overflow:hidden; border:1px solid #ddd; border-radius:12px; background:#fff; }
html body .sfb-guide-card figcaption { display:flex; gap:10px; padding:16px; }
html body .sfb-guide-step { flex:0 0 28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#b32222; color:#fff; font-weight:700; }
html body .sfb-guide-dialog h4 { margin:0; font-size:16px; color:#202020!important; }
html body .sfb-guide-card p { margin:4px 0 0; font-size:13px; color:#505050!important; }
html body .sfb-guide-card a { display:block; }
html body .sfb-guide-card img { display:block; width:100%; height:auto; border-top:1px solid #ddd; }
html body .sfb-guide-note { margin:20px 0 0; font-size:12px; color:#666!important; }
html body .sfb-guide-dialog :focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
html body:has(.sfb-guide-dialog[open]) { overflow:hidden; }
@media(max-width:620px) {
 html body .sfb-guide-header { padding:12px; }
 html body .sfb-guide-dialog h2 { font-size:18px; }
 html body .sfb-guide-nav { padding:10px 12px; }
 html body .sfb-guide-scroll { padding:16px 12px; }
 html body .sfb-guide-cards { grid-template-columns:minmax(0,1fr); }
 html body .sfb-guide-card figcaption { padding:12px; }
 html body .sfb-chat__room-header .sfb-guide-open { min-height:38px; padding:5px 7px; font-size:12px; }
}
html body.sfb-conversation-open > dialog.sfb-guide-dialog[open] { display:flex!important; }
@media(max-width:620px) {
 html body .sfb-chat__room-header .sfb-guide-open { width:36px; min-width:36px; padding:0; font-size:0; }
 html body .sfb-chat__room-header .sfb-guide-open::after { content:"?"; font-size:18px; font-weight:700; }
 html body .sfb-chat[data-sfb-conversation-shell] .sfb-chat__palette select { width:64px; }
}
html body .sfb-guide-selector { display:none; }
@media(max-width:620px) {
 html body .sfb-guide-dialog .sfb-guide-nav { display:none; }
 html body .sfb-guide-selector { display:flex; align-items:center; flex:0 0 auto; gap:10px; padding:10px 12px; border-bottom:1px solid #ddd; font-size:12px; }
 html body .sfb-guide-selector select { flex:1; min-width:0; min-height:44px; border:1px solid #bbb; border-radius:8px; padding:6px 10px; background:#fff; color:#202020; font:inherit; font-size:14px; }
}
