/* ============================================================
   Comandi in alto a destra: CERCA + guida (?)
   Restyling di #search-btn e #help-btn: il comportamento resta quello
   di js/search.js e js/ui.js.
   ============================================================ */

body #image-count-help-panel {
  top: 24px;
  right: 16px;
  bottom: auto;
  gap: 16px;
}

#image-count-help-panel .af-cmd {
  flex: none;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000000;
  color: #FFFFFF;
  box-shadow: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
#image-count-help-panel .af-cmd:hover,
#image-count-help-panel .af-cmd[aria-expanded='true'] {
  background: #A3A3A3;
  color: #FFFFFF;
}
#image-count-help-panel .af-cmd:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

#search-btn.af-cmd { width: 144px; }
#help-btn.af-cmd   { width: 40px; }
#help-btn.af-cmd svg { width: 20px; height: 20px; display: block; }

/* Smartphone: il pannello in alto a sinistra parte a 64px, i comandi
   stanno nella fascia sopra di lui */
@media (max-width: 640px) {
  body #image-count-help-panel {
    top: 16px;
    right: 10px;
    bottom: auto;
  }
  #search-btn.af-cmd { width: 112px; }
}
