.nb-widget {
  font-family: system-ui, -apple-system, sans-serif;
  background: #ffffff;
  border: 1px solid #d9dce1;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 90%;
  padding: 20px;
  margin: 1.5rem auto;
}
.nb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.nb-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 130px;
}
.nb-control label {
  font-size: 12px;
  color: #5a6072;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nb-control select {
  font-family: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fafafa;
  color: #1a1d24;
  box-shadow: none;
}
.nb-control select:focus { outline: 2px solid #94a3b8; outline-offset: 1px; }
.nb-bars {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e4ea;
}
.nb-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 58px;
}
.nb-bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 145px;
  position: relative;
}
.nb-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 0 0 28px;
  width: 28px;
}
.nb-bar {
  width: 28px;
  border-radius: 4px 4px 0 0;
  transition: height 0.25s ease;
}
.nb-bar--yes { background: #9fc8ad; }
.nb-bar--no { background: #d78b82; }
.nb-group-caption {
  font-size: 13px;
  color: #5a6072;
  text-align: center;
}
.nb-group-caption strong { color: #1a1d24; }
.nb-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 16px 0;
  font-size: 13px;
  color: #5a6072;
}
.nb-legend .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.nb-legend .swatch--yes { background: #9fc8ad; }
.nb-legend .swatch--no { background: #d78b82; }
.nb-prediction-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #f0f1f4;
}
.nb-prediction-seg--yes { background: #9fc8ad; }
.nb-prediction-seg--no { background: #d78b82; }
.nb-prediction-text {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #1a1d24;
}
.nb-widget .nb-note {
  font-size: 12px;
  color: #9096a3;
  text-align: center;
  margin: 18px 0 0;
  font-style: italic;
}
