html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, sans-serif;
}

#map {
    height: 100%;
    background: #e9edf0;
}

#legend,
.messages p {
    border-radius: 0.4rem;
    background: #fff;
    color: #17212b;
    box-shadow: 0 1px 5px #0003;
}

#legend {
    position: absolute;
    z-index: 500;
    bottom: 2rem;
    left: 0.75rem;
    padding: 0.55rem 0.75rem;
    pointer-events: none;
    font-size: 0.875rem;
}

#legend-items {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#legend-items li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.swatch {
    width: 0.85rem;
    height: 0.25rem;
    border-radius: 0.15rem;
}

.messages {
    position: absolute;
    z-index: 500;
    top: 0.75rem;
    right: 0.75rem;
    left: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    pointer-events: none;
}

.messages p {
    margin: 0;
    padding: 0.5rem 0.75rem;
}
