/* Keep the avatar preview below the sticky editor header. */
@media(min-width:651px){.avatar-editor .avatar-preview{top:5rem!important}}
/* Adoption is a modal task: use the available space and keep actions visible. */
@media(min-width:600px){html body dialog.companion270-panel .pet274-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body dialog.companion270-panel .pet274-fields label:last-child{grid-column:auto!important}}

@media(max-height:500px) and (orientation:landscape){html body dialog.companion270-panel .pet274-fields{grid-template-columns:repeat(6,minmax(0,1fr))!important}html body dialog.companion270-panel .pet274-swatch{height:40px!important}}

/* Keep the pet save status in normal flow above the actions on short screens. */
@media(max-height:500px) and (orientation:landscape){
html body dialog.companion270-panel.control-dialog[open]{padding:8px!important;row-gap:3px!important}
html body dialog.companion270-panel.control-dialog[open]>.menu-header189{height:38px!important;min-height:38px!important;margin:0!important;padding:0!important}
html body dialog.companion270-panel.control-dialog[open]>p{margin:2px 0!important}
html body dialog.companion270-panel.control-dialog[open]>.companion273-actions{position:static!important;padding:3px 0!important}
}

@media(max-height:500px) and (orientation:landscape){html body dialog.companion270-panel.fit184[open] .pet274-fields{grid-template-columns:repeat(4,minmax(0,1fr))!important}html body dialog.companion270-panel.fit184[open] .pet274-swatch{display:none!important}}
