#resident-feedback .rf-layout {display:grid;gap:18px}
#resident-feedback .rf-head,#resident-feedback .rf-submit,#resident-feedback .rf-case-head {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rf-head p {margin-top:.3rem}
.rf-head button {white-space:nowrap}
.rf-form,.rf-form label {display:grid;gap:.4rem}
.rf-form {gap:.8rem}
.rf-form label {font-weight:700;min-width:0}
.rf-form textarea,.rf-form select {width:100%;min-width:0;background:var(--surface);font:inherit;color:var(--ink);border:1px solid #aab3b6;border-radius:8px;padding:.5rem .65rem}
.rf-form textarea {resize:vertical}
.rf-form textarea:focus-visible {outline:3px solid var(--accent);outline-offset:2px}
.rf-form button {justify-self:start}
.rf-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rf-message:not(:empty) {background:var(--ok-soft);color:var(--ink);border-left:3px solid var(--ok);padding:.55rem .8rem}
.rf-message:empty {display:none}
#rf-records {scroll-margin-top:9rem}
.rf-case {overflow-wrap:anywhere;padding:.8rem 0;border-top:1px solid var(--line)}
.rf-case:first-child {border-top:0;padding-top:0}
.rf-case:last-child {padding-bottom:0}
.rf-case h4 {font-size:1rem;margin:0}
.rf-case p {white-space:pre-line}
.rf-status {font-size:.8rem;font-weight:700;background:var(--sunk);padding:.14rem .55rem;border-radius:7px}
.rf-history {border-left:2px solid var(--line);padding:0 0 0 .65rem;list-style:none;margin:.5rem 0 0}
.rf-history li {display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap}
.rf-history small {color:var(--muted)}
.rf-admin summary {cursor:pointer;font-weight:700}
.rf-admin[open] > * + * {margin-top:.8rem}
