/* Help is ordinary content, never a fixed banner over a form or chat composer. */
#sectionHelpIntro{margin:14px 24px 0;color:var(--muted);font-size:14px;line-height:1.5;max-width:82ch;}
#sectionHelpIntro[hidden],.sh-button[hidden]{display:none;}
.sh-button{flex:none;min-height:44px;white-space:nowrap;}
.sh-short{display:none;}
.sh-dialog{color:var(--text);background:var(--card);border:1px solid var(--border);border-radius:16px;padding:0;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;}
.sh-dialog::backdrop{background:rgba(0,0,0,.48);}
.sh-dialog header{position:sticky;top:0;display:flex;align-items:center;gap:12px;justify-content:space-between;background:var(--card);padding:16px 20px;border-bottom:1px solid var(--border);z-index:1;}
.sh-dialog h2{margin:0;font-size:19px;}
.sh-dialog header button{min-height:44px;flex:none;}
.sh-body{padding:0 20px 20px;line-height:1.55;overflow-wrap:anywhere;}
.sh-body h3,.sh-panel-help h3{font-size:16px;margin:20px 0 8px;}
.sh-body ol,.sh-panel-help ol{padding-left:22px;margin:8px 0;}
.sh-body li,.sh-panel-help li{margin:8px 0;}
.sh-purpose{font-size:15px;line-height:1.5;}
.sh-panel-help{border:1px solid var(--border);border-radius:10px;padding:8px 12px;margin:0 0 14px;line-height:1.5;}
.sh-panel-help summary{color:var(--text);min-height:36px;align-content:center;margin:0;}
/* compact help: the first step of a block is on the first screen, the rest under «Подробнее» */
.sh-body .sh-key{margin-bottom:2px;}
.sh-more{margin:0 0 4px;}
.sh-more > summary{display:inline-flex;align-items:center;min-height:36px;color:var(--accent);font-size:14px;font-weight:600;cursor:pointer;border-radius:6px;padding:0 4px;margin-left:18px;}
.sh-more > summary::-webkit-details-marker{display:none;}
.sh-more > summary::before{content:'▸';display:inline-block;width:1em;margin-right:4px;}
.sh-more[open] > summary::before{content:'▾';}
.sh-more-n{color:var(--muted);font-weight:400;}
.sh-more[open] > summary{margin-bottom:0;}
.sh-more > ol{margin-top:0;}
/* the choice under the help button where the screen has a tour */
.sh-menu{position:fixed;z-index:150;display:flex;flex-direction:column;min-width:210px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:6px;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.24);}
.sh-menu-item{display:block;width:100%;min-height:44px;padding:0 14px;border:0;border-radius:8px;background:none;color:var(--text);font:inherit;font-size:15px;text-align:left;cursor:pointer;white-space:nowrap;}
.sh-menu-item:hover,.sh-menu-item:focus{background:var(--bg);}
.sh-menu-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.sh-button:focus-visible,.sh-dialog button:focus-visible,.sh-panel-help summary:focus-visible,.sh-more > summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
@media(max-width:600px){
  .topbar .sh-button{font-size:18px;padding:0;width:44px;order:2;}
  .topbar .sh-label{display:none;}
  .topbar .sh-short{display:inline;}
  .topbar h1{flex:1 1 0;min-width:0;}
  .sh-dialog header{padding:12px;gap:8px;}
  .sh-body{padding:0 14px 16px;}
  #sectionHelpIntro{font-size:13px;margin:10px 16px 0;}
}
