/* provet-history-six-r1-20261021: retain the established two layout slots. */
.pet-window .history-work .history-speech-slot,
.pet-window .history-work .history-drug-slot { min-width: 0; min-height: 0; overflow: hidden; }
.pet-window .history-work .history-speech-slot > #speechHistoryPanel {
  position: relative !important; inset: auto !important; grid-area: auto !important;
  width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important;
  margin: 0 !important; box-sizing: border-box; border: 0;
  display: grid !important; grid-template-columns: minmax(0, 1fr) 110px;
  grid-template-rows: auto minmax(0, 1fr); gap: 6px; padding: 8px;
}
.pet-window .history-speech-slot .speech-history-title {
  grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center;
  flex-wrap: wrap; justify-content: space-between; gap: 4px; min-width: 0;
}
.pet-window .history-speech-slot .speech-editor-wrap { grid-column: 1; grid-row: 2; min-width: 0; min-height: 0; }
.pet-window .history-speech-slot #speechTranscript { width: 100%; height: 100%; box-sizing: border-box; min-height: 0; }
.pet-window .history-speech-slot .speech-controls { grid-column: 2; grid-row: 2; min-width: 0; overflow: auto; }
.pet-window .history-work .history-drug-slot { display: block !important; padding: 0 !important; }
.pet-window .history-work .history-drug-slot > .history-drug-pane {
  position: relative !important; inset: auto !important; grid-area: auto !important;
  display: flex !important; flex-direction: column; width: 100% !important; height: 100% !important;
  min-width: 0 !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; box-sizing: border-box;
}
.pet-window .history-drug-slot .history-table-wrap { flex: 1; min-height: 0; overflow: auto; max-height: none; }
.pet-window #drugHistoryCount, .pet-window #treatDrugHistoryCount { font-size: .88em; white-space: normal; }
.pet-window #selectedDrugNote::placeholder { color: #777 !important; opacity: 1; font-style: normal; }
@media (max-width: 700px) {
  .pet-window .history-work .history-speech-slot > #speechHistoryPanel { grid-template-columns: minmax(0, 1fr) 90px; }
}
