.request-summary {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #e6d5b6;
  border-radius: 10px;
  background: #fffaf0;
}

.request-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.request-summary-head strong { color: var(--navy); }
.request-summary-head small { color: var(--muted); }
.request-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.request-tags .chip { background: #f3e8d3; color: #70501d; }
.request-items { margin: 12px 0; font-size: 13px; }
.request-items ul { margin: 7px 0 0; padding-left: 20px; color: var(--muted); }

.request-detail {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: white;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
}

.request-next-step { margin-bottom: 0; }
.claim-context { display: grid; gap: 4px; margin-bottom: 4px; }
.claim-context span { color: var(--muted); font-size: 12px; }
.request-history { margin-top: 12px; }
.request-history > summary { cursor: pointer; color: var(--navy); font-size: 13px; font-weight: 700; }
.request-history .request-summary { background: white; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(7, 28, 44, .66);
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-header h2 { margin: 7px 0 4px; }
.modal-header p { margin: 0; color: var(--muted); }
.modal-close {
  align-self: start;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

fieldset { margin: 0 0 22px; padding: 0; border: 0; }
legend { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
legend small { color: var(--muted); font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.choice:has(input:checked) { border-color: var(--gold); background: #fdf9f0; }
.choice input { margin-top: 2px; accent-color: var(--navy); }
.field-hint { color: var(--muted); font-size: 11px; }
.form-error { padding: 10px 12px; border-radius: 8px; background: #fbe8e8; color: var(--red); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
#toast { z-index: 30; }

@media (max-width: 560px) {
  .choice-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; }
  .modal { min-height: 100vh; max-height: none; padding: 22px; border-radius: 0; }
  .request-summary-head { align-items: flex-start; flex-direction: column; }
  .modal-actions .btn { flex: 1; }
}