.bio-toolbar{background:var(--paper,#fffef9);padding:22px;border:1px solid #d8dfd5;border-radius:14px;margin:22px 0;scroll-margin-top:15px}
.bio-toolbar p{text-align:justify;hyphens:auto}
.bio-settings,.bio-secondary{display:flex;flex-wrap:wrap;gap:14px;align-items:end}
.bio-settings label{display:flex;flex-direction:column;gap:6px}
.bio-settings select{min-height:44px;font:inherit;padding:8px;border:1px solid #adbcb0;border-radius:8px;background:white}
.bio-secondary{margin-top:14px}.bio-secondary form{margin:0}
.bio-toggle-changes{background:#245e50;border-radius:8px;min-height:44px;padding:11px 16px;margin:0 0 20px}.bio-toggle-changes[hidden]{display:none}
.bio-toolbar button,.population-grid button{background:#245e50;border-radius:8px;padding:11px 16px;min-height:44px;box-shadow:none}
.bio-toolbar button:hover,.population-grid button:hover{background:#263b36;transform:none}
.bio-secondary button{background:#e3e9df;color:#263b36}
.population-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));align-items:stretch}
.population-grid .biomorph-card{min-width:0;display:flex;flex-direction:column;cursor:default;border:1px solid #d8dfd5;background:#fffef9}
.population-grid .biomorph-card.parent{border:2px solid #245e50;background:#edf2eb}
.population-grid .biomorph-card:hover{transform:none}
.biomorph-svg{width:100%;aspect-ratio:1;background:#f4f6f0;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:center}
.biomorph-svg svg{width:100%;height:100%;max-height:260px}
.bio-change{font-size:14px;color:#66766e;min-height:44px;margin:12px 0}
.bio-genes{font-size:14px;text-align:left;margin-top:14px}.bio-genes summary{cursor:pointer;min-height:44px;align-content:center}.bio-genes ul{padding-left:20px}
.population-grid .biomorph-card > *{flex-shrink:0}
.population-grid .biomorph-card{padding:8px}
.population-grid .biomorph-title{margin:0 0 4px;font-size:15px;line-height:1.3}
.population-grid .biomorph-svg{margin:0}
.population-grid .bio-change{margin:2px 0;min-height:16px;font-size:12px;line-height:16px}
.population-grid{row-gap:8px}
.population-grid .bio-genes{margin-top:2px;font-size:13px;line-height:1.35}
.population-grid .bio-genes summary{min-height:0;padding:4px 0;line-height:18px}
.population-grid .bio-genes ul{margin:2px 0 0;padding-left:16px}
.population-grid .bio-genes li{margin:0;padding:0}
.population-grid .biomorph-card > form{margin:0}
.population-grid button{width:100%;min-height:30px;padding:5px 8px;font-size:13px;line-height:20px;border-radius:6px}
.population-grid .biomorph-svg{aspect-ratio:3/2;padding:2px 6px}
@media(pointer:coarse){.population-grid button{min-height:44px}.population-grid .bio-genes summary{min-height:44px}}
.evolution-history{background:#edf2eb;border:1px solid #d8dfd5}.evolution-history h2{font:28px Georgia,serif}
.history-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.history-biomorph svg{max-width:100%;height:130px}
@media(max-width:520px){.population-grid{grid-template-columns:1fr}.bio-toolbar{padding:18px}.bio-settings{align-items:stretch;flex-direction:column}.bio-settings button{width:100%}}
