/* Hub detail only. A shared sticky row reserves a separate 44px close target. */
body.rfl-hub-root #detail > .detail-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  margin: 0 0 18px;
  background: #eeeee8;
  isolation: isolate;
}
body.rfl-hub-root #detail > .detail-toolbar > .close {
  position: static;
  float: none;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  z-index: auto;
  display: grid;
  place-items: center;
  color: #223330;
  background: #eeeee8;
  line-height: 1;
}
body.rfl-hub-root #detail > .detail-toolbar > .close:focus-visible {
  outline: 2px solid #996f37;
  outline-offset: 2px;
}
body.rfl-hub-root #detail > .detail-toolbar > .rfl-dialog-shortcuts {
  position: static;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  z-index: auto;
  background: #111116;
  color: #eee;
  border-bottom: 1px solid #ffffff26;
}
body.rfl-hub-root #detail > .detail-toolbar > .rfl-dialog-shortcuts a {
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.5;
}
@media print {
  body.rfl-hub-root #detail > .detail-toolbar { display: none; }
}
