@layer components {
  .person-request-frame { display: block; max-width: 620px; }
  .person-request-card {
    margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden;
  }
  .person-request-card--loading, .person-request-card--missing { padding: 10px 14px; color: var(--muted-foreground); font-size: 13px; }
  .person-request-card--wait { border-color: var(--jx-wait); box-shadow: inset 3px 0 0 var(--jx-wait); }
  .person-request-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
  .person-request-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
  .person-request-title > span:last-child { overflow-wrap: anywhere; }
  .person-request-card .badge--ok { background: var(--jx-ok-soft); color: var(--jx-ok); }
  .person-request-card .badge--no { background: var(--jx-no-soft); color: var(--jx-no); }
  .person-request-card .badge--wait { color: light-dark(oklch(0.42 0.11 68), oklch(0.86 0.12 80)); }
  .person-request-origin { padding: 7px 14px; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--muted-foreground); font-size: 13px; }
  .person-request-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
  .person-request-subject { font-weight: 600; overflow-wrap: anywhere; }
  .person-request-question { white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
  .person-request-muted { color: var(--muted-foreground); }
  .person-request-notice { margin: 0; color: var(--jx-ok); font-size: 13px; }
  .person-request-form { display: flex; flex-direction: column; gap: 10px; }
  .person-request-choices { display: flex; flex-direction: column; gap: 6px; }
  .person-request-choice {
    display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; cursor: pointer; font-weight: 500;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); box-shadow: var(--shadow-xs);
  }
  .person-request-choice span { overflow-wrap: anywhere; }
  .person-request-choice input {
    appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--muted-foreground);
    border-radius: 50%; background: transparent;
  }
  .person-request-choice:has(input:checked) { border-color: var(--primary); background: var(--jx-accent-soft); }
  .person-request-choice input:checked { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--card); }
  .person-request-choice:has(input:focus-visible) { outline: 2px solid var(--jx-accent); outline-offset: 2px; }
  .person-request-choice--none { color: var(--muted-foreground); }
  .person-request-choice--none:has(input:checked) { color: var(--foreground); }
  .person-request-label { display: block; margin-bottom: 4px; font-weight: 600; }
  .person-request-form textarea {
    display: block; width: 100%; min-height: 64px; padding: 8px 10px; resize: vertical;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); color: inherit;
  }
  .person-request-send { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
  .person-request-hint { flex: 1 1 220px; color: var(--muted-foreground); font-size: 13px; }
  .person-request-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 6px 14px;
    border-top: 1px solid var(--border); background: var(--surface); color: var(--muted-foreground); font-size: 13px;
  }
  .person-request-sent { display: grid; grid-template-columns: minmax(88px, max-content) 1fr; gap: 5px 12px; margin: 0; }
  .person-request-sent dt { color: var(--muted-foreground); }
  .person-request-sent dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
  .person-request-quote { margin: 0; padding-left: 10px; border-left: 2px solid var(--border); white-space: pre-line; }

  @media (max-width: 767px) {
    .person-request-choice, .person-request-card .button { min-height: 44px; }
    .person-request-send .button { width: 100%; }
  }
}
