/* ==================== 发布队列悬浮进度窗口 ==================== */
.ls-pq-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10060;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    user-select: none;
}

.ls-pq-card {
    width: 226px;
    min-height: 72px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    grid-template-areas:
        "ring title delete"
        "parts parts parts"
        "action action action";
    align-items: center;
    column-gap: 8px;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--ls-border-radius, 8px);
    background: rgba(18, 18, 22, 0.94);
    color: #fff;
    cursor: pointer;
}

.ls-pq-card-failed {
    background: rgba(36, 18, 20, 0.96);
}

.ls-pq-ring {
    grid-area: ring;
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.ls-pq-ring svg {
    width: 100%;
    height: 100%;
}

.ls-pq-ring-bg,
.ls-pq-ring-fg {
    fill: none;
    stroke-width: 3;
}

.ls-pq-ring-bg {
    stroke: rgba(255,255,255,0.16);
}

.ls-pq-ring-fg {
    stroke: #fff;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.4s ease;
}

.ls-pq-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.ls-pq-delete {
    grid-area: delete;
    justify-self: end;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--ls-border-radius-btn, 6px);
    background: rgba(255,255,255,0.10);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ls-pq-delete:hover {
    background: rgba(255,255,255,0.18);
}

.ls-pq-delete:active {
    transform: translateY(1px);
}

.ls-pq-title {
    grid-area: title;
    min-width: 0;
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #fff;
}

.ls-pq-parts {
    grid-area: parts;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 0;
    padding: 0;
    max-height: 170px;
    overflow: hidden;
    list-style: none;
    opacity: 1;
}

.ls-pq-part {
    display: grid;
    grid-template-columns: 7px minmax(54px, 1fr) 46px 32px;
    align-items: center;
    column-gap: 5px;
    min-width: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

.ls-pq-part-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: var(--ls-radius-full, 999px);
    background: rgba(255,255,255,0.58);
}

.ls-pq-part-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-pq-part-meter {
    width: 46px;
    height: 3px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--ls-radius-full, 999px);
    background: rgba(255,255,255,0.14);
}

.ls-pq-part-meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,0.82);
    transition: width 0.35s ease;
}

.ls-pq-part-state {
    width: 32px;
    flex-shrink: 0;
    text-align: right;
    color: rgba(255,255,255,0.62);
}

.ls-pq-action {
    grid-area: action;
    justify-self: end;
    height: 30px;
    margin-top: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--ls-border-radius-btn, 6px);
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
}

.ls-pq-action:hover {
    background: rgba(255,255,255,0.18);
}

.ls-pq-action:active {
    transform: translateY(1px);
}

.ls-pq-card-collapsed {
    width: 70px;
    min-height: 0;
    padding: 10px;
}

.ls-pq-card-collapsed .ls-pq-title {
    max-width: 0;
    opacity: 0;
}

.ls-pq-card-collapsed .ls-pq-parts {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.ls-pq-card-collapsed .ls-pq-action {
    display: none;
}
.ls-pq-card-collapsed .ls-pq-delete {
    display: none;
}
