/* 업로드 큐 패널 (구글드라이브 스타일) */
.upload-queue {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border: 1px solid #1e293b; /* slate-800 */
    border-radius: 2px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 9999;
    font-size: 12px;
    overflow: hidden;
}

.upload-queue__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 8px 0 14px;
    background: #0f172a; /* slate-900 */
    color: #fff;
}

.upload-queue__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.upload-queue__head-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.upload-queue__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 2px;
    color: #cbd5e1; /* slate-300 */
    transition: background 0.15s, color 0.15s;
}

.upload-queue__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.upload-queue__btn .material-symbols-outlined {
    font-size: 18px;
}

.upload-queue__list {
    max-height: 320px;
    overflow-y: auto;
    transition: max-height 0.2s ease;
}

.upload-queue.is-collapsed .upload-queue__list {
    max-height: 0;
}

.upload-queue.is-collapsed .upload-queue__btn[data-act="toggle"] .material-symbols-outlined {
    transform: rotate(180deg);
}

.upload-queue__row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "name status"
        "note status"
        "bar  bar";
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    padding: 10px 14px;
    border-top: 1px solid #e2e8f0; /* slate-200 */
}

.upload-queue__row:first-child {
    border-top: none;
}

.upload-queue__name {
    grid-area: name;
    color: #0f172a;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-queue__note {
    grid-area: note;
    color: #64748b; /* slate-500 */
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-queue__note:empty {
    display: none;
}

.upload-queue__status {
    grid-area: status;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
    min-width: 36px;
}

.upload-queue__bar {
    grid-area: bar;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.upload-queue__bar-fill {
    height: 100%;
    width: 0;
    background: #0f172a;
    transition: width 0.2s ease;
}

.upload-queue__row.is-uploading .upload-queue__status { color: #0f172a; }
.upload-queue__row.is-done .upload-queue__status { color: #16a34a; }       /* green-600 */
.upload-queue__row.is-done .upload-queue__bar-fill { background: #16a34a; }
.upload-queue__row.is-fail .upload-queue__status { color: #dc2626; }       /* red-600 */
.upload-queue__row.is-fail .upload-queue__bar-fill { background: #dc2626; }
