#dd4-saved-tools [hidden] { display: none !important; }
#dd4-saved-tools .dd-floating-tools { z-index: 35; }
#dd4-saved-tools .dd-floating-group a { position: relative; }
#dd4-saved-tools .dd-mobile-saved-dialog:not([open]) { display: none; }
#dd4-saved-tools .dd-mobile-saved-dialog { z-index: 60; }
#dd4-saved-tools .dd-mobile-saved-dialog i { min-width: 22px; text-align: center; }
#dd4-saved-tools .dd4-dock { display: none; }
/* When the page has no room for a side rail, keep the shortcuts together below the footer. */
@media (min-width:701px) and (max-width:1480px) {
  #dd4-saved-tools .dd-floating-tools {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    background: #102e46;
    filter: none;
  }
  #dd4-saved-tools .dd-floating-group { flex-direction: row; }
}
#dd4-saved-tools .dd-floating-tools i { font-size: 1.18rem; }
@media (max-width:700px) {
  #dd4-saved-tools .dd-floating-tools { display: none; }
  #dd4-saved-tools .dd4-dock {
    position: fixed; inset: auto 0 0; z-index: 30;
    display: grid; grid-template-columns: repeat(6,minmax(0,1fr)) !important;
    align-items: center; gap: 0; margin: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce6ec; background: #fff;
  }
  #dd4-saved-tools .dd4-dock > * {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; min-height: 48px; margin: 0; padding: 2px; border: 0; background: transparent;
    color: #102e46; text-decoration: none; font: 600 clamp(9px,2.65vw,12px)/1.2 DeviceSans,Arial,sans-serif;
  }
  #dd4-saved-tools .dd4-dock i { font-size: 18px; }
  .dd-legacy-store:has(#dd4-saved-tools) { padding-bottom: var(--dd-dock-height,calc(60px + env(safe-area-inset-bottom))); }
  html:has(.dd4-dock) { scroll-padding-bottom: calc(var(--dd-dock-height,60px) + 10px); }
  #dd4-saved-tools .dd4-dock:has(.dd4-purchase) { grid-template-columns: 48px 48px minmax(60px,1fr) minmax(72px,auto) !important; padding-inline: 10px; gap: 4px; }
  #dd4-saved-tools .dd4-dock .dd4-price { font-size: .86rem; }
  #dd4-saved-tools .dd4-dock .dd4-purchase { padding-inline: 12px; background: #0871cf; color: #fff; border-radius: 8px; }
}
