/* Laywright Help · v10 · one button, every seat. Sits under the training overlay (lq-root 9000). */
.hx-root{--hx-b:22px;--hx-r:22px}
.hx-root[data-seat="owner"]{--hx-b:24px;--hx-r:24px}
.hx-root[data-seat="crew"]{--hx-b:96px;--hx-r:14px}
.hx-root[data-seat="client"]{--hx-b:92px}
.hx-fab{position:fixed;right:var(--hx-r);bottom:calc(var(--hx-b) + env(safe-area-inset-bottom,0px));z-index:8000;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;cursor:pointer;color:var(--on-gold,#17130B);background:linear-gradient(135deg,var(--gold-hi,#F2DDAE),var(--gold,#D6B77A));box-shadow:0 14px 34px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.4);font:600 14px var(--f-ui,Archivo,system-ui,sans-serif);transition:transform .2s,box-shadow .2s}
.hx-fab:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.4)}
.hx-fab:focus-visible{outline:2px solid var(--fg,#fff);outline-offset:3px}
.hx-fab svg{width:18px;height:18px}
.hx-root.open .hx-fab{opacity:0;pointer-events:none}
.hx-panel{position:fixed;right:var(--hx-r);bottom:calc(var(--hx-b) + env(safe-area-inset-bottom,0px));z-index:8001;width:min(420px,calc(100vw - 24px));max-height:min(680px,calc(100vh - var(--hx-b) - 90px));max-height:min(680px,calc(100dvh - var(--hx-b) - 90px));display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:22px;color:var(--fg);background:color-mix(in srgb,var(--panel-solid,#121418) 96%,transparent);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);box-shadow:inset 0 0 0 1px var(--line-strong,rgba(214,183,122,.55)),0 30px 80px rgba(0,0,0,.55);animation:hx-in .26s cubic-bezier(.2,.7,.2,1) both}
.hx-panel[hidden]{display:none}
@keyframes hx-in{from{opacity:0;transform:translateY(10px) scale(.98)}}
.hx-head{display:flex;justify-content:space-between;align-items:flex-start}
.hx-k{margin:0;font:600 10.5px var(--f-mono,monospace);letter-spacing:.16em;text-transform:uppercase;color:var(--gold-hi)}
.hx-head h2{margin:2px 0 0;font:500 22px/1.1 var(--f-display,Archivo,system-ui);letter-spacing:-.01em}
.hx-x{width:40px;height:40px;border:0;border-radius:12px;background:var(--chip);color:var(--fg-2);font-size:15px;cursor:pointer}
.hx-tabs{width:100%}
.hx-tabs button{flex:1}
.hx-body{display:flex;flex-direction:column;gap:10px;min-height:0;flex:1}
.hx-chat{display:flex;flex-direction:column;gap:8px;overflow-y:auto;min-height:120px;max-height:380px;padding:2px;overscroll-behavior:contain}
.hx-q{align-self:flex-end;max-width:86%;padding:9px 12px;border-radius:14px 14px 4px 14px;background:color-mix(in srgb,var(--gold) 18%,transparent);box-shadow:inset 0 0 0 1px var(--line);font-size:14px}
.hx-a{align-self:flex-start;max-width:94%;padding:11px 13px;border-radius:14px 14px 14px 4px;background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair);font-size:14px;line-height:1.5;animation:hx-in .24s ease both}
.hx-a p{margin:0}
.hx-a.miss{box-shadow:inset 0 0 0 1px var(--amber-line,rgba(244,184,96,.4))}
.hx-hello{color:var(--fg-2)}
.hx-go{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.hx-sug .x-chip{height:32px}
.hx-form{display:flex;gap:8px}
.hx-form .x-input{flex:1;height:44px}
.hx-form .x-btn{height:44px}
.hx-guides{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.hx-g{display:flex;flex-direction:column;gap:3px;width:100%;padding:13px 14px;border:0;border-radius:14px;background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair);color:var(--fg);text-align:left;text-decoration:none;font:inherit;cursor:pointer}
.hx-g:hover{box-shadow:inset 0 0 0 1px var(--line-strong)}
.hx-g b{font-size:14.5px}.hx-g span{font-size:12.5px;color:var(--fg-2);line-height:1.45}
.hx-sup{display:flex;flex-direction:column;gap:10px}
.hx-sup>p{margin:0;font-size:14px;line-height:1.5}
.hx-ta{width:100%;padding:11px 12px;border:0;border-radius:12px;background:var(--panel-solid);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg);font:400 14px/1.45 var(--f-ui,system-ui);resize:vertical}
.hx-ta:focus{outline:2px solid var(--gold);outline-offset:1px}
.hx-tix{margin-top:4px}
@media (max-width:640px){
  .hx-fab{height:44px;padding:0 14px 0 12px}
  .hx-fab span{display:none}
  .hx-fab{width:48px;height:48px;padding:0;justify-content:center}
  .hx-panel{left:8px;right:8px;bottom:8px;width:auto;max-height:calc(100dvh - 70px)}
}
html.rec .hx-panel,html.rec .hx-a{animation:none}
@media (prefers-reduced-motion:reduce){.hx-panel,.hx-a{animation:none}.hx-fab{transition:none}}
@media print{.hx-root{display:none}}
/* presenting the guided tour: the tour owns the bottom of the screen, and a pitch should not show a Help button */
body.presenting .hx-root{display:none}
/* owner, compact: the layer bar owns the bottom edge and panels rise from it, so Help sits under the header */
@media (max-width:1099px){.hx-root[data-seat="owner"] .hx-fab{top:calc(env(safe-area-inset-top,0px) + 58px);bottom:auto;right:12px}.hx-root[data-seat="owner"] .hx-panel{top:calc(env(safe-area-inset-top,0px) + 58px);bottom:auto}}
