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

}

#panel {

    position: fixed;
    top: 16px;
    left: 16px;
    background-color: rgba(190, 190, 190, 0.294);
    padding: 14px 16px;
    z-index: 1;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;

}

#panel .field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#panel input[type = 'range'] {
    width: 100%;
    accent-color: #418f43;
    height: 28px;
    touch-action: none;
}

@media (max-width: 600px) {
    #panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        border-radius: 10px 10px 0 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        font-size: 14px;
    }

    #panel .field {
        flex: 1 1 45%;
        min-width: 120px;
    }
}


