/* Website controls stay separate from the app-generated help renderer. */
  .nock-chat-pill { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 2147482000;
    display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
    font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: .01em;
    color: #fff; background: rgba(10,10,14,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px -12px rgba(0,0,0,.7);
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease; }
  .nock-chat-pill:hover { background: rgba(24,24,30,.94); transform: translateY(-1px); }
  .nock-chat-pill:focus-visible { outline: 2px solid #0a84ff; outline-offset: 3px; }
  .nock-chat-pill-orb { width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 8%, #9fb6ff 22%, #5b6cff 48%, #1b1f4a 80%); box-shadow: 0 0 12px rgba(120,140,255,.55); }
  html.nock-chat-open .nock-chat-pill { opacity: 0; pointer-events: none; }
  /* The notch is the chat: a label under it, a glow on it, and a first-visit speech bubble beside it.
     The page's own fonts and colours (--marker, --mono, --paint, --mint), with fallbacks. */
  .nock-chat-cue, .nock-chat-bubble { position: fixed; z-index: 31; opacity: 0; pointer-events: none; transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.7,.1,1); }
  html.nock-cue-on .nock-chat-cue, html.nock-cue-on.nock-greet-on .nock-chat-bubble { opacity: 1; pointer-events: auto; }
  .nock-chat-cue { left: 50%; top: var(--nock-cue-top, 44px); transform: translate(-50%, -4px); display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 12px 5px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; background: transparent;
    font: 400 17px/1 var(--marker, "Permanent Marker", "Marker Felt", cursive); letter-spacing: .03em; color: var(--paint, #f7f2e6); }
  html.nock-cue-on .nock-chat-cue { transform: translate(-50%, 0); }
  .nock-chat-cue:hover { color: #fff; }
  .nock-chat-cue:focus-visible, .nock-chat-bubble:focus-visible { outline: 2px solid var(--mint, #9fe3c3); outline-offset: 3px; }
  .nock-chat-cue-arrow { display: inline-block; color: var(--mint, #9fe3c3); font-family: var(--mono, ui-monospace, monospace); font-size: 17px; font-weight: 700; }
  .nock-chat-bubble { left: 50%; top: var(--nock-bubble-top, 80px); transform: translate(-50%, -6px); max-width: min(280px, calc(100vw - 32px));
    padding: 9px 15px 10px; border: 0; border-radius: 16px; cursor: pointer; text-align: center; white-space: nowrap;
    font: 400 13px/1.35 var(--mono, ui-monospace, "SF Mono", Menlo, monospace); letter-spacing: .01em; color: #0a100d; background: #f1efe8;
    box-shadow: inset 0 1px 0 #fff, 0 10px 26px -10px rgba(159,227,195,.55), 0 2px 8px rgba(0,0,0,.35); }
  html.nock-cue-on.nock-greet-on .nock-chat-bubble { transform: translate(-50%, 0); transition-delay: 500ms; }
  .nock-chat-bubble::before { content: ""; position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; background: #f1efe8; transform: rotate(45deg); border-radius: 2px; }
  .nock-chat-bubble b { font-weight: 700; }
  html.nock-cue-on #notch[data-mode=rest] .notch-shape { animation: nock-cue-glow 2.8s ease-in-out infinite; }
  @keyframes nock-cue-glow {
    0%, 100% { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)) drop-shadow(0 0 .9px rgba(235,245,255,.16)) drop-shadow(0 0 0 rgba(95,214,165,0)); }
    50% { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)) drop-shadow(0 0 .9px rgba(235,245,255,.3)) drop-shadow(0 0 12px rgba(95,214,165,.6)); } }
  @media (prefers-reduced-motion: no-preference) { html.nock-cue-on .nock-chat-cue-arrow { animation: nock-cue-bob 1.8s ease-in-out infinite; } }
  @keyframes nock-cue-bob { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
  html.nock-chat-open .nock-chat-cue, html.nock-chat-open .nock-chat-bubble { opacity: 0 !important; pointer-events: none !important; }
  @media (prefers-reduced-motion: reduce) { .nock-chat-overlay, .nock-chat-laptop, .nock-chat-pill, .nock-chat-cue, .nock-chat-bubble { transition: none; }
    html.nock-cue-on #notch[data-mode=rest] .notch-shape { animation: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)) drop-shadow(0 0 10px rgba(95,214,165,.45)); } }
html[data-theme="light"] .nock-chat-pill { background: #f8fbefed; color: #31523f; box-shadow: inset 0 0 0 1px #53775328, 0 6px 25px #3d644524; }
html[data-theme="light"] .nock-chat-cue { color: #345b43; }
@media(max-width:600px) { .nock-chat-pill { right: 12px; bottom: 9px; height: 36px; min-height: 36px; padding-inline: 8px 12px; font-size: 11px; } .nock-chat-pill .nock-chat-pill-orb { width: 24px; height: 24px; } }
@media(max-width:720px) {
  .nock-chat-cue { left: 22px; top: 88px; transform: none !important; font-size: 12px; padding: 4px 0; }
  .nock-chat-bubble { left: 20px; top: 119px; transform: none !important; max-width: 200px; font-size: 10px; }
}
