#legendToggle{margin-top:8px;padding:5px 9px;font-size:10px}#territoryLegend{position:absolute;z-index:6;left:355px;right:25px;bottom:190px;max-height:55vh;overflow:auto;margin:0;background:#101f29f7;border:1px solid #557078;border-radius:14px;padding:18px;box-shadow:0 20px 60px #0008}.legend-heading{display:flex;justify-content:space-between;align-items:center}.legend-heading h2{font-size:23px}.legend-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.legend-tools input[type=text],#legendSearch{padding:8px;background:#08151d;color:#e5eeee;border:1px solid #425962;border-radius:5px}.legend-tools button{padding:6px;font-size:11px}.legend-tools label{font-size:11px}#legendRows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.legend-card{display:flex;gap:7px;align-items:center;text-align:left;font-size:11px;padding:9px;flex-wrap:wrap}.legend-card>span:nth-child(2){flex:1}.legend-card small{font-size:9px;color:#9aafb7}.legend-card img{width:28px;max-height:20px;object-fit:contain}.legend-swatch{width:10px;height:10px;border-radius:2px}.legend-pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:15px;font-size:11px}#territoryLegend p{font-size:11px;color:#bacbd2}.science-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.science-tabs button{font-size:12px}@media(max-width:750px){#territoryLegend{left:10px;right:10px;bottom:165px;max-height:65vh;padding:12px!important}#legendRows{grid-template-columns:repeat(2,minmax(0,1fr))}#legendToggle{font-size:9px;max-width:85px;padding:4px}.legend-heading h2{font-size:20px}.legend-tools{gap:7px}.science-tabs button{font-size:10px}}

@media(max-width:750px){#territoryLegend{max-height:65vh!important}}
