/* Empty states, modals, the toast and the settings sections. Modals open and
   close with no transition: each is a panel change, and a fade would only
   delay it. */

.empty {
  padding: 120px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.empty h2 {
  font: var(--t-h6-500);
  color: var(--c-white);
  margin: 0;
}

.empty .checked-item {
  text-align: left;
}

/* Nothing to list means nothing to filter or count. */
.panel-nothing .panel-header,
.panel-nothing .filters,
.panel-nothing .row-headings {
  display: none;
}

.checked-item {
  display: flex;
  column-gap: 12px;
  align-items: flex-start;
  font: var(--t-body-primary-300);
  color: var(--c-neutral-11);
}

.checked-item svg {
  flex: none;
  margin-top: 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 14, 15, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}

.modal {
  width: 560px;
  max-width: 100%;
  background: var(--c-neutral-0);
  border: 1px solid var(--c-neutral-3);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-narrow {
  width: 520px;
}

.modal .modal-heading {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.modal h2 {
  font: var(--t-h7-500);
  color: var(--c-white);
  margin: 0;
}

.modal .modal-actions {
  display: flex;
  column-gap: 12px;
  justify-content: flex-end;
}

.modal .grid-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 16px;
}

/* Two columns wherever a form has pairs of short fields - the settings use it
   as much as the modals do. */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 16px;
}

@media (max-width: 900px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--c-neutral-0);
  border: 1px solid var(--c-neutral-3);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  column-gap: 10px;
  font: var(--t-body-small-400);
  color: var(--c-white);
  z-index: 60;
}

.settings-tabs {
  display: flex;
  column-gap: 8px;
  margin-bottom: 24px;
}

/* The refusal screen: the same column width as everything else, with the
   facts about this account set off by rules so they read as evidence rather
   than as more prose. */
.refusal {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  align-items: flex-start;
}

.refusal-facts {
  width: 100%;
  border-top: 1px solid var(--c-neutral-2);
  border-bottom: 1px solid var(--c-neutral-2);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.section-actions {
  display: flex;
  column-gap: 12px;
  align-items: center;
}

.required {
  color: var(--c-red);
  margin-right: 4px;
}

.settings-section {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.settings-section h2 {
  font: var(--t-h8-500);
  color: var(--c-white);
  margin: 0;
}

.placeholder-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 8px;
  font: var(--t-code-400);
  color: var(--c-neutral-9);
}

.group-list {
  border-top: 1px solid var(--c-neutral-2);
  border-bottom: 1px solid var(--c-neutral-2);
  padding: 8px 0;
}

.group-row {
  display: flex;
  align-items: center;
  column-gap: 12px;
  padding: 8px 0;
  font: var(--t-body-primary-300);
  color: var(--c-neutral-12);
}

.stated-fact {
  border-top: 1px solid var(--c-neutral-2);
  border-bottom: 1px solid var(--c-neutral-2);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.panel-footer {
  border-top: 1px solid var(--c-neutral-2);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  font: var(--t-body-small-300);
  color: var(--c-neutral-8);
}
