/* components/chat/question-people-picker.css */
.chat-person-avatar,
.chat-scope-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #e8eee7;
  color: #36584c;
  overflow: hidden;
  font-size: 13px;
  line-height: 1;
}
.chat-person-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-scope-symbol {
  background: #f3ede4;
  color: #78614e;
}
.chat-scope-select {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.chat-scope-select select[hidden] {
  display: none !important;
}
.chat-scope-select button[role=combobox] {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 38px;
  padding: 4px 10px 4px 6px;
  border: 1px solid #d9d6c9;
  border-radius: 9px;
  background: #fffdf8;
  color: #31473d;
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}
.chat-scope-select button > span:nth-child(2),
.chat-scope-options [role=option] > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-scope-chevron {
  transform: rotate(90deg);
  margin-left: auto;
  flex: none;
}
.chat-scope-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 3px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(380px, 80vw);
  max-height: min(340px, 48dvh);
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid #d8d7ca;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 8px 24px #322b211d;
}
.chat-scope-options [role=option] {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
}
.chat-scope-options [role=option] > svg:last-child {
  margin-left: auto;
  flex: none;
}
.chat-scope-options [role=option][data-highlight=true],
.chat-scope-options [role=option]:hover {
  background: #edf3eb;
}
.chat-scope-options [role=option][aria-disabled=true] {
  opacity: .55;
  cursor: default;
}
.chat-choice-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 5px 0;
  max-height: 5rem;
  overflow: auto;
}
.chat-choice-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 2px 8px 2px 3px;
  background: #edf3eb;
  font-size: 13px;
}
.chat-choice-summary .chat-person-avatar {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}
.chat-people-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  max-height: min(15rem, 28dvh);
  overflow: auto;
  overscroll-behavior: contain;
}
.chat-people-choices label,
.chat-presync-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
main[data-compact-chat] .chat-people-choices label.wa-check,
main[data-compact-chat] label.wa-check.chat-presync-choice {
  display: inline-flex;
  align-items: center;
  margin: 0;
  gap: 6px;
}
main[data-compact-chat] .chat-people-choices .wa-check input,
main[data-compact-chat] .chat-presync-choice input {
  margin: 0;
}
@media (max-width: 600px) {
  .chat-scope-select {
    max-width: calc(100% - 72px);
  }
  .chat-scope-options {
    max-width: min(310px, 72vw);
  }
  .chat-people-choices {
    max-height: 22dvh;
  }
  .chat-scope-options [role=option],
  .chat-people-choices label {
    min-height: 40px;
  }
}

/* components/PersonMaterialRefresh.module.css */
.PersonMaterialRefresh_launch,
.PersonMaterialRefresh_dialog button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #c6d4cb;
  border-radius: 9px;
  background: #fffdf8;
  color: #294b40;
  padding: .55rem .9rem;
}
.PersonMaterialRefresh_launch {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  min-height: 42px;
}
.PersonMaterialRefresh_launch:disabled,
.PersonMaterialRefresh_dialog button:disabled {
  opacity: .55;
  cursor: default;
}
.PersonMaterialRefresh_dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d8cfc1;
  border-radius: 18px;
  background: #fffcf7;
  color: #292722;
  padding: 24px;
  box-shadow: 0 18px 72px #23180b33;
}
.PersonMaterialRefresh_dialog::backdrop {
  background: #26251f66;
}
.PersonMaterialRefresh_dialog p {
  line-height: 1.55;
  margin: .6rem 0 1rem;
}
.PersonMaterialRefresh_header,
.PersonMaterialRefresh_filter,
.PersonMaterialRefresh_footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.PersonMaterialRefresh_header {
  justify-content: space-between;
}
.PersonMaterialRefresh_header h2 {
  font-size: 1.35rem;
  margin: 0;
}
.PersonMaterialRefresh_header .PersonMaterialRefresh_close {
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 10px;
}
.PersonMaterialRefresh_choices {
  margin: 1rem 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.PersonMaterialRefresh_choices legend {
  font-weight: 650;
  padding: 0 0 6px;
}
.PersonMaterialRefresh_filter input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #cabfae;
  border-radius: 7px;
  color: inherit;
  background: white;
  font: inherit;
}
.PersonMaterialRefresh_filter button {
  padding: .45rem .6rem;
}
.PersonMaterialRefresh_names {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  margin-top: 8px;
  max-height: 190px;
  overflow: auto;
}
.PersonMaterialRefresh_names label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.PersonMaterialRefresh_names input {
  width: 1rem;
  height: 1rem;
  accent-color: #365f50;
}
.PersonMaterialRefresh_file {
  margin-top: 12px;
}
.PersonMaterialRefresh_file summary {
  cursor: pointer;
  color: #405c50;
}
.PersonMaterialRefresh_file input {
  max-width: 100%;
  margin-top: 8px;
}
.PersonMaterialRefresh_file label,
.PersonMaterialRefresh_file small {
  display: block;
  margin-top: 8px;
}
.PersonMaterialRefresh_file button {
  margin: 8px 8px 0 0;
}
.PersonMaterialRefresh_footer {
  border-top: 1px solid #e4ddd3;
  padding-top: 14px;
}
.PersonMaterialRefresh_footer .PersonMaterialRefresh_primary {
  background: #34594b;
  color: white;
  border-color: #34594b;
}
.PersonMaterialRefresh_dialog small {
  color: #615e56;
  line-height: 1.5;
}
.PersonMaterialRefresh_notice {
  font-weight: 600;
}
.PersonMaterialRefresh_results {
  padding: 0;
  list-style: none;
  margin: 10px 0 0;
}
.PersonMaterialRefresh_results li {
  padding: 10px 0;
  border-top: 1px solid #e4ddd3;
  line-height: 1.55;
}
.PersonMaterialRefresh_results strong,
.PersonMaterialRefresh_results span,
.PersonMaterialRefresh_results small {
  display: block;
}
.PersonMaterialRefresh_results a {
  display: inline-block;
  margin: 5px 14px 0 0;
  color: #325c4d;
  text-decoration: underline;
  text-underline-offset: .15em;
}
