/* v0.5: visual, checkpoint-backed city evolution. Theme follows the selected universe. */
.evolution-panel{margin-top:12px;padding:16px 17px 13px;background:linear-gradient(140deg,var(--theme-panel-bottom),var(--theme-card));border:1px solid var(--theme-border);border-radius:10px}
.evolution-panel .panel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:11px}
.evolution-panel h2{font-size:17px;margin-top:3px}
.evo-settings{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.evo-settings label{font-size:11px;color:var(--theme-muted);display:flex;align-items:center;gap:6px;font-weight:750}
.evo-settings select{border:1px solid var(--theme-border);border-radius:6px;min-height:34px;background:var(--theme-select);color:#e9f1f4;padding:5px 8px;font-weight:700}
.evo-settings input{accent-color:var(--theme-accent);height:17px;width:17px}
.evo-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.evo-stat{border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-card);padding:9px;min-width:0}
.evo-stat small{display:block;font-size:10px;line-height:1.4;color:var(--theme-muted);font-weight:700}
.evo-stat strong{display:block;font-size:22px;color:#f0f7f6;letter-spacing:-.04em;margin-top:5px}
.evo-stat.new strong{color:#64e1ad}.evo-stat.renewed strong{color:#72cafa}.evo-stat.declining strong{color:#f0ab65}.evo-stat.distressed strong{color:#ee7189}
#evoDescription{font-size:11px;color:var(--theme-muted);line-height:1.55;margin:10px 0}
.evo-legend{display:flex;gap:11px;flex-wrap:wrap;font-size:10px;color:var(--theme-muted);margin:7px 0}
.evo-legend span{display:inline-flex;align-items:center;gap:5px}
.evo-dot{display:inline-block;width:9px;height:9px;border-radius:50%}.evo-dot.new{background:#64e1ad}.evo-dot.renewed{background:#72cafa}.evo-dot.declining{background:#f0ab65}.evo-dot.distressed{background:#ee7189}
.evo-events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:none}
.evo-event{border:1px solid var(--theme-border);border-left:3px solid var(--evo-status);border-radius:7px;background:var(--theme-select);display:flex;align-items:center;gap:8px;min-width:0;min-height:52px;padding:7px 9px;text-align:left;color:#ebf3f3;cursor:pointer}
.evo-event:hover{border-color:var(--theme-accent)}.evo-event:focus-visible{outline:2px solid var(--theme-accent-light);outline-offset:2px}
.evo-event-pin{font-size:10px;font-weight:900;flex:0 0 auto;color:var(--evo-status)}
.evo-event>span:nth-child(2){min-width:0;flex:1}
.evo-event strong{display:block;font-size:11px;overflow-wrap:anywhere}
.evo-event small{display:block;font-size:9px;color:var(--theme-muted);margin-top:3px;overflow-wrap:anywhere}
.evo-event-arrow{color:var(--evo-status)}
.evo-empty,.evo-legacy{font-size:11px;color:var(--theme-muted);line-height:1.5}
.evo-legacy{display:none}.evolution-panel.legacy .evo-legacy{display:block}.evolution-panel.legacy .evo-current{display:none}
.evo-note{margin-top:9px;font-size:10px;color:var(--theme-muted);line-height:1.5}
.geo-plan-cell.evolution-new{outline:3px solid #64e1ad;outline-offset:-3px;z-index:2}
.geo-plan-cell.evolution-renewed{outline:3px solid #72cafa;outline-offset:-3px;z-index:2}
.geo-plan-cell.evolution-declining{outline:3px solid #f0ab65;outline-offset:-3px;z-index:2}
.geo-plan-cell.evolution-distressed{outline:3px dashed #ee7189;outline-offset:-3px;z-index:2}
.parallel-evo-row{display:flex;flex-wrap:wrap;gap:8px;padding:9px 12px;font-size:10px;font-weight:750;border-top:1px solid var(--theme-border);color:var(--theme-muted)}
.parallel-evo-row b{font-weight:900;color:#eaf4f5}
@media(max-width:980px){.evo-events{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.evolution-panel{padding:12px}.evo-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.evo-events{grid-template-columns:minmax(0,1fr)}.evo-event{min-height:44px}}
