.workspace-header .nav-utilities{display:inline-flex;align-items:center;gap:8px;flex:none;margin-inline:4px}
.workspace-header :is(.nav-icon-link,.help-launcher){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;box-sizing:border-box;padding:10px;gap:0;border:1px solid #bce3e926;border-radius:12px;background:#d4edf00a;color:#d4edf0;line-height:1;text-decoration:none;transition:background-color .16s ease,color .16s ease,border-color .16s ease}
.workspace-header :is(.nav-icon-link,.help-launcher) svg{display:block;width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workspace-header .help-launcher-dot{fill:currentColor;stroke:none}
.workspace-header .help-launcher-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace-header :is(.nav-icon-link,.help-launcher):hover{background:#d4edf01f;border-color:#bce3e966;color:#fff}
.workspace-header :is(.nav-icon-link,.help-launcher):focus-visible{outline:2px solid #bce3e9;outline-offset:3px;background:#d4edf01f}
.workspace-header :is(.nav-icon-link,.help-launcher)[aria-expanded=true],.workspace-header :is(.nav-icon-link,.help-launcher)[aria-current=page]{background:#dceff2;border-color:#bce3e9;color:#153d49}
.workspace-header .notification-link b{position:absolute;top:-6px;right:-7px;min-width:19px;height:19px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid #122f3d;border-radius:12px;background:#aee4ec;color:#103b48;font-size:10px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}
.workspace-header .notification-link b[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.workspace-header :is(.nav-icon-link,.help-launcher){transition:none}}
@media(forced-colors:active){.workspace-header :is(.nav-icon-link,.help-launcher){border-color:ButtonText;color:LinkText}.workspace-header :is(.nav-icon-link,.help-launcher)[aria-expanded=true],.workspace-header :is(.nav-icon-link,.help-launcher)[aria-current=page]{outline:2px solid Highlight}.workspace-header .notification-link b{border-color:Canvas;color:Canvas;background:CanvasText}}
#context-help[hidden],#context-help [hidden]{display:none!important}
#context-help{position:fixed;inset:12px 12px 12px auto;width:400px;max-width:calc(100vw - 24px);background:#fff;color:#1c3040;border:1px solid #cddde4;border-radius:14px;box-shadow:0 8px 30px #102d3c1a;z-index:100;display:flex;flex-direction:column;font-size:14px;line-height:1.65;overflow:hidden}
#context-help .help-panel-heading{display:flex;align-items:center;justify-content:space-between;background:#f0f6f8;border-bottom:1px solid #dbe6eb;padding:10px 18px;font-size:17px}
#context-help button{font-size:13px;padding:7px 10px;margin:0}
#context-help [data-help-close]{font-size:25px;line-height:1;background:transparent;color:#234858;padding:8px 12px}
#context-help .help-panel-search{display:flex;align-items:center;gap:8px;padding:14px 16px 8px;margin:0}
#context-help input{min-width:0;font-size:14px;padding:8px 10px}
#context-help .help-panel-search button{flex-shrink:0}
#context-help .help-panel-tools{display:flex;gap:5px;flex-wrap:wrap;padding:0 16px 8px;border-bottom:1px solid #e4edf1}
#context-help .help-panel-tools button{background:#edf4f6;color:#234d61;font-weight:500}
#context-help button:disabled{opacity:.45;cursor:default}
#context-help .help-panel-status{margin:0;padding:0 18px;color:#536775;font-size:12px}
#context-help .help-panel-status:not(:empty){padding-top:8px}
#context-help .help-panel-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px;overflow-wrap:anywhere}
#context-help h2{font-size:20px;margin:0 0 12px;letter-spacing:0}
#context-help h3{font-size:16px;margin:24px 0 10px}
#context-help p{margin:10px 0}
#context-help ol,#context-help ul{padding-left:22px}
#context-help li{margin:9px 0}
#context-help .help-panel-card{display:block;border:1px solid #dae5eb;border-radius:10px;padding:12px 14px;margin:10px 0;text-decoration:none;background:#fbfdfe}
#context-help .help-panel-card:hover{background:#eef6f8}
#context-help .help-panel-card strong,#context-help .help-panel-card small{display:block}
#context-help .help-panel-card small{font-size:13px;color:#526575;margin-top:4px}
#context-help .help-panel-outline{display:block;border-block:1px solid #e0e9ed;padding:10px 0;margin:16px 0}
#context-help .help-panel-outline a{display:block;margin:6px 0}
#context-help .help-context-topics a{padding:8px 10px;margin:2px 0;min-height:44px;box-sizing:border-box;display:flex;align-items:center;border-radius:8px;text-decoration:none;line-height:1.5;overflow-wrap:anywhere}
#context-help .help-context-topics a:hover{background:#eef6f8}
#context-help .help-context-topics a:focus-visible{outline:2px solid #1c6f80;outline-offset:1px}
#context-help .help-panel-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 18px;border-top:1px solid #e0e9ed;font-size:12px;background:#fafcfd}
.context-help-link{font-size:13px;display:inline-block;margin:5px 0 10px}
@media(min-width:1100px){body.help-panel-open #main{margin-right:436px;min-width:0}}
@media(min-width:1100px){body.help-panel-open #workspace-main,body.help-panel-open .site-footer{margin-right:436px}body.help-panel-open .workspace-header{padding-right:436px;gap:18px}body.help-panel-open #workspace-main{min-width:0}}
@media(min-width:1100px){body.help-panel-open .conversation-launcher{right:432px}}
@media(max-width:1099px){#context-help{inset:0 0 0 auto;width:min(100%,520px);max-width:100%;height:100dvh;border-radius:0;box-shadow:-10px 0 50px #102d3c33}body.help-panel-open{overflow:hidden}body.help-panel-open::before{content:"";position:fixed;inset:0;background:#102d3c33;z-index:99}}
@media print{#context-help,.help-launcher,.context-help-link{display:none!important}body.help-panel-open #workspace-main,body.help-panel-open .site-footer{margin-right:auto}body.help-panel-open::before{display:none}}

.help-guide-pane,.help-ai-pane{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.help-panel-tabs{display:flex;gap:6px;padding:8px 16px;border-bottom:1px solid #dbe6eb}
#context-help .help-panel-tabs button{flex:1;background:#edf4f6;color:#234d61}
#context-help .help-panel-tabs [aria-selected=true]{background:#175f73;color:#fff}
#context-help [data-help-pin][aria-pressed=true]{background:#175f73;color:#fff}
#context-help .help-ai-note,#context-help .help-ai-screen{font-size:12px;line-height:1.5;margin:6px 16px;color:#536775}
#context-help .help-ai-screen{font-weight:700;color:#254958}
.help-ai-pane{position:relative}
.help-ai-feed{position:relative;flex:1;min-height:0}
.help-ai-history{height:100%;min-height:0;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:0 16px 12px;overflow-wrap:anywhere;scrollbar-gutter:stable}
.help-ai-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:44px;padding:0 12px;border-bottom:1px solid #e4edf1;font-size:12px}
.help-ai-remaining{white-space:nowrap;color:#536775}
.help-ai-settings{min-width:0}
.help-ai-settings summary{display:flex;align-items:center;justify-content:flex-end;gap:4px;cursor:pointer;min-height:44px;color:#175f73}
.help-ai-settings summary span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.help-ai-settings summary:focus-visible{outline:2px solid #175f73;outline-offset:2px}
.help-ai-options{position:absolute;z-index:2;top:44px;left:8px;right:8px;max-height:70%;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 8px 24px #102d3c33;border:1px solid #cddde4;border-radius:10px;padding:12px;display:grid;gap:10px;font-size:13px}
#context-help .help-ai-options p{margin:0;font-size:12px}
#context-help .help-ai-options select{min-width:0;width:100%;font-size:16px;box-sizing:border-box}
#context-help [data-help-ai-settings-close]{justify-self:end;min-height:44px}
#context-help .help-ai-new{position:absolute;right:16px;bottom:8px;min-height:44px;border-radius:22px;box-shadow:0 3px 10px #102d3c33}
.help-ai-turn{border:1px solid #dce7eb;border-radius:10px;margin:8px 0;background:#fff}
.help-ai-turn>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;cursor:pointer;list-style:none;background:#f5f9fa;border-radius:10px}
.help-ai-turn>summary::-webkit-details-marker{display:none}
.help-ai-turn>summary::before{content:'›';flex:none;font-size:24px;line-height:1;color:#175f73;transform:rotate(0deg)}
.help-ai-turn[open]>summary::before{transform:rotate(90deg)}
.help-ai-turn>summary:focus-visible{outline:2px solid #175f73;outline-offset:2px}
.help-ai-turn-heading{min-width:0}
.help-ai-turn-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;overflow-wrap:anywhere}
.help-ai-turn[open] .help-ai-turn-title{-webkit-line-clamp:unset;white-space:pre-wrap}
.help-ai-turn-heading small{display:block;margin-top:4px;color:#536775;font-size:11px}
.help-ai-detail{padding:0 12px 12px}
.help-ai-detail-tools{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;border-bottom:1px solid #e4edf1;margin-bottom:10px;font-size:12px;color:#536775}
#context-help .help-ai-detail-tools button{min-width:44px;min-height:44px;background:transparent;color:#234858;font-size:24px;line-height:1}
#context-help .help-ai-records{font-size:12px;color:#536775;margin:10px 0}
.help-ai-question{background:#ecf3f6;padding:10px;border-radius:8px;white-space:pre-wrap}
.help-ai-answer{white-space:pre-wrap;margin:8px 0}
.help-ai-sources a{display:block;font-size:12px;margin:7px 0}
.help-ai-escalation{background:#f5f8ed;border:1px solid #d6dfc1;border-radius:8px;padding:10px;font-size:12px}
.help-ai-suggestions{padding:4px 16px;display:grid;gap:6px}
#context-help .help-ai-suggestions button{text-align:left;background:#edf4f6;color:#234d61}
.help-ai-status{font-size:12px;max-height:20vh;overflow:auto}
#context-help .help-ai-status{margin:0}
.help-ai-status:empty{display:none}
.help-ai-form{flex:none;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));margin:0;border-top:1px solid #dbe6eb;display:grid;gap:6px}
.help-ai-form label,.help-ai-form small{font-size:11px;color:#536775}
.help-ai-form select,.help-ai-form textarea{width:100%;font-size:13px;margin:0;box-sizing:border-box}
.help-ai-compose{display:flex;gap:8px;align-items:flex-end}
#context-help .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
#context-help .help-ai-compose{min-width:0;width:100%}
#context-help .help-ai-form textarea{flex:1;min-width:0;resize:none;min-height:44px;height:44px;max-height:88px;padding:10px;line-height:22px;font-size:16px;overflow-y:auto}
#context-help .help-ai-compose button{flex:none;min-width:44px;min-height:44px}
#context-help [data-help-ai-send]{font-size:24px;line-height:1;border-radius:50%}
.help-ai-actions{display:flex;gap:5px;flex-wrap:wrap}
.help-ai-support{padding:8px 16px;font-size:12px;border-top:1px solid #e0e9ed}
@media(max-width:1099px){
  #context-help{box-sizing:border-box;top:var(--help-visible-top,0px);bottom:auto;height:var(--help-visible-height,100dvh);padding-top:env(safe-area-inset-top,0px)}
  #context-help .help-panel-heading{padding:4px 12px;font-size:16px;flex:none}
  #context-help [data-help-close]{min-width:44px;min-height:44px}
  #context-help .help-panel-tabs{padding:4px 12px;flex:none}
  #context-help .help-panel-tabs button{min-height:44px}
  #context-help .help-ai-note{font-size:13px;margin:12px 0}
  #context-help.help-keyboard .help-panel-tabs,#context-help.help-keyboard .help-ai-toolbar{display:none}
  #context-help.help-keyboard .help-ai-form textarea{max-height:66px}
}

.help-ai-delete-confirm{padding:10px;border:1px solid #e4bdab;border-radius:8px;background:#fff8f3;margin:8px 0}.help-ai-delete-confirm p{margin:0 0 8px}.help-ai-delete-confirm button{min-height:44px;margin-right:8px}.help-ai-delete-confirm button.danger{background:#9b352b;color:white}
/* Compact help chrome: preserve reading space and full-sized touch targets. */
body[data-panel-layout] #context-help .help-panel-heading{min-height:56px;box-sizing:border-box;padding:6px 10px;gap:6px;flex:none}
body[data-panel-layout] #context-help .help-panel-heading .help-panel-tabs{display:flex;flex:1;min-width:0;gap:4px;padding:0;border:0;background:#e4eef2;border-radius:10px}
body[data-panel-layout] #context-help .help-panel-heading .help-panel-tabs button{display:flex;align-items:center;justify-content:center;flex:1;width:auto;min-width:0;height:44px;min-height:44px;padding:6px 10px;font-size:13px;line-height:1.3;white-space:nowrap;background:transparent;color:#234d61;border-radius:8px}
body[data-panel-layout] #context-help .help-panel-heading .help-panel-tabs [aria-selected=true]{background:#175f73;color:#fff;box-shadow:0 1px 3px #163d4920}
#context-help .help-panel-navigation{position:relative;flex:none;border-bottom:1px solid #e4edf1;background:#fff}
body[data-panel-layout] #context-help .help-panel-tools{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;padding:4px 10px;border:0}
#context-help .help-panel-tools button{box-sizing:border-box;height:44px;min-height:44px;border:1px solid transparent;border-radius:8px;white-space:nowrap;padding:6px 10px;font-size:13px;line-height:1.3;background:transparent;color:#234d61}
#context-help .help-panel-tools button:hover:not(:disabled){background:#edf4f6;border-color:#dbe6eb}
#context-help .help-panel-tools :is([data-help-back],[data-help-search-toggle],[data-help-more]){flex:0 0 44px;width:44px;padding:10px;font-size:22px}
#context-help [data-help-search-toggle]{margin-left:auto}
#context-help [data-help-search-toggle] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#context-help [data-help-pinned]{font-size:12px;flex:none}
#context-help .help-panel-tools [aria-expanded=true]{background:#e4f1f3;color:#175f73}
#context-help .help-panel-search{padding:0 12px 10px;gap:6px}
#context-help .help-panel-search input{margin:0;flex:1;min-width:0;width:auto;height:44px;box-sizing:border-box;font-size:16px}
#context-help .help-panel-search button{height:44px;min-width:44px;box-sizing:border-box;border-radius:8px}
#context-help [data-help-search-close]{display:none;background:#edf4f6;color:#234d61;font-size:22px;padding:6px}
#context-help .help-panel-more{position:absolute;z-index:4;right:10px;top:calc(100% - 2px);display:grid;min-width:190px;max-width:calc(100% - 20px);max-height:calc(var(--side-panel-height,100dvh) - 130px);overflow:auto;padding:6px;border:1px solid #d3e1e7;border-radius:12px;background:#fff;box-shadow:0 8px 24px #102d3c26}
#context-help .help-panel-more :is(button,a){box-sizing:border-box;display:flex;align-items:center;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#234d61;text-align:left;text-decoration:none;font-size:13px;line-height:1.5}
#context-help .help-panel-more :is(button,a):hover{background:#edf4f6}
#context-help :is(button,a,input):focus-visible{outline:2px solid #208399;outline-offset:2px}
#context-help .help-panel-content{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
@media(max-width:760px){
  body[data-panel-layout] #context-help .help-panel-heading{padding:4px 8px;min-height:52px}
  body[data-panel-layout] #context-help .help-panel-heading .help-panel-tabs{max-width:300px;margin-right:auto}
  body[data-panel-layout] #context-help .help-panel-heading [data-panel-expand]{display:none}
  body[data-panel-layout] #context-help .help-panel-tools{padding:2px 6px;gap:2px}
  #context-help .help-panel-tools button{padding-inline:8px;font-size:13px}
  #context-help .help-panel-tools [data-help-back]{font-size:22px}
  #context-help .help-panel-search{display:none;padding:4px 8px}
  #context-help.help-search-open .help-panel-search{display:flex}
  #context-help.help-search-open .help-panel-tools{display:none}
  #context-help [data-help-search-close]{display:block}
  #context-help .help-panel-content{padding:14px 16px calc(16px + env(safe-area-inset-bottom,0px));font-size:14px}
  #context-help .help-panel-content h2{font-size:18px;line-height:1.5;margin-bottom:8px}
}

/* Desktop guide actions remain reachable while only the article scrolls. */
#context-help .help-panel-actions{flex:none;background:#f7fafb;border-top:1px solid #dbe6eb;padding:8px 10px}
#context-help .help-panel-more svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#context-help .help-panel-more :is(button,a){gap:6px}
#context-help .help-compact-label{display:none}
@media(min-width:761px){
  #context-help :is([data-help-search-toggle],[data-help-more],[data-help-pinned]){display:none}
  #context-help .help-panel-actions .help-panel-more{position:static;display:flex;align-items:center;gap:6px;min-width:0;max-width:none;max-height:none;overflow:visible;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  #context-help .help-panel-actions .help-panel-more :is(button,a){justify-content:center;flex:1 1 auto;min-width:0;min-height:36px;padding:7px 8px;border:1px solid #d7e5ea;border-radius:8px;background:#fff;color:#234d61;font-size:12px;line-height:1.4;white-space:nowrap}
  #context-help .help-panel-actions .help-panel-more :is(button,a):hover{background:#e9f2f5;border-color:#9bc2cc}
  #context-help .help-panel-actions .help-panel-more .help-full-action{background:#175f73;color:#fff;border-color:#175f73;font-weight:600}
  #context-help .help-panel-actions .help-panel-more .help-full-action:hover{background:#124d5e;color:#fff}
  #context-help .help-panel-actions [data-help-pin][aria-pressed=true]{background:#dceff2;color:#135b6d;border-color:#87bdc8}
}
@media(max-width:760px){
  #context-help .help-panel-actions,#context-help .help-wide-label{display:none}
  #context-help .help-compact-label{display:inline}
}
