.np-cb {
  position: fixed; left: 24px; bottom: 24px; z-index: 2000;
  box-sizing: border-box; width: 400px; max-width: calc(100% - 48px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink3) transparent; scrollbar-gutter: stable;
  padding: 20px 20px 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  font: 15px/1.45 var(--font); animation: np-cb-in .28s ease-out both;
}
.np-cb h2.np-cb-h { margin: 0 32px 6px 0; padding: 0; border: 0; font: 700 16px/1.45 var(--font); letter-spacing: -.01em; text-transform: none; }
.np-cb .np-cb-p { margin: 0 0 14px; color: var(--ink2); font-size: 14px; }
.np-cb-acts { display: flex; gap: 8px; }
.np-cb .np-cb-choice {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 7px 8px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: var(--btn-r); border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.np-cb .np-cb-choice:hover { border-color: var(--acc); color: var(--acc); }
.np-cb .np-cb-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--acc); text-decoration: none; }
.np-cb .np-cb-link:hover { text-decoration: underline; }
.np-cb .np-cb-x {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: inherit; opacity: .55;
  cursor: pointer; font: 16px/1 var(--font);
}
.np-cb .np-cb-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.np-cb:focus-visible, .np-cb :focus-visible, [data-chapp-choices]:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.np-cb::-webkit-scrollbar { width: 6px; }
.np-cb::-webkit-scrollbar-thumb { background: var(--ink3); border-radius: 3px; }
.np-cb-foot { width: min(720px, 100% - 48px); margin-inline: auto; padding-top: 0; }
@media (max-width: 640px) {
  .np-cb { left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    max-height: 100vh; max-height: 100dvh; border-radius: var(--r) var(--r) 0 0;
    padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); animation-name: np-cb-up; }
}
@keyframes np-cb-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes np-cb-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .np-cb, .np-cb * { animation: none !important; transition: none !important; } }
@media print { .np-cb, [data-chapp-choices] { display: none !important; } }
