
/* L’historique utilise la hauteur disponible; les critères restent sous la saisie. */
#ai-dialog[open]{display:flex;flex-direction:column;box-sizing:border-box;overflow:auto}
#ai-dialog>header,#ai-dialog>#ai-form,#ai-dialog>.ai-status,#ai-dialog>.ai-preview,#ai-dialog>#ai-clear{flex-shrink:0}
#ai-dialog .ai-history{display:flex;flex-direction:column;flex:1 0 120px;min-height:120px;margin-bottom:0}
#ai-dialog .ai-history[hidden]{display:none}
#ai-dialog .ai-history>div:first-child{flex:none}
#ai-dialog .ai-history>div:last-child{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0;max-height:none;overflow:auto}
#ai-dialog .ai-history-row{position:relative;flex:none}
#ai-dialog .ai-history-row .ai-history-recall{padding-right:38px;min-height:36px}
#ai-dialog .ai-history-row .ai-history-remove{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:26px;height:26px;padding:0;border-radius:50%;font:20px/1 Arial;opacity:0;transition:opacity .12s;background:transparent;color:inherit}
#ai-dialog .ai-history-row:is(:hover,:focus-within) .ai-history-remove{opacity:1}
#ai-dialog .ai-history-row .ai-history-remove:hover{background:#c5e4fa;color:#0755a5}
.culture-dark #ai-dialog .ai-history-row .ai-history-remove:hover{background:#315b79;color:#fff}
@media(hover:none){#ai-dialog .ai-history-row .ai-history-remove{opacity:1}}
.map-rail-layout #ai-dialog .ai-history{flex:1 1 120px}
