.unexpected-review-trigger {
  border-color: #fda29b;
  background: #fff7f6;
  color: #b42318;
}

.unexpected-review-trigger:hover,
.unexpected-review-trigger:focus-visible {
  border-color: #f97066;
  color: #912018;
}

.unexpected-review-internal-trigger {
  display: none !important;
}

.unexpected-review-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 7px;
}

.unexpected-review-all-button {
  border-color: #d0d5dd;
}

.unexpected-review-all-button.has-action-required {
  border-color: #fda29b;
  background: #fff7f6;
  color: #b42318;
}

.unexpected-review-all-button.has-action-required:hover,
.unexpected-review-all-button.has-action-required:focus-visible {
  border-color: #f97066;
  color: #912018;
}

.unexpected-review-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
}

.action-required-intro {
  margin: 4px 0 0;
}

.action-required-content {
  display: grid;
  gap: 16px;
  max-height: min(690px, calc(100vh - 190px));
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.action-required-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}

.action-required-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-required-section-head h3 {
  margin: 0;
}

.action-required-section > .muted,
.action-required-section > .hint {
  margin: 0;
}

.action-required-empty {
  margin: 18px 0;
  text-align: center;
}

.action-required-pool-form {
  margin-top: 2px;
}

.action-required-pool-form .used-pool-list,
.action-required-pool-form .sender-stats-list {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

.action-required-alias-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.action-required-health-warning {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #fdb022;
  border-radius: 10px;
  background: #fffaeb;
}

.action-required-health-warning.state-gap,
.action-required-health-warning.state-failed {
  border-color: #fda29b;
  background: #fff7f6;
}

.action-required-health-warning p {
  margin: 0;
}

.unexpected-review-intro {
  margin-top: 0;
}

.unexpected-review-list {
  display: grid;
  gap: 12px;
  padding: 2px;
}

.unexpected-review-alias {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #fda29b;
  border-radius: 10px;
  background: #fffafa;
}

.unexpected-review-alias-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.unexpected-review-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.unexpected-review-identity code {
  overflow-wrap: anywhere;
  color: #475467;
  font-size: 11.5px;
}

.unexpected-review-alias .sender-stats-list {
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.unexpected-review-alias .sender-stats-footnote {
  margin-left: 0;
}

.sender-review-settings > code {
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 11.5px;
  font-weight: 700;
}

[data-review-pool-dialog] .sender-stats-list {
  margin-top: 4px;
  padding-left: 0;
}

[data-review-pool-dialog] .sender-stats-row.unexpected {
  border-color: #fecdca;
  background: #fef3f2;
}

@media (max-width: 760px) {
  .unexpected-review-actions {
    justify-content: stretch;
  }

  .unexpected-review-all-button {
    width: 100%;
  }

  .unexpected-review-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .action-required-content {
    max-height: calc(100vh - 190px);
  }

  .action-required-section {
    padding: 11px;
  }

  .unexpected-review-alias-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .action-required-alias-actions {
    justify-content: flex-start;
  }

  .unexpected-review-alias-head .sender-stats-alert {
    width: fit-content;
  }
}
