.pl-story-ui-top {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1100;
}

.pl-story-ui-left,
.pl-story-ui-right {
    width: 28px;
    display: flex;
    justify-content: center;
}

.pl-story-progress {
    flex: 1;
    display: flex;
    gap: 4px;
}

.pl-story-progress-seg {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: color-mix(in srgb, var(--pl-story-ui-fg, #fff) 24%, transparent);
    cursor: pointer;
    position: relative;
    display: block;
    flex: 1;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
}

.pl-story-progress-seg:focus {
    outline: none;
}

.pl-story-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    height: 100%;
    background: var(--pl-story-ui-fg, #fff);
}

.pl-story-progress-seg.is-done .pl-story-progress-fill,
.pl-story-progress-seg.is-active .pl-story-progress-fill {
    width: 100%;
}

.pl-story-close,
.pl-story-share {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: var(--pl-story-ui-fg, #fff);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.pl-story-close svg,
.pl-story-share svg {
    stroke: currentColor;
}
