/* Pet profiles 6114: signup is visible directly below WhatsApp / CPF. */
.pp-signup,.pp-edit{grid-column:1/-1;min-width:0;max-width:100%;padding:16px;margin:12px 0;border:1px solid #d5dfcf;border-radius:16px;background:#f7faf3;color:#173e30}
.pp-signup h3{margin:0 0 12px;font-size:22px}.pp-signup h4,.pp-edit h4{margin:0;font-size:18px}
.pp-toggle{display:flex!important;align-items:center;gap:10px;font-weight:750;font-size:15px!important}.pp-toggle input{width:20px!important;height:20px;flex:none;margin:0!important}
.pp-muted{font-size:13px;color:#546b56;line-height:1.45;overflow-wrap:anywhere}
.pp-card{min-width:0;background:#fff;border:1px solid #d5dfcf;border-radius:14px;padding:16px;margin:14px 0}
.pp-card__head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.pp-card button,.pp-edit button,.pp-dialog button{font:inherit;cursor:pointer;touch-action:manipulation}
.pp-remove{padding:8px 10px;border:1px solid #ddd2c7!important;background:#fff5ec!important;color:#824629!important;font-size:12px!important;font-weight:750;border-radius:8px}
.pp-species{display:flex;gap:8px;margin:10px 0}.pp-species__button{flex:1;padding:11px 14px;border:1px solid #c8d8c0!important;border-radius:10px;background:#eaf1e4;color:#173e30;font-weight:800}
.pp-species__button[aria-pressed="true"]{background:#173e30!important;color:#fff!important;border-color:#173e30!important}
.pp-field{display:flex!important;flex-direction:column;gap:6px;min-width:0;font-size:14px!important;font-weight:700;margin:12px 0}
.pp-field__label{line-height:1.3}.pp-field>input,.pp-field>select{width:100%;min-width:0;max-width:100%;margin:0!important;padding:11px 12px;border:1px solid #bccdb6;border-radius:9px;font:400 15px system-ui;min-height:44px;color:#173e30;background:white}
.pp-field input[type="file"]{font-size:13px;padding:9px;white-space:normal}
.pp-combobox{position:relative;min-width:0;margin:12px 0}.pp-combobox>.pp-field{margin:0}
.pp-suggestions{position:absolute;top:100%;left:0;right:0;list-style:none;padding:5px;margin:4px 0 0;border:1px solid #aabf9e;border-radius:12px;background:#fff;box-shadow:0 14px 30px #173e3020;z-index:35;max-height:min(340px,60svh);overflow-y:auto;overscroll-behavior:contain;min-width:0}
.pp-suggestion{display:flex;gap:10px;align-items:center;min-height:56px;padding:7px;border-radius:7px;cursor:pointer;color:#173e30;font-weight:650;overflow-wrap:anywhere}
.pp-suggestion img{width:46px;height:44px;object-fit:cover;border-radius:7px;flex:none}.pp-suggestion>span{min-width:0}
.pp-suggestion:hover,.pp-suggestion.is-active{background:#e5efdc}.pp-suggestion--empty{padding:12px;font-size:13px;line-height:1.4}
.pp-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-width:0;margin:10px 0 12px}
.pp-thumb{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;min-width:0;border:1px solid #cedcc7!important;border-radius:11px;padding:0!important;overflow:hidden;background:#fff!important;color:#173e30!important;transition:border-color .15s,box-shadow .15s}
.pp-thumb img{width:100%;height:108px;object-fit:cover;display:block;background:#eaf1e4}.pp-thumb__name{font-size:12px;font-weight:750;line-height:1.25;padding:7px;overflow-wrap:anywhere}
.pp-thumb--compact img{height:86px}.pp-thumb:hover,.pp-thumb.is-selected{border-color:#347443!important;box-shadow:0 0 0 2px #6b9751}
.pp-secondary{padding:10px 13px!important;border:1px solid #b7cbaa!important;border-radius:9px;background:#e5efdd!important;color:#173e30!important;font-weight:750}
.pp-secondary:disabled{opacity:.45;cursor:default}.pp-add{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.pp-selected{display:flex;align-items:flex-start;gap:12px;padding:11px;border:1px solid #c9d9bc;background:#edf4e5;border-radius:11px;margin:12px 0}
.pp-selected__photo{width:80px;height:80px;object-fit:cover;border-radius:10px;flex:none}.pp-selected__info{min-width:0;font-size:14px;overflow-wrap:anywhere}
.pp-credits{font-size:11px;line-height:1.4;color:#576d55;overflow-wrap:anywhere;margin-top:5px}.pp-credits a{color:#225e36;text-decoration:underline;text-underline-offset:2px}
.pp-status{font-size:13px;line-height:1.4;color:#285c36;overflow-wrap:anywhere}.pp-status:empty{display:none}
.pp-details{margin-top:14px;border-top:1px solid #e1e8dc;padding-top:12px}.pp-details>summary{font-weight:700;cursor:pointer;min-height:30px}.pp-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pp-dialog{width:min(920px,calc(100% - 24px));max-height:88svh;overflow:auto;overscroll-behavior:contain;border:1px solid #aebe9e;border-radius:18px;padding:20px;background:#f8faf4;color:#173e30}
.pp-dialog::backdrop{background:#102c24a8}.pp-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.pp-dialog__head h2{font-size:22px;margin:0}
.pp-close{font-size:28px!important;border:0;border-radius:9px;background:#e6eedf;color:#173e30;padding:6px 12px!important}
.pp-dialog__grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:15px 0}.pp-dialog__card{min-width:0;padding-bottom:8px}.pp-dialog__card>.pp-credits{padding:0 3px}
.pp-signup [hidden],.pp-edit [hidden],.pp-dialog [hidden]{display:none!important}
.pp-signup :is(button,input,select):focus-visible,.pp-edit :is(button,input,select):focus-visible,.pp-dialog :is(button,input,select,a):focus-visible{outline:3px solid #d39d35;outline-offset:2px}
@media(max-width:900px){.pp-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.pp-dialog__grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.pp-signup,.pp-edit{padding:12px}.pp-card{padding:12px}.pp-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.pp-extra{grid-template-columns:1fr}.pp-dialog{padding:14px}.pp-dialog__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pp-dialog__head h2{font-size:20px}.pp-thumb--compact img{height:82px}.pp-thumb__name{font-size:11px;padding:6px}.pp-add .pp-secondary{flex:1}.pp-selected__photo{width:68px;height:68px}.pp-field>input,.pp-field>select{font-size:16px}}
@media(max-width:340px){.pp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.pp-card{padding:10px}.pp-signup{padding:10px}.pp-thumb--compact img{height:88px}}
@media(prefers-reduced-motion:reduce){.pp-thumb{transition:none!important}}

/* Life stage, sex and neutering are separate visible fields. */
.pp-life-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0;margin:8px 0}.pp-life-grid>.pp-field{min-width:0;margin:6px 0}
@media(max-width:600px){.pp-life-grid{grid-template-columns:1fr;gap:4px}}

/* 6115: compact search-first UI; images appear in suggestions, selection or on-demand dialog only. */
.pp-visual>.pp-secondary{margin:2px 0 10px;max-width:100%;white-space:normal;text-align:left}.pp-visual>.pp-muted{margin:7px 0;font-size:12px}.pp-visual>.pp-selected{margin-top:12px}

/* Shared crop frame: ordinary URLs and validated atlas cells use the same renderer. */
.pp-image-frame{display:block;position:relative;overflow:hidden;aspect-ratio:1/1;min-width:0;background:#eaf1e4}.pp-image-frame>.pp-image-bitmap{display:block;max-width:none!important;max-height:none!important;margin:0;border-radius:0}.pp-thumb>.pp-image-frame{width:100%}.pp-suggestion>.pp-image-frame{width:46px;height:46px;flex:none;border-radius:7px}.pp-selected>.pp-image-frame{width:80px;height:80px;flex:none;border-radius:10px}.pp-image-frame--unavailable{font-size:10px;line-height:1.2;padding:5px;color:#546b56}
@media(max-width:600px){.pp-selected>.pp-image-frame{width:68px;height:68px}}


/* 6117: Pets and farm animals have separate selectors and lists. */
.pp-category{border:1px solid #dce4d6;border-radius:14px;padding:16px;margin:12px 0;background:#fbfcf8;min-width:0}
.pp-category>h4{margin:0 0 4px;font-size:18px}.pp-category>.pp-muted{margin:0 0 12px}
.animal-category-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 8px}
.animal-category-tabs button{background:#eef2e8;color:#214a37;border:2px solid transparent;flex:1;min-width:130px}
.animal-category-tabs button[aria-pressed="true"]{background:#214a37;color:#fff;border-color:#214a37}
.animal-category-hint{margin:6px 0 14px}.animal-choices [hidden]{display:none!important}
@media(max-width:600px){.pp-category{padding:12px}.animal-category-tabs{gap:8px}.animal-category-tabs button{min-width:0;font-size:14px;padding:12px 8px}}

/* 6118: compact, named icon controls on every screen. */
.pp-species{flex-wrap:wrap;gap:8px}.pp-species__button{flex:0 0 46px;min-width:46px;min-height:46px;padding:8px!important;font-size:24px!important;line-height:1}
.animal-choices{display:flex;flex-wrap:wrap;gap:8px}.animal-choices button{flex:0 0 46px!important;min-width:46px;min-height:46px;padding:8px!important;font-size:24px;line-height:1}
