.speech-history {margin-top:24px;padding-top:20px;border-top:1px solid var(--site-border,#d1d5db);}
.speech-history-heading,.speech-history-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;}
.speech-history-heading {justify-content:space-between;}
.speech-history-heading h2 {margin:0;min-width:0;overflow-wrap:anywhere;}
.speech-history-item {border-top:1px solid var(--site-border,#d1d5db);padding:16px 0;min-width:0;}
.speech-history-text summary,.speech-history-title {min-height:36px;align-content:center;overflow-wrap:anywhere;font-weight:500;}
.speech-history-text summary {cursor:pointer;}
.speech-history-title {margin:0;}
.speech-history-text p {white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;max-height:240px;overflow:auto;}
.speech-history-item .tool-help {margin:6px 0 12px;overflow-wrap:anywhere;}
.speech-history-heading button,.speech-history-actions button,.speech-history-more {min-height:46px;min-width:0;white-space:normal;overflow-wrap:anywhere;}
.speech-history-item audio {margin-top:12px;width:100%;height:46px;min-width:0;}
.speech-history [hidden] {display:none!important;}
.speech-history-status:empty {display:none;}
@media(max-width:520px) {
    .speech-history-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;}
    .speech-history-actions button {padding-inline:10px;}
}
