.room-members-button,
.history-room,
.roster-row .text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.room-members-button:hover {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.assistant-presence.absent i {
  background: #a1aba3;
}
.history-room {
  margin: 0 0 13px;
  flex-wrap: wrap;
  line-height: 1.5;
  color: #536f5a;
  font-size: 12px;
}
.history-room i {
  font-style: normal;
  color: #94a394;
}
.dialog .roster-options {
  margin: 9px 0;
  padding: 7px 9px 8px;
}
.roster-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 7px;
  cursor: pointer;
}
.roster-choice:hover,
.roster-choice:focus-within {
  background: #f0f5ec;
}
.roster-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.roster-choice .avatar {
  width: 31px;
  height: 31px;
}
.roster-choice > span:last-child {
  display: grid;
  gap: 2px;
}
.roster-choice strong {
  font-size: 13px;
  font-weight: 590;
}
.roster-choice small,
.roster-row em {
  font-size: 10px;
  color: #6a7a6d;
}
.roster-row em {
  background: #eef3e9;
  padding: 2px 4px;
  border-radius: 4px;
  font-style: normal;
}
.roster-row .text-button {
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 2px;
}
.dialog.history-dialog {
  width: min(570px, calc(100vw - 28px));
  max-height: min(90dvh, 850px);
  overflow: hidden;
}
.history-dialog[open] {
  display: flex;
  flex-direction: column;
}
.history-dialog .dialog-head {
  position: static;
  flex: none;
}
.history-dialog .dialog-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
}
.history-dialog search,
.history-results-head,
.history-dialog .history-room {
  flex: none;
}
.history-keyword {
  display: grid;
  gap: 4px;
  color: #55685a;
  font-size: 11px;
}
.history-keyword .search-field {
  height: 34px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 10px 0;
}
.history-grid label {
  display: grid;
  gap: 4px;
  color: #55685a;
  font-size: 11px;
}
.history-grid :is(select, input) {
  width: 100%;
  min-width: 0;
  height: 34px;
  border-radius: 6px;
  padding: 3px 7px;
  border: 1px solid #d8e2d7;
  background: white;
  color: #354d3e;
  font-size: 12px;
}
.history-grid [aria-invalid='true'] {
  border-color: #b66c54;
}
.history-date-error {
  font-size: 12px;
  color: #91492f;
}
.history-date-error:not(:empty) {
  margin-bottom: 6px;
}
.history-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.history-range button {
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  color: #566b5d;
  background: #f4f6f1;
}
.history-range button:hover {
  background: #e9f0e6;
}
.history-range button[aria-pressed='true'] {
  background: #e1eddd;
  color: #345c3e;
  font-weight: 610;
}
.history-range .clear-history {
  margin-left: auto;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.history-results-head {
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid #e1e8df;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-results-head h3 {
  font-size: 14px;
}
.history-results-head span {
  color: #607265;
  font-size: 11px;
}
.history-dialog .history-results {
  margin-top: 5px;
  min-height: 100px;
  max-height: 41dvh;
  overscroll-behavior: contain;
  overflow: auto;
}
.history-day {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 5px 4px;
  font-size: 10px;
  font-weight: 550;
  color: #647668;
  background: #f4f7f1;
}
.history-hit {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 4px;
}
.history-hit .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 31px;
  height: 31px;
  border-radius: 8px;
}
.history-hit .hit-copy {
  min-width: 0;
  flex: 1;
  display: block;
}
.history-hit .hit-copy strong {
  color: var(--ink);
}
.history-hit .hit-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  line-height: 1.5;
}
.hit-author b {
  font-weight: 600;
  color: #47604d;
}
.hit-author em {
  color: #55745c;
  background: #edf3e9;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10px;
  font-style: normal;
}
.history-hit .hit-author time {
  margin-left: auto;
}
.history-hit .hit-copy > small {
  display: block;
  margin-top: 3px;
  color: #728076;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.history-hit > svg {
  align-self: center;
  flex: none;
  color: #7c9380;
}
.history-hit .av-agy {
  color: #caeaae;
}
@media (max-width: 600px) {
  .dialog.history-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  .history-dialog .dialog-body {
    padding: 12px 14px;
    flex: 1;
  }
  .history-dialog .history-results {
    flex: 1;
    max-height: none;
  }
  .history-dialog .dialog-head {
    padding: 10px 14px;
  }
  .history-grid {
    gap: 6px 9px;
  }
  .history-dialog .history-room {
    margin-bottom: 8px;
  }
  .room-tabs > div {
    gap: 12px;
  }
  .room-tabs .tab {
    white-space: nowrap;
  }
}
@media (max-height: 540px) {
  .history-dialog .history-results {
    flex: none;
    max-height: none;
    overflow: visible;
  }
}
@media (pointer: coarse) and (max-width: 600px) {
  .history-keyword input,
  .history-grid :is(select, input) {
    font-size: 16px;
  }
  .history-grid :is(select, input),
  .history-keyword .search-field {
    min-height: 42px;
  }
  .roster-choice {
    min-height: 48px;
  }
}
