#animals-dialog{width:min(780px,calc(100vw - 24px));max-height:90dvh;padding:26px;box-sizing:border-box}
#animals-dialog h2{margin:8px 0 18px;color:#284b35}
.animal-summary,.animal-stock{display:flex;flex-wrap:wrap;gap:10px;padding:14px;border-radius:16px;background:#edf3df;color:#28432d}
.animal-summary>span,.animal-stock>span{flex:1;white-space:nowrap}.animal-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.animal-toolbar button{flex:1;min-height:44px}.animal-stock{background:#fff0d6;font-size:14px}
.animal-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:16px;margin:20px 0}
.animal-card{border:2px solid #c5d6b7;border-radius:22px;padding:18px;background:#fffdf5;box-shadow:0 4px 0 #d9e3ca}.animal-card.ready{border-color:#58a260;background:#f2fae9}.animal-card header{display:flex;align-items:center;gap:12px}.animal-card h3{margin:0;font-size:18px}.animal-card small{color:#546c51;line-height:1.6}.animal-card header>div{flex:1;min-width:0}.animal-portrait{display:grid;place-items:center;flex-shrink:0;width:60px;height:60px;border-radius:20px;font-size:36px;background:#ffeab1;transform:rotate(-4deg)}.animal-portrait.cows{background:#d7eff1}.animal-portrait.sheep{background:#eee0f6}.animal-visit{border:1px solid #8ca47a;background:#f0f7e8;border-radius:12px;min-width:44px;min-height:44px;font-size:22px;color:#315e3a}
.animal-names{font-size:13px;font-weight:700;line-height:1.6;color:#4a633b;margin:12px 0 5px}.animal-quote{color:#825936;font-size:13px;font-style:italic;line-height:1.5;margin:5px 0 15px}.animal-yield{display:flex;justify-content:space-between;gap:6px;font-size:14px;margin-bottom:8px}.animal-yield span{color:#7c632d}.animal-timer{font-size:14px;margin:12px 0 5px}.animal-card progress{display:block;width:100%;height:8px;margin:0 0 14px;accent-color:#75ad54}.animal-card .button-pair{display:flex;gap:8px}.animal-card .button{min-height:44px}.animal-upgrade{border-top:1px dashed #bdcba9;margin-top:14px;padding-top:12px}.animal-upgrade small{display:block;margin-bottom:6px}.animal-warning{font-size:13px;color:#8c4a23;background:#fff0d6;padding:10px;border-radius:10px}.animal-max{color:#7c6522;font-size:14px}
.animal-empty{text-align:center;background:#fff7d9;border-radius:20px;padding:18px}.animal-empty h3{margin:6px 0}.animal-empty p{line-height:1.6}.animal-feed,.animal-build{background:#f2f5e9;border:1px solid #c5d6b7;padding:16px;border-radius:18px;margin-top:16px}.animal-feed h3{margin-top:0}.animal-feed p,.animal-build p{font-size:14px;line-height:1.6;color:#53634b}.animal-build summary{cursor:pointer;font-weight:700;min-height:32px}.animal-build label{display:grid;gap:6px;margin:12px 0;font-size:14px;font-weight:700}.animal-build select{padding:12px;background:#fffdf4;border:1px solid #9bb488;border-radius:10px;color:#28432d;max-width:100%;min-height:44px}.animal-build .button{min-height:44px}.animal-feed .button-pair{display:flex;flex-wrap:wrap;gap:8px}
.farm-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.farm-nav button{min-width:0;padding-left:2px;padding-right:2px}.farm-nav button span{font-size:10px}.farm-nav #account-open span{max-width:100%}.farm-nav #animals-open{position:relative}#animals-badge:not(:empty){position:absolute;top:1px;right:3px;background:#b76125;color:#fff;border-radius:10px;min-width:18px;padding:2px;font-size:11px}.neighbor-quote{font-style:italic;color:#736448;font-size:14px;line-height:1.5}.neighbor-heading small{display:block}
.scene-tag.neighbor-tag{pointer-events:auto;touch-action:none;cursor:pointer}.scene-tag.region-tag.production-ready{background:#e2f3c8;color:#254c30;border-color:#73a251}.scene-tag.region-tag.production-busy{border-color:#e3bb66}
@media(max-width:720px){#animals-dialog{padding:18px 14px;max-height:calc(100dvh - 20px)}#animals-dialog h2{font-size:24px;padding-right:28px}.farm-nav button{min-width:0;padding-left:3px;padding-right:3px;gap:3px;font-size:12px}.animal-toolbar button{flex-basis:100%}.animal-card{padding:15px}.animal-summary{font-size:13px;padding:11px;gap:8px}.animal-summary>span{flex:auto}#animals-badge:not(:empty){position:absolute;top:1px;right:4px}.animal-stock{gap:8px}}
