/* Patiler: keep pet cards compact while offering a separate owner-only edit action. */
.pati-pet-list-item{min-width:0;display:flex;flex-direction:column;gap:7px}
.pati-pet-list-item>.pati-pets-tile{width:100%;flex:1}
.pati-pets-edit{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(120,120,128,.18);background:transparent;color:inherit;border-radius:13px;font:inherit;font-size:13px;font-weight:600;padding:10px 8px;cursor:pointer}
.pati-pets-edit .icon{width:16px;height:16px}
.pati-pets-edit:focus-visible,.pati-pet-list-item>.pati-pets-tile:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:450px){.pati-pet-list-item{gap:5px}.pati-pets-edit{padding:9px 6px;font-size:12px}}

/* Pet edit modal: photo preview, gallery picker and deliberate deletion. */
.pati-pet-edit-modal .pati-pet-edit-cover{display:flex;align-items:center;gap:16px;padding:16px;margin-bottom:12px;
 border:1px solid #e7e7eb;border-radius:16px;background:#f8f8fa}
.pati-pet-edit-modal .pati-pet-edit-photo{width:94px;height:94px;flex:0 0 94px;overflow:hidden;
 border-radius:18px;background:#ededf0;display:grid;place-items:center}
.pati-pet-edit-modal .pati-pet-edit-photo img{width:100%;height:100%;object-fit:cover}
.pati-pet-edit-modal .pati-pet-placeholder{font-size:40px}
.pati-pet-edit-modal .pati-pet-edit-cover strong{display:block;font-size:14px;color:#1d1d22;margin-bottom:6px}
.pati-pet-edit-modal .pati-pet-edit-cover small{display:block;margin-top:6px;color:#73757c;font-size:11px;line-height:1.4}
.pati-pet-edit-modal .pati-pet-photo-select{display:inline-flex;align-items:center;justify-content:center;
 background:#1d1d22;color:#fff;padding:9px 12px;border-radius:10px;font-size:12px;font-weight:750;cursor:pointer}
.pati-pet-edit-modal #pati-pet-photo{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.pati-pet-edit-modal .pati-pet-photo-select:focus-within{outline:2px solid #111;outline-offset:2px}
.pati-pet-edit-modal .pati-pet-delete{border:1px solid #efc7c7;border-radius:10px;background:#fff5f5;
 color:#a22d35;padding:9px 10px;font-size:11px;font-weight:800;cursor:pointer;margin-right:auto}
@media(max-width:500px){
 #main-content .pati-pets-page{padding:16px 12px calc(100px + env(safe-area-inset-bottom,0px))}
 #main-content .pati-pets-heading{gap:8px}
 #main-content .pati-pets-add{white-space:nowrap}
 #main-content .pati-pets-grid{gap:9px}
 #main-content .pati-pets-card{border-radius:14px}
 .pati-pet-edit-modal .pati-pet-edit-cover{gap:12px;padding:12px}
 .pati-pet-edit-modal .pati-pet-edit-photo{width:76px;height:76px;flex-basis:76px}
}
