/* Recipe widget: collect neurons from any page, set doses, queue a steering card. Atlas tokens; sits above John's button. */
#npw { position: fixed; right: var(--npw-right, 16px); bottom: 72px; z-index: 65; width: min(380px, calc(100vw - 32px));
  background: #222629; color: #e9eeeb; border: 1px solid #363d40; border-top: 3px solid #86c232; border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5); font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  display: flex; flex-direction: column; max-height: calc(100dvh - 150px); }
#npw * { box-sizing: border-box; }
#npw[hidden] { display: none; }
#npw.moved { right: auto; bottom: auto; }
#npw .npw-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; cursor: grab; user-select: none; touch-action: none; }
#npw .npw-head b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #86c232; }
#npw .npw-head .npw-count { background: #86c232; color: #1b1f21; border-radius: 999px; padding: 0 8px; font-weight: 700; font-size: 12px; }
#npw .npw-head .npw-sp { flex: 1; }
#npw button { font: 700 12px system-ui, sans-serif; cursor: pointer; border-radius: 999px; }
#npw .npw-ic { background: none; border: 1px solid #363d40; color: #e9eeeb; width: 26px; height: 26px; padding: 0; line-height: 1; }
#npw .npw-ic:hover { border-color: #86c232; }
#npw .npw-body { overflow-y: auto; padding: 0 12px 10px; display: grid; gap: 6px; min-height: 0; }
#npw.collapsed .npw-body, #npw.collapsed .npw-foot { display: none; }
#npw.collapsed { width: auto; border-radius: 999px; }
#npw.collapsed .npw-head { padding: 6px 8px 6px 14px; }
#npw .npw-empty { color: #9aa5a0; font-size: 12px; padding: 4px 0 2px; }
#npw .npw-row { display: grid; grid-template-columns: minmax(0, 1fr) 26px 72px 26px auto 26px; gap: 4px; align-items: center;
  background: #1b1f21; border: 1px solid #363d40; border-radius: 8px; padding: 5px 6px 5px 9px; }
#npw .npw-id { font-family: ui-monospace, "DejaVu Sans Mono", monospace; color: #86c232; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#npw .npw-id a { color: inherit; text-decoration: none; } #npw .npw-id a:hover { text-decoration: underline; }
#npw input { background: #24292c; color: #e9eeeb; border: 1px solid #363d40; border-radius: 6px; padding: 4px 6px; font: 13px ui-monospace, monospace; width: 100%; }
#npw input:focus, #npw button:focus-visible { outline: 2px solid #86c232; outline-offset: 1px; }
#npw .npw-dose.neg { color: #d9a13b; }
#npw .npw-probe { background: none; border: 1px solid #363d40; color: #9aa5a0; padding: 3px 8px; font-weight: 600; white-space: nowrap; }
#npw .npw-probe:hover { color: #e9eeeb; border-color: #86c232; }
#npw .npw-foot { border-top: 1px solid #363d40; padding: 10px 12px 12px; display: grid; gap: 8px; }
#npw .npw-pre { display: flex; gap: 6px; align-items: flex-start; }
#npw code { flex: 1; font: 12px ui-monospace, monospace; color: #86c232; background: #1b1f21; border: 1px solid #363d40; border-radius: 6px; padding: 5px 8px; word-break: break-word; min-height: 28px; }
#npw .npw-go { display: flex; gap: 6px; align-items: center; }
#npw .npw-go input { font-family: system-ui, sans-serif; flex: 1; }
#npw .npw-run, #npw a.npw-signin { background: #86c232; color: #1b1f21; border: 0; padding: 6px 14px; font-size: 13px; text-decoration: none; font-weight: 700; border-radius: 999px; white-space: nowrap; }
#npw .npw-run:disabled { opacity: .5; cursor: default; }
#npw .npw-ghost { background: none; border: 1px solid #363d40; color: #e9eeeb; padding: 5px 10px; }
#npw .npw-msg { font-size: 12px; color: #9aa5a0; } #npw .npw-msg.good { color: #86c232; } #npw .npw-msg.err { color: #e07a5f; }
#npw .npw-msg a { color: inherit; }
#npw .npw-tiny { font-size: 11px; color: #9aa5a0; }
/* "+ recipe" buttons the pages put next to a neuron */
.np-add { display: inline-flex; align-items: center; gap: 3px; background: none; color: #86c232; border: 1px solid #86c232; border-radius: 999px;
  padding: 0 8px; font: 700 11px/18px system-ui, sans-serif; cursor: pointer; white-space: nowrap; flex: none; }
.np-add:hover { background: #86c232; color: #1b1f21; }
.np-add.done { background: #86c232; color: #1b1f21; }
@media (max-width: 760px) { #npw { right: 8px; bottom: 66px; width: calc(100vw - 16px); max-height: 60dvh; } }
