.nrtbs-widget {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #eeeff0;
  max-width: 980px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.nrtbs-widget h3 { margin: 0 0 12px; font-size: 1.2rem; }
.nrtbs-widget h4 { margin: 4px 0 8px; font-size: 1.05rem; }

.nrtbs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
}
.nrtbs-block { border: 1px dashed #cbd5e1; border-radius: 8px; padding: 10px; background: #fafafa; }

.nrtbs-block label { display:block; font-weight: 600; margin-top: 8px; }
.nrtbs-block input, .nrtbs-block select {
  width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box;
}
.nrtbs-help { margin-top: 10px; color: #475569; font-size: 0.9rem; }

.nrtbs-btn { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #0ea5e9; color: #fff; border: none; cursor: pointer; font-weight: 700; }
.nrtbs-btn:hover { background: #0284c7; }

.nrtbs-output {
  border: 1px solid #94a3b8; background: #f8fafc; padding: 10px; border-radius: 8px; margin-top: 12px;
  word-break: break-word; overflow-wrap: anywhere;
}
.nrtbs-error {
  color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 8px; border-radius: 8px; margin-top: 10px;
}
.nrtbs-notes { margin-top: 12px; color: #475569; font-size: 0.9rem; }

@media (max-width: 980px) {
  .nrtbs-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 600px) {
  .nrtbs-grid { grid-template-columns: 1fr; }
  .nrtbs-btn { width: 100%; }
}
