.queue-list {
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.processing-task {
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.processing-task-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.processing-task-ticket {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.processing-task-title {
    overflow: hidden;
    color: #1f2937;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.processing-task-submitter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: .85rem;
    font-weight: 500;
}

.processing-task-submitter img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.processing-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 10px;
}

.queue-item {
    display: grid;
    grid-template-columns: 54px 48px minmax(0, 1fr) 74px 12px;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.queue-item:last-child { border-bottom: 0; }
.queue-item:hover { background: #fafbfc; }

.queue-item-time {
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .74rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.queue-item-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    background: #f2f5f8;
    object-fit: cover;
}

.queue-item-avatar-fallback {
    border-color: #dbeafe;
    background: #eaf3ff;
    color: #2563eb;
    font-size: .76rem;
    line-height: 1;
    text-align: center;
}

.queue-item-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.queue-item-task {
    overflow: hidden;
    color: #1f2937;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-meta,
.queue-item-types {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.queue-item-types {
    overflow: hidden;
}

.queue-item-type {
    max-width: 120px;
    overflow: hidden;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: .65rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-type.is-primary {
    background: #f1f5f9;
    color: #334155;
}

.queue-item-submitter {
    flex: 0 0 auto;
    overflow: hidden;
    color: #94a3b8;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-submitter::before {
    margin-right: 5px;
    color: #cbd5e1;
    content: "·";
}

.queue-item-ticket {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.queue-item-ticket strong {
    color: #2563eb;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.queue-item-ticket small {
    max-width: 74px;
    overflow: hidden;
    color: #10b981;
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-ticket small.is-overdue {
    color: #dc2626;
}

.queue-item-chevron {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .processing-task-submitter {
        display: none;
    }

    .queue-item {
        grid-template-columns: 42px 42px minmax(0, 1fr) 44px;
        gap: 8px;
        min-height: 66px;
        padding: 9px 10px;
    }

    .queue-item-avatar {
        width: 42px;
        height: 42px;
    }

    .queue-item-time { font-size: .67rem; }
    .queue-item-task { font-size: .78rem; }
    .queue-item-body { grid-column: auto; grid-row: auto; }
    .queue-item-submitter { display: none; }
    .queue-item-ticket small { display: none; }
    .queue-item-chevron { display: none; }
    .queue-item-ticket { align-items: flex-end; }
    .queue-item-type { max-width: 88px; }
}
