task {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    border-radius: 2px;
    padding: 0 5px;
    overflow: hidden;
    width: 100px;
    height: 22px;
    background-color: #0377c5;
}

task.selected {
    background-color: #489dff;
}

task:focus {
    outline: 2px solid #26316e;
    background-color: #1a91e0;
}

task::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent 6px),
                linear-gradient(to top, rgba(0,0,0,0.3), transparent 6px);
    box-shadow: inset 1px 1px 2px 0 #73d3ff6e;
    pointer-events: none;
    z-index: 1;
}

task img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 2px #0004);
    z-index: 2;
}

task span {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    text-overflow: ellipsis;
    text-align: center;
    color: #fff;
    font-size: 10px;
    text-shadow: 1px 1px 2px #0007;
    z-index: 2;
}
