.nrlb-widget {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #e8eceb;
  max-width: 980px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.nrlb-widget h3 { margin: 0 0 12px; font-size: 1.25rem; }
.nrlb-widget h4 { margin: 4px 0 8px; font-size: 1.05rem; }

.nrlb-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.nrlb-tab { cursor: pointer; background: #f1f5f9; border: 1px solid #cbd5e1; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.nrlb-tab-active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

.nrlb-panel { margin-top: 6px; }
.nrlb-hidden { display: none; }

.nrlb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}
.nrlb-block { border: 1px dashed #cbd5e1; border-radius: 8px; padding: 10px; background: #fafafa; }

.nrlb-block label { display:block; font-weight: 600; margin-top: 8px; }
.nrlb-block input, .nrlb-block select {
  width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px;
}

.nrlb-btn { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #0ea5e9; color: white; border: none; cursor: pointer; font-weight: 700; }
.nrlb-btn:hover { background: #0284c7; }

.nrlb-output {
  border: 1px solid #94a3b8; background: #f8fafc; padding: 10px; border-radius: 8px; margin-top: 12px;
}
.nrlb-error {
  color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 8px; border-radius: 8px; margin-top: 10px;
}
.nrlb-notes { margin-top: 12px; color: #475569; font-size: 0.9rem; }

@media (max-width: 1000px) {
  .nrlb-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
  .nrlb-grid { grid-template-columns: 1fr; }
}