.nrpci-widget {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #eeeff0;
  max-width: 720px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* keep stickers/overlays from spilling */
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.nrpci-widget h3 { margin: 0 0 12px; font-size: 1.2rem; }

.nrpci-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nrpci-tab { cursor: pointer; background: #f1f5f9; border: 1px solid #cbd5e1; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.nrpci-tab-active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

.nrpci-panel { margin-top: 6px; }
.nrpci-hidden { display: none; }

.nrpci-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.nrpci-row label { font-weight: 600; }
.nrpci-row input, .nrpci-row select {
  width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box;
}

.nrpci-btn { margin-top: 6px; padding: 10px 14px; border-radius: 8px; background: #0ea5e9; color: white; border: none; cursor: pointer; font-weight: 700; }
.nrpci-btn:hover { background: #0284c7; }

.nrpci-output {
  border: 1px dashed #94a3b8; background: #f8fafc; padding: 10px; border-radius: 8px; margin-top: 10px;
  word-break: break-word; overflow-wrap: anywhere;
}

.nrpci-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 8px; border-radius: 8px; margin-top: 10px; }

.nrpci-meta { margin-top: 8px; color: #475569; font-size: 0.9rem; }
.nrpci-notes { margin-top: 12px; }

@media (max-width: 560px) {
  .nrpci-row { grid-template-columns: 1fr; }
  .nrpci-btn { width: 100%; }
}