.pet-health-editor{min-width:0;border:1px solid rgba(140,160,190,.25);border-radius:16px;padding:20px;margin:20px 0}
.pet-health-editor legend{font-size:1.2rem;font-weight:700;padding:0 8px}
.pet-health-editor label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:8px;margin:12px 0;font-size:.94rem;line-height:1.5}
.pet-health-editor input[type=checkbox]{width:auto;flex-shrink:0;margin-top:5px}
.pet-health-record{border:1px solid rgba(140,160,190,.2);border-radius:12px;padding:14px;margin:12px 0;overflow-wrap:anywhere}
.pet-health-record small{display:block;margin-top:6px;line-height:1.5}
.pet-health-editor .app-button{margin:6px 0;white-space:normal}
.pet-health-editor:disabled{opacity:.65}
@media(max-width:600px){.pet-health-editor{padding:14px}.pet-health-record{padding:12px}}
.pet-health-editor{container-type:inline-size;grid-column:1/-1;width:100%}
.app-card.health-section{grid-column:1/-1}
.health-section>#profileSectionHeading,.health-section>.profile-editor-guide,.health-section>#profileVisibilityNotice,.health-section>details{display:none}
.health-section .pet-health-editor{margin-bottom:8px}
.health-preferences,.health-optional{border:1px solid var(--app-line,rgba(140,160,190,.2));border-radius:12px;padding:12px 14px;margin:14px 0}
.health-preferences summary,.health-optional summary{font-weight:600;cursor:pointer;min-height:28px;line-height:1.5}
.health-preferences[open] summary,.health-optional[open] summary{margin-bottom:14px}
.health-history-heading{margin-top:24px}.health-history-heading h3{margin-bottom:4px}
.health-add-actions,.health-entry-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.health-entry{margin-top:20px;padding:18px;border:1px solid var(--app-line,rgba(140,160,190,.2));border-radius:14px;background:var(--app-panel-2,#202721)}
.health-entry[hidden]{display:none!important}
.health-sterilization h3{margin:0 0 6px;font-size:17px}
.health-sterilization>.app-help{margin:6px 0 12px;font-size:13px;line-height:1.5}
.health-sterilization .health-main-data{max-width:none;gap:12px}
.health-sterilization .app-field{min-width:0}
.health-sterilization .app-field.full{grid-column:1/-1}
.health-sterilization .app-field small{font-size:12px;line-height:1.5;color:var(--app-muted,#60718b)}
.health-sterilization input,.health-sterilization select{min-width:0;max-width:100%;box-sizing:border-box}
.health-sterilization input[type=file]{font-size:14px}
.health-sterilization-upload{border:1px solid var(--app-line,#d6e2f2);border-radius:8px;padding:10px 12px}
.health-sterilization-upload summary{cursor:pointer;font-size:14px;font-weight:600;min-height:24px}
.health-sterilization-upload[open] summary{margin-bottom:10px}
.health-sterilization-upload [data-sterilization-file]:empty{display:none}
.pet-health-editor [hidden]{display:none!important}
.pet-health-editor .health-add-actions button:focus-visible{outline:2px solid var(--app-primary,#0759f5);outline-offset:3px}
.pet-health-editor .health-add-actions button[aria-pressed=true]{box-shadow:0 0 0 2px var(--app-primary,#0759f5)}
@container(max-width:520px){.pet-health-editor .health-add-actions.health-add-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pet-health-editor .health-add-actions.health-add-actions>.app-button{width:100%;margin:0;padding:9px 8px}.health-sterilization .app-field input,.health-sterilization .app-field select{font-size:16px;min-height:44px}.health-sterilization .health-entry-actions>.app-button{flex:1}}
.pet-health-editor .health-feedback{padding:10px 12px;margin:12px 0;border-radius:8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;background:var(--app-panel-2,#f1f6fc);color:var(--app-text,#162640)}
.pet-health-editor .health-feedback:empty{display:none}
.pet-health-editor .health-feedback.error{background:#fff0f0;color:#922525;border:1px solid #d77878}
.pet-health-editor [aria-invalid=true]{border-color:#b33232!important;outline:2px solid #b33232;outline-offset:1px}
.health-main-data{max-width:640px}
.has-pet-health:not(.is-health-view)>.pet-health-editor{display:none}
.is-health-view>.pet-health-editor{display:block}
.is-health-view>:not(.pet-health-editor):not(.health-save-footer){display:none!important}
@container(max-width:520px){.pet-health-editor .app-form{grid-template-columns:1fr}.pet-health-editor .app-field{grid-column:1/-1}.health-add-actions>.app-button{flex:1 1 100%}.health-entry{padding:14px}}
