.request-builder { margin-top:1.2rem; }
.request-panel { padding:clamp(1rem, 3vw, 1.85rem); min-width:0; }
.request-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:.45rem; margin:0 0 1.55rem; padding:0; list-style:none; }
.request-steps li { border-top:3px solid #d2dfda; padding:.55rem 0 0; color:#50635d; font-size:.875rem; font-weight:650; }
.request-steps li[aria-current="step"] { border-color:#186651; color:#123e36; }
.request-instruction { color:#4e625b; margin:.35rem 0 1.1rem; }
.request-tasks { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.65rem; }
.request-tile, .request-chip { display:flex; cursor:pointer; border:1px solid #aabdb5; border-radius:.5rem; background:#f9fbfa; }
.request-tile { align-items:start; gap:.65rem; padding:.7rem; min-height:5.2rem; }
.request-tile strong, .request-tile small { display:block; }
.request-tile small { color:#4e625b; font-size:.875rem; }
.request-tile input, .request-chip input { flex:0 0 auto; width:1.1rem; height:1.1rem; margin:.2rem 0 0; accent-color:#186651; }
.request-tile:has(:checked), .request-chip:has(:checked) { border-color:#186651; background:#e7f4ed; }
.request-tile:focus-within, .request-chip:focus-within { outline:2px solid #186651; outline-offset:2px; }
.request-group { padding:0; margin:0 0 1.2rem; border:0; min-width:0; }
.request-group legend { font-weight:750; margin-bottom:.5rem; }
.request-group legend span { color:#4e625b; font-size:.875rem; font-weight:500; margin-left:.25rem; }
.request-chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.request-chip { align-items:center; gap:.5rem; min-height:2.8rem; padding:.55rem .75rem; }
.request-chip input { margin:0; }
.request-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem 1rem; margin-top:1rem; }
.request-back { border:0; background:none; color:#175146; padding:.5rem 0; text-decoration:underline; font:inherit; font-weight:650; cursor:pointer; }
.request-edit { margin-bottom:.65rem; }
.request-error { color:#8e251d; font-weight:650; margin:.55rem 0 0; }
.request-error:empty { display:none; }
.request-summary { background:#eaf2ed; }
.request-summary .request-visit { color:#123e36; font-weight:750; margin:.55rem 0; }
.request-list { margin:.55rem 0 1rem; padding-left:1.15rem; }
.request-list li { margin:.25rem 0; }
.request-summary dl { font-size:.9rem; }
@media (max-width:760px) {
  .request-builder { grid-template-areas:"form" "summary"; }
}
@media (max-width:490px) {
  .request-tasks { grid-template-columns:1fr; }
  .request-tile { min-height:3.45rem; }
}

.request-detail-card { background:#f6faf7; border:1px solid #d0ded6; border-radius:.5rem; padding:clamp(.75rem, 2vw, 1rem); margin:0 0 1rem; }
.request-detail-card h3 { color:#123e36; font-size:1.06rem; margin:0 0 .85rem; }
.request-detail-card .request-group:last-child { margin-bottom:0; }
.request-detail-card .request-chip { background:#fff; }
.request-detail-card .request-chip:has(:checked) { background:#e7f4ed; }
.request-list-detail { display:block; color:#4e625b; font-size:.875rem; }

.request-contact { display:grid; gap:.9rem; }
.contact-grid { display:grid; grid-template-columns:minmax(0, .75fr) minmax(0, 1.4fr); gap:.7rem; }
.contact-field { display:grid; gap:.3rem; min-width:0; }
.contact-field > label { font-weight:680; color:var(--ink); }
.contact-field > input, .contact-field > textarea { width:100%; min-width:0; padding:.7rem .75rem; border:1px solid #aabdb5; border-radius:.45rem; color:var(--ink); background:#fcfdfc; font:inherit; }
.contact-field > input:focus, .contact-field > textarea:focus { outline:2px solid #186651; outline-offset:2px; }
.contact-field textarea { resize:vertical; }
.contact-authority { margin:0; }
.contact-extras { padding:.65rem .85rem; border:1px solid #d0ded6; border-radius:.5rem; background:#f6faf7; }
.contact-extras summary { padding:.25rem 0; cursor:pointer; font-weight:680; color:#175146; }
.contact-extras > div { margin-top:.7rem; }
.contact-extras input::file-selector-button { margin-right:.55rem; border:0; border-radius:.3rem; padding:.35rem .6rem; background:#e7f4ed; color:#123e36; font:inherit; cursor:pointer; }
.contact-hint { margin:0; font-size:.9rem; color:#4e625b; }
.contact-extras > .contact-hint { margin:.7rem 0 .25rem; }
.request-contact .request-actions { margin-top:0; }
.request-contact button:disabled { cursor:wait; opacity:.65; }
@media (max-width:520px) {
  .contact-grid { grid-template-columns:minmax(0, 1fr); }
}
