/* "Requests from {name}" card on /reports/ (2026-10-04, one button 2026-10-08). Same tokens as the rest of the report. */
.requests { text-align: left; margin: 1.5rem 0 1.25rem; }
.requests[hidden] { display: none !important; }
.req-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem;
  padding: 1.1rem 1.15rem 1.15rem;
}
.req-title { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.2rem; color: var(--ink); }
.req-hint { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.9rem; }
.req-error {
  margin: 0 0 0.85rem; padding: 0.6rem 0.85rem; border-radius: 0.7rem;
  background: #F6E3DA; color: #6b2a12; font-size: 0.95rem; font-weight: 500;
}
.req-error[hidden] { display: none; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.req-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; justify-content: space-between;
  background: var(--outbound); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 0.9rem; padding: 0.8rem 0.95rem; min-width: 0;
  animation: req-in 160ms ease-out;
}
.req-item.is-urgent { border-left-color: #B4532A; background: #FBF1EA; }
.req-body { flex: 1 1 14rem; min-width: 0; }
.req-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin: 0 0 0.25rem; font-size: 0.85rem; color: var(--muted); }
.req-tag {
  display: inline-block; background: var(--inbound); color: var(--ink); border-radius: 999px;
  padding: 0.1rem 0.6rem; font-size: 0.82rem; font-weight: 600; line-height: 1.4;
}
.req-tag--urgent { background: #F1D6C8; color: #7a2e12; }
.req-when { color: var(--muted); }
.req-text { margin: 0; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.req-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.req-btn {
  min-height: 44px; min-width: 44px; padding: 0.55rem 1.1rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.req-btn--done { background: var(--accent); border-color: var(--accent); color: #fff; }
.req-btn--done:hover { filter: brightness(0.95); }
.req-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.req-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Undo bar: in the flow of the card (never floats over it), so it cannot cover anything on a phone. */
.req-undo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem;
  margin: 0 0 0.85rem; padding: 0.35rem 0.5rem 0.35rem 0.95rem; border-radius: 0.8rem;
  background: var(--cream); border: 1px solid var(--line); color: var(--ink);
}
.req-undo[hidden] { display: none; }
.req-undo-text { font-weight: 600; font-size: 0.98rem; min-height: 1.4em; }
.req-undo-btn { min-height: 44px; }
/* Empty state, Show all, Handled */
.req-empty { margin: 0 0 0.85rem; color: var(--muted); font-size: 1rem; }
.req-more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-top: 0.7rem; }
.req-more-note { color: var(--muted); font-size: 0.88rem; }
.req-handled { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.2rem; }
.req-handled-sum {
  display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--ink);
  list-style: none; gap: 0.5rem; border-radius: 0.5rem;
}
.req-handled-sum::-webkit-details-marker { display: none; }
.req-handled-sum::before { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 120ms; flex: none; margin: 0 0.15rem; }
.req-handled[open] > .req-handled-sum::before { transform: rotate(45deg); }
.req-handled-sum:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.req-list--handled { margin-top: 0.4rem; }
.req-item--handled { background: transparent; border-left-color: var(--line); }
.req-item--handled .req-text { color: var(--muted); }
.req-handled-when { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.req-btn--restore:hover { border-color: var(--muted); background: var(--cream); }
.req-btn.req-more { background: transparent; }
.req-btn.req-more:hover { border-color: var(--muted); background: var(--cream); }
@media (max-width: 520px) {
  .req-item { flex-direction: column; align-items: stretch; }
  .req-actions { display: grid; grid-template-columns: 1fr; }
  .req-btn { width: 100%; }
  .req-undo { flex-direction: row; }
  .req-undo-btn { width: auto; min-width: 5.5rem; }
  .req-more-row .req-btn { width: auto; }
  .req-actions:has(> .req-btn--restore) { grid-template-columns: 1fr; }
}
@keyframes req-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .req-item { animation: none; } .req-handled-sum::before { transition: none; } }
@media print { .requests { display: none !important; } }
/* 2026-10-11: kind tag (same chip as the other tags) and the quiet "About an earlier text" line. */
.req-about { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
