/* ask-cirpax.css v1.5 (2026-11-28, Joseph "go": Top Bar Refresh button #topRefresh (top-icons.js) shares the Help button rules) v1.4 (2026-11-23: Help menu #cirpaxHelpMenu, items styled like the user menu) v1.3 (2026-11-17: Help button #cirpaxHelp styled like the Ask Cirpax icon) v1.2 (2026-11-17, Joseph: Top Bar and panel icons white; open = accent tint behind it) v1.1 (Clear button) */
/* ask-cirpax.css v1.0 (2026-11-17, Joseph "go": Ask Cirpax phase 1). Right-docked panel that pushes the screen over.
   Bubbles, composer and link chips come from messenger.css (msgr-*). Theme tokens only, so every theme works. */
:root{--ask-cirpax-w:400px}

/* Top Bar icon: same size and spacing as the bell (top-search.css) */
body>header :is(#askCirpax,#cirpaxHelp,#topRefresh){display:inline-flex!important;align-items:center;justify-content:center;min-width:30px!important;height:32px;padding:0 4px!important;line-height:1;flex:0 0 auto;
  margin-right:calc(2px - var(--top-gap,14px))!important}
body>header :is(#askCirpax,#cirpaxHelp,#topRefresh),body>header :is(#askCirpax,#cirpaxHelp,#topRefresh):hover{color:#fff!important}
body>header :is(#askCirpax,#cirpaxHelp,#topRefresh) svg.top-ico{width:20px;height:20px;display:block;flex:0 0 auto}
body>header #topRefresh:disabled{opacity:.4;cursor:default}
body>header #askCirpax[aria-pressed=true]{background:color-mix(in srgb,var(--t-accent) 30%,transparent);border-radius:8px}

/* push: the page gives the panel its width */
html.ask-cirpax-open body{padding-right:var(--ask-cirpax-w)!important;box-sizing:border-box}
html.ask-cirpax-open #omsMessenger{right:calc(var(--ask-cirpax-w) + 18px)}

/* the panel */
#askCirpaxPanel{position:fixed;z-index:62;top:0;right:0;bottom:0;width:var(--ask-cirpax-w);display:flex;flex-direction:column;
  background:var(--t-surface);color:var(--t-text);border-left:1px solid var(--t-border);box-shadow:-8px 0 24px rgba(0,0,0,.18)}
#askCirpaxPanel[hidden]{display:none}
#askCirpaxPanel.resizing{user-select:none}
#askCirpaxPanel .ask-head{cursor:default}
#askCirpaxPanel .ask-grip{position:absolute;left:-3px;top:0;bottom:0;width:6px;cursor:ew-resize;z-index:1;touch-action:none}
#askCirpaxPanel .ask-grip:hover,#askCirpaxPanel.resizing .ask-grip{background:color-mix(in srgb,var(--t-accent) 40%,transparent)}
#askCirpaxPanel .msgr-logo{color:#fff}
#askCirpaxPanel .msgr-logo .msgr-ic{width:16px;height:16px}
#askCirpaxPanel .msgr-tools .msgr-ic{width:16px;height:16px}
#askCirpaxPanel .msgr-tools [data-a=clear]:hover{color:var(--t-danger,#d9534f)}

/* levels (shown only when the user has more than one) */
#askCirpaxPanel .ask-levels{display:flex;gap:6px;padding:8px 12px 0}
#askCirpaxPanel .ask-levels[hidden]{display:none}
#askCirpaxPanel .ask-level{font:inherit;font-size:12px;padding:3px 12px;border-radius:14px;border:1px solid var(--t-border);background:none;color:var(--t-text);cursor:pointer}
#askCirpaxPanel .ask-level[aria-pressed=true]{border-color:var(--t-accent);background:color-mix(in srgb,var(--t-accent) 18%,transparent)}

/* answers */
#askCirpaxPanel .ask-answer{max-width:92%}
#askCirpaxPanel .ask-link{display:inline-flex;align-items:center;gap:5px;margin:1px 0;vertical-align:baseline}
#askCirpaxPanel .ask-link .msgr-ic{width:13px;height:13px;flex:0 0 auto}
#askCirpaxPanel .ask-how{margin-top:6px;font-size:11px;color:var(--t-muted)}
#askCirpaxPanel .ask-how summary{cursor:pointer}
#askCirpaxPanel .ask-how small{display:block;margin-top:3px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}

/* busy */
#askCirpaxPanel .ask-dots{display:inline-flex;gap:4px;padding:4px 2px}
#askCirpaxPanel .ask-dots i{width:6px;height:6px;border-radius:50%;background:var(--t-muted);animation:ask-dot 1.1s infinite ease-in-out}
#askCirpaxPanel .ask-dots i:nth-child(2){animation-delay:.15s}
#askCirpaxPanel .ask-dots i:nth-child(3){animation-delay:.3s}
@keyframes ask-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){#askCirpaxPanel .ask-dots i{animation:none;opacity:.6}}

/* phones: the panel covers the screen instead of pushing it */
@media(max-width:760px){
  html.ask-cirpax-open body{padding-right:0!important}
  #askCirpaxPanel{width:100vw}
  #askCirpaxPanel .ask-grip{display:none}
}

/* v1.4 Help menu: the ? button opens it; top/right set by ask-cirpax.js under the button; items use .officer-menu-items (user-menu.css) */
#cirpaxHelpMenu{position:fixed;inset:auto;margin:0;width:240px;max-width:calc(100vw - 16px);padding:0;border:1px solid var(--t-border);border-radius:9px;background:var(--t-surface);color:var(--t-text);box-shadow:0 15px 55px #0005;z-index:100}
#cirpaxHelpMenu::backdrop{background:transparent}
body>header #cirpaxHelp[aria-expanded=true]{background:color-mix(in srgb,var(--t-accent) 30%,transparent);border-radius:8px}
