/**
 * The requests card, on the applications page.
 *
 * Wider rows than the lists beside it, because a row here is a question rather than a fact: it
 * carries what is held, what is asked, why, and two answers. The other cards are read down a column;
 * this one is read a row at a time.
 */
.account-requests {
  display: flex;
  flex-direction: column;
}

.account-requests-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--light);
}

.account-requests-row:last-child {
  border-bottom: none;
}

/* An answered row is history: still readable, and visibly not asking anything. */
.account-requests-row:not([data-state='pending']) {
  opacity: 0.55;
}

.account-requests-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.account-requests-client {
  color: var(--text);
}

.account-requests-when {
  opacity: 0.55;
  white-space: nowrap;
}

.account-requests-held {
  font-size: 11.5px;
  opacity: 0.6;
}

.account-requests-asking {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.account-requests-scope label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.account-requests-scope input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
  accent-color: var(--text);
  cursor: pointer;
}

.account-requests-scope-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/** The application's own words. Quoted so it reads as somebody else's claim, not the page's. */
.account-requests-reason {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.75;
}

.account-requests-actions {
  display: flex;
  gap: 10px;
}

.account-requests-empty {
  padding: 18px;
  font-size: 12.5px;
  opacity: 0.65;
}

.account-requests-empty[data-error] {
  opacity: 1;
  color: var(--warning, inherit);
}

/**
 * The badge shape: a line that is either a question or nothing at all.
 *
 * Loud enough to interrupt a page somebody is scanning, because that is its whole job, and a link
 * rather than a notice — the only useful response to it is to go and read the request.
 */
.account-requests-badge {
  display: block;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--light);
}

.account-requests-badge:hover {
  opacity: 0.75;
}
