/* R171 scoped investigation polish and monitoring UI */
html body.r158-enabled[data-r158-view="buckets"] .ws-toolbar,
html body.r158-enabled .ws-toolbar.r171-bucket-toolbar {
  padding: 18px 22px !important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:20px!important;min-height:88px!important;box-sizing:border-box!important;
}
html body.r158-enabled .ws-toolbar.r171-bucket-toolbar>p {
  margin:0!important;line-height:1.65!important;max-width:800px!important;
}
html body.r158-enabled .ws-toolbar.r171-bucket-toolbar>button{flex:none!important;margin:0!important}
html body.r158-enabled .r171-watch-task{border-color:#c7dcd0}
html body.r158-enabled .r171-frequency{background:#f3f7f3;border:1px solid #dce9df;
 border-radius:10px;padding:16px 17px!important;margin:14px 0!important;}
html body.r158-enabled .r171-frequency label{display:flex;align-items:flex-start;flex-direction:column;gap:8px;
 color:#14343c;font-size:12px;font-weight:700;}
html body.r158-enabled .r171-frequency select{width:100%!important;max-width:420px!important;background:#fff!important}
html body.r158-enabled .r171-frequency-help{font-size:11px!important;line-height:1.6!important;
 margin:10px 0 0!important;color:#5e7975!important;}
html body.r158-enabled .r171-frequency-status{font-size:11px!important;color:#315b54!important;margin:9px 0 0!important}
html body.r158-enabled .r171-bad{color:#b73a3a!important}
@media(max-width:700px){
 html body.r158-enabled .ws-toolbar.r171-bucket-toolbar{align-items:stretch!important;flex-direction:column!important;padding:17px!important;gap:12px!important}
 html body.r158-enabled .ws-toolbar.r171-bucket-toolbar>button{width:100%!important}
}

/* Five balanced feature tiles: never leave a lone fifth tile floating on a new row. */
@media(min-width:1251px){
 html body.r158-enabled .r158-task-grid:has(>.r171-watch-task){grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(min-width:701px) and (max-width:1250px){
 html body.r158-enabled .r158-task-grid>.r171-watch-task:last-child{grid-column:1/-1}
}
@media(max-width:700px){
 html body.r158-enabled .r158-task-grid>.r171-watch-task:last-child{grid-column:1/-1}
}
