.activity-root{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}
.evo-stage{flex:1;min-height:0;border:1px solid #c8ddce;border-radius:20px;overflow:hidden;background:#eff7ed}
.evo-stage svg{width:100%;height:100%;display:block}
.evo-stage text{font-family:inherit;fill:#264a36;font-size:18px}
.evo-actions,.evo-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
button:not(:disabled){cursor:pointer}button:focus-visible{outline:3px solid #dc9d35;outline-offset:3px}
.evo-actions button,.evo-tabs button{padding:9px 14px;font-size:14px}
.evo-tabs [aria-current=true]{background:#1f7a45;color:white}
.evo-check{padding:24px;display:grid;gap:18px;align-content:center;flex:1;background:#eff7ed;border-radius:20px}
.evo-check fieldset{border:1px solid #adcab6;border-radius:12px;padding:15px}
.evo-check button{display:block;width:100%;margin-top:8px;padding:12px;text-align:left;border:1px solid #acc7b4;border-radius:10px;background:white;color:#244632;font:inherit}
.evo-check .correct{background:#d3ebd8;border:2px solid #277a46}
.bird-head{transform-origin:30px -30px}.feeding .bird-head{animation:peck 1.4s ease-in-out 4}
.unfed{animation:depart 5s ease-in both}.chick{animation:hatch 3s ease-out both}
@keyframes peck{50%{transform:rotate(35deg) translate(4px,7px)}}@keyframes depart{40%{opacity:1}100%{opacity:0;transform:translate(-80px,-100px)}}@keyframes hatch{from{opacity:0;transform:translateY(30px) scale(.5)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}.unfed{opacity:.25}}
@media(max-width:700px){.evo-tabs{gap:4px}.evo-actions button,.evo-tabs button{font-size:12px;padding:8px}.evo-check{padding:10px}}

.seed-crack{animation:seedOpen 6s both}@keyframes seedOpen{0%,45%{opacity:0}70%,100%{opacity:1}}
.evidence-panel{flex:1;min-height:0;background:#f1f8f2;border:1px solid #ccdfd0;border-radius:18px;padding:20px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.evidence-panel h3,.evidence-panel p{margin:0}.evidence-panel h3{font-size:23px;color:#235b38}
.data-note{font-size:13px;color:#526a59}.alignment{display:grid;gap:14px}
.sequence-row{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center}
.sequence-row button,.species-bank button,.tree-tip{border:1px solid #8fb59b;border-radius:9px;background:white;color:#215233;padding:10px;font:inherit}
.sequence-row [aria-pressed=true],.species-bank [aria-pressed=true]{background:#d7eddc;border:2px solid #237846}
.bases{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:3px}.bases span{text-align:center;padding:10px 0;background:#e2e9e4;border-radius:4px;font:bold 17px monospace}
.bases .match{background:#bce0c7;color:#17472b}.bases .mismatch{background:#f4d5a3;color:#6a3d11;text-decoration:underline;text-underline-offset:4px}
.sequence-key{display:flex;gap:20px;font-size:13px}.comparison-result{padding:14px;border-radius:10px;background:white;font-weight:600;color:#215233}
.distance-table{border-collapse:collapse;font-size:13px;width:100%;background:white}.distance-table th,.distance-table td{border:1px solid #bfd4c5;padding:5px;text-align:center}.distance-table caption{padding:6px;font-weight:600;text-align:left}
.species-bank{display:flex;justify-content:center;gap:8px}.species-bank button{padding:6px 10px;font-size:13px;cursor:grab}
.phylogeny{position:relative;flex:1;min-height:200px}.phylogeny svg{position:absolute;width:100%;height:100%;overflow:visible}
.tree-tip{position:absolute;left:77%;width:22%;transform:translateY(-50%);padding:5px;font-size:13px;min-height:30px}
.tree-node{position:absolute;transform:translate(-50%,-50%);border:2px solid #398051;background:white;color:#287944;border-radius:50%;width:28px;height:28px;padding:0}
.tree-panel{gap:8px;padding:16px}.interpretation{gap:12px}.interpretation h4{margin:0 0 5px}.interpretation>div{padding:12px;background:white;border-left:4px solid #59976e}
@media(max-width:750px){.evidence-panel{padding:10px}.sequence-row{grid-template-columns:85px 1fr;gap:5px}.bases{gap:1px}.bases span{font-size:11px;padding:9px 0}.sequence-row button{font-size:12px;padding:8px 3px}.distance-table{font-size:10px}.distance-table th,.distance-table td{padding:4px 2px}.species-bank{flex-wrap:wrap}.tree-tip{font-size:11px}}
#evidenceRoot .evo-check{min-height:0;padding:16px;gap:10px}
#evidenceRoot .evo-check fieldset{padding:10px}
#evidenceRoot .evo-check button{padding:9px;margin-top:6px}
#evidenceRoot .evo-actions{flex-shrink:0}
.breeding-panel{flex:1;min-height:0;border:1px solid #c8ddce;border-radius:20px;background:#eff7ed;padding:18px;display:flex;flex-direction:column;gap:12px;justify-content:center}.breeding-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.breeding-heading h3{margin:0;color:#245b3c;font-size:21px}.breeding-heading>span{font-size:12px;color:#526b59}.cattle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cattle-card{background:#fffef8;border:2px solid #c7d9cb;border-radius:14px;padding:6px;min-height:0;color:#295c3c;font:inherit;position:relative}.cattle-card svg{display:block;width:100%;height:105px}.cattle-card.chosen{border-color:#207944;background:#e0f1df;box-shadow:0 0 0 3px #a6d0a8}.cattle-card strong{position:absolute;right:6px;top:6px;font-size:11px}.trait-chart{display:flex;align-items:flex-end;justify-content:center;gap:16px;min-height:75px}.trait-chart>div{display:flex;flex-direction:column;align-items:center;font-size:12px}.trait-chart i{display:block;width:30px;background:#478b5b;border-radius:5px 5px 0 0}.trait-chart p{font-size:12px;margin:0 0 10px 10px;color:#496653}.crop-panel>svg{width:100%;flex:1;min-height:0;max-height:390px}.crop-panel text{font:13px sans-serif;fill:#385c43}.crop-history{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.crop-history span{border:1px solid #bdd2be;border-radius:10px;padding:6px;font-size:12px}.crop-history .visited{background:#d4e9cf}.selection-cases{display:grid;gap:18px}.selection-cases button{background:white;border:1px solid #b9d0bd;border-radius:14px;text-align:left;padding:20px;color:#28563b;font:inherit}.selection-cases p{margin:10px 0 0}.breeding-moving .cattle-card:not(.chosen){animation:parentFade 3.2s both}.breeding-moving .chosen svg{animation:parentMove 3.2s both}.crop-changing .ear-grow{transform-origin:410px 160px;animation:earSelect 3.2s ease-in-out}.crop-changing .crop-history{opacity:.6}@keyframes parentFade{to{opacity:.1;transform:translateY(14px)}}@keyframes parentMove{50%{transform:translateY(-12px) scale(1.08)}100%{opacity:.2;transform:scale(.7)}}@keyframes earSelect{50%{transform:scale(1.12);filter:drop-shadow(0 0 10px #dbba43)}100%{opacity:.2}}#breedingRoot .evo-check{min-height:0;padding:16px;gap:10px}#breedingRoot .evo-check fieldset{padding:10px}#breedingRoot .evo-check button{padding:9px;margin-top:6px}#breedingRoot .evo-actions{flex-shrink:0}@media(max-width:750px){.breeding-heading{flex-direction:column;gap:4px}.cattle-card svg{height:80px}.breeding-panel{padding:10px}.trait-chart{gap:8px}.selection-cases button{padding:12px}}
.cattle-grid:not(.breeding-moving) .cattle-card svg{animation:offspringArrive .8s ease-out both}.crop-panel:not(.crop-changing) .ear-grow{animation:offspringArrive .8s ease-out both}@keyframes offspringArrive{from{opacity:.15;transform:translateY(12px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Use the full activity height and distinguish bases without losing comparison cues. */
.bases .base-A,.sequence-key .base-A{background:#eed58f;color:#463711}.bases .base-C,.sequence-key .base-C{background:#a9cfe1;color:#183e52}.bases .base-G,.sequence-key .base-G{background:#a9d4bd;color:#194c35}.bases .base-T,.sequence-key .base-T{background:#d2b7df;color:#4e2e64}.bases .match{box-shadow:inset 0 0 0 2px #267b45}.bases .mismatch{text-decoration:underline 3px #b35d12;text-underline-offset:5px;box-shadow:inset 0 -3px #b35d12}.sequence-key{align-items:center;flex-wrap:wrap;gap:8px}.sequence-key>span[class]{padding:4px 9px;border-radius:5px;font-weight:700}.trait-chart{min-height:145px;padding:12px 10px;background:#fffef8;border:1px solid #c7d9cb;border-radius:12px;gap:20px;flex-shrink:0}.trait-chart i{width:38px}.trait-chart>div,.trait-chart p{font-size:14px}.evo-actions .next-action{outline:3px solid #2b854d;outline-offset:3px;box-shadow:0 0 0 6px #d4e8d8;font-weight:700}@media(max-height:800px){.cattle-card svg{height:85px}.trait-chart{min-height:120px;padding:8px}.breeding-panel{gap:9px}}
