/* Keep the operator separate from the AI assistant at the opposite edge. */
#beg-light .beg-operator{position:fixed;left:max(28px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));z-index:81;font:14px/1.5 Arial,Helvetica,sans-serif;color:var(--ink)}
#beg-light .beg-operator button{font:inherit;cursor:pointer;min-height:44px;text-align:center;touch-action:manipulation}
#beg-light #operator-launch{display:flex;align-items:center;gap:12px;padding:12px 18px 12px 12px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 8px 30px rgba(var(--brand-shadow-rgb),0.1333);text-align:left;font-weight:700}
#beg-light #operator-launch:hover{border-color:var(--brand-orange)}
#beg-light .operator-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border:1.5px solid currentColor;border-radius:11px;font-size:25px;line-height:1;letter-spacing:1px}
#beg-light .operator-label small{display:block;color:var(--sub);font-size:11px;font-weight:400;margin-top:1px}
#beg-light #operator-launch[aria-expanded=true]{visibility:hidden}
#beg-light #operator-panel{position:fixed;left:max(28px,env(safe-area-inset-left));bottom:calc(max(24px,env(safe-area-inset-bottom)) + var(--chat-viewport-bottom,0px));display:flex;flex-direction:column;width:480px;max-width:calc(100vw - 40px);height:660px;max-height:calc(var(--chat-viewport-height,100dvh) - 48px);overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 90px rgba(var(--brand-shadow-rgb),0.2667);isolation:isolate}
#beg-light #operator-panel[hidden]{display:none!important}
#beg-light .operator-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line);flex-shrink:0}
#beg-light .operator-head h2{font:700 18px/1.4 Arial,Helvetica,sans-serif;color:var(--ink);margin:0}
#beg-light .operator-head p{font-size:11px;line-height:1.5;color:var(--sub);margin:3px 0 0}
#beg-light .operator-head>div{min-width:0}
#beg-light .operator-head h2,#beg-light .operator-head p{overflow-wrap:anywhere}
#beg-light #operator-close{width:44px;height:44px;flex:0 0 44px;background:var(--paper);color:var(--sub);border:1px solid var(--line);border-radius:50%;font-size:23px;line-height:1}
#beg-light #operator-status{padding:12px 20px;margin:0;color:var(--sub);font-size:12px;flex-shrink:0}
#beg-light #operator-frame-slot{flex:1;min-height:0;background:var(--brand-white)}
#beg-light #operator-frame-slot iframe{display:block;width:100%;height:100%;border:0;background:var(--brand-white);color-scheme:light}
#beg-light .operator-footer{padding:13px 20px;border-top:1px solid var(--line);font-size:11px;font-weight:600;flex-shrink:0}
#beg-light .operator-footer a{color:var(--sub)}
#beg-light .operator-footer a:hover{color:var(--ink)}
#beg-light .operator-mobile{padding:24px;overflow-y:auto;overscroll-behavior:contain;color:var(--ink)}
#beg-light .operator-mobile-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);border-radius:14px;background:var(--wash);color:var(--brand-accent-text);font-size:32px;line-height:1;letter-spacing:2px}
#beg-light .operator-mobile h3{margin:18px 0 8px;font:700 19px/1.3 Arial,Helvetica,sans-serif;color:var(--ink);overflow-wrap:anywhere}
#beg-light .operator-mobile p{margin:0 0 20px;color:var(--sub);font-size:14px;line-height:1.65;overflow-wrap:anywhere}
#beg-light .operator-mobile a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:13px 16px;border-radius:9px;background:var(--brand-orange);color:var(--brand-on-orange);font-size:14px;line-height:1.4;font-weight:700;text-align:center;overflow-wrap:anywhere;touch-action:manipulation}
#beg-light .operator-mobile a:hover{background:var(--brand-orange)}
#beg-light .beg-operator :is(button,a):focus-visible{outline:3px solid var(--brand-accent-text);outline-offset:2px}
#beg-light [data-theme=dark] .beg-operator :is(button,a):focus-visible{outline-color:var(--brand-orange)}
@media(max-width:1000px){#beg-light .bn-page:has(#assistant-launch[aria-expanded=true]) .beg-operator{visibility:hidden}#beg-light .bn-page:has(#operator-launch[aria-expanded=true]) .beg-assistant{visibility:hidden}}
@media(max-width:600px){
 #beg-light .beg-operator{left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:min(190px,calc((100vw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)) - 12px)/2))}
 #beg-light #operator-launch{width:100%;min-height:56px;gap:8px;padding:10px;font-size:12px;line-height:1.25;border-radius:14px}
 #beg-light .operator-icon{width:28px;height:28px;flex:0 0 28px;font-size:21px;border-radius:8px}
 #beg-light .operator-label{min-width:0;overflow-wrap:anywhere}
 #beg-light .operator-label small{display:none}
 #beg-light #operator-panel{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--chat-viewport-bottom,0px));width:auto;max-width:none;height:auto;max-height:calc(var(--chat-viewport-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));border-radius:16px}
 #beg-light .operator-head{padding:10px 12px;gap:10px}
 #beg-light .operator-head h2{font-size:17px;line-height:1.25;letter-spacing:0}
 #beg-light #operator-status{padding:8px 12px;max-height:72px;overflow-y:auto;overflow-wrap:anywhere}
 #beg-light .operator-footer{padding:0 12px}
 #beg-light .operator-footer a{display:flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
}
@media(max-height:500px){
 #beg-light #operator-panel{overflow-y:auto;overscroll-behavior:contain}
 #beg-light .operator-head{padding:6px 12px;gap:8px}
 #beg-light .operator-head h2{font-size:16px;line-height:1.25}
 #beg-light .operator-head p{display:none}
 #beg-light #operator-status{padding:6px 12px;max-height:44px;overflow-y:auto}
 #beg-light #operator-frame-slot{min-height:120px}
 #beg-light .operator-footer{padding:0 12px}
 #beg-light .operator-footer a{display:flex;align-items:center;min-height:44px}
}
#beg-light #operator-panel[data-compact-viewport=true]{overflow-y:auto;overscroll-behavior:contain}
#beg-light #operator-panel[data-compact-viewport=true] .operator-head{padding:6px 12px;gap:8px}
#beg-light #operator-panel[data-compact-viewport=true] .operator-head h2{font-size:16px;line-height:1.25}
#beg-light #operator-panel[data-compact-viewport=true] .operator-head p{display:none}
#beg-light #operator-panel[data-compact-viewport=true] #operator-status{padding:6px 12px;max-height:44px;overflow-y:auto}
#beg-light #operator-panel[data-compact-viewport=true] #operator-frame-slot{min-height:120px}
#beg-light #operator-panel[data-compact-viewport=true] .operator-footer{padding:0 12px}
#beg-light #operator-panel[data-compact-viewport=true] .operator-footer a{display:flex;align-items:center;min-height:44px}
